]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Customization.lyx
Math.lyx: add info about decorated matrix column limit and how to increase it.
[lyx.git] / lib / doc / ja / Customization.lyx
1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
2 \lyxformat 413
3 \begin_document
4 \begin_header
5 \textclass jbook
6 \begin_preamble
7 % DO NOT ALTER THIS PREAMBLE!!!
8 %
9 % This preamble is designed to ensure that this document prints
10 % out as advertised. If you mess with this preamble,
11 % parts of this document may not print out as expected.  If you
12 % have problems LaTeXing this file, please contact 
13 % the documentation team
14 % email: lyx-docs@lists.lyx.org
15
16 \usepackage{ifpdf} % part of the hyperref bundle
17 \ifpdf % if pdflatex is used
18
19  % set fonts for nicer pdf view
20  \IfFileExists{lmodern.sty}
21   {\usepackage{lmodern}}{}
22
23 \fi % end if pdflatex is used
24
25 % the pages of the TOC is numbered roman
26 % and a pdf-bookmark for the TOC is added
27 \let\myTOC\tableofcontents
28 \renewcommand\tableofcontents{%
29   \frontmatter
30   \pdfbookmark[1]{\contentsname}{}
31   \myTOC
32   \mainmatter }
33
34 % redefine the \LyX macro for PDF bookmarks
35 \def\LyX{\texorpdfstring{%
36   L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
37   {LyX}}
38
39 % used for multi-column text
40 \usepackage{multicol}
41
42 % Added only for Japanese translation
43 % This is needed to use \textquotedbl (this doesn't exist in OT1 encoding)
44 \usepackage[T1]{fontenc}
45 % Below is to correct PDF bookmarks
46 % but doesn't work because hyperref is automatically called.
47 % Modify \usepackage{hyperref} line manually
48 %\usepackage[dvipdfm,bookmarks=true,bookmarksnumbered=true,bookmarkstype=toc]{hyperref}
49 %\ifnum 42146=\euc"A4A2 \AtBeginDvi{\special{pdf:tounicode EUC-UCS2}}\else
50 %\AtBeginDvi{\special{pdf:tounicode 90ms-RKSJ-UCS2}}\fi
51 \end_preamble
52 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
53 \use_default_options false
54 \begin_modules
55 logicalmkup
56 \end_modules
57 \maintain_unincluded_children false
58 \begin_local_layout
59 Format 7
60 InsetLayout CharStyle:MenuItem
61 LyxType               charstyle
62 LabelString           menu
63 LatexType             command
64 LatexName             menuitem
65 Font
66 Family              Sans
67 EndFont
68 Preamble
69 \newcommand*{\menuitem}[1]{{\sffamily #1}}
70 EndPreamble
71 End
72 \end_local_layout
73 \language japanese
74 \language_package default
75 \inputencoding auto
76 \fontencoding global
77 \font_roman default
78 \font_sans default
79 \font_typewriter default
80 \font_default_family default
81 \use_non_tex_fonts false
82 \font_sc false
83 \font_osf false
84 \font_sf_scale 100
85 \font_tt_scale 100
86
87 \graphics default
88 \default_output_format default
89 \output_sync 0
90 \bibtex_command default
91 \index_command default
92 \paperfontsize 12
93 \spacing single
94 \use_hyperref true
95 \pdf_title "LyX Configuration Manual"
96 \pdf_author "LyX Team"
97 \pdf_subject "LyX-Documentation Customization"
98 \pdf_keywords "LyX, documentation, customization"
99 \pdf_bookmarks true
100 \pdf_bookmarksnumbered true
101 \pdf_bookmarksopen true
102 \pdf_bookmarksopenlevel 1
103 \pdf_breaklinks false
104 \pdf_pdfborder false
105 \pdf_colorlinks true
106 \pdf_backref false
107 \pdf_pdfusetitle false
108 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
109 \papersize default
110 \use_geometry false
111 \use_amsmath 0
112 \use_esint 0
113 \use_mhchem 0
114 \use_mathdots 0
115 \cite_engine basic
116 \use_bibtopic false
117 \use_indices false
118 \paperorientation portrait
119 \suppress_date false
120 \use_refstyle 0
121 \branch OutDated
122 \selected 0
123 \filename_suffix 0
124 \color #f5fae7
125 \end_branch
126 \index 索引
127 \shortcut idx
128 \color #008000
129 \end_index
130 \secnumdepth 3
131 \tocdepth 3
132 \paragraph_separation indent
133 \paragraph_indentation default
134 \quotes_language english
135 \papercolumns 1
136 \papersides 2
137 \paperpagestyle headings
138 \tracking_changes false
139 \output_changes false
140 \html_math_output 0
141 \html_css_as_file 0
142 \html_be_strict true
143 \end_header
144
145 \begin_body
146
147 \begin_layout Title
148 LyXの高度設定
149 \begin_inset Newline newline
150 \end_inset
151
152 熟練ユーザのための各機能
153 \end_layout
154
155 \begin_layout Author
156 LyX開発チーム
157 \begin_inset Foot
158 status collapsed
159
160 \begin_layout Plain Layout
161 \noindent
162 もしコメントや誤りの修正をお持ちでしたら、LyX文書化メーリングリスト
163 \begin_inset CommandInset href
164 LatexCommand href
165 target "lyx-docs@lists.lyx.org"
166 type "mailto:"
167
168 \end_inset
169
170 宛お送りください。件名ヘッダに「[Customization]」という文字を入れ、このファイルの現在のメンテナRichard Heck <rgheck@comc
171 ast.net>をccにして送ってください。
172 \end_layout
173
174 \end_inset
175
176
177 \begin_inset Newline newline
178 \end_inset
179
180
181 \begin_inset Newline newline
182 \end_inset
183
184 第2.0.x版 
185 \end_layout
186
187 \begin_layout Standard
188 \begin_inset CommandInset toc
189 LatexCommand tableofcontents
190
191 \end_inset
192
193
194 \begin_inset Note Note
195 status open
196
197 \begin_layout Plain Layout
198 本文書を修正する際には、変更追跡機能を使用してください。これによって、
199 \end_layout
200
201 \begin_layout Plain Layout
202 LyX翻訳者陣が変更点を認識しやすくなり、メンテナが最新の状態を維持することが容易になります。
203 \end_layout
204
205 \end_inset
206
207
208 \end_layout
209
210 \begin_layout Chapter
211 はじめに
212 \end_layout
213
214 \begin_layout Standard
215 この取扱説明書は、LyXに備わっている高度設定機能を取り扱います。ここでは、短絡キーや画面プレビューオプション、プリンタオプション、LyXサーバ経由でのLyXへ
216 のコマンド送信、国際化、新しいLaTeXクラスやLyXレイアウトの導入などの題材について論じます。おそらくは変更可能なことすべてについて触れることは無理でしょう
217 が—私たちの開発者たちは私たちが文書化できる速さよりも速く新しい機能を付け加えてしまうので—、もっとも一般的な高度設定については説明を行い、わかりにくいものにつ
218 いては正しい方向を指し示すことができるようにしていくつもりです。
219 \end_layout
220
221 \begin_layout Standard
222 \begin_inset Branch OutDated
223 status collapsed
224
225 \begin_layout Standard
226 Information from previous versions of this document that now seems to be
227  outdated is contained in the OutDated branch of this document.
228  By default, this information will not appear in the LaTeX output.
229 \end_layout
230
231 \end_inset
232
233
234 \end_layout
235
236 \begin_layout Chapter
237 LyX設定ファイル
238 \end_layout
239
240 \begin_layout Standard
241 本章の目的は、LyX設定ファイル群を理解するための一助となることです。本章を読み進める前に、
242 \begin_inset Flex MenuItem
243 status collapsed
244
245 \begin_layout Plain Layout
246 ヘルプ\SpecialChar \menuseparator
247 L
248 \begin_inset ERT
249 status collapsed
250
251 \begin_layout Plain Layout
252
253 {}
254 \end_layout
255
256 \end_inset
257
258 yXについて
259 \end_layout
260
261 \end_inset
262
263 を使って、LyXライブラリとユーザディレクトリがどこにあるかを確認しておいてください。ライブラリディレクトリは、LyXがシステム全体の設定ファイルを置いておくと
264 ころです。一方、ユーザディレクトリは、自身がそれを修正した版を置いておくところです。私たちは、本書の以下の部分で、前者を
265 \begin_inset Flex Code
266 status collapsed
267
268 \begin_layout Plain Layout
269 L
270 \begin_inset ERT
271 status collapsed
272
273 \begin_layout Plain Layout
274
275 {}
276 \end_layout
277
278 \end_inset
279
280 yXDir
281 \end_layout
282
283 \end_inset
284
285 と呼び、後者を
286 \begin_inset Flex MenuItem
287 status collapsed
288
289 \begin_layout Plain Layout
290 UserDir
291 \end_layout
292
293 \end_inset
294
295 と呼ぶことにします。
296 \end_layout
297
298 \begin_layout Section
299 \begin_inset Flex Code
300 status collapsed
301
302 \begin_layout Plain Layout
303 L
304 \begin_inset ERT
305 status collapsed
306
307 \begin_layout Plain Layout
308
309 {}
310 \end_layout
311
312 \end_inset
313
314 yXDir
315 \end_layout
316
317 \end_inset
318
319 にはなにがあるの?
320 \end_layout
321
322 \begin_layout Standard
323 \begin_inset Flex Code
324 status collapsed
325
326 \begin_layout Plain Layout
327 L
328 \begin_inset ERT
329 status collapsed
330
331 \begin_layout Plain Layout
332
333 {}
334 \end_layout
335
336 \end_inset
337
338 yXDir
339 \end_layout
340
341 \end_inset
342
343 とそのサブディレクトリには、多くのファイルがあり、LyXの挙動を高度設定するのに使用されます。これらのファイルの多くは、LyX内の
344 \begin_inset Flex MenuItem
345 status collapsed
346
347 \begin_layout Plain Layout
348 ツール\SpecialChar \menuseparator
349 設定
350 \end_layout
351
352 \end_inset
353
354 ダイアログから変更することができます。LyX中で行いたいと思うような高度設定は、ほとんどこのダイアログから行うことができるようになっています。しかしながら、Ly
355 Xの他の多くの内部動作は、
356 \begin_inset Flex Code
357 status collapsed
358
359 \begin_layout Plain Layout
360 L
361 \begin_inset ERT
362 status collapsed
363
364 \begin_layout Plain Layout
365
366 {}
367 \end_layout
368
369 \end_inset
370
371 yXDir
372 \end_layout
373
374 \end_inset
375
376 のファイルを修正することで高度設定されます。これらのファイルは様々なカテゴリに分類しうるので、以下の各小節で説明します。
377 \end_layout
378
379 \begin_layout Subsection
380 自動的に生成されるファイル
381 \end_layout
382
383 \begin_layout Standard
384 \begin_inset Flex MenuItem
385 status collapsed
386
387 \begin_layout Plain Layout
388 UserDir
389 \end_layout
390
391 \end_inset
392
393 にある各ファイルは、LyXが自動設定を行ったときに生成されます。これらのファイルは、内部調査中に推測された様々な既定値が置かれています。これらは、随時上書きされ
394 てしまうので、一般的には修正しないことが望まれます。
395 \end_layout
396
397 \begin_layout Labeling
398 \labelwidthstring 00.00.0000
399 \begin_inset Flex Code
400 status collapsed
401
402 \begin_layout Plain Layout
403 lyxrc.defaults
404 \end_layout
405
406 \end_inset
407
408  このファイルには、様々な既定コマンドが置かれています。
409 \end_layout
410
411 \begin_layout Labeling
412 \labelwidthstring 00.00.0000
413 \begin_inset Flex Code
414 status collapsed
415
416 \begin_layout Plain Layout
417 packages.lst
418 \end_layout
419
420 \end_inset
421
422  このファイルには、LyXが認識したパッケージの一覧が収められています。現在のところ、これはLyXプログラム自体には使用されていませんが、抽出された情報その他は
423
424 \begin_inset Flex MenuItem
425 status collapsed
426
427 \begin_layout Plain Layout
428 ヘルプ\SpecialChar \menuseparator
429 LaT
430 \begin_inset ERT
431 status collapsed
432
433 \begin_layout Plain Layout
434
435 {}
436 \end_layout
437
438 \end_inset
439
440 eXの設定
441 \end_layout
442
443 \end_inset
444
445 で見ることができます。
446 \end_layout
447
448 \begin_layout Labeling
449 \labelwidthstring 00.00.0000
450 \begin_inset Flex Code
451 status collapsed
452
453 \begin_layout Plain Layout
454 textclass.lst
455 \end_layout
456
457 \end_inset
458
459  ユーザの
460 \begin_inset Flex Code
461 status collapsed
462
463 \begin_layout Plain Layout
464 layout/
465 \end_layout
466
467 \end_inset
468
469 ディレクトリで検出されたテキストクラスと、関連したLaTeX文書クラスおよびその説明の一覧です。
470 \end_layout
471
472 \begin_layout Labeling
473 \labelwidthstring 00.00.0000
474 \begin_inset Flex Code
475 status collapsed
476
477 \begin_layout Plain Layout
478 lyxmodules.lst
479 \end_layout
480
481 \end_inset
482
483  ユーザの
484 \begin_inset Flex Code
485 status collapsed
486
487 \begin_layout Plain Layout
488 layout/
489 \end_layout
490
491 \end_inset
492
493 ディレクトリで検出されたレイアウトモジュールの一覧です。
494 \end_layout
495
496 \begin_layout Labeling
497 \labelwidthstring 00.00.0000
498 \begin_inset Flex Code
499 status collapsed
500
501 \begin_layout Plain Layout
502 *files.lst
503 \end_layout
504
505 \end_inset
506
507  ご使用のシステムで検出された様々な種類のLaTeX関連ファイルの一覧です。
508 \end_layout
509
510 \begin_layout Labeling
511 \labelwidthstring 00.00.0000
512 \begin_inset Flex Code
513 status collapsed
514
515 \begin_layout Plain Layout
516 doc/LaT
517 \begin_inset ERT
518 status collapsed
519
520 \begin_layout Plain Layout
521
522 {}
523 \end_layout
524
525 \end_inset
526
527 eXConfig.lyx
528 \end_layout
529
530 \end_inset
531
532  このファイルは、自動設定中に
533 \begin_inset Flex Code
534 status collapsed
535
536 \begin_layout Plain Layout
537 LaT
538 \begin_inset ERT
539 status collapsed
540
541 \begin_layout Plain Layout
542
543 {}
544 \end_layout
545
546 \end_inset
547
548 eXConfig.lyx.in
549 \end_layout
550
551 \end_inset
552
553 から自動的に生成されます。ご使用中のLaTeXの設定に関する情報が納められています。
554 \end_layout
555
556 \begin_layout Subsection
557 ディレクトリ
558 \end_layout
559
560 \begin_layout Standard
561 以下の各ディレクトリは、
562 \begin_inset Flex Code
563 status collapsed
564
565 \begin_layout Plain Layout
566 L
567 \begin_inset ERT
568 status collapsed
569
570 \begin_layout Plain Layout
571
572 {}
573 \end_layout
574
575 \end_inset
576
577 yXDir
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  このディレクトリには、LyXで使用されるキー割当を定義している、拡張子が
617 \begin_inset Flex Code
618 status collapsed
619
620 \begin_layout Plain Layout
621 .bind
622 \end_layout
623
624 \end_inset
625
626 のファイルが置かれています。
627 \begin_inset Flex Code
628 status collapsed
629
630 \begin_layout Plain Layout
631 $LANG_xxx.bind
632 \end_layout
633
634 \end_inset
635
636 という名称の割当ファイルの各国語版がある場合には、そちらが用いられます。
637 \end_layout
638
639 \begin_layout Labeling
640 \labelwidthstring 00.00.0000
641 \begin_inset Flex Code
642 status collapsed
643
644 \begin_layout Plain Layout
645 clipart/
646 \end_layout
647
648 \end_inset
649
650  このディレクトリには、文書に取り込むことのできる画像ファイルが納められています。
651 \end_layout
652
653 \begin_layout Labeling
654 \labelwidthstring 00.00.0000
655 \begin_inset Flex Code
656 status collapsed
657
658 \begin_layout Plain Layout
659 doc/
660 \end_layout
661
662 \end_inset
663
664  このディレクトリには、LyXの取扱説明書ファイル(今お読みのものも含めて)が納められています。上述のように、
665 \begin_inset Flex Code
666 status collapsed
667
668 \begin_layout Plain Layout
669 LaT
670 \begin_inset ERT
671 status collapsed
672
673 \begin_layout Plain Layout
674
675 {}
676 \end_layout
677
678 \end_inset
679
680 eXConfig.lyx
681 \end_layout
682
683 \end_inset
684
685 ファイルは特に注目に値します。各国語版のヘルプ文書は、
686 \begin_inset Flex Code
687 status collapsed
688
689 \begin_layout Plain Layout
690 doc/xx
691 \end_layout
692
693 \end_inset
694
695 (「xx」はISO言語コード)サブディレクトリにあります。詳しくは、第
696 \begin_inset CommandInset ref
697 LatexCommand ref
698 reference "cha:LyXの各国語対応"
699
700 \end_inset
701
702 章をご覧ください。
703 \end_layout
704
705 \begin_layout Labeling
706 \labelwidthstring 00.00.0000
707 \begin_inset Flex Code
708 status collapsed
709
710 \begin_layout Plain Layout
711 examples/
712 \end_layout
713
714 \end_inset
715
716  このディレクトリには、何らかの機能の使い方を説明する例示ファイルが納められています。ファイルブラウザ中で
717 \begin_inset Flex MenuItem
718 status collapsed
719
720 \begin_layout Plain Layout
721 用例
722 \end_layout
723
724 \end_inset
725
726 ボタンを押すと、このディレクトリが表示されます。
727 \end_layout
728
729 \begin_layout Labeling
730 \labelwidthstring 00.00.0000
731 \begin_inset Flex Code
732 status collapsed
733
734 \begin_layout Plain Layout
735 images/
736 \end_layout
737
738 \end_inset
739
740  このディレクトリには、
741 \begin_inset Flex MenuItem
742 status collapsed
743
744 \begin_layout Plain Layout
745 文書
746 \end_layout
747
748 \end_inset
749
750 ダイアログで使用される画像ファイルが納められています。さらに、ツールバーの各アイコンや、LyXを起動したときに現れるバナーも納められています。
751 \end_layout
752
753 \begin_layout Labeling
754 \labelwidthstring 00.00.0000
755 \begin_inset Flex Code
756 status collapsed
757
758 \begin_layout Plain Layout
759 kbd/
760 \end_layout
761
762 \end_inset
763
764  このディレクトリには、キーボードのキー割当ファイルが納められています。詳細については、第
765 \begin_inset CommandInset ref
766 LatexCommand ref
767 reference "sec:国際キー配列"
768
769 \end_inset
770
771 章をご覧ください。
772 \end_layout
773
774 \begin_layout Labeling
775 \labelwidthstring 00.00.0000
776 \begin_inset Flex Code
777 status collapsed
778
779 \begin_layout Plain Layout
780 layouts/
781 \end_layout
782
783 \end_inset
784
785  このディレクトリには、第
786 \begin_inset CommandInset ref
787 LatexCommand ref
788 reference "cha:新規文書を導入"
789
790 \end_inset
791
792 章に述べられているテキストクラスおよびモジュールのファイルが納められています。
793 \end_layout
794
795 \begin_layout Labeling
796 \labelwidthstring 00.00.0000
797 \begin_inset Flex Code
798 status collapsed
799
800 \begin_layout Plain Layout
801 lyx2lyx
802 \end_layout
803
804 \end_inset
805
806  このディレクトリには、LyXの各バージョン間の変換に使用される
807 \begin_inset Flex Code
808 status collapsed
809
810 \begin_layout Plain Layout
811 lyx2lyx
812 \end_layout
813
814 \end_inset
815
816  Pythonスクリプトが納められています。たとえば、複数のファイルの変換をバッチ処理したい場合には、これらをコマンドラインから実行することもできます。
817 \end_layout
818
819 \begin_layout Labeling
820 \labelwidthstring 00.00.0000
821 \begin_inset Flex Code
822 status collapsed
823
824 \begin_layout Plain Layout
825 scripts/
826 \end_layout
827
828 \end_inset
829
830  このディレクトリには、
831 \begin_inset Flex MenuItem
832 status collapsed
833
834 \begin_layout Plain Layout
835 外用ひな型
836 \end_layout
837
838 \end_inset
839
840 機能の有用性を示すためのファイルがいくつか納められています。LyX自身が使用するスクリプトもいくつか収められています。
841 \end_layout
842
843 \begin_layout Labeling
844 \labelwidthstring 00.00.0000
845 \begin_inset Flex Code
846 status collapsed
847
848 \begin_layout Plain Layout
849 templates/
850 \end_layout
851
852 \end_inset
853
854  このディレクトリには、第
855 \begin_inset CommandInset ref
856 LatexCommand ref
857 reference "sec:ひな型を作成する"
858
859 \end_inset
860
861 章で述べられている標準のLyXひな型ファイルが納められています。
862 \end_layout
863
864 \begin_layout Labeling
865 \labelwidthstring 00.00.0000
866 \begin_inset Flex Code
867 status collapsed
868
869 \begin_layout Plain Layout
870 ui/
871 \end_layout
872
873 \end_inset
874
875  このディレクトリには、LyXの操作画面を定義する拡張子
876 \begin_inset Flex Code
877 status collapsed
878
879 \begin_layout Plain Layout
880 .ui
881 \end_layout
882
883 \end_inset
884
885 のファイルが納められています。つまり、これらのファイルは、どのメニュー項目がどのメニューに現れるかを定義し、どの項目がツールバーに現れるかを定義しています。
886 \end_layout
887
888 \begin_layout Subsection
889 変更を加えない方がよいファイル
890 \end_layout
891
892 \begin_layout Standard
893 これらのファイルはLyXが内部的に使用するもので、あなたが開発者でない限りは、凡そこれらに変更を加える必要はありません。
894 \end_layout
895
896 \begin_layout Labeling
897 \labelwidthstring 00.00.0000
898 \begin_inset Flex Code
899 status collapsed
900
901 \begin_layout Plain Layout
902 CREDITS
903 \end_layout
904
905 \end_inset
906
907  このファイルは、LyX開発陣の名簿です。この内容は、メニュー項目
908 \begin_inset Flex MenuItem
909 status collapsed
910
911 \begin_layout Plain Layout
912 ヘルプ\SpecialChar \menuseparator
913 L
914 \begin_inset ERT
915 status collapsed
916
917 \begin_layout Plain Layout
918
919 {}
920 \end_layout
921
922 \end_inset
923
924 yXについて
925 \end_layout
926
927 \end_inset
928
929 で表示されます。
930 \end_layout
931
932 \begin_layout Labeling
933 \labelwidthstring 00.00.0000
934 \begin_inset Flex Code
935 status collapsed
936
937 \begin_layout Plain Layout
938 chkconfig.ltx
939 \end_layout
940
941 \end_inset
942
943  これは、自動設定プロセスによって使用されるLaTeXスクリプトです。直接実行しないでください。
944 \end_layout
945
946 \begin_layout Labeling
947 \labelwidthstring 00.00.0000
948 \begin_inset Flex Code
949 status collapsed
950
951 \begin_layout Plain Layout
952 configure.py
953 \end_layout
954
955 \end_inset
956
957  これは、LyXの再設定によって使用されるスクリプトです。これは、このスクリプトを実行したディレクトリに設定ファイルを生成します。
958 \end_layout
959
960 \begin_layout Subsection
961 ひとこと必要なファイル群...
962 \end_layout
963
964 \begin_layout Labeling
965 \labelwidthstring 00.00.0000
966 \begin_inset Flex Code
967 status collapsed
968
969 \begin_layout Plain Layout
970 encodings
971 \end_layout
972
973 \end_inset
974
975  このファイルには、各文字エンコーディングがどのようにUnicodeにマップされるかを示した表が載っています。
976 \end_layout
977
978 \begin_layout Labeling
979 \labelwidthstring 00.00.0000
980 \begin_inset Flex Code
981 status collapsed
982
983 \begin_layout Plain Layout
984 external_templates
985 \end_layout
986
987 \end_inset
988
989  このファイルには、新しく導入された
990 \begin_inset Flex MenuItem
991 status collapsed
992
993 \begin_layout Plain Layout
994 外用ひな型
995 \end_layout
996
997 \end_inset
998
999 機能で使用できるひな型が載っています。
1000 \end_layout
1001
1002 \begin_layout Labeling
1003 \labelwidthstring 00.00.0000
1004 \begin_inset Flex Code
1005 status collapsed
1006
1007 \begin_layout Plain Layout
1008 languages
1009 \end_layout
1010
1011 \end_inset
1012
1013  このファイルには、現在LyXがサポートしている言語の全一覧が載っています。
1014 \end_layout
1015
1016 \begin_layout Section
1017 ユーザのローカル設定ディレクトリ
1018 \end_layout
1019
1020 \begin_layout Standard
1021 LyXを非特権ユーザとして利用している場合でも、自分自身で使うために、LyXの設定を変更したいと思うかもしれません。
1022 \begin_inset Flex Code
1023 status collapsed
1024
1025 \begin_layout Plain Layout
1026 UserDir
1027 \end_layout
1028
1029 \end_inset
1030
1031 ディレクトリには、すべての個人設定ファイルが収められています。これは、
1032 \begin_inset Flex MenuItem
1033 status collapsed
1034
1035 \begin_layout Plain Layout
1036 ヘルプ\SpecialChar \menuseparator
1037 L
1038 \begin_inset ERT
1039 status collapsed
1040
1041 \begin_layout Plain Layout
1042
1043 {}
1044 \end_layout
1045
1046 \end_inset
1047
1048
1049 \begin_inset ERT
1050 status collapsed
1051
1052 \begin_layout Plain Layout
1053
1054 {}
1055 \end_layout
1056
1057 \end_inset
1058
1059 yXについて
1060 \end_layout
1061
1062 \end_inset
1063
1064 で「ユーザーディレクトリ」として言及されているディレクトリです。このディレクトリは、
1065 \begin_inset Flex Code
1066 status collapsed
1067
1068 \begin_layout Plain Layout
1069 L
1070 \begin_inset ERT
1071 status collapsed
1072
1073 \begin_layout Plain Layout
1074
1075 {}
1076 \end_layout
1077
1078 \end_inset
1079
1080 yXDir
1081 \end_layout
1082
1083 \end_inset
1084
1085 のミラーとして使用されており、これは
1086 \begin_inset Flex Code
1087 status collapsed
1088
1089 \begin_layout Plain Layout
1090 UserDir
1091 \end_layout
1092
1093 \end_inset
1094
1095 内のすべてのファイルが、
1096 \begin_inset Flex Code
1097 status collapsed
1098
1099 \begin_layout Plain Layout
1100 L
1101 \begin_inset ERT
1102 status collapsed
1103
1104 \begin_layout Plain Layout
1105
1106 {}
1107 \end_layout
1108
1109 \end_inset
1110
1111 yXDir
1112 \end_layout
1113
1114 \end_inset
1115
1116 の対応するファイルを置き換えるものとして機能していることを意味します。前節で述べられた設定はどれも、全ユーザに影響する全システム用ディレクトリに置くこともできま
1117 すし、自分自身で使うために個人のローカルディレクトリに置くこともできます。
1118 \end_layout
1119
1120 \begin_layout Standard
1121 わかりやすくするために、いくつか例を挙げましょう。
1122 \end_layout
1123
1124 \begin_layout Itemize
1125 \begin_inset Flex MenuItem
1126 status collapsed
1127
1128 \begin_layout Plain Layout
1129 ツール\SpecialChar \menuseparator
1130 設定
1131 \end_layout
1132
1133 \end_inset
1134
1135 ダイアログで設定されるユーザ設定は、
1136 \begin_inset Flex Code
1137 status collapsed
1138
1139 \begin_layout Plain Layout
1140 UserDir
1141 \end_layout
1142
1143 \end_inset
1144
1145 中の
1146 \begin_inset Flex Code
1147 status collapsed
1148
1149 \begin_layout Plain Layout
1150 preferences
1151 \end_layout
1152
1153 \end_inset
1154
1155 ファイルに保存されます。
1156 \end_layout
1157
1158 \begin_layout Itemize
1159 \begin_inset Flex MenuItem
1160 status collapsed
1161
1162 \begin_layout Plain Layout
1163 ツール\SpecialChar \menuseparator
1164 再設定
1165 \end_layout
1166
1167 \end_inset
1168
1169 を使用して再設定を行うと、LyXは
1170 \begin_inset Flex Code
1171 status collapsed
1172
1173 \begin_layout Plain Layout
1174 configure.py
1175 \end_layout
1176
1177 \end_inset
1178
1179 スクリプトを実行し、その結果のファイルは、ご自身のローカル設定ディレクトリに書き込まれます。これはすなわち、
1180 \begin_inset Flex Code
1181 status collapsed
1182
1183 \begin_layout Plain Layout
1184 UserDir/layouts
1185 \end_layout
1186
1187 \end_inset
1188
1189 にご自身で追加したテキストファイルは、
1190 \begin_inset Flex MenuItem
1191 status collapsed
1192
1193 \begin_layout Plain Layout
1194 文書\SpecialChar \menuseparator
1195 設定
1196 \end_layout
1197
1198 \end_inset
1199
1200 ダイアログのクラス一覧に表示されるようになることを意味します。
1201 \end_layout
1202
1203 \begin_layout Itemize
1204 たとえば、LyXのFTPサイトから最新の取扱説明書をとってきたものの、使用中のシステム上で管理者権限がないために、それをインストールすることができなかったとして
1205 も、それらのファイルを
1206 \begin_inset Flex Code
1207 status collapsed
1208
1209 \begin_layout Plain Layout
1210 UserDir/doc/
1211 \end_layout
1212
1213 \end_inset
1214
1215 ディレクトリにコピーすれば、
1216 \begin_inset Flex MenuItem
1217 status collapsed
1218
1219 \begin_layout Plain Layout
1220 ヘルプ
1221 \end_layout
1222
1223 \end_inset
1224
1225 メニュー項目はこれらを開くようになります!
1226 \end_layout
1227
1228 \begin_layout Section
1229 LyXを複数の設定を使って実行するには
1230 \end_layout
1231
1232 \begin_layout Standard
1233 ローカル設定ディレクトリにおいて設定の自由度があるだけでは、2つ以上の設定を自由に使いこなしたい場合には充分ではないかもしれません。たとえば、使用する度に異なる
1234 キー割当を使用したり、異なるプリンタ設定を使用したいことがあるかもしれません。これは、複数の設定ディレクトリを作ることで実現することができます。そして、実行時に
1235 どのディレクトリを使用するか指定するのです。
1236 \end_layout
1237
1238 \begin_layout Standard
1239 LyXをコマンドラインスイッチ
1240 \begin_inset Flex Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 -userdir
1245 \end_layout
1246
1247 \end_inset
1248
1249  
1250 \emph on
1251 <ディレクトリ名>
1252 \emph default
1253 と共に起動すると、設定を既定のディレクトリではなく、指定したディレクトリから読み込むように、指示することになります(LyXを
1254 \begin_inset Flex Code
1255 status collapsed
1256
1257 \begin_layout Plain Layout
1258 -userdir
1259 \end_layout
1260
1261 \end_inset
1262
1263 スイッチなしで実行すれば、既定ディレクトリを指定することになります)。指定したディレクトリが存在しない場合には、LyXは、初めてLyXを実行したときに既定ディレ
1264 クトリを訊いてくるのと同様に、そのディレクトリを作るかどうか訊いてきます。この追加したユーザディレクトリでは、既定ディレクトリで行うのと全く同じように設定オプシ
1265 ョンを修正することができます。これらのディレクトリは完全に独立しています(が、読み進めてください)。また、環境変数
1266 \begin_inset Flex Code
1267 status collapsed
1268
1269 \begin_layout Plain Layout
1270 LYX_USERDIR_VER
1271 \end_layout
1272
1273 \end_inset
1274
1275 を特定の値に設定しても、全く同じ効果があります。
1276 \end_layout
1277
1278 \begin_layout Standard
1279 複数の設定を持つことはまた、維持の手間も増えるということです。もし新しいレイアウトを
1280 \begin_inset Flex Code
1281 status collapsed
1282
1283 \begin_layout Plain Layout
1284 NewUserDir/layouts
1285 \end_layout
1286
1287 \end_inset
1288
1289 に加えて、これをすべての設定で利用できるようにしたいならば、これをすべての設定ディレクトリで個々に付け加えなくてはなりません。これを避けるには、次のようなトリッ
1290 クを使用してください。LyXが新しい設定ディレクトリを生成すると、そのサブディレクトリ(上記参照)はほとんど空です。新しい設定が既存のものをミラーするようにする
1291 には、空のサブディレクトリを、既存の設定の対応するサブディレクトリへのシンボリックリンクに置き換えてください。ただし
1292 \begin_inset Flex Code
1293 status collapsed
1294
1295 \begin_layout Plain Layout
1296 doc/
1297 \end_layout
1298
1299 \end_inset
1300
1301 サブディレクトリには、設定スクリプト(
1302 \begin_inset Flex MenuItem
1303 status collapsed
1304
1305 \begin_layout Plain Layout
1306 ツール\SpecialChar \menuseparator
1307 再設定
1308 \end_layout
1309
1310 \end_inset
1311
1312 で使用可能)が書き出した、設定毎に異なるファイルが含まれていますので、注意を払ってください。
1313 \end_layout
1314
1315 \begin_layout Chapter
1316 設定ダイアログ
1317 \end_layout
1318
1319 \begin_layout Standard
1320 設定ダイアログのオプションのすべては、
1321 \emph on
1322 ユーザーの手引き
1323 \emph default
1324 の付録
1325 \emph on
1326 設定ダイアログ
1327 \emph default
1328 に述べられています。オプションのうちいくつかについて、ここでさらに詳細に説明します。
1329 \end_layout
1330
1331 \begin_layout Section
1332 書式
1333 \begin_inset CommandInset label
1334 LatexCommand label
1335 name "sec:書式"
1336
1337 \end_inset
1338
1339
1340 \end_layout
1341
1342 \begin_layout Standard
1343 ファイル書式が定義されていない場合、はじめの一歩は、使いたいと思うファイル書式を定義することです。それには、
1344 \begin_inset Flex MenuItem
1345 status collapsed
1346
1347 \begin_layout Plain Layout
1348 ツール\SpecialChar \menuseparator
1349 設定
1350 \end_layout
1351
1352 \end_inset
1353
1354 ダイアログを開いてください。
1355 \begin_inset Flex MenuItem
1356 status collapsed
1357
1358 \begin_layout Plain Layout
1359 ファイル処理\SpecialChar \menuseparator
1360 ファイル書式
1361 \end_layout
1362
1363 \end_inset
1364
1365 の中で
1366 \begin_inset Flex MenuItem
1367 status collapsed
1368
1369 \begin_layout Plain Layout
1370 新規\SpecialChar \ldots{}
1371
1372 \end_layout
1373
1374 \end_inset
1375
1376 ボタンを押して、登録する新しい書式を定義してください。
1377 \begin_inset Flex MenuItem
1378 status collapsed
1379
1380 \begin_layout Plain Layout
1381 書式
1382 \end_layout
1383
1384 \end_inset
1385
1386 フィールドは、GUI中で書式を認識するために用いられる名称です。
1387 \begin_inset Flex MenuItem
1388 status collapsed
1389
1390 \begin_layout Plain Layout
1391 短縮名
1392 \end_layout
1393
1394 \end_inset
1395
1396 は、書式を内部的に識別するために用いられます。さらにファイル拡張子も入力する必要があります。これらはすべて必須事項です。オプションの
1397 \begin_inset Flex MenuItem
1398 status collapsed
1399
1400 \begin_layout Plain Layout
1401 短絡キー
1402 \end_layout
1403
1404 \end_inset
1405
1406 フィールドは、メニュー中で短絡キーを提供するのに使用されます(たとえば、
1407 \begin_inset Flex MenuItem
1408 status collapsed
1409
1410 \begin_layout Plain Layout
1411 Alt-V D
1412 \end_layout
1413
1414 \end_inset
1415
1416 を押すと
1417 \begin_inset Flex MenuItem
1418 status collapsed
1419
1420 \begin_layout Plain Layout
1421 表示\SpecialChar \menuseparator
1422 DVI
1423 \end_layout
1424
1425 \end_inset
1426
1427 となります)。
1428 \end_layout
1429
1430 \begin_layout Standard
1431 書式には、
1432 \begin_inset Flex MenuItem
1433 status collapsed
1434
1435 \begin_layout Plain Layout
1436 閲覧プログラム
1437 \end_layout
1438
1439 \end_inset
1440
1441
1442 \begin_inset Flex MenuItem
1443 status collapsed
1444
1445 \begin_layout Plain Layout
1446 編集プログラム
1447 \end_layout
1448
1449 \end_inset
1450
1451 を関連づけることができます。たとえば、PostScriptファイルを閲覧するのに
1452 \begin_inset Flex MenuItem
1453 status collapsed
1454
1455 \begin_layout Plain Layout
1456 Ghostview
1457 \end_layout
1458
1459 \end_inset
1460
1461 を使用したいとしましょう。このプログラムを起動するのに必要なコマンドを対応するフィールドに入力します。ここで、コマンドを定義するのに、次節に掲げる4つの変数を用
1462 いることができます。この閲覧プログラムは、LyX中で画像を閲覧したり
1463 \begin_inset Flex MenuItem
1464 status collapsed
1465
1466 \begin_layout Plain Layout
1467 表示
1468 \end_layout
1469
1470 \end_inset
1471
1472 メニューを使用したときに起動されます。一方、編集プログラムは、たとえば、画像を右クリックして現れるコンテクストメニューで
1473 \begin_inset Flex MenuItem
1474 status collapsed
1475
1476 \begin_layout Plain Layout
1477 外部で編集
1478 \end_layout
1479
1480 \end_inset
1481
1482 を選択したときに起動します。
1483 \end_layout
1484
1485 \begin_layout Standard
1486 \begin_inset Flex MenuItem
1487 status collapsed
1488
1489 \begin_layout Plain Layout
1490 文書書式
1491 \end_layout
1492
1493 \end_inset
1494
1495 オプションは、LyXに、この書式が文書として書き出すのに適していることを指示するものです。このオプションが有効となっていて、適切な変換経路が存在する場合には(第
1496 \begin_inset CommandInset ref
1497 LatexCommand ref
1498 reference "sec:変換子"
1499
1500 \end_inset
1501
1502 節を参照)、この書式が
1503 \begin_inset Flex MenuItem
1504 status collapsed
1505
1506 \begin_layout Plain Layout
1507 ファイル\SpecialChar \menuseparator
1508 書き出し
1509 \end_layout
1510
1511 \end_inset
1512
1513 メニューに表示されます。また、この書式に閲覧プログラムが指定されている場合には、この書式は
1514 \begin_inset Flex MenuItem
1515 status collapsed
1516
1517 \begin_layout Plain Layout
1518 表示
1519 \end_layout
1520
1521 \end_inset
1522
1523 メニューにも表示されます。
1524 \begin_inset Flex Code
1525 status collapsed
1526
1527 \begin_layout Plain Layout
1528 png
1529 \end_layout
1530
1531 \end_inset
1532
1533 のような純粋な画像書式は、このオプションを有効にしてはいけません。
1534 \begin_inset Flex Code
1535 status collapsed
1536
1537 \begin_layout Plain Layout
1538 pdf
1539 \end_layout
1540
1541 \end_inset
1542
1543 のようにベクター画像であると同時に文書でもあるような書式は、これを有効にします。
1544 \end_layout
1545
1546 \begin_layout Standard
1547 \begin_inset Flex MenuItem
1548 status collapsed
1549
1550 \begin_layout Plain Layout
1551 ベクター画像書式
1552 \end_layout
1553
1554 \end_inset
1555
1556 オプションは、LyXにこの書式がベクター画像を含みうることを教示するものです。この情報は、
1557 \begin_inset Flex MenuItem
1558 status collapsed
1559
1560 \begin_layout Plain Layout
1561 pdflatex
1562 \end_layout
1563
1564 \end_inset
1565
1566 を書き出す際に、内包されている画像をどの書式に変換するかを決定するのに使用されます。
1567 \begin_inset Flex MenuItem
1568 status collapsed
1569
1570 \begin_layout Plain Layout
1571 pdflatex
1572 \end_layout
1573
1574 \end_inset
1575
1576 は、
1577 \begin_inset Flex MenuItem
1578 status collapsed
1579
1580 \begin_layout Plain Layout
1581 pdf
1582 \end_layout
1583
1584 \end_inset
1585
1586
1587 \begin_inset Flex MenuItem
1588 status collapsed
1589
1590 \begin_layout Plain Layout
1591 png
1592 \end_layout
1593
1594 \end_inset
1595
1596
1597 \begin_inset Flex MenuItem
1598 status collapsed
1599
1600 \begin_layout Plain Layout
1601 jpg
1602 \end_layout
1603
1604 \end_inset
1605
1606 以外の画像書式を取り扱うことができないので、内包されている画像は、これらの書式に変換される必要があるかもしれない為です。内包されている画像が既に
1607 \begin_inset Flex MenuItem
1608 status collapsed
1609
1610 \begin_layout Plain Layout
1611 pdf
1612 \end_layout
1613
1614 \end_inset
1615
1616
1617 \begin_inset Flex MenuItem
1618 status collapsed
1619
1620 \begin_layout Plain Layout
1621 png
1622 \end_layout
1623
1624 \end_inset
1625
1626
1627 \begin_inset Flex MenuItem
1628 status collapsed
1629
1630 \begin_layout Plain Layout
1631 jpg
1632 \end_layout
1633
1634 \end_inset
1635
1636 のいずれかになっていない場合には、ベクター画像書式オプションが有効になっている場合には
1637 \begin_inset Flex MenuItem
1638 status collapsed
1639
1640 \begin_layout Plain Layout
1641 pdf
1642 \end_layout
1643
1644 \end_inset
1645
1646 に変換され、そうでない場合には
1647 \begin_inset Flex MenuItem
1648 status collapsed
1649
1650 \begin_layout Plain Layout
1651 png
1652 \end_layout
1653
1654 \end_inset
1655
1656 に変換されます。
1657 \end_layout
1658
1659 \begin_layout Section
1660 複写子
1661 \end_layout
1662
1663 \begin_layout Standard
1664 書式の変換はすべて、LyXの一時ディレクトリで行われるため、変換用にファイルを一時ディレクトリにコピーする前段階で、ファイルに変更を加える必要のあることがありま
1665
1666 \begin_inset Foot
1667 status collapsed
1668
1669 \begin_layout Plain Layout
1670 たとえば、ファイルが他のファイル—たとえば画像—を、相対ファイル名を用いて参照している場合、このファイルが一時ディレクトリにコピーされると参照が無効になる場合が
1671 あります。
1672 \end_layout
1673
1674 \end_inset
1675
1676 。これは複写子によって取り扱われ、複写子は、ファイルを一時ディレクトリに(あるいは一時ディレクトリから)コピーすると同時に、その過程でファイルに変更を加えます。
1677 \end_layout
1678
1679 \begin_layout Standard
1680 複写子の定義においては、以下の4つの変数を用いることができます。
1681 \end_layout
1682
1683 \begin_layout Labeling
1684 \labelwidthstring 00.00.0000
1685 \begin_inset Flex Code
1686 status collapsed
1687
1688 \begin_layout Plain Layout
1689 $$s
1690 \end_layout
1691
1692 \end_inset
1693
1694  LyXのシステムディレクトリ(例:
1695 \begin_inset Flex MenuItem
1696 status collapsed
1697
1698 \begin_layout Plain Layout
1699 /usr/share/lyx
1700 \end_layout
1701
1702 \end_inset
1703
1704
1705 \end_layout
1706
1707 \begin_layout Labeling
1708 \labelwidthstring 00.00.0000
1709 \begin_inset Flex Code
1710 status collapsed
1711
1712 \begin_layout Plain Layout
1713 $$i
1714 \end_layout
1715
1716 \end_inset
1717
1718  入力ファイル
1719 \end_layout
1720
1721 \begin_layout Labeling
1722 \labelwidthstring 00.00.0000
1723 \begin_inset Flex Code
1724 status collapsed
1725
1726 \begin_layout Plain Layout
1727 $$o
1728 \end_layout
1729
1730 \end_inset
1731
1732  出力ファイル
1733 \end_layout
1734
1735 \begin_layout Labeling
1736 \labelwidthstring 00.00.0000
1737 \begin_inset Flex Code
1738 status collapsed
1739
1740 \begin_layout Plain Layout
1741 $$l
1742 \end_layout
1743
1744 \end_inset
1745
1746  「LaTeX名」
1747 \end_layout
1748
1749 \begin_layout Standard
1750 最後の変数は、LaTeXの
1751 \series bold
1752
1753 \backslash
1754 include
1755 \series default
1756 コマンドで使用されるのと同形式のファイル名です。これは、書き出すファイルがそのようなインクルードに適している場合のみ、使用さるべきものです。
1757 \end_layout
1758
1759 \begin_layout Standard
1760 複写子は、出力ファイルに関する操作であれば、ほとんどすべてに対応することができます。たとえば、生成したPDFファイルを、
1761 \begin_inset Flex Code
1762 status collapsed
1763
1764 \begin_layout Plain Layout
1765 /home/you/pdf/
1766 \end_layout
1767
1768 \end_inset
1769
1770 という特別なディレクトリにコピーしたいものとしましょう。その場合には、以下のようなシェルスクリプトを書きます。
1771 \end_layout
1772
1773 \begin_layout Standard
1774 \begin_inset listings
1775 inline false
1776 status open
1777
1778 \begin_layout Plain Layout
1779
1780 #!/bin/bash
1781 \end_layout
1782
1783 \begin_layout Plain Layout
1784
1785 FROMFILE=$1
1786 \end_layout
1787
1788 \begin_layout Plain Layout
1789
1790 TOFILE=`basename $2`
1791 \end_layout
1792
1793 \begin_layout Plain Layout
1794
1795 cp $FROMFILE /home/you/pdf/$TOFILE
1796 \end_layout
1797
1798 \end_inset
1799
1800 これを、自身のローカルLyXディレクトリ—たとえば
1801 \begin_inset Flex Code
1802 status collapsed
1803
1804 \begin_layout Plain Layout
1805 /home/you/.lyx/scripts/pdfcopier.sh
1806 \end_layout
1807
1808 \end_inset
1809
1810 —に保存し、お使いのプラットフォームが必要とするならば、実行可能属性を付与します。それから、
1811 \begin_inset Flex MenuItem
1812 status collapsed
1813
1814 \begin_layout Plain Layout
1815 ツール\SpecialChar \menuseparator
1816 設定
1817 \end_layout
1818
1819 \end_inset
1820
1821 ダイアログの
1822 \begin_inset Flex MenuItem
1823 status collapsed
1824
1825 \begin_layout Plain Layout
1826 ファイル処理\SpecialChar \menuseparator
1827 ファイル書式
1828 \end_layout
1829
1830 \end_inset
1831
1832 の中で、
1833 \begin_inset Flex MenuItem
1834 status collapsed
1835
1836 \begin_layout Plain Layout
1837 PDF(pdflatex)
1838 \end_layout
1839
1840 \end_inset
1841
1842 書式—あるいは他のPDF書式のうちどれか—を選択し、
1843 \begin_inset Flex MenuItem
1844 status collapsed
1845
1846 \begin_layout Plain Layout
1847 複写子
1848 \end_layout
1849
1850 \end_inset
1851
1852 フィールドに
1853 \begin_inset Flex Code
1854 status collapsed
1855
1856 \begin_layout Plain Layout
1857 pdfcopier.sh $$i $$o
1858 \end_layout
1859
1860 \end_inset
1861
1862 と入力します。
1863 \end_layout
1864
1865 \begin_layout Standard
1866 複写子は、LyX自身が様々な変換に使用します。たとえば、適切なプログラムが検出された場合、LyXは自動的に
1867 \begin_inset Flex MenuItem
1868 status collapsed
1869
1870 \begin_layout Plain Layout
1871 HTML
1872 \end_layout
1873
1874 \end_inset
1875
1876 書式と
1877 \begin_inset Flex MenuItem
1878 status collapsed
1879
1880 \begin_layout Plain Layout
1881 HTML
1882 \begin_inset space ~
1883 \end_inset
1884
1885 (MS Word)
1886 \end_layout
1887
1888 \end_inset
1889
1890 書式の複写子を導入します。これらの書式を書き出す際、複写子は、本体のHTMLファイルだけでなく、関連した様々なファイル(スタイルファイルや画像など)もコピーされ
1891 るように手配します。これらのファイルはすべて、元のLyXファイルのあるディレクトリのサブディレクトリに書き込まれます
1892 \begin_inset Foot
1893 status collapsed
1894
1895 \begin_layout Plain Layout
1896 この複写子の挙動は調整することができます。非必須の「-e」オプションは、コピーする拡張子をコンマ区切りで羅列したものを引数にとります。これを省略した場合には、す
1897 べてのファイルがコピーされます。「-t」引数は、生成したディレクトリに書き加える拡張子を指定するものです。既定値では、これは「
1898 \begin_inset Flex MenuItem
1899 status collapsed
1900
1901 \begin_layout Plain Layout
1902 L
1903 \begin_inset ERT
1904 status collapsed
1905
1906 \begin_layout Plain Layout
1907
1908 {}
1909 \end_layout
1910
1911 \end_inset
1912
1913 yXconv
1914 \end_layout
1915
1916 \end_inset
1917
1918 」となっているので、
1919 \begin_inset Flex MenuItem
1920 status collapsed
1921
1922 \begin_layout Plain Layout
1923 /path/to/filename.lyx
1924 \end_layout
1925
1926 \end_inset
1927
1928 から生成されたHTMLファイルは、
1929 \begin_inset Flex MenuItem
1930 status collapsed
1931
1932 \begin_layout Plain Layout
1933 /path/to/filename.html.L
1934 \begin_inset ERT
1935 status collapsed
1936
1937 \begin_layout Plain Layout
1938
1939 {}
1940 \end_layout
1941
1942 \end_inset
1943
1944 yXconv
1945 \end_layout
1946
1947 \end_inset
1948
1949 となります。.
1950  
1951 \end_layout
1952
1953 \end_inset
1954
1955
1956 \end_layout
1957
1958 \begin_layout Section
1959 変換子
1960 \begin_inset CommandInset label
1961 LatexCommand label
1962 name "sec:変換子"
1963
1964 \end_inset
1965
1966
1967 \end_layout
1968
1969 \begin_layout Standard
1970 各書式間でファイルを変換するために、ご自身の変換子を定義することができます。これは、
1971 \begin_inset Flex MenuItem
1972 status collapsed
1973
1974 \begin_layout Plain Layout
1975 ツール\SpecialChar \menuseparator
1976 設定\SpecialChar \menuseparator
1977 ファイル処理\SpecialChar \menuseparator
1978 変換子
1979 \end_layout
1980
1981 \end_inset
1982
1983 ダイアログで行います。
1984 \end_layout
1985
1986 \begin_layout Standard
1987 新規に変換子を定義するには、ドロップダウンリストから
1988 \begin_inset Flex MenuItem
1989 status collapsed
1990
1991 \begin_layout Plain Layout
1992 変換元の書式
1993 \end_layout
1994
1995 \end_inset
1996
1997
1998 \begin_inset Flex MenuItem
1999 status collapsed
2000
2001 \begin_layout Plain Layout
2002 変換先の書式
2003 \end_layout
2004
2005 \end_inset
2006
2007 を選択し、変換に必要なコマンドを入力してから
2008 \begin_inset Flex MenuItem
2009 status collapsed
2010
2011 \begin_layout Plain Layout
2012 追加
2013 \end_layout
2014
2015 \end_inset
2016
2017 ボタンを押してください。変換子の定義には、以下のような変数を使用することができます。
2018 \end_layout
2019
2020 \begin_layout Labeling
2021 \labelwidthstring 00.00.0000
2022 \begin_inset Flex Code
2023 status collapsed
2024
2025 \begin_layout Plain Layout
2026 $$s
2027 \end_layout
2028
2029 \end_inset
2030
2031  LyXシステムディレクトリ
2032 \end_layout
2033
2034 \begin_layout Labeling
2035 \labelwidthstring 00.00.0000
2036 \begin_inset Flex Code
2037 status collapsed
2038
2039 \begin_layout Plain Layout
2040 $$i
2041 \end_layout
2042
2043 \end_inset
2044
2045  入力ファイル
2046 \end_layout
2047
2048 \begin_layout Labeling
2049 \labelwidthstring 00.00.0000
2050 \begin_inset Flex Code
2051 status collapsed
2052
2053 \begin_layout Plain Layout
2054 $$o
2055 \end_layout
2056
2057 \end_inset
2058
2059  出力ファイル
2060 \end_layout
2061
2062 \begin_layout Labeling
2063 \labelwidthstring 00.00.0000
2064 \begin_inset Flex Code
2065 status collapsed
2066
2067 \begin_layout Plain Layout
2068 $$b
2069 \end_layout
2070
2071 \end_inset
2072
2073  入力ファイルのベースファイル名(拡張子をとった部分)
2074 \end_layout
2075
2076 \begin_layout Labeling
2077 \labelwidthstring 00.00.0000
2078 \begin_inset Flex Code
2079 status collapsed
2080
2081 \begin_layout Plain Layout
2082 $$p
2083 \end_layout
2084
2085 \end_inset
2086
2087  入力ファイルのパス
2088 \end_layout
2089
2090 \begin_layout Labeling
2091 \labelwidthstring 00.00.0000
2092 \begin_inset Flex Code
2093 status collapsed
2094
2095 \begin_layout Plain Layout
2096 $$r
2097 \end_layout
2098
2099 \end_inset
2100
2101  元の入力ファイルのパス(変換子が連鎖して呼び出されたときの挙動が$$pとは異なります)
2102 \end_layout
2103
2104 \begin_layout Labeling
2105 \labelwidthstring 00.00.0000
2106 \begin_inset Flex Code
2107 status collapsed
2108
2109 \begin_layout Plain Layout
2110 $$e
2111 \end_layout
2112
2113 \end_inset
2114
2115  文書エンコーディングのiconv名
2116 \end_layout
2117
2118 \begin_layout Standard
2119 \begin_inset Flex MenuItem
2120 status collapsed
2121
2122 \begin_layout Plain Layout
2123 追加フラグ
2124 \end_layout
2125
2126 \end_inset
2127
2128 フィールドには、以下のフラグをコンマで区切って入力することができます。
2129 \end_layout
2130
2131 \begin_layout Labeling
2132 \labelwidthstring 00.00.0000
2133 \begin_inset Flex Code
2134 status collapsed
2135
2136 \begin_layout Plain Layout
2137 latex
2138 \end_layout
2139
2140 \end_inset
2141
2142  この変換子がLaTeXの一種を実行することを示します。これによって、LyXのLaTeXエラーログに記録を残せるようになります。
2143 \end_layout
2144
2145 \begin_layout Labeling
2146 \labelwidthstring 00.00.0000
2147 \begin_inset Flex Code
2148 status collapsed
2149
2150 \begin_layout Plain Layout
2151 needaux
2152 \end_layout
2153
2154 \end_inset
2155
2156  変換にLaTeXの
2157 \begin_inset Flex MenuItem
2158 status collapsed
2159
2160 \begin_layout Plain Layout
2161 .aux
2162 \end_layout
2163
2164 \end_inset
2165
2166 ファイルが必要であることを示します。
2167 \end_layout
2168
2169 \begin_layout Labeling
2170 \labelwidthstring 00.00.0000
2171 \begin_inset Flex Code
2172 status collapsed
2173
2174 \begin_layout Plain Layout
2175 xml
2176 \end_layout
2177
2178 \end_inset
2179
2180  出力がXMLであることを示します。
2181 \end_layout
2182
2183 \begin_layout Standard
2184 以下の3つのフラグは 
2185 \begin_inset Flex MenuItem
2186 status collapsed
2187
2188 \begin_layout Plain Layout
2189 key
2190 \begin_inset space ~
2191 \end_inset
2192
2193 =
2194 \begin_inset space ~
2195 \end_inset
2196
2197 value
2198 \end_layout
2199
2200 \end_inset
2201
2202 形式の引数をとります(したがって厳密にはフラグとは呼べません)。
2203 \end_layout
2204
2205 \begin_layout Labeling
2206 \labelwidthstring 00.00.0000
2207 \begin_inset Flex Code
2208 status collapsed
2209
2210 \begin_layout Plain Layout
2211 parselog
2212 \end_layout
2213
2214 \end_inset
2215
2216  これを指定すると、変換子の標準エラーが
2217 \begin_inset Flex Code
2218 status collapsed
2219
2220 \begin_layout Plain Layout
2221 infile.out
2222 \end_layout
2223
2224 \end_inset
2225
2226 ファイルにリダイレクトされ、引数に指定されたスクリプトが
2227 \begin_inset Flex Code
2228 status collapsed
2229
2230 \begin_layout Plain Layout
2231 script < infile.out > infile.log
2232 \end_layout
2233
2234 \end_inset
2235
2236 の形で実行されるようになります。引数には
2237 \begin_inset Flex Code
2238 status collapsed
2239
2240 \begin_layout Plain Layout
2241 $$s
2242 \end_layout
2243
2244 \end_inset
2245
2246 を指定することができます。
2247 \end_layout
2248
2249 \begin_layout Labeling
2250 \labelwidthstring 00.00.0000
2251 \begin_inset Flex Code
2252 status collapsed
2253
2254 \begin_layout Plain Layout
2255 resultdir
2256 \end_layout
2257
2258 \end_inset
2259
2260  これには、変換子が生成したファイルをダンプするディレクトリ名を指定します。LyXはこのディレクトリを作成せず、ここに何もコピーしませんが、このディレクトリを宛
2261 先にコピーします。引数には、
2262 \begin_inset Flex Code
2263 status collapsed
2264
2265 \begin_layout Plain Layout
2266 $$b
2267 \end_layout
2268
2269 \end_inset
2270
2271 を使用することができ、これはディレクトリがコピーされる際に、入力ファイルおよび出力ファイルのベース名で置換されます。
2272 \begin_inset Newline newline
2273 \end_inset
2274
2275 resultdirとusetempdirは、同時に用いることはできませんのでご注意ください。前者が指定されているときには、後者は無視されます。
2276 \end_layout
2277
2278 \begin_layout Labeling
2279 \labelwidthstring 00.00.0000
2280 \begin_inset Flex Code
2281 status collapsed
2282
2283 \begin_layout Plain Layout
2284 resultfile
2285 \end_layout
2286
2287 \end_inset
2288
2289  これは出力ファイル名を指定するもので、
2290 \begin_inset Flex Code
2291 status collapsed
2292
2293 \begin_layout Plain Layout
2294 $$b
2295 \end_layout
2296
2297 \end_inset
2298
2299 を使用することができます。resultdirが指定されているときのみ有効で、必ず用いる必要はありません。指定されていなければ、既定値は「index」です。
2300 \end_layout
2301
2302 \begin_layout Standard
2303 最後の3つは、LyXとともに導入される変換子には、現在いずれも使用されておりません。
2304 \end_layout
2305
2306 \begin_layout Standard
2307 変換しようとするすべての書式のあいだに変換子を定義する必要はありません。たとえば、「LyXからPostScript」変換子が定義されていないのに、LyXはPos
2308 tScriptを書き出していることに気づかれることでしょう。これは、まずLaTeXファイルを生成した後に(これには変換子を定義する必要はありません)、「LaTe
2309 XからDVI」変換子を使用してDVIに変換し、最後に、得られたDVIをPostScriptに変換することによって実現しています。LyXはこのような変換子の「連鎖
2310 」を自動的に見つけ、つねに最も短い連鎖を選択します。しかしながら、なお書式間に複数の変換方法を定義することも可能です。たとえば、標準的なLyX設定は、LaTeX
2311 からPDFへ変換するのに、以下の3つの方法を用意しています。(1)
2312 \begin_inset space ~
2313 \end_inset
2314
2315 直接
2316 \begin_inset Flex MenuItem
2317 status collapsed
2318
2319 \begin_layout Plain Layout
2320 pdflatex
2321 \end_layout
2322
2323 \end_inset
2324
2325 を使用するもの。(2)
2326 \begin_inset space ~
2327 \end_inset
2328
2329 (DVIと)PostScriptを経由して
2330 \begin_inset Flex MenuItem
2331 status collapsed
2332
2333 \begin_layout Plain Layout
2334 ps2pdf
2335 \end_layout
2336
2337 \end_inset
2338
2339 を使用するもの。(3)
2340 \begin_inset space ~
2341 \end_inset
2342
2343 DVI経由で
2344 \begin_inset Flex MenuItem
2345 status collapsed
2346
2347 \begin_layout Plain Layout
2348 dvipdfm
2349 \end_layout
2350
2351 \end_inset
2352
2353 を使用するもの。このように代替連鎖を定義するには、第
2354 \begin_inset CommandInset ref
2355 LatexCommand ref
2356 reference "sec:書式"
2357
2358 \end_inset
2359
2360 節に述べられているように、ターゲットとなる「ファイル書式」を複数定義しなくてはなりません。たとえば、標準設定では、
2361 \begin_inset Flex MenuItem
2362 status collapsed
2363
2364 \begin_layout Plain Layout
2365 pdf
2366 \end_layout
2367
2368 \end_inset
2369
2370
2371 \begin_inset Flex MenuItem
2372 status collapsed
2373
2374 \begin_layout Plain Layout
2375 pdf2
2376 \end_layout
2377
2378 \end_inset
2379
2380
2381 \begin_inset Flex MenuItem
2382 status collapsed
2383
2384 \begin_layout Plain Layout
2385 pdf3
2386 \end_layout
2387
2388 \end_inset
2389
2390 と命名された書式が定義されていて、すべて共通の拡張子
2391 \begin_inset Flex MenuItem
2392 status collapsed
2393
2394 \begin_layout Plain Layout
2395 .pdf
2396 \end_layout
2397
2398 \end_inset
2399
2400 を持ち、上記で言及した各変換方法に対応しています。
2401 \end_layout
2402
2403 \begin_layout Chapter
2404 LyXの各国語対応
2405 \begin_inset CommandInset label
2406 LatexCommand label
2407 name "cha:LyXの各国語対応"
2408
2409 \end_inset
2410
2411
2412 \end_layout
2413
2414 \begin_layout Standard
2415 LyXは、翻訳された操作画面の利用をサポートしています。私たちが最後に確かめたところでは、LyXは30言語の翻訳を提供しています。選択した言語は、使用する
2416 \emph on
2417 ロケール
2418 \emph default
2419 と呼ばれます(ロケール設定についての詳しい資料は、お使いの基本ソフトに添付のロケール関連説明書をご覧ください。Linuxの場合は、マニュアルページの
2420 \begin_inset Flex Code
2421 status collapsed
2422
2423 \begin_layout Plain Layout
2424 locale(5)
2425 \end_layout
2426
2427 \end_inset
2428
2429 から見ると良いかもしれません)。
2430 \end_layout
2431
2432 \begin_layout Standard
2433 これらの翻訳は適切に機能しますが、欠点もいくつかあることに注意してください。たとえば、ダイアログはすべて英文を念頭にデザインされているため、翻訳文の一部は、割り
2434 当てられたスペースに収めるには大きすぎるかもしれません。これは表示上の問題に過ぎず、他の障害は引き起こしません。また、翻訳によっては、すべての短絡キーが定義され
2435 ていないことに気づかれるでしょう。短絡キーのために空いている文字が十分ないことが時々あるのです。単に翻訳者がまだ短絡キーを定義していないこともあるでしょう。もち
2436 ろん、私たちの各国語対応チーム—あなたも参加したいと思われるかもしれません
2437 \begin_inset Foot
2438 status collapsed
2439
2440 \begin_layout Plain Layout
2441 もしあなたが英語以外の言語を流暢に操れるならば、これらのチームに参加することは、LyXコミュニティに報いるたいへん素晴らしい方法です!
2442 \end_layout
2443
2444 \end_inset
2445
2446 —は、LyXの将来のバージョンでこれらの欠点を修正しようとするでしょう。
2447 \end_layout
2448
2449 \begin_layout Section
2450 LyXを翻訳する
2451 \end_layout
2452
2453 \begin_layout Subsection
2454 グラフィカル・ユーザ・インタフェース(テキスト・メッセージ)を翻訳する
2455 \begin_inset Argument
2456 status collapsed
2457
2458 \begin_layout Plain Layout
2459 GUI(テキストメッセージ)を翻訳する
2460 \end_layout
2461
2462 \end_inset
2463
2464
2465 \end_layout
2466
2467 \begin_layout Standard
2468 LyXは、操作画面の国際化対応にGNU 
2469 \begin_inset Flex Code
2470 status collapsed
2471
2472 \begin_layout Plain Layout
2473 gettext
2474 \end_layout
2475
2476 \end_inset
2477
2478 ライブラリを使用します。LyXのすべてのメニューやダイアログでお好みの言語を話させたいときには、その言語の
2479 \begin_inset Flex Code
2480 status collapsed
2481
2482 \begin_layout Plain Layout
2483 po
2484 \end_layout
2485
2486 \end_inset
2487
2488 ファイルが必要です。このファイルが利用可能であれば、そこから
2489 \begin_inset Flex Code
2490 status collapsed
2491
2492 \begin_layout Plain Layout
2493 mo
2494 \end_layout
2495
2496 \end_inset
2497
2498 ファイルを生成して、この
2499 \begin_inset Flex Code
2500 status collapsed
2501
2502 \begin_layout Plain Layout
2503 mo
2504 \end_layout
2505
2506 \end_inset
2507
2508 ファイルをインストールしなくてはなりません。この全過程は、GNU 
2509 \begin_inset Flex Code
2510 status collapsed
2511
2512 \begin_layout Plain Layout
2513 gettext
2514 \end_layout
2515
2516 \end_inset
2517
2518 の取扱説明書に説明があります。この作業をあなたのためだけに行うこともできますが、もしせっかくするのであれば、あなたの骨折りの結果をLyXコミュニティの他の人々と
2519 分かち合いませんか。どのように段取りを進めればよいか、詳しくはLyX開発者メーリングリストにメールを送ってください。
2520 \end_layout
2521
2522 \begin_layout Standard
2523 要約すれば、以下のように行います(xxは言語コードを表します)。
2524 \end_layout
2525
2526 \begin_layout Itemize
2527 LyXソースコードをチェックアウトしてください(
2528 \begin_inset CommandInset href
2529 LatexCommand href
2530 name "ウェブ上の情報"
2531 target "http://www.lyx.org/devel/cvs.php"
2532
2533 \end_inset
2534
2535 参照)。
2536 \end_layout
2537
2538 \begin_layout Itemize
2539 \begin_inset Flex Code
2540 status collapsed
2541
2542 \begin_layout Plain Layout
2543 lyx.pot
2544 \end_layout
2545
2546 \end_inset
2547
2548 ファイルを
2549 \begin_inset Flex Code
2550 status collapsed
2551
2552 \begin_layout Plain Layout
2553 **.po
2554 \end_layout
2555
2556 \end_inset
2557
2558 ファイルのあるフォルダにコピーして、
2559 \begin_inset Flex Code
2560 status collapsed
2561
2562 \begin_layout Plain Layout
2563 xx.po
2564 \end_layout
2565
2566 \end_inset
2567
2568 に名前を付け替えてください(
2569 \begin_inset Flex Code
2570 status collapsed
2571
2572 \begin_layout Plain Layout
2573 lyx.pot
2574 \end_layout
2575
2576 \end_inset
2577
2578 がどこにもない場合には、コンソールからそのディレクトリで
2579 \begin_inset Flex Code
2580 status collapsed
2581
2582 \begin_layout Plain Layout
2583 make lyx.pot
2584 \end_layout
2585
2586 \end_inset
2587
2588 コマンドを実行し、作成し直すか、他言語の既存のpoファイルをひな型として使用することができます)。
2589 \end_layout
2590
2591 \begin_layout Itemize
2592 \begin_inset Flex Code
2593 status collapsed
2594
2595 \begin_layout Plain Layout
2596 xx.po
2597 \end_layout
2598
2599 \end_inset
2600
2601 を編集します
2602 \begin_inset Foot
2603 status collapsed
2604
2605 \begin_layout Plain Layout
2606 これは単なるテキストファイルなので、どのテキストエディタでも編集できます。しかし、
2607 \family typewriter
2608 Poedit
2609 \family default
2610 (全プラットフォーム用)や
2611 \family typewriter
2612 KBabel
2613 \family default
2614 (KDE用)のように、この目的の編集をサポートする特別なプログラムがあります。
2615 \family typewriter
2616 Emacs
2617 \family default
2618 にも
2619 \begin_inset Flex Code
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623 po
2624 \end_layout
2625
2626 \end_inset
2627
2628 ファイルを編集するための「モード」があります。
2629 \end_layout
2630
2631 \end_inset
2632
2633 。メニューラベルやウィジェットラベルのうちには、翻訳しなくてはならない短絡キーがある場合があります。これらのキーは「|」の後に記されており、当該言語の単語やフレ
2634 ーズに対応して翻訳しなくてはなりません。さらに、新しい
2635 \begin_inset Flex Code
2636 status collapsed
2637
2638 \begin_layout Plain Layout
2639 po
2640 \end_layout
2641
2642 \end_inset
2643
2644 ファイルの冒頭に、あなたの電子メールアドレスなどの情報も書き加えて、人々があなたに提案や、滑稽な怒りのメッセージを届けることができるようにしてください。
2645 \end_layout
2646
2647 \begin_layout Standard
2648 もし、あなたがこれを自身のためだけに行っているのであれば、
2649 \end_layout
2650
2651 \begin_layout Itemize
2652 \begin_inset Flex Code
2653 status collapsed
2654
2655 \begin_layout Plain Layout
2656 xx.mo
2657 \end_layout
2658
2659 \end_inset
2660
2661 を生成してください。これは
2662 \begin_inset Flex Code
2663 status collapsed
2664
2665 \begin_layout Plain Layout
2666 msgfmt -o xx.mo < xx.po
2667 \end_layout
2668
2669 \end_inset
2670
2671 でできます。
2672 \end_layout
2673
2674 \begin_layout Itemize
2675 この
2676 \begin_inset Flex Code
2677 status collapsed
2678
2679 \begin_layout Plain Layout
2680 mo
2681 \end_layout
2682
2683 \end_inset
2684
2685 ファイルを、お使いのロケールツリー中、言語xxのアプリケーションメッセージ用の正式なディレクトリにコピーして、
2686 \begin_inset Flex Code
2687 status collapsed
2688
2689 \begin_layout Plain Layout
2690 lyx.mo
2691 \end_layout
2692
2693 \end_inset
2694
2695 という名称にしてください(例:
2696 \begin_inset Flex Code
2697 status collapsed
2698
2699 \begin_layout Plain Layout
2700 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
2701 \end_layout
2702
2703 \end_inset
2704
2705 )。
2706 \end_layout
2707
2708 \begin_layout Standard
2709 しかしながら前述のように、この新しい
2710 \begin_inset Flex Code
2711 status collapsed
2712
2713 \begin_layout Plain Layout
2714 po
2715 \end_layout
2716
2717 \end_inset
2718
2719 ファイルを他の人たちが使用できるよう、LyX頒布版に追加できることが最善です。これを追加するには、LyXに変更を加える必要がありますので、もしその気があれば、開
2720 発者メーリングリストに電子メールを送ってください。
2721 \end_layout
2722
2723 \begin_layout Subsubsection
2724 多義訳語メッセージ
2725 \end_layout
2726
2727 \begin_layout Standard
2728 時には、一つの英語のメッセージが、翻訳先の言語では複数のメッセージに翻訳されなくてはならないことが判明することがあります。一つの例は、
2729 \begin_inset Flex Code
2730 status collapsed
2731
2732 \begin_layout Plain Layout
2733 To
2734 \end_layout
2735
2736 \end_inset
2737
2738 というメッセージで、これは英語で「to」がどういう意味を持っているかによって、独語ではNachと訳されたりBisと訳されたりします。GNU 
2739 \begin_inset Flex Code
2740 status collapsed
2741
2742 \begin_layout Plain Layout
2743 gettext
2744 \end_layout
2745
2746 \end_inset
2747
2748 は、このような多義訳語を
2749 \begin_inset Flex Code
2750 status collapsed
2751
2752 \begin_layout Plain Layout
2753 To
2754 \end_layout
2755
2756 \end_inset
2757
2758 の代わりに、
2759 \begin_inset Flex Code
2760 status collapsed
2761
2762 \begin_layout Plain Layout
2763 To[[as in 'From format x to format y']]
2764 \end_layout
2765
2766 \end_inset
2767
2768
2769 \begin_inset Flex Code
2770 status collapsed
2771
2772 \begin_layout Plain Layout
2773 To[[as in 'From page x to page y']]
2774 \end_layout
2775
2776 \end_inset
2777
2778 としなくてはなりません。これによって、これら2つの
2779 \begin_inset Flex Code
2780 status collapsed
2781
2782 \begin_layout Plain Layout
2783 To
2784 \end_layout
2785
2786 \end_inset
2787
2788 は、
2789 \begin_inset Flex Code
2790 status collapsed
2791
2792 \begin_layout Plain Layout
2793 gettext
2794 \end_layout
2795
2796 \end_inset
2797
2798 には別物と解釈され、それぞれ正しくNachとBisに訳すことができるようになります。
2799 \end_layout
2800
2801 \begin_layout Standard
2802 もちろん、この文脈情報は、翻訳が存在しないときには取り去られる必要がありますので、メッセージの終わりに二重大括弧で囲わなくてはなりません(上例参照)。LyXの翻
2803 訳機構では、メッセージの終わりに二重大括弧で囲われているものはすべて、メッセージを表示する前に取り去るようにされています。
2804 \end_layout
2805
2806 \begin_layout Subsection
2807 説明書を翻訳する
2808 \end_layout
2809
2810 \begin_layout Standard
2811
2812 \begin_inset Flex MenuItem
2813 status collapsed
2814
2815 \begin_layout Plain Layout
2816 Help
2817 \end_layout
2818
2819 \end_inset
2820
2821 メニュー中の)オンライン説明書は翻訳することができます(そして翻訳されるべきです!)。説明書の翻訳版が利用可能であり
2822 \begin_inset Foot
2823 status collapsed
2824
2825 \begin_layout Plain Layout
2826 2008年3月現在、説明書の少なくとも一部が翻訳されている言語は14言語に上り、入門編が訳されているものはさらにいくつかあります。
2827 \end_layout
2828
2829 \end_inset
2830
2831 、ロケールがその言語に設定されている場合、LyXはこれを自動的に使用します。LyXは、翻訳版を
2832 \begin_inset Flex Code
2833 status collapsed
2834
2835 \begin_layout Plain Layout
2836 L
2837 \begin_inset ERT
2838 status collapsed
2839
2840 \begin_layout Plain Layout
2841
2842 {}
2843 \end_layout
2844
2845 \end_inset
2846
2847 yXDir/doc/xx/DocName.lyx
2848 \end_layout
2849
2850 \end_inset
2851
2852
2853 \begin_inset Flex Code
2854 status collapsed
2855
2856 \begin_layout Plain Layout
2857 xx
2858 \end_layout
2859
2860 \end_inset
2861
2862 は現在使用している言語コード)で探します。翻訳文書がない場合には、既定の英語版が表示されます。翻訳版は、原典と同じファイル名(上述の
2863 \begin_inset Flex Code
2864 status collapsed
2865
2866 \begin_layout Plain Layout
2867 DocName
2868 \end_layout
2869
2870 \end_inset
2871
2872 )を持っていなくてはならないことに注意してください。説明書を翻訳する気がおありであれば(これは原典の校正としてもたいへん役立ちます!)、以下のような点をすぐに行
2873 うべきです。
2874 \end_layout
2875
2876 \begin_layout Itemize
2877 説明書翻訳ウェブページ
2878 \begin_inset CommandInset href
2879 LatexCommand href
2880 name "http://www.lyx.org/Translation"
2881 target "http://www.lyx.org/Translation"
2882
2883 \end_inset
2884
2885 を確認してください。ここで、どの文書が(もしあれば)お使いの言語に既に翻訳されているかを見つけることができます。また、説明書をお使いの言語に翻訳する作業の面倒を
2886 見ている人を(もしいれば)見つけることができます。この作業の面倒を見ている人がいない場合には、私たちにあなたが興味をお持ちであることを知らせてください。
2887 \end_layout
2888
2889 \begin_layout Standard
2890 いったん実際の翻訳の仕事に取りかかったならば、トラブルを回避するいくつかのヒントがあります。
2891 \end_layout
2892
2893 \begin_layout Itemize
2894 文書化チームに所属してください!そのための情報が
2895 \begin_inset Flex Code
2896 status collapsed
2897
2898 \begin_layout Plain Layout
2899 Intro.lyx
2900 \end_layout
2901
2902 \end_inset
2903
2904
2905 \begin_inset Flex MenuItem
2906 status collapsed
2907
2908 \begin_layout Plain Layout
2909 ヘルプ\SpecialChar \menuseparator
2910 はじめの一歩
2911 \end_layout
2912
2913 \end_inset
2914
2915 )にあります。また、この
2916 \begin_inset Flex Code
2917 status collapsed
2918
2919 \begin_layout Plain Layout
2920 Intro.lyx
2921 \end_layout
2922
2923 \end_inset
2924
2925 が最初に訳すべき文書です。
2926 \end_layout
2927
2928 \begin_layout Itemize
2929 翻訳しようとする言語での印刷慣行を学んでください。活版印刷は古来の技術であり、何世紀にもわたって世界の至る所で、様々な慣行を発達させてきました。また、あなたの国
2930 で活版工が用いる専門用語も学んでください。自分で勝手な専門用語を捻出するとユーザを混乱させるだけです。(
2931 \emph on
2932 警告!活版技術は病みつきになる可能性があるので注意してくさい!
2933 \emph default
2934
2935 \end_layout
2936
2937 \begin_layout Itemize
2938 文書のコピーをとってください。これを作業用コピーとします。これをお使いの
2939 \begin_inset Flex Code
2940 status collapsed
2941
2942 \begin_layout Plain Layout
2943 UserDir/doc/xx/
2944 \end_layout
2945
2946 \end_inset
2947
2948 ディレクトリにコピーすれば、個人用の翻訳ヘルプファイルとして使用することができます。
2949 \end_layout
2950
2951 \begin_layout Itemize
2952 (LyXチームが維持している)原典の説明書は、時折更新されます。変更点については、
2953 \begin_inset CommandInset href
2954 LatexCommand href
2955 name "http://www.lyx.org/trac/timeline"
2956 target "http://www.lyx.org/trac/timeline"
2957
2958 \end_inset
2959
2960 のソースビューアでご覧ください。この方法で、翻訳文書のどの部分を更新しなくてはならないか、たやすく見つけることができます。
2961 \end_layout
2962
2963 \begin_layout Standard
2964 もし原典に誤りを見つけたならば、修正して文書化チームの他のメンバーに変更したことを知らせてください(文書化チームに参加することをお忘れになっていませんよね)。
2965 \end_layout
2966
2967 \begin_layout Standard
2968 \begin_inset Branch OutDated
2969 status collapsed
2970
2971 \begin_layout Section
2972 International Keyboard Support
2973 \end_layout
2974
2975 \begin_layout Standard
2976
2977 \emph on
2978 [Editor's Note: The following section is by
2979 \emph default
2980  
2981 \shape smallcaps
2982 \emph on
2983 Ivan Schreter
2984 \shape default
2985 .
2986  It needs to be fixed to conform to the new Documentation Style sheet and
2987  to make use of the new v1.0 features.
2988  The whole thing also needs to be merged with the section following it.-jw
2989  It may also be badly out of date.-rh (2008)]
2990 \end_layout
2991
2992 \begin_layout Subsection
2993 Defining Own Keymaps: Keymap File Format
2994 \end_layout
2995
2996 \begin_layout Standard
2997 Let's look at a keyboard definition file a little closer.
2998  It is a plain text file defining
2999 \end_layout
3000
3001 \begin_layout Itemize
3002 key-to-key or key-to-string translations
3003 \end_layout
3004
3005 \begin_layout Itemize
3006 dead keys
3007 \end_layout
3008
3009 \begin_layout Itemize
3010 dead keys exceptions
3011 \end_layout
3012
3013 \begin_layout Standard
3014 To define key-to-key or key-to-string translation, use this command:
3015 \end_layout
3016
3017 \begin_layout Quotation
3018 \begin_inset Flex Code
3019 status collapsed
3020
3021 \begin_layout Plain Layout
3022
3023 \backslash
3024 kmap
3025 \end_layout
3026
3027 \end_inset
3028
3029  
3030 \begin_inset Flex Code
3031 status collapsed
3032
3033 \begin_layout Plain Layout
3034 key
3035 \end_layout
3036
3037 \end_inset
3038
3039  outstring 
3040 \end_layout
3041
3042 \begin_layout Standard
3043 where 
3044 \begin_inset Flex Code
3045 status collapsed
3046
3047 \begin_layout Plain Layout
3048 key
3049 \end_layout
3050
3051 \end_inset
3052
3053  is the key to be translated and 
3054 \begin_inset Flex Code
3055 status collapsed
3056
3057 \begin_layout Plain Layout
3058 outstring
3059 \end_layout
3060
3061 \end_inset
3062
3063  is the string to be inserted into the document.
3064  To define dead keys, use:
3065 \end_layout
3066
3067 \begin_layout Quotation
3068 \begin_inset Flex Code
3069 status collapsed
3070
3071 \begin_layout Plain Layout
3072
3073 \backslash
3074 kmod
3075 \end_layout
3076
3077 \end_inset
3078
3079  
3080 \begin_inset Flex Code
3081 status collapsed
3082
3083 \begin_layout Plain Layout
3084 key
3085 \end_layout
3086
3087 \end_inset
3088
3089  deadkey
3090 \end_layout
3091
3092 \begin_layout Standard
3093 where 
3094 \begin_inset Flex Code
3095 status collapsed
3096
3097 \begin_layout Plain Layout
3098 key
3099 \end_layout
3100
3101 \end_inset
3102
3103  is a keyboard key and 
3104 \begin_inset Flex Code
3105 status collapsed
3106
3107 \begin_layout Plain Layout
3108 deadkey
3109 \end_layout
3110
3111 \end_inset
3112
3113  is dead key name.
3114  The following dead keys are supported (shortcut name is in parentheses):
3115 \end_layout
3116
3117 \begin_layout Quotation
3118
3119 \emph on
3120 Name
3121 \begin_inset space \hfill{}
3122 \end_inset
3123
3124 Example
3125 \end_layout
3126
3127 \begin_layout Quotation
3128 acute (acu)
3129 \begin_inset space \hfill{}
3130 \end_inset
3131
3132
3133 \lang english
3134 áéíóú
3135 \end_layout
3136
3137 \begin_layout Quotation
3138 grave (gra)
3139 \begin_inset space \hfill{}
3140 \end_inset
3141
3142
3143 \lang english
3144 àèìòù
3145 \end_layout
3146
3147 \begin_layout Quotation
3148 macron (mac)
3149 \begin_inset space \hfill{}
3150 \end_inset
3151
3152
3153 \lang english
3154  ō
3155 \end_layout
3156
3157 \begin_layout Quotation
3158 tilde (til)
3159 \begin_inset space \hfill{}
3160 \end_inset
3161
3162
3163 \lang english
3164 ñÑ
3165 \end_layout
3166
3167 \begin_layout Quotation
3168 underbar (underb)
3169 \begin_inset space \hfill{}
3170 \end_inset
3171
3172
3173 \begin_inset ERT
3174 status open
3175
3176 \begin_layout Plain Layout
3177
3178
3179 \backslash
3180 b o
3181 \end_layout
3182
3183 \end_inset
3184
3185
3186 \end_layout
3187
3188 \begin_layout Quotation
3189 cedilla (ced)
3190 \begin_inset space \hfill{}
3191 \end_inset
3192
3193
3194 \lang english
3195 çÇ
3196 \end_layout
3197
3198 \begin_layout Quotation
3199 underdot (underd)
3200 \begin_inset space \hfill{}
3201 \end_inset
3202
3203
3204 \begin_inset ERT
3205 status open
3206
3207 \begin_layout Plain Layout
3208
3209
3210 \backslash
3211 d o
3212 \end_layout
3213
3214 \end_inset
3215
3216
3217 \end_layout
3218
3219 \begin_layout Quotation
3220 circumflex (circu)
3221 \begin_inset space \hfill{}
3222 \end_inset
3223
3224
3225 \lang english
3226 âêîôû
3227 \end_layout
3228
3229 \begin_layout Quotation
3230 circle (circl)
3231 \begin_inset space \hfill{}
3232 \end_inset
3233
3234
3235 \lang english
3236 ÅůŮ
3237 \end_layout
3238
3239 \begin_layout Quotation
3240 tie (tie)
3241 \begin_inset space \hfill{}
3242 \end_inset
3243
3244
3245 \begin_inset ERT
3246 status open
3247
3248 \begin_layout Plain Layout
3249
3250
3251 \backslash
3252 t o
3253 \end_layout
3254
3255 \end_inset
3256
3257
3258 \end_layout
3259
3260 \begin_layout Quotation
3261 breve (bre)
3262 \begin_inset space \hfill{}
3263 \end_inset
3264
3265
3266 \lang english
3267 ă
3268 \lang japanese
3269
3270 \begin_inset ERT
3271 status open
3272
3273 \begin_layout Plain Layout
3274
3275
3276 \backslash
3277 u o
3278 \end_layout
3279
3280 \end_inset
3281
3282
3283 \end_layout
3284
3285 \begin_layout Quotation
3286 caron (car)
3287 \begin_inset space \hfill{}
3288 \end_inset
3289
3290
3291 \lang english
3292 čšž
3293 \end_layout
3294
3295 \begin_layout Quotation
3296 hungarian umlaut (hug)
3297 \begin_inset space \hfill{}
3298 \end_inset
3299
3300
3301 \lang english
3302 őű
3303 \end_layout
3304
3305 \begin_layout Quotation
3306 umlaut (uml)
3307 \begin_inset space \hfill{}
3308 \end_inset
3309
3310
3311 \lang english
3312 äöü
3313 \end_layout
3314
3315 \begin_layout Quotation
3316 dot (dot)
3317 \begin_inset space \hfill{}
3318 \end_inset
3319
3320
3321 \lang english
3322 ż
3323 \lang japanese
3324
3325 \begin_inset ERT
3326 status open
3327
3328 \begin_layout Plain Layout
3329
3330
3331 \backslash
3332 .s
3333 \end_layout
3334
3335 \end_inset
3336
3337
3338 \end_layout
3339
3340 \begin_layout Standard
3341 Since in many international keyboards there are exceptions to what some
3342  dead keys should do, you can define them using
3343 \end_layout
3344
3345 \begin_layout Quotation
3346 \begin_inset Flex Code
3347 status collapsed
3348
3349 \begin_layout Plain Layout
3350
3351 \backslash
3352 kxmod
3353 \end_layout
3354
3355 \end_inset
3356
3357  deadkey key outstring
3358 \end_layout
3359
3360 \begin_layout Standard
3361 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3362 , so you put in
3363 \end_layout
3364
3365 \begin_layout Quotation
3366 \begin_inset Flex Code
3367 status collapsed
3368
3369 \begin_layout Plain Layout
3370
3371 \backslash
3372 kxmod
3373 \end_layout
3374
3375 \end_inset
3376
3377  caron o "
3378 \backslash
3379 ^o"
3380 \end_layout
3381
3382 \begin_layout Standard
3383 to make it work correctly.
3384  Also, you have to define as exceptions dead keys over i and j, to remove
3385  the dot from them before inserting an accent mark.
3386  I will change this when the time comes, but so far I haven't had time.
3387 \end_layout
3388
3389 \begin_layout Standard
3390 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3391  double backslash.
3392  Also, quotes and 
3393 \begin_inset Flex Code
3394 status collapsed
3395
3396 \begin_layout Plain Layout
3397 #
3398 \end_layout
3399
3400 \end_inset
3401
3402  have different meaning.
3403  
3404 \begin_inset Flex Code
3405 status collapsed
3406
3407 \begin_layout Plain Layout
3408 #
3409 \end_layout
3410
3411 \end_inset
3412
3413  marks comments, quotes start and end LaTeX-style commands.
3414  To enter quote, you'll need to use 
3415 \begin_inset Flex Code
3416 status collapsed
3417
3418 \begin_layout Plain Layout
3419
3420 \backslash
3421 "
3422 \end_layout
3423
3424 \end_inset
3425
3426 , to enter 
3427 \begin_inset Flex Code
3428 status collapsed
3429
3430 \begin_layout Plain Layout
3431 #
3432 \end_layout
3433
3434 \end_inset
3435
3436 , use 
3437 \begin_inset Flex Code
3438 status collapsed
3439
3440 \begin_layout Plain Layout
3441
3442 \backslash
3443 #
3444 \end_layout
3445
3446 \end_inset
3447
3448 .
3449 \end_layout
3450
3451 \begin_layout Standard
3452 If you make a keyboard description file that works for your language, please
3453  mail it to me, so I can include it in the next keymap distribution.
3454 \end_layout
3455
3456 \begin_layout Standard
3457 More keywords will be supported in keymap configuration file in future,
3458  like
3459 \end_layout
3460
3461 \begin_layout Itemize
3462 \begin_inset Flex Code
3463 status collapsed
3464
3465 \begin_layout Plain Layout
3466
3467 \backslash
3468 kinclude filename
3469 \end_layout
3470
3471 \end_inset
3472
3473
3474 \emph on
3475
3476 \begin_inset space \hfill{}
3477 \end_inset
3478
3479
3480 \begin_inset Flex Code
3481 status collapsed
3482
3483 \begin_layout Plain Layout
3484 include
3485 \end_layout
3486
3487 \end_inset
3488
3489  another file
3490 \end_layout
3491
3492 \begin_layout Itemize
3493 \begin_inset Flex Code
3494 status collapsed
3495
3496 \begin_layout Plain Layout
3497
3498 \backslash
3499 kprog program
3500 \end_layout
3501
3502 \end_inset
3503
3504
3505 \emph on
3506
3507 \begin_inset space \hfill{}
3508 \end_inset
3509
3510
3511 \begin_inset Flex Code
3512 status collapsed
3513
3514 \begin_layout Plain Layout
3515 define
3516 \end_layout
3517
3518 \end_inset
3519
3520  an external keymap translation program 
3521 \end_layout
3522
3523 \begin_layout Standard
3524 Also, it should look into 
3525 \begin_inset Flex Code
3526 status collapsed
3527
3528 \begin_layout Plain Layout
3529 lyxrc
3530 \end_layout
3531
3532 \end_inset
3533
3534  file for defaults, too (for example, a 
3535 \begin_inset Flex Code
3536 status collapsed
3537
3538 \begin_layout Plain Layout
3539
3540 \backslash
3541 kinclude
3542 \end_layout
3543
3544 \end_inset
3545
3546  option to include default keyboard).
3547 \end_layout
3548
3549 \end_inset
3550
3551
3552 \end_layout
3553
3554 \begin_layout Section
3555 国際キー配列
3556 \begin_inset CommandInset label
3557 LatexCommand label
3558 name "sec:国際キー配列"
3559
3560 \end_inset
3561
3562
3563 \end_layout
3564
3565 \begin_layout Standard
3566 \begin_inset Note Note
3567 status open
3568
3569 \begin_layout Plain Layout
3570 2008年3月にこの文書を改訂するに当たって、改訂者が本節の内容に詳しくなかったために、本節は改訂されていません。他に改訂してくださる方がおられれば幸いです。
3571 \end_layout
3572
3573 \begin_layout Plain Layout
3574 (RH)
3575 \end_layout
3576
3577 \end_inset
3578
3579
3580 \end_layout
3581
3582 \begin_layout Standard
3583 以下の2節では、
3584 \begin_inset Flex Code
3585 status collapsed
3586
3587 \begin_layout Plain Layout
3588 .kmap
3589 \end_layout
3590
3591 \end_inset
3592
3593 および
3594 \begin_inset Flex Code
3595 status collapsed
3596
3597 \begin_layout Plain Layout
3598 .cdef
3599 \end_layout
3600
3601 \end_inset
3602
3603 ファイルの文法を詳細に解説します。これらの節は、提供されているキー配列があなたのニーズに合わない場合に、自身用のキー配列をデザインする手助けとなるでしょう。
3604 \end_layout
3605
3606 \begin_layout Subsection
3607 .kmapファイル
3608 \end_layout
3609
3610 \begin_layout Standard
3611 \begin_inset Flex Code
3612 status collapsed
3613
3614 \begin_layout Plain Layout
3615 .kmap
3616 \end_layout
3617
3618 \end_inset
3619
3620 ファイルは、打鍵したものを文字や文字列に割り当てます。名前が示唆するように、これはキーボード配列表を定義します。
3621 \begin_inset Flex Code
3622 status collapsed
3623
3624 \begin_layout Plain Layout
3625 .kmap
3626 \end_layout
3627
3628 \end_inset
3629
3630 ファイルは、以下の各項で説明するように、
3631 \begin_inset Flex Code
3632 status collapsed
3633
3634 \begin_layout Plain Layout
3635 kmap
3636 \end_layout
3637
3638 \end_inset
3639
3640
3641 \begin_inset Flex Code
3642 status collapsed
3643
3644 \begin_layout Plain Layout
3645 kmod
3646 \end_layout
3647
3648 \end_inset
3649
3650
3651 \begin_inset Flex Code
3652 status collapsed
3653
3654 \begin_layout Plain Layout
3655 ksmod
3656 \end_layout
3657
3658 \end_inset
3659
3660
3661 \begin_inset Flex Code
3662 status collapsed
3663
3664 \begin_layout Plain Layout
3665 kcomb
3666 \end_layout
3667
3668 \end_inset
3669
3670 のキーワードを定義します。
3671 \end_layout
3672
3673 \begin_layout Labeling
3674 \labelwidthstring 00.00.0000
3675 \begin_inset Flex Code
3676 status collapsed
3677
3678 \begin_layout Plain Layout
3679 kmap
3680 \end_layout
3681
3682 \end_inset
3683
3684  文字を文字列に割り当てる
3685 \end_layout
3686
3687 \begin_layout LyX-Code
3688
3689 \backslash
3690 kmap 
3691 \family roman
3692 \emph on
3693 文字
3694 \family default
3695 \emph default
3696  
3697 \family roman
3698 \emph on
3699 文字列
3700 \end_layout
3701
3702 \begin_layout Standard
3703 これは、
3704 \emph on
3705 文字
3706 \emph default
3707
3708 \emph on
3709 文字列
3710 \emph default
3711 に割り当てます。
3712 \emph on
3713 文字列
3714 \emph default
3715 中では、二重引用符(")とバックスラッシュ(
3716 \backslash
3717 )は、前にバックスラッシュ(
3718 \backslash
3719 )を付けてエスケープしなくてはならないことに注意してください。
3720 \end_layout
3721
3722 \begin_layout Standard
3723 \begin_inset Flex MenuItem
3724 status collapsed
3725
3726 \begin_layout Plain Layout
3727 &
3728 \end_layout
3729
3730 \end_inset
3731
3732 を打鍵すると
3733 \begin_inset Flex MenuItem
3734 status collapsed
3735
3736 \begin_layout Plain Layout
3737 /
3738 \end_layout
3739
3740 \end_inset
3741
3742 記号が出力される
3743 \begin_inset Flex MenuItem
3744 status collapsed
3745
3746 \begin_layout Plain Layout
3747 kmap
3748 \end_layout
3749
3750 \end_inset
3751
3752 ステートメントを、一例としてあげると、
3753 \end_layout
3754
3755 \begin_layout LyX-Code
3756
3757 \backslash
3758 kmap & /
3759 \end_layout
3760
3761 \begin_layout Standard
3762 のようになります。
3763 \end_layout
3764
3765 \begin_layout Labeling
3766 \labelwidthstring 00.00.0000
3767 \begin_inset Flex Code
3768 status collapsed
3769
3770 \begin_layout Plain Layout
3771 kmod
3772 \end_layout
3773
3774 \end_inset
3775
3776  アクセント文字を指定する
3777 \end_layout
3778
3779 \begin_layout LyX-Code
3780
3781 \backslash
3782 kmod 
3783 \family roman
3784 \emph on
3785 文字 アクセント 許可文字
3786 \end_layout
3787
3788 \begin_layout Standard
3789 これは
3790 \emph on
3791 文字
3792 \emph default
3793
3794 \emph on
3795 許可文字
3796 \emph default
3797 のアクセントとするものです。これはデッドキー
3798 \begin_inset Foot
3799 status collapsed
3800
3801 \begin_layout Plain Layout
3802
3803 \emph on
3804 デッドキー
3805 \emph default
3806 という用語は、それ自身で文字を出力しないけれども、別のキーを続けて打つと、望んだアクセント文字を出力するキーのことを指し示します。たとえば、独語で
3807 \emph on
3808 ä
3809 \emph default
3810 のようなウムラウトのついた文字は、このようにして出すことができます。
3811 \end_layout
3812
3813 \end_inset
3814
3815 機構です。
3816 \end_layout
3817
3818 \begin_layout Standard
3819
3820 \emph on
3821 文字
3822 \emph default
3823 を打鍵してから
3824 \emph on
3825 許可文字
3826 \emph default
3827 にないキーを打鍵すると、
3828 \emph on
3829 文字
3830 \emph default
3831 の後に許可文字ではないその文字が出力として表示されます。
3832 \begin_inset Flex MenuItem
3833 status collapsed
3834
3835 \begin_layout Plain Layout
3836 Backspace
3837 \end_layout
3838
3839 \end_inset
3840
3841 はデッドキーを取り消しますので、
3842 \emph on
3843 文字
3844 \emph default
3845
3846 \begin_inset Flex MenuItem
3847 status collapsed
3848
3849 \begin_layout Plain Layout
3850 Backspace
3851 \end_layout
3852
3853 \end_inset
3854
3855 と打鍵すると、カーソルは一文字戻ることなく、文字が次の打鍵したものに及ぼしたはずの効力を取り消します。
3856 \end_layout
3857
3858 \begin_layout Standard
3859 以下の例は、'文字をacuteアクセントとして、a・e・i・o・u・A・E・I・O・Uの文字に許可するものです。
3860 \end_layout
3861
3862 \begin_layout LyX-Code
3863
3864 \backslash
3865 kmod ' acute aeiouAEIOU
3866 \end_layout
3867
3868 \begin_layout Labeling
3869 \labelwidthstring 00.00.0000
3870 \begin_inset Flex Code
3871 status collapsed
3872
3873 \begin_layout Plain Layout
3874 ksmod
3875 \end_layout
3876
3877 \end_inset
3878
3879  アクセント文字に例外を指定する
3880 \end_layout
3881
3882 \begin_layout LyX-Code
3883
3884 \backslash
3885 kxmod  
3886 \family roman
3887 \emph on
3888 アクセント 文字 結果
3889 \end_layout
3890
3891 \begin_layout Standard
3892 これは
3893 \emph on
3894 文字
3895 \emph default
3896 上の
3897 \emph on
3898 アクセント
3899 \emph default
3900 について例外を指定するものです。ここで
3901 \emph on
3902 アクセント
3903 \emph default
3904 には、前出の
3905 \begin_inset Flex Code
3906 status collapsed
3907
3908 \begin_layout Plain Layout
3909
3910 \backslash
3911 kmod
3912 \end_layout
3913
3914 \end_inset
3915
3916 宣言で打鍵キーを既に割り当てられてなくてはならず、
3917 \emph on
3918 文字
3919 \emph default
3920
3921 \emph on
3922 アクセント
3923 \emph default
3924
3925 \emph on
3926 許可文字
3927 \emph default
3928 の集合に属していてはなりません。こうして
3929 \emph on
3930 アクセント
3931 \emph default
3932
3933 \emph on
3934 文字
3935 \emph default
3936 の順に入力すると、
3937 \emph on
3938 結果
3939 \emph default
3940 が出力されるようになります。
3941 \begin_inset Flex Code
3942 status collapsed
3943
3944 \begin_layout Plain Layout
3945 .kmap
3946 \end_layout
3947
3948 \end_inset
3949
3950 ファイルにこの宣言がない場合には、
3951 \emph on
3952 アクセント
3953 \emph default
3954
3955 \emph on
3956 文字
3957 \emph default
3958 と入力すると、
3959 \emph on
3960 アクセントキー
3961 \emph default
3962
3963 \emph on
3964 文字
3965 \emph default
3966
3967 \emph on
3968 アクセントキー
3969 \emph default
3970
3971 \begin_inset Flex Code
3972 status collapsed
3973
3974 \begin_layout Plain Layout
3975
3976 \backslash
3977 kmod
3978 \end_layout
3979
3980 \end_inset
3981
3982 宣言の最初の変数)と出力されます。
3983 \end_layout
3984
3985 \begin_layout Standard
3986 以下のコマンドを用いると、acute-i('i)と入力した場合、äiと出力されるようになります。
3987 \end_layout
3988
3989 \begin_layout LyX-Code
3990
3991 \backslash
3992 kxmod acute i "
3993 \backslash
3994
3995 \backslash
3996 '{
3997 \backslash
3998
3999 \backslash
4000 i}"
4001 \end_layout
4002
4003 \begin_layout Labeling
4004 \labelwidthstring 00.00.0000
4005 \begin_inset Flex Code
4006 status collapsed
4007
4008 \begin_layout Plain Layout
4009 kcomb
4010 \end_layout
4011
4012 \end_inset
4013
4014  2つのアクセント文字を結合する
4015 \end_layout
4016
4017 \begin_layout LyX-Code
4018
4019 \backslash
4020 kcomb 
4021 \family roman
4022 \emph on
4023 アクセント1 アクセント2 許可文字
4024 \end_layout
4025
4026 \begin_layout Standard
4027 これはなかなか難解になってきます。これは
4028 \emph on
4029 アクセント1
4030 \emph default
4031
4032 \emph on
4033 アクセント2
4034 \emph default
4035 を(この順番で)結びつけて、
4036 \emph on
4037 許可文字
4038 \emph default
4039 に効果を及ぼすようにします。
4040 \emph on
4041 アクセント1
4042 \emph default
4043
4044 \emph on
4045 アクセント2
4046 \emph default
4047 の打鍵キーは、ファイル内のこのコマンド
4048 \emph on
4049 よりも前に
4050 \emph default
4051
4052 \begin_inset Flex Code
4053 status collapsed
4054
4055 \begin_layout Plain Layout
4056
4057 \backslash
4058 kmod
4059 \end_layout
4060
4061 \end_inset
4062
4063 コマンドで設定されていなくてはなりません。
4064 \end_layout
4065
4066 \begin_layout Standard
4067 \begin_inset Flex Code
4068 status collapsed
4069
4070 \begin_layout Plain Layout
4071 greek.kmap
4072 \end_layout
4073
4074 \end_inset
4075
4076 ファイル上にある例をとってみましょう。
4077 \end_layout
4078
4079 \begin_layout LyX-Code
4080
4081 \backslash
4082 kmod ; acute aeioyvhAEIOYVH 
4083 \backslash
4084 kmod : umlaut iyIY 
4085 \backslash
4086 kcomb acute umlaut iyIY
4087 \end_layout
4088
4089 \begin_layout Standard
4090 これは
4091 \begin_inset Flex MenuItem
4092 status collapsed
4093
4094 \begin_layout Plain Layout
4095 ;:i
4096 \end_layout
4097
4098 \end_inset
4099
4100 を押すと
4101 \begin_inset Flex Code
4102 status collapsed
4103
4104 \begin_layout Plain Layout
4105
4106 \backslash
4107 '{
4108 \backslash
4109 "{i}}
4110 \end_layout
4111
4112 \end_inset
4113
4114 という効果を得るようにするものです。この場合のバックスペースは、最後のデッドキーを取り消すので、
4115 \begin_inset Flex MenuItem
4116 status collapsed
4117
4118 \begin_layout Plain Layout
4119 ;: Backspace i
4120 \end_layout
4121
4122 \end_inset
4123
4124 と押した場合には、
4125 \begin_inset Flex Code
4126 status collapsed
4127
4128 \begin_layout Plain Layout
4129
4130 \backslash
4131 '{i}
4132 \end_layout
4133
4134 \end_inset
4135
4136 となります。
4137 \end_layout
4138
4139 \begin_layout Subsection
4140 .cdefファイル
4141 \end_layout
4142
4143 \begin_layout Standard
4144 \begin_inset Flex Code
4145 status collapsed
4146
4147 \begin_layout Plain Layout
4148 .kmap
4149 \end_layout
4150
4151 \end_inset
4152
4153 による割り当てが行われた後、
4154 \begin_inset Flex Code
4155 status collapsed
4156
4157 \begin_layout Plain Layout
4158 .cdef
4159 \end_layout
4160
4161 \end_inset
4162
4163 ファイルは、記号の作り出す文字列を現在のフォントの文字に割り当てます。LyX頒布版には、現在のところ、少なくとも
4164 \begin_inset Flex Code
4165 status collapsed
4166
4167 \begin_layout Plain Layout
4168 iso8859-1.cdef
4169 \end_layout
4170
4171 \end_inset
4172
4173 ファイルと
4174 \begin_inset Flex Code
4175 status collapsed
4176
4177 \begin_layout Plain Layout
4178 iso8859-2.cdef
4179 \end_layout
4180
4181 \end_inset
4182
4183 ファイルが含まれています。
4184 \end_layout
4185
4186 \begin_layout Standard
4187 一般的に
4188 \begin_inset Flex Code
4189 status collapsed
4190
4191 \begin_layout Plain Layout
4192 .cdef
4193 \end_layout
4194
4195 \end_inset
4196
4197 ファイルは、
4198 \end_layout
4199
4200 \begin_layout LyX-Code
4201
4202 \family roman
4203 \emph on
4204 セット中の文字番号
4205 \family default
4206 \emph default
4207  
4208 \family roman
4209 \emph on
4210  文字列
4211 \end_layout
4212
4213 \begin_layout Standard
4214 という形の宣言の羅列です。たとえば、
4215 \begin_inset Flex MenuItem
4216 status collapsed
4217
4218 \begin_layout Plain Layout
4219
4220 \backslash
4221 '{e}
4222 \end_layout
4223
4224 \end_inset
4225
4226 をiso-8859-1セットの対応する文字(233)に割り当てるには、以下の宣言を用います。
4227 \end_layout
4228
4229 \begin_layout LyX-Code
4230 233 "
4231 \backslash
4232
4233 \backslash
4234 '{e}"
4235 \end_layout
4236
4237 \begin_layout Standard
4238 ここで、
4239 \emph on
4240 文字列
4241 \emph default
4242 中の
4243 \begin_inset Flex Code
4244 status collapsed
4245
4246 \begin_layout Plain Layout
4247
4248 \backslash
4249
4250 \end_layout
4251
4252 \end_inset
4253
4254
4255 \begin_inset Flex Code
4256 status collapsed
4257
4258 \begin_layout Plain Layout
4259 "
4260 \end_layout
4261
4262 \end_inset
4263
4264 はエスケープされています。同一の文字を二つ以上の文字列に充てることができることに注意してください。
4265 \begin_inset Flex Code
4266 status collapsed
4267
4268 \begin_layout Plain Layout
4269 iso-8859-7.cdef
4270 \end_layout
4271
4272 \end_inset
4273
4274 ファイルには、
4275 \end_layout
4276
4277 \begin_layout LyX-Code
4278 192 "
4279 \backslash
4280
4281 \backslash
4282 '{
4283 \backslash
4284
4285 \backslash
4286
4287 \backslash
4288 "{i}}"
4289 \begin_inset Newline newline
4290 \end_inset
4291
4292 192 "
4293 \backslash
4294
4295 \backslash
4296
4297 \backslash
4298 "{
4299 \backslash
4300
4301 \backslash
4302 '{i}}"
4303 \end_layout
4304
4305 \begin_layout Standard
4306 という例があります。LyXは、キー打鍵やデッドキーの組み合わせで生成される文字列の割り当てを見つけることができないとき、それがアクセント付き文字のように解釈がで
4307 きないかどうかチェックして、画面上の文字にアクセントを引くことを試みます。
4308 \end_layout
4309
4310 \begin_layout Subsection
4311 デッドキー
4312 \end_layout
4313
4314 \begin_layout Standard
4315 国際文字のサポートを追加する第2の方法として、いわゆるデッドキーによる方法があります。デッドキーは文字と一緒に用いて、アクセント付き文字を生成します。ここではそ
4316 の機能を説明するために、きわめて単純なデッドキーの作り方を説明します。
4317 \end_layout
4318
4319 \begin_layout Standard
4320 仮に、曲折アクセント記号「 ̂」が必要になったものとしましょう。この場合、自身の
4321 \begin_inset Flex Code
4322 status collapsed
4323
4324 \begin_layout Plain Layout
4325 lyxrc
4326 \end_layout
4327
4328 \end_inset
4329
4330 ファイル中で、
4331 \begin_inset Flex MenuItem
4332 status collapsed
4333
4334 \begin_layout Plain Layout
4335 ^
4336 \end_layout
4337
4338 \end_inset
4339
4340 キー(すなわち
4341 \begin_inset Flex MenuItem
4342 status collapsed
4343
4344 \begin_layout Plain Layout
4345 Shift-6
4346 \end_layout
4347
4348 \end_inset
4349
4350 キー)を、LyXコマンドの
4351 \begin_inset Flex Code
4352 status collapsed
4353
4354 \begin_layout Plain Layout
4355 accent-circumflex
4356 \end_layout
4357
4358 \end_inset
4359
4360 に結びつけることができます。すると
4361 \begin_inset Flex MenuItem
4362 status collapsed
4363
4364 \begin_layout Plain Layout
4365 ^
4366 \end_layout
4367
4368 \end_inset
4369
4370 キーの後に文字を打ったときはいつでも、この文字上に曲折アクセントが付けられるようになります。たとえば「
4371 \begin_inset Flex MenuItem
4372 status collapsed
4373
4374 \begin_layout Plain Layout
4375 ^e
4376 \end_layout
4377
4378 \end_inset
4379
4380 」という打鍵順は「ê」という文字を生成します。しかしながら、もし「
4381 \begin_inset Flex MenuItem
4382 status collapsed
4383
4384 \begin_layout Plain Layout
4385 ^t
4386 \end_layout
4387
4388 \end_inset
4389
4390 」と打鍵したならば、「
4391 \begin_inset Flex MenuItem
4392 status collapsed
4393
4394 \begin_layout Plain Layout
4395 t
4396 \end_layout
4397
4398 \end_inset
4399
4400 」は曲折アクセントをとることは決してないために、LyXはビープを鳴らして文句を付けます。デッドキーの後に
4401 \begin_inset Flex MenuItem
4402 status collapsed
4403
4404 \begin_layout Plain Layout
4405 スペース
4406 \end_layout
4407
4408 \end_inset
4409
4410 を打つと、アクセントだけが生成されます。この最後の点に注意してください。あるキーをデッドキーに割り当てる場合には、このキー上の文字を別のキーに割り当て直す必要が
4411 あります。たとえば、
4412 \begin_inset Flex MenuItem
4413 status collapsed
4414
4415 \begin_layout Plain Layout
4416 ,キー
4417 \end_layout
4418
4419 \end_inset
4420
4421 をセディーユに割り当てるのはよくありません。コンマを入力しようとすると必ずセディーユが出てくるようになるためです。
4422 \end_layout
4423
4424 \begin_layout Standard
4425 デッドキーを割り当てるのによく用いられる方法は、
4426 \begin_inset Flex MenuItem
4427 status collapsed
4428
4429 \begin_layout Plain Layout
4430 Meta-
4431 \end_layout
4432
4433 \end_inset
4434
4435
4436 \begin_inset Flex MenuItem
4437 status collapsed
4438
4439 \begin_layout Plain Layout
4440 Ctrl-
4441 \end_layout
4442
4443 \end_inset
4444
4445
4446 \begin_inset Flex MenuItem
4447 status collapsed
4448
4449 \begin_layout Plain Layout
4450 Shift-
4451 \end_layout
4452
4453 \end_inset
4454
4455 キーを、「
4456 \begin_inset Flex MenuItem
4457 status collapsed
4458
4459 \begin_layout Plain Layout
4460 ~
4461 \end_layout
4462
4463 \end_inset
4464
4465 」・「
4466 \begin_inset Flex MenuItem
4467 status collapsed
4468
4469 \begin_layout Plain Layout
4470 ,
4471 \end_layout
4472
4473 \end_inset
4474
4475 」・「
4476 \begin_inset Flex MenuItem
4477 status collapsed
4478
4479 \begin_layout Plain Layout
4480 ^
4481 \end_layout
4482
4483 \end_inset
4484
4485 」のようなアクセントと一緒に用いる方法です。また、
4486 \begin_inset Flex Code
4487 status collapsed
4488
4489 \begin_layout Plain Layout
4490 xmodmap
4491 \end_layout
4492
4493 \end_inset
4494
4495
4496 \begin_inset Flex Code
4497 status collapsed
4498
4499 \begin_layout Plain Layout
4500 xkeycaps
4501 \end_layout
4502
4503 \end_inset
4504
4505 を使って、特別な
4506 \begin_inset Flex Code
4507 status collapsed
4508
4509 \begin_layout Plain Layout
4510 Mode_Switch
4511 \end_layout
4512
4513 \end_inset
4514
4515 キーを設定する方法もあります。
4516 \begin_inset Flex Code
4517 status collapsed
4518
4519 \begin_layout Plain Layout
4520 Mode_Switch
4521 \end_layout
4522
4523 \end_inset
4524
4525 キーは、ちょうど
4526 \begin_inset Flex MenuItem
4527 status collapsed
4528
4529 \begin_layout Plain Layout
4530 Shift
4531 \end_layout
4532
4533 \end_inset
4534
4535 キーのように機能するので、アクセント文字を割り当てるのに使用できます。また、特定のキーを
4536 \begin_inset Flex Code
4537 status collapsed
4538
4539 \begin_layout Plain Layout
4540 usldead_cedilla
4541 \end_layout
4542
4543 \end_inset
4544
4545 などに割り当てることで、これらのキーをデッドキーに仕立て、このシンボリックキーを対応するLyXコマンドに割り当てることもできます
4546 \begin_inset Foot
4547 status collapsed
4548
4549 \begin_layout Plain Layout
4550
4551 \noun on
4552 John Weiss
4553 \noun default
4554 からの註:これはまさに私が、自分の
4555 \begin_inset Flex Code
4556 status collapsed
4557
4558 \begin_layout Plain Layout
4559 ~/.lyx/lyxrc
4560 \end_layout
4561
4562 \end_inset
4563
4564
4565 \begin_inset Flex Code
4566 status collapsed
4567
4568 \begin_layout Plain Layout
4569 ~/.xmodmap
4570 \end_layout
4571
4572 \end_inset
4573
4574 で行っていることです。私は、
4575 \begin_inset Flex MenuItem
4576 status collapsed
4577
4578 \begin_layout Plain Layout
4579 Scroll
4580 \begin_inset space ~
4581 \end_inset
4582
4583 Lock
4584 \end_layout
4585
4586 \end_inset
4587
4588 キーを
4589 \begin_inset Flex Code
4590 status collapsed
4591
4592 \begin_layout Plain Layout
4593 Mode_Shift
4594 \end_layout
4595
4596 \end_inset
4597
4598 に仕立てて、多数の
4599 \begin_inset Flex Code
4600 status collapsed
4601
4602 \begin_layout Plain Layout
4603 usldead_*
4604 \end_layout
4605
4606 \end_inset
4607
4608 シンボリックキーを
4609 \begin_inset Flex MenuItem
4610 status collapsed
4611
4612 \begin_layout Plain Layout
4613 Scroll
4614 \begin_inset space ~
4615 \end_inset
4616
4617 Lock-^
4618 \end_layout
4619
4620 \end_inset
4621
4622
4623 \begin_inset Flex MenuItem
4624 status collapsed
4625
4626 \begin_layout Plain Layout
4627 Scroll
4628 \begin_inset space ~
4629 \end_inset
4630
4631 Lock-~
4632 \end_layout
4633
4634 \end_inset
4635
4636 などに割り当てています。私はこの方法でアクセント文字を入力しています。
4637 \end_layout
4638
4639 \end_inset
4640
4641 。この
4642 \begin_inset Flex Code
4643 status collapsed
4644
4645 \begin_layout Plain Layout
4646 Mode_Switch
4647 \end_layout
4648
4649 \end_inset
4650
4651 キーには、
4652 \begin_inset Flex MenuItem
4653 status collapsed
4654
4655 \begin_layout Plain Layout
4656 Ctrl-
4657 \end_layout
4658
4659 \end_inset
4660
4661 キーの片方や使われていないファンクションキーなど、ほぼ何でも指定することができます。アクセントを生み出すLyXコマンドについては、
4662 \emph on
4663 LyX関数説明書
4664 \emph default
4665
4666 \begin_inset Flex Code
4667 status collapsed
4668
4669 \begin_layout Plain Layout
4670 LFUN_ACCENT_*
4671 \end_layout
4672
4673 \end_inset
4674
4675 の項をご覧ください。ここには完備した一覧があります。
4676 \end_layout
4677
4678 \begin_layout Subsection
4679 自分の言語設定を保存する
4680 \end_layout
4681
4682 \begin_layout Standard
4683 \begin_inset Flex MenuItem
4684 status collapsed
4685
4686 \begin_layout Plain Layout
4687 ツール\SpecialChar \menuseparator
4688 設定
4689 \end_layout
4690
4691 \end_inset
4692
4693 ダイアログを使えば、LyXを起動したときに、ご希望の言語環境に自動的に設定されるように、設定を編集することができます。
4694 \end_layout
4695
4696 \begin_layout Chapter
4697 文書クラスやレイアウトやひな型を新規に導入する
4698 \begin_inset CommandInset label
4699 LatexCommand label
4700 name "cha:新規文書を導入"
4701
4702 \end_inset
4703
4704
4705 \begin_inset Argument
4706 status collapsed
4707
4708 \begin_layout Plain Layout
4709 文書クラスを新規に導入する
4710 \end_layout
4711
4712 \end_inset
4713
4714
4715 \end_layout
4716
4717 \begin_layout Standard
4718 この章では、新しくLyXのレイアウトファイルやひな型ファイルを作成して、導入する手順を説明すると共に、新規にLaTeX文書クラス(ドキュメントクラス)を正しく導
4719 入する方法を復習します。
4720 \end_layout
4721
4722 \begin_layout Standard
4723 まず、LyXとLaTeXの間の関係をどのように考えるべきか、若干の注釈を加えておくことにしましょう。理解していただきたいことは、ある意味において、LyXは、La
4724 TeXについて何も知らないと云うことです。実際のところ、LyXの観点からは、LaTeXは、LyXが出力を生成することができる、複数の「バックエンド書式」のうちの
4725 一つに過ぎないということです。同種のバックエンド書式には、DocBook・平文・XHTMLがあります。もちろんLaTeXは、とくに重要な書式ですが、LyXがLa
4726 TeXについて持っている情報のほとんどは、実はプログラム本体には含まれていないのです
4727 \begin_inset Foot
4728 status collapsed
4729
4730 \begin_layout Plain Layout
4731 過度に複雑なため、LyXに「ハードコード化」されているコマンドもありますが、一般的に開発者は、これを「わるいこと」とみなしています。
4732 \end_layout
4733
4734 \end_inset
4735
4736 。このような情報は、
4737 \begin_inset Flex Code
4738 status collapsed
4739
4740 \begin_layout Plain Layout
4741 article.cls
4742 \end_layout
4743
4744 \end_inset
4745
4746 のような標準クラスでも、「レイアウトファイル」に保管されています。同様に、LyXは、DocBookやXHTMLについてもほとんど知りません。LyXが知っているこ
4747 とは、レイアウトファイルの中にあります。
4748 \end_layout
4749
4750 \begin_layout Standard
4751 文書クラス用のレイアウトファイルは、LyX構成体---対応する様式や何らかの差込枠などを有する段落群---と、それに対応するLaTeX構成体・DocBook構成
4752 体・XHTML構成体との間の翻訳指南書のようなものです。たとえば、LyXが
4753 \begin_inset Flex Code
4754 status collapsed
4755
4756 \begin_layout Plain Layout
4757 article.cls
4758 \end_layout
4759
4760 \end_inset
4761
4762 について知っていることのほとんど総ては、
4763 \begin_inset Flex Code
4764 status collapsed
4765
4766 \begin_layout Plain Layout
4767 article.layout
4768 \end_layout
4769
4770 \end_inset
4771
4772 と、それが呼び出す他の様々なファイルに書き込まれています。このことから、レイアウトファイルを書こうとする人は、既存のファイルを研究することを勧めます。とっかかり
4773 としては、
4774 \begin_inset Flex Code
4775 status collapsed
4776
4777 \begin_layout Plain Layout
4778 article.layout
4779 \end_layout
4780
4781 \end_inset
4782
4783
4784 \begin_inset Flex Code
4785 status collapsed
4786
4787 \begin_layout Plain Layout
4788 book.layout
4789 \end_layout
4790
4791 \end_inset
4792
4793 や、文書クラス用の他のレイアウトファイルに取り込まれている
4794 \begin_inset Flex Code
4795 status collapsed
4796
4797 \begin_layout Plain Layout
4798 stdsections.inc
4799 \end_layout
4800
4801 \end_inset
4802
4803 から見始めるのがよいでしょう。このファイルは、節などの定義が為されている場所です。
4804 \begin_inset Flex Code
4805 status collapsed
4806
4807 \begin_layout Plain Layout
4808 stdsections.inc
4809 \end_layout
4810
4811 \end_inset
4812
4813 は、節様式や小節様式などとしてマークされている段落を、対応するLaTeX・DocBook・XHTMLのコマンドやタグにどのように翻訳すべきかをLyXに知らせるも
4814 のです。基本的に
4815 \begin_inset Flex Code
4816 status collapsed
4817
4818 \begin_layout Plain Layout
4819 article.layout
4820 \end_layout
4821
4822 \end_inset
4823
4824 ファイルは、これらの
4825 \begin_inset Flex Code
4826 status collapsed
4827
4828 \begin_layout Plain Layout
4829 std*.inc
4830 \end_layout
4831
4832 \end_inset
4833
4834 ファイルを取り込んでいるだけのものです。
4835 \end_layout
4836
4837 \begin_layout Standard
4838 しかしながら、LyX--LaTeX間の対応を定義するだけが、レイアウトファイルが行うことではありません。レイアウトファイルが行うもう一つの仕事は、LyX構成体自
4839 身が画面上にどのように表示されるべきかを定義することです。この2つの仕事は全く独立したものであるので、レイアウトファイルが2つの仕事を行うという事実は、しばしば
4840 混乱を引き起こす元となります。ある段落様式をLaTeXに翻訳する仕方をLyXに指示することは、その表示の仕方をLyXに指示するものではありません。逆に、ある段落
4841 様式の表示の仕方をLyXに指示することは、その段落様式をどのようにLaTeXに翻訳するかをLyXに指示するものではありません(ましてやLaTeXに表示の仕方を指
4842 示するものではありません)。つまり、一般的に、新しいLyX構成体を定義する際には、(i)
4843 \begin_inset space ~
4844 \end_inset
4845
4846 LaTeXにどのように翻訳するかをLyXに指示する、(ii)
4847 \begin_inset space ~
4848 \end_inset
4849
4850 それをどのように表示するかをLyXに指示する、という、二つのかなり異なることを行わなくてはならないのです。
4851 \end_layout
4852
4853 \begin_layout Standard
4854 もちろん、LyXの他のバックエンド書式に関しても、ほぼ同じことが言えますが、XHTMLの場合には若干事情が異なり、LyXが、ブラウザ中での段落の表示方法を(CS
4855 Sの形で)出力するにあたって、当該段落をLyXが画面上に出力する仕方の情報を、ある程度利用することができます。しかし、この場合でも、LyXが内部的に行うことと、
4856 外部的に行う物事の間の区別は、依然として有効であり、この2つは独立して制御することができます。詳細に関しては、第
4857 \begin_inset CommandInset ref
4858 LatexCommand ref
4859 reference "sec:XHTML出力のタグ"
4860
4861 \end_inset
4862
4863 節をご覧ください。
4864 \end_layout
4865
4866 \begin_layout Section
4867 新しいLaTeXファイルの導入
4868 \end_layout
4869
4870 \begin_layout Standard
4871 頒布版によっては、LyXで使いたいLaTeXパッケージやクラスファイルが含まれていないことがあるかもしれません。たとえば、オーバーヘッドプロジェクタ用のスライド
4872 を準備するためのパッケージである、FoilTeXがないかもしれません。TeXLive(2008年以降)やMiKTeXのような最近のLaTeX頒布版には、これらの
4873 パッケージを導入するためのユーザーインタフェースが用意されています。たとえば、MiKTeXでは、付属の「Package
4874 \begin_inset space ~
4875 \end_inset
4876
4877 Manager」プログラムを起動すると、利用できるパッケージの一覧を得ることができます。どれかを導入するには、その上で右クリックするかツールバーボタンを押してく
4878 ださい。
4879 \end_layout
4880
4881 \begin_layout Standard
4882 お使いのLaTeX頒布版がこのような「パッケージマネジャー」を提供していなかったり、使用中の頒布版にそのパッケージが入っていない場合には、以下のステップに従って
4883 手動で導入してください。
4884 \end_layout
4885
4886 \begin_layout Enumerate
4887 \begin_inset CommandInset href
4888 LatexCommand href
4889 name "CTAN"
4890 target "http://www.ctan.org/"
4891
4892 \end_inset
4893
4894 などから欲しいパッケージを入手してください。
4895 \end_layout
4896
4897 \begin_layout Enumerate
4898 パッケージに「
4899 \begin_inset Flex Code
4900 status collapsed
4901
4902 \begin_layout Plain Layout
4903 .ins
4904 \end_layout
4905
4906 \end_inset
4907
4908 」で終わるファイル名が入っている場合(FoilTeXがその一例です)は、コンソールを開いて、このファイルのフォルダに移動し、コマンド
4909 \begin_inset Flex Code
4910 status collapsed
4911
4912 \begin_layout Plain Layout
4913 latex foiltex.ins
4914 \end_layout
4915
4916 \end_inset
4917
4918 を実行してください。すると、パッケージが解凍されて、導入すべきすべてのファイルが展開されます。たいていのLaTeXパッケージは圧縮されていないので、このステップ
4919 は飛ばすことができます。
4920 \end_layout
4921
4922 \begin_layout Enumerate
4923 ここで、パッケージを全ユーザーに使用可能にするか自分自身だけで使うかを決定する必要があります。
4924 \end_layout
4925
4926 \begin_deeper
4927 \begin_layout Enumerate
4928 (Linux・OSXなどの)*nix系システムでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、「ローカル」TeXツリーに導入し、そうでなければ
4929 「ユーザー」TeXツリーに導入してください。これらのツリーが存在しない場合にどこに作成すればよいかは、お使いのシステムに依存します。これを見いだすには、
4930 \begin_inset Flex Code
4931 status collapsed
4932
4933 \begin_layout Plain Layout
4934 texmf.cnf
4935 \end_layout
4936
4937 \end_inset
4938
4939 ファイルを参照してください
4940 \begin_inset Foot
4941 status collapsed
4942
4943 \begin_layout Plain Layout
4944 このファイルは、通常
4945 \family sans
4946 $TEXMF/web2c
4947 \family default
4948 ディレクトリにありますが、コマンド
4949 \begin_inset Flex Code
4950 status collapsed
4951
4952 \begin_layout Plain Layout
4953 kpsewhich texmf.cnf
4954 \end_layout
4955
4956 \end_inset
4957
4958 を実行してその場所を見つけることもできます。
4959 \end_layout
4960
4961 \end_inset
4962
4963 。「ローカル」TeXツリーの場所は、
4964 \begin_inset Flex Code
4965 status collapsed
4966
4967 \begin_layout Plain Layout
4968 TEXMFLOCAL
4969 \end_layout
4970
4971 \end_inset
4972
4973 変数で定義されており、通常は
4974 \begin_inset Flex Code
4975 status collapsed
4976
4977 \begin_layout Plain Layout
4978 /usr/local/share/texmf/
4979 \end_layout
4980
4981 \end_inset
4982
4983 のような場所になっています。「ユーザー」TeXツリーの場所は、
4984 \begin_inset Flex Code
4985 status collapsed
4986
4987 \begin_layout Plain Layout
4988 TEXMFHOME
4989 \end_layout
4990
4991 \end_inset
4992
4993 で定義されており、通常は
4994 \begin_inset Flex Code
4995 status collapsed
4996
4997 \begin_layout Plain Layout
4998 $HOME/texmf/
4999 \end_layout
5000
5001 \end_inset
5002
5003 です(もしこれらの変数が事前定義されていなければ、定義しなくてはなりません)。「ローカル」ツリーを作成したり変更したりするには、おそらくroot権限が必要ですが
5004 、「ユーザー」ツリーにはこのような制限はありません。
5005 \begin_inset Newline newline
5006 \end_inset
5007
5008 一般的に、システムをアップグレードした際に、ユーザーが修正されたり上書きされたりということが起こらないので、ユーザーツリーに導入することが推奨されます。こうする
5009 と、自分のホームディレクトリをバックアップする際に、パッケージも他のものと一緒にバックアップされます(もちろん通常行われるようにすればの話です)。
5010 \end_layout
5011
5012 \begin_layout Enumerate
5013 Windowでは、システム上の全ユーザーに新パッケージを利用可能にしたければ、LaTeXの導入されているフォルダに移動し、それからサブフォルダ
5014 \begin_inset Flex Code
5015 status collapsed
5016
5017 \begin_layout Plain Layout
5018 ~
5019 \backslash
5020 tex
5021 \backslash
5022 latex
5023 \end_layout
5024
5025 \end_inset
5026
5027 に移動します(MiKTeXでは、これは既定では
5028 \begin_inset Flex Code
5029 status collapsed
5030
5031 \begin_layout Plain Layout
5032 ~:Programs
5033 \backslash
5034 MiKTeX
5035 \backslash
5036 tex
5037 \backslash
5038 latex
5039 \end_layout
5040
5041 \end_inset
5042
5043 です)
5044 \begin_inset Foot
5045 status collapsed
5046
5047 \begin_layout Plain Layout
5048 これは、英語版でのみ正しいパスになっています。独語版では
5049 \begin_inset Flex Code
5050 status collapsed
5051
5052 \begin_layout Plain Layout
5053 ~:Programme
5054 \backslash
5055 MiKTeX
5056 \backslash
5057 tex
5058 \backslash
5059 latex
5060 \end_layout
5061
5062 \end_inset
5063
5064 となり、他の言語でも同様です。
5065 \end_layout
5066
5067 \end_inset
5068
5069 。ここに新規フォルダ
5070 \begin_inset Flex Code
5071 status collapsed
5072
5073 \begin_layout Plain Layout
5074 foiltex
5075 \end_layout
5076
5077 \end_inset
5078
5079 を作成し、パッケージの全ファイルをそこにコピーしてください。パッケージを自分だけで使用したい場合や、admin権限を持っていない場合には、ローカルLaTeXフォ
5080 ルダで同じことを行います。たとえばMiKTeX
5081 \begin_inset space ~
5082 \end_inset
5083
5084 2.8では、これはWinXP上では
5085 \begin_inset Newline newline
5086 \end_inset
5087
5088
5089 \begin_inset Flex Code
5090 status collapsed
5091
5092 \begin_layout Plain Layout
5093 ~:
5094 \backslash
5095 Documents and Settings
5096 \backslash
5097 <ユーザー名>
5098 \backslash
5099 Application Data
5100 \backslash
5101
5102 \end_layout
5103
5104 \end_inset
5105
5106
5107 \begin_inset Newline newline
5108 \end_inset
5109
5110
5111 \begin_inset Phantom HPhantom
5112 status open
5113
5114 \begin_layout Plain Layout
5115
5116 \family typewriter
5117 ~:
5118 \backslash
5119
5120 \end_layout
5121
5122 \end_inset
5123
5124
5125 \begin_inset Flex Code
5126 status collapsed
5127
5128 \begin_layout Plain Layout
5129 MiKTeX
5130 \backslash
5131 2.8
5132 \backslash
5133 tex
5134 \backslash
5135 latex
5136 \end_layout
5137
5138 \end_inset
5139
5140
5141 \begin_inset Newline newline
5142 \end_inset
5143
5144 フォルダ、WinVista上では
5145 \begin_inset Newline newline
5146 \end_inset
5147
5148
5149 \begin_inset Flex Code
5150 status collapsed
5151
5152 \begin_layout Plain Layout
5153 ~:
5154 \backslash
5155 Users
5156 \backslash
5157 <ユーザー名>
5158 \backslash
5159 AppData
5160 \backslash
5161 Roaming
5162 \backslash
5163 2.8
5164 \backslash
5165 MiKTeX
5166 \backslash
5167 tex
5168 \backslash
5169 latex
5170 \end_layout
5171
5172 \end_inset
5173
5174
5175 \begin_inset Newline newline
5176 \end_inset
5177
5178 フォルダになります。
5179 \end_layout
5180
5181 \end_deeper
5182 \begin_layout Enumerate
5183 ここまで来れば、あとはLaTeXに新しいファイルがあることを告げるだけです。これは使用しているLaTeX頒布版に依存します。
5184 \end_layout
5185
5186 \begin_deeper
5187 \begin_layout Enumerate
5188 TeXLiveの場合には、コンソールから
5189 \begin_inset Flex Code
5190 status collapsed
5191
5192 \begin_layout Plain Layout
5193 texhash
5194 \end_layout
5195
5196 \end_inset
5197
5198 コマンドを実行してください。パッケージを全ユーザー用に導入した場合には、おそらくroot権限で行う必要があります。
5199 \end_layout
5200
5201 \begin_layout Enumerate
5202 MiKTeXでは、パッケージを全ユーザー用に導入した場合には、「Settings
5203 \begin_inset space ~
5204 \end_inset
5205
5206 (Admin)」を起動し、「Refresh FNDB」と記してあるボタンを押してください。そうでない場合には、「Settings」を起動して同様に行ってください
5207
5208 \end_layout
5209
5210 \end_deeper
5211 \begin_layout Enumerate
5212 最後に、LyXに新しいパッケージがあることを告げなくてはなりません。そこで、LyXからツール\SpecialChar \menuseparator
5213 再初期設定メニューを実行して、LyXを再起動します。
5214 \end_layout
5215
5216 \begin_layout Standard
5217 これでパッケージが導入されました。この例では、文書クラス
5218 \begin_inset Flex Code
5219 status collapsed
5220
5221 \begin_layout Plain Layout
5222 Slides
5223 \begin_inset space ~
5224 \end_inset
5225
5226 (FoilTe
5227 \begin_inset ERT
5228 status collapsed
5229
5230 \begin_layout Plain Layout
5231
5232 {}
5233 \end_layout
5234
5235 \end_inset
5236
5237 X)
5238 \end_layout
5239
5240 \end_inset
5241
5242
5243 \begin_inset Flex MenuItem
5244 status collapsed
5245
5246 \begin_layout Plain Layout
5247 文書\SpecialChar \menuseparator
5248 設定\SpecialChar \menuseparator
5249 文書クラス
5250 \end_layout
5251
5252 \end_inset
5253
5254 で利用可能になっているはずです。
5255 \end_layout
5256
5257 \begin_layout Standard
5258 \begin_inset Flex MenuItem
5259 status collapsed
5260
5261 \begin_layout Plain Layout
5262 文書\SpecialChar \menuseparator
5263 設定\SpecialChar \menuseparator
5264 文書クラス
5265 \end_layout
5266
5267 \end_inset
5268
5269 メニューに列挙されてもいないLaTeX文書クラスを使用したい場合には、その「レイアウト」ファイルを作り出さなくてはなりません。これが次節のトピックです。
5270 \end_layout
5271
5272 \begin_layout Section
5273 レイアウトファイルの型
5274 \end_layout
5275
5276 \begin_layout Standard
5277 この節は、レイアウト情報を含む各種LyXファイルについて述べます。これらのファイルは、各種段落様式や文字様式についての記述がされているものであり、LyXがそれら
5278 をどのように表示すべきなのか、また、それらをどのようにLaTeXやDocBook、XHTMLその他の出力書式に翻訳すればよいのかが記されています。
5279 \end_layout
5280
5281 \begin_layout Standard
5282 ここでは、レイアウトファイル作成過程の包括的な解説を試みたいと思いますが、LaTeXクラスだけでもサポートする文書の種類があまりにたくさんあるので、読者が出会い
5283 うるケースや問題をすべてカバーすることはとても望めません。LyXユーザーメーリングリストには、自身の経験を人々と分かち合いたいと望む、レイアウトデザインの経験豊
5284 かな人々がよく顔を出していますので、気軽に質問を投げかけてみてください。
5285 \end_layout
5286
5287 \begin_layout Standard
5288 新しいレイアウトを準備するに当たっては、LyXと共に頒布されているレイアウトの例を見るのがたいへん役立ちます。他の人々も使用できるLaTeX文書クラス用のLyX
5289 レイアウトを作ったり、他の人々にも有用なモジュールをお書きになった場合には、
5290 \begin_inset CommandInset href
5291 LatexCommand href
5292 name "LyX Wikiのレイアウトに関する節"
5293 target "http://wiki.lyx.org/Layouts/Layouts"
5294
5295 \end_inset
5296
5297 か、LyX開発者メーリングリストに投稿して、LyX頒布版に同梱することができるようにしてください
5298 \begin_inset Foot
5299 status collapsed
5300
5301 \begin_layout Plain Layout
5302 LyXはGeneral Public Licenseの下でライセンスされていますので、LyXに寄贈されたものは総て同じライセンス下に置かれることに注意してくださ
5303 い。
5304 \end_layout
5305
5306 \end_inset
5307
5308
5309 \end_layout
5310
5311 \begin_layout Subsection
5312 レイアウトモジュール
5313 \begin_inset CommandInset label
5314 LatexCommand label
5315 name "sub:レイアウトモジュール"
5316
5317 \end_inset
5318
5319
5320 \end_layout
5321
5322 \begin_layout Standard
5323 ここまで、「レイアウトファイル」についてお話してきました。しかし、レイアウト情報を含むものには、他の種類のファイルもあります。厳密にレイアウトファイルと呼ぶとき
5324 、それは
5325 \begin_inset Flex Code
5326 status collapsed
5327
5328 \begin_layout Plain Layout
5329 .layout
5330 \end_layout
5331
5332 \end_inset
5333
5334 拡張子を持ち、文書クラスに関する情報をLyXに提供するものを指します。しかしながら、LyX 1.6以降、レイアウト情報は、拡張子が
5335 \begin_inset Flex Code
5336 status collapsed
5337
5338 \begin_layout Plain Layout
5339 .module
5340 \end_layout
5341
5342 \end_inset
5343
5344 のレイアウト
5345 \emph on
5346 モジュール
5347 \emph default
5348 にも含めることができます。レイアウトがLaTeXクラスに対応しているように、モジュールはLaTeXパッケージに対応するものであり、
5349 \begin_inset Flex Code
5350 status collapsed
5351
5352 \begin_layout Plain Layout
5353 endnotes
5354 \end_layout
5355
5356 \end_inset
5357
5358 モジュールのように、特定のパッケージにサポートを提供するためのモジュールもあります。レイアウトモジュールは、特定の文書レイアウトに特化したものではなく、多くのレ
5359 イアウトで使用できるという意味において、一面、
5360 \begin_inset Flex Code
5361 status collapsed
5362
5363 \begin_layout Plain Layout
5364 stdsections.inc
5365 \end_layout
5366
5367 \end_inset
5368
5369 等のインクルードファイル
5370 \begin_inset Foot
5371 status collapsed
5372
5373 \begin_layout Plain Layout
5374 これらは任意の拡張子をつけることができますが、慣習的に
5375 \begin_inset Flex Code
5376 status collapsed
5377
5378 \begin_layout Plain Layout
5379 .inc
5380 \end_layout
5381
5382 \end_inset
5383
5384 拡張子が用いられます。
5385 \end_layout
5386
5387 \end_inset
5388
5389 のようなものです。相異なる点といえば、
5390 \begin_inset Flex Code
5391 status collapsed
5392
5393 \begin_layout Plain Layout
5394 article.cls
5395 \end_layout
5396
5397 \end_inset
5398
5399 でインクルードファイルを使用するには、そのファイルを編集しなくてはなりませんが、モジュールの場合は、
5400 \begin_inset Flex MenuItem
5401 status collapsed
5402
5403 \begin_layout Plain Layout
5404 文書\SpecialChar \menuseparator
5405 設定
5406 \end_layout
5407
5408 \end_inset
5409
5410 ダイアログで選択するだけですみます。
5411 \end_layout
5412
5413 \begin_layout Standard
5414 モジュール作成は、新しく段落様式を一つ加えたり、任意設定差込枠を加えたりするだけで済むことも多いので、レイアウト編集を学ぶ上でもっとも易しい方法です。しかし原理
5415 的には、レイアウトファイルに入れることのできるものはすべて入れることができます。
5416 \end_layout
5417
5418 \begin_layout Standard
5419 新しいモジュールを作成し、それを
5420 \begin_inset Flex Code
5421 status collapsed
5422
5423 \begin_layout Plain Layout
5424 layout/
5425 \end_layout
5426
5427 \end_inset
5428
5429 フォルダにコピーした後、モジュールがメニューに現れるようにするためには、LyXの再設定を行って再起動しなくてはなりません。しかしながら、モジュールの修正の場合に
5430 は、
5431 \begin_inset Flex MenuItem
5432 status collapsed
5433
5434 \begin_layout Plain Layout
5435 文書\SpecialChar \menuseparator
5436 設定
5437 \end_layout
5438
5439 \end_inset
5440
5441 を開いてどれかを選択し「OK」を押せば、直ちに反映されます。
5442 \emph on
5443 これを実行する前に、作業中の文書を保存しておくことを強く勧めます
5444 \emph default
5445 。もっと言えば、
5446 \emph on
5447 実際の文書で作業しているときに、同時にモジュールの編集をしようとしないことを強く勧めます
5448 \emph default
5449 。もちろん開発陣は、そのような場合でもLyXが安定性を維持するように努力していますが、あなたが作成したモジュール中の文法エラー等によって、奇妙な挙動が引き起こさ
5450 れることがあるからです。
5451 \end_layout
5452
5453 \begin_layout Subsection
5454 \begin_inset Flex MenuItem
5455 status collapsed
5456
5457 \begin_layout Plain Layout
5458 .sty
5459 \end_layout
5460
5461 \end_inset
5462
5463 ファイル用のレイアウト
5464 \end_layout
5465
5466 \begin_layout Standard
5467 新しくLaTeX文書クラスをサポートしようとするとき、LaTeX2eクラス(
5468 \begin_inset Flex Code
5469 status collapsed
5470
5471 \begin_layout Plain Layout
5472 .cls
5473 \end_layout
5474
5475 \end_inset
5476
5477 )ファイルが絡む場合と、スタイル(
5478 \begin_inset Flex Code
5479 status collapsed
5480
5481 \begin_layout Plain Layout
5482 .sty
5483 \end_layout
5484
5485 \end_inset
5486
5487 )ファイルが絡む場合の2つの状況があり得ます。スタイルファイルのサポートは、通常は、かなり容易ですが、新しくクラスファイルをサポートすることは、もう少し難しくな
5488 ります。この節では、前者について述べることとし、後者については次節に譲ります。当然のことながら、新しくDocBook DTDをサポートしたい場合にも、同様の所見
5489 が当てはまります。
5490 \end_layout
5491
5492 \begin_layout Standard
5493 この易しい方の場合では、新しい文書クラスは、既にサポートされている文書クラスと共に使うスタイルファイルとして提供されています。例示のために、スタイルファイルは
5494 \begin_inset Flex MenuItem
5495 status collapsed
5496
5497 \begin_layout Plain Layout
5498 myclass.sty
5499 \end_layout
5500
5501 \end_inset
5502
5503 という名称で、標準的なクラスである
5504 \begin_inset Flex MenuItem
5505 status collapsed
5506
5507 \begin_layout Plain Layout
5508 report.cls
5509 \end_layout
5510
5511 \end_inset
5512
5513 と共に用いられるものと仮定しましょう。
5514 \end_layout
5515
5516 \begin_layout Standard
5517 既存の文書クラスのレイアウトファイルを、以下のように、お使いのローカルディレクトリにコピーすることから始めてください
5518 \begin_inset Foot
5519 status collapsed
5520
5521 \begin_layout Plain Layout
5522 もちろん、どのディレクトリがローカルディレクトリとなるかは、プラットフォームに依存します。LyXでは、起動時に
5523 \begin_inset Flex MenuItem
5524 status collapsed
5525
5526 \begin_layout Plain Layout
5527 -userdir
5528 \end_layout
5529
5530 \end_inset
5531
5532 オプションを指定することによって、ローカルディレクトリを指定することも可能です。
5533 \end_layout
5534
5535 \end_inset
5536
5537
5538 \end_layout
5539
5540 \begin_layout LyX-Code
5541 cp report.layout ~/.lyx/layouts/myclass.layout
5542 \end_layout
5543
5544 \begin_layout Standard
5545 それから、
5546 \begin_inset Flex Code
5547 status collapsed
5548
5549 \begin_layout Plain Layout
5550 myclass.layout
5551 \end_layout
5552
5553 \end_inset
5554
5555 を編集して、
5556 \end_layout
5557
5558 \begin_layout LyX-Code
5559
5560 \backslash
5561 DeclareLaT
5562 \begin_inset ERT
5563 status collapsed
5564
5565 \begin_layout Plain Layout
5566
5567 {}
5568 \end_layout
5569
5570 \end_inset
5571
5572 eXClass{report}
5573 \end_layout
5574
5575 \begin_layout Standard
5576 という行を
5577 \end_layout
5578
5579 \begin_layout LyX-Code
5580
5581 \backslash
5582 DeclareLaT
5583 \bar under
5584 \lang english
5585
5586 \begin_inset ERT
5587 status collapsed
5588
5589 \begin_layout Plain Layout
5590
5591 {}
5592 \end_layout
5593
5594 \end_inset
5595
5596
5597 \bar default
5598 \lang japanese
5599 eXClass[report, myclass.sty]{report (myclass)}
5600 \end_layout
5601
5602 \begin_layout Standard
5603 のように変更してください。それから、ファイル冒頭辺りに
5604 \end_layout
5605
5606 \begin_layout LyX-Code
5607 Preamble 
5608 \begin_inset Newline newline
5609 \end_inset
5610
5611     
5612 \backslash
5613 usepackage{myclass}
5614 \begin_inset Newline newline
5615 \end_inset
5616
5617 EndPreamble
5618 \end_layout
5619
5620 \begin_layout Standard
5621 と書き加えてください。
5622 \end_layout
5623
5624 \begin_layout Standard
5625 LyXを起動して
5626 \begin_inset Flex MenuItem
5627 status collapsed
5628
5629 \begin_layout Plain Layout
5630 ツール\SpecialChar \menuseparator
5631 再設定
5632 \end_layout
5633
5634 \end_inset
5635
5636 を選択してください。それからLyXを再起動し、新規文書を作成してみてください。すると、
5637 \begin_inset Flex MenuItem
5638 status collapsed
5639
5640 \begin_layout Plain Layout
5641 文書\SpecialChar \menuseparator
5642 設定
5643 \end_layout
5644
5645 \end_inset
5646
5647 ダイアログの文書クラスオプションに「
5648 \begin_inset Flex MenuItem
5649 status collapsed
5650
5651 \begin_layout Plain Layout
5652 report (myclass)
5653 \end_layout
5654
5655 \end_inset
5656
5657 」が現れるはずです。新しいクラスにおいて、節区切り用コマンドなどの一部が、基礎となったクラス—この例では
5658 \begin_inset Flex Code
5659 status collapsed
5660
5661 \begin_layout Plain Layout
5662 report
5663 \end_layout
5664
5665 \end_inset
5666
5667 —とは違う挙動をすることはよくありますので、希望に応じて、各節の設定をいじると良いでしょう。各節のレイアウト情報は、
5668 \begin_inset Flex Code
5669 status collapsed
5670
5671 \begin_layout Plain Layout
5672 stdsections.inc
5673 \end_layout
5674
5675 \end_inset
5676
5677 に含まれていますが、このファイルをコピーしたり変更したりする必要はありません。代わりに、自身のレイアウトファイル中、
5678 \begin_inset Flex Code
5679 status collapsed
5680
5681 \begin_layout Plain Layout
5682 stdsections.inc
5683 \end_layout
5684
5685 \end_inset
5686
5687 も取り込む
5688 \begin_inset Flex Code
5689 status collapsed
5690
5691 \begin_layout Plain Layout
5692 Input stdclass.inc
5693 \end_layout
5694
5695 \end_inset
5696
5697 の後に変更を加えるだけです。たとえば、章見だしのフォントをサンセリフ体に変更するには、以下のような行を加えます。
5698 \end_layout
5699
5700 \begin_layout LyX-Code
5701 Style Chapter
5702 \end_layout
5703
5704 \begin_layout LyX-Code
5705     Font
5706 \end_layout
5707
5708 \begin_layout LyX-Code
5709         Family Sans
5710 \end_layout
5711
5712 \begin_layout LyX-Code
5713     EndFont
5714 \end_layout
5715
5716 \begin_layout LyX-Code
5717 End
5718 \end_layout
5719
5720 \begin_layout Standard
5721 これは、既存の章様式宣言を上書き(あるいはこの場合には追加)します。
5722 \end_layout
5723
5724 \begin_layout Standard
5725 新しいパッケージでは、基礎となったクラスには存在しないコマンドや環境を提供することもできます。この場合には、これらをレイアウトファイルに加えます。そのやり方につ
5726 いては、第
5727 \begin_inset CommandInset ref
5728 LatexCommand ref
5729 reference "sec:テキストクラス"
5730
5731 \end_inset
5732
5733 節の情報を参照してください。
5734 \end_layout
5735
5736 \begin_layout Standard
5737 もし
5738 \begin_inset Flex Code
5739 status collapsed
5740
5741 \begin_layout Plain Layout
5742 myclass.sty
5743 \end_layout
5744
5745 \end_inset
5746
5747 が他の文書クラスで使用することができたり、あるいはできない場合でも、基礎となるクラスから読み込むことのできるモジュールを書くのが最も簡単であることがわかるでしょ
5748 う。最も簡単なモジュールの例としては、以下のようなものになります。
5749 \end_layout
5750
5751 \begin_layout LyX-Code
5752 #
5753 \backslash
5754 DeclareLyXModule{My Package}
5755 \end_layout
5756
5757 \begin_layout LyX-Code
5758 #DescriptionBegin
5759 \end_layout
5760
5761 \begin_layout LyX-Code
5762 #Support for mypkg.sty.
5763 \end_layout
5764
5765 \begin_layout LyX-Code
5766 #DescriptionEnd
5767 \begin_inset Newline newline
5768 \end_inset
5769
5770
5771 \end_layout
5772
5773 \begin_layout LyX-Code
5774 Format 21
5775 \begin_inset Newline newline
5776 \end_inset
5777
5778
5779 \end_layout
5780
5781 \begin_layout LyX-Code
5782 Preamble
5783 \begin_inset Newline newline
5784 \end_inset
5785
5786     
5787 \backslash
5788 usepackage{mypkg}
5789 \begin_inset Newline newline
5790 \end_inset
5791
5792 EndPreamble
5793 \end_layout
5794
5795 \begin_layout Standard
5796 もう少し複雑なモジュールでは、既存の構成物の挙動を修正したり、新しい構成物を定義したりすることになるでしょう。この辺りの議論については、第
5797 \begin_inset CommandInset ref
5798 LatexCommand ref
5799 reference "sec:テキストクラス"
5800
5801 \end_inset
5802
5803 節を参照してください。
5804 \end_layout
5805
5806 \begin_layout Subsection
5807 \begin_inset Flex MenuItem
5808 status collapsed
5809
5810 \begin_layout Plain Layout
5811 .cls
5812 \end_layout
5813
5814 \end_inset
5815
5816 ファイル用のレイアウト
5817 \end_layout
5818
5819 \begin_layout Standard
5820 これには2つのケースがありえます。ひとつは、クラスファイル自体が既存の文書クラスに立脚している場合です。たとえば、多くの学位論文用クラスは
5821 \begin_inset Flex MenuItem
5822 status collapsed
5823
5824 \begin_layout Plain Layout
5825 book.cls
5826 \end_layout
5827
5828 \end_inset
5829
5830 に基づいています。お使いのものがどうであるかを見るには、クラスファイル中に
5831 \end_layout
5832
5833 \begin_layout LyX-Code
5834
5835 \backslash
5836 LoadClass{book}
5837 \end_layout
5838
5839 \begin_layout Standard
5840 という行がないかどうか探してください。もしこれがあれば、
5841 \begin_inset Flex Code
5842 status collapsed
5843
5844 \begin_layout Plain Layout
5845 DeclareLaTeXClass
5846 \end_layout
5847
5848 \end_inset
5849
5850 行は異なりますが、おおよそ前節のように進めることができます。あなたが新しく作るクラスが
5851 \begin_inset Flex Code
5852 status collapsed
5853
5854 \begin_layout Plain Layout
5855 thesis
5856 \end_layout
5857
5858 \end_inset
5859
5860 であり、
5861 \begin_inset Flex Code
5862 status collapsed
5863
5864 \begin_layout Plain Layout
5865 book
5866 \end_layout
5867
5868 \end_inset
5869
5870 クラスに基づいていれば、
5871 \begin_inset Flex Code
5872 status collapsed
5873
5874 \begin_layout Plain Layout
5875 DeclareLaTeXClass
5876 \end_layout
5877
5878 \end_inset
5879
5880 行は以下のようにします
5881 \begin_inset Foot
5882 status collapsed
5883
5884 \begin_layout Plain Layout
5885 さらにLyXは、文書クラス名がレイアウトファイル名と同じだと仮定するので、クラスファイルを
5886 \begin_inset Flex Code
5887 status collapsed
5888
5889 \begin_layout Plain Layout
5890 thesis.layout
5891 \end_layout
5892
5893 \end_inset
5894
5895 という名前で保存するのが最も簡単です。 
5896 \end_layout
5897
5898 \end_inset
5899
5900
5901 \end_layout
5902
5903 \begin_layout LyX-Code
5904
5905 \backslash
5906 DeclareLaT
5907 \begin_inset ERT
5908 status collapsed
5909
5910 \begin_layout Plain Layout
5911
5912 {}
5913 \end_layout
5914
5915 \end_inset
5916
5917 eXClass[thesis,book]{thesis}
5918 \end_layout
5919
5920 \begin_layout Standard
5921 他方、新しいクラスが既存のクラスに基づいていない場合には、おそらくあなた自身のレイアウトをしたためる必要があります。もし可能であれば、類似したLaTeXクラスを
5922 使用している既存のレイアウトファイルをコピーして、それに修正を加えるようにすることを強くお勧めします。少なくとも、どの項目を考慮すべきかがわかるように、既存のフ
5923 ァイルを作業の開始点としてください。
5924 \end_layout
5925
5926 \begin_layout Subsection
5927 ひな型を作成する
5928 \begin_inset CommandInset label
5929 LatexCommand label
5930 name "sec:ひな型を作成する"
5931
5932 \end_inset
5933
5934
5935 \end_layout
5936
5937 \begin_layout Standard
5938 新しい文書クラス用のレイアウトファイルを書いたならば、そのレイアウト用のひな型も書くことを検討されるかもしれません。ひな型は、内容はダミーですが、レイアウトの使
5939 い方を示す一種のチュートリアルとして動作します。もちろん、イメージを得るために、LyX添付のひな型をあれこれ見てみるのもよいでしょう。
5940 \end_layout
5941
5942 \begin_layout Standard
5943 ひな型は、通常の文書と同様、LyXを使って作成することができます。唯一違う点は、通常の文書では、フォント構成や用紙寸法を含め、すべてのあり得る設定が為されている
5944 点です。これらの場合、通常ユーザーはひな型が彼の設定値を上書きすることを望みません。この理由から、ひな型の設計者は、
5945 \begin_inset Flex Code
5946 status collapsed
5947
5948 \begin_layout Plain Layout
5949
5950 \backslash
5951 fontscheme
5952 \end_layout
5953
5954 \end_inset
5955
5956
5957 \begin_inset Flex Code
5958 status collapsed
5959
5960 \begin_layout Plain Layout
5961
5962 \backslash
5963 papersize
5964 \end_layout
5965
5966 \end_inset
5967
5968 などの対応するコマンドをひな型LyXファイルから取り除く必要があります。これは、たとえば
5969 \begin_inset Flex Code
5970 status collapsed
5971
5972 \begin_layout Plain Layout
5973 vi
5974 \end_layout
5975
5976 \end_inset
5977
5978
5979 \begin_inset Flex Code
5980 status collapsed
5981
5982 \begin_layout Plain Layout
5983 notepad
5984 \end_layout
5985
5986 \end_inset
5987
5988 のような、どの軽いテキストエディタでも行うことができます。
5989 \end_layout
5990
5991 \begin_layout Standard
5992 編集したひな型を
5993 \begin_inset Flex Code
5994 status collapsed
5995
5996 \begin_layout Plain Layout
5997 UserDir/templates/
5998 \end_layout
5999
6000 \end_inset
6001
6002 に置き、グローバルなひな型ディレクトリ
6003 \begin_inset Flex Code
6004 status collapsed
6005
6006 \begin_layout Plain Layout
6007 LyXDir/templates/
6008 \end_layout
6009
6010 \end_inset
6011
6012 から使用したいものを同じ場所にコピーし、
6013 \begin_inset Flex MenuItem
6014 status collapsed
6015
6016 \begin_layout Plain Layout
6017 ツール\SpecialChar \menuseparator
6018 設定\SpecialChar \menuseparator
6019 パス
6020 \end_layout
6021
6022 \end_inset
6023
6024 ダイアログのひな型パスを再定義してください。
6025 \end_layout
6026
6027 \begin_layout Standard
6028 ところで、特別な意味を持つひな型
6029 \begin_inset Flex Code
6030 status collapsed
6031
6032 \begin_layout Plain Layout
6033 defaults.lyx
6034 \end_layout
6035
6036 \end_inset
6037
6038 があることに注意してください。このひな型は、
6039 \begin_inset Flex MenuItem
6040 status collapsed
6041
6042 \begin_layout Plain Layout
6043 ファイル\SpecialChar \menuseparator
6044 新規
6045 \end_layout
6046
6047 \end_inset
6048
6049 を使って新規文書を作成する際、便利な既定値を提供する目的で必ず読み込まれます。このひな型をLyX内部から作成するのにしなくてはならないことは、対応する設定を持つ
6050 文書を開き、
6051 \begin_inset Flex MenuItem
6052 status collapsed
6053
6054 \begin_layout Plain Layout
6055 文書既定値として保存
6056 \end_layout
6057
6058 \end_inset
6059
6060 ボタンを押すことです。
6061 \end_layout
6062
6063 \begin_layout Subsection
6064 旧レイアウトファイルの更新
6065 \end_layout
6066
6067 \begin_layout Standard
6068 レイアウトファイルの書式は、LyXのリリース毎に変更されますので、古いレイアウトファイルは変換されなくてはなりません。この過程は、LyX第1.4版から自動化されま
6069 した。LyXが古い書式のレイアウトファイルを読み込むと、LyXは、自動的に変換ツール
6070 \begin_inset Flex Code
6071 status collapsed
6072
6073 \begin_layout Plain Layout
6074 LyXDir/scripts/layout2layout.py
6075 \end_layout
6076
6077 \end_inset
6078
6079 を呼び出し、それを現在の書式の一時ファイルに変換します。元のファイルは変更を加えられずに措かれます。もしこのレイアウトファイルをよく使うならば、LyXがこれを毎
6080 回行なわくて済むように、レイアウトファイルを恒久的に変換しておきたいと思うかもしれません。これを行うには、以下のように変換子を手動で呼び出してください。
6081 \end_layout
6082
6083 \begin_layout LyX-Code
6084 mv myclass.layout myclass.old
6085 \end_layout
6086
6087 \begin_layout LyX-Code
6088 python LyXDir/scripts/layout2layout.py myclass.old myclassnew.layout
6089 \end_layout
6090
6091 \begin_layout Standard
6092 もちろん、
6093 \begin_inset Flex Code
6094 status collapsed
6095
6096 \begin_layout Plain Layout
6097 LyXDir
6098 \end_layout
6099
6100 \end_inset
6101
6102 は、お使いのLyXシステムディレクトリ名に置き換えてください。
6103 \end_layout
6104
6105 \begin_layout Standard
6106 手動変換は、インクルードされているファイル内部の変更までは取り扱いませんので、それらのファイルは別に変換されなくてはなりません。
6107 \end_layout
6108
6109 \begin_layout Section
6110 \begin_inset CommandInset label
6111 LatexCommand label
6112 name "sec:テキストクラス"
6113
6114 \end_inset
6115
6116 レイアウトファイルの書式
6117 \end_layout
6118
6119 \begin_layout Standard
6120 以下の各節では、いよいよ自分の手を汚してレイアウトファイルを作成したり編集したりする段階になった際、直面することの説明を行います。私たちからのアドバイスとしては
6121 、ゆっくりと進めるようにして、ちょっと進むごとに保存やテストを行い、心休まる音楽を聴き、好きな大人の飲み物を一二杯口にしながら行うのがいいでしょう。特に行き詰ま
6122 ってしまったときにはそうです。実際にはそんなに難しいことではないのですが、特に一度に多くのことをやろうとすると、選択肢が多くありすぎて圧倒されてしまうのです。さ
6123 て、もう一杯大人向け飲料をどうぞ。適量ね。
6124 \end_layout
6125
6126 \begin_layout Standard
6127 この章で述べられているタグは、すべて大文字小文字を区別しません。つまり、
6128 \begin_inset Flex Code
6129 status collapsed
6130
6131 \begin_layout Plain Layout
6132 Style
6133 \end_layout
6134
6135 \end_inset
6136
6137
6138 \begin_inset Flex Code
6139 status collapsed
6140
6141 \begin_layout Plain Layout
6142 style
6143 \end_layout
6144
6145 \end_inset
6146
6147
6148 \begin_inset Flex Code
6149 status collapsed
6150
6151 \begin_layout Plain Layout
6152 StYlE
6153 \end_layout
6154
6155 \end_inset
6156
6157 は同じコマンドとなります。機能名の後にある角括弧は、その機能が取り得る値を示します。テキストクラス設定内で機能が特定されていない場合には、既定値は
6158 \begin_inset Flex Code
6159 status collapsed
6160
6161 \begin_layout Plain Layout
6162
6163 \emph on
6164 強調
6165 \end_layout
6166
6167 \end_inset
6168
6169 で表記されます。引数が「文字列」や「浮動小数点型」などのデータ型をとる場合には、既定値は
6170 \begin_inset Flex Code
6171 status collapsed
6172
6173 \begin_layout Plain Layout
6174 浮動小数点型=
6175 \emph on
6176 既定値
6177 \end_layout
6178
6179 \end_inset
6180
6181 のように表示されます。
6182 \end_layout
6183
6184 \begin_layout Subsection
6185 文書クラス宣言
6186 \end_layout
6187
6188 \begin_layout Standard
6189 レイアウトファイル中の
6190 \begin_inset Flex Code
6191 status collapsed
6192
6193 \begin_layout Plain Layout
6194 #
6195 \end_layout
6196
6197 \end_inset
6198
6199 で始まる行はコメントです。この規則には一つだけ例外があります。すべての
6200 \begin_inset Flex Code
6201 status collapsed
6202
6203 \begin_layout Plain Layout
6204 *.layout
6205 \end_layout
6206
6207 \end_inset
6208
6209 ファイルは、以下のような行で始めなくてはならないのです。
6210 \end_layout
6211
6212 \begin_layout LyX-Code
6213
6214 \size small
6215 #% Do not delete the line below; configure depends on this 
6216 \end_layout
6217
6218 \begin_layout LyX-Code
6219
6220 \size small
6221 #  
6222 \backslash
6223 DeclareLaT
6224 \size default
6225
6226 \begin_inset ERT
6227 status collapsed
6228
6229 \begin_layout Plain Layout
6230
6231 {}
6232 \end_layout
6233
6234 \end_inset
6235
6236
6237 \size small
6238 eXClass{article}
6239 \end_layout
6240
6241 \begin_layout Standard
6242 この2行目は、LyXを初期設定や(再)設定するときに用いられるのです。このレイアウトファイルは、LaTeXスクリプト
6243 \begin_inset Flex Code
6244 status collapsed
6245
6246 \begin_layout Plain Layout
6247 chkconfig.ltx
6248 \end_layout
6249
6250 \end_inset
6251
6252 が、
6253 \begin_inset Flex Code
6254 status collapsed
6255
6256 \begin_layout Plain Layout
6257 #
6258 \end_layout
6259
6260 \end_inset
6261
6262 を無視する特別なモードで読み込みます。1行目は単なるLaTeXコメントですが、2行目にはテキストクラスの宣言が書かれています。これらの行が
6263 \begin_inset Flex Code
6264 status collapsed
6265
6266 \begin_layout Plain Layout
6267 article.layout
6268 \end_layout
6269
6270 \end_inset
6271
6272 と名付けられたファイルにあると、
6273 \begin_inset Flex Code
6274 status collapsed
6275
6276 \begin_layout Plain Layout
6277 article
6278 \end_layout
6279
6280 \end_inset
6281
6282 (レイアウトファイル名)という名称のテキストクラスを定義し、LaTeX文書クラス
6283 \begin_inset Flex Code
6284 status collapsed
6285
6286 \begin_layout Plain Layout
6287 article.cls
6288 \end_layout
6289
6290 \end_inset
6291
6292 を使用するようになります(既定ではレイアウトと同じ名称のものを使用します)。上記に現れる「article」という文字列は、
6293 \begin_inset Flex MenuItem
6294 status collapsed
6295
6296 \begin_layout Plain Layout
6297 文書\SpecialChar \menuseparator
6298 設定
6299 \end_layout
6300
6301 \end_inset
6302
6303 ダイアログのテキストクラスの説明に使用されます。
6304 \end_layout
6305
6306 \begin_layout Standard
6307 節見出し表示に変更を加えた、
6308 \begin_inset Flex Code
6309 status collapsed
6310
6311 \begin_layout Plain Layout
6312 article.cls
6313 \end_layout
6314
6315 \end_inset
6316
6317 文書クラスを使用するテキストクラスを自分で書いたものとしましょう。これを
6318 \begin_inset Flex Code
6319 status collapsed
6320
6321 \begin_layout Plain Layout
6322 myarticle.layout
6323 \end_layout
6324
6325 \end_inset
6326
6327 というファイルに置いたとすると、このファイルのヘッダは以下のようになります。
6328 \end_layout
6329
6330 \begin_layout LyX-Code
6331
6332 \size small
6333 #% Do not delete the line below; configure depends on this 
6334 \end_layout
6335
6336 \begin_layout LyX-Code
6337
6338 \size small
6339 #  
6340 \backslash
6341 DeclareLaT
6342 \size default
6343
6344 \begin_inset ERT
6345 status collapsed
6346
6347 \begin_layout Plain Layout
6348
6349 {}
6350 \end_layout
6351
6352 \end_inset
6353
6354
6355 \size small
6356 eXClass[article]{article (with my own headings)}
6357 \end_layout
6358
6359 \begin_layout Standard
6360 これは、LaTeX文書クラス
6361 \begin_inset Flex Code
6362 status collapsed
6363
6364 \begin_layout Plain Layout
6365 article.cls
6366 \end_layout
6367
6368 \end_inset
6369
6370 に関連づけられ、「article (with my own headings)」と表示される、
6371 \begin_inset Flex Code
6372 status collapsed
6373
6374 \begin_layout Plain Layout
6375 myarticle
6376 \end_layout
6377
6378 \end_inset
6379
6380 テキストクラスを宣言するものです。もしこのテキストクラスが複数のパッケージに依存するならば、以下のように宣言すると良いでしょう。
6381 \end_layout
6382
6383 \begin_layout LyX-Code
6384
6385 \size small
6386 #% Do not delete the line below; configure depends on this 
6387 \end_layout
6388
6389 \begin_layout LyX-Code
6390
6391 \size small
6392 #  
6393 \backslash
6394 DeclareLaT
6395 \size default
6396
6397 \begin_inset ERT
6398 status collapsed
6399
6400 \begin_layout Plain Layout
6401
6402 {}
6403 \end_layout
6404
6405 \end_inset
6406
6407
6408 \size small
6409 eXClass[article,foo.sty]{article (with my own headings)}
6410 \end_layout
6411
6412 \begin_layout Standard
6413 これは、このテキストクラスが
6414 \begin_inset Flex Code
6415 status collapsed
6416
6417 \begin_layout Plain Layout
6418 foo.sty
6419 \end_layout
6420
6421 \end_inset
6422
6423 パッケージを使用することを示しています。最後に、DocBookコード向けのクラスを宣言することもできることを見ます。典型的な宣言は以下のようになります。
6424 \end_layout
6425
6426 \begin_layout LyX-Code
6427
6428 \size small
6429 #% Do not delete the line below; configure depends on this 
6430 \end_layout
6431
6432 \begin_layout LyX-Code
6433
6434 \size small
6435
6436 \backslash
6437 DeclareDocBookClass[article]{SGML (DocBook article)}
6438 \end_layout
6439
6440 \begin_layout Standard
6441 これらの宣言には、文書クラス名を宣言する非必須パラメータ(ただしリストではない)を与えることができることに注意してください。
6442 \end_layout
6443
6444 \begin_layout Standard
6445 できる限り明示的に要約すると、レイアウト宣言は以下の形をとります。
6446 \end_layout
6447
6448 \begin_layout LyX-Code
6449
6450 \size small
6451 #  
6452 \backslash
6453 DeclareLaT
6454 \size default
6455
6456 \begin_inset ERT
6457 status collapsed
6458
6459 \begin_layout Plain Layout
6460
6461 {}
6462 \end_layout
6463
6464 \end_inset
6465
6466
6467 \size small
6468 eXClass[クラス,パッケージ名.sty]{レイアウトの説明}
6469 \end_layout
6470
6471 \begin_layout Standard
6472 ここで「クラス」は、LaTeXクラスファイル名とレイアウトファイル名が異なるときのみ、指定する必要があります。クラスファイル名が指定されなければ、LyXは単純に
6473 、クラスファイル名がレイアウトファイル名と同じであると仮定します。
6474 \end_layout
6475
6476 \begin_layout Standard
6477 テキストクラスがあなたの嗜好に合うように修正できたならば、他にしなくてはならないことは、それを
6478 \begin_inset Flex Code
6479 status collapsed
6480
6481 \begin_layout Plain Layout
6482 L
6483 \begin_inset ERT
6484 status collapsed
6485
6486 \begin_layout Plain Layout
6487
6488 {}
6489 \end_layout
6490
6491 \end_inset
6492
6493 yXDir/layouts/
6494 \end_layout
6495
6496 \end_inset
6497
6498
6499 \begin_inset Flex Code
6500 status collapsed
6501
6502 \begin_layout Plain Layout
6503 UserDir/layouts
6504 \end_layout
6505
6506 \end_inset
6507
6508 にコピーし、
6509 \begin_inset Flex MenuItem
6510 status collapsed
6511
6512 \begin_layout Plain Layout
6513 ツール\SpecialChar \menuseparator
6514 再初期設定
6515 \end_layout
6516
6517 \end_inset
6518
6519 を実行し、LyXを終了して再起動するだけです。そうすれば、この新しいテキストクラスが、他のテキストクラスと同様に使用できるようになります。
6520 \end_layout
6521
6522 \begin_layout Standard
6523 レイアウトファイルが導入されたならば、これを編集して、再初期設定したりLyXを再起動したりすることなく、その変更を確認することができます
6524 \begin_inset Foot
6525 status collapsed
6526
6527 \begin_layout Plain Layout
6528 第1.6版よりも前のLyXでは、これを行うことはできませんでした。その結果、レイアウトファイルに加えた変更を反映させるには、その度にLyXを再起動しなくてはならな
6529 かったので、レイアウトファイルを編集する作業は、たいへん時間を浪費する作業だったのです。
6530 \end_layout
6531
6532 \end_inset
6533
6534 。LyX関数
6535 \begin_inset Flex MenuItem
6536 status collapsed
6537
6538 \begin_layout Plain Layout
6539 layout-reload
6540 \end_layout
6541
6542 \end_inset
6543
6544 を使用すれば、現在使っているレイアウトの再読み込みを強制することができるのです。この関数への既定のキー割り当てはありません—もちろん自分でどれかのキーに割り当て
6545 ることもできますが—。しかし、通常は、この関数を使用する場合は、これをミニバッファに入力します。
6546 \end_layout
6547
6548 \begin_layout Standard
6549
6550 \emph on
6551 注意
6552 \emph default
6553
6554 \begin_inset Flex MenuItem
6555 status collapsed
6556
6557 \begin_layout Plain Layout
6558 layout-reload
6559 \end_layout
6560
6561 \end_inset
6562
6563 はかなり「高度な機能」です。この機能を利用する前に、作業中の文書を保存しておくことを
6564 \emph on
6565 強く
6566 \emph default
6567 勧めます。もっと言えば、大事な文書の作業をしているときに、同時にレイアウト情報の編集をしようとしないことを
6568 \emph on
6569 強く
6570 \emph default
6571 勧めます。テスト用文書を使用してください。レイアウトファイル中の文法エラー等が奇妙な挙動を引き起こす可能性があります。特に、そのようなエラーが起こると、LyXは
6572 現在のレイアウトが無効であるものと判断して、別のレイアウトに切り替えようとする可能性があります
6573 \begin_inset Foot
6574 status collapsed
6575
6576 \begin_layout Plain Layout
6577 非常に悪質な文法エラーの場合には、LyXが終了してしまうことさえあります。これは、ある種のエラーでは、LyXがレイアウト情報を全く読めなくなる可能性があるからで
6578 す。ご注意ください。
6579 \end_layout
6580
6581 \end_inset
6582
6583 。LyX開発陣は、このような状況下でも安定性を保つよう努力していますが、後悔よりも安心の方が良いでしょう
6584 \begin_inset Foot
6585 status collapsed
6586
6587 \begin_layout Plain Layout
6588 重ねての助言ですが、つねにバックアップを取ってください。それから、お母さんのお片づけに注意。
6589 \end_layout
6590
6591 \end_inset
6592
6593
6594 \end_layout
6595
6596 \begin_layout Subsection
6597 モジュール宣言
6598 \end_layout
6599
6600 \begin_layout Standard
6601 モジュールは、以下のような行で始まらなくてはなりません。
6602 \end_layout
6603
6604 \begin_layout LyX-Code
6605 #
6606 \backslash
6607 DeclareL
6608 \begin_inset ERT
6609 status collapsed
6610
6611 \begin_layout Plain Layout
6612
6613 {}
6614 \end_layout
6615
6616 \end_inset
6617
6618 yXModule[endnotes.sty]{Endnotes} 
6619 \end_layout
6620
6621 \begin_layout Standard
6622 波括弧内に入っている必須引数はモジュール名で、これは
6623 \begin_inset Flex MenuItem
6624 status collapsed
6625
6626 \begin_layout Plain Layout
6627 文書\SpecialChar \menuseparator
6628 設定
6629 \end_layout
6630
6631 \end_inset
6632
6633 内に表示されます。角括弧内の引数は非必須です。これは、モジュールが依存するLaTeXパッケージをすべて宣言します。角括弧の中には、LyXにとって既知のパッケージ
6634 だけしか、列挙することはできないことに注意してください。
6635 \begin_inset Foot
6636 status collapsed
6637
6638 \begin_layout Plain Layout
6639 既知のパッケージのリストは、ソースコード中でしか、ドキュメント化されていません。
6640 \end_layout
6641
6642 \end_inset
6643
6644 LyXは、任意のパッケージをチェックすることはしません。また、非必須引数として、
6645 \begin_inset Flex Code
6646 status collapsed
6647
6648 \begin_layout Plain Layout
6649 変換元->変換先
6650 \end_layout
6651
6652 \end_inset
6653
6654 の形を使用することができます。これは、
6655 \begin_inset Flex Code
6656 status collapsed
6657
6658 \begin_layout Plain Layout
6659 変換元
6660 \end_layout
6661
6662 \end_inset
6663
6664 書式から
6665 \begin_inset Flex Code
6666 status collapsed
6667
6668 \begin_layout Plain Layout
6669 変換先
6670 \end_layout
6671
6672 \end_inset
6673
6674 書式への変換鎖が存在するときのみ、このモジュールを使用できることを宣言するものです。
6675 \end_layout
6676
6677 \begin_layout Standard
6678 それから、以下のようなモジュール宣言を行います。
6679 \end_layout
6680
6681 \begin_layout LyX-Code
6682 #DescriptionBegin 
6683 \end_layout
6684
6685 \begin_layout LyX-Code
6686 #Adds an endnote command, in addition to footnotes.
6687  
6688 \end_layout
6689
6690 \begin_layout LyX-Code
6691 #You will need to add  
6692 \backslash
6693 theendnotes in T
6694 \begin_inset ERT
6695 status collapsed
6696
6697 \begin_layout Plain Layout
6698
6699 {}
6700 \end_layout
6701
6702 \end_inset
6703
6704 eX code where you 
6705 \end_layout
6706
6707 \begin_layout LyX-Code
6708 #want the endnotes to appear.
6709  
6710 \end_layout
6711
6712 \begin_layout LyX-Code
6713 #DescriptionEnd 
6714 \end_layout
6715
6716 \begin_layout LyX-Code
6717 #Requires: somemodule | othermodule
6718 \end_layout
6719
6720 \begin_layout LyX-Code
6721 #Excludes: badmodule
6722 \end_layout
6723
6724 \begin_layout Standard
6725 ここで説明(Description)は、
6726 \begin_inset Flex MenuItem
6727 status collapsed
6728
6729 \begin_layout Plain Layout
6730 文書\SpecialChar \menuseparator
6731 設定
6732 \end_layout
6733
6734 \end_inset
6735
6736 でこのモジュールが何をするものか、ユーザに情報を与えるために使用されます。
6737 \begin_inset Flex Code
6738 status collapsed
6739
6740 \begin_layout Plain Layout
6741 Requires
6742 \end_layout
6743
6744 \end_inset
6745
6746 行は、このモジュールが共に使用する必要がある、他のモジュールを特定するのに用いられます。一方、
6747 \begin_inset Flex Code
6748 status collapsed
6749
6750 \begin_layout Plain Layout
6751 Excludes
6752 \end_layout
6753
6754 \end_inset
6755
6756 行は、このモジュールが共に使用してはならない、他のモジュールを特定するのに用いられます。この2つの行は必須ではなく、上記のようにモジュールが複数ある場合には、パ
6757 イプ記号「|」で区切らなくてはなりません。
6758 \begin_inset Flex Code
6759 status collapsed
6760
6761 \begin_layout Plain Layout
6762 Requires
6763 \end_layout
6764
6765 \end_inset
6766
6767 に指定されたモジュールは、選言的に取り扱われることに注意してください。つまり、
6768 \begin_inset Flex Code
6769 status collapsed
6770
6771 \begin_layout Plain Layout
6772 Requires
6773 \end_layout
6774
6775 \end_inset
6776
6777 に指定されたモジュールのうち、
6778 \emph on
6779 少なくとも一つ
6780 \emph default
6781 が使用されていればよいということです。同様に、
6782 \begin_inset Flex Code
6783 status collapsed
6784
6785 \begin_layout Plain Layout
6786 Excludes
6787 \end_layout
6788
6789 \end_inset
6790
6791 に指定されたモジュールは、一つも使用されてはなりません。ここでモジュールは、
6792 \begin_inset Flex Code
6793 status collapsed
6794
6795 \begin_layout Plain Layout
6796 .module
6797 \end_layout
6798
6799 \end_inset
6800
6801 拡張子を除いた
6802 \emph on
6803 ファイル名
6804 \emph default
6805 で認識されることに注意してください。つまり
6806 \begin_inset Flex Code
6807 status collapsed
6808
6809 \begin_layout Plain Layout
6810 somemodule
6811 \end_layout
6812
6813 \end_inset
6814
6815 とは、実のところ
6816 \begin_inset Flex Code
6817 status collapsed
6818
6819 \begin_layout Plain Layout
6820 somemodule.module
6821 \end_layout
6822
6823 \end_inset
6824
6825 のことです。
6826 \end_layout
6827
6828 \begin_layout Subsection
6829 ファイル書式
6830 \end_layout
6831
6832 \begin_layout Standard
6833 レイアウトファイルやインクルードされたファイル、またはモジュールの最初の非コメント行には、以下のように、かならずファイル書式番号が記されていなくてはなりません。
6834 \end_layout
6835
6836 \begin_layout Description
6837 \begin_inset Flex Code
6838 status collapsed
6839
6840 \begin_layout Plain Layout
6841 Format
6842 \end_layout
6843
6844 \end_inset
6845
6846  [
6847 \begin_inset Flex Code
6848 status collapsed
6849
6850 \begin_layout Plain Layout
6851 整数型
6852 \end_layout
6853
6854 \end_inset
6855
6856 ] このレイアウトファイルの書式
6857 \end_layout
6858
6859 \begin_layout Standard
6860 このタグはLyX 1.4.0で導入されました。LyX 1.3.x以前のレイアウトファイルには、明示されたファイル書式がないため、書式1と解されます。LyX現行版のファイ
6861 ル書式は、書式21です。しかし、LyXの各版は、旧版のLyXで作成されたファイルを読むことができるように、旧版のレイアウトファイルも読むことができます。しかしな
6862 がら、以前の書式に変換する方法はありません。したがって、LyX 1.6.xは、書式11以前のファイルのみを読むことができますが、書式21は読むことができません。
6863 \end_layout
6864
6865 \begin_layout Subsection
6866 \begin_inset CommandInset label
6867 LatexCommand label
6868 name "sub:汎用テキストクラスパラメータ"
6869
6870 \end_inset
6871
6872 汎用テキストクラスパラメータ
6873 \end_layout
6874
6875 \begin_layout Standard
6876 以下は、文書クラス全体の挙動を決定する汎用パラメータです(これは、
6877 \begin_inset Flex Code
6878 status collapsed
6879
6880 \begin_layout Plain Layout
6881 .layout
6882 \end_layout
6883
6884 \end_inset
6885
6886 ファイルのみに使用されるべきで、モジュールでは使ってはならない、ということを意味するものでは
6887 \emph on
6888 ありません
6889 \emph default
6890 。モジュールには、すべてのレイアウトタグを使用することができます)。
6891 \end_layout
6892
6893 \begin_layout Description
6894 \begin_inset Flex Code
6895 status collapsed
6896
6897 \begin_layout Plain Layout
6898 AddToHTMLPreamble
6899 \end_layout
6900
6901 \end_inset
6902
6903  この文書クラスがXHTMLに出力されるときに、
6904 \begin_inset Flex Code
6905 status collapsed
6906
6907 \begin_layout Plain Layout
6908 <head>
6909 \end_layout
6910
6911 \end_inset
6912
6913 ブロックに追加出力される情報です。典型的には、これはCSSスタイル情報を出力するのに用いられますが、
6914 \begin_inset Flex Code
6915 status collapsed
6916
6917 \begin_layout Plain Layout
6918 <head>
6919 \end_layout
6920
6921 \end_inset
6922
6923 に出力するものであれば、何でも使用することができます。「
6924 \begin_inset Flex Code
6925 status collapsed
6926
6927 \begin_layout Plain Layout
6928 EndPreamble
6929 \end_layout
6930
6931 \end_inset
6932
6933 」で閉じる必要があります。
6934 \end_layout
6935
6936 \begin_layout Description
6937 \begin_inset Flex Code
6938 status collapsed
6939
6940 \begin_layout Plain Layout
6941 AddToPreamble
6942 \end_layout
6943
6944 \end_inset
6945
6946  文書プリアンブルに書き加えられる情報です。「
6947 \begin_inset Flex Code
6948 status collapsed
6949
6950 \begin_layout Plain Layout
6951 EndPreamble
6952 \end_layout
6953
6954 \end_inset
6955
6956 」で閉じる必要があります。
6957 \end_layout
6958
6959 \begin_layout Description
6960 \begin_inset Flex Code
6961 status collapsed
6962
6963 \begin_layout Plain Layout
6964 CiteFormat
6965 \end_layout
6966
6967 \end_inset
6968
6969  書誌情報の表示に使う書式を定義します。詳細については、第
6970 \begin_inset CommandInset ref
6971 LatexCommand ref
6972 reference "sub:引用書式指定"
6973
6974 \end_inset
6975
6976 節をご覧ください。「
6977 \begin_inset Flex Code
6978 status collapsed
6979
6980 \begin_layout Plain Layout
6981 End
6982 \end_layout
6983
6984 \end_inset
6985
6986 」で閉じる必要があります。
6987 \end_layout
6988
6989 \begin_layout Description
6990 \begin_inset Flex Code
6991 status collapsed
6992
6993 \begin_layout Plain Layout
6994 ClassOptions
6995 \end_layout
6996
6997 \end_inset
6998
6999  文書クラスがサポートする様々な大域オプションを記します。説明は、第
7000 \begin_inset CommandInset ref
7001 LatexCommand ref
7002 reference "sub:ClassOptions"
7003
7004 \end_inset
7005
7006 節を参照してください。「
7007 \begin_inset Flex Code
7008 status collapsed
7009
7010 \begin_layout Plain Layout
7011 End
7012 \end_layout
7013
7014 \end_inset
7015
7016 」で閉じる必要があります。
7017 \end_layout
7018
7019 \begin_layout Description
7020 \begin_inset Flex Code
7021 status collapsed
7022
7023 \begin_layout Plain Layout
7024 Columns
7025 \end_layout
7026
7027 \end_inset
7028
7029  [
7030 \begin_inset Flex Code
7031 status collapsed
7032
7033 \begin_layout Plain Layout
7034
7035 \emph on
7036 1
7037 \end_layout
7038
7039 \end_inset
7040
7041
7042 \begin_inset Flex Code
7043 status collapsed
7044
7045 \begin_layout Plain Layout
7046 2
7047 \end_layout
7048
7049 \end_inset
7050
7051 ] 文書クラスが既定で1段組か2段組かを指定します。
7052 \begin_inset Flex MenuItem
7053 status collapsed
7054
7055 \begin_layout Plain Layout
7056 文書\SpecialChar \menuseparator
7057 設定
7058 \end_layout
7059
7060 \end_inset
7061
7062 ダイアログで変更することができます。
7063 \end_layout
7064
7065 \begin_layout Description
7066 \begin_inset Flex Code
7067 status collapsed
7068
7069 \begin_layout Plain Layout
7070 Counter
7071 \end_layout
7072
7073 \end_inset
7074
7075  [
7076 \begin_inset Flex Code
7077 status collapsed
7078
7079 \begin_layout Plain Layout
7080 文字列
7081 \end_layout
7082
7083 \end_inset
7084
7085 ] この部分はカウンタの特性を定義します。カウンタがまだ存在していなければ、生成されます。もし存在しなければ修正されます。「
7086 \begin_inset Flex Code
7087 status collapsed
7088
7089 \begin_layout Plain Layout
7090 End
7091 \end_layout
7092
7093 \end_inset
7094
7095 」で閉じる必要があります。
7096 \begin_inset Newline newline
7097 \end_inset
7098
7099 カウンタについての詳細は、第
7100 \begin_inset CommandInset ref
7101 LatexCommand ref
7102 reference "sub:カウンタ"
7103
7104 \end_inset
7105
7106 節を参照してください。
7107 \end_layout
7108
7109 \begin_layout Description
7110 \begin_inset Flex Code
7111 status collapsed
7112
7113 \begin_layout Plain Layout
7114 DefaultFont
7115 \end_layout
7116
7117 \end_inset
7118
7119  文書を表示するのに用いられる既定フォントを設定します。フォントの宣言の仕方については、第
7120 \begin_inset CommandInset ref
7121 LatexCommand ref
7122 reference "sub:フォント指定"
7123
7124 \end_inset
7125
7126 節を参照してください。「
7127 \begin_inset Flex Code
7128 status collapsed
7129
7130 \begin_layout Plain Layout
7131 EndFont
7132 \end_layout
7133
7134 \end_inset
7135
7136 」で閉じる必要があります。
7137 \end_layout
7138
7139 \begin_layout Description
7140 \begin_inset Flex Code
7141 status collapsed
7142
7143 \begin_layout Plain Layout
7144 DefaultModule
7145 \end_layout
7146
7147 \end_inset
7148
7149  [
7150 \begin_inset Flex Code
7151 status collapsed
7152
7153 \begin_layout Plain Layout
7154 文字列
7155 \end_layout
7156
7157 \end_inset
7158
7159 ] この文書クラスに、既定で取り込むモジュールを指定します。モジュールは、
7160 \begin_inset Flex Code
7161 status collapsed
7162
7163 \begin_layout Plain Layout
7164 .module
7165 \end_layout
7166
7167 \end_inset
7168
7169 拡張子を除いたファイル名で指定します。ユーザはこのモジュールを除外することができますが、当初は有効の状態になっています(これは新しいファイルが作成されたときや、
7170 既存の文書にこの文書クラスが選択したときのみ該当します)。
7171 \end_layout
7172
7173 \begin_layout Description
7174 \begin_inset Flex Code
7175 status collapsed
7176
7177 \begin_layout Plain Layout
7178 DefaultStyle
7179 \end_layout
7180
7181 \end_inset
7182
7183  [
7184 \begin_inset Flex Code
7185 status collapsed
7186
7187 \begin_layout Plain Layout
7188 文字列
7189 \end_layout
7190
7191 \end_inset
7192
7193 ] これは新規段落に割り当てられる様式であり、通常は
7194 \begin_inset Flex MenuItem
7195 status collapsed
7196
7197 \begin_layout Plain Layout
7198 標準
7199 \end_layout
7200
7201 \end_inset
7202
7203 です。もしこれを指定しなければ、最初に定義される様式がこれに割り当てられるようにはなっていますが、このディレクティブを使用することが推奨されます。
7204 \end_layout
7205
7206 \begin_layout Description
7207 \begin_inset Flex Code
7208 status collapsed
7209
7210 \begin_layout Plain Layout
7211 ExcludesModule
7212 \end_layout
7213
7214 \end_inset
7215
7216  [
7217 \begin_inset Flex Code
7218 status collapsed
7219
7220 \begin_layout Plain Layout
7221 文字列
7222 \end_layout
7223
7224 \end_inset
7225
7226 ] このタグは、指定されたモジュール—
7227 \begin_inset Flex Code
7228 status collapsed
7229
7230 \begin_layout Plain Layout
7231 .module
7232 \end_layout
7233
7234 \end_inset
7235
7236 拡張子を除いたファイル名で指定します—が、この文書クラスでは使用できないように設定します。これはたとえば、特定の学術誌用レイアウトファイルの中で、定理番号を節毎
7237 に振る
7238 \begin_inset Flex Code
7239 status collapsed
7240
7241 \begin_layout Plain Layout
7242 theorems-sec
7243 \end_layout
7244
7245 \end_inset
7246
7247 モジュールが使用されるのを防ぐために用いたりすることができます。このタグは、モジュール内で
7248 \emph on
7249 使用してはいけません
7250 \emph default
7251 。モジュールは、他のモジュールを排除する独自の枠組みがあります(第
7252 \begin_inset CommandInset ref
7253 LatexCommand ref
7254 reference "sub:レイアウトモジュール"
7255
7256 \end_inset
7257
7258 節参照)。
7259 \end_layout
7260
7261 \begin_layout Description
7262 \begin_inset Flex Code
7263 status collapsed
7264
7265 \begin_layout Plain Layout
7266 Float
7267 \end_layout
7268
7269 \end_inset
7270
7271  フロートを新規に定義します。詳細は、第
7272 \begin_inset CommandInset ref
7273 LatexCommand ref
7274 reference "sub:フロート"
7275
7276 \end_inset
7277
7278 節を参照してください。「
7279 \begin_inset Flex Code
7280 status collapsed
7281
7282 \begin_layout Plain Layout
7283 End
7284 \end_layout
7285
7286 \end_inset
7287
7288 」で閉じる必要があります。
7289 \end_layout
7290
7291 \begin_layout Description
7292 \begin_inset Flex Code
7293 status collapsed
7294
7295 \begin_layout Plain Layout
7296 HTMLPreamble
7297 \end_layout
7298
7299 \end_inset
7300
7301  この文書クラスがXHTMLに出力されるときに、
7302 \begin_inset Flex Code
7303 status collapsed
7304
7305 \begin_layout Plain Layout
7306 <head>
7307 \end_layout
7308
7309 \end_inset
7310
7311 ブロックに出力される情報です。これより前に出現した
7312 \begin_inset Flex Code
7313 status collapsed
7314
7315 \begin_layout Plain Layout
7316 HTMLPreamble
7317 \end_layout
7318
7319 \end_inset
7320
7321
7322 \begin_inset Flex Code
7323 status collapsed
7324
7325 \begin_layout Plain Layout
7326 AddToHTMLPreamble
7327 \end_layout
7328
7329 \end_inset
7330
7331 宣言は、すべて完全に上書きされることに注意してください。(プリアンブルに何かを追加したい時には、
7332 \begin_inset Flex Code
7333 status collapsed
7334
7335 \begin_layout Plain Layout
7336 AddToHTMLPreamble
7337 \end_layout
7338
7339 \end_inset
7340
7341 を使用してください。)「
7342 \begin_inset Flex Code
7343 status collapsed
7344
7345 \begin_layout Plain Layout
7346 EndPreamble
7347 \end_layout
7348
7349 \end_inset
7350
7351 」で閉じる必要があります。
7352 \end_layout
7353
7354 \begin_layout Description
7355 \begin_inset Flex Code
7356 status collapsed
7357
7358 \begin_layout Plain Layout
7359 HTMLTOCSection
7360 \end_layout
7361
7362 \end_inset
7363
7364  [
7365 \begin_inset Flex Code
7366 status collapsed
7367
7368 \begin_layout Plain Layout
7369 文字列
7370 \end_layout
7371
7372 \end_inset
7373
7374 ] 文書がHTMLに出力されるときに、目次や書誌情報などに使用されるレイアウトです。articleの場合には、これは通常「節」であり、bookの場合は「章」です
7375 。これを指定しない場合には、LyXはどのレイアウトを使用するべきか、解析しようと試みます。
7376 \end_layout
7377
7378 \begin_layout Description
7379 \begin_inset Flex Code
7380 status collapsed
7381
7382 \begin_layout Plain Layout
7383 IfCounter 
7384 \end_layout
7385
7386 \end_inset
7387
7388  [
7389 \begin_inset Flex Code
7390 status collapsed
7391
7392 \begin_layout Plain Layout
7393 文字列
7394 \end_layout
7395
7396 \end_inset
7397
7398 ] 与えられたカウンタの特性を修正します。カウンタが存在しない場合には、この節は無視されます。「
7399 \begin_inset Flex Code
7400 status collapsed
7401
7402 \begin_layout Plain Layout
7403 End
7404 \end_layout
7405
7406 \end_inset
7407
7408 」で閉じる必要があります。
7409 \begin_inset Newline newline
7410 \end_inset
7411
7412 カウンタについての詳細は、第
7413 \begin_inset CommandInset ref
7414 LatexCommand ref
7415 reference "sub:カウンタ"
7416
7417 \end_inset
7418
7419 節をご覧ください。
7420 \end_layout
7421
7422 \begin_layout Description
7423 \begin_inset Flex Code
7424 status collapsed
7425
7426 \begin_layout Plain Layout
7427 IfStyle
7428 \end_layout
7429
7430 \end_inset
7431
7432  [
7433 \begin_inset Flex Code
7434 status collapsed
7435
7436 \begin_layout Plain Layout
7437 文字列
7438 \end_layout
7439
7440 \end_inset
7441
7442 ] 与えられた段落様式の特性を修正します。様式が存在しない場合には、この節は無視されます。「
7443 \begin_inset Flex Code
7444 status collapsed
7445
7446 \begin_layout Plain Layout
7447 End
7448 \end_layout
7449
7450 \end_inset
7451
7452 」で閉じる必要があります。
7453 \end_layout
7454
7455 \begin_layout Description
7456 \begin_inset Flex Code
7457 status collapsed
7458
7459 \begin_layout Plain Layout
7460 Input
7461 \end_layout
7462
7463 \end_inset
7464
7465  名称の指し示すように、このコマンドは、同じコマンドを何度も指定せずに済むように、別のレイアウト定義ファイルを取り込ませます。よく使われる例は、基本的なレイアウ
7466 トのほとんどを収録している
7467 \begin_inset Flex Code
7468 status collapsed
7469
7470 \begin_layout Plain Layout
7471 stdclass.inc
7472 \end_layout
7473
7474 \end_inset
7475
7476 のような標準レイアウトファイルです。
7477 \end_layout
7478
7479 \begin_layout Description
7480 \begin_inset Flex Code
7481 status collapsed
7482
7483 \begin_layout Plain Layout
7484 InsetLayout
7485 \end_layout
7486
7487 \end_inset
7488
7489  このセクションは、差込枠のレイアウトを定義(再定義)します。これは、既存の差込枠にも、新しい文字様式のような新規のユーザ定義差込枠にも使用することができます。
7490
7491 \begin_inset Flex Code
7492 status collapsed
7493
7494 \begin_layout Plain Layout
7495 End
7496 \end_layout
7497
7498 \end_inset
7499
7500 」で閉じる必要があります。
7501 \begin_inset Newline newline
7502 \end_inset
7503
7504 詳しい情報は、第
7505 \begin_inset CommandInset ref
7506 LatexCommand ref
7507 reference "sub:任意設定差込枠"
7508
7509 \end_inset
7510
7511 節をご覧ください。
7512 \end_layout
7513
7514 \begin_layout Description
7515 \begin_inset Flex Code
7516 status collapsed
7517
7518 \begin_layout Plain Layout
7519 LeftMargin
7520 \end_layout
7521
7522 \end_inset
7523
7524  画面上の左余白の幅を指示する文字列。例:「MMMMM」。(これは、「2ex」のような「長さ」ではないことに注意してください。)
7525 \end_layout
7526
7527 \begin_layout Description
7528 \begin_inset Flex Code
7529 status collapsed
7530
7531 \begin_layout Plain Layout
7532 NoFloat
7533 \end_layout
7534
7535 \end_inset
7536
7537  このコマンドは既存のフロートを削除します。これは特に、Inputで取り込んだファイルに定義されていたフロートを抑制するのに便利です。
7538 \end_layout
7539
7540 \begin_layout Description
7541 \begin_inset Flex Code
7542 status collapsed
7543
7544 \begin_layout Plain Layout
7545 NoStyle
7546 \end_layout
7547
7548 \end_inset
7549
7550  このコマンドは既存の様式を削除します。これは特に、Inputで取り込んだファイルに定義されていた様式を抑制するのに便利です。
7551 \end_layout
7552
7553 \begin_layout Description
7554 \begin_inset Flex Code
7555 status collapsed
7556
7557 \begin_layout Plain Layout
7558 OutputFormat
7559 \end_layout
7560
7561 \end_inset
7562
7563  このクラスによって生成されるファイル書式を示す文字列(
7564 \family sans
7565 設定
7566 \family default
7567 ダイアログで定義される形のもの)。おもに、
7568 \begin_inset Flex Code
7569 status collapsed
7570
7571 \begin_layout Plain Layout
7572 OutputType
7573 \end_layout
7574
7575 \end_inset
7576
7577 が「literate」になっていて、新しい型のliterate文書を定義したい時に便利です。対応する
7578 \begin_inset Flex Code
7579 status collapsed
7580
7581 \begin_layout Plain Layout
7582 OutputType
7583 \end_layout
7584
7585 \end_inset
7586
7587 パラメーターに遭遇したときには、この文字列は、「docbook」・「latex」・「literate」のいずれかにリセットされます。
7588 \end_layout
7589
7590 \begin_layout Description
7591 \begin_inset Flex Code
7592 status collapsed
7593
7594 \begin_layout Plain Layout
7595 OutputType
7596 \end_layout
7597
7598 \end_inset
7599
7600  このクラスを使用する文書がどのような種類の出力をするかを示す文字列。現在のところ、取り得る値は「docbook」・「latex」・「literate」です。
7601 \end_layout
7602
7603 \begin_layout Description
7604 \begin_inset Flex Code
7605 status collapsed
7606
7607 \begin_layout Plain Layout
7608 PageStyle
7609 \end_layout
7610
7611 \end_inset
7612
7613  [
7614 \emph on
7615
7616 \begin_inset Flex Code
7617 status collapsed
7618
7619 \begin_layout Plain Layout
7620 plain
7621 \end_layout
7622
7623 \end_inset
7624
7625
7626 \emph default
7627
7628 \begin_inset Flex Code
7629 status collapsed
7630
7631 \begin_layout Plain Layout
7632 empty
7633 \end_layout
7634
7635 \end_inset
7636
7637
7638 \begin_inset Flex Code
7639 status collapsed
7640
7641 \begin_layout Plain Layout
7642 headings
7643 \end_layout
7644
7645 \end_inset
7646
7647 ] 既定ページ様式。
7648 \begin_inset Flex MenuItem
7649 status collapsed
7650
7651 \begin_layout Plain Layout
7652 文書\SpecialChar \menuseparator
7653 設定
7654 \end_layout
7655
7656 \end_inset
7657
7658 ダイアログで変更することができます。
7659 \end_layout
7660
7661 \begin_layout Description
7662 \begin_inset Flex Code
7663 status collapsed
7664
7665 \begin_layout Plain Layout
7666 Preamble
7667 \end_layout
7668
7669 \end_inset
7670
7671  LaTeX文書のプリアンブルを設定します。前に行った
7672 \begin_inset Flex Code
7673 status collapsed
7674
7675 \begin_layout Plain Layout
7676 Preamble
7677 \end_layout
7678
7679 \end_inset
7680
7681 宣言や
7682 \begin_inset Flex Code
7683 status collapsed
7684
7685 \begin_layout Plain Layout
7686 AddToPreamble
7687 \end_layout
7688
7689 \end_inset
7690
7691 宣言は、すべて上書きされてしまうので注意してください。(プリアンブルに何かを追加したい時には、
7692 \begin_inset Flex Code
7693 status collapsed
7694
7695 \begin_layout Plain Layout
7696 AddToPreamble
7697 \end_layout
7698
7699 \end_inset
7700
7701 を使用してください。)「
7702 \begin_inset Flex Code
7703 status collapsed
7704
7705 \begin_layout Plain Layout
7706 EndPreamble
7707 \end_layout
7708
7709 \end_inset
7710
7711 」で閉じる必要があります。
7712 \end_layout
7713
7714 \begin_layout Description
7715 \begin_inset Flex Code
7716 status collapsed
7717
7718 \begin_layout Plain Layout
7719 Provides
7720 \end_layout
7721
7722 \end_inset
7723
7724  [
7725 \begin_inset Flex Code
7726 status collapsed
7727
7728 \begin_layout Plain Layout
7729 文字列
7730 \end_layout
7731
7732 \end_inset
7733
7734 ] [
7735 \begin_inset Flex Code
7736 status collapsed
7737
7738 \begin_layout Plain Layout
7739
7740 \emph on
7741 0
7742 \end_layout
7743
7744 \end_inset
7745
7746
7747 \begin_inset Flex Code
7748 status collapsed
7749
7750 \begin_layout Plain Layout
7751 1
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 amsmath
7772 \end_layout
7773
7774 \end_inset
7775
7776
7777 \begin_inset Flex Code
7778 status collapsed
7779
7780 \begin_layout Plain Layout
7781 makeidx
7782 \end_layout
7783
7784 \end_inset
7785
7786 ・\SpecialChar \ldots{}
7787 )やマクロ名(
7788 \begin_inset Flex Code
7789 status collapsed
7790
7791 \begin_layout Plain Layout
7792 url
7793 \end_layout
7794
7795 \end_inset
7796
7797
7798 \begin_inset Flex Code
7799 status collapsed
7800
7801 \begin_layout Plain Layout
7802 boldsymbol
7803 \end_layout
7804
7805 \end_inset
7806
7807 ・\SpecialChar \ldots{}
7808 )です。サポートされている機能の全覧は、LyXソースコード以外には残念ながら文書化されていませんが、興味があれば
7809 \begin_inset Flex Code
7810 status collapsed
7811
7812 \begin_layout Plain Layout
7813 LaTeXFeatures.cpp
7814 \end_layout
7815
7816 \end_inset
7817
7818 をご覧ください。
7819 \begin_inset Flex MenuItem
7820 status collapsed
7821
7822 \begin_layout Plain Layout
7823 ヘルプ\SpecialChar \menuseparator
7824 LaTeXの設定
7825 \end_layout
7826
7827 \end_inset
7828
7829 もサポートされているパッケージの概要を提供します。
7830 \end_layout
7831
7832 \begin_layout Description
7833 \begin_inset Flex Code
7834 status collapsed
7835
7836 \begin_layout Plain Layout
7837 ProvidesModule
7838 \end_layout
7839
7840 \end_inset
7841
7842  [
7843 \begin_inset Flex Code
7844 status collapsed
7845
7846 \begin_layout Plain Layout
7847 文字列
7848 \end_layout
7849
7850 \end_inset
7851
7852 ] このレイアウトが
7853 \begin_inset Flex Code
7854 status collapsed
7855
7856 \begin_layout Plain Layout
7857 文字列
7858 \end_layout
7859
7860 \end_inset
7861
7862 で表されているモジュールの機能を提供することを示し、
7863 \begin_inset Flex Code
7864 status collapsed
7865
7866 \begin_layout Plain Layout
7867 .module
7868 \end_layout
7869
7870 \end_inset
7871
7872 拡張子を除いたファイル名で指定します。
7873 \begin_inset Flex Code
7874 status collapsed
7875
7876 \begin_layout Plain Layout
7877 DefaultModule
7878 \end_layout
7879
7880 \end_inset
7881
7882 タグを使用すると、モジュールを使用しなくてはならないことを示しますが、このタグは主に、このレイアウトがモジュールを直接取り込んでしまっていることを示すのに用いら
7883 れます。同じ機能を別に実装しているモジュール中で使用するなどすることもできます。
7884 \end_layout
7885
7886 \begin_layout Description
7887 \begin_inset Flex Code
7888 status collapsed
7889
7890 \begin_layout Plain Layout
7891 Requires
7892 \end_layout
7893
7894 \end_inset
7895
7896  [
7897 \begin_inset Flex Code
7898 status collapsed
7899
7900 \begin_layout Plain Layout
7901 文字列
7902 \end_layout
7903
7904 \end_inset
7905
7906 ] このクラスが
7907 \begin_inset Flex Code
7908 status collapsed
7909
7910 \begin_layout Plain Layout
7911 文字列
7912 \end_layout
7913
7914 \end_inset
7915
7916 で表されている機能を要求することを示します。機能が複数ある場合には、コンマで区切らなくてはなりません。サポートされている機能以外は要求できないことに注意してくだ
7917 さい。(機能一覧については、これも
7918 \begin_inset Flex Code
7919 status collapsed
7920
7921 \begin_layout Plain Layout
7922 LaTeXFeatures.cpp
7923 \end_layout
7924
7925 \end_inset
7926
7927 をご覧ください。)
7928 \end_layout
7929
7930 \begin_layout Description
7931 \begin_inset Flex Code
7932 status collapsed
7933
7934 \begin_layout Plain Layout
7935 RightMargin
7936 \end_layout
7937
7938 \end_inset
7939
7940  画面上の右余白の幅を指示する文字列。例:「MMMMM」。
7941 \end_layout
7942
7943 \begin_layout Description
7944 \begin_inset Flex Code
7945 status collapsed
7946
7947 \begin_layout Plain Layout
7948 SecNumDepth
7949 \end_layout
7950
7951 \end_inset
7952
7953  どの節区切りまで連番を振るかを指定します。LaTeXにおける
7954 \begin_inset Flex Code
7955 status collapsed
7956
7957 \begin_layout Plain Layout
7958 secnumdepth
7959 \end_layout
7960
7961 \end_inset
7962
7963 カウンタに対応します。
7964 \end_layout
7965
7966 \begin_layout Description
7967 \begin_inset Flex Code
7968 status collapsed
7969
7970 \begin_layout Plain Layout
7971 Sides
7972 \end_layout
7973
7974 \end_inset
7975
7976  [
7977 \emph on
7978
7979 \begin_inset Flex Code
7980 status collapsed
7981
7982 \begin_layout Plain Layout
7983 1
7984 \end_layout
7985
7986 \end_inset
7987
7988
7989 \emph default
7990
7991 \begin_inset Flex Code
7992 status collapsed
7993
7994 \begin_layout Plain Layout
7995 2
7996 \end_layout
7997
7998 \end_inset
7999
8000 ] クラスの既定値として、用紙の片面に印字するか両面に印字するかを指定します。
8001 \begin_inset Flex MenuItem
8002 status collapsed
8003
8004 \begin_layout Plain Layout
8005 文書\SpecialChar \menuseparator
8006 設定
8007 \end_layout
8008
8009 \end_inset
8010
8011 ダイアログで変更することができます。
8012 \end_layout
8013
8014 \begin_layout Description
8015 \begin_inset Flex Code
8016 status collapsed
8017
8018 \begin_layout Plain Layout
8019 Style
8020 \end_layout
8021
8022 \end_inset
8023
8024  この部分は段落様式を定義します。様式がまだ存在していなければ、生成されます。既に存在していれば、そのパラメータが修正されます。「
8025 \begin_inset Flex Code
8026 status collapsed
8027
8028 \begin_layout Plain Layout
8029 End
8030 \end_layout
8031
8032 \end_inset
8033
8034 」で閉じる必要があります。
8035 \begin_inset Newline newline
8036 \end_inset
8037
8038 段落様式に関する詳細は、第
8039 \begin_inset CommandInset ref
8040 LatexCommand ref
8041 reference "sub:段落様式-XHTML"
8042
8043 \end_inset
8044
8045 節をご覧ください。
8046 \end_layout
8047
8048 \begin_layout Description
8049 \begin_inset Flex Code
8050 status collapsed
8051
8052 \begin_layout Plain Layout
8053 TitleLatexName
8054 \end_layout
8055
8056 \end_inset
8057
8058  [
8059 \begin_inset Flex Code
8060 status collapsed
8061
8062 \begin_layout Plain Layout
8063 文字列="maketitle"
8064 \end_layout
8065
8066 \end_inset
8067
8068
8069 \begin_inset Flex Code
8070 status collapsed
8071
8072 \begin_layout Plain Layout
8073 TitleLatexType
8074 \end_layout
8075
8076 \end_inset
8077
8078 で使用すべきコマンド名あるいは環境名。The name of the command or environment to be used with
8079  
8080 \begin_inset Flex Code
8081 status collapsed
8082
8083 \begin_layout Plain Layout
8084 TitleLatexType
8085 \end_layout
8086
8087 \end_inset
8088
8089 .
8090 \end_layout
8091
8092 \begin_layout Description
8093 \begin_inset Flex Code
8094 status collapsed
8095
8096 \begin_layout Plain Layout
8097 TitleLatexType
8098 \end_layout
8099
8100 \end_inset
8101
8102  [
8103 \begin_inset Flex Code
8104 status collapsed
8105
8106 \begin_layout Plain Layout
8107
8108 \emph on
8109 CommandAfter
8110 \end_layout
8111
8112 \end_inset
8113
8114
8115 \begin_inset Flex Code
8116 status collapsed
8117
8118 \begin_layout Plain Layout
8119 Environment
8120 \end_layout
8121
8122 \end_inset
8123
8124 ] 文書のタイトルを定義するのに、どのようなマークアップを使用するのかを示します。
8125 \begin_inset Flex Code
8126 status collapsed
8127
8128 \begin_layout Plain Layout
8129 CommandAfter
8130 \end_layout
8131
8132 \end_inset
8133
8134 は、「
8135 \begin_inset Flex Code
8136 status collapsed
8137
8138 \begin_layout Plain Layout
8139 InTitle 1
8140 \end_layout
8141
8142 \end_inset
8143
8144 」が指定されている最後のレイアウトの後に、
8145 \begin_inset Flex Code
8146 status collapsed
8147
8148 \begin_layout Plain Layout
8149 TitleLatexName
8150 \end_layout
8151
8152 \end_inset
8153
8154 で指定したマクロ名を挿入することを意味します。
8155 \begin_inset Flex Code
8156 status collapsed
8157
8158 \begin_layout Plain Layout
8159 Environment
8160 \end_layout
8161
8162 \end_inset
8163
8164 は、「
8165 \begin_inset Flex Code
8166 status collapsed
8167
8168 \begin_layout Plain Layout
8169 InTitle 1
8170 \end_layout
8171
8172 \end_inset
8173
8174 」を持つ段落群を
8175 \begin_inset Flex Code
8176 status collapsed
8177
8178 \begin_layout Plain Layout
8179 TitleLatexName
8180 \end_layout
8181
8182 \end_inset
8183
8184 で指定した環境でくるむ場合に対応します。
8185 \end_layout
8186
8187 \begin_layout Description
8188 \begin_inset Flex Code
8189 status collapsed
8190
8191 \begin_layout Plain Layout
8192 TocDepth
8193 \end_layout
8194
8195 \end_inset
8196
8197  どの節区切りまで目次に取り込むかを指定します。LaTeXの
8198 \begin_inset Flex Code
8199 status collapsed
8200
8201 \begin_layout Plain Layout
8202 tocdepth
8203 \end_layout
8204
8205 \end_inset
8206
8207 カウンタに対応します。
8208 \end_layout
8209
8210 \begin_layout Subsection
8211 \begin_inset Flex Code
8212 status collapsed
8213
8214 \begin_layout Plain Layout
8215 ClassOptions
8216 \end_layout
8217
8218 \end_inset
8219
8220
8221 \begin_inset CommandInset label
8222 LatexCommand label
8223 name "sub:ClassOptions"
8224
8225 \end_inset
8226
8227
8228 \end_layout
8229
8230 \begin_layout Standard
8231 \begin_inset Flex Code
8232 status collapsed
8233
8234 \begin_layout Plain Layout
8235 ClassOptions
8236 \end_layout
8237
8238 \end_inset
8239
8240 部は、以下の項目を取り得ます。
8241 \end_layout
8242
8243 \begin_layout Description
8244 \begin_inset Flex Code
8245 status collapsed
8246
8247 \begin_layout Plain Layout
8248 FontSize
8249 \end_layout
8250
8251 \end_inset
8252
8253  [
8254 \begin_inset Flex Code
8255 status collapsed
8256
8257 \begin_layout Plain Layout
8258 文字列="10|11|12"
8259 \end_layout
8260
8261 \end_inset
8262
8263 ] 文書のメインフォントが使用できるフォント寸法の一覧です。「
8264 \begin_inset Flex Code
8265 status collapsed
8266
8267 \begin_layout Plain Layout
8268 |
8269 \end_layout
8270
8271 \end_inset
8272
8273 」で区切ります。
8274 \end_layout
8275
8276 \begin_layout Description
8277 \begin_inset Flex Code
8278 status collapsed
8279
8280 \begin_layout Plain Layout
8281 Header
8282 \end_layout
8283
8284 \end_inset
8285
8286  XMLベースの出力クラスで、DTD行を設定するのに使用されます。例:PUBLIC 
8287 \begin_inset Quotes eld
8288 \end_inset
8289
8290 -//OASIS//DTD DocBook V4.2//EN
8291 \begin_inset Quotes erd
8292 \end_inset
8293
8294
8295 \end_layout
8296
8297 \begin_layout Description
8298 \begin_inset Flex Code
8299 status collapsed
8300
8301 \begin_layout Plain Layout
8302 PageStyle
8303 \end_layout
8304
8305 \end_inset
8306
8307  [
8308 \begin_inset Flex Code
8309 status collapsed
8310
8311 \begin_layout Plain Layout
8312 文字列="empty|plain|headings|fancy"
8313 \end_layout
8314
8315 \end_inset
8316
8317 ] 使用できるページ様式の一覧です。「
8318 \begin_inset Flex Code
8319 status collapsed
8320
8321 \begin_layout Plain Layout
8322 |
8323 \end_layout
8324
8325 \end_inset
8326
8327 」で区切ります。
8328 \end_layout
8329
8330 \begin_layout Description
8331 \begin_inset Flex Code
8332 status collapsed
8333
8334 \begin_layout Plain Layout
8335 Other
8336 \end_layout
8337
8338 \end_inset
8339
8340  [
8341 \begin_inset Flex Code
8342 status collapsed
8343
8344 \begin_layout Plain Layout
8345 文字列=""
8346 \end_layout
8347
8348 \end_inset
8349
8350
8351 \begin_inset Flex Code
8352 status collapsed
8353
8354 \begin_layout Plain Layout
8355
8356 \backslash
8357 documentclass
8358 \end_layout
8359
8360 \end_inset
8361
8362 コマンドの非必須パラメータとして付け加える文書クラスオプションです。コンマで区切ります。
8363 \end_layout
8364
8365 \begin_layout Standard
8366 \begin_inset Flex Code
8367 status collapsed
8368
8369 \begin_layout Plain Layout
8370 ClassOptions
8371 \end_layout
8372
8373 \end_inset
8374
8375 部は「
8376 \begin_inset Flex Code
8377 status collapsed
8378
8379 \begin_layout Plain Layout
8380 End
8381 \end_layout
8382
8383 \end_inset
8384
8385 」で閉じる必要があります。
8386 \end_layout
8387
8388 \begin_layout Subsection
8389 段落様式
8390 \begin_inset CommandInset label
8391 LatexCommand label
8392 name "sub:段落様式"
8393
8394 \end_inset
8395
8396
8397 \end_layout
8398
8399 \begin_layout Standard
8400 段落様式の記述は、以下のようになります
8401 \begin_inset Foot
8402 status collapsed
8403
8404 \begin_layout Plain Layout
8405 これは新しいレイアウトを定義するか、既存のレイアウトを修正することになることに注意してください。
8406 \end_layout
8407
8408 \end_inset
8409
8410
8411 \end_layout
8412
8413 \begin_layout LyX-Code
8414 Style 
8415 \family roman
8416 \emph on
8417 名称
8418 \end_layout
8419
8420 \begin_layout LyX-Code
8421  ...
8422 \end_layout
8423
8424 \begin_layout LyX-Code
8425 End
8426 \end_layout
8427
8428 \begin_layout Standard
8429 ここでは、以下のコマンドを使用することができます。
8430 \end_layout
8431
8432 \begin_layout Description
8433 \begin_inset Flex Code
8434 status collapsed
8435
8436 \begin_layout Plain Layout
8437 Align
8438 \end_layout
8439
8440 \end_inset
8441
8442  [
8443 \begin_inset Flex Code
8444 status collapsed
8445
8446 \begin_layout Plain Layout
8447
8448 \emph on
8449 block
8450 \emph default
8451 , left, right, center
8452 \end_layout
8453
8454 \end_inset
8455
8456 ] 段落の揃え。
8457 \end_layout
8458
8459 \begin_layout Description
8460 \begin_inset Flex Code
8461 status collapsed
8462
8463 \begin_layout Plain Layout
8464 AlignPossible
8465 \end_layout
8466
8467 \end_inset
8468
8469  [
8470 \begin_inset Flex Code
8471 status collapsed
8472
8473 \begin_layout Plain Layout
8474
8475 \emph on
8476 block
8477 \emph default
8478 , left, right, center
8479 \end_layout
8480
8481 \end_inset
8482
8483 ] 使用できる揃えのコンマ区切りリスト(LaTeXスタイルには、意味を成さない一部の揃えが禁じられているものがあります。たとえば、連番箇条書きを右揃えや中央揃え
8484 にすることはできません)。
8485 \end_layout
8486
8487 \begin_layout Description
8488 \begin_inset Flex Code
8489 status collapsed
8490
8491 \begin_layout Plain Layout
8492 BabelPreamble
8493 \end_layout
8494
8495 \end_inset
8496
8497  これは、前に現れたこの様式の
8498 \begin_inset Flex Code
8499 status collapsed
8500
8501 \begin_layout Plain Layout
8502 BabelPreamble
8503 \end_layout
8504
8505 \end_inset
8506
8507 宣言をすべて、完全に上書きしますので注意してください。「
8508 \begin_inset Flex Code
8509 status collapsed
8510
8511 \begin_layout Plain Layout
8512 EndBabelPreamble
8513 \end_layout
8514
8515 \end_inset
8516
8517 」で閉じる必要があります。これの利用法についての詳細は、第
8518 \begin_inset CommandInset ref
8519 LatexCommand ref
8520 reference "sub:段落様式の国際化"
8521
8522 \end_inset
8523
8524 節をご覧ください。
8525 \end_layout
8526
8527 \begin_layout Description
8528 \begin_inset Flex Code
8529 status collapsed
8530
8531 \begin_layout Plain Layout
8532 BottomSep
8533 \end_layout
8534
8535 \end_inset
8536
8537  [
8538 \begin_inset Flex Code
8539 status collapsed
8540
8541 \begin_layout Plain Layout
8542 浮動小数点型=0
8543 \end_layout
8544
8545 \end_inset
8546
8547 ]
8548 \begin_inset Foot
8549 status collapsed
8550
8551 \begin_layout Plain Layout
8552 ここで「浮動小数点型」とは1.5のような実数を指します。
8553 \end_layout
8554
8555 \end_inset
8556
8557  このレイアウト型の段落塊の最後の段落と、次の段落とを分離する垂直空白。次の段落が別のレイアウト型である場合、分離幅は足し上げられるのではなく、最大値がとられま
8558 す。
8559 \end_layout
8560
8561 \begin_layout Description
8562 \begin_inset Flex Code
8563 status collapsed
8564
8565 \begin_layout Plain Layout
8566 Category
8567 \end_layout
8568
8569 \end_inset
8570
8571  [
8572 \begin_inset Flex Code
8573 status collapsed
8574
8575 \begin_layout Plain Layout
8576 文字列
8577 \end_layout
8578
8579 \end_inset
8580
8581 ] この様式のカテゴリです。これは、ツールバーのレイアウト・コンボボックスで関連した様式をグループ化するのに用いられます。任意の文字列を使用することができますが
8582 、作成した様式に既存のカテゴリを使用したいと思うことが多いでしょう。
8583 \end_layout
8584
8585 \begin_layout Description
8586 \begin_inset Flex Code
8587 status collapsed
8588
8589 \begin_layout Plain Layout
8590 CommandDepth
8591 \end_layout
8592
8593 \end_inset
8594
8595  XMLコマンドの深度。XML型の書式でのみ使用されます。
8596 \end_layout
8597
8598 \begin_layout Description
8599 \begin_inset Flex Code
8600 status collapsed
8601
8602 \begin_layout Plain Layout
8603 CopyStyle
8604 \end_layout
8605
8606 \end_inset
8607
8608  
8609 \begin_inset CommandInset label
8610 LatexCommand label
8611 name "des:CopyStyle"
8612
8613 \end_inset
8614
8615 [
8616 \begin_inset Flex Code
8617 status collapsed
8618
8619 \begin_layout Plain Layout
8620 文字列
8621 \end_layout
8622
8623 \end_inset
8624
8625 ] 既存の様式から、すべての機能を現在の様式にコピーします。
8626 \end_layout
8627
8628 \begin_layout Description
8629 \begin_inset Flex Code
8630 status collapsed
8631
8632 \begin_layout Plain Layout
8633 DependsOn
8634 \end_layout
8635
8636 \end_inset
8637
8638  この
8639 \emph on
8640 前に
8641 \emph default
8642 プリアンブルを出力させる様式名。マクロ定義がお互いに依存関係にある場合に、プリアンブルの断片の順序を確実にするためのものです
8643 \begin_inset Foot
8644 status collapsed
8645
8646 \begin_layout Plain Layout
8647 この機能以外には、プリアンブルの順序を確定する方法はないことに注意してください。LyXの特定のバージョンで観察された順序は、将来のバージョンで警告なしに変わる可
8648 能性があります。
8649 \end_layout
8650
8651 \end_inset
8652
8653
8654 \end_layout
8655
8656 \begin_layout Description
8657 \begin_inset Flex Code
8658 status collapsed
8659
8660 \begin_layout Plain Layout
8661 EndLabeltype
8662 \end_layout
8663
8664 \end_inset
8665
8666  [
8667 \begin_inset Flex Code
8668 status collapsed
8669
8670 \begin_layout Plain Layout
8671
8672 \emph on
8673 No_Label
8674 \emph default
8675 , Box, Filled_Box, Static
8676 \end_layout
8677
8678 \end_inset
8679
8680 ] 段落の最後(あるいは
8681 \begin_inset Flex Code
8682 status collapsed
8683
8684 \begin_layout Plain Layout
8685 LatexType
8686 \end_layout
8687
8688 \end_inset
8689
8690 が、
8691 \begin_inset Flex Code
8692 status collapsed
8693
8694 \begin_layout Plain Layout
8695 Environment
8696 \end_layout
8697
8698 \end_inset
8699
8700
8701 \begin_inset Flex Code
8702 status collapsed
8703
8704 \begin_layout Plain Layout
8705 Item_Environment
8706 \end_layout
8707
8708 \end_inset
8709
8710
8711 \begin_inset Flex Code
8712 status collapsed
8713
8714 \begin_layout Plain Layout
8715 List_Environment
8716 \end_layout
8717
8718 \end_inset
8719
8720 のいずれかの場合は、段落群の最後)に置くラベル。
8721 \begin_inset Flex Code
8722 status collapsed
8723
8724 \begin_layout Plain Layout
8725 No_Label
8726 \end_layout
8727
8728 \end_inset
8729
8730 の場合は「何もない」ことを指し、
8731 \begin_inset Flex Code
8732 status collapsed
8733
8734 \begin_layout Plain Layout
8735 Box
8736 \end_layout
8737
8738 \end_inset
8739
8740 (あるいは
8741 \begin_inset Flex Code
8742 status collapsed
8743
8744 \begin_layout Plain Layout
8745 Filled_Box
8746 \end_layout
8747
8748 \end_inset
8749
8750 )の場合は、証明終了マーカ用の白い箱型(あるいは黒い箱型)を指し、
8751 \begin_inset Flex Code
8752 status collapsed
8753
8754 \begin_layout Plain Layout
8755 Static
8756 \end_layout
8757
8758 \end_inset
8759
8760 は明示したテキスト文字列を指します。
8761 \end_layout
8762
8763 \begin_layout Description
8764 \begin_inset Flex Code
8765 status collapsed
8766
8767 \begin_layout Plain Layout
8768 EndLabelString
8769 \end_layout
8770
8771 \end_inset
8772
8773  [
8774 \begin_inset Flex Code
8775 status collapsed
8776
8777 \begin_layout Plain Layout
8778 文字列=""
8779 \end_layout
8780
8781 \end_inset
8782
8783
8784 \begin_inset Flex Code
8785 status collapsed
8786
8787 \begin_layout Plain Layout
8788 Static
8789 \end_layout
8790
8791 \end_inset
8792
8793
8794 \begin_inset Flex Code
8795 status collapsed
8796
8797 \begin_layout Plain Layout
8798 EndLabelType
8799 \end_layout
8800
8801 \end_inset
8802
8803 のラベルで用いる文字列。
8804 \end_layout
8805
8806 \begin_layout Description
8807 \begin_inset Flex Code
8808 status collapsed
8809
8810 \begin_layout Plain Layout
8811 Fill_Bottom
8812 \end_layout
8813
8814 \end_inset
8815
8816  [
8817 \begin_inset Flex Code
8818 status collapsed
8819
8820 \begin_layout Plain Layout
8821
8822 \emph on
8823 0
8824 \emph default
8825 ,1
8826 \end_layout
8827
8828 \end_inset
8829
8830
8831 \begin_inset Flex Code
8832 status collapsed
8833
8834 \begin_layout Plain Layout
8835 Fill_Top
8836 \end_layout
8837
8838 \end_inset
8839
8840 と同様。
8841 \end_layout
8842
8843 \begin_layout Description
8844 \begin_inset Flex Code
8845 status collapsed
8846
8847 \begin_layout Plain Layout
8848 Fill_Top
8849 \end_layout
8850
8851 \end_inset
8852
8853  [
8854 \begin_inset Flex Code
8855 status collapsed
8856
8857 \begin_layout Plain Layout
8858
8859 \emph on
8860 0
8861 \emph default
8862 ,1
8863 \end_layout
8864
8865 \end_inset
8866
8867 ] このパラメータは、この様式で段落を初期化する際に設定される、
8868 \begin_inset Flex MenuItem
8869 status collapsed
8870
8871 \begin_layout Plain Layout
8872 編集\SpecialChar \menuseparator
8873 段落設定
8874 \end_layout
8875
8876 \end_inset
8877
8878 ダイアログの「上部垂直余白」リストの
8879 \begin_inset Flex MenuItem
8880 status collapsed
8881
8882 \begin_layout Plain Layout
8883 Fill
8884 \end_layout
8885
8886 \end_inset
8887
8888 値を設定します
8889 \begin_inset Foot
8890 status collapsed
8891
8892 \begin_layout Plain Layout
8893
8894 \emph on
8895 Jean-Marcによる註
8896 \emph default
8897 :この設定にどれほど使途があるかは定かでなく、おそらく将来のバージョンで取り除かれます。
8898 \end_layout
8899
8900 \end_inset
8901
8902  。
8903 \end_layout
8904
8905 \begin_layout Description
8906 \begin_inset Flex Code
8907 status collapsed
8908
8909 \begin_layout Plain Layout
8910 Font
8911 \end_layout
8912
8913 \end_inset
8914
8915  本文テキストとラベルの
8916 \emph on
8917 両方で
8918 \emph default
8919 用いられるフォント。第
8920 \begin_inset CommandInset ref
8921 LatexCommand ref
8922 reference "sub:フォント指定"
8923
8924 \end_inset
8925
8926 節を参照。このフォントを定義すると、自動的に
8927 \begin_inset Flex Code
8928 status collapsed
8929
8930 \begin_layout Plain Layout
8931 LabelFont
8932 \end_layout
8933
8934 \end_inset
8935
8936 も同じ値で定義されることに注意してください。したがって、
8937 \begin_inset Flex Code
8938 status collapsed
8939
8940 \begin_layout Plain Layout
8941 LabelFont
8942 \end_layout
8943
8944 \end_inset
8945
8946 も同時に定義したい場合には、これを先に定義してください。
8947 \end_layout
8948
8949 \begin_layout Description
8950 \begin_inset Flex Code
8951 status collapsed
8952
8953 \begin_layout Plain Layout
8954 FreeSpacing
8955 \end_layout
8956
8957 \end_inset
8958
8959  
8960 \begin_inset CommandInset label
8961 LatexCommand label
8962 name "des:FreeSpacing"
8963
8964 \end_inset
8965
8966 [
8967 \emph on
8968
8969 \begin_inset Flex Code
8970 status collapsed
8971
8972 \begin_layout Plain Layout
8973 0
8974 \end_layout
8975
8976 \end_inset
8977
8978
8979 \emph default
8980
8981 \begin_inset Flex Code
8982 status collapsed
8983
8984 \begin_layout Plain Layout
8985 1
8986 \end_layout
8987
8988 \end_inset
8989
8990 ] LyXは、空白をそれ自体文字や記号ではなく、2つの単語の間の分割子として捉えているため、単語間に2つ以上の空白を入れることは、通常許可していません。これ自体
8991 はとても素晴らしいことですが、たとえばプログラムコードや生のLaTeXコードを入力しようとするときなどに、煩わしくなることがあります。このことから、
8992 \begin_inset Flex Code
8993 status collapsed
8994
8995 \begin_layout Plain Layout
8996 FreeSpacing
8997 \end_layout
8998
8999 \end_inset
9000
9001 を有効にすることが認められています。LyXは、LaTeXモード以外では2つめ以降の空白には、保護された空白を使用することに注意してください。
9002 \end_layout
9003
9004 \begin_layout Description
9005 \begin_inset Flex Code
9006 status collapsed
9007
9008 \begin_layout Plain Layout
9009 HTML*
9010 \end_layout
9011
9012 \end_inset
9013
9014  これらのタグは、XHTML出力で使用されます。第
9015 \begin_inset CommandInset ref
9016 LatexCommand ref
9017 reference "sub:段落様式-XHTML"
9018
9019 \end_inset
9020
9021 節をご覧ください。
9022 \end_layout
9023
9024 \begin_layout Description
9025 \begin_inset Flex Code
9026 status collapsed
9027
9028 \begin_layout Plain Layout
9029 InnerTag
9030 \end_layout
9031
9032 \end_inset
9033
9034  [[FIXME]] (XML型書式でのみ使用されます。)
9035 \end_layout
9036
9037 \begin_layout Description
9038 \begin_inset Flex Code
9039 status collapsed
9040
9041 \begin_layout Plain Layout
9042 InTitle
9043 \end_layout
9044
9045 \end_inset
9046
9047  
9048 \begin_inset Flex Code
9049 status collapsed
9050
9051 \begin_layout Plain Layout
9052 [1, 0]
9053 \end_layout
9054
9055 \end_inset
9056
9057  1の場合、このレイアウトをタイトルブロックの一部としてマークします(大域項目の
9058 \begin_inset Flex Code
9059 status collapsed
9060
9061 \begin_layout Plain Layout
9062 TitleLatexType
9063 \end_layout
9064
9065 \end_inset
9066
9067
9068 \begin_inset Flex Code
9069 status collapsed
9070
9071 \begin_layout Plain Layout
9072 TitleLatexName
9073 \end_layout
9074
9075 \end_inset
9076
9077 も参照)。
9078 \end_layout
9079
9080 \begin_layout Description
9081 \begin_inset Flex Code
9082 status collapsed
9083
9084 \begin_layout Plain Layout
9085 ItemSep
9086 \end_layout
9087
9088 \end_inset
9089
9090  [
9091 \begin_inset Flex Code
9092 status collapsed
9093
9094 \begin_layout Plain Layout
9095 浮動小数点型=0
9096 \end_layout
9097
9098 \end_inset
9099
9100 ] これは、同じレイアウトを持つ段落群の間に追加する空白を与えるものです。複数のレイアウトを一つの環境に入れると、それぞれのレイアウトは、その環境の
9101 \begin_inset Flex Code
9102 status collapsed
9103
9104 \begin_layout Plain Layout
9105 Parsep
9106 \end_layout
9107
9108 \end_inset
9109
9110 だけ分離されます。しかし、その環境の項目全体は、さらにこの
9111 \begin_inset Flex Code
9112 status collapsed
9113
9114 \begin_layout Plain Layout
9115 Itemsep
9116 \end_layout
9117
9118 \end_inset
9119
9120 分だけ離されます。これは
9121 \emph on
9122 乗数
9123 \emph default
9124 であることに注意してください。
9125 \end_layout
9126
9127 \begin_layout Description
9128 \begin_inset Flex Code
9129 status collapsed
9130
9131 \begin_layout Plain Layout
9132 ItemTag
9133 \end_layout
9134
9135 \end_inset
9136
9137  [[FIXME]] (XML型書式でのみ使用されます。)
9138 \end_layout
9139
9140 \begin_layout Description
9141 \begin_inset Flex Code
9142 status collapsed
9143
9144 \begin_layout Plain Layout
9145 KeepEmpty
9146 \end_layout
9147
9148 \end_inset
9149
9150  
9151 \begin_inset CommandInset label
9152 LatexCommand label
9153 name "des:KeepEmpty"
9154
9155 \end_inset
9156
9157 [
9158 \emph on
9159
9160 \begin_inset Flex Code
9161 status collapsed
9162
9163 \begin_layout Plain Layout
9164 0
9165 \end_layout
9166
9167 \end_inset
9168
9169
9170 \emph default
9171
9172 \begin_inset Flex Code
9173 status collapsed
9174
9175 \begin_layout Plain Layout
9176 1
9177 \end_layout
9178
9179 \end_inset
9180
9181 ] 段落を空のままにすると、LaTeX出力が空になってしまうので、通常、LyXは段落を空にすることを許可しません。しかしながら、これを無効にすることが望ましい場
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 LabelBottomsep
9192 \end_layout
9193
9194 \end_inset
9195
9196  [
9197 \begin_inset Flex Code
9198 status collapsed
9199
9200 \begin_layout Plain Layout
9201 浮動小数点型=0
9202 \end_layout
9203
9204 \end_inset
9205
9206 ] ラベルと本文テキストとの間の垂直余白。本文テキストの上に来るラベルにのみ使用されます(
9207 \begin_inset Flex Code
9208 status collapsed
9209
9210 \begin_layout Plain Layout
9211 Top_Environment
9212 \end_layout
9213
9214 \end_inset
9215
9216 および
9217 \begin_inset Newline linebreak
9218 \end_inset
9219
9220
9221 \begin_inset Flex Code
9222 status collapsed
9223
9224 \begin_layout Plain Layout
9225 Centered_Top_Environment
9226 \end_layout
9227
9228 \end_inset
9229
9230 )。
9231 \end_layout
9232
9233 \begin_layout Description
9234 \begin_inset Flex Code
9235 status collapsed
9236
9237 \begin_layout Plain Layout
9238 LabelCounter
9239 \end_layout
9240
9241 \end_inset
9242
9243  [
9244 \begin_inset Flex Code
9245 status collapsed
9246
9247 \begin_layout Plain Layout
9248 文字列=""
9249 \end_layout
9250
9251 \end_inset
9252
9253 ]
9254 \begin_inset Newline newline
9255 \end_inset
9256
9257 自動連番に使われるカウンタ名(詳しくは第
9258 \begin_inset CommandInset ref
9259 LatexCommand ref
9260 reference "sub:カウンタ"
9261
9262 \end_inset
9263
9264 節参照)。
9265 \begin_inset Newline newline
9266 \end_inset
9267
9268
9269 \begin_inset Flex Code
9270 status collapsed
9271
9272 \begin_layout Plain Layout
9273 LabelType
9274 \end_layout
9275
9276 \end_inset
9277
9278
9279 \begin_inset Flex Code
9280 status collapsed
9281
9282 \begin_layout Plain Layout
9283 Counter
9284 \end_layout
9285
9286 \end_inset
9287
9288 型のときには、本項目は
9289 \emph on
9290 必須
9291 \emph default
9292 です。この場合には、この様式が出現するたびにカウンタが増えます。
9293 \begin_inset Newline newline
9294 \end_inset
9295
9296 また、
9297 \begin_inset Flex Code
9298 status collapsed
9299
9300 \begin_layout Plain Layout
9301 LabelType
9302 \end_layout
9303
9304 \end_inset
9305
9306
9307 \begin_inset Flex Code
9308 status collapsed
9309
9310 \begin_layout Plain Layout
9311 Enumerate
9312 \end_layout
9313
9314 \end_inset
9315
9316 型のときにも、若干複雑にはなりますが、本項目を使うことができます。たとえば、「
9317 \begin_inset Flex Code
9318 status collapsed
9319
9320 \begin_layout Plain Layout
9321 LabelCounter myenum
9322 \end_layout
9323
9324 \end_inset
9325
9326 」と宣言したものとしましょう。すると、LaTeXにおけるのと同様、実際に使われるカウンタは、
9327 \begin_inset Flex Code
9328 status collapsed
9329
9330 \begin_layout Plain Layout
9331 myenumi
9332 \end_layout
9333
9334 \end_inset
9335
9336
9337 \begin_inset Flex Code
9338 status collapsed
9339
9340 \begin_layout Plain Layout
9341 myenumii
9342 \end_layout
9343
9344 \end_inset
9345
9346
9347 \begin_inset Flex Code
9348 status collapsed
9349
9350 \begin_layout Plain Layout
9351 myenumii
9352 \end_layout
9353
9354 \end_inset
9355
9356
9357 \begin_inset Flex Code
9358 status collapsed
9359
9360 \begin_layout Plain Layout
9361 myenumiv
9362 \end_layout
9363
9364 \end_inset
9365
9366 のようになります。これらのカウンタは、全て別々に宣言されなくてはなりません。
9367 \begin_inset Newline newline
9368 \end_inset
9369
9370 カウンタの詳細については、第
9371 \begin_inset CommandInset ref
9372 LatexCommand ref
9373 reference "sub:カウンタ"
9374
9375 \end_inset
9376
9377 節をご覧ください。
9378 \end_layout
9379
9380 \begin_layout Description
9381 \begin_inset Flex Code
9382 status collapsed
9383
9384 \begin_layout Plain Layout
9385 LabelFont
9386 \end_layout
9387
9388 \end_inset
9389
9390  ラベルに使用されるフォント。第
9391 \begin_inset CommandInset ref
9392 LatexCommand ref
9393 reference "sub:フォント指定"
9394
9395 \end_inset
9396
9397 節を参照。
9398 \end_layout
9399
9400 \begin_layout Description
9401 \begin_inset Flex Code
9402 status collapsed
9403
9404 \begin_layout Plain Layout
9405 LabelIndent
9406 \end_layout
9407
9408 \end_inset
9409
9410  ラベルをどれくらい行頭下げすべきかを示す文字列。
9411 \end_layout
9412
9413 \begin_layout Description
9414 \begin_inset Flex Code
9415 status collapsed
9416
9417 \begin_layout Plain Layout
9418 Labelsep
9419 \end_layout
9420
9421 \end_inset
9422
9423  [
9424 \begin_inset Flex Code
9425 status collapsed
9426
9427 \begin_layout Plain Layout
9428 文字列=""
9429 \end_layout
9430
9431 \end_inset
9432
9433 ] ラベルと本文テキストの間の水平余白。本文テキストの上に来ないラベルにのみ使用されます。
9434 \end_layout
9435
9436 \begin_layout Description
9437 \begin_inset Flex Code
9438 status collapsed
9439
9440 \begin_layout Plain Layout
9441 LabelString
9442 \end_layout
9443
9444 \end_inset
9445
9446  [
9447 \begin_inset Flex Code
9448 status collapsed
9449
9450 \begin_layout Plain Layout
9451 文字列=""
9452 \end_layout
9453
9454 \end_inset
9455
9456
9457 \begin_inset Flex Code
9458 status collapsed
9459
9460 \begin_layout Plain Layout
9461 Static
9462 \end_layout
9463
9464 \end_inset
9465
9466 ラベル型でラベルに使用する文字列。
9467 \begin_inset Flex Code
9468 status collapsed
9469
9470 \begin_layout Plain Layout
9471 LabelCounter
9472 \end_layout
9473
9474 \end_inset
9475
9476 を設定している場合、第
9477 \begin_inset CommandInset ref
9478 LatexCommand ref
9479 reference "sub:カウンタ"
9480
9481 \end_inset
9482
9483 節に述べられている特別な整形コマンドを含めることができます
9484 \begin_inset Foot
9485 status collapsed
9486
9487 \begin_layout Plain Layout
9488 後方互換性のために、
9489 \begin_inset Flex Code
9490 status collapsed
9491
9492 \begin_layout Plain Layout
9493 @
9494 \emph on
9495 style-name
9496 \emph default
9497 @
9498 \end_layout
9499
9500 \end_inset
9501
9502 という文字列は、
9503 \begin_inset Flex Code
9504 status collapsed
9505
9506 \begin_layout Plain Layout
9507
9508 \emph on
9509 style-name
9510 \end_layout
9511
9512 \end_inset
9513
9514 様式の
9515 \begin_inset Flex Code
9516 status collapsed
9517
9518 \begin_layout Plain Layout
9519 LabelString
9520 \end_layout
9521
9522 \end_inset
9523
9524 を展開したものに置換されます。この機能は既に廃されたものとなっているので、第
9525 \begin_inset CommandInset ref
9526 LatexCommand ref
9527 reference "sub:カウンタ"
9528
9529 \end_inset
9530
9531 節の機構に置き換えられなくてはなりません。
9532 \end_layout
9533
9534 \end_inset
9535
9536
9537 \end_layout
9538
9539 \begin_layout Description
9540 \begin_inset Flex Code
9541 status collapsed
9542
9543 \begin_layout Plain Layout
9544 LabelStringAppendix
9545 \end_layout
9546
9547 \end_inset
9548
9549  [
9550 \begin_inset Flex Code
9551 status collapsed
9552
9553 \begin_layout Plain Layout
9554 文字列=""
9555 \end_layout
9556
9557 \end_inset
9558
9559 ] これは付録の中で
9560 \begin_inset Flex Code
9561 status collapsed
9562
9563 \begin_layout Plain Layout
9564 LabelString
9565 \end_layout
9566
9567 \end_inset
9568
9569 の代わりに用いられます。各
9570 \begin_inset Flex Code
9571 status collapsed
9572
9573 \begin_layout Plain Layout
9574 LabelString
9575 \end_layout
9576
9577 \end_inset
9578
9579 ステートメントは、
9580 \begin_inset Flex Code
9581 status collapsed
9582
9583 \begin_layout Plain Layout
9584 LabelStringAppendix
9585 \end_layout
9586
9587 \end_inset
9588
9589 をもリセットすることに注意してください。
9590 \end_layout
9591
9592 \begin_layout Description
9593 \begin_inset Flex Code
9594 status collapsed
9595
9596 \begin_layout Plain Layout
9597 LabelTag
9598 \end_layout
9599
9600 \end_inset
9601
9602  [FIXME] (XML型書式でのみ使用されます。)
9603 \end_layout
9604
9605 \begin_layout Description
9606 \begin_inset Flex Code
9607 status collapsed
9608
9609 \begin_layout Plain Layout
9610 LabelType
9611 \end_layout
9612
9613 \end_inset
9614
9615  [
9616 \begin_inset Flex Code
9617 status collapsed
9618
9619 \begin_layout Plain Layout
9620
9621 \emph on
9622 No_Label
9623 \emph default
9624 , Manual, Static, Top_Environment, Centered_Top_Environment, Counter, Sensitive,
9625  Enumerate, Itemize, Bibliography
9626 \end_layout
9627
9628 \end_inset
9629
9630 ]
9631 \end_layout
9632
9633 \begin_deeper
9634 \begin_layout Itemize
9635 \begin_inset Flex Code
9636 status collapsed
9637
9638 \begin_layout Plain Layout
9639 Manual
9640 \end_layout
9641
9642 \end_inset
9643
9644 は、ラベルが最初の単語(最初の本当の空白まで)であることを示します。ラベルに2単語以上使用したいときは、保護された空白を使用してください。
9645 \end_layout
9646
9647 \begin_layout Itemize
9648 \begin_inset Flex Code
9649 status collapsed
9650
9651 \begin_layout Plain Layout
9652 Static
9653 \end_layout
9654
9655 \end_inset
9656
9657 は、ラベルが
9658 \begin_inset Flex Code
9659 status collapsed
9660
9661 \begin_layout Plain Layout
9662 LabelString
9663 \end_layout
9664
9665 \end_inset
9666
9667 で宣言したものであることを示します。これは「静的」であることに注意してください。
9668 \end_layout
9669
9670 \begin_layout Itemize
9671 \begin_inset Flex Code
9672 status collapsed
9673
9674 \begin_layout Plain Layout
9675 Top_Environment
9676 \end_layout
9677
9678 \end_inset
9679
9680
9681 \begin_inset Flex Code
9682 status collapsed
9683
9684 \begin_layout Plain Layout
9685 Centered_Top_Environment
9686 \end_layout
9687
9688 \end_inset
9689
9690 は、
9691 \begin_inset Flex Code
9692 status collapsed
9693
9694 \begin_layout Plain Layout
9695 Static
9696 \end_layout
9697
9698 \end_inset
9699
9700 の特別な場合です。ラベルは段落の上に印字されるのですが、それは単一の環境の上か、このレイアウトを持つ連続した段落群の上だけに印字されます。たとえば、
9701 \begin_inset Flex MenuItem
9702 status collapsed
9703
9704 \begin_layout Plain Layout
9705 Abstract
9706 \end_layout
9707
9708 \end_inset
9709
9710 レイアウトが使用したりします。
9711 \end_layout
9712
9713 \begin_layout Itemize
9714 \begin_inset Flex Code
9715 status collapsed
9716
9717 \begin_layout Plain Layout
9718 Sensitive
9719 \end_layout
9720
9721 \end_inset
9722
9723 はキャプションラベルの「図」や「表」の特別な場合です。
9724 \begin_inset Flex Code
9725 status collapsed
9726
9727 \begin_layout Plain Layout
9728 Sensitive
9729 \end_layout
9730
9731 \end_inset
9732
9733 は、(ハードコードされた)ラベル文字列がフロートの種類に依存することを示します。これは、フロートに関連付けられたカウンタの値がNであるものとすると、「Float
9734 Type N」にハードコードされています。
9735 \end_layout
9736
9737 \begin_layout Itemize
9738 \begin_inset Flex Code
9739 status collapsed
9740
9741 \begin_layout Plain Layout
9742 Counter
9743 \end_layout
9744
9745 \end_inset
9746
9747 ラベル型は、自動的に連番が付されるラベルを定義します。
9748 \begin_inset Flex Code
9749 status collapsed
9750
9751 \begin_layout Plain Layout
9752 LabelString
9753 \end_layout
9754
9755 \end_inset
9756
9757 は、それが含むカウンタ参照をすべて解決するために展開されます。これは、たとえば
9758 \begin_inset Flex Code
9759 status collapsed
9760
9761 \begin_layout Plain Layout
9762 Section 
9763 \backslash
9764 thechapter.
9765 \backslash
9766 thesection
9767 \end_layout
9768
9769 \end_inset
9770
9771 のようになります。第
9772 \begin_inset CommandInset ref
9773 LatexCommand ref
9774 reference "sub:カウンタ"
9775
9776 \end_inset
9777
9778 節を参照してください。
9779 \end_layout
9780
9781 \begin_layout Itemize
9782 \begin_inset Flex Code
9783 status collapsed
9784
9785 \begin_layout Plain Layout
9786 Enumerate
9787 \end_layout
9788
9789 \end_inset
9790
9791 は、通常の連番ラベルを生成します。現在のところ、これは、第4階層まで順に、アラビア数字・小文字・小文字ローマ数字・大文字を使用するようにハードコードされています
9792
9793 \end_layout
9794
9795 \begin_layout Itemize
9796 \begin_inset Flex Code
9797 status collapsed
9798
9799 \begin_layout Plain Layout
9800 Itemize
9801 \end_layout
9802
9803 \end_inset
9804
9805 は、各階層でさまざまなブリットを生成します。これもハードコードされています。
9806 \end_layout
9807
9808 \begin_layout Itemize
9809 \begin_inset Flex Code
9810 status collapsed
9811
9812 \begin_layout Plain Layout
9813 Bibliography
9814 \end_layout
9815
9816 \end_inset
9817
9818 は、LyXで内部的に使用され、
9819 \begin_inset Flex Code
9820 status collapsed
9821
9822 \begin_layout Plain Layout
9823 LatexType BibEnvironment
9824 \end_layout
9825
9826 \end_inset
9827
9828 とともにのみ使用されます。
9829 \end_layout
9830
9831 \end_deeper
9832 \begin_layout Description
9833 \begin_inset Flex Code
9834 status collapsed
9835
9836 \begin_layout Plain Layout
9837 LangPreamble
9838 \end_layout
9839
9840 \end_inset
9841
9842  これは、この様式で既に出現した
9843 \begin_inset Flex Code
9844 status collapsed
9845
9846 \begin_layout Plain Layout
9847 LangPreamble
9848 \end_layout
9849
9850 \end_inset
9851
9852 宣言をすべて、完全に上書きしますので、注意してください。使用法についての詳細は、第
9853 \begin_inset CommandInset ref
9854 LatexCommand ref
9855 reference "sub:段落様式の国際化"
9856
9857 \end_inset
9858
9859 節をご覧ください。
9860 \end_layout
9861
9862 \begin_layout Description
9863 \begin_inset Flex Code
9864 status collapsed
9865
9866 \begin_layout Plain Layout
9867 LatexName
9868 \end_layout
9869
9870 \end_inset
9871
9872  対応するLaTeXの名称です。環境名かコマンド名を指します。
9873 \end_layout
9874
9875 \begin_layout Description
9876 \begin_inset Flex Code
9877 status collapsed
9878
9879 \begin_layout Plain Layout
9880 LatexParam
9881 \end_layout
9882
9883 \end_inset
9884
9885  対応する
9886 \begin_inset Flex Code
9887 status collapsed
9888
9889 \begin_layout Plain Layout
9890 LatexName
9891 \end_layout
9892
9893 \end_inset
9894
9895 の非必須パラメータです。このパラメータは、LyX内部から変更することはできません。
9896 \end_layout
9897
9898 \begin_layout Description
9899 \begin_inset Flex Code
9900 status collapsed
9901
9902 \begin_layout Plain Layout
9903 LatexType
9904 \end_layout
9905
9906 \end_inset
9907
9908  
9909 \begin_inset CommandInset label
9910 LatexCommand label
9911 name "des:LatexType"
9912
9913 \end_inset
9914
9915 [
9916 \begin_inset Flex Code
9917 status collapsed
9918
9919 \begin_layout Plain Layout
9920
9921 \emph on
9922 Paragraph
9923 \emph default
9924 , Command, Environment, Item_Environment,
9925 \end_layout
9926
9927 \end_inset
9928
9929  
9930 \begin_inset Flex Code
9931 status collapsed
9932
9933 \begin_layout Plain Layout
9934 List_Environmen, Bib_Environment
9935 \end_layout
9936
9937 \end_inset
9938
9939 ] レイアウトがどのようにLaTeXに変換されるべきかを示します
9940 \begin_inset Foot
9941 status collapsed
9942
9943 \begin_layout Plain Layout
9944 これらのルールはSGMLクラスにも適用されるので、
9945 \begin_inset Flex Code
9946 status collapsed
9947
9948 \begin_layout Plain Layout
9949 LatexType
9950 \end_layout
9951
9952 \end_inset
9953
9954 の名称は、少しミスリーディングかもしれません。特定の例については、SGMLクラスファイルを見てください。
9955 \end_layout
9956
9957 \end_inset
9958
9959
9960 \end_layout
9961
9962 \begin_deeper
9963 \begin_layout Itemize
9964 \begin_inset Flex Code
9965 status collapsed
9966
9967 \begin_layout Plain Layout
9968 Paragraph
9969 \end_layout
9970
9971 \end_inset
9972
9973 は、何も特別なことは意味しません。
9974 \end_layout
9975
9976 \begin_layout Itemize
9977 \begin_inset Flex Code
9978 status collapsed
9979
9980 \begin_layout Plain Layout
9981 Command
9982 \end_layout
9983
9984 \end_inset
9985
9986 は、
9987 \begin_inset Flex Code
9988 status collapsed
9989
9990 \begin_layout Plain Layout
9991
9992 \backslash
9993
9994 \emph on
9995 LatexName
9996 \emph default
9997 {\SpecialChar \ldots{}
9998 }
9999 \end_layout
10000
10001 \end_inset
10002
10003 を意味します。
10004 \end_layout
10005
10006 \begin_layout Itemize
10007 \begin_inset Flex Code
10008 status collapsed
10009
10010 \begin_layout Plain Layout
10011 Environment
10012 \end_layout
10013
10014 \end_inset
10015
10016 は、
10017 \begin_inset Flex Code
10018 status collapsed
10019
10020 \begin_layout Plain Layout
10021
10022 \backslash
10023 begin{
10024 \emph on
10025 LatexName
10026 \emph default
10027 }\SpecialChar \ldots{}
10028
10029 \backslash
10030 end{
10031 \emph on
10032 LatexName
10033 \emph default
10034 }
10035 \end_layout
10036
10037 \end_inset
10038
10039 を意味します。
10040 \end_layout
10041
10042 \begin_layout Itemize
10043 \begin_inset Flex Code
10044 status collapsed
10045
10046 \begin_layout Plain Layout
10047 Item_Environment
10048 \end_layout
10049
10050 \end_inset
10051
10052
10053 \begin_inset Flex Code
10054 status collapsed
10055
10056 \begin_layout Plain Layout
10057 Environment
10058 \end_layout
10059
10060 \end_inset
10061
10062 と同じですが、
10063 \begin_inset Flex Code
10064 status collapsed
10065
10066 \begin_layout Plain Layout
10067
10068 \backslash
10069 item
10070 \end_layout
10071
10072 \end_inset
10073
10074 がこの環境のすべての段落に付けられるところだけが異なっています。
10075 \end_layout
10076
10077 \begin_layout Itemize
10078 \begin_inset Flex Code
10079 status collapsed
10080
10081 \begin_layout Plain Layout
10082 List_Environment
10083 \end_layout
10084
10085 \end_inset
10086
10087
10088 \begin_inset Flex Code
10089 status collapsed
10090
10091 \begin_layout Plain Layout
10092 Item_Environment
10093 \end_layout
10094
10095 \end_inset
10096
10097 と同じですが、
10098 \begin_inset Flex Code
10099 status collapsed
10100
10101 \begin_layout Plain Layout
10102 LabelWidthString
10103 \end_layout
10104
10105 \end_inset
10106
10107 が環境の引数として渡されるところだけが異なっています。
10108 \begin_inset Flex Code
10109 status collapsed
10110
10111 \begin_layout Plain Layout
10112 LabelWidthString
10113 \end_layout
10114
10115 \end_inset
10116
10117 は、
10118 \begin_inset Flex MenuItem
10119 status collapsed
10120
10121 \begin_layout Plain Layout
10122 編集\SpecialChar \menuseparator
10123 段落設定
10124 \end_layout
10125
10126 \end_inset
10127
10128 ダイアログで定義することができます。
10129 \end_layout
10130
10131 \begin_layout Standard
10132 上記最後のいくつかをまとめると、LaTeX出力は、LaTeX型に依存して
10133 \end_layout
10134
10135 \begin_layout LyX-Code
10136
10137 \backslash
10138 latexname[latexparam]{\SpecialChar \ldots{}
10139 }
10140 \end_layout
10141
10142 \begin_layout Standard
10143 のようになるか、
10144 \end_layout
10145
10146 \begin_layout LyX-Code
10147
10148 \backslash
10149 begin{latexname}[latexparam] \SpecialChar \ldots{}
10150  
10151 \backslash
10152 end{latexname}.
10153 \end_layout
10154
10155 \begin_layout Standard
10156 となります。
10157 \end_layout
10158
10159 \end_deeper
10160 \begin_layout Description
10161 \begin_inset Flex Code
10162 status collapsed
10163
10164 \begin_layout Plain Layout
10165 LeftMargin
10166 \end_layout
10167
10168 \end_inset
10169
10170  [
10171 \begin_inset Flex Code
10172 status collapsed
10173
10174 \begin_layout Plain Layout
10175 文字列=""
10176 \end_layout
10177
10178 \end_inset
10179
10180 ] レイアウトを環境の中に入れた場合、左余白は単純に加えられるのではなく、因子
10181 \begin_inset Formula $\frac{4}{depth+4}$
10182 \end_inset
10183
10184 をかけて加えられます。このパラメータは、
10185 \begin_inset Flex Code
10186 status collapsed
10187
10188 \begin_layout Plain Layout
10189 Margin
10190 \end_layout
10191
10192 \end_inset
10193
10194
10195 \begin_inset Flex Code
10196 status collapsed
10197
10198 \begin_layout Plain Layout
10199 Manual
10200 \end_layout
10201
10202 \end_inset
10203
10204 あるいは
10205 \begin_inset Flex Code
10206 status collapsed
10207
10208 \begin_layout Plain Layout
10209 Dynamic
10210 \end_layout
10211
10212 \end_inset
10213
10214 に設定されているときにも用いられることに注意してください。その場合には、これは手動設定余白または動的設定余白に加えられることに注意してください。
10215 \begin_inset Newline newline
10216 \end_inset
10217
10218 引数は文字列として渡されます。たとえば「
10219 \begin_inset Flex Code
10220 status collapsed
10221
10222 \begin_layout Plain Layout
10223 MM
10224 \end_layout
10225
10226 \end_inset
10227
10228 」と指定すると、段落を通常フォントの「
10229 \begin_inset Flex Code
10230 status collapsed
10231
10232 \begin_layout Plain Layout
10233 MM
10234 \end_layout
10235
10236 \end_inset
10237
10238 」の幅だけ行頭下げを行います。文字列の前に「
10239 \begin_inset Flex Code
10240 status collapsed
10241
10242 \begin_layout Plain Layout
10243 -
10244 \end_layout
10245
10246 \end_inset
10247
10248 」を付けると、負の幅を与えることができます。この方法が採用されたのは、どの画面フォントでも見かけが同じになるようにするためです。
10249 \end_layout
10250
10251 \begin_layout Description
10252 \begin_inset Flex Code
10253 status collapsed
10254
10255 \begin_layout Plain Layout
10256 Margin
10257 \end_layout
10258
10259 \end_inset
10260
10261  [
10262 \begin_inset Flex Code
10263 status collapsed
10264
10265 \begin_layout Plain Layout
10266
10267 \emph on
10268 Static
10269 \emph default
10270 , Manual, Dynamic, First_Dynamic, Right_Address_Box
10271 \end_layout
10272
10273 \end_inset
10274
10275
10276 \begin_inset Newline newline
10277 \end_inset
10278
10279 このレイアウトの左余白の種類です。
10280 \begin_inset Flex Code
10281 status collapsed
10282
10283 \begin_layout Plain Layout
10284 Static
10285 \end_layout
10286
10287 \end_inset
10288
10289 は固定余白を示します。
10290 \begin_inset Flex Code
10291 status collapsed
10292
10293 \begin_layout Plain Layout
10294 Manual
10295 \end_layout
10296
10297 \end_inset
10298
10299 は、左余白が
10300 \begin_inset Flex MenuItem
10301 status collapsed
10302
10303 \begin_layout Plain Layout
10304 編集\SpecialChar \menuseparator
10305 段落設定
10306 \end_layout
10307
10308 \end_inset
10309
10310 ダイアログで入力した文字列によって決められることを示します。これは、タブを用いずに整った一覧表を組むのに使用されます。
10311 \begin_inset Flex Code
10312 status collapsed
10313
10314 \begin_layout Plain Layout
10315 Dynamic
10316 \end_layout
10317
10318 \end_inset
10319
10320 は、余白がラベルの大きさに依存することを示します。これは、自動連番の見出しに使用されます。「5.4.3.2.1 非常に長い見出し」という見出し行が、「3.2
10321  非常に長い見出し」よりも広い左余白(5.4.3.2.1足す空白と同じ幅)を必要とすることは明らかでしょう(標準的「ワープロ」はこんなことはやってくれませんが)。
10322 \begin_inset Flex Code
10323 status collapsed
10324
10325 \begin_layout Plain Layout
10326 First_Dynamic
10327 \end_layout
10328
10329 \end_inset
10330
10331 は似ていますが、段落の最初の行だけがDynamicでその他の行はStaticです。これは、たとえば、箇条書き(記述)に使用されます。
10332 \begin_inset Flex Code
10333 status collapsed
10334
10335 \begin_layout Plain Layout
10336 Right_Address_Box
10337 \end_layout
10338
10339 \end_inset
10340
10341 は、段落中、最も長い行が右余白に合うように余白を選択します。これは、ページの右端に住所を組版するのに用いられます。
10342 \end_layout
10343
10344 \begin_layout Description
10345 \begin_inset Flex Code
10346 status collapsed
10347
10348 \begin_layout Plain Layout
10349 NeedProtect
10350 \end_layout
10351
10352 \end_inset
10353
10354  [
10355 \begin_inset Flex Code
10356 status collapsed
10357
10358 \begin_layout Plain Layout
10359
10360 \emph on
10361 0
10362 \end_layout
10363
10364 \end_inset
10365
10366 ,
10367 \begin_inset Flex Code
10368 status collapsed
10369
10370 \begin_layout Plain Layout
10371 1
10372 \end_layout
10373
10374 \end_inset
10375
10376 ] このレイアウト中の脆弱なコマンドが
10377 \begin_inset Flex Code
10378 status collapsed
10379
10380 \begin_layout Plain Layout
10381
10382 \backslash
10383 protect
10384 \end_layout
10385
10386 \end_inset
10387
10388 されるべきか否か(註:これはこのコマンド自体が
10389 \begin_inset Flex Code
10390 status collapsed
10391
10392 \begin_layout Plain Layout
10393
10394 \backslash
10395 protect
10396 \end_layout
10397
10398 \end_inset
10399
10400 されるべきかでは
10401 \emph on
10402 ありません
10403 \emph default
10404 )。
10405 \end_layout
10406
10407 \begin_layout Description
10408 \begin_inset Flex Code
10409 status collapsed
10410
10411 \begin_layout Plain Layout
10412 Newline
10413 \end_layout
10414
10415 \end_inset
10416
10417  [
10418 \begin_inset Flex Code
10419 status collapsed
10420
10421 \begin_layout Plain Layout
10422 0
10423 \end_layout
10424
10425 \end_inset
10426
10427
10428 \begin_inset Flex Code
10429 status collapsed
10430
10431 \begin_layout Plain Layout
10432
10433 \emph on
10434 1
10435 \end_layout
10436
10437 \end_inset
10438
10439 ] 新規行をLaTeXの新規行(
10440 \begin_inset Flex Code
10441 status collapsed
10442
10443 \begin_layout Plain Layout
10444
10445 \backslash
10446
10447 \backslash
10448
10449 \end_layout
10450
10451 \end_inset
10452
10453 )に変換するか否か。LyX中でLaTeX編集をやりやすくするために、変換は無効にすることができます。
10454 \end_layout
10455
10456 \begin_layout Description
10457 \begin_inset Flex Code
10458 status collapsed
10459
10460 \begin_layout Plain Layout
10461 NextNoIndent
10462 \end_layout
10463
10464 \end_inset
10465
10466  [
10467 \begin_inset Flex Code
10468 status collapsed
10469
10470 \begin_layout Plain Layout
10471 1
10472 \end_layout
10473
10474 \end_inset
10475
10476
10477 \begin_inset Flex Code
10478 status collapsed
10479
10480 \begin_layout Plain Layout
10481
10482 \emph on
10483 0
10484 \end_layout
10485
10486 \end_inset
10487
10488 ] 次の段落に最初の行の行頭下げを許すか否か。
10489 \begin_inset Flex Code
10490 status collapsed
10491
10492 \begin_layout Plain Layout
10493 1
10494 \end_layout
10495
10496 \end_inset
10497
10498 は許可しないことを意味し、
10499 \begin_inset Flex Code
10500 status collapsed
10501
10502 \begin_layout Plain Layout
10503 0
10504 \end_layout
10505
10506 \end_inset
10507
10508 は望むならば行頭下げできることを意味します。
10509 \end_layout
10510
10511 \begin_layout Description
10512 \begin_inset Flex Code
10513 status collapsed
10514
10515 \begin_layout Plain Layout
10516 ObsoletedBy
10517 \end_layout
10518
10519 \end_inset
10520
10521  このレイアウトが置き換えられたレイアウト名。これは、後方互換性を維持しながら、レイアウトの名称を変更するのに使用されます。
10522 \end_layout
10523
10524 \begin_layout Description
10525 \begin_inset Flex Code
10526 status collapsed
10527
10528 \begin_layout Plain Layout
10529 OptionalArgs
10530 \end_layout
10531
10532 \end_inset
10533
10534  [
10535 \begin_inset Flex Code
10536 status collapsed
10537
10538 \begin_layout Plain Layout
10539 整数型=0
10540 \end_layout
10541
10542 \end_inset
10543
10544 ] このレイアウトに使用することのできる非必須引数の数。節見出しのようなものに有用であり、LaTeXでのみ意味を持ちます。出力時には、非必須引数は、すべての必須
10545 引数の前に来ることに注意してください(以下参照)。つまり、
10546 \end_layout
10547
10548 \begin_deeper
10549 \begin_layout LyX-Code
10550
10551 \backslash
10552 mycmd[非必須引数1]{必須引数1}{段落の内容}
10553 \end_layout
10554
10555 \begin_layout Standard
10556 のようなコマンドは生成できますが、
10557 \end_layout
10558
10559 \begin_layout LyX-Code
10560
10561 \backslash
10562 mycmd[非必須引数1]{必須引数1}[非必須引数2]{段落の内容}
10563 \end_layout
10564
10565 \begin_layout Standard
10566 のようなコマンドは、TeXコード(これを使えば何でもできます)を使用することなしには、生成することができません。
10567 \end_layout
10568
10569 \end_deeper
10570 \begin_layout Description
10571 \begin_inset Flex Code
10572 status collapsed
10573
10574 \begin_layout Plain Layout
10575 ParbreakIsNewline
10576 \end_layout
10577
10578 \end_inset
10579
10580
10581 \begin_inset CommandInset label
10582 LatexCommand label
10583 name "des:ParbreakIsNewline"
10584
10585 \end_inset
10586
10587  [
10588 \begin_inset Flex Code
10589 status collapsed
10590
10591 \begin_layout Plain Layout
10592
10593 \emph on
10594 0
10595 \end_layout
10596
10597 \end_inset
10598
10599
10600 \begin_inset Flex Code
10601 status collapsed
10602
10603 \begin_layout Plain Layout
10604 1
10605 \end_layout
10606
10607 \end_inset
10608
10609 ] LaTeX出力中で、段落を空行ではなく、改行で区切るよう指定します。
10610 \begin_inset Flex Code
10611 status collapsed
10612
10613 \begin_layout Plain Layout
10614 PassThru 1
10615 \end_layout
10616
10617 \end_inset
10618
10619 と併用すれば、(TeXコードを使用したときのように)テキストエディタをエミュレートすることができます。
10620 \end_layout
10621
10622 \begin_layout Description
10623 \begin_inset Flex Code
10624 status collapsed
10625
10626 \begin_layout Plain Layout
10627 ParIndent
10628 \end_layout
10629
10630 \end_inset
10631
10632  [
10633 \begin_inset Flex Code
10634 status collapsed
10635
10636 \begin_layout Plain Layout
10637 文字列=""
10638 \end_layout
10639
10640 \end_inset
10641
10642 ] 段落の最初の行の行頭下げ。レイアウトによっては
10643 \begin_inset Flex Code
10644 status collapsed
10645
10646 \begin_layout Plain Layout
10647 Parindent
10648 \end_layout
10649
10650 \end_inset
10651
10652 は固定されています。例外には標準レイアウトがあり、標準レイアウトの段落の行頭下げは、
10653 \begin_inset Flex Code
10654 status collapsed
10655
10656 \begin_layout Plain Layout
10657 NextNoIndent
10658 \end_layout
10659
10660 \end_inset
10661
10662 で禁止することができるようになっています。また、環境中の標準レイアウト段落は、当該段落の
10663 \begin_inset Flex Code
10664 status collapsed
10665
10666 \begin_layout Plain Layout
10667 Parindent
10668 \end_layout
10669
10670 \end_inset
10671
10672 ではなく、この環境の
10673 \begin_inset Flex Code
10674 status collapsed
10675
10676 \begin_layout Plain Layout
10677 Parindent
10678 \end_layout
10679
10680 \end_inset
10681
10682 を使用します。たとえば、箇条書き(連番)内の標準段落は、行頭下げされません。
10683 \end_layout
10684
10685 \begin_layout Description
10686 \begin_inset Flex Code
10687 status collapsed
10688
10689 \begin_layout Plain Layout
10690 Parsep
10691 \end_layout
10692
10693 \end_inset
10694
10695  [
10696 \begin_inset Flex Code
10697 status collapsed
10698
10699 \begin_layout Plain Layout
10700 浮動小数点型=0
10701 \end_layout
10702
10703 \end_inset
10704
10705 ] このレイアウトの2段落間の垂直余白。
10706 \end_layout
10707
10708 \begin_layout Description
10709 \begin_inset Flex Code
10710 status collapsed
10711
10712 \begin_layout Plain Layout
10713 Parskip
10714 \end_layout
10715
10716 \end_inset
10717
10718  [
10719 \begin_inset Flex Code
10720 status collapsed
10721
10722 \begin_layout Plain Layout
10723 浮動小数点型=0
10724 \end_layout
10725
10726 \end_inset
10727
10728 ] LyXでは、文書を組版するのに、ユーザが「行頭下げ」か「スキップ」を選ぶことができます。「行頭下げ」を選択した際には、この値は完全に無視されます。「スキップ
10729 」を選択した際には、LaTeX型「段落」レイアウトの
10730 \begin_inset Flex Code
10731 status collapsed
10732
10733 \begin_layout Plain Layout
10734 ParIndent
10735 \end_layout
10736
10737 \end_inset
10738
10739 は無視され、すべての段落はこの
10740 \begin_inset Flex Code
10741 status collapsed
10742
10743 \begin_layout Plain Layout
10744 Parskip
10745 \end_layout
10746
10747 \end_inset
10748
10749 引数分だけ引き離されます。垂直余白は、
10750 \begin_inset Flex Code
10751 status collapsed
10752
10753 \begin_layout Plain Layout
10754 DefaultHeight
10755 \end_layout
10756
10757 \end_inset
10758
10759 を標準フォントでの1行の高さとすると、
10760 \begin_inset Flex Code
10761 status collapsed
10762
10763 \begin_layout Plain Layout
10764 Parskipの値
10765 \end_layout
10766
10767 \end_inset
10768
10769
10770 \begin_inset Formula $\times$
10771 \end_inset
10772
10773
10774 \begin_inset Flex Code
10775 status collapsed
10776
10777 \begin_layout Plain Layout
10778 DefaultHeight
10779 \end_layout
10780
10781 \end_inset
10782
10783 によって計算されます。このようにして、画面フォントを変更しても同じように表示されるのです。
10784 \end_layout
10785
10786 \begin_layout Description
10787 \begin_inset Flex Code
10788 status collapsed
10789
10790 \begin_layout Plain Layout
10791 PassThru
10792 \end_layout
10793
10794 \end_inset
10795
10796  
10797 \begin_inset CommandInset label
10798 LatexCommand label
10799 name "des:PathThru"
10800
10801 \end_inset
10802
10803 [
10804 \emph on
10805
10806 \begin_inset Flex Code
10807 status collapsed
10808
10809 \begin_layout Plain Layout
10810 0
10811 \end_layout
10812
10813 \end_inset
10814
10815
10816 \emph default
10817
10818 \begin_inset Flex Code
10819 status collapsed
10820
10821 \begin_layout Plain Layout
10822 1
10823 \end_layout
10824
10825 \end_inset
10826
10827 ] この段落の内容が、LaTeXが必要とするような特別な変換を行わずに、生の形で出力されるべきかどうか。
10828 \end_layout
10829
10830 \begin_layout Description
10831 \begin_inset Flex Code
10832 status collapsed
10833
10834 \begin_layout Plain Layout
10835 Preamble
10836 \end_layout
10837
10838 \end_inset
10839
10840  
10841 \begin_inset CommandInset label
10842 LatexCommand label
10843 name "des:Preamble"
10844
10845 \end_inset
10846
10847 この様式が使用されたときに、LaTeXプリアンブルに付け加えるべき情報。この特定の様式が要求するマクロを定義したり、パッケージを読み込んだりと言ったことに使用し
10848 ます。「
10849 \begin_inset Flex Code
10850 status collapsed
10851
10852 \begin_layout Plain Layout
10853 EndPreamble
10854 \end_layout
10855
10856 \end_inset
10857
10858 」で閉じる必要があります。
10859 \end_layout
10860
10861 \begin_layout Description
10862 \begin_inset Flex Code
10863 status collapsed
10864
10865 \begin_layout Plain Layout
10866 RefPrefix
10867 \end_layout
10868
10869 \end_inset
10870
10871  [
10872 \begin_inset Flex Code
10873 status collapsed
10874
10875 \begin_layout Plain Layout
10876 文字列
10877 \end_layout
10878
10879 \end_inset
10880
10881 ] この型の段落を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
10882 \end_layout
10883
10884 \begin_layout Description
10885 \begin_inset Flex Code
10886 status collapsed
10887
10888 \begin_layout Plain Layout
10889 RequiredArgs
10890 \end_layout
10891
10892 \end_inset
10893
10894  [
10895 \begin_inset Flex Code
10896 status collapsed
10897
10898 \begin_layout Plain Layout
10899 整数型=0
10900 \end_layout
10901
10902 \end_inset
10903
10904 ] このレイアウトに対応するLaTeXコマンドやLaTeX環境が予期している、必須引数の数。コマンドの場合には、段落の内容自体に関連付けられている引数
10905 \emph on
10906 以外に
10907 \emph default
10908 、必要な引数の数のことです。これらの引数は、実際には渡されなくても構いません。必要な場合は、LyXが空の引数を生成します。非必須引数は、必須引数の前に出力される
10909 ことに注意してください。詳細については、上記
10910 \begin_inset Flex Code
10911 status collapsed
10912
10913 \begin_layout Plain Layout
10914 OptionalArgs
10915 \end_layout
10916
10917 \end_inset
10918
10919 タグにおける議論をご覧ください。
10920 \end_layout
10921
10922 \begin_layout Description
10923 \begin_inset Flex Code
10924 status collapsed
10925
10926 \begin_layout Plain Layout
10927 Requires
10928 \end_layout
10929
10930 \end_inset
10931
10932  [
10933 \begin_inset Flex Code
10934 status collapsed
10935
10936 \begin_layout Plain Layout
10937 文字列
10938 \end_layout
10939
10940 \end_inset
10941
10942
10943 \begin_inset CommandInset label
10944 LatexCommand label
10945 name "des:Requires"
10946
10947 \end_inset
10948
10949 このレイアウトが
10950 \begin_inset Flex Code
10951 status collapsed
10952
10953 \begin_layout Plain Layout
10954 文字列
10955 \end_layout
10956
10957 \end_inset
10958
10959 で表される機能を必要するか否か。「機能」に関する情報は、上記
10960 \begin_inset Flex Code
10961 status collapsed
10962
10963 \begin_layout Plain Layout
10964 Provides
10965 \end_layout
10966
10967 \end_inset
10968
10969 の説明(
10970 \begin_inset CommandInset ref
10971 LatexCommand pageref
10972 reference "des:FreeSpacing"
10973
10974 \end_inset
10975
10976 ページ)をご参照ください。
10977 \end_layout
10978
10979 \begin_layout Description
10980 \begin_inset Flex Code
10981 status collapsed
10982
10983 \begin_layout Plain Layout
10984 RightMargin
10985 \end_layout
10986
10987 \end_inset
10988
10989  [
10990 \begin_inset Flex Code
10991 status collapsed
10992
10993 \begin_layout Plain Layout
10994 文字列=""
10995 \end_layout
10996
10997 \end_inset
10998
10999
11000 \begin_inset Flex Code
11001 status collapsed
11002
11003 \begin_layout Plain Layout
11004 LeftMargin
11005 \end_layout
11006
11007 \end_inset
11008
11009 に同様。
11010 \end_layout
11011
11012 \begin_layout Description
11013 \begin_inset Flex Code
11014 status collapsed
11015
11016 \begin_layout Plain Layout
11017 Spacing
11018 \end_layout
11019
11020 \end_inset
11021
11022  [
11023 \begin_inset Flex Code
11024 status collapsed
11025
11026 \begin_layout Plain Layout
11027
11028 \emph on
11029 single
11030 \emph default
11031 , onehalf, double, other
11032 \end_layout
11033
11034 \end_inset
11035
11036  
11037 \emph on
11038
11039 \emph default
11040 ] これはレイアウト中の既定の行間をどうすべきか定義するものです。引数の
11041 \begin_inset Flex Code
11042 status collapsed
11043
11044 \begin_layout Plain Layout
11045 single
11046 \end_layout
11047
11048 \end_inset
11049
11050
11051 \begin_inset Flex Code
11052 status collapsed
11053
11054 \begin_layout Plain Layout
11055 onehalf
11056 \end_layout
11057
11058 \end_inset
11059
11060
11061 \begin_inset Flex Code
11062 status collapsed
11063
11064 \begin_layout Plain Layout
11065 double
11066 \end_layout
11067
11068 \end_inset
11069
11070 は、それぞれ乗数1・1.25・1.667に対応します。引数
11071 \begin_inset Flex Code
11072 status collapsed
11073
11074 \begin_layout Plain Layout
11075 other
11076 \end_layout
11077
11078 \end_inset
11079
11080 を指定した場合には、実際の乗数値も引数として指定しなくてはなりません。他のパラメータと違って
11081 \begin_inset Flex Code
11082 status collapsed
11083
11084 \begin_layout Plain Layout
11085 Spacing
11086 \end_layout
11087
11088 \end_inset
11089
11090 は、
11091 \begin_inset Flex Code
11092 status collapsed
11093
11094 \begin_layout Plain Layout
11095 setspace.sty
11096 \end_layout
11097
11098 \end_inset
11099
11100 パッケージを使用した、限定的なLaTeXコードを生成することを意味することにご注意ください。
11101 \end_layout
11102
11103 \begin_layout Description
11104 \begin_inset Flex Code
11105 status collapsed
11106
11107 \begin_layout Plain Layout
11108 Spellcheck
11109 \end_layout
11110
11111 \end_inset
11112
11113  [
11114 \begin_inset Flex Code
11115 status collapsed
11116
11117 \begin_layout Plain Layout
11118 0
11119 \end_layout
11120
11121 \end_inset
11122
11123 ,
11124 \begin_inset Flex Code
11125 status collapsed
11126
11127 \begin_layout Plain Layout
11128 1
11129 \end_layout
11130
11131 \end_inset
11132
11133 ] この様式の段落をスペルチェックするか否か。既定値は真です。
11134 \end_layout
11135
11136 \begin_layout Description
11137 \begin_inset Flex Code
11138 status collapsed
11139
11140 \begin_layout Plain Layout
11141 TextFont
11142 \end_layout
11143
11144 \end_inset
11145
11146  本文に使うフォント。第
11147 \begin_inset CommandInset ref
11148 LatexCommand ref
11149 reference "sub:フォント指定"
11150
11151 \end_inset
11152
11153 節参照。
11154 \end_layout
11155
11156 \begin_layout Description
11157 \begin_inset Flex Code
11158 status collapsed
11159
11160 \begin_layout Plain Layout
11161 TocLevel
11162 \end_layout
11163
11164 \end_inset
11165
11166  [
11167 \begin_inset Flex Code
11168 status collapsed
11169
11170 \begin_layout Plain Layout
11171 整数型
11172 \end_layout
11173
11174 \end_inset
11175
11176 ] 目次中でのこの様式の階層。これは、節見出しの自動連番に使用されます。
11177 \end_layout
11178
11179 \begin_layout Description
11180 \begin_inset Flex Code
11181 status collapsed
11182
11183 \begin_layout Plain Layout
11184 TopSep
11185 \end_layout
11186
11187 \end_inset
11188
11189  [
11190 \begin_inset Flex Code
11191 status collapsed
11192
11193 \begin_layout Plain Layout
11194 浮動小数点型=0
11195 \end_layout
11196
11197 \end_inset
11198
11199 ] このレイアウトを持つ一連の段落群の最初の段落と、その前の段落の間の垂直余白。前の段落が別のレイアウトを持っていれば、余白は単純に追加されるのではなく、それら
11200 の最大値がとられます。
11201 \end_layout
11202
11203 \begin_layout Subsection
11204 \begin_inset CommandInset label
11205 LatexCommand label
11206 name "sub:段落様式の国際化"
11207
11208 \end_inset
11209
11210 段落様式の国際化
11211 \end_layout
11212
11213 \begin_layout Standard
11214 LyXは、長きにわたってレイアウト情報の国際化をサポートしてきましたが、第2.0版までは、これは操作画面にのみ適用されるものであって、たとえばPDF出力には適用さ
11215 れませんでした。たとえば、フランスの著者が、「Theorem 1」の代わりに「
11216 \lang french
11217 Théorème
11218 \lang japanese
11219  1」としたければ、醜いハックに頼るしかありませんでした。Georg Baumのおかげで、これは解消されました。
11220 \end_layout
11221
11222 \begin_layout Standard
11223 もし
11224 \begin_inset Flex MenuItem
11225 status collapsed
11226
11227 \begin_layout Plain Layout
11228 Style
11229 \end_layout
11230
11231 \end_inset
11232
11233 が、組版文書に出力される文字列を定義するのであれば、非英語文書や複数言語文書をサポートするために、
11234 \begin_inset Flex MenuItem
11235 status collapsed
11236
11237 \begin_layout Plain Layout
11238 LangPreamble
11239 \end_layout
11240
11241 \end_inset
11242
11243
11244 \begin_inset Flex MenuItem
11245 status collapsed
11246
11247 \begin_layout Plain Layout
11248 BabelPreamble
11249 \end_layout
11250
11251 \end_inset
11252
11253 を使用することができます。以下の抜粋(
11254 \begin_inset Flex MenuItem
11255 status collapsed
11256
11257 \begin_layout Plain Layout
11258 theorems-ams.inc
11259 \end_layout
11260
11261 \end_inset
11262
11263 より)は、これがどう動作するかを示すものです。
11264 \end_layout
11265
11266 \begin_layout LyX-Code
11267 Preamble
11268 \end_layout
11269
11270 \begin_deeper
11271 \begin_layout LyX-Code
11272   
11273 \backslash
11274 theoremstyle{remark}
11275 \end_layout
11276
11277 \begin_layout LyX-Code
11278   
11279 \backslash
11280 newtheorem{claim}[thm]{
11281 \backslash
11282 protect
11283 \backslash
11284 claimname}
11285 \end_layout
11286
11287 \begin_layout LyX-Code
11288 EndPreamble
11289 \end_layout
11290
11291 \begin_layout LyX-Code
11292 LangPreamble
11293 \end_layout
11294
11295 \begin_layout LyX-Code
11296   
11297 \backslash
11298 providecommand{
11299 \backslash
11300 claimname}{_(Claim)}
11301 \end_layout
11302
11303 \begin_layout LyX-Code
11304 EndLangPreamble
11305 \end_layout
11306
11307 \begin_layout LyX-Code
11308 BabelPreamble
11309 \end_layout
11310
11311 \begin_layout LyX-Code
11312     
11313 \backslash
11314 addto
11315 \backslash
11316 captions$$lang{
11317 \backslash
11318 renewcommand{
11319 \backslash
11320 claimname}{_(Claim)}}
11321 \end_layout
11322
11323 \begin_layout LyX-Code
11324 EndBabelPreamble
11325 \end_layout
11326
11327 \end_deeper
11328 \begin_layout Standard
11329 原則として、
11330 \begin_inset Flex MenuItem
11331 status collapsed
11332
11333 \begin_layout Plain Layout
11334 LangPreamble
11335 \end_layout
11336
11337 \end_inset
11338
11339
11340 \begin_inset Flex MenuItem
11341 status collapsed
11342
11343 \begin_layout Plain Layout
11344 BabelPreamble
11345 \end_layout
11346
11347 \end_inset
11348
11349 タグ内には、有効なLaTeXコードはすべて用いることができますが、実際においては、ここで典型的に示したような形になるでしょう。組版文字列が正しく翻訳されるための
11350 鍵となるのは、LaTeXコマンド
11351 \begin_inset Flex Code
11352 status collapsed
11353
11354 \begin_layout Plain Layout
11355
11356 \backslash
11357 claimname
11358 \end_layout
11359
11360 \end_inset
11361
11362 とその
11363 \begin_inset Flex Code
11364 status collapsed
11365
11366 \begin_layout Plain Layout
11367
11368 \backslash
11369 newtheorem
11370 \end_layout
11371
11372 \end_inset
11373
11374 中での用い方です。
11375 \end_layout
11376
11377 \begin_layout Standard
11378 \begin_inset Flex Code
11379 status collapsed
11380
11381 \begin_layout Plain Layout
11382 LangPreamble
11383 \end_layout
11384
11385 \end_inset
11386
11387 タグは、文書全体の言語に基づいた国際化を提供します。タグの内容は、
11388 \begin_inset Flex Code
11389 status collapsed
11390
11391 \begin_layout Plain Layout
11392 Preamble
11393 \end_layout
11394
11395 \end_inset
11396
11397 タグと同様、プリアンブルに置かれるのですが、これを特別なものにしているのは、「関数」
11398 \begin_inset Flex Code
11399 status collapsed
11400
11401 \begin_layout Plain Layout
11402 _()
11403 \end_layout
11404
11405 \end_inset
11406
11407 が使用されていることです。これは、LyXがLaTeX出力を生成する際、その引数を文書言語に翻訳したもので置き換えられます。
11408 \end_layout
11409
11410 \begin_layout Standard
11411 \begin_inset Flex Code
11412 status collapsed
11413
11414 \begin_layout Plain Layout
11415 BabelPreamble
11416 \end_layout
11417
11418 \end_inset
11419
11420 タグは、複数言語文書をサポートし、
11421 \begin_inset Flex Code
11422 status collapsed
11423
11424 \begin_layout Plain Layout
11425 babel
11426 \end_layout
11427
11428 \end_inset
11429
11430 パッケージへのインタフェースを提供することを意図しているので、もう少し複雑です。その内容は、文書に現れる言語それぞれについて一度、プリアンブルに追加されます。こ
11431 の場合には、
11432 \begin_inset Flex Code
11433 status collapsed
11434
11435 \begin_layout Plain Layout
11436 _()
11437 \end_layout
11438
11439 \end_inset
11440
11441 の引数は、その当該言語への翻訳で置き換えられ、
11442 \begin_inset Flex Code
11443 status collapsed
11444
11445 \begin_layout Plain Layout
11446 $$lang
11447 \end_layout
11448
11449 \end_inset
11450
11451 は言語名(babelパッケージで使用されるもの)で置き換えられます。
11452 \end_layout
11453
11454 \begin_layout Standard
11455 したがって、フランス語のセクションを持つドイツ語文書では、以下のような内容がプリアンブルに追加されます
11456 \end_layout
11457
11458 \begin_layout LyX-Code
11459
11460 \backslash
11461 addto
11462 \backslash
11463 captionsfrench{
11464 \backslash
11465 renewcommand{
11466 \backslash
11467 claimname}{Affirmation}}   
11468 \backslash
11469 addto
11470 \backslash
11471 captionsngerman{
11472 \backslash
11473 renewcommand{
11474 \backslash
11475 claimname}{Behauptung}}   
11476 \backslash
11477 providecommand{
11478 \backslash
11479 claimname}{Behauptung}
11480 \end_layout
11481
11482 \begin_layout Standard
11483 それから、LaTeXと
11484 \begin_inset Flex Code
11485 status collapsed
11486
11487 \begin_layout Plain Layout
11488 babel
11489 \end_layout
11490
11491 \end_inset
11492
11493 は協力して、出力に正しい文字列を生成します。
11494 \end_layout
11495
11496 \begin_layout Standard
11497 ここで注意しなくてはならない重要な点は、翻訳は、操作画面の国際化に使われるのと同じ機構を通じて、LyX自身によって提供されるということです。つまり、ユーザー作成
11498 のレイアウトファイルに入力された文字列は、LyXの国際化ルーチンでは取り扱われないので、
11499 \begin_inset Flex MenuItem
11500 status collapsed
11501
11502 \begin_layout Plain Layout
11503 LangPreamble
11504 \end_layout
11505
11506 \end_inset
11507
11508
11509 \begin_inset Flex MenuItem
11510 status collapsed
11511
11512 \begin_layout Plain Layout
11513 BabelPreamble
11514 \end_layout
11515
11516 \end_inset
11517
11518 は、事実上、LyXとともに提供されるレイアウトファイルでのみ、使うことができるということを意味します。とはいえ、こういうことでありますので、将来的にLyXに同梱
11519 させようという意図を以て作成されたレイアウトは、適切なところではすべて、これらのタグを使用するべきです。
11520 \end_layout
11521
11522 \begin_layout Subsection
11523 フロート
11524 \begin_inset CommandInset label
11525 LatexCommand label
11526 name "sub:フロート"
11527
11528 \end_inset
11529
11530
11531 \end_layout
11532
11533 \begin_layout Standard
11534 LyX第1.3.0版以来、テキストクラス自体の中でフロート(
11535 \begin_inset Flex MenuItem
11536 status collapsed
11537
11538 \begin_layout Plain Layout
11539 figure
11540 \end_layout
11541
11542 \end_inset
11543
11544
11545 \begin_inset Flex MenuItem
11546 status collapsed
11547
11548 \begin_layout Plain Layout
11549 table
11550 \end_layout
11551
11552 \end_inset
11553
11554 ・\SpecialChar \ldots{}
11555 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
11556 \begin_inset Flex Code
11557 status collapsed
11558
11559 \begin_layout Plain Layout
11560 stdfloats.inc
11561 \end_layout
11562
11563 \end_inset
11564
11565 ファイルに含まれているので、作業中のレイアウトファイルに
11566 \end_layout
11567
11568 \begin_layout LyX-Code
11569 Input stdfloats.inc
11570 \end_layout
11571
11572 \begin_layout Standard
11573 と加えるだけで済むことも多いでしょう。LyXに同梱されているAGUクラスのように、それ以外のフロート型を提供するテキストクラスを実装するには、以下の情報が役立つ
11574 でありましょう。
11575 \end_layout
11576
11577 \begin_layout Description
11578 \begin_inset Flex Code
11579 status collapsed
11580
11581 \begin_layout Plain Layout
11582 Extension
11583 \end_layout
11584
11585 \end_inset
11586
11587  [
11588 \begin_inset Flex Code
11589 status collapsed
11590
11591 \begin_layout Plain Layout
11592 文字列
11593 \end_layout
11594
11595 \end_inset
11596
11597 =
11598 \begin_inset Quotes erd
11599 \end_inset
11600
11601
11602 \begin_inset Quotes erd
11603 \end_inset
11604
11605 ] 図などのリストを含む外部ファイルのファイル拡張子名。LaTeXがキャプションを書き込むファイルです。
11606 \end_layout
11607
11608 \begin_layout Description
11609 \begin_inset Flex Code
11610 status collapsed
11611
11612 \begin_layout Plain Layout
11613 GuiName
11614 \end_layout
11615
11616 \end_inset
11617
11618  [
11619 \begin_inset Flex Code
11620 status collapsed
11621
11622 \begin_layout Plain Layout
11623 文字列
11624 \end_layout
11625
11626 \end_inset
11627
11628 =
11629 \begin_inset Quotes erd
11630 \end_inset
11631
11632
11633 \begin_inset Quotes erd
11634 \end_inset
11635
11636 ] メニューとキャプションに使用される文字列。babelが使用される場合には、これは現在の言語に翻訳されます。
11637 \end_layout
11638
11639 \begin_layout Description
11640 \begin_inset Flex Code
11641 status collapsed
11642
11643 \begin_layout Plain Layout
11644 HTML*
11645 \end_layout
11646
11647 \end_inset
11648
11649  これらは、XHTML出力で使用されます。第
11650 \begin_inset CommandInset ref
11651 LatexCommand ref
11652 reference "sec:XHTML出力のタグ"
11653
11654 \end_inset
11655
11656 節をご覧ください。
11657 \end_layout
11658
11659 \begin_layout Description
11660 \begin_inset Flex Code
11661 status collapsed
11662
11663 \begin_layout Plain Layout
11664 ListCommand
11665 \end_layout
11666
11667 \end_inset
11668
11669  [
11670 \begin_inset Flex Code
11671 status collapsed
11672
11673 \begin_layout Plain Layout
11674 文字列
11675 \end_layout
11676
11677 \end_inset
11678
11679 =
11680 \begin_inset Quotes erd
11681 \end_inset
11682
11683
11684 \begin_inset Quotes erd
11685 \end_inset
11686
11687 ] この型のフロートの一覧を生成するのに使用するコマンド。頭部の「
11688 \backslash
11689 」は書きません。
11690 \begin_inset Flex Code
11691 status collapsed
11692
11693 \begin_layout Plain Layout
11694 NeedsFloatPkg
11695 \end_layout
11696
11697 \end_inset
11698
11699 が偽の時には、このコマンドを生成する標準的な方法はないので、これは
11700 \emph on
11701 必ず
11702 \emph default
11703 指定しなくてはなりません。
11704 \begin_inset Flex Code
11705 status collapsed
11706
11707 \begin_layout Plain Layout
11708 NeedsFloatPkg
11709 \end_layout
11710
11711 \end_inset
11712
11713 が真の時は、標準的な方法が存在するので、これは無視されます。
11714 \end_layout
11715
11716 \begin_layout Description
11717 \begin_inset Flex Code
11718 status collapsed
11719
11720 \begin_layout Plain Layout
11721 ListName
11722 \end_layout
11723
11724 \end_inset
11725
11726  [
11727 \begin_inset Flex Code
11728 status collapsed
11729
11730 \begin_layout Plain Layout
11731 文字列
11732 \end_layout
11733
11734 \end_inset
11735
11736 =
11737 \begin_inset Quotes erd
11738 \end_inset
11739
11740
11741 \begin_inset Quotes erd
11742 \end_inset
11743
11744 ] この種類のフロート一覧(図一覧・表一覧など)に使用される見出し。LyX中では、これは画面上のラベルとして使用されます。また、見出しとして使用するために、La
11745 TeXに渡され、XHTML出力でも見出しとして使用されます。これは、文書言語に翻訳されます。
11746 \end_layout
11747
11748 \begin_layout Description
11749 \begin_inset Flex Code
11750 status collapsed
11751
11752 \begin_layout Plain Layout
11753 NeedsFloatPkg
11754 \end_layout
11755
11756 \end_inset
11757
11758  [
11759 \begin_inset Flex Code
11760 status collapsed
11761
11762 \begin_layout Plain Layout
11763 0
11764 \end_layout
11765
11766 \end_inset
11767
11768 ,
11769 \begin_inset Flex Code
11770 status collapsed
11771
11772 \begin_layout Plain Layout
11773
11774 \emph on
11775 1
11776 \end_layout
11777
11778 \end_inset
11779
11780 ] フロートが文書クラス中に既に定義されているか、あるいは代わりに
11781 \begin_inset Flex Code
11782 status collapsed
11783
11784 \begin_layout Plain Layout
11785 float.sty
11786 \end_layout
11787
11788 \end_inset
11789
11790 を読み込んで、それが提供しているものを使用する必要があるかを示します。既定値は
11791 \begin_inset Flex Code
11792 status collapsed
11793
11794 \begin_layout Plain Layout
11795 1
11796 \end_layout
11797
11798 \end_inset
11799
11800 であり、
11801 \begin_inset Flex Code
11802 status collapsed
11803
11804 \begin_layout Plain Layout
11805 float.sty
11806 \end_layout
11807
11808 \end_inset
11809
11810 を使用します。LaTeX文書クラスでフロートが既に定義されているときには、
11811 \begin_inset Flex Code
11812 status collapsed
11813
11814 \begin_layout Plain Layout
11815 0
11816 \end_layout
11817
11818 \end_inset
11819
11820 に設定しなくてはなりません。
11821 \end_layout
11822
11823 \begin_layout Description
11824 \begin_inset Flex Code
11825 status collapsed
11826
11827 \begin_layout Plain Layout
11828 NumberWithin
11829 \end_layout
11830
11831 \end_inset
11832
11833  [
11834 \begin_inset Flex Code
11835 status collapsed
11836
11837 \begin_layout Plain Layout
11838 文字列
11839 \end_layout
11840
11841 \end_inset
11842
11843 =
11844 \begin_inset Quotes erd
11845 \end_inset
11846
11847
11848 \begin_inset Quotes erd
11849 \end_inset
11850
11851 ] この(非必須の)引数は、このクラスのフロートが文書中のある節単位ごとに番号を振り直されるべきかどうかを規定します。たとえば、引数に
11852 \begin_inset Flex Code
11853 status collapsed
11854
11855 \begin_layout Plain Layout
11856 chapter
11857 \end_layout
11858
11859 \end_inset
11860
11861 と指定されていれば、フロートは章ごとに番号が振り直されます。
11862 \end_layout
11863
11864 \begin_layout Description
11865 \begin_inset Flex Code
11866 status collapsed
11867
11868 \begin_layout Plain Layout
11869 Placement
11870 \end_layout
11871
11872 \end_inset
11873
11874  [
11875 \begin_inset Flex Code
11876 status collapsed
11877
11878 \begin_layout Plain Layout
11879 文字列
11880 \end_layout
11881
11882 \end_inset
11883
11884 =
11885 \begin_inset Quotes erd
11886 \end_inset
11887
11888
11889 \begin_inset Quotes erd
11890 \end_inset
11891
11892 ] このクラスのフロートの既定の配置法。文字列は、標準的なLaTeX表記に従い、
11893 \begin_inset Flex Code
11894 status collapsed
11895
11896 \begin_layout Plain Layout
11897 t
11898 \end_layout
11899
11900 \end_inset
11901
11902 ならば上部(top)、
11903 \begin_inset Flex Code
11904 status collapsed
11905
11906 \begin_layout Plain Layout
11907 b
11908 \end_layout
11909
11910 \end_inset
11911
11912 ならば下部(bottom)、
11913 \begin_inset Flex Code
11914 status collapsed
11915
11916 \begin_layout Plain Layout
11917 p
11918 \end_layout
11919
11920 \end_inset
11921
11922 ならばページ(page)、
11923 \begin_inset Flex Code
11924 status collapsed
11925
11926 \begin_layout Plain Layout
11927 h
11928 \end_layout
11929
11930 \end_inset
11931
11932 ならばここ(here)を表します
11933 \begin_inset Foot
11934 status collapsed
11935
11936 \begin_layout Plain Layout
11937 LaTeX同様、文字列中でのこれらの文字の順序は関係ありません。
11938 \end_layout
11939
11940 \end_inset
11941
11942 。これらの他に新しい型
11943 \begin_inset Flex Code
11944 status collapsed
11945
11946 \begin_layout Plain Layout
11947 H
11948 \end_layout
11949
11950 \end_inset
11951
11952 があり、これはフロートを「ここ」に置いていいけれども他の場所はだめ、というものなので、本当はフロートにあるものではありません。しかし、
11953 \begin_inset Flex Code
11954 status collapsed
11955
11956 \begin_layout Plain Layout
11957 H
11958 \end_layout
11959
11960 \end_inset
11961
11962 指定子は特別なものであり、その細かい実装上の理由で、組み込み以外のフロート型では使用することができません。これが何を意味するかおわかりにならない場合には、代わり
11963 に「
11964 \begin_inset Flex Code
11965 status collapsed
11966
11967 \begin_layout Plain Layout
11968 tbp
11969 \end_layout
11970
11971 \end_inset
11972
11973 」を指定してください。
11974 \end_layout
11975
11976 \begin_layout Description
11977 \begin_inset Flex Code
11978 status collapsed
11979
11980 \begin_layout Plain Layout
11981 RefPrefix
11982 \end_layout
11983
11984 \end_inset
11985
11986  [
11987 \begin_inset Flex Code
11988 status collapsed
11989
11990 \begin_layout Plain Layout
11991 文字列
11992 \end_layout
11993
11994 \end_inset
11995
11996 ] この型のフロートを参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。コピーした様式が設定した
11997 \begin_inset Flex Code
11998 status collapsed
11999
12000 \begin_layout Plain Layout
12001 RefPrefix
12002 \end_layout
12003
12004 \end_inset
12005
12006 は、特別な文字列「OFF」(すべて大文字)を使えば、いつでも削除することができます。
12007 \end_layout
12008
12009 \begin_layout Description
12010 \begin_inset Flex Code
12011 status collapsed
12012
12013 \begin_layout Plain Layout
12014 Style
12015 \end_layout
12016
12017 \end_inset
12018
12019  [
12020 \begin_inset Flex Code
12021 status collapsed
12022
12023 \begin_layout Plain Layout
12024 文字列
12025 \end_layout
12026
12027 \end_inset
12028
12029 =
12030 \begin_inset Quotes erd
12031 \end_inset
12032
12033
12034 \begin_inset Quotes erd
12035 \end_inset
12036
12037
12038 \begin_inset Flex Code
12039 status collapsed
12040
12041 \begin_layout Plain Layout
12042
12043 \backslash
12044 newfloat
12045 \end_layout
12046
12047 \end_inset
12048
12049 を使用してフロートを定義する際に使用される様式。
12050 \end_layout
12051
12052 \begin_layout Description
12053 \begin_inset Flex Code
12054 status collapsed
12055
12056 \begin_layout Plain Layout
12057 Type
12058 \end_layout
12059
12060 \end_inset
12061
12062  [
12063 \begin_inset Flex Code
12064 status collapsed
12065
12066 \begin_layout Plain Layout
12067 文字列
12068 \end_layout
12069
12070 \end_inset
12071
12072 =
12073 \begin_inset Quotes erd
12074 \end_inset
12075
12076
12077 \begin_inset Quotes erd
12078 \end_inset
12079
12080 ] プログラムやアルゴリズムのような、フロートの新しいクラス「型」。適切な
12081 \begin_inset Flex Code
12082 status collapsed
12083
12084 \begin_layout Plain Layout
12085
12086 \backslash
12087 newfloat
12088 \end_layout
12089
12090 \end_inset
12091
12092 の後で、
12093 \begin_inset Flex Code
12094 status collapsed
12095
12096 \begin_layout Plain Layout
12097
12098 \backslash
12099 begin{program}
12100 \end_layout
12101
12102 \end_inset
12103
12104
12105 \begin_inset Flex Code
12106 status collapsed
12107
12108 \begin_layout Plain Layout
12109
12110 \backslash
12111 end{algorithm*}
12112 \end_layout
12113
12114 \end_inset
12115
12116 といったコマンドが利用できます。
12117 \end_layout
12118
12119 \begin_layout Standard
12120 \begin_inset Flex Code
12121 status collapsed
12122
12123 \begin_layout Plain Layout
12124
12125 \emph on
12126 type
12127 \end_layout
12128
12129 \end_inset
12130
12131 型のフロートを定義すると、自動的に
12132 \emph on
12133 対応する
12134 \emph default
12135
12136 \begin_inset Flex Code
12137 status collapsed
12138
12139 \begin_layout Plain Layout
12140
12141 \emph on
12142 type
12143 \end_layout
12144
12145 \end_inset
12146
12147 名カウンタが定義されます。
12148 \end_layout
12149
12150 \begin_layout Subsection
12151 任意設定差込枠と差込枠レイアウト
12152 \begin_inset CommandInset label
12153 LatexCommand label
12154 name "sub:任意設定差込枠"
12155
12156 \end_inset
12157
12158
12159 \end_layout
12160
12161 \begin_layout Standard
12162 LyXは第1.4.0版から文字様式をサポートしています。第1.6.0版以降、これは任意設定差込枠と呼ばれています。
12163 \end_layout
12164
12165 \begin_layout Standard
12166 任意設定差込枠には次の3種類があります。
12167 \end_layout
12168
12169 \begin_layout Itemize
12170 文字様式(
12171 \begin_inset Flex Code
12172 status collapsed
12173
12174 \begin_layout Plain Layout
12175 CharStyle
12176 \end_layout
12177
12178 \end_inset
12179
12180 )。これは、
12181 \begin_inset Flex Code
12182 status collapsed
12183
12184 \begin_layout Plain Layout
12185
12186 \backslash
12187 noun
12188 \end_layout
12189
12190 \end_inset
12191
12192
12193 \begin_inset Flex Code
12194 status collapsed
12195
12196 \begin_layout Plain Layout
12197
12198 \backslash
12199 code
12200 \end_layout
12201
12202 \end_inset
12203
12204 などのLaTeXコマンドに対応した意味論的マークアップを定義するものです。
12205 \end_layout
12206
12207 \begin_layout Itemize
12208 ユーザ設定(
12209 \begin_inset Flex Code
12210 status collapsed
12211
12212 \begin_layout Plain Layout
12213 Custom
12214 \end_layout
12215
12216 \end_inset
12217
12218 )。これは、TeXコードや脚注などに似たユーザ設定の折りたたみ式差込枠を定義するのに使用することができます。わかりやすい例はendnote差込枠で、これは
12219 \begin_inset Flex Code
12220 status collapsed
12221
12222 \begin_layout Plain Layout
12223 endnote
12224 \end_layout
12225
12226 \end_inset
12227
12228 モジュール中で定義されています。
12229 \end_layout
12230
12231 \begin_layout Itemize
12232 XML要素(
12233 \begin_inset Flex Code
12234 status collapsed
12235
12236 \begin_layout Plain Layout
12237 Element
12238 \end_layout
12239
12240 \end_inset
12241
12242 )。DocBookクラスで使用するものです。
12243 \end_layout
12244
12245 \begin_layout Standard
12246 任意設定差込枠は、以下で説明する
12247 \begin_inset Flex Code
12248 status collapsed
12249
12250 \begin_layout Plain Layout
12251 InsetLayout
12252 \end_layout
12253
12254 \end_inset
12255
12256 タグを使用して定義されます。
12257 \end_layout
12258
12259 \begin_layout Standard
12260 \begin_inset Flex Code
12261 status collapsed
12262
12263 \begin_layout Plain Layout
12264 InsetLayout
12265 \end_layout
12266
12267 \end_inset
12268
12269 タグは、もう一つ別の機能も提供します。これを使えば、いろいろな種類の差込枠全体のレイアウトを設定するのに使用することができるのです。現在のところ、
12270 \begin_inset Flex Code
12271 status collapsed
12272
12273 \begin_layout Plain Layout
12274 InsetLayout
12275 \end_layout
12276
12277 \end_inset
12278
12279 は任意設定差込枠を定義することの他に、脚注・傍注・注釈差込枠・TeXコード(ERT)差込枠・派生枝・リスト・索引・ボックス・表・アルゴリズム・URL・オプション
12280 引数のレイアウトパラメータを設定するのに使用することができます。
12281 \end_layout
12282
12283 \begin_layout Standard
12284 \begin_inset Flex Code
12285 status collapsed
12286
12287 \begin_layout Plain Layout
12288 InsetLayout
12289 \end_layout
12290
12291 \end_inset
12292
12293 定義は以下の形の行では始まらなくてはなりません。
12294 \end_layout
12295
12296 \begin_layout LyX-Code
12297 InsetLayout <型>
12298 \end_layout
12299
12300 \begin_layout Standard
12301 ここで
12302 \begin_inset Flex Code
12303 status collapsed
12304
12305 \begin_layout Plain Layout
12306 <型>
12307 \end_layout
12308
12309 \end_inset
12310
12311 は、レイアウトを定義しようとしている差込枠を指し、以下の2つの場合がありえます。
12312 \end_layout
12313
12314 \begin_layout Enumerate
12315 既存の差込枠のレイアウトを変更する場合。この場合、
12316 \begin_inset Flex Code
12317 status collapsed
12318
12319 \begin_layout Plain Layout
12320 <型>
12321 \end_layout
12322
12323 \end_inset
12324
12325 は以下のいずれかになります:
12326 \begin_inset Flex Code
12327 status collapsed
12328
12329 \begin_layout Plain Layout
12330 Algorithm
12331 \end_layout
12332
12333 \end_inset
12334
12335
12336 \begin_inset Flex Code
12337 status collapsed
12338
12339 \begin_layout Plain Layout
12340 Branch
12341 \end_layout
12342
12343 \end_inset
12344
12345
12346 \begin_inset Flex Code
12347 status collapsed
12348
12349 \begin_layout Plain Layout
12350 Box
12351 \end_layout
12352
12353 \end_inset
12354
12355
12356 \begin_inset Flex Code
12357 status collapsed
12358
12359 \begin_layout Plain Layout
12360 Box:shaded
12361 \end_layout
12362
12363 \end_inset
12364
12365
12366 \begin_inset Flex Code
12367 status collapsed
12368
12369 \begin_layout Plain Layout
12370 ERT
12371 \end_layout
12372
12373 \end_inset
12374
12375
12376 \begin_inset Flex Code
12377 status collapsed
12378
12379 \begin_layout Plain Layout
12380 Figure
12381 \end_layout
12382
12383 \end_inset
12384
12385
12386 \begin_inset Flex Code
12387 status collapsed
12388
12389 \begin_layout Plain Layout
12390 Foot
12391 \end_layout
12392
12393 \end_inset
12394
12395
12396 \begin_inset Flex Code
12397 status collapsed
12398
12399 \begin_layout Plain Layout
12400 Index
12401 \end_layout
12402
12403 \end_inset
12404
12405
12406 \begin_inset Flex Code
12407 status collapsed
12408
12409 \begin_layout Plain Layout
12410 Info
12411 \end_layout
12412
12413 \end_inset
12414
12415
12416 \begin_inset Flex Code
12417 status collapsed
12418
12419 \begin_layout Plain Layout
12420 Info:menu
12421 \end_layout
12422
12423 \end_inset
12424
12425
12426 \begin_inset Flex Code
12427 status collapsed
12428
12429 \begin_layout Plain Layout
12430 Info:shortcut
12431 \end_layout
12432
12433 \end_inset
12434
12435
12436 \begin_inset Flex Code
12437 status collapsed
12438
12439 \begin_layout Plain Layout
12440 Info:shortcuts
12441 \end_layout
12442
12443 \end_inset
12444
12445
12446 \begin_inset Flex Code
12447 status collapsed
12448
12449 \begin_layout Plain Layout
12450 Listings
12451 \end_layout
12452
12453 \end_inset
12454
12455
12456 \begin_inset Flex Code
12457 status collapsed
12458
12459 \begin_layout Plain Layout
12460 Marginal
12461 \end_layout
12462
12463 \end_inset
12464
12465
12466 \begin_inset Flex Code
12467 status collapsed
12468
12469 \begin_layout Plain Layout
12470 Note:Comment
12471 \end_layout
12472
12473 \end_inset
12474
12475
12476 \begin_inset Flex Code
12477 status collapsed
12478
12479 \begin_layout Plain Layout
12480 Note:Note
12481 \end_layout
12482
12483 \end_inset
12484
12485
12486 \begin_inset Flex Code
12487 status collapsed
12488
12489 \begin_layout Plain Layout
12490 Note:GreyedOut
12491 \end_layout
12492
12493 \end_inset
12494
12495
12496 \begin_inset Flex Code
12497 status collapsed
12498
12499 \begin_layout Plain Layout
12500 OptArg
12501 \end_layout
12502
12503 \end_inset
12504
12505
12506 \begin_inset Flex Code
12507 status collapsed
12508
12509 \begin_layout Plain Layout
12510 Table
12511 \end_layout
12512
12513 \end_inset
12514
12515
12516 \begin_inset Flex Code
12517 status collapsed
12518
12519 \begin_layout Plain Layout
12520 URL
12521 \end_layout
12522
12523 \end_inset
12524
12525
12526 \end_layout
12527
12528 \begin_layout Enumerate
12529 任意設定差込枠のレイアウトを定義する場合。この場合には、
12530 \begin_inset Flex Code
12531 status collapsed
12532
12533 \begin_layout Plain Layout
12534 <型>
12535 \end_layout
12536
12537 \end_inset
12538
12539 は既存の差込枠で使用されていないもので有効な識別子であれば、何でも指定できます。任意設定差込枠の定義には、
12540 \begin_inset Flex Code
12541 status collapsed
12542
12543 \begin_layout Plain Layout
12544 LyXType
12545 \end_layout
12546
12547 \end_inset
12548
12549 項目も
12550 \emph on
12551 同時に
12552 \emph default
12553 含まれていて、これがどの型の差込枠なのかが宣言されている必要があります。
12554 \end_layout
12555
12556 \begin_layout Standard
12557 \begin_inset Flex Code
12558 status collapsed
12559
12560 \begin_layout Plain Layout
12561 InsetLayout
12562 \end_layout
12563
12564 \end_inset
12565
12566 定義には以下の項目を入れることができます。
12567 \end_layout
12568
12569 \begin_layout Description
12570 \begin_inset Flex Code
12571 status collapsed
12572
12573 \begin_layout Plain Layout
12574 BgColor
12575 \end_layout
12576
12577 \end_inset
12578
12579  差込枠の背景色。有効な色彩は
12580 \begin_inset Flex Code
12581 status collapsed
12582
12583 \begin_layout Plain Layout
12584 src/ColorCode.h
12585 \end_layout
12586
12587 \end_inset
12588
12589 で定義されています。
12590 \end_layout
12591
12592 \begin_layout Description
12593 \begin_inset Flex Code
12594 status collapsed
12595
12596 \begin_layout Plain Layout
12597 ContentAsLabel
12598 \end_layout
12599
12600 \end_inset
12601
12602  [
12603 \begin_inset Flex Code
12604 status collapsed
12605
12606 \begin_layout Plain Layout
12607
12608 \emph on
12609 0
12610 \end_layout
12611
12612 \end_inset
12613
12614 ,
12615 \begin_inset Flex Code
12616 status collapsed
12617
12618 \begin_layout Plain Layout
12619 1
12620 \end_layout
12621
12622 \end_inset
12623
12624 ] 差込枠を閉じた際、差込枠の内容をラベルとして使用するか否か。既定値は偽です。
12625 \end_layout
12626
12627 \begin_layout Description
12628 \begin_inset Flex Code
12629 status collapsed
12630
12631 \begin_layout Plain Layout
12632 CopyStyle
12633 \end_layout
12634
12635 \end_inset
12636
12637  段落様式と同様です(
12638 \begin_inset CommandInset ref
12639 LatexCommand ref
12640 reference "des:CopyStyle"
12641
12642 \end_inset
12643
12644 )ページ参照)。
12645 \end_layout
12646
12647 \begin_layout Description
12648 \begin_inset Flex Code
12649 status collapsed
12650
12651 \begin_layout Plain Layout
12652 CustomPars
12653 \end_layout
12654
12655 \end_inset
12656
12657  [
12658 \begin_inset Flex Code
12659 status collapsed
12660
12661 \begin_layout Plain Layout
12662
12663 \emph on
12664 0
12665 \end_layout
12666
12667 \end_inset
12668
12669 ,
12670 \begin_inset Flex Code
12671 status collapsed
12672
12673 \begin_layout Plain Layout
12674 1
12675 \end_layout
12676
12677 \end_inset
12678
12679 ] 段落を設定するのに、段落設定ダイアログをユーザが使えるかどうかを指定します。
12680 \end_layout
12681
12682 \begin_layout Description
12683 \begin_inset Flex Code
12684 status collapsed
12685
12686 \begin_layout Plain Layout
12687 Decoration
12688 \end_layout
12689
12690 \end_inset
12691
12692  差込枠の枠とボタンをレンダリングするのに使用する様式を指定するもので、
12693 \begin_inset Flex Code
12694 status collapsed
12695
12696 \begin_layout Plain Layout
12697 Classic
12698 \end_layout
12699
12700 \end_inset
12701
12702
12703 \begin_inset Flex Code
12704 status collapsed
12705
12706 \begin_layout Plain Layout
12707 Minimalistic
12708 \end_layout
12709
12710 \end_inset
12711
12712
12713 \begin_inset Flex Code
12714 status collapsed
12715
12716 \begin_layout Plain Layout
12717 Conglomerate
12718 \end_layout
12719
12720 \end_inset
12721
12722 のいずれかを指定することができます。脚注は通常
12723 \begin_inset Flex Code
12724 status collapsed
12725
12726 \begin_layout Plain Layout
12727 Classic
12728 \end_layout
12729
12730 \end_inset
12731
12732 を使用し、TeXコード差込枠は通常
12733 \begin_inset Flex Code
12734 status collapsed
12735
12736 \begin_layout Plain Layout
12737 Minimalistic
12738 \end_layout
12739
12740 \end_inset
12741
12742 、文字様式は
12743 \begin_inset Flex Code
12744 status collapsed
12745
12746 \begin_layout Plain Layout
12747 Conglomerate
12748 \end_layout
12749
12750 \end_inset
12751
12752 を使用します。
12753 \end_layout
12754
12755 \begin_layout Description
12756 \begin_inset Flex Code
12757 status collapsed
12758
12759 \begin_layout Plain Layout
12760 End
12761 \end_layout
12762
12763 \end_inset
12764
12765  InsetLayout宣言を閉じるのに必要です。
12766 \end_layout
12767
12768 \begin_layout Description
12769 \begin_inset Flex Code
12770 status collapsed
12771
12772 \begin_layout Plain Layout
12773 Font
12774 \end_layout
12775
12776 \end_inset
12777
12778  本文本体とラベル
12779 \emph on
12780 両方に
12781 \emph default
12782 使用されるフォントです。第
12783 \begin_inset CommandInset ref
12784 LatexCommand ref
12785 reference "sub:フォント指定"
12786
12787 \end_inset
12788
12789 節を参照。このフォントを定義すると自動的に
12790 \begin_inset Flex Code
12791 status collapsed
12792
12793 \begin_layout Plain Layout
12794 LabelFont
12795 \end_layout
12796
12797 \end_inset
12798
12799 も同じ値に定義されるので、これらを別々の値にしたいときは、これを先に定義してから後に
12800 \begin_inset Flex Code
12801 status collapsed
12802
12803 \begin_layout Plain Layout
12804 LabelFont
12805 \end_layout
12806
12807 \end_inset
12808
12809 を定義しなくてはならないことに注意してください。
12810 \end_layout
12811
12812 \begin_layout Description
12813 \begin_inset Flex Code
12814 status collapsed
12815
12816 \begin_layout Plain Layout
12817 ForceLTR
12818 \end_layout
12819
12820 \end_inset
12821
12822  たとえばTeXコードやURLで「latex」言語が「左から右」(ラテン式)出力になるように強制します。うまく機能しません。
12823 \end_layout
12824
12825 \begin_layout Description
12826 \begin_inset Flex Code
12827 status collapsed
12828
12829 \begin_layout Plain Layout
12830 ForcePlain
12831 \end_layout
12832
12833 \end_inset
12834
12835  [
12836 \begin_inset Flex Code
12837 status collapsed
12838
12839 \begin_layout Plain Layout
12840
12841 \emph on
12842 0
12843 \end_layout
12844
12845 \end_inset
12846
12847 ,
12848 \begin_inset Flex Code
12849 status collapsed
12850
12851 \begin_layout Plain Layout
12852 1
12853 \end_layout
12854
12855 \end_inset
12856
12857 ] PlainLayoutを使用するべきなのか、それともユーザが差込枠で使用されている段落様式を変更できるのかを指定します。既定値は偽です。
12858 \end_layout
12859
12860 \begin_layout Description
12861 \begin_inset Flex Code
12862 status collapsed
12863
12864 \begin_layout Plain Layout
12865 FreeSpacing
12866 \end_layout
12867
12868 \end_inset
12869
12870  段落様式と同様です(
12871 \begin_inset CommandInset ref
12872 LatexCommand pageref
12873 reference "des:FreeSpacing"
12874
12875 \end_inset
12876
12877 ページ参照)。既定値は偽です。
12878 \end_layout
12879
12880 \begin_layout Description
12881 \begin_inset Flex Code
12882 status collapsed
12883
12884 \begin_layout Plain Layout
12885 HTML*
12886 \end_layout
12887
12888 \end_inset
12889
12890  これらは、XHTML出力で使用されます。第
12891 \begin_inset CommandInset ref
12892 LatexCommand ref
12893 reference "sec:XHTML出力のタグ"
12894
12895 \end_inset
12896
12897 節をご覧ください。
12898 \end_layout
12899
12900 \begin_layout Description
12901 \begin_inset Flex Code
12902 status collapsed
12903
12904 \begin_layout Plain Layout
12905 InToc
12906 \end_layout
12907
12908 \end_inset
12909
12910  [
12911 \begin_inset Flex Code
12912 status collapsed
12913
12914 \begin_layout Plain Layout
12915
12916 \emph on
12917 0
12918 \end_layout
12919
12920 \end_inset
12921
12922 ,
12923 \begin_inset Flex Code
12924 status collapsed
12925
12926 \begin_layout Plain Layout
12927 1
12928 \end_layout
12929
12930 \end_inset
12931
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 KeepEmpty
12942 \end_layout
12943
12944 \end_inset
12945
12946  段落様式と同様です(
12947 \begin_inset CommandInset ref
12948 LatexCommand pageref
12949 reference "des:KeepEmpty"
12950
12951 \end_inset
12952
12953 ページ参照)。既定値は偽です。
12954 \end_layout
12955
12956 \begin_layout Description
12957 \begin_inset Flex Code
12958 status collapsed
12959
12960 \begin_layout Plain Layout
12961 LabelFont
12962 \end_layout
12963
12964 \end_inset
12965
12966  ラベルに使用されるフォント。第
12967 \begin_inset CommandInset ref
12968 LatexCommand ref
12969 reference "sub:フォント指定"
12970
12971 \end_inset
12972
12973 節を参照。非効率を回避するため、この定義は
12974 \begin_inset Flex Code
12975 status collapsed
12976
12977 \begin_layout Plain Layout
12978 Font
12979 \end_layout
12980
12981 \end_inset
12982
12983 の前には決して現れてはなりません。
12984 \end_layout
12985
12986 \begin_layout Description
12987 \begin_inset Flex Code
12988 status collapsed
12989
12990 \begin_layout Plain Layout
12991 LabelString
12992 \end_layout
12993
12994 \end_inset
12995
12996  ボタンなどに差込枠のラベルとして表示されるもの。差込枠型によっては(TeXコードや派生枝)、ラベルが動的に変更されます。
12997 \end_layout
12998
12999 \begin_layout Description
13000 \begin_inset Flex Code
13001 status collapsed
13002
13003 \begin_layout Plain Layout
13004 LatexName
13005 \end_layout
13006
13007 \end_inset
13008
13009  対応するLaTeX関連物の名称。環境名ないしはコマンド名。
13010 \end_layout
13011
13012 \begin_layout Description
13013 \begin_inset Flex Code
13014 status collapsed
13015
13016 \begin_layout Plain Layout
13017 LatexParam
13018 \end_layout
13019
13020 \end_inset
13021
13022  対応する
13023 \begin_inset Flex Code
13024 status collapsed
13025
13026 \begin_layout Plain Layout
13027 LatexName
13028 \end_layout
13029
13030 \end_inset
13031
13032 関連物の非必須パラメータ。
13033 \begin_inset Flex Code
13034 status collapsed
13035
13036 \begin_layout Plain Layout
13037 []
13038 \end_layout
13039
13040 \end_inset
13041
13042 のような括弧対を含む。このパラメータはLyX内部から変更することはできません。
13043 \end_layout
13044
13045 \begin_layout Description
13046 \begin_inset Flex Code
13047 status collapsed
13048
13049 \begin_layout Plain Layout
13050 LatexType
13051 \end_layout
13052
13053 \end_inset
13054
13055  段落様式と同様です(
13056 \begin_inset CommandInset ref
13057 LatexCommand pageref
13058 reference "des:LatexType"
13059
13060 \end_inset
13061
13062 ページ参照)。
13063 \end_layout
13064
13065 \begin_layout Description
13066 \begin_inset Flex Code
13067 status collapsed
13068
13069 \begin_layout Plain Layout
13070 LyxType
13071 \end_layout
13072
13073 \end_inset
13074
13075  
13076 \begin_inset Flex Code
13077 status collapsed
13078
13079 \begin_layout Plain Layout
13080 charstyle
13081 \end_layout
13082
13083 \end_inset
13084
13085
13086 \begin_inset Flex Code
13087 status collapsed
13088
13089 \begin_layout Plain Layout
13090 custom
13091 \end_layout
13092
13093 \end_inset
13094
13095
13096 \begin_inset Flex Code
13097 status collapsed
13098
13099 \begin_layout Plain Layout
13100 element
13101 \end_layout
13102
13103 \end_inset
13104
13105
13106 \begin_inset Flex Code
13107 status collapsed
13108
13109 \begin_layout Plain Layout
13110 end
13111 \end_layout
13112
13113 \end_inset
13114
13115 (charstyleの定義の終わりなどを示すダミー定義)の各値を取ることができます。この項目は、任意設定差込枠に必須であり、かつ任意設定差込枠でしか意味を持ちま
13116 せん。この項目は、就中、差込枠がどのメニューに表示されるかを決定します。
13117 \begin_inset Flex Code
13118 status collapsed
13119
13120 \begin_layout Plain Layout
13121 LyxType
13122 \end_layout
13123
13124 \end_inset
13125
13126
13127 \begin_inset Flex Code
13128 status collapsed
13129
13130 \begin_layout Plain Layout
13131 charstyle
13132 \end_layout
13133
13134 \end_inset
13135
13136 に設定すると、
13137 \begin_inset Flex Code
13138 status collapsed
13139
13140 \begin_layout Plain Layout
13141 MultiPar
13142 \end_layout
13143
13144 \end_inset
13145
13146 が偽に設定されます。文字様式差込枠で
13147 \begin_inset Flex Code
13148 status collapsed
13149
13150 \begin_layout Plain Layout
13151 MultiPar
13152 \end_layout
13153
13154 \end_inset
13155
13156 を真にしたい時には、
13157 \begin_inset Flex Code
13158 status collapsed
13159
13160 \begin_layout Plain Layout
13161 LyxType
13162 \end_layout
13163
13164 \end_inset
13165
13166 を設定した
13167 \emph on
13168 後に
13169 \emph default
13170 設定すれば、真に設定することができます。
13171 \end_layout
13172
13173 \begin_layout Description
13174 \begin_inset Flex Code
13175 status collapsed
13176
13177 \begin_layout Plain Layout
13178 MultiPar
13179 \end_layout
13180
13181 \end_inset
13182
13183  [
13184 \begin_inset Flex Code
13185 status collapsed
13186
13187 \begin_layout Plain Layout
13188
13189 \emph on
13190 0
13191 \end_layout
13192
13193 \end_inset
13194
13195 ,
13196 \begin_inset Flex Code
13197 status collapsed
13198
13199 \begin_layout Plain Layout
13200 1
13201 \end_layout
13202
13203 \end_inset
13204
13205 ] この差込枠中に複数の段落を入れることができるかどうか。これは同時に、
13206 \begin_inset Flex Code
13207 status collapsed
13208
13209 \begin_layout Plain Layout
13210 CustomPars
13211 \end_layout
13212
13213 \end_inset
13214
13215 を同じ値に設定し、
13216 \begin_inset Flex Code
13217 status collapsed
13218
13219 \begin_layout Plain Layout
13220 ForcePlain
13221 \end_layout
13222
13223 \end_inset
13224
13225 を逆の値に設定します。これらは、
13226 \begin_inset Flex Code
13227 status collapsed
13228
13229 \begin_layout Plain Layout
13230 MultiPar
13231 \end_layout
13232
13233 \end_inset
13234
13235
13236 \emph on
13237 後に
13238 \emph default
13239 指定されれば、他の値に指定し直すことができます。既定値は真です。
13240 \end_layout
13241
13242 \begin_layout Description
13243 \begin_inset Flex Code
13244 status collapsed
13245
13246 \begin_layout Plain Layout
13247 NeedProtect
13248 \end_layout
13249
13250 \end_inset
13251
13252  [
13253 \begin_inset Flex Code
13254 status collapsed
13255
13256 \begin_layout Plain Layout
13257
13258 \emph on
13259 0
13260 \end_layout
13261
13262 \end_inset
13263
13264 ,
13265 \begin_inset Flex Code
13266 status collapsed
13267
13268 \begin_layout Plain Layout
13269 1
13270 \end_layout
13271
13272 \end_inset
13273
13274 ] 本レイアウト中で脆弱なコマンドを
13275 \begin_inset Flex Code
13276 status collapsed
13277
13278 \begin_layout Plain Layout
13279
13280 \backslash
13281 protect
13282 \end_layout
13283
13284 \end_inset
13285
13286 するか否か(註:当該コマンド自身をprotectするかどうかでは
13287 \emph on
13288 ありません
13289 \emph default
13290 )。既定値は偽です。
13291 \end_layout
13292
13293 \begin_layout Description
13294 \begin_inset Flex Code
13295 status collapsed
13296
13297 \begin_layout Plain Layout
13298 ParbreakIsNewline
13299 \end_layout
13300
13301 \end_inset
13302
13303  [
13304 \begin_inset Flex Code
13305 status collapsed
13306
13307 \begin_layout Plain Layout
13308
13309 \emph on
13310 0
13311 \end_layout
13312
13313 \end_inset
13314
13315 ,
13316 \begin_inset Flex Code
13317 status collapsed
13318
13319 \begin_layout Plain Layout
13320 1
13321 \end_layout
13322
13323 \end_inset
13324
13325 ] 段落様式と同様です(
13326 \begin_inset CommandInset ref
13327 LatexCommand ref
13328 reference "des:PathThru"
13329
13330 \end_inset
13331
13332 ページ参照)。既定値は偽です。
13333 \end_layout
13334
13335 \begin_layout Description
13336 \begin_inset Flex Code
13337 status collapsed
13338
13339 \begin_layout Plain Layout
13340 PassThru
13341 \end_layout
13342
13343 \end_inset
13344
13345  [
13346 \begin_inset Flex Code
13347 status collapsed
13348
13349 \begin_layout Plain Layout
13350
13351 \emph on
13352 0
13353 \end_layout
13354
13355 \end_inset
13356
13357 ,
13358 \begin_inset Flex Code
13359 status collapsed
13360
13361 \begin_layout Plain Layout
13362 1
13363 \end_layout
13364
13365 \end_inset
13366
13367 ] 段落様式と同様です(
13368 \begin_inset CommandInset ref
13369 LatexCommand ref
13370 reference "des:PathThru"
13371
13372 \end_inset
13373
13374 ページ参照)。既定値は偽です。
13375 \end_layout
13376
13377 \begin_layout Description
13378 \begin_inset Flex Code
13379 status collapsed
13380
13381 \begin_layout Plain Layout
13382 Preamble
13383 \end_layout
13384
13385 \end_inset
13386
13387  段落様式と同様です(
13388 \begin_inset CommandInset ref
13389 LatexCommand pageref
13390 reference "des:Preamble"
13391
13392 \end_inset
13393
13394 ページ参照)。
13395 \end_layout
13396
13397 \begin_layout Description
13398 \begin_inset Flex Code
13399 status collapsed
13400
13401 \begin_layout Plain Layout
13402 RefPrefix
13403 \end_layout
13404
13405 \end_inset
13406
13407  [
13408 \begin_inset Flex Code
13409 status collapsed
13410
13411 \begin_layout Plain Layout
13412 文字列
13413 \end_layout
13414
13415 \end_inset
13416
13417 ] この型の差込枠を参照する際、生成されるラベルに使用する前置句。これによって、整形参照を使用することができるようになります。
13418 \end_layout
13419
13420 \begin_layout Description
13421 \begin_inset Flex Code
13422 status collapsed
13423
13424 \begin_layout Plain Layout
13425 Requires
13426 \end_layout
13427
13428 \end_inset
13429
13430  [
13431 \begin_inset Flex Code
13432 status collapsed
13433
13434 \begin_layout Plain Layout
13435 文字列
13436 \end_layout
13437
13438 \end_inset
13439
13440 ] 段落様式と同様です(
13441 \begin_inset CommandInset ref
13442 LatexCommand pageref
13443 reference "des:Requires"
13444
13445 \end_inset
13446
13447 ページ参照)。
13448 \end_layout
13449
13450 \begin_layout Description
13451 \begin_inset Flex Code
13452 status collapsed
13453
13454 \begin_layout Plain Layout
13455 ResetFont
13456 \end_layout
13457
13458 \end_inset
13459
13460  [
13461 \begin_inset Flex Code
13462 status collapsed
13463
13464 \begin_layout Plain Layout
13465 0
13466 \end_layout
13467
13468 \end_inset
13469
13470
13471 \begin_inset Flex Code
13472 status collapsed
13473
13474 \begin_layout Plain Layout
13475
13476 \emph on
13477 1
13478 \end_layout
13479
13480 \end_inset
13481
13482 ] この差込枠が周囲の環境と同じフォントを用いるか、独自のフォントを用いるか。既定値は真、すなわち独自のフォントを用います。
13483 \end_layout
13484
13485 \begin_layout Description
13486 \begin_inset Flex Code
13487 status collapsed
13488
13489 \begin_layout Plain Layout
13490 Spellcheck
13491 \end_layout
13492
13493 \end_inset
13494
13495  [
13496 \begin_inset Flex Code
13497 status collapsed
13498
13499 \begin_layout Plain Layout
13500 0
13501 \end_layout
13502
13503 \end_inset
13504
13505 ,
13506 \begin_inset Flex Code
13507 status collapsed
13508
13509 \begin_layout Plain Layout
13510
13511 \emph on
13512 1
13513 \end_layout
13514
13515 \end_inset
13516
13517 ] この差込枠の内容をスペルチェックするか否か。既定値は真です。
13518 \end_layout
13519
13520 \begin_layout Subsection
13521 カウンタ
13522 \begin_inset CommandInset label
13523 LatexCommand label
13524 name "sub:カウンタ"
13525
13526 \end_inset
13527
13528
13529 \end_layout
13530
13531 \begin_layout Standard
13532 LyX第1.3.0版以来、テキストクラス自体の中でカウンタ(
13533 \begin_inset Flex MenuItem
13534 status collapsed
13535
13536 \begin_layout Plain Layout
13537 chapter
13538 \end_layout
13539
13540 \end_inset
13541
13542
13543 \begin_inset Flex MenuItem
13544 status collapsed
13545
13546 \begin_layout Plain Layout
13547 figure
13548 \end_layout
13549
13550 \end_inset
13551
13552 ・\SpecialChar \ldots{}
13553 )を定義することが可能となり、かつ必要となりました。標準的なフロートは
13554 \begin_inset Flex Code
13555 status collapsed
13556
13557 \begin_layout Plain Layout
13558 stdcounters.inc
13559 \end_layout
13560
13561 \end_inset
13562
13563 ファイルに含まれているので、作業中のレイアウトファイルに
13564 \end_layout
13565
13566 \begin_layout LyX-Code
13567 Input stdcounters.inc
13568 \end_layout
13569
13570 \begin_layout Standard
13571 と加えるだけで済むことも多いでしょう。しかし自製カウンタを定義したければ、そうすることもできます。カウンタ宣言は、
13572 \end_layout
13573
13574 \begin_layout LyX-Code
13575 Counter 名称
13576 \end_layout
13577
13578 \begin_layout Standard
13579 で始まらなくてはなりません。ここで「
13580 \begin_inset Flex Code
13581 status collapsed
13582
13583 \begin_layout Plain Layout
13584 名称
13585 \end_layout
13586
13587 \end_inset
13588
13589 」はカウンタ名で置き換えます。また、宣言は「
13590 \begin_inset Flex Code
13591 status collapsed
13592
13593 \begin_layout Plain Layout
13594 End
13595 \end_layout
13596
13597 \end_inset
13598
13599 」で終わらなくてはなりません。以下のパラメータを使用することができます。
13600 \end_layout
13601
13602 \begin_layout Description
13603 \begin_inset Flex Code
13604 status collapsed
13605
13606 \begin_layout Plain Layout
13607 LabelString [文字列=""]
13608 \end_layout
13609
13610 \end_inset
13611
13612  定義されていると、ここで指定した文字列がカウンタの表示の仕方を定義します。この値を指定すると、
13613 \begin_inset Flex Code
13614 status collapsed
13615
13616 \begin_layout Plain Layout
13617 LabelStringAppendix
13618 \end_layout
13619
13620 \end_inset
13621
13622 も同じ値に設定されます。文字列中では、以下の構成要素を使用することができます。
13623 \end_layout
13624
13625 \begin_deeper
13626 \begin_layout Itemize
13627 \begin_inset Flex Code
13628 status collapsed
13629
13630 \begin_layout Plain Layout
13631
13632 \backslash
13633 thecounter
13634 \end_layout
13635
13636 \end_inset
13637
13638 は、カウンタ
13639 \begin_inset Flex Code
13640 status collapsed
13641
13642 \begin_layout Plain Layout
13643 counter
13644 \end_layout
13645
13646 \end_inset
13647
13648
13649 \begin_inset Flex Code
13650 status collapsed
13651
13652 \begin_layout Plain Layout
13653 LabelString
13654 \end_layout
13655
13656 \end_inset
13657
13658 (または
13659 \begin_inset Newline linebreak
13660 \end_inset
13661
13662
13663 \begin_inset Flex Code
13664 status collapsed
13665
13666 \begin_layout Plain Layout
13667 LabelStringAppendix
13668 \end_layout
13669
13670 \end_inset
13671
13672 )を展開したもので置き換えられます。 
13673 \end_layout
13674
13675 \begin_layout Itemize
13676 カウンタ値は、LaTeX型マクロ
13677 \begin_inset Flex Code
13678 status collapsed
13679
13680 \begin_layout Plain Layout
13681
13682 \backslash
13683
13684 \emph on
13685 numbertype
13686 \emph default
13687 {
13688 \emph on
13689 カウンタ
13690 \emph default
13691 }
13692 \end_layout
13693
13694 \end_inset
13695
13696 を用いて表現することができます。ここで
13697 \begin_inset Flex Code
13698 status collapsed
13699
13700 \begin_layout Plain Layout
13701
13702 \emph on
13703 numbertype
13704 \end_layout
13705
13706 \end_inset
13707
13708 は以下のいずれかです
13709 \begin_inset Foot
13710 status collapsed
13711
13712 \begin_layout Plain Layout
13713 実は、事態はもう少し複雑です。以下に説明されているもの以外の
13714 \emph on
13715 numbertype
13716 \emph default
13717 は何であれ、アラビア数字を生成します。これが将来変更されたとしても不思議ではないでしょう。
13718 \end_layout
13719
13720 \end_inset
13721
13722
13723 \begin_inset Flex Code
13724 status collapsed
13725
13726 \begin_layout Plain Layout
13727 arabic
13728 \end_layout
13729
13730 \end_inset
13731
13732 :1, 2, 3,\SpecialChar \ldots{}
13733
13734 \begin_inset Flex Code
13735 status collapsed
13736
13737 \begin_layout Plain Layout
13738 alph
13739 \end_layout
13740
13741 \end_inset
13742
13743 :a, b, c, \SpecialChar \ldots{}
13744 (小文字);
13745 \begin_inset Flex Code
13746 status collapsed
13747
13748 \begin_layout Plain Layout
13749 Alph
13750 \end_layout
13751
13752 \end_inset
13753
13754 :A, B, C, \SpecialChar \ldots{}
13755 (大文字);
13756 \begin_inset Flex Code
13757 status collapsed
13758
13759 \begin_layout Plain Layout
13760 roman
13761 \end_layout
13762
13763 \end_inset
13764
13765 :i, ii, iii, \SpecialChar \ldots{}
13766 (小文字ローマ数字);
13767 \begin_inset Flex Code
13768 status collapsed
13769
13770 \begin_layout Plain Layout
13771 Roman
13772 \end_layout
13773
13774 \end_inset
13775
13776 :I, II, III\SpecialChar \ldots{}
13777 (大文字ローマ数字);
13778 \begin_inset Flex Code
13779 status collapsed
13780
13781 \begin_layout Plain Layout
13782 hebrew
13783 \end_layout
13784
13785 \end_inset
13786
13787 (ヘブライ語数字)。
13788 \end_layout
13789
13790 \end_deeper
13791 \begin_layout Standard
13792 LabelStringが定義されていないときは、既定値は以下のように組み立てられます。このカウンタに親カウンタ
13793 \begin_inset Flex Code
13794 status collapsed
13795
13796 \begin_layout Plain Layout
13797 master
13798 \end_layout
13799
13800 \end_inset
13801
13802
13803 \begin_inset Flex Code
13804 status collapsed
13805
13806 \begin_layout Plain Layout
13807 Within
13808 \end_layout
13809
13810 \end_inset
13811
13812 で定義)があるときには、文字列
13813 \begin_inset Newline linebreak
13814 \end_inset
13815
13816
13817 \begin_inset Flex Code
13818 status collapsed
13819
13820 \begin_layout Plain Layout
13821
13822 \backslash
13823 themaster.
13824 \backslash
13825 arabic{カウンタ}
13826 \end_layout
13827
13828 \end_inset
13829
13830 が使用されます。それ以外の場合は、
13831 \begin_inset Flex Code
13832 status collapsed
13833
13834 \begin_layout Plain Layout
13835
13836 \backslash
13837 arabic{カウンタ}
13838 \end_layout
13839
13840 \end_inset
13841
13842 が使用されます。
13843 \end_layout
13844
13845 \begin_layout Description
13846 \begin_inset Flex Code
13847 status collapsed
13848
13849 \begin_layout Plain Layout
13850 LabelStringAppendix
13851 \end_layout
13852
13853 \end_inset
13854
13855  [
13856 \begin_inset Flex Code
13857 status collapsed
13858
13859 \begin_layout Plain Layout
13860 文字列
13861 \end_layout
13862
13863 \end_inset
13864
13865 =""] 
13866 \begin_inset Flex Code
13867 status collapsed
13868
13869 \begin_layout Plain Layout
13870 LabelString
13871 \end_layout
13872
13873 \end_inset
13874
13875 と同様ですが、付録で使用するためのものです。
13876 \end_layout
13877
13878 \begin_layout Description
13879 \begin_inset Flex Code
13880 status collapsed
13881
13882 \begin_layout Plain Layout
13883 PrettyFormat
13884 \end_layout
13885
13886 \end_inset
13887
13888  [
13889 \begin_inset Flex Code
13890 status collapsed
13891
13892 \begin_layout Plain Layout
13893 文字列
13894 \end_layout
13895
13896 \end_inset
13897
13898 =
13899 \begin_inset Quotes erd
13900 \end_inset
13901
13902
13903 \begin_inset Quotes erd
13904 \end_inset
13905
13906 ] このカウンタの整形参照で使用する書式。たとえば、節番号への参照を「Section 2.4」のように表示させたい場合には、文字列に「##」を含めます。これは、カ
13907 ウンタ番号で置換されます。したがって、節の場合には「Section ##」のようにします。
13908 \end_layout
13909
13910 \begin_layout Description
13911 \begin_inset Flex Code
13912 status collapsed
13913
13914 \begin_layout Plain Layout
13915 Within
13916 \end_layout
13917
13918 \end_inset
13919
13920  [
13921 \begin_inset Flex Code
13922 status collapsed
13923
13924 \begin_layout Plain Layout
13925 文字列
13926 \end_layout
13927
13928 \end_inset
13929
13930 =
13931 \begin_inset Quotes erd
13932 \end_inset
13933
13934
13935 \begin_inset Quotes erd
13936 \end_inset
13937
13938 ] これを別のカウンタ名に設定すると、現在のカウンタは、別のカウンタが増加する毎にリセットされます。たとえば、
13939 \begin_inset Flex Code
13940 status collapsed
13941
13942 \begin_layout Plain Layout
13943 subsection
13944 \end_layout
13945
13946 \end_inset
13947
13948
13949 \begin_inset Flex Code
13950 status collapsed
13951
13952 \begin_layout Plain Layout
13953 section
13954 \end_layout
13955
13956 \end_inset
13957
13958 毎に番号がリセットされます。
13959 \end_layout
13960
13961 \begin_layout Subsection
13962 フォント指定
13963 \begin_inset CommandInset label
13964 LatexCommand label
13965 name "sub:フォント指定"
13966
13967 \end_inset
13968
13969
13970 \end_layout
13971
13972 \begin_layout Standard
13973 フォント指定は、以下のような形を取ります。
13974 \end_layout
13975
13976 \begin_layout LyX-Code
13977 Font 
13978 \family roman
13979 \emph on
13980 または
13981 \family default
13982 \emph default
13983  LabelFont
13984 \end_layout
13985
13986 \begin_layout LyX-Code
13987  ...
13988 \end_layout
13989
13990 \begin_layout LyX-Code
13991 EndFont
13992 \end_layout
13993
13994 \begin_layout Standard
13995 以下のコマンドを使用することができます。
13996 \end_layout
13997
13998 \begin_layout Description
13999 \begin_inset Flex Code
14000 status collapsed
14001
14002 \begin_layout Plain Layout
14003 Color
14004 \end_layout
14005
14006 \end_inset
14007
14008  [
14009 \begin_inset Flex Code
14010 status collapsed
14011
14012 \begin_layout Plain Layout
14013
14014 \emph on
14015 none
14016 \end_layout
14017
14018 \end_inset
14019
14020
14021 \begin_inset Flex Code
14022 status collapsed
14023
14024 \begin_layout Plain Layout
14025 black
14026 \end_layout
14027
14028 \end_inset
14029
14030
14031 \begin_inset Flex Code
14032 status collapsed
14033
14034 \begin_layout Plain Layout
14035 white
14036 \end_layout
14037
14038 \end_inset
14039
14040
14041 \begin_inset Flex Code
14042 status collapsed
14043
14044 \begin_layout Plain Layout
14045 red
14046 \end_layout
14047
14048 \end_inset
14049
14050
14051 \begin_inset Flex Code
14052 status collapsed
14053
14054 \begin_layout Plain Layout
14055 green
14056 \end_layout
14057
14058 \end_inset
14059
14060
14061 \begin_inset Flex Code
14062 status collapsed
14063
14064 \begin_layout Plain Layout
14065 blue
14066 \end_layout
14067
14068 \end_inset
14069
14070
14071 \begin_inset Flex Code
14072 status collapsed
14073
14074 \begin_layout Plain Layout
14075 cyan
14076 \end_layout
14077
14078 \end_inset
14079
14080
14081 \begin_inset Flex Code
14082 status collapsed
14083
14084 \begin_layout Plain Layout
14085 magenta
14086 \end_layout
14087
14088 \end_inset
14089
14090
14091 \begin_inset Flex Code
14092 status collapsed
14093
14094 \begin_layout Plain Layout
14095 yellow
14096 \end_layout
14097
14098 \end_inset
14099
14100 ]
14101 \end_layout
14102
14103 \begin_layout Description
14104 \begin_inset Flex Code
14105 status collapsed
14106
14107 \begin_layout Plain Layout
14108 Family
14109 \end_layout
14110
14111 \end_inset
14112
14113  [
14114 \emph on
14115
14116 \begin_inset Flex Code
14117 status collapsed
14118
14119 \begin_layout Plain Layout
14120 Roman
14121 \end_layout
14122
14123 \end_inset
14124
14125
14126 \emph default
14127
14128 \begin_inset Flex Code
14129 status collapsed
14130
14131 \begin_layout Plain Layout
14132 Sans
14133 \end_layout
14134
14135 \end_inset
14136
14137
14138 \begin_inset Flex Code
14139 status collapsed
14140
14141 \begin_layout Plain Layout
14142 Typewriter
14143 \end_layout
14144
14145 \end_inset
14146
14147
14148 \end_layout
14149
14150 \begin_layout Description
14151 \begin_inset Flex Code
14152 status collapsed
14153
14154 \begin_layout Plain Layout
14155 Misc
14156 \end_layout
14157
14158 \end_inset
14159
14160  [
14161 \begin_inset Flex Code
14162 status collapsed
14163
14164 \begin_layout Plain Layout
14165 文字列
14166 \end_layout
14167
14168 \end_inset
14169
14170 ] 有効な引数は、
14171 \begin_inset Flex Code
14172 status collapsed
14173
14174 \begin_layout Plain Layout
14175 emph
14176 \end_layout
14177
14178 \end_inset
14179
14180
14181 \begin_inset Flex Code
14182 status collapsed
14183
14184 \begin_layout Plain Layout
14185 noun
14186 \end_layout
14187
14188 \end_inset
14189
14190
14191 \begin_inset Flex Code
14192 status collapsed
14193
14194 \begin_layout Plain Layout
14195 underbar
14196 \end_layout
14197
14198 \end_inset
14199
14200
14201 \begin_inset Flex Code
14202 status collapsed
14203
14204 \begin_layout Plain Layout
14205 no_emph
14206 \end_layout
14207
14208 \end_inset
14209
14210
14211 \begin_inset Flex Code
14212 status collapsed
14213
14214 \begin_layout Plain Layout
14215 no_noun
14216 \end_layout
14217
14218 \end_inset
14219
14220
14221 \begin_inset Flex Code
14222 status collapsed
14223
14224 \begin_layout Plain Layout
14225 no_bar
14226 \end_layout
14227
14228 \end_inset
14229
14230 です。それぞれ、対応する属性を有効にしたり無効にしたりします。
14231 \begin_inset Newline newline
14232 \end_inset
14233
14234 たとえば、
14235 \begin_inset Flex Code
14236 status collapsed
14237
14238 \begin_layout Plain Layout
14239 emph
14240 \end_layout
14241
14242 \end_inset
14243
14244 は強調を有効にし、
14245 \begin_inset Flex Code
14246 status collapsed
14247
14248 \begin_layout Plain Layout
14249 no_emph
14250 \end_layout
14251
14252 \end_inset
14253
14254 はそれを無効にします。もし後者がわかりにくければ、現在のコンテクストのフォント設定は、一般的に周囲のコンテクストから継承していることを思い出してください。ですか
14255
14256 \begin_inset Flex Code
14257 status collapsed
14258
14259 \begin_layout Plain Layout
14260 no_emph
14261 \end_layout
14262
14263 \end_inset
14264
14265 は、たとえば定理環境で、何をせずとも有効となっている強調を無効にするのです。
14266 \end_layout
14267
14268 \begin_layout Description
14269 \begin_inset Flex Code
14270 status collapsed
14271
14272 \begin_layout Plain Layout
14273 Series
14274 \end_layout
14275
14276 \end_inset
14277
14278  [
14279 \emph on
14280
14281 \begin_inset Flex Code
14282 status collapsed
14283
14284 \begin_layout Plain Layout
14285 Medium
14286 \end_layout
14287
14288 \end_inset
14289
14290
14291 \emph default
14292
14293 \begin_inset Flex Code
14294 status collapsed
14295
14296 \begin_layout Plain Layout
14297 Bold
14298 \end_layout
14299
14300 \end_inset
14301
14302
14303 \end_layout
14304
14305 \begin_layout Description
14306 \begin_inset Flex Code
14307 status collapsed
14308
14309 \begin_layout Plain Layout
14310 Shape
14311 \end_layout
14312
14313 \end_inset
14314
14315  [
14316 \emph on
14317
14318 \begin_inset Flex Code
14319 status collapsed
14320
14321 \begin_layout Plain Layout
14322 Up
14323 \end_layout
14324
14325 \end_inset
14326
14327
14328 \emph default
14329
14330 \begin_inset Flex Code
14331 status collapsed
14332
14333 \begin_layout Plain Layout
14334 Italic
14335 \end_layout
14336
14337 \end_inset
14338
14339
14340 \begin_inset Flex Code
14341 status collapsed
14342
14343 \begin_layout Plain Layout
14344 SmallCaps
14345 \end_layout
14346
14347 \end_inset
14348
14349
14350 \begin_inset Flex Code
14351 status collapsed
14352
14353 \begin_layout Plain Layout
14354 Slanted
14355 \end_layout
14356
14357 \end_inset
14358
14359
14360 \end_layout
14361
14362 \begin_layout Description
14363 \begin_inset Flex Code
14364 status collapsed
14365
14366 \begin_layout Plain Layout
14367 Size
14368 \end_layout
14369
14370 \end_inset
14371
14372  [
14373 \begin_inset Flex Code
14374 status collapsed
14375
14376 \begin_layout Plain Layout
14377 tiny
14378 \end_layout
14379
14380 \end_inset
14381
14382
14383 \begin_inset Flex Code
14384 status collapsed
14385
14386 \begin_layout Plain Layout
14387 small
14388 \end_layout
14389
14390 \end_inset
14391
14392
14393 \begin_inset Flex Code
14394 status collapsed
14395
14396 \begin_layout Plain Layout
14397
14398 \emph on
14399 normal
14400 \end_layout
14401
14402 \end_inset
14403
14404
14405 \begin_inset Flex Code
14406 status collapsed
14407
14408 \begin_layout Plain Layout
14409 large
14410 \end_layout
14411
14412 \end_inset
14413
14414
14415 \begin_inset Flex Code
14416 status collapsed
14417
14418 \begin_layout Plain Layout
14419 larger
14420 \end_layout
14421
14422 \end_inset
14423
14424
14425 \begin_inset Flex Code
14426 status collapsed
14427
14428 \begin_layout Plain Layout
14429 largest
14430 \end_layout
14431
14432 \end_inset
14433
14434
14435 \begin_inset Flex Code
14436 status collapsed
14437
14438 \begin_layout Plain Layout
14439 huge
14440 \end_layout
14441
14442 \end_inset
14443
14444
14445 \begin_inset Flex Code
14446 status collapsed
14447
14448 \begin_layout Plain Layout
14449 giant
14450 \end_layout
14451
14452 \end_inset
14453
14454 ]
14455 \end_layout
14456
14457 \begin_layout Subsection
14458 \begin_inset CommandInset label
14459 LatexCommand label
14460 name "sub:引用書式指定"
14461
14462 \end_inset
14463
14464 引用書式指定
14465 \end_layout
14466
14467 \begin_layout Standard
14468 (引用ダイアログやツールチップなどの)LyX内部やXHTML出力において、書誌情報をどのように表示するべきかの叙述には、
14469 \begin_inset Flex Code
14470 status collapsed
14471
14472 \begin_layout Plain Layout
14473 CiteFormat
14474 \end_layout
14475
14476 \end_inset
14477
14478 ブロックが使用されています。このブロックは、以下のような形をしています。
14479 \end_layout
14480
14481 \begin_layout LyX-Code
14482 CiteFormat
14483 \end_layout
14484
14485 \begin_layout LyX-Code
14486  article ...
14487 \end_layout
14488
14489 \begin_layout LyX-Code
14490  book ...
14491 \end_layout
14492
14493 \begin_layout LyX-Code
14494 End
14495 \end_layout
14496
14497 \begin_layout Standard
14498 上記の各行は、それぞれarticleやbookに関連付けられた書誌情報をどのように表示するべきかを定義するものですが、このような定義は、BibTeXファイル中に
14499 存在しうる「項目型」すべてについて与えることができます。特定の定義が与えられなければ、LyXは、ソースコード中に定義されている既定書式を使用します。LyXは、い
14500 くつかの書式を
14501 \begin_inset Flex Code
14502 status collapsed
14503
14504 \begin_layout Plain Layout
14505 stdciteformats.inc
14506 \end_layout
14507
14508 \end_inset
14509
14510 ファイルで事前定義しており、これはほとんどのLyX文書クラスにインクルードされています。
14511 \end_layout
14512
14513 \begin_layout Standard
14514 この定義は、BibTeXキーをその値で置換できる機能を持った、簡単な言語を使用しています。キーは、
14515 \begin_inset Flex Code
14516 status collapsed
14517
14518 \begin_layout Plain Layout
14519 %author%
14520 \end_layout
14521
14522 \end_inset
14523
14524 のように
14525 \begin_inset Flex Code
14526 status collapsed
14527
14528 \begin_layout Plain Layout
14529 %
14530 \end_layout
14531
14532 \end_inset
14533
14534 記号でくくらなくてはなりません。したがって、簡単な定義は以下のようになります。
14535 \end_layout
14536
14537 \begin_layout LyX-Code
14538 misc %author%, 
14539 \begin_inset Quotes eld
14540 \end_inset
14541
14542 %title%
14543 \begin_inset Quotes erd
14544 \end_inset
14545
14546
14547 \end_layout
14548
14549 \begin_layout Standard
14550 これは、「著者名・コンマ・引用に囲まれたタイトル・終止符」を出力します。
14551 \end_layout
14552
14553 \begin_layout Standard
14554 もちろん、キーが存在するときのみ、キーを出力したい時があるはずです。このようなときには
14555 \begin_inset Flex Code
14556 status collapsed
14557
14558 \begin_layout Plain Layout
14559 {%volume%[[vol.
14560 \begin_inset space ~
14561 \end_inset
14562
14563 %volume%]]}
14564 \end_layout
14565
14566 \end_inset
14567
14568 のように、条件付きの構成を使用することができます。これは、
14569 \begin_inset Flex Code
14570 status collapsed
14571
14572 \begin_layout Plain Layout
14573 volume
14574 \end_layout
14575
14576 \end_inset
14577
14578 が存在するならば,「vol.
14579 \begin_inset space ~
14580 \end_inset
14581
14582 」とvolumeキーを出力するという意味です。また、
14583 \begin_inset Flex Code
14584 status collapsed
14585
14586 \begin_layout Plain Layout
14587 {%author%[[%author%]][[%editor%, ed.]]}
14588 \end_layout
14589
14590 \end_inset
14591
14592 のように、条件の中にelse節を含めることも可能です。ここでは、もし
14593 \begin_inset Flex Code
14594 status collapsed
14595
14596 \begin_layout Plain Layout
14597 author
14598 \end_layout
14599
14600 \end_inset
14601
14602 キーが存在するならば出力され、そうでなければeditorキーと「,
14603 \begin_inset space ~
14604 \end_inset
14605
14606 ed.」が出力されます。ここでもキーは、
14607 \begin_inset Flex Code
14608 status collapsed
14609
14610 \begin_layout Plain Layout
14611 %
14612 \end_layout
14613
14614 \end_inset
14615
14616 記号でくくられていることに注意してください。条件全体は、波括弧で囲まれています。if節およびelse節は、「
14617 \begin_inset Flex Code
14618 status collapsed
14619
14620 \begin_layout Plain Layout
14621 [[
14622 \end_layout
14623
14624 \end_inset
14625
14626 」と「
14627 \begin_inset Flex Code
14628 status collapsed
14629
14630 \begin_layout Plain Layout
14631 ]]
14632 \end_layout
14633
14634 \end_inset
14635
14636 」の二重角括弧で囲まれています。これらすべてのあいだには,空白は入ってはなりません。
14637 \end_layout
14638
14639 \begin_layout Standard
14640 もう一つ、定義中で使用することのできる文法として、
14641 \begin_inset Flex Code
14642 status collapsed
14643
14644 \begin_layout Plain Layout
14645 {!<i>!}
14646 \end_layout
14647
14648 \end_inset
14649
14650 という形をしたものがあります。これは、「リッチテキスト」を生成するときに使われる整形情報を定義するものです。当然のことながら、平文を書き出すときには、HTMLタ
14651 グを出力させたくはありませんから、HTMLタグは「
14652 \begin_inset Flex Code
14653 status collapsed
14654
14655 \begin_layout Plain Layout
14656 {!
14657 \end_layout
14658
14659 \end_inset
14660
14661 」と「
14662 \begin_inset Flex Code
14663 status collapsed
14664
14665 \begin_layout Plain Layout
14666 !}
14667 \end_layout
14668
14669 \end_inset
14670
14671 」でくるんでやらなくてはならないのです。
14672 \end_layout
14673
14674 \begin_layout Standard
14675 \begin_inset Flex Code
14676 status collapsed
14677
14678 \begin_layout Plain Layout
14679 CiteFormat
14680 \end_layout
14681
14682 \end_inset
14683
14684 ブロックでは、他に2つの特殊な定義が可能です。一つめの例としては、
14685 \end_layout
14686
14687 \begin_layout LyX-Code
14688 !quotetitle 
14689 \begin_inset Quotes eld
14690 \end_inset
14691
14692 %title%
14693 \begin_inset Quotes erd
14694 \end_inset
14695
14696
14697 \end_layout
14698
14699 \begin_layout Standard
14700 といった例が挙げられます。これは、短縮形ないしはマクロであり、
14701 \begin_inset Flex Code
14702 status collapsed
14703
14704 \begin_layout Plain Layout
14705 %!quotetitle%
14706 \end_layout
14707
14708 \end_inset
14709
14710 のように、これがキーであるかのように扱って使用することができます。LyXは、
14711 \begin_inset Flex Code
14712 status collapsed
14713
14714 \begin_layout Plain Layout
14715 %!quotetitle%
14716 \end_layout
14717
14718 \end_inset
14719
14720 を、そこで定義されているものを扱う場合と同じように取り扱います。ですから、明白な警告を敢えてさせて頂くと、
14721 \end_layout
14722
14723 \begin_layout LyX-Code
14724 !funfun %funfun%
14725 \end_layout
14726
14727 \begin_layout Standard
14728 のようなことはしないでください。LyXは、無限ループに陥るようなことはありませんが、諦めるまでに長いループに入るかもしれません。
14729 \end_layout
14730
14731 \begin_layout Standard
14732 特殊な定義の二つめは、
14733 \end_layout
14734
14735 \begin_layout LyX-Code
14736 _pptext pp.
14737 \end_layout
14738
14739 \begin_layout Standard
14740 のようなものです。これは、文字列の翻訳可能な部分を定義するもので、書誌情報中の関連部分が翻訳されるようにすることができます。
14741 \begin_inset Flex Code
14742 status collapsed
14743
14744 \begin_layout Plain Layout
14745 %_pptext%
14746 \end_layout
14747
14748 \end_inset
14749
14750 のように、これをキーとして扱って、定義の中に入れることもできます。これらのうちいくつかは、
14751 \begin_inset Flex Code
14752 status collapsed
14753
14754 \begin_layout Plain Layout
14755 stdciteformats.inc
14756 \end_layout
14757
14758 \end_inset
14759
14760 中に事前定義されています。これは、上記で述べたような意味でのマクロではないことに注意してください。
14761 \end_layout
14762
14763 \begin_layout Standard
14764 以下は、これらの機能を全て使った例です。
14765 \end_layout
14766
14767 \begin_layout LyX-Code
14768 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
14769 \end_layout
14770
14771 \begin_layout Standard
14772 これは、
14773 \begin_inset Flex Code
14774 status collapsed
14775
14776 \begin_layout Plain Layout
14777 author
14778 \end_layout
14779
14780 \end_inset
14781
14782 キーが定義されているならば、著者とコンマを出力し、
14783 \begin_inset Flex Code
14784 status collapsed
14785
14786 \begin_layout Plain Layout
14787 author
14788 \end_layout
14789
14790 \end_inset
14791
14792 キーが定義されておらず、
14793 \begin_inset Flex Code
14794 status collapsed
14795
14796 \begin_layout Plain Layout
14797 editor
14798 \end_layout
14799
14800 \end_inset
14801
14802 キーが定義されているならば、編集者名の後に
14803 \begin_inset Flex Code
14804 status collapsed
14805
14806 \begin_layout Plain Layout
14807 _edtext
14808 \end_layout
14809
14810 \end_inset
14811
14812 ないしはその翻訳(既定では「ed.」)を出力します。これは実は
14813 \begin_inset Flex Code
14814 status collapsed
14815
14816 \begin_layout Plain Layout
14817 stdciteformats.inc
14818 \end_layout
14819
14820 \end_inset
14821
14822 の中で定義されていますので、このファイルをまず読みこめば、ご自身の定義ないしは再定義の中で使用することができます。
14823 \end_layout
14824
14825 \begin_layout Section
14826 \begin_inset CommandInset label
14827 LatexCommand label
14828 name "sec:XHTML出力のタグ"
14829
14830 \end_inset
14831
14832 XHTML出力のタグ
14833 \end_layout
14834
14835 \begin_layout Standard
14836 LaTeXやDocBookと同様、LyXのXHTML出力の書式も、レイアウト情報によって制御することができます。一般的に、LyXは適切な既定値を提供し、前述した
14837 ように、他のレイアウトタグに基づいて、既定のCSSスタイルの構成まで行ないます。たとえば、章見出しを適切に整形するためのCSSを書き出すために、LyXは、章様式
14838
14839 \begin_inset Flex Code
14840 status collapsed
14841
14842 \begin_layout Plain Layout
14843 Font
14844 \end_layout
14845
14846 \end_inset
14847
14848 宣言で提供されている情報を利用しようと試みます。
14849 \end_layout
14850
14851 \begin_layout Standard
14852 したがって、多くの場合、使いたい環境や任意設定差込枠などのために満足のいくXHTML出力を得るために、まったく何もしなくてよいことになるでしょう。しかしながら、
14853 これが必要になる場合もあるので、LyXは、生成されるXHTMLやCSSをカスタマイズするために使用できるレイアウトタグを、たくさん提供しています。
14854 \end_layout
14855
14856 \begin_layout Standard
14857 様式宣言や差込枠宣言の外で使用することができるタグに、
14858 \begin_inset Flex Code
14859 status collapsed
14860
14861 \begin_layout Plain Layout
14862 HTMLPreamble
14863 \end_layout
14864
14865 \end_inset
14866
14867
14868 \begin_inset Flex Code
14869 status collapsed
14870
14871 \begin_layout Plain Layout
14872 AddToHTMLPreamble
14873 \end_layout
14874
14875 \end_inset
14876
14877 の2つがあることに注意してください。これらの詳細については、第
14878 \begin_inset CommandInset ref
14879 LatexCommand ref
14880 reference "sub:汎用テキストクラスパラメータ"
14881
14882 \end_inset
14883
14884 節をご覧ください。
14885 \end_layout
14886
14887 \begin_layout Subsection
14888 \begin_inset CommandInset label
14889 LatexCommand label
14890 name "sub:段落様式-XHTML"
14891
14892 \end_inset
14893
14894 段落様式
14895 \end_layout
14896
14897 \begin_layout Standard
14898 LyXが段落のために出力するXHTMLの種類は、通常の段落を取り扱っているのか、コマンドを取り扱っているのか、あるいは環境を取り扱っているのかに依存し、これは対
14899 応する
14900 \begin_inset Flex Code
14901 status collapsed
14902
14903 \begin_layout Plain Layout
14904 LaTeXType
14905 \end_layout
14906
14907 \end_inset
14908
14909 タグの内容によって決定されます。
14910 \end_layout
14911
14912 \begin_layout Standard
14913 コマンドや通常の段落の場合には、XHTML出力は以下の形になります。
14914 \end_layout
14915
14916 \begin_layout LyX-Code
14917 <tag attr=
14918 \begin_inset Quotes erd
14919 \end_inset
14920
14921 value
14922 \begin_inset Quotes erd
14923 \end_inset
14924
14925 >
14926 \end_layout
14927
14928 \begin_layout LyX-Code
14929 <labeltag attr=
14930 \begin_inset Quotes erd
14931 \end_inset
14932
14933 value
14934 \begin_inset Quotes erd
14935 \end_inset
14936
14937 >ラベル</labeltag>
14938 \end_layout
14939
14940 \begin_layout LyX-Code
14941 段落の内容
14942 \end_layout
14943
14944 \begin_layout LyX-Code
14945 </tag>
14946 \end_layout
14947
14948 \begin_layout Standard
14949 もちろん、段落にラベルがなければ、ラベルタグは省略することができます。
14950 \end_layout
14951
14952 \begin_layout Standard
14953 環境のうち、リストの変種でないものに関しては、XHTMLは以下の形を取ります。
14954 \end_layout
14955
14956 \begin_layout LyX-Code
14957 <tag attr=
14958 \begin_inset Quotes erd
14959 \end_inset
14960
14961 value
14962 \begin_inset Quotes erd
14963 \end_inset
14964
14965 >
14966 \end_layout
14967
14968 \begin_layout LyX-Code
14969 <itemtag attr=
14970 \begin_inset Quotes erd
14971 \end_inset
14972
14973 value
14974 \begin_inset Quotes erd
14975 \end_inset
14976
14977 ><labeltag attr=
14978 \begin_inset Quotes erd
14979 \end_inset
14980
14981 value
14982 \begin_inset Quotes erd
14983 \end_inset
14984
14985 >環境ラベル</labeltag>最初の段落。
14986 \end_layout
14987
14988 \begin_layout LyX-Code
14989 </itemtag>
14990 \end_layout
14991
14992 \begin_layout LyX-Code
14993 <itemtag>二つめの段落。</itemtag>
14994 \end_layout
14995
14996 \begin_layout LyX-Code
14997 </tag>
14998 \end_layout
14999
15000 \begin_layout Standard
15001 ラベルは、たとえば定理の場合にそうであるように、最初の段落にだけ出力されることに注意してください。
15002 \end_layout
15003
15004 \begin_layout Standard
15005 リストに関しては、次のような形になります。
15006 \end_layout
15007
15008 \begin_layout LyX-Code
15009 <tag attr=
15010 \begin_inset Quotes erd
15011 \end_inset
15012
15013 value
15014 \begin_inset Quotes erd
15015 \end_inset
15016
15017 >
15018 \end_layout
15019
15020 \begin_layout LyX-Code
15021 <itemtag attr=
15022 \begin_inset Quotes erd
15023 \end_inset
15024
15025 value
15026 \begin_inset Quotes erd
15027 \end_inset
15028
15029 ><labeltag attr=
15030 \begin_inset Quotes erd
15031 \end_inset
15032
15033 value
15034 \begin_inset Quotes erd
15035 \end_inset
15036
15037 >リストのラベル</labeltag>最初の項目。</itemtag>
15038 \end_layout
15039
15040 \begin_layout LyX-Code
15041 <itemtag attr=
15042 \begin_inset Quotes erd
15043 \end_inset
15044
15045 value
15046 \begin_inset Quotes erd
15047 \end_inset
15048
15049 ><labeltag attr=
15050 \begin_inset Quotes erd
15051 \end_inset
15052
15053 value
15054 \begin_inset Quotes erd
15055 \end_inset
15056
15057 >リストのラベル</labeltag>二つめの項目。</itemtag>
15058 \end_layout
15059
15060 \begin_layout LyX-Code
15061 </tag>
15062 \end_layout
15063
15064 \begin_layout LyX-Code
15065
15066 \end_layout
15067
15068 \begin_layout LyX-Code
15069 <tag attr=
15070 \begin_inset Quotes erd
15071 \end_inset
15072
15073 value
15074 \begin_inset Quotes erd
15075 \end_inset
15076
15077 >
15078 \end_layout
15079
15080 \begin_layout LyX-Code
15081 <labeltag attr=
15082 \begin_inset Quotes erd
15083 \end_inset
15084
15085 value
15086 \begin_inset Quotes erd
15087 \end_inset
15088
15089 >リストのラベル</labeltag><itemtag attr=
15090 \begin_inset Quotes erd
15091 \end_inset
15092
15093 value
15094 \begin_inset Quotes erd
15095 \end_inset
15096
15097 >最初の項目。</itemtag>
15098 \end_layout
15099
15100 \begin_layout LyX-Code
15101 <labeltag attr=
15102 \begin_inset Quotes erd
15103 \end_inset
15104
15105 value
15106 \begin_inset Quotes erd
15107 \end_inset
15108
15109 >リストのラベル</labeltag><itemtag attr=
15110 \begin_inset Quotes erd
15111 \end_inset
15112
15113 value
15114 \begin_inset Quotes erd
15115 \end_inset
15116
15117 >二つめの項目</itemtag>
15118 \end_layout
15119
15120 \begin_layout LyX-Code
15121 </tag>
15122 \end_layout
15123
15124 \begin_layout Standard
15125 ここで
15126 \begin_inset Flex Code
15127 status collapsed
15128
15129 \begin_layout Plain Layout
15130 labeltag
15131 \end_layout
15132
15133 \end_inset
15134
15135
15136 \begin_inset Flex Code
15137 status collapsed
15138
15139 \begin_layout Plain Layout
15140 itemtag
15141 \end_layout
15142
15143 \end_inset
15144
15145 の順序が違っていることに注意してください。どちらの順序になるかは、
15146 \begin_inset Flex Code
15147 status collapsed
15148
15149 \begin_layout Plain Layout
15150 HTMLLabelFirst
15151 \end_layout
15152
15153 \end_inset
15154
15155 の設定に依存します。もし
15156 \begin_inset Flex Code
15157 status collapsed
15158
15159 \begin_layout Plain Layout
15160 HTMLLabelFirst
15161 \end_layout
15162
15163 \end_inset
15164
15165 が偽であれば(既定値)、最初のケースのようになり、これが真であれば、二番めのケースのように、labelがitemの外側に来るようになります。
15166 \end_layout
15167
15168 \begin_layout Standard
15169 各段落の特定のタグ出力や属性出力は、以下に述べるようなレイアウトタグを使って制御することができます。しかしながら、前述のように、多くの場合、LyXは適切な既定値
15170 を生成するので、たいしたことをしなくても、望ましいXHTML出力を得ることができるということになるはずです。ここで利用出来るタグは、自分の好みにあわせて微調整す
15171 る目的でここにあるものと考えてください。
15172 \end_layout
15173
15174 \begin_layout Description
15175 \begin_inset Flex Code
15176 status collapsed
15177
15178 \begin_layout Plain Layout
15179 HTMLAttr
15180 \end_layout
15181
15182 \end_inset
15183
15184  [
15185 \begin_inset Flex Code
15186 status collapsed
15187
15188 \begin_layout Plain Layout
15189 文字列
15190 \end_layout
15191
15192 \end_inset
15193
15194 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
15195 \begin_inset Flex Code
15196 status collapsed
15197
15198 \begin_layout Plain Layout
15199 class=`mydiv'
15200 \end_layout
15201
15202 \end_inset
15203
15204 」のようなものです。既定においては、LyXは「
15205 \begin_inset Flex Code
15206 status collapsed
15207
15208 \begin_layout Plain Layout
15209 class=`レイアウト名'
15210 \end_layout
15211
15212 \end_inset
15213
15214 」と出力します。ここで
15215 \begin_inset Flex Code
15216 status collapsed
15217
15218 \begin_layout Plain Layout
15219 レイアウト名
15220 \end_layout
15221
15222 \end_inset
15223
15224 は、レイアウトのLyX名であり、chapterのように小文字で記述します。
15225 \end_layout
15226
15227 \begin_layout Description
15228 \begin_inset Flex Code
15229 status collapsed
15230
15231 \begin_layout Plain Layout
15232 HTMLForceCSS
15233 \end_layout
15234
15235 \end_inset
15236
15237  [
15238 \begin_inset Flex Code
15239 status collapsed
15240
15241 \begin_layout Plain Layout
15242
15243 \emph on
15244 0
15245 \emph default
15246 ,1
15247 \end_layout
15248
15249 \end_inset
15250
15251 ] 
15252 \begin_inset Flex Code
15253 status collapsed
15254
15255 \begin_layout Plain Layout
15256 HTMLStyle
15257 \end_layout
15258
15259 \end_inset
15260
15261 で追加情報が明示的に与えられているときでも、LyXがこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
15262 \begin_inset Flex Code
15263 status collapsed
15264
15265 \begin_layout Plain Layout
15266 1
15267 \end_layout
15268
15269 \end_inset
15270
15271 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
15272 \begin_inset Flex Code
15273 status collapsed
15274
15275 \begin_layout Plain Layout
15276 0
15277 \end_layout
15278
15279 \end_inset
15280
15281 です。
15282 \end_layout
15283
15284 \begin_layout Description
15285 \begin_inset Flex Code
15286 status collapsed
15287
15288 \begin_layout Plain Layout
15289 HTMLItem
15290 \end_layout
15291
15292 \end_inset
15293
15294  [
15295 \begin_inset Flex Code
15296 status collapsed
15297
15298 \begin_layout Plain Layout
15299 文字列
15300 \end_layout
15301
15302 \end_inset
15303
15304 ] 環境の段落に使用されるタグ。上記各例の
15305 \begin_inset Flex Code
15306 status collapsed
15307
15308 \begin_layout Plain Layout
15309 itemtag
15310 \end_layout
15311
15312 \end_inset
15313
15314 を置き換えます。既定値は
15315 \begin_inset Flex Code
15316 status collapsed
15317
15318 \begin_layout Plain Layout
15319 div
15320 \end_layout
15321
15322 \end_inset
15323
15324 です。
15325 \end_layout
15326
15327 \begin_layout Description
15328 \begin_inset Flex Code
15329 status collapsed
15330
15331 \begin_layout Plain Layout
15332 HTMLItemAttr
15333 \end_layout
15334
15335 \end_inset
15336
15337  [
15338 \begin_inset Flex Code
15339 status collapsed
15340
15341 \begin_layout Plain Layout
15342 文字列
15343 \end_layout
15344
15345 \end_inset
15346
15347 ] itemタグの属性。既定値は
15348 \begin_inset Flex Code
15349 status collapsed
15350
15351 \begin_layout Plain Layout
15352 class=`レイアウト名_item'
15353 \end_layout
15354
15355 \end_inset
15356
15357 です。
15358 \end_layout
15359
15360 \begin_layout Description
15361 \begin_inset Flex Code
15362 status collapsed
15363
15364 \begin_layout Plain Layout
15365 HTMLLabel
15366 \end_layout
15367
15368 \end_inset
15369
15370  [
15371 \begin_inset Flex Code
15372 status collapsed
15373
15374 \begin_layout Plain Layout
15375 文字列
15376 \end_layout
15377
15378 \end_inset
15379
15380 ] 段落と項目ラベルに使用されるタグ。上記各例の
15381 \begin_inset Flex Code
15382 status collapsed
15383
15384 \begin_layout Plain Layout
15385 labeltag
15386 \end_layout
15387
15388 \end_inset
15389
15390 を置き換えます。既定値は
15391 \begin_inset Flex Code
15392 status collapsed
15393
15394 \begin_layout Plain Layout
15395 span
15396 \end_layout
15397
15398 \end_inset
15399
15400 です。
15401 \end_layout
15402
15403 \begin_layout Description
15404 \begin_inset Flex Code
15405 status collapsed
15406
15407 \begin_layout Plain Layout
15408 HTMLLabelAttr
15409 \end_layout
15410
15411 \end_inset
15412
15413  [
15414 \begin_inset Flex Code
15415 status collapsed
15416
15417 \begin_layout Plain Layout
15418 文字列
15419 \end_layout
15420
15421 \end_inset
15422
15423 ] labelタグの属性。既定値は
15424 \begin_inset Flex Code
15425 status collapsed
15426
15427 \begin_layout Plain Layout
15428 class=`レイアウト名_label'
15429 \end_layout
15430
15431 \end_inset
15432
15433 です。
15434 \end_layout
15435
15436 \begin_layout Description
15437 \begin_inset Flex Code
15438 status collapsed
15439
15440 \begin_layout Plain Layout
15441 HTMLLabelFirst
15442 \end_layout
15443
15444 \end_inset
15445
15446  [
15447 \begin_inset Flex Code
15448 status collapsed
15449
15450 \begin_layout Plain Layout
15451
15452 \emph on
15453 0
15454 \emph default
15455 ,1
15456 \end_layout
15457
15458 \end_inset
15459
15460 ] このタグは、リスト関係環境でのみ意味を持ち、labelタグが、itemタグの前に出力されるか、中に出力されるかを制御します。これは、たとえば、descrip
15461 tion環境の中で、
15462 \begin_inset Flex Code
15463 status collapsed
15464
15465 \begin_layout Plain Layout
15466 `<dt>\SpecialChar \ldots{}
15467 </dt><dd>\SpecialChar \ldots{}
15468 </dd>
15469 \end_layout
15470
15471 \end_inset
15472
15473 という形を得るために使用されます。既定値は
15474 \begin_inset Flex Code
15475 status collapsed
15476
15477 \begin_layout Plain Layout
15478 0
15479 \end_layout
15480
15481 \end_inset
15482
15483 で、labelタグはitemタグの中に出力されます。
15484 \end_layout
15485
15486 \begin_layout Description
15487 \begin_inset Flex Code
15488 status collapsed
15489
15490 \begin_layout Plain Layout
15491 HTMLPreamble
15492 \end_layout
15493
15494 \end_inset
15495
15496  この様式が使用されたときに、
15497 \begin_inset Flex Code
15498 status collapsed
15499
15500 \begin_layout Plain Layout
15501 <head>
15502 \end_layout
15503
15504 \end_inset
15505
15506 セクションに出力される情報。これは、たとえば、
15507 \begin_inset Flex Code
15508 status collapsed
15509
15510 \begin_layout Plain Layout
15511 onclick
15512 \end_layout
15513
15514 \end_inset
15515
15516 ハンドラを定義するために
15517 \begin_inset Flex Code
15518 status collapsed
15519
15520 \begin_layout Plain Layout
15521 <script>
15522 \end_layout
15523
15524 \end_inset
15525
15526 ブロックをインクルードするのに使用することができます。
15527 \end_layout
15528
15529 \begin_layout Description
15530 \begin_inset Flex Code
15531 status collapsed
15532
15533 \begin_layout Plain Layout
15534 HTMLStyle
15535 \end_layout
15536
15537 \end_inset
15538
15539   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
15540 \begin_inset Flex Code
15541 status collapsed
15542
15543 \begin_layout Plain Layout
15544 <style>
15545 \end_layout
15546
15547 \end_inset
15548
15549 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
15550 \end_layout
15551
15552 \begin_layout Description
15553 \begin_inset Flex Code
15554 status collapsed
15555
15556 \begin_layout Plain Layout
15557 HTMLTag
15558 \end_layout
15559
15560 \end_inset
15561
15562  [
15563 \begin_inset Flex Code
15564 status collapsed
15565
15566 \begin_layout Plain Layout
15567 文字列
15568 \end_layout
15569
15570 \end_inset
15571
15572 ] 主幹ラベルに使用されるタグ。上記各例の
15573 \begin_inset Flex Code
15574 status collapsed
15575
15576 \begin_layout Plain Layout
15577 tag
15578 \end_layout
15579
15580 \end_inset
15581
15582 を置き換えます。既定値は
15583 \begin_inset Flex Code
15584 status collapsed
15585
15586 \begin_layout Plain Layout
15587 div
15588 \end_layout
15589
15590 \end_inset
15591
15592 です。
15593 \end_layout
15594
15595 \begin_layout Description
15596 \begin_inset Flex Code
15597 status collapsed
15598
15599 \begin_layout Plain Layout
15600 HTMLTitle
15601 \end_layout
15602
15603 \end_inset
15604
15605  [
15606 \begin_inset Flex Code
15607 status collapsed
15608
15609 \begin_layout Plain Layout
15610
15611 \emph on
15612 0
15613 \emph default
15614 ,1
15615 \end_layout
15616
15617 \end_inset
15618
15619 ] この様式が、XHTMLファイルの
15620 \begin_inset Flex Code
15621 status collapsed
15622
15623 \begin_layout Plain Layout
15624 <title>
15625 \end_layout
15626
15627 \end_inset
15628
15629 タグを生成するのに使用する様式であるという印をつけます。既定値は偽です。
15630 \begin_inset Flex Code
15631 status collapsed
15632
15633 \begin_layout Plain Layout
15634 stdtitle.inc
15635 \end_layout
15636
15637 \end_inset
15638
15639 ファイルでは、
15640 \begin_inset Flex Code
15641 status collapsed
15642
15643 \begin_layout Plain Layout
15644 title
15645 \end_layout
15646
15647 \end_inset
15648
15649 環境のこの項目を真に設定しています。
15650 \end_layout
15651
15652 \begin_layout Subsection
15653 差込枠レイアウトXHTML
15654 \end_layout
15655
15656 \begin_layout Standard
15657 差込枠のXHTML出力も、レイアウトファイル内の情報によって制御することができます
15658 \begin_inset Foot
15659 status collapsed
15660
15661 \begin_layout Plain Layout
15662 現在のところ、これは「テキスト」差込枠(中に書き込みができる差込枠)にのみ有効で、「コマンド」差込枠(ダイアログボックスに関連付けられた差込枠)には適用されませ
15663 ん。
15664 \end_layout
15665
15666 \end_inset
15667
15668 。ここでも、LyXは適切な既定値を提供しようと試み、既定のCSS様式を構成します。しかし、すべてカスタマイズ可能です。
15669 \end_layout
15670
15671 \begin_layout Standard
15672 LyXが差込枠用に出力するXHTMLは、以下の形を取ります。
15673 \end_layout
15674
15675 \begin_layout LyX-Code
15676 <tag attr=
15677 \begin_inset Quotes erd
15678 \end_inset
15679
15680 value
15681 \begin_inset Quotes erd
15682 \end_inset
15683
15684 >
15685 \end_layout
15686
15687 \begin_layout LyX-Code
15688 <labeltag>ラベル</labeltag>
15689 \end_layout
15690
15691 \begin_layout LyX-Code
15692 <innertag attr=
15693 \begin_inset Quotes erd
15694 \end_inset
15695
15696 value
15697 \begin_inset Quotes erd
15698 \end_inset
15699
15700 >差込枠の内容。</innertag>
15701 \end_layout
15702
15703 \begin_layout LyX-Code
15704 </tag>
15705 \end_layout
15706
15707 \begin_layout Standard
15708 差込枠が多段落を許可している---つまり
15709 \begin_inset Flex Code
15710 status collapsed
15711
15712 \begin_layout Plain Layout
15713 MultiPar
15714 \end_layout
15715
15716 \end_inset
15717
15718 が真---ならば、差込枠の内容は、それ自身段落として出力され、それらの段落に用いられる様式(標準、引用など)を用いて整形されます。もちろん、段落にラベルがなけれ
15719 ば、labelタグは省略され、ラベルがあれば、現在のところ、つねに
15720 \begin_inset Flex Code
15721 status collapsed
15722
15723 \begin_layout Plain Layout
15724 span
15725 \end_layout
15726
15727 \end_inset
15728
15729 が用いられます。innerタグは非必須であり、既定では出力されません。各差込枠用に出力される特定のタグや属性は、以下のレイアウトタグによって制御することができま
15730 す。
15731 \end_layout
15732
15733 \begin_layout Description
15734 \begin_inset Flex Code
15735 status collapsed
15736
15737 \begin_layout Plain Layout
15738 HTMLAttr
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 \end_layout
15750
15751 \end_inset
15752
15753 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
15754 \begin_inset Flex Code
15755 status collapsed
15756
15757 \begin_layout Plain Layout
15758 class=`mydiv'
15759 \end_layout
15760
15761 \end_inset
15762
15763 」のようなものです。既定においては、LyXは「
15764 \begin_inset Flex Code
15765 status collapsed
15766
15767 \begin_layout Plain Layout
15768 class=`レイアウト名'
15769 \end_layout
15770
15771 \end_inset
15772
15773 」と出力します。ここで
15774 \begin_inset Flex Code
15775 status collapsed
15776
15777 \begin_layout Plain Layout
15778 レイアウト名
15779 \end_layout
15780
15781 \end_inset
15782
15783 は、レイアウトのLyX名であり、chapterのように小文字で記述します。
15784 \end_layout
15785
15786 \begin_layout Description
15787 \begin_inset Flex Code
15788 status collapsed
15789
15790 \begin_layout Plain Layout
15791 HTMLForceCSS
15792 \end_layout
15793
15794 \end_inset
15795
15796  [
15797 \begin_inset Flex Code
15798 status collapsed
15799
15800 \begin_layout Plain Layout
15801
15802 \emph on
15803 0
15804 \emph default
15805 ,1
15806 \end_layout
15807
15808 \end_inset
15809
15810 ] 
15811 \begin_inset Flex Code
15812 status collapsed
15813
15814 \begin_layout Plain Layout
15815 HTMLStyle
15816 \end_layout
15817
15818 \end_inset
15819
15820 で追加情報が明示的に与えられているときでも、LyXがこのレイアウト用に生成する既定CSS情報を出力するか否か。これを
15821 \begin_inset Flex Code
15822 status collapsed
15823
15824 \begin_layout Plain Layout
15825 1
15826 \end_layout
15827
15828 \end_inset
15829
15830 にすると、生成されたCSSを完全に上書きする代わりに、変更したり追加したりすることができます。既定値は
15831 \begin_inset Flex Code
15832 status collapsed
15833
15834 \begin_layout Plain Layout
15835 0
15836 \end_layout
15837
15838 \end_inset
15839
15840 です。
15841 \end_layout
15842
15843 \begin_layout Description
15844 \begin_inset Flex Code
15845 status collapsed
15846
15847 \begin_layout Plain Layout
15848 HTMLInnerAttr
15849 \end_layout
15850
15851 \end_inset
15852
15853  [
15854 \begin_inset Flex Code
15855 status collapsed
15856
15857 \begin_layout Plain Layout
15858 文字列
15859 \end_layout
15860
15861 \end_inset
15862
15863 ] innerタグの属性。既定値は
15864 \begin_inset Flex Code
15865 status collapsed
15866
15867 \begin_layout Plain Layout
15868 class=`差込枠名_inner'
15869 \end_layout
15870
15871 \end_inset
15872
15873 です。
15874 \end_layout
15875
15876 \begin_layout Description
15877 \begin_inset Flex Code
15878 status collapsed
15879
15880 \begin_layout Plain Layout
15881 HTMLInnerTag
15882 \end_layout
15883
15884 \end_inset
15885
15886  [
15887 \begin_inset Flex Code
15888 status collapsed
15889
15890 \begin_layout Plain Layout
15891 文字列
15892 \end_layout
15893
15894 \end_inset
15895
15896 ] innerタグです。上記各例の
15897 \begin_inset Flex Code
15898 status collapsed
15899
15900 \begin_layout Plain Layout
15901 innertag
15902 \end_layout
15903
15904 \end_inset
15905
15906 を置き換えます。既定値はなしです。
15907 \end_layout
15908
15909 \begin_layout Description
15910 \begin_inset Flex Code
15911 status collapsed
15912
15913 \begin_layout Plain Layout
15914 HTMLIsBlock
15915 \end_layout
15916
15917 \end_inset
15918
15919  [
15920 \begin_inset Flex Code
15921 status collapsed
15922
15923 \begin_layout Plain Layout
15924 0,
15925 \emph on
15926 1
15927 \end_layout
15928
15929 \end_inset
15930
15931 ] この差込枠が(脚注のように)独立した文字列ブロックを表すのか、それとも、(派生枝のように)周囲の文字列の中に取り込まれる素材を表すのか。既定値は1です。
15932 \end_layout
15933
15934 \begin_layout Description
15935 \begin_inset Flex Code
15936 status collapsed
15937
15938 \begin_layout Plain Layout
15939 HTMLLabel
15940 \end_layout
15941
15942 \end_inset
15943
15944  [
15945 \begin_inset Flex Code
15946 status collapsed
15947
15948 \begin_layout Plain Layout
15949 文字列
15950 \end_layout
15951
15952 \end_inset
15953
15954 ] 場合によっては、カウンタへの参照を含む、この差込枠のラベル。たとえば、脚注用には
15955 \begin_inset Flex Code
15956 status collapsed
15957
15958 \begin_layout Plain Layout
15959
15960 \backslash
15961 arabic{footnote}
15962 \end_layout
15963
15964 \end_inset
15965
15966 など。これは非必須であり、既定値はありません。
15967 \end_layout
15968
15969 \begin_layout Description
15970 \begin_inset Flex Code
15971 status collapsed
15972
15973 \begin_layout Plain Layout
15974 HTMLPreamble
15975 \end_layout
15976
15977 \end_inset
15978
15979  この様式が使用されたときに、
15980 \begin_inset Flex Code
15981 status collapsed
15982
15983 \begin_layout Plain Layout
15984 <head>
15985 \end_layout
15986
15987 \end_inset
15988
15989 セクションに出力される情報。これは、たとえば、
15990 \begin_inset Flex Code
15991 status collapsed
15992
15993 \begin_layout Plain Layout
15994 onclick
15995 \end_layout
15996
15997 \end_inset
15998
15999 ハンドラを定義するために
16000 \begin_inset Flex Code
16001 status collapsed
16002
16003 \begin_layout Plain Layout
16004 <script>
16005 \end_layout
16006
16007 \end_inset
16008
16009 ブロックをインクルードするのに使用することができます。
16010 \end_layout
16011
16012 \begin_layout Description
16013 \begin_inset Flex Code
16014 status collapsed
16015
16016 \begin_layout Plain Layout
16017 HTMLStyle
16018 \end_layout
16019
16020 \end_inset
16021
16022   この様式が使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
16023 \begin_inset Flex Code
16024 status collapsed
16025
16026 \begin_layout Plain Layout
16027 <style>
16028 \end_layout
16029
16030 \end_inset
16031
16032 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
16033 \end_layout
16034
16035 \begin_layout Description
16036 \begin_inset Flex Code
16037 status collapsed
16038
16039 \begin_layout Plain Layout
16040 HTMLTag
16041 \end_layout
16042
16043 \end_inset
16044
16045  [
16046 \begin_inset Flex Code
16047 status collapsed
16048
16049 \begin_layout Plain Layout
16050 文字列
16051 \end_layout
16052
16053 \end_inset
16054
16055 ] 主幹ラベルに使用されるタグ。上記各例の
16056 \begin_inset Flex Code
16057 status collapsed
16058
16059 \begin_layout Plain Layout
16060 tag
16061 \end_layout
16062
16063 \end_inset
16064
16065 を置き換えます。既定値は
16066 \begin_inset Flex Code
16067 status collapsed
16068
16069 \begin_layout Plain Layout
16070 MultiPar
16071 \end_layout
16072
16073 \end_inset
16074
16075 の設定に依存し、
16076 \begin_inset Flex Code
16077 status collapsed
16078
16079 \begin_layout Plain Layout
16080 MultiPar
16081 \end_layout
16082
16083 \end_inset
16084
16085 が真ならば
16086 \begin_inset Flex Code
16087 status collapsed
16088
16089 \begin_layout Plain Layout
16090 div
16091 \end_layout
16092
16093 \end_inset
16094
16095 、偽ならば
16096 \begin_inset Flex Code
16097 status collapsed
16098
16099 \begin_layout Plain Layout
16100 span
16101 \end_layout
16102
16103 \end_inset
16104
16105 です。
16106 \end_layout
16107
16108 \begin_layout Subsection
16109 フロートXHTML
16110 \end_layout
16111
16112 \begin_layout Standard
16113 フロートのXHTML出力も、レイアウトファイル内の情報によって制御することができます。出力は、以下の形を取ります。
16114 \end_layout
16115
16116 \begin_layout LyX-Code
16117 <tag attr=
16118 \begin_inset Quotes erd
16119 \end_inset
16120
16121 value
16122 \begin_inset Quotes erd
16123 \end_inset
16124
16125 >
16126 \end_layout
16127
16128 \begin_layout LyX-Code
16129 フロートの内容。
16130 \end_layout
16131
16132 \begin_layout LyX-Code
16133 </tag>
16134 \end_layout
16135
16136 \begin_layout Standard
16137 キャプションは、存在している場合には、独立した差込枠となり、そのような形で出力されます。その外観は、キャプション差込枠のInsetLayoutで制御することがで
16138 きます。
16139 \end_layout
16140
16141 \begin_layout Description
16142 \begin_inset Flex Code
16143 status collapsed
16144
16145 \begin_layout Plain Layout
16146 HTMLAttr
16147 \end_layout
16148
16149 \end_inset
16150
16151  [
16152 \begin_inset Flex Code
16153 status collapsed
16154
16155 \begin_layout Plain Layout
16156 文字列
16157 \end_layout
16158
16159 \end_inset
16160
16161 ] 主幹タグと共に出力される属性情報を指定します。たとえば、「
16162 \begin_inset Flex Code
16163 status collapsed
16164
16165 \begin_layout Plain Layout
16166 class=`myfloat' onclick=`\SpecialChar \ldots{}
16167 '
16168 \end_layout
16169
16170 \end_inset
16171
16172 」のようなものです。既定においては、LyXは「
16173 \begin_inset Flex Code
16174 status collapsed
16175
16176 \begin_layout Plain Layout
16177 class=`float float-フロート型'
16178 \end_layout
16179
16180 \end_inset
16181
16182 」と出力します。ここで
16183 \begin_inset Flex Code
16184 status collapsed
16185
16186 \begin_layout Plain Layout
16187 フロート型
16188 \end_layout
16189
16190 \end_inset
16191
16192 は、フロート宣言で定義された(
16193 \begin_inset CommandInset ref
16194 LatexCommand ref
16195 reference "sub:フロート"
16196
16197 \end_inset
16198
16199 参照)、この型のフロートのLyX名です。ただし、小文字に変換され、アルファベットや数字でない文字はアンダースコアに変換されます。例:float-table。
16200 \end_layout
16201
16202 \begin_layout Description
16203 \begin_inset Flex Code
16204 status collapsed
16205
16206 \begin_layout Plain Layout
16207 HTMLStyle
16208 \end_layout
16209
16210 \end_inset
16211
16212   このフロートが使用されたときに、インクルードするCSSスタイル情報。これは、レイアウトが生成する
16213 \begin_inset Flex Code
16214 status collapsed
16215
16216 \begin_layout Plain Layout
16217 <style>
16218 \end_layout
16219
16220 \end_inset
16221
16222 ブロックで自動的に包まれますので、CSS自体をインクルードするだけで大丈夫です。
16223 \end_layout
16224
16225 \begin_layout Description
16226 \begin_inset Flex Code
16227 status collapsed
16228
16229 \begin_layout Plain Layout
16230 HTMLTag
16231 \end_layout
16232
16233 \end_inset
16234
16235  [
16236 \begin_inset Flex Code
16237 status collapsed
16238
16239 \begin_layout Plain Layout
16240 文字列
16241 \end_layout
16242
16243 \end_inset
16244
16245 ] このフロートに使用されるタグ。上記各例の
16246 \begin_inset Flex Code
16247 status collapsed
16248
16249 \begin_layout Plain Layout
16250 tag
16251 \end_layout
16252
16253 \end_inset
16254
16255 を置き換えます。既定値は
16256 \begin_inset Flex Code
16257 status collapsed
16258
16259 \begin_layout Plain Layout
16260 div
16261 \end_layout
16262
16263 \end_inset
16264
16265 であり、ほとんどの場合変更する必要はありません。
16266 \end_layout
16267
16268 \begin_layout Subsection
16269 書誌情報の整形
16270 \end_layout
16271
16272 \begin_layout Standard
16273 書誌情報は、
16274 \begin_inset Flex Code
16275 status collapsed
16276
16277 \begin_layout Plain Layout
16278 CiteFormat
16279 \end_layout
16280
16281 \end_inset
16282
16283 ブロックを使用して整形することができます。詳細については、第
16284 \begin_inset CommandInset ref
16285 LatexCommand ref
16286 reference "sub:引用書式指定"
16287
16288 \end_inset
16289
16290 節を参照してください。
16291 \end_layout
16292
16293 \begin_layout Subsection
16294 LyXが生成したCSS
16295 \end_layout
16296
16297 \begin_layout Standard
16298 LyXは、提供されている他のレイアウト情報に基づいて、差込枠と段落様式の両方の既定CSS様式ルールを生成ということすることを、これまでに何度か触れました。この節
16299 では、LyXがどのレイアウト情報を、どのように使うのか、ひとこと述べておきたいと思います。
16300 \end_layout
16301
16302 \begin_layout Standard
16303 LyXは、現在のところ、
16304 \begin_inset Flex Code
16305 status collapsed
16306
16307 \begin_layout Plain Layout
16308 Font
16309 \end_layout
16310
16311 \end_inset
16312
16313 宣言で指定されている
16314 \begin_inset Flex Code
16315 status collapsed
16316
16317 \begin_layout Plain Layout
16318 Family
16319 \end_layout
16320
16321 \end_inset
16322
16323
16324 \begin_inset Flex Code
16325 status collapsed
16326
16327 \begin_layout Plain Layout
16328 Series
16329 \end_layout
16330
16331 \end_inset
16332
16333
16334 \begin_inset Flex Code
16335 status collapsed
16336
16337 \begin_layout Plain Layout
16338 Shape
16339 \end_layout
16340
16341 \end_inset
16342
16343
16344 \begin_inset Flex Code
16345 status collapsed
16346
16347 \begin_layout Plain Layout
16348 Size
16349 \end_layout
16350
16351 \end_inset
16352
16353 を利用して、フォント情報についてのみCSSを自動生成します(第
16354 \begin_inset CommandInset ref
16355 LatexCommand ref
16356 reference "sub:フォント指定"
16357
16358 \end_inset
16359
16360 節を参照)。この変換は、きわめて分かりやすく自明です。たとえば、「
16361 \begin_inset Flex Code
16362 status collapsed
16363
16364 \begin_layout Plain Layout
16365 Family Sans
16366 \end_layout
16367
16368 \end_inset
16369
16370 」は「
16371 \begin_inset Flex Code
16372 status collapsed
16373
16374 \begin_layout Plain Layout
16375 font-family: sans-serif
16376 \end_layout
16377
16378 \end_inset
16379
16380 」になります。LyXの寸法とCSSの寸法のあいだの対応は、少し複雑ですが、それでも直感的に分かります。詳細については、
16381 \begin_inset Flex URL
16382 status collapsed
16383
16384 \begin_layout Plain Layout
16385
16386 src/FontInfo.cpp
16387 \end_layout
16388
16389 \end_inset
16390
16391
16392 \begin_inset Flex Code
16393 status collapsed
16394
16395 \begin_layout Plain Layout
16396 getSizeCSS()
16397 \end_layout
16398
16399 \end_inset
16400
16401 関数をご覧ください。
16402 \end_layout
16403
16404 \begin_layout Chapter
16405 外部素材を取り込む
16406 \end_layout
16407
16408 \begin_layout Standard
16409 \begin_inset Box Shadowbox
16410 position "t"
16411 hor_pos "c"
16412 has_inner_box 1
16413 inner_pos "t"
16414 use_parbox 0
16415 use_makebox 0
16416 width "100col%"
16417 special "none"
16418 height "1in"
16419 height_special "totalheight"
16420 status open
16421
16422 \begin_layout Plain Layout
16423 【警告】本説明書のこの部分は、しばらく更新されていません。もちろんまだ正確であることを期待していますが、保証の限りではありません。
16424 \end_layout
16425
16426 \end_inset
16427
16428
16429 \end_layout
16430
16431 \begin_layout Standard
16432 LyX外部のソースから素材を使用する方法は、取扱説明書
16433 \emph on
16434 埋込オブジェクト篇
16435 \emph default
16436 で詳細にカバーされています。本章は、新種の素材を取り込む際に、舞台裏で何をする必要があるかをカバーします。
16437 \end_layout
16438
16439 \begin_layout Section
16440 どのように機能するのか
16441 \end_layout
16442
16443 \begin_layout Standard
16444 外部素材の機能は、ひな型の概念に基づいています。ひな型は、LyXがある型の素材とどのように橋渡しをするべきかを指定するものです。同梱物として、LyXは、Xfig
16445 の図や、様々なラスター形式画像、チェス棋譜、LilyPond楽譜用のひな型を事前に定義されたものとして含んでいます。実際に何が入っているかは、
16446 \begin_inset Flex MenuItem
16447 status collapsed
16448
16449 \begin_layout Plain Layout
16450 挿入\SpecialChar \menuseparator
16451 ファイル\SpecialChar \menuseparator
16452 外部素材
16453 \end_layout
16454
16455 \end_inset
16456
16457 メニューで見ることができます。さらに、特定の型の素材をサポートするのに、自分自身のひな型を作成することも可能です。後でどのようなことをすればいいか詳細に説明しま
16458 すが、できればあなたが作ったすべてのひな型を投稿して、我々がLyXの後の版に取り込むことができるようにしてくださることを希望します。
16459 \end_layout
16460
16461 \begin_layout Standard
16462 外部素材の機能におけるもう一つの基本的な発想は、最終素材の元となるオリジナルファイルと、書き出された文書や印刷された文書に取り込むための生成ファイルとを区別して
16463 いることです。たとえば、
16464 \begin_inset Flex Code
16465 status collapsed
16466
16467 \begin_layout Plain Layout
16468 Xfig
16469 \end_layout
16470
16471 \end_inset
16472
16473 で作成した図の場合を考えてみましょう。Xfigアプリケーション自体は、
16474 \begin_inset Flex Code
16475 status collapsed
16476
16477 \begin_layout Plain Layout
16478 .fig
16479 \end_layout
16480
16481 \end_inset
16482
16483 拡張子を持つオリジナルファイルを操作します。Xfigで図を作成したり変更したりして、作業が終われば
16484 \begin_inset Flex Code
16485 status collapsed
16486
16487 \begin_layout Plain Layout
16488 fig
16489 \end_layout
16490
16491 \end_inset
16492
16493 ファイルに保存します。この図をお使いの文書に取り込みたいときには、LaTeXファイルにそのままインクルードできるように、
16494 \begin_inset Flex Code
16495 status collapsed
16496
16497 \begin_layout Plain Layout
16498 transfig
16499 \end_layout
16500
16501 \end_inset
16502
16503 を呼び出してPostScriptファイルを生成します。この場合には、
16504 \begin_inset Flex Code
16505 status collapsed
16506
16507 \begin_layout Plain Layout
16508 .fig
16509 \end_layout
16510
16511 \end_inset
16512
16513 ファイルがオリジナルファイルであり、PostScriptファイルが生成ファイルになります。
16514 \end_layout
16515
16516 \begin_layout Standard
16517 この区別は、文書を執筆している最中に、素材を更新することができるようにするために重要です。さらに、これによって、複数の書き出し書式をサポートするために必要な柔軟
16518 性が提供されます。たとえば、平文テキストファイルの場合には、図を生のPostScriptファイルとして取り込むのは、とても褒められた発想とはいえません。むしろ、
16519 その図への参照だけを含めるか、最終出力が実際の画像に近いものとなるように画像からASCIIへの変換子を呼び出したいと考えることでしょう。LyXの外部素材マネジメ
16520 ントは、LyXがサポートする各書き出し書式別に仕分けしているので、ユーザがこれを行うことが可能となっています。
16521 \end_layout
16522
16523 \begin_layout Standard
16524 LyXの外部素材マネジメントは、書き出し書式によって異なる生成物をサポートすることの他に、編集・閲覧アプリケーションを緊密に統合することもサポートします。Xfi
16525 gの図の場合には、LyXの外部素材ダイアログからシングルクリックでオリジナルファイルをXfigで開くことができ、ダブルクリックすることで生成されたPostScr
16526 iptファイルをGhostviewで閲覧することができます。もうコマンドラインをもてあそんだり、オリジナルファイルや生成ファイルがどこにあるか探したり変更を加え
16527 るためにファイルブラウザをいじくり回す必要はないのです。このようにして、文書を執筆する際に必要となる多くのアプリケーションを最大限に利用し、最終的により生産性を
16528 上げることができるようになるのです。
16529 \end_layout
16530
16531 \begin_layout Section
16532 外用ひな型設定ファイル
16533 \end_layout
16534
16535 \begin_layout Standard
16536 LyXに自製の外用ひな型を付け加えるのは、比較的簡単です。しかしながら、これを不用心に行ってしまうと、たいていの場合、簡単に濫用されてしまうようなセキュリティホ
16537 ールを作ってしまいがちであることを心に留めておいてください。したがって、これを実行に移す前に、第
16538 \begin_inset CommandInset ref
16539 LatexCommand ref
16540 reference "sec:セキュリティに関する論点"
16541
16542 \end_inset
16543
16544 節のセキュリティに関する議論を読んでおいてください。
16545 \end_layout
16546
16547 \begin_layout Standard
16548 このことに言及した上で、あなたが作成した面白いひな型は、ぜひ投稿してください。
16549 \end_layout
16550
16551 \begin_layout Standard
16552 外用ひな型は、
16553 \begin_inset Flex Code
16554 status collapsed
16555
16556 \begin_layout Plain Layout
16557 LyXDir/lib/external_templates
16558 \end_layout
16559
16560 \end_inset
16561
16562 ファイルで定義されています。自分用の版を
16563 \begin_inset Flex Code
16564 status collapsed
16565
16566 \begin_layout Plain Layout
16567 UserDir/external_templates
16568 \end_layout
16569
16570 \end_inset
16571
16572 に置くこともできます。
16573 \end_layout
16574
16575 \begin_layout Standard
16576 典型的なひな型は以下のようになります。
16577 \end_layout
16578
16579 \begin_layout LyX-Code
16580 Template XFig
16581 \end_layout
16582
16583 \begin_layout LyX-Code
16584 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
16585 \end_layout
16586
16587 \begin_layout LyX-Code
16588 HelpText
16589 \end_layout
16590
16591 \begin_layout LyX-Code
16592 An XFig figure.
16593 \end_layout
16594
16595 \begin_layout LyX-Code
16596 HelpTextEnd
16597 \end_layout
16598
16599 \begin_layout LyX-Code
16600 InputFormat fig
16601 \end_layout
16602
16603 \begin_layout LyX-Code
16604 FileFilter "*.fig"
16605 \end_layout
16606
16607 \begin_layout LyX-Code
16608 AutomaticProduction true
16609 \end_layout
16610
16611 \begin_layout LyX-Code
16612 Transform Rotate
16613 \end_layout
16614
16615 \begin_layout LyX-Code
16616 Transform Resize
16617 \end_layout
16618
16619 \begin_layout LyX-Code
16620 Format LaT
16621 \begin_inset ERT
16622 status collapsed
16623
16624 \begin_layout Plain Layout
16625
16626 {}
16627 \end_layout
16628
16629 \end_inset
16630
16631 eX
16632 \end_layout
16633
16634 \begin_layout LyX-Code
16635 TransformCommand Rotate RotationLatexCommand
16636 \end_layout
16637
16638 \begin_layout LyX-Code
16639 TransformCommand Resize ResizeLatexCommand
16640 \end_layout
16641
16642 \begin_layout LyX-Code
16643 Product "$$RotateFront$$ResizeFront
16644 \end_layout
16645
16646 \begin_layout LyX-Code
16647          
16648 \backslash
16649
16650 \backslash
16651 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
16652 \end_layout
16653
16654 \begin_layout LyX-Code
16655          $$ResizeBack$$RotateBack"
16656 \end_layout
16657
16658 \begin_layout LyX-Code
16659 UpdateFormat pstex
16660 \end_layout
16661
16662 \begin_layout LyX-Code
16663 UpdateResult "$$AbsPath$$Basename.pstex_t"
16664 \end_layout
16665
16666 \begin_layout LyX-Code
16667 Requirement "graphicx"
16668 \end_layout
16669
16670 \begin_layout LyX-Code
16671 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
16672 \end_layout
16673
16674 \begin_layout LyX-Code
16675 ReferencedFile latex "$$AbsPath$$Basename.eps"
16676 \end_layout
16677
16678 \begin_layout LyX-Code
16679 ReferencedFile dvi "$$AbsPath$$Basename.eps"
16680 \end_layout
16681
16682 \begin_layout LyX-Code
16683 FormatEnd
16684 \end_layout
16685
16686 \begin_layout LyX-Code
16687 Format PDFLaT
16688 \begin_inset ERT
16689 status collapsed
16690
16691 \begin_layout Plain Layout
16692
16693 {}
16694 \end_layout
16695
16696 \end_inset
16697
16698 eX
16699 \end_layout
16700
16701 \begin_layout LyX-Code
16702 TransformCommand Rotate RotationLatexCommand
16703 \end_layout
16704
16705 \begin_layout LyX-Code
16706 TransformCommand Resize ResizeLatexCommand
16707 \end_layout
16708
16709 \begin_layout LyX-Code
16710 Product "$$RotateFront$$ResizeFront
16711 \end_layout
16712
16713 \begin_layout LyX-Code
16714          
16715 \backslash
16716
16717 \backslash
16718 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
16719 \end_layout
16720
16721 \begin_layout LyX-Code
16722          $$ResizeBack$$RotateBack"
16723 \end_layout
16724
16725 \begin_layout LyX-Code
16726 UpdateFormat pdftex
16727 \end_layout
16728
16729 \begin_layout LyX-Code
16730 UpdateResult "$$AbsPath$$Basename.pdftex_t"
16731 \end_layout
16732
16733 \begin_layout LyX-Code
16734 Requirement "graphicx"
16735 \end_layout
16736
16737 \begin_layout LyX-Code
16738 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
16739 \end_layout
16740
16741 \begin_layout LyX-Code
16742 ReferencedFile latex "$$AbsPath$$Basename.pdf"
16743 \end_layout
16744
16745 \begin_layout LyX-Code
16746 FormatEnd
16747 \end_layout
16748
16749 \begin_layout LyX-Code
16750 Format Ascii
16751 \end_layout
16752
16753 \begin_layout LyX-Code
16754 Product "$$Contents(
16755 \backslash
16756 "$$AbsPath$$Basename.asc
16757 \backslash
16758 ")"
16759 \end_layout
16760
16761 \begin_layout LyX-Code
16762 UpdateFormat asciixfig
16763 \end_layout
16764
16765 \begin_layout LyX-Code
16766 UpdateResult "$$AbsPath$$Basename.asc"
16767 \end_layout
16768
16769 \begin_layout LyX-Code
16770 FormatEnd
16771 \end_layout
16772
16773 \begin_layout LyX-Code
16774 Format DocBook
16775 \end_layout
16776
16777 \begin_layout LyX-Code
16778 Product "<graphic fileref=
16779 \backslash
16780 "$$AbsOrRelPathMaster$$Basename.eps
16781 \backslash
16782 ">
16783 \end_layout
16784
16785 \begin_layout LyX-Code
16786          </graphic>"
16787 \end_layout
16788
16789 \begin_layout LyX-Code
16790 UpdateFormat eps
16791 \end_layout
16792
16793 \begin_layout LyX-Code
16794 UpdateResult "$$AbsPath$$Basename.eps"
16795 \end_layout
16796
16797 \begin_layout LyX-Code
16798 ReferencedFile docbook "$$AbsPath$$Basename.eps"
16799 \end_layout
16800
16801 \begin_layout LyX-Code
16802 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
16803 \end_layout
16804
16805 \begin_layout LyX-Code
16806 FormatEnd
16807 \end_layout
16808
16809 \begin_layout LyX-Code
16810 Product "[XFig: $$FName]"
16811 \end_layout
16812
16813 \begin_layout LyX-Code
16814 FormatEnd
16815 \end_layout
16816
16817 \begin_layout LyX-Code
16818 TemplateEnd
16819 \end_layout
16820
16821 \begin_layout Standard
16822 ご覧の通り、ひな型は
16823 \begin_inset Flex Code
16824 status collapsed
16825
16826 \begin_layout Plain Layout
16827 Template
16828 \end_layout
16829
16830 \end_inset
16831
16832  \SpecialChar \ldots{}
16833  
16834 \begin_inset Flex Code
16835 status collapsed
16836
16837 \begin_layout Plain Layout
16838 TemplateEnd
16839 \end_layout
16840
16841 \end_inset
16842
16843 で閉じられます。ひな型には、一般的な設定を行うヘッダ部と、サポートされている主要な文書ファイル書式の設定を行う
16844 \begin_inset Flex Code
16845 status collapsed
16846
16847 \begin_layout Plain Layout
16848 Format
16849 \end_layout
16850
16851 \end_inset
16852
16853  \SpecialChar \ldots{}
16854  
16855 \begin_inset Flex Code
16856 status collapsed
16857
16858 \begin_layout Plain Layout
16859 FormatEnd
16860 \end_layout
16861
16862 \end_inset
16863
16864 部があります。
16865 \end_layout
16866
16867 \begin_layout Subsection
16868 ひな型のヘッダ
16869 \end_layout
16870
16871 \begin_layout Description
16872 \begin_inset Flex Code
16873 status collapsed
16874
16875 \begin_layout Plain Layout
16876 AutomaticProduction
16877 \begin_inset space ~
16878 \end_inset
16879
16880 true|false
16881 \end_layout
16882
16883 \end_inset
16884
16885  このひな型で扱うファイルをLyXが生成しなくてはならないか否か。このコマンドは、一度だけ必ず現れなくてはなりません。
16886 \end_layout
16887
16888 \begin_layout Description
16889 \begin_inset Flex Code
16890 status collapsed
16891
16892 \begin_layout Plain Layout
16893 FileFilter
16894 \begin_inset space ~
16895 \end_inset
16896
16897 <パターン>
16898 \end_layout
16899
16900 \end_inset
16901
16902  望むファイル群を表示するために、ファイルダイアログで使用するフィルタ用globパターン。2つ以上のファイル拡張子があり得る場合(たとえば、tgifには
16903 \begin_inset Flex Code
16904 status collapsed
16905
16906 \begin_layout Plain Layout
16907 .obj
16908 \end_layout
16909
16910 \end_inset
16911
16912
16913 \begin_inset Flex Code
16914 status collapsed
16915
16916 \begin_layout Plain Layout
16917 .tgo
16918 \end_layout
16919
16920 \end_inset
16921
16922 があります)、「
16923 \begin_inset Flex Code
16924 status collapsed
16925
16926 \begin_layout Plain Layout
16927 *.{obj,tgo}
16928 \end_layout
16929
16930 \end_inset
16931
16932 」の様なパターンを使用してください。このコマンドは、一度だけ必ず現れなくてはなりません。
16933 \end_layout
16934
16935 \begin_layout Description
16936 \begin_inset Flex Code
16937 status collapsed
16938
16939 \begin_layout Plain Layout
16940 GuiName
16941 \begin_inset space ~
16942 \end_inset
16943
16944 <GUI名>
16945 \end_layout
16946
16947 \end_inset
16948
16949  この文字列はボタン上に表示されます。このコマンドは、一度だけ必ず現れなくてはなりません。
16950 \end_layout
16951
16952 \begin_layout Description
16953 \begin_inset Flex Code
16954 status collapsed
16955
16956 \begin_layout Plain Layout
16957 HelpText
16958 \begin_inset space ~
16959 \end_inset
16960
16961 <文章>
16962 \begin_inset space ~
16963 \end_inset
16964
16965 HelpTextEnd
16966 \end_layout
16967
16968 \end_inset
16969
16970  外部素材ダイアログで使用されるヘルプ文。このひな型がユーザに何を提供できるのか、ユーザに説明するのに十分な情報を盛り込んでください。このコマンドは、一度だけ必
16971 ず現れなくてはなりません。
16972 \end_layout
16973
16974 \begin_layout Description
16975 \begin_inset Flex Code
16976 status collapsed
16977
16978 \begin_layout Plain Layout
16979 InputFormat
16980 \begin_inset space ~
16981 \end_inset
16982
16983 <書式>
16984 \end_layout
16985
16986 \end_inset
16987
16988  オリジナルファイルのファイル書式。これは、LyXが知っている書式名でなくてはなりません(第
16989 \begin_inset CommandInset ref
16990 LatexCommand ref
16991 reference "sec:書式"
16992
16993 \end_inset
16994
16995 章参照)。このひな型が、2つ以上の書式のオリジナルファイルを取り扱える場合は、「
16996 \begin_inset Flex Code
16997 status collapsed
16998
16999 \begin_layout Plain Layout
17000 *
17001 \end_layout
17002
17003 \end_inset
17004
17005 」を使用してください。この場合、LyXはファイル書式を推定するために、ファイル自体に詮索を試みます。このコマンドは、一度だけ必ず現れなくてはなりません。
17006 \end_layout
17007
17008 \begin_layout Description
17009 \begin_inset Flex Code
17010 status collapsed
17011
17012 \begin_layout Plain Layout
17013 Template
17014 \begin_inset space ~
17015 \end_inset
17016
17017 <ID>
17018 \end_layout
17019
17020 \end_inset
17021
17022  このひな型の(他と重複しない)名称。代入マクロを含めてはなりません(下記参照)。
17023 \end_layout
17024
17025 \begin_layout Description
17026 \begin_inset Flex Code
17027 status collapsed
17028
17029 \begin_layout Plain Layout
17030 Transform
17031 \begin_inset space ~
17032 \end_inset
17033
17034 Rotate|Resize|Clip|Extra
17035 \end_layout
17036
17037 \end_inset
17038
17039  このコマンドは、このひな型がどのような変換をサポートしているかを指定します。これは全く登場しなくても1回以上現れても構いません。このコマンドは、外部素材ダイア
17040 ログ中の対応するタブを使用可能にします。
17041 \begin_inset Flex Code
17042 status collapsed
17043
17044 \begin_layout Plain Layout
17045 Transform
17046 \end_layout
17047
17048 \end_inset
17049
17050 コマンド一つずつに応じて、
17051 \begin_inset Flex Code
17052 status collapsed
17053
17054 \begin_layout Plain Layout
17055 Format
17056 \end_layout
17057
17058 \end_inset
17059
17060 部に、対応する
17061 \begin_inset Flex Code
17062 status collapsed
17063
17064 \begin_layout Plain Layout
17065 TransformCommand
17066 \end_layout
17067
17068 \end_inset
17069
17070 コマンドか
17071 \begin_inset Flex Code
17072 status collapsed
17073
17074 \begin_layout Plain Layout
17075 TransformOption
17076 \end_layout
17077
17078 \end_inset
17079
17080 コマンドを置かなくてはなりません。これを行わないと、この書式での変換はサポートされません。
17081 \end_layout
17082
17083 \begin_layout Subsection
17084 \begin_inset Flex Code
17085 status collapsed
17086
17087 \begin_layout Plain Layout
17088 Format
17089 \end_layout
17090
17091 \end_inset
17092
17093
17094 \end_layout
17095
17096 \begin_layout Description
17097 \begin_inset Flex Code
17098 status collapsed
17099
17100 \begin_layout Plain Layout
17101 Format
17102 \begin_inset space ~
17103 \end_inset
17104
17105 LaT
17106 \begin_inset ERT
17107 status collapsed
17108
17109 \begin_layout Plain Layout
17110
17111 {}
17112 \end_layout
17113
17114 \end_inset
17115
17116 eX|PDFLaT
17117 \begin_inset ERT
17118 status collapsed
17119
17120 \begin_layout Plain Layout
17121
17122 {}
17123 \end_layout
17124
17125 \end_inset
17126
17127 eX|PlainText|DocBook
17128 \end_layout
17129
17130 \end_inset
17131
17132  この書式定義が定める主要な文書ファイル書式。すべてのひな型が、全文書ファイル書式に対して意味のある表示ができるわけではありません。それでも、全書式に対して
17133 \begin_inset Flex Code
17134 status collapsed
17135
17136 \begin_layout Plain Layout
17137 Format
17138 \end_layout
17139
17140 \end_inset
17141
17142 部を定義してください。表示する方法がないときは、ダミーテキストを使用してください。これによって、書き出した文書内で、少なくとも外部素材への参照を見ることができる
17143 ようになります。
17144 \end_layout
17145
17146 \begin_layout Description
17147 \begin_inset Flex Code
17148 status collapsed
17149
17150 \begin_layout Plain Layout
17151 Option
17152 \begin_inset space ~
17153 \end_inset
17154
17155 <名称>
17156 \begin_inset space ~
17157 \end_inset
17158
17159 <値>
17160 \end_layout
17161
17162 \end_inset
17163
17164  このコマンドは、
17165 \begin_inset Flex Code
17166 status collapsed
17167
17168 \begin_layout Plain Layout
17169 Product
17170 \end_layout
17171
17172 \end_inset
17173
17174 での代入に使うマクロ
17175 \begin_inset Flex Code
17176 status collapsed
17177
17178 \begin_layout Plain Layout
17179 $$<名称>
17180 \end_layout
17181
17182 \end_inset
17183
17184 を新たに定義します。
17185 \begin_inset Flex Code
17186 status collapsed
17187
17188 \begin_layout Plain Layout
17189 <値>
17190 \end_layout
17191
17192 \end_inset
17193
17194 自体にも代入マクロを使うことができます。
17195 \begin_inset Flex Code
17196 status collapsed
17197
17198 \begin_layout Plain Layout
17199 Product
17200 \end_layout
17201
17202 \end_inset
17203
17204
17205 \begin_inset Flex Code
17206 status collapsed
17207
17208 \begin_layout Plain Layout
17209 <値>
17210 \end_layout
17211
17212 \end_inset
17213
17214 を直接使用するよりも優れた点は、
17215 \begin_inset Flex Code
17216 status collapsed
17217
17218 \begin_layout Plain Layout
17219 $$<名称>
17220 \end_layout
17221
17222 \end_inset
17223
17224 に代入された値が、その文書書式で有効な非必須引数となるように健全化されることです。このコマンドは全く登場しなくても1回以上現れても構いません。
17225 \end_layout
17226
17227 \begin_layout Description
17228 \begin_inset Flex Code
17229 status collapsed
17230
17231 \begin_layout Plain Layout
17232 Product
17233 \begin_inset space ~
17234 \end_inset
17235
17236 <文>
17237 \end_layout
17238
17239 \end_inset
17240
17241  書き出された文書に挿入される文。実のところ、これが最も重要なコマンドであり、とても複雑になることがあります。このコマンドは、一度だけ必ず現れなくてはなりません
17242
17243 \end_layout
17244
17245 \begin_layout Description
17246 \begin_inset Flex Code
17247 status collapsed
17248
17249 \begin_layout Plain Layout
17250 Preamble
17251 \begin_inset space ~
17252 \end_inset
17253
17254 <名称>
17255 \end_layout
17256
17257 \end_inset
17258
17259  このコマンドは、LaTeXプリアンブルに入れるプリアンブル片を指定します。これは
17260 \begin_inset Flex Code
17261 status collapsed
17262
17263 \begin_layout Plain Layout
17264 PreambleDef
17265 \end_layout
17266
17267 \end_inset
17268
17269  \SpecialChar \ldots{}
17270  
17271 \begin_inset Flex Code
17272 status collapsed
17273
17274 \begin_layout Plain Layout
17275 PreambleDefEnd
17276 \end_layout
17277
17278 \end_inset
17279
17280 を使用して定義しなくてはなりません。このコマンドは全く登場しなくても1回以上現れても構いません。
17281 \end_layout
17282
17283 \begin_layout Description
17284 \begin_inset Flex Code
17285 status collapsed
17286
17287 \begin_layout Plain Layout
17288 ReferencedFile
17289 \begin_inset space ~
17290 \end_inset
17291
17292 <書式>
17293 \begin_inset space ~
17294 \end_inset
17295
17296 <ファイル名>
17297 \end_layout
17298
17299 \end_inset
17300
17301  このコマンドは、変換過程で生成され、特定の書き出し書式に必要とされるファイルを示します。ファイル名が相対パスである場合には、親文書に対する相対パスとして解釈さ
17302 れます。このコマンドは全く登場しなくても1回以上現れても構いません。
17303 \end_layout
17304
17305 \begin_layout Description
17306 \begin_inset Flex Code
17307 status collapsed
17308
17309 \begin_layout Plain Layout
17310 Requirement
17311 \begin_inset space ~
17312 \end_inset
17313
17314 <package>
17315 \end_layout
17316
17317 \end_inset
17318
17319  必要とされるLaTeXパッケージ名。パッケージは、LaTeXプリアンブル中で
17320 \begin_inset Flex Code
17321 status collapsed
17322
17323 \begin_layout Plain Layout
17324
17325 \backslash
17326 usepackage{}
17327 \end_layout
17328
17329 \end_inset
17330
17331 を使って取り込まれます。このコマンドは全く登場しなくても1回以上現れても構いません。
17332 \end_layout
17333
17334 \begin_layout Description
17335 \begin_inset Flex Code
17336 status collapsed
17337
17338 \begin_layout Plain Layout
17339 TransformCommand
17340 \begin_inset space ~
17341 \end_inset
17342
17343 Rotate
17344 \begin_inset space ~
17345 \end_inset
17346
17347 RotationLatexCommand
17348 \end_layout
17349
17350 \end_inset
17351
17352  このコマンドは、回転用に、組み込みのLaTeXコマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
17353 \end_layout
17354
17355 \begin_layout Description
17356 \begin_inset Flex Code
17357 status collapsed
17358
17359 \begin_layout Plain Layout
17360 TransformCommand
17361 \begin_inset space ~
17362 \end_inset
17363
17364 Resize
17365 \begin_inset space ~
17366 \end_inset
17367
17368 ResizeLatexCommand
17369 \end_layout
17370
17371 \end_inset
17372
17373  このコマンドは、伸縮用に、組み込みのLaTeXコマンドを使用するように指定します。このコマンドは、1回現れても全く現れなくても構いません。
17374 \end_layout
17375
17376 \begin_layout Description
17377 \begin_inset Flex Code
17378 status collapsed
17379
17380 \begin_layout Plain Layout
17381 TransformOption
17382 \begin_inset space ~
17383 \end_inset
17384
17385 Rotate
17386 \begin_inset space ~
17387 \end_inset
17388
17389 RotationLatexOption
17390 \end_layout
17391
17392 \end_inset
17393
17394  このコマンドは、回転が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
17395 \end_layout
17396
17397 \begin_layout Description
17398 \begin_inset Flex Code
17399 status collapsed
17400
17401 \begin_layout Plain Layout
17402 TransformOption
17403 \begin_inset space ~
17404 \end_inset
17405
17406 Resize
17407 \begin_inset space ~
17408 \end_inset
17409
17410 ResizeLatexOption
17411 \end_layout
17412
17413 \end_inset
17414
17415  このコマンドは、伸縮が非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
17416 \end_layout
17417
17418 \begin_layout Description
17419 \begin_inset Flex Code
17420 status collapsed
17421
17422 \begin_layout Plain Layout
17423 TransformOption
17424 \begin_inset space ~
17425 \end_inset
17426
17427 Clip
17428 \begin_inset space ~
17429 \end_inset
17430
17431 ClipLatexOption
17432 \end_layout
17433
17434 \end_inset
17435
17436  このコマンドは、切り抜きが非必須引数を通じて行われるように指定します。このコマンドは、1回現れても全く現れなくても構いません。
17437 \end_layout
17438
17439 \begin_layout Description
17440 \begin_inset Flex Code
17441 status collapsed
17442
17443 \begin_layout Plain Layout
17444 TransformOption
17445 \begin_inset space ~
17446 \end_inset
17447
17448 Extra
17449 \begin_inset space ~
17450 \end_inset
17451
17452 ExtraLatexOption
17453 \end_layout
17454
17455 \end_inset
17456
17457  このコマンドは、追加の非必須引数を使用することを指定します。このコマンドは、1回現れても全く現れなくても構いません。
17458 \end_layout
17459
17460 \begin_layout Description
17461 \begin_inset Flex Code
17462 status collapsed
17463
17464 \begin_layout Plain Layout
17465 UpdateFormat
17466 \begin_inset space ~
17467 \end_inset
17468
17469 <書式>
17470 \end_layout
17471
17472 \end_inset
17473
17474  変換されたファイルのファイル書式。これは、LyXが知っている書式名でなくてはなりません(
17475 \begin_inset Flex MenuItem
17476 status collapsed
17477
17478 \begin_layout Plain Layout
17479 ツール\SpecialChar \menuseparator
17480 設定:変換子
17481 \end_layout
17482
17483 \end_inset
17484
17485 ダイアログを参照)。このコマンドは、一度だけ必ず現れなくてはなりません。
17486 \end_layout
17487
17488 \begin_layout Description
17489 \begin_inset Flex Code
17490 status collapsed
17491
17492 \begin_layout Plain Layout
17493 UpdateResult
17494 \begin_inset space ~
17495 \end_inset
17496
17497 <ファイル名>
17498 \end_layout
17499
17500 \end_inset
17501
17502  変換されたファイルのファイル名。ファイル名は絶対パスでなくてはなりません。このコマンドは、一度だけ必ず現れなくてはなりません。
17503 \end_layout
17504
17505 \begin_layout Subsection
17506 プリアンブルの定義
17507 \end_layout
17508
17509 \begin_layout Standard
17510 外用ひな型設定ファイルには、
17511 \begin_inset Flex Code
17512 status collapsed
17513
17514 \begin_layout Plain Layout
17515 PreambleDef
17516 \end_layout
17517
17518 \end_inset
17519
17520  \SpecialChar \ldots{}
17521  
17522 \begin_inset Flex Code
17523 status collapsed
17524
17525 \begin_layout Plain Layout
17526 PreambleDefEnd
17527 \end_layout
17528
17529 \end_inset
17530
17531 で囲んだプリアンブル定義を追加することができます。これらの定義は、ひな型の
17532 \begin_inset Flex Code
17533 status collapsed
17534
17535 \begin_layout Plain Layout
17536 Format
17537 \end_layout
17538
17539 \end_inset
17540
17541 部で使用することができます。
17542 \end_layout
17543
17544 \begin_layout Section
17545 代入機構
17546 \end_layout
17547
17548 \begin_layout Standard
17549 外部素材機構が外部プログラムを呼び出すときには、ひな型設定ファイルで定義されたコマンドにしたがって行われます。これらのコマンドには、実行前に展開されるマクロをい
17550 ろいろ入れることができます。実行は、つねに元の文書があるディレクトリで行われます。
17551 \end_layout
17552
17553 \begin_layout Standard
17554 また、外部素材が表示されるときにはいつでも、その名称は代入機構によって組み立てられ、ひな型定義中の他のほとんどのコマンドも代入をサポートしています。
17555 \end_layout
17556
17557 \begin_layout Standard
17558 使用できるマクロは以下の通りです。
17559 \end_layout
17560
17561 \begin_layout Description
17562 \begin_inset Flex Code
17563 status collapsed
17564
17565 \begin_layout Plain Layout
17566 $$AbsOrRelPathMaster
17567 \end_layout
17568
17569 \end_inset
17570
17571  LyX親文書への絶対ファイルパスないしは相対ファイルパス
17572 \end_layout
17573
17574 \begin_layout Description
17575 \begin_inset Flex Code
17576 status collapsed
17577
17578 \begin_layout Plain Layout
17579 $$AbsOrRelPathParent
17580 \end_layout
17581
17582 \end_inset
17583
17584  LyX文書への絶対ファイルパスないしは相対ファイルパス
17585 \end_layout
17586
17587 \begin_layout Description
17588 \begin_inset Flex Code
17589 status collapsed
17590
17591 \begin_layout Plain Layout
17592 $$AbsPath
17593 \end_layout
17594
17595 \end_inset
17596
17597  絶対ファイルパス
17598 \end_layout
17599
17600 \begin_layout Description
17601 \begin_inset Flex Code
17602 status collapsed
17603
17604 \begin_layout Plain Layout
17605 $$Basename
17606 \end_layout
17607
17608 \end_inset
17609
17610  パスおよび拡張子を除いたファイル名
17611 \end_layout
17612
17613 \begin_layout Description
17614 \begin_inset Flex Code
17615 status collapsed
17616
17617 \begin_layout Plain Layout
17618 $$Contents(
17619 \begin_inset Quotes eld
17620 \end_inset
17621
17622 filename.ext
17623 \begin_inset Quotes erd
17624 \end_inset
17625
17626 )
17627 \end_layout
17628
17629 \end_inset
17630
17631  このマクロは、
17632 \begin_inset Flex Code
17633 status collapsed
17634
17635 \begin_layout Plain Layout
17636 filename.ext
17637 \end_layout
17638
17639 \end_inset
17640
17641 と云う名のファイルの中身を展開します。
17642 \end_layout
17643
17644 \begin_layout Description
17645 \begin_inset Flex Code
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 $$Extension
17650 \end_layout
17651
17652 \end_inset
17653
17654  ファイル拡張子(点を含む)
17655 \end_layout
17656
17657 \begin_layout Description
17658 \begin_inset Flex Code
17659 status collapsed
17660
17661 \begin_layout Plain Layout
17662 $$FName
17663 \end_layout
17664
17665 \end_inset
17666
17667  外部素材ダイアログで指定されたファイルのファイル名。これはLyX文書への絶対パスでも良いですし、相対パスでも構いません。
17668 \end_layout
17669
17670 \begin_layout Description
17671 \begin_inset Flex Code
17672 status collapsed
17673
17674 \begin_layout Plain Layout
17675 $$FPath
17676 \end_layout
17677
17678 \end_inset
17679
17680  
17681 \begin_inset Flex Code
17682 status collapsed
17683
17684 \begin_layout Plain Layout
17685 $$FName
17686 \end_layout
17687
17688 \end_inset
17689
17690 のパス部分(LyX文書への絶対パス名か相対パス名)
17691 \end_layout
17692
17693 \begin_layout Description
17694 \begin_inset Flex Code
17695 status collapsed
17696
17697 \begin_layout Plain Layout
17698 $$RelPathMaster
17699 \end_layout
17700
17701 \end_inset
17702
17703  LyX親文書への相対ファイルパス
17704 \end_layout
17705
17706 \begin_layout Description
17707 \begin_inset Flex Code
17708 status collapsed
17709
17710 \begin_layout Plain Layout
17711 $$RelPathParent
17712 \end_layout
17713
17714 \end_inset
17715
17716  LyX文書への相対ファイルパス
17717 \end_layout
17718
17719 \begin_layout Description
17720 \begin_inset Flex Code
17721 status collapsed
17722
17723 \begin_layout Plain Layout
17724 $$Sysdir
17725 \end_layout
17726
17727 \end_inset
17728
17729  このマクロは、システムディレクトリの絶対パスを展開します。これは、典型的には、LyXに同梱されているヘルパースクリプト群を示したりするのに使用されます。
17730 \end_layout
17731
17732 \begin_layout Description
17733 \begin_inset Flex Code
17734 status collapsed
17735
17736 \begin_layout Plain Layout
17737 $$Tempname
17738 \end_layout
17739
17740 \end_inset
17741
17742  元の文書が閉じられたり、挿入されていた外部素材が削除されたりすると自動的に削除される一時ファイルのフルパスとファイル名。
17743 \end_layout
17744
17745 \begin_layout Standard
17746 パスを示すマクロはすべて最後のディレクトリ区切りも含んでいますので、たとえば絶対パスのファイル名を 
17747 \begin_inset Flex Code
17748 status collapsed
17749
17750 \begin_layout Plain Layout
17751 $$AbsPath$$Basename$$Extension
17752 \end_layout
17753
17754 \end_inset
17755
17756 のようにして作ることができます。
17757 \end_layout
17758
17759 \begin_layout Standard
17760 上記マクロは、特記しない限りはすべてのコマンドで代入が行われます。
17761 \begin_inset Flex Code
17762 status collapsed
17763
17764 \begin_layout Plain Layout
17765 Transform
17766 \end_layout
17767
17768 \end_inset
17769
17770 コマンドと
17771 \begin_inset Flex Code
17772 status collapsed
17773
17774 \begin_layout Plain Layout
17775 TransformCommand
17776 \end_layout
17777
17778 \end_inset
17779
17780 コマンドが有効にされている場合、
17781 \begin_inset Flex Code
17782 status collapsed
17783
17784 \begin_layout Plain Layout
17785 Product
17786 \end_layout
17787
17788 \end_inset
17789
17790 コマンドは、これらに加えて以下の代入もサポートします。
17791 \end_layout
17792
17793 \begin_layout Description
17794 \begin_inset Flex Code
17795 status collapsed
17796
17797 \begin_layout Plain Layout
17798 $$ResizeFront
17799 \end_layout
17800
17801 \end_inset
17802
17803  伸縮コマンドの前置部。
17804 \end_layout
17805
17806 \begin_layout Description
17807 \begin_inset Flex Code
17808 status collapsed
17809
17810 \begin_layout Plain Layout
17811 $$ResizeBack
17812 \end_layout
17813
17814 \end_inset
17815
17816  伸縮コマンドの後置部。
17817 \end_layout
17818
17819 \begin_layout Description
17820 \begin_inset Flex Code
17821 status collapsed
17822
17823 \begin_layout Plain Layout
17824 $$RotateFront
17825 \end_layout
17826
17827 \end_inset
17828
17829  回転コマンドの前置部。
17830 \end_layout
17831
17832 \begin_layout Description
17833 \begin_inset Flex Code
17834 status collapsed
17835
17836 \begin_layout Plain Layout
17837 $$RotateBack
17838 \end_layout
17839
17840 \end_inset
17841
17842  回転コマンドの後置部。
17843 \end_layout
17844
17845 \begin_layout Standard
17846 \begin_inset Flex Code
17847 status collapsed
17848
17849 \begin_layout Plain Layout
17850 Option
17851 \end_layout
17852
17853 \end_inset
17854
17855 コマンドの値に入れる文字列では、
17856 \begin_inset Flex Code
17857 status collapsed
17858
17859 \begin_layout Plain Layout
17860 Transform
17861 \end_layout
17862
17863 \end_inset
17864
17865 コマンドと
17866 \begin_inset Flex Code
17867 status collapsed
17868
17869 \begin_layout Plain Layout
17870 TransformOption
17871 \end_layout
17872
17873 \end_inset
17874
17875 コマンドが有効にされていれば、以下の代入もサポートされます。
17876 \end_layout
17877
17878 \begin_layout Description
17879 \begin_inset Flex Code
17880 status collapsed
17881
17882 \begin_layout Plain Layout
17883 $$Clip
17884 \end_layout
17885
17886 \end_inset
17887
17888  切り抜きオプション。
17889 \end_layout
17890
17891 \begin_layout Description
17892 \begin_inset Flex Code
17893 status collapsed
17894
17895 \begin_layout Plain Layout
17896 $$Extra
17897 \end_layout
17898
17899 \end_inset
17900
17901  追加オプション。
17902 \end_layout
17903
17904 \begin_layout Description
17905 \begin_inset Flex Code
17906 status collapsed
17907
17908 \begin_layout Plain Layout
17909 $$Resize
17910 \end_layout
17911
17912 \end_inset
17913
17914  伸縮オプション。
17915 \end_layout
17916
17917 \begin_layout Description
17918 \begin_inset Flex Code
17919 status collapsed
17920
17921 \begin_layout Plain Layout
17922 $$Rotate
17923 \end_layout
17924
17925 \end_inset
17926
17927  回転オプション。
17928 \end_layout
17929
17930 \begin_layout Standard
17931 どうしてこんなに多くのパス関連マクロがあるのか不思議に思われるかもしれません。主に以下の二つの理由があります。
17932 \end_layout
17933
17934 \begin_layout Enumerate
17935 相対ファイル名と絶対ファイル名は、それぞれ相対的あるいは絶対的なままで維持されなくてはなりません。ユーザにはどちらかの形を好む理由があるのかもしれません。たとえ
17936 ば相対名は、いろいろなマシンで作業をする持ち運び用の文書で役立ちます。絶対名は、プログラムによっては必要とされることがあり得ます。
17937 \end_layout
17938
17939 \begin_layout Enumerate
17940 LaTeXは、相対ファイル名に関して、LyXや入れ子にした取り込みファイル中の他のプログラムとは異なった取り扱いを行います。LyXにとって相対ファイル名とは、常
17941 にこのファイル名が書かれている文書に対して相対的なものになります。LaTeXにとっての相対ファイル名は、常に親文書に対するものになります。これら二つの定義は、一
17942 つの文書しかないときには同じですが、部分文書を含む親文書があるときには異なったものとなってきます。つまり、相対ファイル名は、LaTeXに提示されるときに変換され
17943 なくてはならないのです。幸い、正しいマクロを選びさえすれば、これはLyXが自動的に行ってくれます。
17944 \end_layout
17945
17946 \begin_layout Standard
17947 すると、新しく作ったひな型定義では、どのパス関連マクロを使うべきでしょうか。このルールは難しくありません。つまり、
17948 \end_layout
17949
17950 \begin_layout Itemize
17951 絶対パスが必要とされるときには
17952 \begin_inset Flex Code
17953 status collapsed
17954
17955 \begin_layout Plain Layout
17956 $$AbsPath
17957 \end_layout
17958
17959 \end_inset
17960
17961 を使う。
17962 \end_layout
17963
17964 \begin_layout Itemize
17965 代入された文字列が、LaTeXインプットの一種である場合には、
17966 \begin_inset Flex Code
17967 status collapsed
17968
17969 \begin_layout Plain Layout
17970 $$AbsOrRelPathMaster
17971 \end_layout
17972
17973 \end_inset
17974
17975 を使う。
17976 \end_layout
17977
17978 \begin_layout Itemize
17979 それ以外ならば、ユーザの選択を尊重するために
17980 \begin_inset Flex Code
17981 status collapsed
17982
17983 \begin_layout Plain Layout
17984 $$AbsOrRelPathParent
17985 \end_layout
17986
17987 \end_inset
17988
17989 を使う。
17990 \end_layout
17991
17992 \begin_layout Standard
17993 このルールが機能せずに、たとえば相対名が必要となる特殊な場合もありますが、通常、上記でうまく動作します。特殊例の例としては、上述のXFigひな型での
17994 \begin_inset Flex Code
17995 status collapsed
17996
17997 \begin_layout Plain Layout
17998 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
17999 \end_layout
18000
18001 \end_inset
18002
18003 というコマンドがあります。この場合、
18004 \begin_inset Flex Code
18005 status collapsed
18006
18007 \begin_layout Plain Layout
18008 .pstex_t
18009 \end_layout
18010
18011 \end_inset
18012
18013 ファイルの複写子は、ファイル内容を書き換えるのに相対名を必要とするために、絶対名を使用することができないのです。
18014 \end_layout
18015
18016 \begin_layout Section
18017 セキュリティに関する論点
18018 \begin_inset CommandInset label
18019 LatexCommand label
18020 name "sec:セキュリティに関する論点"
18021
18022 \end_inset
18023
18024
18025 \end_layout
18026
18027 \begin_layout Standard
18028 外部素材機能は、多くの外部プログラムとの橋渡しをし、しかもそれを自動的に行うので、そのセキュリティ面での帰結を考慮しなくてはなりません。特に、ユーザは好きなファ
18029 イル名やパラメータ文字列を含めることが許されていて、しかもそれらがコマンドに展開されるので、ユーザが文書を閲覧したり印刷したりしたときに、任意のコマンドを実行す
18030 ることができるような悪意ある文書を作成することが可能となりましょう。これは、我々がぜひとも避けたいことなのです。
18031 \end_layout
18032
18033 \begin_layout Standard
18034 しかしながら、外部プログラムコマンドはひな型設定ファイルでのみ指定されているので、LyXが安全なひな型でのみ適切に設定されているならば、セキュリティ上の問題は発
18035 生しません。これは、外部プログラムが
18036 \begin_inset Flex Code
18037 status collapsed
18038
18039 \begin_layout Plain Layout
18040 system
18041 \end_layout
18042
18043 \end_inset
18044
18045 システムコールではなく、
18046 \begin_inset Flex Code
18047 status collapsed
18048
18049 \begin_layout Plain Layout
18050 execvp
18051 \end_layout
18052
18053 \end_inset
18054
18055 システムコールで呼び出されているため、ファイル名やパラメータ部からシェル経由で任意のコマンドを実行することはできないためです。
18056 \end_layout
18057
18058 \begin_layout Standard
18059 これは、外部素材ひな型でどのようなコマンド文字列を使用することのできるかについて、制限があることを意味します。特に、パイプやリダイレクトはそのまま使用することは
18060 できません。これは、LyXの安全性を維持するためにそうしなくてはならないのです。もしシェル機能の一部を使用したいとすると、これを完全に統御の下においたまま行う安
18061 全なスクリプトを書いた上で、このスクリプトをコマンド文字列から呼び出すようにしなくてはなりません。
18062 \end_layout
18063
18064 \begin_layout Standard
18065 シェルと直接やりとりするひな型を設計することは可能ではありますが、悪意のあるユーザが狡猾なファイル名やパラメータを書くことによって、任意のコマンドを実行できるよ
18066 うになるため、一般的には、統御下に置いた状態で
18067 \begin_inset Flex Code
18068 status collapsed
18069
18070 \begin_layout Plain Layout
18071 execvp
18072 \end_layout
18073
18074 \end_inset
18075
18076 システムコールを使用する安全なスクリプトのみを使用することをお勧めします。確かに、管理された環境下で使用する分には、通常のシェルスクリプトを使用する方に流れる誘
18077 惑はあります。そうした場合には、お使いのシステムに簡単に濫用することのできるセキュリティホールを、
18078 \emph on
18079 間違いなく
18080 \emph default
18081 導入することを理解しておいてください。オープンソースの伝統に従って、私たちは人々に新しいひな型を投稿してくれるよう促していますが、そのような安全でないひな型はL
18082 yXの標準頒布版には取り入れるべきでないとすることには当然の正当性があります。公式の頒布チャンネルから出荷されているLyXには、安全でないひな型は決して入ってい
18083 ません。
18084 \end_layout
18085
18086 \begin_layout Standard
18087 外部素材を含めることで強力な力を手に入れることができますが、この力とともにセキュリティ上の危険を導入してしまわないように気をつける必要があります。無防備なスクリ
18088 プトのたった一行に入り込んだ、ちょっとしたエラーが、巨大なセキュリティ上の問題に扉を開きうるのです。したがって、もしこの問題を完全に理解していないならば、特定の
18089 ひな型が安全であるかどうか疑問がある際には、知識豊富なセキュリティの専門家か、LyX開発チームに相談してみてください。そしてこの相談は、管理されていない環境下で
18090 これを使用する前に、行うようにしてください。
18091 \end_layout
18092
18093 \end_body
18094 \end_document