]> git.lyx.org Git - features.git/blob - lib/doc/ja/Additional.lyx
11954b6b4e3356ff4a0128fe0e684b833566e55c
[features.git] / lib / doc / ja / Additional.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 jsbook
6 \begin_preamble
7 % DO NOT ALTER THIS PREAMBLE!!!
8 %
9 % This preamble is designed to ensure that the manual prints
10 % out as advertised. If you mess with this preamble,
11 % parts of the manual 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 \ifnum 42146=\euc"A4A2 \AtBeginDvi{\special{pdf:tounicode EUC-UCS2}}\else
17 \AtBeginDvi{\special{pdf:tounicode 90ms-RKSJ-UCS2}}\fi
18
19 % if pdflatex is used
20 \usepackage{ifpdf}
21 \ifpdf
22
23  % set fonts for nicer pdf view
24  \IfFileExists{lmodern.sty}
25   {\usepackage{lmodern}}{}
26
27 \fi % end if pdflatex is used
28
29 % the pages of the TOC are numbered roman
30 % and a PDF-bookmark for the TOC is added
31 \pagenumbering{roman}
32 \let\myTOC\tableofcontents
33 \renewcommand{\tableofcontents}{%
34  \pdfbookmark[1]{\contentsname}{}
35  \myTOC
36  \cleardoublepage
37  \pagenumbering{arabic}}
38
39 % used for multi-column text
40 \usepackage{multicol}
41
42 % extra space for tables
43 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
44
45 \usepackage{t1enc}
46 \end_preamble
47 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
48 \use_default_options false
49 \begin_modules
50 logicalmkup
51 theorems-ams
52 theorems-ams-extended
53 \end_modules
54 \maintain_unincluded_children false
55 \begin_local_layout
56 Format 7
57 InsetLayout CharStyle:MenuItem
58 LyxType               charstyle
59 LabelString           menu
60 LatexType             command
61 LatexName             menuitem
62 Font
63 Family              Sans
64 EndFont
65 Preamble
66 \newcommand*{\menuitem}[1]{{\sffamily #1}}
67 EndPreamble
68 End
69 \end_local_layout
70 \language japanese
71 \language_package default
72 \inputencoding JIS-pLaTeX
73 \fontencoding global
74 \font_roman default
75 \font_sans default
76 \font_typewriter default
77 \font_default_family default
78 \use_non_tex_fonts false
79 \font_sc false
80 \font_osf false
81 \font_sf_scale 100
82 \font_tt_scale 100
83
84 \graphics default
85 \default_output_format default
86 \output_sync 0
87 \bibtex_command default
88 \index_command default
89 \paperfontsize 12
90 \spacing single
91 \use_hyperref true
92 \pdf_title "LyX拡張機能篇"
93 \pdf_author "LyXプロジェクトチーム"
94 \pdf_subject "LyX拡張機能取扱説明書"
95 \pdf_keywords "LyX、取扱説明書、文書化、拡張"
96 \pdf_bookmarks true
97 \pdf_bookmarksnumbered true
98 \pdf_bookmarksopen false
99 \pdf_bookmarksopenlevel 1
100 \pdf_breaklinks false
101 \pdf_pdfborder false
102 \pdf_colorlinks true
103 \pdf_backref false
104 \pdf_pdfusetitle false
105 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
106 \papersize default
107 \use_geometry false
108 \use_amsmath 1
109 \use_esint 0
110 \use_mhchem 1
111 \use_mathdots 1
112 \cite_engine basic
113 \use_bibtopic false
114 \use_indices false
115 \paperorientation portrait
116 \suppress_date false
117 \use_refstyle 0
118 \index 索引
119 \shortcut idx
120 \color #008000
121 \end_index
122 \secnumdepth 3
123 \tocdepth 3
124 \paragraph_separation indent
125 \paragraph_indentation default
126 \quotes_language english
127 \papercolumns 1
128 \papersides 2
129 \paperpagestyle headings
130 \tracking_changes false
131 \output_changes false
132 \html_math_output 0
133 \html_css_as_file 0
134 \html_be_strict true
135 \end_header
136
137 \begin_body
138
139 \begin_layout Title
140 LyXの高度な機能
141 \begin_inset Newline newline
142 \end_inset
143
144
145 \begin_inset Newline newline
146 \end_inset
147
148
149 \size large
150 Version 2.0.x
151 \end_layout
152
153 \begin_layout Author
154 LyXプロジェクトチーム
155 \begin_inset Foot
156 status collapsed
157
158 \begin_layout Plain Layout
159 このファイルは主にRichard Heckによって管理されています。コメントをされたい場合や誤りを発見された場合には、LyX文書化メーリングリスト
160 \begin_inset Flex Code
161 status open
162
163 \begin_layout Plain Layout
164 \noindent
165
166 \family typewriter
167 <lyx-docs@lists.lyx.org>
168 \end_layout
169
170 \end_inset
171
172 に英文にてお知らせ下さい。この文書の翻訳は、当初人見光太郎氏が行った貢献に基づいています。
173 \end_layout
174
175 \end_inset
176
177  
178 \end_layout
179
180 \begin_layout Standard
181 \begin_inset CommandInset toc
182 LatexCommand tableofcontents
183
184 \end_inset
185
186
187 \end_layout
188
189 \begin_layout Chapter
190 はじめに
191 \end_layout
192
193 \begin_layout Standard
194 いまお読みの取扱説明書『
195 \emph on
196 LyX拡張機能篇
197 \emph default
198 』は、基本的には『
199 \emph on
200 ユーザーの手引き
201 \emph default
202 』の第二部です。この文書を別部とした理由は、単純に『
203 \emph on
204 ユーザーの手引き
205 \emph default
206 』がすでに大部となっていることと、『
207 \emph on
208 ユーザーの手引き
209 \emph default
210 』が、ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです。一方で、LyXプロジェクトチームは、LyXを各設定ファイルと外部パッケージ
211 によって拡張可能な状態にしておくことを長期的な目標にしています。つまり、あるLaTeXパッケージをサポートしたい場合に、LyX自身に変更を加えることなく、当該パ
212 ッケージ用のレイアウトファイル(ないしモジュール)を作成すればいいようにしているのです。すでにこのような形で、いくつもの新機能がユーザーによって追加されています
213 。この取扱説明書は、そのような形での貢献を文書化する冊子として位置付けられています。
214 \end_layout
215
216 \begin_layout Standard
217 この取扱説明書では、ファックスのサポート・バージョン管理・SGMLサポートのような、正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
218 しています。さらに、LaTeXの強力な機能を直接使って文書を美しく仕上げるための、LaTeXツールやテクニックを述べた章も収録しています。つきつめれば、LyXと
219 はあくまでWYSIWYMたることを企図しているため、LaTeXの全機能の一部へのインタフェースは用意するものの、すべてを用意することはないでしょう。
220 \end_layout
221
222 \begin_layout Standard
223 もし、まだ『
224 \emph on
225 はじめの一歩
226 \emph default
227 』をお読みでなかったら、この取扱説明書から読みはじめるのは誤りです。『
228 \emph on
229 はじめの一歩
230 \emph default
231 』には、全取扱説明書に共通の表記法と書式が説明されていますので、まずそれからお読みください。さらに、この取扱説明書を読もうとする前に、『
232 \emph on
233 ユーザーの手引き
234 \emph default
235 』をよくお読みになって、LyXの全基本機能を習得してください。
236 \end_layout
237
238 \begin_layout Standard
239 この取扱説明書の取り上げられている話題は、LyXがLaTeXにどう関わっているかに強く関係していますので、まず次章では、LyXの内部動作がどうなっているか、Ly
240 Xに希望するLaTeXコードを正確に生成させるにはどうしたらいいかを収録しています。本章は、あきらかに熟練LyXユーザー向けの章となっています。
241 \end_layout
242
243 \begin_layout Chapter
244 LyXとLaTeX
245 \end_layout
246
247 \begin_layout Section
248 LyXはLaTeXをどう使っているか
249 \end_layout
250
251 \begin_layout Standard
252 本章
253 \family roman
254 \series medium
255 \shape up
256 \size normal
257 \emph off
258 \bar no
259 \noun off
260 \color none
261 は、TeX熟練者とLaTeXに興味のある方向けの章です。ここでは、LyXとLaTeXが、印刷可能な出力を生成するのに、どのように協働しているのかを説明します。全
262 取扱説明書中で本章だけは、LaTeXのことを多少なりともご存知であることを前提とします。
263 \end_layout
264
265 \begin_layout Standard
266
267 \family roman
268 \series medium
269 \shape up
270 \size normal
271 \emph off
272 \bar no
273 \noun off
274 \color none
275 かつてLyXは、「LaTeXの
276 \family default
277 \series default
278 \shape default
279 \size default
280 \emph default
281 \bar default
282 \noun default
283 \color inherit
284 WYSIWYM
285 \family roman
286 \series medium
287 \shape up
288 \size normal
289 \emph off
290 \bar no
291 \noun off
292 \color none
293 なフロントエンド」と呼ばれていましたが、いまではこれは正しくありません。LaTeXのフロントエンドは、いくつも出回っています
294 \begin_inset Foot
295 status collapsed
296
297 \begin_layout Plain Layout
298
299 \family roman
300 \series medium
301 \shape up
302 \size normal
303 \emph off
304 \bar no
305 \noun off
306 \color none
307 有名なものとしては、Linux上のTeXmakerとkile、OSX上のTeXshopなどがあります。もちろんviとemacsのLaTeXモードも含まれます。
308 \end_layout
309
310 \end_inset
311
312 。これらは、基本的にLaTeXを走らせる機能を有し、編集中のファイルのエラーを表示する機能を持ったテキストエディタです。LyXも、エディタであり、LaTeXを走
313 らせる機能を有し、ファイル中のエラーを指摘しますが、それ以上にもっともっと多くのことをしてくれます。
314 \family default
315 \series default
316 \shape default
317 \size default
318 \emph default
319 \bar default
320 \noun default
321 \color inherit
322 ひとつには、
323 \family roman
324 \series medium
325 \shape up
326 \size normal
327 \emph off
328 \bar no
329 \noun off
330 \color none
331 LyXを効果的に使うのに、LaTeXの知識が必要とされないことが挙げられます。またLyXは、それ自身、いくつかの拡張をLaTeXに加えています。時間のあるときに
332 でも、いちど以下の手順を試してみてください。まず
333 \family sans
334 \series default
335 \shape default
336 \size default
337 \emph default
338 \bar default
339 \noun default
340 \color inherit
341
342 \begin_inset Flex MenuItem
343 status collapsed
344
345 \begin_layout Plain Layout
346
347 \family sans
348 ファイル
349 \end_layout
350
351 \end_inset
352
353
354 \family roman
355 \series medium
356 \shape up
357 \size normal
358 \emph off
359 \bar no
360 \noun off
361 \color none
362 メニューから
363 \family sans
364 \series default
365 \shape default
366 \size default
367 \emph default
368 \bar default
369 \noun default
370 \color inherit
371
372 \begin_inset Flex MenuItem
373 status collapsed
374
375 \begin_layout Plain Layout
376
377 \family sans
378 エクスポート\SpecialChar \menuseparator
379 LaTeX
380 \end_layout
381
382 \end_inset
383
384
385 \family roman
386 \series medium
387 \shape up
388 \size normal
389 \emph off
390 \bar no
391 \noun off
392 \color none
393 (あるいは
394 \family sans
395 \series default
396 \shape default
397 \size default
398 \emph default
399 \bar default
400 \noun default
401 \color inherit
402
403 \begin_inset Flex MenuItem
404 status collapsed
405
406 \begin_layout Plain Layout
407
408 \family sans
409 表示\SpecialChar \menuseparator
410 ソースを閲覧
411 \end_layout
412
413 \end_inset
414
415
416 \family roman
417 \series medium
418 \shape up
419 \size normal
420 \emph off
421 \bar no
422 \noun off
423 \color none
424 )を選択し、そこから出力される
425 \begin_inset Flex Code
426 status collapsed
427
428 \begin_layout Plain Layout
429
430 \family typewriter
431 .tex
432 \end_layout
433
434 \end_inset
435
436 ファイルのプリアンブルをご覧ください。LyXによって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
437 \family default
438 \series default
439 \shape default
440 \size default
441 \emph default
442 \bar default
443 \noun default
444 \color inherit
445 。これらのマクロは、文書中で使用する機能に応じて、自動的に定義されます。
446 \end_layout
447
448 \begin_layout Standard
449
450 \family roman
451 \series medium
452 \shape up
453 \size normal
454 \emph off
455 \bar no
456 \noun off
457 \color none
458 自動的にLaTeXを実行するコマンドが、以下のようにいくつかあります。
459 \end_layout
460
461 \begin_layout Itemize
462 \begin_inset Flex MenuItem
463 status collapsed
464
465 \begin_layout Plain Layout
466
467 \bar under
468 表示\SpecialChar \menuseparator
469
470 \emph on
471 書式
472 \end_layout
473
474 \end_inset
475
476
477 \end_layout
478
479 \begin_layout Itemize
480
481 \family sans
482 \begin_inset Flex MenuItem
483 status collapsed
484
485 \begin_layout Plain Layout
486
487 \bar under
488 表示\SpecialChar \menuseparator
489 更新\SpecialChar \menuseparator
490
491 \emph on
492 書式
493 \end_layout
494
495 \end_inset
496
497
498 \end_layout
499
500 \begin_layout Itemize
501
502 \family sans
503 \begin_inset Flex MenuItem
504 status collapsed
505
506 \begin_layout Plain Layout
507
508 \bar under
509 ファイル
510 \bar default
511 \SpecialChar \menuseparator
512
513 \bar under
514 印刷
515 \end_layout
516
517 \end_inset
518
519
520 \end_layout
521
522 \begin_layout Itemize
523
524 \family sans
525 \begin_inset Flex MenuItem
526 status collapsed
527
528 \begin_layout Plain Layout
529
530 \bar under
531 ファイル
532 \bar default
533 \SpecialChar \menuseparator
534
535 \bar under
536 ファックス
537 \end_layout
538
539 \end_inset
540
541
542 \end_layout
543
544 \begin_layout Standard
545
546 \family roman
547 \series medium
548 \shape up
549 \size normal
550 \emph off
551 \bar no
552 \noun off
553 \color none
554 これらは、最後にLaTeXを実行してからファイルに変更が加えられた場合のみ、LaTeXを実行します。
555 \end_layout
556
557 \begin_layout Standard
558
559 \family roman
560 \series medium
561 \shape up
562 \size normal
563 \emph off
564 \bar no
565 \noun off
566 \color none
567 LyXが編集中のファイルをLaTeXにかけるとき、LyXは以下の段階をふみます。
568 \end_layout
569
570 \begin_layout Enumerate
571
572 \family roman
573 \series medium
574 \shape up
575 \size normal
576 \emph off
577 \bar no
578 \noun off
579 \color none
580 文書をLaTeXに変換し、ファイルの拡張子を
581 \begin_inset Flex Code
582 status collapsed
583
584 \begin_layout Plain Layout
585
586 \family roman
587 \series medium
588 \shape up
589 \size normal
590 \emph off
591 \bar no
592 \noun off
593 \color none
594 .lyx
595 \end_layout
596
597 \end_inset
598
599 から
600 \begin_inset Flex Code
601 status collapsed
602
603 \begin_layout Plain Layout
604
605 \family roman
606 \series medium
607 \shape up
608 \size normal
609 \emph off
610 \bar no
611 \noun off
612 \color none
613 .tex
614 \end_layout
615
616 \end_inset
617
618 に変えて保存。
619 \end_layout
620
621 \begin_layout Enumerate
622
623 \family roman
624 \series medium
625 \shape up
626 \size normal
627 \emph off
628 \bar no
629 \noun off
630 \color none
631 この
632 \begin_inset Flex Code
633 status collapsed
634
635 \begin_layout Plain Layout
636
637 \family roman
638 \series medium
639 \shape up
640 \size normal
641 \emph off
642 \bar no
643 \noun off
644 \color none
645 .tex
646 \end_layout
647
648 \end_inset
649
650 ファイルに対して(必要に応じて複数回)LaTeXを実行し、LaTeXファイルをコンパイルするのに必要な他のコマンド(
651 \begin_inset Flex Code
652 status collapsed
653
654 \begin_layout Plain Layout
655
656 \family roman
657 \series medium
658 \shape up
659 \size normal
660 \emph off
661 \bar no
662 \noun off
663 \color none
664 bibtex
665 \end_layout
666
667 \end_inset
668
669
670 \begin_inset Flex Code
671 status collapsed
672
673 \begin_layout Plain Layout
674
675 \family roman
676 \series medium
677 \shape up
678 \size normal
679 \emph off
680 \bar no
681 \noun off
682 \color none
683 makeindex
684 \end_layout
685
686 \end_inset
687
688 など)を実行。。
689 \end_layout
690
691 \begin_layout Enumerate
692
693 \family roman
694 \series medium
695 \shape up
696 \size normal
697 \emph off
698 \bar no
699 \noun off
700 \color none
701 もしエラーがあれば、エラーログを表示。
702 \end_layout
703
704 \begin_layout Standard
705
706 \family roman
707 \series medium
708 \shape up
709 \size normal
710 \emph off
711 \bar no
712 \noun off
713 \color none
714 LaTeXを
715 \family sans
716 \series default
717 \shape default
718 \size default
719 \emph default
720 \bar default
721 \noun default
722 \color inherit
723
724 \begin_inset Flex MenuItem
725 status collapsed
726
727 \begin_layout Plain Layout
728
729 \family sans
730 表示\SpecialChar \menuseparator
731 DVI
732 \end_layout
733
734 \end_inset
735
736
737 \family roman
738 \series medium
739 \shape up
740 \size normal
741 \emph off
742 \bar no
743 \noun off
744 \color none
745 を使用して実行した場合には、LyXはこの後、DVIビューアを実行してDVIファイルを表示します。
746 \begin_inset Flex MenuItem
747 status collapsed
748
749 \begin_layout Plain Layout
750
751 \family roman
752 \series medium
753 \shape up
754 \size normal
755 \emph off
756 \bar no
757 \noun off
758 \color none
759 表示\SpecialChar \menuseparator
760 PostScript
761 \end_layout
762
763 \end_inset
764
765 を使用した場合には、LyXはさらに以下の段階をふみます。
766 \end_layout
767
768 \begin_layout Itemize
769
770 \family roman
771 \series medium
772 \shape up
773 \size normal
774 \emph off
775 \bar no
776 \noun off
777 \color none
778 \begin_inset Flex Code
779 status collapsed
780
781 \begin_layout Plain Layout
782
783 \family typewriter
784 dvips
785 \end_layout
786
787 \end_inset
788
789 を実行して、
790 \family default
791 \series default
792 \shape default
793 \size default
794 \emph default
795 \bar default
796 \noun default
797 \color inherit
798 DVI
799 \family roman
800 \series medium
801 \shape up
802 \size normal
803 \emph off
804 \bar no
805 \noun off
806 \color none
807 ファイルをPostScript®
808 \family default
809 \series default
810 \shape default
811 \size default
812 \emph default
813 \bar default
814 \noun default
815 \color inherit
816 に変換。
817 \end_layout
818
819 \begin_layout Itemize
820
821 \family roman
822 \series medium
823 \shape up
824 \size normal
825 \emph off
826 \bar no
827 \noun off
828 \color none
829 \begin_inset Flex Code
830 status collapsed
831
832 \begin_layout Plain Layout
833
834 \family typewriter
835 ghostview
836 \end_layout
837
838 \end_inset
839
840 などのPostScript®ビューアを実行して、PostScript®
841 \family default
842 \series default
843 \shape default
844 \size default
845 \emph default
846 \bar default
847 \noun default
848 \color inherit
849 ファイルを表示。
850 \end_layout
851
852 \begin_layout Standard
853 LyXは、他の書式を表示したりエクスポートしたりする際にも、同様のことを行います。
854 \end_layout
855
856 \begin_layout Section
857 LaTeXファイルをLyXに読み込む
858 \end_layout
859
860 \begin_layout Standard
861 LyXで
862 \family sans
863
864 \begin_inset Flex MenuItem
865 status collapsed
866
867 \begin_layout Plain Layout
868
869 \family sans
870 ファイル\SpecialChar \menuseparator
871 インポート\SpecialChar \menuseparator
872 LaTeX
873 \end_layout
874
875 \end_inset
876
877
878 \family roman
879 \series medium
880 \shape up
881 \size normal
882 \emph off
883 \bar no
884 \noun off
885 \color none
886 コマンドを使用すると、LaTeXファイルを
887 \family default
888 \series default
889 \shape default
890 \size default
891 \emph default
892 \bar default
893 \noun default
894  
895 \family roman
896 \series medium
897 \shape up
898 \size normal
899 \emph off
900 \bar no
901 \noun off
902 LyXにインポートすることができます。このコマンドは、
903 \family typewriter
904 \series default
905 \shape default
906 \size default
907 \emph default
908 \bar default
909 \noun default
910 \color inherit
911
912 \begin_inset Flex Code
913 status collapsed
914
915 \begin_layout Plain Layout
916
917 \family typewriter
918 tex2lyx
919 \end_layout
920
921 \end_inset
922
923
924 \family roman
925 \series medium
926 \shape up
927 \size normal
928 \emph off
929 \bar no
930 \noun off
931 \color none
932 というプログラムを呼び出し、
933 \family typewriter
934 \series default
935 \shape default
936 \size default
937 \emph default
938 \bar default
939 \noun default
940 \color inherit
941
942 \begin_inset Flex Code
943 status collapsed
944
945 \begin_layout Plain Layout
946
947 \family typewriter
948 foo.tex
949 \end_layout
950
951 \end_inset
952
953
954 \family default
955 などというファイルから
956 \begin_inset Flex Code
957 status collapsed
958
959 \begin_layout Plain Layout
960
961 \family typewriter
962 foo.lyx
963 \end_layout
964
965 \end_inset
966
967 を生成します。LyXは、この変換したファイルを開きます
968 \begin_inset Foot
969 status collapsed
970
971 \begin_layout Plain Layout
972 \begin_inset Flex Code
973 status collapsed
974
975 \begin_layout Plain Layout
976 tex2lyx
977 \end_layout
978
979 \end_inset
980
981 は、もちろんコマンドラインから実行することもできます。
982 \end_layout
983
984 \end_inset
985
986
987 \end_layout
988
989 \begin_layout Standard
990
991 \family typewriter
992 \begin_inset Flex Code
993 status collapsed
994
995 \begin_layout Plain Layout
996
997 \family typewriter
998 tex2lyx
999 \end_layout
1000
1001 \end_inset
1002
1003
1004 \family roman
1005 \series medium
1006 \shape up
1007 \size normal
1008 \emph off
1009 \bar no
1010 \noun off
1011 \color none
1012 は、文法的に正しいLaTeXファイルのほとんどを変換することができますが、すべてを変換できるわけではありません。
1013 \family typewriter
1014 \series default
1015 \shape default
1016 \size default
1017 \emph default
1018 \bar default
1019 \noun default
1020 \color inherit
1021
1022 \begin_inset Flex Code
1023 status collapsed
1024
1025 \begin_layout Plain Layout
1026
1027 \family typewriter
1028 tex2lyx
1029 \end_layout
1030
1031 \end_inset
1032
1033
1034 \family roman
1035 \series medium
1036 \shape up
1037 \size normal
1038 \emph off
1039 \bar no
1040 \noun off
1041 \color none
1042 は、理解不能な部分はTeXコードボックスの形で残しますので、ファイルを
1043 \family typewriter
1044 \series default
1045 \shape default
1046 \size default
1047 \emph default
1048 \bar default
1049 \noun default
1050 \color inherit
1051
1052 \begin_inset Flex Code
1053 status collapsed
1054
1055 \begin_layout Plain Layout
1056
1057 \family typewriter
1058 tex2lyx
1059 \end_layout
1060
1061 \end_inset
1062
1063
1064 \family roman
1065 \series medium
1066 \shape up
1067 \size normal
1068 \emph off
1069 \bar no
1070 \noun off
1071 \color none
1072 で変換したのち、TeXコードボックスを探して、手動で正しく編集してください。
1073 \end_layout
1074
1075 \begin_layout Standard
1076
1077 \family roman
1078 \series medium
1079 \shape up
1080 \size normal
1081 \emph off
1082 \bar no
1083 \noun off
1084 \color none
1085 TeXコードボックスがなにかご存じなければ、次節をお読みください。
1086 \end_layout
1087
1088 \begin_layout Section
1089 LaTeXコードを挿入する
1090 \begin_inset CommandInset label
1091 LatexCommand label
1092 name "sec:LaTeXコードを挿入する"
1093
1094 \end_inset
1095
1096
1097 \end_layout
1098
1099 \begin_layout Standard
1100
1101 \family roman
1102 \series medium
1103 \shape up
1104 \size normal
1105 \emph off
1106 \bar no
1107 \noun off
1108 \color none
1109 どのLyX文書にもつねにTeXコードを挿入することが可能であるというきわめて単純な理由によって、LaTeXにできることは、つねにLyXでも行うことができます。一
1110 方、LyXは、すべてのLaTeX構成物をLyX内に表示できるわけではなく、将来的にもそうならないでしょう。かりにLaTeXコマンドをLyX文書に挿入する必要が出
1111 てきた場合には、
1112 \begin_inset Flex Code
1113 status collapsed
1114
1115 \begin_layout Plain Layout
1116
1117 \family roman
1118 \series medium
1119 \shape up
1120 \size normal
1121 \emph off
1122 \bar no
1123 \noun off
1124 \color none
1125 TeXコード
1126 \end_layout
1127
1128 \end_inset
1129
1130 ボックスを使用してください。これは、
1131 \family sans
1132 \series default
1133 \shape default
1134 \size default
1135 \emph default
1136 \bar default
1137 \noun default
1138 \color inherit
1139
1140 \begin_inset Flex MenuItem
1141 status collapsed
1142
1143 \begin_layout Plain Layout
1144
1145 \family sans
1146 挿入\SpecialChar \menuseparator
1147 TeXコード
1148 \end_layout
1149
1150 \end_inset
1151
1152
1153 \family roman
1154 \series medium
1155 \shape up
1156 \size normal
1157 \emph off
1158 \bar no
1159 \noun off
1160 \color none
1161 から、文書中に挿入することができます。
1162 \end_layout
1163
1164 \begin_layout Standard
1165 以下は、LaTeXコマンドをLyX文書中に挿入する例です。コードは以下のようになっているとしましょう。
1166 \end_layout
1167
1168 \begin_layout LyX-Code
1169
1170 \backslash
1171 begin{tabular}{ll}
1172 \begin_inset Newline newline
1173 \end_inset
1174
1175
1176 \backslash
1177 begin{minipage}{5cm}
1178 \begin_inset Newline newline
1179 \end_inset
1180
1181 これは、ミニページ環境の例です。
1182 \begin_inset Newline newline
1183 \end_inset
1184
1185 これには、
1186 \begin_inset Newline newline
1187 \end_inset
1188
1189 (フロートでない)図表を
1190 \begin_inset Newline newline
1191 \end_inset
1192
1193 含め、ほとんど何でも
1194 \begin_inset Newline newline
1195 \end_inset
1196
1197 入れることができます。 
1198 \begin_inset Newline newline
1199 \end_inset
1200
1201
1202 \backslash
1203 end{minipage}
1204 \begin_inset Newline newline
1205 \end_inset
1206
1207 &
1208 \begin_inset Newline newline
1209 \end_inset
1210
1211
1212 \backslash
1213 begin{minipage}{5cm}
1214 \begin_inset Newline newline
1215 \end_inset
1216
1217
1218 \backslash
1219 begin{verbatim}
1220 \begin_inset Newline newline
1221 \end_inset
1222
1223
1224 \backslash
1225 begin{minipage}{5cm}
1226 \begin_inset Newline newline
1227 \end_inset
1228
1229 これ...
1230  
1231 \begin_inset Newline newline
1232 \end_inset
1233
1234
1235 \backslash
1236 end{minipage}
1237 \begin_inset Newline newline
1238 \end_inset
1239
1240
1241 \backslash
1242 end{verbatim}
1243 \begin_inset Newline newline
1244 \end_inset
1245
1246
1247 \backslash
1248 end{minipage}
1249 \begin_inset Newline newline
1250 \end_inset
1251
1252
1253 \backslash
1254 end{tabular}
1255 \end_layout
1256
1257 \begin_layout LyX-Code
1258
1259 \end_layout
1260
1261 \begin_layout Standard
1262 上記のテキストを含んだ
1263 \begin_inset Flex Code
1264 status collapsed
1265
1266 \begin_layout Plain Layout
1267 TeXコード
1268 \end_layout
1269
1270 \end_inset
1271
1272 ボックスが、この段落の直後にあります。この取扱説明書をLyX上でご覧になっていれば、TeXコード差込枠のみが見えるはずです。印刷した取扱説明書をご覧であれば、実
1273 際の結果が見れるはずです。
1274 \end_layout
1275
1276 \begin_layout Standard
1277 \begin_inset ERT
1278 status collapsed
1279
1280 \begin_layout Plain Layout
1281
1282
1283 \backslash
1284 begin{tabular}{ll}
1285 \end_layout
1286
1287 \begin_layout Plain Layout
1288
1289
1290 \backslash
1291 begin{minipage}{5cm}
1292 \end_layout
1293
1294 \begin_layout Plain Layout
1295
1296 これは、ミニページ環境の例です。これには、(フロートでない)図表を含め、ほとんど何でも入れることができます。 
1297 \backslash
1298 end{minipage}
1299 \end_layout
1300
1301 \begin_layout Plain Layout
1302
1303 &
1304 \end_layout
1305
1306 \begin_layout Plain Layout
1307
1308
1309 \backslash
1310 begin{minipage}{5cm}
1311 \end_layout
1312
1313 \begin_layout Plain Layout
1314
1315
1316 \backslash
1317 begin{verbatim}
1318 \end_layout
1319
1320 \begin_layout Plain Layout
1321
1322
1323 \backslash
1324 begin{minipage}{5cm}
1325 \end_layout
1326
1327 \begin_layout Plain Layout
1328
1329 これ...
1330  
1331 \backslash
1332 end{minipage}
1333 \end_layout
1334
1335 \begin_layout Plain Layout
1336
1337
1338 \backslash
1339 end{verbatim}
1340 \end_layout
1341
1342 \begin_layout Plain Layout
1343
1344
1345 \backslash
1346 end{minipage}
1347 \end_layout
1348
1349 \begin_layout Plain Layout
1350
1351
1352 \backslash
1353 end{tabular}
1354 \end_layout
1355
1356 \end_inset
1357
1358
1359 \end_layout
1360
1361 \begin_layout Standard
1362
1363 \family roman
1364 \series medium
1365 \shape up
1366 \size normal
1367 \emph off
1368 \bar no
1369 \noun off
1370 \color none
1371 TeXコードを使用する方法に加えて、複雑なLaTeXコードを含む部分を別ファイルとして作成しておき、そのファイルをインクルードするのに
1372 \begin_inset Flex MenuItem
1373 status collapsed
1374
1375 \begin_layout Plain Layout
1376
1377 \family roman
1378 \series medium
1379 \shape up
1380 \size normal
1381 \emph off
1382 \bar no
1383 \noun off
1384 \color none
1385 挿入\SpecialChar \menuseparator
1386 ファイル\SpecialChar \menuseparator
1387 子文書
1388 \end_layout
1389
1390 \end_inset
1391
1392 を使用する方法もあります(取り込みの型として
1393 \begin_inset Flex Code
1394 status collapsed
1395
1396 \begin_layout Plain Layout
1397
1398 \family roman
1399 \series medium
1400 \shape up
1401 \size normal
1402 \emph off
1403 \bar no
1404 \noun off
1405 \color none
1406 Input
1407 \end_layout
1408
1409 \end_inset
1410
1411 を選択しなくてはなりません)。この方法をとる場合には、.texファイルが正しく動作することが
1412 \family default
1413 \series default
1414 \shape default
1415 \size default
1416 \emph on
1417 \bar default
1418 \noun default
1419 \color inherit
1420 確認できている
1421 \family roman
1422 \series medium
1423 \shape up
1424 \size normal
1425 \emph off
1426 \bar no
1427 \noun off
1428 \color none
1429 場合のみに限った方がよいでしょう。さもないと、LaTeXエラーを追跡するたいへんな作業を行わなくてはならなくなります。
1430 \end_layout
1431
1432 \begin_layout Standard
1433
1434 \family roman
1435 \series medium
1436 \shape up
1437 \size normal
1438 \emph off
1439 \bar no
1440 \noun off
1441 \color none
1442 最後に、いくつか強調しておくべきことがあります。
1443 \end_layout
1444
1445 \begin_layout Itemize
1446
1447 \family roman
1448 \series medium
1449 \shape up
1450 \size normal
1451 \emph off
1452 \bar no
1453 \noun off
1454 \color none
1455 LyXは、あなたのLaTeXコードが正しいかどうかを
1456 \family default
1457 \series default
1458 \shape default
1459 \size default
1460 \emph on
1461 \bar default
1462 \noun default
1463 \color inherit
1464 チェックしません
1465 \family roman
1466 \series medium
1467 \shape up
1468 \size normal
1469 \emph off
1470 \bar no
1471 \noun off
1472 \color none
1473
1474 \end_layout
1475
1476 \begin_layout Itemize
1477
1478 \family roman
1479 \series medium
1480 \shape up
1481 \size normal
1482 \emph off
1483 \bar no
1484 \noun off
1485 \color none
1486 車輪の再発明をしないようにご注意ください。
1487 \end_layout
1488
1489 \begin_layout Standard
1490
1491 \family roman
1492 \series medium
1493 \shape up
1494 \size normal
1495 \emph off
1496 \bar no
1497 \noun off
1498 \color none
1499 二番目の点に関して、LyXはひじょうにたくさんの機能を装備しており、その数は増えつづけています。ご自身でLaTeXコードを書かなくてはならないと思い込む前に、L
1500 yXがこれこれの機能をもっていないことを、取扱説明書で確実に確かめてください。さらに世の中には、封筒のラベルから美しい複数ページにわたる表を作るものまで、ありと
1501 あらゆることを行う膨大な数のLaTeXパッケージが存在します。
1502 \family default
1503 \series default
1504 \shape default
1505 \size default
1506 \emph default
1507 \bar default
1508 \noun default
1509 \color inherit
1510 詳細については、
1511 \begin_inset CommandInset href
1512 LatexCommand href
1513 name "CTAN"
1514 target "http://www.ctan.org/"
1515
1516 \end_inset
1517
1518
1519 \family roman
1520 \series medium
1521 \shape up
1522 \size normal
1523 \emph off
1524 \bar no
1525 \noun off
1526 \color none
1527 と第
1528 \begin_inset CommandInset ref
1529 LatexCommand ref
1530 reference "chap:Special-features"
1531
1532 \end_inset
1533
1534 節をご覧ください。
1535 \end_layout
1536
1537 \begin_layout Standard
1538
1539 \family roman
1540 \series medium
1541 \shape up
1542 \size normal
1543 \emph off
1544 \bar no
1545 \noun off
1546 \color none
1547 もし、文書中で例外的に手の込んだことをなさりたければ、かならず良いLaTeX関連書籍を参考とするようにしてください。『
1548 \family default
1549 \series default
1550 \shape default
1551 \size default
1552 \emph on
1553 \bar default
1554 \noun default
1555 \color inherit
1556 ユーザーの手引き
1557 \family roman
1558 \series medium
1559 \shape up
1560 \size normal
1561 \emph off
1562 \bar no
1563 \noun off
1564 \color none
1565 』の参考文献に多くのLaTeX関連書籍が引用されています。
1566 \end_layout
1567
1568 \begin_layout Section
1569 LyXとLaTeXプリアンブル
1570 \end_layout
1571
1572 \begin_layout Subsection
1573 LaTeXプリアンブルについて
1574 \end_layout
1575
1576 \begin_layout Standard
1577
1578 \family roman
1579 \series medium
1580 \shape up
1581 \size normal
1582 \emph off
1583 \bar no
1584 \noun off
1585 \color none
1586 すでにLaTeXについてご存知であれば、ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう。もしご存じなければ、以下の説明で大まかな理解は
1587 得られるはずです。詳しくはLaTeX関連書籍をご参照ください。いずれにしても、以下でLyX文書のLaTeXプリアンブルで何ができるか、または何をする必要がないか
1588 説明をしますので、以下の各要点はお読みになった方が良いでしょう。
1589 \end_layout
1590
1591 \begin_layout Standard
1592
1593 \family roman
1594 \series medium
1595 \shape up
1596 \size normal
1597 \emph off
1598 \bar no
1599 \noun off
1600 \color none
1601 LaTeXプリアンブルは、LaTeX文書のいちばん始め、本文の
1602 \family default
1603 \series default
1604 \shape default
1605 \size default
1606 \emph on
1607 \bar default
1608 \noun default
1609 \color inherit
1610
1611 \family roman
1612 \series medium
1613 \shape up
1614 \size normal
1615 \emph off
1616 \bar no
1617 \noun off
1618 \color none
1619 の部分に来ます。ここでは以下のことを行います。
1620 \end_layout
1621
1622 \begin_layout Itemize
1623
1624 \family roman
1625 \series medium
1626 \shape up
1627 \size normal
1628 \emph off
1629 \bar no
1630 \noun off
1631 \color none
1632 文書クラス(ドキュメントクラス)の宣言。
1633 \begin_inset Newline newline
1634 \end_inset
1635
1636 これはLyXがすでに行ってくれています。もしあなたが熟達したLaTeX使いであり、自作の文書クラスを使いたい場合には、取扱説明書『
1637 \family default
1638 \series default
1639 \shape default
1640 \size default
1641 \emph on
1642 \bar default
1643 \noun default
1644 \color inherit
1645 カスタマイズ篇
1646 \family roman
1647 \series medium
1648 \shape up
1649 \size normal
1650 \emph off
1651 \bar no
1652 \noun off
1653 \color none
1654 』をご覧になれば、LyXに自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります。
1655 \end_layout
1656
1657 \begin_layout Itemize
1658
1659 \family roman
1660 \series medium
1661 \shape up
1662 \size normal
1663 \emph off
1664 \bar no
1665 \noun off
1666 \color none
1667 パッケージ使用の宣言。
1668 \begin_inset Newline newline
1669 \end_inset
1670
1671 LaTeXパッケージは、パッケージがプリアンブルで宣言された場合のみ、文書中で利用可能となる、追加コマンド群を提供します。例えば
1672 \family typewriter
1673 \series default
1674 \shape default
1675 \size default
1676 \emph default
1677 \bar default
1678 \noun default
1679 \color inherit
1680
1681 \family roman
1682 \series medium
1683 \shape up
1684 \size normal
1685 \emph off
1686 \bar no
1687 \noun off
1688 \color none
1689
1690 \begin_inset Flex Code
1691 status collapsed
1692
1693 \begin_layout Plain Layout
1694
1695 \family typewriter
1696 indentfirst
1697 \end_layout
1698
1699 \end_inset
1700
1701 パッケージは、すべての段落の最初の行を字下げします。他にも、ラベルや宛名書き、余白設定等の様々なパッケージがあります。
1702 \end_layout
1703
1704 \begin_layout Itemize
1705
1706 \family roman
1707 \series medium
1708 \shape up
1709 \size normal
1710 \emph off
1711 \bar no
1712 \noun off
1713 \color none
1714 カウンタ・変数・長さ・幅の設定。
1715 \begin_inset Newline newline
1716 \end_inset
1717
1718 LaTeXのカウンタと変数の中には、プリアンブルでグローバルに
1719 \family default
1720 \series default
1721 \shape default
1722 \size default
1723 \emph default
1724 \bar default
1725 \noun default
1726 \color inherit
1727 設定
1728 \emph on
1729 しないかぎり
1730 \family roman
1731 \series medium
1732 \shape up
1733 \size normal
1734 \emph off
1735 \bar no
1736 \noun off
1737 \color none
1738 、望んだ効果を持たないものがあります。(文書中で設定したり再設定したりすることのできる変数もあります。)余白は、プリアンブルで設定しなくてはならない変数の代表例
1739 です。他には、箇条書きに付けるラベル書式が挙げられます。じつは、この設定は文書中どこでもできるのですが、プリアンブルでいちどだけ設定するのが望ましい方法です。
1740 \end_layout
1741
1742 \begin_layout Itemize
1743
1744 \family roman
1745 \series medium
1746 \shape up
1747 \size normal
1748 \emph off
1749 \bar no
1750 \noun off
1751 \color none
1752 ユーザー定義コマンドの宣言(
1753 \begin_inset Flex Code
1754 status collapsed
1755
1756 \begin_layout Plain Layout
1757
1758 \family roman
1759 \series medium
1760 \shape up
1761 \size normal
1762 \emph off
1763 \bar no
1764 \noun off
1765 \color none
1766
1767 \backslash
1768 newcommand
1769 \end_layout
1770
1771 \end_inset
1772
1773 または
1774 \begin_inset Flex Code
1775 status collapsed
1776
1777 \begin_layout Plain Layout
1778
1779 \family roman
1780 \series medium
1781 \shape up
1782 \size normal
1783 \emph off
1784 \bar no
1785 \noun off
1786 \color none
1787
1788 \backslash
1789 renewcommand
1790 \end_layout
1791
1792 \end_inset
1793
1794 を使用)。
1795 \begin_inset Newline newline
1796 \end_inset
1797
1798 ユーザー定義コマンドは、文書中で頻出するLaTeXコマンドの短縮形です。このようなコマンドを宣言するには、プリアンブルが適した場所ですが、どこで宣言することも
1799 \family default
1800 \series default
1801 \shape default
1802 \size default
1803 \emph on
1804 \bar default
1805 \noun default
1806 \color inherit
1807 可能
1808 \family roman
1809 \series medium
1810 \shape up
1811 \size normal
1812 \emph off
1813 \bar no
1814 \noun off
1815 \color none
1816 です(もちろんコマンドが初めて使用される場所よりも前です)。あまりないことではありますが、お使いの文書中に生のLaTeXコードがあふれている場合には便利でしょう
1817
1818 \end_layout
1819
1820 \begin_layout Standard
1821
1822 \family roman
1823 \series medium
1824 \shape up
1825 \size normal
1826 \emph off
1827 \bar no
1828 \noun off
1829 \color none
1830 LyXは、その生成する
1831 \begin_inset Flex Code
1832 status collapsed
1833
1834 \begin_layout Plain Layout
1835
1836 \family roman
1837 \series medium
1838 \shape up
1839 \size normal
1840 \emph off
1841 \bar no
1842 \noun off
1843 \color none
1844 .tex
1845 \end_layout
1846
1847 \end_inset
1848
1849 ファイルのプリアンブルに、それ自身の定義を追加します。これによって、LyXの生成するLaTeXファイルの可搬性を高めています。
1850 \end_layout
1851
1852 \begin_layout Subsection
1853 プリアンブルの変更
1854 \end_layout
1855
1856 \begin_layout Standard
1857
1858 \family roman
1859 \series medium
1860 \shape up
1861 \size normal
1862 \emph off
1863 \bar no
1864 \noun off
1865 \color none
1866 LyXがLaTeXファイルのプリアンブルに追加するコマンドは、つねに同じです。これは、LyX自体にパッチを当てないかぎり変更できないようになっています。しかしな
1867 がら、
1868 \begin_inset Flex MenuItem
1869 status collapsed
1870
1871 \begin_layout Plain Layout
1872
1873 \family roman
1874 \series medium
1875 \shape up
1876 \size normal
1877 \emph off
1878 \bar no
1879 \noun off
1880 \color none
1881 文書\SpecialChar \menuseparator
1882 設定
1883 \end_layout
1884
1885 \end_inset
1886
1887 ダイアログの
1888 \begin_inset Flex MenuItem
1889 status collapsed
1890
1891 \begin_layout Plain Layout
1892
1893 \family roman
1894 \series medium
1895 \shape up
1896 \size normal
1897 \emph off
1898 \bar no
1899 \noun off
1900 \color none
1901 LaTeXプリアンブル
1902 \end_layout
1903
1904 \end_inset
1905
1906 の項から、プリアンブルに追加をすることはできます。LyXは、
1907 \family sans
1908 \series default
1909 \shape default
1910 \size default
1911 \emph default
1912 \bar default
1913 \noun default
1914 \color inherit
1915
1916 \begin_inset Flex MenuItem
1917 status collapsed
1918
1919 \begin_layout Plain Layout
1920
1921 \family sans
1922 プリアンブル
1923 \end_layout
1924
1925 \end_inset
1926
1927
1928 \family roman
1929 \series medium
1930 \shape up
1931 \size normal
1932 \emph off
1933 \bar no
1934 \noun off
1935 \color none
1936 ダイアログ内のすべてのものを、LyX埋込みのプリアンブルに付け加えます。ご自身の宣言をプリアンブルに追加する前に、あなたがしようとしていることをLyXがすでにサ
1937 ポートしていないかどうか確認してください(車輪の再発明をしないように、とはすでに申しあげたことです)。
1938 \family default
1939 \series default
1940 \shape default
1941 \size default
1942 \emph default
1943 \bar default
1944 \noun default
1945 \color inherit
1946 また、
1947 \emph on
1948 プリアンブルコードが正しいことを確認してください。
1949 \emph default
1950 LyXは、プリアンブルをチェックしません。
1951 \family roman
1952 \series medium
1953 \shape up
1954 \size normal
1955 \emph off
1956 \bar no
1957 \noun off
1958 \color none
1959 もしエラーがあれば、「
1960 \begin_inset Flex Code
1961 status collapsed
1962
1963 \begin_layout Plain Layout
1964
1965 \family roman
1966 \series medium
1967 \shape up
1968 \size normal
1969 \emph off
1970 \bar no
1971 \noun off
1972 \color none
1973 Missing 
1974 \backslash
1975 begin{document}
1976 \end_layout
1977
1978 \end_inset
1979
1980 」といったエラーが出ることでしょう。このようなエラーが出たときは、プリアンブルを再確認してください。
1981 \end_layout
1982
1983 \begin_layout Subsection
1984
1985 \end_layout
1986
1987 \begin_layout Standard
1988
1989 \family roman
1990 \series medium
1991 \shape up
1992 \size normal
1993 \emph off
1994 \bar no
1995 \noun off
1996 \color none
1997 以下は、プリアンブルに追加できるものとその効果を示す例です。
1998 \end_layout
1999
2000 \begin_layout Subsubsection
2001 例1:オフセット
2002 \end_layout
2003
2004 \begin_layout Standard
2005
2006 \family roman
2007 \series medium
2008 \shape up
2009 \size normal
2010 \emph off
2011 \bar no
2012 \noun off
2013 \color none
2014 LaTeXには
2015 \family default
2016 \series default
2017 \shape default
2018 \size default
2019 \emph default
2020 \bar default
2021 \noun default
2022 \color inherit
2023
2024 \family roman
2025 \series medium
2026 \shape up
2027 \size normal
2028 \emph off
2029 \bar no
2030 \noun off
2031 \color none
2032
2033 \begin_inset Flex Code
2034 status collapsed
2035
2036 \begin_layout Plain Layout
2037
2038 \family typewriter
2039
2040 \backslash
2041 hoffset
2042 \end_layout
2043
2044 \end_inset
2045
2046
2047 \family typewriter
2048 \series default
2049 \shape default
2050 \size default
2051 \emph default
2052 \bar default
2053 \noun default
2054 \color inherit
2055
2056 \begin_inset Flex Code
2057 status collapsed
2058
2059 \begin_layout Plain Layout
2060
2061 \family typewriter
2062
2063 \backslash
2064 voffset
2065 \end_layout
2066
2067 \end_inset
2068
2069
2070 \family roman
2071 \series medium
2072 \shape up
2073 \size normal
2074 \emph off
2075 \bar no
2076 \noun off
2077 \color none
2078 というページ位置を制御する2つの変数があります。その機能は名前から明らかなとおりです。これらの変数は、ラベルを印刷するときなどに便利です。往々にして、印刷用紙の
2079 寸法とそのうち実際に印字可能な範囲は同じではありません。ここに
2080 \begin_inset Flex Code
2081 status collapsed
2082
2083 \begin_layout Plain Layout
2084
2085 \family typewriter
2086
2087 \backslash
2088 hoffset
2089 \end_layout
2090
2091 \end_inset
2092
2093
2094 \family typewriter
2095 \series default
2096 \shape default
2097 \size default
2098 \emph default
2099 \bar default
2100 \noun default
2101 \color inherit
2102
2103 \begin_inset Flex Code
2104 status collapsed
2105
2106 \begin_layout Plain Layout
2107
2108 \family typewriter
2109
2110 \backslash
2111 voffset
2112 \end_layout
2113
2114 \end_inset
2115
2116
2117 \family default
2118 が役立つわけです。
2119 \end_layout
2120
2121 \begin_layout Standard
2122
2123 \family roman
2124 \series medium
2125 \shape up
2126 \size normal
2127 \emph off
2128 \bar no
2129 \noun off
2130 \color none
2131 \begin_inset Flex Code
2132 status collapsed
2133
2134 \begin_layout Plain Layout
2135
2136 \family typewriter
2137
2138 \backslash
2139 hoffset
2140 \end_layout
2141
2142 \end_inset
2143
2144
2145 \family typewriter
2146 \series default
2147 \shape default
2148 \size default
2149 \emph default
2150 \bar default
2151 \noun default
2152 \color inherit
2153
2154 \begin_inset Flex Code
2155 status collapsed
2156
2157 \begin_layout Plain Layout
2158
2159 \family typewriter
2160
2161 \backslash
2162 voffset
2163 \end_layout
2164
2165 \end_inset
2166
2167
2168 \family roman
2169 \series medium
2170 \shape up
2171 \size normal
2172 \emph off
2173 \bar no
2174 \noun off
2175 \color none
2176 の既定値はともに0ポイント、つまりページをシフトしません。残念ながら、DVIドライバによってはつねにページをシフトすることがあるようです。我々には、どうしてその
2177 ようなことをするのか、そしてシスアドがどうしてそれを修正しないのか理解できませんが、もし個人的に管理できないシステムでLyXを使用していて、シスアドがお馬鹿さん
2178 である場合には、
2179 \begin_inset Flex Code
2180 status collapsed
2181
2182 \begin_layout Plain Layout
2183
2184 \family typewriter
2185
2186 \backslash
2187 hoffset
2188 \end_layout
2189
2190 \end_inset
2191
2192
2193 \family typewriter
2194 \series default
2195 \shape default
2196 \size default
2197 \emph default
2198 \bar default
2199 \noun default
2200 \color inherit
2201
2202 \begin_inset Flex Code
2203 status collapsed
2204
2205 \begin_layout Plain Layout
2206
2207 \family typewriter
2208
2209 \backslash
2210 voffset
2211 \end_layout
2212
2213 \end_inset
2214
2215
2216 \family roman
2217 \series medium
2218 \shape up
2219 \size normal
2220 \emph off
2221 \bar no
2222 \noun off
2223 \color none
2224 が役に立ちます。かりに、上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう。その場合は、以下をプリアンブルに追加するとよいでしょう。
2225 \end_layout
2226
2227 \begin_layout LyX-Code
2228
2229 \backslash
2230 setlength{
2231 \backslash
2232 hoffset}{-0.5 in}
2233 \end_layout
2234
2235 \begin_layout LyX-Code
2236
2237 \backslash
2238 setlength{
2239 \backslash
2240 voffset}{-0.5 in}
2241 \end_layout
2242
2243 \begin_layout Standard
2244
2245 \family roman
2246 \series medium
2247 \shape up
2248 \size normal
2249 \emph off
2250 \bar no
2251 \noun off
2252 \color none
2253 これで余白が修正されます。
2254 \end_layout
2255
2256 \begin_layout Subsubsection
2257 例2:ラベル
2258 \end_layout
2259
2260 \begin_layout Standard
2261
2262 \family roman
2263 \series medium
2264 \shape up
2265 \size normal
2266 \emph off
2267 \bar no
2268 \noun off
2269 \color none
2270 いま、たくさんの宛名ラベルを印刷をしたいものとしましょう。ラベルシートを印刷するために便利な
2271 \begin_inset Flex Code
2272 status collapsed
2273
2274 \begin_layout Plain Layout
2275
2276 \family typewriter
2277 labels.sty
2278 \end_layout
2279
2280 \end_inset
2281
2282 というLaTeXパッケージが、お近くのCTANアーカイブで入手可能です。お使いのシステムには、既定ではこのパッケージは導入されていないかもしれません。ご自身でお
2283 確かめください。また、このパッケージの取扱説明書を読まれたいかもしれませんが、それもご自身にお任せします。これは使用例ですので、このパッケージをどう使うかの例だ
2284 けお見せすることにします。
2285 \end_layout
2286
2287 \begin_layout Standard
2288
2289 \family roman
2290 \series medium
2291 \shape up
2292 \size normal
2293 \emph off
2294 \bar no
2295 \noun off
2296 \color none
2297 まず、
2298 \begin_inset Flex Code
2299 status collapsed
2300
2301 \begin_layout Plain Layout
2302
2303 \family sans
2304 article
2305 \end_layout
2306
2307 \end_inset
2308
2309 文書クラスを使用していることをご確認ください。次に、以下のような設定をプリアンブルに追加しなければなりません。
2310 \end_layout
2311
2312 \begin_layout LyX-Code
2313
2314 \backslash
2315 usepackage{labels}
2316 \end_layout
2317
2318 \begin_layout LyX-Code
2319
2320 \backslash
2321 LabelCols=3
2322 \end_layout
2323
2324 \begin_layout LyX-Code
2325
2326 \backslash
2327 LabelRows=7
2328 \end_layout
2329
2330 \begin_layout LyX-Code
2331
2332 \backslash
2333 LeftBorder=8mm
2334 \end_layout
2335
2336 \begin_layout LyX-Code
2337
2338 \backslash
2339 RightBorder=8mm
2340 \end_layout
2341
2342 \begin_layout LyX-Code
2343
2344 \backslash
2345 TopBorder=9mm
2346 \end_layout
2347
2348 \begin_layout LyX-Code
2349
2350 \backslash
2351 BottomBorder=2mm
2352 \end_layout
2353
2354 \begin_layout Standard
2355
2356 \family roman
2357 \series medium
2358 \shape up
2359 \size normal
2360 \emph off
2361 \bar no
2362 \noun off
2363 \color none
2364 これは
2365 \family default
2366 \series default
2367 \shape default
2368 \size default
2369 \emph default
2370 \bar default
2371 \noun default
2372 \color inherit
2373 Avery®ラベルシートのストック5360
2374 \family roman
2375 \series medium
2376 \shape up
2377 \size normal
2378 \emph off
2379 \bar no
2380 \noun off
2381 \color none
2382 番を使用する場合の設定です。これで、各宛名を
2383 \begin_inset Flex Code
2384 status collapsed
2385
2386 \begin_layout Plain Layout
2387
2388 \family typewriter
2389
2390 \backslash
2391 begin{labels}
2392 \end_layout
2393
2394 \end_inset
2395
2396
2397 \family typewriter
2398 \series default
2399 \shape default
2400 \size default
2401 \emph default
2402 \bar default
2403 \noun default
2404 \color inherit
2405
2406 \begin_inset Flex Code
2407 status collapsed
2408
2409 \begin_layout Plain Layout
2410
2411 \family typewriter
2412
2413 \backslash
2414 end{labels}
2415 \end_layout
2416
2417 \end_inset
2418
2419
2420 \family roman
2421 \series medium
2422 \shape up
2423 \size normal
2424 \emph off
2425 \bar no
2426 \noun off
2427 \color none
2428 で囲めば、宛名ラベルの印刷をすることができます。本機能およびその他の機能に関しては、
2429 \begin_inset Flex Code
2430 status collapsed
2431
2432 \begin_layout Plain Layout
2433
2434 \family typewriter
2435 labels.sty
2436 \end_layout
2437
2438 \end_inset
2439
2440 の取扱説明書に説明されています。
2441 \end_layout
2442
2443 \begin_layout Standard
2444
2445 \family roman
2446 \series medium
2447 \shape up
2448 \size normal
2449 \emph off
2450 \bar no
2451 \noun off
2452 \color none
2453 そのうち誰かが、このパッケージを直接サポートするLyXレイアウトファイルを作ってくれるかもしれません。その誰かはあなたかもしれません。
2454 \end_layout
2455
2456 \begin_layout Subsubsection
2457 例3: 段落の字下げ
2458 \end_layout
2459
2460 \begin_layout Standard
2461
2462 \family roman
2463 \series medium
2464 \shape up
2465 \size normal
2466 \emph off
2467 \bar no
2468 \noun off
2469 \color none
2470 アメリカ人は
2471 \family default
2472 \series default
2473 \shape default
2474 \size default
2475 \emph default
2476 \bar default
2477 \noun default
2478 \color inherit
2479
2480 \emph on
2481 すべての
2482 \family roman
2483 \series medium
2484 \shape up
2485 \size normal
2486 \emph off
2487 \bar no
2488 \noun off
2489 \color none
2490 段落の最初の行を字下げするように教育されています。そのために彼らの他の変な習慣と同じく、いつものようにすべての段落の最初の行を下げるまで、アメリカ人はごちゃごち
2491 ゃと文句を言いつづけるのです
2492 \family default
2493 \series default
2494 \shape default
2495 \size default
2496 \emph default
2497 \bar default
2498 \noun default
2499 \color inherit
2500 。(これはユーモアです。(ほんと?)
2501 \emph on
2502 ユーモアですってば
2503 \emph default
2504 。)
2505 \end_layout
2506
2507 \begin_layout Standard
2508
2509 \family roman
2510 \series medium
2511 \shape up
2512 \size normal
2513 \emph off
2514 \bar no
2515 \noun off
2516 \color none
2517 もちろん、これは標準的な組版ルールではありません。書籍では、典型的には、他の段落のあとにくる段落
2518 \family default
2519 \series default
2520 \shape default
2521 \size default
2522 \emph on
2523 \bar default
2524 \noun default
2525 \color inherit
2526 のみ
2527 \family roman
2528 \series medium
2529 \shape up
2530 \size normal
2531 \emph off
2532 \bar no
2533 \noun off
2534 \color none
2535 字下げを行ないます。一行めを字下げをするそもそもの目的は、隣接する段落から区別するためです。したがって、図のあとや節の最初の段落など、先行する段落がない場合には
2536 、字下げをする必要はないのです。
2537 \end_layout
2538
2539 \begin_layout Standard
2540
2541 \family roman
2542 \series medium
2543 \shape up
2544 \size normal
2545 \emph off
2546 \bar no
2547 \noun off
2548 \color none
2549 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!)、そのような小難しいことはかまわずに、いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2550 ルに次の行を加えて下さい。
2551 \end_layout
2552
2553 \begin_layout LyX-Code
2554
2555 \backslash
2556 usepackage{indentfirst}
2557 \end_layout
2558
2559 \begin_layout Standard
2560
2561 \family roman
2562 \series medium
2563 \shape up
2564 \size normal
2565 \emph off
2566 \bar no
2567 \noun off
2568 \color none
2569 もしお使いのTeX頒布版が脳死状態でなければ、このパッケージが入っているはずなので、建国の父たちが意図したように、すべての段落が字下げされます。
2570 \end_layout
2571
2572 \begin_layout Subsubsection
2573 例4:この文書
2574 \end_layout
2575
2576 \begin_layout Standard
2577
2578 \family roman
2579 \series medium
2580 \shape up
2581 \size normal
2582 \emph off
2583 \bar no
2584 \noun off
2585 \color none
2586 この文書のプリアンブルを見てみると、どのような高度な設定ができるか、おおまかな理解が得られるでしょう。また第
2587 \family default
2588 \series default
2589 \shape default
2590 \size default
2591 \emph default
2592 \bar default
2593 \noun default
2594 \color inherit
2595
2596 \begin_inset CommandInset ref
2597 LatexCommand ref
2598 reference "chap:Special-features"
2599
2600 \end_inset
2601
2602
2603 \family roman
2604 \series medium
2605 \shape up
2606 \size normal
2607 \emph off
2608 \bar no
2609 \noun off
2610 \color none
2611 章には、他の例や、LaTeXの各種の「汚い技」があります。
2612 \end_layout
2613
2614 \begin_layout Section
2615 LyXおよびLaTeXのエラー
2616 \end_layout
2617
2618 \begin_layout Standard
2619
2620 \family roman
2621 \series medium
2622 \shape up
2623 \size normal
2624 \emph off
2625 \bar no
2626 \noun off
2627 \color none
2628 LyXがLaTeXを呼び出す際、LyXはLaTeXに、かりにエラーがあったとしても楽観的に無視して先に進むように指示します。その後LyXは、LaTeXの実行ログ
2629 ファイルを事後処理用に使います。ログファイルを分析したのち、LyXはエラーを一覧表示するダイアログを表示します。エラーのうちどれかをクリックすると、LyXファイ
2630 ル中、そのエラーの発生した場所に表示を移動します
2631 \begin_inset Foot
2632 status collapsed
2633
2634 \begin_layout Plain Layout
2635
2636 \family roman
2637 \series medium
2638 \shape up
2639 \size normal
2640 \emph off
2641 \bar no
2642 \noun off
2643 \color none
2644 正確にいうと、通常は、です。ログファイルの分析は難しい仕事ですので、LyXはつねに正しい行に連れて行ってくれるとは限りません。ときには、LaTeXがある行にエラ
2645 ーがあると報告したとしても、実際のエラーはそれよりも前であることもあります。これは、プログラムで閉じ括弧を忘れたときに似ていなくもありません。エラーは表示されま
2646 すが、実際にエラーのある場所よりも後ろでエラーが報告されるのです。
2647 \end_layout
2648
2649 \end_inset
2650
2651
2652 \family default
2653 \series default
2654 \shape default
2655 \size default
2656 \emph default
2657 \bar default
2658 \noun default
2659 \color inherit
2660
2661 \end_layout
2662
2663 \begin_layout Standard
2664
2665 \family roman
2666 \series medium
2667 \shape up
2668 \size normal
2669 \emph off
2670 \bar no
2671 \noun off
2672 \color none
2673 人によっては、ログファイルを直接ご覧になりたいかもしれません。これは、
2674 \begin_inset Flex MenuItem
2675 status collapsed
2676
2677 \begin_layout Plain Layout
2678
2679 \family roman
2680 \series medium
2681 \shape up
2682 \size normal
2683 \emph off
2684 \bar no
2685 \noun off
2686 \color none
2687 文書\SpecialChar \menuseparator
2688 LaTeXログ
2689 \end_layout
2690
2691 \end_inset
2692
2693 で見ることができます。エラーメッセージや警告には、よく見かけるものがいくつかありますので、それらをここに収録しておきます。ここにないエラーや警告に関しては、La
2694 TeX関連の良書を参照してください。
2695 \end_layout
2696
2697 \begin_layout Itemize
2698
2699 \family typewriter
2700 \begin_inset Flex Code
2701 status collapsed
2702
2703 \begin_layout Plain Layout
2704
2705 \family typewriter
2706 LaTeX Warning
2707 \end_layout
2708
2709 \end_inset
2710
2711
2712 \family roman
2713 \series medium
2714 \shape up
2715 \size normal
2716 \emph off
2717 \bar no
2718 \noun off
2719 \color none
2720
2721 \begin_inset Newline newline
2722 \end_inset
2723
2724 これで始まるメッセージは、LaTeXコード自体を「デバッグ」するための警告メッセージです。相互参照や参考文献を追加したり変更した場合に、もう一度LaTeXを実行
2725 する必要があることを知らせるために、このようなメッセージが表示されます。このメッセージは、だいたいにおいて無視しても大丈夫です。
2726 \end_layout
2727
2728 \begin_layout Itemize
2729
2730 \family typewriter
2731 \begin_inset Flex Code
2732 status collapsed
2733
2734 \begin_layout Plain Layout
2735
2736 \family typewriter
2737 LaTeX Font Warning
2738 \end_layout
2739
2740 \end_inset
2741
2742
2743 \family roman
2744 \series medium
2745 \shape up
2746 \size normal
2747 \emph off
2748 \bar no
2749 \noun off
2750 \color none
2751
2752 \begin_inset Newline newline
2753 \end_inset
2754
2755 LaTeXがフォントを見つけられなかったと言う警告メッセージです。多くの場合、このメッセージの後に、LaTeXが使用した代替フォントに関する情報が続きます。これ
2756 も無視して構いません。
2757 \end_layout
2758
2759 \begin_layout Itemize
2760
2761 \family roman
2762 \series medium
2763 \shape up
2764 \size normal
2765 \emph off
2766 \bar no
2767 \noun off
2768 \color none
2769 \begin_inset Flex Code
2770 status collapsed
2771
2772 \begin_layout Plain Layout
2773
2774 \family typewriter
2775 Overfull 
2776 \backslash
2777 hbox
2778 \end_layout
2779
2780 \end_inset
2781
2782
2783 \begin_inset Newline newline
2784 \end_inset
2785
2786 LaTeXは、
2787 \family default
2788 \series default
2789 \shape default
2790 \size default
2791 \emph on
2792 \bar default
2793 \noun default
2794 \color inherit
2795 ほぼどんなときでも
2796 \family roman
2797 \series medium
2798 \shape up
2799 \size normal
2800 \emph off
2801 \bar no
2802 \noun off
2803 \color none
2804 この警告を吐き出します。これは、一行が長すぎて右余白にはみ出してしまったという警告ですが、ほとんどの場合、最終出力を見ても判別できないくらい(せいぜい1ポイント
2805 か2ポイント)です。あるいは1文字か2文字右余白に出ているくらいです。LaTeXは、どんな文書を書いても、少なくとも一つはこのメッセージを出すようです。
2806 \begin_inset Newline newline
2807 \end_inset
2808
2809 このメッセージは無視しても大丈夫です。何か行が長すぎるような問題があれば、目で見ればわかります。出力を目で確認してください
2810 \begin_inset Foot
2811 status collapsed
2812
2813 \begin_layout Plain Layout
2814 あるいは、
2815 \begin_inset Flex MenuItem
2816 status collapsed
2817
2818 \begin_layout Plain Layout
2819 文書\SpecialChar \menuseparator
2820 設定
2821 \end_layout
2822
2823 \end_inset
2824
2825 で「draft」オプションを指定する方法もあります。こうすると、LaTeXは、overfullの発生した行の余白に黒い四角を描画します。
2826 \end_layout
2827
2828 \end_inset
2829
2830
2831 \end_layout
2832
2833 \begin_layout Itemize
2834
2835 \family typewriter
2836 \begin_inset Flex Code
2837 status collapsed
2838
2839 \begin_layout Plain Layout
2840
2841 \family typewriter
2842 Underfull 
2843 \backslash
2844 hbox
2845 \end_layout
2846
2847 \end_inset
2848
2849
2850 \begin_inset Newline newline
2851 \end_inset
2852
2853
2854 \family roman
2855 \series medium
2856 \shape up
2857 \size normal
2858 \emph off
2859 \bar no
2860 \noun off
2861 \color none
2862 これは上の警告と違ってあまり出てきません。なぜだかは分かりませんが、LaTeXは1行を短めにする印字するよりは、長めにする方が好きなようです。
2863 \end_layout
2864
2865 \begin_layout Itemize
2866 \begin_inset Flex Code
2867 status collapsed
2868
2869 \begin_layout Plain Layout
2870
2871 \family typewriter
2872 Overfull 
2873 \backslash
2874 vbox
2875 \end_layout
2876
2877 \end_inset
2878
2879
2880 \family typewriter
2881
2882 \begin_inset Flex Code
2883 status collapsed
2884
2885 \begin_layout Plain Layout
2886
2887 \family typewriter
2888 Underfull 
2889 \backslash
2890 vbox
2891 \end_layout
2892
2893 \end_inset
2894
2895
2896 \family default
2897
2898 \begin_inset Newline newline
2899 \end_inset
2900
2901
2902 \family roman
2903 \series medium
2904 \shape up
2905 \size normal
2906 \emph off
2907 \bar no
2908 \noun off
2909 \color none
2910 ページ区切りに問題があったという警告です。この場合も、出力を目で確認してください。何か問題があれば、見てすぐわかります。
2911 \end_layout
2912
2913 \begin_layout Itemize
2914
2915 \family typewriter
2916 \begin_inset Flex Code
2917 status collapsed
2918
2919 \begin_layout Plain Layout
2920
2921 \family typewriter
2922 LaTeX Error: File 
2923 \begin_inset Quotes els
2924 \end_inset
2925
2926 Xxxx
2927 \begin_inset Quotes ers
2928 \end_inset
2929
2930  not found
2931 \end_layout
2932
2933 \end_inset
2934
2935
2936 \family roman
2937 \series medium
2938 \shape up
2939 \size normal
2940 \emph off
2941 \bar no
2942 \noun off
2943 \color none
2944
2945 \begin_inset Newline newline
2946 \end_inset
2947
2948 ファイル「Xxxx」が、システムに導入されていません。これは通常、文書が必要としているLaTeXパッケージに、導入済でないものがある場合に現れます。プリアンブル
2949 に変更を加えておらず、
2950 \begin_inset Flex Code
2951 status collapsed
2952
2953 \begin_layout Plain Layout
2954
2955 \family typewriter
2956
2957 \backslash
2958 usepackage{}
2959 \end_layout
2960
2961 \end_inset
2962
2963 コマンドも使用していないとすれば、LyXが読み込もうしているパッケージに存在しないものがあるということです。
2964 \family default
2965 \series default
2966 \shape default
2967 \size default
2968 \emph default
2969 \bar default
2970 \noun default
2971 \color inherit
2972
2973 \begin_inset Flex MenuItem
2974 status collapsed
2975
2976 \begin_layout Plain Layout
2977 ヘルプ\SpecialChar \menuseparator
2978 LaTeXの設定
2979 \end_layout
2980
2981 \end_inset
2982
2983
2984 \family roman
2985 \series medium
2986 \shape up
2987 \size normal
2988 \emph off
2989 \bar no
2990 \noun off
2991 \color none
2992 を使用して、LyXが認識しているパッケージの一覧を得てください。このファイルは、(
2993 \begin_inset Flex MenuItem
2994 status collapsed
2995
2996 \begin_layout Plain Layout
2997
2998 \family roman
2999 \series medium
3000 \shape up
3001 \size normal
3002 \emph off
3003 \bar no
3004 \noun off
3005 \color none
3006 ツール\SpecialChar \menuseparator
3007 再設定
3008 \end_layout
3009
3010 \end_inset
3011
3012 を使用して)LyXの再設定を行うたびに更新され、どのパッケージが検出されたか、それらのパッケージが何をするものかを表示します。
3013 \begin_inset Newline newline
3014 \end_inset
3015
3016
3017 \family sans
3018 \series default
3019 \shape default
3020 \size default
3021 \emph default
3022 \bar default
3023 \noun default
3024 \color inherit
3025
3026 \begin_inset Flex Code
3027 status collapsed
3028
3029 \begin_layout Plain Layout
3030
3031 \family sans
3032
3033 \backslash
3034 usepackage{}
3035 \end_layout
3036
3037 \end_inset
3038
3039
3040 \family roman
3041 \series medium
3042 \shape up
3043 \size normal
3044 \emph off
3045 \bar no
3046 \noun off
3047 \color none
3048 コマンドを使っていて、肝心のパッケージが導入されていない場合には、ご自身で導入する必要があります。
3049 \end_layout
3050
3051 \begin_layout Itemize
3052
3053 \family typewriter
3054 \begin_inset Flex Code
3055 status collapsed
3056
3057 \begin_layout Plain Layout
3058
3059 \family typewriter
3060 LaTeX Error: Unknown option
3061 \end_layout
3062
3063 \end_inset
3064
3065
3066 \family roman
3067 \series medium
3068 \shape up
3069 \size normal
3070 \emph off
3071 \bar no
3072 \noun off
3073 \color none
3074
3075 \begin_inset Newline newline
3076 \end_inset
3077
3078 このように始まるエラーメッセージは、パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです。パッケージの取扱説明書をご確認くだ
3079 さい。
3080 \end_layout
3081
3082 \begin_layout Itemize
3083
3084 \family typewriter
3085 \begin_inset Flex Code
3086 status collapsed
3087
3088 \begin_layout Plain Layout
3089
3090 \family typewriter
3091 Undefined control sequence
3092 \end_layout
3093
3094 \end_inset
3095
3096
3097 \family roman
3098 \series medium
3099 \shape up
3100 \size normal
3101 \emph off
3102 \bar no
3103 \noun off
3104 \color none
3105
3106 \begin_inset Newline newline
3107 \end_inset
3108
3109 お使いの文書にLaTeXコードを挿入した際、打ち間違いをしてしまうと、このようなメッセージが表示されます。あるいは、パッケージを読み込ませるのを忘れたのかもしれ
3110 ません。いずれにしても、このメッセージは、あなたが未定義のコマンドを使用したことを示しています。
3111 \end_layout
3112
3113 \begin_layout Standard
3114
3115 \family roman
3116 \series medium
3117 \shape up
3118 \size normal
3119 \emph off
3120 \bar no
3121 \noun off
3122 \color none
3123 これ以外にも、エラーメッセージや警告メッセージがあります。一般に、読んで意味がすぐにわかるものは、LaTeXのメッセージです。何を言っているのかさっぱりわからな
3124 いものもありますが、通常これらは、TeXのメッセージであり、それが何を意味しているのか、どのように解読すればいいのか、
3125 \family default
3126 \series default
3127 \shape default
3128 \size default
3129 \emph on
3130 \bar default
3131 \noun default
3132 \color inherit
3133 まったく
3134 \family roman
3135 \series medium
3136 \shape up
3137 \size normal
3138 \emph off
3139 \bar no
3140 \noun off
3141 \color none
3142 手がかりがありません。誰もわからないのです。
3143 \end_layout
3144
3145 \begin_layout Standard
3146
3147 \family roman
3148 \series medium
3149 \shape up
3150 \size normal
3151 \emph off
3152 \bar no
3153 \noun off
3154 \color none
3155 エラーメッセージが表示された場合は、つねに以下のチェックリストにしたがった方がよいでしょう。
3156 \end_layout
3157
3158 \begin_layout Enumerate
3159
3160 \family roman
3161 \series medium
3162 \shape up
3163 \size normal
3164 \emph off
3165 \bar no
3166 \noun off
3167 \color none
3168 ご自分で挿入したLaTeXコードに打ち間違いがないかどうか確かめる。
3169 \end_layout
3170
3171 \begin_layout Enumerate
3172
3173 \family roman
3174 \series medium
3175 \shape up
3176 \size normal
3177 \emph off
3178 \bar no
3179 \noun off
3180 \color none
3181 打ち間違いがなければ、コマンドを正しく使ったかどうか確かめる。
3182 \end_layout
3183
3184 \begin_layout Enumerate
3185
3186 \family roman
3187 \series medium
3188 \shape up
3189 \size normal
3190 \emph off
3191 \bar no
3192 \noun off
3193 \color none
3194 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には---特に
3195 \begin_inset Flex Code
3196 status collapsed
3197
3198 \begin_layout Plain Layout
3199
3200 \family roman
3201 \series medium
3202 \shape up
3203 \size normal
3204 \emph off
3205 \bar no
3206 \noun off
3207 \color none
3208 Missing 
3209 \backslash
3210 begin{document}
3211 \end_layout
3212
3213 \end_inset
3214
3215 が表示されているならば---、プリアンブルにエラーがあることを意味します。プリアンブルのデバックを行ってください。
3216 \end_layout
3217
3218 \begin_layout Enumerate
3219
3220 \family roman
3221 \series medium
3222 \shape up
3223 \size normal
3224 \emph off
3225 \bar no
3226 \noun off
3227 \color none
3228 プリアンブルに何も追加せず、文書にLaTeXコードをまったく挿入しなかった場合には、LaTeX頒布版自体をまず疑ってください。導入されていないパッケージを探しだ
3229 して、導入してください。
3230 \end_layout
3231
3232 \begin_layout Enumerate
3233
3234 \family roman
3235 \series medium
3236 \shape up
3237 \size normal
3238 \emph off
3239 \bar no
3240 \noun off
3241 \color none
3242 導入されていないパッケージはなかったものとしましょう。LyXを微調整するオプションを使用していますか。特に、手動で
3243 \begin_inset Flex Code
3244 status collapsed
3245
3246 \begin_layout Plain Layout
3247
3248 \family sans
3249 Protected
3250 \begin_inset space ~
3251 \end_inset
3252
3253 Blank
3254 \end_layout
3255
3256 \end_inset
3257
3258
3259 \begin_inset Flex Code
3260 status collapsed
3261
3262 \begin_layout Plain Layout
3263
3264 \family sans
3265 Linebreak
3266 \end_layout
3267
3268 \end_inset
3269
3270
3271 \family sans
3272 \series default
3273 \shape default
3274 \size default
3275 \emph default
3276 \bar default
3277 \noun default
3278 \color inherit
3279
3280 \begin_inset Flex Code
3281 status collapsed
3282
3283 \begin_layout Plain Layout
3284
3285 \family sans
3286 Pagebreak
3287 \end_layout
3288
3289 \end_inset
3290
3291
3292 \family roman
3293 \series medium
3294 \shape up
3295 \size normal
3296 \emph off
3297 \bar no
3298 \noun off
3299 \color none
3300 などをたくさん挿入するなど、微調整オプションを
3301 \family default
3302 \series default
3303 \shape default
3304 \size default
3305 \emph on
3306 \bar default
3307 \noun default
3308 \color inherit
3309 悪用
3310 \family roman
3311 \series medium
3312 \shape up
3313 \size normal
3314 \emph off
3315 \bar no
3316 \noun off
3317 \color none
3318 していませんか。適切な段落環境を使用する代わりに、これらを使用してその場をしのごうとしていませんか。
3319 \end_layout
3320
3321 \begin_layout Enumerate
3322
3323 \family roman
3324 \series medium
3325 \shape up
3326 \size normal
3327 \emph off
3328 \bar no
3329 \noun off
3330 \color none
3331 微調整オプションはまったく使用しておらず、規則に乗っ取って作業していたものとしましょう。何か曲芸のようなことをしようとはしていませんか。数式や表中で、たとえば表
3332 のセルに図を入れるなど、おかしなことをしようとしていませんか。
3333 \end_layout
3334
3335 \begin_layout Enumerate
3336 LaTeXが改行位置を見つけられないほど長い一節がありませんか。既定では、改行するために単語間に空白をたくさん追加することを、LaTeXはかなり嫌います。可能で
3337 あれば、問題が生じないように段落を修正するのが望ましいでしょう。それが難しければ、LaTeXが改行しやすく(sloppy)なるように、その部分を
3338 \family typewriter
3339
3340 \begin_inset Flex Code
3341 status collapsed
3342
3343 \begin_layout Plain Layout
3344
3345 \family typewriter
3346
3347 \backslash
3348 sloppypar
3349 \end_layout
3350
3351 \end_inset
3352
3353
3354 \family default
3355 で囲んでください。
3356 \end_layout
3357
3358 \begin_layout Enumerate
3359
3360 \family roman
3361 \series medium
3362 \shape up
3363 \size normal
3364 \emph off
3365 \bar no
3366 \noun off
3367 \color none
3368 入れ子の階層を深くしすぎていませんか。LyXは、(今のところ)環境の入れ子の階層が制限内にあるかチェックしません。かりに、環境を17段の入れ子にしたりしていたら
3369 、それが原因です(LaTeXの上限は5段です)。
3370 \end_layout
3371
3372 \begin_layout Enumerate
3373
3374 \family roman
3375 \series medium
3376 \shape up
3377 \size normal
3378 \emph off
3379 \bar no
3380 \noun off
3381 \color none
3382 エラーメッセージは発生しないけれども、出力がひどいものとしましょう。図表が幅が広すぎたり長すぎてページに収まらない場合には、
3383 \end_layout
3384
3385 \begin_deeper
3386 \begin_layout Enumerate
3387
3388 \family roman
3389 \series medium
3390 \shape up
3391 \size normal
3392 \emph off
3393 \bar no
3394 \noun off
3395 \color none
3396 図がページに合うように大きさを変える、
3397 \end_layout
3398
3399 \begin_layout Enumerate
3400
3401 \family roman
3402 \series medium
3403 \shape up
3404 \size normal
3405 \emph off
3406 \bar no
3407 \noun off
3408 \color none
3409 表がページに合うように削る、
3410 \end_layout
3411
3412 \begin_layout Standard
3413
3414 \family roman
3415 \series medium
3416 \shape up
3417 \size normal
3418 \emph off
3419 \bar no
3420 \noun off
3421 \color none
3422 などの手段を採る必要があります。
3423 \end_layout
3424
3425 \end_deeper
3426 \begin_layout Enumerate
3427 他に出力におかしいところがあり、曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば、何がおかしいのか確定的なことは言えません。
3428 \end_layout
3429
3430 \begin_layout Standard
3431
3432 \family roman
3433 \series medium
3434 \shape up
3435 \size normal
3436 \emph off
3437 \bar no
3438 \noun off
3439 \color none
3440 これらすべてが役に立たないとすれば、
3441 \family default
3442 \series default
3443 \shape default
3444 \size default
3445 \emph on
3446 \bar default
3447 \noun default
3448 \color inherit
3449 ひょっとしたら
3450 \family roman
3451 \series medium
3452 \shape up
3453 \size normal
3454 \emph off
3455 \bar no
3456 \noun off
3457 \color none
3458 LyXのバグを発見したのかもしれません‥‥。
3459 \end_layout
3460
3461 \begin_layout Chapter
3462 補完ツール
3463 \end_layout
3464
3465 \begin_layout Section
3466 BibTeXによる参照文献のカスタマイズ
3467 \end_layout
3468
3469 \begin_layout Standard
3470 BibTeXの基本的な使用法は、『
3471 \emph on
3472 ユーザーの手引き
3473 \emph default
3474 』の
3475 \emph on
3476 参考文献データベース(BibTeX)
3477 \emph default
3478 の節に説明があります。以下の各小節では、LyXでサポートされている参考文献の特別な機能について説明することとします。
3479 \end_layout
3480
3481 \begin_layout Subsection
3482 他の引用様式
3483 \end_layout
3484
3485 \begin_layout Standard
3486 標準のBibTeXは、引用された著作を参照するのに、([12]のように)数字を使用します。しかし、多くの科学分野で、これとは異なる引用様式が用いられています。も
3487 っともよく見られるのは、著者-出版年様式(例:Knuth 1984a)です。LyXは、この様式を提供する2つのパッケージ
3488 \begin_inset Flex Code
3489 status collapsed
3490
3491 \begin_layout Plain Layout
3492 natbib
3493 \end_layout
3494
3495 \end_inset
3496
3497
3498 \begin_inset Flex Code
3499 status collapsed
3500
3501 \begin_layout Plain Layout
3502 jurabib
3503 \end_layout
3504
3505 \end_inset
3506
3507 をサポートしています。これらのパッケージには、それぞれ長所短所がありますが、ここでは詳細に立ち入る紙幅がありません。単純な著者-出版年様式(あるいは著者-番号)
3508 様式が欲しい場合や、無数にある
3509 \begin_inset Flex Code
3510 status collapsed
3511
3512 \begin_layout Plain Layout
3513 natbib
3514 \end_layout
3515
3516 \end_inset
3517
3518 用スタイルファイルのうちどれかを使用したい場合には、定評のある
3519 \begin_inset Flex Code
3520 status collapsed
3521
3522 \begin_layout Plain Layout
3523 natbib
3524 \end_layout
3525
3526 \end_inset
3527
3528 パッケージがおそらくよい選択でしょう。短縮タイトルによる参照や
3529 \emph on
3530 ibid.
3531 \emph default
3532 など、特別な機能が必要な場合には、
3533 \begin_inset Flex Code
3534 status collapsed
3535
3536 \begin_layout Plain Layout
3537 jurabib
3538 \end_layout
3539
3540 \end_inset
3541
3542 パッケージの利用を考えるとよいかもしれません。
3543 \end_layout
3544
3545 \begin_layout Standard
3546 LyXでの両パッケージの取扱い方は、ほぼ同じです。
3547 \begin_inset Flex MenuItem
3548 status collapsed
3549
3550 \begin_layout Plain Layout
3551 文書\SpecialChar \menuseparator
3552 設定
3553 \end_layout
3554
3555 \end_inset
3556
3557 メニューを開き、
3558 \begin_inset Flex MenuItem
3559 status collapsed
3560
3561 \begin_layout Plain Layout
3562 参考文献
3563 \end_layout
3564
3565 \end_inset
3566
3567 項目から
3568 \begin_inset Flex MenuItem
3569 status collapsed
3570
3571 \begin_layout Plain Layout
3572 Natbib
3573 \end_layout
3574
3575 \end_inset
3576
3577 オプションか
3578 \begin_inset Flex MenuItem
3579 status collapsed
3580
3581 \begin_layout Plain Layout
3582 Jurabib
3583 \end_layout
3584
3585 \end_inset
3586
3587 オプションを選択してください。これらのパッケージによって、引用ダイアログに機能が追加され、参照の様式が選択できるようになります(「Knuth 1984」、「Kn
3588 uth (1984)」、「Knuth, 1984」、「1984」など)。両パッケージは、専用にデザインされたスタイルファイルを必要とすることに注意してください。
3589 両者ともそれ自身のスタイルファイルを同梱していますが、他にもたくさんの追加スタイルファイルがありますし、
3590 \begin_inset Flex Code
3591 status collapsed
3592
3593 \begin_layout Plain Layout
3594 natbib
3595 \end_layout
3596
3597 \end_inset
3598
3599 に至っては、対話的なスタイルファイルビルダーさえ存在します
3600 \begin_inset Foot
3601 status collapsed
3602
3603 \begin_layout Plain Layout
3604 \begin_inset Flex URL
3605 status open
3606
3607 \begin_layout Plain Layout
3608
3609 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3610 \end_layout
3611
3612 \end_inset
3613
3614 をご参照ください。
3615 \end_layout
3616
3617 \end_inset
3618
3619
3620 \end_layout
3621
3622 \begin_layout Subsection
3623 節分けされた参考文献
3624 \end_layout
3625
3626 \begin_layout Standard
3627 場合によっては、参考文献をいくつかの節に分ける必要があることがあります。たとえば、あなたが歴史家であるとすれば、出典と学術文献を分ける機能は、おそらく「必需品」
3628 でさえあります。残念ながら、BibTeX自身ではこのようなことができません。しかし、適切なLaTeXパッケージの助けを借りると、BibTeXをこのような必要性を
3629 満たすように拡張することができます。
3630 \end_layout
3631
3632 \begin_layout Standard
3633 LyXは、このようなパッケージの一つである
3634 \begin_inset Flex Code
3635 status collapsed
3636
3637 \begin_layout Plain Layout
3638 bibtopic
3639 \end_layout
3640
3641 \end_inset
3642
3643
3644 \begin_inset Foot
3645 status collapsed
3646
3647 \begin_layout Plain Layout
3648 \begin_inset Flex URL
3649 status open
3650
3651 \begin_layout Plain Layout
3652
3653 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3654 \end_layout
3655
3656 \end_inset
3657
3658 から入手可能です。
3659 \end_layout
3660
3661 \end_inset
3662
3663 をそのままでサポートします。このパッケージの長所は、(
3664 \begin_inset Flex Code
3665 status collapsed
3666
3667 \begin_layout Plain Layout
3668 multibib
3669 \end_layout
3670
3671 \end_inset
3672
3673 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです。そのかわりに、参考文献の違う節には、その節向けの項目を収録した別の参考文献デ
3674 ータベースを用意する必要があります。たとえば、参考文献を「出典」の節と「学術文献」の節に分けたい場合には、それぞれの参考文献データベース、たとえば
3675 \begin_inset Flex Code
3676 status collapsed
3677
3678 \begin_layout Plain Layout
3679 souces.bib
3680 \end_layout
3681
3682 \end_inset
3683
3684
3685 \begin_inset Flex Code
3686 status collapsed
3687
3688 \begin_layout Plain Layout
3689 scientific.bib
3690 \end_layout
3691
3692 \end_inset
3693
3694 とを作成する必要があります。
3695 \end_layout
3696
3697 \begin_layout Standard
3698 \begin_inset Flex MenuItem
3699 status collapsed
3700
3701 \begin_layout Plain Layout
3702 文書\SpecialChar \menuseparator
3703 設定
3704 \end_layout
3705
3706 \end_inset
3707
3708 を開いて
3709 \begin_inset Flex MenuItem
3710 status collapsed
3711
3712 \begin_layout Plain Layout
3713 参考文献
3714 \end_layout
3715
3716 \end_inset
3717
3718 の下の
3719 \begin_inset Flex MenuItem
3720 status collapsed
3721
3722 \begin_layout Plain Layout
3723 節分けされた参考文献
3724 \end_layout
3725
3726 \end_inset
3727
3728 をチェックしてください。すると、参考文献の各節に一つずつ、複数の参考文献を挿入することができます。上記の例では、BibTeX参考文献
3729 \begin_inset Flex Code
3730 status collapsed
3731
3732 \begin_layout Plain Layout
3733 sources.bib
3734 \end_layout
3735
3736 \end_inset
3737
3738 と二つめの参考文献データベース
3739 \begin_inset Flex Code
3740 status collapsed
3741
3742 \begin_layout Plain Layout
3743 scientific.bib
3744 \end_layout
3745
3746 \end_inset
3747
3748 を挿入します。各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です。くわえて、参考文献の節に、指定したデータベースの「引用されたすべての参照」を載せる
3749 (これが既定です)か、「引用されなかったすべての参照」を載せるか、あるいは「すべての参照」を載せるかを選択することができます。これは、もし参考文献を「本文に引用
3750 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に、便利でありましょう。各節の見出しは、通常の節や小節として入れることができ
3751 ます。
3752 \begin_inset Flex Code
3753 status collapsed
3754
3755 \begin_layout Plain Layout
3756 bibtopic
3757 \end_layout
3758
3759 \end_inset
3760
3761 は、参考文献用の見出しを取り除いてしまいますので、手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください)。
3762 \end_layout
3763
3764 \begin_layout Subsection
3765 複数の参考文献
3766 \end_layout
3767
3768 \begin_layout Standard
3769 文書の節ごとあるいは章ごとの参考文献など、複数の参考文献はBibTeX自身ではサポートされていません。しかしながら、もし若干の
3770 \begin_inset Flex Code
3771 status collapsed
3772
3773 \begin_layout Plain Layout
3774 TeXコード
3775 \end_layout
3776
3777 \end_inset
3778
3779 (第
3780 \begin_inset CommandInset ref
3781 LatexCommand ref
3782 reference "sec:LaTeXコードを挿入する"
3783
3784 \end_inset
3785
3786 節を参照)を利用することを厭わなければ、LyXで節分けされた参考文献を作るのに使用されている(前節を参照)
3787 \begin_inset Flex Code
3788 status collapsed
3789
3790 \begin_layout Plain Layout
3791 bibtopic
3792 \end_layout
3793
3794 \end_inset
3795
3796 パッケージが、この課題を解決する簡単な方法を提供します
3797 \begin_inset Foot
3798 status collapsed
3799
3800 \begin_layout Plain Layout
3801 ほかに、
3802 \begin_inset Flex Code
3803 status collapsed
3804
3805 \begin_layout Plain Layout
3806 chapterbib
3807 \end_layout
3808
3809 \end_inset
3810
3811
3812 \begin_inset Flex Code
3813 status collapsed
3814
3815 \begin_layout Plain Layout
3816 bibunits
3817 \end_layout
3818
3819 \end_inset
3820
3821 パッケージを利用する方法もあります。
3822 \end_layout
3823
3824 \end_inset
3825
3826
3827 \end_layout
3828
3829 \begin_layout Standard
3830 まず
3831 \begin_inset Flex MenuItem
3832 status collapsed
3833
3834 \begin_layout Plain Layout
3835 文書\SpecialChar \menuseparator
3836 設定
3837 \end_layout
3838
3839 \end_inset
3840
3841 に行って
3842 \begin_inset Flex MenuItem
3843 status collapsed
3844
3845 \begin_layout Plain Layout
3846 参考文献
3847 \end_layout
3848
3849 \end_inset
3850
3851 の下の
3852 \begin_inset Flex MenuItem
3853 status collapsed
3854
3855 \begin_layout Plain Layout
3856 節分けされた参考文献
3857 \end_layout
3858
3859 \end_inset
3860
3861 を有効にしてください。つぎに文書中において、参考文献(BibTeX参考文献本体を含む)の入った節を
3862 \begin_inset Flex Code
3863 status collapsed
3864
3865 \begin_layout Plain Layout
3866
3867 \backslash
3868 begin{btUnit}
3869 \end_layout
3870
3871 \end_inset
3872
3873
3874 \begin_inset Flex Code
3875 status collapsed
3876
3877 \begin_layout Plain Layout
3878
3879 \backslash
3880 end{btUnit}
3881 \end_layout
3882
3883 \end_inset
3884
3885 のあいだにはさまなくてはなりません(これらのコマンドはTeXコードとして挿入する必要があります)。参考文献には、現在位置の
3886 \begin_inset Flex Code
3887 status collapsed
3888
3889 \begin_layout Plain Layout
3890 btUnit
3891 \end_layout
3892
3893 \end_inset
3894
3895 において引用されたすべての参照が含まれることになります。
3896 \series bold
3897 (註)
3898 \series default
3899 この方法を用いる場合には、すべての参照はいずれかの
3900 \begin_inset Flex Code
3901 status collapsed
3902
3903 \begin_layout Plain Layout
3904 btUnit
3905 \end_layout
3906
3907 \end_inset
3908
3909 内部になくてはなりません。また、
3910 \begin_inset Flex Code
3911 status collapsed
3912
3913 \begin_layout Plain Layout
3914 btUnit
3915 \end_layout
3916
3917 \end_inset
3918
3919 は入れ子構造にすることができません。
3920 \end_layout
3921
3922 \begin_layout Section
3923 複合文書
3924 \end_layout
3925
3926 \begin_layout Subsection
3927 一般的な操作
3928 \end_layout
3929
3930 \begin_layout Standard
3931 たくさんの節を含んだ大きなファイルで作業をする場合、文書をいくつかのファイルに分割した方が往々にして便利ですし、場合によっては、表部分にはしょっちゅう変更が加え
3932 られるけれども、その前の文章はつねに同じであるようなケースもあるでしょう。このような場合には、複合文書を利用することを、まずご検討ください。たとえば、科学論文は
3933 通常、導入部・所見・結果・議論・結論の五つの節から成ります。これら各節を別々のLyXファイルにして、タイトル・著者・概要・参考文献等と、これら五つのインクルード
3934 \begin_inset Foot
3935 status collapsed
3936
3937 \begin_layout Plain Layout
3938
3939 \series bold
3940 (訳註)
3941 \series default
3942 「取り込む」の意です。原語「include」に対する訳語として、プログラミング用語の「インクルードする」以外に適語がないので、ここではプログラミング用語をそのま
3943 ま使用します。
3944 \end_layout
3945
3946 \end_inset
3947
3948 ファイルを持つ、もう一つ別の「マスター」ファイルを作成するようにすることができます。これらの各ファイルは、単にマスターファイルにインクルードされるだけでなく、単
3949 独でも出力したり印刷したりすることのできる完全なLyXファイルであるように注意することが重要です。しかも、これらの各ファイルは、同じ文書クラスでなくてはなりませ
3950 ん。articleクラスとbookクラスを混在させるようなことはなさらないでください。LaTeXファイルをインクルードすることもできますが、このファイルにはプリ
3951 アンブルがあってはなりません(
3952 \family typewriter
3953
3954 \backslash
3955 begin{document}
3956 \family default
3957 行とその前のすべて、および
3958 \family typewriter
3959
3960 \backslash
3961 end{documen
3962 \family default
3963 t}行は削除しておかなければなりません)。さもないと、DVIファイルを作成する際にエラーが発生するでしょう。
3964 \end_layout
3965
3966 \begin_layout Standard
3967 LyXでは、
3968 \family sans
3969 挿入\SpecialChar \menuseparator
3970 ファイル\SpecialChar \menuseparator
3971 子文書
3972 \family default
3973 で簡単にファイルをインクルードすることができます。このメニューを選んでクリックすると、カーソルの現在位置に小さな枠が挿入されます。この枠をクリックすると、ダイア
3974 ログが現れるので、そこでインクルードするファイルとインクルード方法を選択することができます。
3975 \end_layout
3976
3977 \begin_layout Standard
3978 ファイル選択ボックスは、いまや自明でしょう。インクルード方法には、「include」・「input」・「verbatim」の三つがあります。「include」と
3979 「input」の違いは、正確にはLaTeXの達人にしか意味のないものですが、ほとんどの人にとって意味のある違いといえば、「include」されたファイルは新規頁
3980 から組版されるのに対し、「input」されたファイルは現在のページから組版される点です。
3981 \end_layout
3982
3983 \begin_layout Standard
3984 一般に、マスターファイルは、組版前に完全なLaTeXファイルに変換されますが、インクルードされるファイルは、プリアンブル情報をまったく持たないLaTeXファイル
3985 に変換されます。
3986 \end_layout
3987
3988 \begin_layout Standard
3989 「verbatim」インクルードファイルでは、ファイルの内容がそのまま(つまり「
3990 \begin_inset Flex Code
3991 status collapsed
3992
3993 \begin_layout Plain Layout
3994 verbatim
3995 \end_layout
3996
3997 \end_inset
3998
3999 」モードで)固定幅タイプライタフォントで組版されます。通常、このファイルの空白は、通常のLyXでの空白の取扱いとは違って、連続した複数の空白がそのまま出力される
4000 ものの、単なる見えない空白です。ただし、
4001 \family sans
4002
4003 \begin_inset Flex MenuItem
4004 status collapsed
4005
4006 \begin_layout Plain Layout
4007
4008 \family sans
4009 出力の空白に印付けをする
4010 \end_layout
4011
4012 \end_inset
4013
4014
4015 \family default
4016 チェックボックスを有効にすると、空白が存在することを明確にするために空白の印が出力されます。
4017 \end_layout
4018
4019 \begin_layout Subsection
4020 ファイル間の相互参照
4021 \end_layout
4022
4023 \begin_layout Standard
4024 \begin_inset Box Shadowbox
4025 position "t"
4026 hor_pos "c"
4027 has_inner_box 1
4028 inner_pos "t"
4029 use_parbox 0
4030 use_makebox 0
4031 width "100col%"
4032 special "none"
4033 height "1in"
4034 height_special "totalheight"
4035 status open
4036
4037 \begin_layout Plain Layout
4038 この節の内容は、すでに古くなっています。既定のマスター文書についてと、マスターが開いているときに子文書をどう開くかについて記述する必要があります。[[要修正]]
4039 \end_layout
4040
4041 \end_inset
4042
4043
4044 \end_layout
4045
4046 \begin_layout Standard
4047 異なるファイル間に相互参照を設定することも可能です。まず、すべての関係するファイルを開いてください。例として、2つのファイルを扱う場合を考え、各ファイルをA・B
4048 と呼びます。BがAにインクルードされるファイルだとします。Aにラベルを入れて、Bで参照したいとしましょう。文書Bで相互参照ダイアログを開いて、使用する「バッファ
4049 」を選んでください。
4050 \end_layout
4051
4052 \begin_layout Subsection
4053 すべての子文書での参考文献
4054 \end_layout
4055
4056 \begin_layout Standard
4057 \begin_inset Box Shadowbox
4058 position "t"
4059 hor_pos "c"
4060 has_inner_box 1
4061 inner_pos "t"
4062 use_parbox 0
4063 use_makebox 0
4064 width "100col%"
4065 special "none"
4066 height "1in"
4067 height_special "totalheight"
4068 status open
4069
4070 \begin_layout Plain Layout
4071 この節も更新が必要です。この点に関する内容がwikiにあるので、それをここにコピーすることも可か。
4072 \end_layout
4073
4074 \end_inset
4075
4076
4077 \end_layout
4078
4079 \begin_layout Standard
4080 すべての子文書の全文献項目を含んだ参考文献一覧をコピーし、それをコメントに変更してください。このようにすることで、LyXは.bibファイルを見つけることができ、参
4081 考文献一覧を見えるようにせずとも簡単に参照を挿入することができるようになります。
4082 \end_layout
4083
4084 \begin_layout Standard
4085 参考文献一覧がコメントにあるために、LaTeXはそれを使用しないので、参照は[1]のようには表示されないで[?]のように表示されます。ひとつの解決法として、コメ
4086 ントをインクルードするLaTeXパッケージの
4087 \begin_inset Flex Code
4088 status collapsed
4089
4090 \begin_layout Plain Layout
4091 comment
4092 \end_layout
4093
4094 \end_inset
4095
4096 を使用して、ファイルを別々に処理する方法があります。そのためには、すべての子文書のプリアンブルに以下を書き加えてください。
4097 \end_layout
4098
4099 \begin_layout LyX-Code
4100
4101 \backslash
4102 usepackage{comment}
4103 \end_layout
4104
4105 \begin_layout LyX-Code
4106
4107 \backslash
4108 includecomment{comment}
4109 \end_layout
4110
4111 \begin_layout Standard
4112 \begin_inset Flex URL
4113 status collapsed
4114
4115 \begin_layout Plain Layout
4116
4117 http://wiki.lyx.org/FAQ/Unsorted#toc31
4118 \end_layout
4119
4120 \end_inset
4121
4122 も参照してください。
4123 \end_layout
4124
4125 \begin_layout Section
4126 装飾的なヘッダ・フッタ
4127 \end_layout
4128
4129 \begin_layout Standard
4130 既定のページレイアウトは、どちらかといえば素っ気ないものです。
4131 \begin_inset Flex Code
4132 status collapsed
4133
4134 \begin_layout Plain Layout
4135 article
4136 \end_layout
4137
4138 \end_inset
4139
4140 文書クラスの場合には、ページの下の真ん中にページ番号がつくだけです。この取扱説明書はKOMA-scriptのbookクラスなので、すこしは凝ってますが、ほんとう
4141 に着飾るには、『
4142 \emph on
4143 ユーザーの手引き
4144 \emph default
4145 』に述べられているように、文書ページスタイルを「装飾的(fancy)」に設定する必要があります。この節では、望んだとおりの効果を得るために、LaTeXプリアンブ
4146 ルに挿入する必要のあるLaTeXコードについて解説します。
4147 \end_layout
4148
4149 \begin_layout Standard
4150 ページへッダは、「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています。フッタも同様に3つのフィールド
4151 に分類されています。これらのフィールドをもっとも簡単に設定するLaTeXコマンドには、
4152 \family typewriter
4153
4154 \begin_inset Flex Code
4155 status collapsed
4156
4157 \begin_layout Plain Layout
4158
4159 \family typewriter
4160
4161 \backslash
4162 lhead
4163 \end_layout
4164
4165 \end_inset
4166
4167
4168 \family default
4169
4170 \family typewriter
4171
4172 \begin_inset Flex Code
4173 status collapsed
4174
4175 \begin_layout Plain Layout
4176
4177 \family typewriter
4178
4179 \backslash
4180 chead
4181 \end_layout
4182
4183 \end_inset
4184
4185
4186 \family default
4187
4188 \family typewriter
4189
4190 \begin_inset Flex Code
4191 status collapsed
4192
4193 \begin_layout Plain Layout
4194
4195 \family typewriter
4196
4197 \backslash
4198 rhead
4199 \end_layout
4200
4201 \end_inset
4202
4203
4204 \family default
4205
4206 \begin_inset Flex Code
4207 status collapsed
4208
4209 \begin_layout Plain Layout
4210
4211 \backslash
4212 lfoot
4213 \end_layout
4214
4215 \end_inset
4216
4217 などがあります。かりに、各ページの左上端に自分の名前を入れたいものとしましょう。次のようなコマンドをプリアンブルに入れるだけです。
4218 \end_layout
4219
4220 \begin_layout Standard
4221
4222 \family typewriter
4223
4224 \backslash
4225 lhead{物書 はじめ}
4226 \end_layout
4227
4228 \begin_layout Standard
4229 これで自分の名前が左上に現れます。フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には、空の引数を持つコマンドを入
4230 れるだけです。すなわち、
4231 \end_layout
4232
4233 \begin_layout Standard
4234
4235 \family typewriter
4236
4237 \backslash
4238 cfoot{}
4239 \begin_inset Newline newline
4240 \end_inset
4241
4242
4243 \family default
4244 とします。
4245 \end_layout
4246
4247 \begin_layout Standard
4248 もっと美しくしてみましょう。節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ、ページ番号を(4ページのように)右上に、自分の名前を左下に、日
4249 付を右下に入れます。以下のコマンドをプリアンブルに入れます。
4250 \end_layout
4251
4252 \begin_layout Standard
4253
4254 \family typewriter
4255
4256 \backslash
4257 lhead{第
4258 \backslash
4259 thesection 節}
4260 \end_layout
4261
4262 \begin_layout Standard
4263
4264 \family typewriter
4265
4266 \backslash
4267 chead{}
4268 \end_layout
4269
4270 \begin_layout Standard
4271
4272 \family typewriter
4273
4274 \backslash
4275 rhead{
4276 \backslash
4277 thepage ページ}
4278 \end_layout
4279
4280 \begin_layout Standard
4281
4282 \family typewriter
4283
4284 \backslash
4285 lfoot{物書 はじめ}
4286 \end_layout
4287
4288 \begin_layout Standard
4289
4290 \family typewriter
4291
4292 \backslash
4293 cfoot{}
4294 \end_layout
4295
4296 \begin_layout Standard
4297
4298 \family typewriter
4299
4300 \backslash
4301 rfoot{
4302 \backslash
4303 today}
4304 \end_layout
4305
4306 \begin_layout Standard
4307 コマンド
4308 \family typewriter
4309
4310 \begin_inset Flex Code
4311 status collapsed
4312
4313 \begin_layout Plain Layout
4314
4315 \family typewriter
4316
4317 \backslash
4318 thesecti
4319 \family default
4320 o
4321 \family typewriter
4322 n
4323 \end_layout
4324
4325 \end_inset
4326
4327
4328 \family default
4329
4330 \begin_inset Flex Code
4331 status collapsed
4332
4333 \begin_layout Plain Layout
4334
4335 \family typewriter
4336
4337 \backslash
4338 thepa
4339 \family default
4340 ge
4341 \end_layout
4342
4343 \end_inset
4344
4345 は、それぞれLaTeXの節カウンタおよびページカウンタを取得するもので、これによって現在の節番号とページ番号を印字します。
4346 \begin_inset Flex Code
4347 status collapsed
4348
4349 \begin_layout Plain Layout
4350
4351 \family typewriter
4352
4353 \backslash
4354 tod
4355 \family default
4356 ay
4357 \end_layout
4358
4359 \end_inset
4360
4361 は、今日の日付を印字するものです。
4362 \end_layout
4363
4364 \begin_layout Standard
4365 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます。もし罫線が必要なければ、太さを0にしてください。ヘッダ罫線は、既定では0.4ptの太さであり、
4366 フッタ罫線は0ptです。太さを変更するには、
4367 \family typewriter
4368
4369 \begin_inset Flex Code
4370 status collapsed
4371
4372 \begin_layout Plain Layout
4373
4374 \family typewriter
4375
4376 \backslash
4377 renewcommand{
4378 \backslash
4379 headrulewidth}{0.4pt}
4380 \end_layout
4381
4382 \end_inset
4383
4384
4385 \family default
4386
4387 \family typewriter
4388
4389 \begin_inset Flex Code
4390 status collapsed
4391
4392 \begin_layout Plain Layout
4393
4394 \family typewriter
4395
4396 \backslash
4397 renewcommand{
4398 \backslash
4399 footrulewidth}{0.4pt}
4400 \end_layout
4401
4402 \end_inset
4403
4404
4405 \family default
4406 のようなコマンドを使用してください。
4407 \end_layout
4408
4409 \begin_layout Standard
4410 \begin_inset Flex Code
4411 status collapsed
4412
4413 \begin_layout Plain Layout
4414
4415 \family typewriter
4416
4417 \backslash
4418 thispagestyle{empty}
4419 \end_layout
4420
4421 \end_inset
4422
4423
4424 \begin_inset Flex Code
4425 status collapsed
4426
4427 \begin_layout Plain Layout
4428
4429 \family typewriter
4430
4431 \backslash
4432 thispagestyle{plain}
4433 \end_layout
4434
4435 \end_inset
4436
4437
4438 \begin_inset Flex Code
4439 status collapsed
4440
4441 \begin_layout Plain Layout
4442
4443 \family typewriter
4444
4445 \backslash
4446 thispagestyle{fancy}
4447 \end_layout
4448
4449 \end_inset
4450
4451 のようなコマンドを使えば、各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます。設定を変更したいページに、これらのコマンドをTeXコード
4452 として挿入してください。実は、タイトルページは、その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず、既定でプ
4453 レーン(plain)になるように設定されているのです。
4454 \end_layout
4455
4456 \begin_layout Standard
4457 奇数ページの左上だけに何かを挿入するなど、もっと複雑なコマンドもあるのですが、詳しい解説は
4458 \begin_inset Flex Code
4459 status collapsed
4460
4461 \begin_layout Plain Layout
4462
4463 \family typewriter
4464 fancyhdr
4465 \end_layout
4466
4467 \end_inset
4468
4469 パッケージの取扱説明書をご参照ください(
4470 \begin_inset Flex Code
4471 status collapsed
4472
4473 \begin_layout Plain Layout
4474 fancyhdr.dvi
4475 \end_layout
4476
4477 \end_inset
4478
4479 を探してください)。
4480 \end_layout
4481
4482 \begin_layout Standard
4483 最後の例として、へッダやフッタに画像を挿入できることを取り上げましょう。会社のロゴをページ左上に入れたいものとします。たとえば、
4484 \end_layout
4485
4486 \begin_layout Standard
4487
4488 \family typewriter
4489
4490 \backslash
4491 lhead{
4492 \backslash
4493 resizebox{1in}{!}{
4494 \backslash
4495 includegraphics{logo.eps}}}
4496 \end_layout
4497
4498 \begin_layout Standard
4499 \noindent
4500 とすれば、これを実現できます(文書中に他に画像を挿入していない場合には、
4501 \begin_inset Newline newline
4502 \end_inset
4503
4504
4505 \begin_inset Flex Code
4506 status collapsed
4507
4508 \begin_layout Plain Layout
4509 \noindent
4510
4511 \family typewriter
4512
4513 \backslash
4514 usepackage{graphics}
4515 \end_layout
4516
4517 \end_inset
4518
4519 をプリアンブルに宣言する必要があります)。
4520 \end_layout
4521
4522 \begin_layout Section
4523 箇条書き(記号)ブリットの指定
4524 \begin_inset CommandInset label
4525 LatexCommand label
4526 name "sec:ブリット"
4527
4528 \end_inset
4529
4530
4531 \end_layout
4532
4533 \begin_layout Standard
4534
4535 \noun on
4536 Allan Rae文
4537 \end_layout
4538
4539 \begin_layout Subsection
4540 はじめに
4541 \end_layout
4542
4543 \begin_layout Standard
4544 LyXには、ブリットの形が216個準備されていて、簡単なダイアログから呼び出すことができます。このダイアログを使えば、箇条書き(記号)の各階層で使うブリットの形
4545 を変更することができます。この設定は文書全体に共通なので、段落ごとに別のブリットを指定することはできません
4546 \begin_inset Foot
4547 status collapsed
4548
4549 \begin_layout Plain Layout
4550 正確には可能ですが、手動で行う必要があります。
4551 \end_layout
4552
4553 \end_inset
4554
4555
4556 \end_layout
4557
4558 \begin_layout Subsection
4559 インタフェース
4560 \end_layout
4561
4562 \begin_layout Standard
4563 メニュー項目の
4564 \begin_inset Flex MenuItem
4565 status collapsed
4566
4567 \begin_layout Plain Layout
4568 文書\SpecialChar \menuseparator
4569 設定
4570 \end_layout
4571
4572 \end_inset
4573
4574 を選択してダイアログを開き、
4575 \begin_inset Flex MenuItem
4576 status collapsed
4577
4578 \begin_layout Plain Layout
4579 ブリット
4580 \end_layout
4581
4582 \end_inset
4583
4584 タブを選択してください。
4585 \end_layout
4586
4587 \begin_layout Standard
4588 そのダイアログに、ブリットの形の一覧表があります。
4589 \begin_inset Flex MenuItem
4590 status collapsed
4591
4592 \begin_layout Plain Layout
4593 フォント
4594 \end_layout
4595
4596 \end_inset
4597
4598 と書いてあるドロップダウンメニューで、6つの各ブリット形パネルを切り替えることができます。また、一覧表左の
4599 \begin_inset Flex MenuItem
4600 status collapsed
4601
4602 \begin_layout Plain Layout
4603 階層
4604 \end_layout
4605
4606 \end_inset
4607
4608 パネルは、変更したい階層を選択するものです。
4609 \begin_inset Flex MenuItem
4610 status collapsed
4611
4612 \begin_layout Plain Layout
4613 任意のブリット
4614 \end_layout
4615
4616 \end_inset
4617
4618 では、指定したいLaTeX表現を入力することができます。任意のブリットを指定した場合には、そのコマンドが必要とするパッケージをLaTeXプリアンブルで指定する必
4619 要があります。
4620 \end_layout
4621
4622 \begin_layout Standard
4623 6つのパネルは、それぞれが必要とするパッケージによって分類されています。下記は、フォント名とLaTeXパッケージの対応表です。
4624 \end_layout
4625
4626 \begin_layout Standard
4627 \align center
4628 \begin_inset Tabular
4629 <lyxtabular version="3" rows="7" columns="2">
4630 <features tabularvalignment="middle">
4631 <column alignment="center" valignment="top" width="0pt">
4632 <column alignment="center" valignment="top" width="0pt">
4633 <row>
4634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4635 \begin_inset Text
4636
4637 \begin_layout Plain Layout
4638 フォント
4639 \end_layout
4640
4641 \end_inset
4642 </cell>
4643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4644 \begin_inset Text
4645
4646 \begin_layout Plain Layout
4647
4648 \family roman
4649 \series medium
4650 \shape up
4651 \size normal
4652 \emph off
4653 \bar no
4654 \noun off
4655 \color none
4656 必要とするパッケージ
4657 \end_layout
4658
4659 \end_inset
4660 </cell>
4661 </row>
4662 <row>
4663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4664 \begin_inset Text
4665
4666 \begin_layout Plain Layout
4667
4668 \family sans
4669 標準
4670 \end_layout
4671
4672 \end_inset
4673 </cell>
4674 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4675 \begin_inset Text
4676
4677 \begin_layout Plain Layout
4678
4679 \series medium
4680 \shape up
4681 \size normal
4682 \emph off
4683 \bar no
4684 \noun off
4685 \color none
4686 LaTeX
4687 \family roman
4688 本体
4689 \end_layout
4690
4691 \end_inset
4692 </cell>
4693 </row>
4694 <row>
4695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4696 \begin_inset Text
4697
4698 \begin_layout Plain Layout
4699
4700 \family sans
4701 \series medium
4702 \shape up
4703 \size normal
4704 \emph off
4705 \bar no
4706 \noun off
4707 \color none
4708 数式
4709 \end_layout
4710
4711 \end_inset
4712 </cell>
4713 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4714 \begin_inset Text
4715
4716 \begin_layout Plain Layout
4717
4718 \family typewriter
4719 \series medium
4720 \shape up
4721 \size normal
4722 \emph off
4723 \bar no
4724 \noun off
4725 \color none
4726 amssymb.sty
4727 \end_layout
4728
4729 \end_inset
4730 </cell>
4731 </row>
4732 <row>
4733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4734 \begin_inset Text
4735
4736 \begin_layout Plain Layout
4737
4738 \family sans
4739 \series medium
4740 \shape up
4741 \size normal
4742 \emph off
4743 \bar no
4744 \noun off
4745 \color none
4746 絵文字1
4747 \end_layout
4748
4749 \end_inset
4750 </cell>
4751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4752 \begin_inset Text
4753
4754 \begin_layout Plain Layout
4755
4756 \family typewriter
4757 \series medium
4758 \shape up
4759 \size normal
4760 \emph off
4761 \bar no
4762 \noun off
4763 \color none
4764 pifont.sty
4765 \end_layout
4766
4767 \end_inset
4768 </cell>
4769 </row>
4770 <row>
4771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4772 \begin_inset Text
4773
4774 \begin_layout Plain Layout
4775
4776 \family sans
4777 \series medium
4778 \shape up
4779 \size normal
4780 \emph off
4781 \bar no
4782 \noun off
4783 \color none
4784 絵文字2
4785 \end_layout
4786
4787 \end_inset
4788 </cell>
4789 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4790 \begin_inset Text
4791
4792 \begin_layout Plain Layout
4793
4794 \family typewriter
4795 \series medium
4796 \shape up
4797 \size normal
4798 \emph off
4799 \bar no
4800 \noun off
4801 \color none
4802 pifont.sty
4803 \end_layout
4804
4805 \end_inset
4806 </cell>
4807 </row>
4808 <row>
4809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4810 \begin_inset Text
4811
4812 \begin_layout Plain Layout
4813
4814 \family sans
4815 \series medium
4816 \shape up
4817 \size normal
4818 \emph off
4819 \bar no
4820 \noun off
4821 \color none
4822 絵文字3
4823 \end_layout
4824
4825 \end_inset
4826 </cell>
4827 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4828 \begin_inset Text
4829
4830 \begin_layout Plain Layout
4831
4832 \family typewriter
4833 \series medium
4834 \shape up
4835 \size normal
4836 \emph off
4837 \bar no
4838 \noun off
4839 \color none
4840 pifont.sty
4841 \end_layout
4842
4843 \end_inset
4844 </cell>
4845 </row>
4846 <row>
4847 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4848 \begin_inset Text
4849
4850 \begin_layout Plain Layout
4851
4852 \family sans
4853 \series medium
4854 \shape up
4855 \size normal
4856 \emph off
4857 \bar no
4858 \noun off
4859 \color none
4860 絵文字4
4861 \end_layout
4862
4863 \end_inset
4864 </cell>
4865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4866 \begin_inset Text
4867
4868 \begin_layout Plain Layout
4869
4870 \family typewriter
4871 \series medium
4872 \shape up
4873 \size normal
4874 \emph off
4875 \bar no
4876 \noun off
4877 \color none
4878 pifont.sty
4879 \end_layout
4880
4881 \end_inset
4882 </cell>
4883 </row>
4884 </lyxtabular>
4885
4886 \end_inset
4887
4888
4889 \end_layout
4890
4891 \begin_layout Standard
4892 LyXは、ユーザーが導入されていないパッケージのブリットを使用したとしても、警告を発しません。ファイルを閲覧したり印刷したりしようとしたときにLaTeXエラーが
4893 出るようならば、パッケージが導入されていない可能性が大です
4894 \begin_inset Foot
4895 status collapsed
4896
4897 \begin_layout Plain Layout
4898 LyXが、パッケージがなくてもブリットを使用することを許すのは、編集をここで行ったとしても、別のところへエクスポートする可能性があるからです。
4899 \end_layout
4900
4901 \end_inset
4902
4903
4904 \end_layout
4905
4906 \begin_layout Subsection
4907 使用法
4908 \end_layout
4909
4910 \begin_layout Standard
4911 変更したいブリット階層を選んで、ブリットの形と大きさを選んでください。何らかの変更を加えたとしても、LyX上には反映されませんが、文書の表示を行えば確認されます
4912 \begin_inset Foot
4913 status collapsed
4914
4915 \begin_layout Plain Layout
4916 もし
4917 \emph on
4918 本当に
4919 \emph default
4920 段落ごとに異なるブリットの形を使いたいならば、TeXコードを使って少し手を汚す必要があります。この場合も、ブリット選択ダイアログを使えば、さまざまな形のLaTe
4921 Xコードを確認することができるので手助けとなるでしょう。任意に設定した段落をつくるには、以下のような選択肢があります。
4922 \end_layout
4923
4924 \begin_layout Plain Layout
4925 \begin_inset ERT
4926 status open
4927
4928 \begin_layout Plain Layout
4929
4930
4931 \backslash
4932 let
4933 \backslash
4934 savelabelitemi=
4935 \backslash
4936 labelitemi
4937 \end_layout
4938
4939 \end_inset
4940
4941
4942 \end_layout
4943
4944 \begin_layout Plain Layout
4945 \begin_inset ERT
4946 status open
4947
4948 \begin_layout Plain Layout
4949
4950
4951 \backslash
4952 renewcommand
4953 \backslash
4954 labelitemi[0]{
4955 \backslash
4956 small
4957 \backslash
4958 (
4959 \backslash
4960 sharp
4961 \backslash
4962 )}
4963 \end_layout
4964
4965 \end_inset
4966
4967
4968 \end_layout
4969
4970 \begin_layout Itemize
4971 特定の階層の新しいブリット形を指定するには、LaTeXコマンド
4972 \begin_inset Flex Code
4973 status collapsed
4974
4975 \begin_layout Plain Layout
4976
4977 \family typewriter
4978
4979 \backslash
4980 renewcommand{}{}
4981 \end_layout
4982
4983 \end_inset
4984
4985 を使用します。あとで現在のブリット形に戻すことができるように、現在のブリット形を保存しておく必要もあります。ここで使っている箇条書きでは、第1階層のブリットを変
4986 更するために、以下のLaTeXコードが使用されています。
4987 \end_layout
4988
4989 \begin_deeper
4990 \begin_layout LyX-Code
4991
4992 \family typewriter
4993
4994 \backslash
4995 let
4996 \backslash
4997 savelabelitemi=
4998 \backslash
4999 labelitemi
5000 \end_layout
5001
5002 \begin_layout LyX-Code
5003
5004 \family typewriter
5005
5006 \backslash
5007 renewcommand
5008 \backslash
5009 labelitemi[0]{
5010 \backslash
5011 small
5012 \backslash
5013 (
5014 \backslash
5015 sharp
5016 \backslash
5017 )}
5018 \end_layout
5019
5020 \end_deeper
5021 \begin_layout Itemize
5022 箇条書き(記号)の階層は、
5023 \begin_inset Flex Code
5024 status collapsed
5025
5026 \begin_layout Plain Layout
5027
5028 \backslash
5029 labelitem
5030 \end_layout
5031
5032 \end_inset
5033
5034 コマンドの一部にローマ数字で指定されていることに注意してください。
5035 \end_layout
5036
5037 \begin_layout Itemize
5038 \begin_inset ERT
5039 status open
5040
5041 \begin_layout Plain Layout
5042
5043 [
5044 \backslash
5045 (
5046 \backslash
5047 star
5048 \backslash
5049 )]
5050 \end_layout
5051
5052 \end_inset
5053
5054 各項目のブリットを指定するには、角括弧で囲んだブリット形を、行頭に
5055 \begin_inset Flex Code
5056 status collapsed
5057
5058 \begin_layout Plain Layout
5059 TeXコード
5060 \end_layout
5061
5062 \end_inset
5063
5064 として挿入してください。たとえば、この項目の行頭には
5065 \family typewriter
5066
5067 \begin_inset Flex Code
5068 status collapsed
5069
5070 \begin_layout Plain Layout
5071
5072 \family typewriter
5073 [
5074 \backslash
5075 (
5076 \backslash
5077 star
5078 \backslash
5079 )]
5080 \end_layout
5081
5082 \end_inset
5083
5084
5085 \family default
5086 が指定されています。
5087 \end_layout
5088
5089 \begin_layout Plain Layout
5090 \begin_inset ERT
5091 status open
5092
5093 \begin_layout Plain Layout
5094
5095
5096 \backslash
5097 renewcommand
5098 \backslash
5099 labelitemi[0]{
5100 \backslash
5101 savelabelitemi}
5102 \end_layout
5103
5104 \end_inset
5105
5106
5107 \end_layout
5108
5109 \begin_layout Plain Layout
5110 文書全体で使用するブリット形が有効であるようにするために、labelitemを元の設定に戻す必要があります。そのためには、以下のようにします。
5111 \end_layout
5112
5113 \begin_layout LyX-Code
5114
5115 \family typewriter
5116
5117 \backslash
5118 renewcommand
5119 \backslash
5120 labelitemi[0]{
5121 \backslash
5122 savelabelitemi}
5123 \end_layout
5124
5125 \end_inset
5126
5127
5128 \end_layout
5129
5130 \begin_layout Chapter
5131 LyXとインターネット網
5132 \end_layout
5133
5134 \begin_layout Standard
5135 LyX has long supported the export of documents to various web-friendly formats,
5136  such as HTML.
5137  Before verson 2.0, however, HTML export was always accomplished by the use
5138  of external converters.
5139 \begin_inset Foot
5140 status collapsed
5141
5142 \begin_layout Plain Layout
5143 For details on the use of external converters with LyX, see the 
5144 \emph on
5145 Converters
5146 \emph default
5147  section of the Customization manual.
5148 \end_layout
5149
5150 \end_inset
5151
5152  These fall into two large groups: there are converters that use LaTeX as
5153  an intermediate format, such as 
5154 \begin_inset Flex Code
5155 status collapsed
5156
5157 \begin_layout Plain Layout
5158
5159 \lang english
5160 htlatex
5161 \end_layout
5162
5163 \end_inset
5164
5165
5166 \begin_inset Flex Code
5167 status collapsed
5168
5169 \begin_layout Plain Layout
5170
5171 \lang english
5172 html2latex
5173 \end_layout
5174
5175 \end_inset
5176
5177 , and 
5178 \begin_inset Flex Code
5179 status collapsed
5180
5181 \begin_layout Plain Layout
5182
5183 \lang english
5184 plastex
5185 \end_layout
5186
5187 \end_inset
5188
5189 , relying upon LyX to produce the LaTeX; and there is a converter that works
5190  directly on LyX files, 
5191 \begin_inset Flex Code
5192 status collapsed
5193
5194 \begin_layout Plain Layout
5195
5196 \lang english
5197 eLyXer
5198 \end_layout
5199
5200 \end_inset
5201
5202 .
5203  All of these have different advantages and disadvantages.
5204  
5205 \end_layout
5206
5207 \begin_layout Standard
5208 The LaTeX-based converters have the advantage that, in principle, they know
5209  everything about the exported document that LaTeX does.
5210  Such converters do not care, for example, if a certain block of code was
5211  produced by LyX or was Evil Red Text.
5212  These converters know about 
5213 \begin_inset Flex Code
5214 status collapsed
5215
5216 \begin_layout Plain Layout
5217
5218 \lang english
5219 aux
5220 \end_layout
5221
5222 \end_inset
5223
5224  files, counters, and references, and can often make use of the 
5225 \begin_inset Flex Code
5226 status collapsed
5227
5228 \begin_layout Plain Layout
5229
5230 \lang english
5231 bbl
5232 \end_layout
5233
5234 \end_inset
5235
5236  files generated by BibTeX.
5237  On the other hand, LaTeX is a very hard language to parse---it is sometimes
5238  said that only TeX itself understands TeX---and LaTeX-based converters
5239  will often choke on what seem to be quite simple constructs; complex ones
5240  can throw them completely, and as of this writing, for example, the 
5241 \emph on
5242 Embedded Objects
5243 \emph default
5244  manual will not export with 
5245 \begin_inset Flex Code
5246 status collapsed
5247
5248 \begin_layout Plain Layout
5249
5250 \lang english
5251 htlatex
5252 \end_layout
5253
5254 \end_inset
5255
5256 , though the others will.
5257  The other issue concerns how math is handled.
5258  These converters typically convert the formulae into little pictures that
5259  are then linked from the HTML document.
5260  Since these are actually generated by LaTeX, they are accurate.
5261  But they do not scale well, and just getting them to look as if they are
5262  actually meant to be in your document---so that the font sizes seem to
5263  be roughly the same---can be a challenge.
5264 \end_layout
5265
5266 \begin_layout Standard
5267 Alex Fernandez's 
5268 \begin_inset Flex Code
5269 status collapsed
5270
5271 \begin_layout Plain Layout
5272
5273 \lang english
5274 eLyXer
5275 \end_layout
5276
5277 \end_inset
5278
5279  (
5280 \begin_inset CommandInset href
5281 LatexCommand href
5282 name "http://elyxer.nongnu.org/"
5283 target "http://elyxer.nongnu.org/"
5284
5285 \end_inset
5286
5287 ) solves some of these problems.
5288  In particular, the formulae it produces scale perfectly, since it renders
5289  math using a combination of HTML and CSS rather than converting the formulae
5290  to images.
5291  But even moderately complex formula are rendered less well than with 
5292 \begin_inset Flex Code
5293 status collapsed
5294
5295 \begin_layout Plain Layout
5296
5297 \lang english
5298 htlatex
5299 \end_layout
5300
5301 \end_inset
5302
5303 ; this reflects the limitations of HTML.
5304 \begin_inset Foot
5305 status collapsed
5306
5307 \begin_layout Plain Layout
5308 That said, 
5309 \begin_inset Flex Code
5310 status collapsed
5311
5312 \begin_layout Plain Layout
5313
5314 \lang english
5315 eLyXer
5316 \end_layout
5317
5318 \end_inset
5319
5320  can also use jsMath and MathJax for equations, but this setting is only
5321  available globally and requires one to have access to a server that runs
5322  the backend.
5323 \end_layout
5324
5325 \end_inset
5326
5327  More importantly (as of version 1.1.1, at least), 
5328 \begin_inset Flex Code
5329 status collapsed
5330
5331 \begin_layout Plain Layout
5332
5333 \lang english
5334 eLyXer
5335 \end_layout
5336
5337 \end_inset
5338
5339  has limited support for math macros and no support for user-defined paragraph
5340  or character styles.
5341  These limitations make 
5342 \begin_inset Flex Code
5343 status collapsed
5344
5345 \begin_layout Plain Layout
5346
5347 \lang english
5348 eLyXer
5349 \end_layout
5350
5351 \end_inset
5352
5353  unsuitable for many of the documents LyX users produce.
5354  In principle, of course, these problems could be solved, but the LyX developers
5355  have decided to follow a different path and have made LyX itself capable
5356  of writing XHTML, just as it is capable of writing LaTeX, DocBook, and
5357  plaintext.
5358 \end_layout
5359
5360 \begin_layout Standard
5361 As of this writing, XHTML output remains under development and should probably
5362  be regarded as 
5363 \begin_inset Quotes eld
5364 \end_inset
5365
5366 experimental
5367 \begin_inset Quotes erd
5368 \end_inset
5369
5370 .
5371 \begin_inset Foot
5372 status collapsed
5373
5374 \begin_layout Plain Layout
5375 The file 
5376 \begin_inset Flex Code
5377 status collapsed
5378
5379 \begin_layout Plain Layout
5380
5381 \lang english
5382 development/HTML.notes
5383 \end_layout
5384
5385 \end_inset
5386
5387 , which can be found in the LyX source tree or 
5388 \begin_inset CommandInset href
5389 LatexCommand href
5390 name "accessed online"
5391 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
5392
5393 \end_inset
5394
5395 , usually contains up-to-date information about the state of XHTML output.
5396  See also the list of XHTML bugs on 
5397 \begin_inset CommandInset href
5398 LatexCommand href
5399 name "the bug tracker"
5400 target "http://www.lyx.org/trac/query?status=reopened&status=assigned&status=new&max=0&component=xhtml+export&order=id&col=id&col=summary&col=reporter&col=keywords&keywords=%21%7Efixedintrunk&desc=1"
5401
5402 \end_inset
5403
5404 .
5405 \end_layout
5406
5407 \end_inset
5408
5409  Still, the developers have chosen this approach because it has several
5410  potential advantages over the other two.
5411 \end_layout
5412
5413 \begin_layout Standard
5414 These advantages are primarily due to the fact that the XHTML output routines,
5415  since they are part of LyX, know everything LyX knows about the document
5416  being exported.
5417 \begin_inset Foot
5418 status collapsed
5419
5420 \begin_layout Plain Layout
5421 Another advantage is that, since these routines are internal to LyX, they
5422  are immune to changes in LyX's file format, or to changes in the semantics
5423  of existing insets.
5424 \end_layout
5425
5426 \end_inset
5427
5428  So they know about the table of contents (as displayed in the outline),
5429  about the counters associated with different paragraph styles, and about
5430  user-defined styles.
5431  The XHTML output routines know what LyX knows about internationalization,
5432  too, so they will output 
5433 \begin_inset Quotes eld
5434 \end_inset
5435
5436 Chapter 1
5437 \begin_inset Quotes erd
5438 \end_inset
5439
5440  or 
5441 \begin_inset Quotes eld
5442 \end_inset
5443
5444 Kapitel 1
5445 \begin_inset Quotes erd
5446 \end_inset
5447
5448 , depending upon the language in effect at the time.
5449  
5450 \end_layout
5451
5452 \begin_layout Standard
5453 Quite generally, the output routines know what LyX knows about document
5454  layout, that is, about how the document is to be rendered on screen.
5455  We use this information when we output the document as XHTML.
5456  In particular, LyX 
5457 \emph on
5458 automatically
5459 \emph default
5460  generates CSS style information corresponding to the layout information
5461  it uses to render the document on screen: if section headings are supposed
5462  to be sans-serif and bold as seen in LyX, then (by default) they will be
5463  sans-serif and bold when viewed in a web browser, too.
5464  And this is true not just for pre-defined styles, like Section, but for
5465  any style, including user-defined styles.
5466  Indeed, the XHTML output routines make no distinction between user-defined
5467  paragraph and character styles and LyX's own pre-defined styles: in each
5468  case, everything LyX knows about the styles is contained in the layout
5469  files.
5470  And much the same is true as regards pre-defined textual insets, such as
5471  footnotes, and various custom insets.
5472  
5473 \end_layout
5474
5475 \begin_layout Standard
5476 The result is that XHTML output can be customized and extended in exactly
5477  the same way LaTeX output can be customized and extended: through layout
5478  files and modules.
5479  See chapter five of the 
5480 \emph on
5481 Customization 
5482 \emph default
5483 manual for the details.
5484 \end_layout
5485
5486 \begin_layout Standard
5487 The remainder of this chapter contains more detailed information on XHTML
5488  output, its limitations, and ways to work around those limitations.
5489 \end_layout
5490
5491 \begin_layout Section
5492 Math Output in XHTML
5493 \end_layout
5494
5495 \begin_layout Standard
5496 LyX offers four choices for how math is rendered.
5497  These have various advantages and disadvantages:
5498 \end_layout
5499
5500 \begin_layout Itemize
5501 MathML
5502 \begin_inset Newline newline
5503 \end_inset
5504
5505 MathML is a dialect of XML designed specifically for mathematics on the
5506  web, and it typically renders very well in browsers that support it.
5507  The disadvantage is that not all browsers support MathML, and support is
5508  not complete even in the Gecko-based browsers, such as Firefox.
5509 \begin_inset Newline newline
5510 \end_inset
5511
5512 If LyX is unable to render a formula as MathML---for example, if the formula
5513  uses the 
5514 \begin_inset Flex Code
5515 status collapsed
5516
5517 \begin_layout Plain Layout
5518
5519 \lang english
5520 xymatrix
5521 \end_layout
5522
5523 \end_inset
5524
5525  package or ERT---then it will instead output the formula as an image.
5526  
5527 \end_layout
5528
5529 \begin_layout Itemize
5530 HTML
5531 \begin_inset Newline newline
5532 \end_inset
5533
5534 As mentioned above, 
5535 \begin_inset Flex Code
5536 status collapsed
5537
5538 \begin_layout Plain Layout
5539
5540 \lang english
5541 elyxer
5542 \end_layout
5543
5544 \end_inset
5545
5546  outputs math as HTML, styled by CSS.
5547 \begin_inset Foot
5548 status collapsed
5549
5550 \begin_layout Plain Layout
5551 LyX has borrowed some of the CSS for its HTML output from 
5552 \begin_inset Flex Code
5553 status collapsed
5554
5555 \begin_layout Plain Layout
5556
5557 \lang english
5558 elyxer
5559 \end_layout
5560
5561 \end_inset
5562
5563 .
5564 \end_layout
5565
5566 \end_inset
5567
5568  For simple formulae, this can work quite well, though with more complicated
5569  formulae it tends to break down.
5570  Still, this method has the advantage that it is very widely supported and
5571  so it may be appropriate for documents that contain only a little, fairly
5572  simple math.
5573 \begin_inset Newline newline
5574 \end_inset
5575
5576 If Lyx is unable to render a formula as HTML---for example, if the formula
5577  uses the 
5578 \begin_inset Flex Code
5579 status collapsed
5580
5581 \begin_layout Plain Layout
5582
5583 \lang english
5584 xymatrix
5585 \end_layout
5586
5587 \end_inset
5588
5589  package or ERT---then it will instead output the formula as an image.
5590  
5591 \end_layout
5592
5593 \begin_layout Itemize
5594 Images
5595 \begin_inset Newline newline
5596 \end_inset
5597
5598 Like 
5599 \begin_inset Flex Code
5600 status collapsed
5601
5602 \begin_layout Plain Layout
5603
5604 \lang english
5605 htlatex
5606 \end_layout
5607
5608 \end_inset
5609
5610 , LyX will output formulae as images, the very same images, in fact, that
5611  are used for instant preview.
5612 \begin_inset Foot
5613 status collapsed
5614
5615 \begin_layout Plain Layout
5616 Instant preview does 
5617 \emph on
5618 not 
5619 \emph default
5620 have to be on for images to be output, however.
5621 \end_layout
5622
5623 \end_inset
5624
5625  The advantage to this method is that the images are simply generated by
5626  LaTeX, so they are very accurate.
5627  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5628  so they do not scale terribly well, and one cannot copy them, etc.
5629  (As of this writing, there are also problems about equation numbering.
5630  See 
5631 \begin_inset CommandInset href
5632 LatexCommand href
5633 name "bug 6894"
5634 target "http://www.lyx.org/trac/ticket/6894"
5635
5636 \end_inset
5637
5638 .)
5639 \begin_inset Newline newline
5640 \end_inset
5641
5642 The size of the images can be controlled by setting the 
5643 \begin_inset Quotes eld
5644 \end_inset
5645
5646 Math Images Scaling
5647 \begin_inset Quotes erd
5648 \end_inset
5649
5650  parameter under 
5651 \begin_inset Flex MenuItem
5652 status collapsed
5653
5654 \begin_layout Plain Layout
5655
5656 \lang english
5657 Document\SpecialChar \menuseparator
5658 Settings\SpecialChar \menuseparator
5659 Output
5660 \end_layout
5661
5662 \end_inset
5663
5664 .
5665 \begin_inset Foot
5666 status collapsed
5667
5668 \begin_layout Plain Layout
5669 For those who want to know, this controls the resolution of the image in
5670  dots per inch and is based upon a default of 75 dpi.
5671 \end_layout
5672
5673 \end_inset
5674
5675
5676 \begin_inset Newline newline
5677 \end_inset
5678
5679 If LyX for some reason fails to create an image for a formula (e.g., if a
5680  required LaTeX package is not installed), then it will fall back to outputing
5681  the raw LaTeX.
5682 \end_layout
5683
5684 \begin_layout Itemize
5685 LaTeX
5686 \begin_inset Newline newline
5687 \end_inset
5688
5689 Finally, LyX will happily output math as LaTeX.
5690  As well as being the output of last resort, this method can be used with
5691  such tools as 
5692 \begin_inset CommandInset href
5693 LatexCommand href
5694 name "jsMath"
5695 target "http://www.math.union.edu/~dpvc/jsMath/"
5696
5697 \end_inset
5698
5699 , which uses JavaScript to render LaTeX embedded in HTML documents.
5700  LyX wraps the LaTeX in either a 
5701 \begin_inset Flex Code
5702 status collapsed
5703
5704 \begin_layout Plain Layout
5705
5706 \lang english
5707 span
5708 \end_layout
5709
5710 \end_inset
5711
5712  (for inline formulas) or 
5713 \begin_inset Flex Code
5714 status collapsed
5715
5716 \begin_layout Plain Layout
5717
5718 \lang english
5719 div
5720 \end_layout
5721
5722 \end_inset
5723
5724  (for displayed formulas) with 
5725 \begin_inset Flex Code
5726 status collapsed
5727
5728 \begin_layout Plain Layout
5729
5730 \lang english
5731 class='math'
5732 \end_layout
5733
5734 \end_inset
5735
5736 , as is required for jsMath.
5737 \end_layout
5738
5739 \begin_layout Standard
5740 One of these output methods must be selected under 
5741 \begin_inset Flex MenuItem
5742 status collapsed
5743
5744 \begin_layout Plain Layout
5745
5746 \lang english
5747 Document\SpecialChar \menuseparator
5748 Settings\SpecialChar \menuseparator
5749 Output
5750 \end_layout
5751
5752 \end_inset
5753
5754 .
5755  By default, LyX outputs MathML.
5756  This is a document-wide setting, therefore.
5757 \end_layout
5758
5759 \begin_layout Standard
5760 Eventually, LyX will offer the user the option to select an alternate output
5761  method for a particular inset, say, one that isn't being rendered very
5762  well by MathML.
5763 \begin_inset Foot
5764 status collapsed
5765
5766 \begin_layout Plain Layout
5767 That said, since LyX falls back to images if the inset contains ERT, then
5768  one can force output as an image by putting some harmless ERT into the
5769  math, for example: 
5770 \begin_inset Formula $a=b\relax$
5771 \end_inset
5772
5773 .
5774 \end_layout
5775
5776 \end_inset
5777
5778
5779 \end_layout
5780
5781 \begin_layout Section
5782 Bibliography and Citations
5783 \end_layout
5784
5785 \begin_layout Standard
5786 XHTML output fully supports bibliographies and citations.
5787  
5788 \end_layout
5789
5790 \begin_layout Standard
5791 Citation labels are generated by the same machinery that generates LyX's
5792  on-screen labels, so the labels will look in the output much as they do
5793  in LyX, though better.
5794  If you are using numerical citations, then LyX will output numerical labels,
5795  such as [1] or [17], rather than simply showing the citation key in square
5796  brackets, as it does on-screen.
5797  If you are using author-year citations, then LyX will add lowercase letters
5798  to the years, just as BibTeX does, if it finds more than one citation for
5799  a given author-year combination.
5800  The labels will be printed with the bibliography entries.
5801  Note that there is, at present, no way to customize the appearance of the
5802  labels, for example, to choose between square brackets and parentheses.
5803 \end_layout
5804
5805 \begin_layout Standard
5806 Bibliography output is handled by the same machinery that handles the presentati
5807 on of reference information in the citation dialog, so you will see in the
5808  XHTML output pretty much what you would see if you were to look at a given
5809  entry in the citation dialog.
5810  The formatting can be customized in your layout file or, preferably, in
5811  a module.
5812  See the 
5813 \emph on
5814 Customization
5815 \emph default
5816  manual for the details.
5817 \end_layout
5818
5819 \begin_layout Standard
5820 The main defect at present is that cross-referenced information is printed
5821  with every entry with which it is associated.
5822  So you can see things like this:
5823 \end_layout
5824
5825 \begin_layout Quote
5826 Jason Stanley, 
5827 \begin_inset Quotes eld
5828 \end_inset
5829
5830 Context and Logical Form
5831 \begin_inset Quotes erd
5832 \end_inset
5833
5834 , in 
5835 \emph on
5836 Language in Context: Selected Essays
5837 \emph default
5838  (Oxford: Oxford University Press, 2007), pp.
5839  30--68.
5840 \end_layout
5841
5842 \begin_layout Quote
5843 Jason Stanley, 
5844 \begin_inset Quotes eld
5845 \end_inset
5846
5847 Semantics in Context
5848 \begin_inset Quotes erd
5849 \end_inset
5850
5851 , in 
5852 \emph on
5853 Language in Context: Selected Essays
5854 \emph default
5855  (Oxford: Oxford University Press, 2007), pp.
5856  201--30.
5857 \end_layout
5858
5859 \begin_layout Standard
5860 This should be fixed before long.
5861 \end_layout
5862
5863 \begin_layout Standard
5864 There is no support at present for sectioned bibliographies.
5865  If you have multiple bibliographies, then LyX will print the same bibliography
5866  over and over.
5867 \end_layout
5868
5869 \begin_layout Section
5870 Indexes
5871 \end_layout
5872
5873 \begin_layout Standard
5874 LyX will happily export indexes as XHTML, but with certain limitations at
5875  the moment.
5876 \end_layout
5877
5878 \begin_layout Standard
5879 Index export will be most reliable when you do not attempt to use the fancy
5880  constructs that are described in the section on indexes in the 
5881 \emph on
5882 User's Guide
5883 \emph default
5884 .
5885 \begin_inset Foot
5886 status collapsed
5887
5888 \begin_layout Plain Layout
5889 The main issue here is that LyX itself does not really handle these.
5890  It just lets you enter what you would have to enter in raw LaTeX.
5891 \end_layout
5892
5893 \end_inset
5894
5895  We'll describe how they are handled using the subsection headings from
5896  that section.
5897 \end_layout
5898
5899 \begin_layout Itemize
5900 Grouping Index Entries (aka, sub-entries): LyX makes an effort to support
5901  these, but the entries must be separated by 
5902 \begin_inset Quotes eld
5903 \end_inset
5904
5905  ! 
5906 \begin_inset Quotes erd
5907 \end_inset
5908
5909 , that is, there must be spaces around the exclamation point.
5910  This is because it is otherwise too difficult to check for escaped exclamation
5911  points, ones in math, and so forth.
5912 \end_layout
5913
5914 \begin_layout Itemize
5915 Page Ranges: There is no support at all for page ranges, since these make
5916  no sense with XHMTL.
5917  Instead, you will just get two index entries, one at either end.
5918 \end_layout
5919
5920 \begin_layout Itemize
5921 Cross-referencing: There is no support for cross-referencing.
5922  If LyX finds an entry containing the 
5923 \begin_inset Quotes eld
5924 \end_inset
5925
5926 |see\SpecialChar \ldots{}
5927
5928 \begin_inset Quotes erd
5929 \end_inset
5930
5931  construct, it is just dropped, and the rest is treated as an ordinary index
5932  entry.
5933 \end_layout
5934
5935 \begin_layout Itemize
5936 Index Entry Order: LyX does support attempts to fix the sorting order.
5937  It will take what is before the first `@' it finds and use that for sorting,
5938  taking what follows the first `@' to be the actual entry.
5939  At present, LyX does not check for escaped `@', so do not try to index
5940  email addresses.
5941 \end_layout
5942
5943 \begin_layout Itemize
5944 Index Entry Layout: You can format entries by using the text style dialog,
5945  or by using any other method available within LyX itself.
5946  There is no support for constructs like: 
5947 \begin_inset Quotes eld
5948 \end_inset
5949
5950 entry|textbf
5951 \begin_inset Quotes erd
5952 \end_inset
5953
5954 .
5955  Indeed, if LyX finds a pipe symbol, `|', in an entry, it will delete it
5956  and everything that follows it.
5957 \end_layout
5958
5959 \begin_layout Itemize
5960 Multiple Indexes: There is no support for multiple indexes.
5961  Rather, all index entries will be printed as one large index.
5962  To avoid our printing several versions of the index, we print only the
5963  main index, so make sure you have one.
5964 \end_layout
5965
5966 \begin_layout Section
5967 Nomenclature and Glossary
5968 \end_layout
5969
5970 \begin_layout Standard
5971 There is at present no support for glossaries.
5972  Adding it would be fairly trivial, and welcome.
5973 \end_layout
5974
5975 \begin_layout Chapter
5976 LyXサーバー
5977 \end_layout
5978
5979 \begin_layout Section
5980 はじめに
5981 \end_layout
5982
5983 \begin_layout Standard
5984 「LyXサーバー」を使用すると、他のプログラムが、LyXと通信したり、LyXコマンドを実行させたり、LyXの内部状態に関する情報を取得したりすることができるよう
5985 になります。これは熟練したユーザー向けの機能ですが、便利なはずです。たとえば、LyXサーバーに書き込むことによって、JabRefのような参考文献管理ソフトが、L
5986 yXに文献引用を「押し込む」ことが可能となります。
5987 \end_layout
5988
5989 \begin_layout Standard
5990 ただし、現在のところ、
5991 \emph on
5992 LyXサーバーはWindowsでは機能しない
5993 \emph default
5994 ことに注意してください
5995 \begin_inset Foot
5996 status collapsed
5997
5998 \begin_layout Plain Layout
5999 これが不可能でなければならない理由はありません。しかし、いまのところ、Windows向け開発者でこの機能を実装しようとする者がいないのです。
6000 \end_layout
6001
6002 \end_inset
6003
6004
6005 \end_layout
6006
6007 \begin_layout Section
6008 LyXサーバーを開始するには
6009 \end_layout
6010
6011 \begin_layout Standard
6012 LyXサーバーは、名前をつけたパイプの対を利用することで機能します。パイプは、通常
6013 \begin_inset Flex Code
6014 status collapsed
6015
6016 \begin_layout Plain Layout
6017 UserDir
6018 \end_layout
6019
6020 \end_inset
6021
6022 の下に作られ(Windowsを除く。Windowsでは、名前を付けた
6023 \emph on
6024 ローカルの
6025 \emph default
6026 パイプは
6027 \begin_inset Flex Code
6028 status collapsed
6029
6030 \begin_layout Plain Layout
6031
6032 \backslash
6033
6034 \backslash
6035 .
6036 \backslash
6037 pipe
6038 \end_layout
6039
6040 \end_inset
6041
6042 に特別なオブジェクトとして置かれます)、「
6043 \begin_inset Flex Code
6044 status collapsed
6045
6046 \begin_layout Plain Layout
6047 .lyxpipe.in
6048 \end_layout
6049
6050 \end_inset
6051
6052 」および「
6053 \begin_inset Flex Code
6054 status collapsed
6055
6056 \begin_layout Plain Layout
6057 .lyxpipe.out
6058 \end_layout
6059
6060 \end_inset
6061
6062 」という名前がついています。外部プログラムは、
6063 \begin_inset Flex Code
6064 status collapsed
6065
6066 \begin_layout Plain Layout
6067 .lyxpipe.in
6068 \end_layout
6069
6070 \end_inset
6071
6072 に書き込みを行い、戻りデータを
6073 \begin_inset Flex Code
6074 status collapsed
6075
6076 \begin_layout Plain Layout
6077 .lyxpipe.out
6078 \end_layout
6079
6080 \end_inset
6081
6082 から読み出します。パイプ名の語幹は、
6083 \begin_inset Flex MenuItem
6084 status collapsed
6085
6086 \begin_layout Plain Layout
6087 ツール\SpecialChar \menuseparator
6088 設定
6089 \end_layout
6090
6091 \end_inset
6092
6093 から、たとえば「
6094 \begin_inset Flex Code
6095 status collapsed
6096
6097 \begin_layout Plain Layout
6098 /home/myhome/lyxpipe
6099 \end_layout
6100
6101 \end_inset
6102
6103 」あるいはWindowsでは「
6104 \begin_inset Flex Code
6105 status collapsed
6106
6107 \begin_layout Plain Layout
6108
6109 \backslash
6110
6111 \backslash
6112 .
6113 \backslash
6114 pipe
6115 \backslash
6116 lyxpipe
6117 \end_layout
6118
6119 \end_inset
6120
6121 」などに設定することができます。サーバーを開始するためには、これを
6122 \emph on
6123 手動で設定しなくてはなりません
6124 \emph default
6125
6126 \end_layout
6127
6128 \begin_layout Standard
6129 LyXは、パイプを生成するに際して、「
6130 \begin_inset Flex Code
6131 status collapsed
6132
6133 \begin_layout Plain Layout
6134 .in
6135 \end_layout
6136
6137 \end_inset
6138
6139 」および「
6140 \begin_inset Flex Code
6141 status collapsed
6142
6143 \begin_layout Plain Layout
6144 .out
6145 \end_layout
6146
6147 \end_inset
6148
6149 」を付け加えます。パイプがすでに存在していれば、LyXは他のLyXプロセスがすでに実行中であると判断して、サーバーを開始しません。POSIX(Unix型)システ
6150 ムでは、なんらかの理由で、LyXが終了する際に使用されていない「古い」パイプが削除されずに残ったりすると、LyXはこれを削除しようとします。何らかの理由でこれが
6151 失敗した場合、手動でパイプを削除したのちに、LyXを再起動する必要があります。Windowsでは、プログラムが終了したりクラッシュしたりすると、OSがパイプを削
6152 除するので、「古い」パイプが残ることはありません。
6153 \end_layout
6154
6155 \begin_layout Standard
6156 サーバーを使用するLyXプロセスを複数起動するには、それぞれのプロセスに、別のユーザーディレクトリを使用させたり、別々の
6157 \begin_inset Flex Code
6158 status collapsed
6159
6160 \begin_layout Plain Layout
6161 preferences
6162 \end_layout
6163
6164 \end_inset
6165
6166 ファイルを使用させるなど、別々の設定を使用する必要があります。
6167 \end_layout
6168
6169 \begin_layout Standard
6170 クライアントプログラムを開発しようとされているのであれば、LyXサーバーからのデバッグ情報を有効にすると便利かもしれません。そのためには、Lyxを
6171 \begin_inset Flex Code
6172 status collapsed
6173
6174 \begin_layout Plain Layout
6175 lyx -dbg lyxserver
6176 \end_layout
6177
6178 \end_inset
6179
6180 として起動してください。
6181 \end_layout
6182
6183 \begin_layout Standard
6184 C言語で書かれた完全なサンプルクライアントが、ソース頒布版の
6185 \begin_inset Flex Code
6186 status collapsed
6187
6188 \begin_layout Plain Layout
6189 development/lyxserver/server_monitor.c
6190 \end_layout
6191
6192 \end_inset
6193
6194 にあります。
6195 \end_layout
6196
6197 \begin_layout Standard
6198 もう一つの便利なツールとして、
6199 \begin_inset Flex Code
6200 status collapsed
6201
6202 \begin_layout Plain Layout
6203 src/client/lyxclient
6204 \end_layout
6205
6206 \end_inset
6207
6208 にあるコマンドラインベースのクライアントがあります。
6209 \end_layout
6210
6211 \begin_layout Section
6212 通常の通信
6213 \end_layout
6214
6215 \begin_layout Standard
6216 LyXコールを発行するには、クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません。この行は、以下の書式を持ちます。
6217 \end_layout
6218
6219 \begin_layout Quote
6220 LYXCMD:
6221 \emph on
6222 クライアント名
6223 \emph default
6224 :
6225 \emph on
6226 関数
6227 \emph default
6228 :
6229 \emph on
6230 引数
6231 \end_layout
6232
6233 \begin_layout Description
6234 クライアント名 は、クライアントが自由に選べる名前です。これが用いられるのは、クライアントが他の要求クライアントから結果を見分けることができるように、LyXが返
6235 答をする際、クライアント名をエコーするときだけです。
6236 \end_layout
6237
6238 \begin_layout Description
6239 関数 は、LyXに実行させたい関数です。これは、ミニバッファで使用するコマンドと同じです。
6240 \end_layout
6241
6242 \begin_layout Description
6243 引数 は、一部の関数のみに効力を持つオプションの引数です(たとえば、「自己挿入」LFUNは、現在のカーソル位置に引数を文章として挿入します)。
6244 \end_layout
6245
6246 \begin_layout Standard
6247 LyXからの返答は、出力パイプに送り出され、
6248 \end_layout
6249
6250 \begin_layout Quote
6251 INFO:
6252 \emph on
6253 クライアント名
6254 \emph default
6255 :
6256 \emph on
6257 関数
6258 \emph default
6259 :
6260 \emph on
6261 データ
6262 \end_layout
6263
6264 \begin_layout Standard
6265 の書式をしています。ここで
6266 \emph on
6267 クライアント名
6268 \emph default
6269
6270 \emph on
6271 関数
6272 \emph default
6273 は、コマンド要求からそのままエコーされますが、
6274 \emph on
6275 データ
6276 \emph default
6277 はコマンド実行の結果に依存した、多少なりとも有用な情報です。「font-state」のような一部のコマンドは、LyXの内部状態に関する情報を返しますが、空のデー
6278 タ応答を返すものもあります。空のデータ返答は、コマンド実行が無事終わったことを意味します。
6279 \end_layout
6280
6281 \begin_layout Standard
6282 エラーが発生した場合のLyXの返答は
6283 \end_layout
6284
6285 \begin_layout Quote
6286 ERROR:
6287 \emph on
6288 クライアント名
6289 \emph default
6290 :
6291 \emph on
6292 関数
6293 \emph default
6294 :
6295 \emph on
6296 エラーメッセージ
6297 \end_layout
6298
6299 \begin_layout Standard
6300 の書式をしており、
6301 \emph on
6302 エラーメッセージ
6303 \emph default
6304 には、なぜコマンドが失敗したかの説明が入っているはずです。
6305 \end_layout
6306
6307 \begin_layout Standard
6308 (例)
6309 \end_layout
6310
6311 \begin_layout LyX-Code
6312 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6313 \begin_inset Newline newline
6314 \end_inset
6315
6316 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6317 \begin_inset Newline newline
6318 \end_inset
6319
6320 read a <~/.lyxpipe.out
6321 \begin_inset Newline newline
6322 \end_inset
6323
6324 echo $a
6325 \end_layout
6326
6327 \begin_layout Section
6328 通知
6329 \end_layout
6330
6331 \begin_layout Standard
6332 LyXは、発生しているイベントを、非同期的にクライアントに通知することができます。いまのところ、ユーザーがあるキー列を関数「notify」に割り当てているときの
6333 み、LyXはこの通知を行います。LyXが送る文字列の書式は
6334 \end_layout
6335
6336 \begin_layout Quote
6337 \begin_inset Flex Code
6338 status collapsed
6339
6340 \begin_layout Plain Layout
6341 NOTIFY:
6342 \end_layout
6343
6344 \end_inset
6345
6346
6347 \emph on
6348 キー列
6349 \end_layout
6350
6351 \begin_layout Standard
6352 となっていて、
6353 \emph on
6354 キー列
6355 \emph default
6356 は、ユーザーが実際に打鍵したキー列の印字表現になります。
6357 \end_layout
6358
6359 \begin_layout Standard
6360 この機構は、LyXのコマンド群を拡張してマクロを実装するのに使用することができます。なんらかのキー列を「notify」に割り当ててください。それから出力パイプで
6361 待機するクライアントを起動し、キー列に応じたコマンドを読み込み、一つないし複数のLyXコマンドを発行するLyX要求とLyXコールを使用する関数を開始するのです。
6362 \end_layout
6363
6364 \begin_layout Section
6365 単純なLyXサーバープロトコル
6366 \end_layout
6367
6368 \begin_layout Standard
6369 LyXは、セッション管理に使用することができる単純なプロトコルを実装しています。メッセージは、すべて
6370 \end_layout
6371
6372 \begin_layout Quote
6373 LYXSRV:
6374 \emph on
6375 クライアント名
6376 \emph default
6377 :
6378 \emph on
6379 プロトコルメッセージ
6380 \end_layout
6381
6382 \begin_layout Standard
6383 の書式をしており、
6384 \emph on
6385 プロトコルメッセージ
6386 \emph default
6387 は「hello」ないし「bye」です。クライアントから「hello」を受け取ると、LyXはメッセージを聴いていることをクライアントに伝えるために返答をし、LyX
6388 が終了することをクライアントに伝えるのには、LyXが「bye」を送信します。
6389 \end_layout
6390
6391 \begin_layout Section
6392 DVIとPDFの遡及検索
6393 \end_layout
6394
6395 \begin_layout Standard
6396 DVI/PDFビューア
6397 \begin_inset Foot
6398 status collapsed
6399
6400 \begin_layout Plain Layout
6401 PDFの遡及検索機能を提供しているビューアには、KDE/Linux上のOkularとMac OS X上のSkim、Windows上のSumatraPDFがありま
6402 す。
6403 \end_layout
6404
6405 \end_inset
6406
6407 には、遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります。これを使えば、DVI/PDF出力の
6408 特定の場所をクリックすることによって、LyXの文書中で対応する行にカーソルを移動させることができます。これを実現するためには、ビューアはLyXと情報交換を行う必
6409 要があります。これは、命名パイプ(
6410 \emph on
6411 lyxpipe
6412 \emph default
6413 )を使用するか、LyXが作業ディレクトリに生成するUNIXドメインソケット(
6414 \emph on
6415 lyxsocket
6416 \emph default
6417 )を使用する(これは
6418 \begin_inset Flex Code
6419 status collapsed
6420
6421 \begin_layout Plain Layout
6422 lyxclient
6423 \end_layout
6424
6425 \end_inset
6426
6427 プログラムがLyXと通信するのに使用している方法です)ことで、LyXサーバを経由して実現することができます。場合によっては、ビューアとLyXを橋渡しする補助スク
6428 リプトを必要とすることがあるかもしれませんが、それ以外は、ビューアはLyXと直接通信することができます。これは、選んだビューアと基本ソフトに依存します。また、必
6429 要とされるビューアの設定法と遡及検索が実際に行われる方法とにも依存します。したがって、下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします。その
6430 前に、DVI/PDF出力で遡及検索を有効にするためには、一般に何が必要とされるかを説明します。
6431 \end_layout
6432
6433 \begin_layout Subsection
6434 \begin_inset CommandInset label
6435 LatexCommand label
6436 name "sub:遡及検索"
6437
6438 \end_inset
6439
6440 自動有効化
6441 \end_layout
6442
6443 \begin_layout Standard
6444 ほとんどの場合、
6445 \begin_inset Flex MenuItem
6446 status collapsed
6447
6448 \begin_layout Plain Layout
6449 文書\SpecialChar \menuseparator
6450 出力\SpecialChar \menuseparator
6451 出力と同期
6452 \end_layout
6453
6454 \end_inset
6455
6456 を有効にすれば、LyXがすべて自動的に処理を行ってくれます。その場合、LyXは自動的に、PDFの場合はSyncTeXマクロを、DVIの場合はsrcltxパッケー
6457 ジを挿入します。このオプションは、
6458 \begin_inset Flex Code
6459 status collapsed
6460
6461 \begin_layout Plain Layout
6462 表示/更新
6463 \end_layout
6464
6465 \end_inset
6466
6467 ツールバーでも簡単にアクセスすることができます。
6468 \end_layout
6469
6470 \begin_layout Standard
6471 \begin_inset Flex Code
6472 status collapsed
6473
6474 \begin_layout Plain Layout
6475 srcltx
6476 \end_layout
6477
6478 \end_inset
6479
6480 パッケージや
6481 \begin_inset Flex Code
6482 status collapsed
6483
6484 \begin_layout Plain Layout
6485 src-specials
6486 \end_layout
6487
6488 \end_inset
6489
6490 を読み込むと、時折、組版に影響を与えることがありますので、仕上がりの組版においてはこれらを無効にしてください。
6491 \end_layout
6492
6493 \begin_layout Standard
6494 また、設定で自製マクロを指定することもできるので、何か特別な調整が必要な場合には、次節の手動有効化をお読みください。
6495 \end_layout
6496
6497 \begin_layout Subsection
6498 手動有効化
6499 \end_layout
6500
6501 \begin_layout Standard
6502 LaTeXは、遡及検索のために複数の方法を提供しています。ある方法は
6503 \begin_inset Flex Code
6504 status collapsed
6505
6506 \begin_layout Plain Layout
6507 latex/pdflatex
6508 \end_layout
6509
6510 \end_inset
6511
6512 プログラムに組み込まれており、他の方法は外部パッケージとして提供されています。どちらを選択するかは、お使いのLaTeX頒布版が既に特定の方法を提供しているか(組
6513 み込みによる方法は比較的新しいものです)と、お使いのビューアがそれに対応しているかに依存します。使用可能な方法を以下に述べます。
6514 \end_layout
6515
6516 \begin_layout Subsubsection*
6517 src-special経由のDVI組み込み検索(DVIのみ)
6518 \end_layout
6519
6520 \begin_layout Standard
6521 この方法は、DVIファイルに遡及検索に必要な情報を追加するものです。これは、かなり前のLaTeXから利用可能となっており(比較的最近のLaTeX頒布版はすべて対
6522 応しています)、安定して動作します。これを有効にするには、
6523 \begin_inset Flex MenuItem
6524 status collapsed
6525
6526 \begin_layout Plain Layout
6527 設定\SpecialChar \menuseparator
6528 ファイル処理\SpecialChar \menuseparator
6529 変換子
6530 \end_layout
6531
6532 \end_inset
6533
6534
6535 \begin_inset Flex MenuItem
6536 status collapsed
6537
6538 \begin_layout Plain Layout
6539 LaT
6540 \begin_inset ERT
6541 status collapsed
6542
6543 \begin_layout Plain Layout
6544
6545 {}
6546 \end_layout
6547
6548 \end_inset
6549
6550 eX (plain)->DVI
6551 \end_layout
6552
6553 \end_inset
6554
6555 ないし
6556 \begin_inset Flex MenuItem
6557 status collapsed
6558
6559 \begin_layout Plain Layout
6560 LaT
6561 \begin_inset ERT
6562 status collapsed
6563
6564 \begin_layout Plain Layout
6565
6566 {}
6567 \end_layout
6568
6569 \end_inset
6570
6571 eX (plain)->DraftDVI
6572 \end_layout
6573
6574 \end_inset
6575
6576 変換子を
6577 \begin_inset Flex Code
6578 status collapsed
6579
6580 \begin_layout Plain Layout
6581 latex -src-specials $$i
6582 \end_layout
6583
6584 \end_inset
6585
6586 に変更します。もしこれが動作しないときは、お使いのLaTeXエンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあり
6587 ます)。
6588 \end_layout
6589
6590 \begin_layout Subsubsection*
6591 外部パッケージ(PDFSyncおよびsrcltx)
6592 \end_layout
6593
6594 \begin_layout Standard
6595
6596 \emph on
6597 pdfsync
6598 \emph default
6599 および
6600 \emph on
6601 srcltx
6602 \emph default
6603 パッケージは、PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します。これを有効にするには、LyXプリアンブルで以下のようにパッケージを読み
6604 込んでください。
6605 \end_layout
6606
6607 \begin_layout Itemize
6608 PDFの遡及検索には
6609 \begin_inset Flex Code
6610 status collapsed
6611
6612 \begin_layout Plain Layout
6613
6614 \backslash
6615 usepackage{pdfsync}
6616 \end_layout
6617
6618 \end_inset
6619
6620
6621 \end_layout
6622
6623 \begin_layout Itemize
6624 DVIの遡及検索には
6625 \begin_inset Flex Code
6626 status collapsed
6627
6628 \begin_layout Plain Layout
6629
6630 \backslash
6631 usepackage[active]{srcltx}
6632 \end_layout
6633
6634 \end_inset
6635
6636
6637 \end_layout
6638
6639 \begin_layout Standard
6640 と書きます。DVIとPDFの両方の遡及検索を実行できるようにするためには、プリアンブルに以下の行を挿入する方法があります。
6641 \end_layout
6642
6643 \begin_layout LyX-Code
6644
6645 \backslash
6646 usepackage{ifpdf}
6647 \begin_inset Newline newline
6648 \end_inset
6649
6650
6651 \backslash
6652 ifpdf
6653 \begin_inset Newline newline
6654 \end_inset
6655
6656   
6657 \backslash
6658 usepackage{pdfsync}
6659 \begin_inset Newline newline
6660 \end_inset
6661
6662
6663 \backslash
6664 else
6665 \begin_inset Newline newline
6666 \end_inset
6667
6668   
6669 \backslash
6670 usepackage[active]{srcltx}
6671 \begin_inset Newline newline
6672 \end_inset
6673
6674
6675 \backslash
6676 fi
6677 \end_layout
6678
6679 \begin_layout Standard
6680 このようにすれば、DVIでもPDF(pdflatex)でも正しいパッケージを使いながら、ファイルを閲覧することができます。
6681 \end_layout
6682
6683 \begin_layout Standard
6684 なお、PDFSyncは、文書の出力レイアウトに干渉する可能性があるので注意してください。したがって、仕上がり文書ではPDFSyncを無効にすることをお勧めします
6685
6686 \end_layout
6687
6688 \begin_layout Subsubsection*
6689 SyncTeXを使った組み込み遡及検索(DVIおよびPDF)
6690 \end_layout
6691
6692 \begin_layout Standard
6693 \begin_inset Flex Code
6694 status collapsed
6695
6696 \begin_layout Plain Layout
6697 (pdf)latex
6698 \end_layout
6699
6700 \end_inset
6701
6702 の最近のバージョンは、PDFおよびDVI両方の遡及検索を組み込みでサポートしています。このいわゆる
6703 \emph on
6704 SyncTeX
6705 \emph default
6706 機能は、主に、PDFSyncパッケージをpdftexプログラムへ統合したことと、それをsrc-specialsアプローチへ取り込んだことの成果です。これを使用す
6707 るためには、少なくともTeXLive 2008か最近のMikTeX頒布版が必要です。また、既にSyncTeXサポートを提供しているPDFビューアは少ししかありま
6708 せん(Mac上のSkimとWindows上のSumatraPDF)。
6709 \end_layout
6710
6711 \begin_layout Standard
6712 DVI出力でSyncTeXを有効にするには、
6713 \begin_inset Flex MenuItem
6714 status collapsed
6715
6716 \begin_layout Plain Layout
6717 設定\SpecialChar \menuseparator
6718 ファイル処理\SpecialChar \menuseparator
6719 変換子
6720 \end_layout
6721
6722 \end_inset
6723
6724
6725 \begin_inset Flex MenuItem
6726 status collapsed
6727
6728 \begin_layout Plain Layout
6729 LaT
6730 \begin_inset ERT
6731 status collapsed
6732
6733 \begin_layout Plain Layout
6734
6735 {}
6736 \end_layout
6737
6738 \end_inset
6739
6740 eX (plain)->DVI
6741 \end_layout
6742
6743 \end_inset
6744
6745 ないし
6746 \begin_inset Flex MenuItem
6747 status collapsed
6748
6749 \begin_layout Plain Layout
6750 LaT
6751 \begin_inset ERT
6752 status collapsed
6753
6754 \begin_layout Plain Layout
6755
6756 {}
6757 \end_layout
6758
6759 \end_inset
6760
6761 eX (plain)->DraftDVI
6762 \end_layout
6763
6764 \end_inset
6765
6766 変換子を
6767 \begin_inset Flex Code
6768 status collapsed
6769
6770 \begin_layout Plain Layout
6771 latex -synctex=1 $$i
6772 \end_layout
6773
6774 \end_inset
6775
6776 に変更します。PDF出力用には、
6777 \begin_inset Flex MenuItem
6778 status collapsed
6779
6780 \begin_layout Plain Layout
6781 LaT
6782 \begin_inset ERT
6783 status collapsed
6784
6785 \begin_layout Plain Layout
6786
6787 {}
6788 \end_layout
6789
6790 \end_inset
6791
6792 eX (pdflatex)->PDF (pdflatex)
6793 \end_layout
6794
6795 \end_inset
6796
6797 変換子を
6798 \begin_inset Flex Code
6799 status collapsed
6800
6801 \begin_layout Plain Layout
6802 pdflatex -synctex=1 $$i
6803 \end_layout
6804
6805 \end_inset
6806
6807 に変更してください。また、ビューアをSyncTeXで使うのに設定を行う必要があるかどうか、お使いのビューアの取扱説明書をご確認ください
6808 \begin_inset Foot
6809 status collapsed
6810
6811 \begin_layout Plain Layout
6812 \begin_inset Flex Code
6813 status collapsed
6814
6815 \begin_layout Plain Layout
6816 -synctex=1
6817 \end_layout
6818
6819 \end_inset
6820
6821 オプションは、gzip圧縮を有効にします。お使いのビューアがgzip圧縮をサポートしていない場合には、代わりに
6822 \begin_inset Flex Code
6823 status collapsed
6824
6825 \begin_layout Plain Layout
6826 -synctex=-1
6827 \end_layout
6828
6829 \end_inset
6830
6831 を使用してください。
6832 \end_layout
6833
6834 \end_inset
6835
6836
6837 \end_layout
6838
6839 \begin_layout Subsection
6840 特定のビューアを設定して使うには
6841 \end_layout
6842
6843 \begin_layout Subsubsection*
6844 Xdvi(全プラットフォーム)
6845 \end_layout
6846
6847 \begin_layout Standard
6848 LyXは、
6849 \begin_inset Flex Code
6850 status collapsed
6851
6852 \begin_layout Plain Layout
6853 lyxclient
6854 \end_layout
6855
6856 \end_inset
6857
6858 プログラムを自動的に使うのに必要なフックを、既に提供しているので、
6859 \begin_inset Flex Code
6860 status collapsed
6861
6862 \begin_layout Plain Layout
6863 xdvi
6864 \end_layout
6865
6866 \end_inset
6867
6868 を使用する場合には、DVI遡及検索を実行するのに他にするべきことはありません。使用中の文書を上記で述べたように設定するだけです(遡及検索は、Ctrl-クリックか
6869 、Mac OS X上ではAlt-クリックで始動します)。
6870 \end_layout
6871
6872 \begin_layout Standard
6873 しかし、何らかの理由で、LyXと通信するのにソケットではなく命名パイプを使用したい場合には、
6874 \begin_inset Flex MenuItem
6875 status collapsed
6876
6877 \begin_layout Plain Layout
6878 設定\SpecialChar \menuseparator
6879 ファイル処理\SpecialChar \menuseparator
6880 ファイル書式
6881 \end_layout
6882
6883 \end_inset
6884
6885 のDVIビューアを
6886 \begin_inset Flex Code
6887 status collapsed
6888
6889 \begin_layout Plain Layout
6890 xdvi -editor 'lyxeditor.sh %f %l'
6891 \end_layout
6892
6893 \end_inset
6894
6895
6896 \begin_inset Flex Code
6897 status collapsed
6898
6899 \begin_layout Plain Layout
6900 lyxeditor.sh
6901 \end_layout
6902
6903 \end_inset
6904
6905 は適切なスクリプト名)に変更してください。たとえば、最低限のシェルスクリプトは
6906 \end_layout
6907
6908 \begin_layout LyX-Code
6909 #!/bin/sh
6910 \begin_inset Newline newline
6911 \end_inset
6912
6913 LYXPIPE="/path/to/lyxpipe"
6914 \begin_inset Newline newline
6915 \end_inset
6916
6917 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
6918 \begin_inset Newline newline
6919 \end_inset
6920
6921 echo "$COMMAND" > "${LYXPIPE}".in || exit
6922 \begin_inset Newline newline
6923 \end_inset
6924
6925 read < "${LYXPIPE}".out || exit
6926 \end_layout
6927
6928 \begin_layout Standard
6929 のようになります。ここで
6930 \begin_inset Flex Code
6931 status collapsed
6932
6933 \begin_layout Plain Layout
6934 /path/to/lyxpipe
6935 \end_layout
6936
6937 \end_inset
6938
6939 は、
6940 \begin_inset Flex MenuItem
6941 status collapsed
6942
6943 \begin_layout Plain Layout
6944 設定\SpecialChar \menuseparator
6945 パス
6946 \end_layout
6947
6948 \end_inset
6949
6950 で指定したLy
6951 \begin_inset ERT
6952 status open
6953
6954 \begin_layout Plain Layout
6955
6956 {}
6957 \end_layout
6958
6959 \end_inset
6960
6961 XServerパイプのパスを指定してください
6962 \begin_inset Foot
6963 status collapsed
6964
6965 \begin_layout Plain Layout
6966 ソース頒布版の
6967 \begin_inset Flex Code
6968 status collapsed
6969
6970 \begin_layout Plain Layout
6971 development/tools
6972 \end_layout
6973
6974 \end_inset
6975
6976 フォルダには、ユーザが設定した
6977 \emph on
6978 lyxpipe
6979 \emph default
6980 を探し出す
6981 \begin_inset Flex Code
6982 status collapsed
6983
6984 \begin_layout Plain Layout
6985 lyxeditor
6986 \end_layout
6987
6988 \end_inset
6989
6990 スクリプトがあります。
6991 \end_layout
6992
6993 \end_inset
6994
6995
6996 \end_layout
6997
6998 \begin_layout Subsubsection*
6999 MacDviX(Mac OS X)
7000 \end_layout
7001
7002 \begin_layout Standard
7003 \begin_inset Flex Code
7004 status collapsed
7005
7006 \begin_layout Plain Layout
7007 /Applications/MacDviX_Folder/calleditor.script
7008 \end_layout
7009
7010 \end_inset
7011
7012 の終わりに
7013 \end_layout
7014
7015 \begin_layout LyX-Code
7016 /Applications/Ly
7017 \begin_inset ERT
7018 status collapsed
7019
7020 \begin_layout Plain Layout
7021
7022 {}
7023 \end_layout
7024
7025 \end_inset
7026
7027 X.app/Contents/MacOS/lyxeditor "$2" $1
7028 \begin_inset Newline newline
7029 \end_inset
7030
7031 exit 1
7032 \end_layout
7033
7034 \begin_layout Standard
7035 という行を付け加えてください。Applicationsフォルダ以外の場所にLyXを導入した場合には、それに従って上記の行を修正してください。
7036 \end_layout
7037
7038 \begin_layout Standard
7039 遡及検索は、Alt-クリック(OPTION-クリック)で始動します。
7040 \end_layout
7041
7042 \begin_layout Subsubsection*
7043 Skim(Mac OS X)
7044 \end_layout
7045
7046 \begin_layout Standard
7047 \begin_inset Flex MenuItem
7048 status collapsed
7049
7050 \begin_layout Plain Layout
7051 設定\SpecialChar \menuseparator
7052 ファイル処理\SpecialChar \menuseparator
7053 ファイル書式\SpecialChar \menuseparator
7054 PDF (pdflatex)
7055 \end_layout
7056
7057 \end_inset
7058
7059 のビューア設定に
7060 \begin_inset Flex Code
7061 status collapsed
7062
7063 \begin_layout Plain Layout
7064 open -a Skim.app $$i
7065 \end_layout
7066
7067 \end_inset
7068
7069 と入力し、
7070 \begin_inset Flex MenuItem
7071 status collapsed
7072
7073 \begin_layout Plain Layout
7074 Skim\SpecialChar \menuseparator
7075 設定\SpecialChar \menuseparator
7076 Sync
7077 \end_layout
7078
7079 \end_inset
7080
7081 でLy
7082 \begin_inset ERT
7083 status collapsed
7084
7085 \begin_layout Plain Layout
7086
7087 {}
7088 \end_layout
7089
7090 \end_inset
7091
7092 Xを選択してください。
7093 \end_layout
7094
7095 \begin_layout Standard
7096 遡及検索は、COMMAND-SHIFT-クリックで始動します。
7097 \end_layout
7098
7099 \begin_layout Subsubsection*
7100 Okular (KDE)
7101 \end_layout
7102
7103 \begin_layout Standard
7104 \begin_inset Flex MenuItem
7105 status collapsed
7106
7107 \begin_layout Plain Layout
7108 設定\SpecialChar \menuseparator
7109 Okularを設定\SpecialChar \ldots{}
7110 \SpecialChar \menuseparator
7111 編集
7112 \end_layout
7113
7114 \end_inset
7115
7116 で「カスタムテキストエディタ」を選択し、コマンドに
7117 \begin_inset Flex Code
7118 status collapsed
7119
7120 \begin_layout Plain Layout
7121 lyxclient -g %f %l
7122 \end_layout
7123
7124 \end_inset
7125
7126 を加えてください。
7127 \end_layout
7128
7129 \begin_layout Standard
7130 遡及検索は、SHIFT-クリックで始動します。
7131 \end_layout
7132
7133 \begin_layout Subsubsection*
7134 YAP(Windows)
7135 \end_layout
7136
7137 \begin_layout Standard
7138 yapを起動し、
7139 \begin_inset Flex MenuItem
7140 status collapsed
7141
7142 \begin_layout Plain Layout
7143 View\SpecialChar \menuseparator
7144 Options
7145 \end_layout
7146
7147 \end_inset
7148
7149 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
7150 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
7151  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
7152 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7153 \begin_inset Flex Code
7154 status collapsed
7155
7156 \begin_layout Plain Layout
7157 lyxeditor.bat
7158 \end_layout
7159
7160 \end_inset
7161
7162 (以下参照)のあるディレクトリを見つけます。
7163 \begin_inset Flex Code
7164 status collapsed
7165
7166 \begin_layout Plain Layout
7167 lyxeditor.bat
7168 \end_layout
7169
7170 \end_inset
7171
7172 を選択してプログラムの引数を
7173 \begin_inset Flex Code
7174 status collapsed
7175
7176 \begin_layout Plain Layout
7177 %f %l
7178 \end_layout
7179
7180 \end_inset
7181
7182 と指定してください。
7183 \begin_inset Flex Code
7184 status collapsed
7185
7186 \begin_layout Plain Layout
7187 lyxeditor.bat
7188 \end_layout
7189
7190 \end_inset
7191
7192 は、
7193 \emph on
7194 lyxpipe
7195 \emph default
7196 を通じてLyXと通信するためのラッパとして使用され、以下のようになっています。
7197 \end_layout
7198
7199 \begin_layout LyX-Code
7200 @echo off
7201 \begin_inset Newline newline
7202 \end_inset
7203
7204 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7205 \backslash
7206
7207 \backslash
7208 .
7209 \backslash
7210 pipe
7211 \backslash
7212 lyxpipe.in
7213 \begin_inset Newline newline
7214 \end_inset
7215
7216 type 
7217 \backslash
7218
7219 \backslash
7220 .
7221 \backslash
7222 pipe
7223 \backslash
7224 lyxpipe.out
7225 \end_layout
7226
7227 \begin_layout Standard
7228 LyXで指定したLyXServerパイプパスが、
7229 \begin_inset Flex Code
7230 status collapsed
7231
7232 \begin_layout Plain Layout
7233
7234 \backslash
7235
7236 \backslash
7237 .
7238 \backslash
7239 pipe
7240 \backslash
7241 lyxpipe
7242 \end_layout
7243
7244 \end_inset
7245
7246 となっていることを確認するか、
7247 \begin_inset Flex Code
7248 status collapsed
7249
7250 \begin_layout Plain Layout
7251 lyxeditor.bat
7252 \end_layout
7253
7254 \end_inset
7255
7256 ラッパの方を適切に修正してください。
7257 \end_layout
7258
7259 \begin_layout Standard
7260 yapでは、遡及検索はダブルクリックで始動します。
7261 \end_layout
7262
7263 \begin_layout Subsubsection*
7264 SumatraPDF(Windows)
7265 \end_layout
7266
7267 \begin_layout Standard
7268 SumatraPDFを遡及検索で使用するためには、
7269 \begin_inset Flex MenuItem
7270 status collapsed
7271
7272 \begin_layout Plain Layout
7273 設定\SpecialChar \menuseparator
7274 ファイル処理\SpecialChar \menuseparator
7275 ファイル書式\SpecialChar \menuseparator
7276 PDF (pdflatex)
7277 \end_layout
7278
7279 \end_inset
7280
7281 のビューア設定で
7282 \begin_inset Flex Code
7283 status collapsed
7284
7285 \begin_layout Plain Layout
7286 SumatraPDF -inverse-search 
7287 \begin_inset Quotes eld
7288 \end_inset
7289
7290 lyxeditor.bat %f %l
7291 \begin_inset Quotes erd
7292 \end_inset
7293
7294
7295 \end_layout
7296
7297 \end_inset
7298
7299
7300 \begin_inset Flex Code
7301 status collapsed
7302
7303 \begin_layout Plain Layout
7304 lyxeditor.bat
7305 \end_layout
7306
7307 \end_inset
7308
7309 は上記のラッパ)と入力してください。SumatraPDF.exeがコマンドPATHにない場合、フルファイル名を使用してください。
7310 \end_layout
7311
7312 \begin_layout Standard
7313 遡及検索はダブルクリックで始動します。
7314 \end_layout
7315
7316 \begin_layout Subsubsection*
7317 YAP(Cygwin)
7318 \end_layout
7319
7320 \begin_layout Standard
7321 まずはじめに、yapがWindows環境での既定のDVIビューアになっていることを確認してから、yapを起動し、
7322 \begin_inset Flex MenuItem
7323 status collapsed
7324
7325 \begin_layout Plain Layout
7326 View\SpecialChar \menuseparator
7327 Options
7328 \end_layout
7329
7330 \end_inset
7331
7332 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
7333 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
7334  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
7335 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7336 \begin_inset Flex Code
7337 status collapsed
7338
7339 \begin_layout Plain Layout
7340 lyxeditor.exe
7341 \end_layout
7342
7343 \end_inset
7344
7345 プログラム(これは、Cygwinでは既定でLyX実行ファイルとともに導入されます)のあるディレクトリを見つけます。
7346 \begin_inset Flex Code
7347 status collapsed
7348
7349 \begin_layout Plain Layout
7350 lyxeditor.exe
7351 \end_layout
7352
7353 \end_inset
7354
7355 を選択してプログラムの引数を
7356 \begin_inset Flex Code
7357 status collapsed
7358
7359 \begin_layout Plain Layout
7360 -g %f %l
7361 \end_layout
7362
7363 \end_inset
7364
7365 と指定してください。これによって、LyXとの通信に
7366 \emph on
7367 lyxsocket
7368 \emph default
7369 が使用されるようになります。何らかの理由で
7370 \emph on
7371 lyxpipe
7372 \emph default
7373 を使用したい場合には、
7374 \begin_inset Flex Code
7375 status collapsed
7376
7377 \begin_layout Plain Layout
7378 -g
7379 \end_layout
7380
7381 \end_inset
7382
7383 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
7384 \end_layout
7385
7386 \begin_layout Standard
7387 yapでは、遡及検索はダブルクリックで始動します。
7388 \end_layout
7389
7390 \begin_layout Subsubsection*
7391 SumatraPDF(Cygwin)
7392 \end_layout
7393
7394 \begin_layout Standard
7395 SumatraPDFを遡及検索で使用するためには、
7396 \begin_inset Flex MenuItem
7397 status collapsed
7398
7399 \begin_layout Plain Layout
7400 設定\SpecialChar \menuseparator
7401 ファイル処理\SpecialChar \menuseparator
7402 ファイル書式\SpecialChar \menuseparator
7403 PDF (pdflatex)
7404 \end_layout
7405
7406 \end_inset
7407
7408 のビューア設定で
7409 \begin_inset Flex Code
7410 status collapsed
7411
7412 \begin_layout Plain Layout
7413 SumatraPDF.sh
7414 \end_layout
7415
7416 \end_inset
7417
7418 と入力してください。ここで
7419 \begin_inset Flex Code
7420 status collapsed
7421
7422 \begin_layout Plain Layout
7423 SumatraPDF.sh
7424 \end_layout
7425
7426 \end_inset
7427
7428 は以下のようなスクリプトです(お使いのコマンドパスに置きます。
7429 \begin_inset Flex Code
7430 status collapsed
7431
7432 \begin_layout Plain Layout
7433 /usr/local/bin
7434 \end_layout
7435
7436 \end_inset
7437
7438 がもっとも良い選択肢でしょう)。
7439 \end_layout
7440
7441 \begin_layout LyX-Code
7442 #!/bin/bash
7443 \begin_inset Newline newline
7444 \end_inset
7445
7446 cd $(dirname $1)
7447 \begin_inset Newline newline
7448 \end_inset
7449
7450 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
7451 \end_layout
7452
7453 \begin_layout Standard
7454 SumatraPDFは、Windowsネイティブのアプリケーションであり、LyXのCygwin版が使用するPOSIXパスを理解しないので、このラッパスクリプトが
7455 必要となります。SumatraPDF.exeがお使いのコマンドパスにない場合は、上記のスクリプトでPOSIXのフルパスを使用してください。
7456 \begin_inset Flex Code
7457 status collapsed
7458
7459 \begin_layout Plain Layout
7460 -g
7461 \end_layout
7462
7463 \end_inset
7464
7465
7466 \emph on
7467 lyxsocket
7468 \emph default
7469 経由の通信を有効にします。ここでも、
7470 \emph on
7471 lyxpipe
7472 \emph default
7473 を使用したい場合には、
7474 \begin_inset Flex Code
7475 status collapsed
7476
7477 \begin_layout Plain Layout
7478 -g
7479 \end_layout
7480
7481 \end_inset
7482
7483 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
7484 \end_layout
7485
7486 \begin_layout Standard
7487 遡及検索はダブルクリックで始動します。
7488 \end_layout
7489
7490 \begin_layout Section
7491 前方検索
7492 \end_layout
7493
7494 \begin_layout Standard
7495 前方検索を有効にするためには、生成されたPDF/DVI出力ファイルに、TeXソースに関する情報を追加する必要があります。これは、第
7496 \begin_inset CommandInset ref
7497 LatexCommand ref
7498 reference "sub:遡及検索"
7499
7500 \end_inset
7501
7502 節に述べられている方法で実行することができます。
7503 \end_layout
7504
7505 \begin_layout Standard
7506 次に、
7507 \begin_inset Flex MenuItem
7508 status collapsed
7509
7510 \begin_layout Plain Layout
7511 設定\SpecialChar \menuseparator
7512 出力\SpecialChar \menuseparator
7513 一般
7514 \end_layout
7515
7516 \end_inset
7517
7518 で自分の使うビューアを利用するように、LyXを設定する必要があります。ただし、yap・xdvi・okular・Sumatra PDFなど、一部のビューアしかこの
7519 操作は利用できません
7520 \begin_inset Foot
7521 status collapsed
7522
7523 \begin_layout Plain Layout
7524 Sumatraの場合には、http://www.istri.fr/zip/CMCDDE.zipからダウンロードできるCMCDDEが必要です。
7525 \end_layout
7526
7527 \end_inset
7528
7529 。Evinceやxpdfなどの他のビューアでは、少なくとも、ファイルの特定頁を読み込み直したり、指し示したりすることができますが、これらの場合にはsynctex
7530 の外部コールを使用することができます。設定ダイアログに用意されている用例をよく研究してください。設定中で置き換えられる値は以下の通りです。
7531 \begin_inset Flex Code
7532 status collapsed
7533
7534 \begin_layout Plain Layout
7535 $$n
7536 \end_layout
7537
7538 \end_inset
7539
7540 は行番号を指し、
7541 \begin_inset Flex Code
7542 status collapsed
7543
7544 \begin_layout Plain Layout
7545 $$t
7546 \end_layout
7547
7548 \end_inset
7549
7550 は書き出された一時.texファイル、
7551 \begin_inset Flex Code
7552 status collapsed
7553
7554 \begin_layout Plain Layout
7555 $$o
7556 \end_layout
7557
7558 \end_inset
7559
7560 は書き出された出力ファイルを指します(一時ディレクトリにどちらが存在するかに依存してdviあるいはpdf)。
7561 \end_layout
7562
7563 \begin_layout Standard
7564 閲覧時には、一時ディレクトリに.dviファイルがあるか.pdfファイルがあるか(特定の文書を閲覧するのにどの書式を使用したか)によって、適当なプレビュー書式をLyX
7565 が動的に選択します。
7566 \end_layout
7567
7568 \begin_layout Chapter
7569 特別な文書クラス
7570 \end_layout
7571
7572 \begin_layout Section
7573 A&Aの論文
7574 \end_layout
7575
7576 \begin_layout Standard
7577
7578 \noun on
7579 Peter Sütterlin文
7580 \end_layout
7581
7582 \begin_layout Subsection
7583 はじめに
7584 \end_layout
7585
7586 \begin_layout Standard
7587 この節では、文書クラス
7588 \family typewriter
7589 aa.cls
7590 \family default
7591 第5.01版を使用して科学雑誌
7592 \emph on
7593 Astronomy and Astrophysics
7594 \emph default
7595 (『天文学と宇宙物理学』:www.edpsciences.fr/aa/ 
7596 \begin_inset Flex URL
7597 status collapsed
7598
7599 \begin_layout Plain Layout
7600
7601 http://www.edpsciences.fr/aa/
7602 \end_layout
7603
7604 \end_inset
7605
7606 )に投稿する論文を執筆するためのLyXの使用法を説明します。このパッケージは、FTPサイト
7607 \end_layout
7608
7609 \begin_layout Standard
7610 \align center
7611 \begin_inset VSpace medskip
7612 \end_inset
7613
7614
7615 \begin_inset Flex URL
7616 status collapsed
7617
7618 \begin_layout Plain Layout
7619
7620 ftp://ftp.edpsciences.org/pub/aa/readme.html
7621 \end_layout
7622
7623 \end_inset
7624
7625
7626 \begin_inset VSpace medskip
7627 \end_inset
7628
7629
7630 \end_layout
7631
7632 \begin_layout Standard
7633 \noindent
7634 からダウンロードすることができます。
7635 \end_layout
7636
7637 \begin_layout Standard
7638 このパッケージには取扱説明書がついていますが、本節は、本来の取扱説明書の代わりとなることを意図したものではなく、あなたの論文を正しい様式に整えるための小さな案内
7639 書であるに過ぎません。
7640 \end_layout
7641
7642 \begin_layout Standard
7643 この学術誌の出版元は、2001年1月1日以降、Springer社からEDP Science社に変更されていることにご注意ください。この出版社の変更によって、th
7644 esaurusコマンドの廃止など、スタイルファイルに若干の変更が加わっています。LyXのaaクラスは、スタイルファイルの最新版(第5.01版)をサポートしています
7645 。もし古い版が装備されている場合には、更新してください。互換性のために、古い(第4版)レイアウトは、
7646 \family sans
7647 article (A&A V4)
7648 \family default
7649 として残してあります。
7650 \family typewriter
7651 $LyXDir/layouts/aapaper.layout
7652 \family default
7653 のコメントをご参照ください。
7654 \end_layout
7655
7656 \begin_layout Subsection
7657 最初の一歩
7658 \end_layout
7659
7660 \begin_layout Standard
7661 LyXとともに頒布されている例示用のひな型を土台として、書き始めることをお勧めします。ひな型を使用しない場合には、以下の設定にしてください。
7662 \end_layout
7663
7664 \begin_layout Itemize
7665
7666 \family sans
7667 文書\SpecialChar \menuseparator
7668 設定
7669 \family default
7670 ダイアログで
7671 \family sans
7672 article (A&A)
7673 \family default
7674 を選択してください(まぁ、これは自明ですね)。
7675 \end_layout
7676
7677 \begin_layout Itemize
7678
7679 \family sans
7680 ページレイアウト
7681 \family default
7682 オプションは変更しないで、既定値のままに設定しておいてください。全体のレイアウトはマクロが行うので、何も変更してはいけません。
7683 \end_layout
7684
7685 \begin_layout Subsection
7686 へッダ部
7687 \end_layout
7688
7689 \begin_layout Standard
7690 最初に入力すべきものは、へッダ情報です。ヘッダ情報には、以下の7つの項目があり、いくつかは必須ではありません。
7691 \end_layout
7692
7693 \begin_layout Itemize
7694
7695 \family sans
7696 タイトル
7697 \family default
7698 :[必須]
7699 \end_layout
7700
7701 \begin_layout Itemize
7702
7703 \family sans
7704 サブタイトル
7705 \family default
7706 :[非必須]
7707 \end_layout
7708
7709 \begin_layout Itemize
7710
7711 \family sans
7712 著者
7713 \family default
7714 :[必須]
7715 \end_layout
7716
7717 \begin_layout Itemize
7718
7719 \family sans
7720 住所
7721 \family default
7722 :[必須]
7723 \end_layout
7724
7725 \begin_layout Itemize
7726
7727 \family sans
7728 抜き刷り
7729 \family default
7730 :[非必須]著者が複数いる場合、抜き刷りの送付を依頼するのに連絡すべき人を記す。
7731 \end_layout
7732
7733 \begin_layout Itemize
7734
7735 \family sans
7736 メール
7737 \family default
7738 :[非必須]連絡用の電子メールアドレス。
7739 \end_layout
7740
7741 \begin_layout Itemize
7742
7743 \family sans
7744 日付
7745 \family default
7746 :[必須]推奨されるフォーマットは、
7747 \family typewriter
7748 Received: <日付>; Accepted <日付>
7749 \family default
7750 です。
7751 \end_layout
7752
7753 \begin_layout Standard
7754
7755 \family typewriter
7756
7757 \backslash
7758 maketitle
7759 \family default
7760 コマンドは、へッダが終了した場所に、LyXが自動的に入れてくれるので、手動で挿入する必要はありません。各項目の順序は関係ありませんが、見た目のためと、実際の文書
7761 のレイアウトに合わせるために、上記の順序を維持しておくと良いでしょう。
7762 \end_layout
7763
7764 \begin_layout Standard
7765 現住所の付記などのために、へッダ部に脚注を挿入したい場合には、
7766 \family sans
7767 挿入\SpecialChar \menuseparator
7768 脚注
7769 \family default
7770 を使用して標準の脚注を挿入してください。この場合には、LyXは自動的に
7771 \family typewriter
7772
7773 \backslash
7774 thanks{}
7775 \family default
7776 を使用します。
7777 \end_layout
7778
7779 \begin_layout Standard
7780 これらのトピックの他に、このマクロは、LyXが対応していない、以下の3つのLaTeXコマンドを使用します。
7781 \end_layout
7782
7783 \begin_layout Itemize
7784 複数の著者名あるいは所属名を区切るための
7785 \family typewriter
7786
7787 \backslash
7788 and
7789 \end_layout
7790
7791 \begin_layout Itemize
7792 著者と所属の対応付けをするための
7793 \family typewriter
7794
7795 \backslash
7796 inst{<番号>}
7797 \family default
7798 。所属は、
7799 \family sans
7800 住所
7801 \family default
7802 フィールドに現れる順に番号が付けられるので、各著者に番号マーカーを置く必要があります。
7803 \end_layout
7804
7805 \begin_layout Itemize
7806
7807 \family typewriter
7808
7809 \backslash
7810 email{アドレス}
7811 \family default
7812 は、至急連絡用に電子メールアドレスを付記します。
7813 \end_layout
7814
7815 \begin_layout Standard
7816 いずれの場合にも、LyX中に対応したコマンドを入力し、LaTeXコードとしてマークしてください。
7817 \begin_inset Flex Code
7818 status collapsed
7819
7820 \begin_layout Plain Layout
7821 $LyXDir/examples
7822 \end_layout
7823
7824 \end_inset
7825
7826 にある用例を参照してください。
7827 \end_layout
7828
7829 \begin_layout Subsection
7830 概要
7831 \end_layout
7832
7833 \begin_layout Standard
7834 概要は、へッダ部の直後に置きます。第5版から、概要は環境からコマンドに変更され、一段落に限るという制限が加えられました。さらに、ここにはキーワードを含む項目を入
7835 れなくてはなりません。これは、まだLyXでは実装されていないため、LaTeXコマンド
7836 \family typewriter
7837
7838 \backslash
7839 keywords{}
7840 \family default
7841 を手動で入力し、LaTeXコードとしてマークする必要があります。用例にある論文を参照してください。
7842 \end_layout
7843
7844 \begin_layout Subsection
7845 サポートされる環境
7846 \end_layout
7847
7848 \begin_layout Standard
7849 A&A論文用レイアウトでは、文章を構造化するために、以下の環境がサポートされています。
7850 \end_layout
7851
7852 \begin_layout Itemize
7853
7854 \family sans
7855 標準
7856 \end_layout
7857
7858 \begin_layout Itemize
7859
7860 \family sans
7861
7862 \end_layout
7863
7864 \begin_layout Itemize
7865
7866 \family sans
7867 小節
7868 \end_layout
7869
7870 \begin_layout Itemize
7871
7872 \family sans
7873 小々節
7874 \end_layout
7875
7876 \begin_layout Itemize
7877
7878 \family sans
7879 箇条書き(記号)
7880 \end_layout
7881
7882 \begin_layout Itemize
7883
7884 \family sans
7885 箇条書き(連番)
7886 \end_layout
7887
7888 \begin_layout Itemize
7889
7890 \family sans
7891 箇条書き(記述)
7892 \end_layout
7893
7894 \begin_layout Itemize
7895
7896 \family sans
7897 キャプション
7898 \end_layout
7899
7900 \begin_layout Itemize
7901
7902 \family sans
7903 概要
7904 \end_layout
7905
7906 \begin_layout Itemize
7907
7908 \family sans
7909 謝辞(Acknowledgment)
7910 \end_layout
7911
7912 \begin_layout Itemize
7913
7914 \family sans
7915 参考文献
7916 \end_layout
7917
7918 \begin_layout Itemize
7919
7920 \family sans
7921 LaTeX
7922 \end_layout
7923
7924 \begin_layout Subsection
7925 LyXでサポートされていないコマンド
7926 \end_layout
7927
7928 \begin_layout Standard
7929 LyXの
7930 \family sans
7931 article (A&A)
7932 \family default
7933 レイアウトでは、まだサポートされていないコマンドがあります。そのうちいくつかは既に紹介しましたが、網羅するために、以下にすべて列挙しておきます。
7934 \end_layout
7935
7936 \begin_layout Itemize
7937
7938 \family typewriter
7939
7940 \backslash
7941 and
7942 \end_layout
7943
7944 \begin_layout Itemize
7945
7946 \family typewriter
7947
7948 \backslash
7949 email
7950 \end_layout
7951
7952 \begin_layout Itemize
7953
7954 \family typewriter
7955
7956 \backslash
7957 appendix
7958 \end_layout
7959
7960 \begin_layout Itemize
7961
7962 \family typewriter
7963
7964 \backslash
7965 authorrunning
7966 \end_layout
7967
7968 \begin_layout Itemize
7969
7970 \family typewriter
7971
7972 \backslash
7973 inst{}
7974 \end_layout
7975
7976 \begin_layout Itemize
7977
7978 \family typewriter
7979
7980 \backslash
7981 keywords{}
7982 \end_layout
7983
7984 \begin_layout Itemize
7985
7986 \family typewriter
7987
7988 \backslash
7989 object{}
7990 \end_layout
7991
7992 \begin_layout Itemize
7993
7994 \family typewriter
7995
7996 \backslash
7997 titlerunning{}
7998 \end_layout
7999
8000 \begin_layout Standard
8001 これらのコマンドのいずれかを使いたい場合には、自分で入力する必要があります。
8002 \series bold
8003 これをLaTeXコマンドとしてマークすることを忘れないで下さい。
8004 \end_layout
8005
8006 \begin_layout Subsection
8007 図フロートおよび表フロート
8008 \end_layout
8009
8010 \begin_layout Standard
8011 LyXは、必要なフロート環境
8012 \family sans
8013 figure
8014 \family default
8015
8016 \family sans
8017 figure*
8018 \family default
8019
8020 \family sans
8021 table
8022 \family default
8023
8024 \family sans
8025 table*
8026 \family default
8027 をサポートしていますので、ここでは詳しい説明はしません。
8028 \emph on
8029 ユーザーの手引き
8030 \emph default
8031 をご覧ください。ただ、表は左揃えにしなくてはならないことに注意して下さい。そうするためには、表を選択して、
8032 \family sans
8033 編集\SpecialChar \menuseparator
8034 段落設定
8035 \family default
8036 で配置を変更してください。
8037 \end_layout
8038
8039 \begin_layout Standard
8040 一つだけ、特別なものがあります。それは、図横にキャプションを配置する図です。この図を作成するには、以下のようにしなくてはなりません。
8041 \end_layout
8042
8043 \begin_layout Enumerate
8044
8045 \family sans
8046 挿入\SpecialChar \menuseparator
8047 フロート\SpecialChar \menuseparator
8048
8049 \family default
8050 を使って、幅広の図フロートを作成します。それから、図フロートのラベルを右クリックして
8051 \begin_inset Flex MenuItem
8052 status collapsed
8053
8054 \begin_layout Plain Layout
8055 設定\SpecialChar \ldots{}
8056
8057 \end_layout
8058
8059 \end_inset
8060
8061 を選択し、それで開かれる
8062 \family sans
8063 フロートの設定
8064 \family default
8065 ダイアログで
8066 \family sans
8067 段をまたぐ
8068 \family default
8069 を有効にして、
8070 \family sans
8071 OK
8072 \family default
8073 ボタンを押します。
8074 \end_layout
8075
8076 \begin_layout Enumerate
8077 キャプション文を入力します。
8078 \end_layout
8079
8080 \begin_layout Enumerate
8081 キャプションの前にカーソルを移動し、
8082 \family sans
8083 Return
8084 \family default
8085 を押して、カーソルをキャプションの上に移動します。
8086 \end_layout
8087
8088 \begin_layout Enumerate
8089 図を挿入します。
8090 \end_layout
8091
8092 \begin_layout Enumerate
8093 カーソルを図の後ろに置いて、
8094 \family sans
8095 挿入\SpecialChar \menuseparator
8096 整形
8097 \bar under
8098 \SpecialChar \menuseparator
8099
8100 \bar default
8101 水平方向の空白
8102 \family default
8103 を選択して
8104 \family sans
8105 水平方向の空白の設定
8106 \family default
8107 ダイアログを開き、
8108 \family sans
8109 空白
8110 \family default
8111 ドロップダウンから
8112 \family sans
8113 水平フィル
8114 \family default
8115 を選択して、水平フィルを挿入します。
8116 \end_layout
8117
8118 \begin_layout Enumerate
8119
8120 \family sans
8121 挿入\SpecialChar \menuseparator
8122 TeXコード
8123 \family default
8124 を選択して、TeX差込枠を挿入します。
8125 \end_layout
8126
8127 \begin_layout Enumerate
8128 TeX差込枠中に
8129 \family typewriter
8130
8131 \backslash
8132 parbox[b]{55mm}{
8133 \family default
8134 と入力します。
8135 \series bold
8136 ここでは波括弧を閉じないでください。
8137 \end_layout
8138
8139 \begin_layout Enumerate
8140 カーソルをキャプション文の後ろに移動し、
8141 \family sans
8142 挿入\SpecialChar \menuseparator
8143 TeXコード
8144 \family default
8145 を選択して、別のTeX差込枠を挿入し、その中に閉じ括弧を入力します 。
8146 \end_layout
8147
8148 \begin_layout Standard
8149 例示用論文中の図もご参照ください。
8150 \end_layout
8151
8152 \begin_layout Subsection
8153 Refereeレイアウト
8154 \end_layout
8155
8156 \begin_layout Standard
8157 投稿用には、論文を特別なダブルスペースレイアウトに整形しなくてはなりません。このためには、文書クラスに
8158 \family typewriter
8159 referee
8160 \family default
8161 オプションを与える必要があります。これは、
8162 \family sans
8163 文書\SpecialChar \menuseparator
8164 設定
8165 \family default
8166 ダイアログの
8167 \family sans
8168 任意設定
8169 \family default
8170 クラスオプションフィールドを使って行うことができます。この欄に
8171 \family typewriter
8172 referee
8173 \family default
8174 と云う文字列を入力してください。
8175 \end_layout
8176
8177 \begin_layout Subsection
8178 例示用論文
8179 \end_layout
8180
8181 \begin_layout Standard
8182
8183 \family sans
8184 Examples
8185 \family default
8186 ディレクトリには、LyXで書かれた例示用論文が収録されています。これは、元のマクロパッケージの例示用論文をLyX用に直したものです。これはヒントを得るために使用
8187 したり、元の LaTeXコードとLyXでの書き方の比較に使ったりしてください。
8188 \end_layout
8189
8190 \begin_layout Section
8191 AASTeX
8192 \end_layout
8193
8194 \begin_layout Standard
8195
8196 \noun on
8197 Mike Ressler
8198 \noun default
8199
8200 \end_layout
8201
8202 \begin_layout Subsection
8203 はじめに
8204 \end_layout
8205
8206 \begin_layout Standard
8207 AASTeXは、American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑
8208 誌)同誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of
8209  the Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために、同学会が作成したマクロ集
8210 です。LyXは、これらの文書を生成する上で、なかでも数式・引用・画像処理能力において、優れたツールであることが認識されています。LyXは、同マクロ第5.0版以降を
8211 必要としており、できればここで説明されている第5.2版以降が望まれます。第5.0版未満の版は、LaTeX2.09で使用するよう企図されているため、根本的にLyXとは互
8212 換性がありません。AASTeXパッケージは、以下のAASTeXウェブサイトからダウンロードできるでしょう。
8213 \end_layout
8214
8215 \begin_layout Standard
8216 \align center
8217 \begin_inset VSpace medskip
8218 \end_inset
8219
8220
8221 \begin_inset Flex URL
8222 status collapsed
8223
8224 \begin_layout Plain Layout
8225
8226 http://www.journals.uchicago.edu/AAS/AASTeX
8227 \end_layout
8228
8229 \end_inset
8230
8231
8232 \begin_inset VSpace medskip
8233 \end_inset
8234
8235
8236 \end_layout
8237
8238 \begin_layout Standard
8239 パッケージ中には、完備したユーザーの手引きが収録されていますので、LyXで論文を書き始める前に、その中身を完全に理解しておく必要があります。LyXは、AASTe
8240 Xの全コマンドを理解する必然性をなくすものではなく、すべてを手入力する苦労を減らすだけです。仕上がりのLaTeX文書が、論文を投稿しようとしているジャーナルの要
8241 求事項に完全に合致していることを確認するのは、あなたの責任です。
8242 \end_layout
8243
8244 \begin_layout Subsection
8245 新しい論文を書き始める
8246 \end_layout
8247
8248 \begin_layout Standard
8249 論文を書き始めるには、AASTeXひな型ファイルを土台に始めることを強くお勧めします。
8250 \begin_inset Flex MenuItem
8251 status collapsed
8252
8253 \begin_layout Plain Layout
8254 ファイル\SpecialChar \menuseparator
8255 新規(ひな型使用)
8256 \end_layout
8257
8258 \end_inset
8259
8260 をクリックして、新しいファイル名を入力し、ひな型
8261 \family typewriter
8262 aastex.lyx
8263 \family default
8264 を選んでください。これには、論文原稿のほとんどに共通して使われるフィールドが書き込まれています。書き込まれている文字列(括弧
8265 \family typewriter
8266 <>
8267 \family default
8268 を含む)を正しい情報で上書きしてください。AASTeXコマンド・AASTeX環境の多くは、LyX中で直接実行することができますが、特に
8269 \family typewriter
8270
8271 \backslash
8272 altaffilmark
8273 \family default
8274
8275 \family typewriter
8276
8277 \backslash
8278 altaffiltext
8279 \family default
8280 のようにできないものもあります。この二つのコマンドは、ひな型ファイルを開いたとき、赤色に表示されているのですぐ目に入ることでしょう。このようなコマンドは、直接L
8281 aTeXコードを入力して、それをTeXコードとしてマークしなければなりません。このようなコマンドは、TeXコードあるいはEvil Red Text(邪悪な赤い文
8282 )と呼ばれます。AASTeX文書に必要とされる TeXコードを最小にするよう努力はしていますが、まだ望まれるほどにはなっていません。
8283 \end_layout
8284
8285 \begin_layout Subsection
8286 論文を書き終わったら
8287 \end_layout
8288
8289 \begin_layout Standard
8290 論文を満足する水準で書き終え、プレビューや印刷が正しく為されているとしても、まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています。
8291 \end_layout
8292
8293 \begin_layout Enumerate
8294 論文を LaTeXファイルとして書き出します(
8295 \family sans
8296 ファイル\SpecialChar \menuseparator
8297 書き出し\SpecialChar \menuseparator
8298 LateX
8299 \family default
8300 )。
8301 \end_layout
8302
8303 \begin_layout Enumerate
8304 出力した
8305 \family typewriter
8306 .tex
8307 \family default
8308 ファイルを好きなエディタで編集します。
8309 \end_layout
8310
8311 \begin_deeper
8312 \begin_layout Enumerate
8313
8314 \family typewriter
8315
8316 \backslash
8317 documentclass
8318 \family default
8319 コマンドよりも前のコメント行を削除します。
8320 \end_layout
8321
8322 \begin_layout Enumerate
8323
8324 \family typewriter
8325
8326 \backslash
8327 usepackage...{fontenc}
8328 \family default
8329 という行があれば(通常は
8330 \family typewriter
8331
8332 \backslash
8333 documentclass
8334 \family default
8335 の直後にあります)削除します。また、
8336 \family typewriter
8337
8338 \backslash
8339 secnumdepth
8340 \family default
8341 行があれば、これも削除します。
8342 \end_layout
8343
8344 \begin_layout Enumerate
8345 LaTeXプリアンブル中に意図的に置いたコマンド(
8346 \family typewriter
8347 .tex
8348 \family default
8349 ファイル中、「User specified LaTeX commands」というコメントの直後にあります)を除いて、
8350 \family typewriter
8351
8352 \backslash
8353 makeatletter
8354 \family default
8355
8356 \family typewriter
8357
8358 \backslash
8359 makeatother
8360 \family default
8361 の間のもの(これらのコマンドを含む)をすべて削除します。
8362 \end_layout
8363
8364 \end_deeper
8365 \begin_layout Enumerate
8366 編集後のファイルを LaTeXにかけて、正しく処理されることを確認します。
8367 \end_layout
8368
8369 \begin_layout Enumerate
8370 学術誌の要求事項を再読して、ファイル名と書式が正しいことを確認します。
8371 \end_layout
8372
8373 \begin_layout Enumerate
8374 投稿してください。
8375 \end_layout
8376
8377 \begin_layout Subsection
8378 特定のコマンドに関するコメント
8379 \end_layout
8380
8381 \begin_layout Standard
8382 AASTeXユーザーの手引き(
8383 \family typewriter
8384 aasguide.tex
8385 \family default
8386 )に、各AASTeXコマンドの詳しい説明があるので、ここでは、各コマンドの使用法の詳細な説明は行いません。そこで、ここではユーザーの手引きに現れるとおりに一覧を
8387 列挙して、必要なところだけコメントを加えることにしましょう。
8388 \end_layout
8389
8390 \begin_layout Subsubsection
8391 期待通りに動作するもの
8392 \end_layout
8393
8394 \begin_layout Standard
8395 これらは期待通りに動作するので、ここでは列挙するだけにして、コマンドの説明されている節を挙げておきます。
8396 \family typewriter
8397
8398 \backslash
8399 documentclass
8400 \family default
8401 (2.1.1)・
8402 \family typewriter
8403
8404 \backslash
8405 begin{document}
8406 \family default
8407 (2.2)・
8408 \family typewriter
8409
8410 \backslash
8411 title
8412 \family default
8413 (2.3)・
8414 \family typewriter
8415
8416 \backslash
8417 author
8418 \family default
8419 (2.3)・
8420 \family typewriter
8421
8422 \backslash
8423 affil
8424 \family default
8425 (2.3)・
8426 \family typewriter
8427
8428 \backslash
8429 abstract
8430 \family default
8431 (2.4)・
8432 \family typewriter
8433
8434 \backslash
8435 keywords
8436 \family default
8437 (2.5)・
8438 \family typewriter
8439
8440 \backslash
8441 section
8442 \family default
8443 (2.7)・
8444 \family typewriter
8445
8446 \backslash
8447 subsection
8448 \family default
8449 (2.7)・
8450 \family typewriter
8451
8452 \backslash
8453 subsubsection
8454 \family default
8455 (2.7)・
8456 \family typewriter
8457
8458 \backslash
8459 paragraph
8460 \family default
8461 (2.7)・
8462 \family typewriter
8463
8464 \backslash
8465 facility
8466 \family default
8467 (2.10)・
8468 \family typewriter
8469
8470 \backslash
8471 begin{displaymath}
8472 \family default
8473 (2.12)・
8474 \family typewriter
8475
8476 \backslash
8477 begin{equation}
8478 \family default
8479 (2.12)・
8480 \family typewriter
8481
8482 \backslash
8483 begin{eqnarray}
8484 \family default
8485 (2.12)・
8486 \family typewriter
8487
8488 \backslash
8489 begin{mathletters}
8490 \family default
8491 (2.12)・
8492 \family typewriter
8493
8494 \backslash
8495 begin{thebibliography}
8496 \family default
8497 (2.13.1)・
8498 \family typewriter
8499
8500 \backslash
8501 bibitem
8502 \family default
8503 (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
8504 \family typewriter
8505
8506 \backslash
8507 begin{table}
8508 \family default
8509 (2.15.4)・
8510 \family typewriter
8511
8512 \backslash
8513 begin{tabular}
8514 \family default
8515 (2.15.4)・
8516 \family typewriter
8517
8518 \backslash
8519 caption
8520 \family default
8521 (2.15.4)・
8522 \family typewriter
8523
8524 \backslash
8525 label
8526 \family default
8527 (他にもあるが特に2.15.4)・
8528 \family typewriter
8529
8530 \backslash
8531 tablerefs
8532 \family default
8533 (2.15.5)・
8534 \family typewriter
8535
8536 \backslash
8537 tablecomments
8538 \family default
8539 (2.15.5)・
8540 \family typewriter
8541
8542 \backslash
8543 url
8544 \family default
8545 (2.17.4)・
8546 \family typewriter
8547
8548 \backslash
8549 end{document}
8550 \family default
8551 (2.18)。
8552 \end_layout
8553
8554 \begin_layout Standard
8555 以下のスタイルオプションも正しく動作します。
8556 \family typewriter
8557 longabstract
8558 \family default
8559 (2.4)・
8560 \family typewriter
8561 preprint
8562 \family default
8563 (3.2.1)・
8564 \family typewriter
8565 preprint2
8566 \family default
8567 (3.2.2)・
8568 \family typewriter
8569 eqsecnum
8570 \family default
8571 (3.3)・
8572 \family typewriter
8573 flushrt
8574 \family default
8575 (3.4)。これらは、
8576 \begin_inset Flex MenuItem
8577 status collapsed
8578
8579 \begin_layout Plain Layout
8580 文書\SpecialChar \menuseparator
8581 設定
8582 \end_layout
8583
8584 \end_inset
8585
8586 にある、
8587 \family sans
8588 クラスオプション
8589 \family default
8590
8591 \family sans
8592 任意設定
8593 \family default
8594 ボックスに入力してください。
8595 \end_layout
8596
8597 \begin_layout Subsubsection
8598 動作するが、若干説明が必要なもの
8599 \end_layout
8600
8601 \begin_layout Standard
8602 以下のコマンドは動作しますが、若干の説明が必要です。
8603 \end_layout
8604
8605 \begin_layout Itemize
8606 以下の項目は、学術誌の編集者向けに取ってあるものですが、どうしても必要ならば、LaTeXプリアンブルに入れることができます。
8607 \family typewriter
8608
8609 \backslash
8610 received
8611 \family default
8612
8613 \family typewriter
8614
8615 \backslash
8616 revised
8617 \family default
8618
8619 \family typewriter
8620
8621 \backslash
8622 accepted
8623 \family default
8624
8625 \family typewriter
8626
8627 \backslash
8628 ccc
8629 \family default
8630
8631 \family typewriter
8632 cpright
8633 \family default
8634 (すべて 2.1.3)。
8635 \end_layout
8636
8637 \begin_layout Itemize
8638 以下の項目は、LaTeXのプリアンブルに置くことができるもので、これらは、ひな型ファイルには、空の引数と共に含まれています。
8639 \family typewriter
8640
8641 \backslash
8642 slugcomment
8643 \family default
8644 (2.1.4)・
8645 \family typewriter
8646
8647 \backslash
8648 shorttitle
8649 \family default
8650 (2.1.5)・
8651 \family typewriter
8652
8653 \backslash
8654 shortauthors
8655 \family default
8656 (2.1.5)。
8657 \end_layout
8658
8659 \begin_layout Itemize
8660
8661 \family typewriter
8662
8663 \backslash
8664 email
8665 \family default
8666 (2.3)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、TeXコードを使用してください。
8667 \end_layout
8668
8669 \begin_layout Itemize
8670
8671 \family typewriter
8672
8673 \backslash
8674 and
8675 \family default
8676 (2.3)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8677 \end_layout
8678
8679 \begin_layout Itemize
8680
8681 \family typewriter
8682
8683 \backslash
8684 notetoeditor
8685 \family default
8686 (2.6)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、TeXコードを使用してください。
8687 \end_layout
8688
8689 \begin_layout Itemize
8690
8691 \family typewriter
8692
8693 \backslash
8694 placetable
8695 \family default
8696 (2.8)―相互参照用タグを挿入することはできません。手動でタグ名を入力する必要があります。
8697 \end_layout
8698
8699 \begin_layout Itemize
8700
8701 \family typewriter
8702
8703 \backslash
8704 placefigure
8705 \family default
8706 (2.8)—
8707 \family typewriter
8708
8709 \backslash
8710 placetable
8711 \family default
8712 と同様。
8713 \end_layout
8714
8715 \begin_layout Itemize
8716
8717 \family typewriter
8718
8719 \backslash
8720 acknowledgements
8721 \family default
8722 (2.9)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8723 \end_layout
8724
8725 \begin_layout Itemize
8726
8727 \family typewriter
8728
8729 \backslash
8730 appendix
8731 \family default
8732 (2.11)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8733 \end_layout
8734
8735 \begin_layout Itemize
8736
8737 \family typewriter
8738
8739 \backslash
8740 figcaption
8741 \family default
8742 (2.14.2)―文章のはじめにカーソルを置いて
8743 \begin_inset Flex MenuItem
8744 status collapsed
8745
8746 \begin_layout Plain Layout
8747 挿入\SpecialChar \menuseparator
8748 短縮タイトル
8749 \end_layout
8750
8751 \end_inset
8752
8753 を選択すれば、非必須のファイル名引数を挿入することができます。「短縮タイトル」とありますが、
8754 \family typewriter
8755
8756 \backslash
8757 figcaption
8758 \family default
8759 が必要とする型の非必須引数を挿入します。望むらくはいつの日か改名されることでしょう。
8760 \end_layout
8761
8762 \begin_layout Itemize
8763
8764 \family typewriter
8765
8766 \backslash
8767 objectname
8768 \family default
8769 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
8770 \family typewriter
8771
8772 \backslash
8773 figcaption
8774 \family default
8775 と同様。
8776 \end_layout
8777
8778 \begin_layout Itemize
8779
8780 \family typewriter
8781
8782 \backslash
8783 dataset
8784 \family default
8785 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
8786 \family typewriter
8787
8788 \backslash
8789 figcaption
8790 \family default
8791 と同様。
8792 \end_layout
8793
8794 \begin_layout Subsubsection
8795 実装されていないため、TeXコードを使用するもの
8796 \end_layout
8797
8798 \begin_layout Standard
8799
8800 \family typewriter
8801
8802 \backslash
8803 altaffilmark
8804 \family default
8805 (2.3)・
8806 \family typewriter
8807
8808 \backslash
8809 altaffiltext
8810 \family default
8811 (2.3)・
8812 \family typewriter
8813
8814 \backslash
8815 eqnum
8816 \family default
8817 (2.12)・
8818 \family typewriter
8819
8820 \backslash
8821 setcounter{equation}
8822 \family default
8823 (2.12)・学術誌名略語(2.12.4)・
8824 \family typewriter
8825
8826 \backslash
8827 figurenum
8828 \family default
8829 (2.14.1)・
8830 \family typewriter
8831
8832 \backslash
8833 epsscale
8834 \family default
8835 (2.14.1)・
8836 \family typewriter
8837
8838 \backslash
8839 plotone
8840 \family default
8841 (2.14.1)・
8842 \family typewriter
8843
8844 \backslash
8845 plottwo
8846 \family default
8847 (2.14.1)・
8848 \family typewriter
8849
8850 \backslash
8851 tablenum
8852 \family default
8853 (2.15.4)・
8854 \family typewriter
8855
8856 \backslash
8857 tableline
8858 \family default
8859 (2.15.4:入れたい場所の後ろに、左側セルの最初の要素として挿入する。表中では、LyXの方法は使わないでください)・
8860 \family typewriter
8861
8862 \backslash
8863 tablenotemark
8864 \family default
8865 (2.15.5)・
8866 \family typewriter
8867
8868 \backslash
8869 tablenotetext
8870 \family default
8871 (2.15.5)・補遺(2.17)の大半(
8872 \family typewriter
8873
8874 \backslash
8875 objectname
8876 \family default
8877
8878 \family typewriter
8879
8880 \backslash
8881 dataset
8882 \family default
8883
8884 \family typewriter
8885
8886 \backslash
8887 url
8888 \family default
8889
8890 \family typewriter
8891
8892 \backslash
8893 email
8894 \family default
8895 を除く。上記参照)・
8896 \family typewriter
8897
8898 \backslash
8899 singlespace
8900 \family default
8901 (3.1)・
8902 \family typewriter
8903
8904 \backslash
8905 doublespace
8906 \family default
8907 (3.1)・
8908 \family typewriter
8909
8910 \backslash
8911 onecolumn
8912 \family default
8913 (3.2)・
8914 \family typewriter
8915
8916 \backslash
8917 twocolumn
8918 \family default
8919 (3.2)
8920 \end_layout
8921
8922 \begin_layout Subsubsection
8923 実装できないもの
8924 \end_layout
8925
8926 \begin_layout Standard
8927 references(2.12.3)環境とdeluxetable(2.14)環境は、少なくとも意味のあるような形で実装することができないので、無視してください。もし、
8928 絶対に、どうしても、deluxetableを使う必要があるならば、テキストエディタで別ファイルとして編集し、
8929 \begin_inset Flex MenuItem
8930 status collapsed
8931
8932 \begin_layout Plain Layout
8933 挿入\SpecialChar \menuseparator
8934 ファイル
8935 \begin_inset Formula $\text{\textipa{}}$
8936 \end_inset
8937
8938 \SpecialChar \menuseparator
8939 子文書
8940 \end_layout
8941
8942 \end_inset
8943
8944 を使用して、LyXファイルに読み込むことを推奨します。この実例は、
8945 \family typewriter
8946 aas_sample.lyx
8947 \family default
8948 ファイルをご参照ください。
8949 \end_layout
8950
8951 \begin_layout Subsection
8952 FAQとヒントと技とその他の考察
8953 \end_layout
8954
8955 \begin_layout Subsubsection
8956 LyXをAASTeXと協調させる
8957 \end_layout
8958
8959 \begin_layout Standard
8960 LyXに、新しいレイアウトと文書クラスを認識させるには若干コツが要ります。もしうまく行かなかったら、次のようにしてみてください。
8961 \end_layout
8962
8963 \begin_layout Enumerate
8964 LaTeXが、AASTeXを検出できることを確認してください。AASTeX頒布版に含まれる
8965 \family typewriter
8966 sample.tex
8967 \family default
8968 (あるいは
8969 \family typewriter
8970 table.tex
8971 \family default
8972 でも可)を、LaTeXやAASTeXとまったく関係のないディレクトリにコピーして、
8973 \family typewriter
8974 sample.tex
8975 \family default
8976 をLaTeXにかけてください。
8977 \end_layout
8978
8979 \begin_layout Enumerate
8980
8981 \family typewriter
8982 aastex.layout
8983 \family default
8984 が、LyXの
8985 \family typewriter
8986 layouts
8987 \family default
8988 フォルダにあることを確認してください。
8989 \end_layout
8990
8991 \begin_layout Enumerate
8992 LyX中から
8993 \family sans
8994 ツール\SpecialChar \menuseparator
8995 再初期設定
8996 \family default
8997 を再度実行し、LyXを再起動してください。
8998 \end_layout
8999
9000 \begin_layout Enumerate
9001 ひな型ではなく、通常の新規ファイルを開いてください。AASTeXが、
9002 \family sans
9003 文書\SpecialChar \menuseparator
9004 設定
9005 \family default
9006 のクラス一覧に表示されていますか?
9007 \end_layout
9008
9009 \begin_layout Standard
9010 既存のAASTeX文書を処理する際に、AASTeXレイアウトを見つけられないとか、「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が
9011 出るようであれば、正しい導入が行われていません。
9012 \end_layout
9013
9014 \begin_layout Subsubsection
9015 表を処理する際のLaTeXエラー
9016 \end_layout
9017
9018 \begin_layout Standard
9019 既定では、LyXは、表のキャプションやタイトルを中央揃えにしようと試みます。これはAASTeXと悪い相互干渉を発生させるようですので、キャプションやタイトルのど
9020 こかをクリックして、
9021 \family sans
9022 編集\SpecialChar \menuseparator
9023 段落設定
9024 \family default
9025 を選択し、
9026 \family sans
9027 配置
9028 \family default
9029
9030 \family sans
9031 両端揃え
9032 \family default
9033 に設定してください。私のところではこれで解決しました。
9034 \end_layout
9035
9036 \begin_layout Subsubsection
9037 参考文献
9038 \end_layout
9039
9040 \begin_layout Standard
9041 若干の注意があります。(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです。書誌情報を入力する際には、最後の著者と、著作年を入れる括弧の間にスペ
9042 ースを
9043 \emph on
9044 入れない
9045 \emph default
9046 ようにしてください。たとえば、
9047 \family typewriter
9048 Ressler(1992)
9049 \family default
9050 はいいですが、
9051 \family typewriter
9052 Ressler (1992)
9053 \family default
9054 ではだめです。(2)書誌情報の入力の仕方は、必ずしも自明ではありません。もっとも簡単な方法は、文書の最後に、最初の書誌情報をまず書き込み、それを
9055 \family sans
9056 参考文献
9057 \family default
9058 環境としてマークすることです。すると、入力したものの前に、小さな灰色のボックスが現れます。このボックスをクリックして、残りの情報を入力してください。新しい参考文
9059 献を追加するには、既存の参考文献の後ろでリターンを押します。すると、新しいボックスの付いた新規行が出てくるので、後は同様にしてください。
9060 \end_layout
9061
9062 \begin_layout Subsubsection
9063 EPSファイルの読み込み
9064 \end_layout
9065
9066 \begin_layout Standard
9067 AASTeXには、自前の図関連コマンド(たとえば
9068 \family typewriter
9069
9070 \backslash
9071 plotone
9072 \family default
9073 )がありますが、私は(既定のgraphicxを使った)LaTeXの標準図コマンドの方がずっと好きです。望めば、図フロートボックスに、TeXコードで
9074 \family typewriter
9075
9076 \backslash
9077 plotone
9078 \family default
9079 等のコマンドを挿入することはできますが、私には正しいレイアウトを得ることができた試しがありません。標準の画像コマンドを使えば、LyXは、
9080 \family typewriter
9081
9082 \backslash
9083 usepackage{graphics}
9084 \family default
9085 コマンドをLaTeXプリアンブルに挿入し、図をLaTeX2eの標準的な方法で取り扱って、文章の中にちりばめます。現在、ApJは、ちょうどこのようにして作成した図
9086 を受け入れていますが、AJはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません。
9087 \end_layout
9088
9089 \begin_layout Subsubsection
9090 可能だったが、実装しなかったもの
9091 \end_layout
9092
9093 \begin_layout Standard
9094 「素敵な」ものの中には、実装することも可能だったけれども、あえて実装しなかったものがあります。たとえば、紙の原稿ではダブルスペースであったとしても、LyXウィン
9095 ドウ中で、文章をダブルスペースにする意味はないと考えました。また、preprint様式とpreprint2様式を、独立したレイアウトにすることもしませんでした。
9096 いずれにしても、執筆時間のほとんどを、平の原稿モードで使うのがほとんどですから、これらの機能でディスクスペースを消費しないことにしました。
9097 \end_layout
9098
9099 \begin_layout Subsection
9100 最後に
9101 \end_layout
9102
9103 \begin_layout Standard
9104 これまでに進んできた道のりは、長い人も短い人もいることでしょう。私には、ApJとAJに発表した論文がありますが、その努力の98%はLyX上で為されました。残りの
9105 2%が、LaTeXでの後処理と若干の後片付けです。投稿の過程では何のトラブルもなく、これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう。ですか
9106 ら、がんばって発表してください!
9107 \end_layout
9108
9109 \begin_layout Section
9110 AMS LaTeX
9111 \end_layout
9112
9113 \begin_layout Standard
9114
9115 \noun on
9116 David Johnson
9117 \noun default
9118 文 
9119 \noun on
9120 Richard Heck
9121 \noun default
9122 改訂
9123 \begin_inset VSpace bigskip
9124 \end_inset
9125
9126 AMS LaTeXレイアウトは、American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです。レイアウ
9127 トは、特定の学術誌向けに仕立てられてはいませんが、簡単にそうすることができます。各学術誌毎の指示については、AMSの説明書をご参照ください(通常は、TeX出力中
9128 の一行を変更する必要があるだけです)。AMSの説明書は、ウェブWeb上の
9129 \begin_inset Flex URL
9130 status open
9131
9132 \begin_layout Plain Layout
9133
9134 http://www.ams.org
9135 \end_layout
9136
9137 \end_inset
9138
9139 か、FTPで
9140 \begin_inset Flex URL
9141 status open
9142
9143 \begin_layout Plain Layout
9144
9145 ftp://ftp.ams.org/pub/tex/amslatex/
9146 \end_layout
9147
9148 \end_inset
9149
9150 から入手することができます。これらのレイアウトは、数学的な文章を書くのであれば、どんなときでも適切かつ有用であるはずです。
9151 \end_layout
9152
9153 \begin_layout Standard
9154 基本となるAMS LaTeXレイアウトには、以下の二つがあります。
9155 \end_layout
9156
9157 \begin_layout Itemize
9158 amsart:標準のAMS article書式。
9159 \end_layout
9160
9161 \begin_layout Itemize
9162 amsbook:標準のAMS book(実際はモノグラフ)書式。
9163 \end_layout
9164
9165 \begin_layout Standard
9166 これらのレイアウトには、それ自身では、AMSクラスを使用するのに必要最低限のものしか含まれていません。特に、定理や補題などを設定するのに使用される「theore
9167 m」環境は、何一つ含まれていません。これらは、代わりに
9168 \begin_inset Flex Code
9169 status collapsed
9170
9171 \begin_layout Plain Layout
9172 定理(AMS)
9173 \end_layout
9174
9175 \end_inset
9176
9177 モジュールに収録されており、AMSクラスのいずれかを選択すると、このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ、別
9178 のものに変えたいときは取り除くこともできます)。少し使用頻度の低いものとしては、
9179 \begin_inset Flex Code
9180 status collapsed
9181
9182 \begin_layout Plain Layout
9183 定理(AMS拡張)
9184 \end_layout
9185
9186 \end_inset
9187
9188 モジュールがあり、これは手動で読み込む必要があります。
9189 \end_layout
9190
9191 \begin_layout Standard
9192 既定では、定理類は、文書を通して連番が振られますが、これは
9193 \begin_inset Flex Code
9194 status collapsed
9195
9196 \begin_layout Plain Layout
9197 定理(節毎連番)
9198 \end_layout
9199
9200 \end_inset
9201
9202 モジュールを読み込めば変更することができ、
9203 \begin_inset Flex Code
9204 status collapsed
9205
9206 \begin_layout Plain Layout
9207 book (AMS)
9208 \end_layout
9209
9210 \end_inset
9211
9212 を使用している場合には
9213 \begin_inset Flex Code
9214 status collapsed
9215
9216 \begin_layout Plain Layout
9217 定理(章毎連番)
9218 \end_layout
9219
9220 \end_inset
9221
9222 を用いても変更することができます。これらを用いると、出力は
9223 \begin_inset Formula $n.m$
9224 \end_inset
9225
9226 のようになり、最初の数字は節番号(または章番号)、次の数字はそれまで同節内(章内)に現れた出力の全数を表します。大半の環境は、連番なしでも用いることができます。
9227 連番なしのものは、環境名の後ろにアスタリスクを付けたもので表されます。連番なしの出力
9228 \emph on
9229 のみ
9230 \emph default
9231 が欲しい場合には、
9232 \begin_inset Flex Code
9233 status collapsed
9234
9235 \begin_layout Plain Layout
9236 定理(連番なし)
9237 \end_layout
9238
9239 \end_inset
9240
9241 モジュールを用います。
9242 \end_layout
9243
9244 \begin_layout Standard
9245 これらのモジュールは、AMSクラスで使用する
9246 \emph on
9247 必要はない
9248 \emph default
9249 ことに注意してください。
9250 \begin_inset Flex Code
9251 status collapsed
9252
9253 \begin_layout Plain Layout
9254 定理(AMS)
9255 \end_layout
9256
9257 \end_inset
9258
9259 モジュールや上述の他のモジュールは、他のクラス、たとえば
9260 \begin_inset Flex Code
9261 status collapsed
9262
9263 \begin_layout Plain Layout
9264 article
9265 \end_layout
9266
9267 \end_inset
9268
9269
9270 \begin_inset Flex Code
9271 status collapsed
9272
9273 \begin_layout Plain Layout
9274 report
9275 \end_layout
9276
9277 \end_inset
9278
9279
9280 \begin_inset Flex Code
9281 status collapsed
9282
9283 \begin_layout Plain Layout
9284 book (KOMA-script)
9285 \end_layout
9286
9287 \end_inset
9288
9289 などで問題なく使用することができます。
9290 \end_layout
9291
9292 \begin_layout Subsection
9293 これらのレイアウトが提供するもの
9294 \end_layout
9295
9296 \begin_layout Standard
9297 これらのレイアウトが提供している環境を列挙すると、長い一覧となります。AMS-LaTeXでは、実のところ、「theorem」環境の派生型を際限なく定義していくこ
9298 とが可能です。しかし、AMSは、LyXで利用可能になっている環境のみを使用することを推奨しています。
9299 \end_layout
9300
9301 \begin_layout Standard
9302 \begin_inset Flex Code
9303 status collapsed
9304
9305 \begin_layout Plain Layout
9306 article (AMS)
9307 \end_layout
9308
9309 \end_inset
9310
9311
9312 \begin_inset Flex Code
9313 status collapsed
9314
9315 \begin_layout Plain Layout
9316 book (AMS)
9317 \end_layout
9318
9319 \end_inset
9320
9321 には、------
9322 \begin_inset space ~
9323 \end_inset
9324
9325
9326 \begin_inset Flex Noun
9327 status collapsed
9328
9329 \begin_layout Plain Layout
9330
9331 \end_layout
9332
9333 \end_inset
9334
9335
9336 \begin_inset Flex Noun
9337 status collapsed
9338
9339 \begin_layout Plain Layout
9340 参考文献
9341 \end_layout
9342
9343 \end_inset
9344
9345
9346 \begin_inset Flex Noun
9347 status collapsed
9348
9349 \begin_layout Plain Layout
9350 タイトル
9351 \end_layout
9352
9353 \end_inset
9354
9355
9356 \begin_inset Flex Noun
9357 status collapsed
9358
9359 \begin_layout Plain Layout
9360 著者
9361 \end_layout
9362
9363 \end_inset
9364
9365
9366 \begin_inset Flex Noun
9367 status collapsed
9368
9369 \begin_layout Plain Layout
9370 日付
9371 \end_layout
9372
9373 \end_inset
9374
9375 のような標準環境の他に
9376 \begin_inset space ~
9377 \end_inset
9378
9379 ------
9380 \begin_inset space ~
9381 \end_inset
9382
9383 以下の環境があります。
9384 \end_layout
9385
9386 \begin_layout Description
9387 住所 これは著者の恒久的な住所です。
9388 \end_layout
9389
9390 \begin_layout Description
9391 現在の住所 住所と別に指定されているときには、著者の投稿時の仮初めの住所です。
9392 \end_layout
9393
9394 \begin_layout Description
9395 電子メール 著者の電子メールアドレス
9396 \end_layout
9397
9398 \begin_layout Description
9399 URL 著者のウェブアドレス。任意。
9400 \end_layout
9401
9402 \begin_layout Description
9403 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ。
9404 \end_layout
9405
9406 \begin_layout Description
9407 分野分類 
9408 \emph on
9409 Mathematical Reviews
9410 \emph default
9411 に説明が公表されているAMS Subject Classificationsの分類番号を指します。上述したAMSのウェブサイトでも、オンラインで見ることができま
9412 す。
9413 \end_layout
9414
9415 \begin_layout Description
9416 謝辞
9417 \end_layout
9418
9419 \begin_layout Description
9420 献呈
9421 \end_layout
9422
9423 \begin_layout Description
9424 翻訳者
9425 \end_layout
9426
9427 \begin_layout Standard
9428 以下の環境は、
9429 \begin_inset Flex Code
9430 status collapsed
9431
9432 \begin_layout Plain Layout
9433 定理
9434 \end_layout
9435
9436 \end_inset
9437
9438 モジュールと
9439 \begin_inset Flex Code
9440 status collapsed
9441
9442 \begin_layout Plain Layout
9443 定理(AMS)
9444 \end_layout
9445
9446 \end_inset
9447
9448 モジュールの両方で提供され、後者の場合には、星付き(連番なし)版と星なし(連番)版の両方が提供されます。
9449 \begin_inset Flex Code
9450 status collapsed
9451
9452 \begin_layout Plain Layout
9453 定理(連番なし)
9454 \end_layout
9455
9456 \end_inset
9457
9458 モジュールでは、同環境の星付き版だけが提供されます。
9459 \end_layout
9460
9461 \begin_layout Theorem
9462 これは、通常、得られた主要な結果を叙述するのに使用されます。
9463 \end_layout
9464
9465 \begin_layout Corollary*
9466 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います。これも主要な結果であることがあります。
9467 \end_layout
9468
9469 \begin_layout Lemma
9470 他の叙述を証明するために必要とされる、比較的小さな結果です。
9471 \end_layout
9472
9473 \begin_layout Proposition
9474 議論されている一般的な理論に(希望的には)何かを付け加えるような、主要ではない結果です。
9475 \end_layout
9476
9477 \begin_layout Conjecture
9478 正当化を与えずに述べられた叙述で、著者には証明法がわからないけれども、正しいと(少なくとも著者にとっては)思われるものです。
9479 \end_layout
9480
9481 \begin_layout Definition*
9482 これは自明でしょう。この環境のフォントは、前述の環境とは異なるフォントが使用されます。
9483 \end_layout
9484
9485 \begin_layout Problem
9486 これが何を指すかは必ずしも特定されていません。ご自分で解明してください。
9487 \end_layout
9488
9489 \begin_layout Exercise*
9490 この環境の説明を記述せよ。
9491 \end_layout
9492
9493 \begin_layout Note
9494 この環境もtheorem型、通常は重要性の低い所見に用いられます。
9495 \end_layout
9496
9497 \begin_layout Claim*
9498 より大きな結果の証明を与える途中で、しばしば用いられます。
9499 \end_layout
9500
9501 \begin_layout Case
9502 一般的に、これらはある条件の特定の場合を取り上げて、長い議論を区切るのに用いられます。
9503 \end_layout
9504
9505 \begin_layout Case
9506 ケースの連番の枠組みは、それ自身で独立していて、他の連番の叙述とは区別されます。
9507 \end_layout
9508
9509 \begin_layout Proof
9510 この環境の最後には、証了記号(通常は四角ですがスタイルによって変わります)が置かれます。この環境の中に別の環境を入れたい------たとえばケース環境など---
9511 ---場合で、証了記号は証明環境の終わりにのみ現れるようにしたい場合には、他の環境は証明環境の中に入れ子にしなくてはなりません。入れ子に関する情報については、
9512 \emph on
9513 ユーザーの手引き
9514 \emph default
9515
9516 \emph on
9517 環境を入れ子にする
9518 \emph default
9519 の節をご覧ください。
9520 \end_layout
9521
9522 \begin_layout Standard
9523 そして、以下は
9524 \begin_inset Flex Code
9525 status collapsed
9526
9527 \begin_layout Plain Layout
9528 定理(AMS拡張)
9529 \end_layout
9530
9531 \end_inset
9532
9533 で提供されるものです。
9534 \end_layout
9535
9536 \begin_layout Criterion*
9537 必要とされる条件です。
9538 \end_layout
9539
9540 \begin_layout Algorithm*
9541 使用する一般的手順です。
9542 \end_layout
9543
9544 \begin_layout Axiom*
9545 議論されている系内部で真と仮定される性質や命題です。
9546 \end_layout
9547
9548 \begin_layout Condition*
9549 議論の現在の文脈で仮定されている条件を述べるのに、よく用いられます。
9550 \end_layout
9551
9552 \begin_layout Note*
9553 注記と同様です。
9554 \end_layout
9555
9556 \begin_layout Notation*
9557 表記法の説明に用いられます。
9558 \end_layout
9559
9560 \begin_layout Summary
9561 本当に説明する必要がありますか?
9562 \end_layout
9563
9564 \begin_layout Acknowledgement*
9565 謝辞(acknowledgement)です。
9566 \end_layout
9567
9568 \begin_layout Conclusion*
9569 長い議論の終わりに時々用いられます。
9570 \end_layout
9571
9572 \begin_layout Fact
9573 命題と同様の用いられ方をしますが、だいたい長くないものに使われるようです。
9574 \end_layout
9575
9576 \begin_layout Standard
9577 さらに、AMSクラスは、AMS LaTeXパッケージとAMSフォントパッケージを自動的に提供します。これらの環境を使用するためには、お使いのシステム上で利用可能
9578 となっている必要があります。
9579 \end_layout
9580
9581 \begin_layout Section
9582 AGU各誌(
9583 \family sans
9584 aguplus)
9585 \end_layout
9586
9587 \begin_layout Standard
9588
9589 \noun on
9590 Martin Vermeer
9591 \noun default
9592
9593 \end_layout
9594
9595 \begin_layout Subsection
9596 概要
9597 \end_layout
9598
9599 \begin_layout Standard
9600 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです。AGU発行のクラスファイルおよび
9601 AGUplusの両方(これらは
9602 \begin_inset Flex URL
9603 status collapsed
9604
9605 \begin_layout Plain Layout
9606
9607 ftp://ftp.agu.org/journals/latex/journals
9608 \end_layout
9609
9610 \end_inset
9611
9612 にあります)が導入されていることが必要です。
9613 \end_layout
9614
9615 \begin_layout Subsection
9616 新しいスタイル
9617 \end_layout
9618
9619 \begin_layout Standard
9620
9621 \family sans
9622 段落
9623 \family default
9624 および
9625 \family sans
9626 段落*
9627 \family default
9628 は、定義し直されています。LyXの画面では、依然として
9629 \family sans
9630 段落
9631 \family default
9632
9633 \family sans
9634 段落*
9635 \family default
9636 と表示されますが、AGUクラスにおけるLaTeXの対応物は、
9637 \family sans
9638 Subsubsubsection
9639 \family default
9640
9641 \family sans
9642 Subsubsubsection*
9643 \family default
9644 です。
9645 \end_layout
9646
9647 \begin_layout Standard
9648 新しく定義されたスタイルには、
9649 \family sans
9650 左ヘッダ
9651 \family default
9652
9653 \family sans
9654 右ヘッダ
9655 \family default
9656
9657 \family sans
9658 受理日
9659 \family default
9660
9661 \family sans
9662 改訂
9663 \family default
9664
9665 \family sans
9666 採択日
9667 \family default
9668
9669 \family sans
9670 CCC
9671 \family default
9672
9673 \family sans
9674 論文ID
9675 \family default
9676
9677 \family sans
9678 著者住所
9679 \family default
9680
9681 \family sans
9682 廃棄用コメント
9683 \family default
9684 があります。これらは、ほとんど草稿用属性で、AGUクラス説明書で説明されています。
9685 \end_layout
9686
9687 \begin_layout Standard
9688 おそらく、これはまだ恐ろしく不完全です。
9689 \end_layout
9690
9691 \begin_layout Subsection
9692 新しいフロート
9693 \end_layout
9694
9695 \begin_layout Standard
9696
9697 \family sans
9698 平面表(Planotable
9699 \family default
9700 )と
9701 \family sans
9702 挿絵
9703 \family default
9704 (Plate)が新しいフロートです。また、
9705 \family sans
9706 表キャプション
9707 \family default
9708 も付け加えられています。
9709 \end_layout
9710
9711 \begin_layout Subsection
9712 サポートされている学術誌
9713 \end_layout
9714
9715 \begin_layout Itemize
9716
9717 \emph on
9718 Journal of Geophysical Research
9719 \emph default
9720
9721 \family typewriter
9722 jgrga.layout
9723 \family default
9724  --- Martin Vermeer
9725 \end_layout
9726
9727 \begin_layout Standard
9728 ここにあなたの作ったものを加えてください。難しくはありません。
9729 \family typewriter
9730 jgrga.layout
9731 \family default
9732 と 
9733 \family typewriter
9734 aguplus.inc
9735 \family default
9736 を用例として見てください。
9737 \end_layout
9738
9739 \begin_layout Subsection
9740 バグと注意すべきこと
9741 \end_layout
9742
9743 \begin_layout Standard
9744 新しいレイアウトを使うためには、新規文書の作成時に以下の手順を行う必要があります。
9745 \end_layout
9746
9747 \begin_layout Enumerate
9748
9749 \emph on
9750 babelを無効にしてください。
9751 \emph default
9752 これは、
9753 \family sans
9754 ツール\SpecialChar \menuseparator
9755 設定
9756 \family default
9757 メニュー項目で行うことができます(AGUの論文は常に英語ですよね。ですから他の言語は
9758 \emph on
9759 選ばないで下さい
9760 \emph default
9761 )。
9762 \end_layout
9763
9764 \begin_layout Enumerate
9765 使用文書の追加オプションフィールドに
9766 \family typewriter
9767 jgrga
9768 \family default
9769 と入力してください(すみません、これはバグです)。
9770 \end_layout
9771
9772 \begin_layout Enumerate
9773 BibTeX差込枠の2番目のフィールドに
9774 \family sans
9775 agu
9776 \family default
9777 と入力して、参考文献のスタイルに
9778 \family typewriter
9779 agu.bst
9780 \family default
9781 を使用していることを確認してください。標準スタイルはうまく動作しません。
9782 \end_layout
9783
9784 \begin_layout Section
9785 Broadway
9786 \end_layout
9787
9788 \begin_layout Standard
9789
9790 \noun on
9791 Garst Reese
9792 \noun default
9793
9794 \end_layout
9795
9796 \begin_layout Subsection
9797 はじめに
9798 \end_layout
9799
9800 \begin_layout Standard
9801 Broadwayは演劇を書くためのものです。書式はHollywoodよりも装飾的で、それほど標準化されていません。この書式はワークショップに向いているでしょう。
9802 \end_layout
9803
9804 \begin_layout Subsection
9805 特別な問題
9806 \end_layout
9807
9808 \begin_layout Standard
9809 Hollywoodと同様です。
9810 \end_layout
9811
9812 \begin_layout Subsection
9813 特別の機能
9814 \end_layout
9815
9816 \begin_layout Standard
9817
9818 \family sans
9819 話者
9820 \family default
9821 の名前をラベルとして挿入し、名前を挿入する際には、このラベルを相互参照してください。相互参照ダイアログには、登場人物の現在の配役が表示されます。
9822 \end_layout
9823
9824 \begin_layout Subsection
9825 用紙寸法と余白
9826 \end_layout
9827
9828 \begin_layout Standard
9829 USレター寸法で、余白は左1.6インチ、右0.75インチ、上0.5インチ、下0.75インチです。
9830 \end_layout
9831
9832 \begin_layout Subsection
9833 環境
9834 \end_layout
9835
9836 \begin_layout Standard
9837 以下の環境を使うことができます。右に記してあるキー割当ては、broadway.bindを使った場合のものです。
9838 \end_layout
9839
9840 \begin_layout Itemize
9841
9842 \family sans
9843 標準
9844 \begin_inset Newline newline
9845 \end_inset
9846
9847
9848 \family default
9849 これは使わなくていいはずですが、他の環境が当てはまらない場合のためにここに挙げておきます。
9850 \end_layout
9851
9852 \begin_layout Itemize
9853
9854 \family sans
9855 ト書き
9856 \begin_inset space \hfill{}
9857 \end_inset
9858
9859 M-z n
9860 \begin_inset Newline newline
9861 \end_inset
9862
9863
9864 \family default
9865 舞台設定と動作の説明に用います。最初に話者名をすべて大文字で書いておきます。
9866 \end_layout
9867
9868 \begin_layout Itemize
9869
9870 \family sans
9871
9872 \begin_inset space \hfill{}
9873 \end_inset
9874
9875 M-z a
9876 \begin_inset Newline newline
9877 \end_inset
9878
9879
9880 \family default
9881 自動的に連番が振られます。連番は、画面上ではアラビア数字ですが、出力ではローマ数字です。
9882 \end_layout
9883
9884 \begin_layout Itemize
9885
9886 \family sans
9887 幕*
9888 \begin_inset space \hfill{}
9889 \end_inset
9890
9891 M-z S at
9892 \begin_inset Newline newline
9893 \end_inset
9894
9895
9896 \family default
9897 幕の副題です。単に中央揃えの文になります。
9898 \end_layout
9899
9900 \begin_layout Itemize
9901
9902 \family sans
9903 場面
9904 \begin_inset space \hfill{}
9905 \end_inset
9906
9907 M-z S-S
9908 \begin_inset Newline newline
9909 \end_inset
9910
9911
9912 \family default
9913 自動的に連番は振られませんので、手動で番号を付けてください。これは私がどうすればいいか分からなかったためです。
9914 \end_layout
9915
9916 \begin_layout Itemize
9917
9918 \family sans
9919 幕開きに:
9920 \begin_inset space \hfill{}
9921 \end_inset
9922
9923 M-z S-R
9924 \begin_inset Newline newline
9925 \end_inset
9926
9927
9928 \family default
9929 ト書きの特殊な場合で、カーテンが上がるときの舞台設定と動作を説明します。
9930 \end_layout
9931
9932 \begin_layout Itemize
9933
9934 \family sans
9935 話者
9936 \begin_inset space \hfill{}
9937 \end_inset
9938
9939 M-z s
9940 \begin_inset Newline newline
9941 \end_inset
9942
9943
9944 \family default
9945 話者(役者)の配役です。すべて大文字で中央揃えに置かれます。
9946 \end_layout
9947
9948 \begin_layout Itemize
9949
9950 \family sans
9951 括弧付き
9952 \begin_inset space \hfill{}
9953 \end_inset
9954
9955 M-z p
9956 \begin_inset Newline newline
9957 \end_inset
9958
9959
9960 \family default
9961 話者への指示です。括弧は自動的に挿入されます。画面上には左括弧(のみが表示されますが、印字出力には両方の括弧が表示されます。この環境は、
9962 \family sans
9963 対話
9964 \family default
9965 の中だけで使用されます。 
9966 \end_layout
9967
9968 \begin_layout Itemize
9969
9970 \family sans
9971 対話
9972 \begin_inset space \hfill{}
9973 \end_inset
9974
9975 M-z d
9976 \begin_inset Newline newline
9977 \end_inset
9978
9979
9980 \family default
9981 話者の言う内容。
9982 \end_layout
9983
9984 \begin_layout Itemize
9985
9986 \family sans
9987 幕切れ
9988 \begin_inset space \hfill{}
9989 \end_inset
9990
9991 M-z S-C
9992 \begin_inset Newline newline
9993 \end_inset
9994
9995
9996 \family default
9997 幕が降ります。
9998 \end_layout
9999
10000 \begin_layout Itemize
10001
10002 \family sans
10003 タイトル
10004 \begin_inset space \hfill{}
10005 \end_inset
10006
10007 M-z S-T
10008 \end_layout
10009
10010 \begin_layout Itemize
10011
10012 \family sans
10013 著者
10014 \begin_inset space \hfill{}
10015 \end_inset
10016
10017 M-z S-A
10018 \end_layout
10019
10020 \begin_layout Itemize
10021
10022 \family sans
10023 右寄せ住所
10024 \begin_inset space \hfill{}
10025 \end_inset
10026
10027 M-z r
10028 \end_layout
10029
10030 \begin_layout Section
10031 Dinbrief
10032 \end_layout
10033
10034 \begin_layout Standard
10035 文書クラス
10036 \family sans
10037 dinbrief
10038 \family default
10039 は、ドイツの慣習に則った書簡の組版を行うのに用いられます。ひな型ファイルが
10040 \family typewriter
10041 .../lyx/share/templates
10042 \family default
10043 にあるので、それを土台として使用してください。
10044 \end_layout
10045
10046 \begin_layout Section
10047 EGS各誌
10048 \family sans
10049 (egs)
10050 \end_layout
10051
10052 \begin_layout Standard
10053
10054 \noun on
10055 Martin Vermeer
10056 \noun default
10057
10058 \end_layout
10059
10060 \begin_layout Subsection
10061 概要
10062 \end_layout
10063
10064 \begin_layout Standard
10065 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです。必要とされる
10066 \family typewriter
10067 egs.cls
10068 \family default
10069 は、EGSのウェブサイト
10070 \begin_inset Flex URL
10071 status collapsed
10072
10073 \begin_layout Plain Layout
10074
10075 http://www.copernicus.org/
10076 \end_layout
10077
10078 \end_inset
10079
10080 からダウンロードできます。
10081 \end_layout
10082
10083 \begin_layout Subsection
10084 新しいスタイル
10085 \end_layout
10086
10087 \begin_layout Standard
10088 新しいスタイルとして、
10089 \family sans
10090 右寄せ住所
10091 \family default
10092
10093 \family sans
10094 LaTeXタイトル
10095 \family default
10096
10097 \family sans
10098 所属
10099 \family default
10100
10101 \family sans
10102 学術誌名
10103 \family default
10104
10105 \family sans
10106 原稿番号
10107 \family default
10108
10109 \family sans
10110 筆頭著者
10111 \family default
10112
10113 \family sans
10114 受理日
10115 \family default
10116
10117 \family sans
10118 採択日
10119 \family default
10120
10121 \family sans
10122 オフセット
10123 \family default
10124 があります。現在のレイアウトファイルは、残念ながらほとんどモジュール化されておらず、さまざまな
10125 \family typewriter
10126 std*.inc
10127 \family default
10128 ファイルを読み込む形に変えた方が便利になると思われます。
10129 \end_layout
10130
10131 \begin_layout Section
10132 Elsevier各誌
10133 \end_layout
10134
10135 \begin_layout Standard
10136
10137 \lang english
10138 See the LyX template file 
10139 \family typewriter
10140 elsarticle.lyx
10141 \family default
10142 .
10143  It contains all infos you need.
10144 \end_layout
10145
10146 \begin_layout Section
10147 Foils(別名FoilTeX)
10148 \begin_inset CommandInset label
10149 LatexCommand label
10150 name "sec:foiltex"
10151
10152 \end_inset
10153
10154
10155 \end_layout
10156
10157 \begin_layout Standard
10158
10159 \noun on
10160 Allan Rae
10161 \noun default
10162
10163 \end_layout
10164
10165 \begin_layout Subsection
10166 はじめに
10167 \end_layout
10168
10169 \begin_layout Standard
10170 本節では、プレゼンテーション用のスライドを作るための、LyXの使用法を解説します。スライドを作ることのできる文書クラスには、slides・FoilTeX・sem
10171 inar・beamer・powerdotといったクラスがありますが、本節では、そのうちslidesの解説を行います。
10172 \end_layout
10173
10174 \begin_layout Standard
10175 誤解のないように、わかりやすく明確に、もう一度言っておきます。
10176 \end_layout
10177
10178 \begin_layout Standard
10179 \begin_inset VSpace bigskip
10180 \end_inset
10181
10182
10183 \end_layout
10184
10185 \begin_layout Standard
10186 \align center
10187
10188 \size large
10189 本節は「
10190 \family sans
10191 presentation (FoilT
10192 \size default
10193
10194 \begin_inset ERT
10195 status collapsed
10196
10197 \begin_layout Plain Layout
10198
10199 {}
10200 \end_layout
10201
10202 \end_inset
10203
10204
10205 \size large
10206 eX)
10207 \family default
10208 」クラス
10209 \emph on
10210 のみの
10211 \emph default
10212 解説を行います。
10213 \end_layout
10214
10215 \begin_layout Standard
10216 \begin_inset VSpace bigskip
10217 \end_inset
10218
10219
10220 \end_layout
10221
10222 \begin_layout Standard
10223
10224 \family sans
10225 transparencies (slides)
10226 \family default
10227 」の解説をお探しであれば、第
10228 \begin_inset CommandInset ref
10229 LatexCommand ref
10230 reference "sec:slitex"
10231
10232 \end_inset
10233
10234 節をご覧ください。お使いのコンピュータに
10235 \family sans
10236 foils
10237 \family default
10238 クラス(
10239 \family sans
10240 presentation (FoilT
10241 \begin_inset ERT
10242 status collapsed
10243
10244 \begin_layout Plain Layout
10245
10246 {}
10247 \end_layout
10248
10249 \end_inset
10250
10251 eX)
10252 \family default
10253 )が導入されていなければ、
10254 \family sans
10255 foils
10256 \family default
10257 ほど良くはありませんが、おそらく
10258 \family sans
10259 slides
10260 \family default
10261 クラスを使わざるをえないでしょう。
10262 \end_layout
10263
10264 \begin_layout Standard
10265
10266 \family sans
10267 foils
10268 \family default
10269 クラスは、LaTeX2eの一部として含まれているLaTeXクラスファイル
10270 \family sans
10271 foils.cls
10272 \family default
10273 の第2.1版とともに使われるように設計されています。
10274 \end_layout
10275
10276 \begin_layout Subsection
10277 最初の一歩
10278 \end_layout
10279
10280 \begin_layout Standard
10281 いうまでもなく、この文書クラスを使うには、
10282 \family sans
10283 文書\SpecialChar \menuseparator
10284 設定\SpecialChar \menuseparator
10285 文書クラス
10286 \family default
10287 メニューの
10288 \family sans
10289 文書クラス
10290 \family default
10291 ドロップダウンで「
10292 \family sans
10293 presentation (FoilT
10294 \begin_inset ERT
10295 status collapsed
10296
10297 \begin_layout Plain Layout
10298
10299 {}
10300 \end_layout
10301
10302 \end_inset
10303
10304 eX)
10305 \family default
10306 」を選択する必要があります。また、
10307 \family sans
10308 文書設定
10309 \family default
10310 ダイアログ中には、以下のように、このクラスに特有の設定がいくつかあることを知っておかなくてはなりません。
10311 \end_layout
10312
10313 \begin_layout Itemize
10314
10315 \family sans
10316 文書設定
10317 \family default
10318 ダイアログ中の、
10319 \family sans
10320 両面文書
10321 \family default
10322 オプションと
10323 \family sans
10324 二段組文書
10325 \family default
10326 オプションは変更しないでください。これらは 
10327 \family sans
10328 foils
10329 \family default
10330 クラスでは無視されます。
10331 \end_layout
10332
10333 \begin_layout Itemize
10334 既定のフォント寸法は20ptであり、17pt・25pt・30ptを選択することも可能です。
10335 \end_layout
10336
10337 \begin_layout Itemize
10338 既定のフォントは
10339 \family sans
10340 sans
10341 \family default
10342  
10343 \family sans
10344 serif
10345 \family default
10346 ですが、数式ではすべて、通常のローマン体が使用されます。
10347 \end_layout
10348
10349 \begin_layout Itemize
10350 FoilTeXは、35
10351 \begin_inset space \thinspace{}
10352 \end_inset
10353
10354 mmスライド用の特殊寸法の他、A4とレター大の用紙寸法をサポートします。A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません。
10355 \end_layout
10356
10357 \begin_layout Itemize
10358
10359 \family sans
10360 フロートの配置
10361 \family default
10362 の設定は無視されますので、わざわざ変更する必要はありません。フロートはすべて、本文中で定義された位置に表示されます。
10363 \end_layout
10364
10365 \begin_layout Itemize
10366 このクラスの
10367 \family sans
10368 ページレイアウト
10369 \family default
10370 の設定は、若干異なった挙動を示します。FoilTeXでは、ユーザ定義のロゴをはじめ、フッタとへッダに広範な設定ができます。詳細については第
10371 \begin_inset CommandInset ref
10372 LatexCommand ref
10373 reference "sec:foilfoot"
10374
10375 \end_inset
10376
10377 節をご覧ください。タイトルページは、文書中の他のページとは異なった取扱がなされ、ページ番号は
10378 \emph on
10379 つねに
10380 \emph default
10381 付けられず、(ロゴが定義されていれば)ロゴは、
10382 \emph on
10383 つねに
10384 \emph default
10385 ページ下部中央に表示されます。使用できるページ様式とその挙動は、以下の通りです。
10386 \end_layout
10387
10388 \begin_deeper
10389 \begin_layout Labeling
10390 \labelwidthstring MMMMMMM
10391
10392 \family sans
10393 \series bold
10394 empty
10395 \family default
10396 \series default
10397  最終出力には、ページ番号をはじめ、へッダ・フッタが出力されません(もちろん脚注は除きます)。
10398 \end_layout
10399
10400 \begin_layout Labeling
10401 \labelwidthstring MMMMMMM
10402
10403 \family sans
10404 \series bold
10405 plain
10406 \family default
10407 \series default
10408  最終出力には、ページ番号がページ下部の中央に出力されますが、他のへッダ・フッタは出力されません(脚注除く)。
10409 \end_layout
10410
10411 \begin_layout Labeling
10412 \labelwidthstring MMMMMMM
10413
10414 \series bold
10415 foilheadings
10416 \series default
10417  ページ番号が右下隅に出力されます。追記したへッダ・フッタも出力されます。これが既定値です。
10418 \end_layout
10419
10420 \begin_layout Labeling
10421 \labelwidthstring MMMMMMM
10422
10423 \series bold
10424 fancy
10425 \series default
10426  これは
10427 \family sans
10428 fancyheadings
10429 \family default
10430 パッケージを使えるようにします。ただし、FoilTeXパッケージの作者は、ページレイアウトが崩れる可能性があるので、これを使用することは勧めないと言及しています
10431
10432 \end_layout
10433
10434 \end_deeper
10435 \begin_layout Subsubsection
10436 任意設定クラスオプション
10437 \end_layout
10438
10439 \begin_layout Standard
10440 以下のオプションは
10441 \family sans
10442 文書設定
10443 \family default
10444 ダイアログの任意設定クラスオプションボックスで使うことができます。
10445 \end_layout
10446
10447 \begin_layout Labeling
10448 \labelwidthstring MMMMMMx
10449
10450 \series bold
10451 35mmSlide
10452 \series default
10453  これは、ページレイアウトを縦7.33インチ横11インチに設定します。これは35
10454 \begin_inset space \space{}
10455 \end_inset
10456
10457 mmスライドの縦横比にほぼ等しく、このメディアを作る作業が若干易しくなります。
10458 \end_layout
10459
10460 \begin_layout Labeling
10461 \labelwidthstring MMMMMMx
10462
10463 \series bold
10464 headrule
10465 \series default
10466  タイトルページを除くすべてのページのへッダの下に罫線を入れます。
10467 \end_layout
10468
10469 \begin_layout Labeling
10470 \labelwidthstring MMMMMMx
10471
10472 \series bold
10473 footrule
10474 \series default
10475  タイトルページを除くすべてのページのフッタの上に罫線を入れます。
10476 \end_layout
10477
10478 \begin_layout Labeling
10479 \labelwidthstring MMMMMMx
10480
10481 \series bold
10482 dvips
10483 \series default
10484  これは、新規
10485 \family sans
10486 foils
10487 \family default
10488 文書を作成する度に自動的に設定されます。このオプションは、横向きに設定されたページを回転させるのに、dvipsドライバを使うようFoilTeXに指示します。
10489 \end_layout
10490
10491 \begin_layout Labeling
10492 \labelwidthstring MMMMMMx
10493
10494 \series bold
10495 landscape
10496 \series default
10497  このオプションは、用紙寸法を横向きページ大に変更するだけで、回転は行いません。したがって、このオプションを使う場合は、各ページを回転させる外部プログラムを使用
10498 する、プリンタに用紙を横向きに給紙する必要があります。また、このオプションは、
10499 \family sans
10500 Foilhead
10501 \family default
10502 環境と
10503 \family sans
10504 Rotatefoilhead
10505 \family default
10506 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します)。
10507 \end_layout
10508
10509 \begin_layout Labeling
10510 \labelwidthstring MMMMMMx
10511
10512 \series bold
10513 leqno
10514 \series default
10515  数式番号を左側に付けます。
10516 \end_layout
10517
10518 \begin_layout Labeling
10519 \labelwidthstring MMMMMMx
10520
10521 \series bold
10522 fleqn
10523 \series default
10524  数式を左揃えにします。
10525 \end_layout
10526
10527 \begin_layout Subsection
10528 サポートされる環境
10529 \end_layout
10530
10531 \begin_layout Standard
10532 他のクラスで標準的にサポートされている環境は、
10533 \family sans
10534 foils
10535 \family default
10536 クラスでもサポートされています。それ以外に、FoilTeXが提供している環境と、LyXが付け加えた環境があります。以下の環境は、他のクラスと共通の環境です。
10537 \end_layout
10538
10539 \begin_layout Standard
10540 \begin_inset ERT
10541 status open
10542
10543 \begin_layout Plain Layout
10544
10545
10546 \backslash
10547 begin{multicols}{2}
10548 \end_layout
10549
10550 \end_inset
10551
10552
10553 \end_layout
10554
10555 \begin_layout Itemize
10556
10557 \family sans
10558 標準
10559 \end_layout
10560
10561 \begin_layout Itemize
10562
10563 \family sans
10564 箇条書き(記号)
10565 \end_layout
10566
10567 \begin_layout Itemize
10568
10569 \family sans
10570 箇条書き(連番)
10571 \end_layout
10572
10573 \begin_layout Itemize
10574
10575 \family sans
10576 箇条書き(記述)
10577 \end_layout
10578
10579 \begin_layout Itemize
10580
10581 \family sans
10582 箇条書き(リスト)
10583 \end_layout
10584
10585 \begin_layout Itemize
10586
10587 \family sans
10588 LyXコード
10589 \end_layout
10590
10591 \begin_layout Itemize
10592
10593 \family sans
10594 詩句
10595 \end_layout
10596
10597 \begin_layout Itemize
10598
10599 \family sans
10600 引用(字下げあり)
10601 \end_layout
10602
10603 \begin_layout Itemize
10604
10605 \family sans
10606 引用(字下げなし)
10607 \end_layout
10608
10609 \begin_layout Itemize
10610
10611 \family sans
10612 タイトル
10613 \end_layout
10614
10615 \begin_layout Itemize
10616
10617 \family sans
10618 著者
10619 \end_layout
10620
10621 \begin_layout Itemize
10622
10623 \family sans
10624 日付
10625 \end_layout
10626
10627 \begin_layout Itemize
10628
10629 \family sans
10630 概要
10631 \end_layout
10632
10633 \begin_layout Itemize
10634
10635 \family sans
10636 参考文献
10637 \end_layout
10638
10639 \begin_layout Itemize
10640
10641 \family sans
10642 住所
10643 \end_layout
10644
10645 \begin_layout Itemize
10646
10647 \family sans
10648 右寄せ住所
10649 \end_layout
10650
10651 \begin_layout Itemize
10652
10653 \family sans
10654 キャプション
10655 \end_layout
10656
10657 \begin_layout Itemize
10658
10659 \family sans
10660 コメント
10661 \end_layout
10662
10663 \begin_layout Standard
10664 \begin_inset ERT
10665 status open
10666
10667 \begin_layout Plain Layout
10668
10669
10670 \backslash
10671 end{multicols}
10672 \end_layout
10673
10674 \end_inset
10675
10676
10677 \end_layout
10678
10679 \begin_layout Standard
10680 つまり、節区切りを除けば、主な環境のすべてです。一枚のスライドは、基本的にタイトルと本文を備えた自己完結した節なので、
10681 \family sans
10682 Foil
10683 \family default
10684 TeXは新しいスライドを始める以下のようなコマンドを備えています。
10685 \end_layout
10686
10687 \begin_layout Itemize
10688
10689 \family sans
10690 スライドタイトル(Foilhead)
10691 \end_layout
10692
10693 \begin_layout Itemize
10694
10695 \family sans
10696 横置きスライドタイトル(Rotatefoilhead)
10697 \end_layout
10698
10699 \begin_layout Standard
10700 LyXは、以下のような、これらを若干修正した環境も用意しています。
10701 \end_layout
10702
10703 \begin_layout Itemize
10704
10705 \family sans
10706 スライドタイトル(小)(ShortFoilhead)
10707 \end_layout
10708
10709 \begin_layout Itemize
10710
10711 \family sans
10712 横置きスライドタイトル(小)(ShortRotatefoilhead)
10713 \end_layout
10714
10715 \begin_layout Standard
10716 これらの違いは次節で説明します。
10717 \end_layout
10718
10719 \begin_layout Standard
10720 スライドは、アイデアを説明したり、新しい定理を説明したりするのにしばしば使われるので、
10721 \family sans
10722 Foil
10723 \family default
10724 TeXはそれらを説明するのに便利な環境を幅広く用意しています。
10725 \end_layout
10726
10727 \begin_layout Standard
10728 \begin_inset ERT
10729 status open
10730
10731 \begin_layout Plain Layout
10732
10733
10734 \backslash
10735 begin{multicols}{2}
10736 \end_layout
10737
10738 \end_inset
10739
10740
10741 \end_layout
10742
10743 \begin_layout Itemize
10744
10745 \family sans
10746 定理
10747 \end_layout
10748
10749 \begin_layout Itemize
10750
10751 \family sans
10752 補題
10753 \end_layout
10754
10755 \begin_layout Itemize
10756
10757 \family sans
10758
10759 \end_layout
10760
10761 \begin_layout Itemize
10762
10763 \family sans
10764 命題
10765 \end_layout
10766
10767 \begin_layout Itemize
10768
10769 \family sans
10770 定義
10771 \end_layout
10772
10773 \begin_layout Itemize
10774
10775 \family sans
10776 証明
10777 \end_layout
10778
10779 \begin_layout Itemize
10780
10781 \family sans
10782 定理*
10783 \end_layout
10784
10785 \begin_layout Itemize
10786
10787 \family sans
10788 補題*
10789 \end_layout
10790
10791 \begin_layout Itemize
10792
10793 \family sans
10794 系*
10795 \end_layout
10796
10797 \begin_layout Itemize
10798
10799 \family sans
10800 命題*
10801 \end_layout
10802
10803 \begin_layout Itemize
10804
10805 \family sans
10806 定義*
10807 \end_layout
10808
10809 \begin_layout Standard
10810 \begin_inset ERT
10811 status open
10812
10813 \begin_layout Plain Layout
10814
10815
10816 \backslash
10817 end{multicols}
10818 \end_layout
10819
10820 \end_inset
10821
10822
10823 \end_layout
10824
10825 \begin_layout Standard
10826 星付き版は連番が振られず、星なし版は連番が振られます。他に、LyXで追加された以下の2つの箇条書き環境があります。
10827 \end_layout
10828
10829 \begin_layout Itemize
10830
10831 \family sans
10832 箇条書き(チック)
10833 \end_layout
10834
10835 \begin_layout Itemize
10836
10837 \family sans
10838 箇条書き(クロス)
10839 \end_layout
10840
10841 \begin_layout Standard
10842 FoilTeXには、強力なヘッダ機能とフッタ機能があり、これらはプリアンブルで設定するのが最良ですが、文章中のどこでも設定することができます。もし文書中でこれら
10843 の設定を変更したい場合には、スライドの一番上、foilheadの直後で行うのが良いでしょう。
10844 \end_layout
10845
10846 \begin_layout Standard
10847 この目的のためには、以下のコマンドスタイルがあります(
10848 \shape smallcaps
10849 Martin Vermeer)。
10850 \end_layout
10851
10852 \begin_layout Standard
10853 \begin_inset ERT
10854 status open
10855
10856 \begin_layout Plain Layout
10857
10858
10859 \backslash
10860 begin{multicols}{2}
10861 \end_layout
10862
10863 \end_inset
10864
10865
10866 \end_layout
10867
10868 \begin_layout Itemize
10869
10870 \family sans
10871 グラフィックスロゴ
10872 \end_layout
10873
10874 \begin_layout Itemize
10875
10876 \family sans
10877 配布制限
10878 \end_layout
10879
10880 \begin_layout Itemize
10881
10882 \family sans
10883 右フッタ
10884 \end_layout
10885
10886 \begin_layout Itemize
10887
10888 \family sans
10889 右ヘッダ
10890 \end_layout
10891
10892 \begin_layout Itemize
10893
10894 \family sans
10895 左ヘッダ
10896 \end_layout
10897
10898 \begin_deeper
10899 \begin_layout Standard
10900 \begin_inset space ~
10901 \end_inset
10902
10903
10904 \end_layout
10905
10906 \end_deeper
10907 \begin_layout Standard
10908 \begin_inset ERT
10909 status open
10910
10911 \begin_layout Plain Layout
10912
10913
10914 \backslash
10915 end{multicols}
10916 \end_layout
10917
10918 \end_inset
10919
10920
10921 \end_layout
10922
10923 \begin_layout Standard
10924 FoilTeXが提供しているコマンドで、LyXが直接サポートしていないコマンドもありますが、これらの説明と使い方については、第
10925 \begin_inset CommandInset ref
10926 LatexCommand ref
10927 reference "sec:unsuppfoils"
10928
10929 \end_inset
10930
10931 節で行います。
10932 \end_layout
10933
10934 \begin_layout Subsection
10935 スライドの組を作る
10936 \end_layout
10937
10938 \begin_layout Standard
10939 この節は、様々な環境を使ってスライドの組を作る方法を簡単に紹介します。スライド組の例をご覧になりたい場合は、LyXの
10940 \family typewriter
10941 examples
10942 \family default
10943 フォルダにある
10944 \family typewriter
10945 Foils.lyx
10946 \family default
10947 ファイルをご覧ください。
10948 \end_layout
10949
10950 \begin_layout Subsubsection
10951 タイトルページを作る
10952 \end_layout
10953
10954 \begin_layout Standard
10955
10956 \family sans
10957 タイトル
10958 \family default
10959
10960 \family sans
10961 著者
10962 \family default
10963
10964 \family sans
10965 日付
10966 \family default
10967
10968 \family sans
10969 概要
10970 \family default
10971 環境のある他のクラスとは異なり、
10972 \family sans
10973 foils
10974 \family default
10975 は独立したページにタイトルを作成します。
10976 \family sans
10977 日付
10978 \family default
10979 環境を使用しなかった場合には、LaTeXは(出力を生成し直したときにはいつも)その時点の日付を挿入します。
10980 \end_layout
10981
10982 \begin_layout Subsubsection
10983 新しいスライドを開始する
10984 \end_layout
10985
10986 \begin_layout Standard
10987 前述のように、新しいスライドを開始するには、4つの方法があります。縦向きのスライドを開始するには、
10988 \family sans
10989 スライドタイトル(Foilhead)
10990 \family default
10991
10992 \family sans
10993 スライドタイトル(小)(ShortFoilhead)
10994 \family default
10995 を使用します。両環境の違いは、スライドタイトル(foilhead)とスライド本文の間の余白の違いです。
10996 \end_layout
10997
10998 \begin_layout Standard
10999 横向きのスライドは、
11000 \family sans
11001 横向きスライドタイトル(Rotatefoilhead)
11002 \family default
11003 か横向きスライドタイトル(小)(
11004 \family sans
11005 ShortRotatefoilhead)
11006 \family default
11007 環境を使用して生成します。ここでも両環境の違いは、タイトルと本文の間の余白のみです。どちらの場合も、(小)と記された版は、タイトルと本文の間の余白が、0.5インチ
11008 (約1.27cm)小さくなります。
11009 \end_layout
11010
11011 \begin_layout Standard
11012 横向きのスライドをサポートする際、一つ問題となるのは、スライドを回転させようと思うと、PostScript出力を生成するのに
11013 \family typewriter
11014 dvips
11015 \family default
11016 ドライバを使用することを要求してしまうことです。もしスライドをプリンタに横に給紙することができれば、
11017 \family typewriter
11018 dvips
11019 \family default
11020 ドライバを持っていなくても、横向きのスライドをつくることができます ;-)
11021 \end_layout
11022
11023 \begin_layout Subsubsection
11024 定理・補題・証明など
11025 \end_layout
11026
11027 \begin_layout Standard
11028 LyX中の小さなバグによって、これらの環境の同じ型をお互いに直接続けて置くことはできません。これらは何かによって分離されなくてはなりません。仮に二つ続けて置いて
11029 も、2つの環境をマージしたかのように、前の環境が延長されるだけです。この問題を回避するにはどうすればよいのでしょうか。最も簡単な方法は、二つの環境の間に何か文章
11030 を置くか、あるいは二つの間に「
11031 \family typewriter
11032 %
11033 \family default
11034 」だけから成るLaTeX環境を置くことです。これによって、LyXは2つの別々の環境を生成するように強制され、正しいLaTeX出力を得ることができます。LyX頒布
11035 版に含まれる用例ファイルに例があります。この問題は、二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください。
11036 \end_layout
11037
11038 \begin_layout Subsubsection
11039 箇条書き
11040 \end_layout
11041
11042 \begin_layout Standard
11043 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて、二つの新しい様式を使用することができます。ここでは、その新しい様式のみを説明することにします。
11044 他の箇条書き環境について詳しく知りたい場合には、
11045 \emph on
11046 ユーザーの手引き
11047 \emph default
11048 をご覧ください。記号による箇条書きを使用したい場合には、上記第
11049 \begin_inset CommandInset ref
11050 LatexCommand ref
11051 reference "sec:ブリット"
11052
11053 \end_inset
11054
11055 節の
11056 \family sans
11057 箇条書き(記号)ブリットの指定
11058 \family default
11059 の節も、読まれることが望ましいでしょう。
11060 \end_layout
11061
11062 \begin_layout Standard
11063
11064 \family sans
11065 箇条書き(チック)
11066 \family default
11067
11068 \family sans
11069 箇条書き(クロス)
11070 \family default
11071 の二つの新しい様式は、チェック印や×印を箇条書きのラベルに使用する専用の環境を提供することで、予定一覧や正誤一覧を作りやすくするように設計されたものです。これら
11072 の箇条書きは、
11073 \family sans
11074 箇条書き(記号)
11075 \family default
11076 の派生型を専用に用意したものに過ぎません。ただし、これらは、
11077 \family typewriter
11078 psnfss
11079 \family default
11080 パッケージが導入済であることを要求します。
11081 \end_layout
11082
11083 \begin_layout Subsubsection
11084 図と表
11085 \end_layout
11086
11087 \begin_layout Standard
11088 FoilTeXでは、図表フロートは、本文中の挿入箇所にこれらが正確に表示されるように再定義されており、ページの上部やユーザー指定場所に押しのけたりはしないように
11089 なっています。たとえフロート配置の設定に変更を加えたとしても、単に無視されます。
11090 \end_layout
11091
11092 \begin_layout Subsubsection
11093 ページヘッダおよびページフッタ
11094 \begin_inset CommandInset label
11095 LatexCommand label
11096 name "sec:foilfoot"
11097
11098 \end_inset
11099
11100
11101 \end_layout
11102
11103 \begin_layout Standard
11104
11105 \family sans
11106 グラフィックスロゴ
11107 \family default
11108
11109 \family sans
11110 配布制限
11111 \family default
11112 の二つは、左フッタ文を制御するものです。前者は、グラフィックスのロゴをスライドに入れるためのもので、既定値は「-Typeset by 
11113 \family sans
11114 Foil
11115 \family default
11116 TeX-」となっています。後者は、「機密事項」などのように、聴衆に秘密区分を提示することを意図しています。既定値では、何も設定されていません。
11117 \end_layout
11118
11119 \begin_layout Standard
11120 スライドの残り三隅には、
11121 \family sans
11122 右フッタ
11123 \family default
11124 (既定ではページ番号)・
11125 \family sans
11126 右ヘッダ
11127 \family default
11128 (右上)・
11129 \family sans
11130 左ヘッダ
11131 \family default
11132 (左上)を使って文字を入れることができます。
11133 \end_layout
11134
11135 \begin_layout Subsection
11136 サポートされない 
11137 \family sans
11138 Foil
11139 \family default
11140 TeX機能
11141 \begin_inset CommandInset label
11142 LatexCommand label
11143 name "sec:unsuppfoils"
11144
11145 \end_inset
11146
11147
11148 \end_layout
11149
11150 \begin_layout Standard
11151 以下で言及されているコマンドは、
11152 \family sans
11153 LaTeX
11154 \family default
11155 環境内で設定されるか、他の環境中の
11156 \family sans
11157 TeXコード
11158 \family default
11159 として設定される必要があります。
11160 \end_layout
11161
11162 \begin_layout Subsubsection
11163 長さ
11164 \end_layout
11165
11166 \begin_layout Standard
11167 長さは、すべて
11168 \family typewriter
11169
11170 \backslash
11171 setlength{
11172 \family default
11173 \emph on
11174 長さ名
11175 \family typewriter
11176 \emph default
11177 }{
11178 \family default
11179 \emph on
11180 新規長さ
11181 \family typewriter
11182 \emph default
11183 }
11184 \family default
11185 コマンドで調節されます。ここで
11186 \emph on
11187 長さ名
11188 \emph default
11189 は、変更したい長さに付けられている名前で置き換え、
11190 \emph on
11191 新規長さ
11192 \emph default
11193 は、その長さの値で置き換えます。長さはすべて、インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か、
11194 \family typewriter
11195
11196 \backslash
11197 textwidth
11198 \family default
11199 のように文書比あるいはフォント基準の長さで指定する必要があります。
11200 \end_layout
11201
11202 \begin_layout Standard
11203
11204 \family typewriter
11205
11206 \backslash
11207 foilheadskip
11208 \family default
11209 で指定される長さを調節することによって、スライドタイトルとスライド本文の間の余白を変更することができます。たとえば、スライドタイトルをすべて0.5
11210 \begin_inset space \space{}
11211 \end_inset
11212
11213 inだけスライド本文に近づけるには、プリアンブルに
11214 \family typewriter
11215
11216 \backslash
11217 setlength{
11218 \backslash
11219 foilheadskip}{-0.5in}
11220 \family default
11221 と書き込みます。
11222 \end_layout
11223
11224 \begin_layout Standard
11225 フロート周囲の余白は、以下の長さを設定することで調整することができます。
11226 \end_layout
11227
11228 \begin_layout Labeling
11229 \labelwidthstring MMMMMMMMMMM
11230
11231 \family typewriter
11232
11233 \backslash
11234 abovefloatskip
11235 \family default
11236  本文とフロート上辺との間隔
11237 \end_layout
11238
11239 \begin_layout Labeling
11240 \labelwidthstring MMMMMMMMMMM
11241
11242 \family typewriter
11243
11244 \backslash
11245 abovecaptionskip
11246 \family default
11247  フロートとキャプションとの間隔
11248 \end_layout
11249
11250 \begin_layout Labeling
11251 \labelwidthstring MMMMMMMMMMM
11252
11253 \family typewriter
11254
11255 \backslash
11256 belowcaptionskip
11257 \family default
11258  キャプションとそれに続く本文との間隔
11259 \end_layout
11260
11261 \begin_layout Labeling
11262 \labelwidthstring MMMMMMMMMMM
11263
11264 \family typewriter
11265
11266 \backslash
11267 captionwidth
11268 \family default
11269  この長さを調整することでキャプションを、周囲の本文より短くすることができます。
11270 \family typewriter
11271
11272 \backslash
11273 textwidth
11274 \family default
11275 に対する相対的な長さで調整するのが最も良いでしょう。
11276 \end_layout
11277
11278 \begin_layout Standard
11279 以下のようなタイトルページ関連の長さもあり、タイトルが長い場合や、著者が複数いる場合に使うと便利かもしれません。
11280 \end_layout
11281
11282 \begin_layout Labeling
11283 \labelwidthstring MMMMMMMMMMM
11284
11285 \family typewriter
11286
11287 \backslash
11288 abovetitleskip
11289 \family default
11290  へッダとタイトルとの間隔
11291 \end_layout
11292
11293 \begin_layout Labeling
11294 \labelwidthstring MMMMMMMMMMM
11295
11296 \family typewriter
11297
11298 \backslash
11299 titleauthorskip
11300 \family default
11301  
11302 \family sans
11303 タイトル
11304 \family default
11305 環境と
11306 \family sans
11307 著者
11308 \family default
11309 環境との間隔
11310 \end_layout
11311
11312 \begin_layout Labeling
11313 \labelwidthstring MMMMMMMMMMM
11314
11315 \family typewriter
11316
11317 \backslash
11318 authorauthorskip
11319 \family default
11320  著者が複数いる場合の
11321 \family sans
11322 著者
11323 \family default
11324 行の間隔
11325 \end_layout
11326
11327 \begin_layout Labeling
11328 \labelwidthstring MMMMMMMMMMM
11329
11330 \family typewriter
11331
11332 \backslash
11333 authordateskip
11334 \family default
11335  
11336 \family sans
11337 著者
11338 \family default
11339
11340 \family sans
11341 日付
11342 \family default
11343 との間隔
11344 \end_layout
11345
11346 \begin_layout Labeling
11347 \labelwidthstring MMMMMMMMMMM
11348
11349 \family typewriter
11350
11351 \backslash
11352 dateabstractskip
11353 \family default
11354  
11355 \family sans
11356 日付
11357 \family default
11358
11359 \family sans
11360 概要
11361 \family default
11362 との間隔
11363 \end_layout
11364
11365 \begin_layout Standard
11366 最後に紹介する長さ関連コマンドは、箇条書き環境すべてに使用できるものです。
11367 \family typewriter
11368
11369 \backslash
11370 zerolistvertdimens
11371 \family default
11372 を箇条書き環境の内側に置くと、項目間の垂直余白がすべて取り除かれます。これは長さではなくコマンドなので、上述のもののように
11373 \family typewriter
11374
11375 \backslash
11376 setlength
11377 \family default
11378 を使う必要がないことに注意してください。
11379 \end_layout
11380
11381 \begin_layout Subsubsection
11382 へッダとフッタ
11383 \end_layout
11384
11385 \begin_layout Standard
11386
11387 \family typewriter
11388
11389 \backslash
11390 LogoOn
11391 \family default
11392 および
11393 \family typewriter
11394
11395 \backslash
11396 LogoOff
11397 \family default
11398 は、
11399 \family typewriter
11400 MyLogo
11401 \family default
11402 で定義したロゴを特定のページに入れるかどうかを制御します。
11403 \family typewriter
11404
11405 \backslash
11406 LogoOff
11407 \family default
11408 をプリアンブルに入れると、全スライドからロゴが取り除かれます。特定のスライドにのみロゴを付けたくない場合は、当該ページのスライドタイトルの直後に直接
11409 \family typewriter
11410
11411 \backslash
11412 LogoOff
11413 \family default
11414 を置き、次のスライドタイトルの直後に直接
11415 \family typewriter
11416
11417 \backslash
11418 LogoOn
11419 \family default
11420 を置いてください。
11421 \end_layout
11422
11423 \begin_layout Standard
11424
11425 \family sans
11426 文書レイアウト
11427 \family default
11428 ダイアログで
11429 \family sans
11430 fancy
11431 \family default
11432 ページ様式を使用することを選択した場合には、横置きページのヘッダとフッタが回転後も正しく配置されるように、プリアンブルに
11433 \family typewriter
11434
11435 \backslash
11436 let
11437 \backslash
11438 headwidth
11439 \backslash
11440 textwidth
11441 \family default
11442 を加える必要があるでしょう。これは、
11443 \family sans
11444 fancyheadings
11445 \family default
11446 パッケージが提供するページレイアウトと
11447 \family sans
11448 foils
11449 \family default
11450 クラスの提供するページレイアウトの間に衝突が発生するためです。
11451 \end_layout
11452
11453 \begin_layout Section
11454 Hollywood(Hollywoodスペック・スクリプト)
11455 \end_layout
11456
11457 \begin_layout Standard
11458
11459 \noun on
11460 Garst Reese
11461 \noun default
11462
11463 \end_layout
11464
11465 \begin_layout Subsection
11466 はじめに
11467 \end_layout
11468
11469 \begin_layout Standard
11470 脚本を正しい書式で書くことは、ハリウッドにおける「通過儀礼」です。ハリウッドの脚本は、読み手が内容に集中できるようにし、俳優にとっても読みやすくかつ親しみやすい
11471 ように設計されています。脚本の1ページは、映画の1分でなければならず、銀幕上で見えたり聞こえたりしないものは、脚本に混入してはなりません。また、全体を通してCo
11472 urier 12
11473 \begin_inset space \space{}
11474 \end_inset
11475
11476 ptフォントを使わなければならず、イタリック体は用いてはいけません。
11477 \end_layout
11478
11479 \begin_layout Subsection
11480 特別な問題
11481 \end_layout
11482
11483 \begin_layout Standard
11484 話者の行は、文の途中で改行することは
11485 \emph on
11486 決して
11487 \emph default
11488 あってはなりません。もし話者行の塊が、次頁にまたがる場合には、
11489 \family sans
11490 話者
11491 \family default
11492 名を再度書き、その後に(Cont'd)と加えます。
11493 \end_layout
11494
11495 \begin_layout Subsection
11496 特別な機能
11497 \end_layout
11498
11499 \begin_layout Standard
11500
11501 \family sans
11502 話者
11503 \family default
11504 名はラベルとして挿入し、話者名を挿入するには、そのラベルを相互参照してください。相互参照ダイアログは、登場人物の現在の配役を表示することになります。これは、ト書
11505 きに話者名を挿入するのにも使用することができます。
11506 \end_layout
11507
11508 \begin_layout Subsection
11509 用紙寸法と余白
11510 \end_layout
11511
11512 \begin_layout Standard
11513 USレター寸法で、左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです。
11514 \end_layout
11515
11516 \begin_layout Subsection
11517 環境
11518 \end_layout
11519
11520 \begin_layout Standard
11521 以下の環境が利用可能です。右に示されているキー割当てを使用するには、hollywood.bindを使用してください。
11522 \end_layout
11523
11524 \begin_layout Itemize
11525
11526 \family sans
11527 一般
11528 \begin_inset Newline newline
11529 \end_inset
11530
11531
11532 \family default
11533 他の環境が動作しない場合に使用しますが、これを使うことは避けるようにしてください。
11534 \end_layout
11535
11536 \begin_layout Itemize
11537 フェイドイン:
11538 \begin_inset space \hfill{}
11539 \end_inset
11540
11541
11542 \family sans
11543 M-z S-I
11544 \family default
11545
11546 \begin_inset Newline newline
11547 \end_inset
11548
11549 通常、この後には「Sallyは目を覚ますと」のように続きます。
11550 \end_layout
11551
11552 \begin_layout Itemize
11553
11554 \family sans
11555 屋内:
11556 \begin_inset space \hfill{}
11557 \end_inset
11558
11559 M-z i
11560 \begin_inset Newline newline
11561 \end_inset
11562
11563
11564 \family default
11565 新しい屋内(INTERIOR)カメラの設定を指定します。この後には、かならずDAYやNIGHTなどを指定して、必要な照明を定義します。この行はすべて大文字で書き
11566 ます。
11567 \end_layout
11568
11569 \begin_layout Itemize
11570
11571 \family sans
11572 屋外:
11573 \begin_inset space \hfill{}
11574 \end_inset
11575
11576 M-z e
11577 \begin_inset Newline newline
11578 \end_inset
11579
11580
11581 \family default
11582 屋外(EXTERIOR)カメラの設定を指定します。この行はすべて大文字で書きます。
11583 \end_layout
11584
11585 \begin_layout Itemize
11586
11587 \family sans
11588 話者
11589 \begin_inset space \hfill{}
11590 \end_inset
11591
11592 M-z s
11593 \begin_inset Newline newline
11594 \end_inset
11595
11596
11597 \family default
11598 話す役。
11599 \end_layout
11600
11601 \begin_layout Itemize
11602
11603 \family sans
11604 括弧付き
11605 \begin_inset space \hfill{}
11606 \end_inset
11607
11608 M-z p
11609 \begin_inset Newline newline
11610 \end_inset
11611
11612 話者
11613 \family default
11614 への指示。自動的に括弧()が挿入されますが、LyX上で表示されるのは、左括弧( のみです。印刷出力には右括弧も表示されます。
11615 \end_layout
11616
11617 \begin_layout Itemize
11618
11619 \family sans
11620 対話
11621 \begin_inset space \hfill{}
11622 \end_inset
11623
11624 M-z d
11625 \begin_inset Newline newline
11626 \end_inset
11627
11628 話者
11629 \family default
11630 が話す内容。
11631 \end_layout
11632
11633 \begin_layout Itemize
11634
11635 \family sans
11636 画面遷移
11637 \begin_inset space \hfill{}
11638 \end_inset
11639
11640 M-z t
11641 \begin_inset Newline newline
11642 \end_inset
11643
11644
11645 \family default
11646 カメラの動きの指示。例:CUT TO:。
11647 \end_layout
11648
11649 \begin_layout Itemize
11650
11651 \family sans
11652 フェイドアウト:
11653 \begin_inset space \hfill{}
11654 \end_inset
11655
11656 M-z S-I
11657 \end_layout
11658
11659 \begin_layout Itemize
11660
11661 \family sans
11662 著者
11663 \begin_inset space \hfill{}
11664 \end_inset
11665
11666 M-z S-A
11667 \end_layout
11668
11669 \begin_layout Itemize
11670
11671 \family sans
11672 タイトル
11673 \begin_inset space \hfill{}
11674 \end_inset
11675
11676 M-z S-T
11677 \end_layout
11678
11679 \begin_layout Itemize
11680
11681 \family sans
11682 右寄せ住所
11683 \begin_inset space \hfill{}
11684 \end_inset
11685
11686 M-z r
11687 \end_layout
11688
11689 \begin_layout Subsection
11690 脚本で使われる特別な用語
11691 \end_layout
11692
11693 \begin_layout Itemize
11694 (O.S) — off screen
11695 \end_layout
11696
11697 \begin_layout Itemize
11698 (V.0) — voice over
11699 \end_layout
11700
11701 \begin_layout Itemize
11702 b.g.
11703  — background
11704 \end_layout
11705
11706 \begin_layout Itemize
11707 C.U.
11708  — close-up
11709 \end_layout
11710
11711 \begin_layout Itemize
11712 PAN — camera movement
11713 \end_layout
11714
11715 \begin_layout Itemize
11716 INSERT — cut to close-up of
11717 \end_layout
11718
11719 \begin_layout Section
11720 ijmpcおよびijmpd
11721 \end_layout
11722
11723 \begin_layout Standard
11724
11725 \noun on
11726 Panayotis Papasotiriou
11727 \noun default
11728
11729 \end_layout
11730
11731 \begin_layout Subsection
11732 概観
11733 \end_layout
11734
11735 \begin_layout Standard
11736 ijpmcパッケージは、
11737 \emph on
11738 International Journal of Modern Physics C
11739 \emph default
11740 への電子投稿を可能にするためのマクロ集です。同様に、ijpmdパッケージは、
11741 \emph on
11742 International Journal of Modern Physics D
11743 \emph default
11744 へ投稿する現行を作成するためのものです。両誌ともWorld Scientific社の刊行です。対応する文書クラス名は、それぞれ
11745 \family typewriter
11746 ws-ijmpc.cls
11747 \family default
11748 および
11749 \family typewriter
11750 ws-ijmpd.cls
11751 \family default
11752 です。これらのファイルは、著者のための指針とともに、
11753 \begin_inset Flex URL
11754 status collapsed
11755
11756 \begin_layout Plain Layout
11757
11758 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
11759 \end_layout
11760
11761 \end_inset
11762
11763 および
11764 \begin_inset Flex URL
11765 status collapsed
11766
11767 \begin_layout Plain Layout
11768
11769 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
11770 \end_layout
11771
11772 \end_inset
11773
11774 の各サイトからダウンロードすることができます。両パッケージは、標準「article」パッケージの修正版であり、両者は(一部を除き)ほぼ同一です。LyXは、これら
11775 のパッケージのほとんどの機能をサポートしています。私は両誌へ投稿する論文をLyXで書き上げましたが、何らの問題も生じませんでした。
11776 \end_layout
11777
11778 \begin_layout Subsection
11779 論文を書く
11780 \end_layout
11781
11782 \begin_layout Standard
11783 通常と同じく、論文を書く上で最も易しい方法は、ひな型を使って書き始めることです。
11784 \family sans
11785 ファイル\SpecialChar \menuseparator
11786 新規(ひな形使用)
11787 \family default
11788 をクリックして、ひな型
11789 \family typewriter
11790 ijmpc.lyx
11791 \family default
11792 もしくは
11793 \family typewriter
11794 ijmpd.lyx
11795 \family default
11796 を選択してください。すると、原稿で良く使用されるフィールドを含んだ、ほぼ空の文書ができますので、既存のフィールド(鍵括弧
11797 \family typewriter
11798 <>
11799 \family default
11800 を含む)を正しい情報で置き換えてください。以下の各点にご留意ください。
11801 \end_layout
11802
11803 \begin_layout Enumerate
11804 両パッケージでは、フォント寸法や文書のページ様式を変更することが禁じられているので、LyX中でこれらを変更することはできません。
11805 \end_layout
11806
11807 \begin_layout Enumerate
11808 文書言語は変更してはいけません。論文をプレビューする前に、babelパッケージが使用されていないことを確認してください。これは、
11809 \family sans
11810 ツール\SpecialChar \menuseparator
11811 設定
11812 \family default
11813 をクリックして、
11814 \family sans
11815 言語オプション
11816 \family default
11817 タブを選択し、言語設定で
11818 \family sans
11819 Babelを使う
11820 \family default
11821 チェックボックスを無効にしてから、
11822 \family sans
11823 適用
11824 \family default
11825 をクリックすれば、設定することができます(この変更を固定するなら
11826 \family sans
11827 保存
11828 \family default
11829 を押してください)。
11830 \end_layout
11831
11832 \begin_layout Enumerate
11833 キーワードを定義するに際しては、「キーワード」様式を用いなくてはなりません。
11834 \end_layout
11835
11836 \begin_layout Enumerate
11837 ijmpcパッケージが提供する「分類コード」様式は、PACS番号のような分類コードを定義するのに使用することができます。この機能は、ijmpdパッケージではサポ
11838 ートされていませんので、ご注意ください。
11839 \end_layout
11840
11841 \begin_layout Enumerate
11842 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
11843 きます。これらの使い方は、大凡自明でしょう。LyXは、これらの環境をすべてサポートし、それぞれについて、適切なラベルと文字様式および連番スキームを使用します。
11844 \end_layout
11845
11846 \begin_layout Enumerate
11847 両パッケージは、単純な引用を使用しますので、natbibパッケージは使用してはなりません。LyX中では、引用参照は通常通り表示されますが、出力では上付き文字とし
11848 て表示されます。引用に通常の本文を使用したい場合には、「See Ref.
11849 \begin_inset space \space{}
11850 \end_inset
11851
11852
11853 \family typewriter
11854
11855 \backslash
11856 refcite{キー}
11857 \family default
11858 」のように
11859 \family typewriter
11860 refcite
11861 \family default
11862 コマンドを使用してください。
11863 \end_layout
11864
11865 \begin_layout Enumerate
11866 両パッケージには、「謝辞」環境がありません。謝辞を置くには、「節*」環境を使用してください。
11867 \end_layout
11868
11869 \begin_layout Enumerate
11870 付録は、論文中、謝辞の
11871 \emph on
11872
11873 \emph default
11874 かつ参考文献の
11875 \emph on
11876
11877 \emph default
11878 であれば、入れることができます。LyX上では、「付録領域」という特別な環境があり、これを使って付録の開始位置を指定することができます。この環境は空のままにしてお
11879 かなくてはなりません。この環境は、LaTeXコマンドを書き出すだけで、実際に出力は行いません。LyX上では、青字で「Appendix」という単語が表示され、この
11880 箇所より後の節はすべて付録であることを明示します。「付録領域」は、最初の付録の前に
11881 \emph on
11882 なくてはならない
11883 \emph default
11884 ことに注意してください。さもなくば、出力中において、付録はすべて通常の節として連番が振られてしまいます。
11885 \end_layout
11886
11887 \begin_layout Enumerate
11888 ijmpcおよびijmpdパッケージは、表キャプションを実装するのに
11889 \family typewriter
11890 tbl
11891 \family default
11892 コマンドを使用します。そのため、LyXが作成した表は正しく印字されますが、そのキャプションは無視されます。しかし、TeXコードを少し使えば、この問題を回避して、
11893 キャプションを望み通り印字することができるようになります。そうするには、表フロートを通常通り作成して、キャプションを削除し、代わりにTeXコードで
11894 \family typewriter
11895
11896 \backslash
11897 tbl{表キャプション}{
11898 \family default
11899 (ママ)と入れます。そこに表の内容を入れて、直後をTeXコード
11900 \family typewriter
11901 }
11902 \family default
11903 で閉じてください。このからくりがどのように実装されているかを見るには、ひな型ファイルに入っている表の例を精査してみてください。別の方法としては、表キャプションが
11904 欲しい場合に、表フロート全体を
11905 \family typewriter
11906 .tex
11907 \family default
11908 ファイルに収め、このファイルをLyX文書に取り込んでください(
11909 \family sans
11910 挿入\SpecialChar \menuseparator
11911 ファイル\SpecialChar \menuseparator
11912 子文書
11913 \family default
11914 )。表フロートの作り方についての詳細は、各パッケージに含まれている
11915 \family typewriter
11916 ws-ijmpc.tex
11917 \family default
11918 または
11919 \family typewriter
11920 ws-ijmpd.tex
11921 \family default
11922 ファイルをご覧ください。
11923 \end_layout
11924
11925 \begin_layout Subsection
11926 原稿を投稿するための準備
11927 \end_layout
11928
11929 \begin_layout Standard
11930 論文を投稿する前には、LyX文書をLaTeXファイルに書き出し(
11931 \family sans
11932 ファイル\SpecialChar \menuseparator
11933 書き出し\SpecialChar \menuseparator
11934 LaTeX
11935 \family default
11936
11937 \begin_inset Foot
11938 status open
11939
11940 \begin_layout Plain Layout
11941 実は、LaTeX (plain)とpdflatexとの間で選択ができます。論文を準備するのにpdflatexを使用しようとするのであれば、取り込んである画像がP
11942 DF形式に変換され、pdflatexで使用できるように、pdflatexオプションを指定しなくてはなりません。
11943 \end_layout
11944
11945 \end_inset
11946
11947 、その
11948 \family typewriter
11949 .tex
11950 \family default
11951 ファイルに以下の変更を加える必要があります。
11952 \end_layout
11953
11954 \begin_layout Enumerate
11955
11956 \family typewriter
11957
11958 \backslash
11959 documentclass
11960 \family default
11961 コマンドより前にあるコメント行を削除する。
11962 \end_layout
11963
11964 \begin_layout Enumerate
11965 自身で明示的にLaTeXプリアンブルに置いたコマンドを除き、
11966 \family typewriter
11967
11968 \backslash
11969 makeatletter
11970 \family default
11971 コマンドと
11972 \family typewriter
11973
11974 \backslash
11975 makeatother
11976 \family default
11977 コマンドの間にあるものをすべて削除する。
11978 \end_layout
11979
11980 \begin_layout Standard
11981 こうして修正を加えた
11982 \family typewriter
11983 .tex
11984 \family default
11985 ファイルを保存し、必要な回数LaTeXで処理してください。それによって得られた
11986 \family typewriter
11987 .dvi
11988 \family default
11989 文書も確認された方がよろしいでしょう。
11990 \end_layout
11991
11992 \begin_layout Subsection
11993 TeXコードの使用
11994 \end_layout
11995
11996 \begin_layout Standard
11997 TeXコードを使用するのは、2つのコマンドに限られ、これらは文書の最初に置かれなくてはなりません。論文をひな型
11998 \family typewriter
11999 ijmpc.lyx
12000 \family default
12001 または
12002 \family typewriter
12003 ijmpd.lyx
12004 \family default
12005 を使用して書き始めた場合には、これら必要なTeXコードは、すでに書き込まれています。通常、これらを削除する必要はありません。2つのうち1番めのTeXコードのみが
12006 、奇数ページおよび偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために、修正する必要があります。このTeXコードは、
12007 \family typewriter
12008
12009 \backslash
12010 markboth{著者名}{論文の短縮タイトル}
12011 \family default
12012 という形である必要があります。
12013 \end_layout
12014
12015 \begin_layout Section
12016 iopart
12017 \end_layout
12018
12019 \begin_layout Standard
12020
12021 \noun on
12022 Uwe Stöhr
12023 \noun default
12024
12025 \end_layout
12026
12027 \begin_layout Subsection
12028 概要
12029 \end_layout
12030
12031 \begin_layout Standard
12032 iopartパッケージは、Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12033 す。iopartクラスを使用した論文作成方法の著者用説明書は、ウェブサイト
12034 \begin_inset Flex URL
12035 status collapsed
12036
12037 \begin_layout Plain Layout
12038
12039 ftp://ftp.iop.org/pub/journals/latex2e
12040 \end_layout
12041
12042 \end_inset
12043
12044 からiopartパッケージとともにダウンロード可能です。
12045 \end_layout
12046
12047 \begin_layout Subsection
12048 論文を書く
12049 \end_layout
12050
12051 \begin_layout Standard
12052 論文を書くもっとも簡単な方法は、LyXの用例ファイルフォルダにある
12053 \emph on
12054 IOP-article.lyx
12055 \emph default
12056 を土台にすることです。このファイルを開き、新しい名前で保存して、書き始めてください。この用例ファイルは、特定の環境の使用法についても説明しています。もっとも重要
12057 な助言として、以下の点にご注意ください。
12058 \end_layout
12059
12060 \begin_layout Itemize
12061 文書がPDF・PS・DVIにコンパイルできるようにするためには、文書設定の
12062 \family sans
12063 数式オプション
12064 \family default
12065 で、二つの
12066 \family sans
12067 AMS mathパッケージを使う
12068 \family default
12069 関連オプションが有効になっていないことを確認してください!
12070 \end_layout
12071
12072 \begin_layout Itemize
12073 タイトル環境の選択如何によって、論文の種類が定義されます。種類毎に以下の環境をタイトルに使用してください。
12074 \end_layout
12075
12076 \begin_deeper
12077 \begin_layout Itemize
12078 論文用には
12079 \family sans
12080 タイトル
12081 \end_layout
12082
12083 \begin_layout Itemize
12084 Review用には
12085 \family sans
12086 Review
12087 \end_layout
12088
12089 \begin_layout Itemize
12090 Topical review用には
12091 \family sans
12092 Topical
12093 \end_layout
12094
12095 \begin_layout Itemize
12096 Comment用には
12097 \family sans
12098 Comment
12099 \end_layout
12100
12101 \begin_layout Itemize
12102 Note用には
12103 \family sans
12104 注釈
12105 \end_layout
12106
12107 \begin_layout Itemize
12108 論文用には
12109 \family sans
12110 Paper
12111 \family default
12112 (タイトルと同じ)
12113 \end_layout
12114
12115 \begin_layout Itemize
12116 Preliminary communication用には
12117 \family sans
12118 Prelim
12119 \end_layout
12120
12121 \begin_layout Itemize
12122 Rapid communication用には
12123 \family sans
12124 Rapid
12125 \end_layout
12126
12127 \begin_layout Itemize
12128 編集者へのLetterには
12129 \family sans
12130 書簡
12131 \end_layout
12132
12133 \end_deeper
12134 \begin_layout Itemize
12135
12136 \family sans
12137 書簡
12138 \family default
12139 以外のタイトル環境には、すべて短縮タイトルをつけることもできます。
12140 \end_layout
12141
12142 \begin_layout Itemize
12143 LyXでは直接にサポートされていませんが、一般的なタイトル環境として
12144 \family sans
12145 Article
12146 \family default
12147 があります。執筆する文書が、他のタイトル型にそぐわない場合には、TeXコードでこれを指定することができます。
12148 \end_layout
12149
12150 \begin_layout Standard
12151 特別な表や数式組版に関するヒントなど、詳しい情報については、IOP著者用ガイドラインを参照してください。
12152 \end_layout
12153
12154 \begin_layout Section
12155 Kluwer
12156 \end_layout
12157
12158 \begin_layout Standard
12159
12160 \noun on
12161 Panayotis Papasotiriou
12162 \noun default
12163
12164 \end_layout
12165
12166 \begin_layout Subsection
12167 概要
12168 \end_layout
12169
12170 \begin_layout Standard
12171 Kluwerパッケージは、Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために、同社が作成したマクロ集です。同社
12172 の発行誌のうち、(少なくとも私の専門内で)もっともよく知られているものは、
12173 \emph on
12174 Astrophysics and Space Science
12175 \emph default
12176 (『宇宙物理学と宇宙科学』)と
12177 \emph on
12178 Solar Physics
12179 \emph default
12180 (『太陽系物理学』)ですが、他にも多くの学術誌があります(
12181 \begin_inset Flex URL
12182 status collapsed
12183
12184 \begin_layout Plain Layout
12185
12186 http://www.wkap.nl/jrnllist.htm/JRNLHOME
12187 \end_layout
12188
12189 \end_inset
12190
12191 に全覧があります)。Kluwerパッケージは、
12192 \begin_inset Flex URL
12193 status collapsed
12194
12195 \begin_layout Plain Layout
12196
12197 http://www.wkap.nl/kaphtml.htm/STYLEFILES
12198 \end_layout
12199
12200 \end_inset
12201
12202 からダウンロードできます。完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です)。
12203 \end_layout
12204
12205 \begin_layout Standard
12206 LyXは、このパッケージの機能の多くをサポートしていますが、すべてではありません。しかし、TeXコードを必要とするのは、パッケージ中のいくつかの「変わった」コマ
12207 ンドだけになりました(
12208 \begin_inset CommandInset ref
12209 LatexCommand ref
12210 reference "subsec:kluwer_peculiarities"
12211
12212 \end_inset
12213
12214 参照)。最近、私はLyXを使って書いた論文を
12215 \emph on
12216 Astrophysics and Space Science
12217 \emph default
12218 に投稿しましたが、何らの問題も発生しませんでした。
12219 \end_layout
12220
12221 \begin_layout Subsection
12222 論文を書く
12223 \end_layout
12224
12225 \begin_layout Standard
12226 論文を書き始めるには、ひな型ファイルKluwerを使うのが最も簡単です。
12227 \family sans
12228 ファイル\SpecialChar \menuseparator
12229 新規(ひな型使用)
12230 \family default
12231 をクリックし、ひな型
12232 \family typewriter
12233 kluwer.lyx
12234 \family default
12235 を選択してください。これは、原稿に通常必要となる各フィールドと、それらの使用法が短く書かれただけの、(ほとんど)何も書かれていない文書です。他のテンプレートと同
12236 様に、既存の文章を(括弧
12237 \family typewriter
12238 <>
12239 \family default
12240 を含む)正しい情報で上書きしてください。
12241 \end_layout
12242
12243 \begin_layout Subsection
12244 投稿の準備
12245 \end_layout
12246
12247 \begin_layout Standard
12248 AASTeXパッケージと同様、論文を投稿する前に、以下のような「後処理」を行う必要があります。
12249 \end_layout
12250
12251 \begin_layout Enumerate
12252
12253 \family sans
12254 ファイル\SpecialChar \menuseparator
12255 書き出し\SpecialChar \menuseparator
12256 LateX
12257 \family default
12258 をクリックして、論文をLaTeXファイルに書き出す。
12259 \end_layout
12260
12261 \begin_layout Enumerate
12262 生成された
12263 \family typewriter
12264 .tex
12265 \family default
12266 ファイルに、テキストエディタを使用して、以下のような変更を加える。
12267 \end_layout
12268
12269 \begin_deeper
12270 \begin_layout Enumerate
12271
12272 \family typewriter
12273
12274 \backslash
12275 documentclass
12276 \family default
12277 コマンドより前にあるコメント行を削除する。
12278 \end_layout
12279
12280 \begin_layout Enumerate
12281 意図的にLaTeXプリアンブルに加えたコマンドを除き、
12282 \family typewriter
12283
12284 \backslash
12285 makeatletter
12286 \family default
12287 から 
12288 \family typewriter
12289
12290 \backslash
12291 makeatother
12292 \family default
12293 の間にあるものを、これらのコマンドも含め、すべて削除する。
12294 \end_layout
12295
12296 \begin_layout Standard
12297 変更した
12298 \family typewriter
12299 .tex
12300 \family default
12301 ファイルを保存する。
12302 \end_layout
12303
12304 \end_deeper
12305 \begin_layout Enumerate
12306 この
12307 \family typewriter
12308 .tex
12309 \family default
12310 ファイルを必要な回数(通常3回以内)だけLaTeXにかける。
12311 \end_layout
12312
12313 \begin_layout Enumerate
12314 生成された
12315 \family typewriter
12316 .dvi
12317 \family default
12318 ファイルを
12319 \family sans
12320 xdvi
12321 \family default
12322 などを使って開き、問題がないか確認する(間違いをしていない限り問題ないはずです)。
12323 \end_layout
12324
12325 \begin_layout Subsection
12326 Kluwerパッケージの「風変わり」な特徴
12327 \begin_inset CommandInset label
12328 LatexCommand label
12329 name "subsec:kluwer_peculiarities"
12330
12331 \end_inset
12332
12333
12334 \end_layout
12335
12336 \begin_layout Standard
12337 Kluwerパッケージには、以下のような「風変わりな」特徴があります。
12338 \end_layout
12339
12340 \begin_layout Enumerate
12341 複数の論文を1つのLaTeXファイルへ入れることができます
12342 \begin_inset Foot
12343 status collapsed
12344
12345 \begin_layout Plain Layout
12346 わざわざこんなことをする必要はないでしょう。
12347 \end_layout
12348
12349 \end_inset
12350
12351 。各論文は、「article」環境で囲まなくてはなりません。残念ながら、1つの論文だけを書く場合でも、この環境を省略することはできません。つまり、各論文は
12352 \family typewriter
12353
12354 \backslash
12355 begin{article}
12356 \family default
12357 で始まり、
12358 \family typewriter
12359
12360 \backslash
12361 end{article}
12362 \family default
12363 で終わります。この環境をLyXに実装することも可能でしたが、醜い上に初心者を混乱させる可能性があるので、実装することはしませんでした。したがって、これらの命令(
12364 \family typewriter
12365
12366 \backslash
12367 begin{article}
12368 \family default
12369
12370 \family typewriter
12371
12372 \backslash
12373 end{article}
12374 \family default
12375 )は、直接本文中に入力して、LaTeXコード(「TeXコード」のことです)としてマークする必要があります。
12376 \end_layout
12377
12378 \begin_layout Enumerate
12379 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は、「opening」とよばれる環境に入れなくて
12380 はなりません。これはLyXでは実装されていませんので、タイトルやサブタイトルなどは、2つのTeXコード行(
12381 \family typewriter
12382
12383 \backslash
12384 begin{opening}
12385 \family default
12386 および
12387 \family typewriter
12388
12389 \backslash
12390 end{opening}
12391 \family default
12392 )の間に入れる必要があります。
12393 \end_layout
12394
12395 \begin_layout Enumerate
12396 ユーザーの手引きによれば、参考文献の各項目のラベルは、
12397 \family typewriter
12398
12399 \backslash
12400 protect
12401 \backslash
12402 citeauthoryear{
12403 \family default
12404 \emph on
12405 著者名
12406 \family typewriter
12407 \emph default
12408 }{
12409 \family default
12410 \emph on
12411
12412 \family typewriter
12413 \emph default
12414 }
12415 \family default
12416  と書く必要があります。
12417 \end_layout
12418
12419 \begin_layout Standard
12420 ひな型
12421 \family typewriter
12422 kluwer.lyx
12423 \family default
12424 は、これらの風変わりな点がすべて考慮されています。このひな型を使用して、論文を新たに書きはじめる場合には、特別なことを行う必要はありません。以下の点にのみ留意し
12425 てください。
12426 \end_layout
12427
12428 \begin_layout Enumerate
12429 ひな型にあるTeXコードを削除しないでください。
12430 \end_layout
12431
12432 \begin_layout Enumerate
12433 新しい参考文献項目を入力する場合には、ひな型に例示されている参考文献項目をコピーして、必要に応じて修正してください。
12434 \end_layout
12435
12436 \begin_layout Section
12437 Koma-Script
12438 \end_layout
12439
12440 \begin_layout Standard
12441
12442 \noun on
12443 Bernd Rellermeyer
12444 \noun default
12445
12446 \end_layout
12447
12448 \begin_layout Subsection
12449 概要
12450 \end_layout
12451
12452 \begin_layout Standard
12453 LyXの文書クラス
12454 \emph on
12455 article (koma-script)
12456 \emph default
12457
12458 \emph on
12459 report (koma-script)
12460 \emph default
12461
12462 \emph on
12463 book
12464 \emph default
12465  
12466 \emph on
12467 (koma-script)
12468 \emph default
12469
12470 \emph on
12471 letter
12472 \emph default
12473  
12474 \emph on
12475 (koma-script)
12476 \emph default
12477 は、それぞれKoma-ScriptファミリーのLaTeX文書クラス
12478 \family typewriter
12479 scrartcl.cls
12480 \family default
12481
12482 \family typewriter
12483 scrreprt.cls
12484 \family default
12485
12486 \family typewriter
12487 scrbook.cls
12488 \family default
12489
12490 \family typewriter
12491 scrlettr.cls
12492 \family default
12493 に対応しています。これらは、標準文書クラス
12494 \family typewriter
12495 article.cls
12496 \family default
12497
12498 \family typewriter
12499 report.cls
12500 \family default
12501
12502 \family typewriter
12503 book.cls
12504 \family default
12505
12506 \family typewriter
12507 letter.cls
12508 \family default
12509 の代替物であり、これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します。
12510 \end_layout
12511
12512 \begin_layout Itemize
12513 標準文字寸法は、
12514 \emph on
12515 article (koma-script)
12516 \emph default
12517
12518 \emph on
12519 report (koma-script)
12520 \emph default
12521
12522 \emph on
12523 book (koma-script)
12524 \emph default
12525 で11pt、
12526 \emph on
12527 letter (koma-script)
12528 \emph default
12529 で12ptです。
12530 \end_layout
12531
12532 \begin_layout Itemize
12533 見出しや箇条書き(記述)環境のラベル、および
12534 \emph on
12535 letter (koma-script)
12536 \emph default
12537 文書クラスの要素の多くでは、ボールド体サンセリフフォントが使われます
12538 \begin_inset Foot
12539 status collapsed
12540
12541 \begin_layout Plain Layout
12542 ボールド体サンセリフフォントには、古いcmフォントと新しいecフォントの間に大きな違いがあり、特に見出しの表示の違いが際立ちます。比較すると、ecボールドサンセ
12543 リフフォントの方が、少し細く見えます。ecフォントを使用する際に「通常の」外観が欲しい場合には、
12544 \shape smallcaps
12545 Walter Schmidt
12546 \shape default
12547 作のLaTeXパッケージ
12548 \family typewriter
12549 cmsd.sty
12550 \family default
12551 が役立ちます。
12552 \end_layout
12553
12554 \end_inset
12555
12556 。章見出しの連番は、節見出しの連番と同様に行われ、別行立てで「 Chapter\SpecialChar \ldots{}
12557 」という行がつきません。さらに、多くのオプションによって、見出しの外観を修正するこ
12558 とができます(LyXでは、
12559 \family sans
12560 文書\SpecialChar \menuseparator
12561 設定
12562 \family default
12563 ダイアログの
12564 \family sans
12565 クラスオプション
12566 \family default
12567 フィールドで指定します)。これらのオプションの独語での詳細な説明が、Koma-Scriptの取扱説明書
12568 \emph on
12569 scrguide
12570 \emph default
12571 にあります。
12572 \end_layout
12573
12574 \begin_layout Itemize
12575 Koma-Script文書クラスで、印字部分をデザインする主な方法は、
12576 \family sans
12577 BCOR
12578 \family default
12579 オプションまたは
12580 \family sans
12581 DIV
12582 \family default
12583 オプションを使う方法です(LyXでは、
12584 \family sans
12585 文書\SpecialChar \menuseparator
12586 設定
12587 \family default
12588 ダイアログの
12589 \family sans
12590 クラスオプション
12591 \family default
12592 フィールドで指定します)。これらのオプションは
12593 \family sans
12594 文書\SpecialChar \menuseparator
12595 設定
12596 \family default
12597 ダイアログのオプションと同様に、ページ余白を明示的に変更することができます。これらとその他印字領域オプションのドイツ語での詳細な説明が、Koma-Script取
12598 扱説明書
12599 \emph on
12600 scrguide
12601 \emph default
12602 にあります。
12603 \end_layout
12604
12605 \begin_layout Itemize
12606 Koma-ScriptファミリーのLaTeX文書クラスには、多くの追加コマンドが定義されています。それらのうち、LyXで意味を持つものは、対応する段落環境として
12607 実装されています。
12608 \end_layout
12609
12610 \begin_layout Standard
12611 Koma-ScriptファミリーのLaTeX文書クラスに関する独語の詳細な説明が、Koma-Script取扱説明書
12612 \emph on
12613 scrguide
12614 \emph default
12615 にあります
12616 \begin_inset Foot
12617 status collapsed
12618
12619 \begin_layout Plain Layout
12620 英語翻訳版の
12621 \emph on
12622 screnggu
12623 \emph default
12624 もありますが、完訳ではありません。
12625 \end_layout
12626
12627 \end_inset
12628
12629 。以下の各節では、LyXに関係する側面のみ説明致します。
12630 \end_layout
12631
12632 \begin_layout Subsection
12633 article (koma-script)・report (koma-script)・book (koma-script)
12634 \end_layout
12635
12636 \begin_layout Standard
12637 文書クラス
12638 \emph on
12639 article (koma-script)
12640 \emph default
12641
12642 \emph on
12643 report (koma-script)
12644 \emph default
12645
12646 \emph on
12647 book
12648 \emph default
12649  
12650 \emph on
12651 (koma-script)
12652 \emph default
12653 は、それぞれレイアウトファイル
12654 \family typewriter
12655 scrartcl.layout
12656 \family default
12657
12658 \family typewriter
12659 scrreprt.layou
12660 \family default
12661 t・
12662 \family typewriter
12663 crbook.layout
12664 \family default
12665 によって実装されています。これらは、対応する標準文書クラス
12666 \emph on
12667 article
12668 \emph default
12669
12670 \emph on
12671 report
12672 \emph default
12673
12674 \emph on
12675 book
12676 \emph default
12677 の段落環境を、若干の修正を加えた上ですべて含んでいますが、LyX固有の
12678 \family sans
12679 箇条書き(一覧)
12680 \family default
12681 環境は例外であり、同じ機能を持つ新しい
12682 \family sans
12683 ラベリング
12684 \family default
12685 環境で置き換えられています。この
12686 \family sans
12687 ラベリング
12688 \family default
12689 環境以外にも、新しい段落環境が多く追加されています。これらは、
12690 \emph on
12691 letter (koma-script)
12692 \emph default
12693 には含まれていないのでご注意ください。
12694 \end_layout
12695
12696 \begin_layout Itemize
12697
12698 \family sans
12699 部(addpart)
12700 \family default
12701
12702 \family sans
12703 章(addchap)
12704 \family default
12705
12706 \family sans
12707 節(addsec)
12708 \family default
12709 :これらは、それぞれ
12710 \family sans
12711 部*
12712 \family default
12713
12714 \family sans
12715 章*
12716 \family default
12717
12718 \family sans
12719 節*
12720 \family default
12721 と同等の働きをしますが、加えて目次に項目が表示されるようになります。
12722 \family sans
12723 部(addpart)
12724 \family default
12725
12726 \family sans
12727 章(addchap)
12728 \family default
12729 は、
12730 \emph on
12731 article (koma-script)
12732 \emph default
12733 には収録されていません。
12734 \end_layout
12735
12736 \begin_layout Itemize
12737
12738 \family sans
12739 章(addchap*)
12740 \family default
12741
12742 \family sans
12743 節(addsec*)
12744 \family default
12745 :これらは、
12746 \family sans
12747 章(addchap
12748 \family default
12749 )と
12750 \family sans
12751 節(addsec)
12752 \family default
12753 とまったく同等に動作しますが、加えてランニングへッダを取り除きます。
12754 \family sans
12755 章(addchap*)
12756 \family default
12757 は、 
12758 \emph on
12759 article (koma-script)
12760 \emph default
12761 には収録されていません
12762 \begin_inset Foot
12763 status collapsed
12764
12765 \begin_layout Plain Layout
12766
12767 \emph on
12768 book (koma-script)
12769 \emph default
12770
12771 \emph on
12772 report (koma-script)
12773 \emph default
12774 には、
12775 \family typewriter
12776
12777 \backslash
12778 addpart*
12779 \family default
12780 コマンドもありますが、これは
12781 \family sans
12782 Part*
12783 \family default
12784 と同一なので、LyXでは実装されていません。
12785 \end_layout
12786
12787 \end_inset
12788
12789
12790 \end_layout
12791
12792 \begin_layout Itemize
12793
12794 \family sans
12795 小見出し(minisec)
12796 \family default
12797 :これは文書構造に現れない形で、続く段落の直上に標準文字寸法の見出しを付けます。
12798 \end_layout
12799
12800 \begin_layout Itemize
12801
12802 \family sans
12803 上部キャプション
12804 \family default
12805
12806 \family sans
12807 下部キャプション
12808 \family default
12809 は、ある要素の上部ないし下部にキャプションを配置する際、位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば、表キャプションは、つ
12810 ねに表の上に置くべきでしょう)。また、クラスオプション
12811 \family typewriter
12812 tablecaptionsabove
12813 \family default
12814 を用いれば、キャプションを指定すると、表には
12815 \family sans
12816 上部キャプション
12817 \family default
12818 が、図には
12819 \family sans
12820 下部キャプション
12821 \family default
12822 が適用されるようになります。これを使用するためには、Koma-Script第2.8q版以上が必要です。
12823 \end_layout
12824
12825 \begin_layout Itemize
12826
12827 \family sans
12828 格言(dictum)
12829 \family default
12830 :これは、章頭などに警句を置くのに用いることができます。オプション引数(
12831 \family sans
12832 挿入\SpecialChar \menuseparator
12833 短縮タイトル
12834 \family default
12835 )を用いれば、格言の作者を入れることができます。格言と作者の間は、線で区切られます。これを使用するためには、Koma-Script第2.8q版以上が必要です。
12836 \family sans
12837 格言(dictum)
12838 \family default
12839 は、
12840 \emph on
12841 article (koma-script)
12842 \emph default
12843 には収録されていません。
12844 \end_layout
12845
12846 \begin_layout Standard
12847 以下の各環境は、標準の
12848 \family sans
12849 タイトル
12850 \family default
12851
12852 \family sans
12853 著者
12854 \family default
12855
12856 \family sans
12857 日付
12858 \family default
12859 とともに文書のタイトル領域を形成します。これらは、最初の「通常の」段落よりも前に置かれる必要があります
12860 \begin_inset Foot
12861 status collapsed
12862
12863 \begin_layout Plain Layout
12864 つまり、対応するLaTeXコマンドが
12865 \family typewriter
12866
12867 \backslash
12868 maketitle
12869 \family default
12870 コマンドよりも前に現れなくてはなりません。
12871 \end_layout
12872
12873 \end_inset
12874
12875 。これらの環境が2度以上使用された場合には、後に使用されたものが前のものを上書きします。つまり最後に使用したもののみが有効になります。しかしながら、
12876 \family sans
12877 タイトル
12878 \family default
12879
12880 \family sans
12881 著者
12882 \family default
12883
12884 \family sans
12885 日付
12886 \family default
12887 のような異なる環境の順序を変更しても、生成された文書には何の効果も生じません。
12888 \end_layout
12889
12890 \begin_layout Itemize
12891
12892 \family sans
12893 主題
12894 \family default
12895 :通常のタイトル部(
12896 \family sans
12897 タイトル
12898 \family default
12899
12900 \family sans
12901 著者
12902 \family default
12903
12904 \family sans
12905 日付
12906 \family default
12907 )の上に、文書の主題用の中央揃えの段落を生成します。
12908 \end_layout
12909
12910 \begin_layout Itemize
12911
12912 \family sans
12913 出版社
12914 \family default
12915 :通常のタイトル部(
12916 \family sans
12917 タイトル
12918 \family default
12919
12920 \family sans
12921 著者
12922 \family default
12923
12924 \family sans
12925 日付
12926 \family default
12927 )の下に、出版社名用の中央揃えの段落を生成します。
12928 \end_layout
12929
12930 \begin_layout Itemize
12931
12932 \family sans
12933 献呈
12934 \family default
12935
12936 \emph on
12937 report (koma-script)
12938 \emph default
12939
12940 \emph on
12941 book (koma-script)
12942 \emph default
12943 では、タイトル頁の次に、献辞用の中央揃えの段落を独立した頁として生成します。
12944 \emph on
12945 article (koma-script)
12946 \emph default
12947 の場合は、通常のタイトル部(
12948 \family sans
12949 タイトル
12950 \family default
12951
12952 \family sans
12953 著者
12954 \family default
12955
12956 \family sans
12957 日付
12958 \family default
12959 )の下に献辞用の中央揃えの段落を生成します。
12960 \end_layout
12961
12962 \begin_layout Itemize
12963
12964 \family sans
12965 タイトル頭書き
12966 \family default
12967 :通常のタイトル部(
12968 \family sans
12969 タイトル
12970 \family default
12971
12972 \family sans
12973 著者
12974 \family default
12975
12976 \family sans
12977 日付
12978 \family default
12979 )の上に、文書頭書き用の左揃えの段落を生成します。
12980 \end_layout
12981
12982 \begin_layout Itemize
12983
12984 \family sans
12985 扉裏上部
12986 \family default
12987
12988 \emph on
12989 report (koma-script)
12990 \emph default
12991 や 
12992 \emph on
12993 book (koma-script)
12994 \emph default
12995 の両面印刷において、扉裏上部に左揃え段落を生成します。片面印刷や、
12996 \emph on
12997 article (koma-script)
12998 \emph default
12999 では何の効果も生じません。
13000 \end_layout
13001
13002 \begin_layout Itemize
13003
13004 \family sans
13005 扉裏下部
13006 \family default
13007
13008 \emph on
13009 report (koma-script)
13010 \emph default
13011 や 
13012 \emph on
13013 book (koma-script)
13014 \emph default
13015 の両面印刷において、扉裏下部に左揃え段落を生成します。片面印刷や、
13016 \emph on
13017 article (koma-script)
13018 \emph default
13019 では何の効果も生じません。
13020 \end_layout
13021
13022 \begin_layout Itemize
13023
13024 \family sans
13025 追加タイトル
13026 \family default
13027 :実際の文書の前に、整形を行わない段落から成る、特殊な「汚い」ページを生成します。
13028 \end_layout
13029
13030 \begin_layout Standard
13031 文書クラス
13032 \emph on
13033 article (koma-script)
13034 \emph default
13035
13036 \emph on
13037 report (koma-script)
13038 \emph default
13039
13040 \emph on
13041 book (koma-script)
13042 \emph default
13043 の 各レイアウトファイルは、
13044 \family typewriter
13045 scrmacros.inc
13046 \family default
13047 ファイルを読み込みます。このファイルは、ユーザ環境を定義する場所として想定されています。s
13048 \family typewriter
13049 crmacros.inc
13050 \family default
13051 を、個人用レイアウトディレクトリにコピーして編集してください!
13052 \end_layout
13053
13054 \begin_layout Subsection
13055 letter (koma-script)
13056 \end_layout
13057
13058 \begin_layout Standard
13059 \noindent
13060 文書クラス
13061 \emph on
13062 letter (koma-script)
13063 \emph default
13064 は、レイアウトファイル 
13065 \family typewriter
13066 scrlettr.layout
13067 \family default
13068 で実装されています。このレイアウトファイルには、対応する標準文書クラス
13069 \emph on
13070 letter
13071 \emph default
13072 の全段落環境が、部分的に変更を加えた形で収録されていますが、LyX固有環境の
13073 \family sans
13074 LyXコード
13075 \family default
13076
13077 \family sans
13078 コメント
13079 \family default
13080
13081 \family sans
13082 箇条書き(一覧
13083 \family default
13084 )は、新しく
13085 \family sans
13086 ラベリング
13087 \family default
13088 環境に置き換えられています。それ以外にも、標準文書クラスとは異なり、標準環境の
13089 \family sans
13090 LaTeX
13091 \family default
13092
13093 \family sans
13094 引用(字下げあり)
13095 \family default
13096
13097 \family sans
13098 引用(字下げなし)
13099 \family default
13100
13101 \family sans
13102 詩句
13103 \family default
13104 が収録されています。さらに、新しいletter固有環境がたくさん追加されています。
13105 \end_layout
13106
13107 \begin_layout Standard
13108 この文書クラスで作成した書簡の外観は、様々なLaTeXコマンドをLaTeXプリアンブルに置くことで制御することができます
13109 \begin_inset Foot
13110 status collapsed
13111
13112 \begin_layout Plain Layout
13113 例えば、名前と住所の入った書簡ヘッダの標準的外観は、きわめて頑固です。「普通の」へッダは、プリアンブル中に以下のようなコマンドを入れることで生成することができま
13114 す。
13115 \end_layout
13116
13117 \begin_layout LyX-Code
13118
13119 \backslash
13120 firsthead{
13121 \backslash
13122 parbox[b]{
13123 \backslash
13124 textwidth}
13125 \end_layout
13126
13127 \begin_layout LyX-Code
13128   {
13129 \backslash
13130 ignorespaces 
13131 \backslash
13132 fromname
13133 \backslash
13134
13135 \backslash
13136  
13137 \backslash
13138 ignorespaces 
13139 \backslash
13140 fromaddress}} 
13141 \end_layout
13142
13143 \begin_layout LyX-Code
13144
13145 \backslash
13146 nexthead{
13147 \backslash
13148 parbox[b]{
13149 \backslash
13150 textwidth}
13151 \end_layout
13152
13153 \begin_layout LyX-Code
13154   {
13155 \backslash
13156 ignorespaces 
13157 \backslash
13158 fromname 
13159 \backslash
13160 hfill 
13161 \backslash
13162 ignorespaces 
13163 \backslash
13164 pagename
13165 \backslash
13166
13167 \end_layout
13168
13169 \begin_layout LyX-Code
13170
13171 \backslash
13172 thepage}}
13173 \end_layout
13174
13175 \end_inset
13176
13177 。これらのLaTeXコマンドのドイツ語での詳細な説明は、Koma-Scriptの取扱説明書
13178 \emph on
13179 scrguide
13180 \emph default
13181 にあります。この方法で、書簡の著者は、個人用書簡レイアウトを作ることができます。
13182 \end_layout
13183
13184 \begin_layout Standard
13185
13186 \family sans
13187 書簡
13188 \family default
13189 環境および
13190 \family sans
13191 頭語
13192 \family default
13193 環境は、書簡の冒頭部を定義するもので、すべての書簡で使用しなくてはなりません。LyX文書クラスでは、これらの環境を強調するために、左余白にそれぞれ
13194 \shape italic
13195 L
13196 \shape default
13197
13198 \shape italic
13199 O
13200 \shape default
13201 という文字が表示されます。同一ファイル中には、複数の書簡を書くことができます。
13202 \family sans
13203 頭語
13204 \family default
13205 環境は、同じ受取人への書簡を新しく書き出すものであり、
13206 \family sans
13207 書簡
13208 \family default
13209 環境は、新しい受取人を生成するものです。
13210 \family sans
13211 結語
13212 \family default
13213
13214 \family sans
13215 PS
13216 \family default
13217
13218 \family sans
13219 CC
13220 \family default
13221
13222 \family sans
13223 Encl
13224 \family default
13225 は、通常の段落環境なので、同一の書簡中でも何度も使用することができます。
13226 \end_layout
13227
13228 \begin_layout Itemize
13229
13230 \family sans
13231 書簡
13232 \family default
13233 :受取人のための段落をつくり、暗黙に書簡の開始を定義します。
13234 \end_layout
13235
13236 \begin_layout Itemize
13237
13238 \family sans
13239 頭語
13240 \family default
13241 :敬称のための段落をつくり、暗黙に新しい書簡を開始します。
13242 \end_layout
13243
13244 \begin_layout Itemize
13245
13246 \family sans
13247 結語
13248 \family default
13249 :結語のための段落をつくります。
13250 \end_layout
13251
13252 \begin_layout Itemize
13253
13254 \family sans
13255 PS
13256 \family default
13257 :追伸のための段落をつくります。
13258 \end_layout
13259
13260 \begin_layout Itemize
13261
13262 \family sans
13263 CC
13264 \family default
13265 :同報一覧のための段落をつくります。
13266 \end_layout
13267
13268 \begin_layout Itemize
13269
13270 \family sans
13271 Encl
13272 \family default
13273 :同封物のための段落をつくります。
13274 \end_layout
13275
13276 \begin_layout Standard
13277
13278 \family sans
13279 名前
13280 \family default
13281
13282 \family sans
13283 署名
13284 \family default
13285
13286 \family sans
13287 住所
13288 \family default
13289
13290 \family sans
13291 電話
13292 \family default
13293
13294 \family sans
13295 場所(Place
13296 \family default
13297 )・
13298 \family sans
13299 返送先住所
13300 \family default
13301
13302 \family sans
13303 配送手段(Specialmail)
13304 \family default
13305
13306 \family sans
13307 場所
13308 \family default
13309
13310 \family sans
13311 タイトル
13312 \family default
13313
13314 \family sans
13315 主題
13316 \family default
13317 は、情報入力を促すラベルの付いた入力環境で、文書クラスが適切な処理を行います
13318 \begin_inset Foot
13319 status collapsed
13320
13321 \begin_layout Plain Layout
13322 上述の
13323 \family sans
13324 書簡
13325 \family default
13326
13327 \family sans
13328 頭語
13329 \family default
13330 が、これらのような入力環境でないのは、矛盾しているように感じられるかもしれません。しかしながら、これら2つの環境は特別の意味を持っているために、これらは左余白に
13331 一文字をマークした通常の段落環境として実装しました。さらに、
13332 \family sans
13333 頭語
13334 \family default
13335 環境と
13336 \family sans
13337 結語
13338 \family default
13339 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです。
13340 \end_layout
13341
13342 \end_inset
13343
13344 。これらの環境は、対応する
13345 \family sans
13346 頭語
13347 \family default
13348 環境の前に置く必要があります。
13349 \end_layout
13350
13351 \begin_layout Standard
13352 生成された書簡の実際の外観は、特定の環境の使い方だけではなく、他の要素にも依存するため、これらの環境をWYSIWYGとして実装することには、あまり意味がありませ
13353 ん。たとえば、
13354 \family sans
13355 署名
13356 \family default
13357 環境で入力した署名は、標準的な挙動では、同じ書簡に
13358 \family sans
13359 結語
13360 \family default
13361 環境も使用されているときのみ、書簡の出力に現れます。
13362 \family sans
13363 電話
13364 \family default
13365 環境に入力された値は、標準的な挙動では、書簡の出力には全く表示されません。書簡のヘッダを自由にデザインできることは、前出の脚注で示してあります。
13366 \end_layout
13367
13368 \begin_layout Standard
13369 入力環境は、空の段落として使うことができます。これは、たとえば
13370 \family sans
13371 署名
13372 \family default
13373 環境の場合に有効です。
13374 \family sans
13375 署名
13376 \family default
13377 環境を全く使用しない場合は、標準的な挙動では、
13378 \family sans
13379 名前
13380 \family default
13381 環境の値が署名として使用されますが、空の
13382 \family sans
13383 署名
13384 \family default
13385 環境を作成しておくと、署名の値は無定義となりません。
13386 \end_layout
13387
13388 \begin_layout Standard
13389 入力環境を使用すると、個人データ(名前や住所など)が既に入力された入力環境と、後から入力するデータの入力環境を備えた、書簡のひな型を作成することができます。
13390 \end_layout
13391
13392 \begin_layout Itemize
13393
13394 \family sans
13395 名前
13396 \family default
13397 :送り主の名前。標準的な挙動では、書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます。
13398 \end_layout
13399
13400 \begin_layout Itemize
13401
13402 \family sans
13403 署名
13404 \family default
13405 :送り主の署名。標準的な挙動では、
13406 \family sans
13407 結語
13408 \family default
13409 環境の下に表示されます。
13410 \family sans
13411 署名
13412 \family default
13413 環境を使用しないと、代わりに
13414 \family sans
13415 名前
13416 \family default
13417 環境の値が表示されます。
13418 \end_layout
13419
13420 \begin_layout Itemize
13421
13422 \family sans
13423 住所
13424 \family default
13425 :送り主の住所。標準的な挙動では、書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます。
13426 \end_layout
13427
13428 \begin_layout Itemize
13429
13430 \family sans
13431 電話
13432 \family default
13433 :送り主の電話番号。標準的な挙動では、LaTeX変数
13434 \family typewriter
13435
13436 \backslash
13437 telephonenum
13438 \family default
13439 を設定するだけです。
13440 \end_layout
13441
13442 \begin_layout Itemize
13443
13444 \family sans
13445 場所(Place)
13446 \family default
13447 :書簡を書いた場所。
13448 \end_layout
13449
13450 \begin_layout Itemize
13451
13452 \family sans
13453 日付
13454 \family default
13455 :書簡を書いた日付。
13456 \family sans
13457 場所(Place)
13458 \family default
13459
13460 \family sans
13461 日付
13462 \family default
13463 は、標準的な挙動では、受取人フィールドの下に、単一の右揃え行として場所と日付を生成します。空の
13464 \family sans
13465 日付
13466 \family default
13467 環境を作成しておくと、
13468 \family sans
13469 場所(Place)
13470 \family default
13471 の値如何に関わらず、場所も日付も表示されません。
13472 \family sans
13473 日付
13474 \family default
13475 環境を使用しない場合には、書簡を出力した日付が使用されます。
13476 \end_layout
13477
13478 \begin_layout Itemize
13479
13480 \family sans
13481 返送先住所
13482 \family default
13483 :送り主の返送先住所。標準的な挙動では、受取人の上に小文字のサンセリフ体フォントで表示されます。
13484 \end_layout
13485
13486 \begin_layout Itemize
13487
13488 \family sans
13489 特別便
13490 \family default
13491 :特別便の情報。標準的な挙動では、受取人フィールドの上かつ返送先住所の下に、下線付きで表示されます。
13492 \end_layout
13493
13494 \begin_layout Itemize
13495
13496 \family sans
13497 場所
13498 \family default
13499 :追加情報。標準的な挙動では、受取人フィールドの下の右側に表示されます。
13500 \end_layout
13501
13502 \begin_layout Itemize
13503
13504 \family sans
13505 タイトル
13506 \family default
13507 :書簡の題名。標準的な挙動では、主題の上に大きなボールド体サンセリフフォントで表示されます。
13508 \end_layout
13509
13510 \begin_layout Itemize
13511
13512 \family sans
13513 主題
13514 \family default
13515 :書簡の主題。標準的な挙動では、
13516 \family sans
13517 頭語
13518 \family default
13519 環境の上にボールド体で表示されます。
13520 \end_layout
13521
13522 \begin_layout Standard
13523
13524 \family sans
13525 Yourref・Yourmail・Myref・顧客・インボイス
13526 \family default
13527 といった環境は、
13528 \family sans
13529 タイトル
13530 \family default
13531 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
13532 ィールド行を持つ、ビジネス書簡を作成します。日付フィールドには、
13533 \family sans
13534 日付
13535 \family default
13536 環境の値が使用されます。しかしながら、これらの「ビジネス書簡環境」の一つを使用した場合には、
13537 \family sans
13538 場所(Place)
13539 \family default
13540 の値は書簡には表示されなくなり、LaTeX変数
13541 \family typewriter
13542
13543 \backslash
13544 fromplace
13545 \family default
13546 が設定させるだけになります。通常時に、受取人フィールドの下に右揃えで出力される場所と日付の出力は、抑制されます。これらのビジネス環境は、ラベル付きの入力環境とし
13547 て実装されており、対応する
13548 \family sans
13549 頭語
13550 \family default
13551 環境よりも前に置く必要があります。
13552 \end_layout
13553
13554 \begin_layout Itemize
13555
13556 \family sans
13557 Yourref
13558 \family default
13559 : Your ref.
13560 \end_layout
13561
13562 \begin_layout Itemize
13563
13564 \family sans
13565 Yourmail
13566 \family default
13567 : Your letter of.
13568 \end_layout
13569
13570 \begin_layout Itemize
13571
13572 \family sans
13573 Myref
13574 \family default
13575 : Our ref.
13576 \end_layout
13577
13578 \begin_layout Itemize
13579
13580 \family sans
13581 Customer
13582 \family default
13583 : Customer no.
13584 \end_layout
13585
13586 \begin_layout Itemize
13587
13588 \family sans
13589 Invoice
13590 \family default
13591 : Invoice no.
13592 \end_layout
13593
13594 \begin_layout Subsection
13595 新しいletterクラス:letter (koma-script v.2)
13596 \end_layout
13597
13598 \begin_layout Standard
13599 by 
13600 \noun on
13601 Jürgen Spitzmüller
13602 \begin_inset VSpace medskip
13603 \end_inset
13604
13605
13606 \end_layout
13607
13608 \begin_layout Standard
13609 \noindent
13610 Koma-Script第2.8版では、新しいletterクラス
13611 \family typewriter
13612 scrlttr2
13613 \family default
13614 が導入されたため、
13615 \family typewriter
13616 scrlettr
13617 \family default
13618 は廃止されてサポート対象外となりました。これは—LaTeX側で—全く新しいインターフェイスを持っており、旧クラスとは互換性がありません。したがって、LyXは両者
13619 をサポートしていますが、新しい方のクラスを使用することを推奨します。
13620 \end_layout
13621
13622 \begin_layout Standard
13623 このクラスは、
13624 \emph on
13625 letter (koma-script)
13626 \emph default
13627 と同一の機能に加えて、新しい機能をいくつかサポートしています。基本となる項目は、
13628 \family sans
13629 住所
13630 \family default
13631 (受取人の住所、旧レイアウトの
13632 \family sans
13633 書簡
13634 \family default
13635 と同じ)・
13636 \family sans
13637 頭語
13638 \family default
13639
13640 \family sans
13641 結語
13642 \family default
13643 です。
13644 \family sans
13645 次の住所
13646 \family default
13647 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます)。新しく付け加えられた項目は、送り主の
13648 \family sans
13649 電子メール
13650 \family default
13651
13652 \family sans
13653 URL
13654 \family default
13655
13656 \family sans
13657 ファックス
13658 \family default
13659
13660 \family sans
13661 銀行
13662 \family default
13663 、およびヘッダに(
13664 \family sans
13665 挿入\SpecialChar \menuseparator
13666
13667 \family default
13668 で)
13669 \family sans
13670 ロゴ
13671 \family default
13672 を入れることができるようになった点です。
13673 \end_layout
13674
13675 \begin_layout Standard
13676 しかしながら、もっとも大きな改善は、書簡のレイアウトを、ほとんどどんなニーズにも合わせて設定できるようになった点でしょう。これはプリアンブルか、クラスオプション
13677 として読み込まれる特別なスタイルファイル(「レタークラスオプション」、拡張子
13678 \family typewriter
13679 *.lco
13680 \family default
13681 )によって設定することができます
13682 \begin_inset Foot
13683 status collapsed
13684
13685 \begin_layout Plain Layout
13686 KOMAパッケージには、既定の
13687 \family typewriter
13688 *.lco
13689 \family default
13690 ファイルがいくつか収録されています。たとえば、ドイツの組版規則に則った
13691 \family typewriter
13692 DIN.lco
13693 \family default
13694 や、旧
13695 \family typewriter
13696 scrlettr
13697 \family default
13698 クラスの既定レイアウトを提供する
13699 \family typewriter
13700 KOMAold.lco
13701 \family default
13702 などです。たとえば後者は、
13703 \family sans
13704 文書\SpecialChar \menuseparator
13705 設定\SpecialChar \menuseparator
13706 文書クラス\SpecialChar \menuseparator
13707 クラスオプション
13708 \family default
13709 フィールドにクラスオプション
13710 \family typewriter
13711 KOMAold
13712 \family default
13713 を加えることで読み込むことができます。
13714 \end_layout
13715
13716 \end_inset
13717
13718 。用例としては、LyXに収録されているひな型
13719 \emph on
13720 koma-letter2
13721 \emph default
13722 をご覧ください。詳細な解説は、Koma-Script取扱説明書(
13723 \emph on
13724 scrguide
13725 \emph default
13726 )にあります。
13727 \end_layout
13728
13729 \begin_layout Subsection
13730 問題点
13731 \end_layout
13732
13733 \begin_layout Standard
13734 Koma-Script文書クラスをLyX上に表示する上で、LyXの内部処理が若干の問題を生じめます。
13735 \end_layout
13736
13737 \begin_layout Itemize
13738
13739 \family sans
13740
13741 \family default
13742 環境の章番号は、章見出しと同じ行ではなく、その上に表示されます。これは、レイアウトファイル中の
13743 \family sans
13744 Counter_Chapter
13745 \family default
13746 ラベル型に対するLyXの内部処理が原因です。
13747 \end_layout
13748
13749 \begin_layout Itemize
13750
13751 \family sans
13752 章(addchap)
13753 \family default
13754
13755 \family sans
13756 節(addsec)
13757 \family default
13758 環境の見出しは、「本当の」LaTeXの目次には追加されますが、LyXの目次(
13759 \family sans
13760 移動
13761 \family default
13762 メニュー)には追加されません。
13763 \end_layout
13764
13765 \begin_layout Itemize
13766
13767 \emph on
13768 letter
13769 \emph default
13770 文書クラスでの段落は、垂直スペースによる段落区切りで表示され、字下げはされません。これが標準的な挙動となっていて、特別なLaTeXコマンドは必要ありません。しか
13771 し、
13772 \family sans
13773 文書\SpecialChar \menuseparator
13774 設定
13775 \family default
13776 ダイアログでは、対応するラジオボタンは
13777 \family sans
13778 字下げ
13779 \family default
13780 に設定されています。
13781 \family sans
13782 垂直スペース
13783 \family default
13784 は、隙間を空けるために、文書にLaTeXコマンドをつねに追加するようになっていますが、この文書クラスの場合には、そのような挙動が望まれないためです。
13785 \end_layout
13786
13787 \begin_layout Section
13788 Memoir
13789 \end_layout
13790
13791 \begin_layout Standard
13792
13793 \noun on
13794 Jürgen Spitzmüller
13795 \noun default
13796
13797 \end_layout
13798
13799 \begin_layout Subsection
13800 概観
13801 \end_layout
13802
13803 \begin_layout Standard
13804 Memoirは、非常に強力で、着実に改良が加えられている文書クラスであり、フィクションとノンフィクションの文学作品用に設計されています。その目的は、ユーザーに、
13805 文書の組版に関して最大限の裁量を得させることにあります。Memoirは、標準bookクラスに基づいていますが、articleクラスをエミュレートすることもできま
13806 す(以下参照)。
13807 \end_layout
13808
13809 \begin_layout Standard
13810 Memoir開発者であるPeter Wilsonは、LaTeXの世界での、多くの便利なパッケージの作者として知られていますが、それらのほとんどは、Memoirに
13811 統合されました。このため、章のデザインや、目次や付録などのレイアウトを、はるかに簡単に行うことができます。しかしながら、LyXは、これらすべての素晴らしい機能を
13812 ネイティブでサポートしているわけではありません。これらのうちいくつかは、将来のリリースで追加されるかもしれませんが
13813 \begin_inset Foot
13814 status collapsed
13815
13816 \begin_layout Plain Layout
13817 もし提案があれば、ぜひ
13818 \begin_inset Flex URL
13819 status collapsed
13820
13821 \begin_layout Plain Layout
13822
13823 lyx-devel@lists.lyx.org
13824 \end_layout
13825
13826 \end_inset
13827
13828 までお送り下さい。
13829 \end_layout
13830
13831 \end_inset
13832
13833 、LyXのフレームワークが持つ制約のために、おそらく決して追加されることのないと考えられるものも多数あります。もちろん、ネイティブなLaTeXコマンド(TeXコ
13834 ード
13835 \begin_inset Foot
13836 status collapsed
13837
13838 \begin_layout Plain Layout
13839 【参考】詳細は、第
13840 \begin_inset CommandInset ref
13841 LatexCommand ref
13842 reference "sec:LaTeXコードを挿入する"
13843
13844 \end_inset
13845
13846 節参照。
13847 \end_layout
13848
13849 \end_inset
13850
13851 )の助けを借りれば、全機能を使用できます。この節では、LyXがネイティブにサポートしている機能についてのみ、列挙するものとします。詳細な説明(および他の機能)に
13852 ついては、Memoirクラスの詳しい取扱説明書
13853 \begin_inset Foot
13854 status collapsed
13855
13856 \begin_layout Plain Layout
13857 【参考】
13858 \begin_inset Flex URL
13859 status collapsed
13860
13861 \begin_layout Plain Layout
13862
13863 CTAN:/macros/latex/memoir/memman.pdf
13864 \end_layout
13865
13866 \end_inset
13867
13868
13869 \end_layout
13870
13871 \end_inset
13872
13873 をご覧になることをお勧めします。この取扱説明書は、本クラスのユーザーの手引きであるのみに留まらず、良い組版に関する包括的な解説であり、それ自身が良い組版の傑出し
13874 た用例となっています。
13875 \end_layout
13876
13877 \begin_layout Subsection
13878 基本的な機能と制約
13879 \end_layout
13880
13881 \begin_layout Standard
13882 Memoirは、基本的に、標準bookクラスの全機能をサポートしています。しかしながら、以下に示すような若干の違いがあります。
13883 \end_layout
13884
13885 \begin_layout Description
13886 フォント寸法: Memoirでは、9・10・11・12・14・17と、より広い範囲のフォント寸法が使用可能です。
13887 \end_layout
13888
13889 \begin_layout Description
13890 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため、LaTeXが混乱さ
13891 せられます)、fancyページ様式は使用できません。その代わり、Memoirには、多くの独自のページ様式が付属してきます(
13892 \family sans
13893 文書\SpecialChar \menuseparator
13894 設定\SpecialChar \menuseparator
13895 ページレイアウト
13896 \family default
13897 参照)。これらを章題ページに使用したい場合には、コマンド
13898 \family typewriter
13899
13900 \backslash
13901 chapterstyle
13902 \family default
13903 を、本文またはプリアンブルに記述する必要があります(例えば、
13904 \family typewriter
13905
13906 \backslash
13907 chapterstyle{companion}
13908 \family default
13909 など)。
13910 \end_layout
13911
13912 \begin_layout Description
13913 節分け: 標準クラスでは、節分けコマンド(章・節・小節等)は、非必須引数を一つ取ることができます。これを用いて、目次やヘッダ用に別のタイトルを指定することができ
13914 ます(たとえば、タイトルが長すぎる場合などに用います)。LyXでは、章や節の始めで
13915 \family sans
13916 挿入\SpecialChar \menuseparator
13917 短縮タイトル
13918 \family default
13919 を使えば、これを指定することができます。一方、Memoirでは、第2の非必須引数を取ることができ、目次用のタイトルとヘッダ用のタイトルの指定を分離しています。こ
13920 れを使えば、本文用と目次用とヘッダ用のタイトルの3種類を指定することができます。この機能を使用したい場合には、2つの非必須引数を入力して、最初のものに目次用、次
13921 のものにヘッダ用短縮タイトルを入れてください。
13922 \end_layout
13923
13924 \begin_layout Description
13925 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では、目次と図一覧および表一覧は、自動的に新規頁に置かれます。Memoirは、これとは別の方針を採り
13926 ます。改頁を行いたい場合は、手動で頁区切りを入れなくてはなりません。
13927 \end_layout
13928
13929 \begin_layout Description
13930 タイトル頁: 理由は不明ですが、Memoirはタイトルページに丁付けを行います(標準クラスでは、タイトルページは「empty」様式、すなわち丁付けを行いません)
13931 。タイトル頁に丁付けを行いたくない場合には、プリアンブルに
13932 \family typewriter
13933
13934 \backslash
13935 aliaspagestyle{title}{empty}
13936 \family default
13937 と入力してください。
13938 \end_layout
13939
13940 \begin_layout Description
13941 Article: クラスオプション
13942 \emph on
13943 article
13944 \emph default
13945 を用いる(
13946 \family sans
13947 文書\SpecialChar \menuseparator
13948 設定\SpecialChar \menuseparator
13949 クラスオプション
13950 \family default
13951 で入力)と、article様式をエミュレートできます。すなわち、(脚注・図・表等の)カウンタは、章毎にリセットされず、次の章は頁を改めず(ただし、「本物の」ar
13952 ticleクラスとは違って、頁を改めることも可)、部はbookクラスと同様に、独立の頁を使用します。
13953 \end_layout
13954
13955 \begin_layout Description
13956 Oldfontcommands: LaTeX旧2.09版で使用されていた旧いフォントコマンド(
13957 \family typewriter
13958
13959 \backslash
13960 rm
13961 \family default
13962
13963 \family typewriter
13964
13965 \backslash
13966 it
13967 \family default
13968 など)は、Memoirにおいては、既定では使用することができません。Memoirがこれらのコマンドを検知すると、エラーを発してLaTeXを停止させます。しかし、
13969 クラスオプション
13970 \emph on
13971 oldfontcommands
13972 \emph default
13973 を指定すると、これらのコマンドが容認され、エラーの代わりに警告を発するのみとなります(これによって、少なくともLaTeXは停止しなくなります)。まだ、多くのパッ
13974 ケージと、就中多くのBibTeXスタイルファイルが、これらのコマンドを使用しているので、我々はこのオプションを既定で使うこととしました。
13975 \end_layout
13976
13977 \begin_layout Subsection
13978 追加された機能
13979 \end_layout
13980
13981 \begin_layout Standard
13982 LyXでサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう。詳しくはMemoirの取扱説明書
13983 \begin_inset Foot
13984 status collapsed
13985
13986 \begin_layout Plain Layout
13987 \begin_inset Flex URL
13988 status collapsed
13989
13990 \begin_layout Plain Layout
13991
13992 CTAN:/macros/latex/memoir/memman.pdf
13993 \end_layout
13994
13995 \end_inset
13996
13997
13998 \end_layout
13999
14000 \end_inset
14001
14002 を見てください。
14003 \end_layout
14004
14005 \begin_layout Description
14006 概要: 概要が、追加された機能として扱われているのを不思議に思われるかもしれませんが、bookクラスとしては追加された機能なのです。通常bookクラスには概要は
14007 ないのですが、memoirにはあります。これは、どこでも何回でも自由に使うことができます。
14008 \end_layout
14009
14010 \begin_layout Description
14011 章要約: この古い組版様式はご覧になったことがあるかも知れません。章の内容が、見出しの下と目次に要約されているものです(たとえば、「我らが英雄がトロヤに到着する
14012 。彼は友人を失うが、新たな友人を得る。」など)。章要約(chapterprecis)はこれを行います。したがって、章要約は章の下でのみ意味を持ちます。
14013 \end_layout
14014
14015 \begin_layout Description
14016 題辞: 題辞(epigraph)は章頭の、気の利いた標語やモットーです。題辞環境は、そのような標語を組む洗練された方法を提供します。標語本体(本文)とその著者(
14017 出典)は、短い線で区切られます。この環境には二つの引数(本文と出典)が必要なので、ここでもLyXを少しだます必要があります。ここでは、2つの引数の間に、
14018 \emph on
14019 <標語>
14020 \family typewriter
14021 \emph default
14022 }{
14023 \family default
14024 \emph on
14025 <標語の著者>
14026 \emph default
14027 のように、(TeXモードで)波括弧を入れなくてはなりません。
14028 \end_layout
14029
14030 \begin_layout Description
14031 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが、LyXは、そのうちいくつかしかサポートしていません。詩題はその一
14032 つです。これは詩用の中央揃えタイトルで、目次にも表示されます(詩句が詩の標準環境です。Memoirには、詩句の拡張版もありますが、これらを使うためにはTeXコー
14033 ドを使用しなくてはなりません。これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが、LyXではそれができないためです)。
14034 \end_layout
14035
14036 \begin_layout Description
14037 詩題*: 目次に現れない他は詩題と同じです。
14038 \end_layout
14039
14040 \begin_layout Section
14041 Article(mwart)・book(mwbk)・report(mwrep)
14042 \begin_inset Argument
14043 status collapsed
14044
14045 \begin_layout Plain Layout
14046
14047 \family typewriter
14048 mw
14049 \family default
14050 クラス
14051 \end_layout
14052
14053 \end_inset
14054
14055
14056 \end_layout
14057
14058 \begin_layout Standard
14059
14060 \noun on
14061 Tomasz Luczak
14062 \noun default
14063
14064 \end_layout
14065
14066 \begin_layout Standard
14067 LyX文書クラス
14068 \emph on
14069 article (mwart)
14070 \emph default
14071
14072 \emph on
14073 report (mwrep)・book
14074 \emph default
14075  
14076 \emph on
14077 (mwbk)
14078 \emph default
14079 は、それぞれLaTeX文書クラス
14080 \family typewriter
14081 mwart.cls
14082 \family default
14083
14084 \family typewriter
14085 mwrep.cls
14086 \family default
14087
14088 \family typewriter
14089 mwbk.cls
14090 \family default
14091 に対応しています。これらは、標準の
14092 \family typewriter
14093 article.cls
14094 \family default
14095
14096 \family typewriter
14097 report.cls
14098 \family default
14099
14100 \family typewriter
14101 book.cls
14102 \family default
14103 を代替するものであり、多くの点で、ポーランド語の組版慣習によく適合しています。
14104 \end_layout
14105
14106 \begin_layout Standard
14107 基本的な違いは、次の点です。
14108 \end_layout
14109
14110 \begin_layout Itemize
14111 付番のない見出し(
14112 \family sans
14113 節*
14114 \family default
14115 などの星付き)も目次に加えられます。
14116 \end_layout
14117
14118 \begin_layout Itemize
14119 以下のページスタイルの追加
14120 \end_layout
14121
14122 \begin_deeper
14123 \begin_layout Description
14124 uheadings 分離線付きヘッダ
14125 \end_layout
14126
14127 \begin_layout Description
14128 myheadings 
14129 \family typewriter
14130
14131 \backslash
14132 markright
14133 \family default
14134 コマンドおよび
14135 \family typewriter
14136
14137 \backslash
14138 markboth
14139 \family default
14140 コマンドで設定するカスタムヘッダ
14141 \end_layout
14142
14143 \begin_layout Description
14144 myuheadings 分離線付きカスタムヘッダ
14145 \end_layout
14146
14147 \begin_layout Description
14148 outer ページの外側にページ番号
14149 \end_layout
14150
14151 \end_deeper
14152 \begin_layout Itemize
14153 オプション
14154 \end_layout
14155
14156 \begin_deeper
14157 \begin_layout Description
14158 rmheadings セリフ体見出し --- 既定
14159 \end_layout
14160
14161 \begin_layout Description
14162 sfheadings サンセリフ体見出し
14163 \end_layout
14164
14165 \begin_layout Description
14166 authortitle タイトルページは、著者名・タイトルの順で配置 --- 既定
14167 \end_layout
14168
14169 \begin_layout Description
14170 titleauthor タイトルページは、タイトル・著者名の順で配置
14171 \end_layout
14172
14173 \begin_layout Description
14174 withmarginpar ページ上に余白のための場所を確保
14175 \end_layout
14176
14177 \end_deeper
14178 \begin_layout Section
14179 Paper
14180 \end_layout
14181
14182 \begin_layout Standard
14183
14184 \family sans
14185 paper
14186 \family default
14187 文書クラスは標準
14188 \family sans
14189 article
14190 \family default
14191 クラスの代替となるものです。これは
14192 \family sans
14193 同様の
14194 \family default
14195 機能を提供しますが、サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません。
14196 \end_layout
14197
14198 \begin_layout Section
14199 RevTeX4
14200 \end_layout
14201
14202 \begin_layout Standard
14203 by 
14204 \noun on
14205 Amir Karger
14206 \end_layout
14207
14208 \begin_layout Standard
14209 \begin_inset VSpace bigskip
14210 \end_inset
14211
14212
14213 \end_layout
14214
14215 \begin_layout Standard
14216 \noindent
14217
14218 \family sans
14219 Revtex
14220 \begin_inset space ~
14221 \end_inset
14222
14223 4
14224 \family default
14225 テキストクラスは、アメリカ物理学会のRevTeX 4.0(1999年5月の
14226 \begin_inset Formula $\beta$
14227 \end_inset
14228
14229 リリース)クラスで動作します。
14230 \end_layout
14231
14232 \begin_layout Standard
14233 LyXには、RevTeX 3.1で動作する
14234 \family sans
14235 Revtex
14236 \family default
14237 テキストクラスもあります。しかしながら、第3.1版はLaTeX 2.09で動作するものであり、基本的に時代遅れなものになっています。LyXはLaTeX2eを必要とす
14238 ることから、第3.1版はLyXとうまく協調しないことを意味しますが、動作するようには調整してあります。RevTeX 4.0は、LaTeX2eで素直に動作するようにデ
14239 ザインされているので、LyXと
14240 \family sans
14241 RevTeX
14242 \begin_inset space ~
14243 \end_inset
14244
14245 4
14246 \family default
14247 テキストクラスの組で使用するのは、たいへん簡単です。
14248 \end_layout
14249
14250 \begin_layout Standard
14251 この取扱説明書は、RevTeX 4.0の説明書の
14252 \emph on
14253 補完
14254 \emph default
14255 として使用されることを前提としています。したがって、ここではRevTeX固有マクロの説明はせず、必要な場合にはプリアンブルに何と書けば良いかを知っているものとし
14256 て説明します。
14257 \end_layout
14258
14259 \begin_layout Subsection
14260 導入
14261 \end_layout
14262
14263 \begin_layout Standard
14264 RevTeX 4パッケージのREADMEファイルにあるとおり、ともかくRevTeX 4を導入しなくてはなりません。パッケージは、The RevTeX
14265  4 Web Site 
14266 \begin_inset Flex URL
14267 status collapsed
14268
14269 \begin_layout Plain Layout
14270
14271 http://publish.aps.org/revtex4/
14272 \end_layout
14273
14274 \end_inset
14275
14276 から入手することができます。これをLaTeXが検出することのできる場所に導入してください。それから、適当に選んだディレクトリ(もといクラスファイルを導入したのと
14277 は異なるディレクトリ)で簡単なRevTeX 4文書を LaTeXでコンパイルできるかどうか確認してください。この後、LyXを再初期設定すると、クラスファイルを検
14278 出し、RevTeX4テキストクラスが使用できるようになるはずです。
14279 \end_layout
14280
14281 \begin_layout Standard
14282 使い始めるには、
14283 \family typewriter
14284 tex2lyx
14285 \family default
14286 を使ってRevTeX 4文書を読み込むか、またはひな型ディレクトリにある
14287 \family sans
14288 Revtex
14289 \begin_inset space ~
14290 \end_inset
14291
14292 4
14293 \family default
14294 のひな型を使うのが、おそらく一番簡単な方法でしょう。
14295 \end_layout
14296
14297 \begin_layout Subsection
14298 プリアンブルに関すること
14299 \end_layout
14300
14301 \begin_layout Standard
14302
14303 \family typewriter
14304
14305 \backslash
14306 documentclass
14307 \family default
14308 に与える「preprint」や「aps」のような非必須引数は、他のクラス同様、
14309 \family sans
14310 文書\SpecialChar \menuseparator
14311 設定\SpecialChar \menuseparator
14312 文書クラス
14313 \family default
14314
14315 \family sans
14316 クラスオプション
14317 \family default
14318 フィールドに入れます。RevTeXでは、少なくとも一つの非必須引数が必要なことに注意してください。
14319 \end_layout
14320
14321 \begin_layout Standard
14322
14323 \family typewriter
14324
14325 \backslash
14326 draft
14327 \family default
14328 など他のプリアンブルは、他のクラス同様、
14329 \family sans
14330 文書\SpecialChar \menuseparator
14331 設定\SpecialChar \menuseparator
14332 LaTeXプリアンブル
14333 \family default
14334 に入れてください。
14335 \end_layout
14336
14337 \begin_layout Subsection
14338 レイアウト
14339 \end_layout
14340
14341 \begin_layout Standard
14342 レイアウトは、基本的にRevTeX4.0のコマンドに対応しています。たとえば、Emailレイアウトは、
14343 \family typewriter
14344
14345 \backslash
14346 email{}
14347 \family default
14348 に対応しています。(少なくともRevTeX 4.0 Beta現在では)
14349 \family sans
14350 住所
14351 \family default
14352
14353 \family sans
14354 所属
14355 \family default
14356 はまったく同じものなので、両方を使う必要はありません
14357 \begin_inset Foot
14358 status collapsed
14359
14360 \begin_layout Plain Layout
14361 ついでながら、
14362 \family typewriter
14363 tex2lyx
14364 \family default
14365 は両方とも対応しているので、
14366 \family typewriter
14367
14368 \backslash
14369 address
14370 \family default
14371
14372 \family typewriter
14373
14374 \backslash
14375 affiliation
14376 \family default
14377 のどちらも翻訳することができます。
14378 \end_layout
14379
14380 \end_inset
14381
14382
14383 \end_layout
14384
14385 \begin_layout Subsection
14386 重要な注意
14387 \end_layout
14388
14389 \begin_layout Standard
14390 RevTeX 4には、バグを引き起こしがちなために、気をつけなくてはならない特殊な面がいくつかあるため、LyXではさらに気をつけなくてはなりません。
14391 \end_layout
14392
14393 \begin_layout Standard
14394 RevTeXでは、
14395 \family typewriter
14396
14397 \backslash
14398 thanks
14399 \family default
14400 コマンドは、
14401 \family typewriter
14402
14403 \backslash
14404 author
14405 \family default
14406 コマンドの
14407 \emph on
14408 外側
14409 \emph default
14410 に来なくてはなりません。LyXでは、独立した
14411 \family sans
14412 感謝
14413 \family default
14414 レイアウトがこの働きをします。直接
14415 \family sans
14416 、著者
14417 \family default
14418 レイアウトに脚注を付けてしまうと、おかしなことが起こる可能性があります。詳細については、RevTeX 4の取扱説明書をご覧ください。
14419 \end_layout
14420
14421 \begin_layout Standard
14422 また、
14423 \family sans
14424 著者電子メール
14425 \family default
14426
14427 \family sans
14428 著者URL・感謝(thanks)
14429 \family default
14430 レイアウトは、
14431 \family sans
14432 著者
14433 \family default
14434 レイアウトと
14435 \family sans
14436 住所(
14437 \family default
14438 または同等の
14439 \family sans
14440 所属
14441 \family default
14442 )レイアウトの間に置かなければなりません。
14443 \family sans
14444 感謝(thanks)
14445 \family default
14446
14447 \family sans
14448 住所
14449 \family default
14450 の後に置いてしまうと、LaTeXはコンパイルに失敗します。
14451 \end_layout
14452
14453 \begin_layout Subsection
14454 問題点
14455 \end_layout
14456
14457 \begin_layout Standard
14458 このレイアウトの主な問題点は、電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません。例
14459 えば、節レイアウトも非必須引数を使用することができません)。これは、たとえばページヘッダにヘッダ用タイトルを設定したい場合などには、ファイルをLaTeXファイル
14460 に変換した後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません)、テキストエディタを使ってLaTeXファイルを編集し、非必須引数を書き加えなくては
14461 ならないということです。これらのレイアウトがないと、
14462 \family typewriter
14463
14464 \backslash
14465 altaffiliation
14466 \family default
14467 (またそれと同等な
14468 \family typewriter
14469
14470 \backslash
14471 altaddress
14472 \family default
14473 )は使えませんので、対応するレイアウトは存在せず、手動で書き加える必要があります
14474 \begin_inset Foot
14475 status collapsed
14476
14477 \begin_layout Plain Layout
14478
14479 \emph on
14480 JMarcからの註:
14481 \emph default
14482  実は、LyX 1.3.0 では非必須引数を一部サポートしているのですが、このレイアウトは、まだこの機能を使うようにはアップデートされていないのです。
14483 \end_layout
14484
14485 \end_inset
14486
14487
14488 \end_layout
14489
14490 \begin_layout Section
14491 Springer学術誌(
14492 \family sans
14493 svjour)
14494 \end_layout
14495
14496 \begin_layout Standard
14497
14498 \noun on
14499 Martin Vermeer
14500 \noun default
14501
14502 \end_layout
14503
14504 \begin_layout Subsection
14505 説明
14506 \end_layout
14507
14508 \begin_layout Standard
14509 これは、Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです。
14510 \begin_inset Flex URL
14511 status collapsed
14512
14513 \begin_layout Plain Layout
14514
14515 http://www.springer.de/author/tex/help-journals.html
14516 \end_layout
14517
14518 \end_inset
14519
14520 に必要なクラスファイル(LaTeX2e用になりました)とそれに対応する学術誌の一覧があります。このレイアウトはモジュール式になっています。つまり、全ジャーナル共
14521 通部分は
14522 \family typewriter
14523 svjour.inc
14524 \family default
14525 に実装されており、各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
14526 \family typewriter
14527 svjog.layout
14528 \family default
14529 など)から取り込むことができます。
14530 \end_layout
14531
14532 \begin_layout Standard
14533 このことは、上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには、
14534 \family typewriter
14535 svjog.layout
14536 \family default
14537 に書かれている指示に従って、自作の
14538 \family typewriter
14539 sv
14540 \family default
14541 <学術誌名>
14542 \family typewriter
14543 .layout
14544 \family default
14545 を書くだけで良いことを意味します。
14546 \end_layout
14547
14548 \begin_layout Standard
14549 このレイアウトは、Journal of Geodesyに対してのみ、充分な試験が為されています。
14550 \family typewriter
14551 svjour
14552 \family default
14553
14554 \family typewriter
14555 svjog
14556 \family default
14557 は、標準LyX頒布版に収録済みです。関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し、LaTeXを再設定した後(teT
14558 eXの場合は、必要に応じてroot権限で
14559 \family typewriter
14560 texhash
14561 \family default
14562 を実行します)、LyXを再初期設定すれば、動作するはずです。
14563 \end_layout
14564
14565 \begin_layout Subsection
14566 新スタイル
14567 \end_layout
14568
14569 \begin_layout Standard
14570 多くの定理環境 --- 
14571 \family sans
14572 主張
14573 \family default
14574
14575 \family sans
14576 推論
14577 \family default
14578 ・\SpecialChar \ldots{}
14579
14580 \family sans
14581 定理
14582 \family default
14583
14584 \end_layout
14585
14586 \begin_layout Standard
14587
14588 \family sans
14589 ヘッドノート
14590 \family default
14591
14592 \family sans
14593 献呈
14594 \family default
14595
14596 \family sans
14597 サブタイトル・ヘッダ用LaTeXタイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(ackno
14598 wledgement)
14599 \family default
14600 。詳しくは Springerのクラスファイルの説明書を読んでください。
14601 \end_layout
14602
14603 \begin_layout Subsection
14604 サポートしているジャーナル
14605 \end_layout
14606
14607 \begin_layout Itemize
14608
14609 \emph on
14610 Journal of Geodesy
14611 \emph default
14612
14613 \family typewriter
14614 svjog.layout
14615 \family default
14616  --- Martin Vermeer
14617 \end_layout
14618
14619 \begin_layout Itemize
14620
14621 \emph on
14622 Probability Theory and Related Fields
14623 \emph default
14624
14625 \family typewriter
14626 svprobth.layout
14627 \family default
14628  --- Jean-Marc Lasgouttes
14629 \end_layout
14630
14631 \begin_layout Standard
14632 あなた自身のレイアウトファイルをつくってください。難しくはありません。
14633 \end_layout
14634
14635 \begin_layout Subsection
14636 Credits
14637 \end_layout
14638
14639 \begin_layout Standard
14640 これらのファイルは、以前の 
14641 \family typewriter
14642 ejour2.layout
14643 \family default
14644 をもとにしています。
14645 \family typewriter
14646 ejour2.layout
14647 \family default
14648 は SpringerのLaTeX 2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです。これらのファイルはすでにありません。Jean-Mar
14649 c Lasgouttesのおかげで LyXのレイアウトファイルのメカニズムをよりよく理解することができました。
14650 \end_layout
14651
14652 \begin_layout Subsection
14653 バグ
14654 \end_layout
14655
14656 \begin_layout Standard
14657 多分あります。以前の 
14658 \family typewriter
14659 ejour2
14660 \family default
14661 よりは少なくなっているとは思いますが。
14662 \end_layout
14663
14664 \begin_layout Standard
14665 制限事項:定理環境の環境の番号は表示されません。#が表示されるだけです。
14666 \end_layout
14667
14668 \begin_layout Section
14669 Slides(別名
14670 \noun on
14671 SliTeX
14672 \noun default
14673
14674 \begin_inset Foot
14675 status collapsed
14676
14677 \begin_layout Plain Layout
14678 (訳註)この節の内容は、全般的に古くなっています。
14679 \end_layout
14680
14681 \end_inset
14682
14683
14684 \begin_inset CommandInset label
14685 LatexCommand label
14686 name "sec:slitex"
14687
14688 \end_inset
14689
14690
14691 \end_layout
14692
14693 \begin_layout Standard
14694
14695 \noun on
14696 John Weiss
14697 \noun default
14698
14699 \end_layout
14700
14701 \begin_layout Subsection
14702 はじめに
14703 \end_layout
14704
14705 \begin_layout Standard
14706 本節では、オーバーへッドプロジェクタ用のスライドをつくるのに、LyXをどのように使えばよいかを説明します。これを行う文書クラスには、既定のslideクラスと
14707 \family sans
14708 FoilTeX
14709 \family default
14710 スライドクラスの2つがあります。本節は前者について説明を行います。
14711 \end_layout
14712
14713 \begin_layout Standard
14714 誤解のないように、正しく明確に、もう一度言っておきます。
14715 \end_layout
14716
14717 \begin_layout Standard
14718 \begin_inset VSpace bigskip
14719 \end_inset
14720
14721
14722 \end_layout
14723
14724 \begin_layout Standard
14725 \align center
14726
14727 \size large
14728 本節は文書クラス
14729 \begin_inset Quotes eld
14730 \end_inset
14731
14732
14733 \family sans
14734 transparencies (slides)
14735 \family default
14736
14737 \begin_inset Quotes erd
14738 \end_inset
14739
14740
14741 \emph on
14742 のみ
14743 \emph default
14744 を説明しています。
14745 \end_layout
14746
14747 \begin_layout Standard
14748 \begin_inset VSpace bigskip
14749 \end_inset
14750
14751
14752 \end_layout
14753
14754 \begin_layout Standard
14755
14756 \family sans
14757 「slides (FoilTeX)
14758 \family default
14759 」の説明をお探しならば、第
14760 \begin_inset CommandInset ref
14761 LatexCommand ref
14762 reference "sec:foiltex"
14763
14764 \end_inset
14765
14766 節をご覧ください。
14767 \family sans
14768 foils
14769 \family default
14770 クラス「
14771 \family sans
14772 slides (FoilTeX)
14773 \family default
14774 」は、実際、本節で説明している既定
14775 \family sans
14776 slides
14777 \family default
14778 クラスよりも良いようです
14779 \begin_inset Foot
14780 status collapsed
14781
14782 \begin_layout Plain Layout
14783 \SpecialChar \ldots{}
14784
14785 \family sans
14786 FoilTeX
14787 \family default
14788 の支持者からは聞いています。けれども私は使ったことがないので、本当かどうか確かめようがありません。
14789 \end_layout
14790
14791 \end_inset
14792
14793
14794 \end_layout
14795
14796 \begin_layout Standard
14797 このクラスは、旧SLITeXパッケージをLaTeX2e用に改良したものです。LaTeX2e頒布版すべてが、このクラス(以下では単に「
14798 \family sans
14799 slides
14800 \family default
14801 」と述べることにします)を含んでいるので、あなたもお持ちのはずです。前述の
14802 \family sans
14803 foils
14804 \family default
14805 のように、同じくオーバーへッドプロジェクタ用のスライドを生成しながら、このクラスよりも良い仕事をするクラスもあります。しかしながら、オーバーレイを生成するなど、
14806 他のクラスにはできないが
14807 \family sans
14808 slides
14809 \family default
14810 ならばできることもあります。詳しくは以下をお読みください。
14811 \end_layout
14812
14813 \begin_layout Subsection
14814 使い始めるには
14815 \begin_inset CommandInset label
14816 LatexCommand label
14817 name "sec:slidesetup"
14818
14819 \end_inset
14820
14821
14822 \end_layout
14823
14824 \begin_layout Standard
14825 当然ながら、この文書クラスを使用するには、
14826 \family sans
14827 文書\SpecialChar \menuseparator
14828 設定
14829 \family default
14830 ダイアログのクラスリストから「
14831 \family sans
14832 transparencies (slides)
14833 \family default
14834 」を選択しなくてはなりません。このクラスについて、以下のように、特に知っておいた方が良いことがいくつかあります。
14835 \end_layout
14836
14837 \begin_layout Itemize
14838
14839 \family sans
14840 用紙方向
14841 \family default
14842
14843 \family sans
14844 二段組文書
14845 \family default
14846 の各オプションは、あえて変更する必要はありません。これらのオプションは、
14847 \family sans
14848 slides
14849 \family default
14850 クラスではサポートされていないので、効果がありません。
14851 \end_layout
14852
14853 \begin_layout Itemize
14854
14855 \family sans
14856 ヘディング様式
14857 \family default
14858 オプションは、このクラスでは少し異なった振る舞いをします。各選択肢とその機能は、以下の通りです。
14859 \end_layout
14860
14861 \begin_deeper
14862 \begin_layout Description
14863 プレーン(plain) 最終出力の右下隅にページ番号が付きます。
14864 \end_layout
14865
14866 \begin_layout Description
14867 設定(headings)
14868 \family sans
14869  プレーン(plain)
14870 \family default
14871 と同様ですが、それ以外にあなたが指定したタイムマーカーをすべて出力します。これが既定値です。
14872 \end_layout
14873
14874 \begin_layout Description
14875 空 最終出力には、ページ番号もタイムマーカーも位置揃えマーカーも出力されません。
14876 \end_layout
14877
14878 \end_deeper
14879 \begin_layout Itemize
14880
14881 \family sans
14882 slides
14883 \family default
14884 クラスには、もう一つ
14885 \family typewriter
14886 clock
14887 \family default
14888 というオプションがあります。これを使用するには、
14889 \family sans
14890 クラスオプション
14891 \family default
14892 に「
14893 \family typewriter
14894 clock
14895 \family default
14896 」と入力してください。
14897 \end_layout
14898
14899 \begin_deeper
14900 \begin_layout Standard
14901 このオプションを使うと、
14902 \family sans
14903 注釈
14904 \family default
14905 にタイムマーカーを加えることができます。詳細は、第
14906 \begin_inset CommandInset ref
14907 LatexCommand ref
14908 reference "sec:slideNote"
14909
14910 \end_inset
14911
14912 節をご覧ください。
14913 \end_layout
14914
14915 \end_deeper
14916 \begin_layout Standard
14917
14918 \family sans
14919 slides
14920 \family default
14921 クラスを用いた文書を自動的にセットアップするには、ひな型ファイル「
14922 \family typewriter
14923 slides.lyx
14924 \family default
14925 」を使用することもできます(新規ファイルを開く際に
14926 \family sans
14927 ファイル\SpecialChar \menuseparator
14928 新規(ひな型使用)
14929 \family default
14930 を使用してください)。ひな型ファイルには、このクラスが使用する特別な段落環境の用例も含まれています。これらについては、以下で説明します。
14931 \end_layout
14932
14933 \begin_layout Subsection
14934 段落環境
14935 \end_layout
14936
14937 \begin_layout Subsubsection
14938
14939 \family sans
14940 サポートされている環境
14941 \end_layout
14942
14943 \begin_layout Standard
14944 新しく
14945 \family sans
14946 slides
14947 \family default
14948 文書を開いたときにまず気付くのは、フォント寸法とフォント族の違いでしょう。ここでは、
14949 \family sans
14950 サンセリフ体
14951 \family default
14952 フォントの
14953 \family sans
14954 極大
14955 \family default
14956 寸法が用いられており、出力でもこのフォントが使用されます。これは、現在スライドを作成中であることの「目印」だと考えてください。出力スライドは大きなフォントを使用
14957 するため、書ける場所は少なくなります。もちろん、既定の大きな画面フォントはWYSIWYGではなく、スライドであることの目印に過ぎません。
14958 \end_layout
14959
14960 \begin_layout Standard
14961 次に気付くのは、(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう。通常見かける環境の多くがなくなって、代わりに5つの新しい環境が入ってい
14962 ます。これは、
14963 \family sans
14964 slides
14965 \family default
14966 クラスが、標準段落環境のうち以下のものしかサポートしていないためです。
14967 \end_layout
14968
14969 \begin_layout Itemize
14970
14971 \family sans
14972 標準
14973 \end_layout
14974
14975 \begin_layout Itemize
14976
14977 \family sans
14978 箇条書き(記号)
14979 \end_layout
14980
14981 \begin_layout Itemize
14982
14983 \family sans
14984 箇条書き(連番)
14985 \end_layout
14986
14987 \begin_layout Itemize
14988
14989 \family sans
14990 箇条書き(記述)
14991 \end_layout
14992
14993 \begin_layout Itemize
14994
14995 \family sans
14996 箇条書き(一覧)
14997 \end_layout
14998
14999 \begin_layout Itemize
15000
15001 \family sans
15002 引用(字下げあり)
15003 \end_layout
15004
15005 \begin_layout Itemize
15006
15007 \family sans
15008 引用(字下げなし)
15009 \end_layout
15010
15011 \begin_layout Itemize
15012
15013 \family sans
15014 詩句
15015 \end_layout
15016
15017 \begin_layout Itemize
15018
15019 \family sans
15020 キャプション
15021 \end_layout
15022
15023 \begin_layout Itemize
15024
15025 \family sans
15026 LyXコード
15027 \end_layout
15028
15029 \begin_layout Itemize
15030
15031 \family sans
15032 コメント
15033 \end_layout
15034
15035 \begin_layout Standard
15036 これ以外の標準的な環境、例えば節見出し用の環境などは
15037 \family sans
15038 slides
15039 \family default
15040 クラスでは使えません。
15041 \end_layout
15042
15043 \begin_layout Standard
15044 一方、以下の新しい環境があります。
15045 \end_layout
15046
15047 \begin_layout Itemize
15048
15049 \family sans
15050 スライド
15051 \end_layout
15052
15053 \begin_layout Itemize
15054
15055 \family sans
15056 オーバーレイ
15057 \end_layout
15058
15059 \begin_layout Itemize
15060
15061 \family sans
15062 注釈
15063 \end_layout
15064
15065 \begin_layout Itemize
15066
15067 \family sans
15068 不可視文
15069 \end_layout
15070
15071 \begin_layout Itemize
15072
15073 \family sans
15074 可視文
15075 \end_layout
15076
15077 \begin_layout Standard
15078 これら5つの環境は、LyXの「機能」のために使い方に癖があります。ご存じのように、LyXでは、空の段落環境に他の環境を入れることができません。それ自体は素晴らし
15079 いデザインなのですが、これは、スライドを平文以外では書き始めることができないことを意味します。これを取り扱うためには、ちょっとした「LaTeXマジック」が必要に
15080 なります。
15081 \end_layout
15082
15083 \begin_layout Subsubsection
15084 新環境の癖
15085 \begin_inset CommandInset label
15086 LatexCommand label
15087 name "sec:スライドの癖"
15088
15089 \end_inset
15090
15091
15092 \end_layout
15093
15094 \begin_layout Standard
15095 5つの新しい環境にはすべて、LyX現行版の制約に由来する癖があります。いま述べたように、LyXでは、環境を別の環境で開始することが禁止されています。これを回避す
15096 るために、
15097 \family sans
15098 スライド
15099 \family default
15100 環境は『
15101 \emph on
15102 ユーザーの手引き
15103 \emph default
15104 』で述べられているような段落環境ではなくなっています。
15105 \end_layout
15106
15107 \begin_layout Standard
15108
15109 \family sans
15110 スライド
15111 \family default
15112
15113 \family sans
15114 オーバーレイ
15115 \family default
15116
15117 \family sans
15118 注釈
15119 \family default
15120 は「疑似環境」だとお考えください。これらは節見出しや「
15121 \family sans
15122 キャプション
15123 \family default
15124 」のように見えますが、実際には(必要なら前段落を終了して)新しい段落環境を開始します。同様に、
15125 \family sans
15126 不可視文
15127 \family default
15128
15129 \family sans
15130 可視文
15131 \family default
15132 も「疑似コマンド」とお考えください。この2つは特定のアクションを行います。
15133 \end_layout
15134
15135 \begin_layout Standard
15136
15137 \family sans
15138 スライド
15139 \family default
15140
15141 \family sans
15142 オーバーレイ
15143 \family default
15144
15145 \family sans
15146 注釈
15147 \family default
15148
15149 \family sans
15150 不可視文
15151 \family default
15152
15153 \family sans
15154 可視文
15155 \family default
15156 の5環境に共通しているのは、長めのラベルを持つことです。このラベルに続く文章—通常は段落環境の内容になるはずですが—は、
15157 \family sans
15158 スライド
15159 \family default
15160
15161 \family sans
15162 オーバーレイ
15163 \family default
15164
15165 \family sans
15166 注釈
15167 \family default
15168
15169 \family sans
15170 不可視文
15171 \family default
15172
15173 \family sans
15174 可視文
15175 \family default
15176 では、まったく意味がなく、LyXはこの部分を完全に無視します。これらの5つの環境の内容は、完全に空のままにしておいて構いません。
15177 \end_layout
15178
15179 \begin_layout Standard
15180 長めのラベルの後に文章を入れる
15181 \emph on
15182 必要は
15183 \emph default
15184 まったく
15185 \emph on
15186 ない
15187 \emph default
15188 とはいえ、何か書いておきたいこともあるかもしれません。たとえば、スライドの内容に関する短い説明などがそうでしょう。この場合、いつもどおり説明用のコメントを入力し
15189
15190 \family sans
15191 Return
15192 \family default
15193 を押してください。
15194 \end_layout
15195
15196 \begin_layout Standard
15197 一方、説明文を入れたくない場合には、LyXの制約に直面します。自然が真空を憎むように、LyXでは、古い環境に何かを置くまでは、その中に新しい環境を入れることがで
15198 きません。そこで以下のようにしてください。
15199 \end_layout
15200
15201 \begin_layout Itemize
15202 新しい
15203 \family sans
15204 スライド
15205 \family default
15206
15207 \family sans
15208 オーバーレイ
15209 \family default
15210
15211 \family sans
15212 注釈
15213 \family default
15214
15215 \family sans
15216 不可視文
15217 \family default
15218
15219 \family sans
15220 可視文
15221 \family default
15222
15223 \emph on
15224 中に入れる
15225 \emph default
15226 文章を入力してください。
15227 \end_layout
15228
15229 \begin_layout Itemize
15230 段落の先頭に移動します。
15231 \end_layout
15232
15233 \begin_layout Itemize
15234 次に
15235 \family sans
15236 Return
15237 \family default
15238 を押します。
15239 \end_layout
15240
15241 \begin_layout Itemize
15242 最後に、この新しい空の段落を
15243 \family sans
15244 スライド
15245 \family default
15246
15247 \family sans
15248 オーバーレイ
15249 \family default
15250
15251 \family sans
15252 注釈
15253 \family default
15254
15255 \family sans
15256 不可視文
15257 \family default
15258
15259 \family sans
15260 可視文
15261 \family default
15262 に変更します。
15263 \end_layout
15264
15265 \begin_layout Standard
15266 将来のLyXでは、このような癖が解決されることを祈っています\SpecialChar \ldots{}
15267
15268 \begin_inset Foot
15269 status collapsed
15270
15271 \begin_layout Plain Layout
15272 (訳註)ここの記述は古くなっています。
15273 \end_layout
15274
15275 \end_inset
15276
15277
15278 \end_layout
15279
15280 \begin_layout Subsection
15281
15282 \family sans
15283 スライド
15284 \family default
15285
15286 \family sans
15287 オーバーレイ
15288 \family default
15289
15290 \family sans
15291 注釈で発表用のスライドを作る
15292 \end_layout
15293
15294 \begin_layout Subsubsection
15295
15296 \family sans
15297 スライド
15298 \family default
15299 環境を使う
15300 \end_layout
15301
15302 \begin_layout Standard
15303 もし本節が、実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば、大いにがっかりされるかもしれません。当然ながら、プレゼンテーション用の資
15304 料を準備するうえで
15305 \family sans
15306 slides
15307 \family default
15308 クラスを役立てる方法を詳しく説明はしますが、内容をどうするかはあなた次第です(そしてこれもLyXの哲学です)。
15309 \end_layout
15310
15311 \begin_layout Standard
15312
15313 \family sans
15314 スライド
15315 \family default
15316 環境を選択すれば(方法は第
15317 \begin_inset CommandInset ref
15318 LatexCommand ref
15319 reference "sec:スライドの癖"
15320
15321 \end_inset
15322
15323 節参照のこと)、LyXは新規スライドを開始します。この環境ないし「疑似環境」のラベルは、鮮やかな青で「新規スライド:」と表示されます。この環境の後のテキスト環境
15324 や段落環境は、すべて新規スライドに入ります。簡単ですよね。
15325 \end_layout
15326
15327 \begin_layout Standard
15328 Slidesは、おそらくLyXの中で強制的に改頁をしなくてはならない唯一のクラスです(これは
15329 \family sans
15330 段落レイアウト
15331 \family default
15332 ダイアログで指定できます)。実際、一つのスライドの内容を入力し終わったら、改頁したくなるはずです。仮に一つのスライドに物理的に入りきらない文章を入力したとすると
15333 、入りきらない部分は、次の新規スライドにまわされます。しかしながら、入りきらない部分のスライドにはページ番号が付きませんので、こうするのはお勧めしません。その上
15334 、一枚に収まらないスライドでは、
15335 \family sans
15336 オーバーレイ
15337 \family default
15338 を使用すると干渉する恐れがあります。
15339 \end_layout
15340
15341 \begin_layout Standard
15342
15343 \family sans
15344 オーバーレイ
15345 \family default
15346 環境と
15347 \family sans
15348 注釈
15349 \family default
15350 環境も、
15351 \family sans
15352 スライド
15353 \family default
15354 環境と同様の動作を示します。これらは、青の代わりに鮮やかなマゼンタで、それぞれ「
15355 \noun on
15356 新規オーバーレイ
15357 \noun default
15358 :」ないし「
15359 \noun on
15360 新規注釈:
15361 \noun default
15362 」というラベルを表示します。ラベルのフォントも、3つの環境でそれぞれ異なるものが使用されます。
15363 \end_layout
15364
15365 \begin_layout Standard
15366
15367 \family sans
15368 スライド
15369 \family default
15370 と同様に、
15371 \family sans
15372 オーバーレイ
15373 \family default
15374
15375 \family sans
15376 注釈
15377 \family default
15378 の内容が、一つのスライドないしページに物理的に収まりきらない場合には、余分は新規スライドに回されます。この場合には、
15379 \family sans
15380 注釈
15381 \family default
15382
15383 \family sans
15384 オーバーレイ
15385 \family default
15386 の本来の目的が達せられなくなりますので、ここでもこのような状態は避けるべきでしょう。
15387 \end_layout
15388
15389 \begin_layout Subsubsection
15390
15391 \family sans
15392 スライドでオーバーレイを使用する
15393 \end_layout
15394
15395 \begin_layout Standard
15396
15397 \family sans
15398 オーバーレイ
15399 \family default
15400 の背後にある考え方は、別のスライドの上にスライドを載せようとするものです。メインの
15401 \family sans
15402 スライド
15403 \family default
15404 に図があるとき、関連した文章を表示する前に、図について議論を進めたいと思うことがあるかもしれません。これを行うひとつの方法は、
15405 \family sans
15406 スライド
15407 \family default
15408 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが、この方法は、たとえばグラフを他のグラフに重ねたい場合などには、うまく行きません。この場合には、二つ
15409 のグラフを揃えるために、重ねる二つのスライドを、喋りながら手探りで揃えなくてはなりません。これらのような場合には、
15410 \family sans
15411 オーバーレイ
15412 \family default
15413 環境を使えば、もっと楽になります。
15414 \end_layout
15415
15416 \begin_layout Standard
15417
15418 \family sans
15419 オーバーレイ
15420 \family default
15421 は、「親」
15422 \family sans
15423 スライド
15424 \family default
15425 のページ番号を引継ぎ、その後に「
15426 \family typewriter
15427 -a
15428 \family default
15429 」を付け加えます
15430 \begin_inset Foot
15431 status collapsed
15432
15433 \begin_layout Plain Layout
15434 想像できるように、複数のオーバーレイがあれば、「
15435 \family typewriter
15436 -a
15437 \family default
15438 」「
15439 \family typewriter
15440 -b
15441 \family default
15442 」「
15443 \family typewriter
15444 -c
15445 \family default
15446 」などが親スライドのページ番号に付け加えられます。
15447 \end_layout
15448
15449 \end_inset
15450
15451 。当然のことながら、
15452 \family sans
15453 スライド
15454 \family default
15455
15456 \family sans
15457 オーバーレイ
15458 \family default
15459 の内容は両方とも、1枚のスライドに物理的に収まるようになっていなければなりません。
15460 \family sans
15461 オーバーレイ
15462 \family default
15463
15464 \family sans
15465 スライド
15466 \family default
15467 の「一部」であると考えるのがよいでしょう。LyXでは、
15468 \family sans
15469 オーバーレイ
15470 \family default
15471 のラベルを
15472 \family sans
15473 スライド
15474 \family default
15475 のラベルよりも下げることで、このことを視覚的に表しています。また、印刷可能な出力を生成すると、
15476 \family sans
15477 オーバーレイ
15478 \family default
15479 と親
15480 \family sans
15481 スライド
15482 \family default
15483 両方の四隅に、揃えマーカーがあることに気づかれるはずです。これは、2枚のスライドを物理的に重ね合わせるための補助となるものです。
15484 \end_layout
15485
15486 \begin_layout Standard
15487 2つのスライドをオーバーレイさせる際の大きな問題は、2枚のスライドの内容を揃えることです。2枚目のスライドのグラフには、どれだけの余白を残しておくべきなのでしょ
15488 うか?さらにややこしく、2枚目のスライドにグラフと文章を入れたいときに、その間に割り込んでしまうような文章がメインスライドにある場合には、どうでしょうか?正しい
15489 寸法の垂直スペースを挿入してみることもできるでしょう。しかし、もっと良い方法として、
15490 \family sans
15491 不可視文
15492 \family default
15493
15494 \family sans
15495 可視文
15496 \family default
15497 を使用する方法があります。
15498 \end_layout
15499
15500 \begin_layout Standard
15501 これらの名前が意味するとおり、
15502 \family sans
15503 不可視文
15504 \family default
15505
15506 \family sans
15507 可視文
15508 \family default
15509 は、それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です。しかしながら、第
15510 \begin_inset CommandInset ref
15511 LatexCommand ref
15512 reference "sec:スライドの癖"
15513
15514 \end_inset
15515
15516 節で述べたように、この2つの環境の
15517 \emph on
15518
15519 \emph default
15520 には何も置くことができません。
15521 \family sans
15522 不可視文
15523 \family default
15524 を作成すると、「<以下不可視文>」と書かれた水色のラベルが、ページに中央揃えで表示されます。このラベルに続く段落は、それが置かれるべき
15525 \family sans
15526 スライド
15527 \family default
15528 (あるいは
15529 \family sans
15530 オーバーレイ
15531 \family default
15532 ;どちらでも同じことです)部分に、代わりに空白の部分が置かれます。
15533 \end_layout
15534
15535 \begin_layout Standard
15536
15537 \family sans
15538 可視文
15539 \family default
15540 の場合には、中央揃えのラベルは、鮮やかな緑の「<以下可視文>」となります。このラベル以降の段落は、通常通りの挙動を示します。新規の
15541 \family sans
15542 スライド
15543 \family default
15544
15545 \family sans
15546 オーバーレイ
15547 \family default
15548
15549 \family sans
15550 注釈
15551 \family default
15552 を開始すると、
15553 \family sans
15554 不可視文
15555 \family default
15556 は自動的に終了されることに注意してください。したがって、
15557 \family sans
15558 スライド
15559 \family default
15560 の終わりでは、
15561 \family sans
15562 可視文
15563 \family default
15564 を使用する必要はありません。
15565 \end_layout
15566
15567 \begin_layout Standard
15568 ここまでで、
15569 \family sans
15570 スライド
15571 \family default
15572
15573 \family sans
15574 オーバーレイ
15575 \family default
15576 上で
15577 \family sans
15578 不可視文
15579 \family default
15580
15581 \family sans
15582 可視文
15583 \family default
15584 を適切に使用して、スライドをオーバーレイさせる方法が明らかになったことと思います。
15585 \end_layout
15586
15587 \begin_layout Enumerate
15588 メインのスライドか
15589 \family sans
15590 オーバーレイ
15591 \family default
15592 かに関わらず、スライド上に現れるすべてを含んだ
15593 \family sans
15594 スライド
15595 \family default
15596 を作成します。
15597 \end_layout
15598
15599 \begin_layout Enumerate
15600
15601 \family sans
15602 オーバーレイ
15603 \family default
15604 のみに表示するすべての図や段落の前に、
15605 \family sans
15606 不可視文
15607 \family default
15608 環境を挿入し、必要ならば、
15609 \family sans
15610 オーバーレイ
15611 \family default
15612 のみの文章の後に
15613 \family sans
15614 可視文
15615 \family default
15616 環境を挿入します。
15617 \end_layout
15618
15619 \begin_layout Enumerate
15620
15621 \family sans
15622 スライド
15623 \family default
15624 の直後から、
15625 \family sans
15626 オーバーレイ
15627 \family default
15628 を開始します。
15629 \end_layout
15630
15631 \begin_layout Enumerate
15632 この
15633 \family sans
15634 スライド
15635 \family default
15636 の内容を
15637 \family sans
15638 オーバーレイ
15639 \family default
15640 にコピーします。
15641 \end_layout
15642
15643 \begin_layout Enumerate
15644
15645 \family sans
15646 オーバーレイ
15647 \family default
15648 内部の
15649 \family sans
15650 不可視文
15651 \family default
15652 行をすべて
15653 \family sans
15654 不可視文
15655 \family default
15656 に変更し、
15657 \family sans
15658 可視文
15659 \family default
15660
15661 \family sans
15662 不可視文
15663 \family default
15664 に変更します。
15665 \end_layout
15666
15667 \begin_layout Standard
15668 これだけです。これで
15669 \family sans
15670 オーバーレイ
15671 \family default
15672 ができあがりました。
15673 \end_layout
15674
15675 \begin_layout Standard
15676 LyX 
15677 \family sans
15678 slides
15679 \family default
15680 クラスをデザインする上で、ひとつ残された問題があります。段落途中の文章を不可視にしたり、不可視段落の途中の文章を再度可視にしたりすることはできないのです。これを
15681 実現するためには、LaTeXコードを埋め込む必要があります
15682 \begin_inset Foot
15683 status collapsed
15684
15685 \begin_layout Plain Layout
15686 このコマンドは、
15687 \end_layout
15688
15689 \begin_layout Itemize
15690
15691 \family typewriter
15692 {
15693 \backslash
15694 invisible \SpecialChar \ldots{}
15695  }
15696 \end_layout
15697
15698 \begin_layout Itemize
15699
15700 \family typewriter
15701 {
15702 \backslash
15703 visible \SpecialChar \ldots{}
15704  }
15705 \end_layout
15706
15707 \begin_layout Plain Layout
15708 \SpecialChar \ldots{}
15709 のような形となり、TeXとしてマークする必要があります。「可視性」を変更したい文章は、波括弧のあいだ(そして
15710 \family typewriter
15711
15712 \backslash
15713 invisible
15714 \family default
15715 ないし
15716 \family typewriter
15717
15718 \backslash
15719 visible
15720 \family default
15721 コマンドの後ろ)に入れます。TeXとしてマークする方法がわからない場合は、
15722 \emph on
15723 ユーザーの手引き
15724 \emph default
15725 をご参照ください。
15726 \end_layout
15727
15728 \end_inset
15729
15730
15731 \end_layout
15732
15733 \begin_layout Subsubsection
15734
15735 \family sans
15736 スライドで注釈を使う
15737 \family default
15738
15739 \begin_inset CommandInset label
15740 LatexCommand label
15741 name "sec:スライド注釈"
15742
15743 \end_inset
15744
15745
15746 \end_layout
15747
15748 \begin_layout Standard
15749
15750 \family sans
15751 オーバーレイ
15752 \family default
15753 と同様、
15754 \family sans
15755 注釈
15756 \family default
15757 も「親」
15758 \family sans
15759 スライド
15760 \family default
15761 に関連付けられています。ここでもLyX
15762 \family sans
15763 スライド
15764 \family default
15765 クラスは視覚的な効果を与えています。
15766 \family sans
15767 注釈
15768 \family default
15769 のラベルは
15770 \family sans
15771 スライド
15772 \family default
15773 よりも短く(オーバーレイのラベルよりも長いですが)、
15774 \family sans
15775 オーバーレイ
15776 \family default
15777 のラベルと同様、派手な赤紫色です。加えて、印刷した
15778 \family sans
15779 注釈
15780 \family default
15781 には、「親」スライドのページ番号に「
15782 \family typewriter
15783 -
15784 \family default
15785 1」「
15786 \family typewriter
15787 -
15788 \family default
15789 2」「
15790 \family typewriter
15791 -
15792 \family default
15793 3」等を付けたページ番号が付けられます。1つの
15794 \family sans
15795 スライド
15796 \family default
15797 には、複数の
15798 \family sans
15799 注釈
15800 \family default
15801 を関連付けることができるので、
15802 \family sans
15803 スライド
15804 \family default
15805
15806 \family sans
15807 オーバーレイ
15808 \family default
15809 と同じように、長い注釈は、1枚の紙に収まるように分割したいと思われるに違いありません。
15810 \end_layout
15811
15812 \begin_layout Standard
15813
15814 \family sans
15815 注釈
15816 \family default
15817 の目的は明らかです。
15818 \family sans
15819 スライド
15820 \family default
15821 に関して付け加えたいことを書き留めておくことです。特定の
15822 \family sans
15823 スライド
15824 \family default
15825 についての覚書として使うこともできます。後者の場合には、タイムマーカを利用したいこともあるかもしれません。現在のところ、LyXの
15826 \family sans
15827 スライド
15828 \family default
15829 クラスは、
15830 \noun on
15831 Sli
15832 \noun default
15833 TeXの機能であるタイムマーカを「ネイティブには」サポートしていません。したがって、LaTeXコードを使用することに頼らなくてはなりません。
15834 \end_layout
15835
15836 \begin_layout Standard
15837 タイムマーカを使用するには、クラスオプション「
15838 \family typewriter
15839 clock
15840 \family default
15841 」を追加指定する必要があります(第
15842 \begin_inset CommandInset ref
15843 LatexCommand ref
15844 reference "sec:slidesetup-1"
15845
15846 \end_inset
15847
15848 節参照)。このオプションはタイムマーカ機能を有効にして、生成したすべての
15849 \family sans
15850 注釈
15851 \family default
15852 の左下にタイムマーカを表示します。タイムマーカに表示するものを設定するには、LaTeXコマンド「
15853 \family typewriter
15854
15855 \backslash
15856 settime{}
15857 \family default
15858 」および「
15859 \family typewriter
15860
15861 \backslash
15862 addtime{}
15863 \family default
15864 」を使用します。両コマンドは、秒で測った時間を引数にとります。「
15865 \family typewriter
15866
15867 \backslash
15868 settime{}
15869 \family default
15870 」は、タイムマーカを特定の時間に設定し、「
15871 \family typewriter
15872
15873 \backslash
15874 addtime{}
15875 \family default
15876 」は、タイムマーカを指定した分だけ進めます。このようにタイムマーカと
15877 \family sans
15878 注釈
15879 \family default
15880 を用いれば、特定の
15881 \family sans
15882 スライド
15883 \family default
15884 にどれだけの時間をかけるのか忘れないでいられます。
15885 \end_layout
15886
15887 \begin_layout Standard
15888 最後に、説明しておくべき機能がもう一つあります。当然ながら、
15889 \family sans
15890 スライド
15891 \family default
15892
15893 \family sans
15894 オーバーレイ
15895 \family default
15896 はすべてスライドに、
15897 \family sans
15898 注釈
15899 \family default
15900 はすべて普通の紙に印刷したいはずです。しかしながら、
15901 \family sans
15902 注釈
15903 \family default
15904 は関連付けられた親スライドの直後に
15905 \emph on
15906 来なくてはなりません
15907 \emph default
15908 。ユーザーはどうしたら良いのでしょうか。
15909 \end_layout
15910
15911 \begin_layout Standard
15912 幸いなことに、どれを印刷するか選択することを可能にするLaTeXコマンドが、2種類あります。どちらも文書のプリアンブルに記述されなくてはなりません。コマンド「
15913 \family typewriter
15914
15915 \backslash
15916 onlyslides{
15917 \backslash
15918 slides}
15919 \family default
15920 」は、出力に
15921 \family sans
15922 スライド
15923 \family default
15924
15925 \family sans
15926 オーバーレイ
15927 \family default
15928 のみが含まれるようにするものです。同様に、「
15929 \family typewriter
15930
15931 \backslash
15932 onlynotes{
15933 \backslash
15934 notes}
15935 \family default
15936 」は
15937 \family sans
15938 注釈
15939 \family default
15940 以外の出力をすべて抑制します。私のアドバイスとしては、両コマンドをプリアンブルに書いておいて、最初は両方ともコメントアウトしておくと良いでしょう。そうすれば、執
15941 筆時にはプレゼンテーション全体をプレビューすることができます。いったん書き終えたならば、二つのうち一方のコメントを外して、印刷したい方を選ぶことができます。私な
15942 らば、まず
15943 \family typewriter
15944
15945 \backslash
15946 onlyslides{
15947 \backslash
15948 slides}
15949 \family default
15950 のコメントを外して、現ファイル名に「*
15951 \family typewriter
15952 -slides
15953 \family default
15954 」を付けた新たなファイルに出力を行ない、今度はこの行をふたたびコメントアウトするとともに、「
15955 \family typewriter
15956
15957 \backslash
15958 onlynotes{
15959 \backslash
15960 notes
15961 \family default
15962 }」のコメントを外して、これを「
15963 \family typewriter
15964 *-notes.ps
15965 \family default
15966 」というファイルに出力します。そうすれば、必要に応じて、スライドまたは通常の紙をプリンタにセットし、一方のファイルをプリンタに送ればよいのです。
15967 \end_layout
15968
15969 \begin_layout Standard
15970
15971 \family typewriter
15972
15973 \backslash
15974 onlyslides{}
15975 \family default
15976 」および「
15977 \family typewriter
15978
15979 \backslash
15980 onlynotes{}
15981 \family default
15982 」コマンドには、他の引数を与えることもできます。詳しくは、LaTeXの良書をご覧ください。
15983 \end_layout
15984
15985 \begin_layout Subsection
15986
15987 \family sans
15988 slides
15989 \family default
15990 クラスのひな型ファイル
15991 \end_layout
15992
15993 \begin_layout Standard
15994
15995 \family sans
15996 slides
15997 \family default
15998 クラス用のひな型ファイルとして「
15999 \family typewriter
16000 slides.lyx
16001 \family default
16002 」が提供されています。これを使用するには、新しいプレゼンテーションを作り始める際に、
16003 \family sans
16004 ファイル\SpecialChar \menuseparator
16005 新規(ひな型使用)
16006 \family default
16007 メニューを選択してください。すると新規ファイルには、
16008 \family sans
16009 スライド
16010 \family default
16011
16012 \family sans
16013 オーバーレイ
16014 \family default
16015
16016 \family sans
16017 注釈
16018 \family default
16019 の組が、例として含まれており、
16020 \family sans
16021 スライド
16022 \family default
16023
16024 \family sans
16025 オーバーレイ
16026 \family default
16027 には、さらに
16028 \family sans
16029 不可視文
16030 \family default
16031
16032 \family sans
16033 可視文
16034 \family default
16035 の使用例も含まれています。また、プリアンブルには、次のように書き込まれています。
16036 \end_layout
16037
16038 \begin_layout LyX-Code
16039 % Uncomment to print out only slides and overlays
16040 \end_layout
16041
16042 \begin_layout LyX-Code
16043 %
16044 \end_layout
16045
16046 \begin_layout LyX-Code
16047 %
16048 \backslash
16049 onlyslides{
16050 \backslash
16051 slides}
16052 \begin_inset Newline newline
16053 \end_inset
16054
16055  
16056 \end_layout
16057
16058 \begin_layout LyX-Code
16059 % Uncomment to print out only notes
16060 \end_layout
16061
16062 \begin_layout LyX-Code
16063 %
16064 \end_layout
16065
16066 \begin_layout LyX-Code
16067 %
16068 \backslash
16069 onlynotes{
16070 \backslash
16071 notes}
16072 \end_layout
16073
16074 \begin_layout Standard
16075 最後に、私はこの文書クラスを、LaTeX2eの組み込みクラスである「
16076 \noun on
16077 SliTeX
16078 \noun default
16079 エミュレーション」クラスをサポートする目的で作成しました。私もLyXチームの他のメンバーも、この組み込みスライドクラスを使用することに賛成したり反対したりするも
16080 のではありません。これは単に、ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです。プレゼンテーションを作成するためには、
16081 \family sans
16082 Foils
16083 \family default
16084 クラス(第
16085 \begin_inset CommandInset ref
16086 LatexCommand ref
16087 reference "sec:foiltex"
16088
16089 \end_inset
16090
16091 節参照)や「
16092 \family typewriter
16093 seminar
16094 \family default
16095 」パッケージ(一部のTeX頒布版に含まれています)のように、他のLaTeX2eクラスも存在します。私はこれらについては知らないのですが、他にどのようなことができ
16096 るのか試してみてください。
16097 \end_layout
16098
16099 \begin_layout Chapter
16100 ソフトウェアを追加する必要がある LyX機能
16101 \end_layout
16102
16103 \begin_layout Section
16104 TeXのチェック
16105 \end_layout
16106
16107 \begin_layout Standard
16108
16109 \noun on
16110 Asger Alstrup
16111 \noun default
16112
16113 \end_layout
16114
16115 \begin_layout Subsection
16116 はじめに
16117 \end_layout
16118
16119 \begin_layout Standard
16120
16121 \family typewriter
16122 chktex
16123 \family default
16124 プログラムが導入されていると
16125 \begin_inset Foot
16126 status collapsed
16127
16128 \begin_layout Plain Layout
16129 LaTeX頒布版としてMiKTeXを使用している場合には、
16130 \family typewriter
16131 chktex
16132 \family default
16133 はまだ利用可能ではありません。
16134 \end_layout
16135
16136 \end_inset
16137
16138
16139 \family sans
16140 ツール
16141 \family default
16142 メニューの下に、
16143 \family sans
16144 TeX構文チェック
16145 \family default
16146 という項目が表示されます。
16147 \family typewriter
16148 chktex
16149 \family default
16150 は、CTAN
16151 \begin_inset CommandInset href
16152 LatexCommand href
16153 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
16154
16155 \end_inset
16156
16157 から入手することができます。
16158 \end_layout
16159
16160 \begin_layout Standard
16161
16162 \family sans
16163 ChkTeX
16164 \family default
16165 パッケージは、LaTeXの構成物には直感的でないものもあり、すぐ忘れてしまいがちであるのに不満を感じた
16166 \begin_inset Flex Noun
16167 status collapsed
16168
16169 \begin_layout Plain Layout
16170 Jens T.
16171  Berger Thielemann
16172 \end_layout
16173
16174 \end_inset
16175
16176 が書いたプログラムです。このプログラムは、LaTeXファイルを走査して、ファイルの整合性をチェックし、犯しがちな誤りを見つけ出します。別の技術用語では、LaTe
16177 Xにおける
16178 \family typewriter
16179 lint
16180 \family default
16181 であるとも言えます。
16182 \end_layout
16183
16184 \begin_layout Standard
16185 さて、LyXはつねに正しいLaTeXファイルを生成するはずなのに、文法チェッカーはLyXで何をするというのでしょうか。答えは簡単です。
16186 \family typewriter
16187 lint
16188 \family default
16189 がC言語プログラムの
16190 \emph on
16191 文法
16192 \emph default
16193 をチェックするだけでなく、打ち間違いによる
16194 \emph on
16195 意味上の
16196 \emph default
16197 チェックも行うように、
16198 \family sans
16199 ChkTeX
16200 \family default
16201 は、文法エラーの他に犯しがちな
16202 \emph on
16203 写植上の
16204 \emph default
16205 誤りも検出してくれるからです。
16206 \family sans
16207 ChkTeX
16208 \family default
16209 は、以下のような誤りを検出することができます。
16210 \end_layout
16211
16212 \begin_layout Itemize
16213 省略記号の検出:
16214 \begin_inset Newline newline
16215 \end_inset
16216
16217 ...ではなく\SpecialChar \ldots{}
16218 を使わなくてはなりません
16219 \end_layout
16220
16221 \begin_layout Itemize
16222 括弧の前後にスペースを置かない:
16223 \begin_inset Newline newline
16224 \end_inset
16225
16226 ( wrong spacing ):誤った空白
16227 \end_layout
16228
16229 \begin_layout Itemize
16230 よく使われる省略形の後ろは通常スペースにする:
16231 \begin_inset Newline newline
16232 \end_inset
16233
16234 e.
16235 \begin_inset space \thinspace{}
16236 \end_inset
16237
16238 g.
16239 \begin_inset space \space{}
16240 \end_inset
16241
16242 is too wide spacing.:広すぎる空白
16243 \end_layout
16244
16245 \begin_layout Itemize
16246 直前の文章が大文字で終わっているときに、文末スペースに直す:
16247 \begin_inset Newline newline
16248 \end_inset
16249
16250 This is a TEST.
16251  And this is wrong spacing.:誤った空白
16252 \end_layout
16253
16254 \begin_layout Itemize
16255 ラベルや類似コマンドの前のスペース:
16256 \begin_inset Newline newline
16257 \end_inset
16258
16259 ラベルが別のページに行ってしまわないように、ラベルは文章に接していなくてはなりません。 
16260 \begin_inset CommandInset label
16261 LatexCommand label
16262 name "sec:chktex"
16263
16264 \end_inset
16265
16266  
16267 \begin_inset Foot
16268 status collapsed
16269
16270 \begin_layout Plain Layout
16271 この脚注は、正しくないページに行ってしまう恐れがあります。
16272 \end_layout
16273
16274 \end_inset
16275
16276  このラベルは離れすぎです。
16277 \end_layout
16278
16279 \begin_layout Itemize
16280 参照の前にハードスペースではなくスペース:
16281 \begin_inset Newline newline
16282 \end_inset
16283
16284 運が悪ければ、参照文字列と参照番号のあいだでちょうど改行されてしまい、残念な結果となります。第
16285 \begin_inset CommandInset ref
16286 LatexCommand ref
16287 reference "sec:chktex"
16288
16289 \end_inset
16290
16291 節をご覧ください。
16292 \end_layout
16293
16294 \begin_layout Itemize
16295 数字のあいだで
16296 \begin_inset Formula $\times$
16297 \end_inset
16298
16299 ではなく「x」が使われている:
16300 \begin_inset Newline newline
16301 \end_inset
16302
16303 2x2は、
16304 \begin_inset Formula $2\times2$
16305 \end_inset
16306
16307 よりも安っぽく見えます。
16308 \end_layout
16309
16310 \begin_layout Standard
16311 などなど\SpecialChar \ldots{}
16312
16313 \family sans
16314 ChkTeX
16315 \family default
16316 は、印刷する前に文書を「仕上げる」上で、たいへん価値のあるツールです。必須のスペルチェックを終えた直後、組版の微調整をする前には、これを実行するべきです。
16317 \end_layout
16318
16319 \begin_layout Subsection
16320 使いかた
16321 \end_layout
16322
16323 \begin_layout Standard
16324 このプログラムを導入したならば、使うのは
16325 \family sans
16326 ツール\SpecialChar \menuseparator
16327 TeX構文チェック
16328 \family default
16329 を選択するだけなので簡単です。こうすると、LyXは使用中の文書のLaTeXファイルを生成して、
16330 \family sans
16331 ChkTeX
16332 \family default
16333 を起動し、当該ファイルを検査しますが、
16334 \family sans
16335 ChkTeX
16336 \family default
16337 から警告があった場合には、それを含んだ「エラーボックス」をLyX中に挿入します。警告は、誤りのある箇所のそばに置かれるので、メニュー項目の
16338 \family sans
16339 移動\SpecialChar \menuseparator
16340 エラー
16341 \family default
16342 を選択するか、既定の
16343 \family typewriter
16344 cua
16345 \family default
16346 キー設定ファイルならば短絡キー
16347 \family sans
16348 C-g
16349 \family default
16350 を押せば、簡単に警告の箇所を見出すことができます。エラーボックスを開けるには、マウスでボックスをクリックするか、
16351 \family typewriter
16352 cua
16353 \family default
16354 キー設定の場合には短絡キー
16355 \family sans
16356 C-i
16357 \family default
16358
16359 \family typewriter
16360 emacs
16361 \family default
16362 キー設定の場合は短絡キー
16363 \family sans
16364 C-o
16365 \family default
16366 を押します。警告を読み、それが誤りを示していれば修正します。警告が何を意味しているか理解しにくい場合には、無視しても問題はありません。画面上の文書と、
16367 \family sans
16368 ChkTeX
16369 \family default
16370 を起動する際に行なわれる実際の技術的な操作のあいだには、隠された層があり、この隔たりのせいで、一部の警告が不可解なものになったり、明らかに馬鹿げたものになる場合
16371 があるのです。
16372 \end_layout
16373
16374 \begin_layout Standard
16375 本文書自体、この機能を確認する良い材料になりますので、実行してみてください。すると、かなりの量の警告が出るはずです。これはコンピュータが敏感すぎるせいですので、
16376 警告のほとんどは実際には警告に値しません。
16377 \end_layout
16378
16379 \begin_layout Subsection
16380 微調整のしかた
16381 \end_layout
16382
16383 \begin_layout Standard
16384 場合によっては、
16385 \family sans
16386 ChkTeX
16387 \family default
16388 は、あなたが望むよりも煩すぎると思うかもしれません。そのような場合には、必要と思うまで
16389 \family sans
16390 ChkTeX
16391 \family default
16392 を無効にするか、あなたにもう少し合うように
16393 \family sans
16394 ChkTeX
16395 \family default
16396 を調整することができます。
16397 \end_layout
16398
16399 \begin_layout Standard
16400
16401 \family sans
16402 ChkTeX
16403 \family default
16404 は調整や拡張がひじょうに柔軟なのですが、LyXにおける
16405 \family sans
16406 ChkTeX
16407 \family default
16408 関連の問題が、それですべて解決すると思うべきではありません。LyXは、
16409 \family sans
16410 ChkTeX
16411 \family default
16412 出力
16413 \begin_inset Foot
16414 status collapsed
16415
16416 \begin_layout Plain Layout
16417
16418 \family sans
16419 chktex
16420 \family default
16421 の実際の出力は、
16422 \family sans
16423 chktex
16424 \family default
16425 を実行した直後に
16426 \family sans
16427 文書\SpecialChar \menuseparator
16428 LaTeXログ
16429 \family default
16430 を使えば見ることができます。
16431 \end_layout
16432
16433 \end_inset
16434
16435 から得た行番号と内部構造を一致させるため、やや特殊なLaTeXファイルを生成しなくてはならないので、警告の一部は正しく表示されていないように見えるでしょう。これ
16436 に対処するためには、以下の2つの方法があります。
16437 \end_layout
16438
16439 \begin_layout Itemize
16440
16441 \family sans
16442 設定
16443 \family default
16444
16445 \family sans
16446 出力
16447 \family default
16448
16449 \family sans
16450 LaTeX
16451 \family default
16452 タブ)中の
16453 \family sans
16454 ChkTeX
16455 \family default
16456 起動コマンドラインを調整するか、グローバルな
16457 \family sans
16458 ChkTeX
16459 \family default
16460 の設定ファイル(通常は
16461 \begin_inset Flex Code
16462 status collapsed
16463
16464 \begin_layout Plain Layout
16465 chktexrc
16466 \end_layout
16467
16468 \end_inset
16469
16470 ファイル)を調整します。コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください。
16471 \end_layout
16472
16473 \begin_layout Itemize
16474
16475 \family sans
16476 ファイル\SpecialChar \menuseparator
16477 書き出し\SpecialChar \menuseparator
16478 LaTeX
16479 \family default
16480 を使って文書をLaTeXファイルに変換し、そのファイルに対して
16481 \family typewriter
16482 chktex
16483 \family default
16484 を手動で実行します。このようにすると、LyX文書中の対応箇所を見つけるのがやや面倒ですが、少し我慢すれば見つけることができます。
16485 \end_layout
16486
16487 \begin_layout Standard
16488 以下は、
16489 \family sans
16490 設定
16491 \family default
16492 で有効化・無効化できる警告メッセージです。警告を無効にするには
16493 \family typewriter
16494 -n#
16495 \family default
16496 、有効にするには
16497 \family typewriter
16498 -w#
16499 \family default
16500 を用います。イタリック表示の項目は、既定で無効となっています。既定値は "
16501 \family typewriter
16502 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
16503 \family default
16504 "です。
16505 \end_layout
16506
16507 \begin_layout Standard
16508 LyXは、
16509 \family typewriter
16510 chktex
16511 \family default
16512 と通信するために、他のコマンドラインパラメータを特定の方法で使用しているため、メッセージを有効化・無効化する以外のオプションを使うべきではありません。
16513 \end_layout
16514
16515 \begin_layout Enumerate
16516
16517 \size small
16518 \emph on
16519 Command terminated with space.
16520 \end_layout
16521
16522 \begin_layout Enumerate
16523
16524 \size small
16525 Non-breaking space (
16526 \begin_inset Quotes eld
16527 \end_inset
16528
16529
16530 \family typewriter
16531 ~
16532 \family default
16533
16534 \begin_inset Quotes erd
16535 \end_inset
16536
16537 ) should have been used.
16538 \end_layout
16539
16540 \begin_layout Enumerate
16541
16542 \size small
16543 \emph on
16544 You should enclose the previous parenthesis with 
16545 \begin_inset Quotes eld
16546 \end_inset
16547
16548
16549 \family typewriter
16550 {}
16551 \family default
16552
16553 \begin_inset Quotes erd
16554 \end_inset
16555
16556 .
16557 \end_layout
16558
16559 \begin_layout Enumerate
16560
16561 \size small
16562 Italic correction (
16563 \begin_inset Quotes eld
16564 \end_inset
16565
16566
16567 \family typewriter
16568
16569 \backslash
16570 /
16571 \family default
16572
16573 \begin_inset Quotes erd
16574 \end_inset
16575
16576 ) found in non-italic buffer.
16577 \end_layout
16578
16579 \begin_layout Enumerate
16580
16581 \size small
16582 Italic correction (
16583 \begin_inset Quotes eld
16584 \end_inset
16585
16586
16587 \family typewriter
16588
16589 \backslash
16590 /
16591 \family default
16592
16593 \begin_inset Quotes erd
16594 \end_inset
16595
16596 ) found more than once.
16597 \end_layout
16598
16599 \begin_layout Enumerate
16600
16601 \size small
16602 \emph on
16603 No italic correction (
16604 \begin_inset Quotes eld
16605 \end_inset
16606
16607
16608 \family typewriter
16609
16610 \backslash
16611 /
16612 \family default
16613
16614 \begin_inset Quotes erd
16615 \end_inset
16616
16617 ) found.
16618 \end_layout
16619
16620 \begin_layout Enumerate
16621
16622 \size small
16623 Accent command 
16624 \begin_inset Quotes eld
16625 \end_inset
16626
16627
16628 \family typewriter
16629 cmd
16630 \family default
16631
16632 \begin_inset Quotes erd
16633 \end_inset
16634
16635  needs use of 
16636 \begin_inset Quotes eld
16637 \end_inset
16638
16639
16640 \family typewriter
16641 cmd
16642 \family default
16643
16644 \begin_inset Quotes erd
16645 \end_inset
16646
16647 .
16648 \end_layout
16649
16650 \begin_layout Enumerate
16651
16652 \size small
16653 Wrong length of dash may have been used.
16654 \end_layout
16655
16656 \begin_layout Enumerate
16657
16658 \size small
16659 \emph on
16660 \begin_inset Quotes eld
16661 \end_inset
16662
16663
16664 \family typewriter
16665 %s
16666 \family default
16667
16668 \begin_inset Quotes erd
16669 \end_inset
16670
16671  expected, found 
16672 \begin_inset Quotes eld
16673 \end_inset
16674
16675
16676 \family typewriter
16677 %s
16678 \family default
16679
16680 \begin_inset Quotes erd
16681 \end_inset
16682
16683 .
16684 \end_layout
16685
16686 \begin_layout Enumerate
16687
16688 \size small
16689 Solo 
16690 \begin_inset Quotes eld
16691 \end_inset
16692
16693
16694 \family typewriter
16695 %s
16696 \family default
16697
16698 \begin_inset Quotes erd
16699 \end_inset
16700
16701  found.
16702 \end_layout
16703
16704 \begin_layout Enumerate
16705
16706 \size small
16707 You should use 
16708 \begin_inset Quotes eld
16709 \end_inset
16710
16711
16712 \family typewriter
16713 %s
16714 \family default
16715
16716 \begin_inset Quotes erd
16717 \end_inset
16718
16719  to achieve an ellipsis.
16720 \end_layout
16721
16722 \begin_layout Enumerate
16723
16724 \size small
16725 Inter-word spacing (
16726 \begin_inset Quotes eld
16727 \end_inset
16728
16729
16730 \family typewriter
16731
16732 \backslash
16733
16734 \family default
16735  
16736 \begin_inset Quotes eld
16737 \end_inset
16738
16739 ) should perhaps be used.
16740 \end_layout
16741
16742 \begin_layout Enumerate
16743
16744 \size small
16745 Inter-sentence spacing (
16746 \begin_inset Quotes eld
16747 \end_inset
16748
16749
16750 \family typewriter
16751
16752 \backslash
16753 @
16754 \family default
16755
16756 \begin_inset Quotes erd
16757 \end_inset
16758
16759 ) should perhaps be used.
16760 \end_layout
16761
16762 \begin_layout Enumerate
16763
16764 \size small
16765 Could not find argument for command.
16766 \end_layout
16767
16768 \begin_layout Enumerate
16769
16770 \size small
16771 No match found for 
16772 \begin_inset Quotes eld
16773 \end_inset
16774
16775
16776 \family typewriter
16777 %s
16778 \family default
16779
16780 \begin_inset Quotes erd
16781 \end_inset
16782
16783 .
16784 \end_layout
16785
16786 \begin_layout Enumerate
16787
16788 \size small
16789 Math mode still on at end of LaTeX file.
16790 \end_layout
16791
16792 \begin_layout Enumerate
16793
16794 \size small
16795 Number of 
16796 \begin_inset Quotes eld
16797 \end_inset
16798
16799
16800 \family typewriter
16801 char
16802 \family default
16803
16804 \begin_inset Quotes erd
16805 \end_inset
16806
16807  doesn't match the number of 
16808 \begin_inset Quotes eld
16809 \end_inset
16810
16811
16812 \family typewriter
16813 char
16814 \family default
16815
16816 \begin_inset Quotes erd
16817 \end_inset
16818
16819 .
16820 \end_layout
16821
16822 \begin_layout Enumerate
16823
16824 \size small
16825 You should use either 
16826 \family typewriter
16827
16828 \begin_inset Quotes eld
16829 \end_inset
16830
16831
16832 \family default
16833  or 
16834 \family typewriter
16835
16836 \begin_inset Quotes erd
16837 \end_inset
16838
16839
16840 \family default
16841  as an alternative to 
16842 \begin_inset Quotes eld
16843 \end_inset
16844
16845
16846 \family typewriter
16847 "
16848 \family default
16849
16850 \begin_inset Quotes erd
16851 \end_inset
16852
16853 .
16854 \end_layout
16855
16856 \begin_layout Enumerate
16857
16858 \size small
16859 You should use "
16860 \family typewriter
16861 '
16862 \family default
16863 " (ASCII 39) instead of "" (ASCII 180).
16864 \end_layout
16865
16866 \begin_layout Enumerate
16867
16868 \size small
16869 User-specified pattern found.
16870 \end_layout
16871
16872 \begin_layout Enumerate
16873
16874 \size small
16875 This command might not be intended.
16876 \end_layout
16877
16878 \begin_layout Enumerate
16879
16880 \size small
16881 \emph on
16882 Comment displayed.
16883 \end_layout
16884
16885 \begin_layout Enumerate
16886
16887 \size small
16888 Either 
16889 \family typewriter
16890 ''
16891 \backslash
16892 ,'
16893 \family default
16894  or 
16895 \family typewriter
16896 '
16897 \backslash
16898 ,''
16899 \family default
16900  will look better.
16901 \end_layout
16902
16903 \begin_layout Enumerate
16904
16905 \size small
16906 Delete this space to maintain correct page references.
16907 \end_layout
16908
16909 \begin_layout Enumerate
16910
16911 \size small
16912 \emph on
16913 You might wish to put this between a pair of 
16914 \begin_inset Quotes eld
16915 \end_inset
16916
16917
16918 \family typewriter
16919 {}
16920 \family default
16921
16922 \begin_inset Quotes erd
16923 \end_inset
16924
16925 .
16926 \end_layout
16927
16928 \begin_layout Enumerate
16929
16930 \size small
16931 You ought to remove spaces in front of punctuation.
16932 \end_layout
16933
16934 \begin_layout Enumerate
16935
16936 \size small
16937 Could not execute LaTeX command.
16938 \end_layout
16939
16940 \begin_layout Enumerate
16941
16942 \size small
16943 Don't use 
16944 \family typewriter
16945
16946 \backslash
16947 /
16948 \family default
16949  in front of small punctuation.
16950 \end_layout
16951
16952 \begin_layout Enumerate
16953
16954 \family typewriter
16955 \size small
16956 $
16957 \backslash
16958 times$
16959 \family default
16960  may look prettier here.
16961 \end_layout
16962
16963 \begin_layout Enumerate
16964
16965 \size small
16966 \emph on
16967 Multiple spaces detected in output.
16968 \end_layout
16969
16970 \begin_layout Enumerate
16971
16972 \size small
16973 This text may be ignored.
16974 \end_layout
16975
16976 \begin_layout Enumerate
16977
16978 \size small
16979 Use 
16980 \family typewriter
16981
16982 \begin_inset Quotes eld
16983 \end_inset
16984
16985
16986 \family default
16987  to begin quotation, not 
16988 \family typewriter
16989 '
16990 \family default
16991 .
16992 \end_layout
16993
16994 \begin_layout Enumerate
16995
16996 \size small
16997 Use 
16998 \family typewriter
16999 '
17000 \family default
17001  to end quotation, not 
17002 \family typewriter
17003
17004 \begin_inset Quotes eld
17005 \end_inset
17006
17007
17008 \family default
17009 .
17010 \end_layout
17011
17012 \begin_layout Enumerate
17013
17014 \size small
17015 Don't mix quotes.
17016 \end_layout
17017
17018 \begin_layout Enumerate
17019
17020 \size small
17021 You should perhaps use 
17022 \begin_inset Quotes eld
17023 \end_inset
17024
17025
17026 \family typewriter
17027 cmd
17028 \family default
17029
17030 \begin_inset Quotes erd
17031 \end_inset
17032
17033  instead.
17034 \end_layout
17035
17036 \begin_layout Enumerate
17037
17038 \size small
17039 You should put a space in front of/after parenthesis.
17040 \end_layout
17041
17042 \begin_layout Enumerate
17043
17044 \size small
17045 You should avoid spaces in front of/after parenthesis.
17046 \end_layout
17047
17048 \begin_layout Enumerate
17049
17050 \size small
17051 \emph on
17052 You should not use punctuation in front of/after quotes.
17053 \end_layout
17054
17055 \begin_layout Enumerate
17056
17057 \size small
17058 Double space found.
17059 \end_layout
17060
17061 \begin_layout Enumerate
17062
17063 \size small
17064 You should put punctuation outside inner/inside display math mode.
17065 \end_layout
17066
17067 \begin_layout Enumerate
17068
17069 \size small
17070 You ought to not use primitive TeX in LaTeX code.
17071 \end_layout
17072
17073 \begin_layout Enumerate
17074
17075 \size small
17076 You should remove spaces in front of 
17077 \begin_inset Quotes eld
17078 \end_inset
17079
17080
17081 \family typewriter
17082 %s
17083 \family default
17084
17085 \begin_inset Quotes erd
17086 \end_inset
17087
17088
17089 \end_layout
17090
17091 \begin_layout Enumerate
17092
17093 \size small
17094 \begin_inset Quotes eld
17095 \end_inset
17096
17097
17098 \family typewriter
17099 %s
17100 \family default
17101
17102 \begin_inset Quotes erd
17103 \end_inset
17104
17105  is normally not followed by 
17106 \begin_inset Quotes eld
17107 \end_inset
17108
17109
17110 \family typewriter
17111 %c
17112 \family default
17113
17114 \begin_inset Quotes erd
17115 \end_inset
17116
17117 .
17118 \end_layout
17119
17120 \begin_layout Standard
17121 LyXの将来の版では、このツール(およびその縮小版
17122 \family typewriter
17123 lacheck
17124 \family default
17125 )の力を最大限引き出すように、より完備したインターフェイスを提供できればと考えています。しかし、現状でも十分に役立つものとなっています。ある程度長さがある既存文
17126 書に使用してみていただければ、きっと驚かれることでしょう。
17127 \end_layout
17128
17129 \begin_layout Section
17130 LyXでのバージョン管理
17131 \end_layout
17132
17133 \begin_layout Standard
17134
17135 \noun on
17136 Lars Bullik Bjønnes
17137 \noun default
17138 および
17139 \noun on
17140 Pavel Sanda
17141 \noun default
17142
17143 \end_layout
17144
17145 \begin_layout Subsection
17146 はじめに
17147 \end_layout
17148
17149 \begin_layout Standard
17150 かつて私の友人が、LyXをグループプロジェクトに使おうとしましたが、当時のLyXには、バージョン管理機能やファイルロック機構が備わっていなかったために、採用を見
17151 合わせました。この事実は少々私をいらだたせ、(将来的にCVSやSCCSのサポートできる拡張性を含め)少なくともRCSのサポートをするべきだと考えたのです。いまや
17152 これは実現しました。LyXは、今ではもっとも基本的なRCS/CVS/SVNコマンドをサポートしています。もしもっと洗練されたことを行いたい場合には、ターミナル上
17153 から手動で行う必要があります。
17154 \end_layout
17155
17156 \begin_layout Standard
17157 LyXで実際にバージョン管理機能を使い始める前に、RCS/CVS/SVNの使用法に習熟しておかなくてはなりません。また、CVSのサポートは、subversion
17158 のサポートほど良くないので、CVSよりもSVNを使うことをお勧めします。Subversionを学び始めるには、SVN Book
17159 \begin_inset Foot
17160 status collapsed
17161
17162 \begin_layout Plain Layout
17163 \begin_inset CommandInset href
17164 LatexCommand href
17165 target "http://svnbook.red-bean.com/"
17166
17167 \end_inset
17168
17169
17170 \end_layout
17171
17172 \end_inset
17173
17174 が良いでしょう。RCSの場合は、「rsintro」をお読みください(これはmanファイルです。
17175 \family typewriter
17176 man rcsintro
17177 \family default
17178 で読めます)。このファイルは、RCSの基本機能のすべてを説明しています。特に、RCSディレクトリに関するコメントと、マスターRCSファイル(
17179 \family typewriter
17180 ,v
17181 \family default
17182 で終わるファイルです)の概念に注意を払ってください。
17183 \end_layout
17184
17185 \begin_layout Standard
17186 LyXへの実装においては、GNU RCSまたはCVS/SVNパッケージの最新版を仮定しています。旧版への保証はありません。ログメッセージのほとんどは、現在のとこ
17187 ろ操作後には表示されません。確認したい場合には、メッセージペインで確かめてください。
17188 \end_layout
17189
17190 \begin_layout Standard
17191 自製の外部コマンドを導入したい場合には、LyX関数説明書のvcコマンドを確認してください。
17192 \end_layout
17193
17194 \begin_layout Subsection
17195 LyXにおけるRCSコマンド
17196 \end_layout
17197
17198 \begin_layout Standard
17199 以下の節ではLyXでサポートされているRCSコマンドを説明します。それらのコマンドは
17200 \family sans
17201 ファイル\SpecialChar \menuseparator
17202 バージョン管理
17203 \family default
17204 のサブメニューにあります。LyXは、RCS 5.7に対して試験されています。
17205 \end_layout
17206
17207 \begin_layout Subsubsection
17208
17209 \family sans
17210 登録
17211 \end_layout
17212
17213 \begin_layout Standard
17214 文書がバージョン管理の下にない場合には、これがメニューにあらわれる唯一の項目です。文書がバージョン管理下にあれば、項目
17215 \family sans
17216 登録
17217 \family default
17218 は不可視になります。
17219 \end_layout
17220
17221 \begin_layout Standard
17222 このコマンドは、文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合)。すると対話的に、文書の最初の説明を入力するように尋ねられます。すると文
17223 書は読み込み専用モードになるので、変更を加えるためには
17224 \family sans
17225 チェックアウトして編集
17226 \family default
17227 を実行する必要があります。バージョン管理下にある文書は、ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます。
17228 \end_layout
17229
17230 \begin_layout Standard
17231 実行されるRCSコマンドは:
17232 \family typewriter
17233 ci -q -u -i -t-"<初期説明文>" <ファイル名>
17234 \end_layout
17235
17236 \begin_layout Standard
17237 スイッチについて知りたい場合は、
17238 \family typewriter
17239 man ci
17240 \family default
17241 を読んでください。
17242 \end_layout
17243
17244 \begin_layout Subsubsection
17245
17246 \family sans
17247 変更をチェックインする
17248 \end_layout
17249
17250 \begin_layout Standard
17251 ファイルの編集が終わると、その変更をチェックインします。このとき、変更についての説明文を求められます。これは履歴ログに記録されます。バージョン番号は繰り上がり、
17252 変更がマスターRCSファイルに適用され、文書がアンロックされて読み込み専用モードになります。
17253 \end_layout
17254
17255 \begin_layout Standard
17256 RCSコマンド:
17257 \family typewriter
17258 ci -q -u -m"<説明文>" <ファイル名>
17259 \end_layout
17260
17261 \begin_layout Subsubsection
17262
17263 \family sans
17264 チェックアウトして編集
17265 \end_layout
17266
17267 \begin_layout Standard
17268 これは、文書をロックして編集できるようにします。そしてあなただけが文書を読み書きできるようにします。通常は、しばらくの間、文書を編集し、それが終わると変更をチェ
17269 ックインします。あなたがファイルをロックしたことを反映して、ステータスラインが変わります。
17270 \end_layout
17271
17272 \begin_layout Standard
17273 RCSコマンド:
17274 \family typewriter
17275 co -q -l <ファイル名>
17276 \end_layout
17277
17278 \begin_layout Subsubsection
17279
17280 \family sans
17281 リポジトリのバージョンに戻す
17282 \end_layout
17283
17284 \begin_layout Standard
17285 これは、最終チェックイン以降、文書に加えられた変更をすべて破棄します。変更が破棄される前に、警告が発せられます。
17286 \end_layout
17287
17288 \begin_layout Standard
17289 RCSコマンド:
17290 \family typewriter
17291 co -f -u<バージョン> <ファイル名>
17292 \end_layout
17293
17294 \begin_layout Subsubsection
17295
17296 \family sans
17297 最後のチェックインを取り消す
17298 \end_layout
17299
17300 \begin_layout Standard
17301 これは、最後のチェックインがあたかも為されなかったかのようにします。LyXに読み込まれた文書に変更は加えられませんが、マスターRCSファイルから最後のバージョン
17302 が削除されます。
17303 \end_layout
17304
17305 \begin_layout Standard
17306 RCSコマンド:
17307 \family typewriter
17308 rcs -o<バージョン> <ファイル名>
17309 \end_layout
17310
17311 \begin_layout Subsubsection
17312
17313 \family sans
17314 履歴を表示
17315 \end_layout
17316
17317 \begin_layout Standard
17318 RCS文書の完全な履歴を表示します。ブラウザ中に、
17319 \family typewriter
17320 rlog <ファイル名>
17321 \family default
17322 の出力が表示されます。詳細は
17323 \family typewriter
17324 man rlog
17325 \family default
17326 をご覧ください。
17327 \end_layout
17328
17329 \begin_layout Subsubsection
17330 改訂情報
17331 \end_layout
17332
17333 \begin_layout Standard
17334 LyXは、RCSバージョン番号情報(のみ)をサポートしています。詳細については、
17335 \begin_inset CommandInset ref
17336 LatexCommand ref
17337 reference "sub:VCS改訂情報"
17338
17339 \end_inset
17340
17341 を参照。
17342 \end_layout
17343
17344 \begin_layout Subsection
17345 LyXにおけるCVSコマンド
17346 \end_layout
17347
17348 \begin_layout Standard
17349 LyXは、現在CVSを一部サポートしています。そのコマンドは、
17350 \family sans
17351 ファイル\SpecialChar \menuseparator
17352 バージョン管理
17353 \family default
17354 サブメニューにあります。バージョン管理システムSVNの方が強力なので、可能ならばCVSではなく、SVNを使用してください。
17355 \end_layout
17356
17357 \begin_layout Subsubsection
17358 CVSの一般的な利用法
17359 \end_layout
17360
17361 \begin_layout Standard
17362 CVSを初めて使いたい場合には、外部ツールを使用して自分のレポジトリを作成し、作業コピーをチェックアウトする必要があります。クライアント=サーバーモデルを使用し
17363 ている場合には、最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません。
17364 \end_layout
17365
17366 \begin_layout Standard
17367 改訂管理下にある文書のレポジトリを他人も利用している場合に、同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します。標準的なCVSレポジトリは、ファイル
17368 ロッキング機構を有しません。これは驚くべきことかもしれませんが、コンフリクトは、文書の同じ箇所の特定の内容について、人々が意見を異にしている場合にのみ発生します
17369 。したがって、共著者同士がコンスタントにコミュニケーションを交わしていれば、このようなコンフリクトは滅多に発生しません。もしコミュニケーションがなければ、いずれ
17370 にしても根本的な問題があるわけです。それにもかかわらず、いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます。この場合、最初にチェックアウトした際に
17371 、全ファイルの作業コピーは読み込み専用にされ、ユーザーは、作業コピーを書き込み可能にする特別なコマンドを使用した後、編集を開始することになります。変更をチェック
17372 インすると、作業コピーは読み込み専用状態に戻ります。LyXで予備付きチェックアウトを利用したい場合には、
17373 \begin_inset Flex Code
17374 status collapsed
17375
17376 \begin_layout Plain Layout
17377 .cvsrc
17378 \end_layout
17379
17380 \end_inset
17381
17382 ファイルを編集して、
17383 \begin_inset Flex Code
17384 status collapsed
17385
17386 \begin_layout Plain Layout
17387 cvs -r
17388 \end_layout
17389
17390 \end_inset
17391
17392 という行を書き加える必要があります。この方法の利点は、文書のうち、書き込み可能コピーを誰が使用しているかを見ることができることです。ただし、一人のユーザーだけが
17393 コピーを書き込み可能にしているとは限りません。
17394 \end_layout
17395
17396 \begin_layout Standard
17397 LyXは、あなたが予備付きチェックアウトを使用しているか、予備なしチェックアウトを利用しているか、推測しようと試みます。使用中の作業コピーが読み込み専用になって
17398 いるか、あるいはそれが書き込み可能であって、CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には、予備付きチェックアウトを使用しているもの
17399 と仮定し、そうでない場合には予備なしチェックアウトを使用しているものと仮定します。予備付きチェックアウトが検出された場合には、作業コピーが読み込み専用の場合に書
17400 き込み可能にするためには、
17401 \begin_inset Flex MenuItem
17402 status collapsed
17403
17404 \begin_layout Plain Layout
17405 チェックアウト
17406 \end_layout
17407
17408 \end_inset
17409
17410 メニューを使用しなくてはなりません。その後、
17411 \begin_inset Flex MenuItem
17412 status collapsed
17413
17414 \begin_layout Plain Layout
17415 チェックイン
17416 \end_layout
17417
17418 \end_inset
17419
17420 メニューが利用可能になるので、自分が加えた変更をリポジトリに移した後、作業コピーを再び読み込み専用にする際には、これを使用します。
17421 \end_layout
17422
17423 \begin_layout Standard
17424 CVSの詳細な情報は、
17425 \begin_inset Flex URL
17426 status collapsed
17427
17428 \begin_layout Plain Layout
17429
17430 http://www.nongnu.org/cvs
17431 \end_layout
17432
17433 \end_inset
17434
17435
17436 \begin_inset Flex URL
17437 status collapsed
17438
17439 \begin_layout Plain Layout
17440
17441 http://ximbiot.com/cvs
17442 \end_layout
17443
17444 \end_inset
17445
17446 にあります。
17447 \end_layout
17448
17449 \begin_layout Standard
17450 以下に言及するサブコマンドとスイッチを理解するには、
17451 \family typewriter
17452 man cvs
17453 \family default
17454 をお読みください。
17455 \end_layout
17456
17457 \begin_layout Subsubsection
17458 登録
17459 \end_layout
17460
17461 \begin_layout Standard
17462 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
17463 \family sans
17464 登録
17465 \family default
17466 項目は表示されません。
17467 \end_layout
17468
17469 \begin_layout Standard
17470 本コマンドは、既に文書ディレクトリをCVS管理下に置いている場合に
17471 \series bold
17472 \emph on
17473 のみ
17474 \series default
17475 \emph default
17476 (すなわち
17477 \begin_inset Flex Code
17478 status collapsed
17479
17480 \begin_layout Plain Layout
17481 CVS/Entries
17482 \end_layout
17483
17484 \end_inset
17485
17486 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、外部ツールを使用して、アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
17487 を意味します(このステップを忘れてしまうと、LyXは文書をRCSに登録します)。
17488 \end_layout
17489
17490 \begin_layout Standard
17491 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだチェックインされたわけではないことに注意してください。
17492 \end_layout
17493
17494 \begin_layout Standard
17495 実行されるCVSコマンドは、
17496 \family typewriter
17497 cvs -q add -m"<入力した説明文>" "<ファイル名>"
17498 \family default
17499  です。
17500 \end_layout
17501
17502 \begin_layout Standard
17503 上記および他のすべてのCVSコマンドにおける
17504 \family typewriter
17505 "<ファイル名>"
17506 \family default
17507 は、「カレント作業ディレクトリをファイルの場所に移動し、パスコンポーネントを除いたファイル名を引数として使用する」という意味になります。
17508 \end_layout
17509
17510 \begin_layout Subsubsection
17511 変更のチェックイン
17512 \end_layout
17513
17514 \begin_layout Standard
17515 ファイルの編集を終えたら、変更をコミットします。このとき、文書に変更が加えられていれば、変更の説明文を入れるよう促されます。その後、変更がレポジトリに書き込まれ
17516 ます。文書を変更せず、予備付きチェックアウトが検出された場合、
17517 \begin_inset Flex MenuItem
17518 status collapsed
17519
17520 \begin_layout Plain Layout
17521 チェックアウト
17522 \end_layout
17523
17524 \end_inset
17525
17526 で作られた予備は取り消されます。
17527 \end_layout
17528
17529 \begin_layout Labeling
17530 \labelwidthstring 00.00.0000
17531 CVSコマンド: 
17532 \begin_inset space ~
17533 \end_inset
17534
17535
17536 \begin_inset Newline newline
17537 \end_inset
17538
17539
17540 \begin_inset Flex Code
17541 status collapsed
17542
17543 \begin_layout Plain Layout
17544 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
17545 \end_layout
17546
17547 \end_inset
17548
17549 あるいは
17550 \begin_inset Newline newline
17551 \end_inset
17552
17553
17554 \begin_inset Flex Code
17555 status collapsed
17556
17557 \begin_layout Plain Layout
17558 cvs -q unedit "<ファイル名>"
17559 \end_layout
17560
17561 \end_inset
17562
17563
17564 \end_layout
17565
17566 \begin_layout Subsubsection
17567 変更のチェックアウト
17568 \end_layout
17569
17570 \begin_layout Standard
17571 レポジトリを他人と共有している場合、他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります。
17572 \end_layout
17573
17574 \begin_layout Standard
17575 CVSコマンド:
17576 \family typewriter
17577 cvs -q update "<ファイル名>"
17578 \end_layout
17579
17580 \begin_layout Standard
17581 読み込み専用チェックアウトが検出された場合、作業コピーを書き込み可能にし予備を作成します。
17582 \end_layout
17583
17584 \begin_layout Standard
17585 CVSコマンド:
17586 \family typewriter
17587 cvs -q edit "<ファイル名>"
17588 \end_layout
17589
17590 \begin_layout Subsubsection
17591 レポジトリのバージョンに戻す
17592 \end_layout
17593
17594 \begin_layout Standard
17595 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVS更新コマンド
17596 が実行されます。
17597 \end_layout
17598
17599 \begin_layout Standard
17600 CVSコマンド:
17601 \family typewriter
17602 cvs -q update "<ファイル名>"
17603 \end_layout
17604
17605 \begin_layout Standard
17606 予備付きチェックアウトが検出され、作業コピーに変更がない場合、予備のみが取り消されます。
17607 \end_layout
17608
17609 \begin_layout Standard
17610 CVSコマンド:
17611 \family typewriter
17612 cvs -q unedit "<ファイル名>"
17613 \end_layout
17614
17615 \begin_layout Subsubsection
17616 ローカルディレクトリチェックアウトのレポジトリからの更新
17617 \end_layout
17618
17619 \begin_layout Standard
17620 子文書や図を含んだり、外部
17621 \begin_inset Flex Code
17622 status collapsed
17623
17624 \begin_layout Plain Layout
17625 .tex
17626 \end_layout
17627
17628 \end_inset
17629
17630 ファイルを取り込むなど、文書が複雑になるにつれ、バージョン管理の利用は複雑になります。LyXは、文書が存在するツリー全体の更新をサポートします。これは、CVSの
17631 使用法について詳しい知識のない人々や、レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に、特に便利です。ファイル構造は、すべての外部フ
17632 ァイルが、文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります。いずれにしても、複合文書を新しいディレクトリを建てて収容するのは、望ま
17633 しい習慣です。
17634 \end_layout
17635
17636 \begin_layout Standard
17637 コマンド
17638 \begin_inset Flex Code
17639 status collapsed
17640
17641 \begin_layout Plain Layout
17642 レポジトリを使ってローカル辞書を更新
17643 \end_layout
17644
17645 \end_inset
17646
17647 は、ディレクトリ全体を更新します。ローカルの変更が検出された場合には、更新を開始する前にユーザーに警告が発せられます。マージコンフリクトが発生した場合には、コン
17648 フリクトを起こしている部分の新旧バージョンが、両方とも最終文書に置かれますので、マージの結果を見直し、修正する必要があります。コンフリクトは、
17649 \begin_inset Flex Code
17650 status collapsed
17651
17652 \begin_layout Plain Layout
17653 <<<<<<<
17654 \end_layout
17655
17656 \end_inset
17657
17658
17659 \begin_inset Flex Code
17660 status collapsed
17661
17662 \begin_layout Plain Layout
17663 >>>>>>>
17664 \end_layout
17665
17666 \end_inset
17667
17668 の対に囲まれ、
17669 \begin_inset Flex Code
17670 status collapsed
17671
17672 \begin_layout Plain Layout
17673 =======
17674 \end_layout
17675
17676 \end_inset
17677
17678 で区切られて表示されます。最初の部分は、文書名に続いて、更新操作前のバージョンが置かれています。第2の部分は、
17679 \begin_inset Flex Code
17680 status collapsed
17681
17682 \begin_layout Plain Layout
17683 >
17684 \end_layout
17685
17686 \end_inset
17687
17688 記号列の後にバージョン番号に続いて、レポジトリ版が置かれます。
17689 \end_layout
17690
17691 \begin_layout Labeling
17692 \labelwidthstring 00.00.0000
17693 CVSコマンド: 
17694 \begin_inset space ~
17695 \end_inset
17696
17697
17698 \begin_inset Newline newline
17699 \end_inset
17700
17701
17702 \begin_inset Flex Code
17703 status collapsed
17704
17705 \begin_layout Plain Layout
17706 cd $path; cvs diff "."
17707 \end_layout
17708
17709 \end_inset
17710
17711 (変更が検出された場合には知らせる)
17712 \begin_inset Newline newline
17713 \end_inset
17714
17715
17716 \begin_inset Flex Code
17717 status collapsed
17718
17719 \begin_layout Plain Layout
17720 cd $path; cvs -q update "."
17721 \end_layout
17722
17723 \end_inset
17724
17725
17726 \end_layout
17727
17728 \begin_layout Standard
17729 ここで
17730 \begin_inset Flex Code
17731 status collapsed
17732
17733 \begin_layout Plain Layout
17734 $path
17735 \end_layout
17736
17737 \end_inset
17738
17739 は文書パスを表します。
17740 \end_layout
17741
17742 \begin_layout Subsubsection
17743 履歴を表示
17744 \end_layout
17745
17746 \begin_layout Standard
17747 これは、CVS文書の全履歴を表示します。
17748 \begin_inset Flex Code
17749 status collapsed
17750
17751 \begin_layout Plain Layout
17752 cvs log 
17753 \begin_inset Quotes eld
17754 \end_inset
17755
17756 <ファイル名>
17757 \begin_inset Quotes erd
17758 \end_inset
17759
17760
17761 \end_layout
17762
17763 \end_inset
17764
17765 の出力がブラウザに表示されます。
17766 \end_layout
17767
17768 \begin_layout Subsection
17769 LyXにおけるSVNコマンド
17770 \end_layout
17771
17772 \begin_layout Standard
17773 LyXは、現在SVNを一部サポートしています。そのコマンドは、
17774 \begin_inset Flex MenuItem
17775 status collapsed
17776
17777 \begin_layout Plain Layout
17778 ファイル\SpecialChar \menuseparator
17779 バージョン管理
17780 \end_layout
17781
17782 \end_inset
17783
17784 メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。LyXは、SVN
17785  1.5および1.6に対して試験されています
17786 \begin_inset Foot
17787 status collapsed
17788
17789 \begin_layout Plain Layout
17790 ほとんどのコマンドは、1.4でも動作します。第
17791 \begin_inset CommandInset ref
17792 LatexCommand ref
17793 reference "sub:レポジトリからSVN同期"
17794
17795 \end_inset
17796
17797 節をご覧ください。
17798 \end_layout
17799
17800 \end_inset
17801
17802
17803 \end_layout
17804
17805 \begin_layout Subsubsection
17806 登録
17807 \end_layout
17808
17809 \begin_layout Standard
17810 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
17811 \family sans
17812 登録
17813 \family default
17814 項目は表示されません。
17815 \end_layout
17816
17817 \begin_layout Standard
17818 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
17819 \emph on
17820 のみ
17821 \emph default
17822 (すなわち
17823 \begin_inset Flex Code
17824 status collapsed
17825
17826 \begin_layout Plain Layout
17827 .svn/entries
17828 \end_layout
17829
17830 \end_inset
17831
17832 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
17833 \end_layout
17834
17835 \begin_layout Standard
17836 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
17837 \end_layout
17838
17839 \begin_layout Standard
17840 実行されるSVNコマンドは、
17841 \begin_inset Flex Code
17842 status collapsed
17843
17844 \begin_layout Plain Layout
17845 svn add -q 
17846 \begin_inset Quotes eld
17847 \end_inset
17848
17849 <ファイル名>
17850 \begin_inset Quotes erd
17851 \end_inset
17852
17853
17854 \end_layout
17855
17856 \end_inset
17857
17858 です。
17859 \end_layout
17860
17861 \begin_layout Standard
17862 スイッチの説明は
17863 \begin_inset Flex Code
17864 status collapsed
17865
17866 \begin_layout Plain Layout
17867 man svn
17868 \end_layout
17869
17870 \end_inset
17871
17872 をお読みください。
17873 \end_layout
17874
17875 \begin_layout Subsubsection
17876 変更をチェックイン
17877 \end_layout
17878
17879 \begin_layout Standard
17880 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
17881 \end_layout
17882
17883 \begin_layout Standard
17884 SVNコマンド
17885 \begin_inset Foot
17886 status collapsed
17887
17888 \begin_layout Plain Layout
17889 ロックが有効になっていない場合です。第
17890 \begin_inset CommandInset ref
17891 LatexCommand ref
17892 reference "sub:SVNファイルロック"
17893
17894 \end_inset
17895
17896 節をご覧ください。
17897 \end_layout
17898
17899 \end_inset
17900
17901
17902 \begin_inset Flex Code
17903 status collapsed
17904
17905 \begin_layout Plain Layout
17906 svn commit -q -m
17907 \begin_inset Quotes erd
17908 \end_inset
17909
17910 <入力した説明文>
17911 \begin_inset Quotes erd
17912 \end_inset
17913
17914  
17915 \begin_inset Quotes eld
17916 \end_inset
17917
17918 <ファイル名>
17919 \begin_inset Quotes erd
17920 \end_inset
17921
17922
17923 \end_layout
17924
17925 \end_inset
17926
17927
17928 \end_layout
17929
17930 \begin_layout Subsubsection
17931 チェックアウトして編集
17932 \end_layout
17933
17934 \begin_layout Standard
17935 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
17936 しておくようにしてください。
17937 \end_layout
17938
17939 \begin_layout Standard
17940 SVNコマンド
17941 \begin_inset Foot
17942 status collapsed
17943
17944 \begin_layout Plain Layout
17945 同上。
17946 \end_layout
17947
17948 \end_inset
17949
17950
17951 \begin_inset Flex Code
17952 status collapsed
17953
17954 \begin_layout Plain Layout
17955 svn update --non-interactive 
17956 \begin_inset Quotes eld
17957 \end_inset
17958
17959 <ファイル名>
17960 \begin_inset Quotes erd
17961 \end_inset
17962
17963
17964 \end_layout
17965
17966 \end_inset
17967
17968
17969 \end_layout
17970
17971 \begin_layout Subsubsection
17972 保存されたバージョンに戻す
17973 \end_layout
17974
17975 \begin_layout Standard
17976 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
17977 \end_layout
17978
17979 \begin_layout Standard
17980 SVNコマンド:
17981 \begin_inset Flex Code
17982 status collapsed
17983
17984 \begin_layout Plain Layout
17985 svn revert -q 
17986 \begin_inset Quotes eld
17987 \end_inset
17988
17989 <ファイル名>
17990 \begin_inset Quotes erd
17991 \end_inset
17992
17993
17994 \end_layout
17995
17996 \end_inset
17997
17998
17999 \end_layout
18000
18001 \begin_layout Subsubsection
18002 \begin_inset CommandInset label
18003 LatexCommand label
18004 name "sub:レポジトリからSVN同期"
18005
18006 \end_inset
18007
18008 レポジトリを使ったローカルディレクトリの同期
18009 \begin_inset Foot
18010 status collapsed
18011
18012 \begin_layout Plain Layout
18013 このコマンドは、subversion 
18014 \begin_inset Formula $\geqq1.5$
18015 \end_inset
18016
18017 でのみ動作することに注意してください。
18018 \end_layout
18019
18020 \end_inset
18021
18022
18023 \end_layout
18024
18025 \begin_layout Standard
18026 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
18027 \begin_inset Flex Code
18028 status collapsed
18029
18030 \begin_layout Plain Layout
18031 .tex
18032 \end_layout
18033
18034 \end_inset
18035
18036 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこでLyXは、文書のおいてあるツリー全体の更新をサポートします
18037 \begin_inset Foot
18038 status collapsed
18039
18040 \begin_layout Plain Layout
18041 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
18042 \end_layout
18043
18044 \end_inset
18045
18046 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
18047
18048 \end_layout
18049
18050 \begin_layout Standard
18051 \begin_inset Flex Code
18052 status collapsed
18053
18054 \begin_layout Plain Layout
18055 ローカル辞書をレポジトリを使って更新
18056 \end_layout
18057
18058 \end_inset
18059
18060 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
18061 場合には、更新が開始される前にユーザに警告が与えられます。
18062 \end_layout
18063
18064 \begin_layout Labeling
18065 \labelwidthstring 00.00.0000
18066 SVNコマンド: 
18067 \begin_inset space ~
18068 \end_inset
18069
18070
18071 \begin_inset Newline newline
18072 \end_inset
18073
18074
18075 \begin_inset Flex Code
18076 status collapsed
18077
18078 \begin_layout Plain Layout
18079 svn diff $path(変更が発見された場合には通知します)
18080 \begin_inset Newline newline
18081 \end_inset
18082
18083 svn update --accept mine-full $path
18084 \end_layout
18085
18086 \end_inset
18087
18088
18089 \end_layout
18090
18091 \begin_layout Standard
18092 ここで
18093 \begin_inset Flex Code
18094 status collapsed
18095
18096 \begin_layout Plain Layout
18097 $path
18098 \end_layout
18099
18100 \end_inset
18101
18102 は文書のパスを示します。
18103 \end_layout
18104
18105 \begin_layout Subsubsection
18106 履歴を表示
18107 \end_layout
18108
18109 \begin_layout Standard
18110 これは、SVN文書の全履歴を表示します。
18111 \begin_inset Flex Code
18112 status collapsed
18113
18114 \begin_layout Plain Layout
18115 svn log 
18116 \begin_inset Quotes eld
18117 \end_inset
18118
18119 <ファイル名>
18120 \begin_inset Quotes erd
18121 \end_inset
18122
18123
18124 \end_layout
18125
18126 \end_inset
18127
18128 の出力がブラウザに表示されます。
18129 \end_layout
18130
18131 \begin_layout Subsubsection
18132 ファイルロック
18133 \begin_inset CommandInset label
18134 LatexCommand label
18135 name "sub:SVNファイルロック"
18136
18137 \end_inset
18138
18139
18140 \end_layout
18141
18142 \begin_layout Standard
18143 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
18144 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
18145 するための、何らかのロック機構を導入することが考えられます。
18146 \end_layout
18147
18148 \begin_layout Standard
18149 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
18150 \begin_inset Flex Code
18151 status collapsed
18152
18153 \begin_layout Plain Layout
18154 svn:needs-lock
18155 \end_layout
18156
18157 \end_inset
18158
18159 svnファイル特性に依拠した書き込み権限の自動設定(第
18160 \begin_inset CommandInset ref
18161 LatexCommand ref
18162 reference "sub:自動ロック特性"
18163
18164 \end_inset
18165
18166 節を参照)です
18167 \begin_inset Foot
18168 status open
18169
18170 \begin_layout Plain Layout
18171 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
18172 \end_layout
18173
18174 \end_inset
18175
18176 。ある文書について、この特性が検出されたときには、LyXは自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組
18177 みに切り替わります。これは特に、LyXでのファイルの使われ方に以下の二つのモードがあることを意味します。
18178 \end_layout
18179
18180 \begin_layout Itemize
18181 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
18182 \emph on
18183 チェックアウト
18184 \emph default
18185 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
18186 \end_layout
18187
18188 \begin_layout Itemize
18189 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
18190 \emph on
18191 チェックイン
18192 \emph default
18193 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
18194 \begin_inset Foot
18195 status collapsed
18196
18197 \begin_layout Plain Layout
18198 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
18199 \end_layout
18200
18201 \end_inset
18202
18203 、書き込みロックの解放のみが行われます。
18204 \end_layout
18205
18206 \begin_layout Standard
18207 SVNコマンド:
18208 \end_layout
18209
18210 \begin_layout Labeling
18211 \labelwidthstring 00.00.0000
18212 チェックイン: 
18213 \begin_inset Flex Code
18214 status collapsed
18215
18216 \begin_layout Plain Layout
18217 svn commit -q -m
18218 \begin_inset Quotes erd
18219 \end_inset
18220
18221 <説明>
18222 \begin_inset Quotes erd
18223 \end_inset
18224
18225  
18226 \begin_inset Quotes eld
18227 \end_inset
18228
18229 <ファイル名>
18230 \begin_inset Quotes erd
18231 \end_inset
18232
18233
18234 \end_layout
18235
18236 \end_inset
18237
18238
18239 \begin_inset Newline newline
18240 \end_inset
18241
18242
18243 \begin_inset Flex Code
18244 status collapsed
18245
18246 \begin_layout Plain Layout
18247 svn unlock 
18248 \begin_inset Quotes eld
18249 \end_inset
18250
18251 <ファイル名>
18252 \begin_inset Quotes erd
18253 \end_inset
18254
18255
18256 \end_layout
18257
18258 \end_inset
18259
18260
18261 \end_layout
18262
18263 \begin_layout Labeling
18264 \labelwidthstring 00.00.0000
18265 チェックアウト: 
18266 \begin_inset Flex Code
18267 status collapsed
18268
18269 \begin_layout Plain Layout
18270 svn update 
18271 \begin_inset Quotes eld
18272 \end_inset
18273
18274 <ファイル名>
18275 \begin_inset Quotes erd
18276 \end_inset
18277
18278
18279 \end_layout
18280
18281 \end_inset
18282
18283
18284 \begin_inset Newline newline
18285 \end_inset
18286
18287
18288 \begin_inset Flex Code
18289 status collapsed
18290
18291 \begin_layout Plain Layout
18292 svn unlock 
18293 \begin_inset Quotes eld
18294 \end_inset
18295
18296 <ファイル名>
18297 \begin_inset Quotes erd
18298 \end_inset
18299
18300
18301 \end_layout
18302
18303 \end_inset
18304
18305
18306 \end_layout
18307
18308 \begin_layout Subsubsection
18309 自動ロック特性
18310 \begin_inset CommandInset label
18311 LatexCommand label
18312 name "sub:自動ロック特性"
18313
18314 \end_inset
18315
18316
18317 \end_layout
18318
18319 \begin_layout Standard
18320 上述したような
18321 \begin_inset Flex Code
18322 status collapsed
18323
18324 \begin_layout Plain Layout
18325 .lyx
18326 \end_layout
18327
18328 \end_inset
18329
18330 ファイルに対する書き込み権限の自動設定は、
18331 \begin_inset Flex MenuItem
18332 status collapsed
18333
18334 \begin_layout Plain Layout
18335 ファイル\SpecialChar \menuseparator
18336 バージョン管理\SpecialChar \menuseparator
18337 ロック特性を使用
18338 \end_layout
18339
18340 \end_inset
18341
18342 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
18343 \end_layout
18344
18345 \begin_layout Standard
18346 SVNコマンド:
18347 \end_layout
18348
18349 \begin_layout Labeling
18350 \labelwidthstring 00.00.0000
18351 チェックイン: 
18352 \begin_inset Flex Code
18353 status collapsed
18354
18355 \begin_layout Plain Layout
18356 svn propset svn:needs-lock ON 
18357 \begin_inset Quotes eld
18358 \end_inset
18359
18360 <ファイル名>
18361 \begin_inset Quotes erd
18362 \end_inset
18363
18364
18365 \end_layout
18366
18367 \end_inset
18368
18369
18370 \end_layout
18371
18372 \begin_layout Labeling
18373 \labelwidthstring 00.00.0000
18374 チェックアウト: 
18375 \begin_inset Flex Code
18376 status collapsed
18377
18378 \begin_layout Plain Layout
18379 svn propdel svn:needs-lock 
18380 \begin_inset Quotes eld
18381 \end_inset
18382
18383 <ファイル名>
18384 \begin_inset Quotes erd
18385 \end_inset
18386
18387
18388 \end_layout
18389
18390 \end_inset
18391
18392
18393 \end_layout
18394
18395 \begin_layout Subsubsection
18396 \begin_inset CommandInset label
18397 LatexCommand label
18398 name "sub:VCS改訂情報"
18399
18400 \end_inset
18401
18402 文書の改訂情報
18403 \end_layout
18404
18405 \begin_layout Standard
18406 文書中で改訂情報を有効化するにはいくつかの方法があります。
18407 \end_layout
18408
18409 \begin_layout Itemize
18410 LyXによる直接サポート
18411 \end_layout
18412
18413 \begin_deeper
18414 \begin_layout Itemize
18415 ツリー改訂情報(
18416 \begin_inset Flex Code
18417 status collapsed
18418
18419 \begin_layout Plain Layout
18420 vcs-tree-revision
18421 \end_layout
18422
18423 \end_inset
18424
18425 )。
18426 \begin_inset Flex Code
18427 status collapsed
18428
18429 \begin_layout Plain Layout
18430 svnversion
18431 \end_layout
18432
18433 \end_inset
18434
18435 コマンドの出力を返します。下記の表が、結果の読み方のヒントを与えるでしょう。
18436 \end_layout
18437
18438 \begin_layout Standard
18439 \align center
18440 \begin_inset Tabular
18441 <lyxtabular version="3" rows="6" columns="2">
18442 <features tabularvalignment="middle">
18443 <column alignment="center" valignment="top" width="0">
18444 <column alignment="center" valignment="top" width="0">
18445 <row>
18446 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18447 \begin_inset Text
18448
18449 \begin_layout Plain Layout
18450 出力
18451 \end_layout
18452
18453 \end_inset
18454 </cell>
18455 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18456 \begin_inset Text
18457
18458 \begin_layout Plain Layout
18459 意味
18460 \end_layout
18461
18462 \end_inset
18463 </cell>
18464 </row>
18465 <row>
18466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18467 \begin_inset Text
18468
18469 \begin_layout Plain Layout
18470 4123:4168
18471 \end_layout
18472
18473 \end_inset
18474 </cell>
18475 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18476 \begin_inset Text
18477
18478 \begin_layout Plain Layout
18479 改訂版の混合した作業コピー
18480 \end_layout
18481
18482 \end_inset
18483 </cell>
18484 </row>
18485 <row>
18486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18487 \begin_inset Text
18488
18489 \begin_layout Plain Layout
18490 4168M
18491 \end_layout
18492
18493 \end_inset
18494 </cell>
18495 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18496 \begin_inset Text
18497
18498 \begin_layout Plain Layout
18499 修正された作業コピー
18500 \end_layout
18501
18502 \end_inset
18503 </cell>
18504 </row>
18505 <row>
18506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18507 \begin_inset Text
18508
18509 \begin_layout Plain Layout
18510 4123S
18511 \end_layout
18512
18513 \end_inset
18514 </cell>
18515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18516 \begin_inset Text
18517
18518 \begin_layout Plain Layout
18519 スイッチされた作業コピー
18520 \end_layout
18521
18522 \end_inset
18523 </cell>
18524 </row>
18525 <row>
18526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18527 \begin_inset Text
18528
18529 \begin_layout Plain Layout
18530 4123P
18531 \end_layout
18532
18533 \end_inset
18534 </cell>
18535 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18536 \begin_inset Text
18537
18538 \begin_layout Plain Layout
18539 チェックアウト頻度が低かったことによる不完全な作業コピー
18540 \end_layout
18541
18542 \end_inset
18543 </cell>
18544 </row>
18545 <row>
18546 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18547 \begin_inset Text
18548
18549 \begin_layout Plain Layout
18550 4123:4168MS
18551 \end_layout
18552
18553 \end_inset
18554 </cell>
18555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18556 \begin_inset Text
18557
18558 \begin_layout Plain Layout
18559 改訂版が混合し、修正され、スイッチされた作業コピー
18560 \end_layout
18561
18562 \end_inset
18563 </cell>
18564 </row>
18565 </lyxtabular>
18566
18567 \end_inset
18568
18569
18570 \end_layout
18571
18572 \begin_layout Itemize
18573 ファイル改訂情報。
18574 \begin_inset Flex Code
18575 status collapsed
18576
18577 \begin_layout Plain Layout
18578 svn
18579 \begin_inset space ~
18580 \end_inset
18581
18582 info
18583 \begin_inset space ~
18584 \end_inset
18585
18586 --xml
18587 \begin_inset space ~
18588 \end_inset
18589
18590 file.lyx
18591 \end_layout
18592
18593 \end_inset
18594
18595 の出力を解析したものが返されます。サポートされるフラグは
18596 \end_layout
18597
18598 \begin_deeper
18599 \begin_layout Itemize
18600 最終コミットのバージョン番号(
18601 \begin_inset Flex Code
18602 status collapsed
18603
18604 \begin_layout Plain Layout
18605 vcs-revision
18606 \end_layout
18607
18608 \end_inset
18609
18610
18611 \end_layout
18612
18613 \begin_layout Itemize
18614 最終コミットの著者(
18615 \begin_inset Flex Code
18616 status collapsed
18617
18618 \begin_layout Plain Layout
18619 vcs-author
18620 \end_layout
18621
18622 \end_inset
18623
18624
18625 \end_layout
18626
18627 \begin_layout Itemize
18628 最終コミットの日付(
18629 \begin_inset Flex Code
18630 status collapsed
18631
18632 \begin_layout Plain Layout
18633 vcs-date
18634 \end_layout
18635
18636 \end_inset
18637
18638
18639 \end_layout
18640
18641 \begin_layout Itemize
18642 最終コミットの時間(
18643 \begin_inset Flex Code
18644 status collapsed
18645
18646 \begin_layout Plain Layout
18647 vcs-time
18648 \end_layout
18649
18650 \end_inset
18651
18652
18653 \end_layout
18654
18655 \end_deeper
18656 \begin_layout Standard
18657 これらの情報は、情報差込枠で得ることができます(例:
18658 \begin_inset Flex Code
18659 status collapsed
18660
18661 \begin_layout Plain Layout
18662 info-insert buffer vcs-date
18663 \end_layout
18664
18665 \end_inset
18666
18667 )。これらの情報は、ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
18668 \begin_inset Flex Code
18669 status collapsed
18670
18671 \begin_layout Plain Layout
18672 .svn
18673 \end_layout
18674
18675 \end_inset
18676
18677 ディレクトリがあるときのみ)利用可能です。
18678 \end_layout
18679
18680 \end_deeper
18681 \begin_layout Itemize
18682 もう一つの---ハッカー的な---方法は、SVNキーワードを使用する方法です
18683 \begin_inset Foot
18684 status collapsed
18685
18686 \begin_layout Plain Layout
18687 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
18688 \end_layout
18689
18690 \end_inset
18691
18692 。簡単に言えば、ファイルキーワード特性を設定して(例:
18693 \family sans
18694 svn propset svn:keywords 'Rev' file.lyx
18695 \family default
18696 )、文書中にキーワードTeXコード
18697 \begin_inset Foot
18698 status collapsed
18699
18700 \begin_layout Plain Layout
18701 これは、LyXがキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
18702 \end_layout
18703
18704 \end_inset
18705
18706 タグ(例:
18707 \begin_inset ERT
18708 status open
18709
18710 \begin_layout Plain Layout
18711
18712 $Rev$
18713 \end_layout
18714
18715 \end_inset
18716
18717 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
18718 \begin_inset ERT
18719 status open
18720
18721 \begin_layout Plain Layout
18722
18723 $Rev: 59 $
18724 \end_layout
18725
18726 \end_inset
18727
18728 )。このアプローチにはいくつか問題があります。第一に、TeXの世界では「$」文字は数式を表すのに使われるので、LyX中の
18729 \begin_inset Formula $Rev$
18730 \end_inset
18731
18732 という数式表現が、すべて
18733 \begin_inset Formula $Rev:59$
18734 \end_inset
18735
18736 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
18737 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
18738 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、LyXがこれを直接サポートすることは、難しそうです。
18739 \end_layout
18740
18741 \begin_layout Subsection
18742 SVNとWindows環境
18743 \end_layout
18744
18745 \begin_layout Quote
18746 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。---P.
18747  A.
18748  ルービン
18749 \end_layout
18750
18751 \begin_layout Subsubsection
18752 準備
18753 \end_layout
18754
18755 \begin_layout Standard
18756 LyXを導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クラ
18757 イアントプログラムのWindows用インストーラは
18758 \begin_inset CommandInset href
18759 LatexCommand href
18760 name "CollabNet"
18761 target "http://www.collab.net/nonav/downloads/subversion/"
18762
18763 \end_inset
18764
18765 にあります。ユーザは
18766 \begin_inset CommandInset href
18767 LatexCommand href
18768 name "TortoiseSVN"
18769 target "http://tortoisesvn.tigris.org/"
18770
18771 \end_inset
18772
18773 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。LyX外部で
18774 行う操作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、LyX自身が使用するクライアントプログラムの代わりとは成
18775 りませんので、注意してください。
18776 \end_layout
18777
18778 \begin_layout Subsubsection
18779 文書をSubversion管理下に置くには
18780 \end_layout
18781
18782 \begin_layout Standard
18783 LyX文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロ
18784 ジェクトに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下
18785 にない場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、LyXの外
18786 部で行います。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、
18787 DOSプロンプトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。
18788 レポジトリは既に存在し、新規プロジェクトを
18789 \begin_inset Flex Code
18790 status collapsed
18791
18792 \begin_layout Plain Layout
18793 C:
18794 \backslash
18795 new project
18796 \end_layout
18797
18798 \end_inset
18799
18800 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
18801 \begin_inset Flex Code
18802 status collapsed
18803
18804 \begin_layout Plain Layout
18805 svn --help
18806 \end_layout
18807
18808 \end_inset
18809
18810 を実行してください。
18811 \end_layout
18812
18813 \begin_layout Enumerate
18814 Windows Explorerで
18815 \begin_inset Flex Code
18816 status collapsed
18817
18818 \begin_layout Plain Layout
18819 C:
18820 \backslash
18821 new project
18822 \end_layout
18823
18824 \end_inset
18825
18826 を見つけ出して右クリックし、
18827 \begin_inset Flex MenuItem
18828 status collapsed
18829
18830 \begin_layout Plain Layout
18831 TortoiseSVN\SpecialChar \menuseparator
18832 Repo-browser
18833 \end_layout
18834
18835 \end_inset
18836
18837 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
18838 \end_layout
18839
18840 \begin_layout Enumerate
18841 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
18842 \begin_inset Flex MenuItem
18843 status collapsed
18844
18845 \begin_layout Plain Layout
18846 Create folder\SpecialChar \ldots{}
18847
18848 \end_layout
18849
18850 \end_inset
18851
18852 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
18853 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
18854 \end_layout
18855
18856 \begin_layout Enumerate
18857 再度
18858 \begin_inset Flex Code
18859 status collapsed
18860
18861 \begin_layout Plain Layout
18862 C:
18863 \backslash
18864 new project
18865 \end_layout
18866
18867 \end_inset
18868
18869 を右クリックし、今度は
18870 \begin_inset Flex MenuItem
18871 status collapsed
18872
18873 \begin_layout Plain Layout
18874 SVN Checkout\SpecialChar \ldots{}
18875
18876 \end_layout
18877
18878 \end_inset
18879
18880 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
18881 \begin_inset Flex Code
18882 status collapsed
18883
18884 \begin_layout Plain Layout
18885 C:
18886 \backslash
18887 new project
18888 \end_layout
18889
18890 \end_inset
18891
18892 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
18893 \begin_inset Flex Code
18894 status collapsed
18895
18896 \begin_layout Plain Layout
18897 C:
18898 \backslash
18899 new project
18900 \end_layout
18901
18902 \end_inset
18903
18904 の下に
18905 \begin_inset Flex Code
18906 status collapsed
18907
18908 \begin_layout Plain Layout
18909 .svn
18910 \end_layout
18911
18912 \end_inset
18913
18914 ディレクトリが作成されます。
18915 \end_layout
18916
18917 \begin_layout Enumerate
18918 LyXで文書を新規作成するか開くかして、
18919 \begin_inset Flex MenuItem
18920 status collapsed
18921
18922 \begin_layout Plain Layout
18923 ファイル\SpecialChar \menuseparator
18924 バージョン管理\SpecialChar \menuseparator
18925 登録
18926 \end_layout
18927
18928 \end_inset
18929
18930 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
18931 \end_layout
18932
18933 \begin_layout Standard
18934 爾後、
18935 \begin_inset Flex MenuItem
18936 status collapsed
18937
18938 \begin_layout Plain Layout
18939 ファイル\SpecialChar \menuseparator
18940 バージョン管理
18941 \end_layout
18942
18943 \end_inset
18944
18945 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
18946 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
18947 \end_layout
18948
18949 \begin_layout Subsubsection
18950 Windows下でSVNと共にSSHトンネルを使うには
18951 \end_layout
18952
18953 \begin_layout Standard
18954 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
18955 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
18956 ることを覚悟しておいてください。
18957 \end_layout
18958
18959 \begin_layout Enumerate
18960 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
18961 \begin_inset Flex Code
18962 status collapsed
18963
18964 \begin_layout Plain Layout
18965 svn --version
18966 \end_layout
18967
18968 \end_inset
18969
18970 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
18971 \end_layout
18972
18973 \begin_layout Enumerate
18974 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
18975 \begin_inset Foot
18976 status open
18977
18978 \begin_layout Plain Layout
18979 \begin_inset Flex URL
18980 status collapsed
18981
18982 \begin_layout Plain Layout
18983
18984 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
18985 \end_layout
18986
18987 \end_inset
18988
18989
18990 \end_layout
18991
18992 \end_inset
18993
18994 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
18995 護などを加えないキーのみを使用することとします。
18996 \end_layout
18997
18998 \begin_deeper
18999 \begin_layout Enumerate
19000 \begin_inset Flex Code
19001 status collapsed
19002
19003 \begin_layout Plain Layout
19004 puttygen
19005 \end_layout
19006
19007 \end_inset
19008
19009 を使ってキーを生成します。.ppkプライベートキーファイルを保存し、パブリックキーファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブ
19010 リックキーの書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized
19011 _keys file:」編集フィールドから、直接サーバの
19012 \begin_inset Flex Code
19013 status collapsed
19014
19015 \begin_layout Plain Layout
19016 ~/.ssh/authorized_keys
19017 \end_layout
19018
19019 \end_inset
19020
19021 または
19022 \begin_inset Flex Code
19023 status collapsed
19024
19025 \begin_layout Plain Layout
19026 authorized_keys2
19027 \end_layout
19028
19029 \end_inset
19030
19031 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
19032 \end_layout
19033
19034 \begin_layout Enumerate
19035 Puttyのplinkを入手してください。SVNのconfigファイル
19036 \begin_inset Foot
19037 status collapsed
19038
19039 \begin_layout Plain Layout
19040 正確なパスはWindowsのバージョンに依りますが、通常は
19041 \begin_inset Flex Code
19042 status collapsed
19043
19044 \begin_layout Plain Layout
19045 c:
19046 \backslash
19047 Documents and Settings
19048 \backslash
19049 user
19050 \backslash
19051 Application Data
19052 \backslash
19053 Subversion
19054 \backslash
19055 config
19056 \end_layout
19057
19058 \end_inset
19059
19060
19061 \begin_inset Flex Code
19062 status collapsed
19063
19064 \begin_layout Plain Layout
19065 AppData
19066 \backslash
19067 Roaming
19068 \backslash
19069 Subversion
19070 \end_layout
19071
19072 \end_inset
19073
19074 辺りにあります。
19075 \end_layout
19076
19077 \end_inset
19078
19079 中の
19080 \begin_inset Flex Code
19081 status collapsed
19082
19083 \begin_layout Plain Layout
19084 [tunnels]
19085 \end_layout
19086
19087 \end_inset
19088
19089 セクションにsshコマンドを設定してください。例:
19090 \begin_inset Flex Code
19091 status collapsed
19092
19093 \begin_layout Plain Layout
19094 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
19095 \end_layout
19096
19097 \end_inset
19098
19099
19100 \begin_inset Foot
19101 status collapsed
19102
19103 \begin_layout Plain Layout
19104 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
19105 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
19106 \end_layout
19107
19108 \end_inset
19109
19110
19111 \end_layout
19112
19113 \end_deeper
19114 \begin_layout Enumerate
19115 SVNアーカイブをチェックアウトしてください。例:
19116 \begin_inset Flex Code
19117 status collapsed
19118
19119 \begin_layout Plain Layout
19120 svn co svn+ssh://user@server/repository_path
19121 \end_layout
19122
19123 \end_inset
19124
19125
19126 \end_layout
19127
19128 \begin_layout Subsubsection
19129 行末変換
19130 \end_layout
19131
19132 \begin_layout Standard
19133 共著者同士がLinuxとWindowsを混在させているとき、LyXは.lyxファイル中で異なった行末記号を使用することになります。これは、LyXの機能に関する限り
19134 問題になりませんが、コミット差分は巨大になり、マージではコンフリクトを引き起こしがちです。幸いにして、SVNは、.lyxファイルを
19135 \begin_inset Flex Code
19136 status collapsed
19137
19138 \begin_layout Plain Layout
19139 native
19140 \end_layout
19141
19142 \end_inset
19143
19144 モードに切り替える際
19145 \begin_inset Foot
19146 status collapsed
19147
19148 \begin_layout Plain Layout
19149 手短には
19150 \begin_inset Flex Code
19151 status collapsed
19152
19153 \begin_layout Plain Layout
19154 svn propset svn:eol-style native FILE_NAME
19155 \end_layout
19156
19157 \end_inset
19158
19159
19160 \end_layout
19161
19162 \end_inset
19163
19164 、CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
19165 \begin_inset Foot
19166 status collapsed
19167
19168 \begin_layout Plain Layout
19169 \begin_inset Flex URL
19170 status collapsed
19171
19172 \begin_layout Plain Layout
19173
19174 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
19175 \end_layout
19176
19177 \end_inset
19178
19179
19180 \end_layout
19181
19182 \end_inset
19183
19184
19185 \end_layout
19186
19187 \begin_layout Subsection
19188 さらなる調整
19189 \end_layout
19190
19191 \begin_layout Standard
19192 vcコマンド機構が最近になって付け加えられたおかげで、LyXのパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
19193 \end_layout
19194
19195 \begin_layout Standard
19196 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
19197 \end_layout
19198
19199 \begin_layout Description
19200 コミット: 
19201 \begin_inset Flex Code
19202 status collapsed
19203
19204 \begin_layout Plain Layout
19205 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
19206 \end_layout
19207
19208 \end_inset
19209
19210
19211 \end_layout
19212
19213 \begin_layout Description
19214 元に戻す: 
19215 \begin_inset Flex Code
19216 status collapsed
19217
19218 \begin_layout Plain Layout
19219 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
19220 \end_layout
19221
19222 \end_inset
19223
19224
19225 \end_layout
19226
19227 \begin_layout Subsection
19228 バージョン管理と文書比較
19229 \end_layout
19230
19231 \begin_layout Standard
19232 バージョン管理は、通常
19233 \begin_inset Flex Code
19234 status collapsed
19235
19236 \begin_layout Plain Layout
19237 diff
19238 \end_layout
19239
19240 \end_inset
19241
19242 ダンプを生成することによって、改訂版の間の変更点を検査するのが、典型的な使用法です。これは平文ファイルには有効なのですが、複雑な構造を持つLyXファイルの場合に
19243 は、あまり便利ではありません。そこで、LyXは独自の文書比較機能を提供しています。この機能を呼び出すには2つの方法があります。1つは、LyXの
19244 \begin_inset Flex Code
19245 status collapsed
19246
19247 \begin_layout Plain Layout
19248 VC_COMPARE
19249 \end_layout
19250
19251 \end_inset
19252
19253 関数を直接呼び出す方法であり(詳細はLyX関数説明書を参照)、もう1つは
19254 \begin_inset Flex MenuItem
19255 status collapsed
19256
19257 \begin_layout Plain Layout
19258 旧改訂と比較\SpecialChar \ldots{}
19259
19260 \end_layout
19261
19262 \end_inset
19263
19264 メニューないしアイコンを使用する方法です。当該文書のうち、任意の2つの改訂版を比較することもできますし、編集中の現行版を古い改訂版と比較することもできます(この
19265 とき改訂版遡及数「
19266 \begin_inset Flex MenuItem
19267 status collapsed
19268
19269 \begin_layout Plain Layout
19270 0
19271 \end_layout
19272
19273 \end_inset
19274
19275 」は、編集中のファイルと最後にコミットした改訂版との比較を意味します)。
19276 \end_layout
19277
19278 \begin_layout Standard
19279 この機能は、SVNとRCSでサポートされていますが、RCSは、より複雑なバージョン付けスキームを持っているため、制約があります。ダイアログ中で改訂版を指定する際
19280 の数字は、つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」)。
19281 \end_layout
19282
19283 \begin_layout Section
19284 文芸的プログラミング
19285 \end_layout
19286
19287 \begin_layout Standard
19288
19289 \noun on
19290 Kayvan Sylvan
19291 \noun default
19292 (kayvan@sylvan.com)改訂 
19293 \noun on
19294 Edmar Wienskoski Jr.
19295 \noun default
19296 (edmar-w-jr@technologist.com)原文
19297 \end_layout
19298
19299 \begin_layout Subsection
19300 はじめに
19301 \end_layout
19302
19303 \begin_layout Standard
19304 この節の主な目的は、文芸的プログラミング(literate programming)のために、LyXをどう使えばよいかをお見せすることです。ここでは、あなたがこ
19305 のプログラミング技術をよくご存じで、「tangling」や「weaving」の意味するところを知っているものとして説明します。そうでない場合には、以下の各節にあ
19306 るウェブリンクをたどってください。そこには、かつての開発の歴史から最新のツールチップまで、たくさんの良質なドキュメンテーションがあります。
19307 \end_layout
19308
19309 \begin_layout Standard
19310 また、あなたが、LyXの設定を変更することを厭わない程度までLyXに習熟しており、Xリソースファイルにも親しんでいることを前提にしています。そうでない場合は、あ
19311 なたの必要とするトピックを扱っている、LyXの他の説明書で調べてください。
19312 \end_layout
19313
19314 \begin_layout Subsection
19315 文芸的プログラミング
19316 \end_layout
19317
19318 \begin_layout Standard
19319 以下は、文芸的プログラミング FAQからの抜粋です。
19320 \end_layout
19321
19322 \begin_layout Quotation
19323 文芸的プログラミングは、人間が読むのに適した形でのドキュメンテーションとソースの組合わせです。実際、文芸的プログラムは楽しい読み物であるべきであり、さらには参加
19324 したいとさえ思わせるべきなのです!(ボブ、ごめん。言わずにはいれなかった。)一般的に、文芸的プログラムは、ソースとドキュメンテーションを同一ファイル上に結合した
19325 ものです。そして、文芸的プログラミングツールは、ファイルを解析して、読むことのできるドキュメンテーションか、あるいはコンパイル可能なソースを生成します。文芸的プ
19326 ログラミングのWEBスタイルは、D.
19327 \begin_inset space \thinspace{}
19328 \end_inset
19329
19330 E.
19331  Knuthが、TeX組版ソフトウエアを開発中に作り出したものです。
19332 \end_layout
19333
19334 \begin_layout Standard
19335 他のエキスパートの発言です。
19336 \end_layout
19337
19338 \begin_layout Quotation
19339
19340 \emph on
19341 文芸的プログラミングは、冗長なコメント付けと何が違いますか?
19342 \end_layout
19343
19344 \begin_layout Quotation
19345 3つの際立った特徴があります。重要な順に列挙すれば、
19346 \end_layout
19347
19348 \begin_deeper
19349 \begin_layout Itemize
19350 推敲の順序が柔軟
19351 \end_layout
19352
19353 \begin_layout Itemize
19354 ブラウジングの自動サポート
19355 \end_layout
19356
19357 \begin_layout Itemize
19358 特に図式と数式を含んだドキュメンテーションの組版
19359 \end_layout
19360
19361 \end_deeper
19362 \begin_layout Quotation
19363 などがあります。
19364 \end_layout
19365
19366 \begin_layout Standard
19367 あなたの興味に火を付けたところで参考文献を見てみましょう。
19368 \end_layout
19369
19370 \begin_layout Subsubsection
19371 参考文献
19372 \end_layout
19373
19374 \begin_layout Standard
19375 完全な文芸的プログラミング FAQは
19376 \end_layout
19377
19378 \begin_layout Quote
19379 Literate Programming FAQ 
19380 \begin_inset Flex URL
19381 status collapsed
19382
19383 \begin_layout Plain Layout
19384
19385 http://shelob.ce.ttu.edu/daves/lpfaq/faq.html
19386 \end_layout
19387
19388 \end_inset
19389
19390
19391 \end_layout
19392
19393 \begin_layout Standard
19394 にあります。
19395 \end_layout
19396
19397 \begin_layout Standard
19398 このFAQには、23(二十三です!)の文芸的プログラミング用ツールが列挙されています。一部のツールは、特定のプログラミング言語用に特化したものですが、一般的な対
19399 象を持つものもあります。私は自分で使うのに、いくつかの理由から
19400 \noun on
19401 Noweb
19402 \noun default
19403 を選びました。
19404 \end_layout
19405
19406 \begin_layout Itemize
19407 ドキュメンテーションをLaTeXでもHTMLでも出力できる。
19408 \end_layout
19409
19410 \begin_layout Itemize
19411 開放的なアーキテクチャに持っているので、新しいフィルタをプラグインとして加えたり、自分が必要な特別な処理を実行することが容易である。
19412 \end_layout
19413
19414 \begin_layout Itemize
19415 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです)。
19416 \end_layout
19417
19418 \begin_layout Itemize
19419 無料である。
19420 \end_layout
19421
19422 \begin_layout Standard
19423 Nowebのウェブページは
19424 \end_layout
19425
19426 \begin_layout Quote
19427 Nowebホームページ 
19428 \begin_inset Flex URL
19429 status collapsed
19430
19431 \begin_layout Plain Layout
19432
19433 http://www.cs.virginia.edu/~nr/noweb/
19434 \end_layout
19435
19436 \end_inset
19437
19438
19439 \end_layout
19440
19441 \begin_layout Standard
19442 にあります。ここから始めれば、たくさんの興味深いリンクや、文芸的プログラミングの用例にたどり着くことができます。
19443 \end_layout
19444
19445 \begin_layout Subsection
19446 LyXと文芸的プログラミング
19447 \end_layout
19448
19449 \begin_layout Standard
19450 LyXにおける文芸的プログラミングのサポートは、LyXの汎用変換機構を使用して実現しています。このサポートは「Noweb非依存」的な方法で提供されているので、L
19451 yXの設定を変更するだけで、自分の好きな他の文芸的プログラミングツールを使って、この新しいLyXの機能を利用することができます。
19452 \end_layout
19453
19454 \begin_layout Subsubsection
19455 ドキュメントとコードの生成(weavingおよびtangling)
19456 \end_layout
19457
19458 \begin_layout Paragraph
19459 文書クラスの選択
19460 \end_layout
19461
19462 \begin_layout Standard
19463 NowebとLyXの導入に成功すると、新規文書を開いたり、既存文書の文書クラスを変更しようとする際、以下の3つの新しい文書クラスが利用可能になっているはずです。
19464 \end_layout
19465
19466 \begin_layout Itemize
19467 Article (Noweb)
19468 \end_layout
19469
19470 \begin_layout Itemize
19471 Book (Noweb)
19472 \end_layout
19473
19474 \begin_layout Itemize
19475 Report (Noweb)
19476 \end_layout
19477
19478 \begin_layout Standard
19479 文芸的プログラミング文書を作成する場合には、これらのうち一つを選んでください。
19480 \end_layout
19481
19482 \begin_layout Standard
19483 文芸的プログラミング文書は、これら3つのクラスに限定されないことに注意してください。letterのような他のスタイルから新しいクラスを作成することもできますし、
19484 Article (AMS)のような他のクラスバリエーションと組み合わせて作成することもできます。既存のクラスではカバーできないような、特別なニーズがある場合には
19485 、LyX開発者用メーリングリスト(lyx-devel@lists.lyx.org)に連絡していただければ、新しい項目を加えるように調整するか、そのしかたをお教えしま
19486
19487 \begin_inset Foot
19488 status collapsed
19489
19490 \begin_layout Plain Layout
19491 これは非常に簡単です。これを行うには、4行から成るファイルを作成し、自動設定を実行するだけなのです。
19492 \end_layout
19493
19494 \end_inset
19495
19496 。また、Noweb以外の文芸的プログラミングツールを使用する場合にも、そのための新しい文書クラスをつくる必要があります。
19497 \end_layout
19498
19499 \begin_layout Paragraph
19500 コードの入力
19501 \end_layout
19502
19503 \begin_layout Standard
19504 LyXでは、
19505 \noun on
19506 Scrap
19507 \noun default
19508
19509 \begin_inset Foot
19510 status collapsed
19511
19512 \begin_layout Plain Layout
19513 Nowebでの名称は「Chunk」です。歴史的な理由から、別の文芸プログラミングツールNuwebで使われている「scrap」という用語を使用しています。Nuwe
19514 bは、私がNowebに乗り換える前に長年使用していたツールです。
19515 \end_layout
19516
19517 \end_inset
19518
19519 という名前のレイアウトを使えば、コードを入力することができます。Nowebは次のようにscrapを区切ります。
19520 \end_layout
19521
19522 \begin_layout LyX-Code
19523 <<My scrap>>=
19524 \end_layout
19525
19526 \begin_layout LyX-Code
19527   code
19528 \end_layout
19529
19530 \begin_layout LyX-Code
19531   more code
19532 \end_layout
19533
19534 \begin_layout LyX-Code
19535   even more code
19536 \end_layout
19537
19538 \begin_layout LyX-Code
19539   @
19540 \end_layout
19541
19542 \begin_layout Standard
19543 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまりLyXはこの間に書かれたものへのどんな変更も禁止しなくてははなりません。こ
19544 れはScrapと呼ぶ特別なレイアウトで扱われます。この環境は通常の段落のようですが、自由に空白を入れることができます。
19545 \end_layout
19546
19547 \begin_layout Standard
19548 Scrap段落環境の欠点は、連続したコードの段落の間に空行がソースコードにも印刷したドキュメントにも入ることです。これを回避するためには、Scrap環境の中の改
19549 行には(ctrl-return)を使ってください。上の例では次のようにします
19550 \begin_inset Foot
19551 status collapsed
19552
19553 \begin_layout Plain Layout
19554 印刷したバージョンを読んでいる場合にはこの例と上の例の違いが分かりません。
19555 \end_layout
19556
19557 \end_inset
19558
19559
19560 \end_layout
19561
19562 \begin_layout LyX-Code
19563 <<My scrap>>=
19564 \begin_inset Newline newline
19565 \end_inset
19566
19567   code
19568 \begin_inset Newline newline
19569 \end_inset
19570
19571   more code
19572 \begin_inset Newline newline
19573 \end_inset
19574
19575   even more code
19576 \begin_inset Newline newline
19577 \end_inset
19578
19579   @
19580 \end_layout
19581
19582 \begin_layout Standard
19583 この環境はうまく働きます。不便な点は普通のリターンのかわりにctrl-returnを使わなければならないことです
19584 \begin_inset Foot
19585 status collapsed
19586
19587 \begin_layout Plain Layout
19588 これは改善しなければならない点でしょう。
19589 \end_layout
19590
19591 \end_inset
19592
19593
19594 \end_layout
19595
19596 \begin_layout Standard
19597 また、Scrapの中にNowebの%defを使うことができます。これを使うことでNowebのidentifierの相互参照に項目を加えることができます。次の例を
19598 見てください。
19599 \end_layout
19600
19601 \begin_layout LyX-Code
19602 <<My scrap>>=
19603 \begin_inset Newline newline
19604 \end_inset
19605
19606   def some_function(args):
19607 \begin_inset Newline newline
19608 \end_inset
19609
19610     "This is the doc string for this function."
19611 \begin_inset Newline newline
19612 \end_inset
19613
19614     print "My args: ", args
19615 \end_layout
19616
19617 \begin_layout LyX-Code
19618 @ %def some_function
19619 \end_layout
19620
19621 \begin_layout Standard
19622 これをどのように使って、その結果相互参照がどうなるかは
19623 \emph on
19624 LIBDIR/examples/listerrors.lyx
19625 \emph default
19626 の中の文芸pythonプログラムを見るとよくわかります。
19627 \end_layout
19628
19629 \begin_layout Paragraph
19630 ドキュメンテーションの生成
19631 \end_layout
19632
19633 \begin_layout Standard
19634 新しい文章ファイルを正しい文書クラスでつくり、その中にコードとテキストも入れました。これをどうやって印刷したらいいのでしょう。簡単です。
19635 \begin_inset Flex MenuItem
19636 status collapsed
19637
19638 \begin_layout Plain Layout
19639 表示\SpecialChar \menuseparator
19640 DVI
19641 \end_layout
19642
19643 \end_inset
19644
19645 等を選ぶだけです。普通の文章の場合と同じで、特別なことは必要ありません。
19646 \end_layout
19647
19648 \begin_layout Standard
19649 LyXの内部で何が起っているかを説明しておきましょう。
19650 \end_layout
19651
19652 \begin_layout Enumerate
19653 \begin_inset Flex MenuItem
19654 status collapsed
19655
19656 \begin_layout Plain Layout
19657 表示\SpecialChar \menuseparator
19658 DVI
19659 \end_layout
19660
19661 \end_inset
19662
19663 が選ばれると、LaTeXファイルがつくられます。
19664 \end_layout
19665
19666 \begin_deeper
19667 \begin_layout Standard
19668 ドキュメントが文芸プログラミング用のクラスであった場合には、拡張子に(
19669 \begin_inset Flex MenuItem
19670 status collapsed
19671
19672 \begin_layout Plain Layout
19673 設定
19674 \end_layout
19675
19676 \end_inset
19677
19678 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
19679 \end_layout
19680
19681 \end_deeper
19682 \begin_layout Enumerate
19683 違いがファイル名だけなのに注意してください。LyXによる特別な処理は必要ありません。Scrap環境でコードを入力するのだけがポイントです。
19684 \end_layout
19685
19686 \begin_layout Enumerate
19687 ドキュメントが文芸プログラムクラスなら、LyXは内部のLyXからNowebのコンバータを使い、それからNowebからLaTeXのコンバータ
19688 \begin_inset Foot
19689 status collapsed
19690
19691 \begin_layout Plain Layout
19692 これらのコンバータは、
19693 \family sans
19694 \bar under
19695 E
19696 \bar default
19697 dit\SpecialChar \menuseparator
19698
19699 \bar under
19700 P
19701 \bar default
19702 references
19703 \family default
19704  パネルの Conversion タブで設定できます。
19705 \end_layout
19706
19707 \end_inset
19708
19709 を使ってLaTeXファイルを生成します。
19710 \end_layout
19711
19712 \begin_deeper
19713 \begin_layout Standard
19714 それ以外の場合はこのステップを飛ばします。
19715 \end_layout
19716
19717 \end_deeper
19718 \begin_layout Enumerate
19719 最後にLaTeXが実行され、普通の文章と同じ後処理が行われます。
19720 \end_layout
19721
19722 \begin_layout Standard
19723 様々なコンバータから走らせるコマンドを変えることによって、特定の文芸プログラム用のソフトウエアにしばられないようになっています。
19724 \end_layout
19725
19726 \begin_layout Paragraph
19727 コードの生成
19728 \end_layout
19729
19730 \begin_layout Standard
19731 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様にLaTeXファイルが生成されます。それからLyXは
19732 \family typewriter
19733 Noweb->Program
19734 \family default
19735 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
19736 \end_layout
19737
19738 \begin_layout Enumerate
19739 コンバータプログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマ
19740 ットへ変換します)。
19741 \end_layout
19742
19743 \begin_layout Enumerate
19744 エラーログパーサー。これはエラーメッセージをLyXが理解できる形へ書き直します。これによって、LyXはファイルバッファの正しい位置へエラーボックスを配置すること
19745 ができます。
19746 \end_layout
19747
19748 \begin_layout Standard
19749 はじめのパートのために、「変換子」設定で、
19750 \begin_inset Quotes eld
19751 \end_inset
19752
19753
19754 \family typewriter
19755 build-script$$i
19756 \family default
19757
19758 \begin_inset Quotes erd
19759 \end_inset
19760
19761 と指定します。これは基本的に、LyXが
19762 \family typewriter
19763 build-script
19764 \family default
19765 (プログラムかスクリプト名)を(一般にはLyXの一時ファイル用のディレクトリにつくられる)Nowebファイルの名前とともに起動することを意味しています。
19766 \end_layout
19767
19768 \begin_layout Standard
19769 以下にbuild-scriptの一例を書いておきます。パスが通っているディレクトリに置いて使います。
19770 \end_layout
19771
19772 \begin_layout LyX-Code
19773 #!/bin/sh
19774 \end_layout
19775
19776 \begin_layout LyX-Code
19777 #
19778 \end_layout
19779
19780 \begin_layout LyX-Code
19781 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh
19782 \end_layout
19783
19784 \begin_layout Standard
19785 コンバータの設定の次の部分はFlagsです。これを
19786 \begin_inset Quotes eld
19787 \end_inset
19788
19789
19790 \family typewriter
19791 originaldir,parselog=listerrors
19792 \family default
19793
19794 \begin_inset Quotes erd
19795 \end_inset
19796
19797 と指定してください。これで、
19798 \family typewriter
19799 build-script
19800 \family default
19801 が出すすべてのエラーをlisterrorsプログラムに渡します。
19802 \end_layout
19803
19804 \begin_layout Standard
19805 コンバータコードがlisterrorsプログラムを探す順序は、はじめに
19806 \emph on
19807 MYLYXDIR/scripts
19808 \emph default
19809 、次に
19810 \emph on
19811 LIBDIR/scripts
19812 \emph default
19813 、最後にパスです。
19814 \end_layout
19815
19816 \begin_layout Paragraph
19817 文章中でのプログラムの構築操作の説明
19818 \end_layout
19819
19820 \begin_layout Standard
19821 LyXとNowebの統合の最後の部分は、
19822 \begin_inset Quotes eld
19823 \end_inset
19824
19825 build-script
19826 \begin_inset Quotes erd
19827 \end_inset
19828
19829  scrapです。一般に、あなたのプログラムの構築操作の説明それ自身をscrapに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
19830 iptでは、scrapを見つけるのにnotangleコマンドを使い、shを使って起動します。
19831 \end_layout
19832
19833 \begin_layout Standard
19834 以下に典型的なscrapがどのようなものかを書いておきます。
19835 \end_layout
19836
19837 \begin_layout LyX-Code
19838 <<build-script>>=
19839 \begin_inset Newline newline
19840 \end_inset
19841
19842 #!/bin/sh
19843 \begin_inset Newline newline
19844 \end_inset
19845
19846
19847 \begin_inset Newline newline
19848 \end_inset
19849
19850 if [ -z "${NOWEB_SOURCE}" ]
19851 \begin_inset Newline newline
19852 \end_inset
19853
19854 then
19855 \begin_inset Newline newline
19856 \end_inset
19857
19858   NOWEB_SOURCE=myfile.nw
19859 \begin_inset Newline newline
19860 \end_inset
19861
19862 fi
19863 \begin_inset Newline newline
19864 \end_inset
19865
19866 [...
19867  code to extract files ...]
19868 \begin_inset Newline newline
19869 \end_inset
19870
19871 [...
19872  code to compile files ...]
19873 \begin_inset Newline newline
19874 \end_inset
19875
19876 @
19877 \end_layout
19878
19879 \begin_layout Standard
19880
19881 \emph on
19882 LIBDIR/examples/listerrors.lyx
19883 \emph default
19884
19885 \emph on
19886 LIBDIR/examples/Literate.lyx
19887 \emph default
19888 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
19889 ってもらうための例です。また、
19890 \emph on
19891 LIBDIR/examples/noweb2lyx.lyx
19892 \emph default
19893 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、LyXの文芸プログラミングのサポートがプログラム言語に依存
19894 しないことを示しています。
19895 \end_layout
19896
19897 \begin_layout Subsubsection
19898 LyXの設定
19899 \end_layout
19900
19901 \begin_layout Standard
19902 すべての文芸プログラムのための設定は、
19903 \begin_inset Flex MenuItem
19904 status collapsed
19905
19906 \begin_layout Plain Layout
19907 ツール\SpecialChar \menuseparator
19908 設定
19909 \end_layout
19910
19911 \end_inset
19912
19913 パネルの「変換子」タブですることができます。重要な部分を見ておきましょう。
19914 \end_layout
19915
19916 \begin_layout Description
19917 the
19918 \begin_inset space ~
19919 \end_inset
19920
19921
19922 \begin_inset Quotes eld
19923 \end_inset
19924
19925 literate
19926 \begin_inset Quotes erd
19927 \end_inset
19928
19929
19930 \begin_inset space ~
19931 \end_inset
19932
19933 format 書式タブで設定します。ここで、Noweb特有の設定を行います。
19934 \family sans
19935 GUI名
19936 \family default
19937
19938 \family typewriter
19939 NoWeb
19940 \family default
19941 に、拡張子を
19942 \family typewriter
19943 .nw
19944 \family default
19945 に設定してください。これによって、LyXに変換プロセスの第一段階でつくられるファイルに
19946 \family typewriter
19947 .nw
19948 \family default
19949 という拡張子をつけることを指示します。
19950 \end_layout
19951
19952 \begin_layout Description
19953 the
19954 \begin_inset space ~
19955 \end_inset
19956
19957
19958 \family sans
19959 Program
19960 \family default
19961
19962 \begin_inset space ~
19963 \end_inset
19964
19965 format これは空にしてください。この項目のただひとつの目的は変換の最終的なフォーマットを指定することです(これが設定されていると、このフォーマットからの変
19966 換を行えます)。
19967 \end_layout
19968
19969 \begin_layout Description
19970
19971 \family sans
19972 NoWeb
19973 \family default
19974 ->
19975 \family sans
19976 LaTeX
19977 \family default
19978  このコンバータは、weavingの段階を行います。Nowebの場合は、
19979 \begin_inset Quotes eld
19980 \end_inset
19981
19982
19983 \family typewriter
19984 noweave -delay -index $$i > $$o
19985 \family default
19986
19987 \begin_inset Quotes erd
19988 \end_inset
19989
19990 に設定してください。
19991 \end_layout
19992
19993 \begin_layout Description
19994
19995 \family sans
19996 NoWeb
19997 \family default
19998 ->
19999 \family sans
20000 Program
20001 \family default
20002  これは、tanglingを行います。以前に説明したように、
20003 \family typewriter
20004 build-script $$i
20005 \family default
20006  と設定して、Flagsに 
20007 \begin_inset Quotes eld
20008 \end_inset
20009
20010
20011 \family typewriter
20012 originaldir,parselog=listerrors
20013 \family default
20014
20015 \begin_inset Quotes erd
20016 \end_inset
20017
20018  を入れてください。
20019 \end_layout
20020
20021 \begin_layout Subsubsection
20022 デバッグ機能の拡張
20023 \end_layout
20024
20025 \begin_layout Standard
20026 ddd/gdbまたは他のデバッガで使えるserver-goto-file-rowという関数が新たにLyXサーバに実装されました。
20027 \end_layout
20028
20029 \begin_layout Standard
20030 ddd/gdbでデバッグしているとき、一つのキーストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-V
20031 になっています。この設定はdddで
20032 \begin_inset Flex MenuItem
20033 status collapsed
20034
20035 \begin_layout Plain Layout
20036 ツール\SpecialChar \menuseparator
20037 設定\SpecialChar \menuseparator
20038 ファイル書式
20039 \end_layout
20040
20041 \end_inset
20042
20043 ウインドウを表示して、
20044 \begin_inset Flex MenuItem
20045 status collapsed
20046
20047 \begin_layout Plain Layout
20048 編集プログラム
20049 \end_layout
20050
20051 \end_inset
20052
20053 エントリを変えると変えることができます。
20054 \end_layout
20055
20056 \begin_layout Standard
20057 新しいLyXサーバの関数と、このdddの機能を使うために
20058 \begin_inset Flex MenuItem
20059 status collapsed
20060
20061 \begin_layout Plain Layout
20062 編集プログラム
20063 \end_layout
20064
20065 \end_inset
20066
20067 を次のように設定してください。
20068 \end_layout
20069
20070 \begin_layout LyX-Code
20071 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
20072 \end_layout
20073
20074 \begin_layout Standard
20075 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddはLyXサーバに情報を
20076 送り、LyXは同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります
20077
20078 \end_layout
20079
20080 \begin_layout Standard
20081 この機能が動くにはLyXサーバが利用可能でなければなりません(既定ではLyXサーバーは使えないようになっています)。LyXサーバを使えるようにするには、
20082 \family sans
20083
20084 \begin_inset Flex MenuItem
20085 status collapsed
20086
20087 \begin_layout Plain Layout
20088
20089 \family sans
20090 設定
20091 \end_layout
20092
20093 \end_inset
20094
20095
20096 \family default
20097
20098 \family sans
20099
20100 \begin_inset Flex MenuItem
20101 status collapsed
20102
20103 \begin_layout Plain Layout
20104
20105 \family sans
20106 パス
20107 \end_layout
20108
20109 \end_inset
20110
20111
20112 \family default
20113 タブ)の
20114 \family sans
20115
20116 \begin_inset Flex MenuItem
20117 status collapsed
20118
20119 \begin_layout Plain Layout
20120
20121 \family sans
20122 LyXサーバーパイプ
20123 \family default
20124
20125 \end_layout
20126
20127 \end_inset
20128
20129
20130 \family default
20131
20132 \begin_inset Quotes eld
20133 \end_inset
20134
20135
20136 \family typewriter
20137 /home/<your-home-directory>/.lyx/lyxpipe
20138 \family default
20139
20140 \begin_inset Quotes erd
20141 \end_inset
20142
20143  のようにパスを指定してください。
20144 \end_layout
20145
20146 \begin_layout Standard
20147 詳しくは『
20148 \emph on
20149 取扱説明書カスタマイズ篇
20150 \emph default
20151 』のLyXサーバの説明を読んでください。
20152 \end_layout
20153
20154 \begin_layout Subsubsection
20155 ツールバーの拡張
20156 \end_layout
20157
20158 \begin_layout Standard
20159 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
20160 \family sans
20161 Standard
20162 \family default
20163
20164 \family sans
20165 Section
20166 \family default
20167
20168 \family sans
20169 LaTeX
20170 \family default
20171
20172 \family sans
20173 LyX-Code
20174 \family default
20175
20176 \family sans
20177 Scrap
20178 \family default
20179 環境用のボタンを用意しています。最後の一つはファイルメニューの Build Programエントリへのショートカットです。
20180 \end_layout
20181
20182 \begin_layout Standard
20183 LyXはツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
20184 \begin_inset Flex MenuItem
20185 status collapsed
20186
20187 \begin_layout Plain Layout
20188 表示\SpecialChar \menuseparator
20189 更新\SpecialChar \menuseparator
20190 DVI
20191 \end_layout
20192
20193 \end_inset
20194
20195
20196 \begin_inset Flex MenuItem
20197 status collapsed
20198
20199 \begin_layout Plain Layout
20200 表示\SpecialChar \menuseparator
20201 DVI
20202 \end_layout
20203
20204 \end_inset
20205
20206 を組み合わせたものになっています。
20207 \end_layout
20208
20209 \begin_layout LyX-Code
20210 Toolbar
20211 \end_layout
20212
20213 \begin_layout LyX-Code
20214   Layouts
20215 \end_layout
20216
20217 \begin_layout LyX-Code
20218   Icon "layout Standard"
20219 \end_layout
20220
20221 \begin_layout LyX-Code
20222   Icon "layout Section"
20223 \end_layout
20224
20225 \begin_layout LyX-Code
20226   Icon "layout LaTeX"
20227 \end_layout
20228
20229 \begin_layout LyX-Code
20230   Icon "layout LyX-Code"
20231 \end_layout
20232
20233 \begin_layout LyX-Code
20234   Icon "layout Scrap"
20235 \end_layout
20236
20237 \begin_layout LyX-Code
20238   Separator
20239 \end_layout
20240
20241 \begin_layout LyX-Code
20242   Icon "buffer-view"
20243 \end_layout
20244
20245 \begin_layout LyX-Code
20246   Icon "buffer-typeset"
20247 \end_layout
20248
20249 \begin_layout LyX-Code
20250   Icon "build-program"
20251 \end_layout
20252
20253 \begin_layout LyX-Code
20254   Separator
20255 \end_layout
20256
20257 \begin_layout LyX-Code
20258 .
20259 \end_layout
20260
20261 \begin_layout LyX-Code
20262 .
20263 \end_layout
20264
20265 \begin_layout LyX-Code
20266 .
20267 \end_layout
20268
20269 \begin_layout LyX-Code
20270 End
20271 \end_layout
20272
20273 \begin_layout Subsubsection
20274 色を変える
20275 \end_layout
20276
20277 \begin_layout Standard
20278 LyXではいくつもの色を
20279 \begin_inset Flex MenuItem
20280 status collapsed
20281
20282 \begin_layout Plain Layout
20283 設定
20284 \end_layout
20285
20286 \end_inset
20287
20288 で変えることができます。まず変えたいと思うのはLaTeXフォントカラーでしょう。既定では赤になっていますが、ScrapはLaTeXフォントを使い、文芸的プログラ
20289 ミングでは多くのScrapがあるためにそれらがすべて赤では疲れてしまいます。
20290 \begin_inset Flex MenuItem
20291 status collapsed
20292
20293 \begin_layout Plain Layout
20294 操作性\SpecialChar \menuseparator
20295
20296 \end_layout
20297
20298 \end_inset
20299
20300 タブでこの色を変えることができます。
20301 \end_layout
20302
20303 \begin_layout Standard
20304 次にすることは画面の改行文字を見えなくすることです。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少し違
20305 う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
20306 \end_layout
20307
20308 \begin_layout Chapter
20309
20310 \lang english
20311 Special features
20312 \lang japanese
20313
20314 \begin_inset CommandInset label
20315 LatexCommand label
20316 name "chap:Special-features"
20317
20318 \end_inset
20319
20320
20321 \end_layout
20322
20323 \begin_layout Standard
20324
20325 \lang english
20326 You can do everything with LyX that you can do with LaTeX.
20327  However, LyX cannot support every LaTeX feature directly.
20328  But you can always use TeX Code.
20329  This chapter shows you some more special things you might want to use.
20330  For other special things you can do with figures, tables, floats, boxes
20331  and notes, have a look at the 
20332 \emph on
20333 EmbeddedObjects
20334 \emph default
20335  manual.
20336 \end_layout
20337
20338 \begin_layout Section
20339 多段組み
20340 \end_layout
20341
20342 \begin_layout Standard
20343
20344 \lang english
20345 The aim for this section is to show how the LaTeX package 
20346 \series bold
20347 multicol
20348 \series default
20349  can be used in a LyX document.
20350  LyX does not support the 
20351 \series bold
20352 multicol
20353 \series default
20354  package natively yet, so you have to use some TeX code.
20355 \end_layout
20356
20357 \begin_layout Standard
20358
20359 \lang english
20360 The 
20361 \series bold
20362 multicol
20363 \series default
20364  package allows switching between one and multicolumn format on the same
20365  page.
20366  Footnotes are handled correctly, but will be placed at the bottom of the
20367  page and not under each column.
20368  Within the different columns you can use everyting, with the limitation
20369  that for floats you need to use the option 
20370 \family sans
20371 Span colums
20372 \family default
20373  for each column.
20374 \end_layout
20375
20376 \begin_layout Subsection
20377 二段組み
20378 \end_layout
20379
20380 \begin_layout Standard
20381 二段組みを使いたい場合には、二段組みのレイアウトを始めたい場所にLaTeXモードで
20382 \end_layout
20383
20384 \begin_layout Standard
20385
20386 \series bold
20387
20388 \backslash
20389 begin{multicols}{2}
20390 \end_layout
20391
20392 \begin_layout Standard
20393 を挿入してください。そして二段組みを終わりたい場所に
20394 \end_layout
20395
20396 \begin_layout Standard
20397
20398 \series bold
20399
20400 \backslash
20401 end{multicols}
20402 \end_layout
20403
20404 \begin_layout Standard
20405 を入れます。次の例を見てください。
20406 \end_layout
20407
20408 \begin_layout Standard
20409 \begin_inset ERT
20410 status open
20411
20412 \begin_layout Plain Layout
20413
20414
20415 \backslash
20416 begin{multicols}{2}
20417 \end_layout
20418
20419 \end_inset
20420
20421
20422 \end_layout
20423
20424 \begin_layout Standard
20425 \noindent
20426
20427 \series bold
20428 \size small
20429 The Adventure of the Empty House
20430 \series default
20431
20432 \begin_inset Newline newline
20433 \end_inset
20434
20435 by 
20436 \noun on
20437 Sir Arthur Conan Doyle
20438 \end_layout
20439
20440 \begin_layout Standard
20441
20442 \size small
20443 It was in the spring of the year 1894 that all London was interested, and
20444  the fashionable world dismayed, by the murder of the Honourable Ronald
20445  Adair under most unusual and inexplicable circumstances.
20446  The public has already learned those particulars of the crime which came
20447  out in the police investigation, but a good deal was suppressed upon that
20448  occasion, since the case for the prosecution was so overwhelmingly strong
20449  that it was not necessary to bring forward all the facts.
20450  Only now, at the end of nearly ten years, am I allowed to supply those
20451  missing links which make up the whole of that remarkable chain.
20452  The crime was of interest in itself, but that interest was as nothing to
20453  me compared to the inconceivable sequel, which afforded me the greatest
20454  shock and surprise of any event in my adventurous life.
20455  Even now, after this long interval, I find myself thrilling as I think
20456  of it, and feeling once more that sudden flood of joy, amazement, and increduli
20457 ty which utterly submerged my mind.
20458  Let me say to that public, which has shown some interest in those glimpses
20459  which I have occasionally given them of the thoughts and actions of a very
20460  remarkable man, that they are not to blame me if I have not shared my knowledge
20461  with them, for I should have considered it my first duty to do so, had
20462  I not been barred by a positive prohibition from his own lips, which was
20463  only withdrawn upon the third of last month.
20464 \end_layout
20465
20466 \begin_layout Standard
20467 \begin_inset ERT
20468 status open
20469
20470 \begin_layout Plain Layout
20471
20472
20473 \backslash
20474 end{multicols}
20475 \end_layout
20476
20477 \end_inset
20478
20479
20480 \end_layout
20481
20482 \begin_layout Subsection
20483 多段組み
20484 \end_layout
20485
20486 \begin_layout Standard
20487 二段以上の多段組みをする場合も同じようにできます。
20488 \end_layout
20489
20490 \begin_layout Standard
20491 \begin_inset ERT
20492 status open
20493
20494 \begin_layout Plain Layout
20495
20496
20497 \backslash
20498 begin{multicols}{3}
20499 \end_layout
20500
20501 \end_inset
20502
20503
20504 \end_layout
20505
20506 \begin_layout Standard
20507
20508 \size footnotesize
20509 It can be imagined that my close intimacy with Sherlock Holmes had interested
20510  me deeply in crime, and that after his disappearance I never failed to
20511  read with care the various problems which came before the public.
20512  And I even attempted, more than once, for my own private satisfaction,
20513  to employ his methods in their solution, though with indifferent success.
20514  There was none, however, which appealed to me like this tragedy of Ronald
20515  Adair.
20516  As I read the evidence at the inquest, which led up to a verdict of willful
20517  murder against some person or persons unknown, I realized more clearly
20518  than I had ever done the loss which the community had sustained by the
20519  death of Sherlock Holmes.
20520  There were points about this strange business which would, I was sure,
20521  have specially appealed to him, and the efforts of the police would have
20522  been supplemented, or more probably anticipated, by the trained observation
20523  and the alert mind of the first criminal agent in Europe.
20524  All day, as I drove upon my round, I turned over the case in my mind and
20525  found no explanation which appeared to me to be adequate.
20526  At the risk of telling a twice-told tale, I will recapitulate the facts
20527  as they were known to the public at the conclusion of the inquest.
20528 \end_layout
20529
20530 \begin_layout Standard
20531 \begin_inset ERT
20532 status open
20533
20534 \begin_layout Plain Layout
20535
20536
20537 \backslash
20538 end{multicols}
20539 \end_layout
20540
20541 \end_inset
20542
20543
20544 \end_layout
20545
20546 \begin_layout Standard
20547 三段組み以上も可能ですが、読みにくくなり実用的ではないでしょう。
20548 \end_layout
20549
20550 \begin_layout Subsection
20551 カラムの中のカラム
20552 \end_layout
20553
20554 \begin_layout Standard
20555 カラムの中にカラムを入れることもできます。
20556 \end_layout
20557
20558 \begin_layout Standard
20559 \begin_inset ERT
20560 status open
20561
20562 \begin_layout Plain Layout
20563
20564
20565 \backslash
20566 begin{multicols}{2}
20567 \end_layout
20568
20569 \end_inset
20570
20571
20572 \end_layout
20573
20574 \begin_layout Standard
20575
20576 \size footnotesize
20577 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
20578  at that time governor of one of the Australian colonies.
20579  Adair's mother had returned from Australia to undergo the operation for
20580  cataract, and she, her son Ronald, and her daughter Hilda were living together
20581  at 427 Park Lane.
20582 \end_layout
20583
20584 \begin_layout Standard
20585 \begin_inset ERT
20586 status open
20587
20588 \begin_layout Plain Layout
20589
20590
20591 \backslash
20592 begin{multicols}{2}
20593 \end_layout
20594
20595 \end_inset
20596
20597
20598 \end_layout
20599
20600 \begin_layout Standard
20601
20602 \size footnotesize
20603 The youth moved in the best society--had, so far as was known, no enemies
20604  and no particular vices.
20605  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
20606  had been broken off by mutual consent some months before, and there was
20607  no sign that it had left any very profound feeling behind it.
20608  For the rest {sic} the man's life moved in a narrow and conventional circle,
20609  for his habits were quiet and his nature unemotional.
20610  Yet it was upon this easy-going young aristocrat that death came, in most
20611  strange and unexpected form, between the hours of ten and eleven-twenty
20612  on the night of March 30, 1894.
20613 \end_layout
20614
20615 \begin_layout Standard
20616 \begin_inset ERT
20617 status open
20618
20619 \begin_layout Plain Layout
20620
20621
20622 \backslash
20623 end{multicols}
20624 \end_layout
20625
20626 \end_inset
20627
20628
20629 \end_layout
20630
20631 \begin_layout Standard
20632
20633 \size footnotesize
20634 Ronald Adair was fond of cards--playing continually, but never for such
20635  stakes as would hurt him.
20636  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
20637  It was shown that, after dinner on the day of his death, he had played
20638  a rubber of whist at the latter club.
20639  He had also played there in the afternoon.
20640
20641 \size default
20642  
20643 \size footnotesize
20644 The evidence of those who had played with him-- Mr.
20645  Murray, Sir John Hardy, and Colonel Moran--showed that the game was whist,
20646  and that there was a fairly equal fall of the cards.
20647  Adair might have lost five pounds, but not more.
20648  His fortune was a considerable one, and such a loss could not in any way
20649  affect him.
20650  He had played nearly every day at one club or other, but he was a cautious
20651  player, and usually rose a winner.
20652  It came out in evidence that, in partnership with Colonel Moran, he had
20653  actually won as much as four hundred and twenty pounds in a sitting, some
20654  weeks before, from Godfrey Milner and Lord Balmoral.
20655  So much for his recent history as it came out at the inquest.
20656 \end_layout
20657
20658 \begin_layout Standard
20659 \begin_inset ERT
20660 status open
20661
20662 \begin_layout Plain Layout
20663
20664
20665 \backslash
20666 end{multicols}
20667 \end_layout
20668
20669 \end_inset
20670
20671
20672 \end_layout
20673
20674 \begin_layout Standard
20675 より複雑な形でカラムの中にカラムを入れる例や、へッダのスペース、縦のカラムを分ける線の入れ方などの例は、ファイル 
20676 \lang english
20677 example file
20678 \lang japanese
20679  
20680 \family typewriter
20681 multicol.lyx
20682 \family default
20683 を読んでください。
20684 \end_layout
20685
20686 \begin_layout Standard
20687 \begin_inset Newpage newpage
20688 \end_inset
20689
20690
20691 \end_layout
20692
20693 \begin_layout Section
20694 標準的でない形の段落
20695 \end_layout
20696
20697 \begin_layout Standard
20698 \begin_inset ERT
20699 status collapsed
20700
20701 \begin_layout Plain Layout
20702
20703
20704 \backslash
20705 begin{sloppypar}
20706 \end_layout
20707
20708 \end_inset
20709
20710
20711 \end_layout
20712
20713 \begin_layout Standard
20714 \begin_inset ERT
20715 status collapsed
20716
20717 \begin_layout Plain Layout
20718
20719
20720 \backslash
20721 newdimen
20722 \backslash
20723 varunit 
20724 \end_layout
20725
20726 \begin_layout Plain Layout
20727
20728
20729 \backslash
20730 setlength{
20731 \backslash
20732 varunit}{4.5in}
20733 \end_layout
20734
20735 \end_inset
20736
20737
20738 \end_layout
20739
20740 \begin_layout Standard
20741 \noindent
20742 \begin_inset ERT
20743 status collapsed
20744
20745 \begin_layout Plain Layout
20746
20747
20748 \backslash
20749 parshape 19 0.45
20750 \backslash
20751 varunit 0.332
20752 \backslash
20753 varunit
20754 \end_layout
20755
20756 \begin_layout Plain Layout
20757
20758 0.40
20759 \backslash
20760 varunit 0.300
20761 \backslash
20762 varunit
20763 \end_layout
20764
20765 \begin_layout Plain Layout
20766
20767 0.35
20768 \backslash
20769 varunit 0.293
20770 \backslash
20771 varunit
20772 \end_layout
20773
20774 \begin_layout Plain Layout
20775
20776 0.30
20777 \backslash
20778 varunit 0.300
20779 \backslash
20780 varunit
20781 \end_layout
20782
20783 \begin_layout Plain Layout
20784
20785 0.25
20786 \backslash
20787 varunit 0.317
20788 \backslash
20789 varunit
20790 \end_layout
20791
20792 \begin_layout Plain Layout
20793
20794 0.20
20795 \backslash
20796 varunit 0.342
20797 \backslash
20798 varunit
20799 \end_layout
20800
20801 \begin_layout Plain Layout
20802
20803 0.15
20804 \backslash
20805 varunit 0.373
20806 \backslash
20807 varunit
20808 \end_layout
20809
20810 \begin_layout Plain Layout
20811
20812 0.10
20813 \backslash
20814 varunit 0.410
20815 \backslash
20816 varunit
20817 \end_layout
20818
20819 \begin_layout Plain Layout
20820
20821 0.05
20822 \backslash
20823 varunit 0.453
20824 \backslash
20825 varunit
20826 \end_layout
20827
20828 \begin_layout Plain Layout
20829
20830 0.00
20831 \backslash
20832 varunit 0.500
20833 \backslash
20834 varunit
20835 \end_layout
20836
20837 \begin_layout Plain Layout
20838
20839 0.05
20840 \backslash
20841 varunit 0.453
20842 \backslash
20843 varunit
20844 \end_layout
20845
20846 \begin_layout Plain Layout
20847
20848 0.10
20849 \backslash
20850 varunit 0.410
20851 \backslash
20852 varunit
20853 \end_layout
20854
20855 \begin_layout Plain Layout
20856
20857 0.15
20858 \backslash
20859 varunit 0.373
20860 \backslash
20861 varunit
20862 \end_layout
20863
20864 \begin_layout Plain Layout
20865
20866 0.20
20867 \backslash
20868 varunit 0.342
20869 \backslash
20870 varunit
20871 \end_layout
20872
20873 \begin_layout Plain Layout
20874
20875 0.25
20876 \backslash
20877 varunit 0.317
20878 \backslash
20879 varunit
20880 \end_layout
20881
20882 \begin_layout Plain Layout
20883
20884 0.30
20885 \backslash
20886 varunit 0.300
20887 \backslash
20888 varunit
20889 \end_layout
20890
20891 \begin_layout Plain Layout
20892
20893 0.35
20894 \backslash
20895 varunit 0.293
20896 \backslash
20897 varunit
20898 \end_layout
20899
20900 \begin_layout Plain Layout
20901
20902 0.40
20903 \backslash
20904 varunit 0.300
20905 \backslash
20906 varunit
20907 \end_layout
20908
20909 \begin_layout Plain Layout
20910
20911 0.45
20912 \backslash
20913 varunit 0.332
20914 \backslash
20915 varunit
20916 \end_layout
20917
20918 \begin_layout Plain Layout
20919
20920 \end_layout
20921
20922 \end_inset
20923
20924 長方形の段落の形を変えたい場合があるでしょう。そういう場合は楽しいTeXコマンド
20925 \family typewriter
20926
20927 \backslash
20928 parshape
20929 \family default
20930 を使いましょう。この例で分かるように適当に行の長さを設定することで好きな形の段落が作れます。馬鹿げているように見えるかもしれませんが、dropped
20931  capitalを最終調整したり、長方形ではない図のまわりを文章で囲ったりするのにこのような手作業が必要なのです。
20932 \end_layout
20933
20934 \begin_layout Standard
20935 \begin_inset VSpace bigskip
20936 \end_inset
20937
20938 文法は
20939 \family typewriter
20940
20941 \backslash
20942 parshape numlines #1indent #1length #2indent #2length \SpecialChar \ldots{}
20943  #nindent #nlength
20944 \family default
20945  です。
20946 \family typewriter
20947 numlines
20948 \family default
20949 は段落をつくる行数です。その段落の本文がこれより短い場合はそこで終わり、長い場合には最後の行の定義がそれ以後も使われます。
20950 \family typewriter
20951 #nindent
20952 \family default
20953
20954 \family typewriter
20955 #nlength
20956 \family default
20957 エントリは左余白からの字下げの量と、字下げされたところからの行の長さを指定します。この形は現在の段落にだけ適応されて、次の段落では通常の形にリセットされます。
20958 \end_layout
20959
20960 \begin_layout Standard
20961 \begin_inset ERT
20962 status collapsed
20963
20964 \begin_layout Plain Layout
20965
20966
20967 \backslash
20968 end{sloppypar}
20969 \end_layout
20970
20971 \end_inset
20972
20973
20974 \end_layout
20975
20976 \end_body
20977 \end_document