]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
Math.lyx: fix formatting
[lyx.git] / lib / doc / ja / Additional.lyx
1 #LyX 1.6.5 created this file. For more info see http://www.lyx.org/
2 \lyxformat 345
3 \begin_document
4 \begin_header
5 \textclass scrbook
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 % redefine the \LyX macro for PDF bookmarks
40 \def\LyX{\texorpdfstring{%
41   L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
42   {LyX}}
43
44 % used for multi-column text
45 \usepackage{multicol}
46
47 % extra space for tables
48 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
49
50 \usepackage{t1enc}
51 \end_preamble
52 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
53 \use_default_options false
54 \begin_modules
55 logicalmkup
56 theorems-ams
57 theorems-ams-extended
58 \end_modules
59 \begin_local_layout
60 Format 7
61 InsetLayout CharStyle:MenuItem
62 LyxType               charstyle
63 LabelString           menu
64 LatexType             command
65 LatexName             menuitem
66 Font
67 Family              Sans
68 EndFont
69 Preamble
70 \newcommand*{\menuitem}[1]{{\sffamily #1}}
71 EndPreamble
72 End
73 \end_local_layout
74 \language japanese
75 \inputencoding JIS-pLaTeX
76 \font_roman default
77 \font_sans default
78 \font_typewriter default
79 \font_default_family default
80 \font_sc false
81 \font_osf false
82 \font_sf_scale 100
83 \font_tt_scale 100
84
85 \graphics default
86 \paperfontsize 12
87 \spacing single
88 \use_hyperref true
89 \pdf_title "LyX拡張機能篇"
90 \pdf_author "LyXプロジェクトチーム"
91 \pdf_subject "LyX拡張機能取扱説明書"
92 \pdf_keywords "LyX、取扱説明書、文書化、拡張"
93 \pdf_bookmarks true
94 \pdf_bookmarksnumbered true
95 \pdf_bookmarksopen false
96 \pdf_bookmarksopenlevel 1
97 \pdf_breaklinks false
98 \pdf_pdfborder false
99 \pdf_colorlinks true
100 \pdf_backref false
101 \pdf_pdfusetitle false
102 \pdf_quoted_options "unicode=false,linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,  pdfpagelayout=OneColumn, pdfnewwindow=true,  pdfstartview=XYZ, plainpages=false, pdfpagelabels"
103 \papersize default
104 \use_geometry false
105 \use_amsmath 0
106 \use_esint 0
107 \cite_engine basic
108 \use_bibtopic false
109 \paperorientation portrait
110 \secnumdepth 3
111 \tocdepth 3
112 \paragraph_separation indent
113 \defskip medskip
114 \quotes_language english
115 \papercolumns 1
116 \papersides 2
117 \paperpagestyle headings
118 \tracking_changes false
119 \output_changes false
120 \author "" 
121 \author "" 
122 \end_header
123
124 \begin_body
125
126 \begin_layout Title
127 LyXの高度な機能
128 \end_layout
129
130 \begin_layout Author
131 LyXプロジェクトチーム
132 \begin_inset Foot
133 status collapsed
134
135 \begin_layout Plain Layout
136 このファイルは主にRichard Heckによって管理されています。コメントをされたい場合や誤りを発見された場合には、LyX文書化メーリングリスト
137 \begin_inset Flex CharStyle:Code
138 status open
139
140 \begin_layout Plain Layout
141 \noindent
142
143 \family typewriter
144 <lyx-docs@lists.lyx.org>
145 \end_layout
146
147 \end_inset
148
149 に英文にてお知らせ下さい。この文書の翻訳は、当初人見光太郎氏が行った貢献に基づいています。
150 \end_layout
151
152 \end_inset
153
154  
155 \end_layout
156
157 \begin_layout Standard
158 \begin_inset CommandInset toc
159 LatexCommand tableofcontents
160
161 \end_inset
162
163
164 \end_layout
165
166 \begin_layout Chapter
167 はじめに
168 \end_layout
169
170 \begin_layout Standard
171 いまお読みの取扱説明書『
172 \emph on
173 LyX拡張機能篇
174 \emph default
175 』は、基本的には『
176 \emph on
177 ユーザーの手引き
178 \emph default
179 』の第二部です。この文書を別部とした理由は、単純に『
180 \emph on
181 ユーザーの手引き
182 \emph default
183 』がすでに大部となっていることと、『
184 \emph on
185 ユーザーの手引き
186 \emph default
187 』が、ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです。一方で、LyXプロジェクトチームは、LyXを各設定ファイルと外部パッケージ
188 によって拡張可能な状態にしておくことを長期的な目標にしています。つまり、あるLaTeXパッケージをサポートしたい場合に、LyX自身に変更を加えることなく、当該パ
189 ッケージ用のレイアウトファイル(ないしモジュール)を作成すればいいようにしているのです。すでにこのような形で、いくつもの新機能がユーザーによって追加されています
190 。この取扱説明書は、そのような形での貢献を文書化する冊子として位置付けられています。
191 \end_layout
192
193 \begin_layout Standard
194 この取扱説明書では、ファックスのサポート・バージョン管理・SGMLサポートのような、正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
195 しています。さらに、LaTeXの強力な機能を直接使って文書を美しく仕上げるための、LaTeXツールやテクニックを述べた章も収録しています。つきつめれば、LyXと
196 はあくまでWYSIWYMたることを企図しているため、LaTeXの全機能の一部へのインタフェースは用意するものの、すべてを用意することはないでしょう。
197 \end_layout
198
199 \begin_layout Standard
200 もし、まだ『
201 \emph on
202 はじめの一歩
203 \emph default
204 』をお読みでなかったら、この取扱説明書から読みはじめるのは誤りです。『
205 \emph on
206 はじめの一歩
207 \emph default
208 』には、全取扱説明書に共通の表記法と書式が説明されていますので、まずそれからお読みください。さらに、この取扱説明書を読もうとする前に、『
209 \emph on
210 ユーザーの手引き
211 \emph default
212 』をよくお読みになって、LyXの全基本機能を習得してください。
213 \end_layout
214
215 \begin_layout Standard
216 この取扱説明書の取り上げられている話題は、LyXがLaTeXにどう関わっているかに強く関係していますので、まず次章では、LyXの内部動作がどうなっているか、Ly
217 Xに希望するLaTeXコードを正確に生成させるにはどうしたらいいかを収録しています。本章は、あきらかに熟練LyXユーザー向けの章となっています。
218 \end_layout
219
220 \begin_layout Chapter
221 LyXとLaTeX
222 \end_layout
223
224 \begin_layout Section
225 LyXはLaTeXをどう使っているか
226 \end_layout
227
228 \begin_layout Standard
229 本章
230 \family roman
231 \series medium
232 \shape up
233 \size normal
234 \emph off
235 \bar no
236 \noun off
237 \color none
238 は、TeX熟練者とLaTeXに興味のある方向けの章です。ここでは、LyXとLaTeXが、印刷可能な出力を生成するのに、どのように協働しているのかを説明します。全
239 取扱説明書中で本章だけは、LaTeXのことを多少なりともご存知であることを前提とします。
240 \end_layout
241
242 \begin_layout Standard
243
244 \family roman
245 \series medium
246 \shape up
247 \size normal
248 \emph off
249 \bar no
250 \noun off
251 \color none
252 かつてLyXは、「LaTeXの
253 \family default
254 \series default
255 \shape default
256 \size default
257 \emph default
258 \bar default
259 \noun default
260 \color inherit
261 WYSIWYM
262 \family roman
263 \series medium
264 \shape up
265 \size normal
266 \emph off
267 \bar no
268 \noun off
269 \color none
270 なフロントエンド」と呼ばれていましたが、いまではこれは正しくありません。LaTeXのフロントエンドは、いくつも出回っています
271 \begin_inset Foot
272 status collapsed
273
274 \begin_layout Plain Layout
275
276 \family roman
277 \series medium
278 \shape up
279 \size normal
280 \emph off
281 \bar no
282 \noun off
283 \color none
284 有名なものとしては、Linux上のTeXmakerとkile、OSX上のTeXshopなどがあります。もちろんviとemacsのLaTeXモードも含まれます。
285 \end_layout
286
287 \end_inset
288
289 。これらは、基本的にLaTeXを走らせる機能を有し、編集中のファイルのエラーを表示する機能を持ったテキストエディタです。LyXも、エディタであり、LaTeXを走
290 らせる機能を有し、ファイル中のエラーを指摘しますが、それ以上にもっともっと多くのことをしてくれます。
291 \family default
292 \series default
293 \shape default
294 \size default
295 \emph default
296 \bar default
297 \noun default
298 \color inherit
299 ひとつには、
300 \family roman
301 \series medium
302 \shape up
303 \size normal
304 \emph off
305 \bar no
306 \noun off
307 \color none
308 LyXを効果的に使うのに、LaTeXの知識が必要とされないことが挙げられます。またLyXは、それ自身、いくつかの拡張をLaTeXに加えています。時間のあるときに
309 でも、いちど以下の手順を試してみてください。まず
310 \family sans
311 \series default
312 \shape default
313 \size default
314 \emph default
315 \bar default
316 \noun default
317 \color inherit
318
319 \begin_inset Flex CharStyle:MenuItem
320 status collapsed
321
322 \begin_layout Plain Layout
323
324 \family sans
325 ファイル
326 \end_layout
327
328 \end_inset
329
330
331 \family roman
332 \series medium
333 \shape up
334 \size normal
335 \emph off
336 \bar no
337 \noun off
338 \color none
339 メニューから
340 \family sans
341 \series default
342 \shape default
343 \size default
344 \emph default
345 \bar default
346 \noun default
347 \color inherit
348
349 \begin_inset Flex CharStyle:MenuItem
350 status collapsed
351
352 \begin_layout Plain Layout
353
354 \family sans
355 エクスポート\SpecialChar \menuseparator
356 LaTeX
357 \end_layout
358
359 \end_inset
360
361
362 \family roman
363 \series medium
364 \shape up
365 \size normal
366 \emph off
367 \bar no
368 \noun off
369 \color none
370 (あるいは
371 \family sans
372 \series default
373 \shape default
374 \size default
375 \emph default
376 \bar default
377 \noun default
378 \color inherit
379
380 \begin_inset Flex CharStyle:MenuItem
381 status collapsed
382
383 \begin_layout Plain Layout
384
385 \family sans
386 表示\SpecialChar \menuseparator
387 ソースを閲覧
388 \end_layout
389
390 \end_inset
391
392
393 \family roman
394 \series medium
395 \shape up
396 \size normal
397 \emph off
398 \bar no
399 \noun off
400 \color none
401 )を選択し、そこから出力される
402 \begin_inset Flex CharStyle:Code
403 status collapsed
404
405 \begin_layout Plain Layout
406
407 \family typewriter
408 .tex
409 \end_layout
410
411 \end_inset
412
413 ファイルのプリアンブルをご覧ください。LyXによって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
414 \family default
415 \series default
416 \shape default
417 \size default
418 \emph default
419 \bar default
420 \noun default
421 \color inherit
422 。これらのマクロは、文書中で使用する機能に応じて、自動的に定義されます。
423 \end_layout
424
425 \begin_layout Standard
426
427 \family roman
428 \series medium
429 \shape up
430 \size normal
431 \emph off
432 \bar no
433 \noun off
434 \color none
435 自動的にLaTeXを実行するコマンドが、以下のようにいくつかあります。
436 \end_layout
437
438 \begin_layout Itemize
439 \begin_inset Flex CharStyle:MenuItem
440 status collapsed
441
442 \begin_layout Plain Layout
443
444 \bar under
445 表示\SpecialChar \menuseparator
446
447 \emph on
448 書式
449 \end_layout
450
451 \end_inset
452
453
454 \end_layout
455
456 \begin_layout Itemize
457
458 \family sans
459 \begin_inset Flex CharStyle:MenuItem
460 status collapsed
461
462 \begin_layout Plain Layout
463
464 \bar under
465 表示\SpecialChar \menuseparator
466 更新\SpecialChar \menuseparator
467
468 \emph on
469 書式
470 \end_layout
471
472 \end_inset
473
474
475 \end_layout
476
477 \begin_layout Itemize
478
479 \family sans
480 \begin_inset Flex CharStyle:MenuItem
481 status collapsed
482
483 \begin_layout Plain Layout
484
485 \bar under
486 ファイル
487 \bar default
488 \SpecialChar \menuseparator
489
490 \bar under
491 印刷
492 \end_layout
493
494 \end_inset
495
496
497 \end_layout
498
499 \begin_layout Itemize
500
501 \family sans
502 \begin_inset Flex CharStyle:MenuItem
503 status collapsed
504
505 \begin_layout Plain Layout
506
507 \bar under
508 ファイル
509 \bar default
510 \SpecialChar \menuseparator
511
512 \bar under
513 ファックス
514 \end_layout
515
516 \end_inset
517
518
519 \end_layout
520
521 \begin_layout Standard
522
523 \family roman
524 \series medium
525 \shape up
526 \size normal
527 \emph off
528 \bar no
529 \noun off
530 \color none
531 これらは、最後にLaTeXを実行してからファイルに変更が加えられた場合のみ、LaTeXを実行します。
532 \end_layout
533
534 \begin_layout Standard
535
536 \family roman
537 \series medium
538 \shape up
539 \size normal
540 \emph off
541 \bar no
542 \noun off
543 \color none
544 LyXが編集中のファイルをLaTeXにかけるとき、LyXは以下の段階をふみます。
545 \end_layout
546
547 \begin_layout Enumerate
548
549 \family roman
550 \series medium
551 \shape up
552 \size normal
553 \emph off
554 \bar no
555 \noun off
556 \color none
557 文書をLaTeXに変換し、ファイルの拡張子を
558 \begin_inset Flex CharStyle:Code
559 status collapsed
560
561 \begin_layout Plain Layout
562
563 \family roman
564 \series medium
565 \shape up
566 \size normal
567 \emph off
568 \bar no
569 \noun off
570 \color none
571 .lyx
572 \end_layout
573
574 \end_inset
575
576 から
577 \begin_inset Flex CharStyle:Code
578 status collapsed
579
580 \begin_layout Plain Layout
581
582 \family roman
583 \series medium
584 \shape up
585 \size normal
586 \emph off
587 \bar no
588 \noun off
589 \color none
590 .tex
591 \end_layout
592
593 \end_inset
594
595 に変えて保存。
596 \end_layout
597
598 \begin_layout Enumerate
599
600 \family roman
601 \series medium
602 \shape up
603 \size normal
604 \emph off
605 \bar no
606 \noun off
607 \color none
608 この
609 \begin_inset Flex CharStyle:Code
610 status collapsed
611
612 \begin_layout Plain Layout
613
614 \family roman
615 \series medium
616 \shape up
617 \size normal
618 \emph off
619 \bar no
620 \noun off
621 \color none
622 .tex
623 \end_layout
624
625 \end_inset
626
627 ファイルに対して(必要に応じて複数回)LaTeXを実行し、LaTeXファイルをコンパイルするのに必要な他のコマンド(
628 \begin_inset Flex CharStyle:Code
629 status collapsed
630
631 \begin_layout Plain Layout
632
633 \family roman
634 \series medium
635 \shape up
636 \size normal
637 \emph off
638 \bar no
639 \noun off
640 \color none
641 bibtex
642 \end_layout
643
644 \end_inset
645
646
647 \begin_inset Flex CharStyle:Code
648 status collapsed
649
650 \begin_layout Plain Layout
651
652 \family roman
653 \series medium
654 \shape up
655 \size normal
656 \emph off
657 \bar no
658 \noun off
659 \color none
660 makeindex
661 \end_layout
662
663 \end_inset
664
665 など)を実行。。
666 \end_layout
667
668 \begin_layout Enumerate
669
670 \family roman
671 \series medium
672 \shape up
673 \size normal
674 \emph off
675 \bar no
676 \noun off
677 \color none
678 もしエラーがあれば、エラーログを表示。
679 \end_layout
680
681 \begin_layout Standard
682
683 \family roman
684 \series medium
685 \shape up
686 \size normal
687 \emph off
688 \bar no
689 \noun off
690 \color none
691 LaTeXを
692 \family sans
693 \series default
694 \shape default
695 \size default
696 \emph default
697 \bar default
698 \noun default
699 \color inherit
700
701 \begin_inset Flex CharStyle:MenuItem
702 status collapsed
703
704 \begin_layout Plain Layout
705
706 \family sans
707 表示\SpecialChar \menuseparator
708 DVI
709 \end_layout
710
711 \end_inset
712
713
714 \family roman
715 \series medium
716 \shape up
717 \size normal
718 \emph off
719 \bar no
720 \noun off
721 \color none
722 を使用して実行した場合には、LyXはこの後、DVIビューアを実行してDVIファイルを表示します。
723 \begin_inset Flex CharStyle:MenuItem
724 status collapsed
725
726 \begin_layout Plain Layout
727
728 \family roman
729 \series medium
730 \shape up
731 \size normal
732 \emph off
733 \bar no
734 \noun off
735 \color none
736 表示\SpecialChar \menuseparator
737 PostScript
738 \end_layout
739
740 \end_inset
741
742 を使用した場合には、LyXはさらに以下の段階をふみます。
743 \end_layout
744
745 \begin_layout Itemize
746
747 \family roman
748 \series medium
749 \shape up
750 \size normal
751 \emph off
752 \bar no
753 \noun off
754 \color none
755 \begin_inset Flex CharStyle:Code
756 status collapsed
757
758 \begin_layout Plain Layout
759
760 \family typewriter
761 dvips
762 \end_layout
763
764 \end_inset
765
766 を実行して、
767 \family default
768 \series default
769 \shape default
770 \size default
771 \emph default
772 \bar default
773 \noun default
774 \color inherit
775 DVI
776 \family roman
777 \series medium
778 \shape up
779 \size normal
780 \emph off
781 \bar no
782 \noun off
783 \color none
784 ファイルをPostScript®
785 \family default
786 \series default
787 \shape default
788 \size default
789 \emph default
790 \bar default
791 \noun default
792 \color inherit
793 に変換。
794 \end_layout
795
796 \begin_layout Itemize
797
798 \family roman
799 \series medium
800 \shape up
801 \size normal
802 \emph off
803 \bar no
804 \noun off
805 \color none
806 \begin_inset Flex CharStyle:Code
807 status collapsed
808
809 \begin_layout Plain Layout
810
811 \family typewriter
812 ghostview
813 \end_layout
814
815 \end_inset
816
817 などのPostScript®ビューアを実行して、PostScript®
818 \family default
819 \series default
820 \shape default
821 \size default
822 \emph default
823 \bar default
824 \noun default
825 \color inherit
826 ファイルを表示。
827 \end_layout
828
829 \begin_layout Standard
830 LyXは、他の書式を表示したりエクスポートしたりする際にも、同様のことを行います。
831 \end_layout
832
833 \begin_layout Section
834 LaTeXファイルをLyXに読み込む
835 \end_layout
836
837 \begin_layout Standard
838 LyXで
839 \family sans
840
841 \begin_inset Flex CharStyle:MenuItem
842 status collapsed
843
844 \begin_layout Plain Layout
845
846 \family sans
847 ファイル\SpecialChar \menuseparator
848 インポート\SpecialChar \menuseparator
849 LaTeX
850 \end_layout
851
852 \end_inset
853
854
855 \family roman
856 \series medium
857 \shape up
858 \size normal
859 \emph off
860 \bar no
861 \noun off
862 \color none
863 コマンドを使用すると、LaTeXファイルを
864 \family default
865 \series default
866 \shape default
867 \size default
868 \emph default
869 \bar default
870 \noun default
871  
872 \family roman
873 \series medium
874 \shape up
875 \size normal
876 \emph off
877 \bar no
878 \noun off
879 LyXにインポートすることができます。このコマンドは、
880 \family typewriter
881 \series default
882 \shape default
883 \size default
884 \emph default
885 \bar default
886 \noun default
887 \color inherit
888
889 \begin_inset Flex CharStyle:Code
890 status collapsed
891
892 \begin_layout Plain Layout
893
894 \family typewriter
895 tex2lyx
896 \end_layout
897
898 \end_inset
899
900
901 \family roman
902 \series medium
903 \shape up
904 \size normal
905 \emph off
906 \bar no
907 \noun off
908 \color none
909 というプログラムを呼び出し、
910 \family typewriter
911 \series default
912 \shape default
913 \size default
914 \emph default
915 \bar default
916 \noun default
917 \color inherit
918
919 \begin_inset Flex CharStyle:Code
920 status collapsed
921
922 \begin_layout Plain Layout
923
924 \family typewriter
925 foo.tex
926 \end_layout
927
928 \end_inset
929
930
931 \family default
932 などというファイルから
933 \begin_inset Flex CharStyle:Code
934 status collapsed
935
936 \begin_layout Plain Layout
937
938 \family typewriter
939 foo.lyx
940 \end_layout
941
942 \end_inset
943
944 を生成します。LyXは、この変換したファイルを開きます
945 \begin_inset Foot
946 status collapsed
947
948 \begin_layout Plain Layout
949 \begin_inset Flex CharStyle:Code
950 status collapsed
951
952 \begin_layout Plain Layout
953 tex2lyx
954 \end_layout
955
956 \end_inset
957
958 は、もちろんコマンドラインから実行することもできます。
959 \end_layout
960
961 \end_inset
962
963
964 \end_layout
965
966 \begin_layout Standard
967
968 \family typewriter
969 \begin_inset Flex CharStyle:Code
970 status collapsed
971
972 \begin_layout Plain Layout
973
974 \family typewriter
975 tex2lyx
976 \end_layout
977
978 \end_inset
979
980
981 \family roman
982 \series medium
983 \shape up
984 \size normal
985 \emph off
986 \bar no
987 \noun off
988 \color none
989 は、文法的に正しいLaTeXファイルのほとんどを変換することができますが、すべてを変換できるわけではありません。
990 \family typewriter
991 \series default
992 \shape default
993 \size default
994 \emph default
995 \bar default
996 \noun default
997 \color inherit
998
999 \begin_inset Flex CharStyle:Code
1000 status collapsed
1001
1002 \begin_layout Plain Layout
1003
1004 \family typewriter
1005 tex2lyx
1006 \end_layout
1007
1008 \end_inset
1009
1010
1011 \family roman
1012 \series medium
1013 \shape up
1014 \size normal
1015 \emph off
1016 \bar no
1017 \noun off
1018 \color none
1019 は、理解不能な部分はTeXコードボックスの形で残しますので、ファイルを
1020 \family typewriter
1021 \series default
1022 \shape default
1023 \size default
1024 \emph default
1025 \bar default
1026 \noun default
1027 \color inherit
1028
1029 \begin_inset Flex CharStyle:Code
1030 status collapsed
1031
1032 \begin_layout Plain Layout
1033
1034 \family typewriter
1035 tex2lyx
1036 \end_layout
1037
1038 \end_inset
1039
1040
1041 \family roman
1042 \series medium
1043 \shape up
1044 \size normal
1045 \emph off
1046 \bar no
1047 \noun off
1048 \color none
1049 で変換したのち、TeXコードボックスを探して、手動で正しく編集してください。
1050 \end_layout
1051
1052 \begin_layout Standard
1053
1054 \family roman
1055 \series medium
1056 \shape up
1057 \size normal
1058 \emph off
1059 \bar no
1060 \noun off
1061 \color none
1062 TeXコードボックスがなにかご存じなければ、次節をお読みください。
1063 \end_layout
1064
1065 \begin_layout Section
1066 LaTeXコードを挿入する
1067 \begin_inset CommandInset label
1068 LatexCommand label
1069 name "sec:LaTeXコードを挿入する"
1070
1071 \end_inset
1072
1073
1074 \end_layout
1075
1076 \begin_layout Standard
1077
1078 \family roman
1079 \series medium
1080 \shape up
1081 \size normal
1082 \emph off
1083 \bar no
1084 \noun off
1085 \color none
1086 どのLyX文書にもつねにTeXコードを挿入することが可能であるというきわめて単純な理由によって、LaTeXにできることは、つねにLyXでも行うことができます。一
1087 方、LyXは、すべてのLaTeX構成物をLyX内に表示できるわけではなく、将来的にもそうならないでしょう。かりにLaTeXコマンドをLyX文書に挿入する必要が出
1088 てきた場合には、
1089 \begin_inset Flex CharStyle:Code
1090 status collapsed
1091
1092 \begin_layout Plain Layout
1093
1094 \family roman
1095 \series medium
1096 \shape up
1097 \size normal
1098 \emph off
1099 \bar no
1100 \noun off
1101 \color none
1102 TeXコード
1103 \end_layout
1104
1105 \end_inset
1106
1107 ボックスを使用してください。これは、
1108 \family sans
1109 \series default
1110 \shape default
1111 \size default
1112 \emph default
1113 \bar default
1114 \noun default
1115 \color inherit
1116
1117 \begin_inset Flex CharStyle:MenuItem
1118 status collapsed
1119
1120 \begin_layout Plain Layout
1121
1122 \family sans
1123 挿入\SpecialChar \menuseparator
1124 TeXコード
1125 \end_layout
1126
1127 \end_inset
1128
1129
1130 \family roman
1131 \series medium
1132 \shape up
1133 \size normal
1134 \emph off
1135 \bar no
1136 \noun off
1137 \color none
1138 から、文書中に挿入することができます。
1139 \end_layout
1140
1141 \begin_layout Standard
1142 以下は、LaTeXコマンドをLyX文書中に挿入する例です。コードは以下のようになっているとしましょう。
1143 \end_layout
1144
1145 \begin_layout LyX-Code
1146
1147 \backslash
1148 begin{tabular}{ll}
1149 \begin_inset Newline newline
1150 \end_inset
1151
1152
1153 \backslash
1154 begin{minipage}{5cm}
1155 \begin_inset Newline newline
1156 \end_inset
1157
1158 これは、ミニページ環境の例です。
1159 \begin_inset Newline newline
1160 \end_inset
1161
1162 これには、
1163 \begin_inset Newline newline
1164 \end_inset
1165
1166 (フロートでない)図表を
1167 \begin_inset Newline newline
1168 \end_inset
1169
1170 含め、ほとんど何でも
1171 \begin_inset Newline newline
1172 \end_inset
1173
1174 入れることができます。 
1175 \begin_inset Newline newline
1176 \end_inset
1177
1178
1179 \backslash
1180 end{minipage}
1181 \begin_inset Newline newline
1182 \end_inset
1183
1184 &
1185 \begin_inset Newline newline
1186 \end_inset
1187
1188
1189 \backslash
1190 begin{minipage}{5cm}
1191 \begin_inset Newline newline
1192 \end_inset
1193
1194
1195 \backslash
1196 begin{verbatim}
1197 \begin_inset Newline newline
1198 \end_inset
1199
1200
1201 \backslash
1202 begin{minipage}{5cm}
1203 \begin_inset Newline newline
1204 \end_inset
1205
1206 これ...
1207  
1208 \begin_inset Newline newline
1209 \end_inset
1210
1211
1212 \backslash
1213 end{minipage}
1214 \begin_inset Newline newline
1215 \end_inset
1216
1217
1218 \backslash
1219 end{verbatim}
1220 \begin_inset Newline newline
1221 \end_inset
1222
1223
1224 \backslash
1225 end{minipage}
1226 \begin_inset Newline newline
1227 \end_inset
1228
1229
1230 \backslash
1231 end{tabular}
1232 \end_layout
1233
1234 \begin_layout LyX-Code
1235
1236 \end_layout
1237
1238 \begin_layout Standard
1239 上記のテキストを含んだ
1240 \begin_inset Flex CharStyle:Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 TeXコード
1245 \end_layout
1246
1247 \end_inset
1248
1249 ボックスが、この段落の直後にあります。この取扱説明書をLyX上でご覧になっていれば、TeXコード差込枠のみが見えるはずです。印刷した取扱説明書をご覧であれば、実
1250 際の結果が見れるはずです。
1251 \end_layout
1252
1253 \begin_layout Standard
1254 \begin_inset ERT
1255 status collapsed
1256
1257 \begin_layout Plain Layout
1258
1259
1260 \backslash
1261 begin{tabular}{ll}
1262 \end_layout
1263
1264 \begin_layout Plain Layout
1265
1266
1267 \backslash
1268 begin{minipage}{5cm}
1269 \end_layout
1270
1271 \begin_layout Plain Layout
1272
1273 これは、ミニページ環境の例です。これには、(フロートでない)図表を含め、ほとんど何でも入れることができます。 
1274 \backslash
1275 end{minipage}
1276 \end_layout
1277
1278 \begin_layout Plain Layout
1279
1280 &
1281 \end_layout
1282
1283 \begin_layout Plain Layout
1284
1285
1286 \backslash
1287 begin{minipage}{5cm}
1288 \end_layout
1289
1290 \begin_layout Plain Layout
1291
1292
1293 \backslash
1294 begin{verbatim}
1295 \end_layout
1296
1297 \begin_layout Plain Layout
1298
1299
1300 \backslash
1301 begin{minipage}{5cm}
1302 \end_layout
1303
1304 \begin_layout Plain Layout
1305
1306 これ...
1307  
1308 \backslash
1309 end{minipage}
1310 \end_layout
1311
1312 \begin_layout Plain Layout
1313
1314
1315 \backslash
1316 end{verbatim}
1317 \end_layout
1318
1319 \begin_layout Plain Layout
1320
1321
1322 \backslash
1323 end{minipage}
1324 \end_layout
1325
1326 \begin_layout Plain Layout
1327
1328
1329 \backslash
1330 end{tabular}
1331 \end_layout
1332
1333 \end_inset
1334
1335
1336 \end_layout
1337
1338 \begin_layout Standard
1339
1340 \family roman
1341 \series medium
1342 \shape up
1343 \size normal
1344 \emph off
1345 \bar no
1346 \noun off
1347 \color none
1348 TeXコードを使用する方法に加えて、複雑なLaTeXコードを含む部分を別ファイルとして作成しておき、そのファイルをインクルードするのに
1349 \begin_inset Flex CharStyle:MenuItem
1350 status collapsed
1351
1352 \begin_layout Plain Layout
1353
1354 \family roman
1355 \series medium
1356 \shape up
1357 \size normal
1358 \emph off
1359 \bar no
1360 \noun off
1361 \color none
1362 挿入\SpecialChar \menuseparator
1363 ファイル\SpecialChar \menuseparator
1364 子文書
1365 \end_layout
1366
1367 \end_inset
1368
1369 を使用する方法もあります(取り込みの型として
1370 \begin_inset Flex CharStyle:Code
1371 status collapsed
1372
1373 \begin_layout Plain Layout
1374
1375 \family roman
1376 \series medium
1377 \shape up
1378 \size normal
1379 \emph off
1380 \bar no
1381 \noun off
1382 \color none
1383 Input
1384 \end_layout
1385
1386 \end_inset
1387
1388 を選択しなくてはなりません)。この方法をとる場合には、.texファイルが正しく動作することが
1389 \family default
1390 \series default
1391 \shape default
1392 \size default
1393 \emph on
1394 \bar default
1395 \noun default
1396 \color inherit
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 場合のみに限った方がよいでしょう。さもないと、LaTeXエラーを追跡するたいへんな作業を行わなくてはならなくなります。
1407 \end_layout
1408
1409 \begin_layout Standard
1410
1411 \family roman
1412 \series medium
1413 \shape up
1414 \size normal
1415 \emph off
1416 \bar no
1417 \noun off
1418 \color none
1419 最後に、いくつか強調しておくべきことがあります。
1420 \end_layout
1421
1422 \begin_layout Itemize
1423
1424 \family roman
1425 \series medium
1426 \shape up
1427 \size normal
1428 \emph off
1429 \bar no
1430 \noun off
1431 \color none
1432 LyXは、あなたのLaTeXコードが正しいかどうかを
1433 \family default
1434 \series default
1435 \shape default
1436 \size default
1437 \emph on
1438 \bar default
1439 \noun default
1440 \color inherit
1441 チェックしません
1442 \family roman
1443 \series medium
1444 \shape up
1445 \size normal
1446 \emph off
1447 \bar no
1448 \noun off
1449 \color none
1450
1451 \end_layout
1452
1453 \begin_layout Itemize
1454
1455 \family roman
1456 \series medium
1457 \shape up
1458 \size normal
1459 \emph off
1460 \bar no
1461 \noun off
1462 \color none
1463 車輪の再発明をしないようにご注意ください。
1464 \end_layout
1465
1466 \begin_layout Standard
1467
1468 \family roman
1469 \series medium
1470 \shape up
1471 \size normal
1472 \emph off
1473 \bar no
1474 \noun off
1475 \color none
1476 二番目の点に関して、LyXはひじょうにたくさんの機能を装備しており、その数は増えつづけています。ご自身でLaTeXコードを書かなくてはならないと思い込む前に、L
1477 yXがこれこれの機能をもっていないことを、取扱説明書で確実に確かめてください。さらに世の中には、封筒のラベルから美しい複数ページにわたる表を作るものまで、ありと
1478 あらゆることを行う膨大な数のLaTeXパッケージが存在します。
1479 \family default
1480 \series default
1481 \shape default
1482 \size default
1483 \emph default
1484 \bar default
1485 \noun default
1486 \color inherit
1487 詳細については、
1488 \begin_inset CommandInset href
1489 LatexCommand href
1490 name "CTAN"
1491 target "http://www.ctan.org/"
1492
1493 \end_inset
1494
1495
1496 \family roman
1497 \series medium
1498 \shape up
1499 \size normal
1500 \emph off
1501 \bar no
1502 \noun off
1503 \color none
1504 と第
1505 \begin_inset CommandInset ref
1506 LatexCommand ref
1507 reference "cha:secrets"
1508
1509 \end_inset
1510
1511 節をご覧ください。
1512 \end_layout
1513
1514 \begin_layout Standard
1515
1516 \family roman
1517 \series medium
1518 \shape up
1519 \size normal
1520 \emph off
1521 \bar no
1522 \noun off
1523 \color none
1524 もし、文書中で例外的に手の込んだことをなさりたければ、かならず良いLaTeX関連書籍を参考とするようにしてください。『
1525 \family default
1526 \series default
1527 \shape default
1528 \size default
1529 \emph on
1530 \bar default
1531 \noun default
1532 \color inherit
1533 ユーザーの手引き
1534 \family roman
1535 \series medium
1536 \shape up
1537 \size normal
1538 \emph off
1539 \bar no
1540 \noun off
1541 \color none
1542 』の参考文献に多くのLaTeX関連書籍が引用されています。
1543 \end_layout
1544
1545 \begin_layout Section
1546 LyXとLaTeXプリアンブル
1547 \end_layout
1548
1549 \begin_layout Subsection
1550 LaTeXプリアンブルについて
1551 \end_layout
1552
1553 \begin_layout Standard
1554
1555 \family roman
1556 \series medium
1557 \shape up
1558 \size normal
1559 \emph off
1560 \bar no
1561 \noun off
1562 \color none
1563 すでにLaTeXについてご存知であれば、ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう。もしご存じなければ、以下の説明で大まかな理解は
1564 得られるはずです。詳しくはLaTeX関連書籍をご参照ください。いずれにしても、以下でLyX文書のLaTeXプリアンブルで何ができるか、または何をする必要がないか
1565 説明をしますので、以下の各要点はお読みになった方が良いでしょう。
1566 \end_layout
1567
1568 \begin_layout Standard
1569
1570 \family roman
1571 \series medium
1572 \shape up
1573 \size normal
1574 \emph off
1575 \bar no
1576 \noun off
1577 \color none
1578 LaTeXプリアンブルは、LaTeX文書のいちばん始め、本文の
1579 \family default
1580 \series default
1581 \shape default
1582 \size default
1583 \emph on
1584 \bar default
1585 \noun default
1586 \color inherit
1587
1588 \family roman
1589 \series medium
1590 \shape up
1591 \size normal
1592 \emph off
1593 \bar no
1594 \noun off
1595 \color none
1596 の部分に来ます。ここでは以下のことを行います。
1597 \end_layout
1598
1599 \begin_layout Itemize
1600
1601 \family roman
1602 \series medium
1603 \shape up
1604 \size normal
1605 \emph off
1606 \bar no
1607 \noun off
1608 \color none
1609 文書クラス(ドキュメントクラス)の宣言。
1610 \begin_inset Newline newline
1611 \end_inset
1612
1613 これはLyXがすでに行ってくれています。もしあなたが熟達したLaTeX使いであり、自作の文書クラスを使いたい場合には、取扱説明書『
1614 \family default
1615 \series default
1616 \shape default
1617 \size default
1618 \emph on
1619 \bar default
1620 \noun default
1621 \color inherit
1622 カスタマイズ篇
1623 \family roman
1624 \series medium
1625 \shape up
1626 \size normal
1627 \emph off
1628 \bar no
1629 \noun off
1630 \color none
1631 』をご覧になれば、LyXに自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります。
1632 \end_layout
1633
1634 \begin_layout Itemize
1635
1636 \family roman
1637 \series medium
1638 \shape up
1639 \size normal
1640 \emph off
1641 \bar no
1642 \noun off
1643 \color none
1644 パッケージ使用の宣言。
1645 \begin_inset Newline newline
1646 \end_inset
1647
1648 LaTeXパッケージは、パッケージがプリアンブルで宣言された場合のみ、文書中で利用可能となる、追加コマンド群を提供します。例えば
1649 \family typewriter
1650 \series default
1651 \shape default
1652 \size default
1653 \emph default
1654 \bar default
1655 \noun default
1656 \color inherit
1657
1658 \family roman
1659 \series medium
1660 \shape up
1661 \size normal
1662 \emph off
1663 \bar no
1664 \noun off
1665 \color none
1666
1667 \begin_inset Flex CharStyle:Code
1668 status collapsed
1669
1670 \begin_layout Plain Layout
1671
1672 \family typewriter
1673 indentfirst
1674 \end_layout
1675
1676 \end_inset
1677
1678 パッケージは、すべての段落の最初の行を字下げします。他にも、ラベルや宛名書き、余白設定等の様々なパッケージがあります。
1679 \end_layout
1680
1681 \begin_layout Itemize
1682
1683 \family roman
1684 \series medium
1685 \shape up
1686 \size normal
1687 \emph off
1688 \bar no
1689 \noun off
1690 \color none
1691 カウンタ・変数・長さ・幅の設定。
1692 \begin_inset Newline newline
1693 \end_inset
1694
1695 LaTeXのカウンタと変数の中には、プリアンブルでグローバルに
1696 \family default
1697 \series default
1698 \shape default
1699 \size default
1700 \emph default
1701 \bar default
1702 \noun default
1703 \color inherit
1704 設定
1705 \emph on
1706 しないかぎり
1707 \family roman
1708 \series medium
1709 \shape up
1710 \size normal
1711 \emph off
1712 \bar no
1713 \noun off
1714 \color none
1715 、望んだ効果を持たないものがあります。(文書中で設定したり再設定したりすることのできる変数もあります。)余白は、プリアンブルで設定しなくてはならない変数の代表例
1716 です。他には、箇条書きに付けるラベル書式が挙げられます。じつは、この設定は文書中どこでもできるのですが、プリアンブルでいちどだけ設定するのが望ましい方法です。
1717 \end_layout
1718
1719 \begin_layout Itemize
1720
1721 \family roman
1722 \series medium
1723 \shape up
1724 \size normal
1725 \emph off
1726 \bar no
1727 \noun off
1728 \color none
1729 ユーザー定義コマンドの宣言(
1730 \begin_inset Flex CharStyle:Code
1731 status collapsed
1732
1733 \begin_layout Plain Layout
1734
1735 \family roman
1736 \series medium
1737 \shape up
1738 \size normal
1739 \emph off
1740 \bar no
1741 \noun off
1742 \color none
1743
1744 \backslash
1745 newcommand
1746 \end_layout
1747
1748 \end_inset
1749
1750 または
1751 \begin_inset Flex CharStyle:Code
1752 status collapsed
1753
1754 \begin_layout Plain Layout
1755
1756 \family roman
1757 \series medium
1758 \shape up
1759 \size normal
1760 \emph off
1761 \bar no
1762 \noun off
1763 \color none
1764
1765 \backslash
1766 renewcommand
1767 \end_layout
1768
1769 \end_inset
1770
1771 を使用)。
1772 \begin_inset Newline newline
1773 \end_inset
1774
1775 ユーザー定義コマンドは、文書中で頻出するLaTeXコマンドの短縮形です。このようなコマンドを宣言するには、プリアンブルが適した場所ですが、どこで宣言することも
1776 \family default
1777 \series default
1778 \shape default
1779 \size default
1780 \emph on
1781 \bar default
1782 \noun default
1783 \color inherit
1784 可能
1785 \family roman
1786 \series medium
1787 \shape up
1788 \size normal
1789 \emph off
1790 \bar no
1791 \noun off
1792 \color none
1793 です(もちろんコマンドが初めて使用される場所よりも前です)。あまりないことではありますが、お使いの文書中に生のLaTeXコードがあふれている場合には便利でしょう
1794
1795 \end_layout
1796
1797 \begin_layout Standard
1798
1799 \family roman
1800 \series medium
1801 \shape up
1802 \size normal
1803 \emph off
1804 \bar no
1805 \noun off
1806 \color none
1807 LyXは、その生成する
1808 \begin_inset Flex CharStyle:Code
1809 status collapsed
1810
1811 \begin_layout Plain Layout
1812
1813 \family roman
1814 \series medium
1815 \shape up
1816 \size normal
1817 \emph off
1818 \bar no
1819 \noun off
1820 \color none
1821 .tex
1822 \end_layout
1823
1824 \end_inset
1825
1826 ファイルのプリアンブルに、それ自身の定義を追加します。これによって、LyXの生成するLaTeXファイルの可搬性を高めています。
1827 \end_layout
1828
1829 \begin_layout Subsection
1830 プリアンブルの変更
1831 \end_layout
1832
1833 \begin_layout Standard
1834
1835 \family roman
1836 \series medium
1837 \shape up
1838 \size normal
1839 \emph off
1840 \bar no
1841 \noun off
1842 \color none
1843 LyXがLaTeXファイルのプリアンブルに追加するコマンドは、つねに同じです。これは、LyX自体にパッチを当てないかぎり変更できないようになっています。しかしな
1844 がら、
1845 \begin_inset Flex CharStyle:MenuItem
1846 status collapsed
1847
1848 \begin_layout Plain Layout
1849
1850 \family roman
1851 \series medium
1852 \shape up
1853 \size normal
1854 \emph off
1855 \bar no
1856 \noun off
1857 \color none
1858 文書\SpecialChar \menuseparator
1859 設定
1860 \end_layout
1861
1862 \end_inset
1863
1864 ダイアログの
1865 \begin_inset Flex CharStyle:MenuItem
1866 status collapsed
1867
1868 \begin_layout Plain Layout
1869
1870 \family roman
1871 \series medium
1872 \shape up
1873 \size normal
1874 \emph off
1875 \bar no
1876 \noun off
1877 \color none
1878 LaTeXプリアンブル
1879 \end_layout
1880
1881 \end_inset
1882
1883 の項から、プリアンブルに追加をすることはできます。LyXは、
1884 \family sans
1885 \series default
1886 \shape default
1887 \size default
1888 \emph default
1889 \bar default
1890 \noun default
1891 \color inherit
1892
1893 \begin_inset Flex CharStyle:MenuItem
1894 status collapsed
1895
1896 \begin_layout Plain Layout
1897
1898 \family sans
1899 プリアンブル
1900 \end_layout
1901
1902 \end_inset
1903
1904
1905 \family roman
1906 \series medium
1907 \shape up
1908 \size normal
1909 \emph off
1910 \bar no
1911 \noun off
1912 \color none
1913 ダイアログ内のすべてのものを、LyX埋込みのプリアンブルに付け加えます。ご自身の宣言をプリアンブルに追加する前に、あなたがしようとしていることをLyXがすでにサ
1914 ポートしていないかどうか確認してください(車輪の再発明をしないように、とはすでに申しあげたことです)。
1915 \family default
1916 \series default
1917 \shape default
1918 \size default
1919 \emph default
1920 \bar default
1921 \noun default
1922 \color inherit
1923 また、
1924 \emph on
1925 プリアンブルコードが正しいことを確認してください。
1926 \emph default
1927 LyXは、プリアンブルをチェックしません。
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 もしエラーがあれば、「
1937 \begin_inset Flex CharStyle:Code
1938 status collapsed
1939
1940 \begin_layout Plain Layout
1941
1942 \family roman
1943 \series medium
1944 \shape up
1945 \size normal
1946 \emph off
1947 \bar no
1948 \noun off
1949 \color none
1950 Missing 
1951 \backslash
1952 begin{document}
1953 \end_layout
1954
1955 \end_inset
1956
1957 」といったエラーが出ることでしょう。このようなエラーが出たときは、プリアンブルを再確認してください。
1958 \end_layout
1959
1960 \begin_layout Subsection
1961
1962 \end_layout
1963
1964 \begin_layout Standard
1965
1966 \family roman
1967 \series medium
1968 \shape up
1969 \size normal
1970 \emph off
1971 \bar no
1972 \noun off
1973 \color none
1974 以下は、プリアンブルに追加できるものとその効果を示す例です。
1975 \end_layout
1976
1977 \begin_layout Subsubsection
1978 例1:オフセット
1979 \end_layout
1980
1981 \begin_layout Standard
1982
1983 \family roman
1984 \series medium
1985 \shape up
1986 \size normal
1987 \emph off
1988 \bar no
1989 \noun off
1990 \color none
1991 LaTeXには
1992 \family default
1993 \series default
1994 \shape default
1995 \size default
1996 \emph default
1997 \bar default
1998 \noun default
1999 \color inherit
2000
2001 \family roman
2002 \series medium
2003 \shape up
2004 \size normal
2005 \emph off
2006 \bar no
2007 \noun off
2008 \color none
2009
2010 \begin_inset Flex CharStyle:Code
2011 status collapsed
2012
2013 \begin_layout Plain Layout
2014
2015 \family typewriter
2016
2017 \backslash
2018 hoffset
2019 \end_layout
2020
2021 \end_inset
2022
2023
2024 \family typewriter
2025 \series default
2026 \shape default
2027 \size default
2028 \emph default
2029 \bar default
2030 \noun default
2031 \color inherit
2032
2033 \begin_inset Flex CharStyle:Code
2034 status collapsed
2035
2036 \begin_layout Plain Layout
2037
2038 \family typewriter
2039
2040 \backslash
2041 voffset
2042 \end_layout
2043
2044 \end_inset
2045
2046
2047 \family roman
2048 \series medium
2049 \shape up
2050 \size normal
2051 \emph off
2052 \bar no
2053 \noun off
2054 \color none
2055 というページ位置を制御する2つの変数があります。その機能は名前から明らかなとおりです。これらの変数は、ラベルを印刷するときなどに便利です。往々にして、印刷用紙の
2056 寸法とそのうち実際に印字可能な範囲は同じではありません。ここに
2057 \begin_inset Flex CharStyle:Code
2058 status collapsed
2059
2060 \begin_layout Plain Layout
2061
2062 \family typewriter
2063
2064 \backslash
2065 hoffset
2066 \end_layout
2067
2068 \end_inset
2069
2070
2071 \family typewriter
2072 \series default
2073 \shape default
2074 \size default
2075 \emph default
2076 \bar default
2077 \noun default
2078 \color inherit
2079
2080 \begin_inset Flex CharStyle:Code
2081 status collapsed
2082
2083 \begin_layout Plain Layout
2084
2085 \family typewriter
2086
2087 \backslash
2088 voffset
2089 \end_layout
2090
2091 \end_inset
2092
2093
2094 \family default
2095 が役立つわけです。
2096 \end_layout
2097
2098 \begin_layout Standard
2099
2100 \family roman
2101 \series medium
2102 \shape up
2103 \size normal
2104 \emph off
2105 \bar no
2106 \noun off
2107 \color none
2108 \begin_inset Flex CharStyle:Code
2109 status collapsed
2110
2111 \begin_layout Plain Layout
2112
2113 \family typewriter
2114
2115 \backslash
2116 hoffset
2117 \end_layout
2118
2119 \end_inset
2120
2121
2122 \family typewriter
2123 \series default
2124 \shape default
2125 \size default
2126 \emph default
2127 \bar default
2128 \noun default
2129 \color inherit
2130
2131 \begin_inset Flex CharStyle:Code
2132 status collapsed
2133
2134 \begin_layout Plain Layout
2135
2136 \family typewriter
2137
2138 \backslash
2139 voffset
2140 \end_layout
2141
2142 \end_inset
2143
2144
2145 \family roman
2146 \series medium
2147 \shape up
2148 \size normal
2149 \emph off
2150 \bar no
2151 \noun off
2152 \color none
2153 の既定値はともに0ポイント、つまりページをシフトしません。残念ながら、DVIドライバによってはつねにページをシフトすることがあるようです。我々には、どうしてその
2154 ようなことをするのか、そしてシスアドがどうしてそれを修正しないのか理解できませんが、もし個人的に管理できないシステムでLyXを使用していて、シスアドがお馬鹿さん
2155 である場合には、
2156 \begin_inset Flex CharStyle:Code
2157 status collapsed
2158
2159 \begin_layout Plain Layout
2160
2161 \family typewriter
2162
2163 \backslash
2164 hoffset
2165 \end_layout
2166
2167 \end_inset
2168
2169
2170 \family typewriter
2171 \series default
2172 \shape default
2173 \size default
2174 \emph default
2175 \bar default
2176 \noun default
2177 \color inherit
2178
2179 \begin_inset Flex CharStyle:Code
2180 status collapsed
2181
2182 \begin_layout Plain Layout
2183
2184 \family typewriter
2185
2186 \backslash
2187 voffset
2188 \end_layout
2189
2190 \end_inset
2191
2192
2193 \family roman
2194 \series medium
2195 \shape up
2196 \size normal
2197 \emph off
2198 \bar no
2199 \noun off
2200 \color none
2201 が役に立ちます。かりに、上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう。その場合は、以下をプリアンブルに追加するとよいでしょう。
2202 \end_layout
2203
2204 \begin_layout LyX-Code
2205
2206 \backslash
2207 setlength{
2208 \backslash
2209 hoffset}{-0.5 in}
2210 \end_layout
2211
2212 \begin_layout LyX-Code
2213
2214 \backslash
2215 setlength{
2216 \backslash
2217 voffset}{-0.5 in}
2218 \end_layout
2219
2220 \begin_layout Standard
2221
2222 \family roman
2223 \series medium
2224 \shape up
2225 \size normal
2226 \emph off
2227 \bar no
2228 \noun off
2229 \color none
2230 これで余白が修正されます。
2231 \end_layout
2232
2233 \begin_layout Subsubsection
2234 例2:ラベル
2235 \end_layout
2236
2237 \begin_layout Standard
2238
2239 \family roman
2240 \series medium
2241 \shape up
2242 \size normal
2243 \emph off
2244 \bar no
2245 \noun off
2246 \color none
2247 いま、たくさんの宛名ラベルを印刷をしたいものとしましょう。ラベルシートを印刷するために便利な
2248 \begin_inset Flex CharStyle:Code
2249 status collapsed
2250
2251 \begin_layout Plain Layout
2252
2253 \family typewriter
2254 labels.sty
2255 \end_layout
2256
2257 \end_inset
2258
2259 というLaTeXパッケージが、お近くのCTANアーカイブで入手可能です。お使いのシステムには、既定ではこのパッケージは導入されていないかもしれません。ご自身でお
2260 確かめください。また、このパッケージの取扱説明書を読まれたいかもしれませんが、それもご自身にお任せします。これは使用例ですので、このパッケージをどう使うかの例だ
2261 けお見せすることにします。
2262 \end_layout
2263
2264 \begin_layout Standard
2265
2266 \family roman
2267 \series medium
2268 \shape up
2269 \size normal
2270 \emph off
2271 \bar no
2272 \noun off
2273 \color none
2274 まず、
2275 \begin_inset Flex CharStyle:Code
2276 status collapsed
2277
2278 \begin_layout Plain Layout
2279
2280 \family sans
2281 article
2282 \end_layout
2283
2284 \end_inset
2285
2286 文書クラスを使用していることをご確認ください。次に、以下のような設定をプリアンブルに追加しなければなりません。
2287 \end_layout
2288
2289 \begin_layout LyX-Code
2290
2291 \backslash
2292 usepackage{labels}
2293 \end_layout
2294
2295 \begin_layout LyX-Code
2296
2297 \backslash
2298 LabelCols=3
2299 \end_layout
2300
2301 \begin_layout LyX-Code
2302
2303 \backslash
2304 LabelRows=7
2305 \end_layout
2306
2307 \begin_layout LyX-Code
2308
2309 \backslash
2310 LeftBorder=8mm
2311 \end_layout
2312
2313 \begin_layout LyX-Code
2314
2315 \backslash
2316 RightBorder=8mm
2317 \end_layout
2318
2319 \begin_layout LyX-Code
2320
2321 \backslash
2322 TopBorder=9mm
2323 \end_layout
2324
2325 \begin_layout LyX-Code
2326
2327 \backslash
2328 BottomBorder=2mm
2329 \end_layout
2330
2331 \begin_layout Standard
2332
2333 \family roman
2334 \series medium
2335 \shape up
2336 \size normal
2337 \emph off
2338 \bar no
2339 \noun off
2340 \color none
2341 これは
2342 \family default
2343 \series default
2344 \shape default
2345 \size default
2346 \emph default
2347 \bar default
2348 \noun default
2349 \color inherit
2350 Avery®ラベルシートのストック5360
2351 \family roman
2352 \series medium
2353 \shape up
2354 \size normal
2355 \emph off
2356 \bar no
2357 \noun off
2358 \color none
2359 番を使用する場合の設定です。これで、各宛名を
2360 \begin_inset Flex CharStyle:Code
2361 status collapsed
2362
2363 \begin_layout Plain Layout
2364
2365 \family typewriter
2366
2367 \backslash
2368 begin{labels}
2369 \end_layout
2370
2371 \end_inset
2372
2373
2374 \family typewriter
2375 \series default
2376 \shape default
2377 \size default
2378 \emph default
2379 \bar default
2380 \noun default
2381 \color inherit
2382
2383 \begin_inset Flex CharStyle:Code
2384 status collapsed
2385
2386 \begin_layout Plain Layout
2387
2388 \family typewriter
2389
2390 \backslash
2391 end{labels}
2392 \end_layout
2393
2394 \end_inset
2395
2396
2397 \family roman
2398 \series medium
2399 \shape up
2400 \size normal
2401 \emph off
2402 \bar no
2403 \noun off
2404 \color none
2405 で囲めば、宛名ラベルの印刷をすることができます。本機能およびその他の機能に関しては、
2406 \begin_inset Flex CharStyle:Code
2407 status collapsed
2408
2409 \begin_layout Plain Layout
2410
2411 \family typewriter
2412 labels.sty
2413 \end_layout
2414
2415 \end_inset
2416
2417 の取扱説明書に説明されています。
2418 \end_layout
2419
2420 \begin_layout Standard
2421
2422 \family roman
2423 \series medium
2424 \shape up
2425 \size normal
2426 \emph off
2427 \bar no
2428 \noun off
2429 \color none
2430 そのうち誰かが、このパッケージを直接サポートするLyXレイアウトファイルを作ってくれるかもしれません。その誰かはあなたかもしれません。
2431 \end_layout
2432
2433 \begin_layout Subsubsection
2434 例3: 段落の字下げ
2435 \end_layout
2436
2437 \begin_layout Standard
2438
2439 \family roman
2440 \series medium
2441 \shape up
2442 \size normal
2443 \emph off
2444 \bar no
2445 \noun off
2446 \color none
2447 アメリカ人は
2448 \family default
2449 \series default
2450 \shape default
2451 \size default
2452 \emph default
2453 \bar default
2454 \noun default
2455 \color inherit
2456
2457 \emph on
2458 すべての
2459 \family roman
2460 \series medium
2461 \shape up
2462 \size normal
2463 \emph off
2464 \bar no
2465 \noun off
2466 \color none
2467 段落の最初の行を字下げするように教育されています。そのために彼らの他の変な習慣と同じく、いつものようにすべての段落の最初の行を下げるまで、アメリカ人はごちゃごち
2468 ゃと文句を言いつづけるのです
2469 \family default
2470 \series default
2471 \shape default
2472 \size default
2473 \emph default
2474 \bar default
2475 \noun default
2476 \color inherit
2477 。(これはユーモアです。(ほんと?)
2478 \emph on
2479 ユーモアですってば
2480 \emph default
2481 。)
2482 \end_layout
2483
2484 \begin_layout Standard
2485
2486 \family roman
2487 \series medium
2488 \shape up
2489 \size normal
2490 \emph off
2491 \bar no
2492 \noun off
2493 \color none
2494 もちろん、これは標準的な組版ルールではありません。書籍では、典型的には、他の段落のあとにくる段落
2495 \family default
2496 \series default
2497 \shape default
2498 \size default
2499 \emph on
2500 \bar default
2501 \noun default
2502 \color inherit
2503 のみ
2504 \family roman
2505 \series medium
2506 \shape up
2507 \size normal
2508 \emph off
2509 \bar no
2510 \noun off
2511 \color none
2512 字下げを行ないます。一行めを字下げをするそもそもの目的は、隣接する段落から区別するためです。したがって、図のあとや節の最初の段落など、先行する段落がない場合には
2513 、字下げをする必要はないのです。
2514 \end_layout
2515
2516 \begin_layout Standard
2517
2518 \family roman
2519 \series medium
2520 \shape up
2521 \size normal
2522 \emph off
2523 \bar no
2524 \noun off
2525 \color none
2526 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!)、そのような小難しいことはかまわずに、いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2527 ルに次の行を加えて下さい。
2528 \end_layout
2529
2530 \begin_layout LyX-Code
2531
2532 \backslash
2533 usepackage{indentfirst}
2534 \end_layout
2535
2536 \begin_layout Standard
2537
2538 \family roman
2539 \series medium
2540 \shape up
2541 \size normal
2542 \emph off
2543 \bar no
2544 \noun off
2545 \color none
2546 もしお使いのTeX頒布版が脳死状態でなければ、このパッケージが入っているはずなので、建国の父たちが意図したように、すべての段落が字下げされます。
2547 \end_layout
2548
2549 \begin_layout Subsubsection
2550 例4:この文書
2551 \end_layout
2552
2553 \begin_layout Standard
2554
2555 \family roman
2556 \series medium
2557 \shape up
2558 \size normal
2559 \emph off
2560 \bar no
2561 \noun off
2562 \color none
2563 この文書のプリアンブルを見てみると、どのような高度な設定ができるか、おおまかな理解が得られるでしょう。また第
2564 \family default
2565 \series default
2566 \shape default
2567 \size default
2568 \emph default
2569 \bar default
2570 \noun default
2571 \color inherit
2572
2573 \begin_inset CommandInset ref
2574 LatexCommand ref
2575 reference "cha:secrets"
2576
2577 \end_inset
2578
2579
2580 \family roman
2581 \series medium
2582 \shape up
2583 \size normal
2584 \emph off
2585 \bar no
2586 \noun off
2587 \color none
2588 章には、他の例や、LaTeXの各種の「汚い技」があります。
2589 \end_layout
2590
2591 \begin_layout Section
2592 LyXおよびLaTeXのエラー
2593 \end_layout
2594
2595 \begin_layout Standard
2596
2597 \family roman
2598 \series medium
2599 \shape up
2600 \size normal
2601 \emph off
2602 \bar no
2603 \noun off
2604 \color none
2605 LyXがLaTeXを呼び出す際、LyXはLaTeXに、かりにエラーがあったとしても楽観的に無視して先に進むように指示します。その後LyXは、LaTeXの実行ログ
2606 ファイルを事後処理用に使います。ログファイルを分析したのち、LyXはエラーを一覧表示するダイアログを表示します。エラーのうちどれかをクリックすると、LyXファイ
2607 ル中、そのエラーの発生した場所に表示を移動します
2608 \begin_inset Foot
2609 status collapsed
2610
2611 \begin_layout Plain Layout
2612
2613 \family roman
2614 \series medium
2615 \shape up
2616 \size normal
2617 \emph off
2618 \bar no
2619 \noun off
2620 \color none
2621 正確にいうと、通常は、です。ログファイルの分析は難しい仕事ですので、LyXはつねに正しい行に連れて行ってくれるとは限りません。ときには、LaTeXがある行にエラ
2622 ーがあると報告したとしても、実際のエラーはそれよりも前であることもあります。これは、プログラムで閉じ括弧を忘れたときに似ていなくもありません。エラーは表示されま
2623 すが、実際にエラーのある場所よりも後ろでエラーが報告されるのです。
2624 \end_layout
2625
2626 \end_inset
2627
2628
2629 \family default
2630 \series default
2631 \shape default
2632 \size default
2633 \emph default
2634 \bar default
2635 \noun default
2636 \color inherit
2637
2638 \end_layout
2639
2640 \begin_layout Standard
2641
2642 \family roman
2643 \series medium
2644 \shape up
2645 \size normal
2646 \emph off
2647 \bar no
2648 \noun off
2649 \color none
2650 人によっては、ログファイルを直接ご覧になりたいかもしれません。これは、
2651 \begin_inset Flex CharStyle:MenuItem
2652 status collapsed
2653
2654 \begin_layout Plain Layout
2655
2656 \family roman
2657 \series medium
2658 \shape up
2659 \size normal
2660 \emph off
2661 \bar no
2662 \noun off
2663 \color none
2664 文書\SpecialChar \menuseparator
2665 LaTeXログ
2666 \end_layout
2667
2668 \end_inset
2669
2670 で見ることができます。エラーメッセージや警告には、よく見かけるものがいくつかありますので、それらをここに収録しておきます。ここにないエラーや警告に関しては、La
2671 TeX関連の良書を参照してください。
2672 \end_layout
2673
2674 \begin_layout Itemize
2675
2676 \family typewriter
2677 \begin_inset Flex CharStyle:Code
2678 status collapsed
2679
2680 \begin_layout Plain Layout
2681
2682 \family typewriter
2683 LaTeX Warning
2684 \end_layout
2685
2686 \end_inset
2687
2688
2689 \family roman
2690 \series medium
2691 \shape up
2692 \size normal
2693 \emph off
2694 \bar no
2695 \noun off
2696 \color none
2697
2698 \begin_inset Newline newline
2699 \end_inset
2700
2701 これで始まるメッセージは、LaTeXコード自体を「デバッグ」するための警告メッセージです。相互参照や参考文献を追加したり変更した場合に、もう一度LaTeXを実行
2702 する必要があることを知らせるために、このようなメッセージが表示されます。このメッセージは、だいたいにおいて無視しても大丈夫です。
2703 \end_layout
2704
2705 \begin_layout Itemize
2706
2707 \family typewriter
2708 \begin_inset Flex CharStyle:Code
2709 status collapsed
2710
2711 \begin_layout Plain Layout
2712
2713 \family typewriter
2714 LaTeX Font Warning
2715 \end_layout
2716
2717 \end_inset
2718
2719
2720 \family roman
2721 \series medium
2722 \shape up
2723 \size normal
2724 \emph off
2725 \bar no
2726 \noun off
2727 \color none
2728
2729 \begin_inset Newline newline
2730 \end_inset
2731
2732 LaTeXがフォントを見つけられなかったと言う警告メッセージです。多くの場合、このメッセージの後に、LaTeXが使用した代替フォントに関する情報が続きます。これ
2733 も無視して構いません。
2734 \end_layout
2735
2736 \begin_layout Itemize
2737
2738 \family roman
2739 \series medium
2740 \shape up
2741 \size normal
2742 \emph off
2743 \bar no
2744 \noun off
2745 \color none
2746 \begin_inset Flex CharStyle:Code
2747 status collapsed
2748
2749 \begin_layout Plain Layout
2750
2751 \family typewriter
2752 Overfull 
2753 \backslash
2754 hbox
2755 \end_layout
2756
2757 \end_inset
2758
2759
2760 \begin_inset Newline newline
2761 \end_inset
2762
2763 LaTeXは、
2764 \family default
2765 \series default
2766 \shape default
2767 \size default
2768 \emph on
2769 \bar default
2770 \noun default
2771 \color inherit
2772 ほぼどんなときでも
2773 \family roman
2774 \series medium
2775 \shape up
2776 \size normal
2777 \emph off
2778 \bar no
2779 \noun off
2780 \color none
2781 この警告を吐き出します。これは、一行が長すぎて右余白にはみ出してしまったという警告ですが、ほとんどの場合、最終出力を見ても判別できないくらい(せいぜい1ポイント
2782 か2ポイント)です。あるいは1文字か2文字右余白に出ているくらいです。LaTeXは、どんな文書を書いても、少なくとも一つはこのメッセージを出すようです。
2783 \begin_inset Newline newline
2784 \end_inset
2785
2786 このメッセージは無視しても大丈夫です。何か行が長すぎるような問題があれば、目で見ればわかります。出力を目で確認してください
2787 \begin_inset Foot
2788 status collapsed
2789
2790 \begin_layout Plain Layout
2791 あるいは、
2792 \begin_inset Flex CharStyle:MenuItem
2793 status collapsed
2794
2795 \begin_layout Plain Layout
2796 文書\SpecialChar \menuseparator
2797 設定
2798 \end_layout
2799
2800 \end_inset
2801
2802 で「draft」オプションを指定する方法もあります。こうすると、LaTeXは、overfullの発生した行の余白に黒い四角を描画します。
2803 \end_layout
2804
2805 \end_inset
2806
2807
2808 \end_layout
2809
2810 \begin_layout Itemize
2811
2812 \family typewriter
2813 \begin_inset Flex CharStyle:Code
2814 status collapsed
2815
2816 \begin_layout Plain Layout
2817
2818 \family typewriter
2819 Underfull 
2820 \backslash
2821 hbox
2822 \end_layout
2823
2824 \end_inset
2825
2826
2827 \begin_inset Newline newline
2828 \end_inset
2829
2830
2831 \family roman
2832 \series medium
2833 \shape up
2834 \size normal
2835 \emph off
2836 \bar no
2837 \noun off
2838 \color none
2839 これは上の警告と違ってあまり出てきません。なぜだかは分かりませんが、LaTeXは1行を短めにする印字するよりは、長めにする方が好きなようです。
2840 \end_layout
2841
2842 \begin_layout Itemize
2843 \begin_inset Flex CharStyle:Code
2844 status collapsed
2845
2846 \begin_layout Plain Layout
2847
2848 \family typewriter
2849 Overfull 
2850 \backslash
2851 vbox
2852 \end_layout
2853
2854 \end_inset
2855
2856
2857 \family typewriter
2858
2859 \begin_inset Flex CharStyle:Code
2860 status collapsed
2861
2862 \begin_layout Plain Layout
2863
2864 \family typewriter
2865 Underfull 
2866 \backslash
2867 vbox
2868 \end_layout
2869
2870 \end_inset
2871
2872
2873 \family default
2874
2875 \begin_inset Newline newline
2876 \end_inset
2877
2878
2879 \family roman
2880 \series medium
2881 \shape up
2882 \size normal
2883 \emph off
2884 \bar no
2885 \noun off
2886 \color none
2887 ページ区切りに問題があったという警告です。この場合も、出力を目で確認してください。何か問題があれば、見てすぐわかります。
2888 \end_layout
2889
2890 \begin_layout Itemize
2891
2892 \family typewriter
2893 \begin_inset Flex CharStyle:Code
2894 status collapsed
2895
2896 \begin_layout Plain Layout
2897
2898 \family typewriter
2899 LaTeX Error: File 
2900 \begin_inset Quotes els
2901 \end_inset
2902
2903 Xxxx
2904 \begin_inset Quotes ers
2905 \end_inset
2906
2907  not found
2908 \end_layout
2909
2910 \end_inset
2911
2912
2913 \family roman
2914 \series medium
2915 \shape up
2916 \size normal
2917 \emph off
2918 \bar no
2919 \noun off
2920 \color none
2921
2922 \begin_inset Newline newline
2923 \end_inset
2924
2925 ファイル「Xxxx」が、システムに導入されていません。これは通常、文書が必要としているLaTeXパッケージに、導入済でないものがある場合に現れます。プリアンブル
2926 に変更を加えておらず、
2927 \begin_inset Flex CharStyle:Code
2928 status collapsed
2929
2930 \begin_layout Plain Layout
2931
2932 \family typewriter
2933
2934 \backslash
2935 usepackage{}
2936 \end_layout
2937
2938 \end_inset
2939
2940 コマンドも使用していないとすれば、LyXが読み込もうしているパッケージに存在しないものがあるということです。
2941 \family default
2942 \series default
2943 \shape default
2944 \size default
2945 \emph default
2946 \bar default
2947 \noun default
2948 \color inherit
2949
2950 \begin_inset Flex CharStyle:MenuItem
2951 status collapsed
2952
2953 \begin_layout Plain Layout
2954 ヘルプ\SpecialChar \menuseparator
2955 LaTeXの設定
2956 \end_layout
2957
2958 \end_inset
2959
2960
2961 \family roman
2962 \series medium
2963 \shape up
2964 \size normal
2965 \emph off
2966 \bar no
2967 \noun off
2968 \color none
2969 を使用して、LyXが認識しているパッケージの一覧を得てください。このファイルは、(
2970 \begin_inset Flex CharStyle:MenuItem
2971 status collapsed
2972
2973 \begin_layout Plain Layout
2974
2975 \family roman
2976 \series medium
2977 \shape up
2978 \size normal
2979 \emph off
2980 \bar no
2981 \noun off
2982 \color none
2983 ツール\SpecialChar \menuseparator
2984 再設定
2985 \end_layout
2986
2987 \end_inset
2988
2989 を使用して)LyXの再設定を行うたびに更新され、どのパッケージが検出されたか、それらのパッケージが何をするものかを表示します。
2990 \begin_inset Newline newline
2991 \end_inset
2992
2993
2994 \family sans
2995 \series default
2996 \shape default
2997 \size default
2998 \emph default
2999 \bar default
3000 \noun default
3001 \color inherit
3002
3003 \begin_inset Flex CharStyle:Code
3004 status collapsed
3005
3006 \begin_layout Plain Layout
3007
3008 \family sans
3009
3010 \backslash
3011 usepackage{}
3012 \end_layout
3013
3014 \end_inset
3015
3016
3017 \family roman
3018 \series medium
3019 \shape up
3020 \size normal
3021 \emph off
3022 \bar no
3023 \noun off
3024 \color none
3025 コマンドを使っていて、肝心のパッケージが導入されていない場合には、ご自身で導入する必要があります。
3026 \end_layout
3027
3028 \begin_layout Itemize
3029
3030 \family typewriter
3031 \begin_inset Flex CharStyle:Code
3032 status collapsed
3033
3034 \begin_layout Plain Layout
3035
3036 \family typewriter
3037 LaTeX Error: Unknown option
3038 \end_layout
3039
3040 \end_inset
3041
3042
3043 \family roman
3044 \series medium
3045 \shape up
3046 \size normal
3047 \emph off
3048 \bar no
3049 \noun off
3050 \color none
3051
3052 \begin_inset Newline newline
3053 \end_inset
3054
3055 このように始まるエラーメッセージは、パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです。パッケージの取扱説明書をご確認くだ
3056 さい。
3057 \end_layout
3058
3059 \begin_layout Itemize
3060
3061 \family typewriter
3062 \begin_inset Flex CharStyle:Code
3063 status collapsed
3064
3065 \begin_layout Plain Layout
3066
3067 \family typewriter
3068 Undefined control sequence
3069 \end_layout
3070
3071 \end_inset
3072
3073
3074 \family roman
3075 \series medium
3076 \shape up
3077 \size normal
3078 \emph off
3079 \bar no
3080 \noun off
3081 \color none
3082
3083 \begin_inset Newline newline
3084 \end_inset
3085
3086 お使いの文書にLaTeXコードを挿入した際、打ち間違いをしてしまうと、このようなメッセージが表示されます。あるいは、パッケージを読み込ませるのを忘れたのかもしれ
3087 ません。いずれにしても、このメッセージは、あなたが未定義のコマンドを使用したことを示しています。
3088 \end_layout
3089
3090 \begin_layout Standard
3091
3092 \family roman
3093 \series medium
3094 \shape up
3095 \size normal
3096 \emph off
3097 \bar no
3098 \noun off
3099 \color none
3100 これ以外にも、エラーメッセージや警告メッセージがあります。一般に、読んで意味がすぐにわかるものは、LaTeXのメッセージです。何を言っているのかさっぱりわからな
3101 いものもありますが、通常これらは、TeXのメッセージであり、それが何を意味しているのか、どのように解読すればいいのか、
3102 \family default
3103 \series default
3104 \shape default
3105 \size default
3106 \emph on
3107 \bar default
3108 \noun default
3109 \color inherit
3110 まったく
3111 \family roman
3112 \series medium
3113 \shape up
3114 \size normal
3115 \emph off
3116 \bar no
3117 \noun off
3118 \color none
3119 手がかりがありません。誰もわからないのです。
3120 \end_layout
3121
3122 \begin_layout Standard
3123
3124 \family roman
3125 \series medium
3126 \shape up
3127 \size normal
3128 \emph off
3129 \bar no
3130 \noun off
3131 \color none
3132 エラーメッセージが表示された場合は、つねに以下のチェックリストにしたがった方がよいでしょう。
3133 \end_layout
3134
3135 \begin_layout Enumerate
3136
3137 \family roman
3138 \series medium
3139 \shape up
3140 \size normal
3141 \emph off
3142 \bar no
3143 \noun off
3144 \color none
3145 ご自分で挿入したLaTeXコードに打ち間違いがないかどうか確かめる。
3146 \end_layout
3147
3148 \begin_layout Enumerate
3149
3150 \family roman
3151 \series medium
3152 \shape up
3153 \size normal
3154 \emph off
3155 \bar no
3156 \noun off
3157 \color none
3158 打ち間違いがなければ、コマンドを正しく使ったかどうか確かめる。
3159 \end_layout
3160
3161 \begin_layout Enumerate
3162
3163 \family roman
3164 \series medium
3165 \shape up
3166 \size normal
3167 \emph off
3168 \bar no
3169 \noun off
3170 \color none
3171 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には---特に
3172 \begin_inset Flex CharStyle:Code
3173 status collapsed
3174
3175 \begin_layout Plain Layout
3176
3177 \family roman
3178 \series medium
3179 \shape up
3180 \size normal
3181 \emph off
3182 \bar no
3183 \noun off
3184 \color none
3185 Missing 
3186 \backslash
3187 begin{document}
3188 \end_layout
3189
3190 \end_inset
3191
3192 が表示されているならば---、プリアンブルにエラーがあることを意味します。プリアンブルのデバックを行ってください。
3193 \end_layout
3194
3195 \begin_layout Enumerate
3196
3197 \family roman
3198 \series medium
3199 \shape up
3200 \size normal
3201 \emph off
3202 \bar no
3203 \noun off
3204 \color none
3205 プリアンブルに何も追加せず、文書にLaTeXコードをまったく挿入しなかった場合には、LaTeX頒布版自体をまず疑ってください。導入されていないパッケージを探しだ
3206 して、導入してください。
3207 \end_layout
3208
3209 \begin_layout Enumerate
3210
3211 \family roman
3212 \series medium
3213 \shape up
3214 \size normal
3215 \emph off
3216 \bar no
3217 \noun off
3218 \color none
3219 導入されていないパッケージはなかったものとしましょう。LyXを微調整するオプションを使用していますか。特に、手動で
3220 \begin_inset Flex CharStyle:Code
3221 status collapsed
3222
3223 \begin_layout Plain Layout
3224
3225 \family sans
3226 Protected
3227 \begin_inset space ~
3228 \end_inset
3229
3230 Blank
3231 \end_layout
3232
3233 \end_inset
3234
3235
3236 \begin_inset Flex CharStyle:Code
3237 status collapsed
3238
3239 \begin_layout Plain Layout
3240
3241 \family sans
3242 Linebreak
3243 \end_layout
3244
3245 \end_inset
3246
3247
3248 \family sans
3249 \series default
3250 \shape default
3251 \size default
3252 \emph default
3253 \bar default
3254 \noun default
3255 \color inherit
3256
3257 \begin_inset Flex CharStyle:Code
3258 status collapsed
3259
3260 \begin_layout Plain Layout
3261
3262 \family sans
3263 Pagebreak
3264 \end_layout
3265
3266 \end_inset
3267
3268
3269 \family roman
3270 \series medium
3271 \shape up
3272 \size normal
3273 \emph off
3274 \bar no
3275 \noun off
3276 \color none
3277 などをたくさん挿入するなど、微調整オプションを
3278 \family default
3279 \series default
3280 \shape default
3281 \size default
3282 \emph on
3283 \bar default
3284 \noun default
3285 \color inherit
3286 悪用
3287 \family roman
3288 \series medium
3289 \shape up
3290 \size normal
3291 \emph off
3292 \bar no
3293 \noun off
3294 \color none
3295 していませんか。適切な段落環境を使用する代わりに、これらを使用してその場をしのごうとしていませんか。
3296 \end_layout
3297
3298 \begin_layout Enumerate
3299
3300 \family roman
3301 \series medium
3302 \shape up
3303 \size normal
3304 \emph off
3305 \bar no
3306 \noun off
3307 \color none
3308 微調整オプションはまったく使用しておらず、規則に乗っ取って作業していたものとしましょう。何か曲芸のようなことをしようとはしていませんか。数式や表中で、たとえば表
3309 のセルに図を入れるなど、おかしなことをしようとしていませんか。
3310 \end_layout
3311
3312 \begin_layout Enumerate
3313 LaTeXが改行位置を見つけられないほど長い一節がありませんか。既定では、改行するために単語間に空白をたくさん追加することを、LaTeXはかなり嫌います。可能で
3314 あれば、問題が生じないように段落を修正するのが望ましいでしょう。それが難しければ、LaTeXが改行しやすく(sloppy)なるように、その部分を
3315 \family typewriter
3316
3317 \begin_inset Flex CharStyle:Code
3318 status collapsed
3319
3320 \begin_layout Plain Layout
3321
3322 \family typewriter
3323
3324 \backslash
3325 sloppypar
3326 \end_layout
3327
3328 \end_inset
3329
3330
3331 \family default
3332 で囲んでください。
3333 \end_layout
3334
3335 \begin_layout Enumerate
3336
3337 \family roman
3338 \series medium
3339 \shape up
3340 \size normal
3341 \emph off
3342 \bar no
3343 \noun off
3344 \color none
3345 入れ子の階層を深くしすぎていませんか。LyXは、(今のところ)環境の入れ子の階層が制限内にあるかチェックしません。かりに、環境を17段の入れ子にしたりしていたら
3346 、それが原因です(LaTeXの上限は5段です)。
3347 \end_layout
3348
3349 \begin_layout Enumerate
3350
3351 \family roman
3352 \series medium
3353 \shape up
3354 \size normal
3355 \emph off
3356 \bar no
3357 \noun off
3358 \color none
3359 エラーメッセージは発生しないけれども、出力がひどいものとしましょう。図表が幅が広すぎたり長すぎてページに収まらない場合には、
3360 \end_layout
3361
3362 \begin_deeper
3363 \begin_layout Enumerate
3364
3365 \family roman
3366 \series medium
3367 \shape up
3368 \size normal
3369 \emph off
3370 \bar no
3371 \noun off
3372 \color none
3373 図がページに合うように大きさを変える、
3374 \end_layout
3375
3376 \begin_layout Enumerate
3377
3378 \family roman
3379 \series medium
3380 \shape up
3381 \size normal
3382 \emph off
3383 \bar no
3384 \noun off
3385 \color none
3386 表がページに合うように削る、
3387 \end_layout
3388
3389 \begin_layout Standard
3390
3391 \family roman
3392 \series medium
3393 \shape up
3394 \size normal
3395 \emph off
3396 \bar no
3397 \noun off
3398 \color none
3399 などの手段を採る必要があります。
3400 \end_layout
3401
3402 \end_deeper
3403 \begin_layout Enumerate
3404 他に出力におかしいところがあり、曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば、何がおかしいのか確定的なことは言えません。
3405 \end_layout
3406
3407 \begin_layout Standard
3408
3409 \family roman
3410 \series medium
3411 \shape up
3412 \size normal
3413 \emph off
3414 \bar no
3415 \noun off
3416 \color none
3417 これらすべてが役に立たないとすれば、
3418 \family default
3419 \series default
3420 \shape default
3421 \size default
3422 \emph on
3423 \bar default
3424 \noun default
3425 \color inherit
3426 ひょっとしたら
3427 \family roman
3428 \series medium
3429 \shape up
3430 \size normal
3431 \emph off
3432 \bar no
3433 \noun off
3434 \color none
3435 LyXのバグを発見したのかもしれません‥‥。
3436 \end_layout
3437
3438 \begin_layout Chapter
3439 補完ツール
3440 \end_layout
3441
3442 \begin_layout Section
3443 BibTeXによる参照文献のカスタマイズ
3444 \end_layout
3445
3446 \begin_layout Standard
3447 BibTeXの基本的な使用法は、『
3448 \emph on
3449 ユーザーの手引き
3450 \emph default
3451 』の
3452 \emph on
3453 参考文献データベース(BibTeX)
3454 \emph default
3455 の節に説明があります。以下の各小節では、LyXでサポートされている参考文献の特別な機能について説明することとします。
3456 \end_layout
3457
3458 \begin_layout Subsection
3459 他の引用様式
3460 \end_layout
3461
3462 \begin_layout Standard
3463 標準のBibTeXは、引用された著作を参照するのに、([12]のように)数字を使用します。しかし、多くの科学分野で、これとは異なる引用様式が用いられています。も
3464 っともよく見られるのは、著者-出版年様式(例:Knuth 1984a)です。LyXは、この様式を提供する2つのパッケージ
3465 \begin_inset Flex CharStyle:Code
3466 status collapsed
3467
3468 \begin_layout Plain Layout
3469 natbib
3470 \end_layout
3471
3472 \end_inset
3473
3474
3475 \begin_inset Flex CharStyle:Code
3476 status collapsed
3477
3478 \begin_layout Plain Layout
3479 jurabib
3480 \end_layout
3481
3482 \end_inset
3483
3484 をサポートしています。これらのパッケージには、それぞれ長所短所がありますが、ここでは詳細に立ち入る紙幅がありません。単純な著者-出版年様式(あるいは著者-番号)
3485 様式が欲しい場合や、無数にある
3486 \begin_inset Flex CharStyle:Code
3487 status collapsed
3488
3489 \begin_layout Plain Layout
3490 natbib
3491 \end_layout
3492
3493 \end_inset
3494
3495 用スタイルファイルのうちどれかを使用したい場合には、定評のある
3496 \begin_inset Flex CharStyle:Code
3497 status collapsed
3498
3499 \begin_layout Plain Layout
3500 natbib
3501 \end_layout
3502
3503 \end_inset
3504
3505 パッケージがおそらくよい選択でしょう。短縮タイトルによる参照や
3506 \emph on
3507 ibid.
3508 \emph default
3509 など、特別な機能が必要な場合には、
3510 \begin_inset Flex CharStyle:Code
3511 status collapsed
3512
3513 \begin_layout Plain Layout
3514 jurabib
3515 \end_layout
3516
3517 \end_inset
3518
3519 パッケージの利用を考えるとよいかもしれません。
3520 \end_layout
3521
3522 \begin_layout Standard
3523 LyXでの両パッケージの取扱い方は、ほぼ同じです。
3524 \begin_inset Flex CharStyle:MenuItem
3525 status collapsed
3526
3527 \begin_layout Plain Layout
3528 文書\SpecialChar \menuseparator
3529 設定
3530 \end_layout
3531
3532 \end_inset
3533
3534 メニューを開き、
3535 \begin_inset Flex CharStyle:MenuItem
3536 status collapsed
3537
3538 \begin_layout Plain Layout
3539 参考文献
3540 \end_layout
3541
3542 \end_inset
3543
3544 項目から
3545 \begin_inset Flex CharStyle:MenuItem
3546 status collapsed
3547
3548 \begin_layout Plain Layout
3549 Natbib
3550 \end_layout
3551
3552 \end_inset
3553
3554 オプションか
3555 \begin_inset Flex CharStyle:MenuItem
3556 status collapsed
3557
3558 \begin_layout Plain Layout
3559 Jurabib
3560 \end_layout
3561
3562 \end_inset
3563
3564 オプションを選択してください。これらのパッケージによって、引用ダイアログに機能が追加され、参照の様式が選択できるようになります(「Knuth 1984」、「Kn
3565 uth (1984)」、「Knuth, 1984」、「1984」など)。両パッケージは、専用にデザインされたスタイルファイルを必要とすることに注意してください。
3566 両者ともそれ自身のスタイルファイルを同梱していますが、他にもたくさんの追加スタイルファイルがありますし、
3567 \begin_inset Flex CharStyle:Code
3568 status collapsed
3569
3570 \begin_layout Plain Layout
3571 natbib
3572 \end_layout
3573
3574 \end_inset
3575
3576 に至っては、対話的なスタイルファイルビルダーさえ存在します
3577 \begin_inset Foot
3578 status collapsed
3579
3580 \begin_layout Plain Layout
3581 \begin_inset Flex URL
3582 status open
3583
3584 \begin_layout Plain Layout
3585
3586 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3587 \end_layout
3588
3589 \end_inset
3590
3591 をご参照ください。
3592 \end_layout
3593
3594 \end_inset
3595
3596
3597 \end_layout
3598
3599 \begin_layout Subsection
3600 節分けされた参考文献
3601 \end_layout
3602
3603 \begin_layout Standard
3604 場合によっては、参考文献をいくつかの節に分ける必要があることがあります。たとえば、あなたが歴史家であるとすれば、出典と学術文献を分ける機能は、おそらく「必需品」
3605 でさえあります。残念ながら、BibTeX自身ではこのようなことができません。しかし、適切なLaTeXパッケージの助けを借りると、BibTeXをこのような必要性を
3606 満たすように拡張することができます。
3607 \end_layout
3608
3609 \begin_layout Standard
3610 LyXは、このようなパッケージの一つである
3611 \begin_inset Flex CharStyle:Code
3612 status collapsed
3613
3614 \begin_layout Plain Layout
3615 bibtopic
3616 \end_layout
3617
3618 \end_inset
3619
3620
3621 \begin_inset Foot
3622 status collapsed
3623
3624 \begin_layout Plain Layout
3625 \begin_inset Flex URL
3626 status open
3627
3628 \begin_layout Plain Layout
3629
3630 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3631 \end_layout
3632
3633 \end_inset
3634
3635 から入手可能です。
3636 \end_layout
3637
3638 \end_inset
3639
3640 をそのままでサポートします。このパッケージの長所は、(
3641 \begin_inset Flex CharStyle:Code
3642 status collapsed
3643
3644 \begin_layout Plain Layout
3645 multibib
3646 \end_layout
3647
3648 \end_inset
3649
3650 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです。そのかわりに、参考文献の違う節には、その節向けの項目を収録した別の参考文献デ
3651 ータベースを用意する必要があります。たとえば、参考文献を「出典」の節と「学術文献」の節に分けたい場合には、それぞれの参考文献データベース、たとえば
3652 \begin_inset Flex CharStyle:Code
3653 status collapsed
3654
3655 \begin_layout Plain Layout
3656 souces.bib
3657 \end_layout
3658
3659 \end_inset
3660
3661
3662 \begin_inset Flex CharStyle:Code
3663 status collapsed
3664
3665 \begin_layout Plain Layout
3666 scientific.bib
3667 \end_layout
3668
3669 \end_inset
3670
3671 とを作成する必要があります。
3672 \end_layout
3673
3674 \begin_layout Standard
3675 \begin_inset Flex CharStyle:MenuItem
3676 status collapsed
3677
3678 \begin_layout Plain Layout
3679 文書\SpecialChar \menuseparator
3680 設定
3681 \end_layout
3682
3683 \end_inset
3684
3685 を開いて
3686 \begin_inset Flex CharStyle:MenuItem
3687 status collapsed
3688
3689 \begin_layout Plain Layout
3690 参考文献
3691 \end_layout
3692
3693 \end_inset
3694
3695 の下の
3696 \begin_inset Flex CharStyle:MenuItem
3697 status collapsed
3698
3699 \begin_layout Plain Layout
3700 節分けされた参考文献
3701 \end_layout
3702
3703 \end_inset
3704
3705 をチェックしてください。すると、参考文献の各節に一つずつ、複数の参考文献を挿入することができます。上記の例では、BibTeX参考文献
3706 \begin_inset Flex CharStyle:Code
3707 status collapsed
3708
3709 \begin_layout Plain Layout
3710 sources.bib
3711 \end_layout
3712
3713 \end_inset
3714
3715 と二つめの参考文献データベース
3716 \begin_inset Flex CharStyle:Code
3717 status collapsed
3718
3719 \begin_layout Plain Layout
3720 scientific.bib
3721 \end_layout
3722
3723 \end_inset
3724
3725 を挿入します。各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です。くわえて、参考文献の節に、指定したデータベースの「引用されたすべての参照」を載せる
3726 (これが既定です)か、「引用されなかったすべての参照」を載せるか、あるいは「すべての参照」を載せるかを選択することができます。これは、もし参考文献を「本文に引用
3727 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に、便利でありましょう。各節の見出しは、通常の節や小節として入れることができ
3728 ます。
3729 \begin_inset Flex CharStyle:Code
3730 status collapsed
3731
3732 \begin_layout Plain Layout
3733 bibtopic
3734 \end_layout
3735
3736 \end_inset
3737
3738 は、参考文献用の見出しを取り除いてしまいますので、手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください)。
3739 \end_layout
3740
3741 \begin_layout Subsection
3742 複数の参考文献
3743 \end_layout
3744
3745 \begin_layout Standard
3746 文書の節ごとあるいは章ごとの参考文献など、複数の参考文献はBibTeX自身ではサポートされていません。しかしながら、もし若干の
3747 \begin_inset Flex CharStyle:Code
3748 status collapsed
3749
3750 \begin_layout Plain Layout
3751 TeXコード
3752 \end_layout
3753
3754 \end_inset
3755
3756 (第
3757 \begin_inset CommandInset ref
3758 LatexCommand ref
3759 reference "sec:LaTeXコードを挿入する"
3760
3761 \end_inset
3762
3763 節を参照)を利用することを厭わなければ、LyXで節分けされた参考文献を作るのに使用されている(前節を参照)
3764 \begin_inset Flex CharStyle:Code
3765 status collapsed
3766
3767 \begin_layout Plain Layout
3768 bibtopic
3769 \end_layout
3770
3771 \end_inset
3772
3773 パッケージが、この課題を解決する簡単な方法を提供します
3774 \begin_inset Foot
3775 status collapsed
3776
3777 \begin_layout Plain Layout
3778 ほかに、
3779 \begin_inset Flex CharStyle:Code
3780 status collapsed
3781
3782 \begin_layout Plain Layout
3783 chapterbib
3784 \end_layout
3785
3786 \end_inset
3787
3788
3789 \begin_inset Flex CharStyle:Code
3790 status collapsed
3791
3792 \begin_layout Plain Layout
3793 bibunits
3794 \end_layout
3795
3796 \end_inset
3797
3798 パッケージを利用する方法もあります。
3799 \end_layout
3800
3801 \end_inset
3802
3803
3804 \end_layout
3805
3806 \begin_layout Standard
3807 まず
3808 \begin_inset Flex CharStyle:MenuItem
3809 status collapsed
3810
3811 \begin_layout Plain Layout
3812 文書\SpecialChar \menuseparator
3813 設定
3814 \end_layout
3815
3816 \end_inset
3817
3818 に行って
3819 \begin_inset Flex CharStyle:MenuItem
3820 status collapsed
3821
3822 \begin_layout Plain Layout
3823 参考文献
3824 \end_layout
3825
3826 \end_inset
3827
3828 の下の
3829 \begin_inset Flex CharStyle:MenuItem
3830 status collapsed
3831
3832 \begin_layout Plain Layout
3833 節分けされた参考文献
3834 \end_layout
3835
3836 \end_inset
3837
3838 を有効にしてください。つぎに文書中において、参考文献(BibTeX参考文献本体を含む)の入った節を
3839 \begin_inset Flex CharStyle:Code
3840 status collapsed
3841
3842 \begin_layout Plain Layout
3843
3844 \backslash
3845 begin{btUnit}
3846 \end_layout
3847
3848 \end_inset
3849
3850
3851 \begin_inset Flex CharStyle:Code
3852 status collapsed
3853
3854 \begin_layout Plain Layout
3855
3856 \backslash
3857 end{btUnit}
3858 \end_layout
3859
3860 \end_inset
3861
3862 のあいだにはさまなくてはなりません(これらのコマンドはTeXコードとして挿入する必要があります)。参考文献には、現在位置の
3863 \begin_inset Flex CharStyle:Code
3864 status collapsed
3865
3866 \begin_layout Plain Layout
3867 btUnit
3868 \end_layout
3869
3870 \end_inset
3871
3872 において引用されたすべての参照が含まれることになります。
3873 \series bold
3874 (註)
3875 \series default
3876 この方法を用いる場合には、すべての参照はいずれかの
3877 \begin_inset Flex CharStyle:Code
3878 status collapsed
3879
3880 \begin_layout Plain Layout
3881 btUnit
3882 \end_layout
3883
3884 \end_inset
3885
3886 内部になくてはなりません。また、
3887 \begin_inset Flex CharStyle:Code
3888 status collapsed
3889
3890 \begin_layout Plain Layout
3891 btUnit
3892 \end_layout
3893
3894 \end_inset
3895
3896 は入れ子構造にすることができません。
3897 \end_layout
3898
3899 \begin_layout Section
3900 複合文書
3901 \end_layout
3902
3903 \begin_layout Subsection
3904 一般的な操作
3905 \end_layout
3906
3907 \begin_layout Standard
3908 たくさんの節を含んだ大きなファイルで作業をする場合、文書をいくつかのファイルに分割した方が往々にして便利ですし、場合によっては、表部分にはしょっちゅう変更が加え
3909 られるけれども、その前の文章はつねに同じであるようなケースもあるでしょう。このような場合には、複合文書を利用することを、まずご検討ください。たとえば、科学論文は
3910 通常、導入部・所見・結果・議論・結論の五つの節から成ります。これら各節を別々のLyXファイルにして、タイトル・著者・概要・参考文献等と、これら五つのインクルード
3911 \begin_inset Foot
3912 status collapsed
3913
3914 \begin_layout Plain Layout
3915
3916 \series bold
3917 (訳註)
3918 \series default
3919 「取り込む」の意です。原語「include」に対する訳語として、プログラミング用語の「インクルードする」以外に適語がないので、ここではプログラミング用語をそのま
3920 ま使用します。
3921 \end_layout
3922
3923 \end_inset
3924
3925 ファイルを持つ、もう一つ別の「マスター」ファイルを作成するようにすることができます。これらの各ファイルは、単にマスターファイルにインクルードされるだけでなく、単
3926 独でも出力したり印刷したりすることのできる完全なLyXファイルであるように注意することが重要です。しかも、これらの各ファイルは、同じ文書クラスでなくてはなりませ
3927 ん。articleクラスとbookクラスを混在させるようなことはなさらないでください。LaTeXファイルをインクルードすることもできますが、このファイルにはプリ
3928 アンブルがあってはなりません(
3929 \family typewriter
3930
3931 \backslash
3932 begin{document}
3933 \family default
3934 行とその前のすべて、および
3935 \family typewriter
3936
3937 \backslash
3938 end{documen
3939 \family default
3940 t}行は削除しておかなければなりません)。さもないと、DVIファイルを作成する際にエラーが発生するでしょう。
3941 \end_layout
3942
3943 \begin_layout Standard
3944 LyXでは、
3945 \family sans
3946 挿入\SpecialChar \menuseparator
3947 ファイル\SpecialChar \menuseparator
3948 子文書
3949 \family default
3950 で簡単にファイルをインクルードすることができます。このメニューを選んでクリックすると、カーソルの現在位置に小さな枠が挿入されます。この枠をクリックすると、ダイア
3951 ログが現れるので、そこでインクルードするファイルとインクルード方法を選択することができます。
3952 \end_layout
3953
3954 \begin_layout Standard
3955 ファイル選択ボックスは、いまや自明でしょう。インクルード方法には、「include」・「input」・「verbatim」の三つがあります。「include」と
3956 「input」の違いは、正確にはLaTeXの達人にしか意味のないものですが、ほとんどの人にとって意味のある違いといえば、「include」されたファイルは新規頁
3957 から組版されるのに対し、「input」されたファイルは現在のページから組版される点です。
3958 \end_layout
3959
3960 \begin_layout Standard
3961 一般に、マスターファイルは、組版前に完全なLaTeXファイルに変換されますが、インクルードされるファイルは、プリアンブル情報をまったく持たないLaTeXファイル
3962 に変換されます。
3963 \end_layout
3964
3965 \begin_layout Standard
3966 「verbatim」インクルードファイルでは、ファイルの内容がそのまま(つまり「
3967 \begin_inset Flex CharStyle:Code
3968 status collapsed
3969
3970 \begin_layout Plain Layout
3971 verbatim
3972 \end_layout
3973
3974 \end_inset
3975
3976 」モードで)固定幅タイプライタフォントで組版されます。通常、このファイルの空白は、通常のLyXでの空白の取扱いとは違って、連続した複数の空白がそのまま出力される
3977 ものの、単なる見えない空白です。ただし、
3978 \family sans
3979
3980 \begin_inset Flex CharStyle:MenuItem
3981 status collapsed
3982
3983 \begin_layout Plain Layout
3984
3985 \family sans
3986 出力の空白に印付けをする
3987 \end_layout
3988
3989 \end_inset
3990
3991
3992 \family default
3993 チェックボックスを有効にすると、空白が存在することを明確にするために空白の印が出力されます。
3994 \end_layout
3995
3996 \begin_layout Subsection
3997 ファイル間の相互参照
3998 \end_layout
3999
4000 \begin_layout Standard
4001 \begin_inset Box Shadowbox
4002 position "t"
4003 hor_pos "c"
4004 has_inner_box 1
4005 inner_pos "t"
4006 use_parbox 0
4007 width "100col%"
4008 special "none"
4009 height "1in"
4010 height_special "totalheight"
4011 status open
4012
4013 \begin_layout Plain Layout
4014 この節の内容は、すでに古くなっています。既定のマスター文書についてと、マスターが開いているときに子文書をどう開くかについて記述する必要があります。[[要修正]]
4015 \end_layout
4016
4017 \end_inset
4018
4019
4020 \end_layout
4021
4022 \begin_layout Standard
4023 異なるファイル間に相互参照を設定することも可能です。まず、すべての関係するファイルを開いてください。例として、2つのファイルを扱う場合を考え、各ファイルをA・B
4024 と呼びます。BがAにインクルードされるファイルだとします。Aにラベルを入れて、Bで参照したいとしましょう。文書Bで相互参照ダイアログを開いて、使用する「バッファ
4025 」を選んでください。
4026 \end_layout
4027
4028 \begin_layout Subsection
4029 すべての子文書での参考文献
4030 \end_layout
4031
4032 \begin_layout Standard
4033 \begin_inset Box Shadowbox
4034 position "t"
4035 hor_pos "c"
4036 has_inner_box 1
4037 inner_pos "t"
4038 use_parbox 0
4039 width "100col%"
4040 special "none"
4041 height "1in"
4042 height_special "totalheight"
4043 status open
4044
4045 \begin_layout Plain Layout
4046 この節も更新が必要です。この点に関する内容がwikiにあるので、それをここにコピーすることも可か。
4047 \end_layout
4048
4049 \end_inset
4050
4051
4052 \end_layout
4053
4054 \begin_layout Standard
4055 すべての子文書の全文献項目を含んだ参考文献一覧をコピーし、それをコメントに変更してください。このようにすることで、LyXは.bibファイルを見つけることができ、参
4056 考文献一覧を見えるようにせずとも簡単に参照を挿入することができるようになります。
4057 \end_layout
4058
4059 \begin_layout Standard
4060 参考文献一覧がコメントにあるために、LaTeXはそれを使用しないので、参照は[1]のようには表示されないで[?]のように表示されます。ひとつの解決法として、コメ
4061 ントをインクルードするLaTeXパッケージの
4062 \begin_inset Flex CharStyle:Code
4063 status collapsed
4064
4065 \begin_layout Plain Layout
4066 comment
4067 \end_layout
4068
4069 \end_inset
4070
4071 を使用して、ファイルを別々に処理する方法があります。そのためには、すべての子文書のプリアンブルに以下を書き加えてください。
4072 \end_layout
4073
4074 \begin_layout LyX-Code
4075
4076 \backslash
4077 usepackage{comment}
4078 \end_layout
4079
4080 \begin_layout LyX-Code
4081
4082 \backslash
4083 includecomment{comment}
4084 \end_layout
4085
4086 \begin_layout Standard
4087 \begin_inset Flex URL
4088 status collapsed
4089
4090 \begin_layout Plain Layout
4091
4092 http://wiki.lyx.org/FAQ/Unsorted#toc31
4093 \end_layout
4094
4095 \end_inset
4096
4097 も参照してください。
4098 \end_layout
4099
4100 \begin_layout Section
4101 装飾的なヘッダ・フッタ
4102 \end_layout
4103
4104 \begin_layout Standard
4105 既定のページレイアウトは、どちらかといえば素っ気ないものです。
4106 \begin_inset Flex CharStyle:Code
4107 status collapsed
4108
4109 \begin_layout Plain Layout
4110 article
4111 \end_layout
4112
4113 \end_inset
4114
4115 文書クラスの場合には、ページの下の真ん中にページ番号がつくだけです。この取扱説明書はKOMA-scriptのbookクラスなので、すこしは凝ってますが、ほんとう
4116 に着飾るには、『
4117 \emph on
4118 ユーザーの手引き
4119 \emph default
4120 』に述べられているように、文書ページスタイルを「装飾的(fancy)」に設定する必要があります。この節では、望んだとおりの効果を得るために、LaTeXプリアンブ
4121 ルに挿入する必要のあるLaTeXコードについて解説します。
4122 \end_layout
4123
4124 \begin_layout Standard
4125 ページへッダは、「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています。フッタも同様に3つのフィールド
4126 に分類されています。これらのフィールドをもっとも簡単に設定するLaTeXコマンドには、
4127 \family typewriter
4128
4129 \begin_inset Flex CharStyle:Code
4130 status collapsed
4131
4132 \begin_layout Plain Layout
4133
4134 \family typewriter
4135
4136 \backslash
4137 lhead
4138 \end_layout
4139
4140 \end_inset
4141
4142
4143 \family default
4144
4145 \family typewriter
4146
4147 \begin_inset Flex CharStyle:Code
4148 status collapsed
4149
4150 \begin_layout Plain Layout
4151
4152 \family typewriter
4153
4154 \backslash
4155 chead
4156 \end_layout
4157
4158 \end_inset
4159
4160
4161 \family default
4162
4163 \family typewriter
4164
4165 \begin_inset Flex CharStyle:Code
4166 status collapsed
4167
4168 \begin_layout Plain Layout
4169
4170 \family typewriter
4171
4172 \backslash
4173 rhead
4174 \end_layout
4175
4176 \end_inset
4177
4178
4179 \family default
4180
4181 \begin_inset Flex CharStyle:Code
4182 status collapsed
4183
4184 \begin_layout Plain Layout
4185
4186 \backslash
4187 lfoot
4188 \end_layout
4189
4190 \end_inset
4191
4192 などがあります。かりに、各ページの左上端に自分の名前を入れたいものとしましょう。次のようなコマンドをプリアンブルに入れるだけです。
4193 \end_layout
4194
4195 \begin_layout Standard
4196
4197 \family typewriter
4198
4199 \backslash
4200 lhead{物書 はじめ}
4201 \end_layout
4202
4203 \begin_layout Standard
4204 これで自分の名前が左上に現れます。フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には、空の引数を持つコマンドを入
4205 れるだけです。すなわち、
4206 \end_layout
4207
4208 \begin_layout Standard
4209
4210 \family typewriter
4211
4212 \backslash
4213 cfoot{}
4214 \begin_inset Newline newline
4215 \end_inset
4216
4217
4218 \family default
4219 とします。
4220 \end_layout
4221
4222 \begin_layout Standard
4223 もっと美しくしてみましょう。節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ、ページ番号を(4ページのように)右上に、自分の名前を左下に、日
4224 付を右下に入れます。以下のコマンドをプリアンブルに入れます。
4225 \end_layout
4226
4227 \begin_layout Standard
4228
4229 \family typewriter
4230
4231 \backslash
4232 lhead{第
4233 \backslash
4234 thesection 節}
4235 \end_layout
4236
4237 \begin_layout Standard
4238
4239 \family typewriter
4240
4241 \backslash
4242 chead{}
4243 \end_layout
4244
4245 \begin_layout Standard
4246
4247 \family typewriter
4248
4249 \backslash
4250 rhead{
4251 \backslash
4252 thepage ページ}
4253 \end_layout
4254
4255 \begin_layout Standard
4256
4257 \family typewriter
4258
4259 \backslash
4260 lfoot{物書 はじめ}
4261 \end_layout
4262
4263 \begin_layout Standard
4264
4265 \family typewriter
4266
4267 \backslash
4268 cfoot{}
4269 \end_layout
4270
4271 \begin_layout Standard
4272
4273 \family typewriter
4274
4275 \backslash
4276 rfoot{
4277 \backslash
4278 today}
4279 \end_layout
4280
4281 \begin_layout Standard
4282 コマンド
4283 \family typewriter
4284
4285 \begin_inset Flex CharStyle:Code
4286 status collapsed
4287
4288 \begin_layout Plain Layout
4289
4290 \family typewriter
4291
4292 \backslash
4293 thesecti
4294 \family default
4295 o
4296 \family typewriter
4297 n
4298 \end_layout
4299
4300 \end_inset
4301
4302
4303 \family default
4304
4305 \begin_inset Flex CharStyle:Code
4306 status collapsed
4307
4308 \begin_layout Plain Layout
4309
4310 \family typewriter
4311
4312 \backslash
4313 thepa
4314 \family default
4315 ge
4316 \end_layout
4317
4318 \end_inset
4319
4320 は、それぞれLaTeXの節カウンタおよびページカウンタを取得するもので、これによって現在の節番号とページ番号を印字します。
4321 \begin_inset Flex CharStyle:Code
4322 status collapsed
4323
4324 \begin_layout Plain Layout
4325
4326 \family typewriter
4327
4328 \backslash
4329 tod
4330 \family default
4331 ay
4332 \end_layout
4333
4334 \end_inset
4335
4336 は、今日の日付を印字するものです。
4337 \end_layout
4338
4339 \begin_layout Standard
4340 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます。もし罫線が必要なければ、太さを0にしてください。ヘッダ罫線は、既定では0.4ptの太さであり、
4341 フッタ罫線は0ptです。太さを変更するには、
4342 \family typewriter
4343
4344 \begin_inset Flex CharStyle:Code
4345 status collapsed
4346
4347 \begin_layout Plain Layout
4348
4349 \family typewriter
4350
4351 \backslash
4352 renewcommand{
4353 \backslash
4354 headrulewidth}{0.4pt}
4355 \end_layout
4356
4357 \end_inset
4358
4359
4360 \family default
4361
4362 \family typewriter
4363
4364 \begin_inset Flex CharStyle:Code
4365 status collapsed
4366
4367 \begin_layout Plain Layout
4368
4369 \family typewriter
4370
4371 \backslash
4372 renewcommand{
4373 \backslash
4374 footrulewidth}{0.4pt}
4375 \end_layout
4376
4377 \end_inset
4378
4379
4380 \family default
4381 のようなコマンドを使用してください。
4382 \end_layout
4383
4384 \begin_layout Standard
4385 \begin_inset Flex CharStyle:Code
4386 status collapsed
4387
4388 \begin_layout Plain Layout
4389
4390 \family typewriter
4391
4392 \backslash
4393 thispagestyle{empty}
4394 \end_layout
4395
4396 \end_inset
4397
4398
4399 \begin_inset Flex CharStyle:Code
4400 status collapsed
4401
4402 \begin_layout Plain Layout
4403
4404 \family typewriter
4405
4406 \backslash
4407 thispagestyle{plain}
4408 \end_layout
4409
4410 \end_inset
4411
4412
4413 \begin_inset Flex CharStyle:Code
4414 status collapsed
4415
4416 \begin_layout Plain Layout
4417
4418 \family typewriter
4419
4420 \backslash
4421 thispagestyle{fancy}
4422 \end_layout
4423
4424 \end_inset
4425
4426 のようなコマンドを使えば、各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます。設定を変更したいページに、これらのコマンドをTeXコード
4427 として挿入してください。実は、タイトルページは、その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず、既定でプ
4428 レーン(plain)になるように設定されているのです。
4429 \end_layout
4430
4431 \begin_layout Standard
4432 奇数ページの左上だけに何かを挿入するなど、もっと複雑なコマンドもあるのですが、詳しい解説は
4433 \begin_inset Flex CharStyle:Code
4434 status collapsed
4435
4436 \begin_layout Plain Layout
4437
4438 \family typewriter
4439 fancyhdr
4440 \end_layout
4441
4442 \end_inset
4443
4444 パッケージの取扱説明書をご参照ください(
4445 \begin_inset Flex CharStyle:Code
4446 status collapsed
4447
4448 \begin_layout Plain Layout
4449 fancyhdr.dvi
4450 \end_layout
4451
4452 \end_inset
4453
4454 を探してください)。
4455 \end_layout
4456
4457 \begin_layout Standard
4458 最後の例として、へッダやフッタに画像を挿入できることを取り上げましょう。会社のロゴをページ左上に入れたいものとします。たとえば、
4459 \end_layout
4460
4461 \begin_layout Standard
4462
4463 \family typewriter
4464
4465 \backslash
4466 lhead{
4467 \backslash
4468 resizebox{1in}{!}{
4469 \backslash
4470 includegraphics{logo.eps}}}
4471 \end_layout
4472
4473 \begin_layout Standard
4474 \noindent
4475 とすれば、これを実現できます(文書中に他に画像を挿入していない場合には、
4476 \begin_inset Newline newline
4477 \end_inset
4478
4479
4480 \begin_inset Flex CharStyle:Code
4481 status collapsed
4482
4483 \begin_layout Plain Layout
4484 \noindent
4485
4486 \family typewriter
4487
4488 \backslash
4489 usepackage{graphics}
4490 \end_layout
4491
4492 \end_inset
4493
4494 をプリアンブルに宣言する必要があります)。
4495 \end_layout
4496
4497 \begin_layout Section
4498 箇条書き(記号)ブリットの指定
4499 \begin_inset CommandInset label
4500 LatexCommand label
4501 name "sec:ブリット"
4502
4503 \end_inset
4504
4505
4506 \end_layout
4507
4508 \begin_layout Standard
4509
4510 \noun on
4511 Allan Rae文
4512 \end_layout
4513
4514 \begin_layout Subsection
4515 はじめに
4516 \end_layout
4517
4518 \begin_layout Standard
4519 LyXには、ブリットの形が216個準備されていて、簡単なダイアログから呼び出すことができます。このダイアログを使えば、箇条書き(記号)の各階層で使うブリットの形
4520 を変更することができます。この設定は文書全体に共通なので、段落ごとに別のブリットを指定することはできません
4521 \begin_inset Foot
4522 status collapsed
4523
4524 \begin_layout Plain Layout
4525 正確には可能ですが、手動で行う必要があります。
4526 \end_layout
4527
4528 \end_inset
4529
4530
4531 \end_layout
4532
4533 \begin_layout Subsection
4534 インタフェース
4535 \end_layout
4536
4537 \begin_layout Standard
4538 メニュー項目の
4539 \begin_inset Flex CharStyle:MenuItem
4540 status collapsed
4541
4542 \begin_layout Plain Layout
4543 文書\SpecialChar \menuseparator
4544 設定
4545 \end_layout
4546
4547 \end_inset
4548
4549 を選択してダイアログを開き、
4550 \begin_inset Flex CharStyle:MenuItem
4551 status collapsed
4552
4553 \begin_layout Plain Layout
4554 ブリット
4555 \end_layout
4556
4557 \end_inset
4558
4559 タブを選択してください。
4560 \end_layout
4561
4562 \begin_layout Standard
4563 そのダイアログに、ブリットの形の一覧表があります。
4564 \begin_inset Flex CharStyle:MenuItem
4565 status collapsed
4566
4567 \begin_layout Plain Layout
4568 フォント
4569 \end_layout
4570
4571 \end_inset
4572
4573 と書いてあるドロップダウンメニューで、6つの各ブリット形パネルを切り替えることができます。また、一覧表左の
4574 \begin_inset Flex CharStyle:MenuItem
4575 status collapsed
4576
4577 \begin_layout Plain Layout
4578 階層
4579 \end_layout
4580
4581 \end_inset
4582
4583 パネルは、変更したい階層を選択するものです。
4584 \begin_inset Flex CharStyle:MenuItem
4585 status collapsed
4586
4587 \begin_layout Plain Layout
4588 任意のブリット
4589 \end_layout
4590
4591 \end_inset
4592
4593 では、指定したいLaTeX表現を入力することができます。任意のブリットを指定した場合には、そのコマンドが必要とするパッケージをLaTeXプリアンブルで指定する必
4594 要があります。
4595 \end_layout
4596
4597 \begin_layout Standard
4598 6つのパネルは、それぞれが必要とするパッケージによって分類されています。下記は、フォント名とLaTeXパッケージの対応表です。
4599 \end_layout
4600
4601 \begin_layout Standard
4602 \align center
4603 \begin_inset Tabular
4604 <lyxtabular version="3" rows="7" columns="2">
4605 <features>
4606 <column alignment="center" valignment="top" width="0pt">
4607 <column alignment="center" valignment="top" width="0pt">
4608 <row>
4609 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4610 \begin_inset Text
4611
4612 \begin_layout Plain Layout
4613 フォント
4614 \end_layout
4615
4616 \end_inset
4617 </cell>
4618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4619 \begin_inset Text
4620
4621 \begin_layout Plain Layout
4622
4623 \family roman
4624 \series medium
4625 \shape up
4626 \size normal
4627 \emph off
4628 \bar no
4629 \noun off
4630 \color none
4631 必要とするパッケージ
4632 \end_layout
4633
4634 \end_inset
4635 </cell>
4636 </row>
4637 <row>
4638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4639 \begin_inset Text
4640
4641 \begin_layout Plain Layout
4642
4643 \family sans
4644 標準
4645 \end_layout
4646
4647 \end_inset
4648 </cell>
4649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4650 \begin_inset Text
4651
4652 \begin_layout Plain Layout
4653
4654 \series medium
4655 \shape up
4656 \size normal
4657 \emph off
4658 \bar no
4659 \noun off
4660 \color none
4661 LaTeX
4662 \family roman
4663 本体
4664 \end_layout
4665
4666 \end_inset
4667 </cell>
4668 </row>
4669 <row>
4670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4671 \begin_inset Text
4672
4673 \begin_layout Plain Layout
4674
4675 \family sans
4676 \series medium
4677 \shape up
4678 \size normal
4679 \emph off
4680 \bar no
4681 \noun off
4682 \color none
4683 数式
4684 \end_layout
4685
4686 \end_inset
4687 </cell>
4688 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4689 \begin_inset Text
4690
4691 \begin_layout Plain Layout
4692
4693 \family typewriter
4694 \series medium
4695 \shape up
4696 \size normal
4697 \emph off
4698 \bar no
4699 \noun off
4700 \color none
4701 amssymb.sty
4702 \end_layout
4703
4704 \end_inset
4705 </cell>
4706 </row>
4707 <row>
4708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4709 \begin_inset Text
4710
4711 \begin_layout Plain Layout
4712
4713 \family sans
4714 \series medium
4715 \shape up
4716 \size normal
4717 \emph off
4718 \bar no
4719 \noun off
4720 \color none
4721 絵文字1
4722 \end_layout
4723
4724 \end_inset
4725 </cell>
4726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4727 \begin_inset Text
4728
4729 \begin_layout Plain Layout
4730
4731 \family typewriter
4732 \series medium
4733 \shape up
4734 \size normal
4735 \emph off
4736 \bar no
4737 \noun off
4738 \color none
4739 pifont.sty
4740 \end_layout
4741
4742 \end_inset
4743 </cell>
4744 </row>
4745 <row>
4746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4747 \begin_inset Text
4748
4749 \begin_layout Plain Layout
4750
4751 \family sans
4752 \series medium
4753 \shape up
4754 \size normal
4755 \emph off
4756 \bar no
4757 \noun off
4758 \color none
4759 絵文字2
4760 \end_layout
4761
4762 \end_inset
4763 </cell>
4764 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4765 \begin_inset Text
4766
4767 \begin_layout Plain Layout
4768
4769 \family typewriter
4770 \series medium
4771 \shape up
4772 \size normal
4773 \emph off
4774 \bar no
4775 \noun off
4776 \color none
4777 pifont.sty
4778 \end_layout
4779
4780 \end_inset
4781 </cell>
4782 </row>
4783 <row>
4784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4785 \begin_inset Text
4786
4787 \begin_layout Plain Layout
4788
4789 \family sans
4790 \series medium
4791 \shape up
4792 \size normal
4793 \emph off
4794 \bar no
4795 \noun off
4796 \color none
4797 絵文字3
4798 \end_layout
4799
4800 \end_inset
4801 </cell>
4802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4803 \begin_inset Text
4804
4805 \begin_layout Plain Layout
4806
4807 \family typewriter
4808 \series medium
4809 \shape up
4810 \size normal
4811 \emph off
4812 \bar no
4813 \noun off
4814 \color none
4815 pifont.sty
4816 \end_layout
4817
4818 \end_inset
4819 </cell>
4820 </row>
4821 <row>
4822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4823 \begin_inset Text
4824
4825 \begin_layout Plain Layout
4826
4827 \family sans
4828 \series medium
4829 \shape up
4830 \size normal
4831 \emph off
4832 \bar no
4833 \noun off
4834 \color none
4835 絵文字4
4836 \end_layout
4837
4838 \end_inset
4839 </cell>
4840 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4841 \begin_inset Text
4842
4843 \begin_layout Plain Layout
4844
4845 \family typewriter
4846 \series medium
4847 \shape up
4848 \size normal
4849 \emph off
4850 \bar no
4851 \noun off
4852 \color none
4853 pifont.sty
4854 \end_layout
4855
4856 \end_inset
4857 </cell>
4858 </row>
4859 </lyxtabular>
4860
4861 \end_inset
4862
4863
4864 \end_layout
4865
4866 \begin_layout Standard
4867 LyXは、ユーザーが導入されていないパッケージのブリットを使用したとしても、警告を発しません。ファイルを閲覧したり印刷したりしようとしたときにLaTeXエラーが
4868 出るようならば、パッケージが導入されていない可能性が大です
4869 \begin_inset Foot
4870 status collapsed
4871
4872 \begin_layout Plain Layout
4873 LyXが、パッケージがなくてもブリットを使用することを許すのは、編集をここで行ったとしても、別のところへエクスポートする可能性があるからです。
4874 \end_layout
4875
4876 \end_inset
4877
4878
4879 \end_layout
4880
4881 \begin_layout Subsection
4882 使用法
4883 \end_layout
4884
4885 \begin_layout Standard
4886 変更したいブリット階層を選んで、ブリットの形と大きさを選んでください。何らかの変更を加えたとしても、LyX上には反映されませんが、文書の表示を行えば確認されます
4887 \begin_inset Foot
4888 status collapsed
4889
4890 \begin_layout Plain Layout
4891 もし
4892 \emph on
4893 本当に
4894 \emph default
4895 段落ごとに異なるブリットの形を使いたいならば、TeXコードを使って少し手を汚す必要があります。この場合も、ブリット選択ダイアログを使えば、さまざまな形のLaTe
4896 Xコードを確認することができるので手助けとなるでしょう。任意に設定した段落をつくるには、以下のような選択肢があります。
4897 \end_layout
4898
4899 \begin_layout Plain Layout
4900 \begin_inset ERT
4901 status open
4902
4903 \begin_layout Plain Layout
4904
4905
4906 \backslash
4907 let
4908 \backslash
4909 savelabelitemi=
4910 \backslash
4911 labelitemi
4912 \end_layout
4913
4914 \end_inset
4915
4916
4917 \end_layout
4918
4919 \begin_layout Plain Layout
4920 \begin_inset ERT
4921 status open
4922
4923 \begin_layout Plain Layout
4924
4925
4926 \backslash
4927 renewcommand
4928 \backslash
4929 labelitemi[0]{
4930 \backslash
4931 small
4932 \backslash
4933 (
4934 \backslash
4935 sharp
4936 \backslash
4937 )}
4938 \end_layout
4939
4940 \end_inset
4941
4942
4943 \end_layout
4944
4945 \begin_layout Itemize
4946 特定の階層の新しいブリット形を指定するには、LaTeXコマンド
4947 \begin_inset Flex CharStyle:Code
4948 status collapsed
4949
4950 \begin_layout Plain Layout
4951
4952 \family typewriter
4953
4954 \backslash
4955 renewcommand{}{}
4956 \end_layout
4957
4958 \end_inset
4959
4960 を使用します。あとで現在のブリット形に戻すことができるように、現在のブリット形を保存しておく必要もあります。ここで使っている箇条書きでは、第1階層のブリットを変
4961 更するために、以下のLaTeXコードが使用されています。
4962 \end_layout
4963
4964 \begin_deeper
4965 \begin_layout LyX-Code
4966
4967 \family typewriter
4968
4969 \backslash
4970 let
4971 \backslash
4972 savelabelitemi=
4973 \backslash
4974 labelitemi
4975 \end_layout
4976
4977 \begin_layout LyX-Code
4978
4979 \family typewriter
4980
4981 \backslash
4982 renewcommand
4983 \backslash
4984 labelitemi[0]{
4985 \backslash
4986 small
4987 \backslash
4988 (
4989 \backslash
4990 sharp
4991 \backslash
4992 )}
4993 \end_layout
4994
4995 \end_deeper
4996 \begin_layout Itemize
4997 箇条書き(記号)の階層は、
4998 \begin_inset Flex CharStyle:Code
4999 status collapsed
5000
5001 \begin_layout Plain Layout
5002
5003 \backslash
5004 labelitem
5005 \end_layout
5006
5007 \end_inset
5008
5009 コマンドの一部にローマ数字で指定されていることに注意してください。
5010 \end_layout
5011
5012 \begin_layout Itemize
5013 \begin_inset ERT
5014 status open
5015
5016 \begin_layout Plain Layout
5017
5018 [
5019 \backslash
5020 (
5021 \backslash
5022 star
5023 \backslash
5024 )]
5025 \end_layout
5026
5027 \end_inset
5028
5029 各項目のブリットを指定するには、角括弧で囲んだブリット形を、行頭に
5030 \begin_inset Flex CharStyle:Code
5031 status collapsed
5032
5033 \begin_layout Plain Layout
5034 TeXコード
5035 \end_layout
5036
5037 \end_inset
5038
5039 として挿入してください。たとえば、この項目の行頭には
5040 \family typewriter
5041
5042 \begin_inset Flex CharStyle:Code
5043 status collapsed
5044
5045 \begin_layout Plain Layout
5046
5047 \family typewriter
5048 [
5049 \backslash
5050 (
5051 \backslash
5052 star
5053 \backslash
5054 )]
5055 \end_layout
5056
5057 \end_inset
5058
5059
5060 \family default
5061 が指定されています。
5062 \end_layout
5063
5064 \begin_layout Plain Layout
5065 \begin_inset ERT
5066 status open
5067
5068 \begin_layout Plain Layout
5069
5070
5071 \backslash
5072 renewcommand
5073 \backslash
5074 labelitemi[0]{
5075 \backslash
5076 savelabelitemi}
5077 \end_layout
5078
5079 \end_inset
5080
5081
5082 \end_layout
5083
5084 \begin_layout Plain Layout
5085 文書全体で使用するブリット形が有効であるようにするために、labelitemを元の設定に戻す必要があります。そのためには、以下のようにします。
5086 \end_layout
5087
5088 \begin_layout LyX-Code
5089
5090 \family typewriter
5091
5092 \backslash
5093 renewcommand
5094 \backslash
5095 labelitemi[0]{
5096 \backslash
5097 savelabelitemi}
5098 \end_layout
5099
5100 \end_inset
5101
5102
5103 \end_layout
5104
5105 \begin_layout Chapter
5106 LyXサーバー
5107 \end_layout
5108
5109 \begin_layout Section
5110 はじめに
5111 \end_layout
5112
5113 \begin_layout Standard
5114 「LyXサーバー」を使用すると、他のプログラムが、LyXと通信したり、LyXコマンドを実行させたり、LyXの内部状態に関する情報を取得したりすることができるよう
5115 になります。これは熟練したユーザー向けの機能ですが、便利なはずです。たとえば、LyXサーバーに書き込むことによって、JabRefのような参考文献管理ソフトが、L
5116 yXに文献引用を「押し込む」ことが可能となります。
5117 \end_layout
5118
5119 \begin_layout Standard
5120 ただし、現在のところ、
5121 \emph on
5122 LyXサーバーはWindowsでは機能しない
5123 \emph default
5124 ことに注意してください
5125 \begin_inset Foot
5126 status collapsed
5127
5128 \begin_layout Plain Layout
5129 これが不可能でなければならない理由はありません。しかし、いまのところ、Windows向け開発者でこの機能を実装しようとする者がいないのです。
5130 \end_layout
5131
5132 \end_inset
5133
5134
5135 \end_layout
5136
5137 \begin_layout Section
5138 LyXサーバーを開始するには
5139 \end_layout
5140
5141 \begin_layout Standard
5142 LyXサーバーは、名前をつけたパイプの対を利用することで機能します。パイプは、通常
5143 \begin_inset Flex CharStyle:Code
5144 status collapsed
5145
5146 \begin_layout Plain Layout
5147 UserDir
5148 \end_layout
5149
5150 \end_inset
5151
5152 の下に作られ(Windowsを除く。Windowsでは、名前を付けた
5153 \emph on
5154 ローカルの
5155 \emph default
5156 パイプは
5157 \begin_inset Flex CharStyle:Code
5158 status collapsed
5159
5160 \begin_layout Plain Layout
5161
5162 \backslash
5163
5164 \backslash
5165 .
5166 \backslash
5167 pipe
5168 \end_layout
5169
5170 \end_inset
5171
5172 に特別なオブジェクトとして置かれます)、「
5173 \begin_inset Flex CharStyle:Code
5174 status collapsed
5175
5176 \begin_layout Plain Layout
5177 .lyxpipe.in
5178 \end_layout
5179
5180 \end_inset
5181
5182 」および「
5183 \begin_inset Flex CharStyle:Code
5184 status collapsed
5185
5186 \begin_layout Plain Layout
5187 .lyxpipe.out
5188 \end_layout
5189
5190 \end_inset
5191
5192 」という名前がついています。外部プログラムは、
5193 \begin_inset Flex CharStyle:Code
5194 status collapsed
5195
5196 \begin_layout Plain Layout
5197 .lyxpipe.in
5198 \end_layout
5199
5200 \end_inset
5201
5202 に書き込みを行い、戻りデータを
5203 \begin_inset Flex CharStyle:Code
5204 status collapsed
5205
5206 \begin_layout Plain Layout
5207 .lyxpipe.out
5208 \end_layout
5209
5210 \end_inset
5211
5212 から読み出します。パイプ名の語幹は、
5213 \begin_inset Flex CharStyle:MenuItem
5214 status collapsed
5215
5216 \begin_layout Plain Layout
5217 ツール\SpecialChar \menuseparator
5218 設定
5219 \end_layout
5220
5221 \end_inset
5222
5223 から、たとえば「
5224 \begin_inset Flex CharStyle:Code
5225 status collapsed
5226
5227 \begin_layout Plain Layout
5228 /home/myhome/lyxpipe
5229 \end_layout
5230
5231 \end_inset
5232
5233 」あるいはWindowsでは「
5234 \begin_inset Flex CharStyle:Code
5235 status collapsed
5236
5237 \begin_layout Plain Layout
5238
5239 \backslash
5240
5241 \backslash
5242 .
5243 \backslash
5244 pipe
5245 \backslash
5246 lyxpipe
5247 \end_layout
5248
5249 \end_inset
5250
5251 」などに設定することができます。サーバーを開始するためには、これを
5252 \emph on
5253 手動で設定しなくてはなりません
5254 \emph default
5255
5256 \end_layout
5257
5258 \begin_layout Standard
5259 LyXは、パイプを生成するに際して、「
5260 \begin_inset Flex CharStyle:Code
5261 status collapsed
5262
5263 \begin_layout Plain Layout
5264 .in
5265 \end_layout
5266
5267 \end_inset
5268
5269 」および「
5270 \begin_inset Flex CharStyle:Code
5271 status collapsed
5272
5273 \begin_layout Plain Layout
5274 .out
5275 \end_layout
5276
5277 \end_inset
5278
5279 」を付け加えます。パイプがすでに存在していれば、LyXは他のLyXプロセスがすでに実行中であると判断して、サーバーを開始しません。POSIX(Unix型)システ
5280 ムでは、なんらかの理由で、LyXが終了する際に使用されていない「古い」パイプが削除されずに残ったりすると、LyXはこれを削除しようとします。何らかの理由でこれが
5281 失敗した場合、手動でパイプを削除したのちに、LyXを再起動する必要があります。Windowsでは、プログラムが終了したりクラッシュしたりすると、OSがパイプを削
5282 除するので、「古い」パイプが残ることはありません。
5283 \end_layout
5284
5285 \begin_layout Standard
5286 サーバーを使用するLyXプロセスを複数起動するには、それぞれのプロセスに、別のユーザーディレクトリを使用させたり、べつべつの
5287 \begin_inset Flex CharStyle:Code
5288 status collapsed
5289
5290 \begin_layout Plain Layout
5291 preferences
5292 \end_layout
5293
5294 \end_inset
5295
5296 ファイルを使用させるなど、別々の設定を使用する必要があります。
5297 \end_layout
5298
5299 \begin_layout Standard
5300 クライアントプログラムを開発しようとされているのであれば、LyXサーバーからのデバッグ情報を有効にすると便利かもしれません。そのためには、Lyxを
5301 \begin_inset Flex CharStyle:Code
5302 status collapsed
5303
5304 \begin_layout Plain Layout
5305 lyx -dbg lyxserver
5306 \end_layout
5307
5308 \end_inset
5309
5310 として起動してください。
5311 \end_layout
5312
5313 \begin_layout Standard
5314 C言語で書かれた完全なサンプルクライアントが、ソース頒布版の
5315 \begin_inset Flex CharStyle:Code
5316 status collapsed
5317
5318 \begin_layout Plain Layout
5319 development/lyxserver/server_monitor.c
5320 \end_layout
5321
5322 \end_inset
5323
5324 にあります。
5325 \end_layout
5326
5327 \begin_layout Standard
5328 もう一つの便利なツールとして、
5329 \begin_inset Flex CharStyle:Code
5330 status collapsed
5331
5332 \begin_layout Plain Layout
5333 src/client/lyxclient
5334 \end_layout
5335
5336 \end_inset
5337
5338 にあるコマンドラインベースのクライアントがあります。
5339 \end_layout
5340
5341 \begin_layout Section
5342 通常の通信
5343 \end_layout
5344
5345 \begin_layout Standard
5346 LyXコールを発行するには、クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません。この行は、以下の書式を持ちます。
5347 \end_layout
5348
5349 \begin_layout Quote
5350 LYXCMD:
5351 \emph on
5352 クライアント名
5353 \emph default
5354 :
5355 \emph on
5356 関数
5357 \emph default
5358 :
5359 \emph on
5360 引数
5361 \end_layout
5362
5363 \begin_layout Description
5364 クライアント名 は、クライアントが自由に選べる名前です。これが用いられるのは、クライアントが他の要求クライアントから結果を見分けることができるように、LyXが返
5365 答をする際、クライアント名をエコーするときだけです。
5366 \end_layout
5367
5368 \begin_layout Description
5369 関数 は、LyXに実行させたい関数です。これは、ミニバッファで使用するコマンドと同じです。
5370 \end_layout
5371
5372 \begin_layout Description
5373 引数 は、一部の関数のみに効力を持つオプションの引数です(たとえば、「自己挿入」LFUNは、現在のカーソル位置に引数を文章として挿入します)。
5374 \end_layout
5375
5376 \begin_layout Standard
5377 LyXからの返答は、出力パイプに送り出され、
5378 \end_layout
5379
5380 \begin_layout Quote
5381 INFO:
5382 \emph on
5383 クライアント名
5384 \emph default
5385 :
5386 \emph on
5387 関数
5388 \emph default
5389 :
5390 \emph on
5391 データ
5392 \end_layout
5393
5394 \begin_layout Standard
5395 の書式をしています。ここで
5396 \emph on
5397 クライアント名
5398 \emph default
5399
5400 \emph on
5401 関数
5402 \emph default
5403 は、コマンド要求からそのままエコーされますが、
5404 \emph on
5405 データ
5406 \emph default
5407 はコマンド実行の結果に依存した、多少なりとも有用な情報です。「font-state」のような一部のコマンドは、LyXの内部状態に関する情報を返しますが、空のデー
5408 タ応答を返すものもあります。空のデータ返答は、コマンド実行が無事終わったことを意味します。
5409 \end_layout
5410
5411 \begin_layout Standard
5412 エラーが発生した場合のLyXの返答は
5413 \end_layout
5414
5415 \begin_layout Quote
5416 ERROR:
5417 \emph on
5418 クライアント名
5419 \emph default
5420 :
5421 \emph on
5422 関数
5423 \emph default
5424 :
5425 \emph on
5426 エラーメッセージ
5427 \end_layout
5428
5429 \begin_layout Standard
5430 の書式をしており、
5431 \emph on
5432 エラーメッセージ
5433 \emph default
5434 には、なぜコマンドが失敗したかの説明が入っているはずです。
5435 \end_layout
5436
5437 \begin_layout Standard
5438 (例)
5439 \end_layout
5440
5441 \begin_layout LyX-Code
5442 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
5443 \begin_inset Newline newline
5444 \end_inset
5445
5446 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
5447 \begin_inset Newline newline
5448 \end_inset
5449
5450 read a <~/.lyxpipe.out
5451 \begin_inset Newline newline
5452 \end_inset
5453
5454 echo $a
5455 \end_layout
5456
5457 \begin_layout Section
5458 通知
5459 \end_layout
5460
5461 \begin_layout Standard
5462 LyXは、発生しているイベントを、非同期的にクライアントに通知することができます。いまのところ、ユーザーがあるキー列を関数「notify」に割り当てているときの
5463 み、LyXはこの通知を行います。LyXが送る文字列の書式は
5464 \end_layout
5465
5466 \begin_layout Quote
5467 \begin_inset Flex CharStyle:Code
5468 status collapsed
5469
5470 \begin_layout Plain Layout
5471 NOTIFY:
5472 \end_layout
5473
5474 \end_inset
5475
5476
5477 \emph on
5478 キー列
5479 \end_layout
5480
5481 \begin_layout Standard
5482 となっていて、
5483 \emph on
5484 キー列
5485 \emph default
5486 は、ユーザーが実際に打鍵したキー列の印字表現になります。
5487 \end_layout
5488
5489 \begin_layout Standard
5490 この機構は、LyXのコマンド群を拡張してマクロを実装するのに使用することができます。なんらかのキー列を「notify」に割り当ててください。それから出力パイプで
5491 待機するクライアントを起動し、キー列に応じたコマンドを読み込み、一つないし複数のLyXコマンドを発行するLyX要求とLyXコールを使用する関数を開始するのです。
5492 \end_layout
5493
5494 \begin_layout Section
5495 単純なLyXサーバープロトコル
5496 \end_layout
5497
5498 \begin_layout Standard
5499 LyXは、セッション管理に使用することができる単純なプロトコルを実装しています。メッセージは、すべて
5500 \end_layout
5501
5502 \begin_layout Quote
5503 LYXSRV:
5504 \emph on
5505 クライアント名
5506 \emph default
5507 :
5508 \emph on
5509 プロトコルメッセージ
5510 \end_layout
5511
5512 \begin_layout Standard
5513 の書式をしており、
5514 \emph on
5515 プロトコルメッセージ
5516 \emph default
5517 は「hello」ないし「bye」です。クライアントから「hello」を受け取ると、LyXはメッセージを聴いていることをクライアントに伝えるために返答をし、LyX
5518 が終了することをクライアントに伝えるのには、LyXが「bye」を送信します。
5519 \end_layout
5520
5521 \begin_layout Section
5522 DVIとPDFの遡及検索
5523 \end_layout
5524
5525 \begin_layout Standard
5526 DVI/PDFビューア
5527 \begin_inset Foot
5528 status open
5529
5530 \begin_layout Plain Layout
5531 PDFの遡及検索機能を提供しているビューアには、KDE/Linux上のOkularとMac OS X上のSkim、Windows上のSumatraPDFがありま
5532 す。
5533 \end_layout
5534
5535 \end_inset
5536
5537 には、遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります。これを使えば、DVI/PDF出力の
5538 特定の場所をクリックすることによって、LyXの文書中で対応する行にカーソルを移動させることができます。これを実現するためには、ビューアはLyXと情報交換を行う必
5539 要があります。これは、命名パイプ(lyxpipe)を使用するか、LyXが作業ディレクトリに生成するUNIXドメインソケット(lyxsocket)を使用する(これ
5540
5541 \begin_inset Flex CharStyle:Code
5542 status collapsed
5543
5544 \begin_layout Plain Layout
5545 lyxclient
5546 \end_layout
5547
5548 \end_inset
5549
5550 プログラムがLyXと通信するのに使用している方法です)ことで、LyXサーバを経由して実現することができます。場合によっては、ビューアとLyXを橋渡しする補助スク
5551 リプトを必要とすることがあるかもしれませんが、それ以外は、ビューアはLyXと直接通信することができます。これは、選んだビューアと基本ソフトに依存します。また、必
5552 要とされるビューアの設定法と遡及検索が実際に行われる方法とにも依存します。したがって、下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします。その
5553 前に、DVI/PDF出力で遡及検索を有効にするためには、一般に何が必要とされるかを説明します。
5554 \end_layout
5555
5556 \begin_layout Subsection
5557 遡及検索を有効にするには
5558 \end_layout
5559
5560 \begin_layout Standard
5561 LaTeXは、遡及検索のために複数の方法を提供しています。ある方法は
5562 \begin_inset Flex CharStyle:Code
5563 status collapsed
5564
5565 \begin_layout Plain Layout
5566 latex/pdflatex
5567 \end_layout
5568
5569 \end_inset
5570
5571 プログラムに組み込まれており、他の方法は外部パッケージとして提供されています。どちらを選択するかは、お使いのLaTeX頒布版が既に特定の方法を提供しているか(組
5572 み込みによる方法は比較的新しいものです)と、お使いのビューアがそれに対応しているかに依存します。使用可能な方法を以下に述べます。
5573 \end_layout
5574
5575 \begin_layout Subsubsection*
5576 src-special経由のDVI組み込み検索(DVIのみ)
5577 \end_layout
5578
5579 \begin_layout Standard
5580 この方法は、DVIファイルに遡及検索に必要な情報を追加するものです。これは、かなり前のLaTeXから利用可能となっており(比較的最近のLaTeX頒布版はすべて対
5581 応しています)、安定して動作します。これを有効にするには、
5582 \begin_inset Flex CharStyle:MenuItem
5583 status collapsed
5584
5585 \begin_layout Plain Layout
5586 設定\SpecialChar \menuseparator
5587 ファイル処理\SpecialChar \menuseparator
5588 変換子
5589 \end_layout
5590
5591 \end_inset
5592
5593
5594 \begin_inset Flex CharStyle:MenuItem
5595 status collapsed
5596
5597 \begin_layout Plain Layout
5598 LaT
5599 \begin_inset ERT
5600 status collapsed
5601
5602 \begin_layout Plain Layout
5603
5604 {}
5605 \end_layout
5606
5607 \end_inset
5608
5609 eX (plain)->DVI
5610 \end_layout
5611
5612 \end_inset
5613
5614 ないし
5615 \begin_inset Flex CharStyle:MenuItem
5616 status collapsed
5617
5618 \begin_layout Plain Layout
5619 LaT
5620 \begin_inset ERT
5621 status collapsed
5622
5623 \begin_layout Plain Layout
5624
5625 {}
5626 \end_layout
5627
5628 \end_inset
5629
5630 eX (plain)->DraftDVI
5631 \end_layout
5632
5633 \end_inset
5634
5635 変換子を
5636 \begin_inset Flex CharStyle:Code
5637 status collapsed
5638
5639 \begin_layout Plain Layout
5640 latex -src-specials $$i
5641 \end_layout
5642
5643 \end_inset
5644
5645 に変更します。もしこれが動作しないときは、お使いのLaTeXエンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあり
5646 ます)。
5647 \end_layout
5648
5649 \begin_layout Subsubsection*
5650 外部パッケージ(PDFSyncおよびsrcltx)
5651 \end_layout
5652
5653 \begin_layout Standard
5654
5655 \emph on
5656 pdfsync
5657 \emph default
5658 および
5659 \emph on
5660 srcltx
5661 \emph default
5662 パッケージは、PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します。これを有効にするには、LyXプリアンブルで以下のようにパッケージを読み
5663 込んでください。
5664 \end_layout
5665
5666 \begin_layout Itemize
5667 PDFの遡及検索には
5668 \begin_inset Flex CharStyle:Code
5669 status collapsed
5670
5671 \begin_layout Plain Layout
5672
5673 \backslash
5674 usepackage{pdfsync}
5675 \end_layout
5676
5677 \end_inset
5678
5679
5680 \end_layout
5681
5682 \begin_layout Itemize
5683 DVIの遡及検索には
5684 \begin_inset Flex CharStyle:Code
5685 status collapsed
5686
5687 \begin_layout Plain Layout
5688
5689 \backslash
5690 usepackage[active]{srcltx}
5691 \end_layout
5692
5693 \end_inset
5694
5695
5696 \end_layout
5697
5698 \begin_layout Standard
5699 と書きます。DVIとPDFの両方の遡及検索を実行できるようにするためには、プリアンブルに以下の行を挿入する方法があります。
5700 \end_layout
5701
5702 \begin_layout LyX-Code
5703
5704 \backslash
5705 usepackage{ifpdf}
5706 \begin_inset Newline newline
5707 \end_inset
5708
5709
5710 \backslash
5711 ifpdf
5712 \begin_inset Newline newline
5713 \end_inset
5714
5715   
5716 \backslash
5717 usepackage{pdfsync}
5718 \begin_inset Newline newline
5719 \end_inset
5720
5721
5722 \backslash
5723 else
5724 \begin_inset Newline newline
5725 \end_inset
5726
5727   
5728 \backslash
5729 usepackage[active]{srcltx}
5730 \begin_inset Newline newline
5731 \end_inset
5732
5733
5734 \backslash
5735 fi
5736 \end_layout
5737
5738 \begin_layout Standard
5739 このようにすれば、DVIでもPDF(pdflatex)でも正しいパッケージを使いながら、ファイルを閲覧することができます。
5740 \end_layout
5741
5742 \begin_layout Standard
5743 なお、PDFSyncは、文書の出力レイアウトに干渉する可能性があるので注意してください。したがって、仕上がり文書ではPDFSyncを無効にすることをお勧めします
5744
5745 \end_layout
5746
5747 \begin_layout Subsubsection*
5748 SyncTeXを使った組み込み遡及検索(DVIおよびPDF)
5749 \end_layout
5750
5751 \begin_layout Standard
5752 \begin_inset Flex CharStyle:Code
5753 status collapsed
5754
5755 \begin_layout Plain Layout
5756 (pdf)latex
5757 \end_layout
5758
5759 \end_inset
5760
5761 の最近のバージョンは、PDFおよびDVI両方の遡及検索を組み込みでサポートしています。このいわゆる
5762 \emph on
5763 SyncTeX
5764 \emph default
5765 機能は、主に、PDFSyncパッケージをpdftexプログラムへ統合したことと、それをsrc-specialsアプローチへ取り込んだことの成果です。これを使用す
5766 るためには、少なくともTeXLive 2008か最近のMikTeX頒布版が必要です。また、既にSyncTeXサポートを提供しているPDFビューアは少ししかありま
5767 せん(Mac上のSkimとWindows上のSumatraPDF)。
5768 \end_layout
5769
5770 \begin_layout Standard
5771 DVI出力でSyncTeXを有効にするには、
5772 \begin_inset Flex CharStyle:MenuItem
5773 status collapsed
5774
5775 \begin_layout Plain Layout
5776 設定\SpecialChar \menuseparator
5777 ファイル処理\SpecialChar \menuseparator
5778 変換子
5779 \end_layout
5780
5781 \end_inset
5782
5783
5784 \begin_inset Flex CharStyle:MenuItem
5785 status collapsed
5786
5787 \begin_layout Plain Layout
5788 LaT
5789 \begin_inset ERT
5790 status collapsed
5791
5792 \begin_layout Plain Layout
5793
5794 {}
5795 \end_layout
5796
5797 \end_inset
5798
5799 eX (plain)->DVI
5800 \end_layout
5801
5802 \end_inset
5803
5804 ないし
5805 \begin_inset Flex CharStyle:MenuItem
5806 status collapsed
5807
5808 \begin_layout Plain Layout
5809 LaT
5810 \begin_inset ERT
5811 status collapsed
5812
5813 \begin_layout Plain Layout
5814
5815 {}
5816 \end_layout
5817
5818 \end_inset
5819
5820 eX (plain)->DraftDVI
5821 \end_layout
5822
5823 \end_inset
5824
5825 変換子を
5826 \begin_inset Flex CharStyle:Code
5827 status collapsed
5828
5829 \begin_layout Plain Layout
5830 latex -synctex=1 $$i
5831 \end_layout
5832
5833 \end_inset
5834
5835 に変更します。PDF出力用には、
5836 \begin_inset Flex CharStyle:MenuItem
5837 status collapsed
5838
5839 \begin_layout Plain Layout
5840 LaT
5841 \begin_inset ERT
5842 status collapsed
5843
5844 \begin_layout Plain Layout
5845
5846 {}
5847 \end_layout
5848
5849 \end_inset
5850
5851 eX (pdflatex)->PDF (pdflatex)
5852 \end_layout
5853
5854 \end_inset
5855
5856 変換子を
5857 \begin_inset Flex CharStyle:Code
5858 status collapsed
5859
5860 \begin_layout Plain Layout
5861 pdflatex -synctex=1 $$i
5862 \end_layout
5863
5864 \end_inset
5865
5866 に変更してください。また、ビューアをSyncTeXで使うのに設定を行う必要があるかどうか、お使いのビューアの取扱説明書をご確認ください
5867 \begin_inset Foot
5868 status collapsed
5869
5870 \begin_layout Plain Layout
5871 \begin_inset Flex CharStyle:Code
5872 status collapsed
5873
5874 \begin_layout Plain Layout
5875 -synctex=1
5876 \end_layout
5877
5878 \end_inset
5879
5880 オプションは、gzip圧縮を有効にします。お使いのビューアがgzip圧縮をサポートしていない場合には、代わりに
5881 \begin_inset Flex CharStyle:Code
5882 status collapsed
5883
5884 \begin_layout Plain Layout
5885 -synctex=-1
5886 \end_layout
5887
5888 \end_inset
5889
5890 を使用してください。
5891 \end_layout
5892
5893 \end_inset
5894
5895
5896 \end_layout
5897
5898 \begin_layout Subsection
5899 特定のビューアを設定して使うには
5900 \end_layout
5901
5902 \begin_layout Subsubsection*
5903 Xdvi(全プラットフォーム)
5904 \end_layout
5905
5906 \begin_layout Standard
5907 LyXは、
5908 \begin_inset Flex CharStyle:Code
5909 status collapsed
5910
5911 \begin_layout Plain Layout
5912 lyxclient
5913 \end_layout
5914
5915 \end_inset
5916
5917 プログラムを自動的に使うのに必要なフックを、既に提供しているので、
5918 \begin_inset Flex CharStyle:Code
5919 status collapsed
5920
5921 \begin_layout Plain Layout
5922 xdvi
5923 \end_layout
5924
5925 \end_inset
5926
5927 を使用する場合には、DVI遡及検索を実行するのに他にするべきことはありません。使用中の文書を上記で述べたように設定するだけです(遡及検索は、Ctrl-クリックか
5928 、Mac OS X上ではAlt-クリックで始動します)。
5929 \end_layout
5930
5931 \begin_layout Standard
5932 しかし、何らかの理由で、LyXと通信するのにソケットではなく命名パイプを使用したい場合には、
5933 \begin_inset Flex CharStyle:MenuItem
5934 status collapsed
5935
5936 \begin_layout Plain Layout
5937 設定\SpecialChar \menuseparator
5938 ファイル処理\SpecialChar \menuseparator
5939 ファイル書式
5940 \end_layout
5941
5942 \end_inset
5943
5944 のDVIビューアを
5945 \begin_inset Flex CharStyle:Code
5946 status collapsed
5947
5948 \begin_layout Plain Layout
5949 xdvi -editor 'lyxeditor.sh %f %l'
5950 \end_layout
5951
5952 \end_inset
5953
5954
5955 \begin_inset Flex CharStyle:Code
5956 status collapsed
5957
5958 \begin_layout Plain Layout
5959 lyxeditor.sh
5960 \end_layout
5961
5962 \end_inset
5963
5964 は適切なスクリプト名)に変更してください。たとえば、最低限のシェルスクリプトは
5965 \end_layout
5966
5967 \begin_layout LyX-Code
5968 #!/bin/sh
5969 \begin_inset Newline newline
5970 \end_inset
5971
5972 LYXPIPE="/path/to/lyxpipe"
5973 \begin_inset Newline newline
5974 \end_inset
5975
5976 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
5977 \begin_inset Newline newline
5978 \end_inset
5979
5980 echo "$COMMAND" > "${LYXPIPE}".in || exit
5981 \begin_inset Newline newline
5982 \end_inset
5983
5984 read < "${LYXPIPE}".out || exit
5985 \end_layout
5986
5987 \begin_layout Standard
5988 のようになります。ここで
5989 \begin_inset Flex CharStyle:Code
5990 status collapsed
5991
5992 \begin_layout Plain Layout
5993 /path/to/lyxpipe
5994 \end_layout
5995
5996 \end_inset
5997
5998 は、
5999 \begin_inset Flex CharStyle:MenuItem
6000 status collapsed
6001
6002 \begin_layout Plain Layout
6003 設定\SpecialChar \menuseparator
6004 パス
6005 \end_layout
6006
6007 \end_inset
6008
6009 で指定したLy
6010 \begin_inset ERT
6011 status open
6012
6013 \begin_layout Plain Layout
6014
6015 {}
6016 \end_layout
6017
6018 \end_inset
6019
6020 XServerパイプのパスを指定してください
6021 \begin_inset Foot
6022 status collapsed
6023
6024 \begin_layout Plain Layout
6025 ソース頒布版の
6026 \begin_inset Flex CharStyle:Code
6027 status collapsed
6028
6029 \begin_layout Plain Layout
6030 development/tools
6031 \end_layout
6032
6033 \end_inset
6034
6035 フォルダには、ユーザが設定した
6036 \emph on
6037 lyxpipe
6038 \emph default
6039 を探し出す
6040 \begin_inset Flex CharStyle:Code
6041 status collapsed
6042
6043 \begin_layout Plain Layout
6044 lyxeditor
6045 \end_layout
6046
6047 \end_inset
6048
6049 スクリプトがあります。
6050 \end_layout
6051
6052 \end_inset
6053
6054
6055 \end_layout
6056
6057 \begin_layout Subsubsection*
6058 MacDviX(Mac OS X)
6059 \end_layout
6060
6061 \begin_layout Standard
6062 \begin_inset Flex CharStyle:Code
6063 status collapsed
6064
6065 \begin_layout Plain Layout
6066 /Applications/MacDviX_Folder/calleditor.script
6067 \end_layout
6068
6069 \end_inset
6070
6071 の終わりに
6072 \end_layout
6073
6074 \begin_layout LyX-Code
6075 /Applications/Ly
6076 \begin_inset ERT
6077 status collapsed
6078
6079 \begin_layout Plain Layout
6080
6081 {}
6082 \end_layout
6083
6084 \end_inset
6085
6086 X.app/Contents/MacOS/lyxeditor "$2" $1
6087 \begin_inset Newline newline
6088 \end_inset
6089
6090 exit 1
6091 \end_layout
6092
6093 \begin_layout Standard
6094 という行を付け加えてください。Applicationsフォルダ以外の場所にLyXを導入した場合には、それに従って上記の行を修正してください。
6095 \end_layout
6096
6097 \begin_layout Standard
6098 遡及検索は、Alt-クリック(OPTION-クリック)で始動します。
6099 \end_layout
6100
6101 \begin_layout Subsubsection*
6102 Skim(Mac OS X)
6103 \end_layout
6104
6105 \begin_layout Standard
6106 \begin_inset Flex CharStyle:MenuItem
6107 status collapsed
6108
6109 \begin_layout Plain Layout
6110 設定\SpecialChar \menuseparator
6111 ファイル処理\SpecialChar \menuseparator
6112 ファイル書式\SpecialChar \menuseparator
6113 PDF (pdflatex)
6114 \end_layout
6115
6116 \end_inset
6117
6118 のビューア設定に
6119 \begin_inset Flex CharStyle:Code
6120 status collapsed
6121
6122 \begin_layout Plain Layout
6123 open -a Skim.app $$i
6124 \end_layout
6125
6126 \end_inset
6127
6128 と入力し、
6129 \begin_inset Flex CharStyle:MenuItem
6130 status collapsed
6131
6132 \begin_layout Plain Layout
6133 Skim\SpecialChar \menuseparator
6134 設定\SpecialChar \menuseparator
6135 Sync
6136 \end_layout
6137
6138 \end_inset
6139
6140 でLy
6141 \begin_inset ERT
6142 status collapsed
6143
6144 \begin_layout Plain Layout
6145
6146 {}
6147 \end_layout
6148
6149 \end_inset
6150
6151 Xを選択してください。
6152 \end_layout
6153
6154 \begin_layout Standard
6155 遡及検索は、COMMAND-SHIFT-クリックで始動します。
6156 \end_layout
6157
6158 \begin_layout Subsubsection*
6159 Okular (KDE)
6160 \end_layout
6161
6162 \begin_layout Standard
6163 \begin_inset Flex CharStyle:MenuItem
6164 status collapsed
6165
6166 \begin_layout Plain Layout
6167 設定\SpecialChar \menuseparator
6168 Okularを設定\SpecialChar \ldots{}
6169 \SpecialChar \menuseparator
6170 編集
6171 \end_layout
6172
6173 \end_inset
6174
6175 で「カスタムテキストエディタ」を選択し、コマンドに
6176 \begin_inset Flex CharStyle:Code
6177 status collapsed
6178
6179 \begin_layout Plain Layout
6180 lyxclient -g %f %l
6181 \end_layout
6182
6183 \end_inset
6184
6185 を加えてください。
6186 \end_layout
6187
6188 \begin_layout Standard
6189 遡及検索は、SHIFT-クリックで始動します。
6190 \end_layout
6191
6192 \begin_layout Subsubsection*
6193 YAP(Windows)
6194 \end_layout
6195
6196 \begin_layout Standard
6197 yapを起動し、
6198 \begin_inset Flex CharStyle:MenuItem
6199 status collapsed
6200
6201 \begin_layout Plain Layout
6202 View\SpecialChar \menuseparator
6203 Options
6204 \end_layout
6205
6206 \end_inset
6207
6208 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
6209 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
6210  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
6211 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
6212 \begin_inset Flex CharStyle:Code
6213 status collapsed
6214
6215 \begin_layout Plain Layout
6216 lyxeditor.bat
6217 \end_layout
6218
6219 \end_inset
6220
6221 (以下参照)のあるディレクトリを見つけます。
6222 \begin_inset Flex CharStyle:Code
6223 status collapsed
6224
6225 \begin_layout Plain Layout
6226 lyxeditor.bat
6227 \end_layout
6228
6229 \end_inset
6230
6231 を選択してプログラムの引数を
6232 \begin_inset Flex CharStyle:Code
6233 status collapsed
6234
6235 \begin_layout Plain Layout
6236 %f %l
6237 \end_layout
6238
6239 \end_inset
6240
6241 と指定してください。
6242 \begin_inset Flex CharStyle:Code
6243 status collapsed
6244
6245 \begin_layout Plain Layout
6246 lyxeditor.bat
6247 \end_layout
6248
6249 \end_inset
6250
6251 は、
6252 \emph on
6253 lyxpipe
6254 \emph default
6255 を通じてLyXと通信するためのラッパとして使用され、以下のようになっています。
6256 \end_layout
6257
6258 \begin_layout LyX-Code
6259 @echo off
6260 \begin_inset Newline newline
6261 \end_inset
6262
6263 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
6264 \backslash
6265
6266 \backslash
6267 .
6268 \backslash
6269 pipe
6270 \backslash
6271 lyxpipe.in
6272 \begin_inset Newline newline
6273 \end_inset
6274
6275 type 
6276 \backslash
6277
6278 \backslash
6279 .
6280 \backslash
6281 pipe
6282 \backslash
6283 lyxpipe.out
6284 \end_layout
6285
6286 \begin_layout Standard
6287 LyXで指定したLyXServerパイプパスが、
6288 \begin_inset Flex CharStyle:Code
6289 status collapsed
6290
6291 \begin_layout Plain Layout
6292
6293 \backslash
6294
6295 \backslash
6296 .
6297 \backslash
6298 pipe
6299 \backslash
6300 lyxpipe
6301 \end_layout
6302
6303 \end_inset
6304
6305 となっていることを確認するか、
6306 \begin_inset Flex CharStyle:Code
6307 status collapsed
6308
6309 \begin_layout Plain Layout
6310 lyxeditor.bat
6311 \end_layout
6312
6313 \end_inset
6314
6315 ラッパの方を適切に修正してください。
6316 \end_layout
6317
6318 \begin_layout Standard
6319 yapでは、遡及検索はダブルクリックで始動します。
6320 \end_layout
6321
6322 \begin_layout Subsubsection*
6323 SumatraPDF(Windows)
6324 \end_layout
6325
6326 \begin_layout Standard
6327 SumatraPDFを遡及検索で使用するためには、
6328 \begin_inset Flex CharStyle:MenuItem
6329 status collapsed
6330
6331 \begin_layout Plain Layout
6332 設定\SpecialChar \menuseparator
6333 ファイル処理\SpecialChar \menuseparator
6334 ファイル書式\SpecialChar \menuseparator
6335 PDF (pdflatex)
6336 \end_layout
6337
6338 \end_inset
6339
6340 のビューア設定で
6341 \begin_inset Flex CharStyle:Code
6342 status collapsed
6343
6344 \begin_layout Plain Layout
6345 SumatraPDF -inverse-search 
6346 \begin_inset Quotes eld
6347 \end_inset
6348
6349 lyxeditor.bat %f %l
6350 \begin_inset Quotes erd
6351 \end_inset
6352
6353
6354 \end_layout
6355
6356 \end_inset
6357
6358
6359 \begin_inset Flex CharStyle:Code
6360 status collapsed
6361
6362 \begin_layout Plain Layout
6363 lyxeditor.bat
6364 \end_layout
6365
6366 \end_inset
6367
6368 は上記のラッパ)と入力してください。SumatraPDF.exeがコマンドPATHにない場合、フルファイル名を使用してください。
6369 \end_layout
6370
6371 \begin_layout Standard
6372 遡及検索はダブルクリックで始動します。
6373 \end_layout
6374
6375 \begin_layout Subsubsection*
6376 YAP(Cygwin)
6377 \end_layout
6378
6379 \begin_layout Standard
6380 まずはじめに、yapがWindows環境での既定のDVIビューアになっていることを確認してから、yapを起動し、
6381 \begin_inset Flex CharStyle:MenuItem
6382 status collapsed
6383
6384 \begin_layout Plain Layout
6385 View\SpecialChar \menuseparator
6386 Options
6387 \end_layout
6388
6389 \end_inset
6390
6391 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
6392 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
6393  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
6394 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
6395 \begin_inset Flex CharStyle:Code
6396 status collapsed
6397
6398 \begin_layout Plain Layout
6399 lyxeditor.exe
6400 \end_layout
6401
6402 \end_inset
6403
6404 プログラム(これは、Cygwinでは既定でLyX実行ファイルとともに導入されます)のあるディレクトリを見つけます。
6405 \begin_inset Flex CharStyle:Code
6406 status collapsed
6407
6408 \begin_layout Plain Layout
6409 lyxeditor.exe
6410 \end_layout
6411
6412 \end_inset
6413
6414 を選択してプログラムの引数を
6415 \begin_inset Flex CharStyle:Code
6416 status collapsed
6417
6418 \begin_layout Plain Layout
6419 -g %f %l
6420 \end_layout
6421
6422 \end_inset
6423
6424 と指定してください。これによって、LyXとの通信に
6425 \emph on
6426 lyxsocket
6427 \emph default
6428 が使用されるようになります。何らかの理由で
6429 \emph on
6430 lyxpipe
6431 \emph default
6432 を使用したい場合には、
6433 \begin_inset Flex CharStyle:Code
6434 status collapsed
6435
6436 \begin_layout Plain Layout
6437 -g
6438 \end_layout
6439
6440 \end_inset
6441
6442 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
6443 \end_layout
6444
6445 \begin_layout Standard
6446 yapでは、遡及検索はダブルクリックで始動します。
6447 \end_layout
6448
6449 \begin_layout Subsubsection*
6450 SumatraPDF(Cygwin)
6451 \end_layout
6452
6453 \begin_layout Standard
6454 SumatraPDFを遡及検索で使用するためには、
6455 \begin_inset Flex CharStyle:MenuItem
6456 status collapsed
6457
6458 \begin_layout Plain Layout
6459 設定\SpecialChar \menuseparator
6460 ファイル処理\SpecialChar \menuseparator
6461 ファイル書式\SpecialChar \menuseparator
6462 PDF (pdflatex)
6463 \end_layout
6464
6465 \end_inset
6466
6467 のビューア設定で
6468 \begin_inset Flex CharStyle:Code
6469 status collapsed
6470
6471 \begin_layout Plain Layout
6472 SumatraPDF.sh
6473 \end_layout
6474
6475 \end_inset
6476
6477 と入力してください。ここで
6478 \begin_inset Flex CharStyle:Code
6479 status collapsed
6480
6481 \begin_layout Plain Layout
6482 SumatraPDF.sh
6483 \end_layout
6484
6485 \end_inset
6486
6487 は以下のようなスクリプトです(お使いのコマンドパスに置きます。
6488 \begin_inset Flex CharStyle:Code
6489 status collapsed
6490
6491 \begin_layout Plain Layout
6492 /usr/local/bin
6493 \end_layout
6494
6495 \end_inset
6496
6497 がもっとも良い選択肢でしょう)。
6498 \end_layout
6499
6500 \begin_layout LyX-Code
6501 #!/bin/bash
6502 \begin_inset Newline newline
6503 \end_inset
6504
6505 cd $(dirname $1)
6506 \begin_inset Newline newline
6507 \end_inset
6508
6509 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
6510 \end_layout
6511
6512 \begin_layout Standard
6513 SumatraPDFは、Windowsネイティブのアプリケーションであり、LyXのCygwin版が使用するPOSIXパスを理解しないので、このラッパスクリプトが
6514 必要となります。SumatraPDF.exeがお使いのコマンドパスにない場合は、上記のスクリプトでPOSIXのフルパスを使用してください。
6515 \begin_inset Flex CharStyle:Code
6516 status collapsed
6517
6518 \begin_layout Plain Layout
6519 -g
6520 \end_layout
6521
6522 \end_inset
6523
6524
6525 \emph on
6526 lyxsocket
6527 \emph default
6528 経由の通信を有効にします。ここでも、
6529 \emph on
6530 lyxpipe
6531 \emph default
6532 を使用したい場合には、
6533 \begin_inset Flex CharStyle:Code
6534 status collapsed
6535
6536 \begin_layout Plain Layout
6537 -g
6538 \end_layout
6539
6540 \end_inset
6541
6542 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
6543 \end_layout
6544
6545 \begin_layout Standard
6546 遡及検索はダブルクリックで始動します。
6547 \end_layout
6548
6549 \begin_layout Chapter
6550 特別な文書クラス
6551 \end_layout
6552
6553 \begin_layout Section
6554 A&A Paper
6555 \end_layout
6556
6557 \begin_layout Standard
6558
6559 \noun on
6560 Peter Sütterlin文
6561 \end_layout
6562
6563 \begin_layout Subsection
6564 はじめに
6565 \end_layout
6566
6567 \begin_layout Standard
6568 この節では LyXと文書クラス 
6569 \family typewriter
6570 aa.cls
6571 \family default
6572 のバージョン 5.01を使って科学雑誌 
6573 \emph on
6574 Astronomy and Astrophysics
6575 \emph default
6576  (www.edpsciences.fr/aa/ 
6577 \begin_inset Flex URL
6578 status collapsed
6579
6580 \begin_layout Plain Layout
6581
6582 http://www.edpsciences.fr/aa/
6583 \end_layout
6584
6585 \end_inset
6586
6587 )に投稿する論文を書く方法を説明します。このパッケージは次の ftpサイトから手にいれることができます。
6588 \end_layout
6589
6590 \begin_layout Standard
6591 \align center
6592 \begin_inset Flex URL
6593 status collapsed
6594
6595 \begin_layout Plain Layout
6596
6597 ftp://ftp.edpsciences.org/pub/aa/readme.html
6598 \end_layout
6599
6600 \end_inset
6601
6602
6603 \end_layout
6604
6605 \begin_layout Standard
6606 取扱説明書がこのパッケージについてきます。この節は取扱説明書にとって代わるものではなく、あなたの論文を正しいフォームに直すのを手伝う短いガイドです。このジャーナ
6607 ルの出版社は 2001年1月1日に Springer から EDPへ変わりました。この出版社の変更によりスタイルファイルもすこし変わって、thesaurusコマ
6608 ンドが廃止されました。LyXの aaサポートはこの新しいスタイルファイル(バージョン 5.01)をサポートしています。古いバージョンのスタイルファイルをインストー
6609 ルしている場合は、アップグレードしてください。互換性のために古い(バージョン 4)のレイアウトは 
6610 \family sans
6611 article (A&A V4)
6612 \family default
6613 として残してあります。
6614 \family typewriter
6615 LyXDir/layouts/aapaper.layout
6616 \family default
6617 のコメントも参照してください。
6618 \end_layout
6619
6620 \begin_layout Subsection
6621 最初の一歩
6622 \end_layout
6623
6624 \begin_layout Standard
6625 LyXといっしょに配布されているテンプレートから始めることを勧めます。テンプレートを使わない場合は、以下の設定にしてください。
6626 \end_layout
6627
6628 \begin_layout Itemize
6629
6630 \family sans
6631 Document\SpecialChar \menuseparator
6632 Layout
6633 \family default
6634 ダイアログの 
6635 \family sans
6636 \bar under
6637 C
6638 \bar default
6639 lass
6640 \family default
6641 エントリで 
6642 \family sans
6643 article (A&A)
6644 \family default
6645 を選んでください。
6646 \end_layout
6647
6648 \begin_layout Itemize
6649
6650 \family sans
6651 \bar under
6652 P
6653 \bar default
6654 agestyle
6655 \family default
6656 のオプションは変えないで、既定のままにしておいてください。全体のレイアウトはマクロがやってくれるので、これを変えないでください。
6657 \end_layout
6658
6659 \begin_layout Subsection
6660 へッダブロック
6661 \end_layout
6662
6663 \begin_layout Standard
6664 最初に書くことはへッダに関する情報です。これには次のような 7つの項目があります。
6665 \end_layout
6666
6667 \begin_layout Itemize
6668
6669 \family sans
6670 Title
6671 \family default
6672 : [必要] 
6673 \end_layout
6674
6675 \begin_layout Itemize
6676
6677 \family sans
6678 Subtitle
6679 \family default
6680 : [optional] 
6681 \end_layout
6682
6683 \begin_layout Itemize
6684
6685 \family sans
6686 Author
6687 \family default
6688 : [必要]
6689 \end_layout
6690
6691 \begin_layout Itemize
6692
6693 \family sans
6694 Address
6695 \family default
6696 : [必要]
6697 \end_layout
6698
6699 \begin_layout Itemize
6700
6701 \family sans
6702 Offprints
6703 \family default
6704 : [optional] 著者が複数いる場合、抜き刷りのリクエストのために連絡する人。
6705 \end_layout
6706
6707 \begin_layout Itemize
6708
6709 \family sans
6710 Mail
6711 \family default
6712 : [optional] 連絡用の e-mailアドレス。
6713 \end_layout
6714
6715 \begin_layout Itemize
6716
6717 \family sans
6718 Date
6719 \family default
6720 : [必要] 推奨されるフォーマットは 
6721 \family typewriter
6722 Received: <date>; Accepted <date>
6723 \end_layout
6724
6725 \begin_layout Standard
6726
6727 \family typewriter
6728
6729 \backslash
6730 maketitle
6731 \family default
6732 コマンドを入れる必要はありません。へッダが終わったら、LyXが自動的に入れてくれます。各エントリを書く順序は関係ありませんが、上の順序で書くことをすすめます。見
6733 た目がいいのと、出版された場合のレイアウトがそのようになっているからです。
6734 \end_layout
6735
6736 \begin_layout Standard
6737 へッダブロックに脚注をいれる場合には(例えば現住所を脚注に入るような場合です)、
6738 \family sans
6739 \bar under
6740 I
6741 \bar default
6742 nsert\SpecialChar \menuseparator
6743
6744 \bar under
6745 F
6746 \bar default
6747 ootnote
6748 \family default
6749 を使って普通の脚注を入れてください。LyXがそれを自動的に 
6750 \family typewriter
6751
6752 \backslash
6753 thanks{}
6754 \family default
6755 に変えてくれます。
6756 \end_layout
6757
6758 \begin_layout Standard
6759 これ以外に、このマクロは LyXが対応していない 3つの LaTeXコマンドを用意しています。
6760 \end_layout
6761
6762 \begin_layout Itemize
6763 複数の著者名、機関名を分けるための 
6764 \family typewriter
6765
6766 \backslash
6767 and
6768 \end_layout
6769
6770 \begin_layout Itemize
6771 著者と機関の対応をつけるための 
6772 \family typewriter
6773
6774 \backslash
6775 inst{<nr>}
6776 \family default
6777 。機関名は 
6778 \family sans
6779 Address
6780 \family default
6781 フィールドにあらわれる順に番号がつけられます。そのため、それと著者名を対応させることが必要なのです。
6782 \end_layout
6783
6784 \begin_layout Itemize
6785
6786 \family typewriter
6787
6788 \backslash
6789 email{address}はコンタクトを取るための e-mailアドレスを入力するのに使います。
6790 \end_layout
6791
6792 \begin_layout Standard
6793 これらの LaTeXコードを使いたい場合には、コマンドを直接 LyXに入力して LaTeXコードとしてマークしてください。/usr/local/share/ly
6794 x/examples/ にある例を見てください。
6795 \end_layout
6796
6797 \begin_layout Subsection
6798 アブストラクト
6799 \end_layout
6800
6801 \begin_layout Standard
6802 アブストラクトはへッダブロックのすぐ後ろにこなければなりません。バージョン 5から abstract環境はコマンドへとかわり、1つの段落だけに制限されました。も
6803 う一つ気をつけなければならないのはキーワードを入れる必要があるのですが、それが LyXでは実装されていないことです。そのために手で LaTeXコマンド
6804  
6805 \family typewriter
6806
6807 \backslash
6808 keywords{}
6809 \family default
6810 を入力し、LaTeXコードとしてマークする必要があります。論文の例を見てください。
6811 \end_layout
6812
6813 \begin_layout Subsection
6814 サポートされる環境
6815 \end_layout
6816
6817 \begin_layout Standard
6818 A&A paperレイアウトでは文章を構造化するための次の環境がサポートされています。
6819 \end_layout
6820
6821 \begin_layout Itemize
6822
6823 \family sans
6824 Standard
6825 \end_layout
6826
6827 \begin_layout Itemize
6828
6829 \family sans
6830 Section
6831 \end_layout
6832
6833 \begin_layout Itemize
6834
6835 \family sans
6836 Subsection
6837 \end_layout
6838
6839 \begin_layout Itemize
6840
6841 \family sans
6842 Subsubsection
6843 \end_layout
6844
6845 \begin_layout Itemize
6846
6847 \family sans
6848 Itemize
6849 \end_layout
6850
6851 \begin_layout Itemize
6852
6853 \family sans
6854 Enumerate
6855 \end_layout
6856
6857 \begin_layout Itemize
6858
6859 \family sans
6860 Description
6861 \end_layout
6862
6863 \begin_layout Itemize
6864
6865 \family sans
6866 Caption
6867 \end_layout
6868
6869 \begin_layout Itemize
6870
6871 \family sans
6872 Abstract
6873 \end_layout
6874
6875 \begin_layout Itemize
6876
6877 \family sans
6878 Acknowledgment
6879 \end_layout
6880
6881 \begin_layout Itemize
6882
6883 \family sans
6884 Bibliography
6885 \end_layout
6886
6887 \begin_layout Itemize
6888
6889 \family sans
6890 LaTeX
6891 \end_layout
6892
6893 \begin_layout Subsection
6894 LyXでサポートされていないコマンド
6895 \end_layout
6896
6897 \begin_layout Standard
6898 いくつかのコマンドは LyXの 
6899 \family sans
6900 paper (A&A)
6901 \family default
6902 レイアウトではサポートされていません。いくつかのコマンドはすでに紹介しましたが、次にサポートされていないコマンドのリストを書いておきます。
6903 \end_layout
6904
6905 \begin_layout Itemize
6906
6907 \family typewriter
6908
6909 \backslash
6910 and
6911 \end_layout
6912
6913 \begin_layout Itemize
6914
6915 \family typewriter
6916
6917 \backslash
6918 email
6919 \end_layout
6920
6921 \begin_layout Itemize
6922
6923 \family typewriter
6924
6925 \backslash
6926 appendix
6927 \end_layout
6928
6929 \begin_layout Itemize
6930
6931 \family typewriter
6932
6933 \backslash
6934 authorrunning
6935 \end_layout
6936
6937 \begin_layout Itemize
6938
6939 \family typewriter
6940
6941 \backslash
6942 inst{}
6943 \end_layout
6944
6945 \begin_layout Itemize
6946
6947 \family typewriter
6948
6949 \backslash
6950 keywords{}
6951 \end_layout
6952
6953 \begin_layout Itemize
6954
6955 \family typewriter
6956
6957 \backslash
6958 object{}
6959 \end_layout
6960
6961 \begin_layout Itemize
6962
6963 \family typewriter
6964
6965 \backslash
6966 titlerunning{}
6967 \end_layout
6968
6969 \begin_layout Standard
6970 もしこれらのコマンドを使いたい場合は、自分で文章中にコマンドを入れる必要があります。
6971 \emph on
6972 LaTeXコマンドとしてマークするのを忘れないで下さい。
6973 \end_layout
6974
6975 \begin_layout Subsection
6976 図とテーブルフロート
6977 \end_layout
6978
6979 \begin_layout Standard
6980 LyXは必要なフロート環境 
6981 \family sans
6982 figure、figure*、table、table*
6983 \family default
6984 をサポートしています。そのため、ここでは詳しい説明はしません。ユーザーの手引きを見てください。ただし、表は左揃にしなければならないのを忘れないで下さい。そのため
6985 には 
6986 \family sans
6987 \bar under
6988 L
6989 \bar default
6990 ayout\SpecialChar \menuseparator
6991
6992 \bar under
6993 P
6994 \bar default
6995 aragraph
6996 \family default
6997 を選択して、alignmentを変えてください。
6998 \end_layout
6999
7000 \begin_layout Standard
7001 一つだけ特別なことがあります。キャプションを図の横に書く場合です。このような図をつくるためには次のようにします。
7002 \end_layout
7003
7004 \begin_layout Enumerate
7005
7006 \family sans
7007 \bar under
7008 I
7009 \bar default
7010 nsert\SpecialChar \menuseparator
7011 Fl
7012 \bar under
7013 o
7014 \bar default
7015 ats\SpecialChar \menuseparator
7016 Figure
7017 \family default
7018  を使って wide figureフロートをつくります。そして図を右クリックして 
7019 \family sans
7020 \bar under
7021 S
7022 \bar default
7023 pan columns
7024 \family default
7025  を選びます。
7026 \end_layout
7027
7028 \begin_layout Enumerate
7029 キャプションの文を入力します。
7030 \end_layout
7031
7032 \begin_layout Enumerate
7033 カーソルをキャプションの上に移動するために 
7034 \family sans
7035 Return
7036 \family default
7037 を押します。
7038 \end_layout
7039
7040 \begin_layout Enumerate
7041 図を挿入します。
7042 \end_layout
7043
7044 \begin_layout Enumerate
7045 カーソルを図の後ろに移動して 
7046 \family sans
7047 \bar under
7048 H
7049 \bar default
7050 Fill
7051 \family default
7052 を挿入 -- 
7053 \family sans
7054 \bar under
7055 I
7056 \bar default
7057 nsert\SpecialChar \menuseparator
7058
7059 \bar under
7060 S
7061 \bar default
7062 pecial
7063 \begin_inset space ~
7064 \end_inset
7065
7066 Character
7067 \bar under
7068 \SpecialChar \menuseparator
7069 H
7070 \bar default
7071 Fill。
7072 \end_layout
7073
7074 \begin_layout Enumerate
7075 LaTeXモードに変わります
7076 \family sans
7077
7078 \end_layout
7079
7080 \begin_layout Enumerate
7081
7082 \family typewriter
7083
7084 \backslash
7085 parbox[b]{55mm}{
7086 \family default
7087 と入力します。
7088 \emph on
7089 括弧を閉じないでください。
7090 \end_layout
7091
7092 \begin_layout Enumerate
7093 カーソルをキャプションの文の後ろに持っていき、LaTeXモードに変わって閉じ括弧を挿入します 。
7094 \end_layout
7095
7096 \begin_layout Standard
7097 論文の例の図も参照してください。
7098 \end_layout
7099
7100 \begin_layout Subsection
7101 Referee layout
7102 \end_layout
7103
7104 \begin_layout Standard
7105 投稿するためには論文は特別なダブルスペースのレイアウトになっていなければなりません。そのためには 
7106 \family typewriter
7107 referee
7108 \family default
7109 オプションを documentclassに与える必要があります。
7110 \family sans
7111 Document
7112 \family default
7113 ダイアログの 
7114 \family sans
7115 E
7116 \bar under
7117 x
7118 \bar default
7119 tra
7120 \family default
7121  
7122 \family sans
7123 Options
7124 \family default
7125 フィールドを使ってください。
7126 \family typewriter
7127 referee
7128 \family default
7129 と入力するだけです。
7130 \end_layout
7131
7132 \begin_layout Subsection
7133 論文の例
7134 \end_layout
7135
7136 \begin_layout Standard
7137
7138 \family sans
7139 Examples
7140 \family default
7141 ディレクトリに LyXで書かれた論文の例が入っています。この論文の例は、もとのマクロパッケージに含まれていたものを LyXで書き直したものです。これを見るとどの
7142 ように使えばいいのかがわかるでしょう。またもとの LaTeXのコードと LyXで書く場合を比べてください。
7143 \end_layout
7144
7145 \begin_layout Section
7146 AASTeX
7147 \end_layout
7148
7149 \begin_layout Standard
7150 \begin_inset Flex CharStyle:Noun
7151 status collapsed
7152
7153 \begin_layout Plain Layout
7154 Mike Ressler
7155 \end_layout
7156
7157 \end_inset
7158
7159
7160 \end_layout
7161
7162 \begin_layout Subsection
7163 はじめに
7164 \end_layout
7165
7166 \begin_layout Standard
7167 AASTeXは American Astronomical Societyによって作られた(Lettersと Supplementを含んだ)the
7168  Astrophysical Journal、the Astronomical Journal、それに the Astronomical Society
7169  of the Pacificが発行するジャーナルに投稿するための一連のマクロです。LyXで使うにはマクロのバージョン 5.0(またはそれ以上)が必要です。5.0よ
7170 り前のバージョンは LaTeX2.09といっしょに使うためのもので、LyXでは基本的に使えません。AASTeXパッケージは以下の AASの ftpサイトからダウン
7171 ロードできます。
7172 \end_layout
7173
7174 \begin_layout Standard
7175 \align center
7176 \begin_inset Flex URL
7177 status collapsed
7178
7179 \begin_layout Plain Layout
7180
7181 ftp://ftp.aas.org/pubs
7182 \end_layout
7183
7184 \end_inset
7185
7186
7187 \end_layout
7188
7189 \begin_layout Standard
7190 完全なユーザーの手引きがこのパッケージの中に含まれていますので、LyXで論文を書き始める前にそれをよく読んでください。LyXは AASTeXコマンドを理解するた
7191 めの必要性を減らすのではなく、入力の手間を減らすだけです。最終的に LaTeXファイルにされた論文が投稿するジャーナルの要求事項に完全に従っているかどうかは、あ
7192 なたの責任です。
7193 \end_layout
7194
7195 \begin_layout Subsection
7196 新しい論文を書き始める
7197 \end_layout
7198
7199 \begin_layout Standard
7200 AASTeXテンプレートファイルを使って書き始めることを強くすすめます。
7201 \family sans
7202 File\SpecialChar \menuseparator
7203 New from template
7204 \family default
7205 を選択して、新しいファイル名を入力し、それから 
7206 \family typewriter
7207 aastex.lyx
7208 \family default
7209 テンプレートを選んでください。これは大部分の論文で使われる共通のフィールドを用意しています。単に正しい情報を既存のテキスト(<>を含みます)に上書きしてください
7210 。AASTeXのコマンドと環境の多くは直接 LyXで実行することができますが、いくつかのものはできません。その中でもっとも目につくのは 
7211 \family typewriter
7212
7213 \backslash
7214 altaffilmark
7215 \family default
7216 と 
7217 \family typewriter
7218
7219 \backslash
7220 altaffiltext
7221 \family default
7222 です。これらのコマンドはテンプレートファイルを開いたとき、赤色で表示されているでしょう。これらのコマンドは、直接 LaTeXコードを入力して、それを
7223  LaTeXコードとしてマークしなければなりません。我々はそのようなコマンドを ERT (Evil Red Text)と呼んでいます。AASTeXドキュメントの
7224 中の必要とされる ERTはできるだけ少なくなるようにはしているのですが、望む水準よりは多くの ERTが必要になっています。
7225 \end_layout
7226
7227 \begin_layout Subsection
7228 論文を書き終わったら
7229 \end_layout
7230
7231 \begin_layout Standard
7232 論文を満足する水準で書き終えて、印刷した結果が良好だとしましょう。それでもジャーナルに投稿する前に必要な、いくつかの「後処理」があります。
7233 \end_layout
7234
7235 \begin_layout Enumerate
7236 論文を LaTeXファイルとして出力します。(
7237 \family sans
7238 \bar under
7239 F
7240 \bar default
7241 ile\SpecialChar \menuseparator
7242
7243 \bar under
7244 E
7245 \bar default
7246 xport\SpecialChar \menuseparator
7247
7248 \bar under
7249 L
7250 \bar default
7251 ateX
7252 \family default
7253 )
7254 \end_layout
7255
7256 \begin_layout Enumerate
7257 出力した .texファイルをお気に入りのエディタで編集します。
7258 \end_layout
7259
7260 \begin_deeper
7261 \begin_layout Enumerate
7262
7263 \family typewriter
7264
7265 \backslash
7266 documentclass
7267 \family default
7268 コマンドの前のコメント行を消します。
7269 \end_layout
7270
7271 \begin_layout Enumerate
7272
7273 \family typewriter
7274
7275 \backslash
7276 usepackage...{fontenc}
7277 \family default
7278 行がもしあれば(普通は 
7279 \family typewriter
7280
7281 \backslash
7282 documentclass
7283 \family default
7284 のすぐ後ろにあります)これを消します。また 
7285 \family typewriter
7286
7287 \backslash
7288 secnumdepth
7289 \family default
7290 行があれば、これも消します。
7291 \end_layout
7292
7293 \begin_layout Enumerate
7294
7295 \family typewriter
7296
7297 \backslash
7298 makeatletter
7299 \family default
7300 と 
7301 \family typewriter
7302
7303 \backslash
7304 makeatother
7305 \family default
7306 の間のものを消去します。ただしあなたが自分で LaTeXのプリアンブルに入れたコマンドは残しておいてください(それらは .texファイルの User
7307  specified LaTeX commandsというコメントのすぐ後にあるはずです)。
7308 \end_layout
7309
7310 \begin_layout Enumerate
7311
7312 \family typewriter
7313
7314 \backslash
7315 figcaption
7316 \family default
7317 コマンドを探して、そこにある 
7318 \family typewriter
7319 FileName
7320 \family default
7321 を正しい、実際にあるファイル名に変えてください。
7322 \end_layout
7323
7324 \begin_layout Enumerate
7325 必要なら 
7326 \family typewriter
7327
7328 \backslash
7329 cite
7330 \family default
7331 コマンドを変えてください(以下の節
7332 \begin_inset space ~
7333 \end_inset
7334
7335
7336 \begin_inset CommandInset ref
7337 LatexCommand ref
7338 reference "cite"
7339
7340 \end_inset
7341
7342 を参照)。
7343 \end_layout
7344
7345 \end_deeper
7346 \begin_layout Enumerate
7347 編集したファイルに LaTeXを走らせて、正しく処理できるかを確認します。
7348 \end_layout
7349
7350 \begin_layout Enumerate
7351 ファイル名、フォーマットが正しいかどうかを、ジャーナルの要求事項をもう一度読んで確かめます。
7352 \end_layout
7353
7354 \begin_layout Enumerate
7355 投稿してください。
7356 \end_layout
7357
7358 \begin_layout Subsection
7359 いくつかのコマンドに関するコメント
7360 \end_layout
7361
7362 \begin_layout Standard
7363 ここで各々の AASTeXコマンドを説明するつもりはありません。AASTeX ユーザーの手引き (
7364 \family typewriter
7365 aasguide.tex
7366 \family default
7367 )に詳しく書いてあります。そこでここでは LyXで使う場合に必要なコメントを書いておくだけにします。
7368 \end_layout
7369
7370 \begin_layout Subsubsection
7371 予想通りに動くコマンド
7372 \end_layout
7373
7374 \begin_layout Standard
7375 \begin_inset ERT
7376 status collapsed
7377
7378 \begin_layout Plain Layout
7379
7380
7381 \backslash
7382 begin{sloppypar}
7383 \end_layout
7384
7385 \end_inset
7386
7387
7388 \end_layout
7389
7390 \begin_layout Standard
7391 以下のコマンドは予想通りに動きます。コマンド名の後ろにあるのはそのコマンドが説明されている AASTeXユーザーの手引きの節番号です。
7392 \family typewriter
7393
7394 \backslash
7395 documentclass
7396 \family default
7397  (2.1.1), 
7398 \family typewriter
7399
7400 \backslash
7401 begin{document}
7402 \family default
7403  (2.2), 
7404 \family typewriter
7405
7406 \backslash
7407 title
7408 \family default
7409  (2.3), 
7410 \family typewriter
7411
7412 \backslash
7413 author
7414 \family default
7415  (2.3), 
7416 \family typewriter
7417
7418 \backslash
7419 affil
7420 \family default
7421  (2.3), 
7422 \family typewriter
7423
7424 \backslash
7425 abstract
7426 \family default
7427  (2.4), 
7428 \family typewriter
7429
7430 \backslash
7431 keywords
7432 \family default
7433  (2.5), 
7434 \family typewriter
7435
7436 \backslash
7437 section
7438 \family default
7439  (2.7), 
7440 \family typewriter
7441
7442 \backslash
7443 subsection
7444 \family default
7445  (2.7), 
7446 \family typewriter
7447
7448 \backslash
7449 subsubsection
7450 \family default
7451  (2.7), 
7452 \family typewriter
7453
7454 \backslash
7455 paragraph
7456 \family default
7457  (2.7), 
7458 \family typewriter
7459
7460 \backslash
7461 begin{displaymath}
7462 \family default
7463  (2.11), 
7464 \family typewriter
7465
7466 \backslash
7467 begin{equation}
7468 \family default
7469  (2.11), 
7470 \family typewriter
7471
7472 \backslash
7473 begin{eqnarray}
7474 \family default
7475  (2.11), 
7476 \family typewriter
7477
7478 \backslash
7479 begin{mathletters}
7480 \family default
7481  (2.11), 
7482 \family typewriter
7483
7484 \backslash
7485 begin{thebibliography}
7486 \family default
7487  (2.12.1), 
7488 \family typewriter
7489
7490 \backslash
7491 bibitem
7492 \family default
7493  (2.12.2), 
7494 \family typewriter
7495
7496 \backslash
7497 begin{table}
7498 \family default
7499  (2.14.4), 
7500 \family typewriter
7501
7502 \backslash
7503 begin{tabular}
7504 \family default
7505  (2.14.4), 
7506 \family typewriter
7507
7508 \backslash
7509 caption
7510 \family default
7511  (2.14.4), 
7512 \family typewriter
7513
7514 \backslash
7515 label
7516 \family default
7517  (2.14.4, それ以外の場所にも多くあり), 
7518 \family typewriter
7519
7520 \backslash
7521 tablerefs
7522 \family default
7523  (2.14.5), 
7524 \family typewriter
7525
7526 \backslash
7527 tablecomments
7528 \family default
7529  (2.14.5), 
7530 \family typewriter
7531
7532 \backslash
7533 url
7534 \family default
7535  (2.15.4), 
7536 \family typewriter
7537
7538 \backslash
7539 end{document}
7540 \family default
7541  (2.16).
7542 \end_layout
7543
7544 \begin_layout Standard
7545 また次のスタイルオプションも正しく動きます。
7546 \family typewriter
7547 preprint
7548 \family default
7549
7550 \family typewriter
7551 preprint2
7552 \family default
7553
7554 \family typewriter
7555 eqsecnum
7556 \family default
7557
7558 \family typewriter
7559 flushrt
7560 \family default
7561  (3, 3.1, 3.2)。これらのオプションを使うには、
7562 \family sans
7563 Layout\SpecialChar \menuseparator
7564 Document
7565 \family default
7566 を選んで 
7567 \family sans
7568 Extra Options
7569 \family default
7570 ボックスにオプションを入力してください。
7571 \end_layout
7572
7573 \begin_layout Standard
7574 \begin_inset ERT
7575 status collapsed
7576
7577 \begin_layout Plain Layout
7578
7579
7580 \backslash
7581 end{sloppypar}
7582 \end_layout
7583
7584 \end_inset
7585
7586
7587 \end_layout
7588
7589 \begin_layout Subsubsection
7590 動くけれども少し説明が必要なコマンド
7591 \end_layout
7592
7593 \begin_layout Standard
7594 以下のコマンドは動くのですが、少し説明が必要です。
7595 \end_layout
7596
7597 \begin_layout Itemize
7598 次のコマンドはジャーナルの編集者専用ですが、どうしても必要なら LaTeXのプリアンブルに入れることができます。
7599 \family typewriter
7600
7601 \backslash
7602 received
7603 \family default
7604
7605 \family typewriter
7606
7607 \backslash
7608 revised
7609 \family default
7610
7611 \family typewriter
7612
7613 \backslash
7614 accepted
7615 \family default
7616
7617 \family typewriter
7618
7619 \backslash
7620 ccc
7621 \family default
7622
7623 \family typewriter
7624
7625 \backslash
7626 cpright
7627 \family default
7628  (これらはすべて 2.1.3)
7629 \end_layout
7630
7631 \begin_layout Itemize
7632 次のコマンドは LaTeXのプリアンブルに置くことができます。テンプレートファイルのプリアンブルには空の引数をつけてこれらのコマンドが含まれています。
7633 \family typewriter
7634
7635 \backslash
7636 slugcomment
7637 \family default
7638  (2.1.4), 
7639 \family typewriter
7640
7641 \backslash
7642 shorttitle
7643 \family default
7644  (2.1.5), 
7645 \family typewriter
7646
7647 \backslash
7648 shortauthors
7649 \family default
7650  (2.1.5)
7651 \end_layout
7652
7653 \begin_layout Itemize
7654
7655 \family typewriter
7656
7657 \backslash
7658 email
7659 \family default
7660  (2.3) はそれだけで使うことはできますが、段落の途中で使うことはできません。必要な場合は ERTで使ってください。
7661 \end_layout
7662
7663 \begin_layout Itemize
7664
7665 \family typewriter
7666
7667 \backslash
7668 and
7669 \family default
7670  (2.3) は後ろに{}を追加します。しかしこれはエラーを発生させません。
7671 \end_layout
7672
7673 \begin_layout Itemize
7674
7675 \family typewriter
7676
7677 \backslash
7678 notetoeditor
7679 \family default
7680  (2.6)はそれだけで使うことはできますが、段落の途中で使うことはできません。必要な場合は ERTで使ってください。
7681 \end_layout
7682
7683 \begin_layout Itemize
7684
7685 \family typewriter
7686
7687 \backslash
7688 placetable
7689 \family default
7690  (2.8)はクロスリファレンスのタグを挿入することができません。手で入力する必要があります。
7691 \end_layout
7692
7693 \begin_layout Itemize
7694
7695 \family typewriter
7696
7697 \backslash
7698 placefigure
7699 \family default
7700  (2.8) は 
7701 \family typewriter
7702
7703 \backslash
7704 placetable
7705 \family default
7706 の場合と同じです。
7707 \end_layout
7708
7709 \begin_layout Itemize
7710
7711 \family typewriter
7712
7713 \backslash
7714 acknowledgements
7715 \family default
7716  (2.9)は後ろに{}を追加します。しかしこれはエラーを発生させません。
7717 \end_layout
7718
7719 \begin_layout Itemize
7720
7721 \family typewriter
7722
7723 \backslash
7724 appendix
7725 \family default
7726  (2.10)は後ろに{}を追加します。しかしこれはエラーを発生させません。
7727 \end_layout
7728
7729 \begin_layout Itemize
7730
7731 \family typewriter
7732
7733 \backslash
7734 figcaption
7735 \family default
7736  (2.13.2) -- 最終的な LaTeXファイルで追加的な引数を手で編集しなければなりません。
7737 \end_layout
7738
7739 \begin_layout Subsubsection
7740 実装されてなく、ERTを使わなければならないコマンド
7741 \end_layout
7742
7743 \begin_layout Standard
7744 \begin_inset ERT
7745 status collapsed
7746
7747 \begin_layout Plain Layout
7748
7749
7750 \backslash
7751 begin{sloppypar}
7752 \end_layout
7753
7754 \end_inset
7755
7756
7757 \end_layout
7758
7759 \begin_layout Standard
7760
7761 \family typewriter
7762
7763 \backslash
7764 altaffilmark
7765 \family default
7766  (2.3), 
7767 \family typewriter
7768
7769 \backslash
7770 altaffiltext
7771 \family default
7772  (2.3), 
7773 \family typewriter
7774
7775 \backslash
7776 eqnum
7777 \family default
7778  (2.11), 
7779 \family typewriter
7780
7781 \backslash
7782 setcounter{equation}
7783 \family default
7784  (2.11), 
7785 \family typewriter
7786
7787 \backslash
7788 citet
7789 \family default
7790  (2.12), 
7791 \family typewriter
7792
7793 \backslash
7794 citep
7795 \family default
7796  (2.12), Journal name abbreviations (2.12.4), 
7797 \family typewriter
7798
7799 \backslash
7800 figurenum
7801 \family default
7802  (2.13.1), 
7803 \family typewriter
7804
7805 \backslash
7806 epsscale
7807 \family default
7808  (2.13.1), 
7809 \family typewriter
7810
7811 \backslash
7812 plotone
7813 \family default
7814  (2.13.1), 
7815 \family typewriter
7816
7817 \backslash
7818 plottwo
7819 \family default
7820  (2.13.1), 
7821 \family typewriter
7822
7823 \backslash
7824 tablenum
7825 \family default
7826  (2.14.4), 
7827 \family typewriter
7828
7829 \backslash
7830 tableline
7831 \family default
7832  (2.14.4, 必要な場合は左側のセルの一番目の要素として挿入する。表の中ではどのような LyXの方法も使わない), 
7833 \family typewriter
7834
7835 \backslash
7836 tablenotemark
7837 \family default
7838  (2.14.5), 
7839 \family typewriter
7840
7841 \backslash
7842 tablenotetext
7843 \family default
7844  (2.14.5), most everything in Misc (2.15)の中のほとんどすべてのもの (
7845 \family typewriter
7846
7847 \backslash
7848 url
7849 \family default
7850 と 
7851 \family typewriter
7852
7853 \backslash
7854 email
7855 \family default
7856 は除く), 
7857 \family typewriter
7858
7859 \backslash
7860 singlespace
7861 \family default
7862  (3.1), 
7863 \family typewriter
7864
7865 \backslash
7866 doublespace
7867 \family default
7868  (3.1), 
7869 \family typewriter
7870
7871 \backslash
7872 onecolumn
7873 \family default
7874  (3.2), 
7875 \family typewriter
7876
7877 \backslash
7878 twocolumn
7879 \family default
7880  (3.2)
7881 \end_layout
7882
7883 \begin_layout Standard
7884 \begin_inset ERT
7885 status collapsed
7886
7887 \begin_layout Plain Layout
7888
7889
7890 \backslash
7891 end{sloppypar}
7892 \end_layout
7893
7894 \end_inset
7895
7896
7897 \end_layout
7898
7899 \begin_layout Subsubsection
7900 実装できないもの
7901 \end_layout
7902
7903 \begin_layout Standard
7904 references (2.12.3)環境と deluxetable (2.14)環境は実装できません。無視することをすすめます。もし絶対に deluxetableを
7905 使う必要があるなら、別のファイルにテキストエディタで編集してそれを 
7906 \family sans
7907 Insert\SpecialChar \menuseparator
7908 Include File
7909 \family default
7910 を使って LyXファイルに含めるのを推奨します。
7911 \family typewriter
7912 aas_sample.lyx
7913 \family default
7914 ファイルを参照してください。これの例が含まれています。
7915 \end_layout
7916
7917 \begin_layout Subsection
7918 FAQとヒント
7919 \end_layout
7920
7921 \begin_layout Subsubsection
7922 LyXに AASTeXを認識させる
7923 \end_layout
7924
7925 \begin_layout Standard
7926 LyXに新しいレイアウトと文書クラスを認識させるには少しコツが要ります。もしうまく行かなかったら、次のようにしてみてください。
7927 \end_layout
7928
7929 \begin_layout Enumerate
7930 LaTeXが AASTeXをちゃんと見つけられるか確かめてください。AASTeXパッケージに含まれる sample.tex (table.texでもいいのですが)を
7931 、LaTeXや AASTeXとまったく関係のないディレクトリへコピーしてそれから LaTeXを走らせてみてください。
7932 \end_layout
7933
7934 \begin_layout Enumerate
7935
7936 \family typewriter
7937 astex.layout
7938 \family default
7939 が 
7940 \family typewriter
7941 /usr/.../share/lyx/layouts
7942 \family default
7943 または 
7944 \family typewriter
7945 ~/.lyx/layouts
7946 \family default
7947 にあるのを確かめてください。
7948 \end_layout
7949
7950 \begin_layout Enumerate
7951 LyXで 
7952 \family sans
7953 Options\SpecialChar \menuseparator
7954 Reconfigure
7955 \family default
7956 を走らせて、それから LyXを再起動してください。
7957 \end_layout
7958
7959 \begin_layout Enumerate
7960 テンプレートからではなく、普通の 
7961 \family sans
7962 \bar under
7963 F
7964 \bar default
7965 ile\SpecialChar \menuseparator
7966
7967 \bar under
7968 N
7969 \bar default
7970 ew
7971 \family default
7972 から新しいファイルを開いてください。
7973 \family sans
7974 Layout\SpecialChar \menuseparator
7975 Document\SpecialChar \menuseparator
7976 Class
7977 \family default
7978 で AASTeXがあらわれているでしょうか。
7979 \end_layout
7980
7981 \begin_layout Standard
7982 もし既存の AASTeXで書いた文章で not being able to find the AASTeX layoutという警告を受けたり、You
7983  should not mix title layouts with normal onesというメッセージがでた場合にはキチンとインストールできていません。
7984 \end_layout
7985
7986 \begin_layout Subsubsection
7987 表を処理する際の LaTeXエラー
7988 \end_layout
7989
7990 \begin_layout Standard
7991 既定では LyXは表のキャプション/タイトルを表の中心に配置しようとします。これが AASTeXと変な干渉を起こすようです。これを避けるにはキャプションのどこか
7992 をクリックして、それから 
7993 \family sans
7994 \bar under
7995 L
7996 \bar default
7997 ayout\SpecialChar \menuseparator
7998
7999 \bar under
8000 P
8001 \bar default
8002 aragraph
8003 \family default
8004 を選択し 
8005 \family sans
8006 Alignment
8007 \family default
8008 を 
8009 \family sans
8010 \bar under
8011 B
8012 \bar default
8013 lock
8014 \family default
8015 にしてください。少なくとも私はこの方法でうまく行きます。
8016 \end_layout
8017
8018 \begin_layout Subsubsection
8019 参考文献
8020 \begin_inset CommandInset label
8021 LatexCommand label
8022 name "cite"
8023
8024 \end_inset
8025
8026
8027 \end_layout
8028
8029 \begin_layout Standard
8030 2、3の注意があります。1番目は本文中のレファレンスエントリのスペースが少しおかしいことです。参照文献の項目データを入力するときに、最後の著者と年を入れる括弧の
8031 間にスペースを入れないようにしてください。つまり 
8032 \family typewriter
8033 Ressler(1992)
8034 \family default
8035 と書いて 
8036 \family typewriter
8037 Ressler (1992)
8038 \family default
8039 のようにはしないでください。
8040 \end_layout
8041
8042 \begin_layout Standard
8043
8044 \family typewriter
8045 2番目に 
8046 \backslash
8047 citet
8048 \family default
8049 と 
8050 \family typewriter
8051
8052 \backslash
8053 citep
8054 \family default
8055 をもっと自動的に使えるようにしたいのですが、できていません。それには LyXのソースコードを変える必要があるのです。いまのところ、2つの方法のうちのどちらかを選
8056 ぶ必要があります。a) すべての文献の参照に 
8057 \family sans
8058 Insert\SpecialChar \menuseparator
8059 Citation Reference
8060 \family default
8061 を使います。これで少なくとも自動的に挿入できます。そして投稿する前に LaTeXファイルを手で編集して 
8062 \family typewriter
8063
8064 \backslash
8065 cite
8066 \family default
8067 を 
8068 \family typewriter
8069
8070 \backslash
8071 citet
8072 \family default
8073 か 
8074 \family typewriter
8075
8076 \backslash
8077 citep
8078 \family default
8079 に変えていくのです(
8080 \family typewriter
8081
8082 \backslash
8083 cite
8084 \family default
8085 は現在のところ 
8086 \family typewriter
8087
8088 \backslash
8089 cite
8090 \family default
8091 と同じなので、この場合は変える必要はありません)。b) すべての文献の参照を ERTを使って行います。つまり本文中に参照文献のキーを使って 
8092 \family typewriter
8093
8094 \backslash
8095 citet{key}
8096 \family default
8097 のように挿入して LaTeXコードとしてマークするのです。どちらの方法も使いやすくはないのですが、LyXの参照メカニズムが 
8098 \family typewriter
8099 natbib
8100 \family default
8101 を理解するようになるまではどちらかの方法を使う必要があります。
8102 \end_layout
8103
8104 \begin_layout Standard
8105 3番目に参考文献を入力することは、それほどわかりやすいものではありません。一番簡単な方法は文章の最後にいって一番初めの参考文献を入力し、それを
8106  
8107 \family sans
8108 References
8109 \family default
8110 としてマークすることです。マークすると灰色の小さい箱が入力した参考文献の頭にあらわれます。この箱をクリックして残りの情報を入れてください。新しい参考文献を入力す
8111 るには、既存の参考文献の最後にいってリターンキーを押します。これで新しい灰色の箱を持った新しい行が出てきます。
8112 \end_layout
8113
8114 \begin_layout Subsubsection
8115 EPSファイルの挿入
8116 \end_layout
8117
8118 \begin_layout Standard
8119 AASTeXパッケージの図を扱うメカニズムは、それほどよくありません。ERTで Figure Floatボックスに 
8120 \family typewriter
8121
8122 \backslash
8123 plotone
8124 \family default
8125 等の
8126 \begin_inset ERT
8127 status collapsed
8128
8129 \begin_layout Plain Layout
8130
8131
8132 \backslash
8133  
8134 \end_layout
8135
8136 \end_inset
8137
8138 コマンドを入れることはできますが、私はうまくレイアウトできたためしがありません。私のアドバイスは、投稿する論文には本文中に EPSファイルを挿入しないことです。
8139 そして投稿前に印刷する場合には、LyXの標準の EPSファイルの挿入を使います。LyXは 
8140 \family typewriter
8141
8142 \backslash
8143 usepackage{graphics}
8144 \family default
8145 コマンドを LaTeXのプリアンブルに入れて、図を LaTeX2eの標準的な方法で扱います。AASTeX 5.0を使うにはどうせ LaTeX2eが必要なので、La
8146 TeX2eのよりすぐれた図を扱う方法を使って何が悪いのでしょう。もしだれかが LaTeX2eまたは graphicsパッケージのことで文句を言ったら、Lampo
8147 rt (1994) の本の第2版にそれについて書いてあるということを指摘して、何年も前にアップグレードしなければならなかったのにと言ってやりましょう。
8148 \end_layout
8149
8150 \begin_layout Subsubsection
8151 可能だが実装しなかったもの
8152 \end_layout
8153
8154 \begin_layout Standard
8155 実装することができたけれども、実装しないことを選んだものがいくつかあります。例えば、ダブルスペース論文を書いていても LyX上でダブルスペースで表示するようには
8156 していません。また preprintと preprint2スタイルを別のレイアウトにしないことにしました。文章を書く場合はほとんどの時間を manuscript
8157 モードで使うと想定して、ディスクスペースを節約したのです。どうしてもこの私の決定に不服な人のために the Mudgeeraba Creek Emu-Ridin
8158 g and Boomerang-Throwing Associationに掲示してあるルールを掲げておきましょう。
8159 \end_layout
8160
8161 \begin_layout Quotation
8162 「裁判官の判断は群衆の圧倒的な大多数に大声で反対されない限り最終的なものだ。裁判官に話しかけるときや、反対に裁判官が話しかけるときは口汚い言葉を使うべきではない
8163 。」
8164 \end_layout
8165
8166 \begin_layout Subsection
8167 最後に
8168 \end_layout
8169
8170 \begin_layout Standard
8171 Donald Knuthの、コンピュータアルゴリズムに関する悪名高い文章を引用しておきましょう、「私はこれが正しいはずだと証明しただけで、これを使ったことはない
8172 」。私は今まで説明したやり方でジャーナルに受理されるような AASTeXの論文が作れると信じてはいますが、今のところ(Jan 25, 2000)私はまだこのレイ
8173 アウトを使って論文を投稿したことがありません。次の数ヵ月で投稿できればいいのですが。
8174 \end_layout
8175
8176 \begin_layout Section
8177 AMS LaTeX
8178 \end_layout
8179
8180 \begin_layout Standard
8181 \begin_inset Flex CharStyle:Noun
8182 status collapsed
8183
8184 \begin_layout Plain Layout
8185 David Johnson
8186 \end_layout
8187
8188 \end_inset
8189
8190 文 
8191 \begin_inset Flex CharStyle:Noun
8192 status collapsed
8193
8194 \begin_layout Plain Layout
8195 Richard Heck
8196 \end_layout
8197
8198 \end_inset
8199
8200 改訂
8201 \begin_inset VSpace bigskip
8202 \end_inset
8203
8204 AMS LaTeXレイアウトは American Mathematical Societyの刊行物に投稿する数学の論文のためのスタイルです。このレイアウトは特定
8205 のジャーナル用につくられてるわけではありませんが、簡単に特定のジャーナル用にすることができます。各々のジャーナルについての特定の指示については
8206  AMSの文章を参照する必要があります(普通は TeXファイルを一行変えるだけです)。AMSの説明書は Web上の 
8207 \begin_inset Flex URL
8208 status collapsed
8209
8210 \begin_layout Plain Layout
8211
8212 http://www.ams.org
8213 \end_layout
8214
8215 \end_inset
8216
8217 か、または ftpで 
8218 \begin_inset Flex URL
8219 status collapsed
8220
8221 \begin_layout Plain Layout
8222
8223 ftp://ftp.ams.org/pub/tex/amslatex/
8224 \end_layout
8225
8226 \end_inset
8227
8228 から手にいれることができます。これらのレイアウトは数学的な文章を書く場合に有効に使えるはずです。今のところ4つの異なった AMS LaTeXのレイアウトがありま
8229 す。
8230 \end_layout
8231
8232 \begin_layout Enumerate
8233 amsart: 標準的な AMSの論文用のレイアウトです。すべての結果とそれに類似した文は 
8234 \begin_inset Formula $(n.m)$
8235 \end_inset
8236
8237 の形の番号がつきます。はじめの番号は節を表していて、2番目の番号は節内の何番目の結果(Theorems、Corollaries、Propositions、Def
8238 initions、Remarks等)なのかを表しています。また多くの(すべてではありませんが)環境には番号がつかないバージョンもあります。番号をつけないことも時
8239 折必要となるでしょう。番号のつかない環境は最後にアステリスクがついて区別できるようになっています。
8240 \end_layout
8241
8242 \begin_layout Enumerate
8243 amsart-seq: これは節番号なしで各々のタイプの文には通し番号がつけられます。また多くの(すべてではありませんが)環境には番号がつかないバージョンもあり
8244 ます。番号をつけないことも時折必要となるでしょう。番号のつかない環境は最後にアステリスクがついて区別できるようになっています。
8245 \end_layout
8246
8247 \begin_layout Enumerate
8248 amsart-plain: すべての環境に番号がつかない、より簡潔なレイアウトです。
8249 \end_layout
8250
8251 \begin_layout Enumerate
8252 amsbook: 標準的な AMSの本(実際にはモノグラフですが)用のフォーマットです。番号付は amsartの場合と似ていますが、
8253 \begin_inset Formula $(n.m.p)$
8254 \end_inset
8255
8256 という形です。最初の番号は章を表し、2番目の番号は節を表していて、3番目の番号は節内の何番目の結果(Theorems、Corollaries、Propositi
8257 ons、Definitions、Remarks等)なのかを表しています。また多くの(すべてではありませんが)環境には番号がつかないバージョンもあります。番号をつ
8258 けないことも時折必要となるでしょう。番号のつかない環境は最後にアステリスクがついて区別できるようになっています。
8259 \end_layout
8260
8261 \begin_layout Standard
8262 すべての ams LyXファイルはどちらの番号付の方法を使うかを 
8263 \family sans
8264 \bar under
8265 L
8266 \bar default
8267 ayout\SpecialChar \menuseparator
8268
8269 \bar under
8270 D
8271 \bar default
8272 ocument
8273 \family default
8274 ダイアログから簡単に変えることができます。
8275 \end_layout
8276
8277 \begin_layout Subsection
8278 レイアウトに含まれるもの
8279 \end_layout
8280
8281 \begin_layout Standard
8282 これらのレイアウトは実に多くの環境を用意しています。ほとんどの数学論文、本ではこれらの環境のほとんどは特別な文として設定されています。また AMS
8283  LaTeXを使えば無制限にこのような宣言を増やしていくことができます。しかし AMSは LyXで使うことのできる環境を使うのを推奨しています。(標準的な
8284  
8285 \family sans
8286 sections、bibliography、title、author、date
8287 \family default
8288 を除いた)使うことのできる環境は次のものです。
8289 \end_layout
8290
8291 \begin_layout Description
8292 Theorem 定理。これは典型的には主な結果を表す文に使います。はじめに 
8293 \family sans
8294 Theorem
8295 \family default
8296 という言葉がボルドタイプであらわれ、それに自動的に番号がつきます(番号のつかない 
8297 \family sans
8298 Theorem*
8299 \family default
8300 もあります)。テキストはイタリックになります。
8301 \end_layout
8302
8303 \begin_layout Description
8304 Corollary これはその前の結果から直接導ける結果を表すのに使います。これも主な結果になることができます。番号がつかない 
8305 \family sans
8306 Corollary*
8307 \family default
8308 も使うことができます。
8309 \end_layout
8310
8311 \begin_layout Description
8312 Lemma 他の結果を導くためのより小さな結果です。
8313 \end_layout
8314
8315 \begin_layout Description
8316 Proposition 議論している理論に(希望的には)何かを付け加えるより弱い結果です。
8317 \end_layout
8318
8319 \begin_layout Description
8320 Conjecture 正当化することなしに与えられた文。作者はどうやって証明したらいいか分からないが、正しいと(少なくとも作者にとっては)思えるものです。
8321 \end_layout
8322
8323 \begin_layout Description
8324 Criterion 必要とされる条件です。
8325 \end_layout
8326
8327 \begin_layout Description
8328 Algorithm 使うことのできる一般的な手続きです。
8329 \end_layout
8330
8331 \begin_layout Description
8332 Axiom 議論しているシステムの中では真だとされる性質、文です。
8333 \end_layout
8334
8335 \begin_layout Description
8336 Definition 定義。画面上でも紙の上でも今まで説明してきた環境とは違うフォントが使われます。見出し(
8337 \begin_inset Quotes eld
8338 \end_inset
8339
8340 definition
8341 \begin_inset Quotes erd
8342 \end_inset
8343
8344 )はまだボルドフェイスですが、テキストはイタリックでなく、直立した文字になります。
8345 \end_layout
8346
8347 \begin_layout Description
8348 Example 例。Definitionと同じようにタイプセットされます。
8349 \end_layout
8350
8351 \begin_layout Description
8352 Condition
8353 \end_layout
8354
8355 \begin_layout Description
8356 Problem
8357 \end_layout
8358
8359 \begin_layout Description
8360 Exercise
8361 \end_layout
8362
8363 \begin_layout Description
8364 Remark この環境も新しい定理型です。これは Remarkという言葉をイタリックで、後の部分を直立した文字にします。
8365 \end_layout
8366
8367 \begin_layout Description
8368 Note Remark環境と同じように設定します。
8369 \end_layout
8370
8371 \begin_layout Description
8372 Notation
8373 \end_layout
8374
8375 \begin_layout Description
8376 Claim
8377 \end_layout
8378
8379 \begin_layout Description
8380 Summary
8381 \end_layout
8382
8383 \begin_layout Description
8384 Acknowledgement
8385 \end_layout
8386
8387 \begin_layout Description
8388 Case 一般に長い議論をいくつかの特定の場合に分けるのに使います。この環境の番号の付け方はこの環境だけのもので、他の環境とは関係のないものになります。
8389 \end_layout
8390
8391 \begin_layout Description
8392 Conclusion
8393 \end_layout
8394
8395 \begin_layout Description
8396 Fact 
8397 \end_layout
8398
8399 \begin_layout Description
8400 Proof 
8401 \shape italic
8402 Proof
8403 \shape default
8404 という言葉がイタリックになり、残りの部分は直立した文字になります。この環境の最後には(もちろん他の環境をネストできます)、QEDのシンボル(普通は四角ですがスタ
8405 イルによって変わります)が置かれます。
8406 \end_layout
8407
8408 \begin_layout Description
8409 Address これは著者の(半)永久的な住所です。
8410 \end_layout
8411
8412 \begin_layout Description
8413 Current 現住所。
8414 \end_layout
8415
8416 \begin_layout Description
8417 Email 著者の e-mailアドレス
8418 \end_layout
8419
8420 \begin_layout Description
8421 URL 著者の Webアドレス、任意。
8422 \end_layout
8423
8424 \begin_layout Description
8425 Keywords 論文で議論するトピックスを特定するためのキーワード、フレーズ。
8426 \end_layout
8427
8428 \begin_layout Description
8429 Subjectclass 
8430 \emph on
8431 Mathematical Reviews
8432 \emph default
8433 で説明され、公表されている AMS Subject Classificationsでの分類番号。これらは前に紹介した AMSサイトでもオンラインで利用可能。
8434 \end_layout
8435
8436 \begin_layout Description
8437 Thanks
8438 \end_layout
8439
8440 \begin_layout Description
8441 Dedicatory
8442 \end_layout
8443
8444 \begin_layout Description
8445 Translator
8446 \end_layout
8447
8448 \begin_layout Standard
8449 これらの環境は自動的に AMS-LaTeXと AMSフォントパッケージを用意してくれます。したがってこれらの環境を使うにはこれらのパッケージがインストールされて
8450 いる必要があります。
8451 \end_layout
8452
8453 \begin_layout Section
8454 AGU学術誌(
8455 \family sans
8456 aguplus)
8457 \end_layout
8458
8459 \begin_layout Standard
8460 \begin_inset Flex CharStyle:Noun
8461 status collapsed
8462
8463 \begin_layout Plain Layout
8464 Martin Vermeer
8465 \end_layout
8466
8467 \end_inset
8468
8469
8470 \end_layout
8471
8472 \begin_layout Subsection
8473 概要
8474 \end_layout
8475
8476 \begin_layout Standard
8477 これは American Geophysical Society のいくつかの学術雑誌用のレイアウトファイルです。これを使うには、AGUのクラスファイルと
8478  AGU plus がインストールされている必要があります(これらのファイルは 
8479 \begin_inset Flex URL
8480 status collapsed
8481
8482 \begin_layout Plain Layout
8483
8484 ftp://ftp.agu.org/journals/latex/journals
8485 \end_layout
8486
8487 \end_inset
8488
8489 で手にいれることができます)。
8490 \end_layout
8491
8492 \begin_layout Subsection
8493 新しいスタイル
8494 \end_layout
8495
8496 \begin_layout Standard
8497
8498 \family sans
8499 Paragraph
8500 \family default
8501 と 
8502 \family sans
8503 Paragraph*
8504 \family default
8505 が再定義されています。LyXの画面では 
8506 \family sans
8507 Paragraph
8508 \family default
8509 、 
8510 \family sans
8511 Paragraph*
8512 \family default
8513 と呼ばれていますが、AGUクラスのLaTeXで対応するものは 
8514 \family sans
8515 Subsubsubsection
8516 \family default
8517 と 
8518 \family sans
8519 Subsubsubsection*
8520 \family default
8521 です。
8522 \end_layout
8523
8524 \begin_layout Standard
8525 新しく定義されたスタイルは、
8526 \family sans
8527 Left_Header
8528 \family default
8529
8530 \family sans
8531 Right_Header
8532 \family default
8533
8534 \family sans
8535 Received
8536 \family default
8537
8538 \family sans
8539 Revised
8540 \family default
8541
8542 \family sans
8543 Accepted
8544 \family default
8545
8546 \family sans
8547 CCC
8548 \family default
8549
8550 \family sans
8551 PaperId
8552 \family default
8553
8554 \family sans
8555 AuthorAddr
8556 \family default
8557
8558 \family sans
8559 SlugComment
8560 \family default
8561  です。これらは論文の属性で、AGUクラスの取扱説明書で定義されているものです。
8562 \end_layout
8563
8564 \begin_layout Standard
8565 おそらく、これはまだ完全ではありません。
8566 \end_layout
8567
8568 \begin_layout Subsection
8569 新しいフロート
8570 \end_layout
8571
8572 \begin_layout Standard
8573
8574 \family sans
8575 Planotable
8576 \family default
8577 と 
8578 \family sans
8579 Plate
8580 \family default
8581 です。また、新しい 
8582 \family sans
8583 Table_Caption
8584 \family default
8585 も用意されています。
8586 \end_layout
8587
8588 \begin_layout Subsection
8589 サポートされているジャーナル
8590 \end_layout
8591
8592 \begin_layout Itemize
8593
8594 \emph on
8595 Journal of Geophysical Research
8596 \emph default
8597
8598 \family typewriter
8599 jgrga.layout
8600 \family default
8601  --- Martin Vermeer
8602 \end_layout
8603
8604 \begin_layout Standard
8605 あなた自身のレイアウトファイルをつくってください。難しくはありません。
8606 \family typewriter
8607 jgrga.layout
8608 \family default
8609 と 
8610 \family typewriter
8611 aguplus.inc
8612 \family default
8613 を例として見てください。
8614 \end_layout
8615
8616 \begin_layout Subsection
8617 バグと注意すべきこと
8618 \end_layout
8619
8620 \begin_layout Standard
8621 新しいレイアウトを使うために、新しい文章をつくるたびに次のことをする必要があります。
8622 \end_layout
8623
8624 \begin_layout Enumerate
8625
8626 \emph on
8627 babelを無効にしてください。
8628 \family sans
8629 \emph default
8630 layout\SpecialChar \menuseparator
8631 document
8632 \family default
8633  か 
8634 \family sans
8635 document\SpecialChar \menuseparator
8636 settings
8637 \family default
8638  メニューアイテムを使います(AGUに投稿できるのは英語だけです。他の言語は選ばないで下さい)。
8639 \end_layout
8640
8641 \begin_layout Enumerate
8642 Enter 
8643 \family typewriter
8644 jgrga
8645 \family default
8646  into the document's 
8647 \family sans
8648 Extra Options
8649 \family default
8650  field.
8651  (Yes, this is a bug.)
8652 \end_layout
8653
8654 \begin_layout Enumerate
8655 文章の 
8656 \family sans
8657 Extra Options
8658 \family default
8659 フィールドに 
8660 \family typewriter
8661 jgrga
8662 \family default
8663  と入力してください(すいません。これはバグです)。
8664 \end_layout
8665
8666 \begin_layout Enumerate
8667 参照文献のスタイルに 
8668 \family typewriter
8669 agu.bst
8670 \family default
8671  を使ってください。BibTeX インセットの2番目のフィールドに 
8672 \family sans
8673 agu
8674 \family default
8675  と入力します。通常の参考文献のスタイルは使わないでください。
8676 \end_layout
8677
8678 \begin_layout Section
8679 Broadway
8680 \end_layout
8681
8682 \begin_layout Standard
8683 \begin_inset Flex CharStyle:Noun
8684 status collapsed
8685
8686 \begin_layout Plain Layout
8687 Garst Reese
8688 \end_layout
8689
8690 \end_inset
8691
8692
8693 \end_layout
8694
8695 \begin_layout Subsection
8696 はじめに
8697 \end_layout
8698
8699 \begin_layout Standard
8700 Broadwayは演劇を書くためのものです。フォーマットは Hollywoodよりも装飾的で、それほど標準化されていません。このフォーマットはワークショップに向
8701 いているでしょう。
8702 \end_layout
8703
8704 \begin_layout Subsection
8705 特別な問題
8706 \end_layout
8707
8708 \begin_layout Standard
8709 Hollywoodと同じです。
8710 \end_layout
8711
8712 \begin_layout Subsection
8713 特別の機能
8714 \end_layout
8715
8716 \begin_layout Standard
8717
8718 \family sans
8719 Speaker
8720 \family default
8721 の名前はラベルとして挿入でき、それ以降はラベルを相互参照で参照して 
8722 \family sans
8723 Speaker
8724 \family default
8725 の名前を挿入できます。相互参照ダイアログには登場人物の現在の配役が表示されます。
8726 \end_layout
8727
8728 \begin_layout Subsection
8729 用紙サイズと余白
8730 \end_layout
8731
8732 \begin_layout Standard
8733 USレターサイズで、余白は左 1.6インチ、右 0.75インチ、上 0.5インチ、下 0.75インチ。
8734 \end_layout
8735
8736 \begin_layout Subsection
8737 環境
8738 \end_layout
8739
8740 \begin_layout Standard
8741 次の環境を使うことができます。環境の右に書いてあるキーバインドは broadway.bindを使った場合のものです。
8742 \end_layout
8743
8744 \begin_layout Itemize
8745
8746 \family sans
8747 Standard
8748 \begin_inset Newline newline
8749 \end_inset
8750
8751
8752 \family default
8753 これは使わない方がいいのですが、他の環境が使えない場合のために用意してあります。
8754 \end_layout
8755
8756 \begin_layout Itemize
8757
8758 \family sans
8759 Narrative
8760 \begin_inset space \hfill{}
8761 \end_inset
8762
8763 M-z n
8764 \begin_inset Newline newline
8765 \end_inset
8766
8767
8768 \family default
8769 舞台の設定と動きの説明に使います。すべて大文字で話し手の名前をはじめに書きます。
8770 \end_layout
8771
8772 \begin_layout Itemize
8773
8774 \family sans
8775 ACT
8776 \begin_inset space \hfill{}
8777 \end_inset
8778
8779 M-z a
8780 \begin_inset Newline newline
8781 \end_inset
8782
8783
8784 \family default
8785 自動的に番号が付きます。番号は画面上ではアラビア数字ですが、ローマ数字で印刷されます。
8786 \end_layout
8787
8788 \begin_layout Itemize
8789
8790 \family sans
8791 ACT*
8792 \begin_inset space \hfill{}
8793 \end_inset
8794
8795 M-z S at
8796 \begin_inset Newline newline
8797 \end_inset
8798
8799
8800 \family default
8801 ACTのための副題です。ただの中央に置かれたテキストです。
8802 \end_layout
8803
8804 \begin_layout Itemize
8805
8806 \family sans
8807 SCENE
8808 \begin_inset space \hfill{}
8809 \end_inset
8810
8811 M-z S-S
8812 \begin_inset Newline newline
8813 \end_inset
8814
8815
8816 \family default
8817 自動的には番号が付きません。自分で番号を付けてください。これは私がどうすればいいかが分からなかったためです。
8818 \end_layout
8819
8820 \begin_layout Itemize
8821
8822 \family sans
8823 AT_RISE:
8824 \begin_inset space \hfill{}
8825 \end_inset
8826
8827 M-z S-R
8828 \begin_inset Newline newline
8829 \end_inset
8830
8831
8832 \family default
8833 カーテンが上がるときの舞台と動きの設定を説明する Narrativeの特殊ケースです。
8834 \end_layout
8835
8836 \begin_layout Itemize
8837
8838 \family sans
8839 Speaker
8840 \begin_inset space \hfill{}
8841 \end_inset
8842
8843 M-z s
8844 \begin_inset Newline newline
8845 \end_inset
8846
8847
8848 \family default
8849 話し手(役者)の肩書き、すべて大文字で中央に置きます。
8850 \end_layout
8851
8852 \begin_layout Itemize
8853
8854 \family sans
8855 Parenthetical
8856 \begin_inset space \hfill{}
8857 \end_inset
8858
8859 M-z p
8860 \begin_inset Newline newline
8861 \end_inset
8862
8863
8864 \family default
8865 話し手への指示。括弧が自動的に挿入されます。画面上には左括弧 ( だけが表示されますが、印刷したものには右括弧も表示されています。この環境は 
8866 \family sans
8867 Dialogue
8868 \family default
8869 の中だけで使われます。 
8870 \end_layout
8871
8872 \begin_layout Itemize
8873
8874 \family sans
8875 Dialogue
8876 \begin_inset space \hfill{}
8877 \end_inset
8878
8879 M-z d
8880 \begin_inset Newline newline
8881 \end_inset
8882
8883
8884 \family default
8885 話し手が言うこと。
8886 \end_layout
8887
8888 \begin_layout Itemize
8889
8890 \family sans
8891 CURTAIN
8892 \begin_inset space \hfill{}
8893 \end_inset
8894
8895 M-z S-C
8896 \begin_inset Newline newline
8897 \end_inset
8898
8899
8900 \family default
8901 カーテンが降ります。
8902 \end_layout
8903
8904 \begin_layout Itemize
8905
8906 \family sans
8907 Title
8908 \begin_inset space \hfill{}
8909 \end_inset
8910
8911 M-z S-T
8912 \end_layout
8913
8914 \begin_layout Itemize
8915
8916 \family sans
8917 Author
8918 \begin_inset space \hfill{}
8919 \end_inset
8920
8921 M-z S-A
8922 \end_layout
8923
8924 \begin_layout Itemize
8925
8926 \family sans
8927 Right_Address
8928 \begin_inset space \hfill{}
8929 \end_inset
8930
8931 M-z r
8932 \end_layout
8933
8934 \begin_layout Section
8935 Dinbrief
8936 \end_layout
8937
8938 \begin_layout Standard
8939
8940 \family sans
8941 dinbrief
8942 \family default
8943 文書クラスはドイツの慣例に従って手紙を書くのに使います。テンプレートファイルは 
8944 \family typewriter
8945 .../lyx/share/templates
8946 \family default
8947 にあるので、それを出発点に使ってください。
8948 \end_layout
8949
8950 \begin_layout Section
8951 EGS学術誌
8952 \family sans
8953 (egs)
8954 \end_layout
8955
8956 \begin_layout Standard
8957 \begin_inset Flex CharStyle:Noun
8958 status collapsed
8959
8960 \begin_layout Plain Layout
8961 Martin Vermeer
8962 \end_layout
8963
8964 \end_inset
8965
8966
8967 \end_layout
8968
8969 \begin_layout Subsection
8970 概要
8971 \end_layout
8972
8973 \begin_layout Standard
8974 これは European Geophysical Societyの学術雑誌用のレイアウトファイルです。
8975 \family typewriter
8976 egs.cls
8977 \family default
8978 が必要で、これは EGS のwebサイト 
8979 \begin_inset Flex URL
8980 status collapsed
8981
8982 \begin_layout Plain Layout
8983
8984 www.copernicus.org
8985 \end_layout
8986
8987 \end_inset
8988
8989 でダウンロードできます。
8990 \end_layout
8991
8992 \begin_layout Subsection
8993 新しいスタイル
8994 \end_layout
8995
8996 \begin_layout Standard
8997
8998 \family sans
8999 Right_address、Latex_Title、Affil、Journal、msnumber、FirstAuthor、Received、Accepted
9000 \family default
9001
9002 \family sans
9003 Offsets
9004 \family default
9005 。残念ながら現在のレイアウトファイルはほとんどモジュール化されていません。もっとさまざまな 
9006 \family typewriter
9007 std*.inc
9008 \family default
9009 ファイルを読み込むようにした方がいいと思われます。
9010 \end_layout
9011
9012 \begin_layout Section
9013 Elsevier学術誌
9014 \end_layout
9015
9016 \begin_layout Standard
9017 \begin_inset Flex CharStyle:Noun
9018 status collapsed
9019
9020 \begin_layout Plain Layout
9021 Rod Pinna
9022 \end_layout
9023
9024 \end_inset
9025
9026
9027 \end_layout
9028
9029 \begin_layout Standard
9030 Elsevier Science Publishers B.V.
9031  は出版している色々なジャーナルに論文を投稿するための標準的な LaTeX の文書クラス(
9032 \family typewriter
9033 elsart.cls
9034 \family default
9035 )を
9036 \begin_inset Flex URL
9037 status collapsed
9038
9039 \begin_layout Plain Layout
9040
9041 http://authors.elsevier.com/
9042 \end_layout
9043
9044 \end_inset
9045
9046 に用意しています。説明書、著者への注意などはクラスファイルとともに用意されています。LyX にはこの文書クラスを使うためのレイアウトとテンプレートファイルが含ま
9047 れています。このパッケージのインストールのやり方は他の LaTeXパッケージと同じです。Elsevier の説明書を見てください。
9048 \end_layout
9049
9050 \begin_layout Standard
9051
9052 \family typewriter
9053 elsart.cls
9054 \family default
9055 を使うために、レイアウトファイル 
9056 \family typewriter
9057 elsart.layout
9058 \family default
9059 が用意されています。Elsevierのクラスファイルは主に標準的な 
9060 \family typewriter
9061 article
9062 \family default
9063  クラスをもとにしていて通常の機能はそのまま使えます。また、AMSの環境に似た多くの数式環境を定義しています。これらのコマンドはすべて Elsevier
9064  の説明書に書いてあり、LyXで使うことができます。
9065 \end_layout
9066
9067 \begin_layout Standard
9068 Elsevier スタイルを使う一番簡単な方法は、LyXに含まれているテンプレートファイルを使うことでしょう。fancy headingsや geometry
9069  パッケージをオプションで使って、Elsevier自身がスタイルファイルで定義している要素を変えないで下さい。Elsevier が説明書で使うように求めているパ
9070 ッケージ以外は使わないのが一番です。基本的に、Elsevier はできるだけクリーンな LaTeXファイルを求めています。彼らは投稿されたファイルのクラスファイ
9071 ルを投稿された雑誌のクラスファイルに入れ替えます。つまり、文章を書くときにフォーマットに凝るなということです。凝ったとしても、発行されるときにはその効果は消えて
9072 います。それ以外のこのレイアウトの使い方は標準の article クラスとほとんど同じです。Elsevierが何を許して、何を許さないのかの詳細は
9073  Elsevier の説明書を読んでください。
9074 \end_layout
9075
9076 \begin_layout Section
9077 Foils(別名FoilTEX)
9078 \begin_inset CommandInset label
9079 LatexCommand label
9080 name "sec:foiltex"
9081
9082 \end_inset
9083
9084
9085 \end_layout
9086
9087 \begin_layout Standard
9088 \begin_inset Flex CharStyle:Noun
9089 status collapsed
9090
9091 \begin_layout Plain Layout
9092 Allan Rae
9093 \end_layout
9094
9095 \end_inset
9096
9097
9098 \end_layout
9099
9100 \begin_layout Subsection
9101 はじめに
9102 \end_layout
9103
9104 \begin_layout Standard
9105 この節では オーバヘッドプロジェクタ用のスライドを作るのに LyXをどう使えばいいのかを説明しています。スライドを作るための文書クラスは2つあります。既定の
9106  slidesクラスと 
9107 \family sans
9108 Foil
9109 \family default
9110 TeX slidesクラスです。この節では後者のみを説明します。
9111 \end_layout
9112
9113 \begin_layout Standard
9114 もう一度、はっきりと言っておきます。
9115 \end_layout
9116
9117 \begin_layout Standard
9118 \begin_inset VSpace bigskip
9119 \end_inset
9120
9121
9122 \end_layout
9123
9124 \begin_layout Standard
9125 \align center
9126
9127 \size large
9128 \emph on
9129 この節は
9130 \emph default
9131  
9132 \begin_inset Quotes eld
9133 \end_inset
9134
9135
9136 \family sans
9137 slides (FoilTeX)
9138 \family default
9139
9140 \begin_inset Quotes erd
9141 \end_inset
9142
9143
9144 \emph on
9145 クラスのみを説明します。
9146 \end_layout
9147
9148 \begin_layout Standard
9149 \begin_inset VSpace bigskip
9150 \end_inset
9151
9152
9153 \end_layout
9154
9155 \begin_layout Standard
9156 もし、
9157 \family sans
9158 slides (default)
9159 \family default
9160 の説明を探しているのなら、セクション 
9161 \begin_inset CommandInset ref
9162 LatexCommand ref
9163 reference "sec:slitex"
9164
9165 \end_inset
9166
9167 を見てください。もしあなたのコンピュータに 
9168 \family sans
9169 foils
9170 \family default
9171 クラス 
9172 \family sans
9173 (slides (FoilTeX))がインストールされていなければ、既定の slidesクラスを使わなければならないでしょう。けれどもそれは foilsほどよく
9174 はありません。
9175 \end_layout
9176
9177 \begin_layout Standard
9178
9179 \family sans
9180 foils
9181 \family default
9182 クラスは LaTeXクラスファイル 
9183 \family sans
9184 foils.cls
9185 \family default
9186 のバージョン 2.1と使うように作られています。この LaTeXクラスファイルは、LaTeX2eに対応しています。
9187 \end_layout
9188
9189 \begin_layout Subsection
9190 はじめに
9191 \end_layout
9192
9193 \begin_layout Standard
9194 この文書クラスを使うには、いうまでもありませんが 
9195 \family sans
9196 Document
9197 \begin_inset space ~
9198 \end_inset
9199
9200 Layout
9201 \family default
9202 ダイアログの 
9203 \family sans
9204 \bar under
9205 C
9206 \bar default
9207 lass
9208 \family default
9209 エントリから 
9210 \family sans
9211 slides (FoilTeX)
9212 \family default
9213 を選択する必要があります。また、このクラスに特有のいくつかの 
9214 \family sans
9215 Document
9216 \begin_inset space ~
9217 \end_inset
9218
9219 Layout
9220 \family default
9221 ダイアログの設定があります。
9222 \end_layout
9223
9224 \begin_layout Itemize
9225
9226 \family sans
9227 Document
9228 \family default
9229 ダイアログの 
9230 \family sans
9231 Sides
9232 \family default
9233 と 
9234 \family sans
9235 Columns
9236 \family default
9237 のオプションは変更しないでください。これらは 
9238 \family sans
9239 foils
9240 \family default
9241 クラスでは無視されます。
9242 \end_layout
9243
9244 \begin_layout Itemize
9245 既定のフォントサイズは 20ptです。オプションで 17pt、25pt、30ptが選べます。
9246 \end_layout
9247
9248 \begin_layout Itemize
9249 既定のフォントは 
9250 \family sans
9251 sans
9252 \family default
9253  
9254 \family sans
9255 serif
9256 \family default
9257 です。ただし、すべての数式は通常のローマンフォントが使われます。
9258 \end_layout
9259
9260 \begin_layout Itemize
9261
9262 \family sans
9263 Foil
9264 \family default
9265 TeXがサポートする紙のサイズは A4、レターサイズ、それと 35mmスライド用のサイズです。A5、B5、legal、executiveペーパーサイズは使えませ
9266 ん。
9267 \end_layout
9268
9269 \begin_layout Itemize
9270
9271 \family sans
9272 Float Placement
9273 \family default
9274 の設定は変えても無視されますので、変えないでください。すべてのフロートはテキストで定義された位置にあらわれます。
9275 \end_layout
9276
9277 \begin_layout Itemize
9278 このクラスでは 
9279 \family sans
9280 \bar under
9281 P
9282 \bar default
9283 agestyle
9284 \family default
9285 の設定が少し違います。
9286 \family sans
9287 Foil
9288 \family default
9289 TeXではユーザが定義するロゴを含めて、フッタとへッダに色々な設定ができます。詳しくはセクション
9290 \begin_inset space ~
9291 \end_inset
9292
9293
9294 \begin_inset CommandInset ref
9295 LatexCommand ref
9296 reference "sec:foilfoot"
9297
9298 \end_inset
9299
9300 を見てください。タイトルページは他のページと扱いが違い、常にページ番号がつかず、また(ロゴが定義されていれば)ページの下の中心にロゴが表示されます。使うことので
9301 きるページスタイルは次の通りです。
9302 \end_layout
9303
9304 \begin_deeper
9305 \begin_layout Labeling
9306 \labelwidthstring MMMMMMM
9307
9308 \family sans
9309 \series bold
9310 empty
9311 \family default
9312 \series default
9313  最終的なアウトプットにページ番号も他のへッダ、フッタも印刷されません(もちろん脚注は印刷されます)。
9314 \end_layout
9315
9316 \begin_layout Labeling
9317 \labelwidthstring MMMMMMM
9318
9319 \family sans
9320 \series bold
9321 plain
9322 \family default
9323 \series default
9324  ページ番号が一番下の中心につきます。他のへッダ、フッタは表示されません。
9325 \end_layout
9326
9327 \begin_layout Labeling
9328 \labelwidthstring MMMMMMM
9329
9330 \series bold
9331 foilheadings
9332 \series default
9333  ページ番号が右下につきます。他のへッダ、フッタも表示されます。これが既定です。
9334 \end_layout
9335
9336 \begin_layout Labeling
9337 \labelwidthstring MMMMMMM
9338
9339 \series bold
9340 fancy
9341 \series default
9342  
9343 \family sans
9344 fancyheadings
9345 \family default
9346 パッケージを使えるようにします。ただし 
9347 \family sans
9348 Foil
9349 \family default
9350 TeXの作者はページレイアウトが変になる可能性があるので、
9351 \family sans
9352 fancyheadings
9353 \family default
9354 は使わないように言っています。
9355 \end_layout
9356
9357 \end_deeper
9358 \begin_layout Subsubsection
9359 Extra Options
9360 \end_layout
9361
9362 \begin_layout Standard
9363 次のオプションは 
9364 \family sans
9365 Document
9366 \family default
9367 ダイアログの 
9368 \family sans
9369 Extra
9370 \family default
9371 ボックスで使うことができます。
9372 \end_layout
9373
9374 \begin_layout Labeling
9375 \labelwidthstring MMMMMMx
9376
9377 \series bold
9378 35mmSlide
9379 \series default
9380  これは 縦7.33インチ、横11インチの用紙用にページレイアウトを行います。この縦横の比率は35mmスライドと同じで、このオプションを使えば35mmスライドが作
9381 りやすくなります。
9382 \end_layout
9383
9384 \begin_layout Labeling
9385 \labelwidthstring MMMMMMx
9386
9387 \series bold
9388 headrule
9389 \series default
9390  タイトルページを除くすべてのページのへッダの下に横線を入れます。
9391 \end_layout
9392
9393 \begin_layout Labeling
9394 \labelwidthstring MMMMMMx
9395
9396 \series bold
9397 footrule
9398 \series default
9399  タイトルページを除くすべてのページのフッタの上に横線を入れます。
9400 \end_layout
9401
9402 \begin_layout Labeling
9403 \labelwidthstring MMMMMMx
9404
9405 \series bold
9406 dvips
9407 \series default
9408  これは新しい 
9409 \family sans
9410 foils
9411 \family default
9412 の文章を作るごとに自動的に設定されます。このオプションは landscapeに設定されたスライドを回転させるのに dvipsドライバを使うように設定しています。
9413 \end_layout
9414
9415 \begin_layout Labeling
9416 \labelwidthstring MMMMMMx
9417
9418 \series bold
9419 landscape
9420 \series default
9421  このオプションは用紙の寸法を landscapeページ用に変えるだけで回転はさせません。そのためこのオプションを使う場合は各ページを回転させる外部プログラムを
9422 使うか、プリンタに landscapeの方向で給紙する必要があります。このオプションはまた 
9423 \family sans
9424 Foilhead
9425 \family default
9426  と 
9427 \family sans
9428 Rotatefoilhead
9429 \family default
9430 環境の役割を入れ替えることに注意してください(これらの環境については次の節で説明します)。
9431 \end_layout
9432
9433 \begin_layout Labeling
9434 \labelwidthstring MMMMMMx
9435
9436 \series bold
9437 leqno
9438 \series default
9439  数式番号を左側につけます。
9440 \end_layout
9441
9442 \begin_layout Labeling
9443 \labelwidthstring MMMMMMx
9444
9445 \series bold
9446 fleqn
9447 \series default
9448  数式を左に揃えます。
9449 \end_layout
9450
9451 \begin_layout Subsection
9452 サポートされる環境
9453 \end_layout
9454
9455 \begin_layout Standard
9456 他のクラスで標準的にサポートされている環境は、
9457 \family sans
9458 foils
9459 \family default
9460 クラスでもサポートされています。それ以外に 
9461 \family sans
9462 Foil
9463 \family default
9464 TeXが提供している環境と、いくつかの LyXで付け加えられた環境もサポートしています。次の環境は 
9465 \family sans
9466 foils
9467 \family default
9468 クラスでサポートされている環境の中で、他のクラスでもサポートされている環境です。
9469 \end_layout
9470
9471 \begin_layout Standard
9472 \begin_inset ERT
9473 status collapsed
9474
9475 \begin_layout Plain Layout
9476
9477
9478 \backslash
9479 begin{multicols}{2}
9480 \end_layout
9481
9482 \end_inset
9483
9484
9485 \end_layout
9486
9487 \begin_layout Itemize
9488
9489 \family sans
9490 Standard
9491 \end_layout
9492
9493 \begin_layout Itemize
9494
9495 \family sans
9496 Itemize
9497 \end_layout
9498
9499 \begin_layout Itemize
9500
9501 \family sans
9502 Enumerate
9503 \end_layout
9504
9505 \begin_layout Itemize
9506
9507 \family sans
9508 Description
9509 \end_layout
9510
9511 \begin_layout Itemize
9512
9513 \family sans
9514 List
9515 \end_layout
9516
9517 \begin_layout Itemize
9518
9519 \family sans
9520 LyX-Code
9521 \end_layout
9522
9523 \begin_layout Itemize
9524
9525 \family sans
9526 Verse
9527 \end_layout
9528
9529 \begin_layout Itemize
9530
9531 \family sans
9532 Quote
9533 \end_layout
9534
9535 \begin_layout Itemize
9536
9537 \family sans
9538 Quotation
9539 \end_layout
9540
9541 \begin_layout Itemize
9542
9543 \family sans
9544 Title
9545 \end_layout
9546
9547 \begin_layout Itemize
9548
9549 \family sans
9550 Author
9551 \end_layout
9552
9553 \begin_layout Itemize
9554
9555 \family sans
9556 Date
9557 \end_layout
9558
9559 \begin_layout Itemize
9560
9561 \family sans
9562 Abstract
9563 \end_layout
9564
9565 \begin_layout Itemize
9566
9567 \family sans
9568 Bibliography
9569 \end_layout
9570
9571 \begin_layout Itemize
9572
9573 \family sans
9574 Address
9575 \end_layout
9576
9577 \begin_layout Itemize
9578
9579 \family sans
9580 RightAddress
9581 \end_layout
9582
9583 \begin_layout Itemize
9584
9585 \family sans
9586 Caption
9587 \end_layout
9588
9589 \begin_layout Itemize
9590
9591 \family sans
9592 Comment
9593 \end_layout
9594
9595 \begin_layout Standard
9596 \begin_inset ERT
9597 status collapsed
9598
9599 \begin_layout Plain Layout
9600
9601
9602 \backslash
9603 end{multicols}
9604 \end_layout
9605
9606 \end_inset
9607
9608
9609 \end_layout
9610
9611 \begin_layout Standard
9612 節の環境を除くと、すべての主な環境がサポートされているのがわかるでしょう。基本的には一枚のスライドに1つの節が(見出しも本文も)含まれるので、
9613 \family sans
9614 Foil
9615 \family default
9616 TeXは新しいスライドを始めるいくつかのコマンドを用意しています。それを以下に書いておきます。
9617 \end_layout
9618
9619 \begin_layout Itemize
9620
9621 \family sans
9622 Foilhead
9623 \end_layout
9624
9625 \begin_layout Itemize
9626
9627 \family sans
9628 Rotatefoilhead
9629 \end_layout
9630
9631 \begin_layout Standard
9632 LyXはこれらを少し変えた環境を用意しています。それらは、
9633 \end_layout
9634
9635 \begin_layout Itemize
9636
9637 \family sans
9638 ShortFoilhead
9639 \end_layout
9640
9641 \begin_layout Itemize
9642
9643 \family sans
9644 ShortRotatefoilhead
9645 \end_layout
9646
9647 \begin_layout Standard
9648 で、違いは次の節で説明します。
9649 \end_layout
9650
9651 \begin_layout Standard
9652 スライドはしばしばアイデアを説明したり、新しい定理を説明したりするのに使われるので、
9653 \family sans
9654 Foil
9655 \family default
9656 TeXはそれらを説明するのに便利な色々な環境を用意しています。
9657 \end_layout
9658
9659 \begin_layout Standard
9660 \begin_inset ERT
9661 status collapsed
9662
9663 \begin_layout Plain Layout
9664
9665
9666 \backslash
9667 begin{multicols}{2}
9668 \end_layout
9669
9670 \end_inset
9671
9672
9673 \end_layout
9674
9675 \begin_layout Itemize
9676
9677 \family sans
9678 Theorem
9679 \end_layout
9680
9681 \begin_layout Itemize
9682
9683 \family sans
9684 Lemma
9685 \end_layout
9686
9687 \begin_layout Itemize
9688
9689 \family sans
9690 Corollary
9691 \end_layout
9692
9693 \begin_layout Itemize
9694
9695 \family sans
9696 Proposition
9697 \end_layout
9698
9699 \begin_layout Itemize
9700
9701 \family sans
9702 Definition
9703 \end_layout
9704
9705 \begin_layout Itemize
9706
9707 \family sans
9708 Proof
9709 \end_layout
9710
9711 \begin_layout Itemize
9712
9713 \family sans
9714 Theorem*
9715 \end_layout
9716
9717 \begin_layout Itemize
9718
9719 \family sans
9720 Lemma*
9721 \end_layout
9722
9723 \begin_layout Itemize
9724
9725 \family sans
9726 Corollary*
9727 \end_layout
9728
9729 \begin_layout Itemize
9730
9731 \family sans
9732 Proposition*
9733 \end_layout
9734
9735 \begin_layout Itemize
9736
9737 \family sans
9738 Definition*
9739 \end_layout
9740
9741 \begin_layout Standard
9742 \begin_inset ERT
9743 status collapsed
9744
9745 \begin_layout Plain Layout
9746
9747
9748 \backslash
9749 end{multicols}
9750 \end_layout
9751
9752 \end_inset
9753
9754
9755 \end_layout
9756
9757 \begin_layout Standard
9758 星印のついたバージョンは番号がつかず、星印のないバージョンは番号がつきます。それ以外に以下の LyXが追加した2つの箇条書きのための環境があります。
9759 \end_layout
9760
9761 \begin_layout Itemize
9762
9763 \family sans
9764 TickList
9765 \end_layout
9766
9767 \begin_layout Itemize
9768
9769 \family sans
9770 CrossList
9771 \end_layout
9772
9773 \begin_layout Standard
9774
9775 \family sans
9776 Foil
9777 \family default
9778 TeX には強力なヘッダとフッタ機能があります。これはプリアンブルで設定するのが一番いいのですが、文章中のどこででも設定できます。もし、文章中でこれらの設定を変
9779 えたい場合には、スライドの一番上、つまり foilhead のすぐ後ろがいいでしょう。
9780 \end_layout
9781
9782 \begin_layout Standard
9783 このためには、次のコマンドが使えます[
9784 \shape smallcaps
9785 Martin Vermeer
9786 \shape default
9787 ]:
9788 \end_layout
9789
9790 \begin_layout Standard
9791 \begin_inset ERT
9792 status collapsed
9793
9794 \begin_layout Plain Layout
9795
9796
9797 \backslash
9798 begin{multicols}{2}
9799 \end_layout
9800
9801 \end_inset
9802
9803
9804 \end_layout
9805
9806 \begin_layout Itemize
9807
9808 \family sans
9809 My
9810 \begin_inset space ~
9811 \end_inset
9812
9813 Logo
9814 \end_layout
9815
9816 \begin_layout Itemize
9817
9818 \family sans
9819 Restriction
9820 \end_layout
9821
9822 \begin_layout Itemize
9823
9824 \family sans
9825 Right
9826 \begin_inset space ~
9827 \end_inset
9828
9829 Footer
9830 \end_layout
9831
9832 \begin_layout Itemize
9833
9834 \family sans
9835 Right
9836 \begin_inset space ~
9837 \end_inset
9838
9839 Header
9840 \end_layout
9841
9842 \begin_layout Itemize
9843
9844 \family sans
9845 Left
9846 \begin_inset space ~
9847 \end_inset
9848
9849 Header
9850 \end_layout
9851
9852 \begin_deeper
9853 \begin_layout Standard
9854 \begin_inset space ~
9855 \end_inset
9856
9857
9858 \end_layout
9859
9860 \end_deeper
9861 \begin_layout Standard
9862 \begin_inset ERT
9863 status collapsed
9864
9865 \begin_layout Plain Layout
9866
9867
9868 \backslash
9869 end{multicols}
9870 \end_layout
9871
9872 \end_inset
9873
9874
9875 \end_layout
9876
9877 \begin_layout Standard
9878 これ以外にも LyXで直接サポートはいませんが 
9879 \family sans
9880 Foil
9881 \family default
9882 TeXが用意しているいくつかのコマンドがあります。これらについてはセクション 
9883 \begin_inset CommandInset ref
9884 LatexCommand ref
9885 reference "sec:unsuppfoils"
9886
9887 \end_inset
9888
9889 で説明します。
9890 \end_layout
9891
9892 \begin_layout Subsection
9893 一組のスライドを作る
9894 \end_layout
9895
9896 \begin_layout Standard
9897 この節は 色々な環境を使っての、一組のスライドの作り方を簡単に紹介します。例を見てみたい場合は 
9898 \family typewriter
9899 Foils.lyx
9900 \family default
9901 を見てみてください。
9902 \family sans
9903 \bar under
9904 F
9905 \bar default
9906 ile\SpecialChar \menuseparator
9907
9908 \bar under
9909 O
9910 \bar default
9911 pen
9912 \family default
9913 ダイアログの 
9914 \family sans
9915 Examples
9916 \family default
9917 ボタンから開くことができます。
9918 \end_layout
9919
9920 \begin_layout Subsubsection
9921 タイトルページ
9922 \end_layout
9923
9924 \begin_layout Standard
9925
9926 \family sans
9927 Title
9928 \family default
9929
9930 \family sans
9931 Author
9932 \family default
9933
9934 \family sans
9935 Date、Abstract
9936 \family default
9937 環境を使える他のクラスとは異なり、
9938 \family sans
9939 foils
9940 \family default
9941 は独立したタイトルページをつくります。もし 
9942 \family sans
9943 Date
9944 \family default
9945 環境を使わなかった場合には、LaTeXが今日の日付を挿入してくれます(アウトプットをつくった日付です)。
9946 \end_layout
9947
9948 \begin_layout Subsubsection
9949 新しいスライドを始める
9950 \end_layout
9951
9952 \begin_layout Standard
9953 前に書いたように、新しいスライドを始めるには4つの方法があります。ポートレイト(縦長)のスライドを始めるには 
9954 \family sans
9955 Foilhead
9956 \family default
9957 か を 
9958 \family sans
9959 ShortFoilhead
9960 \family default
9961 使わなければなりません。この2つの環境の違いはスライドのタイトルと本文の間の間隔です。
9962 \end_layout
9963
9964 \begin_layout Standard
9965 ランドスケープ方向(横長)のスライドをつくるには 
9966 \family sans
9967 Rotatefoilhead
9968 \family default
9969 か 
9970 \family sans
9971 ShortRotatefoilhead
9972 \family default
9973 環境を使います。この2つの環境の違いもタイトルと本文の間の間隔です。どちらの場合も Shortがついたバージョンはタイトルと本文の間が0.5インチ(約1.27cm)
9974 短くなります。
9975 \end_layout
9976
9977 \begin_layout Standard
9978 ランドスケープのスライドを作る場合の一つの問題は、
9979 \family typewriter
9980 dvips
9981 \family default
9982 ドライバをPostScript®出力するのに使うことです。さもないとスライドは回転しません。ただし、
9983 \family typewriter
9984 dvips
9985 \family default
9986 ドライバを持っていなくてもプリンタの給紙方向を変えることで、ランドスケープのスライドをつくることができます。
9987 \end_layout
9988
9989 \begin_layout Subsubsection
9990 Theorem、Lemma、Proof、その他
9991 \end_layout
9992
9993 \begin_layout Standard
9994 LyXの小さなバグのために、これらの環境のうちで同じ環境を続けて使うことができません。2つの同じ環境の間には何か別のものを入れる必要があります。もしこれらの中の
9995 環境で同じものを2つ続けて使うと、2つの環境がくっついて初めの環境が続く形になります。この問題を解決する方法は何かのテキストを2つの環境の間にいれる。または
9996  %だけの LaTeX環境をその2つの間に入れることです。これによって、ちゃんと2つの環境に別れるようになります。これの例が LyXディストリビューションに含ま
9997 れる 
9998 \family sans
9999 Foils.lyx
10000 \family default
10001 に入っています。この問題が起るのは theoremに似た環境のなかで同じものを2つ続けて使う場合だけです。
10002 \end_layout
10003
10004 \begin_layout Subsubsection
10005 箇条書き
10006 \end_layout
10007
10008 \begin_layout Standard
10009 他のクラスにもある箇条書きのための環境をサポートしているだけでなく、2つの新しい箇条書きのスタイルも使えます。この新しいスタイルをここで説明しましょう。他の箇条
10010 書きの環境について知りたければ
10011 \emph on
10012 ユーザーの手引き
10013 \emph default
10014 を見てください。itemize環境を使う場合にはセクション 
10015 \begin_inset CommandInset ref
10016 LatexCommand ref
10017 reference "sec:ブリット"
10018
10019 \end_inset
10020
10021 も見た方がいいかも知れません。
10022 \end_layout
10023
10024 \begin_layout Standard
10025 2つの新しい箇条書きの環境は 
10026 \family sans
10027 TickList
10028 \family default
10029 と 
10030 \family sans
10031 CrossList
10032 \family default
10033 です。これらの環境は長所と短所を並べて書くような場合に便利です。
10034 \family sans
10035 TickList
10036 \family default
10037 は項目の頭にチェックをつけ、
10038 \family sans
10039 CrossList
10040 \family default
10041 は項目の頭に×印をつけます。これらの環境は 
10042 \family sans
10043 Itemize
10044 \family default
10045 環境のちょっとした応用でつくられています。ただしこれらの環境を使うためには 
10046 \family typewriter
10047 psnfss
10048 \family default
10049 パッケージがインストールされている必要があります。
10050 \end_layout
10051
10052 \begin_layout Subsubsection
10053 図と表
10054 \end_layout
10055
10056 \begin_layout Standard
10057
10058 \family sans
10059 Foil
10060 \family default
10061 TeXは図、表のフロートを定義し直して、本文中に入れられたところに図または表を入れます。ページの上方に入れたり、ユーザが指定した場所にいれたりはしません。実際フ
10062 ロートの配置の設定を変えても、無視されるだけです。
10063 \end_layout
10064
10065 \begin_layout Subsubsection
10066 ページヘッダーとフッター
10067 \begin_inset CommandInset label
10068 LatexCommand label
10069 name "sec:foilfoot"
10070
10071 \end_inset
10072
10073
10074 \end_layout
10075
10076 \begin_layout Standard
10077
10078 \family sans
10079 My
10080 \begin_inset space ~
10081 \end_inset
10082
10083 Logo
10084 \family default
10085  と 
10086 \family sans
10087 Restriction
10088 \family default
10089  は左のフッタを制御する2つのコマンドです。前者はスライドにグラフィックのロゴを含めるためのコマンドで、既定は「-Typeset by 
10090 \family sans
10091 Foil
10092 \family default
10093 TeX-」です。後者は聴衆の分類を表すのに使います。例えば Confidential(機密)などと書いておきます。既定では何も設定されていません。
10094 \end_layout
10095
10096 \begin_layout Standard
10097 残りのスライドの隅は 
10098 \family sans
10099 Right
10100 \begin_inset space ~
10101 \end_inset
10102
10103 Footer
10104 \family default
10105  (既定はページ番号)、 
10106 \family sans
10107 Right
10108 \begin_inset space ~
10109 \end_inset
10110
10111 Header
10112 \family default
10113  (右上)、
10114 \family sans
10115 Left
10116 \begin_inset space ~
10117 \end_inset
10118
10119 Header
10120 \family default
10121  (左上)を使って文字を入れることができます。
10122 \end_layout
10123
10124 \begin_layout Subsection
10125 サポートされない 
10126 \family sans
10127 Foil
10128 \family default
10129 TeXの機能
10130 \begin_inset CommandInset label
10131 LatexCommand label
10132 name "sec:unsuppfoils"
10133
10134 \end_inset
10135
10136
10137 \end_layout
10138
10139 \begin_layout Standard
10140 以下ででてくるコマンドは 
10141 \family sans
10142 LaTeX
10143 \family default
10144 環境の中で使うか、
10145 \family sans
10146 TeX
10147 \family default
10148 コマンドとしてマークする必要があります。
10149 \end_layout
10150
10151 \begin_layout Subsubsection
10152 長さ
10153 \end_layout
10154
10155 \begin_layout Standard
10156 すべての長さは 
10157 \family typewriter
10158
10159 \backslash
10160 setlength{
10161 \family default
10162 \emph on
10163 lengthname
10164 \family typewriter
10165 \emph default
10166 }{
10167 \family default
10168 \emph on
10169 newlength
10170 \family typewriter
10171 \emph default
10172 }
10173 \family default
10174 コマンドを使って調整できます。
10175 \emph on
10176 lengthname
10177 \emph default
10178 は変えたい長さの変数の名前で、
10179 \emph on
10180 newlength
10181 \emph default
10182 は長さの値です。すべての長さはインチ(in)、ミリメートル(mm)、ポイント(pt)、
10183 \family typewriter
10184
10185 \backslash
10186 textwidth
10187 \family default
10188 のように文章やフォントに対しての相対的なものを使うかをして長さの単位の指定をする必要があります。
10189 \end_layout
10190
10191 \begin_layout Standard
10192 スライドのタイトルと本文の間の距離は 
10193 \family typewriter
10194
10195 \backslash
10196 foilheadskip
10197 \family default
10198 を変えることで調整できます。例えば、すべてのスライドのタイトルを0.5インチ本文に近づけるには次のコマンドをプリアンブルに入れてください。
10199 \family typewriter
10200
10201 \backslash
10202 setlength{
10203 \backslash
10204 foilheadskip}{-0.5in}
10205 \end_layout
10206
10207 \begin_layout Standard
10208 フロートの回りのスペースは以下の長さを設定して調整することができます。
10209 \end_layout
10210
10211 \begin_layout Labeling
10212 \labelwidthstring MMMMMMMMMMM
10213
10214 \family typewriter
10215
10216 \backslash
10217 abovefloatskip
10218 \family default
10219  本文からフロートの上までの長さ
10220 \end_layout
10221
10222 \begin_layout Labeling
10223 \labelwidthstring MMMMMMMMMMM
10224
10225 \family typewriter
10226
10227 \backslash
10228 abovecaptionskip
10229 \family default
10230  フロートとキャプションの間の長さ
10231 \end_layout
10232
10233 \begin_layout Labeling
10234 \labelwidthstring MMMMMMMMMMM
10235
10236 \family typewriter
10237
10238 \backslash
10239 belowcaptionskip
10240 \family default
10241  キャプションとそれに続く本文の間の長さ
10242 \end_layout
10243
10244 \begin_layout Labeling
10245 \labelwidthstring MMMMMMMMMMM
10246
10247 \family typewriter
10248
10249 \backslash
10250 captionwidth
10251 \family default
10252  この長さを調整することでキャプションを周囲のテキストより短くすることができます。
10253 \family typewriter
10254
10255 \backslash
10256 textwidth
10257 \family default
10258 に対する相対的な長さで調整するのがいいでしょう。
10259 \end_layout
10260
10261 \begin_layout Standard
10262 タイトルページに関係する長さもあります。長いタイトルや複数の著者がいる場合に変えたくなるかも知れません。
10263 \end_layout
10264
10265 \begin_layout Labeling
10266 \labelwidthstring MMMMMMMMMMM
10267
10268 \family typewriter
10269
10270 \backslash
10271 abovetitleskip
10272 \family default
10273  へッダからタイトルまでの長さ
10274 \end_layout
10275
10276 \begin_layout Labeling
10277 \labelwidthstring MMMMMMMMMMM
10278
10279 \family typewriter
10280
10281 \backslash
10282 titleauthorskip
10283 \family default
10284  
10285 \family sans
10286 Title
10287 \family default
10288 と 
10289 \family sans
10290 Author
10291 \family default
10292 環境の間の長さ
10293 \end_layout
10294
10295 \begin_layout Labeling
10296 \labelwidthstring MMMMMMMMMMM
10297
10298 \family typewriter
10299
10300 \backslash
10301 authorauthorskip
10302 \family default
10303  複数の著者の名前の間の長さ
10304 \end_layout
10305
10306 \begin_layout Labeling
10307 \labelwidthstring MMMMMMMMMMM
10308
10309 \family typewriter
10310
10311 \backslash
10312 authordateskip
10313 \family default
10314  
10315 \family sans
10316 Author
10317 \family default
10318 と 
10319 \family sans
10320 Date
10321 \family default
10322 の間の長さ
10323 \end_layout
10324
10325 \begin_layout Labeling
10326 \labelwidthstring MMMMMMMMMMM
10327
10328 \family typewriter
10329
10330 \backslash
10331 dateabstractskip
10332 \family default
10333  
10334 \family sans
10335 Dat
10336 \family default
10337 と 
10338 \family sans
10339 Abstract
10340 \family default
10341 の間の長さ
10342 \end_layout
10343
10344 \begin_layout Standard
10345 最後にすべての箇条書きの環境に影響するコマンドを紹介しておきます。
10346 \family typewriter
10347
10348 \backslash
10349 zerolistvertdimens
10350 \family default
10351  を箇条書きの環境の内側に置くと、項目間のすべての縦方向のスペースが取り除かれます。これはコマンドで長さを表す変数ではないので、
10352 \family typewriter
10353
10354 \backslash
10355 setlength
10356 \family default
10357 を使う必要がないことに注意してください。
10358 \end_layout
10359
10360 \begin_layout Subsubsection
10361 へッダとフッタ
10362 \begin_inset CommandInset label
10363 LatexCommand label
10364 name "sec:foilfoot"
10365
10366 \end_inset
10367
10368
10369 \end_layout
10370
10371 \begin_layout Standard
10372
10373 \family typewriter
10374
10375 \backslash
10376 LogoOn
10377 \family default
10378 と 
10379 \family typewriter
10380
10381 \backslash
10382 LogoOff
10383 \family default
10384 は 
10385 \family typewriter
10386 MyLogo
10387 \family default
10388 で定義したロゴを特定のページに入れるかどうかをコントロールします。
10389 \family typewriter
10390
10391 \backslash
10392 LogoOff
10393 \family default
10394 をプリアンブルに入れた場合は、すべてのスライドにロゴがつきません。特定のスライドにだけロゴをつけたくない場合には、そのスライドの foilheadのすぐ後ろに
10395  
10396 \family typewriter
10397
10398 \backslash
10399 LogoOff
10400 \family default
10401 を入れて、次の foilheadのすぐ後ろに 
10402 \family typewriter
10403
10404 \backslash
10405 LogoOn
10406 \family default
10407 を入れてください。
10408 \end_layout
10409
10410 \begin_layout Standard
10411
10412 \family sans
10413 Document
10414 \family default
10415 ダイアログで 
10416 \family sans
10417 fancy
10418 \family default
10419 ページスタイルを選んだ場合には、プリアンブルに 
10420 \family typewriter
10421
10422 \backslash
10423 let
10424 \backslash
10425 headwidth
10426 \backslash
10427 textwidth
10428 \family default
10429 を加える必要があります。これ加えることでランドスケープ(横長)のスライドをつくった場合でも、フッタとへッダは正しく配置されます。これは 
10430 \family sans
10431 fancyheadings
10432 \family default
10433 パッケージと 
10434 \family sans
10435 foils
10436 \family default
10437 クラスの間のページレイアウトの衝突を避けるためのものです。
10438 \end_layout
10439
10440 \begin_layout Section
10441 Hollywood(Hollywoodスペック・スクリプト)
10442 \end_layout
10443
10444 \begin_layout Standard
10445 \begin_inset Flex CharStyle:Noun
10446 status collapsed
10447
10448 \begin_layout Plain Layout
10449 Garst Reese
10450 \end_layout
10451
10452 \end_inset
10453
10454
10455 \end_layout
10456
10457 \begin_layout Subsection
10458 はじめに
10459 \end_layout
10460
10461 \begin_layout Standard
10462 これはハリウッドの脚本を書くためのものです。ハリウッドの脚本のフォーマットは読者が内容に焦点を当てやすく、俳優が読みやすくつくられています。脚本の各々のページは
10463 映画の1分でなければなりません。脚本に何も書かれていなければ、スクリーン上で何も見えず、何も聞こえないのです。全体を通して courier 12
10464  ptフォントを使わなければなりません。イタリックは使いません。
10465 \end_layout
10466
10467 \begin_layout Subsection
10468 特別の問題
10469 \end_layout
10470
10471 \begin_layout Standard
10472 話し手の行は文の途中で切ってはいけません。もし話し手の行が次のページに続く場合には、
10473 \family sans
10474 Speaker
10475 \family default
10476 の名前を繰り返し、そのあとに (Cont'd)とつけます。
10477 \end_layout
10478
10479 \begin_layout Subsection
10480 特別の機能
10481 \end_layout
10482
10483 \begin_layout Standard
10484
10485 \family sans
10486 Speaker
10487 \family default
10488 の名前はラベルとして挿入でき、それ以降はラベルを相互参照で参照して 
10489 \family sans
10490 Speaker
10491 \family default
10492 の名前を挿入できます。相互参照ダイアログには登場人物の現在の配役が表示されます。これを使って話し手の名前を注釈にも挿入できます。
10493 \end_layout
10494
10495 \begin_layout Subsection
10496 用紙サイズと余白
10497 \end_layout
10498
10499 \begin_layout Standard
10500 USレターサイズで、余白は左 1.6インチ、右 0.75インチ、上 0.5インチ、下 0.75インチ。
10501 \end_layout
10502
10503 \begin_layout Subsection
10504 環境
10505 \end_layout
10506
10507 \begin_layout Standard
10508 次の環境が使えます。右に書いてあるキーバインドを使うには、hollywood.bindを使ってください。
10509 \end_layout
10510
10511 \begin_layout Itemize
10512
10513 \family sans
10514 Standard
10515 \begin_inset Newline newline
10516 \end_inset
10517
10518
10519 \family default
10520 他の環境が働かない場合に使ってください。できるだけ使うのを避けてください。
10521 \end_layout
10522
10523 \begin_layout Itemize
10524
10525 \family sans
10526 FADE_IN
10527 \family default
10528 :
10529 \begin_inset space \hfill{}
10530 \end_inset
10531
10532
10533 \family sans
10534 M-z S-I
10535 \family default
10536
10537 \begin_inset Newline newline
10538 \end_inset
10539
10540 通常このあとに「Sallyは目を覚した」のようなものが続きます。
10541 \end_layout
10542
10543 \begin_layout Itemize
10544
10545 \family sans
10546 INT:
10547 \begin_inset space \hfill{}
10548 \end_inset
10549
10550 M-z i
10551 \begin_inset Newline newline
10552 \end_inset
10553
10554
10555 \family default
10556 新しい INTERIORカメラのセットアップを導入します。常にこの後には DAY、NIGHT、またはその他の必要な照明が定義されます。この行はすべて大文字で書き
10557 ます。
10558 \end_layout
10559
10560 \begin_layout Itemize
10561
10562 \family sans
10563 EXT:
10564 \begin_inset space \hfill{}
10565 \end_inset
10566
10567 M-z e
10568 \begin_inset Newline newline
10569 \end_inset
10570
10571
10572 \family default
10573 EXTERIORカメラのセットアップを導入します。この行はすべて大文字です。
10574 \end_layout
10575
10576 \begin_layout Itemize
10577
10578 \family sans
10579 Speaker
10580 \begin_inset space \hfill{}
10581 \end_inset
10582
10583 M-z s
10584 \begin_inset Newline newline
10585 \end_inset
10586
10587
10588 \family default
10589 話す(劇中の)人物
10590 \end_layout
10591
10592 \begin_layout Itemize
10593
10594 \family sans
10595 Parenthetical
10596 \begin_inset space \hfill{}
10597 \end_inset
10598
10599 M-z p
10600 \begin_inset Newline newline
10601 \end_inset
10602
10603
10604 \family default
10605 話し手への指示。自動的に括弧()が挿入されます。ただし LyX上で表示されるのは左括弧( のみです。印刷物には右括弧も表示されています。
10606 \end_layout
10607
10608 \begin_layout Itemize
10609
10610 \family sans
10611 Dialogue
10612 \begin_inset space \hfill{}
10613 \end_inset
10614
10615 M-z d
10616 \begin_inset Newline newline
10617 \end_inset
10618
10619 Speaker
10620 \family default
10621 が言ったこと。
10622 \end_layout
10623
10624 \begin_layout Itemize
10625
10626 \family sans
10627 Transition
10628 \begin_inset space \hfill{}
10629 \end_inset
10630
10631 M-z t
10632 \begin_inset Newline newline
10633 \end_inset
10634
10635
10636 \family default
10637 カメラの動きの指示。CUT TO:等。
10638 \end_layout
10639
10640 \begin_layout Itemize
10641
10642 \family sans
10643 FADE OUT:
10644 \begin_inset space \hfill{}
10645 \end_inset
10646
10647 M-z S-I
10648 \end_layout
10649
10650 \begin_layout Itemize
10651
10652 \family sans
10653 Author
10654 \begin_inset space \hfill{}
10655 \end_inset
10656
10657 M-z S-A
10658 \end_layout
10659
10660 \begin_layout Itemize
10661
10662 \family sans
10663 Title
10664 \begin_inset space \hfill{}
10665 \end_inset
10666
10667 M-z S-T
10668 \end_layout
10669
10670 \begin_layout Itemize
10671
10672 \family sans
10673 Right_Address
10674 \begin_inset space \hfill{}
10675 \end_inset
10676
10677 M-z r
10678 \end_layout
10679
10680 \begin_layout Subsection
10681 脚本で使われる特別な用語
10682 \end_layout
10683
10684 \begin_layout Itemize
10685 (O.S) --- off screen
10686 \end_layout
10687
10688 \begin_layout Itemize
10689 (V.0) --- voice over
10690 \end_layout
10691
10692 \begin_layout Itemize
10693 b.g.
10694  --- background
10695 \end_layout
10696
10697 \begin_layout Itemize
10698 C.U.
10699  --- close-up
10700 \end_layout
10701
10702 \begin_layout Itemize
10703 PAN --- camera movement
10704 \end_layout
10705
10706 \begin_layout Itemize
10707 INSERT --- cut to close-up of
10708 \end_layout
10709
10710 \begin_layout Section
10711 ijmpd
10712 \end_layout
10713
10714 \begin_layout Standard
10715 \begin_inset Flex CharStyle:Noun
10716 status collapsed
10717
10718 \begin_layout Plain Layout
10719 Panayotis Papasotiriou
10720 \end_layout
10721
10722 \end_inset
10723
10724
10725 \end_layout
10726
10727 \begin_layout Subsection
10728 概観
10729 \end_layout
10730
10731 \begin_layout Standard
10732 ijpmd パッケージは World Scientificが発行する 
10733 \emph on
10734 International Journal of Modern Physics D
10735 \emph default
10736 に電子投稿するためのマクロ集です。文書クラス名は 
10737 \family typewriter
10738 ws-ijmpd.cls
10739 \family default
10740 です。このファイルは、著者のための指針とともに 
10741 \begin_inset Flex URL
10742 status collapsed
10743
10744 \begin_layout Plain Layout
10745
10746 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
10747 \end_layout
10748
10749 \end_inset
10750
10751 からダウンロードできます。ijmpd パッケージは標準の article パッケージを改造したもので、ほとんどの機能は LyXでサポートされています。私は最近
10752  
10753 \emph on
10754 International Journal of Modern Physics D
10755 \emph default
10756 に投稿する論文を LyXで書き上げました。
10757 \end_layout
10758
10759 \begin_layout Subsection
10760 論文を書く
10761 \end_layout
10762
10763 \begin_layout Standard
10764 他のパッケージと同じく、論文を書くための一番簡単な方法はテンプレートから始めることです。
10765 \family sans
10766 \bar under
10767 F
10768 \bar default
10769 ile\SpecialChar \menuseparator
10770 New from
10771 \family default
10772  
10773 \family sans
10774 \bar under
10775 T
10776 \bar default
10777 emplate
10778 \family default
10779 をクリックしてから、
10780 \family typewriter
10781 ijmpd.lyx
10782 \family default
10783 テンプレートを選んでください。そうすると、ほとんどの原稿に共通な部分のみ含んだ、ほとんど何も書いていない文章が表れます。(鍵括弧<>で囲まれた)既存のテキストを
10784 正しい情報に書き換えてください。以下のことは忘れないようにしてください。
10785 \end_layout
10786
10787 \begin_layout Enumerate
10788 LyXでフォントの大きさや文章のページスタイルを変えることはできません。ijmpdパッケージではそのような操作を禁じています。
10789 \end_layout
10790
10791 \begin_layout Enumerate
10792 ijmpdパッケージでは、文章の言語を変えないことが必要です。あなたの論文をプレビューする前に、babelパッケージが使われていないことを確かめてください。その
10793 ためには、
10794 \family sans
10795 \bar under
10796 E
10797 \bar default
10798 dit\SpecialChar \menuseparator
10799
10800 \bar under
10801 P
10802 \bar default
10803 references
10804 \family default
10805 をクリックして、
10806 \family sans
10807 Language
10808 \family default
10809  タブを選んでください(
10810 \family sans
10811 Lang Opts
10812 \family default
10813  タブの下にあります)。それから 
10814 \family sans
10815 \bar under
10816 U
10817 \bar default
10818 se babel
10819 \family default
10820 オプションを消して、
10821 \family sans
10822 \bar under
10823 A
10824 \bar default
10825 pply
10826 \family default
10827 をクリックします(これをずっと使うなら 
10828 \family sans
10829 Save
10830 \family default
10831  を選びます)。
10832 \end_layout
10833
10834 \begin_layout Enumerate
10835 Theorem と Proof という2つの新しい環境が使えます(何に使うかは明らかでしょう)。
10836 \end_layout
10837
10838 \begin_layout Enumerate
10839 付録を論文に加えることができます。LyXは付録を始めるために、 Appendix という特別な環境を用意しています。付録の中には、通常の節、サブ節、サブサブ節を
10840 含めることができます。
10841 \end_layout
10842
10843 \begin_layout Enumerate
10844 ijmpdパッケージでは、表の「見出し」の扱いは LyXと大きく異なっています。そのために、LyXでつくった表は正しく印刷されますが、表の見出しは無視されます。
10845 表の見出しが必要な場合には、テーブルフロート全体を別の texファイルにして、それを LyXの文章に(
10846 \family sans
10847 \bar under
10848 I
10849 \bar default
10850 nsert\SpecialChar \menuseparator
10851 Inclu
10852 \bar under
10853 d
10854 \bar default
10855 e file
10856 \family default
10857 を使って)読み込んでください。ijmpdでのどのようにテーブルフロートをつくるかについては 
10858 \family typewriter
10859 ws-ijmpd.tex
10860 \family default
10861 というファイルを見てください。ijmpdパッケージに含まれています。
10862 \end_layout
10863
10864 \begin_layout Subsection
10865 投稿のための準備
10866 \end_layout
10867
10868 \begin_layout Standard
10869 論文を投稿する前に、LyXの文章を LaTeX ファイルとして保存して(
10870 \family sans
10871 \bar under
10872 F
10873 \bar default
10874 ile\SpecialChar \menuseparator
10875
10876 \bar under
10877 E
10878 \bar default
10879 xport\SpecialChar \menuseparator
10880
10881 \bar under
10882 L
10883 \bar default
10884 ateX
10885 \family default
10886 )、その LaTeX ファイルに次のような変更を加える必要があります。
10887 \end_layout
10888
10889 \begin_layout Enumerate
10890
10891 \family typewriter
10892
10893 \backslash
10894 documentclass
10895 \family default
10896  コマンドのより前のコメント行を消す。
10897 \end_layout
10898
10899 \begin_layout Enumerate
10900
10901 \family typewriter
10902
10903 \backslash
10904 makeatletter
10905 \family default
10906  と 
10907 \family typewriter
10908
10909 \backslash
10910 makeatother
10911 \family default
10912 コマンドの間にあるすべてのものを消す。ただし、あなたが自分自身で LaTeX プリアンブルに加えたものは残しておいてください。
10913 \end_layout
10914
10915 \begin_layout Standard
10916 変更を加えた 
10917 \family typewriter
10918 .tex
10919 \family default
10920 ファイルを保存して、必要な回数だけ LaTeX にかけてください。 こうして得られた 
10921 \family typewriter
10922 .dvi
10923 \family default
10924 ファイルもチェックした方がいいでしょう。
10925 \end_layout
10926
10927 \begin_layout Subsection
10928 ERTの使用
10929 \end_layout
10930
10931 \begin_layout Standard
10932 オプションで ERTの使用を使用できますが、それはページの見た目に影響する 3つのコマンドに集約されています。
10933 \family typewriter
10934 ijmpd.lyx
10935 \family default
10936  テンプレートを使って論文を書き始めた場合には、必要な ERT はすでに、テンプレートに書かれていて通常はそれを消す必要はありません。一番初めの
10937  ERT を奇数、偶数ページのヘッダに書く情報に書き換えるだけです(著者の名前と論文のタイトルです)。この ERT は 
10938 \family typewriter
10939
10940 \backslash
10941 markboth{Authors' Names}{Short Paper's Title}
10942 \family default
10943  という形になってなければなりません。
10944 \end_layout
10945
10946 \begin_layout Section
10947 iopart
10948 \end_layout
10949
10950 \begin_layout Standard
10951 \begin_inset Flex CharStyle:Noun
10952 status collapsed
10953
10954 \begin_layout Plain Layout
10955 Uwe Stöhr
10956 \end_layout
10957
10958 \end_inset
10959
10960
10961 \end_layout
10962
10963 \begin_layout Subsection
10964 外観
10965 \end_layout
10966
10967 \begin_layout Standard
10968 iopartパッケージは、Institute of Physics(イギリス物理学会)が発行する学術誌へ送る電子原稿を作成するのに使用する文書クラスを提供します
10969 。iopartクラスを使用した論文作成方法の著者向け説明書は、ウェブサイト
10970 \begin_inset Flex URL
10971 status collapsed
10972
10973 \begin_layout Plain Layout
10974
10975 ftp://ftp.iop.org/pub/journals/latex2e
10976 \end_layout
10977
10978 \end_inset
10979
10980 からiopackageとともにダウンロード可能です。
10981 \end_layout
10982
10983 \begin_layout Subsection
10984 論文を書く
10985 \end_layout
10986
10987 \begin_layout Standard
10988 論文を書くもっとも簡単な方法は、LyXの用例ファイルフォルダにある
10989 \emph on
10990 IOP-article.lyx
10991 \emph default
10992 を土台にすることです。このファイルを開き、新しい名前で保存して、書き始めてください。用例ファイルは、特定の環境の使用法についても説明しています。もっとも重要な助
10993 言として、以下の点にご注意ください。
10994 \end_layout
10995
10996 \begin_layout Itemize
10997 文書がPDF・PS・DVIにコンパイルできるようにするためには、文書設定の
10998 \begin_inset Flex CharStyle:MenuItem
10999 status collapsed
11000
11001 \begin_layout Plain Layout
11002 数式オプション
11003 \end_layout
11004
11005 \end_inset
11006
11007 で、二つの
11008 \begin_inset Flex CharStyle:MenuItem
11009 status collapsed
11010
11011 \begin_layout Plain Layout
11012 AMS mathパッケージを使う
11013 \end_layout
11014
11015 \end_inset
11016
11017 オプションが有効になっていないことを確認してください!
11018 \end_layout
11019
11020 \begin_layout Itemize
11021 どのタイトル環境を使うかが、論文の種類を定義しますので、タイトルには以下の環境のうちのいずれかを使用してください。
11022 \end_layout
11023
11024 \begin_deeper
11025 \begin_layout Itemize
11026 論文用にはタイトル
11027 \end_layout
11028
11029 \begin_layout Itemize
11030 Review用には
11031 \begin_inset Flex CharStyle:MenuItem
11032 status collapsed
11033
11034 \begin_layout Plain Layout
11035 Review
11036 \end_layout
11037
11038 \end_inset
11039
11040
11041 \end_layout
11042
11043 \begin_layout Itemize
11044 Topical review用には
11045 \begin_inset Flex CharStyle:MenuItem
11046 status collapsed
11047
11048 \begin_layout Plain Layout
11049 Topical
11050 \end_layout
11051
11052 \end_inset
11053
11054
11055 \end_layout
11056
11057 \begin_layout Itemize
11058 Comment用には
11059 \begin_inset Flex CharStyle:MenuItem
11060 status collapsed
11061
11062 \begin_layout Plain Layout
11063 Comment
11064 \end_layout
11065
11066 \end_inset
11067
11068
11069 \end_layout
11070
11071 \begin_layout Itemize
11072 Note用には
11073 \begin_inset Flex CharStyle:MenuItem
11074 status collapsed
11075
11076 \begin_layout Plain Layout
11077 注釈
11078 \end_layout
11079
11080 \end_inset
11081
11082
11083 \end_layout
11084
11085 \begin_layout Itemize
11086 論文用には
11087 \begin_inset Flex CharStyle:MenuItem
11088 status collapsed
11089
11090 \begin_layout Plain Layout
11091 Paper
11092 \end_layout
11093
11094 \end_inset
11095
11096 (タイトルと同じ)
11097 \end_layout
11098
11099 \begin_layout Itemize
11100 Preliminary communication用には
11101 \begin_inset Flex CharStyle:MenuItem
11102 status collapsed
11103
11104 \begin_layout Plain Layout
11105 Prelim
11106 \end_layout
11107
11108 \end_inset
11109
11110
11111 \end_layout
11112
11113 \begin_layout Itemize
11114 Rapid communication用には
11115 \begin_inset Flex CharStyle:MenuItem
11116 status collapsed
11117
11118 \begin_layout Plain Layout
11119 Rapid
11120 \end_layout
11121
11122 \end_inset
11123
11124
11125 \end_layout
11126
11127 \begin_layout Itemize
11128 編集者へのLetterには
11129 \begin_inset Flex CharStyle:MenuItem
11130 status collapsed
11131
11132 \begin_layout Plain Layout
11133 書簡
11134 \end_layout
11135
11136 \end_inset
11137
11138
11139 \end_layout
11140
11141 \end_deeper
11142 \begin_layout Itemize
11143 \begin_inset Flex CharStyle:MenuItem
11144 status collapsed
11145
11146 \begin_layout Plain Layout
11147 Letter
11148 \end_layout
11149
11150 \end_inset
11151
11152 以外のタイトル環境は、短縮タイトルをつけることもできます。
11153 \end_layout
11154
11155 \begin_layout Itemize
11156 LyXでは直接にサポートされていませんが、一般的なタイトル環境として
11157 \begin_inset Flex CharStyle:MenuItem
11158 status collapsed
11159
11160 \begin_layout Plain Layout
11161 Article
11162 \end_layout
11163
11164 \end_inset
11165
11166 があります。文書が他のタイトル型に合わない場合には、TeXコードでこれを指定することができます。
11167 \end_layout
11168
11169 \begin_layout Standard
11170 特別な表や数式組版に関するヒントなど詳しい情報については、IOP著者ガイドラインを参照してください。
11171 \end_layout
11172
11173 \begin_layout Section
11174 Kluwer
11175 \end_layout
11176
11177 \begin_layout Standard
11178 \begin_inset Flex CharStyle:Noun
11179 status collapsed
11180
11181 \begin_layout Plain Layout
11182 Panayotis Papasotiriou
11183 \end_layout
11184
11185 \end_inset
11186
11187
11188 \end_layout
11189
11190 \begin_layout Subsection
11191 はじめに
11192 \end_layout
11193
11194 \begin_layout Standard
11195 Kluwerパッケージは、Kluwer Academic Publishersによってつくられた、同社が発行する学術雑誌に電子投稿するためのマクロ集です。同社が
11196 発行する学術雑誌のうちで、(少なくとも私の専門内では)もっともよく知られているものは 
11197 \emph on
11198 Astrophysics and Space Science
11199 \emph default
11200 と 
11201 \emph on
11202 Solar Physics
11203 \emph default
11204 ですが、他にも多くの学術雑誌を発行しています(
11205 \begin_inset Flex URL
11206 status collapsed
11207
11208 \begin_layout Plain Layout
11209
11210 http://www.wkap.nl/jrnllist.htm/JRNLHOME
11211 \end_layout
11212
11213 \end_inset
11214
11215 に完全なリストがあります)。Kluwerパッケージは 
11216 \begin_inset Flex URL
11217 status collapsed
11218
11219 \begin_layout Plain Layout
11220
11221 http://www.wkap.nl/kaphtml.htm/STYLEFILES
11222 \end_layout
11223
11224 \end_inset
11225
11226 からダウンロードできます。完全なユーザーの手引きもそのパッケージの中に含まれています(別々にダウンロードすることも可能です)。
11227 \end_layout
11228
11229 \begin_layout Standard
11230 LyXはこのパケージの多くの機能をサポートしていますが、すべてではありません。しかし、ERTが必要となるのはいくつかの「変わった」コマンドだけになりました(
11231 \begin_inset CommandInset ref
11232 LatexCommand ref
11233 reference "subsec:kluwer_peculiarities"
11234
11235 \end_inset
11236
11237 を見てください)。最近私は LyX を使って何の問題もなく、
11238 \emph on
11239 Astrophysics and Space Science
11240 \emph default
11241 に投稿する論文を書くことができました。
11242 \end_layout
11243
11244 \begin_layout Subsection
11245 論文を書く
11246 \end_layout
11247
11248 \begin_layout Standard
11249 論文を書く一番簡単な方法は、Kluwer のテンプレートファイルを使うことです。Click on 
11250 \family sans
11251 File\SpecialChar \menuseparator
11252 New from template
11253 \family default
11254  をクリックして、
11255 \family typewriter
11256 kluwer.lyx
11257 \family default
11258  テンプレートを選んでください。これは、通常必要とされるフィールドに短い使い方が書かれただけの(ほとんど)何も書かれていない文章ファイルです。他のテンプレートを
11259 同じように、書いてあるテキストを(<>括弧も含めて)消して、自分の情報を書いていってください。
11260 \end_layout
11261
11262 \begin_layout Subsection
11263 投稿のための準備
11264 \end_layout
11265
11266 \begin_layout Standard
11267 AASTeXパッケージと同様に、論文を Kluwerの学術誌に投稿する前には次のような後処理をする必要があります。
11268 \end_layout
11269
11270 \begin_layout Enumerate
11271
11272 \family sans
11273 \bar under
11274 F
11275 \bar default
11276 ile\SpecialChar \menuseparator
11277
11278 \bar under
11279 E
11280 \bar default
11281 xport\SpecialChar \menuseparator
11282
11283 \bar under
11284 L
11285 \bar default
11286 ateX
11287 \family default
11288 とクリックして、LaTeXファイルとして保存する。
11289 \end_layout
11290
11291 \begin_layout Enumerate
11292 保存した .texファイルをテキストエディタを使って、次のように変える。
11293 \end_layout
11294
11295 \begin_deeper
11296 \begin_layout Enumerate
11297
11298 \family typewriter
11299
11300 \backslash
11301 documentclass
11302 \family default
11303 コマンドより前にあるコメント行を消去する。
11304 \end_layout
11305
11306 \begin_layout Enumerate
11307 自分で LaTeX プリアンブルに指定したものをのぞいて、
11308 \family typewriter
11309
11310 \backslash
11311 makeatletter
11312 \family default
11313 から 
11314 \family typewriter
11315
11316 \backslash
11317 makeatother
11318 \family default
11319 の間のものをコマンド自身も含めて消去する。
11320 \end_layout
11321
11322 \begin_layout Standard
11323 変更した .tex ファイルを保存する。
11324 \end_layout
11325
11326 \end_deeper
11327 \begin_layout Enumerate
11328 保存した .tex ファイルに LaTeXを必要な回数(通常は3回)走らせる。
11329 \end_layout
11330
11331 \begin_layout Enumerate
11332 できた .dviファイルを 
11333 \family sans
11334 xdvi
11335 \family default
11336 などを使って開き、変なところがないかチェックする(自分自身で間違いをしていない限り大丈夫なはずです)。
11337 \end_layout
11338
11339 \begin_layout Subsection
11340 Kluwerパッケージの「風変わり」な特徴
11341 \begin_inset CommandInset label
11342 LatexCommand label
11343 name "subsec:kluwer_peculiarities"
11344
11345 \end_inset
11346
11347
11348 \end_layout
11349
11350 \begin_layout Standard
11351 Kluwerパッケージは次のような「風変わりな」特徴があります。
11352 \end_layout
11353
11354 \begin_layout Enumerate
11355 複数の論文を1つの LaTeX ファイルへ入れることができます
11356 \begin_inset Foot
11357 status collapsed
11358
11359 \begin_layout Plain Layout
11360 こうなっていた方がいいという理由は、私には思いつきません。
11361 \end_layout
11362
11363 \end_inset
11364
11365 。各々の論文は、article環境に含まれていなければなりません。たとえ1つの論文しか LaTeXファイルに含めない場合にでも、article環境に入れなければ
11366 なりません。したがって各々の論文は 
11367 \family typewriter
11368
11369 \backslash
11370 begin{article}
11371 \family default
11372 で始まり、
11373 \family typewriter
11374
11375 \backslash
11376 end{article}
11377 \family default
11378 で終わります。この環境を LyXで実装することは可能でしたが、実装しませんでした。あまり美しくなく、また初心者を混乱させると思ったからです。したがって、これらの
11379 命令(
11380 \family typewriter
11381
11382 \backslash
11383 begin{article}
11384 \family default
11385
11386 \family typewriter
11387
11388 \backslash
11389 end{article}
11390 \family default
11391 )を直接本文中に入力して、LaTeXコードとしてマークする必要があります(ERTです)。
11392 \end_layout
11393
11394 \begin_layout Enumerate
11395 論文のはじめに入れる情報(タイトル、サブタイトル、著者名、所属など)は openingとよばれる環境に入れる必要があります。これは LyXでは実装されていません
11396 。したがってタイトル、サブタイトルなどは 2つの ERTの行(
11397 \family typewriter
11398
11399 \backslash
11400 begin{opening}
11401 \family default
11402  と 
11403 \family typewriter
11404
11405 \backslash
11406 end{opening}
11407 \family default
11408 )の間に入れる必要があります。
11409 \end_layout
11410
11411 \begin_layout Enumerate
11412 パッケージのユーザーズ取扱説明書によると、参考文献の項目は 
11413 \family typewriter
11414
11415 \backslash
11416 protect
11417 \backslash
11418 citeauthoryear{
11419 \family default
11420 \emph on
11421 author(s)
11422 \family typewriter
11423 \emph default
11424 }{
11425 \family default
11426 \emph on
11427 year
11428 \family typewriter
11429 \emph default
11430 } と書かなければいけません。
11431 \end_layout
11432
11433 \begin_layout Standard
11434
11435 \family typewriter
11436 kluwer.lyx
11437 \family default
11438  テンプレートは、これらの変わった点を考慮して作ってあります。新しい論文をこのテンプレートを使って書きはじめる場合には、なにも特別なことをする必要はありません。
11439 ただ次のことに気をつけてください。
11440 \end_layout
11441
11442 \begin_layout Enumerate
11443 テンプレートに含まれる ERT を消さないでください。
11444 \end_layout
11445
11446 \begin_layout Enumerate
11447 新しい参考文献の項目をつくる場合は、テンプレートに含まれる参考文献の項目の例をコピーして編集してください。
11448 \end_layout
11449
11450 \begin_layout Section
11451 Koma-Script
11452 \end_layout
11453
11454 \begin_layout Standard
11455 \begin_inset Flex CharStyle:Noun
11456 status collapsed
11457
11458 \begin_layout Plain Layout
11459 Bernd Rellermeyer
11460 \end_layout
11461
11462 \end_inset
11463
11464
11465 \end_layout
11466
11467 \begin_layout Subsection
11468 はじめに
11469 \end_layout
11470
11471 \begin_layout Standard
11472 LyXの文書クラス 
11473 \emph on
11474 article (koma-script)、report (koma-script)、book
11475 \emph default
11476  
11477 \emph on
11478 (koma-script)、letter
11479 \emph default
11480  
11481 \emph on
11482 (koma-script)
11483 \emph default
11484 は、LaTeXの文書クラス 
11485 \family typewriter
11486 scrartcl.cls、scrreprt.cls、scrbook.cls、scrlettr.cls
11487 \family default
11488 に対応しています。以下ではこれを Koma-Scriptファミリーと呼ぶことにします。これらの文書クラスは、ヨーロッパの活字印刷の慣例にいくつもの点でよりよく合
11489 致するように標準の文書クラス 
11490 \family typewriter
11491 article.cls、report.cls、book.cls、letter.cls
11492 \family default
11493 を置き換えるものです。
11494 \end_layout
11495
11496 \begin_layout Itemize
11497 標準の文字サイズは 
11498 \emph on
11499 article (koma-script)、report (koma-script)、book (koma-script)
11500 \emph default
11501 で11pt、
11502 \emph on
11503 letter (koma-script)
11504 \emph default
11505 で12ptです。
11506 \end_layout
11507
11508 \begin_layout Itemize
11509 見出し、description環境のラベル、
11510 \emph on
11511 letter (koma-script)
11512 \emph default
11513 文書クラスのいくつかの要素はボルド sans serifフォントが使われます
11514 \begin_inset Foot
11515 status collapsed
11516
11517 \begin_layout Plain Layout
11518 古い cmフォントのボルド sans serifフォントと新しい ecフォントのボルド sans serifフォントの間には大きな違いがあり、特に見出しに使った
11519 場合に違いが目立ちます。比較してみると ec ボルド sans serifフォントの方が細く見えます。ecフォントを使っている場合でもcmフォントの場合と同じよ
11520 うな見た目にするには 
11521 \shape smallcaps
11522 Walter Schmidt
11523 \shape default
11524  によって書かれた 
11525 \family typewriter
11526 cmsd.sty
11527 \family default
11528 という LaTeXパッケージを使うことができます。
11529 \end_layout
11530
11531 \end_inset
11532
11533 。章の見出しの番号付は節見出しと同じように行われます。つまり頭に Chapter\SpecialChar \ldots{}
11534 という行がつきません。またいくつかのオプションを使って、見出しの外観を変えること
11535 ができます(LyXでは 
11536 \family sans
11537 \bar under
11538 L
11539 \bar default
11540 ayout\SpecialChar \menuseparator
11541
11542 \bar under
11543 D
11544 \bar default
11545 ocument
11546 \family default
11547 ダイアログの 
11548 \family sans
11549 E
11550 \bar under
11551 x
11552 \bar default
11553 tra
11554 \family default
11555  
11556 \family sans
11557 Options
11558 \family default
11559 フィールドにオプションを入れます)。詳しいドイツ語でのオプションの説明が Koma-Scriptの取扱説明書 
11560 \emph on
11561 scrguide
11562 \emph default
11563 にあります。
11564 \end_layout
11565
11566 \begin_layout Itemize
11567 印刷部分をデザインする主なオプションは、
11568 \family sans
11569 BCOR
11570 \family default
11571 と 
11572 \family sans
11573 DIV
11574 \family default
11575 です(LyXでは 
11576 \family sans
11577 \bar under
11578 L
11579 \bar default
11580 ayout\SpecialChar \menuseparator
11581
11582 \bar under
11583 D
11584 \bar default
11585 ocument
11586 \family default
11587 ダイアログの 
11588 \family sans
11589 E
11590 \bar under
11591 x
11592 \bar default
11593 tra
11594 \family default
11595  
11596 \family sans
11597 Options
11598 \family default
11599 フィールドにオプションを入れます)。これらのオプションは 
11600 \family sans
11601 \bar under
11602 L
11603 \bar default
11604 ayout\SpecialChar \menuseparator
11605
11606 \bar under
11607 D
11608 \bar default
11609 ocument
11610 \family default
11611 ダイアログのオプションと同様に、はっきりと余白を変えることができます。詳しいドイツ語でのこれらのオプションと他の印刷部分に関するオプションの説明が
11612  Koma-Scriptの取扱説明書 
11613 \emph on
11614 scrguide
11615 \emph default
11616 にあります。
11617 \end_layout
11618
11619 \begin_layout Itemize
11620 Koma-Scriptファミリの LaTeX文書クラスは、いくつかの追加的なコマンドを定義しています。それらの中で LyXで意味があるものについては対応する段落
11621 環境をつくることで実装しています。
11622 \end_layout
11623
11624 \begin_layout Standard
11625 詳しいドイツ語での Koma-Scriptファミリの文書クラスの説明が Koma-Scriptの取扱説明書 
11626 \emph on
11627 scrguide
11628 \emph default
11629 にあります
11630 \begin_inset Foot
11631 status collapsed
11632
11633 \begin_layout Plain Layout
11634 英語へ翻訳した 
11635 \emph on
11636 screnggu
11637 \emph default
11638 もありますが、完全ではありません。
11639 \end_layout
11640
11641 \end_inset
11642
11643 。以下の節では LyXに関係する面だけを説明することにします。
11644 \end_layout
11645
11646 \begin_layout Subsection
11647 article (koma-script), report (koma-script), and book (koma-script)
11648 \end_layout
11649
11650 \begin_layout Standard
11651 文書クラス 
11652 \emph on
11653 article (koma-script)
11654 \emph default
11655
11656 \emph on
11657 report (koma-script)
11658 \emph default
11659
11660 \emph on
11661 book
11662 \emph default
11663  
11664 \emph on
11665 (koma-script)
11666 \emph default
11667 は、各々レイアウトファイル 
11668 \family typewriter
11669 scrartcl.layout
11670 \family default
11671
11672 \family typewriter
11673 scrreprt.layout
11674 \family default
11675
11676 \family typewriter
11677 scrbook.layout
11678 \family default
11679 で実装されています。これらは標準的な文書クラス 
11680 \emph on
11681 article
11682 \emph default
11683
11684 \emph on
11685 report
11686 \emph default
11687
11688 \emph on
11689 book
11690 \emph default
11691 にあるすべての段落環境を少し変えた形ですべて持っています。例外は LyX特有の 
11692 \family sans
11693 List
11694 \family default
11695 環境で、これは同じ機能をもつ新しい 
11696 \family sans
11697 Labeling
11698 \family default
11699 環境で代替されます。この 
11700 \family sans
11701 Labeling
11702 \family default
11703 環境以外にもいくつもの新しい段落環境が加えられています。これらは 
11704 \emph on
11705 letter (koma-script)
11706 \emph default
11707 には含まれていないのに注意してください。
11708 \end_layout
11709
11710 \begin_layout Itemize
11711
11712 \family sans
11713 Addpart、Addchap、Addsec: これらは Part*、Chapter*、Section*と同等のものですが目次にその項目が挿入されます。Addp
11714 art と Addchapは
11715 \family default
11716  
11717 \emph on
11718 article (koma-script)
11719 \family sans
11720 \emph default
11721 には含まれません。
11722 \end_layout
11723
11724 \begin_layout Itemize
11725
11726 \family sans
11727 Addchap*
11728 \family default
11729
11730 \family sans
11731 Addsec*
11732 \family default
11733 : これらは 
11734 \family sans
11735 Addchap
11736 \family default
11737 と 
11738 \family sans
11739 Addsec
11740 \family default
11741 とまったく同じように働きますが、ランニングへッダを消します。
11742 \family sans
11743 Addchap*は
11744 \family default
11745  
11746 \emph on
11747 article (koma-script)
11748 \family sans
11749 \emph default
11750 には含まれません
11751 \family default
11752
11753 \begin_inset Foot
11754 status collapsed
11755
11756 \begin_layout Plain Layout
11757
11758 \emph on
11759 book (koma-script)
11760 \emph default
11761 と 
11762 \emph on
11763 report (koma-script)
11764 \emph default
11765 には 
11766 \family typewriter
11767
11768 \backslash
11769 addpart*
11770 \family default
11771 コマンドもあります。しかし、これは 
11772 \family sans
11773 Part*
11774 \family default
11775 と同じものなので、LyXでは実装されていません。
11776 \end_layout
11777
11778 \end_inset
11779
11780
11781 \family sans
11782
11783 \end_layout
11784
11785 \begin_layout Itemize
11786
11787 \family sans
11788 Minisec
11789 \family default
11790 : 次に続く段落のすぐ上に普通の文字サイズで文章の構造を変えない形で見出しをつけます。
11791 \end_layout
11792
11793 \begin_layout Itemize
11794
11795 \family sans
11796 Captionabove
11797 \family default
11798 と 
11799 \family sans
11800 Captionbelow
11801 \family default
11802 はキャプションの要素の上または下に配置するための特別のキャプションでスペースの配置を変えてあります(正しい組版のルールに従うなら、つねにキャプションは表の上に置
11803 きます)。また 
11804 \family typewriter
11805 tablecaptionsabove
11806 \family default
11807  というクラスオプションを使うと、表には 
11808 \family sans
11809 captionabove
11810 \family default
11811 を 図には 
11812 \family sans
11813 captionbelow
11814 \family default
11815 を使うようになります。これを使うには少なくとも Koma-Script version 2.8q が必要です。
11816 \end_layout
11817
11818 \begin_layout Itemize
11819
11820 \family sans
11821 Dictum
11822 \family default
11823 : これを使うと章の初めに格言を置くことができます。オプションで 
11824 \family sans
11825 Insert\SpecialChar \menuseparator
11826 Short
11827 \begin_inset space ~
11828 \end_inset
11829
11830 Title
11831 \family default
11832  を使うと、その中に格言の著者を入れることができます。格言の著者の間は線で区切られます。これを使うには少なくとも Koma-Script version
11833  2.8q が必要です。
11834 \family sans
11835 Dictum
11836 \family default
11837 は 
11838 \emph on
11839 article (koma-script)
11840 \emph default
11841 には含まれません。
11842 \end_layout
11843
11844 \begin_layout Standard
11845 以下のタイプは標準的なタイプ 
11846 \family sans
11847 Title、Author
11848 \family default
11849
11850 \family sans
11851 Date
11852 \family default
11853 とともに文章のタイトル部分を作るのに使います。これらは一番初めの普通の段落よりも前に置かれる必要があります
11854 \begin_inset Foot
11855 status collapsed
11856
11857 \begin_layout Plain Layout
11858 対応する LaTeXコマンドが 
11859 \family typewriter
11860
11861 \backslash
11862 maketitle
11863 \family default
11864 コマンドよりも前にこなければなりません。
11865 \end_layout
11866
11867 \end_inset
11868
11869 。これらの中のあるタイプが2度以上使われた場合は、後のものが前のものを上書きします。つまり最後に使ったものだけが有効です。しかし、異なるタイプ、例えば
11870  
11871 \family sans
11872 Titleと Author
11873 \family default
11874 と 
11875 \family sans
11876 Date
11877 \family default
11878 の順番を変えてもタイプセットされた文章には何の影響も与えません。
11879 \end_layout
11880
11881 \begin_layout Itemize
11882
11883 \family sans
11884 Subject
11885 \family default
11886 : 通常のタイトル(
11887 \family sans
11888 Title
11889 \family default
11890
11891 \family sans
11892 Author
11893 \family default
11894
11895 \family sans
11896 Date
11897 \family default
11898 )の上に文章の主題のための真ん中に置かれた段落をつくります。
11899 \end_layout
11900
11901 \begin_layout Itemize
11902
11903 \family sans
11904 Publishers
11905 \family default
11906 : 通常のタイトル(
11907 \family sans
11908 Title
11909 \family default
11910
11911 \family sans
11912 Author
11913 \family default
11914
11915 \family sans
11916 Date
11917 \family default
11918 )の下に出版者の名前を入れる中心揃された段落をつくります。
11919 \end_layout
11920
11921 \begin_layout Itemize
11922
11923 \family sans
11924 Dedication
11925 \family default
11926
11927 \emph on
11928 report (koma-script)
11929 \emph default
11930 と 
11931 \emph on
11932 book (koma-script)
11933 \emph default
11934 ではタイトルページの次に独立したページを献辞のためにつくります。
11935 \emph on
11936 article (koma-script)
11937 \emph default
11938  の場合は通常のタイトル(
11939 \family sans
11940 Title
11941 \family default
11942
11943 \family sans
11944 Author
11945 \family default
11946
11947 \family sans
11948 Date
11949 \family default
11950 )の下に献辞のための中心揃した段落をつくります。
11951 \end_layout
11952
11953 \begin_layout Itemize
11954
11955 \family sans
11956 Titlehead
11957 \family default
11958 : 通常のタイトル(
11959 \family sans
11960 Title
11961 \family default
11962
11963 \family sans
11964 Author
11965 \family default
11966
11967 \family sans
11968 Date
11969 \family default
11970 )の上に文章のへッドを入れるための左詰めの段落をつくります。
11971 \end_layout
11972
11973 \begin_layout Itemize
11974
11975 \family sans
11976 Uppertitleback
11977 \family default
11978
11979 \emph on
11980 report (koma-script)
11981 \emph default
11982 や 
11983 \emph on
11984 book (koma-script)
11985 \emph default
11986 で両面印刷をする場合、タイトルページの裏のページの一番上に左詰め段落をつくります。片面印刷の場合や、
11987 \emph on
11988 article (koma-script)
11989 \emph default
11990 では何の効果もありません。
11991 \end_layout
11992
11993 \begin_layout Itemize
11994
11995 \family sans
11996 Lowertitleback
11997 \family default
11998
11999 \emph on
12000 report (koma-script)
12001 \emph default
12002 や 
12003 \emph on
12004 book (koma-script)
12005 \emph default
12006 で両面印刷をする場合、タイトルページの裏のページの一番下に左詰め段落をつくります。片面印刷の場合や、
12007 \emph on
12008 article (koma-script)
12009 \emph default
12010 では何の効果もありません。
12011 \end_layout
12012
12013 \begin_layout Itemize
12014
12015 \family sans
12016 Extratitle
12017 \family default
12018 : 段落を含む実際の文章より前に、文章の整形を行わない特別の「汚い」ページをつくります。
12019 \end_layout
12020
12021 \begin_layout Standard
12022 文書クラス 
12023 \emph on
12024 article (koma-script)、report (koma-script)、book (koma-script)
12025 \emph default
12026 の レイアウトファイルは 
12027 \family typewriter
12028 scrmacros.inc
12029 \family default
12030 というファイルを読み込みます。このファイルの中にあなたの新しいクラスを定義することができます。s
12031 \family typewriter
12032 crmacros.inc
12033 \family default
12034 を自分用のレイアウトディレクトリにコピーして編集してください。
12035 \end_layout
12036
12037 \begin_layout Subsection
12038 letter (koma-script)
12039 \end_layout
12040
12041 \begin_layout Standard
12042 \begin_inset ERT
12043 status collapsed
12044
12045 \begin_layout Plain Layout
12046
12047
12048 \backslash
12049 begin{sloppypar}
12050 \end_layout
12051
12052 \end_inset
12053
12054
12055 \end_layout
12056
12057 \begin_layout Standard
12058 文書クラス 
12059 \emph on
12060 letter (koma-script)
12061 \emph default
12062 は、レイアウトファイル 
12063 \family typewriter
12064 scrlettr.layout
12065 \family default
12066 で実装されています。これは標準的な文書クラス 
12067 \emph on
12068 letter
12069 \emph default
12070 にあるすべての環境を少し変えた形で含んでいますが、LyXに特有の 
12071 \family sans
12072 LyX-Code
12073 \family default
12074
12075 \family sans
12076 Comment
12077 \family default
12078
12079 \family sans
12080 List
12081 \family default
12082 タイプは新しい 
12083 \family sans
12084 Labeling
12085 \family default
12086 タイプを代わりに使ってください。それ以外にも標準的な文書クラスの場合と違い、
12087 \family sans
12088 LaTeX
12089 \family default
12090
12091 \family sans
12092 Quotation
12093 \family default
12094
12095 \family sans
12096 Quote
12097 \family default
12098
12099 \family sans
12100 Verse
12101 \family default
12102 を含んでいます。またそれ以外にも多くの手紙特有の環境が付け加えられています。
12103 \end_layout
12104
12105 \begin_layout Standard
12106 \begin_inset ERT
12107 status collapsed
12108
12109 \begin_layout Plain Layout
12110
12111
12112 \backslash
12113 end{sloppypar}
12114 \end_layout
12115
12116 \end_inset
12117
12118
12119 \end_layout
12120
12121 \begin_layout Standard
12122 この文書クラスで作られた手紙の色々な部分は、多くの LaTeXコマンドで変えることができます(LyXでするには 
12123 \family sans
12124 \bar under
12125 L
12126 \bar default
12127 ayout\SpecialChar \menuseparator
12128 LaTeX
12129 \family default
12130  
12131 \family sans
12132 Preamble
12133 \family default
12134 選んで下さい)
12135 \begin_inset Foot
12136 status collapsed
12137
12138 \begin_layout Plain Layout
12139 例えば普通の名前と住所の入った手紙のへッダをつけるにはプリアンブルに次のようなコマンドを入れます。
12140 \end_layout
12141
12142 \begin_layout LyX-Code
12143
12144 \backslash
12145 firsthead{
12146 \backslash
12147 parbox[b]{
12148 \backslash
12149 textwidth}
12150 \end_layout
12151
12152 \begin_layout LyX-Code
12153 {
12154 \backslash
12155 ignorespaces 
12156 \backslash
12157 fromname
12158 \backslash
12159
12160 \backslash
12161  
12162 \backslash
12163 ignorespaces 
12164 \backslash
12165 fromaddress}} 
12166 \end_layout
12167
12168 \begin_layout LyX-Code
12169
12170 \backslash
12171 nexthead{
12172 \backslash
12173 parbox[b]{
12174 \backslash
12175 textwidth}
12176 \end_layout
12177
12178 \begin_layout LyX-Code
12179 {
12180 \backslash
12181 ignorespaces 
12182 \backslash
12183 fromname 
12184 \backslash
12185 hfill 
12186 \backslash
12187 ignorespaces 
12188 \backslash
12189 pagename
12190 \backslash
12191  
12192 \backslash
12193 thepage}}
12194 \end_layout
12195
12196 \end_inset
12197
12198 。このような LaTeXコマンドの詳しいドイツ語の説明は Koma-Scriptの取扱説明書 
12199 \emph on
12200 scrguide
12201 \emph default
12202 に書いてあります。これを参照して自分用の手紙のレイアウトを作ることができます。
12203 \end_layout
12204
12205 \begin_layout Standard
12206
12207 \family sans
12208 Letter
12209 \family default
12210 環境と 
12211 \family sans
12212 Opening
12213 \family default
12214 環境は手紙の始めを定義する環境で、すべての手紙に使わなければなりません。これらの環境を強調するために、LyXでは左余白にそれぞれ 
12215 \shape italic
12216 L
12217 \shape default
12218 と 
12219 \shape italic
12220 O
12221 \shape default
12222 という文字が表示されます。一つのファイルにいくつもの手紙を書くのが可能です。
12223 \family sans
12224 Opening
12225 \family default
12226 環境は同じ住所を使って新しい手紙を始め、
12227 \family sans
12228 Letter
12229 \family default
12230 環境は新しい住所を作ります。
12231 \family sans
12232 Closing
12233 \family default
12234
12235 \family sans
12236 PS
12237 \family default
12238
12239 \family sans
12240 CC
12241 \family default
12242
12243 \family sans
12244 Encl
12245 \family default
12246 は通常の段落環境で一つの同じ手紙の中で何回でも使うことができます。
12247 \end_layout
12248
12249 \begin_layout Itemize
12250
12251 \family sans
12252 Letter: 住所のための段落をつくり、暗黙に手紙の始まりを定義します。
12253 \end_layout
12254
12255 \begin_layout Itemize
12256
12257 \family sans
12258 Opening
12259 \family default
12260 : 敬称のための段落をつくり、暗黙に新しい手紙を始めます。
12261 \end_layout
12262
12263 \begin_layout Itemize
12264
12265 \family sans
12266 Closing
12267 \family default
12268 : 結語のための段落をつくります。
12269 \end_layout
12270
12271 \begin_layout Itemize
12272
12273 \family sans
12274 PS
12275 \family default
12276 : 追伸のための段落をつくります。
12277 \end_layout
12278
12279 \begin_layout Itemize
12280
12281 \family sans
12282 CC
12283 \family default
12284 : 配布先のリストのための段落をつくります。
12285 \end_layout
12286
12287 \begin_layout Itemize
12288
12289 \family sans
12290 Encl
12291 \family default
12292 : 同封した物を書くための段落をつくります。
12293 \end_layout
12294
12295 \begin_layout Standard
12296
12297 \family sans
12298 Name
12299 \family default
12300
12301 \family sans
12302 Signature
12303 \family default
12304
12305 \family sans
12306 Address
12307 \family default
12308
12309 \family sans
12310 Telephone
12311 \family default
12312
12313 \family sans
12314 Place
12315 \family default
12316
12317 \family sans
12318 Backaddress
12319 \family default
12320
12321 \family sans
12322 Specialmail
12323 \family default
12324
12325 \family sans
12326 Location
12327 \family default
12328
12329 \family sans
12330 Title
12331 \family default
12332
12333 \family sans
12334 Subject
12335 \family default
12336 といった環境は情報を入力するための環境で、どのような情報を入れるかのラベルがついていて、文書クラスによって処理されます
12337 \begin_inset Foot
12338 status collapsed
12339
12340 \begin_layout Plain Layout
12341 上で述べた 
12342 \family sans
12343 Letter
12344 \family default
12345 や 
12346 \family sans
12347 Opening
12348 \family default
12349 がこれらと同じ入力タイプではないのが不合理に見えるかもしれません。しかし、この2つの環境の特別の役割のために、私はこれらを左余白にマークのある普通の段落環境とし
12350 て実装しました。それと私の感覚では、
12351 \family sans
12352 Opening
12353 \family default
12354 環境と 
12355 \family sans
12356 Closing
12357 \family default
12358 環境が同じように見える方がいいと思います。
12359 \end_layout
12360
12361 \end_inset
12362
12363 。これらの環境は対応する 
12364 \family sans
12365 Opening
12366 \family default
12367 環境の前に置く必要があります。
12368 \end_layout
12369
12370 \begin_layout Standard
12371 これらの環境を WYSIWYGの形で実装するのは意味がありません。なぜならつくられた手紙の外観はどの環境を使っているかだけではなく、他の要素にも影響されるからで
12372 す。例えば 
12373 \family sans
12374 Signature
12375 \family default
12376 環境は 
12377 \family sans
12378 Closing
12379 \family default
12380 環境が同じ手紙に使われたときのみ最終的な手紙にあらわれます。
12381 \family sans
12382 Telephone
12383 \family default
12384 環境の値は通常手紙のどこにもあらわれません。前に脚注の中で示したやり方で手紙のへッダを変えるときに使われるかもしれません。
12385 \end_layout
12386
12387 \begin_layout Standard
12388 このような入力タイプの環境は、空の段落として使うことができます。これは 
12389 \family sans
12390 Signature
12391 \family default
12392 環境の場合に特に有効です。
12393 \family sans
12394 Signature
12395 \family default
12396 環境が使われていない場合には、
12397 \family sans
12398 Name
12399 \family default
12400 環境の値が署名として使われます。空の 
12401 \family sans
12402 Signature
12403 \family default
12404 環境がある場合には、署名がつきません。
12405 \end_layout
12406
12407 \begin_layout Standard
12408 入力タイプを使うことで手紙のテンプレートもつくることができます。住所、名前などのいつも使う情報だけは書いておき、日付などの変わっていく情報については空の入力タイ
12409 プの環境を入れておけばいいのです。
12410 \end_layout
12411
12412 \begin_layout Itemize
12413
12414 \family sans
12415 Signature
12416 \family default
12417 : 送り手の署名。通常は 
12418 \family sans
12419 Closing
12420 \family default
12421 環境の下にあらわれる。もし 
12422 \family sans
12423 Signature
12424 \family default
12425 環境が無ければ、
12426 \family sans
12427 Name
12428 \family default
12429 環境の値が代わりに使われます。
12430 \end_layout
12431
12432 \begin_layout Itemize
12433
12434 \family sans
12435 Address
12436 \family default
12437 : 送り手の住所。通常はレターへッドの送り手の名前の下に中央揃の段落で表示されます。
12438 \end_layout
12439
12440 \begin_layout Itemize
12441
12442 \family sans
12443 Telephone
12444 \family default
12445 : 送り手の電話番号。LaTeX変数 
12446 \family typewriter
12447
12448 \backslash
12449 telephonenum
12450 \family default
12451 にこれの値が代入されるだけです。
12452 \end_layout
12453
12454 \begin_layout Itemize
12455
12456 \family sans
12457 Place
12458 \family default
12459 : 手紙を書いた場所。
12460 \end_layout
12461
12462 \begin_layout Itemize
12463
12464 \family sans
12465 Date
12466 \family default
12467 : 手紙を書いた日付。
12468 \family sans
12469 Place
12470 \family default
12471 と 
12472 \family sans
12473 Date
12474 \family default
12475 は送り手の住所の下に場所と日付を右詰めの形で挿入します。もし空の 
12476 \family sans
12477 Date
12478 \family default
12479 環境が使われた場合は、
12480 \family sans
12481 Place
12482 \family default
12483 の値に関係なく場所も日付も表示されません。もし 
12484 \family sans
12485 Date
12486 \family default
12487 環境が無かった場合には、ファイルが LaTeXで処理された日付が代入されます。
12488 \end_layout
12489
12490 \begin_layout Itemize
12491
12492 \family sans
12493 Backaddress
12494 \family default
12495 : 送り手の返送する場合の住所。送り手の住所の上に小さな sans serifフォントで表示されます。
12496 \end_layout
12497
12498 \begin_layout Itemize
12499
12500 \family sans
12501 Specialmail
12502 \family default
12503 : 特別な手紙の情報。普通は住所の上、返送用の住所の下に下線つきで表示されます。
12504 \end_layout
12505
12506 \begin_layout Itemize
12507
12508 \family sans
12509 Location
12510 \family default
12511 : 追加的な情報。普通は住所の下の右側に表示されます。
12512 \end_layout
12513
12514 \begin_layout Itemize
12515
12516 \family sans
12517 Title
12518 \family default
12519 : 手紙の題名。表題の上に大きな太い sans serifフォントで表示されます。
12520 \end_layout
12521
12522 \begin_layout Itemize
12523
12524 \family sans
12525 Subject
12526 \family default
12527 : 手紙の表題。
12528 \family sans
12529 Opening
12530 \family default
12531 環境の上に太字で表示されます。
12532 \end_layout
12533
12534 \begin_layout Standard
12535
12536 \family sans
12537 Yourref
12538 \family default
12539
12540 \family sans
12541 Yourmail
12542 \family default
12543
12544 \family sans
12545 Myref
12546 \family default
12547
12548 \family sans
12549 Customer
12550 \family default
12551
12552 \family sans
12553 Invoice
12554 \family default
12555 といったタイプは、
12556 \family sans
12557 Title
12558 \family default
12559 行の上にビジネス用の手紙のような 
12560 \begin_inset Quotes eld
12561 \end_inset
12562
12563 Your ref.
12564 \begin_inset Quotes erd
12565 \end_inset
12566
12567
12568 \begin_inset Quotes eld
12569 \end_inset
12570
12571 Your letter of
12572 \begin_inset Quotes erd
12573 \end_inset
12574
12575
12576 \begin_inset Quotes eld
12577 \end_inset
12578
12579 Our ref.
12580 \begin_inset Quotes erd
12581 \end_inset
12582
12583
12584 \begin_inset Quotes eld
12585 \end_inset
12586
12587 Customer no.
12588 \begin_inset Quotes erd
12589 \end_inset
12590
12591
12592 \begin_inset Quotes eld
12593 \end_inset
12594
12595 Invoice no.
12596 \begin_inset Quotes erd
12597 \end_inset
12598
12599
12600 \begin_inset Quotes eld
12601 \end_inset
12602
12603 Date
12604 \begin_inset Quotes erd
12605 \end_inset
12606
12607 といったフィールドを含む行をつくります。日付には 
12608 \family sans
12609 Date
12610 \family default
12611 の値が使われます。このようなビジネス用のタイプが使われた場合、
12612 \family sans
12613 Place
12614 \family default
12615 の値は手紙にあらわれずに、LaTeX変数 
12616 \family typewriter
12617
12618 \backslash
12619 fromplace
12620 \family default
12621 がセットさせるだけになります。通常の住所フィールドの下の右揃での場所と日付の出力は抑制されます。これらのビジネス用のタイプはラベルを持った入力タイプとして実装さ
12622 れていて、対応する 
12623 \family sans
12624 Opening
12625 \family default
12626 環境より前に置く必要があります。
12627 \end_layout
12628
12629 \begin_layout Itemize
12630
12631 \family sans
12632 Yourref
12633 \family default
12634 : Your ref.
12635 \end_layout
12636
12637 \begin_layout Itemize
12638
12639 \family sans
12640 Yourmail
12641 \family default
12642 : Your letter of.
12643 \end_layout
12644
12645 \begin_layout Itemize
12646
12647 \family sans
12648 Myref
12649 \family default
12650 : Our ref.
12651 \end_layout
12652
12653 \begin_layout Itemize
12654
12655 \family sans
12656 Customer
12657 \family default
12658 : Customer no.
12659 \end_layout
12660
12661 \begin_layout Itemize
12662
12663 \family sans
12664 Invoice
12665 \family default
12666 : Invoice no.
12667 \end_layout
12668
12669 \begin_layout Subsection
12670 新しい letter class: letter (koma-script v.2)
12671 \end_layout
12672
12673 \begin_layout Standard
12674 Koma-Script バージョン 2.8は新しい レタークラス 
12675 \family typewriter
12676 scrlttr2
12677 \family default
12678 を導入して、今まで使われてきた 
12679 \family typewriter
12680 scrlettr
12681 \family default
12682 はサポートされなくなりました。これは、LaTeX の側で、全く新しいインターフェイスを持ち、今までのクラスと互換性を持ちません。そのために LyX
12683  は新旧二つのクラスをサポートしています。ただし、できるだけ新しいクラスを使ってください。
12684 \end_layout
12685
12686 \begin_layout Standard
12687 このクラスは 
12688 \emph on
12689 letter (koma-script)
12690 \emph default
12691 の機能はすべて持っていて、また新しい機能も付け加えられています。基本的な要素は 
12692 \family sans
12693 Address
12694 \family default
12695 (受取人の住所、古いレイアウトの 
12696 \family sans
12697 Letter
12698 \family default
12699 と同じ)、
12700 \family sans
12701 Opening
12702 \family default
12703
12704 \family sans
12705 Closing
12706 \family default
12707 です。
12708 \family sans
12709 NextAddress
12710 \family default
12711 は新しい手紙を始めます(つまり、一つの文章で複数の手紙を書くことができます)。新しい要素は送り手の 
12712 \family sans
12713 E-Mail
12714 \family default
12715
12716 \family sans
12717 URL
12718 \family default
12719
12720 \family sans
12721 Fax
12722 \family default
12723
12724 \family sans
12725 Bank
12726 \family default
12727 、それとヘッダに(
12728 \family sans
12729 Insert\SpecialChar \menuseparator
12730 Graphics
12731 \family default
12732 を使って)ロゴを入れることができます。
12733 \end_layout
12734
12735 \begin_layout Standard
12736 一番大きな改良点は、ほとんどすべてのニーズを満たすように手紙のレイアウトが設定可能になったことでしょう。これはプリアンブル(
12737 \family sans
12738 \bar under
12739 L
12740 \bar default
12741 ayout\SpecialChar \menuseparator
12742 Preamble
12743 \family default
12744 \SpecialChar \ldots{}
12745 )かクラスオプションとして特別のスタイルファイル(レタークラスオプション、拡張子は 
12746 \family typewriter
12747 *.lco
12748 \family default
12749 )を読み込んで設定します
12750 \begin_inset Foot
12751 status collapsed
12752
12753 \begin_layout Plain Layout
12754 KOMAパッケージにはいくつかの既定の *.lco ファイルが含まれています。例えば、
12755 \family typewriter
12756 DIN.lco
12757 \family default
12758 はドイツの組版ルールにそったもので、
12759 \family typewriter
12760 KOMAold.lco
12761 \family default
12762 は古い クラスの既定の
12763 \family typewriter
12764 scrlettr
12765 \family default
12766 レイアウトです。
12767 \family typewriter
12768 KOMAold
12769 \family default
12770 クラスオプションをつけるには、
12771 \family sans
12772 \bar under
12773 L
12774 \bar default
12775 ayout\SpecialChar \menuseparator
12776
12777 \bar under
12778 D
12779 \bar default
12780 ocument\SpecialChar \menuseparator
12781 Extra Options
12782 \family default
12783 フィールドに 
12784 \family typewriter
12785 KOMAold
12786 \family default
12787 を挿入してください。
12788 \end_layout
12789
12790 \end_inset
12791
12792 。使い方の例として LyXに含まれる 
12793 \emph on
12794 koma-letter2
12795 \emph default
12796 テンプレートを見てください。詳しい説明は Koma-Script の取扱説明書(
12797 \emph on
12798 scrguide
12799 \emph default
12800 )を見てください。
12801 \end_layout
12802
12803 \begin_layout Subsection
12804 問題点
12805 \end_layout
12806
12807 \begin_layout Standard
12808 Koma-Script文書クラスを LyXで表示するさいに、LyXの内部構造がいくつかの問題を引き起こします。
12809 \end_layout
12810
12811 \begin_layout Itemize
12812
12813 \family sans
12814 Chapter
12815 \family default
12816 環境の章番号が章の題名と同じ行ではなく、その上の行に表示されます。これはレイアウトファイルの中の 
12817 \family sans
12818 Counter_Chapter
12819 \family default
12820 ラベルタイプに対する LyXの振る舞いのためです。
12821 \end_layout
12822
12823 \begin_layout Itemize
12824
12825 \family sans
12826 Addchap
12827 \family default
12828 と 
12829 \family sans
12830 Addsec
12831 \family default
12832 でつけた見出しは本当の LaTeXファイルの目次には挿入されますが、LyXの目次(
12833 \family sans
12834 \bar under
12835 V
12836 \bar default
12837 iew\SpecialChar \menuseparator
12838
12839 \bar under
12840 T
12841 \bar default
12842 able
12843 \begin_inset space ~
12844 \end_inset
12845
12846 of
12847 \begin_inset space ~
12848 \end_inset
12849
12850 Contents
12851 \family default
12852 )には挿入されません。
12853 \end_layout
12854
12855 \begin_layout Itemize
12856
12857 \emph on
12858 letter
12859 \emph default
12860 文書クラスでの段落は段落の間に間隔を開けることによって分けられていて、字下げは使いません。これが通常の振る舞いで、そのために特別な LaTeXコマンドは必要あり
12861 ません。しかし 
12862 \family sans
12863 \bar under
12864 L
12865 \bar default
12866 ayout\SpecialChar \menuseparator
12867
12868 \bar under
12869 D
12870 \bar default
12871 ocument
12872 \family default
12873 ダイアログでは 
12874 \family sans
12875 \bar under
12876 I
12877 \bar default
12878 ndent
12879 \family default
12880 ボタンが押された状態になっています。これは 
12881 \family sans
12882 S
12883 \bar under
12884 k
12885 \bar default
12886 ip
12887 \family default
12888 は段落間に間を開ける LaTeXコマンドを挿入するボタンですが、この文書クラスの場合、特別な LaTeXコマンドを挿入する必要がないからです。
12889 \end_layout
12890
12891 \begin_layout Section
12892 Latex8(IEEE学会論文)
12893 \end_layout
12894
12895 \begin_layout Standard
12896 \begin_inset Flex CharStyle:Noun
12897 status collapsed
12898
12899 \begin_layout Plain Layout
12900 Allan Rae
12901 \end_layout
12902
12903 \end_inset
12904
12905
12906 \end_layout
12907
12908 \begin_layout Subsection
12909 はじめに
12910 \end_layout
12911
12912 \begin_layout Standard
12913 このクラスは IEEEがスポンサーになっているカンファレンスに投稿するためのものです。したがって、このクラスを使うには IEEEの Authors
12914  Kitを手に入れることを強くお薦めします。
12915 \family sans
12916 latex.sty
12917 \family default
12918 パッケージと それに付随する bibliographyスタイルファイルはそのキットに含まれています。Authors Kitは通常初めの投稿が受理されたときに
12919  e-mailで送られてきます。その中にはフォーマットに関する制限等の役に立つ情報が色々書いてあります。以下ではあなたがこのキットを手にいれて、読んでいるものと
12920 して話を進めていきます。
12921 \end_layout
12922
12923 \begin_layout Subsection
12924 はじめに
12925 \end_layout
12926
12927 \begin_layout Standard
12928 [AR\SpecialChar \@.
12929  more to come]未完成
12930 \end_layout
12931
12932 \begin_layout Subsection
12933 サポートされている環境
12934 \end_layout
12935
12936 \begin_layout Itemize
12937
12938 \family sans
12939 Standard
12940 \end_layout
12941
12942 \begin_layout Itemize
12943
12944 \family sans
12945 Title
12946 \end_layout
12947
12948 \begin_layout Itemize
12949
12950 \family sans
12951 Author
12952 \end_layout
12953
12954 \begin_layout Itemize
12955
12956 \family sans
12957 E-mail
12958 \end_layout
12959
12960 \begin_layout Itemize
12961
12962 \family sans
12963 Affiliation
12964 \end_layout
12965
12966 \begin_layout Itemize
12967
12968 \family sans
12969 Abstract
12970 \end_layout
12971
12972 \begin_layout Itemize
12973
12974 \family sans
12975 Section
12976 \end_layout
12977
12978 \begin_layout Itemize
12979
12980 \family sans
12981 SubSection
12982 \end_layout
12983
12984 \begin_layout Itemize
12985
12986 \family sans
12987 Caption
12988 \end_layout
12989
12990 \begin_layout Subsection
12991 画面と印刷したものの違い
12992 \end_layout
12993
12994 \begin_layout Standard
12995 主に節番号の表示の仕方のために、画面上と印刷したものの間には小さな違いがあります。画面上では節番号に続くピリオドが表示されません。印刷したものにはちゃんと表示さ
12996 れるので心配しないでください。
12997 \end_layout
12998
12999 \begin_layout Section
13000 Memoir
13001 \end_layout
13002
13003 \begin_layout Standard
13004 \begin_inset Flex CharStyle:Noun
13005 status collapsed
13006
13007 \begin_layout Plain Layout
13008 Jürgen Spitzmüller
13009 \end_layout
13010
13011 \end_inset
13012
13013
13014 \end_layout
13015
13016 \begin_layout Subsection
13017 概観
13018 \end_layout
13019
13020 \begin_layout Standard
13021 Memoir は非常に強力で着実に改良されている文書クラスです。フィクションとノンフィクションの文学作品用にデザインされています。このクラスの目的は、ユーザーが
13022 文章の組版に対して最大限にコントロールできることです。Memoir は標準の book クラスをベースにしていますが、article クラスをまねることもできま
13023 す(やり方は以下で説明します)。
13024 \end_layout
13025
13026 \begin_layout Standard
13027 Memoir の開発者である Peter Wilson は LaTeX の世界で多くの便利なパッケージの作者として知られています。それらのほとんどは
13028  Memoir に含まれています。そのために、目次、付録、章のデザインなどを簡単にレイアウトすることができます。ただし、LyX はそれらすべての機能をサポートし
13029 ているわけではありません。いくつかのものは将来のバージョンでサポートされるでしょうが
13030 \begin_inset Foot
13031 status collapsed
13032
13033 \begin_layout Plain Layout
13034 提案があれば 
13035 \begin_inset Flex URL
13036 status collapsed
13037
13038 \begin_layout Plain Layout
13039
13040 lyx-devel@lists.lyx.org
13041 \end_layout
13042
13043 \end_inset
13044
13045 までぜひおくって下さい。
13046 \end_layout
13047
13048 \end_inset
13049
13050 、LyX のフレームワークによる制限のために多くのものはサポートされないでしょう。もちろん、LaTeX コマンド(ERT
13051 \begin_inset Foot
13052 status collapsed
13053
13054 \begin_layout Plain Layout
13055 詳しくはセクション
13056 \begin_inset space ~
13057 \end_inset
13058
13059
13060 \begin_inset CommandInset ref
13061 LatexCommand ref
13062 reference "sec:LaTeXコードを挿入する"
13063
13064 \end_inset
13065
13066 を見てください。
13067 \end_layout
13068
13069 \end_inset
13070
13071 )を直接入力することによって、すべての機能を使うことは可能です。その節では、LyX でサポートされている機能だけについて簡単に見ていくことにします。詳しい説明や
13072 、LyX で直接サポートされていない機能については、Memoir クラスの詳しい取扱説明書
13073 \begin_inset Foot
13074 status collapsed
13075
13076 \begin_layout Plain Layout
13077 \begin_inset Flex URL
13078 status collapsed
13079
13080 \begin_layout Plain Layout
13081
13082 CTAN:/macros/latex/memoir/memman.pdf
13083 \end_layout
13084
13085 \end_inset
13086
13087
13088 \end_layout
13089
13090 \end_inset
13091
13092 を見てください。この取扱説明書はこのクラスのユーザーの手引きであるだけでなく、よい組版とはどういうものかという総合的な解説やよい組版のすばらしい例を含んでいます
13093
13094 \end_layout
13095
13096 \begin_layout Subsection
13097 基本的な機能と制限
13098 \end_layout
13099
13100 \begin_layout Standard
13101 Memoir は標準の book クラスのすべての機能を基本的にサポートしています。しかし、以下のようないくつかの違いがあります。
13102 \end_layout
13103
13104 \begin_layout Description
13105 フォントサイズ: Memoir の方がより広い範囲のフォントサイズが使えます。9、10、11、12、14、17
13106 \end_layout
13107
13108 \begin_layout Description
13109 ページスタイル: fancyhdr パッケージと Memoir の間の一つのコマンドの衝突のため(2つのパッケージが一つのコマンドを同じ名前で定義しているために
13110 、LaTeX を混乱させるのです)、手の込んだページスタイルは使えません。そのかわりに、Memoir はいくつものページスタイルを用意しています(
13111 \family sans
13112 Layout\SpecialChar \menuseparator
13113 Document\SpecialChar \menuseparator
13114 Page
13115 \begin_inset space ~
13116 \end_inset
13117
13118 Style
13119 \family default
13120  を見てください)。それらのページスタイルを章題ページに使いたい場合は、
13121 \family typewriter
13122
13123 \backslash
13124 chapterstyle
13125 \family default
13126  コマンドを本文かプリアンブルに記述する必要があります(つまり、
13127 \family typewriter
13128
13129 \backslash
13130 chapterstyle{companion}
13131 \family default
13132  のようなコマンドです)。
13133 \end_layout
13134
13135 \begin_layout Description
13136 節分け: 標準的なクラスでは節分けコマンド(chapter、 section、 subsection等)は一つのオプションをとることができます。このオプションで
13137 目次とヘッダーの表示用の題名を指定できます(題名が長い場合などに使います)。LyX では、chapterや sectionの始めのところで 
13138 \family sans
13139 Insert\SpecialChar \menuseparator
13140 Short
13141 \begin_inset space ~
13142 \end_inset
13143
13144 Title
13145 \family default
13146 を使って指定できます。Memoir は2つめのオプションを取ることができ、目次用の題名とヘッダー用の題名を異なるものにできます。つまり、本文中の題名、目次用の題
13147 名、ヘッダー用の題名の3種類の題名を使うことができるのです。残念ながら LyXは2つのオプションを取ることをサポートしていません。しかし、この制限は次のようにし
13148 て回避できます。一つめと二つめの項の間に ERTモード(
13149 \family sans
13150 C-l
13151 \family default
13152 )で一組の括弧を入れればいいのです。つまり、Short Title インセットに 
13153 \emph on
13154 <目次用の題名>
13155 \emph default
13156  
13157 \family typewriter
13158 ][
13159 \family default
13160  
13161 \emph on
13162 <ヘッダ用の題名>
13163 \emph default
13164  と入力すればいいのです( 
13165 \family typewriter
13166 ][
13167 \family default
13168  は TeXモードです)。 
13169 \end_layout
13170
13171 \begin_layout Description
13172 目次/図、表のリスト: 標準のクラス(とそれ以外の多くのクラス)では、目次、図のリスト、表のリストは自動的に新しいページから始まります。Memoir
13173  はこれらのクラスとは異なり、新しいページで始めたいなら自分でページの区切りを入れる必要があります。
13174 \end_layout
13175
13176 \begin_layout Description
13177 タイトルページ: 理由はわからないのですが、Memoir はタイトルページにページ番号をつけます(標準のクラスでは、タイトルページのスタイルは「empty」、つ
13178 まりページ番号はつきません)。タイトルページにページ番号を付けたくない場合は、プリアンブルに 
13179 \family typewriter
13180
13181 \backslash
13182 aliaspagestyle{title}{empty}
13183 \family default
13184 と入力してください。
13185 \end_layout
13186
13187 \begin_layout Description
13188 Article: クラスオプションに 
13189 \emph on
13190 article
13191 \emph default
13192  をつけると(
13193 \family sans
13194 Layout\SpecialChar \menuseparator
13195 Document\SpecialChar \menuseparator
13196 Extra
13197 \begin_inset space ~
13198 \end_inset
13199
13200 Options
13201 \family default
13202  を選んで入力します)、article スタイルをまねることができます。つまり、(脚注、図、表等の)カウンターは新しい章に入ってもリセットされません。また新しい
13203 章は新しいページからはじまりません(ただし、本当の article クラスとは違って、新しいページから始めることもできます)。しかし、parts
13204  は bookクラスと同様に新しいページからはじまります。
13205 \end_layout
13206
13207 \begin_layout Description
13208 Oldfontcommands: 既定では Memoir は LaTeX バージョン 2.09 で使われていた古いフォントコマンド(つまり、
13209 \family typewriter
13210
13211 \backslash
13212 rm
13213 \family default
13214  や 
13215 \family typewriter
13216
13217 \backslash
13218 it
13219 \family default
13220  )を使うことを許しません。そのようなコマンドが表れた場合は、エラーが発生して LaTeX が止まります。クラスオプション 
13221 \emph on
13222 oldfontcommands
13223 \emph default
13224  を使うと、警告が出るだけになります(少なくとも LaTeX は止まりません)。多くのパッケージ、特に BibTeX のスタイルファイルはまだ古いフォントコマン
13225 ドを使っているために、我々は既定でこのオプションを使うことに決めました。
13226 \end_layout
13227
13228 \begin_layout Subsection
13229 追加された機能
13230 \end_layout
13231
13232 \begin_layout Standard
13233 LyXでサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう。詳しくは Memoir の取扱説明書
13234 \begin_inset Foot
13235 status collapsed
13236
13237 \begin_layout Plain Layout
13238 \begin_inset Flex URL
13239 status collapsed
13240
13241 \begin_layout Plain Layout
13242
13243 CTAN:/macros/latex/memoir/memman.pdf
13244 \end_layout
13245
13246 \end_inset
13247
13248
13249 \end_layout
13250
13251 \end_inset
13252
13253 を見てください。
13254 \end_layout
13255
13256 \begin_layout Description
13257 Abstract: なぜ abstract が追加された機能なのか不思議かもしれませんが、標準の Bookクラスには abstract は無いのです。しかし、M
13258 emoir にはあります。文章中のどこにでも、また何回でも abstract を使うことができます。
13259 \end_layout
13260
13261 \begin_layout Description
13262 Chapterprecis: 純文学を読んでいて、これを見たことがあるかも知れません。章の内容が簡単にタイトルの下と目次に書いてあるものがあります(つまり、「我
13263 々のヒーローがトロヤに到着する。彼は友人を失うが、新たな友人を得る。」というようなものです)。これが Chapterprecis です。したがって、章の下でのみ
13264 意味を持ちます。
13265 \end_layout
13266
13267 \begin_layout Description
13268 Epigraph: epigraphは章の始めに書かれた、標語やモットーです。epigraph 環境はそのような標語をタイプセットする方法を用意します。標語自身
13269 (テキスト)とその著者(ソース)が短い線で分けられます。この環境はテキストとソースという 2つのオプションを必要とするので、LyXをごまかす必要があります。この
13270 場合は、(TeXモードで)2つのオプションの間に括弧を入れます。
13271 \emph on
13272 <標語>
13273 \emph default
13274  
13275 \family typewriter
13276 }{
13277 \family default
13278  
13279 \emph on
13280 <標語の著者>
13281 \emph default
13282  としますが、この中の 
13283 \family typewriter
13284 }{
13285 \family default
13286  が TeXモードでの入力です。
13287 \end_layout
13288
13289 \begin_layout Description
13290 Poemtitle: Memoir は(複雑で抽象的なものも含めて)詩をタイプセットするための多くの機能を持っています。LyXでは、その中のいくつかしかサポート
13291 していません。その一つが poemtitle です。これは詩のための中央におかれたタイトルで、目次にも含められます(verse が詩のための標準的な環境です。M
13292 emoir はverseを拡張した環境を持っていますが、これを使うためには ERT が必要です。この環境は verse環境の中に入れ子にする必要があるのですが、
13293 LyXではそれがサポートされていないからです)。
13294 \end_layout
13295
13296 \begin_layout Description
13297 Poemtitle*: poemtitle と同じですが、目次には加えられません。
13298 \end_layout
13299
13300 \begin_layout Section
13301 Article(mwart)・book(mwbk)・report(mwrep)
13302 \begin_inset OptArg
13303 status collapsed
13304
13305 \begin_layout Plain Layout
13306
13307 \family typewriter
13308 mw
13309 \family default
13310 クラス
13311 \end_layout
13312
13313 \end_inset
13314
13315
13316 \end_layout
13317
13318 \begin_layout Standard
13319 \begin_inset Flex CharStyle:Noun
13320 status collapsed
13321
13322 \begin_layout Plain Layout
13323 Tomasz Luczak
13324 \end_layout
13325
13326 \end_inset
13327
13328
13329 \end_layout
13330
13331 \begin_layout Standard
13332 LyXの文書クラス 
13333 \emph on
13334 article (mwart)
13335 \emph default
13336
13337 \emph on
13338 report (mwrep)、book
13339 \emph default
13340  
13341 \emph on
13342 (mwbk)
13343 \emph default
13344  はそれぞれ LaTeX の文書クラス 
13345 \family typewriter
13346 mwart.cls
13347 \family default
13348
13349 \family typewriter
13350 mwrep.cls、mwbk.cls
13351 \family default
13352 に対応しています。これらは、標準的な 
13353 \family typewriter
13354 article.cls
13355 \family default
13356
13357 \family typewriter
13358 report.cls、book.cls
13359 \family default
13360 を代替するものでいくつかの点でポーランド語の組版ルールによりよくしたがっています。
13361 \end_layout
13362
13363 \begin_layout Standard
13364 基本的な違いは、次の点です。
13365 \end_layout
13366
13367 \begin_layout Itemize
13368 番号の付かない見出し(
13369 \family sans
13370 Section*
13371 \family default
13372 のようなアステリスクがついたもの)も目次に加えられます。
13373 \end_layout
13374
13375 \begin_layout Itemize
13376 ページスタイルの追加。
13377 \end_layout
13378
13379 \begin_deeper
13380 \begin_layout Description
13381 uheadings 線で本文と分けられたヘッダ
13382 \end_layout
13383
13384 \begin_layout Description
13385 myheadings カスタムヘッダ、ヘッダの内容は 
13386 \family typewriter
13387
13388 \backslash
13389 markright
13390 \family default
13391 と 
13392 \family typewriter
13393
13394 \backslash
13395 markboth
13396 \family default
13397 コマンドで指定します
13398 \end_layout
13399
13400 \begin_layout Description
13401 myuheadings 線で本文と分けられたカスタムヘッダ
13402 \end_layout
13403
13404 \begin_layout Description
13405 outer ページ番号がページの外側に付きます
13406 \end_layout
13407
13408 \end_deeper
13409 \begin_layout Itemize
13410 オプション
13411 \end_layout
13412
13413 \begin_deeper
13414 \begin_layout Description
13415 rmheadings serif のタイトル --- 既定
13416 \end_layout
13417
13418 \begin_layout Description
13419 sfheadings sans serif のタイトル
13420 \end_layout
13421
13422 \begin_layout Description
13423 authortitle タイトルページにまず著者名、その次にタイトルが配置される --- 既定
13424 \end_layout
13425
13426 \begin_layout Description
13427 titleauthor タイトルページにまずタイトル、その次に著者名が配置される
13428 \end_layout
13429
13430 \begin_layout Description
13431 withmarginpar 余白のための場所をページ上で確保
13432 \end_layout
13433
13434 \end_deeper
13435 \begin_layout Section
13436 Paper
13437 \end_layout
13438
13439 \begin_layout Standard
13440
13441 \family sans
13442 paper
13443 \family default
13444 文書クラスは標準的な 
13445 \family sans
13446 article
13447 \family default
13448 クラスの代わりとなるものです。これは 
13449 \family sans
13450 article
13451 \family default
13452 クラスと同じような機能を提供しますが、節が sans serifになり ヘッディング等が変わっているこちらのレイアウトの方が気に入るかも知れません。
13453 \end_layout
13454
13455 \begin_layout Section
13456 RevTeX4
13457 \end_layout
13458
13459 \begin_layout Standard
13460 by 
13461 \noun on
13462 Amir Karger
13463 \end_layout
13464
13465 \begin_layout Standard
13466 \begin_inset VSpace bigskip
13467 \end_inset
13468
13469
13470 \end_layout
13471
13472 \begin_layout Standard
13473 \noindent
13474
13475 \family sans
13476 Revtex
13477 \family default
13478  テキストクラスは American Physical Sociey
13479 \family sans
13480 のRevtex 4.0(the 
13481 \begin_inset Formula $\beta$
13482 \end_inset
13483
13484  release of May, 1999)クラスと使います。
13485 \end_layout
13486
13487 \begin_layout Standard
13488 LyXは RevTeX 3.1と使う 
13489 \family sans
13490 Revtex
13491 \family default
13492 テキストクラス持っています。v3.1は LaTeX 2.09で動くもので時代遅れになっています。LyXは LaTeX2eで動いているので、これを LyXでサポートす
13493 るのは大変でした。RevTeX 4.0からは、より LaTeX2eでうまく動くようにデザインされているので、LyXで 
13494 \family sans
13495 RevTeX
13496 \family default
13497 テキストクラスを使うのはずっと簡単になりました。
13498 \end_layout
13499
13500 \begin_layout Standard
13501 ここでの説明は RevTeX 4.0の説明書への追加として考えてください。したがって特有の RevTeXマクロを説明せず、また必要な場合にプリアンブルにどうすれば
13502 コマンドを入れればいいかを知っているものとして説明していきます。
13503 \end_layout
13504
13505 \begin_layout Subsection
13506 インストール
13507 \end_layout
13508
13509 \begin_layout Standard
13510 まず、RevTeX 4の READMEに説明しているやり方で RevTeX 4をインストールする必要があります。このパッケージ自体はThe RevTeX
13511  4 Web Site 
13512 \begin_inset Flex URL
13513 status collapsed
13514
13515 \begin_layout Plain Layout
13516
13517 http://publish.aps.org/revtex4/
13518 \end_layout
13519
13520 \end_inset
13521
13522 から手にいれることができます。LaTeXが見つけることのできる場所にインストールしてください。そして、インストールしたのとは異なる任意のディレクトリで短い
13523  RevTeX 4の文章を LaTeXでコンパイルできるかどうかを確かめてください。この後、LyXを再設定するとクラスファイルを見つけ、RevTeX4テキストク
13524 ラスが使えるようになるはずです。
13525 \end_layout
13526
13527 \begin_layout Standard
13528 おそらく使い始める一番簡単な方法は RevTeX 4の文章を 
13529 \family typewriter
13530 reLyX
13531 \family default
13532 を使ってインポートするか、またはテンプレートディレクトリにある 
13533 \family sans
13534 Revtex
13535 \begin_inset space ~
13536 \end_inset
13537
13538 4
13539 \family default
13540 テンプレートを使うことでしょう。
13541 \end_layout
13542
13543 \begin_layout Subsection
13544 プリアンブルに関すること
13545 \end_layout
13546
13547 \begin_layout Standard
13548
13549 \family typewriter
13550
13551 \backslash
13552 documentclass
13553 \family default
13554 に与える preprintや apsのような追加的なオプションは、
13555 \family sans
13556 Document
13557 \begin_inset space ~
13558 \end_inset
13559
13560 Layoutダイアログの E
13561 \bar under
13562 x
13563 \bar default
13564 tra
13565 \begin_inset space ~
13566 \end_inset
13567
13568 Options
13569 \family default
13570 フィールドに入れます。RevTeXでは少なくとも一つのオプションが必要なことに注意してください。
13571 \end_layout
13572
13573 \begin_layout Standard
13574 それ以外の
13575 \family typewriter
13576
13577 \backslash
13578 draft
13579 \family default
13580 等のようにプリアンブルに入れるものは、
13581 \family sans
13582 Latex
13583 \begin_inset space ~
13584 \end_inset
13585
13586 Preamble
13587 \family default
13588 ダイアログに入れてください。
13589 \end_layout
13590
13591 \begin_layout Subsection
13592 レイアウト
13593 \end_layout
13594
13595 \begin_layout Standard
13596 レイアウトは基本的に RevTeX4.0のコマンドに対応しています。例えば Emailレイアウトは 
13597 \family typewriter
13598
13599 \backslash
13600 email{}
13601 \family default
13602 に対応しています。少なくとも RevTeX 4.0 Betaでは、
13603 \family sans
13604 Address
13605 \family default
13606 と 
13607 \family sans
13608 Affiliation
13609 \family default
13610 はまったく同じものなので、両方を使うことはないことに注意してください
13611 \begin_inset Foot
13612 status collapsed
13613
13614 \begin_layout Plain Layout
13615 LyXには両方が含まれています。そのために 
13616 \family typewriter
13617
13618 \backslash
13619 address
13620 \family default
13621 と 
13622 \family typewriter
13623
13624 \backslash
13625 affiliation
13626 \family default
13627 の両方を 
13628 \family typewriter
13629 reLyX
13630 \family default
13631 が翻訳できます。
13632 \end_layout
13633
13634 \end_inset
13635
13636
13637 \end_layout
13638
13639 \begin_layout Subsection
13640 重要な注意
13641 \end_layout
13642
13643 \begin_layout Standard
13644 RevTeX 4には独特な面があり、これが LyXを混乱させバグを引き起こします。
13645 \end_layout
13646
13647 \begin_layout Standard
13648 RevTeXでは、
13649 \family typewriter
13650
13651 \backslash
13652 thanks
13653 \family default
13654 コマンドは 
13655 \family typewriter
13656
13657 \backslash
13658 author
13659 \family default
13660 環境の外側で使います。LyXでこれと同じ働きをするのは別の Thanksレイアウトです。したがって
13661 \family sans
13662 、Author
13663 \family default
13664 レイアウトに脚注を書かないでください。ムチャクチャになる可能性があります。詳しくは RevTeX 4の説明書を見てください。
13665 \end_layout
13666
13667 \begin_layout Standard
13668 また 
13669 \family sans
13670 Author
13671 \begin_inset space ~
13672 \end_inset
13673
13674 Email
13675 \family default
13676
13677 \family sans
13678 Author
13679 \begin_inset space ~
13680 \end_inset
13681
13682 URL、Thanks
13683 \family default
13684 レイアウトは 
13685 \family sans
13686 Author
13687 \family default
13688 レイアウトと対応する 
13689 \family sans
13690 Address
13691 \family default
13692 (または同等の 
13693 \family sans
13694 Affiliation
13695 \family default
13696 )レイアウトの間に置かなければなりません。もし 
13697 \family sans
13698 Thanks
13699 \family default
13700 を 
13701 \family sans
13702 Address
13703 \family default
13704 の後ろへ置くと、LaTeXはコンパイルに失敗します。
13705 \end_layout
13706
13707 \begin_layout Subsection
13708 問題点
13709 \end_layout
13710
13711 \begin_layout Standard
13712 このレイアウトの主な問題点は Emailや Titleのようなレイアウトに追加的な引数を使うことができないことです。(これはこのレイアウトだけの問題ではありませ
13713 ん。例えば、Sectionレイアウトに追加的な引数を使うことができません)。これはあなたがファイルを LaTeXファイルに変換した後(これは APSに投稿するた
13714 めに変換する必要があります)、テキストエディタを使ってオプションの引数を加える(例えばへッダにランニングタイトルを加える)必要があるということです。これらのレイ
13715 アウトがないということは 
13716 \family typewriter
13717
13718 \backslash
13719 altaffiliation
13720 \family default
13721 (またそれと同等な 
13722 \family typewriter
13723
13724 \backslash
13725 altaddress
13726 \family default
13727 )を使えなくするので、手で書き加える必要があります
13728 \begin_inset Foot
13729 status collapsed
13730
13731 \begin_layout Plain Layout
13732
13733 \emph on
13734 Note from JMarc:
13735 \emph default
13736  実際、LyX 1.3.0 はいくつかの形の追加オプションをサポートしています。しかし、このレイアウトはこの機能を使うようにまだアップデートされてないのです。
13737 \end_layout
13738
13739 \end_inset
13740
13741
13742 \end_layout
13743
13744 \begin_layout Section
13745 Springer学術誌(
13746 \family sans
13747 svjour)
13748 \end_layout
13749
13750 \begin_layout Standard
13751 \begin_inset Flex CharStyle:Noun
13752 status collapsed
13753
13754 \begin_layout Plain Layout
13755 Martin Vermeer
13756 \end_layout
13757
13758 \end_inset
13759
13760
13761 \end_layout
13762
13763 \begin_layout Subsection
13764 説明
13765 \end_layout
13766
13767 \begin_layout Standard
13768 これは Springer Verlagのいくつかの学術雑誌のためのレイアウトファイルです。
13769 \begin_inset Flex URL
13770 status collapsed
13771
13772 \begin_layout Plain Layout
13773
13774 http://www.springer.de/author/tex/help-journals.html
13775 \end_layout
13776
13777 \end_inset
13778
13779 に必要なクラスファイル(LaTeX2e用になりました)とそれに対応する雑誌の一覧があります。このレイアウトファイルはモジュール方式になっています。すべてのジャー
13780 ナルに共通な部分は 
13781 \family typewriter
13782 svjour.inc
13783 \family default
13784 にまとめてあり、各々の雑誌のレイアウトファイル(例えば、
13785 \family typewriter
13786 svjog.layout
13787 \family default
13788 は Journal of Geodesy のためのレイアウトファイルです)にそれが読み込まれます。
13789 \end_layout
13790
13791 \begin_layout Standard
13792 したがって、クラスファイルがサポートする他の Springer の雑誌用のレイアウトファイルをつくるには、
13793 \family typewriter
13794 svjog.layout
13795 \family default
13796 に含まれるアウトラインにしたがうと、あなた自身の 
13797 \family typewriter
13798 sv
13799 \family default
13800 <myjournal>
13801 \family typewriter
13802 .layout
13803 \family default
13804 を簡単に作れます。
13805 \end_layout
13806
13807 \begin_layout Standard
13808 これは Journal of Geodesyに対してしかちゃんとテストしていません。
13809 \family typewriter
13810 svjour
13811 \family default
13812  と 
13813 \family typewriter
13814 svjog
13815 \family default
13816  は標準的な LyX ディストリビューションに含まれています。関連するクラスファイルを(Springerからダウンロードして)正しいディレクトリにイントールして
13817 、LaTeXがそれらのファイルを探せるように設定し(teTeXの場合は texhashを走らせます)、LyXを再設定してください。これで動くはずです。
13818 \end_layout
13819
13820 \begin_layout Subsection
13821 新しい環境
13822 \end_layout
13823
13824 \begin_layout Standard
13825 多くの定理型の環境 --- 
13826 \family sans
13827 Claim、Conjecture、
13828 \family default
13829  
13830 \family sans
13831 \SpecialChar \ldots{}
13832 Theorem
13833 \family default
13834
13835 \end_layout
13836
13837 \begin_layout Standard
13838
13839 \family sans
13840 Headnote、Dedication、Subtitle、Running_LaTeX_Title、Author_Running、Institute、Mail、O
13841 ffprints、Keywords、Acknowledgements、Acknowledgement
13842 \family default
13843 。詳しくは Springerのクラスファイルの説明書を読んでください。
13844 \end_layout
13845
13846 \begin_layout Subsection
13847 サポートしているジャーナル
13848 \end_layout
13849
13850 \begin_layout Itemize
13851
13852 \emph on
13853 Journal of Geodesy
13854 \emph default
13855
13856 \family typewriter
13857 svjog.layout
13858 \family default
13859  --- Martin Vermeer
13860 \end_layout
13861
13862 \begin_layout Itemize
13863
13864 \emph on
13865 Probability Theory and Related Fields
13866 \emph default
13867
13868 \family typewriter
13869 svprobth.layout
13870 \family default
13871  --- Jean-Marc Lasgouttes
13872 \end_layout
13873
13874 \begin_layout Standard
13875 あなた自身のレイアウトファイルをつくってください。難しくはありません。
13876 \end_layout
13877
13878 \begin_layout Subsection
13879 Credits
13880 \end_layout
13881
13882 \begin_layout Standard
13883 これらのファイルは、以前の 
13884 \family typewriter
13885 ejour2.layout
13886 \family default
13887 をもとにしています。
13888 \family typewriter
13889 ejour2.layout
13890 \family default
13891 は Springerの LaTeX 2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです。これらのファイルはすでにありません。Jean-Ma
13892 rc Lasgouttesのおかげで LyXのレイアウトファイルのメカニズムをよりよく理解することができました。
13893 \end_layout
13894
13895 \begin_layout Subsection
13896 バグ
13897 \end_layout
13898
13899 \begin_layout Standard
13900 多分あります。以前の 
13901 \family typewriter
13902 ejour2
13903 \family default
13904 よりは少なくなっているとは思いますが。
13905 \end_layout
13906
13907 \begin_layout Standard
13908 制限事項:定理型の環境の番号は表示されません。#が表示されるだけです。
13909 \end_layout
13910
13911 \begin_layout Section
13912 Slides(別名
13913 \noun on
13914 Sli
13915 \noun default
13916 TeX)
13917 \begin_inset CommandInset label
13918 LatexCommand label
13919 name "sec:slitex"
13920
13921 \end_inset
13922
13923
13924 \end_layout
13925
13926 \begin_layout Standard
13927 \begin_inset Flex CharStyle:Noun
13928 status collapsed
13929
13930 \begin_layout Plain Layout
13931 John Weiss
13932 \end_layout
13933
13934 \end_inset
13935
13936
13937 \end_layout
13938
13939 \begin_layout Subsection
13940 はじめに
13941 \end_layout
13942
13943 \begin_layout Standard
13944 この節では、LyXでどのようにオーバーへッドプロジェクタ用のスライドをつくるかを説明します。そのための文書クラスには、既定の slideクラスと
13945  
13946 \family sans
13947 Foil
13948 \family default
13949 TeX slideクラスの2つがあります。この節は既定の slideクラスを説明します。
13950 \end_layout
13951
13952 \begin_layout Standard
13953 間違えないようにもう一度はっきりと言っておきます。
13954 \end_layout
13955
13956 \begin_layout Standard
13957 \begin_inset VSpace bigskip
13958 \end_inset
13959
13960
13961 \end_layout
13962
13963 \begin_layout Standard
13964 \align center
13965
13966 \size large
13967 この節は文書クラス 
13968 \begin_inset Quotes eld
13969 \end_inset
13970
13971
13972 \family sans
13973 slides (default)
13974 \family default
13975
13976 \begin_inset Quotes erd
13977 \end_inset
13978
13979  だけを説明しています。
13980 \end_layout
13981
13982 \begin_layout Standard
13983 \begin_inset VSpace bigskip
13984 \end_inset
13985
13986
13987 \end_layout
13988
13989 \begin_layout Standard
13990
13991 \family sans
13992 slides (FoilTeX)
13993 \family default
13994 の説明を探しているなら、セクション
13995 \begin_inset space ~
13996 \end_inset
13997
13998
13999 \begin_inset CommandInset ref
14000 LatexCommand ref
14001 reference "sec:foiltex"
14002
14003 \end_inset
14004
14005 を見てください。
14006 \family sans
14007 slides (FoilTeX)
14008 \family default
14009 はこの節で説明している既定の 
14010 \family sans
14011 slides
14012 \family default
14013 クラスよりもよいもののようです
14014 \begin_inset Foot
14015 status collapsed
14016
14017 \begin_layout Plain Layout
14018 \SpecialChar \ldots{}
14019
14020 \family sans
14021 FoilTeX
14022 \family default
14023 の支持者からは聞いています。けれども私は使ったことがないので、本当かどうか確かめようがありません。
14024 \end_layout
14025
14026 \end_inset
14027
14028
14029 \end_layout
14030
14031 \begin_layout Standard
14032 このクラスは古い SLITeXパッケージを LaTeX2eで改良したものです。すべての LaTeX2eディストリビューションがこのクラス(これから単に
14033  
14034 \family sans
14035 slides
14036 \family default
14037 と言うことにします)を持っています。前に言ったように、オーバーへッドプロジェクタ用のスライドをつくるためには 
14038 \family sans
14039 foils
14040 \family default
14041 というクラスもあり、よりよいパッケージのようですが、オーバーレイをつくるといったような、
14042 \family sans
14043 slides
14044 \family default
14045 だけができることもあります。詳しくは以下を読んでください。
14046 \end_layout
14047
14048 \begin_layout Subsection
14049 はじめに
14050 \begin_inset CommandInset label
14051 LatexCommand label
14052 name "sec:slidesetup"
14053
14054 \end_inset
14055
14056
14057 \end_layout
14058
14059 \begin_layout Standard
14060 この文書クラスを使うにはあたりまえですが、まず初めに 
14061 \family sans
14062 Document
14063 \family default
14064 ダイアログの 
14065 \family sans
14066 \bar under
14067 C
14068 \bar default
14069 lass
14070 \family default
14071 エントリから 
14072 \family sans
14073 slides (default)
14074 \family default
14075 を選ばなければなりません。このクラスについて知っておいた方がいいことがいくつかあります。
14076 \end_layout
14077
14078 \begin_layout Itemize
14079
14080 \family sans
14081 Document
14082 \family default
14083 ダイアログの 
14084 \family sans
14085 Sides
14086 \family default
14087 と 
14088 \family sans
14089 Columns
14090 \family default
14091 のオプションは変えないでください。これらのオプションは 
14092 \family sans
14093 slides
14094 \family default
14095 クラスではサポートされていません。
14096 \end_layout
14097
14098 \begin_layout Itemize
14099 このクラスの 
14100 \family sans
14101 Document
14102 \family default
14103 ダイアログの 
14104 \family sans
14105 \bar under
14106 P
14107 \bar default
14108 agestyle
14109 \family default
14110 の振る舞いは、他のクラスと少し違っています。選択肢とそれの説明を書いておきます。
14111 \end_layout
14112
14113 \begin_deeper
14114 \begin_layout Description
14115
14116 \family sans
14117 plain 最終的な出力ではページ番号が右下につきます。
14118 \end_layout
14119
14120 \begin_layout Description
14121
14122 \family sans
14123 headings plainと似ていますが、それ以外にあなたの指定したタイムマーカを印刷します。これが既定です。
14124 \end_layout
14125
14126 \begin_layout Description
14127
14128 \family sans
14129 empty 最終的な印刷物にはページ番号も、タイムマーカも位置を揃えるための目印も印刷されません。
14130 \end_layout
14131
14132 \end_deeper
14133 \begin_layout Itemize
14134
14135 \family sans
14136 slides
14137 \family default
14138 クラスは 
14139 \family typewriter
14140 clock
14141 \family default
14142 という追加的なオプションを持っています。これを使うには 
14143 \family sans
14144 Document
14145 \family default
14146 ダイアログの 
14147 \family sans
14148 E
14149 \bar under
14150 x
14151 \bar default
14152 tra Option
14153 \family default
14154 ボックスに 
14155 \family typewriter
14156 clock
14157 \family default
14158 と入力してください。
14159 \end_layout
14160
14161 \begin_deeper
14162 \begin_layout Standard
14163 このオプションを使うことでタイムマーカを 
14164 \family sans
14165 Note
14166 \family default
14167 sに加えることができます。詳しくはセクション 
14168 \begin_inset CommandInset ref
14169 LatexCommand ref
14170 reference "sec:slideNote"
14171
14172 \end_inset
14173
14174 を見てください。
14175 \end_layout
14176
14177 \end_deeper
14178 \begin_layout Standard
14179 自動的に文章を 
14180 \family sans
14181 slides
14182 \family default
14183 クラスを使うようにするには、テンプレートファイル 
14184 \family typewriter
14185 slides.lyx
14186 \family default
14187 を使うこともできます。
14188 \family sans
14189 \bar under
14190 F
14191 \bar default
14192 ile\SpecialChar \menuseparator
14193 New from
14194 \family default
14195  
14196 \family sans
14197 \bar under
14198 t
14199 \bar default
14200 emplate
14201 \family default
14202 を使ってください。このテンプレートファイルにはこのクラスで使われる特別な段落環境も含まれています。それを次に説明しましょう。
14203 \end_layout
14204
14205 \begin_layout Subsection
14206 段落環境
14207 \end_layout
14208
14209 \begin_layout Subsubsection
14210
14211 \family sans
14212 サポートされている環境
14213 \end_layout
14214
14215 \begin_layout Standard
14216 新しく 
14217 \family sans
14218 slides
14219 \family default
14220 クラスで文章を書き始めてまず気が付くことは、フォントの大きさと形でしょう。これは 
14221 \family sans
14222 Sans
14223 \family default
14224 フォントの 
14225 \family sans
14226 Largest
14227 \family default
14228 サイズと同じフォントです。このフォントが印刷には使われます。これをスライドを作っているのだという目印にして下さい。印刷したスライドにはもっと大きな文字を使うこと
14229 もできますが、そのかわり書くことのできる量は少なくなります。もちろん、より大きいスクリーンフォントは WYSIWYGではありません。分かるようにしてあるだけです
14230
14231 \end_layout
14232
14233 \begin_layout Standard
14234 次に気が付くことは、段落環境プルダウンボックス(ツールバーの左端です)の内容が変わっていることでしょう。いつも見慣れた環境の多くは無くなっていて、5つの新しい環
14235 境が入っています。これは 
14236 \family sans
14237 slides
14238 \family default
14239 クラスがそれらの環境しかサポートしていないためです。
14240 \end_layout
14241
14242 \begin_layout Itemize
14243
14244 \family sans
14245 Standard
14246 \end_layout
14247
14248 \begin_layout Itemize
14249
14250 \family sans
14251 Itemize
14252 \end_layout
14253
14254 \begin_layout Itemize
14255
14256 \family sans
14257 Enumerate
14258 \end_layout
14259
14260 \begin_layout Itemize
14261
14262 \family sans
14263 Description
14264 \end_layout
14265
14266 \begin_layout Itemize
14267
14268 \family sans
14269 List
14270 \end_layout
14271
14272 \begin_layout Itemize
14273
14274 \family sans
14275 Quotation
14276 \end_layout
14277
14278 \begin_layout Itemize
14279
14280 \family sans
14281 Quote
14282 \end_layout
14283
14284 \begin_layout Itemize
14285
14286 \family sans
14287 Verse
14288 \end_layout
14289
14290 \begin_layout Itemize
14291
14292 \family sans
14293 Caption
14294 \end_layout
14295
14296 \begin_layout Itemize
14297
14298 \family sans
14299 LyX-Code
14300 \end_layout
14301
14302 \begin_layout Itemize
14303
14304 \family sans
14305 Comment
14306 \end_layout
14307
14308 \begin_layout Standard
14309 これ以外の標準的な環境、例えば節見出し用の環境などは 
14310 \family sans
14311 slides
14312 \family default
14313 クラスでは使えません。
14314 \end_layout
14315
14316 \begin_layout Standard
14317 一方、次の新しい環境があります。
14318 \end_layout
14319
14320 \begin_layout Itemize
14321
14322 \family sans
14323 Slide
14324 \end_layout
14325
14326 \begin_layout Itemize
14327
14328 \family sans
14329 Overlay
14330 \end_layout
14331
14332 \begin_layout Itemize
14333
14334 \family sans
14335 Note
14336 \end_layout
14337
14338 \begin_layout Itemize
14339
14340 \family sans
14341 InvisibleText
14342 \end_layout
14343
14344 \begin_layout Itemize
14345
14346 \family sans
14347 VisibleText
14348 \end_layout
14349
14350 \begin_layout Standard
14351 これらの5つは、LyXの機能のために少し使い方に癖があります。LyXでは空の段落環境に他の段落を入れることはできません。それ自体はなかなかよいデザインなのですが
14352 、これはスライドを始めるのに普通の文しか使えないことを意味します。これを扱うために、ちょっとした LaTeXマジックが必要になります。
14353 \end_layout
14354
14355 \begin_layout Subsubsection
14356 新しい環境の振る舞い
14357 \begin_inset CommandInset label
14358 LatexCommand label
14359 name "sec:slideQuirk"
14360
14361 \end_inset
14362
14363
14364 \end_layout
14365
14366 \begin_layout Standard
14367 5つの新しい環境すべてに LyXの制約から来る少し変な癖があります。前に指摘したように、LyXは空の環境のなかに別の環境を入れるのを禁じています。これを回避する
14368 ために、
14369 \family sans
14370 Slide
14371 \family default
14372 環境は
14373 \emph on
14374 ユーザーの手引き
14375 \emph default
14376 で述べられているような段落環境ではありません。
14377 \end_layout
14378
14379 \begin_layout Standard
14380
14381 \family sans
14382 Slide
14383 \family default
14384
14385 \family sans
14386 Overlay
14387 \family default
14388
14389 \family sans
14390 Note
14391 \family default
14392 は「疑似環境」だと考えてください。それらは節の見出しやキャプションのように見えますが、実際は(必要なら前の段落環境を終わって)新しい段落環境を開始します。同様に
14393
14394 \family sans
14395 InvisibleText
14396 \family default
14397 と 
14398 \family sans
14399 VisibleText
14400 \family default
14401 は「疑似コマンド」だと考えてください。この2つは何らかのことを行います。
14402 \end_layout
14403
14404 \begin_layout Standard
14405
14406 \family sans
14407 Slide
14408 \family default
14409
14410 \family sans
14411 Overlay
14412 \family default
14413
14414 \family sans
14415 Note
14416 \family default
14417
14418 \family sans
14419 InvisibleText、VisibleText
14420 \family default
14421 の5つの環境に共通の機能は長いラベルです。このラベルに続くテキスト --- 通常の段落環境なら段落の内容にあたります ---は、
14422 \family sans
14423 Slide
14424 \family default
14425
14426 \family sans
14427 Overlay
14428 \family default
14429
14430 \family sans
14431 Note
14432 \family default
14433
14434 \family sans
14435 InvisibleText、VisibleText
14436 \family default
14437 にとってまったく無関係で、LyXは完全にそれを無視します。実際これらの5つの環境は、完全に中身がからのままにしておけるのです。
14438 \end_layout
14439
14440 \begin_layout Standard
14441 長いラベルの後にテキストを入れる必要がないからと言っても、テキストを入れたい場合にはどうしたらいいでしょう。例えばこのスライドについての短い説明等をいれる場合で
14442 す。このような場合は、いつもと同じように説明を入力して 
14443 \family sans
14444 Return
14445 \family default
14446 を押すだけです。
14447 \end_layout
14448
14449 \begin_layout Standard
14450 もしテキスト以外のものを入れようとした場合には、LyXの別の制約に直面します。自然が真空を憎むように、LyXは古い環境に何かを置くまで新しい環境を古い環境のなか
14451 には入れることができません。次のようにしてください。
14452 \end_layout
14453
14454 \begin_layout Itemize
14455 新しい 
14456 \family sans
14457 Slide
14458 \family default
14459
14460 \family sans
14461 Overlay
14462 \family default
14463
14464 \family sans
14465 Note
14466 \family default
14467
14468 \family sans
14469 InvisibleText、VisibleText
14470 \family default
14471 に入れるテキストを入力してください。
14472 \end_layout
14473
14474 \begin_layout Itemize
14475 段落の先頭に移動します。
14476 \end_layout
14477
14478 \begin_layout Itemize
14479 次に 
14480 \family sans
14481 Return
14482 \family default
14483 を押します。
14484 \end_layout
14485
14486 \begin_layout Itemize
14487 最後にこの新しいからの段落を 
14488 \family sans
14489 Slide
14490 \family default
14491
14492 \family sans
14493 Overlay
14494 \family default
14495
14496 \family sans
14497 Note
14498 \family default
14499
14500 \family sans
14501 InvisibleText、VisibleText
14502 \family default
14503 に変えます。
14504 \end_layout
14505
14506 \begin_layout Standard
14507 将来の LyXではこんなややこしいことをしなくてもよくなることを祈っているのですが\SpecialChar \ldots{}
14508
14509 \end_layout
14510
14511 \begin_layout Subsection
14512
14513 \family sans
14514 Slide
14515 \family default
14516
14517 \family sans
14518 Overlay、Noteで発表用のスライドを作る
14519 \end_layout
14520
14521 \begin_layout Subsubsection
14522
14523 \family sans
14524 Slide
14525 \family default
14526 環境を使う
14527 \end_layout
14528
14529 \begin_layout Standard
14530 この節はどうやれば実際のスライドを作ることができるのかを説明していると思っている人がいるかもしれません。ここでは 
14531 \family sans
14532 slides
14533 \family default
14534 クラスがどのように発表用の準備をするのに使うことができるのかを説明しているだけです。内容は自分で考えてください。
14535 \end_layout
14536
14537 \begin_layout Standard
14538
14539 \family sans
14540 まず Slide
14541 \family default
14542 環境を選んで、新しいスライドを作ることを LyXに知らせてください。この環境(疑似環境)のラベルが下線に続く NewSlideという青い文字であらわれます。この
14543 ラベルに続くテキスト、環境が新しいスライドに入ります。簡単でしょう。
14544 \end_layout
14545
14546 \begin_layout Standard
14547 スライドは LyXの中で強制的にページを終えなければならない多分唯一の環境です(これは 
14548 \family sans
14549 Paragraph Layout
14550 \family default
14551 ダイアログで設定できます)。必要な内容を入れたら、スライドを終わってください。一枚のスライドに入りきらない内容の場合は、次の新しいスライドにまわされます。しかし
14552 これはしない方がいいでしょう。ページ番号がその新しいスライドにはつかないからです。そのうえ、一枚に収まらないスライドは 
14553 \family sans
14554 Overlay
14555 \family default
14556 を使う場合にうまく行かないかもしれません。
14557 \end_layout
14558
14559 \begin_layout Standard
14560
14561 \family sans
14562 Overlay
14563 \family default
14564 と 
14565 \family sans
14566 Note
14567 \family default
14568 環境も 
14569 \family sans
14570 Slide
14571 \family default
14572 環境と同じように動きます。これらの環境を選ぶと、線とそれに続くラベル、NewOverlay:または NewNote:が表示されます。ただし色は青でなくピンクにな
14573 り、線も違うものが使われます。ラベルのフォントもこれら3つの環境で異なるものが使われます。
14574 \end_layout
14575
14576 \begin_layout Standard
14577
14578 \family sans
14579 Slide
14580 \family default
14581 と同じように内容が1枚のシートに収まらない場合は、新しいシートにまわされます。しかし、これは避けたほうがいいでしょう。
14582 \family sans
14583 Note
14584 \family default
14585 や 
14586 \family sans
14587 Overlay
14588 \family default
14589 の目的を台無しにしてしまいます。
14590 \end_layout
14591
14592 \begin_layout Subsubsection
14593
14594 \family sans
14595 Overlayを Slideといっしょに使う
14596 \end_layout
14597
14598 \begin_layout Standard
14599
14600 \family sans
14601 Overlay
14602 \family default
14603 の基本的な機能は重ね合わせて使うスライドを作ることです。例えば、発表でまず図を見せてそれからテキストを見せたいような場合があるでしょう。一つの方法は見せたくない
14604 部分を紙で隠してしまうことですが、これはいつもうまく行くとは限りません。グラフにグラフを重ねる場合などは、見せたくない方を紙で隠すことはできません。別々のスライ
14605 ドをきっちり重なるように作るのは難しいものです。このような場合は 
14606 \family sans
14607 Overlay
14608 \family default
14609 環境を使うことで作業を簡単にすることができます。
14610 \end_layout
14611
14612 \begin_layout Standard
14613 各々の 
14614 \family sans
14615 Overlay
14616 \family default
14617 のページ番号はそれの親スライドのページ番号をもらい、それに -a、-bなどを続けます。もちろん、
14618 \family sans
14619 Slide
14620 \family default
14621 も 
14622 \family sans
14623 Overlay
14624 \family default
14625 もちゃんと1枚のスライドに収まるようになってなければなりません。
14626 \family sans
14627 Overlay
14628 \family default
14629 は 
14630 \family sans
14631 Slide
14632 \family default
14633 の一部であると考えた方がいいでしょう。実際、LyXでは 
14634 \family sans
14635 Overlay
14636 \family default
14637 のラベルを 
14638 \family sans
14639 Slide
14640 \family default
14641 のラベルよりも短くすることでこれを目に見える形で表しています。最後ですが、印刷した場合には親スライドと 
14642 \family sans
14643 Overlay
14644 \family default
14645 の4隅にマークがついているのがわかるでしょう。これは2枚のシートを重ねるのが便利なようについているのです。
14646 \end_layout
14647
14648 \begin_layout Standard
14649 2つのスライドを重ね合わせる場合の一番の問題は、2枚のスライドの内容の配置でしょう。どれだけのスペースを2番目のスライドの図のために残しておくべきか、1枚目のス
14650 ライドの段落が2枚目のスライドの図とテキストの間に入るようにはどのようにしたらいいかという問題です。これを解決するいい方法が 
14651 \family sans
14652 InvisibleText
14653 \family default
14654 と 
14655 \family sans
14656 VisibleText
14657 \family default
14658 を使うことです。
14659 \end_layout
14660
14661 \begin_layout Standard
14662
14663 \family sans
14664 InvisibleText
14665 \family default
14666 と 
14667 \family sans
14668 VisibleText
14669 \family default
14670  はコマンドのような段落環境で、その名前の通りそれに続くテキストを各々見えなくしたり、見えるようにします。セクション 
14671 \begin_inset CommandInset ref
14672 LatexCommand ref
14673 reference "sec:slideQuirk"
14674
14675 \end_inset
14676
14677 で書いておいたように、この2つの環境の中には何も入れることができません。
14678 \family sans
14679 InvisibleText
14680 \family default
14681 を挿入すると、その位置に <Invisible Text Follows>と書いた青いラベルが行の真ん中に表示されます。このラベルに続く文章は、その文章分のスペ
14682 ースは空くのですが何も印刷されません。これは 
14683 \family sans
14684 Slide
14685 \family default
14686 でも 
14687 \family sans
14688 Overlay
14689 \family default
14690 でも同じです。
14691 \end_layout
14692
14693 \begin_layout Standard
14694
14695 \family sans
14696 VisibleText
14697 \family default
14698 の場合は、挿入した位置に <Visible Text Follows>と書いた緑のラベルが行の中央にあらわれます。そして、このラベル以降の文章は普通に印刷されま
14699 す。新しい 
14700 \family sans
14701 Slide
14702 \family default
14703
14704 \family sans
14705 Overlay
14706 \family default
14707
14708 \family sans
14709 Note
14710 \family default
14711 を始めると自動的に 
14712 \family sans
14713 InvisibleText
14714 \family default
14715 は終わります。そのために 
14716 \family sans
14717 Slide
14718 \family default
14719 の最後で次のスライド用に 
14720 \family sans
14721 VisibleText
14722 \family default
14723 を使う必要はありません。
14724 \end_layout
14725
14726 \begin_layout Standard
14727 これで 
14728 \family sans
14729 Slide
14730 \family default
14731 と 
14732 \family sans
14733 Overlay
14734 \family default
14735 の上で 
14736 \family sans
14737 InvisibleText
14738 \family default
14739 と 
14740 \family sans
14741 VisibleText
14742 \family default
14743 を使って重ね合わせることのできるシートを作る方法が分かったでしょう。
14744 \end_layout
14745
14746 \begin_layout Enumerate
14747 メインのスライド、重ね合わせるものに関わらず表示するものをすべて含んだスライドを作ります。
14748 \end_layout
14749
14750 \begin_layout Enumerate
14751
14752 \family sans
14753 Overlay
14754 \family default
14755 のみで表示される図、段落の前に 
14756 \family sans
14757 InvisibleText
14758 \family default
14759 環境を挿入し、
14760 \family sans
14761 Overlay
14762 \family default
14763 のみのものが終わったところに 
14764 \family sans
14765 VisibleText
14766 \family default
14767 環境を挿入します。
14768 \end_layout
14769
14770 \begin_layout Enumerate
14771
14772 \family sans
14773 Slide
14774 \family default
14775 のすぐ後から、
14776 \family sans
14777 Overlay
14778 \family default
14779 を始めます。
14780 \end_layout
14781
14782 \begin_layout Enumerate
14783 この 
14784 \family sans
14785 Slide
14786 \family default
14787 の中身を 
14788 \family sans
14789 Overlay
14790 \family default
14791 にコピーします。
14792 \end_layout
14793
14794 \begin_layout Enumerate
14795
14796 \family sans
14797 Overlay
14798 \family default
14799 の 
14800 \family sans
14801 InvisibleText
14802 \family default
14803 を 
14804 \family sans
14805 VisibleText
14806 \family default
14807 に入れ替え、
14808 \family sans
14809 VisibleText
14810 \family default
14811 を 
14812 \family sans
14813 InvisibleText
14814 \family default
14815 に入れ替えます。
14816 \end_layout
14817
14818 \begin_layout Standard
14819 これで出来上がりです。重ね合わせるシートができました。
14820 \end_layout
14821
14822 \begin_layout Standard
14823 ただし、LyXの 
14824 \family sans
14825 slides
14826 \family default
14827 クラスのデザインによる問題があります。段落の途中を見えなくしたり、見えない段落の途中だけを見えるようにしたりはできないのです。それをするためには、LaTeXコー
14828 ドを文章に埋め込む必要があります
14829 \begin_inset Foot
14830 status collapsed
14831
14832 \begin_layout Plain Layout
14833 コマンドは
14834 \end_layout
14835
14836 \begin_layout Itemize
14837
14838 \family typewriter
14839 {
14840 \backslash
14841 invisible \SpecialChar \ldots{}
14842  }
14843 \end_layout
14844
14845 \begin_layout Itemize
14846
14847 \family typewriter
14848 {
14849 \backslash
14850 visible \SpecialChar \ldots{}
14851  }
14852 \end_layout
14853
14854 \begin_layout Plain Layout
14855 で TeXとしてマークする必要があります。見え方を変えたいテキストを括弧の中の(
14856 \family typewriter
14857
14858 \backslash
14859 invisible
14860 \family default
14861 または 
14862 \family typewriter
14863
14864 \backslash
14865 visible
14866 \family default
14867 コマンドの後ろへ)入れてください。TeXとしてマークする方法を知らない場合はユーザーの手引きを見てください。
14868 \end_layout
14869
14870 \end_inset
14871
14872
14873 \end_layout
14874
14875 \begin_layout Subsubsection
14876
14877 \family sans
14878 Note
14879 \family default
14880 を 
14881 \family sans
14882 Slide
14883 \family default
14884 といっしょに使う
14885 \begin_inset CommandInset label
14886 LatexCommand label
14887 name "sec:slideNote"
14888
14889 \end_inset
14890
14891
14892 \end_layout
14893
14894 \begin_layout Standard
14895
14896 \family sans
14897 Overlay
14898 \family default
14899 と同じように 
14900 \family sans
14901 Note
14902 \family default
14903 にも元になる親スライドがあります。
14904 \family sans
14905 Note
14906 \family default
14907 の見出しは 
14908 \family sans
14909 Slide
14910 \family default
14911 より短く、はでな赤紫色をしていてすぐに気が付くようになっています。そのうえ、印刷した 
14912 \family sans
14913 Note
14914 \family default
14915 には親スライドのページ番号に 
14916 \begin_inset Quotes eld
14917 \end_inset
14918
14919
14920 \family typewriter
14921 -
14922 \family default
14923 1
14924 \begin_inset Quotes erd
14925 \end_inset
14926
14927
14928 \begin_inset Quotes eld
14929 \end_inset
14930
14931
14932 \family typewriter
14933 -
14934 \family default
14935 2
14936 \begin_inset Quotes erd
14937 \end_inset
14938
14939
14940 \begin_inset Quotes eld
14941 \end_inset
14942
14943
14944 \family typewriter
14945 -
14946 \family default
14947 3
14948 \begin_inset Quotes erd
14949 \end_inset
14950
14951 等がくっついたページ番号がつきます。1つの 
14952 \family sans
14953 Slide
14954 \family default
14955 には 
14956 \family sans
14957 Slide
14958 \family default
14959 と 
14960 \family sans
14961 Overlay
14962 \family default
14963 のようにいくつものノートをつけることができます。これは長い説明をシートに収まるように分けるのに便利です。
14964 \end_layout
14965
14966 \begin_layout Standard
14967
14968 \family sans
14969 Note
14970 \family default
14971 の目的はその 
14972 \family sans
14973 Slide
14974 \family default
14975 について、話したいことを何でも書いておくことです。また、特定の 
14976 \family sans
14977 Slide
14978 \family default
14979 についてのメモとして使うこともできます。その場合はタイムマーカを使いたくなるかもしれません。今のところ、LyXの 
14980 \family sans
14981 slides
14982 \family default
14983 クラスは 
14984 \noun on
14985 Sli
14986 \noun default
14987 TeX の機能であるタイムマーカをサポートしていません。使いたい場合は LaTeXコードを書く必要があります。
14988 \end_layout
14989
14990 \begin_layout Standard
14991 タイムマーカを使うには、追加的なクラスオプション 
14992 \family typewriter
14993 clock
14994 \family default
14995 を設定する必要があります(セクション 
14996 \begin_inset CommandInset ref
14997 LatexCommand ref
14998 reference "sec:slidesetup"
14999
15000 \end_inset
15001
15002 を見てください)。このオプションはタイムマーカ機能を起動して、すべての 
15003 \family sans
15004 Note
15005 \family default
15006 の左下にタイムマーカを印刷します。タイムマーカの記述には 
15007 \family typewriter
15008
15009 \backslash
15010 settime{}
15011 \family default
15012 と 
15013 \family typewriter
15014
15015 \backslash
15016 addtime{}
15017 \family default
15018 という LaTeXコマンドを使います。この2つのコマンドの引数は秒で計られた時間です。
15019 \family typewriter
15020
15021 \backslash
15022 settime{}
15023 \family default
15024 はタイムマーカを与えられた時間にセットします。
15025 \family typewriter
15026
15027 \backslash
15028 addtime{}
15029 \family default
15030 は指定された量だけタイムマーカを増やします。タイムマーカと 
15031 \family sans
15032 Note
15033 \family default
15034 sをこのように使うと、特定のスライドにどのくらいの時間を使うことができるのかを思い出すことができます。
15035 \end_layout
15036
15037 \begin_layout Standard
15038 最後に一つの機能の説明をしておきましょう。印刷するときは 
15039 \family sans
15040 Slide
15041 \family default
15042 sと 
15043 \family sans
15044 Overlay
15045 \family default
15046 sは OHPシートに、
15047 \family sans
15048 Note
15049 \family default
15050 sは普通の紙に印刷したいでしょう。しかし、
15051 \family sans
15052 Note
15053 \family default
15054 は親スライドのすぐ後に印刷されます。どうしたらいいのでしょう。
15055 \end_layout
15056
15057 \begin_layout Standard
15058 幸いなことに、印刷をコントロールする2つの LaTeXコマンドがあります。2つともプリアンブルに記述する必要があるコマンドです。
15059 \family typewriter
15060
15061 \backslash
15062 onlyslides{
15063 \backslash
15064 slides}
15065 \family default
15066 は 
15067 \family sans
15068 Slide
15069 \family default
15070 と 
15071 \family sans
15072 Overlay
15073 \family default
15074 のみを印刷します。そして 
15075 \family typewriter
15076
15077 \backslash
15078 onlynotes{
15079 \backslash
15080 notes}
15081 \family default
15082 は 
15083 \family sans
15084 Note
15085 \family default
15086 のみを印刷します。この2つのコマンドを両方ともプリアンブルに書いてコメントアウトしておくといいでしょう。最終的に印刷するときになってどちらかのコメントをはずせば
15087 いいのです。私は 
15088 \family typewriter
15089
15090 \backslash
15091 onlyslides{
15092 \backslash
15093 slides}
15094 \family default
15095 のコメントをはずして *-slide.psという名前のファイルに出力し、それからまたコメントマークをつけて今度は 
15096 \family typewriter
15097
15098 \backslash
15099 onlynotes{
15100 \backslash
15101 notes
15102 \family default
15103 }の方のコメントをはずして 
15104 \family typewriter
15105 *-notes.ps
15106 \family default
15107 という名前のファイルに出力して、それらのファイルをプリンタに送るという方法を使っています。
15108 \end_layout
15109
15110 \begin_layout Standard
15111 これ以外にも別の引数を 
15112 \family typewriter
15113
15114 \backslash
15115 onlyslides{}
15116 \family default
15117
15118 \family typewriter
15119
15120 \backslash
15121 onlynotes{}
15122 \family default
15123 コマンドに与えることもできます。詳しくは何かいい LaTeXの本を見てください。
15124 \end_layout
15125
15126 \begin_layout Subsection
15127
15128 \family sans
15129 slides
15130 \family default
15131 クラスのテンプレートファイル
15132 \end_layout
15133
15134 \begin_layout Standard
15135
15136 \family sans
15137 slides
15138 \family default
15139 クラス用のテンプレートファイル 
15140 \family typewriter
15141 slides.lyx
15142 \family default
15143 が用意してあります。
15144 \family sans
15145 \bar under
15146 F
15147 \bar default
15148 ile\SpecialChar \menuseparator
15149 New
15150 \begin_inset space ~
15151 \end_inset
15152
15153 from
15154 \begin_inset space ~
15155 \end_inset
15156
15157
15158 \bar under
15159 T
15160 \bar default
15161 emplate
15162 \family default
15163  から選んでください。このテンプレートは 
15164 \family sans
15165 Slide
15166 \family default
15167
15168 \family sans
15169 Overlay
15170 \family default
15171
15172 \family sans
15173 Note
15174 \family default
15175 の例になっています。また 
15176 \family sans
15177 Slide
15178 \family default
15179 と 
15180 \family sans
15181 Overlay
15182 \family default
15183 には、
15184 \family sans
15185 InvisibleText
15186 \family default
15187 と 
15188 \family sans
15189 VisibleText
15190 \family default
15191 の例も含まれています。そしてプリアンブルは次のようになっています。
15192 \end_layout
15193
15194 \begin_layout LyX-Code
15195 % Uncomment to print out only slides and overlays
15196 \end_layout
15197
15198 \begin_layout LyX-Code
15199 %
15200 \end_layout
15201
15202 \begin_layout LyX-Code
15203 %
15204 \backslash
15205 onlyslides{
15206 \backslash
15207 slides}
15208 \begin_inset Newline newline
15209 \end_inset
15210
15211  
15212 \end_layout
15213
15214 \begin_layout LyX-Code
15215 % Uncomment to print out only notes
15216 \end_layout
15217
15218 \begin_layout LyX-Code
15219 %
15220 \end_layout
15221
15222 \begin_layout LyX-Code
15223 %
15224 \backslash
15225 onlynotes{
15226 \backslash
15227 notes}
15228 \end_layout
15229
15230 \begin_layout Standard
15231 最後に一言いっておくと、私は LaTeX2eの SLITeX emulationクラス(標準的な LaTeX2eクラスの一つです)をサポートするためにこのクラス
15232 を作りました。他にもスライドの準備をする 
15233 \family sans
15234 Foils
15235 \family default
15236 (セクション 
15237 \begin_inset CommandInset ref
15238 LatexCommand ref
15239 reference "sec:foiltex"
15240
15241 \end_inset
15242
15243 を見てください)や 
15244 \family typewriter
15245 seminar
15246 \family default
15247 (まだ LyXではサポートしていません
15248 \begin_inset Foot
15249 status collapsed
15250
15251 \begin_layout Plain Layout
15252 あなたがやってみませんか。
15253 \end_layout
15254
15255 \end_inset
15256
15257 )などのLaTeX2eパッケージがあります。私はそれらを使ったことがないので分かりません。自分で試してみて、どのクラスを使うのかを決めてください。
15258 \end_layout
15259
15260 \begin_layout Chapter
15261 ソフトウェアを追加する必要がある LyX機能
15262 \end_layout
15263
15264 \begin_layout Section
15265 TeXチェック
15266 \end_layout
15267
15268 \begin_layout Standard
15269 \begin_inset Flex CharStyle:Noun
15270 status collapsed
15271
15272 \begin_layout Plain Layout
15273 Asger Alstrup
15274 \end_layout
15275
15276 \end_inset
15277
15278
15279 \end_layout
15280
15281 \begin_layout Subsection
15282 はじめに
15283 \end_layout
15284
15285 \begin_layout Standard
15286 \begin_inset Flex CharStyle:Code
15287 status collapsed
15288
15289 \begin_layout Plain Layout
15290
15291 \family typewriter
15292 chktex
15293 \end_layout
15294
15295 \end_inset
15296
15297 プログラムが導入されていると
15298 \begin_inset Foot
15299 status collapsed
15300
15301 \begin_layout Plain Layout
15302 LaTeX頒布版としてMiKTeXを使用している場合には、
15303 \begin_inset Flex CharStyle:Code
15304 status collapsed
15305
15306 \begin_layout Plain Layout
15307 chktex
15308 \end_layout
15309
15310 \end_inset
15311
15312 はまだ利用可能ではありません。
15313 \end_layout
15314
15315 \end_inset
15316
15317
15318 \begin_inset Flex CharStyle:MenuItem
15319 status collapsed
15320
15321 \begin_layout Plain Layout
15322
15323 \family sans
15324 ツール
15325 \end_layout
15326
15327 \end_inset
15328
15329 メニューの下に、
15330 \family sans
15331
15332 \begin_inset Flex CharStyle:MenuItem
15333 status collapsed
15334
15335 \begin_layout Plain Layout
15336
15337 \family sans
15338 TeX構文チェック
15339 \end_layout
15340
15341 \end_inset
15342
15343
15344 \family default
15345 という項目が表示されます。
15346 \begin_inset Flex CharStyle:Code
15347 status collapsed
15348
15349 \begin_layout Plain Layout
15350
15351 \family typewriter
15352 chktex
15353 \end_layout
15354
15355 \end_inset
15356
15357 はCTAN
15358 \begin_inset CommandInset href
15359 LatexCommand href
15360 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
15361
15362 \end_inset
15363
15364 から入手することができます。
15365 \end_layout
15366
15367 \begin_layout Standard
15368
15369 \family sans
15370 ChkTeX
15371 \family default
15372 パッケージは、LaTeXのいくつかの構成物が直感的でなく、すぐに忘れてしまうのに欲求不満を感じていた
15373 \begin_inset Flex CharStyle:Noun
15374 status collapsed
15375
15376 \begin_layout Plain Layout
15377 Jens T.
15378  Berger Thielemann
15379 \end_layout
15380
15381 \end_inset
15382
15383 によって書かれたプログラムです。このプログラムはLaTeXファイルの上を走り、ファイルの整合性をチェックして、いくつかのよくあるエラーを見つけ出します。別の技術
15384 的な言い方をすると、これはLaTeX用の
15385 \family typewriter
15386 Lint
15387 \family default
15388 です。
15389 \end_layout
15390
15391 \begin_layout Standard
15392 ところでLyXは正しいLaTeXファイルをつくるのに、なぜLaTeXの文法チェッカーがLyXに必要なのでしょう。それは
15393 \family typewriter
15394 Lint
15395 \family default
15396 がCプログラムの文法チェックをするだけでなくタイプエラーに対応するため意味もチェックするように、
15397 \family sans
15398 ChkTeX
15399 \family default
15400 は文法上のエラーだけでなく、よくある写植上のエラーも見つけてくれるからです。次の例を見てください。このようなエラーを見つけてくれます。
15401 \end_layout
15402
15403 \begin_layout Itemize
15404 省略記号の検出:
15405 \begin_inset Newline newline
15406 \end_inset
15407
15408 ...のかわりに\SpecialChar \ldots{}
15409  を使ってください。
15410 \end_layout
15411
15412 \begin_layout Itemize
15413 括弧の前または後ろのスペースがない:
15414 \begin_inset Newline newline
15415 \end_inset
15416
15417 ( wrong spacing )
15418 \end_layout
15419
15420 \begin_layout Itemize
15421 よくある省略形の後ろのスペースを正規のスペースにする:
15422 \begin_inset Newline newline
15423 \end_inset
15424
15425 e.
15426  g.
15427  is too wide spacing.
15428 \end_layout
15429
15430 \begin_layout Itemize
15431 文章が大文字で終わっているときに、文の終りのスペースに直す:
15432 \begin_inset Newline newline
15433 \end_inset
15434
15435 This is a TEST.
15436  And this is wrong spacing.
15437 \end_layout
15438
15439 \begin_layout Itemize
15440 ラベルやそれに似たコマンドの前のスペース:
15441 \begin_inset Newline newline
15442 \end_inset
15443
15444 ラベルとテキストの間にスペースがある場合、ラベルが別のページに行ってしまう可能性があります。 
15445 \begin_inset CommandInset label
15446 LatexCommand label
15447 name "sec:chktex"
15448
15449 \end_inset
15450
15451
15452 \begin_inset Foot
15453 status collapsed
15454
15455 \begin_layout Plain Layout
15456 この脚注は別のページに行く可能性があります。
15457 \end_layout
15458
15459 \end_inset
15460
15461 そうなるとラベルと本文が離れすぎてしまいます。
15462 \end_layout
15463
15464 \begin_layout Itemize
15465 レファレンスの前にハードスペースのかわりにスペース:
15466 \begin_inset Newline newline
15467 \end_inset
15468
15469 運が悪ければ、レファレンスされたテキストとレファレンス番号の間で行が変わります。セクション 
15470 \begin_inset CommandInset ref
15471 LatexCommand ref
15472 reference "sec:chktex"
15473
15474 \end_inset
15475
15476 を見てください。
15477 \end_layout
15478
15479 \begin_layout Itemize
15480 掛け算に 
15481 \begin_inset Formula $\times$
15482 \end_inset
15483
15484 のかわりに xが使われている:
15485 \begin_inset Newline newline
15486 \end_inset
15487
15488 2x2は 
15489 \begin_inset Formula $2\times2$
15490 \end_inset
15491
15492 より安っぽく見えるでしょう。
15493 \end_layout
15494
15495 \begin_layout Standard
15496 これ以外にも色々な間違いを探してくれます。文章を仕上げるのに非常に価値のあるツールです。スペルチェックが終わって、文章の微調整をする前にはかならず使った方がいい
15497 でしょう。
15498 \end_layout
15499
15500 \begin_layout Subsection
15501 使いかた
15502 \end_layout
15503
15504 \begin_layout Standard
15505 プログラムをインストールしたら、
15506 \family sans
15507 ツール\SpecialChar \menuseparator
15508 TeX構文チェック
15509 \family default
15510 を選ぶだけです。そうすると書いている文章のLaTeXファイルが生成され、
15511 \family sans
15512 ChkTeX
15513 \family default
15514 がそのLaTeXファイルをチェックします。
15515 \family sans
15516 ChkTeX
15517 \family default
15518 からの警告があった場合は、エラーボックスが LyXの文章中に挿入されます。エラーボックスは間違いのある場所の近くに挿入され、メニューアイテムの
15519 \begin_inset Flex CharStyle:MenuItem
15520 status collapsed
15521
15522 \begin_layout Plain Layout
15523 移動\SpecialChar \menuseparator
15524 エラー
15525 \end_layout
15526
15527 \end_inset
15528
15529 、または既定の
15530 \family typewriter
15531 cua
15532 \family default
15533 バインドファイルを使っている場合は
15534 \family sans
15535 C-g
15536 \family default
15537 で簡単にエラーの場所を見つけることができます。エラーボックスを開けるにはマウスでクリックするか、
15538 \family typewriter
15539 cua
15540 \family default
15541 バインドの場合は
15542 \family sans
15543 C-i
15544 \family default
15545
15546 \family typewriter
15547 emacs
15548 \family default
15549 バインドの場合は
15550 \family sans
15551 C-o
15552 \family default
15553 のショートカットキーを使います。警告を読んで、間違いを直してください。警告の意味が分からない場合は無視しても大丈夫です。画面上の文章と
15554 \family sans
15555 ChkTeX
15556 \family default
15557 が扱う文章の間にギャップがあるために変な警告がでる場合があるのです。
15558 \end_layout
15559
15560 \begin_layout Standard
15561 この文章自体が
15562 \family sans
15563 ChkTeX
15564 \family default
15565 の機能を確かめるよい材料になります。
15566 \family sans
15567 ChkTeX
15568 \family default
15569 をこの文章に走らせてみると、些細なことで多くの警告がでるのがわかるでしょう。しかし、これはコンピュータが敏感すぎるだけで、ほとんどが気にすることはない誤警報です
15570
15571 \end_layout
15572
15573 \begin_layout Subsection
15574 微調整のしかた
15575 \end_layout
15576
15577 \begin_layout Standard
15578 しばしば、
15579 \family sans
15580 ChkTeX
15581 \family default
15582 は無駄な警告を出しすぎると感じることがあります。そういう場合は
15583 \family sans
15584 ChkTeX
15585 \family default
15586 が出す警告の種類を調整することができます。またひどい状況の場合の別の選択は、
15587 \begin_inset Flex CharStyle:MenuItem
15588 status collapsed
15589
15590 \begin_layout Plain Layout
15591 表示\SpecialChar \menuseparator
15592 すべてのエラーボックスを削除
15593 \end_layout
15594
15595 \end_inset
15596
15597 を使ってすべての警告を消してしまうことです。
15598 \end_layout
15599
15600 \begin_layout Standard
15601
15602 \family sans
15603 ChkTeX
15604 \family default
15605 は非常に多くの面を調整できるのですが、それですべての問題が解決するとは思わないでください。LyXは
15606 \family sans
15607 ChkTeX
15608 \family default
15609 の出力
15610 \begin_inset Foot
15611 status collapsed
15612
15613 \begin_layout Plain Layout
15614
15615 \family sans
15616 ChkTeX
15617 \family default
15618 の出力は 
15619 \family sans
15620 ChkTeX
15621 \family default
15622 を走らせたすぐ後で 
15623 \family sans
15624 Edit\SpecialChar \menuseparator
15625 View
15626 \begin_inset space ~
15627 \end_inset
15628
15629 LaTeX
15630 \begin_inset space ~
15631 \end_inset
15632
15633 Log
15634 \family default
15635 を使えば見ることができます。
15636 \end_layout
15637
15638 \end_inset
15639
15640 から内部の構造と一致する行番号を得ることができるようなある種の特別なLaTeXファイルを生成するのですが、それでもいくつかの警告は正しい位置にあらわれません。こ
15641 れを解消するには2つの方法があります。
15642 \end_layout
15643
15644 \begin_layout Itemize
15645 \begin_inset Flex CharStyle:MenuItem
15646 status collapsed
15647
15648 \begin_layout Plain Layout
15649 設定
15650 \end_layout
15651
15652 \end_inset
15653
15654
15655 \begin_inset Flex CharStyle:MenuItem
15656 status collapsed
15657
15658 \begin_layout Plain Layout
15659 出力\SpecialChar \menuseparator
15660 LaTeX
15661 \end_layout
15662
15663 \end_inset
15664
15665 タブ)の
15666 \family sans
15667 ChkTeX
15668 \family default
15669 を起動するコマンドラインを調整するか、グローバルな
15670 \family sans
15671 ChkTeX
15672 \family default
15673 の設定ファイル(通常は
15674 \begin_inset Flex CharStyle:Code
15675 status collapsed
15676
15677 \begin_layout Plain Layout
15678 /usr/local/share/chktexrc
15679 \end_layout
15680
15681 \end_inset
15682
15683 です)を調整します。どの警告がコマンドラインから有効、無効にできるかは以下の節を見てください。
15684 \end_layout
15685
15686 \begin_layout Itemize
15687 \begin_inset Flex CharStyle:MenuItem
15688 status collapsed
15689
15690 \begin_layout Plain Layout
15691 ファイル\SpecialChar \menuseparator
15692 エクスポート\SpecialChar \menuseparator
15693 LaTeX
15694 \end_layout
15695
15696 \end_inset
15697
15698 を使って文章をLaTeXファイルに変換して、それに
15699 \family typewriter
15700 chktex
15701 \family default
15702 を走らせます。この方法では警告に対応する場所を LyXの画面上で見つけるのがすこし面倒ですが、可能でしょう。
15703 \end_layout
15704
15705 \begin_layout Standard
15706
15707 \family sans
15708 \begin_inset Flex CharStyle:MenuItem
15709 status collapsed
15710
15711 \begin_layout Plain Layout
15712
15713 \family sans
15714 設定
15715 \end_layout
15716
15717 \end_inset
15718
15719
15720 \family default
15721 で警告を有効、無効にするやり方を説明しましょう。メッセージを無効にするには、
15722 \family typewriter
15723 -n#
15724 \family default
15725 を使い、有効にするには
15726 \family typewriter
15727 -w#
15728 \family default
15729 を使ってください。以下でイタリックで書いてあるメッセージは既定で無効になっています。既定の設定は "
15730 \family typewriter
15731 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
15732 \family default
15733 "です。
15734 \end_layout
15735
15736 \begin_layout Standard
15737 メッセージを有効、無効にする以外の
15738 \family typewriter
15739 chktex
15740 \family default
15741 のオプションを使わないでください。LyXがそれ以外のいくつかのコマンドラインパラメータを特定の方法で使って 
15742 \family typewriter
15743 chktex
15744 \family default
15745 と通信しているからです。
15746 \end_layout
15747
15748 \begin_layout Enumerate
15749
15750 \size small
15751 \emph on
15752 Command terminated with space.
15753 \end_layout
15754
15755 \begin_layout Enumerate
15756
15757 \size small
15758 Non-breaking space (
15759 \begin_inset Quotes eld
15760 \end_inset
15761
15762
15763 \family typewriter
15764 ~
15765 \family default
15766
15767 \begin_inset Quotes erd
15768 \end_inset
15769
15770 ) should have been used.
15771 \end_layout
15772
15773 \begin_layout Enumerate
15774
15775 \size small
15776 \emph on
15777 You should enclose the previous parenthesis with 
15778 \begin_inset Quotes eld
15779 \end_inset
15780
15781
15782 \family typewriter
15783 {}
15784 \family default
15785
15786 \begin_inset Quotes erd
15787 \end_inset
15788
15789 .
15790 \end_layout
15791
15792 \begin_layout Enumerate
15793
15794 \size small
15795 Italic correction (
15796 \begin_inset Quotes eld
15797 \end_inset
15798
15799
15800 \family typewriter
15801
15802 \backslash
15803 /
15804 \family default
15805
15806 \begin_inset Quotes erd
15807 \end_inset
15808
15809 ) found in non-italic buffer.
15810 \end_layout
15811
15812 \begin_layout Enumerate
15813
15814 \size small
15815 Italic correction (
15816 \begin_inset Quotes eld
15817 \end_inset
15818
15819
15820 \family typewriter
15821
15822 \backslash
15823 /
15824 \family default
15825
15826 \begin_inset Quotes erd
15827 \end_inset
15828
15829 ) found more than once.
15830 \end_layout
15831
15832 \begin_layout Enumerate
15833
15834 \size small
15835 \emph on
15836 No italic correction (
15837 \begin_inset Quotes eld
15838 \end_inset
15839
15840
15841 \family typewriter
15842
15843 \backslash
15844 /
15845 \family default
15846
15847 \begin_inset Quotes erd
15848 \end_inset
15849
15850 ) found.
15851 \end_layout
15852
15853 \begin_layout Enumerate
15854
15855 \size small
15856 Accent command 
15857 \begin_inset Quotes eld
15858 \end_inset
15859
15860
15861 \family typewriter
15862 cmd
15863 \family default
15864
15865 \begin_inset Quotes erd
15866 \end_inset
15867
15868  needs use of 
15869 \begin_inset Quotes eld
15870 \end_inset
15871
15872
15873 \family typewriter
15874 cmd
15875 \family default
15876
15877 \begin_inset Quotes erd
15878 \end_inset
15879
15880 .
15881 \end_layout
15882
15883 \begin_layout Enumerate
15884
15885 \size small
15886 Wrong length of dash may have been used.
15887 \end_layout
15888
15889 \begin_layout Enumerate
15890
15891 \size small
15892 \emph on
15893 \begin_inset Quotes eld
15894 \end_inset
15895
15896
15897 \family typewriter
15898 %s
15899 \family default
15900
15901 \begin_inset Quotes erd
15902 \end_inset
15903
15904  expected, found 
15905 \begin_inset Quotes eld
15906 \end_inset
15907
15908
15909 \family typewriter
15910 %s
15911 \family default
15912
15913 \begin_inset Quotes erd
15914 \end_inset
15915
15916 .
15917 \end_layout
15918
15919 \begin_layout Enumerate
15920
15921 \size small
15922 Solo 
15923 \begin_inset Quotes eld
15924 \end_inset
15925
15926
15927 \family typewriter
15928 %s
15929 \family default
15930
15931 \begin_inset Quotes erd
15932 \end_inset
15933
15934  found.
15935 \end_layout
15936
15937 \begin_layout Enumerate
15938
15939 \size small
15940 You should use 
15941 \begin_inset Quotes eld
15942 \end_inset
15943
15944
15945 \family typewriter
15946 %s
15947 \family default
15948
15949 \begin_inset Quotes erd
15950 \end_inset
15951
15952  to achieve an ellipsis.
15953 \end_layout
15954
15955 \begin_layout Enumerate
15956
15957 \size small
15958 Inter-word spacing (
15959 \begin_inset Quotes eld
15960 \end_inset
15961
15962
15963 \family typewriter
15964
15965 \backslash
15966
15967 \family default
15968  
15969 \begin_inset Quotes eld
15970 \end_inset
15971
15972 ) should perhaps be used.
15973 \end_layout
15974
15975 \begin_layout Enumerate
15976
15977 \size small
15978 Inter-sentence spacing (
15979 \begin_inset Quotes eld
15980 \end_inset
15981
15982
15983 \family typewriter
15984
15985 \backslash
15986 @
15987 \family default
15988
15989 \begin_inset Quotes erd
15990 \end_inset
15991
15992 ) should perhaps be used.
15993 \end_layout
15994
15995 \begin_layout Enumerate
15996
15997 \size small
15998 Could not find argument for command.
15999 \end_layout
16000
16001 \begin_layout Enumerate
16002
16003 \size small
16004 No match found for 
16005 \begin_inset Quotes eld
16006 \end_inset
16007
16008
16009 \family typewriter
16010 %s
16011 \family default
16012
16013 \begin_inset Quotes erd
16014 \end_inset
16015
16016 .
16017 \end_layout
16018
16019 \begin_layout Enumerate
16020
16021 \size small
16022 Math mode still on at end of LaTeX file.
16023 \end_layout
16024
16025 \begin_layout Enumerate
16026
16027 \size small
16028 Number of 
16029 \begin_inset Quotes eld
16030 \end_inset
16031
16032
16033 \family typewriter
16034 char
16035 \family default
16036
16037 \begin_inset Quotes erd
16038 \end_inset
16039
16040  doesn't match the number of 
16041 \begin_inset Quotes eld
16042 \end_inset
16043
16044
16045 \family typewriter
16046 char
16047 \family default
16048
16049 \begin_inset Quotes erd
16050 \end_inset
16051
16052 .
16053 \end_layout
16054
16055 \begin_layout Enumerate
16056
16057 \size small
16058 You should use either 
16059 \family typewriter
16060
16061 \begin_inset Quotes eld
16062 \end_inset
16063
16064
16065 \family default
16066  or 
16067 \family typewriter
16068
16069 \begin_inset Quotes erd
16070 \end_inset
16071
16072
16073 \family default
16074  as an alternative to 
16075 \begin_inset Quotes eld
16076 \end_inset
16077
16078
16079 \family typewriter
16080 "
16081 \family default
16082
16083 \begin_inset Quotes erd
16084 \end_inset
16085
16086 .
16087 \end_layout
16088
16089 \begin_layout Enumerate
16090
16091 \size small
16092 You should use "
16093 \family typewriter
16094 '
16095 \family default
16096 " (ASCII 39) instead of "" (ASCII 180).
16097 \end_layout
16098
16099 \begin_layout Enumerate
16100
16101 \size small
16102 User-specified pattern found.
16103 \end_layout
16104
16105 \begin_layout Enumerate
16106
16107 \size small
16108 This command might not be intended.
16109 \end_layout
16110
16111 \begin_layout Enumerate
16112
16113 \size small
16114 \emph on
16115 Comment displayed.
16116 \end_layout
16117
16118 \begin_layout Enumerate
16119
16120 \size small
16121 Either 
16122 \family typewriter
16123 ''
16124 \backslash
16125 ,'
16126 \family default
16127  or 
16128 \family typewriter
16129 '
16130 \backslash
16131 ,''
16132 \family default
16133  will look better.
16134 \end_layout
16135
16136 \begin_layout Enumerate
16137
16138 \size small
16139 Delete this space to maintain correct page references.
16140 \end_layout
16141
16142 \begin_layout Enumerate
16143
16144 \size small
16145 \emph on
16146 You might wish to put this between a pair of 
16147 \begin_inset Quotes eld
16148 \end_inset
16149
16150
16151 \family typewriter
16152 {}
16153 \family default
16154
16155 \begin_inset Quotes erd
16156 \end_inset
16157
16158 .
16159 \end_layout
16160
16161 \begin_layout Enumerate
16162
16163 \size small
16164 You ought to remove spaces in front of punctuation.
16165 \end_layout
16166
16167 \begin_layout Enumerate
16168
16169 \size small
16170 Could not execute LaTeX command.
16171 \end_layout
16172
16173 \begin_layout Enumerate
16174
16175 \size small
16176 Don't use 
16177 \family typewriter
16178
16179 \backslash
16180 /
16181 \family default
16182  in front of small punctuation.
16183 \end_layout
16184
16185 \begin_layout Enumerate
16186
16187 \family typewriter
16188 \size small
16189 $
16190 \backslash
16191 times$
16192 \family default
16193  may look prettier here.
16194 \end_layout
16195
16196 \begin_layout Enumerate
16197
16198 \size small
16199 \emph on
16200 Multiple spaces detected in output.
16201 \end_layout
16202
16203 \begin_layout Enumerate
16204
16205 \size small
16206 This text may be ignored.
16207 \end_layout
16208
16209 \begin_layout Enumerate
16210
16211 \size small
16212 Use 
16213 \family typewriter
16214
16215 \begin_inset Quotes eld
16216 \end_inset
16217
16218
16219 \family default
16220  to begin quotation, not 
16221 \family typewriter
16222 '
16223 \family default
16224 .
16225 \end_layout
16226
16227 \begin_layout Enumerate
16228
16229 \size small
16230 Use 
16231 \family typewriter
16232 '
16233 \family default
16234  to end quotation, not 
16235 \family typewriter
16236
16237 \begin_inset Quotes eld
16238 \end_inset
16239
16240
16241 \family default
16242 .
16243 \end_layout
16244
16245 \begin_layout Enumerate
16246
16247 \size small
16248 Don't mix quotes.
16249 \end_layout
16250
16251 \begin_layout Enumerate
16252
16253 \size small
16254 You should perhaps use 
16255 \begin_inset Quotes eld
16256 \end_inset
16257
16258
16259 \family typewriter
16260 cmd
16261 \family default
16262
16263 \begin_inset Quotes erd
16264 \end_inset
16265
16266  instead.
16267 \end_layout
16268
16269 \begin_layout Enumerate
16270
16271 \size small
16272 You should put a space in front of/after parenthesis.
16273 \end_layout
16274
16275 \begin_layout Enumerate
16276
16277 \size small
16278 You should avoid spaces in front of/after parenthesis.
16279 \end_layout
16280
16281 \begin_layout Enumerate
16282
16283 \size small
16284 \emph on
16285 You should not use punctuation in front of/after quotes.
16286 \end_layout
16287
16288 \begin_layout Enumerate
16289
16290 \size small
16291 Double space found.
16292 \end_layout
16293
16294 \begin_layout Enumerate
16295
16296 \size small
16297 You should put punctuation outside inner/inside display math mode.
16298 \end_layout
16299
16300 \begin_layout Enumerate
16301
16302 \size small
16303 You ought to not use primitive TeX in LaTeX code.
16304 \end_layout
16305
16306 \begin_layout Enumerate
16307
16308 \size small
16309 You should remove spaces in front of 
16310 \begin_inset Quotes eld
16311 \end_inset
16312
16313
16314 \family typewriter
16315 %s
16316 \family default
16317
16318 \begin_inset Quotes erd
16319 \end_inset
16320
16321
16322 \end_layout
16323
16324 \begin_layout Enumerate
16325
16326 \size small
16327 \begin_inset Quotes eld
16328 \end_inset
16329
16330
16331 \family typewriter
16332 %s
16333 \family default
16334
16335 \begin_inset Quotes erd
16336 \end_inset
16337
16338  is normally not followed by 
16339 \begin_inset Quotes eld
16340 \end_inset
16341
16342
16343 \family typewriter
16344 %c
16345 \family default
16346
16347 \begin_inset Quotes erd
16348 \end_inset
16349
16350 .
16351 \end_layout
16352
16353 \begin_layout Standard
16354 将来的にはLyXにこのツール(それとよく似たツール
16355 \family typewriter
16356 lacheck
16357 \family default
16358 )のためのより使いやすいインターフェイスを用意できればと考えています。しかし今の状態でもまったく役に立たないということはないでしょう。ある程度の長さの文章に使っ
16359 てみてください。きっとびっくりしますよ。
16360 \end_layout
16361
16362 \begin_layout Section
16363 LyXでのバージョン管理
16364 \end_layout
16365
16366 \begin_layout Standard
16367 \begin_inset Flex CharStyle:Noun
16368 status collapsed
16369
16370 \begin_layout Plain Layout
16371 Lars Bullik Bjønnes
16372 \end_layout
16373
16374 \end_inset
16375
16376 文 
16377 \begin_inset Flex CharStyle:Noun
16378 status collapsed
16379
16380 \begin_layout Plain Layout
16381 Pavel Sanda
16382 \end_layout
16383
16384 \end_inset
16385
16386 改訂
16387 \end_layout
16388
16389 \begin_layout Subsection
16390 はじめに
16391 \end_layout
16392
16393 \begin_layout Standard
16394 私の友人がLyXをグループプロジェクトに使おうとしましたが、LyXがバージョン管理またはファイルロック機能を持っていないためにLyXを使うのをあきらめました。こ
16395 れが私がLyXでRCS(将来的にはCVSやSCCSも)をサポートしようと考えた理由です。LyXは今ではもっとも基本的なRCSコマンドをサポートしています。もしあ
16396 なたがより複雑なことをしたい場合はxterm上で自分で行う必要があります。
16397 \end_layout
16398
16399 \begin_layout Standard
16400 LyXのバージョン管理機能を使う前にrcsintro(manファイルです。
16401 \family typewriter
16402 man rcsintro
16403 \family default
16404 で読めます)を読んでください。このファイルには基本的なRCSの機能のすべてが説明してあります。特にRCSディレクトリに関するコメントと、マスターRCSファイル(
16405 \family typewriter
16406 ,v
16407 \family default
16408  で終わっているファイルです)の概念に気をつけてください。
16409 \end_layout
16410
16411 \begin_layout Standard
16412 LyXの実装にあたってはGNU RCSパッケージの最新のバージョンを使うことを想定しています。古いバージョンを使っている場合は動くかどうか保証できません。
16413 \end_layout
16414
16415 \begin_layout Subsection
16416 LyXにおけるRCSコマンド
16417 \end_layout
16418
16419 \begin_layout Standard
16420 以下の節ではLyXでサポートされているRCSコマンドを説明します。それらのコマンドは
16421 \begin_inset Flex CharStyle:MenuItem
16422 status collapsed
16423
16424 \begin_layout Plain Layout
16425 ファイル\SpecialChar \menuseparator
16426 バージョン管理
16427 \end_layout
16428
16429 \end_inset
16430
16431 の下位メニューにあります。LyXは、RCS 5.7に対して試験されています。
16432 \end_layout
16433
16434 \begin_layout Subsubsection
16435
16436 \family sans
16437 登録
16438 \end_layout
16439
16440 \begin_layout Standard
16441 あなたの書いている文章がバージョン管理の下にないならば、これがメニューにあらわれる唯一の項目です。もし文章がバージョン管理の下にあるならば、
16442 \begin_inset Flex CharStyle:MenuItem
16443 status collapsed
16444
16445 \begin_layout Plain Layout
16446 登録
16447 \end_layout
16448
16449 \end_inset
16450
16451 は灰色になって使えなくなっています。
16452 \end_layout
16453
16454 \begin_layout Standard
16455 このコマンドはあなたの文章をRCSに登録します。このコマンドを実行すると対話的にその文章の最初の説明を入れるように頼んできます。そしてその文章はRead-Onl
16456 yモードになり、変更を加えるためには
16457 \begin_inset Flex CharStyle:MenuItem
16458 status collapsed
16459
16460 \begin_layout Plain Layout
16461 チェックアウトして編集
16462 \end_layout
16463
16464 \end_inset
16465
16466 を実行する必要があります。バージョン管理の管理下にある文章はミニバッファのファイル名の後ろに [RCS:<version> <locker>]が付きます。
16467 \end_layout
16468
16469 \begin_layout Standard
16470 このコマンドは次のRCSコマンドを実行します:
16471 \family typewriter
16472 ci -q -u -i -t-"<initial description>" <file-name>
16473 \end_layout
16474
16475 \begin_layout Standard
16476 スイッチについて知りたければ 
16477 \family typewriter
16478 man ci
16479 \family default
16480 を読んでください。
16481 \end_layout
16482
16483 \begin_layout Subsubsection
16484
16485 \family sans
16486 変更をチェックインする
16487 \end_layout
16488
16489 \begin_layout Standard
16490 ファイルの編集が終わると、その変更をチェックインします。これを実行すると変更についての説明を求められ、それは履歴ログに記録されます。そしてバージョンナンバーは上
16491 がり、変更がマスターRCSファイルに反映され、その文章はアンロックされ Read-Onlyモードになります。
16492 \end_layout
16493
16494 \begin_layout Standard
16495 RCSコマンド:
16496 \family typewriter
16497 ci -q -u -m"<description>" <file-name>
16498 \end_layout
16499
16500 \begin_layout Subsubsection
16501
16502 \family sans
16503 チェックアウトして編集
16504 \end_layout
16505
16506 \begin_layout Standard
16507 このコマンドは文章をロックして編集できるようにします。そして文章をあなただけが読み書きできるようにします。しばらく文章を編集して、それが終わったらチェックインし
16508 てください。文章がロックされるとステータスラインが変わります。
16509 \end_layout
16510
16511 \begin_layout Standard
16512 RCSコマンド:
16513 \family typewriter
16514 co -q -l <file-name>
16515 \end_layout
16516
16517 \begin_layout Subsubsection
16518
16519 \family sans
16520 保存されたバージョンに戻す
16521 \end_layout
16522
16523 \begin_layout Standard
16524 このコマンドは最後のチェックイン以降のすべての変更を破棄します。変更を破棄する前には警告がでます。
16525 \end_layout
16526
16527 \begin_layout Standard
16528 RCSコマンド:
16529 \family typewriter
16530 co -f -u<version> <file-name>
16531 \end_layout
16532
16533 \begin_layout Subsubsection
16534
16535 \family sans
16536 最後のチェックインを取り消す
16537 \end_layout
16538
16539 \begin_layout Standard
16540 これは最後のチェックインがなされなかったようにします。LyXに読み込まれる文章は変わりませんが、マスターRCSファイルから最後のチェックインの変更が取り除かれま
16541 す。
16542 \end_layout
16543
16544 \begin_layout Standard
16545 RCSコマンド:
16546 \family typewriter
16547 rcs -o<version> <file-name>
16548 \end_layout
16549
16550 \begin_layout Subsubsection
16551
16552 \family sans
16553 履歴を表示
16554 \end_layout
16555
16556 \begin_layout Standard
16557 RCSドキュメントの完全なヒストリーが表示されます。これは
16558 \family typewriter
16559 rlog <file-name>
16560 \family default
16561 の出力を表示しています。詳しくは 
16562 \family typewriter
16563 rlog
16564 \family default
16565 の manページを見てください。
16566 \end_layout
16567
16568 \begin_layout Subsection
16569 LyXにおけるCVSコマンド
16570 \end_layout
16571
16572 \begin_layout Standard
16573 LyXは、現在CVSを一部サポートしています。そのコマンドは、
16574 \begin_inset Flex CharStyle:MenuItem
16575 status collapsed
16576
16577 \begin_layout Plain Layout
16578 ファイル\SpecialChar \menuseparator
16579 バージョン管理
16580 \end_layout
16581
16582 \end_inset
16583
16584 下位メニューにあります。
16585 \end_layout
16586
16587 \begin_layout Subsubsection
16588 登録
16589 \end_layout
16590
16591 \begin_layout Standard
16592 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
16593 \family sans
16594 登録
16595 \family default
16596 項目は表示されません。
16597 \end_layout
16598
16599 \begin_layout Standard
16600 本コマンドは、既に文書のあるディレクトリをCVS管理下に置いている場合に
16601 \emph on
16602 のみ
16603 \emph default
16604 (すなわち
16605 \begin_inset Flex CharStyle:Code
16606 status collapsed
16607
16608 \begin_layout Plain Layout
16609 CVS/Entries
16610 \end_layout
16611
16612 \end_inset
16613
16614 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
16615 \end_layout
16616
16617 \begin_layout Standard
16618 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
16619 \end_layout
16620
16621 \begin_layout Standard
16622 実行されるCVSコマンドは、
16623 \begin_inset Flex CharStyle:Code
16624 status collapsed
16625
16626 \begin_layout Plain Layout
16627 cvs -q add -m
16628 \begin_inset Quotes erd
16629 \end_inset
16630
16631 <入力した説明文>
16632 \begin_inset Quotes erd
16633 \end_inset
16634
16635  
16636 \begin_inset Quotes eld
16637 \end_inset
16638
16639 <ファイル名>
16640 \begin_inset Quotes erd
16641 \end_inset
16642
16643
16644 \end_layout
16645
16646 \end_inset
16647
16648 です。
16649 \end_layout
16650
16651 \begin_layout Standard
16652 スイッチの説明は
16653 \begin_inset Flex CharStyle:Code
16654 status collapsed
16655
16656 \begin_layout Plain Layout
16657 man cvs
16658 \end_layout
16659
16660 \end_inset
16661
16662 をお読みください。
16663 \end_layout
16664
16665 \begin_layout Subsubsection
16666 変更をチェックイン
16667 \end_layout
16668
16669 \begin_layout Standard
16670 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
16671 \end_layout
16672
16673 \begin_layout Standard
16674 CVSコマンド:
16675 \begin_inset Flex CharStyle:Code
16676 status collapsed
16677
16678 \begin_layout Plain Layout
16679 cvs -q commit -m
16680 \begin_inset Quotes erd
16681 \end_inset
16682
16683 <入力した説明文>
16684 \begin_inset Quotes erd
16685 \end_inset
16686
16687  
16688 \begin_inset Quotes eld
16689 \end_inset
16690
16691 <ファイル名>
16692 \begin_inset Quotes erd
16693 \end_inset
16694
16695
16696 \end_layout
16697
16698 \end_inset
16699
16700
16701 \end_layout
16702
16703 \begin_layout Subsubsection
16704 保存されたバージョンに戻す
16705 \end_layout
16706
16707 \begin_layout Standard
16708 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVSアップデート
16709 コマンドが実行されます。
16710 \end_layout
16711
16712 \begin_layout Standard
16713 CVSコマンド:
16714 \begin_inset Flex CharStyle:Code
16715 status collapsed
16716
16717 \begin_layout Plain Layout
16718 cvs update 
16719 \begin_inset Quotes eld
16720 \end_inset
16721
16722 <ファイル名>
16723 \begin_inset Quotes erd
16724 \end_inset
16725
16726
16727 \end_layout
16728
16729 \end_inset
16730
16731
16732 \end_layout
16733
16734 \begin_layout Subsubsection
16735 履歴を表示
16736 \end_layout
16737
16738 \begin_layout Standard
16739 これは、CVS文書の全履歴を表示します。
16740 \begin_inset Flex CharStyle:Code
16741 status collapsed
16742
16743 \begin_layout Plain Layout
16744 cvs log 
16745 \begin_inset Quotes eld
16746 \end_inset
16747
16748 <ファイル名>
16749 \begin_inset Quotes erd
16750 \end_inset
16751
16752
16753 \end_layout
16754
16755 \end_inset
16756
16757 の出力がブラウザに表示されます。
16758 \end_layout
16759
16760 \begin_layout Subsection
16761 LyXにおけるSVNコマンド
16762 \end_layout
16763
16764 \begin_layout Standard
16765 LyXは、現在SVNを一部サポートしています。そのコマンドは、
16766 \begin_inset Flex CharStyle:MenuItem
16767 status collapsed
16768
16769 \begin_layout Plain Layout
16770 ファイル\SpecialChar \menuseparator
16771 バージョン管理
16772 \end_layout
16773
16774 \end_inset
16775
16776 下位メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。LyXは、SVN
16777  1.5および1.6に対して試験されています
16778 \begin_inset Foot
16779 status collapsed
16780
16781 \begin_layout Plain Layout
16782 ほとんどのコマンドは、1.4でも動作します。第
16783 \begin_inset CommandInset ref
16784 LatexCommand ref
16785 reference "sub:レポジトリからSVN同期"
16786
16787 \end_inset
16788
16789 節をご覧ください。
16790 \end_layout
16791
16792 \end_inset
16793
16794
16795 \end_layout
16796
16797 \begin_layout Subsubsection
16798 登録
16799 \end_layout
16800
16801 \begin_layout Standard
16802 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
16803 \family sans
16804 登録
16805 \family default
16806 項目は表示されません。
16807 \end_layout
16808
16809 \begin_layout Standard
16810 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
16811 \emph on
16812 のみ
16813 \emph default
16814 (すなわち
16815 \begin_inset Flex CharStyle:Code
16816 status collapsed
16817
16818 \begin_layout Plain Layout
16819 .svn/entries
16820 \end_layout
16821
16822 \end_inset
16823
16824 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
16825 \end_layout
16826
16827 \begin_layout Standard
16828 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
16829 \end_layout
16830
16831 \begin_layout Standard
16832 実行されるSVNコマンドは、
16833 \begin_inset Flex CharStyle:Code
16834 status collapsed
16835
16836 \begin_layout Plain Layout
16837 svn add -q 
16838 \begin_inset Quotes eld
16839 \end_inset
16840
16841 <ファイル名>
16842 \begin_inset Quotes erd
16843 \end_inset
16844
16845
16846 \end_layout
16847
16848 \end_inset
16849
16850 です。
16851 \end_layout
16852
16853 \begin_layout Standard
16854 スイッチの説明は
16855 \begin_inset Flex CharStyle:Code
16856 status collapsed
16857
16858 \begin_layout Plain Layout
16859 man svn
16860 \end_layout
16861
16862 \end_inset
16863
16864 をお読みください。
16865 \end_layout
16866
16867 \begin_layout Subsubsection
16868 変更をチェックイン
16869 \end_layout
16870
16871 \begin_layout Standard
16872 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
16873 \end_layout
16874
16875 \begin_layout Standard
16876 SVNコマンド
16877 \begin_inset Foot
16878 status collapsed
16879
16880 \begin_layout Plain Layout
16881 ロックが有効になっていない場合です。第
16882 \begin_inset CommandInset ref
16883 LatexCommand ref
16884 reference "sub:SVNファイルロック"
16885
16886 \end_inset
16887
16888 節をご覧ください。
16889 \end_layout
16890
16891 \end_inset
16892
16893
16894 \begin_inset Flex CharStyle:Code
16895 status collapsed
16896
16897 \begin_layout Plain Layout
16898 svn commit -q -m
16899 \begin_inset Quotes erd
16900 \end_inset
16901
16902 <入力した説明文>
16903 \begin_inset Quotes erd
16904 \end_inset
16905
16906  
16907 \begin_inset Quotes eld
16908 \end_inset
16909
16910 <ファイル名>
16911 \begin_inset Quotes erd
16912 \end_inset
16913
16914
16915 \end_layout
16916
16917 \end_inset
16918
16919
16920 \end_layout
16921
16922 \begin_layout Subsubsection
16923 チェックアウトして編集
16924 \end_layout
16925
16926 \begin_layout Standard
16927 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
16928 しておくようにしてください。
16929 \end_layout
16930
16931 \begin_layout Standard
16932 SVNコマンド
16933 \begin_inset Foot
16934 status collapsed
16935
16936 \begin_layout Plain Layout
16937 同上。
16938 \end_layout
16939
16940 \end_inset
16941
16942
16943 \begin_inset Flex CharStyle:Code
16944 status collapsed
16945
16946 \begin_layout Plain Layout
16947 svn update --non-interactive 
16948 \begin_inset Quotes eld
16949 \end_inset
16950
16951 <ファイル名>
16952 \begin_inset Quotes erd
16953 \end_inset
16954
16955
16956 \end_layout
16957
16958 \end_inset
16959
16960
16961 \end_layout
16962
16963 \begin_layout Subsubsection
16964 保存されたバージョンに戻す
16965 \end_layout
16966
16967 \begin_layout Standard
16968 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
16969 \end_layout
16970
16971 \begin_layout Standard
16972 SVNコマンド:
16973 \begin_inset Flex CharStyle:Code
16974 status collapsed
16975
16976 \begin_layout Plain Layout
16977 svn revert -q 
16978 \begin_inset Quotes eld
16979 \end_inset
16980
16981 <ファイル名>
16982 \begin_inset Quotes erd
16983 \end_inset
16984
16985
16986 \end_layout
16987
16988 \end_inset
16989
16990
16991 \end_layout
16992
16993 \begin_layout Subsubsection
16994 \begin_inset CommandInset label
16995 LatexCommand label
16996 name "sub:レポジトリからSVN同期"
16997
16998 \end_inset
16999
17000 レポジトリを使ったローカルディレクトリの同期
17001 \begin_inset Foot
17002 status collapsed
17003
17004 \begin_layout Plain Layout
17005 このコマンドは、subversion 
17006 \begin_inset Formula $\geqq1.5$
17007 \end_inset
17008
17009 でのみ動作することに注意してください。
17010 \end_layout
17011
17012 \end_inset
17013
17014
17015 \end_layout
17016
17017 \begin_layout Standard
17018 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
17019 \begin_inset Flex CharStyle:Code
17020 status collapsed
17021
17022 \begin_layout Plain Layout
17023 .tex
17024 \end_layout
17025
17026 \end_inset
17027
17028 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこでLyXは、文書のおいてあるツリー全体の更新をサポートします
17029 \begin_inset Foot
17030 status collapsed
17031
17032 \begin_layout Plain Layout
17033 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
17034 \end_layout
17035
17036 \end_inset
17037
17038 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
17039
17040 \end_layout
17041
17042 \begin_layout Standard
17043 \begin_inset Flex CharStyle:Code
17044 status collapsed
17045
17046 \begin_layout Plain Layout
17047 ローカル辞書をレポジトリを使って更新
17048 \end_layout
17049
17050 \end_inset
17051
17052 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
17053 場合には、更新が開始される前にユーザに警告が与えられます。
17054 \end_layout
17055
17056 \begin_layout Labeling
17057 \labelwidthstring 00.00.0000
17058 SVNコマンド: 
17059 \begin_inset space ~
17060 \end_inset
17061
17062
17063 \begin_inset Newline newline
17064 \end_inset
17065
17066
17067 \begin_inset Flex CharStyle:Code
17068 status collapsed
17069
17070 \begin_layout Plain Layout
17071 svn diff $path(変更が発見された場合には通知します)
17072 \begin_inset Newline newline
17073 \end_inset
17074
17075 svn update --accept mine-full $path
17076 \end_layout
17077
17078 \end_inset
17079
17080
17081 \end_layout
17082
17083 \begin_layout Standard
17084 ここで
17085 \begin_inset Flex CharStyle:Code
17086 status collapsed
17087
17088 \begin_layout Plain Layout
17089 $path
17090 \end_layout
17091
17092 \end_inset
17093
17094 は文書のパスを示します。
17095 \end_layout
17096
17097 \begin_layout Subsubsection
17098 履歴を表示
17099 \end_layout
17100
17101 \begin_layout Standard
17102 これは、SVN文書の全履歴を表示します。
17103 \begin_inset Flex CharStyle:Code
17104 status collapsed
17105
17106 \begin_layout Plain Layout
17107 svn log 
17108 \begin_inset Quotes eld
17109 \end_inset
17110
17111 <ファイル名>
17112 \begin_inset Quotes erd
17113 \end_inset
17114
17115
17116 \end_layout
17117
17118 \end_inset
17119
17120 の出力がブラウザに表示されます。
17121 \end_layout
17122
17123 \begin_layout Subsubsection
17124 ファイルロック
17125 \begin_inset CommandInset label
17126 LatexCommand label
17127 name "sub:SVNファイルロック"
17128
17129 \end_inset
17130
17131
17132 \end_layout
17133
17134 \begin_layout Standard
17135 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
17136 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
17137 するための、何らかのロック機構を導入することが考えられます。
17138 \end_layout
17139
17140 \begin_layout Standard
17141 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
17142 \begin_inset Flex CharStyle:Code
17143 status collapsed
17144
17145 \begin_layout Plain Layout
17146 svn:needs-lock
17147 \end_layout
17148
17149 \end_inset
17150
17151 svnファイル特性に依拠した書き込み権限の自動設定(第
17152 \begin_inset CommandInset ref
17153 LatexCommand ref
17154 reference "sub:自動ロック特性"
17155
17156 \end_inset
17157
17158 節を参照)です
17159 \begin_inset Foot
17160 status open
17161
17162 \begin_layout Plain Layout
17163 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
17164 \end_layout
17165
17166 \end_inset
17167
17168 。ある文書について、この特性が検出されたときには、LyXは自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組
17169 みに切り替わります。これは特に、LyXでのファイルの使われ方に以下の二つのモードがあることを意味します。
17170 \end_layout
17171
17172 \begin_layout Itemize
17173 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
17174 \emph on
17175 チェックアウト
17176 \emph default
17177 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
17178 \end_layout
17179
17180 \begin_layout Itemize
17181 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
17182 \emph on
17183 チェックイン
17184 \emph default
17185 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
17186 \begin_inset Foot
17187 status collapsed
17188
17189 \begin_layout Plain Layout
17190 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
17191 \end_layout
17192
17193 \end_inset
17194
17195 、書き込みロックの解放のみが行われます。
17196 \end_layout
17197
17198 \begin_layout Standard
17199 SVNコマンド:
17200 \end_layout
17201
17202 \begin_layout Labeling
17203 \labelwidthstring 00.00.0000
17204 チェックイン: 
17205 \begin_inset Flex CharStyle:Code
17206 status collapsed
17207
17208 \begin_layout Plain Layout
17209 svn commit -q -m
17210 \begin_inset Quotes erd
17211 \end_inset
17212
17213 <説明>
17214 \begin_inset Quotes erd
17215 \end_inset
17216
17217  
17218 \begin_inset Quotes eld
17219 \end_inset
17220
17221 <ファイル名>
17222 \begin_inset Quotes erd
17223 \end_inset
17224
17225
17226 \end_layout
17227
17228 \end_inset
17229
17230
17231 \begin_inset Newline newline
17232 \end_inset
17233
17234
17235 \begin_inset Flex CharStyle:Code
17236 status collapsed
17237
17238 \begin_layout Plain Layout
17239 svn unlock 
17240 \begin_inset Quotes eld
17241 \end_inset
17242
17243 <ファイル名>
17244 \begin_inset Quotes erd
17245 \end_inset
17246
17247
17248 \end_layout
17249
17250 \end_inset
17251
17252
17253 \end_layout
17254
17255 \begin_layout Labeling
17256 \labelwidthstring 00.00.0000
17257 チェックアウト: 
17258 \begin_inset Flex CharStyle:Code
17259 status collapsed
17260
17261 \begin_layout Plain Layout
17262 svn update 
17263 \begin_inset Quotes eld
17264 \end_inset
17265
17266 <ファイル名>
17267 \begin_inset Quotes erd
17268 \end_inset
17269
17270
17271 \end_layout
17272
17273 \end_inset
17274
17275
17276 \begin_inset Newline newline
17277 \end_inset
17278
17279
17280 \begin_inset Flex CharStyle:Code
17281 status collapsed
17282
17283 \begin_layout Plain Layout
17284 svn unlock 
17285 \begin_inset Quotes eld
17286 \end_inset
17287
17288 <ファイル名>
17289 \begin_inset Quotes erd
17290 \end_inset
17291
17292
17293 \end_layout
17294
17295 \end_inset
17296
17297
17298 \end_layout
17299
17300 \begin_layout Subsubsection
17301 自動ロック特性
17302 \begin_inset CommandInset label
17303 LatexCommand label
17304 name "sub:自動ロック特性"
17305
17306 \end_inset
17307
17308
17309 \end_layout
17310
17311 \begin_layout Standard
17312 上述したような
17313 \begin_inset Flex CharStyle:Code
17314 status collapsed
17315
17316 \begin_layout Plain Layout
17317 .lyx
17318 \end_layout
17319
17320 \end_inset
17321
17322 ファイルに対する書き込み権限の自動設定は、
17323 \begin_inset Flex CharStyle:MenuItem
17324 status collapsed
17325
17326 \begin_layout Plain Layout
17327 ファイル\SpecialChar \menuseparator
17328 バージョン管理\SpecialChar \menuseparator
17329 ロック特性を使用
17330 \end_layout
17331
17332 \end_inset
17333
17334 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
17335 \end_layout
17336
17337 \begin_layout Standard
17338 SVNコマンド:
17339 \end_layout
17340
17341 \begin_layout Labeling
17342 \labelwidthstring 00.00.0000
17343 チェックイン: 
17344 \begin_inset Flex CharStyle:Code
17345 status collapsed
17346
17347 \begin_layout Plain Layout
17348 svn propset svn:needs-lock ON 
17349 \begin_inset Quotes eld
17350 \end_inset
17351
17352 <ファイル名>
17353 \begin_inset Quotes erd
17354 \end_inset
17355
17356
17357 \end_layout
17358
17359 \end_inset
17360
17361
17362 \end_layout
17363
17364 \begin_layout Labeling
17365 \labelwidthstring 00.00.0000
17366 チェックアウト: 
17367 \begin_inset Flex CharStyle:Code
17368 status collapsed
17369
17370 \begin_layout Plain Layout
17371 svn propdel svn:needs-lock 
17372 \begin_inset Quotes eld
17373 \end_inset
17374
17375 <ファイル名>
17376 \begin_inset Quotes erd
17377 \end_inset
17378
17379
17380 \end_layout
17381
17382 \end_inset
17383
17384
17385 \end_layout
17386
17387 \begin_layout Subsubsection
17388 文書の改訂情報
17389 \end_layout
17390
17391 \begin_layout Standard
17392 現在のところ、LyXから直接、文書改訂に関する情報を得る方法はありません。SVNの機能を使って実現する方法はありますが、それらの方法はどれも、それぞれの短所があ
17393 ります。
17394 \end_layout
17395
17396 \begin_layout Standard
17397 一つの方法は、SVNキーワードを使用する方法です
17398 \begin_inset Foot
17399 status collapsed
17400
17401 \begin_layout Plain Layout
17402 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
17403 \end_layout
17404
17405 \end_inset
17406
17407 。簡単に言えば、ファイルキーワード特性を設定して、文書中にキーワードERT
17408 \begin_inset Foot
17409 status collapsed
17410
17411 \begin_layout Plain Layout
17412 これは、LyXがキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
17413 \end_layout
17414
17415 \end_inset
17416
17417 タグ(例:
17418 \begin_inset ERT
17419 status open
17420
17421 \begin_layout Plain Layout
17422
17423 $Rev$
17424 \end_layout
17425
17426 \end_inset
17427
17428 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
17429 \begin_inset ERT
17430 status open
17431
17432 \begin_layout Plain Layout
17433
17434 $Rev: 59 $
17435 \end_layout
17436
17437 \end_inset
17438
17439 )。このアプローチにはいくつか問題があります。第一に、TeXの世界では「$」文字は数式を表すのに使われるので、LyX中の
17440 \begin_inset Formula $Rev$
17441 \end_inset
17442
17443 という数式表現が、すべて
17444 \begin_inset Formula $Rev:59$
17445 \end_inset
17446
17447 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
17448 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
17449 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、LyXがこれを直接サポートすることは、難しそうです。
17450 \end_layout
17451
17452 \begin_layout Standard
17453 もう一つの方法は、自製の外部素材ひな型を書いて、文書の組版時に、
17454 \begin_inset Flex CharStyle:Code
17455 status collapsed
17456
17457 \begin_layout Plain Layout
17458 subversion
17459 \end_layout
17460
17461 \end_inset
17462
17463 ユーティリティを呼び出させるか、
17464 \begin_inset Flex CharStyle:Code
17465 status collapsed
17466
17467 \begin_layout Plain Layout
17468 svn info file.lyx
17469 \end_layout
17470
17471 \end_inset
17472
17473 コマンドの出力を解析させ、その結果を返させることです。
17474 \end_layout
17475
17476 \begin_layout Subsection
17477 SVNとWindows環境
17478 \end_layout
17479
17480 \begin_layout Quote
17481 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。---P.
17482  A.
17483  ルービン
17484 \end_layout
17485
17486 \begin_layout Subsubsection
17487 準備
17488 \end_layout
17489
17490 \begin_layout Standard
17491 LyXを導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クラ
17492 イアントプログラムのWindows用インストーラは
17493 \begin_inset CommandInset href
17494 LatexCommand href
17495 name "CollabNet"
17496 target "http://www.collab.net/nonav/downloads/subversion/"
17497
17498 \end_inset
17499
17500 にあります。ユーザは
17501 \begin_inset CommandInset href
17502 LatexCommand href
17503 name "TortoiseSVN"
17504 target "http://tortoisesvn.tigris.org/"
17505
17506 \end_inset
17507
17508 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。LyX外部で
17509 行う操作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、LyX自身が使用するクライアントプログラムの代わりとは成
17510 りませんので、注意してください。
17511 \end_layout
17512
17513 \begin_layout Subsubsection
17514 文書をSubversion管理下に置くには
17515 \end_layout
17516
17517 \begin_layout Standard
17518 LyX文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロ
17519 ジェクトに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下
17520 にない場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、LyXの外
17521 部で行います。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、
17522 DOSプロンプトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。
17523 レポジトリは既に存在し、新規プロジェクトを
17524 \begin_inset Flex CharStyle:Code
17525 status collapsed
17526
17527 \begin_layout Plain Layout
17528 C:
17529 \backslash
17530 new project
17531 \end_layout
17532
17533 \end_inset
17534
17535 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
17536 \begin_inset Flex CharStyle:Code
17537 status collapsed
17538
17539 \begin_layout Plain Layout
17540 svn --help
17541 \end_layout
17542
17543 \end_inset
17544
17545 を実行してください。
17546 \end_layout
17547
17548 \begin_layout Enumerate
17549 Windows Explorerで
17550 \begin_inset Flex CharStyle:Code
17551 status collapsed
17552
17553 \begin_layout Plain Layout
17554 C:
17555 \backslash
17556 new project
17557 \end_layout
17558
17559 \end_inset
17560
17561 を見つけ出して右クリックし、
17562 \begin_inset Flex CharStyle:MenuItem
17563 status collapsed
17564
17565 \begin_layout Plain Layout
17566 TortoiseSVN\SpecialChar \menuseparator
17567 Repo-browser
17568 \end_layout
17569
17570 \end_inset
17571
17572 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
17573 \end_layout
17574
17575 \begin_layout Enumerate
17576 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
17577 \begin_inset Flex CharStyle:MenuItem
17578 status collapsed
17579
17580 \begin_layout Plain Layout
17581 Create folder\SpecialChar \ldots{}
17582
17583 \end_layout
17584
17585 \end_inset
17586
17587 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
17588 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
17589 \end_layout
17590
17591 \begin_layout Enumerate
17592 再度
17593 \begin_inset Flex CharStyle:Code
17594 status collapsed
17595
17596 \begin_layout Plain Layout
17597 C:
17598 \backslash
17599 new project
17600 \end_layout
17601
17602 \end_inset
17603
17604 を右クリックし、今度は
17605 \begin_inset Flex CharStyle:MenuItem
17606 status collapsed
17607
17608 \begin_layout Plain Layout
17609 SVN Checkout\SpecialChar \ldots{}
17610
17611 \end_layout
17612
17613 \end_inset
17614
17615 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
17616 \begin_inset Flex CharStyle:Code
17617 status collapsed
17618
17619 \begin_layout Plain Layout
17620 C:
17621 \backslash
17622 new project
17623 \end_layout
17624
17625 \end_inset
17626
17627 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
17628 \begin_inset Flex CharStyle:Code
17629 status collapsed
17630
17631 \begin_layout Plain Layout
17632 C:
17633 \backslash
17634 new project
17635 \end_layout
17636
17637 \end_inset
17638
17639 の下に
17640 \begin_inset Flex CharStyle:Code
17641 status collapsed
17642
17643 \begin_layout Plain Layout
17644 .svn
17645 \end_layout
17646
17647 \end_inset
17648
17649 ディレクトリが作成されます。
17650 \end_layout
17651
17652 \begin_layout Enumerate
17653 LyXで文書を新規作成するか開くかして、
17654 \begin_inset Flex CharStyle:MenuItem
17655 status collapsed
17656
17657 \begin_layout Plain Layout
17658 ファイル\SpecialChar \menuseparator
17659 バージョン管理\SpecialChar \menuseparator
17660 登録
17661 \end_layout
17662
17663 \end_inset
17664
17665 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
17666 \end_layout
17667
17668 \begin_layout Standard
17669 爾後、
17670 \begin_inset Flex CharStyle:MenuItem
17671 status collapsed
17672
17673 \begin_layout Plain Layout
17674 ファイル\SpecialChar \menuseparator
17675 バージョン管理
17676 \end_layout
17677
17678 \end_inset
17679
17680 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
17681 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
17682 \end_layout
17683
17684 \begin_layout Subsubsection
17685 Windows下でSVNと共にSSHトンネルを使うには
17686 \end_layout
17687
17688 \begin_layout Standard
17689 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
17690 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
17691 ることを覚悟しておいてください。
17692 \end_layout
17693
17694 \begin_layout Enumerate
17695 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
17696 \begin_inset Flex CharStyle:Code
17697 status collapsed
17698
17699 \begin_layout Plain Layout
17700 svn --version
17701 \end_layout
17702
17703 \end_inset
17704
17705 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
17706 \end_layout
17707
17708 \begin_layout Enumerate
17709 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
17710 \begin_inset Foot
17711 status open
17712
17713 \begin_layout Plain Layout
17714 \begin_inset Flex URL
17715 status collapsed
17716
17717 \begin_layout Plain Layout
17718
17719 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
17720 \end_layout
17721
17722 \end_inset
17723
17724
17725 \end_layout
17726
17727 \end_inset
17728
17729 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
17730 護などを加えないキーのみを使用することとします。
17731 \end_layout
17732
17733 \begin_deeper
17734 \begin_layout Enumerate
17735 \begin_inset Flex CharStyle:Code
17736 status collapsed
17737
17738 \begin_layout Plain Layout
17739 puttygen
17740 \end_layout
17741
17742 \end_inset
17743
17744 を使ってキーを生成します。.ppkプライベートキーファイルを保存し、パブリックキーファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブ
17745 リックキーの書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized
17746 _keys file:」編集フィールドから、直接サーバの
17747 \begin_inset Flex CharStyle:Code
17748 status collapsed
17749
17750 \begin_layout Plain Layout
17751 ~/.ssh/authorized_keys
17752 \end_layout
17753
17754 \end_inset
17755
17756 または
17757 \begin_inset Flex CharStyle:Code
17758 status collapsed
17759
17760 \begin_layout Plain Layout
17761 authorized_keys2
17762 \end_layout
17763
17764 \end_inset
17765
17766 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
17767 \end_layout
17768
17769 \begin_layout Enumerate
17770 Puttyのplinkを入手してください。SVNのconfigファイル
17771 \begin_inset Foot
17772 status collapsed
17773
17774 \begin_layout Plain Layout
17775 正確なパスはWindowsのバージョンに依りますが、通常は
17776 \begin_inset Flex CharStyle:Code
17777 status collapsed
17778
17779 \begin_layout Plain Layout
17780 c:
17781 \backslash
17782 Documents and Settings
17783 \backslash
17784 user
17785 \backslash
17786 Application Data
17787 \backslash
17788 Subversion
17789 \backslash
17790 config
17791 \end_layout
17792
17793 \end_inset
17794
17795
17796 \begin_inset Flex CharStyle:Code
17797 status collapsed
17798
17799 \begin_layout Plain Layout
17800 AppData
17801 \backslash
17802 Roaming
17803 \backslash
17804 Subversion
17805 \end_layout
17806
17807 \end_inset
17808
17809 辺りにあります。
17810 \end_layout
17811
17812 \end_inset
17813
17814 中の
17815 \begin_inset Flex CharStyle:Code
17816 status collapsed
17817
17818 \begin_layout Plain Layout
17819 [tunnels]
17820 \end_layout
17821
17822 \end_inset
17823
17824 セクションにsshコマンドを設定してください。例:
17825 \begin_inset Flex CharStyle:Code
17826 status collapsed
17827
17828 \begin_layout Plain Layout
17829 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
17830 \end_layout
17831
17832 \end_inset
17833
17834
17835 \begin_inset Foot
17836 status collapsed
17837
17838 \begin_layout Plain Layout
17839 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
17840 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
17841 \end_layout
17842
17843 \end_inset
17844
17845
17846 \end_layout
17847
17848 \end_deeper
17849 \begin_layout Enumerate
17850 SVNアーカイブをチェックアウトしてください。例:
17851 \begin_inset Flex CharStyle:Code
17852 status collapsed
17853
17854 \begin_layout Plain Layout
17855 svn co svn+ssh://user@server/repository_path
17856 \end_layout
17857
17858 \end_inset
17859
17860
17861 \end_layout
17862
17863 \begin_layout Subsection
17864 さらなる調整
17865 \end_layout
17866
17867 \begin_layout Standard
17868 vcコマンド機構が最近になって付け加えられたおかげで、LyXのパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
17869 \end_layout
17870
17871 \begin_layout Standard
17872 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
17873 \end_layout
17874
17875 \begin_layout Description
17876 コミット: 
17877 \begin_inset Flex CharStyle:Code
17878 status collapsed
17879
17880 \begin_layout Plain Layout
17881 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
17882 \end_layout
17883
17884 \end_inset
17885
17886
17887 \end_layout
17888
17889 \begin_layout Description
17890 元に戻す: 
17891 \begin_inset Flex CharStyle:Code
17892 status collapsed
17893
17894 \begin_layout Plain Layout
17895 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
17896 \end_layout
17897
17898 \end_inset
17899
17900
17901 \end_layout
17902
17903 \begin_layout Section
17904 文芸的プログラミング
17905 \end_layout
17906
17907 \begin_layout Standard
17908 \begin_inset Flex CharStyle:Noun
17909 status collapsed
17910
17911 \begin_layout Plain Layout
17912 Kayvan Sylvan
17913 \end_layout
17914
17915 \end_inset
17916
17917 (kayvan@sylvan.com)改訂 
17918 \begin_inset Flex CharStyle:Noun
17919 status collapsed
17920
17921 \begin_layout Plain Layout
17922 Edmar Wienskoski Jr.
17923 \end_layout
17924
17925 \end_inset
17926
17927 (edmar-w-jr@technologist.com)原文
17928 \end_layout
17929
17930 \begin_layout Subsection
17931 はじめに
17932 \end_layout
17933
17934 \begin_layout Standard
17935 この節の目的は、どのようにLyXを文芸的プログラミング(literate programming)に使うかを説明することです。ここではあなたがこのプログラミング
17936 テクニックを使っていて、tanglingやweavingが何を意味するかを知っているものとして説明します。知らない場合は以下の節にあるウェブリンクをたどってくだ
17937 さい。古い開発の歴史から、最新のツールに関するものまで様々な文章があります。
17938 \end_layout
17939
17940 \begin_layout Standard
17941 またあなたがLyXにもなれていて、
17942 \family typewriter
17943 LyXの設定や
17944 \family default
17945 Xリソースファイルを書き換えることができることも前提にしています。そうでない場合はLyXの他の取扱説明書で調べてください。
17946 \end_layout
17947
17948 \begin_layout Subsection
17949 文芸的プログラミング
17950 \end_layout
17951
17952 \begin_layout Standard
17953 文芸的プログラミング FAQからの抜粋です。
17954 \end_layout
17955
17956 \begin_layout Quotation
17957 文芸的プログラミングは、人間が読むのに適した形でのドキュメントとソースの組合わせです。実際、文芸的プログラムは楽しい読み物でなければならず、またそうするように勧
17958 められています。一般に文芸的プログラムでは、同じファイルの中でドキュメントとソースが結合しています。そして文芸的プログラム用のツールが、そのファイルを読むことの
17959 できるドキュメントとコンパイルできるソースをつくるように解析します。文芸的プログラミングの WEBスタイルは D.E.
17960  Knuthが彼の TeXタイプセットソフトウエアを開発中に作ったものです。
17961 \end_layout
17962
17963 \begin_layout Standard
17964 他のエキスパートがいうには、
17965 \end_layout
17966
17967 \begin_layout Quotation
17968 文芸的プログラミングはコメントを多くするのとどう違うのでしょう?
17969 \end_layout
17970
17971 \begin_layout Quotation
17972 3つの際立った違いがあります。重要な順にあげていくと、
17973 \end_layout
17974
17975 \begin_deeper
17976 \begin_layout Itemize
17977 推敲の順序が柔軟
17978 \end_layout
17979
17980 \begin_layout Itemize
17981 自動的なブラウズのサポート
17982 \end_layout
17983
17984 \begin_layout Itemize
17985 ドキュメントのタイプセット、特に図と数式
17986 \end_layout
17987
17988 \end_deeper
17989 \begin_layout Standard
17990 興味がわいてきたでしょう。次の節に進みましょう。
17991 \end_layout
17992
17993 \begin_layout Subsubsection
17994 参考文献
17995 \end_layout
17996
17997 \begin_layout Standard
17998 完全な文芸的プログラミング FAQは
17999 \end_layout
18000
18001 \begin_layout Quote
18002 Literate Programming FAQ 
18003 \begin_inset Flex URL
18004 status collapsed
18005
18006 \begin_layout Plain Layout
18007
18008 http://shelob.ce.ttu.edu/daves/lpfaq/faq.html
18009 \end_layout
18010
18011 \end_inset
18012
18013
18014 \end_layout
18015
18016 \begin_layout Standard
18017 にあります。
18018 \end_layout
18019
18020 \begin_layout Standard
18021 このFAQには23(二十三です)の異なった文芸的プログラミング用のツールがのっています。いくつかのツールはあるプログラミング言語に特化したものですが、一般的に使
18022 えるものもあります。私はいくつかの理由からNOWEBを選びました。
18023 \end_layout
18024
18025 \begin_layout Itemize
18026 ドキュメントを LaTeXと htmlで出力できる。
18027 \end_layout
18028
18029 \begin_layout Itemize
18030 開放的な構造を持っている。つまり、新しいフィルタを加えたり、自分が必要な特別な処理を行える。
18031 \end_layout
18032
18033 \begin_layout Itemize
18034 すでに利用可能なよく選ばれたフィルタがある。(htmlはその一つです)。
18035 \end_layout
18036
18037 \begin_layout Itemize
18038 フリーである。
18039 \end_layout
18040
18041 \begin_layout Standard
18042 Nowebのウェブページは次のところです。
18043 \end_layout
18044
18045 \begin_layout Quote
18046 Noweb home page 
18047 \begin_inset Flex URL
18048 status collapsed
18049
18050 \begin_layout Plain Layout
18051
18052 http://www.cs.virginia.edu/~nr/noweb/
18053 \end_layout
18054
18055 \end_inset
18056
18057
18058 \end_layout
18059
18060 \begin_layout Standard
18061 ここから色々な興味深いリンクが張られていて、またいくつかの文芸的プログラミングの例もあります。
18062 \end_layout
18063
18064 \begin_layout Subsection
18065 LyXと文芸的プログラミング
18066 \end_layout
18067
18068 \begin_layout Standard
18069 LyXは文芸的プログラミングをサポートするために、汎用のLyXのコンバータメカニズムを使っています。したがって、LyXのコンバータの設定を変えることによってNo
18070 web以外の文芸プログラミングのツールを使うことができます。
18071 \end_layout
18072
18073 \begin_layout Subsubsection
18074 ドキュメントとコードの生成(weavingとtangling)
18075 \end_layout
18076
18077 \begin_layout Paragraph
18078 文書クラスの選択
18079 \end_layout
18080
18081 \begin_layout Standard
18082 NowebとLyXのインストールに成功すると次の3つの新しい文書クラスが利用できるようになります。
18083 \end_layout
18084
18085 \begin_layout Itemize
18086 Article (Noweb)
18087 \end_layout
18088
18089 \begin_layout Itemize
18090 Book (Noweb)
18091 \end_layout
18092
18093 \begin_layout Itemize
18094 Report (Noweb)
18095 \end_layout
18096
18097 \begin_layout Standard
18098 文芸的プログラムをつくる場合にはこの中から文書クラスを選んでください。
18099 \end_layout
18100
18101 \begin_layout Standard
18102 文芸的プログラムはこれらのクラスに限定されないことに注意してください。他のスタイル(例えばletter)から新しいクラスをつくることも、Article
18103  (AMS)等のクラスのバリエーションと組み合わせて作ることもできます。この3つのクラスでカバーできない特別なことがしたい場合には、LyXの開発者用のメーリング
18104 リスト(lyx-devel@lists.lyx.org)に連絡してください。新しいエントリを加えるようにするか、どうすれば自分でできるかをお教えします
18105 \begin_inset Foot
18106 status collapsed
18107
18108 \begin_layout Plain Layout
18109 実に簡単です。4行入ったファイルをつくって、自動設定を走らせるだけです。
18110 \end_layout
18111
18112 \end_inset
18113
18114 。またNoweb以外の文芸プログラム用のツールを使う場合も、新しい文書クラスをつくる必要があります。
18115 \end_layout
18116
18117 \begin_layout Paragraph
18118 コードの入力
18119 \end_layout
18120
18121 \begin_layout Standard
18122 LyXでコードを入力するにはSCRAP
18123 \begin_inset Foot
18124 status collapsed
18125
18126 \begin_layout Plain Layout
18127 Nowebでの名前はChunkです。歴史的な理由から、別の文芸プログラムツールNuwebで使われているscrapという名前を使っています。私がNowebに乗り換
18128 える前に長年使っていたツールです。
18129 \end_layout
18130
18131 \end_inset
18132
18133 環境を使ってください。Nowebは次のように scrapを区切ります。
18134 \end_layout
18135
18136 \begin_layout LyX-Code
18137 <<My scrap>>=
18138 \end_layout
18139
18140 \begin_layout LyX-Code
18141   code
18142 \end_layout
18143
18144 \begin_layout LyX-Code
18145   more code
18146 \end_layout
18147
18148 \begin_layout LyX-Code
18149   even more code
18150 \end_layout
18151
18152 \begin_layout LyX-Code
18153   @
18154 \end_layout
18155
18156 \begin_layout Standard
18157 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまりLyXはこの間に書かれたものへのどんな変更も禁止しなくてははなりません。こ
18158 れはScrapと呼ぶ特別なレイアウトで扱われます。この環境は通常の段落のようですが、自由に空白を入れることができます。
18159 \end_layout
18160
18161 \begin_layout Standard
18162 Scrap段落環境の欠点は、連続したコードの段落の間に空行がソースコードにも印刷したドキュメントにも入ることです。これを回避するためには、Scrap環境の中の改
18163 行には(ctrl-return)を使ってください。上の例では次のようにします
18164 \begin_inset Foot
18165 status collapsed
18166
18167 \begin_layout Plain Layout
18168 印刷したバージョンを読んでいる場合にはこの例と上の例の違いが分かりません。
18169 \end_layout
18170
18171 \end_inset
18172
18173
18174 \end_layout
18175
18176 \begin_layout LyX-Code
18177 <<My scrap>>=
18178 \begin_inset Newline newline
18179 \end_inset
18180
18181   code
18182 \begin_inset Newline newline
18183 \end_inset
18184
18185   more code
18186 \begin_inset Newline newline
18187 \end_inset
18188
18189   even more code
18190 \begin_inset Newline newline
18191 \end_inset
18192
18193   @
18194 \end_layout
18195
18196 \begin_layout Standard
18197 この環境はうまく働きます。不便な点は普通のリターンのかわりにctrl-returnを使わなければならないことです
18198 \begin_inset Foot
18199 status collapsed
18200
18201 \begin_layout Plain Layout
18202 これは改善しなければならない点でしょう。
18203 \end_layout
18204
18205 \end_inset
18206
18207
18208 \end_layout
18209
18210 \begin_layout Standard
18211 また、Scrapの中に Noweb の %def を使うことができます。これを使うことで Nowebのidentifierの相互参照に項目を加えることができます
18212 。次の例を見てください。
18213 \end_layout
18214
18215 \begin_layout LyX-Code
18216 <<My scrap>>=
18217 \begin_inset Newline newline
18218 \end_inset
18219
18220   def some_function(args):
18221 \begin_inset Newline newline
18222 \end_inset
18223
18224     "This is the doc string for this function."
18225 \begin_inset Newline newline
18226 \end_inset
18227
18228     print "My args: ", args
18229 \end_layout
18230
18231 \begin_layout LyX-Code
18232 @ %def some_function
18233 \end_layout
18234
18235 \begin_layout Standard
18236 これをどのように使って、その結果相互参照がどうなるかは
18237 \emph on
18238 LIBDIR/examples/listerrors.lyx
18239 \emph default
18240 の中の文芸pythonプログラムを見るとよくわかります。
18241 \end_layout
18242
18243 \begin_layout Paragraph
18244 ドキュメントの生成
18245 \end_layout
18246
18247 \begin_layout Standard
18248 新しい文章ファイルを正しい文書クラスでつくり、その中にコードとテキストも入れました。これをどうやって印刷したらいいのでしょう。簡単です。
18249 \begin_inset Flex CharStyle:MenuItem
18250 status collapsed
18251
18252 \begin_layout Plain Layout
18253 表示\SpecialChar \menuseparator
18254 DVI
18255 \end_layout
18256
18257 \end_inset
18258
18259 等を選ぶだけです。普通の文章の場合と同じで、特別なことは必要ありません。
18260 \end_layout
18261
18262 \begin_layout Standard
18263 LyXの内部で何が起っているかを説明しておきましょう。
18264 \end_layout
18265
18266 \begin_layout Enumerate
18267 \begin_inset Flex CharStyle:MenuItem
18268 status collapsed
18269
18270 \begin_layout Plain Layout
18271 表示\SpecialChar \menuseparator
18272 DVI
18273 \end_layout
18274
18275 \end_inset
18276
18277 が選ばれると、LaTeXファイルがつくられます。
18278 \end_layout
18279
18280 \begin_deeper
18281 \begin_layout Standard
18282 ドキュメントが文芸プログラミング用のクラスであった場合には、拡張子に(
18283 \begin_inset Flex CharStyle:MenuItem
18284 status collapsed
18285
18286 \begin_layout Plain Layout
18287 設定
18288 \end_layout
18289
18290 \end_inset
18291
18292 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
18293 \end_layout
18294
18295 \end_deeper
18296 \begin_layout Enumerate
18297 違いがファイル名だけなのに注意してください。LyXによる特別な処理は必要ありません。Scrap環境でコードを入力するのだけがポイントです。
18298 \end_layout
18299
18300 \begin_layout Enumerate
18301 ドキュメントが文芸プログラムクラスなら、LyXは内部の LyX から Noweb のコンバータを使い、それからNowebからLaTeXのコンバータ
18302 \begin_inset Foot
18303 status collapsed
18304
18305 \begin_layout Plain Layout
18306 これらのコンバータは、
18307 \family sans
18308 \bar under
18309 E
18310 \bar default
18311 dit\SpecialChar \menuseparator
18312
18313 \bar under
18314 P
18315 \bar default
18316 references
18317 \family default
18318  パネルの Conversion タブで設定できます。
18319 \end_layout
18320
18321 \end_inset
18322
18323 を使って LaTeX ファイルを生成します。
18324 \end_layout
18325
18326 \begin_deeper
18327 \begin_layout Standard
18328 それ以外の場合はこのステップを飛ばします。
18329 \end_layout
18330
18331 \end_deeper
18332 \begin_layout Enumerate
18333 最後にLaTeXが実行され、普通の文章と同じ後処理が行われます。
18334 \end_layout
18335
18336 \begin_layout Standard
18337 様々なコンバータから走らせるコマンドを変えることによって、特定の文芸プログラム用のソフトウエアにしばられないようになっています。
18338 \end_layout
18339
18340 \begin_layout Paragraph
18341 コードの生成
18342 \end_layout
18343
18344 \begin_layout Standard
18345 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様にLaTeXファイルが生成されます。それからLyXは
18346 \family typewriter
18347 Noweb->Program
18348 \family default
18349 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
18350 \end_layout
18351
18352 \begin_layout Enumerate
18353 コンバータプログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマ
18354 ットへ変換します)。
18355 \end_layout
18356
18357 \begin_layout Enumerate
18358 エラーログパーサー。これはエラーメッセージをLyXが理解できる形へ書き直します。これによって、LyXはファイルバッファの正しい位置へエラーボックスを配置すること
18359 ができます。
18360 \end_layout
18361
18362 \begin_layout Standard
18363 はじめのパートのために、「変換子」設定で、
18364 \begin_inset Quotes eld
18365 \end_inset
18366
18367
18368 \family typewriter
18369 build-script$$i
18370 \family default
18371
18372 \begin_inset Quotes erd
18373 \end_inset
18374
18375 と指定します。これは基本的に、LyXが
18376 \family typewriter
18377 build-script
18378 \family default
18379 (プログラムかスクリプト名)を(一般にはLyXの一時ファイル用のディレクトリにつくられる)Nowebファイルの名前とともに起動することを意味しています。
18380 \end_layout
18381
18382 \begin_layout Standard
18383 以下にbuild-scriptの一例を書いておきます。パスが通っているディレクトリに置いて使います。
18384 \end_layout
18385
18386 \begin_layout LyX-Code
18387 #!/bin/sh
18388 \end_layout
18389
18390 \begin_layout LyX-Code
18391 #
18392 \end_layout
18393
18394 \begin_layout LyX-Code
18395 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh
18396 \end_layout
18397
18398 \begin_layout Standard
18399 コンバータの設定の次の部分はFlagsです。これを
18400 \begin_inset Quotes eld
18401 \end_inset
18402
18403
18404 \family typewriter
18405 originaldir,parselog=listerrors
18406 \family default
18407
18408 \begin_inset Quotes erd
18409 \end_inset
18410
18411 と指定してください。これで、
18412 \family typewriter
18413 build-script
18414 \family default
18415 が出すすべてのエラーを listerrors プログラムに渡します。
18416 \end_layout
18417
18418 \begin_layout Standard
18419 コンバータコードがlisterrorsプログラムを探す順序は、はじめに
18420 \emph on
18421 MYLYXDIR/scripts
18422 \emph default
18423 、次に
18424 \emph on
18425 LIBDIR/scripts
18426 \emph default
18427 、最後にパスです。
18428 \end_layout
18429
18430 \begin_layout Paragraph
18431 文章中でのプログラムの構築操作の説明
18432 \end_layout
18433
18434 \begin_layout Standard
18435 LyXとNowebの統合の最後の部分は、
18436 \begin_inset Quotes eld
18437 \end_inset
18438
18439 build-script
18440 \begin_inset Quotes erd
18441 \end_inset
18442
18443  scrapです。一般に、あなたのプログラムの構築操作の説明それ自身をscrapに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
18444 iptでは、scrapを見つけるのにnotangleコマンドを使い、shを使って起動します。
18445 \end_layout
18446
18447 \begin_layout Standard
18448 以下に典型的なscrapがどのようなものかを書いておきます。
18449 \end_layout
18450
18451 \begin_layout LyX-Code
18452 <<build-script>>=
18453 \begin_inset Newline newline
18454 \end_inset
18455
18456 #!/bin/sh
18457 \begin_inset Newline newline
18458 \end_inset
18459
18460
18461 \begin_inset Newline newline
18462 \end_inset
18463
18464 if [ -z "${NOWEB_SOURCE}" ]
18465 \begin_inset Newline newline
18466 \end_inset
18467
18468 then
18469 \begin_inset Newline newline
18470 \end_inset
18471
18472   NOWEB_SOURCE=myfile.nw
18473 \begin_inset Newline newline
18474 \end_inset
18475
18476 fi
18477 \begin_inset Newline newline
18478 \end_inset
18479
18480 [...
18481  code to extract files ...]
18482 \begin_inset Newline newline
18483 \end_inset
18484
18485 [...
18486  code to compile files ...]
18487 \begin_inset Newline newline
18488 \end_inset
18489
18490 @
18491 \end_layout
18492
18493 \begin_layout Standard
18494
18495 \emph on
18496 LIBDIR/examples/listerrors.lyx
18497 \emph default
18498
18499 \emph on
18500 LIBDIR/examples/Literate.lyx
18501 \emph default
18502 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
18503 ってもらうための例です。また、
18504 \emph on
18505 LIBDIR/examples/noweb2lyx.lyx
18506 \emph default
18507 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、LyXの文芸プログラミングのサポートがプログラム言語に依存
18508 しないことを示しています。
18509 \end_layout
18510
18511 \begin_layout Subsubsection
18512 LyXの設定
18513 \end_layout
18514
18515 \begin_layout Standard
18516 すべての文芸プログラムのための設定は、
18517 \begin_inset Flex CharStyle:MenuItem
18518 status collapsed
18519
18520 \begin_layout Plain Layout
18521 ツール\SpecialChar \menuseparator
18522 設定
18523 \end_layout
18524
18525 \end_inset
18526
18527 パネルの「変換子」タブですることができます。重要な部分を見ておきましょう。
18528 \end_layout
18529
18530 \begin_layout Description
18531 the
18532 \begin_inset space ~
18533 \end_inset
18534
18535
18536 \begin_inset Quotes eld
18537 \end_inset
18538
18539 literate
18540 \begin_inset Quotes erd
18541 \end_inset
18542
18543
18544 \begin_inset space ~
18545 \end_inset
18546
18547 format 書式タブで設定します。ここで、Noweb特有の設定を行います。
18548 \family sans
18549 GUI名
18550 \family default
18551
18552 \family typewriter
18553 NoWeb
18554 \family default
18555 に、拡張子を
18556 \family typewriter
18557 .nw
18558 \family default
18559 に設定してください。これによって、LyXに変換プロセスの第一段階でつくられるファイルに
18560 \family typewriter
18561 .nw
18562 \family default
18563 という拡張子をつけることを指示します。
18564 \end_layout
18565
18566 \begin_layout Description
18567 the
18568 \begin_inset space ~
18569 \end_inset
18570
18571
18572 \family sans
18573 Program
18574 \family default
18575
18576 \begin_inset space ~
18577 \end_inset
18578
18579 format これは空にしてください。この項目のただひとつの目的は変換の最終的なフォーマットを指定することです(これが設定されていると、このフォーマットからの変
18580 換を行えます)。
18581 \end_layout
18582
18583 \begin_layout Description
18584
18585 \family sans
18586 NoWeb
18587 \family default
18588 ->
18589 \family sans
18590 LaTeX
18591 \family default
18592  このコンバータは、weavingの段階を行います。Nowebの場合は、
18593 \begin_inset Quotes eld
18594 \end_inset
18595
18596
18597 \family typewriter
18598 noweave -delay -index $$i > $$o
18599 \family default
18600
18601 \begin_inset Quotes erd
18602 \end_inset
18603
18604 に設定してください。
18605 \end_layout
18606
18607 \begin_layout Description
18608
18609 \family sans
18610 NoWeb
18611 \family default
18612 ->
18613 \family sans
18614 Program
18615 \family default
18616  これは、tanglingを行います。以前に説明したように、
18617 \family typewriter
18618 build-script $$i
18619 \family default
18620  と設定して、 Flags に 
18621 \begin_inset Quotes eld
18622 \end_inset
18623
18624
18625 \family typewriter
18626 originaldir,parselog=listerrors
18627 \family default
18628
18629 \begin_inset Quotes erd
18630 \end_inset
18631
18632  を入れてください。
18633 \end_layout
18634
18635 \begin_layout Subsubsection
18636 デバッグ機能の拡張
18637 \end_layout
18638
18639 \begin_layout Standard
18640 ddd/gdbまたは他のデバッガで使えるserver-goto-file-rowという関数が新たにLyXサーバに実装されました。
18641 \end_layout
18642
18643 \begin_layout Standard
18644 ddd/gdbでデバッグしているとき、一つのキーストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-V
18645 になっています。この設定はdddで
18646 \begin_inset Flex CharStyle:MenuItem
18647 status collapsed
18648
18649 \begin_layout Plain Layout
18650 ツール\SpecialChar \menuseparator
18651 設定\SpecialChar \menuseparator
18652 ファイル書式
18653 \end_layout
18654
18655 \end_inset
18656
18657 ウインドウを表示して、
18658 \begin_inset Flex CharStyle:MenuItem
18659 status collapsed
18660
18661 \begin_layout Plain Layout
18662 編集プログラム
18663 \end_layout
18664
18665 \end_inset
18666
18667 エントリを変えると変えることができます。
18668 \end_layout
18669
18670 \begin_layout Standard
18671 新しいLyXサーバの関数と、このdddの機能を使うために
18672 \begin_inset Flex CharStyle:MenuItem
18673 status collapsed
18674
18675 \begin_layout Plain Layout
18676 編集プログラム
18677 \end_layout
18678
18679 \end_inset
18680
18681 を次のように設定してください。
18682 \end_layout
18683
18684 \begin_layout LyX-Code
18685 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
18686 \end_layout
18687
18688 \begin_layout Standard
18689 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddはLyXサーバに情報を
18690 送り、LyXは同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります
18691
18692 \end_layout
18693
18694 \begin_layout Standard
18695 この機能が動くにはLyXサーバが利用可能でなければなりません(既定ではLyXサーバーは使えないようになっています)。LyXサーバを使えるようにするには、
18696 \family sans
18697
18698 \begin_inset Flex CharStyle:MenuItem
18699 status collapsed
18700
18701 \begin_layout Plain Layout
18702
18703 \family sans
18704 設定
18705 \end_layout
18706
18707 \end_inset
18708
18709
18710 \family default
18711
18712 \family sans
18713
18714 \begin_inset Flex CharStyle:MenuItem
18715 status collapsed
18716
18717 \begin_layout Plain Layout
18718
18719 \family sans
18720 パス
18721 \end_layout
18722
18723 \end_inset
18724
18725
18726 \family default
18727 タブ)の
18728 \family sans
18729
18730 \begin_inset Flex CharStyle:MenuItem
18731 status collapsed
18732
18733 \begin_layout Plain Layout
18734
18735 \family sans
18736 LyXサーバーパイプ
18737 \family default
18738
18739 \end_layout
18740
18741 \end_inset
18742
18743
18744 \family default
18745
18746 \begin_inset Quotes eld
18747 \end_inset
18748
18749
18750 \family typewriter
18751 /home/<your-home-directory>/.lyx/lyxpipe
18752 \family default
18753
18754 \begin_inset Quotes erd
18755 \end_inset
18756
18757  のようにパスを指定してください。
18758 \end_layout
18759
18760 \begin_layout Standard
18761 詳しくは『
18762 \emph on
18763 取扱説明書カスタマイズ篇
18764 \emph default
18765 』のLyXサーバの説明を読んでください。
18766 \end_layout
18767
18768 \begin_layout Subsubsection
18769 ツールバーの拡張
18770 \end_layout
18771
18772 \begin_layout Standard
18773 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
18774 \family sans
18775 Standard
18776 \family default
18777
18778 \family sans
18779 Section
18780 \family default
18781
18782 \family sans
18783 LaTeX
18784 \family default
18785
18786 \family sans
18787 LyX-Code
18788 \family default
18789
18790 \family sans
18791 Scrap
18792 \family default
18793 環境用のボタンを用意しています。最後の一つはファイルメニューの Build Programエントリへのショートカットです。
18794 \end_layout
18795
18796 \begin_layout Standard
18797 LyXはツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
18798 \begin_inset Flex CharStyle:MenuItem
18799 status collapsed
18800
18801 \begin_layout Plain Layout
18802 表示\SpecialChar \menuseparator
18803 更新\SpecialChar \menuseparator
18804 DVI
18805 \end_layout
18806
18807 \end_inset
18808
18809
18810 \begin_inset Flex CharStyle:MenuItem
18811 status collapsed
18812
18813 \begin_layout Plain Layout
18814 表示\SpecialChar \menuseparator
18815 DVI
18816 \end_layout
18817
18818 \end_inset
18819
18820 を組み合わせたものになっています。
18821 \end_layout
18822
18823 \begin_layout LyX-Code
18824 Toolbar
18825 \end_layout
18826
18827 \begin_layout LyX-Code
18828   Layouts
18829 \end_layout
18830
18831 \begin_layout LyX-Code
18832   Icon "layout Standard"
18833 \end_layout
18834
18835 \begin_layout LyX-Code
18836   Icon "layout Section"
18837 \end_layout
18838
18839 \begin_layout LyX-Code
18840   Icon "layout LaTeX"
18841 \end_layout
18842
18843 \begin_layout LyX-Code
18844   Icon "layout LyX-Code"
18845 \end_layout
18846
18847 \begin_layout LyX-Code
18848   Icon "layout Scrap"
18849 \end_layout
18850
18851 \begin_layout LyX-Code
18852   Separator
18853 \end_layout
18854
18855 \begin_layout LyX-Code
18856   Icon "buffer-view"
18857 \end_layout
18858
18859 \begin_layout LyX-Code
18860   Icon "buffer-typeset"
18861 \end_layout
18862
18863 \begin_layout LyX-Code
18864   Icon "build-program"
18865 \end_layout
18866
18867 \begin_layout LyX-Code
18868   Separator
18869 \end_layout
18870
18871 \begin_layout LyX-Code
18872 .
18873 \end_layout
18874
18875 \begin_layout LyX-Code
18876 .
18877 \end_layout
18878
18879 \begin_layout LyX-Code
18880 .
18881 \end_layout
18882
18883 \begin_layout LyX-Code
18884 End
18885 \end_layout
18886
18887 \begin_layout Subsubsection
18888 色を変える
18889 \end_layout
18890
18891 \begin_layout Standard
18892 LyXではいくつもの色を
18893 \begin_inset Flex CharStyle:MenuItem
18894 status collapsed
18895
18896 \begin_layout Plain Layout
18897 設定
18898 \end_layout
18899
18900 \end_inset
18901
18902 で変えることができます。まず変えたいと思うのはLaTeXフォントカラーでしょう。既定では赤になっていますが、ScrapはLaTeXフォントを使い、文芸的プログラ
18903 ミングでは多くのScrapがあるためにそれらがすべて赤では疲れてしまいます。
18904 \begin_inset Flex CharStyle:MenuItem
18905 status collapsed
18906
18907 \begin_layout Plain Layout
18908 操作性\SpecialChar \menuseparator
18909
18910 \end_layout
18911
18912 \end_inset
18913
18914 タブでこの色を変えることができます。
18915 \end_layout
18916
18917 \begin_layout Standard
18918 次にすることは画面の改行文字を見えなくすることです。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少し違
18919 う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
18920 \end_layout
18921
18922 \begin_layout Chapter
18923 LaTeXの達人の秘密
18924 \begin_inset CommandInset label
18925 LatexCommand label
18926 name "cha:secrets"
18927
18928 \end_inset
18929
18930
18931 \end_layout
18932
18933 \begin_layout Standard
18934 LyXは強力な道具ですが、TeX/LaTeXでできることをすべてサポートしているわけではありません。しかし、ツールバーのTeXボタンを押したり、LaTeXプリア
18935 ンブルに追加するのをためらわなければ、多くのTeXやLaTeXのトリックを使うことができます。この節ではそのようなトリック、ヒント、アイデアを紹介します。まず家
18936 で、あまり重要でない文章で試してください。自分の博士論文でまず試そうとは考えない方がいいでしょう。
18937 \end_layout
18938
18939 \begin_layout Standard
18940 この節で紹介するものの多くは、通常のLaTeXディストリビューションにはあまり入っていないファイルを使います。teTeXを使っている場合には、ほとんどのファイル
18941 は含まれていますが、それでもいくつかは近くのCTANアーカイブからダウンロードする必要があります。しばしば、同じことをするのにいくつもの方法があったり、同じこと
18942 をするいくつものLaTeXファイルがあります。ここで紹介しているのは、いくつもの方法を比べてその中で我々が推薦するものではなく、単にあることをある特定のファイル
18943 でできるということの紹介です。
18944 \end_layout
18945
18946 \begin_layout Section
18947 多段組み
18948 \end_layout
18949
18950 \begin_layout Standard
18951 \begin_inset Flex CharStyle:Noun
18952 status collapsed
18953
18954 \begin_layout Plain Layout
18955 Lars Gullik Bjønnes
18956 \end_layout
18957
18958 \end_inset
18959
18960
18961 \end_layout
18962
18963 \begin_layout Subsection
18964 目的
18965 \end_layout
18966
18967 \begin_layout Standard
18968 この章
18969 \begin_inset Foot
18970 status collapsed
18971
18972 \begin_layout Plain Layout
18973 編集者註:もともとの章は
18974 \family typewriter
18975 multicol
18976 \family default
18977 パッケージの使い方を説明した見事な章でした。ただし、この取扱説明書にそのまま載せるには長すぎました。そのために重要な節のみを選んであります。もとの章(ほとんど物
18978 語です)は
18979 \family typewriter
18980 examples/multicol.lyx
18981 \family default
18982 にあります。
18983 \end_layout
18984
18985 \end_inset
18986
18987 の目的は、LyXの文章でどのようにLaTeXパッケージ
18988 \family typewriter
18989 multicol
18990 \family default
18991 を使うことができるのかを説明することです。LyXは
18992 \family typewriter
18993 multicol
18994 \family default
18995 パッケージをサポートしていないので、ちょっとしたトリックが必要です。この節を読むとどのようなトリックか明らかになるはずです。
18996 \end_layout
18997
18998 \begin_layout Subsection
18999 制限事項
19000 \end_layout
19001
19002 \begin_layout Standard
19003
19004 \family typewriter
19005 multicol
19006 \family default
19007 パッケージでは同じページ内で一段組みと多段組みを切り替えることができます。脚注も(ほとんどの場合)正しく扱われますが、カラムの下ではなくページの下におかれます。
19008 しかし、LaTeXのフロートメカニズムは現在の実装では部分的に使うことができなくなっています。今のところこの環境の範囲では、ページ幅のフロートしか使えません。
19009 \end_layout
19010
19011 \begin_layout Subsection
19012
19013 \end_layout
19014
19015 \begin_layout Subsubsection
19016 二段組み
19017 \end_layout
19018
19019 \begin_layout Standard
19020 二段組みを使いたい場合には、二段組みのレイアウトを始めたい場所にLaTeXモードで
19021 \family typewriter
19022
19023 \backslash
19024 begin{multicols}{2}
19025 \family default
19026 を挿入してください。そして二段組みを終わりたい場所に
19027 \family typewriter
19028
19029 \backslash
19030 end{multicols}
19031 \family default
19032 を入れます。次の例を見てください。
19033 \end_layout
19034
19035 \begin_layout Standard
19036 \begin_inset ERT
19037 status open
19038
19039 \begin_layout Plain Layout
19040
19041
19042 \backslash
19043 begin{multicols}{2}
19044 \end_layout
19045
19046 \end_inset
19047
19048
19049 \end_layout
19050
19051 \begin_layout Standard
19052 \noindent
19053
19054 \series bold
19055 \size small
19056 The Adventure of the Empty House
19057 \series default
19058
19059 \begin_inset Newline newline
19060 \end_inset
19061
19062 by 
19063 \noun on
19064 Sir Arthur Conan Doyle
19065 \end_layout
19066
19067 \begin_layout Standard
19068
19069 \size small
19070 It was in the spring of the year 1894 that all London was interested, and
19071  the fashionable world dismayed, by the murder of the Honourable Ronald
19072  Adair under most unusual and inexplicable circumstances.
19073  The public has already learned those particulars of the crime which came
19074  out in the police investigation, but a good deal was suppressed upon that
19075  occasion, since the case for the prosecution was so overwhelmingly strong
19076  that it was not necessary to bring forward all the facts.
19077  Only now, at the end of nearly ten years, am I allowed to supply those
19078  missing links which make up the whole of that remarkable chain.
19079  The crime was of interest in itself, but that interest was as nothing to
19080  me compared to the inconceivable sequel, which afforded me the greatest
19081  shock and surprise of any event in my adventurous life.
19082  Even now, after this long interval, I find myself thrilling as I think
19083  of it, and feeling once more that sudden flood of joy, amazement, and increduli
19084 ty which utterly submerged my mind.
19085  Let me say to that public, which has shown some interest in those glimpses
19086  which I have occasionally given them of the thoughts and actions of a very
19087  remarkable man, that they are not to blame me if I have not shared my knowledge
19088  with them, for I should have considered it my first duty to do so, had
19089  I not been barred by a positive prohibition from his own lips, which was
19090  only withdrawn upon the third of last month.
19091 \end_layout
19092
19093 \begin_layout Standard
19094 \begin_inset ERT
19095 status open
19096
19097 \begin_layout Plain Layout
19098
19099
19100 \backslash
19101 end{multicols}
19102 \end_layout
19103
19104 \end_inset
19105
19106
19107 \end_layout
19108
19109 \begin_layout Subsubsection
19110 多段組み
19111 \end_layout
19112
19113 \begin_layout Standard
19114 二段以上の多段組みをする場合も同じようにできます。
19115 \end_layout
19116
19117 \begin_layout Standard
19118 \begin_inset ERT
19119 status open
19120
19121 \begin_layout Plain Layout
19122
19123
19124 \backslash
19125 begin{multicols}{3}
19126 \end_layout
19127
19128 \end_inset
19129
19130
19131 \end_layout
19132
19133 \begin_layout Standard
19134
19135 \size footnotesize
19136 It can be imagined that my close intimacy with Sherlock Holmes had interested
19137  me deeply in crime, and that after his disappearance I never failed to
19138  read with care the various problems which came before the public.
19139  And I even attempted, more than once, for my own private satisfaction,
19140  to employ his methods in their solution, though with indifferent success.
19141  There was none, however, which appealed to me like this tragedy of Ronald
19142  Adair.
19143  As I read the evidence at the inquest, which led up to a verdict of willful
19144  murder against some person or persons unknown, I realized more clearly
19145  than I had ever done the loss which the community had sustained by the
19146  death of Sherlock Holmes.
19147  There were points about this strange business which would, I was sure,
19148  have specially appealed to him, and the efforts of the police would have
19149  been supplemented, or more probably anticipated, by the trained observation
19150  and the alert mind of the first criminal agent in Europe.
19151  All day, as I drove upon my round, I turned over the case in my mind and
19152  found no explanation which appeared to me to be adequate.
19153  At the risk of telling a twice-told tale, I will recapitulate the facts
19154  as they were known to the public at the conclusion of the inquest.
19155 \end_layout
19156
19157 \begin_layout Standard
19158 \begin_inset ERT
19159 status open
19160
19161 \begin_layout Plain Layout
19162
19163
19164 \backslash
19165 end{multicols}
19166 \end_layout
19167
19168 \end_inset
19169
19170
19171 \end_layout
19172
19173 \begin_layout Standard
19174 三段組み以上も可能ですが、読みにくくなり実用的ではないでしょう。
19175 \end_layout
19176
19177 \begin_layout Subsubsection
19178 カラムの中のカラム
19179 \end_layout
19180
19181 \begin_layout Standard
19182 カラムの中にカラムを入れることもできます。
19183 \end_layout
19184
19185 \begin_layout Standard
19186 \begin_inset ERT
19187 status open
19188
19189 \begin_layout Plain Layout
19190
19191
19192 \backslash
19193 begin{multicols}{2}
19194 \end_layout
19195
19196 \end_inset
19197
19198
19199 \end_layout
19200
19201 \begin_layout Standard
19202
19203 \size footnotesize
19204 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
19205  at that time governor of one of the Australian colonies.
19206  Adair's mother had returned from Australia to undergo the operation for
19207  cataract, and she, her son Ronald, and her daughter Hilda were living together
19208  at 427 Park Lane.
19209 \end_layout
19210
19211 \begin_layout Standard
19212 \begin_inset ERT
19213 status open
19214
19215 \begin_layout Plain Layout
19216
19217
19218 \backslash
19219 begin{multicols}{2}
19220 \end_layout
19221
19222 \end_inset
19223
19224
19225 \end_layout
19226
19227 \begin_layout Standard
19228
19229 \size footnotesize
19230 The youth moved in the best society--had, so far as was known, no enemies
19231  and no particular vices.
19232  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
19233  had been broken off by mutual consent some months before, and there was
19234  no sign that it had left any very profound feeling behind it.
19235  For the rest {sic} the man's life moved in a narrow and conventional circle,
19236  for his habits were quiet and his nature unemotional.
19237  Yet it was upon this easy-going young aristocrat that death came, in most
19238  strange and unexpected form, between the hours of ten and eleven-twenty
19239  on the night of March 30, 1894.
19240 \end_layout
19241
19242 \begin_layout Standard
19243 \begin_inset ERT
19244 status open
19245
19246 \begin_layout Plain Layout
19247
19248
19249 \backslash
19250 end{multicols}
19251 \end_layout
19252
19253 \end_inset
19254
19255
19256 \end_layout
19257
19258 \begin_layout Standard
19259
19260 \size footnotesize
19261 Ronald Adair was fond of cards--playing continually, but never for such
19262  stakes as would hurt him.
19263  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
19264  It was shown that, after dinner on the day of his death, he had played
19265  a rubber of whist at the latter club.
19266  He had also played there in the afternoon.
19267
19268 \size default
19269  
19270 \size footnotesize
19271 The evidence of those who had played with him-- Mr.
19272  Murray, Sir John Hardy, and Colonel Moran--showed that the game was whist,
19273  and that there was a fairly equal fall of the cards.
19274  Adair might have lost five pounds, but not more.
19275  His fortune was a considerable one, and such a loss could not in any way
19276  affect him.
19277  He had played nearly every day at one club or other, but he was a cautious
19278  player, and usually rose a winner.
19279  It came out in evidence that, in partnership with Colonel Moran, he had
19280  actually won as much as four hundred and twenty pounds in a sitting, some
19281  weeks before, from Godfrey Milner and Lord Balmoral.
19282  So much for his recent history as it came out at the inquest.
19283 \end_layout
19284
19285 \begin_layout Standard
19286 \begin_inset ERT
19287 status open
19288
19289 \begin_layout Plain Layout
19290
19291
19292 \backslash
19293 end{multicols}
19294 \end_layout
19295
19296 \end_inset
19297
19298
19299 \end_layout
19300
19301 \begin_layout Standard
19302 より複雑な形でカラムの中にカラムを入れる例や、へッダのスペース、縦のカラムを分ける線の入れ方などの例は、ファイル 
19303 \family typewriter
19304 examples/multicol.lyx
19305 \family default
19306 を読んでください。
19307 \end_layout
19308
19309 \begin_layout Section
19310 箇条書き(連番)段落環境での番号振り
19311 \begin_inset OptArg
19312 status collapsed
19313
19314 \begin_layout Plain Layout
19315 箇条書き(連番)の番号振り
19316 \end_layout
19317
19318 \end_inset
19319
19320
19321 \end_layout
19322
19323 \begin_layout Standard
19324 \begin_inset Flex CharStyle:Noun
19325 status collapsed
19326
19327 \begin_layout Plain Layout
19328 John Weiss
19329 \end_layout
19330
19331 \end_inset
19332
19333
19334 \begin_inset VSpace bigskip
19335 \end_inset
19336
19337
19338 \end_layout
19339
19340 \begin_layout Standard
19341 既定での
19342 \begin_inset Flex CharStyle:MenuItem
19343 status collapsed
19344
19345 \begin_layout Plain Layout
19346 箇条書き(連番)
19347 \end_layout
19348
19349 \end_inset
19350
19351 段落環境での番号の付け方はアラビア数字で始まり、アルファベットの大文字で終わります。違う番号の付け方をしたい場合にはどうしたらいいのでしょうか。次の例を見てくだ
19352 さい。
19353 \end_layout
19354
19355 \begin_layout LyX-Code
19356
19357 \backslash
19358 renewcommand{
19359 \backslash
19360 labelenumi}{
19361 \backslash
19362 Roman{enumi}.}
19363 \end_layout
19364
19365 \begin_layout LyX-Code
19366
19367 \backslash
19368 renewcommand{
19369 \backslash
19370 labelenumii}{
19371 \backslash
19372 Alph{enumii}.}
19373 \end_layout
19374
19375 \begin_layout LyX-Code
19376
19377 \backslash
19378 renewcommand{
19379 \backslash
19380 labelenumiii}{
19381 \backslash
19382 arabic{enumiii}.}
19383 \end_layout
19384
19385 \begin_layout LyX-Code
19386
19387 \backslash
19388 renewcommand{
19389 \backslash
19390 labelenumiv}{
19391 \backslash
19392 alph{enumiv}.)}
19393 \end_layout
19394
19395 \begin_layout Standard
19396 これは番号の付け方をまず大文字のローマ数字、次に大文字のアルファベット、アラビア数字、小文字のアルファベットにします。
19397 \end_layout
19398
19399 \begin_layout Standard
19400 前の例にはもう少しおまけがついていて、番号の後に点が入ります。例えば初めのレベルのレベルは
19401 \begin_inset Quotes eld
19402 \end_inset
19403
19404 I.
19405 \begin_inset Quotes erd
19406 \end_inset
19407
19408 のようになります。読みやすいように、番号の付け方を説明するのに<
19409 \begin_inset Quotes eld
19410 \end_inset
19411
19412 I.
19413 \begin_inset Quotes erd
19414 \end_inset
19415
19416 ,
19417 \begin_inset space ~
19418 \end_inset
19419
19420
19421 \begin_inset Quotes erd
19422 \end_inset
19423
19424 A.
19425 \begin_inset Quotes erd
19426 \end_inset
19427
19428 ,
19429 \begin_inset space ~
19430 \end_inset
19431
19432
19433 \begin_inset Quotes erd
19434 \end_inset
19435
19436 1.
19437 \begin_inset Quotes erd
19438 \end_inset
19439
19440 ,
19441 \begin_inset space ~
19442 \end_inset
19443
19444
19445 \begin_inset Quotes eld
19446 \end_inset
19447
19448 a.)
19449 \begin_inset Quotes erd
19450 \end_inset
19451
19452 >のような表示方法を使うことにしましょう。
19453 \end_layout
19454
19455 \begin_layout Standard
19456 例を見て分かるように、各々のネストのレベルにラベルコマンド
19457 \family typewriter
19458
19459 \backslash
19460 labelenumi
19461 \family default
19462  \SpecialChar \ldots{}
19463  
19464 \family typewriter
19465
19466 \backslash
19467 labelenumiv
19468 \family default
19469 とカウンタ
19470 \family typewriter
19471 enumi
19472 \family default
19473  \SpecialChar \ldots{}
19474  
19475 \family typewriter
19476 enumiv
19477 \family default
19478 があります。使うことのできる番号印刷用のコマンドは 
19479 \family typewriter
19480
19481 \backslash
19482 arabic{}
19483 \family default
19484
19485 \family typewriter
19486
19487 \backslash
19488 roman{}
19489 \family default
19490
19491 \family typewriter
19492
19493 \backslash
19494 Roman{}
19495 \family default
19496
19497 \family typewriter
19498
19499 \backslash
19500 alph{}
19501 \family default
19502
19503 \family typewriter
19504
19505 \backslash
19506 Alph{}
19507 \family default
19508 の5つでカウンタを一つ引数として取ります。これらの前または後ろに好きな文字を加えることができます。ただしスペースを加える必要はありません。
19509 \end_layout
19510
19511 \begin_layout Standard
19512 これらの機能を使った例をお見せしましょう。
19513 \end_layout
19514
19515 \begin_layout LyX-Code
19516
19517 \backslash
19518 renewcommand{
19519 \backslash
19520 labelenumi}{
19521 \backslash
19522 #
19523 \backslash
19524 Alph{enumi}
19525 \backslash
19526 #}
19527 \end_layout
19528
19529 \begin_layout LyX-Code
19530
19531 \backslash
19532 renewcommand{
19533 \backslash
19534 labelenumii}{
19535 \backslash
19536 Alph{enumi}.
19537 \backslash
19538 arabic{enumii}}
19539 \end_layout
19540
19541 \begin_layout LyX-Code
19542
19543 \backslash
19544 renewcommand{
19545 \backslash
19546 labelenumiii}{
19547 \backslash
19548 alph{enumiii}+}
19549 \end_layout
19550
19551 \begin_layout LyX-Code
19552
19553 \backslash
19554 renewcommand{
19555 \backslash
19556 labelenumiv}{(
19557 \backslash
19558 roman{enumiv})}
19559 \end_layout
19560
19561 \begin_layout Standard
19562 この例は番号の付け方を <
19563 \begin_inset Quotes eld
19564 \end_inset
19565
19566 #A#
19567 \begin_inset Quotes erd
19568 \end_inset
19569
19570 ,
19571 \begin_inset space ~
19572 \end_inset
19573
19574
19575 \begin_inset Quotes erd
19576 \end_inset
19577
19578 A.1
19579 \begin_inset Quotes erd
19580 \end_inset
19581
19582 ,
19583 \begin_inset space ~
19584 \end_inset
19585
19586
19587 \begin_inset Quotes erd
19588 \end_inset
19589
19590 a+
19591 \begin_inset Quotes erd
19592 \end_inset
19593
19594 ,
19595 \begin_inset space ~
19596 \end_inset
19597
19598
19599 \begin_inset Quotes eld
19600 \end_inset
19601
19602 (i)
19603 \begin_inset Quotes erd
19604 \end_inset
19605
19606 >のようにします。
19607 \end_layout
19608
19609 \begin_layout Section
19610 Dropped Capitals
19611 \end_layout
19612
19613 \begin_layout Standard
19614 \begin_inset Flex CharStyle:Noun
19615 status collapsed
19616
19617 \begin_layout Plain Layout
19618 Mike Ressler
19619 \end_layout
19620
19621 \end_inset
19622
19623
19624 \begin_inset VSpace bigskip
19625 \end_inset
19626
19627
19628 \end_layout
19629
19630 \begin_layout Standard
19631 \noindent
19632 \begin_inset ERT
19633 status collapsed
19634
19635 \begin_layout Plain Layout
19636
19637
19638 \backslash
19639 newfont{
19640 \backslash
19641 tmpfont}{cmr17 scaled 2500}{
19642 \backslash
19643 tmpfont T}
19644 \backslash
19645 vspace*{-8.4ex}
19646 \end_layout
19647
19648 \end_inset
19649
19650
19651 \end_layout
19652
19653 \begin_layout Standard
19654 \noindent
19655 \begin_inset ERT
19656 status open
19657
19658 \begin_layout Plain Layout
19659
19660
19661 \backslash
19662 hangindent=3.3em 
19663 \backslash
19664 hangafter=-3
19665 \end_layout
19666
19667 \end_inset
19668
19669  hose of you who like the style of old books probably also like 
19670 \begin_inset Quotes eld
19671 \end_inset
19672
19673 dropped capitals
19674 \begin_inset Quotes erd
19675 \end_inset
19676
19677 ---those large capital letters which begin each new chapter or section.
19678  
19679 \end_layout
19680
19681 \begin_layout Standard
19682 昔の本のスタイルが好きならこの例のように、dropped capitalsも多分好きでしょう。これは新しい章、または節が大きな大文字で始まるものです。これをLy
19683 X/LaTeXで実現するのは(少しはplain TeXを知る必要はありますが)簡単ですが、この節の初めのTeXモードを見てもらうと分かるように多くの仕事と繰り返
19684 しが必要になります。
19685 \end_layout
19686
19687 \begin_layout Standard
19688 \begin_inset ERT
19689 status open
19690
19691 \begin_layout Plain Layout
19692
19693
19694 \backslash
19695 verb+
19696 \backslash
19697 bigdrop{-1em}{3}{ptmri}{T}+
19698 \end_layout
19699
19700 \end_inset
19701
19702 こちらの方が簡単でしょう。CTANにある
19703 \family typewriter
19704 dropcaps
19705 \family default
19706 (またはより新しい
19707 \family typewriter
19708 dropping
19709 \family default
19710 )パッケージを使えば簡単にこのような文字をあなたの文章に入れることができます。このパッケージは teTeXに含まれていないのでこの文章の中でお見せできませんが、
19711 この段落を新しい文章にコピーして、先頭の
19712 \family typewriter
19713
19714 \backslash
19715 verb
19716 \family default
19717 と+を取り除き、プリアンブルに
19718 \family typewriter
19719
19720 \backslash
19721 usepackage{dropcaps}
19722 \family default
19723 を加えると、Times Roman ItalicのTが3行文の高さで余白に1emでた形で印刷されます(TeXが探せるディレクトリに
19724 \family typewriter
19725 dropcaps.sty
19726 \family default
19727 があることを確認してください)。最初の引数は字下げの量です。この例では負ですから余白に突き出します。2番目の引数は行数で表した文字の高さです。3番目の引数はフォ
19728 ント名です。tfmファイルも持つ物なら何でも動きます(
19729 \family typewriter
19730 .../texmf/fonts/tfm
19731 \family default
19732 ディレクトリで色々探してみてください)。私が気に入っているは
19733 \family typewriter
19734 yinit
19735 \family default
19736 で、これはdropped capital用に特にデザインされたドイツ文字のフォントです。4番目の引数が使う文字です。
19737 \family typewriter
19738 dropping
19739 \family default
19740 パッケージは
19741 \family typewriter
19742
19743 \backslash
19744 bigdrop
19745 \family default
19746 コマンド以外にも少し簡単な
19747 \family typewriter
19748
19749 \backslash
19750 dropping
19751 \family default
19752 コマンドも持っています。
19753 \end_layout
19754
19755 \begin_layout Section
19756 標準的でない形の段落
19757 \end_layout
19758
19759 \begin_layout Standard
19760 \begin_inset Flex CharStyle:Noun
19761 status collapsed
19762
19763 \begin_layout Plain Layout
19764 Mike Ressler
19765 \end_layout
19766
19767 \end_inset
19768
19769
19770 \begin_inset VSpace bigskip
19771 \end_inset
19772
19773
19774 \end_layout
19775
19776 \begin_layout Standard
19777 \begin_inset ERT
19778 status collapsed
19779
19780 \begin_layout Plain Layout
19781
19782
19783 \backslash
19784 begin{sloppypar}
19785 \end_layout
19786
19787 \end_inset
19788
19789
19790 \end_layout
19791
19792 \begin_layout Standard
19793 \begin_inset ERT
19794 status collapsed
19795
19796 \begin_layout Plain Layout
19797
19798
19799 \backslash
19800 newdimen
19801 \backslash
19802 varunit 
19803 \end_layout
19804
19805 \begin_layout Plain Layout
19806
19807
19808 \backslash
19809 setlength{
19810 \backslash
19811 varunit}{4.5in}
19812 \end_layout
19813
19814 \end_inset
19815
19816
19817 \end_layout
19818
19819 \begin_layout Standard
19820 \noindent
19821 \begin_inset ERT
19822 status collapsed
19823
19824 \begin_layout Plain Layout
19825
19826
19827 \backslash
19828 parshape 19 0.45
19829 \backslash
19830 varunit 0.332
19831 \backslash
19832 varunit
19833 \end_layout
19834
19835 \begin_layout Plain Layout
19836
19837 0.40
19838 \backslash
19839 varunit 0.300
19840 \backslash
19841 varunit
19842 \end_layout
19843
19844 \begin_layout Plain Layout
19845
19846 0.35
19847 \backslash
19848 varunit 0.293
19849 \backslash
19850 varunit
19851 \end_layout
19852
19853 \begin_layout Plain Layout
19854
19855 0.30
19856 \backslash
19857 varunit 0.300
19858 \backslash
19859 varunit
19860 \end_layout
19861
19862 \begin_layout Plain Layout
19863
19864 0.25
19865 \backslash
19866 varunit 0.317
19867 \backslash
19868 varunit
19869 \end_layout
19870
19871 \begin_layout Plain Layout
19872
19873 0.20
19874 \backslash
19875 varunit 0.342
19876 \backslash
19877 varunit
19878 \end_layout
19879
19880 \begin_layout Plain Layout
19881
19882 0.15
19883 \backslash
19884 varunit 0.373
19885 \backslash
19886 varunit
19887 \end_layout
19888
19889 \begin_layout Plain Layout
19890
19891 0.10
19892 \backslash
19893 varunit 0.410
19894 \backslash
19895 varunit
19896 \end_layout
19897
19898 \begin_layout Plain Layout
19899
19900 0.05
19901 \backslash
19902 varunit 0.453
19903 \backslash
19904 varunit
19905 \end_layout
19906
19907 \begin_layout Plain Layout
19908
19909 0.00
19910 \backslash
19911 varunit 0.500
19912 \backslash
19913 varunit
19914 \end_layout
19915
19916 \begin_layout Plain Layout
19917
19918 0.05
19919 \backslash
19920 varunit 0.453
19921 \backslash
19922 varunit
19923 \end_layout
19924
19925 \begin_layout Plain Layout
19926
19927 0.10
19928 \backslash
19929 varunit 0.410
19930 \backslash
19931 varunit
19932 \end_layout
19933
19934 \begin_layout Plain Layout
19935
19936 0.15
19937 \backslash
19938 varunit 0.373
19939 \backslash
19940 varunit
19941 \end_layout
19942
19943 \begin_layout Plain Layout
19944
19945 0.20
19946 \backslash
19947 varunit 0.342
19948 \backslash
19949 varunit
19950 \end_layout
19951
19952 \begin_layout Plain Layout
19953
19954 0.25
19955 \backslash
19956 varunit 0.317
19957 \backslash
19958 varunit
19959 \end_layout
19960
19961 \begin_layout Plain Layout
19962
19963 0.30
19964 \backslash
19965 varunit 0.300
19966 \backslash
19967 varunit
19968 \end_layout
19969
19970 \begin_layout Plain Layout
19971
19972 0.35
19973 \backslash
19974 varunit 0.293
19975 \backslash
19976 varunit
19977 \end_layout
19978
19979 \begin_layout Plain Layout
19980
19981 0.40
19982 \backslash
19983 varunit 0.300
19984 \backslash
19985 varunit
19986 \end_layout
19987
19988 \begin_layout Plain Layout
19989
19990 0.45
19991 \backslash
19992 varunit 0.332
19993 \backslash
19994 varunit
19995 \end_layout
19996
19997 \begin_layout Plain Layout
19998
19999 \end_layout
20000
20001 \end_inset
20002
20003 長方形の段落の形を変えたい場合があるでしょう。そういう場合は楽しいTeXコマンド
20004 \family typewriter
20005
20006 \backslash
20007 parshape
20008 \family default
20009 を使いましょう。この例で分かるように適当に行の長さを設定することで好きな形の段落が作れます。馬鹿げているように見えるかもしれませんが、dropped
20010  capitalを最終調整したり、長方形ではない図のまわりを文章で囲ったりするのにこのような手作業が必要なのです。
20011 \end_layout
20012
20013 \begin_layout Standard
20014 \begin_inset VSpace bigskip
20015 \end_inset
20016
20017 文法は
20018 \family typewriter
20019
20020 \backslash
20021 parshape numlines #1indent #1length #2indent #2length \SpecialChar \ldots{}
20022  #nindent #nlength
20023 \family default
20024  です。
20025 \family typewriter
20026 numlines
20027 \family default
20028 は段落をつくる行数です。その段落の本文がこれより短い場合はそこで終わり、長い場合には最後の行の定義がそれ以後も使われます。
20029 \family typewriter
20030 #nindent
20031 \family default
20032
20033 \family typewriter
20034 #nlength
20035 \family default
20036 エントリは左余白からの字下げの量と、字下げされたところからの行の長さを指定します。この形は現在の段落にだけ適応されて、次の段落では通常の形にリセットされます。
20037 \end_layout
20038
20039 \begin_layout Standard
20040 \begin_inset ERT
20041 status collapsed
20042
20043 \begin_layout Plain Layout
20044
20045
20046 \backslash
20047 end{sloppypar}
20048 \end_layout
20049
20050 \end_inset
20051
20052
20053 \end_layout
20054
20055 \begin_layout Section
20056 まとめ
20057 \end_layout
20058
20059 \begin_layout Standard
20060 見てきたように、この節には有用な例も馬鹿げた例も入っています。たとえば、最後の節のように段落の形を変えることが必要な人がそれほどいるとは思えませんが、重要な点は
20061 、TeXやLaTeXでどのようにすればいいかを理解する気があれば、ほとんどすべてをLyXの中でできるということです。TeXは、すばらしく強力な組版システムであり
20062 、LyXはそれをバックエンドとして使用しているので、そのすべての力があなたの前に利用可能なのです。Happy LyXing!
20063 \end_layout
20064
20065 \end_body
20066 \end_document