]> git.lyx.org Git - features.git/blob - lib/doc/ja/Additional.lyx
- multicol.module: new module for multiple text columns
[features.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
2 \lyxformat 413
3 \begin_document
4 \begin_header
5 \textclass jsbook
6 \begin_preamble
7 % DO NOT ALTER THIS PREAMBLE!!!
8 %
9 % This preamble is designed to ensure that the manual prints
10 % out as advertised. If you mess with this preamble,
11 % parts of the manual may not print out as expected.  If you
12 % have problems LaTeXing this file, please contact 
13 % the documentation team
14 % email: lyx-docs@lists.lyx.org
15
16 \ifnum 42146=\euc"A4A2 \AtBeginDvi{\special{pdf:tounicode EUC-UCS2}}\else
17 \AtBeginDvi{\special{pdf:tounicode 90ms-RKSJ-UCS2}}\fi
18
19 % if pdflatex is used
20 \usepackage{ifpdf}
21 \ifpdf
22
23  % set fonts for nicer pdf view
24  \IfFileExists{lmodern.sty}
25   {\usepackage{lmodern}}{}
26
27 \fi % end if pdflatex is used
28
29 % the pages of the TOC are numbered roman
30 % and a PDF-bookmark for the TOC is added
31 \pagenumbering{roman}
32 \let\myTOC\tableofcontents
33 \renewcommand{\tableofcontents}{%
34  \pdfbookmark[1]{\contentsname}{}
35  \myTOC
36  \cleardoublepage
37  \pagenumbering{arabic}}
38
39 % used for multi-column text
40 \usepackage{multicol}
41
42 % extra space for tables
43 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
44
45 \usepackage{t1enc}
46 \end_preamble
47 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
48 \use_default_options false
49 \begin_modules
50 logicalmkup
51 theorems-ams
52 theorems-ams-extended
53 multicol
54 \end_modules
55 \maintain_unincluded_children false
56 \begin_local_layout
57 Format 7
58 InsetLayout CharStyle:MenuItem
59 LyxType               charstyle
60 LabelString           menu
61 LatexType             command
62 LatexName             menuitem
63 Font
64 Family              Sans
65 EndFont
66 Preamble
67 \newcommand*{\menuitem}[1]{{\sffamily #1}}
68 EndPreamble
69 End
70 \end_local_layout
71 \language japanese
72 \language_package default
73 \inputencoding JIS-pLaTeX
74 \fontencoding global
75 \font_roman default
76 \font_sans default
77 \font_typewriter default
78 \font_default_family default
79 \use_non_tex_fonts false
80 \font_sc false
81 \font_osf false
82 \font_sf_scale 100
83 \font_tt_scale 100
84
85 \graphics default
86 \default_output_format default
87 \output_sync 0
88 \bibtex_command default
89 \index_command default
90 \paperfontsize 12
91 \spacing single
92 \use_hyperref true
93 \pdf_title "LyX拡張機能篇"
94 \pdf_author "LyXプロジェクトチーム"
95 \pdf_subject "LyX拡張機能取扱説明書"
96 \pdf_keywords "LyX、取扱説明書、文書化、拡張"
97 \pdf_bookmarks true
98 \pdf_bookmarksnumbered true
99 \pdf_bookmarksopen false
100 \pdf_bookmarksopenlevel 1
101 \pdf_breaklinks false
102 \pdf_pdfborder false
103 \pdf_colorlinks true
104 \pdf_backref false
105 \pdf_pdfusetitle false
106 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
107 \papersize default
108 \use_geometry false
109 \use_amsmath 1
110 \use_esint 0
111 \use_mhchem 1
112 \use_mathdots 1
113 \cite_engine basic
114 \use_bibtopic false
115 \use_indices false
116 \paperorientation portrait
117 \suppress_date false
118 \use_refstyle 0
119 \index 索引
120 \shortcut idx
121 \color #008000
122 \end_index
123 \secnumdepth 3
124 \tocdepth 3
125 \paragraph_separation indent
126 \paragraph_indentation default
127 \quotes_language english
128 \papercolumns 1
129 \papersides 2
130 \paperpagestyle headings
131 \tracking_changes false
132 \output_changes false
133 \html_math_output 0
134 \html_css_as_file 0
135 \html_be_strict true
136 \end_header
137
138 \begin_body
139
140 \begin_layout Title
141 LyXの高度な機能
142 \begin_inset Newline newline
143 \end_inset
144
145
146 \begin_inset Newline newline
147 \end_inset
148
149
150 \size large
151 Version 2.0.x
152 \end_layout
153
154 \begin_layout Author
155 LyXプロジェクトチーム
156 \begin_inset Foot
157 status collapsed
158
159 \begin_layout Plain Layout
160 このファイルは主にRichard Heckによって管理されています。コメントをされたい場合や誤りを発見された場合には、LyX文書化メーリングリスト
161 \begin_inset Flex Code
162 status open
163
164 \begin_layout Plain Layout
165 \noindent
166
167 \family typewriter
168 <lyx-docs@lists.lyx.org>
169 \end_layout
170
171 \end_inset
172
173 に英文にてお知らせ下さい。この文書の翻訳は、当初人見光太郎氏が行った貢献に基づいています。
174 \end_layout
175
176 \end_inset
177
178  
179 \end_layout
180
181 \begin_layout Standard
182 \begin_inset CommandInset toc
183 LatexCommand tableofcontents
184
185 \end_inset
186
187
188 \end_layout
189
190 \begin_layout Chapter
191 はじめに
192 \end_layout
193
194 \begin_layout Standard
195 いまお読みの取扱説明書『
196 \emph on
197 LyX拡張機能篇
198 \emph default
199 』は、基本的には『
200 \emph on
201 ユーザーの手引き
202 \emph default
203 』の第二部です。この文書を別部とした理由は、単純に『
204 \emph on
205 ユーザーの手引き
206 \emph default
207 』がすでに大部となっていることと、『
208 \emph on
209 ユーザーの手引き
210 \emph default
211 』が、ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです。一方で、LyXプロジェクトチームは、LyXを各設定ファイルと外部パッケージ
212 によって拡張可能な状態にしておくことを長期的な目標にしています。つまり、あるLaTeXパッケージをサポートしたい場合に、LyX自身に変更を加えることなく、当該パ
213 ッケージ用のレイアウトファイル(ないしモジュール)を作成すればいいようにしているのです。すでにこのような形で、いくつもの新機能がユーザーによって追加されています
214 。この取扱説明書は、そのような形での貢献を文書化する冊子として位置付けられています。
215 \end_layout
216
217 \begin_layout Standard
218 この取扱説明書では、ファックスのサポート・バージョン管理・SGMLサポートのような、正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
219 しています。さらに、LaTeXの強力な機能を直接使って文書を美しく仕上げるための、LaTeXツールやテクニックを述べた章も収録しています。つきつめれば、LyXと
220 はあくまでWYSIWYMたることを企図しているため、LaTeXの全機能の一部へのインタフェースは用意するものの、すべてを用意することはないでしょう。
221 \end_layout
222
223 \begin_layout Standard
224 もし、まだ『
225 \emph on
226 はじめの一歩
227 \emph default
228 』をお読みでなかったら、この取扱説明書から読みはじめるのは誤りです。『
229 \emph on
230 はじめの一歩
231 \emph default
232 』には、全取扱説明書に共通の表記法と書式が説明されていますので、まずそれからお読みください。さらに、この取扱説明書を読もうとする前に、『
233 \emph on
234 ユーザーの手引き
235 \emph default
236 』をよくお読みになって、LyXの全基本機能を習得してください。
237 \end_layout
238
239 \begin_layout Standard
240 この取扱説明書の取り上げられている話題は、LyXがLaTeXにどう関わっているかに強く関係していますので、まず次章では、LyXの内部動作がどうなっているか、Ly
241 Xに希望するLaTeXコードを正確に生成させるにはどうしたらいいかを収録しています。本章は、あきらかに熟練LyXユーザー向けの章となっています。
242 \end_layout
243
244 \begin_layout Chapter
245 LyXとLaTeX
246 \end_layout
247
248 \begin_layout Section
249 LyXはLaTeXをどう使っているか
250 \end_layout
251
252 \begin_layout Standard
253 本章
254 \family roman
255 \series medium
256 \shape up
257 \size normal
258 \emph off
259 \bar no
260 \noun off
261 \color none
262 は、TeX熟練者とLaTeXに興味のある方向けの章です。ここでは、LyXとLaTeXが、印刷可能な出力を生成するのに、どのように協働しているのかを説明します。全
263 取扱説明書中で本章だけは、LaTeXのことを多少なりともご存知であることを前提とします。
264 \end_layout
265
266 \begin_layout Standard
267
268 \family roman
269 \series medium
270 \shape up
271 \size normal
272 \emph off
273 \bar no
274 \noun off
275 \color none
276 かつてLyXは、「LaTeXの
277 \family default
278 \series default
279 \shape default
280 \size default
281 \emph default
282 \bar default
283 \noun default
284 \color inherit
285 WYSIWYM
286 \family roman
287 \series medium
288 \shape up
289 \size normal
290 \emph off
291 \bar no
292 \noun off
293 \color none
294 なフロントエンド」と呼ばれていましたが、いまではこれは正しくありません。LaTeXのフロントエンドは、いくつも出回っています
295 \begin_inset Foot
296 status collapsed
297
298 \begin_layout Plain Layout
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 有名なものとしては、Linux上のTeXmakerとkile、OSX上のTeXshopなどがあります。もちろんviとemacsのLaTeXモードも含まれます。
309 \end_layout
310
311 \end_inset
312
313 。これらは、基本的にLaTeXを走らせる機能を有し、編集中のファイルのエラーを表示する機能を持ったテキストエディタです。LyXも、エディタであり、LaTeXを走
314 らせる機能を有し、ファイル中のエラーを指摘しますが、それ以上にもっともっと多くのことをしてくれます。
315 \family default
316 \series default
317 \shape default
318 \size default
319 \emph default
320 \bar default
321 \noun default
322 \color inherit
323 ひとつには、
324 \family roman
325 \series medium
326 \shape up
327 \size normal
328 \emph off
329 \bar no
330 \noun off
331 \color none
332 LyXを効果的に使うのに、LaTeXの知識が必要とされないことが挙げられます。またLyXは、それ自身、いくつかの拡張をLaTeXに加えています。時間のあるときに
333 でも、いちど以下の手順を試してみてください。まず
334 \family sans
335 \series default
336 \shape default
337 \size default
338 \emph default
339 \bar default
340 \noun default
341 \color inherit
342
343 \begin_inset Flex MenuItem
344 status collapsed
345
346 \begin_layout Plain Layout
347
348 \family sans
349 ファイル
350 \end_layout
351
352 \end_inset
353
354
355 \family roman
356 \series medium
357 \shape up
358 \size normal
359 \emph off
360 \bar no
361 \noun off
362 \color none
363 メニューから
364 \family sans
365 \series default
366 \shape default
367 \size default
368 \emph default
369 \bar default
370 \noun default
371 \color inherit
372
373 \begin_inset Flex MenuItem
374 status collapsed
375
376 \begin_layout Plain Layout
377
378 \family sans
379 エクスポート\SpecialChar \menuseparator
380 LaTeX
381 \end_layout
382
383 \end_inset
384
385
386 \family roman
387 \series medium
388 \shape up
389 \size normal
390 \emph off
391 \bar no
392 \noun off
393 \color none
394 (あるいは
395 \family sans
396 \series default
397 \shape default
398 \size default
399 \emph default
400 \bar default
401 \noun default
402 \color inherit
403
404 \begin_inset Flex MenuItem
405 status collapsed
406
407 \begin_layout Plain Layout
408
409 \family sans
410 表示\SpecialChar \menuseparator
411 ソースを閲覧
412 \end_layout
413
414 \end_inset
415
416
417 \family roman
418 \series medium
419 \shape up
420 \size normal
421 \emph off
422 \bar no
423 \noun off
424 \color none
425 )を選択し、そこから出力される
426 \begin_inset Flex Code
427 status collapsed
428
429 \begin_layout Plain Layout
430
431 \family typewriter
432 .tex
433 \end_layout
434
435 \end_inset
436
437 ファイルのプリアンブルをご覧ください。LyXによって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
438 \family default
439 \series default
440 \shape default
441 \size default
442 \emph default
443 \bar default
444 \noun default
445 \color inherit
446 。これらのマクロは、文書中で使用する機能に応じて、自動的に定義されます。
447 \end_layout
448
449 \begin_layout Standard
450
451 \family roman
452 \series medium
453 \shape up
454 \size normal
455 \emph off
456 \bar no
457 \noun off
458 \color none
459 自動的にLaTeXを実行するコマンドが、以下のようにいくつかあります。
460 \end_layout
461
462 \begin_layout Itemize
463 \begin_inset Flex MenuItem
464 status collapsed
465
466 \begin_layout Plain Layout
467
468 \bar under
469 表示\SpecialChar \menuseparator
470
471 \emph on
472 書式
473 \end_layout
474
475 \end_inset
476
477
478 \end_layout
479
480 \begin_layout Itemize
481
482 \family sans
483 \begin_inset Flex MenuItem
484 status collapsed
485
486 \begin_layout Plain Layout
487
488 \bar under
489 表示\SpecialChar \menuseparator
490 更新\SpecialChar \menuseparator
491
492 \emph on
493 書式
494 \end_layout
495
496 \end_inset
497
498
499 \end_layout
500
501 \begin_layout Itemize
502
503 \family sans
504 \begin_inset Flex MenuItem
505 status collapsed
506
507 \begin_layout Plain Layout
508
509 \bar under
510 ファイル
511 \bar default
512 \SpecialChar \menuseparator
513
514 \bar under
515 印刷
516 \end_layout
517
518 \end_inset
519
520
521 \end_layout
522
523 \begin_layout Itemize
524
525 \family sans
526 \begin_inset Flex MenuItem
527 status collapsed
528
529 \begin_layout Plain Layout
530
531 \bar under
532 ファイル
533 \bar default
534 \SpecialChar \menuseparator
535
536 \bar under
537 ファックス
538 \end_layout
539
540 \end_inset
541
542
543 \end_layout
544
545 \begin_layout Standard
546
547 \family roman
548 \series medium
549 \shape up
550 \size normal
551 \emph off
552 \bar no
553 \noun off
554 \color none
555 これらは、最後にLaTeXを実行してからファイルに変更が加えられた場合のみ、LaTeXを実行します。
556 \end_layout
557
558 \begin_layout Standard
559
560 \family roman
561 \series medium
562 \shape up
563 \size normal
564 \emph off
565 \bar no
566 \noun off
567 \color none
568 LyXが編集中のファイルをLaTeXにかけるとき、LyXは以下の段階をふみます。
569 \end_layout
570
571 \begin_layout Enumerate
572
573 \family roman
574 \series medium
575 \shape up
576 \size normal
577 \emph off
578 \bar no
579 \noun off
580 \color none
581 文書をLaTeXに変換し、ファイルの拡張子を
582 \begin_inset Flex Code
583 status collapsed
584
585 \begin_layout Plain Layout
586
587 \family roman
588 \series medium
589 \shape up
590 \size normal
591 \emph off
592 \bar no
593 \noun off
594 \color none
595 .lyx
596 \end_layout
597
598 \end_inset
599
600 から
601 \begin_inset Flex Code
602 status collapsed
603
604 \begin_layout Plain Layout
605
606 \family roman
607 \series medium
608 \shape up
609 \size normal
610 \emph off
611 \bar no
612 \noun off
613 \color none
614 .tex
615 \end_layout
616
617 \end_inset
618
619 に変えて保存。
620 \end_layout
621
622 \begin_layout Enumerate
623
624 \family roman
625 \series medium
626 \shape up
627 \size normal
628 \emph off
629 \bar no
630 \noun off
631 \color none
632 この
633 \begin_inset Flex Code
634 status collapsed
635
636 \begin_layout Plain Layout
637
638 \family roman
639 \series medium
640 \shape up
641 \size normal
642 \emph off
643 \bar no
644 \noun off
645 \color none
646 .tex
647 \end_layout
648
649 \end_inset
650
651 ファイルに対して(必要に応じて複数回)LaTeXを実行し、LaTeXファイルをコンパイルするのに必要な他のコマンド(
652 \begin_inset Flex Code
653 status collapsed
654
655 \begin_layout Plain Layout
656
657 \family roman
658 \series medium
659 \shape up
660 \size normal
661 \emph off
662 \bar no
663 \noun off
664 \color none
665 bibtex
666 \end_layout
667
668 \end_inset
669
670
671 \begin_inset Flex Code
672 status collapsed
673
674 \begin_layout Plain Layout
675
676 \family roman
677 \series medium
678 \shape up
679 \size normal
680 \emph off
681 \bar no
682 \noun off
683 \color none
684 makeindex
685 \end_layout
686
687 \end_inset
688
689 など)を実行。。
690 \end_layout
691
692 \begin_layout Enumerate
693
694 \family roman
695 \series medium
696 \shape up
697 \size normal
698 \emph off
699 \bar no
700 \noun off
701 \color none
702 もしエラーがあれば、エラーログを表示。
703 \end_layout
704
705 \begin_layout Standard
706
707 \family roman
708 \series medium
709 \shape up
710 \size normal
711 \emph off
712 \bar no
713 \noun off
714 \color none
715 LaTeXを
716 \family sans
717 \series default
718 \shape default
719 \size default
720 \emph default
721 \bar default
722 \noun default
723 \color inherit
724
725 \begin_inset Flex MenuItem
726 status collapsed
727
728 \begin_layout Plain Layout
729
730 \family sans
731 表示\SpecialChar \menuseparator
732 DVI
733 \end_layout
734
735 \end_inset
736
737
738 \family roman
739 \series medium
740 \shape up
741 \size normal
742 \emph off
743 \bar no
744 \noun off
745 \color none
746 を使用して実行した場合には、LyXはこの後、DVIビューアを実行してDVIファイルを表示します。
747 \begin_inset Flex MenuItem
748 status collapsed
749
750 \begin_layout Plain Layout
751
752 \family roman
753 \series medium
754 \shape up
755 \size normal
756 \emph off
757 \bar no
758 \noun off
759 \color none
760 表示\SpecialChar \menuseparator
761 PostScript
762 \end_layout
763
764 \end_inset
765
766 を使用した場合には、LyXはさらに以下の段階をふみます。
767 \end_layout
768
769 \begin_layout Itemize
770
771 \family roman
772 \series medium
773 \shape up
774 \size normal
775 \emph off
776 \bar no
777 \noun off
778 \color none
779 \begin_inset Flex Code
780 status collapsed
781
782 \begin_layout Plain Layout
783
784 \family typewriter
785 dvips
786 \end_layout
787
788 \end_inset
789
790 を実行して、
791 \family default
792 \series default
793 \shape default
794 \size default
795 \emph default
796 \bar default
797 \noun default
798 \color inherit
799 DVI
800 \family roman
801 \series medium
802 \shape up
803 \size normal
804 \emph off
805 \bar no
806 \noun off
807 \color none
808 ファイルをPostScript®
809 \family default
810 \series default
811 \shape default
812 \size default
813 \emph default
814 \bar default
815 \noun default
816 \color inherit
817 に変換。
818 \end_layout
819
820 \begin_layout Itemize
821
822 \family roman
823 \series medium
824 \shape up
825 \size normal
826 \emph off
827 \bar no
828 \noun off
829 \color none
830 \begin_inset Flex Code
831 status collapsed
832
833 \begin_layout Plain Layout
834
835 \family typewriter
836 ghostview
837 \end_layout
838
839 \end_inset
840
841 などのPostScript®ビューアを実行して、PostScript®
842 \family default
843 \series default
844 \shape default
845 \size default
846 \emph default
847 \bar default
848 \noun default
849 \color inherit
850 ファイルを表示。
851 \end_layout
852
853 \begin_layout Standard
854 LyXは、他の書式を表示したりエクスポートしたりする際にも、同様のことを行います。
855 \end_layout
856
857 \begin_layout Section
858 LaTeXファイルをLyXに読み込む
859 \end_layout
860
861 \begin_layout Standard
862 LyXで
863 \family sans
864
865 \begin_inset Flex MenuItem
866 status collapsed
867
868 \begin_layout Plain Layout
869
870 \family sans
871 ファイル\SpecialChar \menuseparator
872 インポート\SpecialChar \menuseparator
873 LaTeX
874 \end_layout
875
876 \end_inset
877
878
879 \family roman
880 \series medium
881 \shape up
882 \size normal
883 \emph off
884 \bar no
885 \noun off
886 \color none
887 コマンドを使用すると、LaTeXファイルを
888 \family default
889 \series default
890 \shape default
891 \size default
892 \emph default
893 \bar default
894 \noun default
895  
896 \family roman
897 \series medium
898 \shape up
899 \size normal
900 \emph off
901 \bar no
902 \noun off
903 LyXにインポートすることができます。このコマンドは、
904 \family typewriter
905 \series default
906 \shape default
907 \size default
908 \emph default
909 \bar default
910 \noun default
911 \color inherit
912
913 \begin_inset Flex Code
914 status collapsed
915
916 \begin_layout Plain Layout
917
918 \family typewriter
919 tex2lyx
920 \end_layout
921
922 \end_inset
923
924
925 \family roman
926 \series medium
927 \shape up
928 \size normal
929 \emph off
930 \bar no
931 \noun off
932 \color none
933 というプログラムを呼び出し、
934 \family typewriter
935 \series default
936 \shape default
937 \size default
938 \emph default
939 \bar default
940 \noun default
941 \color inherit
942
943 \begin_inset Flex Code
944 status collapsed
945
946 \begin_layout Plain Layout
947
948 \family typewriter
949 foo.tex
950 \end_layout
951
952 \end_inset
953
954
955 \family default
956 などというファイルから
957 \begin_inset Flex Code
958 status collapsed
959
960 \begin_layout Plain Layout
961
962 \family typewriter
963 foo.lyx
964 \end_layout
965
966 \end_inset
967
968 を生成します。LyXは、この変換したファイルを開きます
969 \begin_inset Foot
970 status collapsed
971
972 \begin_layout Plain Layout
973 \begin_inset Flex Code
974 status collapsed
975
976 \begin_layout Plain Layout
977 tex2lyx
978 \end_layout
979
980 \end_inset
981
982 は、もちろんコマンドラインから実行することもできます。
983 \end_layout
984
985 \end_inset
986
987
988 \end_layout
989
990 \begin_layout Standard
991
992 \family typewriter
993 \begin_inset Flex Code
994 status collapsed
995
996 \begin_layout Plain Layout
997
998 \family typewriter
999 tex2lyx
1000 \end_layout
1001
1002 \end_inset
1003
1004
1005 \family roman
1006 \series medium
1007 \shape up
1008 \size normal
1009 \emph off
1010 \bar no
1011 \noun off
1012 \color none
1013 は、文法的に正しいLaTeXファイルのほとんどを変換することができますが、すべてを変換できるわけではありません。
1014 \family typewriter
1015 \series default
1016 \shape default
1017 \size default
1018 \emph default
1019 \bar default
1020 \noun default
1021 \color inherit
1022
1023 \begin_inset Flex Code
1024 status collapsed
1025
1026 \begin_layout Plain Layout
1027
1028 \family typewriter
1029 tex2lyx
1030 \end_layout
1031
1032 \end_inset
1033
1034
1035 \family roman
1036 \series medium
1037 \shape up
1038 \size normal
1039 \emph off
1040 \bar no
1041 \noun off
1042 \color none
1043 は、理解不能な部分はTeXコードボックスの形で残しますので、ファイルを
1044 \family typewriter
1045 \series default
1046 \shape default
1047 \size default
1048 \emph default
1049 \bar default
1050 \noun default
1051 \color inherit
1052
1053 \begin_inset Flex Code
1054 status collapsed
1055
1056 \begin_layout Plain Layout
1057
1058 \family typewriter
1059 tex2lyx
1060 \end_layout
1061
1062 \end_inset
1063
1064
1065 \family roman
1066 \series medium
1067 \shape up
1068 \size normal
1069 \emph off
1070 \bar no
1071 \noun off
1072 \color none
1073 で変換したのち、TeXコードボックスを探して、手動で正しく編集してください。
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 TeXコードボックスがなにかご存じなければ、次節をお読みください。
1087 \end_layout
1088
1089 \begin_layout Section
1090 LaTeXコードを挿入する
1091 \begin_inset CommandInset label
1092 LatexCommand label
1093 name "sec:LaTeXコードを挿入する"
1094
1095 \end_inset
1096
1097
1098 \end_layout
1099
1100 \begin_layout Standard
1101
1102 \family roman
1103 \series medium
1104 \shape up
1105 \size normal
1106 \emph off
1107 \bar no
1108 \noun off
1109 \color none
1110 どのLyX文書にもつねにTeXコードを挿入することが可能であるというきわめて単純な理由によって、LaTeXにできることは、つねにLyXでも行うことができます。一
1111 方、LyXは、すべてのLaTeX構成物をLyX内に表示できるわけではなく、将来的にもそうならないでしょう。かりにLaTeXコマンドをLyX文書に挿入する必要が出
1112 てきた場合には、
1113 \begin_inset Flex Code
1114 status collapsed
1115
1116 \begin_layout Plain Layout
1117
1118 \family roman
1119 \series medium
1120 \shape up
1121 \size normal
1122 \emph off
1123 \bar no
1124 \noun off
1125 \color none
1126 TeXコード
1127 \end_layout
1128
1129 \end_inset
1130
1131 ボックスを使用してください。これは、
1132 \family sans
1133 \series default
1134 \shape default
1135 \size default
1136 \emph default
1137 \bar default
1138 \noun default
1139 \color inherit
1140
1141 \begin_inset Flex MenuItem
1142 status collapsed
1143
1144 \begin_layout Plain Layout
1145
1146 \family sans
1147 挿入\SpecialChar \menuseparator
1148 TeXコード
1149 \end_layout
1150
1151 \end_inset
1152
1153
1154 \family roman
1155 \series medium
1156 \shape up
1157 \size normal
1158 \emph off
1159 \bar no
1160 \noun off
1161 \color none
1162 から、文書中に挿入することができます。
1163 \end_layout
1164
1165 \begin_layout Standard
1166 以下は、LaTeXコマンドをLyX文書中に挿入する例です。コードは以下のようになっているとしましょう。
1167 \end_layout
1168
1169 \begin_layout LyX-Code
1170
1171 \backslash
1172 begin{tabular}{ll}
1173 \begin_inset Newline newline
1174 \end_inset
1175
1176
1177 \backslash
1178 begin{minipage}{5cm}
1179 \begin_inset Newline newline
1180 \end_inset
1181
1182 これは、ミニページ環境の例です。
1183 \begin_inset Newline newline
1184 \end_inset
1185
1186 これには、
1187 \begin_inset Newline newline
1188 \end_inset
1189
1190 (フロートでない)図表を
1191 \begin_inset Newline newline
1192 \end_inset
1193
1194 含め、ほとんど何でも
1195 \begin_inset Newline newline
1196 \end_inset
1197
1198 入れることができます。 
1199 \begin_inset Newline newline
1200 \end_inset
1201
1202
1203 \backslash
1204 end{minipage}
1205 \begin_inset Newline newline
1206 \end_inset
1207
1208 &
1209 \begin_inset Newline newline
1210 \end_inset
1211
1212
1213 \backslash
1214 begin{minipage}{5cm}
1215 \begin_inset Newline newline
1216 \end_inset
1217
1218
1219 \backslash
1220 begin{verbatim}
1221 \begin_inset Newline newline
1222 \end_inset
1223
1224
1225 \backslash
1226 begin{minipage}{5cm}
1227 \begin_inset Newline newline
1228 \end_inset
1229
1230 これ...
1231  
1232 \begin_inset Newline newline
1233 \end_inset
1234
1235
1236 \backslash
1237 end{minipage}
1238 \begin_inset Newline newline
1239 \end_inset
1240
1241
1242 \backslash
1243 end{verbatim}
1244 \begin_inset Newline newline
1245 \end_inset
1246
1247
1248 \backslash
1249 end{minipage}
1250 \begin_inset Newline newline
1251 \end_inset
1252
1253
1254 \backslash
1255 end{tabular}
1256 \end_layout
1257
1258 \begin_layout LyX-Code
1259
1260 \end_layout
1261
1262 \begin_layout Standard
1263 上記のテキストを含んだ
1264 \begin_inset Flex Code
1265 status collapsed
1266
1267 \begin_layout Plain Layout
1268 TeXコード
1269 \end_layout
1270
1271 \end_inset
1272
1273 ボックスが、この段落の直後にあります。この取扱説明書をLyX上でご覧になっていれば、TeXコード差込枠のみが見えるはずです。印刷した取扱説明書をご覧であれば、実
1274 際の結果が見れるはずです。
1275 \end_layout
1276
1277 \begin_layout Standard
1278 \begin_inset ERT
1279 status collapsed
1280
1281 \begin_layout Plain Layout
1282
1283
1284 \backslash
1285 begin{tabular}{ll}
1286 \end_layout
1287
1288 \begin_layout Plain Layout
1289
1290
1291 \backslash
1292 begin{minipage}{5cm}
1293 \end_layout
1294
1295 \begin_layout Plain Layout
1296
1297 これは、ミニページ環境の例です。これには、(フロートでない)図表を含め、ほとんど何でも入れることができます。 
1298 \backslash
1299 end{minipage}
1300 \end_layout
1301
1302 \begin_layout Plain Layout
1303
1304 &
1305 \end_layout
1306
1307 \begin_layout Plain Layout
1308
1309
1310 \backslash
1311 begin{minipage}{5cm}
1312 \end_layout
1313
1314 \begin_layout Plain Layout
1315
1316
1317 \backslash
1318 begin{verbatim}
1319 \end_layout
1320
1321 \begin_layout Plain Layout
1322
1323
1324 \backslash
1325 begin{minipage}{5cm}
1326 \end_layout
1327
1328 \begin_layout Plain Layout
1329
1330 これ...
1331  
1332 \backslash
1333 end{minipage}
1334 \end_layout
1335
1336 \begin_layout Plain Layout
1337
1338
1339 \backslash
1340 end{verbatim}
1341 \end_layout
1342
1343 \begin_layout Plain Layout
1344
1345
1346 \backslash
1347 end{minipage}
1348 \end_layout
1349
1350 \begin_layout Plain Layout
1351
1352
1353 \backslash
1354 end{tabular}
1355 \end_layout
1356
1357 \end_inset
1358
1359
1360 \end_layout
1361
1362 \begin_layout Standard
1363
1364 \family roman
1365 \series medium
1366 \shape up
1367 \size normal
1368 \emph off
1369 \bar no
1370 \noun off
1371 \color none
1372 TeXコードを使用する方法に加えて、複雑なLaTeXコードを含む部分を別ファイルとして作成しておき、そのファイルをインクルードするのに
1373 \begin_inset Flex MenuItem
1374 status collapsed
1375
1376 \begin_layout Plain Layout
1377
1378 \family roman
1379 \series medium
1380 \shape up
1381 \size normal
1382 \emph off
1383 \bar no
1384 \noun off
1385 \color none
1386 挿入\SpecialChar \menuseparator
1387 ファイル\SpecialChar \menuseparator
1388 子文書
1389 \end_layout
1390
1391 \end_inset
1392
1393 を使用する方法もあります(取り込みの型として
1394 \begin_inset Flex Code
1395 status collapsed
1396
1397 \begin_layout Plain Layout
1398
1399 \family roman
1400 \series medium
1401 \shape up
1402 \size normal
1403 \emph off
1404 \bar no
1405 \noun off
1406 \color none
1407 Input
1408 \end_layout
1409
1410 \end_inset
1411
1412 を選択しなくてはなりません)。この方法をとる場合には、.texファイルが正しく動作することが
1413 \family default
1414 \series default
1415 \shape default
1416 \size default
1417 \emph on
1418 \bar default
1419 \noun default
1420 \color inherit
1421 確認できている
1422 \family roman
1423 \series medium
1424 \shape up
1425 \size normal
1426 \emph off
1427 \bar no
1428 \noun off
1429 \color none
1430 場合のみに限った方がよいでしょう。さもないと、LaTeXエラーを追跡するたいへんな作業を行わなくてはならなくなります。
1431 \end_layout
1432
1433 \begin_layout Standard
1434
1435 \family roman
1436 \series medium
1437 \shape up
1438 \size normal
1439 \emph off
1440 \bar no
1441 \noun off
1442 \color none
1443 最後に、いくつか強調しておくべきことがあります。
1444 \end_layout
1445
1446 \begin_layout Itemize
1447
1448 \family roman
1449 \series medium
1450 \shape up
1451 \size normal
1452 \emph off
1453 \bar no
1454 \noun off
1455 \color none
1456 LyXは、あなたのLaTeXコードが正しいかどうかを
1457 \family default
1458 \series default
1459 \shape default
1460 \size default
1461 \emph on
1462 \bar default
1463 \noun default
1464 \color inherit
1465 チェックしません
1466 \family roman
1467 \series medium
1468 \shape up
1469 \size normal
1470 \emph off
1471 \bar no
1472 \noun off
1473 \color none
1474
1475 \end_layout
1476
1477 \begin_layout Itemize
1478
1479 \family roman
1480 \series medium
1481 \shape up
1482 \size normal
1483 \emph off
1484 \bar no
1485 \noun off
1486 \color none
1487 車輪の再発明をしないようにご注意ください。
1488 \end_layout
1489
1490 \begin_layout Standard
1491
1492 \family roman
1493 \series medium
1494 \shape up
1495 \size normal
1496 \emph off
1497 \bar no
1498 \noun off
1499 \color none
1500 二番目の点に関して、LyXはひじょうにたくさんの機能を装備しており、その数は増えつづけています。ご自身でLaTeXコードを書かなくてはならないと思い込む前に、L
1501 yXがこれこれの機能をもっていないことを、取扱説明書で確実に確かめてください。さらに世の中には、封筒のラベルから美しい複数ページにわたる表を作るものまで、ありと
1502 あらゆることを行う膨大な数のLaTeXパッケージが存在します。
1503 \family default
1504 \series default
1505 \shape default
1506 \size default
1507 \emph default
1508 \bar default
1509 \noun default
1510 \color inherit
1511 詳細については、
1512 \begin_inset CommandInset href
1513 LatexCommand href
1514 name "CTAN"
1515 target "http://www.ctan.org/"
1516
1517 \end_inset
1518
1519
1520 \family roman
1521 \series medium
1522 \shape up
1523 \size normal
1524 \emph off
1525 \bar no
1526 \noun off
1527 \color none
1528 と第
1529 \begin_inset CommandInset ref
1530 LatexCommand ref
1531 reference "chap:Special-features"
1532
1533 \end_inset
1534
1535 節をご覧ください。
1536 \end_layout
1537
1538 \begin_layout Standard
1539
1540 \family roman
1541 \series medium
1542 \shape up
1543 \size normal
1544 \emph off
1545 \bar no
1546 \noun off
1547 \color none
1548 もし、文書中で例外的に手の込んだことをなさりたければ、かならず良いLaTeX関連書籍を参考とするようにしてください。『
1549 \family default
1550 \series default
1551 \shape default
1552 \size default
1553 \emph on
1554 \bar default
1555 \noun default
1556 \color inherit
1557 ユーザーの手引き
1558 \family roman
1559 \series medium
1560 \shape up
1561 \size normal
1562 \emph off
1563 \bar no
1564 \noun off
1565 \color none
1566 』の参考文献に多くのLaTeX関連書籍が引用されています。
1567 \end_layout
1568
1569 \begin_layout Section
1570 LyXとLaTeXプリアンブル
1571 \end_layout
1572
1573 \begin_layout Subsection
1574 LaTeXプリアンブルについて
1575 \end_layout
1576
1577 \begin_layout Standard
1578
1579 \family roman
1580 \series medium
1581 \shape up
1582 \size normal
1583 \emph off
1584 \bar no
1585 \noun off
1586 \color none
1587 すでにLaTeXについてご存知であれば、ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう。もしご存じなければ、以下の説明で大まかな理解は
1588 得られるはずです。詳しくはLaTeX関連書籍をご参照ください。いずれにしても、以下でLyX文書のLaTeXプリアンブルで何ができるか、または何をする必要がないか
1589 説明をしますので、以下の各要点はお読みになった方が良いでしょう。
1590 \end_layout
1591
1592 \begin_layout Standard
1593
1594 \family roman
1595 \series medium
1596 \shape up
1597 \size normal
1598 \emph off
1599 \bar no
1600 \noun off
1601 \color none
1602 LaTeXプリアンブルは、LaTeX文書のいちばん始め、本文の
1603 \family default
1604 \series default
1605 \shape default
1606 \size default
1607 \emph on
1608 \bar default
1609 \noun default
1610 \color inherit
1611
1612 \family roman
1613 \series medium
1614 \shape up
1615 \size normal
1616 \emph off
1617 \bar no
1618 \noun off
1619 \color none
1620 の部分に来ます。ここでは以下のことを行います。
1621 \end_layout
1622
1623 \begin_layout Itemize
1624
1625 \family roman
1626 \series medium
1627 \shape up
1628 \size normal
1629 \emph off
1630 \bar no
1631 \noun off
1632 \color none
1633 文書クラス(ドキュメントクラス)の宣言。
1634 \begin_inset Newline newline
1635 \end_inset
1636
1637 これはLyXがすでに行ってくれています。もしあなたが熟達したLaTeX使いであり、自作の文書クラスを使いたい場合には、取扱説明書『
1638 \family default
1639 \series default
1640 \shape default
1641 \size default
1642 \emph on
1643 \bar default
1644 \noun default
1645 \color inherit
1646 カスタマイズ篇
1647 \family roman
1648 \series medium
1649 \shape up
1650 \size normal
1651 \emph off
1652 \bar no
1653 \noun off
1654 \color none
1655 』をご覧になれば、LyXに自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります。
1656 \end_layout
1657
1658 \begin_layout Itemize
1659
1660 \family roman
1661 \series medium
1662 \shape up
1663 \size normal
1664 \emph off
1665 \bar no
1666 \noun off
1667 \color none
1668 パッケージ使用の宣言。
1669 \begin_inset Newline newline
1670 \end_inset
1671
1672 LaTeXパッケージは、パッケージがプリアンブルで宣言された場合のみ、文書中で利用可能となる、追加コマンド群を提供します。例えば
1673 \family typewriter
1674 \series default
1675 \shape default
1676 \size default
1677 \emph default
1678 \bar default
1679 \noun default
1680 \color inherit
1681
1682 \family roman
1683 \series medium
1684 \shape up
1685 \size normal
1686 \emph off
1687 \bar no
1688 \noun off
1689 \color none
1690
1691 \begin_inset Flex Code
1692 status collapsed
1693
1694 \begin_layout Plain Layout
1695
1696 \family typewriter
1697 indentfirst
1698 \end_layout
1699
1700 \end_inset
1701
1702 パッケージは、すべての段落の最初の行を字下げします。他にも、ラベルや宛名書き、余白設定等の様々なパッケージがあります。
1703 \end_layout
1704
1705 \begin_layout Itemize
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 \begin_inset Newline newline
1717 \end_inset
1718
1719 LaTeXのカウンタと変数の中には、プリアンブルでグローバルに
1720 \family default
1721 \series default
1722 \shape default
1723 \size default
1724 \emph default
1725 \bar default
1726 \noun default
1727 \color inherit
1728 設定
1729 \emph on
1730 しないかぎり
1731 \family roman
1732 \series medium
1733 \shape up
1734 \size normal
1735 \emph off
1736 \bar no
1737 \noun off
1738 \color none
1739 、望んだ効果を持たないものがあります。(文書中で設定したり再設定したりすることのできる変数もあります。)余白は、プリアンブルで設定しなくてはならない変数の代表例
1740 です。他には、箇条書きに付けるラベル書式が挙げられます。じつは、この設定は文書中どこでもできるのですが、プリアンブルでいちどだけ設定するのが望ましい方法です。
1741 \end_layout
1742
1743 \begin_layout Itemize
1744
1745 \family roman
1746 \series medium
1747 \shape up
1748 \size normal
1749 \emph off
1750 \bar no
1751 \noun off
1752 \color none
1753 ユーザー定義コマンドの宣言(
1754 \begin_inset Flex Code
1755 status collapsed
1756
1757 \begin_layout Plain Layout
1758
1759 \family roman
1760 \series medium
1761 \shape up
1762 \size normal
1763 \emph off
1764 \bar no
1765 \noun off
1766 \color none
1767
1768 \backslash
1769 newcommand
1770 \end_layout
1771
1772 \end_inset
1773
1774 または
1775 \begin_inset Flex Code
1776 status collapsed
1777
1778 \begin_layout Plain Layout
1779
1780 \family roman
1781 \series medium
1782 \shape up
1783 \size normal
1784 \emph off
1785 \bar no
1786 \noun off
1787 \color none
1788
1789 \backslash
1790 renewcommand
1791 \end_layout
1792
1793 \end_inset
1794
1795 を使用)。
1796 \begin_inset Newline newline
1797 \end_inset
1798
1799 ユーザー定義コマンドは、文書中で頻出するLaTeXコマンドの短縮形です。このようなコマンドを宣言するには、プリアンブルが適した場所ですが、どこで宣言することも
1800 \family default
1801 \series default
1802 \shape default
1803 \size default
1804 \emph on
1805 \bar default
1806 \noun default
1807 \color inherit
1808 可能
1809 \family roman
1810 \series medium
1811 \shape up
1812 \size normal
1813 \emph off
1814 \bar no
1815 \noun off
1816 \color none
1817 です(もちろんコマンドが初めて使用される場所よりも前です)。あまりないことではありますが、お使いの文書中に生のLaTeXコードがあふれている場合には便利でしょう
1818
1819 \end_layout
1820
1821 \begin_layout Standard
1822
1823 \family roman
1824 \series medium
1825 \shape up
1826 \size normal
1827 \emph off
1828 \bar no
1829 \noun off
1830 \color none
1831 LyXは、その生成する
1832 \begin_inset Flex Code
1833 status collapsed
1834
1835 \begin_layout Plain Layout
1836
1837 \family roman
1838 \series medium
1839 \shape up
1840 \size normal
1841 \emph off
1842 \bar no
1843 \noun off
1844 \color none
1845 .tex
1846 \end_layout
1847
1848 \end_inset
1849
1850 ファイルのプリアンブルに、それ自身の定義を追加します。これによって、LyXの生成するLaTeXファイルの可搬性を高めています。
1851 \end_layout
1852
1853 \begin_layout Subsection
1854 プリアンブルの変更
1855 \end_layout
1856
1857 \begin_layout Standard
1858
1859 \family roman
1860 \series medium
1861 \shape up
1862 \size normal
1863 \emph off
1864 \bar no
1865 \noun off
1866 \color none
1867 LyXがLaTeXファイルのプリアンブルに追加するコマンドは、つねに同じです。これは、LyX自体にパッチを当てないかぎり変更できないようになっています。しかしな
1868 がら、
1869 \begin_inset Flex MenuItem
1870 status collapsed
1871
1872 \begin_layout Plain Layout
1873
1874 \family roman
1875 \series medium
1876 \shape up
1877 \size normal
1878 \emph off
1879 \bar no
1880 \noun off
1881 \color none
1882 文書\SpecialChar \menuseparator
1883 設定
1884 \end_layout
1885
1886 \end_inset
1887
1888 ダイアログの
1889 \begin_inset Flex MenuItem
1890 status collapsed
1891
1892 \begin_layout Plain Layout
1893
1894 \family roman
1895 \series medium
1896 \shape up
1897 \size normal
1898 \emph off
1899 \bar no
1900 \noun off
1901 \color none
1902 LaTeXプリアンブル
1903 \end_layout
1904
1905 \end_inset
1906
1907 の項から、プリアンブルに追加をすることはできます。LyXは、
1908 \family sans
1909 \series default
1910 \shape default
1911 \size default
1912 \emph default
1913 \bar default
1914 \noun default
1915 \color inherit
1916
1917 \begin_inset Flex MenuItem
1918 status collapsed
1919
1920 \begin_layout Plain Layout
1921
1922 \family sans
1923 プリアンブル
1924 \end_layout
1925
1926 \end_inset
1927
1928
1929 \family roman
1930 \series medium
1931 \shape up
1932 \size normal
1933 \emph off
1934 \bar no
1935 \noun off
1936 \color none
1937 ダイアログ内のすべてのものを、LyX埋込みのプリアンブルに付け加えます。ご自身の宣言をプリアンブルに追加する前に、あなたがしようとしていることをLyXがすでにサ
1938 ポートしていないかどうか確認してください(車輪の再発明をしないように、とはすでに申しあげたことです)。
1939 \family default
1940 \series default
1941 \shape default
1942 \size default
1943 \emph default
1944 \bar default
1945 \noun default
1946 \color inherit
1947 また、
1948 \emph on
1949 プリアンブルコードが正しいことを確認してください。
1950 \emph default
1951 LyXは、プリアンブルをチェックしません。
1952 \family roman
1953 \series medium
1954 \shape up
1955 \size normal
1956 \emph off
1957 \bar no
1958 \noun off
1959 \color none
1960 もしエラーがあれば、「
1961 \begin_inset Flex Code
1962 status collapsed
1963
1964 \begin_layout Plain Layout
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 Missing 
1975 \backslash
1976 begin{document}
1977 \end_layout
1978
1979 \end_inset
1980
1981 」といったエラーが出ることでしょう。このようなエラーが出たときは、プリアンブルを再確認してください。
1982 \end_layout
1983
1984 \begin_layout Subsection
1985
1986 \end_layout
1987
1988 \begin_layout Standard
1989
1990 \family roman
1991 \series medium
1992 \shape up
1993 \size normal
1994 \emph off
1995 \bar no
1996 \noun off
1997 \color none
1998 以下は、プリアンブルに追加できるものとその効果を示す例です。
1999 \end_layout
2000
2001 \begin_layout Subsubsection
2002 例1:オフセット
2003 \end_layout
2004
2005 \begin_layout Standard
2006
2007 \family roman
2008 \series medium
2009 \shape up
2010 \size normal
2011 \emph off
2012 \bar no
2013 \noun off
2014 \color none
2015 LaTeXには
2016 \family default
2017 \series default
2018 \shape default
2019 \size default
2020 \emph default
2021 \bar default
2022 \noun default
2023 \color inherit
2024
2025 \family roman
2026 \series medium
2027 \shape up
2028 \size normal
2029 \emph off
2030 \bar no
2031 \noun off
2032 \color none
2033
2034 \begin_inset Flex Code
2035 status collapsed
2036
2037 \begin_layout Plain Layout
2038
2039 \family typewriter
2040
2041 \backslash
2042 hoffset
2043 \end_layout
2044
2045 \end_inset
2046
2047
2048 \family typewriter
2049 \series default
2050 \shape default
2051 \size default
2052 \emph default
2053 \bar default
2054 \noun default
2055 \color inherit
2056
2057 \begin_inset Flex Code
2058 status collapsed
2059
2060 \begin_layout Plain Layout
2061
2062 \family typewriter
2063
2064 \backslash
2065 voffset
2066 \end_layout
2067
2068 \end_inset
2069
2070
2071 \family roman
2072 \series medium
2073 \shape up
2074 \size normal
2075 \emph off
2076 \bar no
2077 \noun off
2078 \color none
2079 というページ位置を制御する2つの変数があります。その機能は名前から明らかなとおりです。これらの変数は、ラベルを印刷するときなどに便利です。往々にして、印刷用紙の
2080 寸法とそのうち実際に印字可能な範囲は同じではありません。ここに
2081 \begin_inset Flex Code
2082 status collapsed
2083
2084 \begin_layout Plain Layout
2085
2086 \family typewriter
2087
2088 \backslash
2089 hoffset
2090 \end_layout
2091
2092 \end_inset
2093
2094
2095 \family typewriter
2096 \series default
2097 \shape default
2098 \size default
2099 \emph default
2100 \bar default
2101 \noun default
2102 \color inherit
2103
2104 \begin_inset Flex Code
2105 status collapsed
2106
2107 \begin_layout Plain Layout
2108
2109 \family typewriter
2110
2111 \backslash
2112 voffset
2113 \end_layout
2114
2115 \end_inset
2116
2117
2118 \family default
2119 が役立つわけです。
2120 \end_layout
2121
2122 \begin_layout Standard
2123
2124 \family roman
2125 \series medium
2126 \shape up
2127 \size normal
2128 \emph off
2129 \bar no
2130 \noun off
2131 \color none
2132 \begin_inset Flex Code
2133 status collapsed
2134
2135 \begin_layout Plain Layout
2136
2137 \family typewriter
2138
2139 \backslash
2140 hoffset
2141 \end_layout
2142
2143 \end_inset
2144
2145
2146 \family typewriter
2147 \series default
2148 \shape default
2149 \size default
2150 \emph default
2151 \bar default
2152 \noun default
2153 \color inherit
2154
2155 \begin_inset Flex Code
2156 status collapsed
2157
2158 \begin_layout Plain Layout
2159
2160 \family typewriter
2161
2162 \backslash
2163 voffset
2164 \end_layout
2165
2166 \end_inset
2167
2168
2169 \family roman
2170 \series medium
2171 \shape up
2172 \size normal
2173 \emph off
2174 \bar no
2175 \noun off
2176 \color none
2177 の既定値はともに0ポイント、つまりページをシフトしません。残念ながら、DVIドライバによってはつねにページをシフトすることがあるようです。我々には、どうしてその
2178 ようなことをするのか、そしてシスアドがどうしてそれを修正しないのか理解できませんが、もし個人的に管理できないシステムでLyXを使用していて、シスアドがお馬鹿さん
2179 である場合には、
2180 \begin_inset Flex Code
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184
2185 \family typewriter
2186
2187 \backslash
2188 hoffset
2189 \end_layout
2190
2191 \end_inset
2192
2193
2194 \family typewriter
2195 \series default
2196 \shape default
2197 \size default
2198 \emph default
2199 \bar default
2200 \noun default
2201 \color inherit
2202
2203 \begin_inset Flex Code
2204 status collapsed
2205
2206 \begin_layout Plain Layout
2207
2208 \family typewriter
2209
2210 \backslash
2211 voffset
2212 \end_layout
2213
2214 \end_inset
2215
2216
2217 \family roman
2218 \series medium
2219 \shape up
2220 \size normal
2221 \emph off
2222 \bar no
2223 \noun off
2224 \color none
2225 が役に立ちます。かりに、上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう。その場合は、以下をプリアンブルに追加するとよいでしょう。
2226 \end_layout
2227
2228 \begin_layout LyX-Code
2229
2230 \backslash
2231 setlength{
2232 \backslash
2233 hoffset}{-0.5 in}
2234 \end_layout
2235
2236 \begin_layout LyX-Code
2237
2238 \backslash
2239 setlength{
2240 \backslash
2241 voffset}{-0.5 in}
2242 \end_layout
2243
2244 \begin_layout Standard
2245
2246 \family roman
2247 \series medium
2248 \shape up
2249 \size normal
2250 \emph off
2251 \bar no
2252 \noun off
2253 \color none
2254 これで余白が修正されます。
2255 \end_layout
2256
2257 \begin_layout Subsubsection
2258 例2:ラベル
2259 \end_layout
2260
2261 \begin_layout Standard
2262
2263 \family roman
2264 \series medium
2265 \shape up
2266 \size normal
2267 \emph off
2268 \bar no
2269 \noun off
2270 \color none
2271 いま、たくさんの宛名ラベルを印刷をしたいものとしましょう。ラベルシートを印刷するために便利な
2272 \begin_inset Flex Code
2273 status collapsed
2274
2275 \begin_layout Plain Layout
2276
2277 \family typewriter
2278 labels.sty
2279 \end_layout
2280
2281 \end_inset
2282
2283 というLaTeXパッケージが、お近くのCTANアーカイブで入手可能です。お使いのシステムには、既定ではこのパッケージは導入されていないかもしれません。ご自身でお
2284 確かめください。また、このパッケージの取扱説明書を読まれたいかもしれませんが、それもご自身にお任せします。これは使用例ですので、このパッケージをどう使うかの例だ
2285 けお見せすることにします。
2286 \end_layout
2287
2288 \begin_layout Standard
2289
2290 \family roman
2291 \series medium
2292 \shape up
2293 \size normal
2294 \emph off
2295 \bar no
2296 \noun off
2297 \color none
2298 まず、
2299 \begin_inset Flex Code
2300 status collapsed
2301
2302 \begin_layout Plain Layout
2303
2304 \family sans
2305 article
2306 \end_layout
2307
2308 \end_inset
2309
2310 文書クラスを使用していることをご確認ください。次に、以下のような設定をプリアンブルに追加しなければなりません。
2311 \end_layout
2312
2313 \begin_layout LyX-Code
2314
2315 \backslash
2316 usepackage{labels}
2317 \end_layout
2318
2319 \begin_layout LyX-Code
2320
2321 \backslash
2322 LabelCols=3
2323 \end_layout
2324
2325 \begin_layout LyX-Code
2326
2327 \backslash
2328 LabelRows=7
2329 \end_layout
2330
2331 \begin_layout LyX-Code
2332
2333 \backslash
2334 LeftBorder=8mm
2335 \end_layout
2336
2337 \begin_layout LyX-Code
2338
2339 \backslash
2340 RightBorder=8mm
2341 \end_layout
2342
2343 \begin_layout LyX-Code
2344
2345 \backslash
2346 TopBorder=9mm
2347 \end_layout
2348
2349 \begin_layout LyX-Code
2350
2351 \backslash
2352 BottomBorder=2mm
2353 \end_layout
2354
2355 \begin_layout Standard
2356
2357 \family roman
2358 \series medium
2359 \shape up
2360 \size normal
2361 \emph off
2362 \bar no
2363 \noun off
2364 \color none
2365 これは
2366 \family default
2367 \series default
2368 \shape default
2369 \size default
2370 \emph default
2371 \bar default
2372 \noun default
2373 \color inherit
2374 Avery®ラベルシートのストック5360
2375 \family roman
2376 \series medium
2377 \shape up
2378 \size normal
2379 \emph off
2380 \bar no
2381 \noun off
2382 \color none
2383 番を使用する場合の設定です。これで、各宛名を
2384 \begin_inset Flex Code
2385 status collapsed
2386
2387 \begin_layout Plain Layout
2388
2389 \family typewriter
2390
2391 \backslash
2392 begin{labels}
2393 \end_layout
2394
2395 \end_inset
2396
2397
2398 \family typewriter
2399 \series default
2400 \shape default
2401 \size default
2402 \emph default
2403 \bar default
2404 \noun default
2405 \color inherit
2406
2407 \begin_inset Flex Code
2408 status collapsed
2409
2410 \begin_layout Plain Layout
2411
2412 \family typewriter
2413
2414 \backslash
2415 end{labels}
2416 \end_layout
2417
2418 \end_inset
2419
2420
2421 \family roman
2422 \series medium
2423 \shape up
2424 \size normal
2425 \emph off
2426 \bar no
2427 \noun off
2428 \color none
2429 で囲めば、宛名ラベルの印刷をすることができます。本機能およびその他の機能に関しては、
2430 \begin_inset Flex Code
2431 status collapsed
2432
2433 \begin_layout Plain Layout
2434
2435 \family typewriter
2436 labels.sty
2437 \end_layout
2438
2439 \end_inset
2440
2441 の取扱説明書に説明されています。
2442 \end_layout
2443
2444 \begin_layout Standard
2445
2446 \family roman
2447 \series medium
2448 \shape up
2449 \size normal
2450 \emph off
2451 \bar no
2452 \noun off
2453 \color none
2454 そのうち誰かが、このパッケージを直接サポートするLyXレイアウトファイルを作ってくれるかもしれません。その誰かはあなたかもしれません。
2455 \end_layout
2456
2457 \begin_layout Subsubsection
2458 例3: 段落の字下げ
2459 \end_layout
2460
2461 \begin_layout Standard
2462
2463 \family roman
2464 \series medium
2465 \shape up
2466 \size normal
2467 \emph off
2468 \bar no
2469 \noun off
2470 \color none
2471 アメリカ人は
2472 \family default
2473 \series default
2474 \shape default
2475 \size default
2476 \emph default
2477 \bar default
2478 \noun default
2479 \color inherit
2480
2481 \emph on
2482 すべての
2483 \family roman
2484 \series medium
2485 \shape up
2486 \size normal
2487 \emph off
2488 \bar no
2489 \noun off
2490 \color none
2491 段落の最初の行を字下げするように教育されています。そのために彼らの他の変な習慣と同じく、いつものようにすべての段落の最初の行を下げるまで、アメリカ人はごちゃごち
2492 ゃと文句を言いつづけるのです
2493 \family default
2494 \series default
2495 \shape default
2496 \size default
2497 \emph default
2498 \bar default
2499 \noun default
2500 \color inherit
2501 。(これはユーモアです。(ほんと?)
2502 \emph on
2503 ユーモアですってば
2504 \emph default
2505 。)
2506 \end_layout
2507
2508 \begin_layout Standard
2509
2510 \family roman
2511 \series medium
2512 \shape up
2513 \size normal
2514 \emph off
2515 \bar no
2516 \noun off
2517 \color none
2518 もちろん、これは標準的な組版ルールではありません。書籍では、典型的には、他の段落のあとにくる段落
2519 \family default
2520 \series default
2521 \shape default
2522 \size default
2523 \emph on
2524 \bar default
2525 \noun default
2526 \color inherit
2527 のみ
2528 \family roman
2529 \series medium
2530 \shape up
2531 \size normal
2532 \emph off
2533 \bar no
2534 \noun off
2535 \color none
2536 字下げを行ないます。一行めを字下げをするそもそもの目的は、隣接する段落から区別するためです。したがって、図のあとや節の最初の段落など、先行する段落がない場合には
2537 、字下げをする必要はないのです。
2538 \end_layout
2539
2540 \begin_layout Standard
2541
2542 \family roman
2543 \series medium
2544 \shape up
2545 \size normal
2546 \emph off
2547 \bar no
2548 \noun off
2549 \color none
2550 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!)、そのような小難しいことはかまわずに、いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2551 ルに次の行を加えて下さい。
2552 \end_layout
2553
2554 \begin_layout LyX-Code
2555
2556 \backslash
2557 usepackage{indentfirst}
2558 \end_layout
2559
2560 \begin_layout Standard
2561
2562 \family roman
2563 \series medium
2564 \shape up
2565 \size normal
2566 \emph off
2567 \bar no
2568 \noun off
2569 \color none
2570 もしお使いのTeX頒布版が脳死状態でなければ、このパッケージが入っているはずなので、建国の父たちが意図したように、すべての段落が字下げされます。
2571 \end_layout
2572
2573 \begin_layout Subsubsection
2574 例4:この文書
2575 \end_layout
2576
2577 \begin_layout Standard
2578
2579 \family roman
2580 \series medium
2581 \shape up
2582 \size normal
2583 \emph off
2584 \bar no
2585 \noun off
2586 \color none
2587 この文書のプリアンブルを見てみると、どのような高度な設定ができるか、おおまかな理解が得られるでしょう。また第
2588 \family default
2589 \series default
2590 \shape default
2591 \size default
2592 \emph default
2593 \bar default
2594 \noun default
2595 \color inherit
2596
2597 \begin_inset CommandInset ref
2598 LatexCommand ref
2599 reference "chap:Special-features"
2600
2601 \end_inset
2602
2603
2604 \family roman
2605 \series medium
2606 \shape up
2607 \size normal
2608 \emph off
2609 \bar no
2610 \noun off
2611 \color none
2612 章には、他の例や、LaTeXの各種の「汚い技」があります。
2613 \end_layout
2614
2615 \begin_layout Section
2616 LyXおよびLaTeXのエラー
2617 \end_layout
2618
2619 \begin_layout Standard
2620
2621 \family roman
2622 \series medium
2623 \shape up
2624 \size normal
2625 \emph off
2626 \bar no
2627 \noun off
2628 \color none
2629 LyXがLaTeXを呼び出す際、LyXはLaTeXに、かりにエラーがあったとしても楽観的に無視して先に進むように指示します。その後LyXは、LaTeXの実行ログ
2630 ファイルを事後処理用に使います。ログファイルを分析したのち、LyXはエラーを一覧表示するダイアログを表示します。エラーのうちどれかをクリックすると、LyXファイ
2631 ル中、そのエラーの発生した場所に表示を移動します
2632 \begin_inset Foot
2633 status collapsed
2634
2635 \begin_layout Plain Layout
2636
2637 \family roman
2638 \series medium
2639 \shape up
2640 \size normal
2641 \emph off
2642 \bar no
2643 \noun off
2644 \color none
2645 正確にいうと、通常は、です。ログファイルの分析は難しい仕事ですので、LyXはつねに正しい行に連れて行ってくれるとは限りません。ときには、LaTeXがある行にエラ
2646 ーがあると報告したとしても、実際のエラーはそれよりも前であることもあります。これは、プログラムで閉じ括弧を忘れたときに似ていなくもありません。エラーは表示されま
2647 すが、実際にエラーのある場所よりも後ろでエラーが報告されるのです。
2648 \end_layout
2649
2650 \end_inset
2651
2652
2653 \family default
2654 \series default
2655 \shape default
2656 \size default
2657 \emph default
2658 \bar default
2659 \noun default
2660 \color inherit
2661
2662 \end_layout
2663
2664 \begin_layout Standard
2665
2666 \family roman
2667 \series medium
2668 \shape up
2669 \size normal
2670 \emph off
2671 \bar no
2672 \noun off
2673 \color none
2674 人によっては、ログファイルを直接ご覧になりたいかもしれません。これは、
2675 \begin_inset Flex MenuItem
2676 status collapsed
2677
2678 \begin_layout Plain Layout
2679
2680 \family roman
2681 \series medium
2682 \shape up
2683 \size normal
2684 \emph off
2685 \bar no
2686 \noun off
2687 \color none
2688 文書\SpecialChar \menuseparator
2689 LaTeXログ
2690 \end_layout
2691
2692 \end_inset
2693
2694 で見ることができます。エラーメッセージや警告には、よく見かけるものがいくつかありますので、それらをここに収録しておきます。ここにないエラーや警告に関しては、La
2695 TeX関連の良書を参照してください。
2696 \end_layout
2697
2698 \begin_layout Itemize
2699
2700 \family typewriter
2701 \begin_inset Flex Code
2702 status collapsed
2703
2704 \begin_layout Plain Layout
2705
2706 \family typewriter
2707 LaTeX Warning
2708 \end_layout
2709
2710 \end_inset
2711
2712
2713 \family roman
2714 \series medium
2715 \shape up
2716 \size normal
2717 \emph off
2718 \bar no
2719 \noun off
2720 \color none
2721
2722 \begin_inset Newline newline
2723 \end_inset
2724
2725 これで始まるメッセージは、LaTeXコード自体を「デバッグ」するための警告メッセージです。相互参照や参考文献を追加したり変更した場合に、もう一度LaTeXを実行
2726 する必要があることを知らせるために、このようなメッセージが表示されます。このメッセージは、だいたいにおいて無視しても大丈夫です。
2727 \end_layout
2728
2729 \begin_layout Itemize
2730
2731 \family typewriter
2732 \begin_inset Flex Code
2733 status collapsed
2734
2735 \begin_layout Plain Layout
2736
2737 \family typewriter
2738 LaTeX Font Warning
2739 \end_layout
2740
2741 \end_inset
2742
2743
2744 \family roman
2745 \series medium
2746 \shape up
2747 \size normal
2748 \emph off
2749 \bar no
2750 \noun off
2751 \color none
2752
2753 \begin_inset Newline newline
2754 \end_inset
2755
2756 LaTeXがフォントを見つけられなかったと言う警告メッセージです。多くの場合、このメッセージの後に、LaTeXが使用した代替フォントに関する情報が続きます。これ
2757 も無視して構いません。
2758 \end_layout
2759
2760 \begin_layout Itemize
2761
2762 \family roman
2763 \series medium
2764 \shape up
2765 \size normal
2766 \emph off
2767 \bar no
2768 \noun off
2769 \color none
2770 \begin_inset Flex Code
2771 status collapsed
2772
2773 \begin_layout Plain Layout
2774
2775 \family typewriter
2776 Overfull 
2777 \backslash
2778 hbox
2779 \end_layout
2780
2781 \end_inset
2782
2783
2784 \begin_inset Newline newline
2785 \end_inset
2786
2787 LaTeXは、
2788 \family default
2789 \series default
2790 \shape default
2791 \size default
2792 \emph on
2793 \bar default
2794 \noun default
2795 \color inherit
2796 ほぼどんなときでも
2797 \family roman
2798 \series medium
2799 \shape up
2800 \size normal
2801 \emph off
2802 \bar no
2803 \noun off
2804 \color none
2805 この警告を吐き出します。これは、一行が長すぎて右余白にはみ出してしまったという警告ですが、ほとんどの場合、最終出力を見ても判別できないくらい(せいぜい1ポイント
2806 か2ポイント)です。あるいは1文字か2文字右余白に出ているくらいです。LaTeXは、どんな文書を書いても、少なくとも一つはこのメッセージを出すようです。
2807 \begin_inset Newline newline
2808 \end_inset
2809
2810 このメッセージは無視しても大丈夫です。何か行が長すぎるような問題があれば、目で見ればわかります。出力を目で確認してください
2811 \begin_inset Foot
2812 status collapsed
2813
2814 \begin_layout Plain Layout
2815 あるいは、
2816 \begin_inset Flex MenuItem
2817 status collapsed
2818
2819 \begin_layout Plain Layout
2820 文書\SpecialChar \menuseparator
2821 設定
2822 \end_layout
2823
2824 \end_inset
2825
2826 で「draft」オプションを指定する方法もあります。こうすると、LaTeXは、overfullの発生した行の余白に黒い四角を描画します。
2827 \end_layout
2828
2829 \end_inset
2830
2831
2832 \end_layout
2833
2834 \begin_layout Itemize
2835
2836 \family typewriter
2837 \begin_inset Flex Code
2838 status collapsed
2839
2840 \begin_layout Plain Layout
2841
2842 \family typewriter
2843 Underfull 
2844 \backslash
2845 hbox
2846 \end_layout
2847
2848 \end_inset
2849
2850
2851 \begin_inset Newline newline
2852 \end_inset
2853
2854
2855 \family roman
2856 \series medium
2857 \shape up
2858 \size normal
2859 \emph off
2860 \bar no
2861 \noun off
2862 \color none
2863 これは上の警告と違ってあまり出てきません。なぜだかは分かりませんが、LaTeXは1行を短めにする印字するよりは、長めにする方が好きなようです。
2864 \end_layout
2865
2866 \begin_layout Itemize
2867 \begin_inset Flex Code
2868 status collapsed
2869
2870 \begin_layout Plain Layout
2871
2872 \family typewriter
2873 Overfull 
2874 \backslash
2875 vbox
2876 \end_layout
2877
2878 \end_inset
2879
2880
2881 \family typewriter
2882
2883 \begin_inset Flex Code
2884 status collapsed
2885
2886 \begin_layout Plain Layout
2887
2888 \family typewriter
2889 Underfull 
2890 \backslash
2891 vbox
2892 \end_layout
2893
2894 \end_inset
2895
2896
2897 \family default
2898
2899 \begin_inset Newline newline
2900 \end_inset
2901
2902
2903 \family roman
2904 \series medium
2905 \shape up
2906 \size normal
2907 \emph off
2908 \bar no
2909 \noun off
2910 \color none
2911 ページ区切りに問題があったという警告です。この場合も、出力を目で確認してください。何か問題があれば、見てすぐわかります。
2912 \end_layout
2913
2914 \begin_layout Itemize
2915
2916 \family typewriter
2917 \begin_inset Flex Code
2918 status collapsed
2919
2920 \begin_layout Plain Layout
2921
2922 \family typewriter
2923 LaTeX Error: File 
2924 \begin_inset Quotes els
2925 \end_inset
2926
2927 Xxxx
2928 \begin_inset Quotes ers
2929 \end_inset
2930
2931  not found
2932 \end_layout
2933
2934 \end_inset
2935
2936
2937 \family roman
2938 \series medium
2939 \shape up
2940 \size normal
2941 \emph off
2942 \bar no
2943 \noun off
2944 \color none
2945
2946 \begin_inset Newline newline
2947 \end_inset
2948
2949 ファイル「Xxxx」が、システムに導入されていません。これは通常、文書が必要としているLaTeXパッケージに、導入済でないものがある場合に現れます。プリアンブル
2950 に変更を加えておらず、
2951 \begin_inset Flex Code
2952 status collapsed
2953
2954 \begin_layout Plain Layout
2955
2956 \family typewriter
2957
2958 \backslash
2959 usepackage{}
2960 \end_layout
2961
2962 \end_inset
2963
2964 コマンドも使用していないとすれば、LyXが読み込もうしているパッケージに存在しないものがあるということです。
2965 \family default
2966 \series default
2967 \shape default
2968 \size default
2969 \emph default
2970 \bar default
2971 \noun default
2972 \color inherit
2973
2974 \begin_inset Flex MenuItem
2975 status collapsed
2976
2977 \begin_layout Plain Layout
2978 ヘルプ\SpecialChar \menuseparator
2979 LaTeXの設定
2980 \end_layout
2981
2982 \end_inset
2983
2984
2985 \family roman
2986 \series medium
2987 \shape up
2988 \size normal
2989 \emph off
2990 \bar no
2991 \noun off
2992 \color none
2993 を使用して、LyXが認識しているパッケージの一覧を得てください。このファイルは、(
2994 \begin_inset Flex MenuItem
2995 status collapsed
2996
2997 \begin_layout Plain Layout
2998
2999 \family roman
3000 \series medium
3001 \shape up
3002 \size normal
3003 \emph off
3004 \bar no
3005 \noun off
3006 \color none
3007 ツール\SpecialChar \menuseparator
3008 再設定
3009 \end_layout
3010
3011 \end_inset
3012
3013 を使用して)LyXの再設定を行うたびに更新され、どのパッケージが検出されたか、それらのパッケージが何をするものかを表示します。
3014 \begin_inset Newline newline
3015 \end_inset
3016
3017
3018 \family sans
3019 \series default
3020 \shape default
3021 \size default
3022 \emph default
3023 \bar default
3024 \noun default
3025 \color inherit
3026
3027 \begin_inset Flex Code
3028 status collapsed
3029
3030 \begin_layout Plain Layout
3031
3032 \family sans
3033
3034 \backslash
3035 usepackage{}
3036 \end_layout
3037
3038 \end_inset
3039
3040
3041 \family roman
3042 \series medium
3043 \shape up
3044 \size normal
3045 \emph off
3046 \bar no
3047 \noun off
3048 \color none
3049 コマンドを使っていて、肝心のパッケージが導入されていない場合には、ご自身で導入する必要があります。
3050 \end_layout
3051
3052 \begin_layout Itemize
3053
3054 \family typewriter
3055 \begin_inset Flex Code
3056 status collapsed
3057
3058 \begin_layout Plain Layout
3059
3060 \family typewriter
3061 LaTeX Error: Unknown option
3062 \end_layout
3063
3064 \end_inset
3065
3066
3067 \family roman
3068 \series medium
3069 \shape up
3070 \size normal
3071 \emph off
3072 \bar no
3073 \noun off
3074 \color none
3075
3076 \begin_inset Newline newline
3077 \end_inset
3078
3079 このように始まるエラーメッセージは、パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです。パッケージの取扱説明書をご確認くだ
3080 さい。
3081 \end_layout
3082
3083 \begin_layout Itemize
3084
3085 \family typewriter
3086 \begin_inset Flex Code
3087 status collapsed
3088
3089 \begin_layout Plain Layout
3090
3091 \family typewriter
3092 Undefined control sequence
3093 \end_layout
3094
3095 \end_inset
3096
3097
3098 \family roman
3099 \series medium
3100 \shape up
3101 \size normal
3102 \emph off
3103 \bar no
3104 \noun off
3105 \color none
3106
3107 \begin_inset Newline newline
3108 \end_inset
3109
3110 お使いの文書にLaTeXコードを挿入した際、打ち間違いをしてしまうと、このようなメッセージが表示されます。あるいは、パッケージを読み込ませるのを忘れたのかもしれ
3111 ません。いずれにしても、このメッセージは、あなたが未定義のコマンドを使用したことを示しています。
3112 \end_layout
3113
3114 \begin_layout Standard
3115
3116 \family roman
3117 \series medium
3118 \shape up
3119 \size normal
3120 \emph off
3121 \bar no
3122 \noun off
3123 \color none
3124 これ以外にも、エラーメッセージや警告メッセージがあります。一般に、読んで意味がすぐにわかるものは、LaTeXのメッセージです。何を言っているのかさっぱりわからな
3125 いものもありますが、通常これらは、TeXのメッセージであり、それが何を意味しているのか、どのように解読すればいいのか、
3126 \family default
3127 \series default
3128 \shape default
3129 \size default
3130 \emph on
3131 \bar default
3132 \noun default
3133 \color inherit
3134 まったく
3135 \family roman
3136 \series medium
3137 \shape up
3138 \size normal
3139 \emph off
3140 \bar no
3141 \noun off
3142 \color none
3143 手がかりがありません。誰もわからないのです。
3144 \end_layout
3145
3146 \begin_layout Standard
3147
3148 \family roman
3149 \series medium
3150 \shape up
3151 \size normal
3152 \emph off
3153 \bar no
3154 \noun off
3155 \color none
3156 エラーメッセージが表示された場合は、つねに以下のチェックリストにしたがった方がよいでしょう。
3157 \end_layout
3158
3159 \begin_layout Enumerate
3160
3161 \family roman
3162 \series medium
3163 \shape up
3164 \size normal
3165 \emph off
3166 \bar no
3167 \noun off
3168 \color none
3169 ご自分で挿入したLaTeXコードに打ち間違いがないかどうか確かめる。
3170 \end_layout
3171
3172 \begin_layout Enumerate
3173
3174 \family roman
3175 \series medium
3176 \shape up
3177 \size normal
3178 \emph off
3179 \bar no
3180 \noun off
3181 \color none
3182 打ち間違いがなければ、コマンドを正しく使ったかどうか確かめる。
3183 \end_layout
3184
3185 \begin_layout Enumerate
3186
3187 \family roman
3188 \series medium
3189 \shape up
3190 \size normal
3191 \emph off
3192 \bar no
3193 \noun off
3194 \color none
3195 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には---特に
3196 \begin_inset Flex Code
3197 status collapsed
3198
3199 \begin_layout Plain Layout
3200
3201 \family roman
3202 \series medium
3203 \shape up
3204 \size normal
3205 \emph off
3206 \bar no
3207 \noun off
3208 \color none
3209 Missing 
3210 \backslash
3211 begin{document}
3212 \end_layout
3213
3214 \end_inset
3215
3216 が表示されているならば---、プリアンブルにエラーがあることを意味します。プリアンブルのデバックを行ってください。
3217 \end_layout
3218
3219 \begin_layout Enumerate
3220
3221 \family roman
3222 \series medium
3223 \shape up
3224 \size normal
3225 \emph off
3226 \bar no
3227 \noun off
3228 \color none
3229 プリアンブルに何も追加せず、文書にLaTeXコードをまったく挿入しなかった場合には、LaTeX頒布版自体をまず疑ってください。導入されていないパッケージを探しだ
3230 して、導入してください。
3231 \end_layout
3232
3233 \begin_layout Enumerate
3234
3235 \family roman
3236 \series medium
3237 \shape up
3238 \size normal
3239 \emph off
3240 \bar no
3241 \noun off
3242 \color none
3243 導入されていないパッケージはなかったものとしましょう。LyXを微調整するオプションを使用していますか。特に、手動で
3244 \begin_inset Flex Code
3245 status collapsed
3246
3247 \begin_layout Plain Layout
3248
3249 \family sans
3250 Protected
3251 \begin_inset space ~
3252 \end_inset
3253
3254 Blank
3255 \end_layout
3256
3257 \end_inset
3258
3259
3260 \begin_inset Flex Code
3261 status collapsed
3262
3263 \begin_layout Plain Layout
3264
3265 \family sans
3266 Linebreak
3267 \end_layout
3268
3269 \end_inset
3270
3271
3272 \family sans
3273 \series default
3274 \shape default
3275 \size default
3276 \emph default
3277 \bar default
3278 \noun default
3279 \color inherit
3280
3281 \begin_inset Flex Code
3282 status collapsed
3283
3284 \begin_layout Plain Layout
3285
3286 \family sans
3287 Pagebreak
3288 \end_layout
3289
3290 \end_inset
3291
3292
3293 \family roman
3294 \series medium
3295 \shape up
3296 \size normal
3297 \emph off
3298 \bar no
3299 \noun off
3300 \color none
3301 などをたくさん挿入するなど、微調整オプションを
3302 \family default
3303 \series default
3304 \shape default
3305 \size default
3306 \emph on
3307 \bar default
3308 \noun default
3309 \color inherit
3310 悪用
3311 \family roman
3312 \series medium
3313 \shape up
3314 \size normal
3315 \emph off
3316 \bar no
3317 \noun off
3318 \color none
3319 していませんか。適切な段落環境を使用する代わりに、これらを使用してその場をしのごうとしていませんか。
3320 \end_layout
3321
3322 \begin_layout Enumerate
3323
3324 \family roman
3325 \series medium
3326 \shape up
3327 \size normal
3328 \emph off
3329 \bar no
3330 \noun off
3331 \color none
3332 微調整オプションはまったく使用しておらず、規則に乗っ取って作業していたものとしましょう。何か曲芸のようなことをしようとはしていませんか。数式や表中で、たとえば表
3333 のセルに図を入れるなど、おかしなことをしようとしていませんか。
3334 \end_layout
3335
3336 \begin_layout Enumerate
3337 LaTeXが改行位置を見つけられないほど長い一節がありませんか。既定では、改行するために単語間に空白をたくさん追加することを、LaTeXはかなり嫌います。可能で
3338 あれば、問題が生じないように段落を修正するのが望ましいでしょう。それが難しければ、LaTeXが改行しやすく(sloppy)なるように、その部分を
3339 \family typewriter
3340
3341 \begin_inset Flex Code
3342 status collapsed
3343
3344 \begin_layout Plain Layout
3345
3346 \family typewriter
3347
3348 \backslash
3349 sloppypar
3350 \end_layout
3351
3352 \end_inset
3353
3354
3355 \family default
3356 で囲んでください。
3357 \end_layout
3358
3359 \begin_layout Enumerate
3360
3361 \family roman
3362 \series medium
3363 \shape up
3364 \size normal
3365 \emph off
3366 \bar no
3367 \noun off
3368 \color none
3369 入れ子の階層を深くしすぎていませんか。LyXは、(今のところ)環境の入れ子の階層が制限内にあるかチェックしません。かりに、環境を17段の入れ子にしたりしていたら
3370 、それが原因です(LaTeXの上限は5段です)。
3371 \end_layout
3372
3373 \begin_layout Enumerate
3374
3375 \family roman
3376 \series medium
3377 \shape up
3378 \size normal
3379 \emph off
3380 \bar no
3381 \noun off
3382 \color none
3383 エラーメッセージは発生しないけれども、出力がひどいものとしましょう。図表が幅が広すぎたり長すぎてページに収まらない場合には、
3384 \end_layout
3385
3386 \begin_deeper
3387 \begin_layout Enumerate
3388
3389 \family roman
3390 \series medium
3391 \shape up
3392 \size normal
3393 \emph off
3394 \bar no
3395 \noun off
3396 \color none
3397 図がページに合うように大きさを変える、
3398 \end_layout
3399
3400 \begin_layout Enumerate
3401
3402 \family roman
3403 \series medium
3404 \shape up
3405 \size normal
3406 \emph off
3407 \bar no
3408 \noun off
3409 \color none
3410 表がページに合うように削る、
3411 \end_layout
3412
3413 \begin_layout Standard
3414
3415 \family roman
3416 \series medium
3417 \shape up
3418 \size normal
3419 \emph off
3420 \bar no
3421 \noun off
3422 \color none
3423 などの手段を採る必要があります。
3424 \end_layout
3425
3426 \end_deeper
3427 \begin_layout Enumerate
3428 他に出力におかしいところがあり、曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば、何がおかしいのか確定的なことは言えません。
3429 \end_layout
3430
3431 \begin_layout Standard
3432
3433 \family roman
3434 \series medium
3435 \shape up
3436 \size normal
3437 \emph off
3438 \bar no
3439 \noun off
3440 \color none
3441 これらすべてが役に立たないとすれば、
3442 \family default
3443 \series default
3444 \shape default
3445 \size default
3446 \emph on
3447 \bar default
3448 \noun default
3449 \color inherit
3450 ひょっとしたら
3451 \family roman
3452 \series medium
3453 \shape up
3454 \size normal
3455 \emph off
3456 \bar no
3457 \noun off
3458 \color none
3459 LyXのバグを発見したのかもしれません‥‥。
3460 \end_layout
3461
3462 \begin_layout Chapter
3463 補完ツール
3464 \end_layout
3465
3466 \begin_layout Section
3467 BibTeXによる参照文献のカスタマイズ
3468 \end_layout
3469
3470 \begin_layout Standard
3471 BibTeXの基本的な使用法は、『
3472 \emph on
3473 ユーザーの手引き
3474 \emph default
3475 』の
3476 \emph on
3477 参考文献データベース(BibTeX)
3478 \emph default
3479 の節に説明があります。以下の各小節では、LyXでサポートされている参考文献の特別な機能について説明することとします。
3480 \end_layout
3481
3482 \begin_layout Subsection
3483 他の引用様式
3484 \end_layout
3485
3486 \begin_layout Standard
3487 標準のBibTeXは、引用された著作を参照するのに、([12]のように)数字を使用します。しかし、多くの科学分野で、これとは異なる引用様式が用いられています。も
3488 っともよく見られるのは、著者-出版年様式(例:Knuth 1984a)です。LyXは、この様式を提供する2つのパッケージ
3489 \begin_inset Flex Code
3490 status collapsed
3491
3492 \begin_layout Plain Layout
3493 natbib
3494 \end_layout
3495
3496 \end_inset
3497
3498
3499 \begin_inset Flex Code
3500 status collapsed
3501
3502 \begin_layout Plain Layout
3503 jurabib
3504 \end_layout
3505
3506 \end_inset
3507
3508 をサポートしています。これらのパッケージには、それぞれ長所短所がありますが、ここでは詳細に立ち入る紙幅がありません。単純な著者-出版年様式(あるいは著者-番号)
3509 様式が欲しい場合や、無数にある
3510 \begin_inset Flex Code
3511 status collapsed
3512
3513 \begin_layout Plain Layout
3514 natbib
3515 \end_layout
3516
3517 \end_inset
3518
3519 用スタイルファイルのうちどれかを使用したい場合には、定評のある
3520 \begin_inset Flex Code
3521 status collapsed
3522
3523 \begin_layout Plain Layout
3524 natbib
3525 \end_layout
3526
3527 \end_inset
3528
3529 パッケージがおそらくよい選択でしょう。短縮タイトルによる参照や
3530 \emph on
3531 ibid.
3532 \emph default
3533 など、特別な機能が必要な場合には、
3534 \begin_inset Flex Code
3535 status collapsed
3536
3537 \begin_layout Plain Layout
3538 jurabib
3539 \end_layout
3540
3541 \end_inset
3542
3543 パッケージの利用を考えるとよいかもしれません。
3544 \end_layout
3545
3546 \begin_layout Standard
3547 LyXでの両パッケージの取扱い方は、ほぼ同じです。
3548 \begin_inset Flex MenuItem
3549 status collapsed
3550
3551 \begin_layout Plain Layout
3552 文書\SpecialChar \menuseparator
3553 設定
3554 \end_layout
3555
3556 \end_inset
3557
3558 メニューを開き、
3559 \begin_inset Flex MenuItem
3560 status collapsed
3561
3562 \begin_layout Plain Layout
3563 参考文献
3564 \end_layout
3565
3566 \end_inset
3567
3568 項目から
3569 \begin_inset Flex MenuItem
3570 status collapsed
3571
3572 \begin_layout Plain Layout
3573 Natbib
3574 \end_layout
3575
3576 \end_inset
3577
3578 オプションか
3579 \begin_inset Flex MenuItem
3580 status collapsed
3581
3582 \begin_layout Plain Layout
3583 Jurabib
3584 \end_layout
3585
3586 \end_inset
3587
3588 オプションを選択してください。これらのパッケージによって、引用ダイアログに機能が追加され、参照の様式が選択できるようになります(「Knuth 1984」、「Kn
3589 uth (1984)」、「Knuth, 1984」、「1984」など)。両パッケージは、専用にデザインされたスタイルファイルを必要とすることに注意してください。
3590 両者ともそれ自身のスタイルファイルを同梱していますが、他にもたくさんの追加スタイルファイルがありますし、
3591 \begin_inset Flex Code
3592 status collapsed
3593
3594 \begin_layout Plain Layout
3595 natbib
3596 \end_layout
3597
3598 \end_inset
3599
3600 に至っては、対話的なスタイルファイルビルダーさえ存在します
3601 \begin_inset Foot
3602 status collapsed
3603
3604 \begin_layout Plain Layout
3605 \begin_inset Flex URL
3606 status open
3607
3608 \begin_layout Plain Layout
3609
3610 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3611 \end_layout
3612
3613 \end_inset
3614
3615 をご参照ください。
3616 \end_layout
3617
3618 \end_inset
3619
3620
3621 \end_layout
3622
3623 \begin_layout Subsection
3624 節分けされた参考文献
3625 \end_layout
3626
3627 \begin_layout Standard
3628 場合によっては、参考文献をいくつかの節に分ける必要があることがあります。たとえば、あなたが歴史家であるとすれば、出典と学術文献を分ける機能は、おそらく「必需品」
3629 でさえあります。残念ながら、BibTeX自身ではこのようなことができません。しかし、適切なLaTeXパッケージの助けを借りると、BibTeXをこのような必要性を
3630 満たすように拡張することができます。
3631 \end_layout
3632
3633 \begin_layout Standard
3634 LyXは、このようなパッケージの一つである
3635 \begin_inset Flex Code
3636 status collapsed
3637
3638 \begin_layout Plain Layout
3639 bibtopic
3640 \end_layout
3641
3642 \end_inset
3643
3644
3645 \begin_inset Foot
3646 status collapsed
3647
3648 \begin_layout Plain Layout
3649 \begin_inset Flex URL
3650 status open
3651
3652 \begin_layout Plain Layout
3653
3654 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3655 \end_layout
3656
3657 \end_inset
3658
3659 から入手可能です。
3660 \end_layout
3661
3662 \end_inset
3663
3664 をそのままでサポートします。このパッケージの長所は、(
3665 \begin_inset Flex Code
3666 status collapsed
3667
3668 \begin_layout Plain Layout
3669 multibib
3670 \end_layout
3671
3672 \end_inset
3673
3674 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです。そのかわりに、参考文献の違う節には、その節向けの項目を収録した別の参考文献デ
3675 ータベースを用意する必要があります。たとえば、参考文献を「出典」の節と「学術文献」の節に分けたい場合には、それぞれの参考文献データベース、たとえば
3676 \begin_inset Flex Code
3677 status collapsed
3678
3679 \begin_layout Plain Layout
3680 souces.bib
3681 \end_layout
3682
3683 \end_inset
3684
3685
3686 \begin_inset Flex Code
3687 status collapsed
3688
3689 \begin_layout Plain Layout
3690 scientific.bib
3691 \end_layout
3692
3693 \end_inset
3694
3695 とを作成する必要があります。
3696 \end_layout
3697
3698 \begin_layout Standard
3699 \begin_inset Flex MenuItem
3700 status collapsed
3701
3702 \begin_layout Plain Layout
3703 文書\SpecialChar \menuseparator
3704 設定
3705 \end_layout
3706
3707 \end_inset
3708
3709 を開いて
3710 \begin_inset Flex MenuItem
3711 status collapsed
3712
3713 \begin_layout Plain Layout
3714 参考文献
3715 \end_layout
3716
3717 \end_inset
3718
3719 の下の
3720 \begin_inset Flex MenuItem
3721 status collapsed
3722
3723 \begin_layout Plain Layout
3724 節分けされた参考文献
3725 \end_layout
3726
3727 \end_inset
3728
3729 をチェックしてください。すると、参考文献の各節に一つずつ、複数の参考文献を挿入することができます。上記の例では、BibTeX参考文献
3730 \begin_inset Flex Code
3731 status collapsed
3732
3733 \begin_layout Plain Layout
3734 sources.bib
3735 \end_layout
3736
3737 \end_inset
3738
3739 と二つめの参考文献データベース
3740 \begin_inset Flex Code
3741 status collapsed
3742
3743 \begin_layout Plain Layout
3744 scientific.bib
3745 \end_layout
3746
3747 \end_inset
3748
3749 を挿入します。各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です。くわえて、参考文献の節に、指定したデータベースの「引用されたすべての参照」を載せる
3750 (これが既定です)か、「引用されなかったすべての参照」を載せるか、あるいは「すべての参照」を載せるかを選択することができます。これは、もし参考文献を「本文に引用
3751 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に、便利でありましょう。各節の見出しは、通常の節や小節として入れることができ
3752 ます。
3753 \begin_inset Flex Code
3754 status collapsed
3755
3756 \begin_layout Plain Layout
3757 bibtopic
3758 \end_layout
3759
3760 \end_inset
3761
3762 は、参考文献用の見出しを取り除いてしまいますので、手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください)。
3763 \end_layout
3764
3765 \begin_layout Subsection
3766 複数の参考文献
3767 \end_layout
3768
3769 \begin_layout Standard
3770 文書の節ごとあるいは章ごとの参考文献など、複数の参考文献はBibTeX自身ではサポートされていません。しかしながら、もし若干の
3771 \begin_inset Flex Code
3772 status collapsed
3773
3774 \begin_layout Plain Layout
3775 TeXコード
3776 \end_layout
3777
3778 \end_inset
3779
3780 (第
3781 \begin_inset CommandInset ref
3782 LatexCommand ref
3783 reference "sec:LaTeXコードを挿入する"
3784
3785 \end_inset
3786
3787 節を参照)を利用することを厭わなければ、LyXで節分けされた参考文献を作るのに使用されている(前節を参照)
3788 \begin_inset Flex Code
3789 status collapsed
3790
3791 \begin_layout Plain Layout
3792 bibtopic
3793 \end_layout
3794
3795 \end_inset
3796
3797 パッケージが、この課題を解決する簡単な方法を提供します
3798 \begin_inset Foot
3799 status collapsed
3800
3801 \begin_layout Plain Layout
3802 ほかに、
3803 \begin_inset Flex Code
3804 status collapsed
3805
3806 \begin_layout Plain Layout
3807 chapterbib
3808 \end_layout
3809
3810 \end_inset
3811
3812
3813 \begin_inset Flex Code
3814 status collapsed
3815
3816 \begin_layout Plain Layout
3817 bibunits
3818 \end_layout
3819
3820 \end_inset
3821
3822 パッケージを利用する方法もあります。
3823 \end_layout
3824
3825 \end_inset
3826
3827
3828 \end_layout
3829
3830 \begin_layout Standard
3831 まず
3832 \begin_inset Flex MenuItem
3833 status collapsed
3834
3835 \begin_layout Plain Layout
3836 文書\SpecialChar \menuseparator
3837 設定
3838 \end_layout
3839
3840 \end_inset
3841
3842 に行って
3843 \begin_inset Flex MenuItem
3844 status collapsed
3845
3846 \begin_layout Plain Layout
3847 参考文献
3848 \end_layout
3849
3850 \end_inset
3851
3852 の下の
3853 \begin_inset Flex MenuItem
3854 status collapsed
3855
3856 \begin_layout Plain Layout
3857 節分けされた参考文献
3858 \end_layout
3859
3860 \end_inset
3861
3862 を有効にしてください。つぎに文書中において、参考文献(BibTeX参考文献本体を含む)の入った節を
3863 \begin_inset Flex Code
3864 status collapsed
3865
3866 \begin_layout Plain Layout
3867
3868 \backslash
3869 begin{btUnit}
3870 \end_layout
3871
3872 \end_inset
3873
3874
3875 \begin_inset Flex Code
3876 status collapsed
3877
3878 \begin_layout Plain Layout
3879
3880 \backslash
3881 end{btUnit}
3882 \end_layout
3883
3884 \end_inset
3885
3886 のあいだにはさまなくてはなりません(これらのコマンドはTeXコードとして挿入する必要があります)。参考文献には、現在位置の
3887 \begin_inset Flex Code
3888 status collapsed
3889
3890 \begin_layout Plain Layout
3891 btUnit
3892 \end_layout
3893
3894 \end_inset
3895
3896 において引用されたすべての参照が含まれることになります。
3897 \series bold
3898 (註)
3899 \series default
3900 この方法を用いる場合には、すべての参照はいずれかの
3901 \begin_inset Flex Code
3902 status collapsed
3903
3904 \begin_layout Plain Layout
3905 btUnit
3906 \end_layout
3907
3908 \end_inset
3909
3910 内部になくてはなりません。また、
3911 \begin_inset Flex Code
3912 status collapsed
3913
3914 \begin_layout Plain Layout
3915 btUnit
3916 \end_layout
3917
3918 \end_inset
3919
3920 は入れ子構造にすることができません。
3921 \end_layout
3922
3923 \begin_layout Section
3924 複合文書
3925 \end_layout
3926
3927 \begin_layout Subsection
3928 一般的な操作
3929 \end_layout
3930
3931 \begin_layout Standard
3932 たくさんの節を含んだ大きなファイルで作業をする場合、文書をいくつかのファイルに分割した方が往々にして便利ですし、場合によっては、表部分にはしょっちゅう変更が加え
3933 られるけれども、その前の文章はつねに同じであるようなケースもあるでしょう。このような場合には、複合文書を利用することを、まずご検討ください。たとえば、科学論文は
3934 通常、導入部・所見・結果・議論・結論の五つの節から成ります。これら各節を別々のLyXファイルにして、タイトル・著者・概要・参考文献等と、これら五つのインクルード
3935 \begin_inset Foot
3936 status collapsed
3937
3938 \begin_layout Plain Layout
3939
3940 \series bold
3941 (訳註)
3942 \series default
3943 「取り込む」の意です。原語「include」に対する訳語として、プログラミング用語の「インクルードする」以外に適語がないので、ここではプログラミング用語をそのま
3944 ま使用します。
3945 \end_layout
3946
3947 \end_inset
3948
3949 ファイルを持つ、もう一つ別の「マスター」ファイルを作成するようにすることができます。これらの各ファイルは、単にマスターファイルにインクルードされるだけでなく、単
3950 独でも出力したり印刷したりすることのできる完全なLyXファイルであるように注意することが重要です。しかも、これらの各ファイルは、同じ文書クラスでなくてはなりませ
3951 ん。articleクラスとbookクラスを混在させるようなことはなさらないでください。LaTeXファイルをインクルードすることもできますが、このファイルにはプリ
3952 アンブルがあってはなりません(
3953 \family typewriter
3954
3955 \backslash
3956 begin{document}
3957 \family default
3958 行とその前のすべて、および
3959 \family typewriter
3960
3961 \backslash
3962 end{documen
3963 \family default
3964 t}行は削除しておかなければなりません)。さもないと、DVIファイルを作成する際にエラーが発生するでしょう。
3965 \end_layout
3966
3967 \begin_layout Standard
3968 LyXでは、
3969 \family sans
3970 挿入\SpecialChar \menuseparator
3971 ファイル\SpecialChar \menuseparator
3972 子文書
3973 \family default
3974 で簡単にファイルをインクルードすることができます。このメニューを選んでクリックすると、カーソルの現在位置に小さな枠が挿入されます。この枠をクリックすると、ダイア
3975 ログが現れるので、そこでインクルードするファイルとインクルード方法を選択することができます。
3976 \end_layout
3977
3978 \begin_layout Standard
3979 ファイル選択ボックスは、いまや自明でしょう。インクルード方法には、「include」・「input」・「verbatim」の三つがあります。「include」と
3980 「input」の違いは、正確にはLaTeXの達人にしか意味のないものですが、ほとんどの人にとって意味のある違いといえば、「include」されたファイルは新規頁
3981 から組版されるのに対し、「input」されたファイルは現在のページから組版される点です。
3982 \end_layout
3983
3984 \begin_layout Standard
3985 一般に、マスターファイルは、組版前に完全なLaTeXファイルに変換されますが、インクルードされるファイルは、プリアンブル情報をまったく持たないLaTeXファイル
3986 に変換されます。
3987 \end_layout
3988
3989 \begin_layout Standard
3990 「verbatim」インクルードファイルでは、ファイルの内容がそのまま(つまり「
3991 \begin_inset Flex Code
3992 status collapsed
3993
3994 \begin_layout Plain Layout
3995 verbatim
3996 \end_layout
3997
3998 \end_inset
3999
4000 」モードで)固定幅タイプライタフォントで組版されます。通常、このファイルの空白は、通常のLyXでの空白の取扱いとは違って、連続した複数の空白がそのまま出力される
4001 ものの、単なる見えない空白です。ただし、
4002 \family sans
4003
4004 \begin_inset Flex MenuItem
4005 status collapsed
4006
4007 \begin_layout Plain Layout
4008
4009 \family sans
4010 出力の空白に印付けをする
4011 \end_layout
4012
4013 \end_inset
4014
4015
4016 \family default
4017 チェックボックスを有効にすると、空白が存在することを明確にするために空白の印が出力されます。
4018 \end_layout
4019
4020 \begin_layout Subsection
4021 ファイル間の相互参照
4022 \end_layout
4023
4024 \begin_layout Standard
4025 \begin_inset Box Shadowbox
4026 position "t"
4027 hor_pos "c"
4028 has_inner_box 1
4029 inner_pos "t"
4030 use_parbox 0
4031 use_makebox 0
4032 width "100col%"
4033 special "none"
4034 height "1in"
4035 height_special "totalheight"
4036 status open
4037
4038 \begin_layout Plain Layout
4039 この節の内容は、すでに古くなっています。既定のマスター文書についてと、マスターが開いているときに子文書をどう開くかについて記述する必要があります。[[要修正]]
4040 \end_layout
4041
4042 \end_inset
4043
4044
4045 \end_layout
4046
4047 \begin_layout Standard
4048 異なるファイル間に相互参照を設定することも可能です。まず、すべての関係するファイルを開いてください。例として、2つのファイルを扱う場合を考え、各ファイルをA・B
4049 と呼びます。BがAにインクルードされるファイルだとします。Aにラベルを入れて、Bで参照したいとしましょう。文書Bで相互参照ダイアログを開いて、使用する「バッファ
4050 」を選んでください。
4051 \end_layout
4052
4053 \begin_layout Subsection
4054 すべての子文書での参考文献
4055 \end_layout
4056
4057 \begin_layout Standard
4058 \begin_inset Box Shadowbox
4059 position "t"
4060 hor_pos "c"
4061 has_inner_box 1
4062 inner_pos "t"
4063 use_parbox 0
4064 use_makebox 0
4065 width "100col%"
4066 special "none"
4067 height "1in"
4068 height_special "totalheight"
4069 status open
4070
4071 \begin_layout Plain Layout
4072 この節も更新が必要です。この点に関する内容がwikiにあるので、それをここにコピーすることも可か。
4073 \end_layout
4074
4075 \end_inset
4076
4077
4078 \end_layout
4079
4080 \begin_layout Standard
4081 すべての子文書の全文献項目を含んだ参考文献一覧をコピーし、それをコメントに変更してください。このようにすることで、LyXは.bibファイルを見つけることができ、参
4082 考文献一覧を見えるようにせずとも簡単に参照を挿入することができるようになります。
4083 \end_layout
4084
4085 \begin_layout Standard
4086 参考文献一覧がコメントにあるために、LaTeXはそれを使用しないので、参照は[1]のようには表示されないで[?]のように表示されます。ひとつの解決法として、コメ
4087 ントをインクルードするLaTeXパッケージの
4088 \begin_inset Flex Code
4089 status collapsed
4090
4091 \begin_layout Plain Layout
4092 comment
4093 \end_layout
4094
4095 \end_inset
4096
4097 を使用して、ファイルを別々に処理する方法があります。そのためには、すべての子文書のプリアンブルに以下を書き加えてください。
4098 \end_layout
4099
4100 \begin_layout LyX-Code
4101
4102 \backslash
4103 usepackage{comment}
4104 \end_layout
4105
4106 \begin_layout LyX-Code
4107
4108 \backslash
4109 includecomment{comment}
4110 \end_layout
4111
4112 \begin_layout Standard
4113 \begin_inset Flex URL
4114 status collapsed
4115
4116 \begin_layout Plain Layout
4117
4118 http://wiki.lyx.org/FAQ/Unsorted#toc31
4119 \end_layout
4120
4121 \end_inset
4122
4123 も参照してください。
4124 \end_layout
4125
4126 \begin_layout Section
4127 装飾的なヘッダ・フッタ
4128 \end_layout
4129
4130 \begin_layout Standard
4131 既定のページレイアウトは、どちらかといえば素っ気ないものです。
4132 \begin_inset Flex Code
4133 status collapsed
4134
4135 \begin_layout Plain Layout
4136 article
4137 \end_layout
4138
4139 \end_inset
4140
4141 文書クラスの場合には、ページの下の真ん中にページ番号がつくだけです。この取扱説明書はKOMA-scriptのbookクラスなので、すこしは凝ってますが、ほんとう
4142 に着飾るには、『
4143 \emph on
4144 ユーザーの手引き
4145 \emph default
4146 』に述べられているように、文書ページスタイルを「装飾的(fancy)」に設定する必要があります。この節では、望んだとおりの効果を得るために、LaTeXプリアンブ
4147 ルに挿入する必要のあるLaTeXコードについて解説します。
4148 \end_layout
4149
4150 \begin_layout Standard
4151 ページへッダは、「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています。フッタも同様に3つのフィールド
4152 に分類されています。これらのフィールドをもっとも簡単に設定するLaTeXコマンドには、
4153 \family typewriter
4154
4155 \begin_inset Flex Code
4156 status collapsed
4157
4158 \begin_layout Plain Layout
4159
4160 \family typewriter
4161
4162 \backslash
4163 lhead
4164 \end_layout
4165
4166 \end_inset
4167
4168
4169 \family default
4170
4171 \family typewriter
4172
4173 \begin_inset Flex Code
4174 status collapsed
4175
4176 \begin_layout Plain Layout
4177
4178 \family typewriter
4179
4180 \backslash
4181 chead
4182 \end_layout
4183
4184 \end_inset
4185
4186
4187 \family default
4188
4189 \family typewriter
4190
4191 \begin_inset Flex Code
4192 status collapsed
4193
4194 \begin_layout Plain Layout
4195
4196 \family typewriter
4197
4198 \backslash
4199 rhead
4200 \end_layout
4201
4202 \end_inset
4203
4204
4205 \family default
4206
4207 \begin_inset Flex Code
4208 status collapsed
4209
4210 \begin_layout Plain Layout
4211
4212 \backslash
4213 lfoot
4214 \end_layout
4215
4216 \end_inset
4217
4218 などがあります。かりに、各ページの左上端に自分の名前を入れたいものとしましょう。次のようなコマンドをプリアンブルに入れるだけです。
4219 \end_layout
4220
4221 \begin_layout Standard
4222
4223 \family typewriter
4224
4225 \backslash
4226 lhead{物書 はじめ}
4227 \end_layout
4228
4229 \begin_layout Standard
4230 これで自分の名前が左上に現れます。フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には、空の引数を持つコマンドを入
4231 れるだけです。すなわち、
4232 \end_layout
4233
4234 \begin_layout Standard
4235
4236 \family typewriter
4237
4238 \backslash
4239 cfoot{}
4240 \begin_inset Newline newline
4241 \end_inset
4242
4243
4244 \family default
4245 とします。
4246 \end_layout
4247
4248 \begin_layout Standard
4249 もっと美しくしてみましょう。節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ、ページ番号を(4ページのように)右上に、自分の名前を左下に、日
4250 付を右下に入れます。以下のコマンドをプリアンブルに入れます。
4251 \end_layout
4252
4253 \begin_layout Standard
4254
4255 \family typewriter
4256
4257 \backslash
4258 lhead{第
4259 \backslash
4260 thesection 節}
4261 \end_layout
4262
4263 \begin_layout Standard
4264
4265 \family typewriter
4266
4267 \backslash
4268 chead{}
4269 \end_layout
4270
4271 \begin_layout Standard
4272
4273 \family typewriter
4274
4275 \backslash
4276 rhead{
4277 \backslash
4278 thepage ページ}
4279 \end_layout
4280
4281 \begin_layout Standard
4282
4283 \family typewriter
4284
4285 \backslash
4286 lfoot{物書 はじめ}
4287 \end_layout
4288
4289 \begin_layout Standard
4290
4291 \family typewriter
4292
4293 \backslash
4294 cfoot{}
4295 \end_layout
4296
4297 \begin_layout Standard
4298
4299 \family typewriter
4300
4301 \backslash
4302 rfoot{
4303 \backslash
4304 today}
4305 \end_layout
4306
4307 \begin_layout Standard
4308 コマンド
4309 \family typewriter
4310
4311 \begin_inset Flex Code
4312 status collapsed
4313
4314 \begin_layout Plain Layout
4315
4316 \family typewriter
4317
4318 \backslash
4319 thesecti
4320 \family default
4321 o
4322 \family typewriter
4323 n
4324 \end_layout
4325
4326 \end_inset
4327
4328
4329 \family default
4330
4331 \begin_inset Flex Code
4332 status collapsed
4333
4334 \begin_layout Plain Layout
4335
4336 \family typewriter
4337
4338 \backslash
4339 thepa
4340 \family default
4341 ge
4342 \end_layout
4343
4344 \end_inset
4345
4346 は、それぞれLaTeXの節カウンタおよびページカウンタを取得するもので、これによって現在の節番号とページ番号を印字します。
4347 \begin_inset Flex Code
4348 status collapsed
4349
4350 \begin_layout Plain Layout
4351
4352 \family typewriter
4353
4354 \backslash
4355 tod
4356 \family default
4357 ay
4358 \end_layout
4359
4360 \end_inset
4361
4362 は、今日の日付を印字するものです。
4363 \end_layout
4364
4365 \begin_layout Standard
4366 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます。もし罫線が必要なければ、太さを0にしてください。ヘッダ罫線は、既定では0.4ptの太さであり、
4367 フッタ罫線は0ptです。太さを変更するには、
4368 \family typewriter
4369
4370 \begin_inset Flex Code
4371 status collapsed
4372
4373 \begin_layout Plain Layout
4374
4375 \family typewriter
4376
4377 \backslash
4378 renewcommand{
4379 \backslash
4380 headrulewidth}{0.4pt}
4381 \end_layout
4382
4383 \end_inset
4384
4385
4386 \family default
4387
4388 \family typewriter
4389
4390 \begin_inset Flex Code
4391 status collapsed
4392
4393 \begin_layout Plain Layout
4394
4395 \family typewriter
4396
4397 \backslash
4398 renewcommand{
4399 \backslash
4400 footrulewidth}{0.4pt}
4401 \end_layout
4402
4403 \end_inset
4404
4405
4406 \family default
4407 のようなコマンドを使用してください。
4408 \end_layout
4409
4410 \begin_layout Standard
4411 \begin_inset Flex Code
4412 status collapsed
4413
4414 \begin_layout Plain Layout
4415
4416 \family typewriter
4417
4418 \backslash
4419 thispagestyle{empty}
4420 \end_layout
4421
4422 \end_inset
4423
4424
4425 \begin_inset Flex Code
4426 status collapsed
4427
4428 \begin_layout Plain Layout
4429
4430 \family typewriter
4431
4432 \backslash
4433 thispagestyle{plain}
4434 \end_layout
4435
4436 \end_inset
4437
4438
4439 \begin_inset Flex Code
4440 status collapsed
4441
4442 \begin_layout Plain Layout
4443
4444 \family typewriter
4445
4446 \backslash
4447 thispagestyle{fancy}
4448 \end_layout
4449
4450 \end_inset
4451
4452 のようなコマンドを使えば、各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます。設定を変更したいページに、これらのコマンドをTeXコード
4453 として挿入してください。実は、タイトルページは、その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず、既定でプ
4454 レーン(plain)になるように設定されているのです。
4455 \end_layout
4456
4457 \begin_layout Standard
4458 奇数ページの左上だけに何かを挿入するなど、もっと複雑なコマンドもあるのですが、詳しい解説は
4459 \begin_inset Flex Code
4460 status collapsed
4461
4462 \begin_layout Plain Layout
4463
4464 \family typewriter
4465 fancyhdr
4466 \end_layout
4467
4468 \end_inset
4469
4470 パッケージの取扱説明書をご参照ください(
4471 \begin_inset Flex Code
4472 status collapsed
4473
4474 \begin_layout Plain Layout
4475 fancyhdr.dvi
4476 \end_layout
4477
4478 \end_inset
4479
4480 を探してください)。
4481 \end_layout
4482
4483 \begin_layout Standard
4484 最後の例として、へッダやフッタに画像を挿入できることを取り上げましょう。会社のロゴをページ左上に入れたいものとします。たとえば、
4485 \end_layout
4486
4487 \begin_layout Standard
4488
4489 \family typewriter
4490
4491 \backslash
4492 lhead{
4493 \backslash
4494 resizebox{1in}{!}{
4495 \backslash
4496 includegraphics{logo.eps}}}
4497 \end_layout
4498
4499 \begin_layout Standard
4500 \noindent
4501 とすれば、これを実現できます(文書中に他に画像を挿入していない場合には、
4502 \begin_inset Newline newline
4503 \end_inset
4504
4505
4506 \begin_inset Flex Code
4507 status collapsed
4508
4509 \begin_layout Plain Layout
4510 \noindent
4511
4512 \family typewriter
4513
4514 \backslash
4515 usepackage{graphics}
4516 \end_layout
4517
4518 \end_inset
4519
4520 をプリアンブルに宣言する必要があります)。
4521 \end_layout
4522
4523 \begin_layout Section
4524 箇条書き(記号)ブリットの指定
4525 \begin_inset CommandInset label
4526 LatexCommand label
4527 name "sec:ブリット"
4528
4529 \end_inset
4530
4531
4532 \end_layout
4533
4534 \begin_layout Standard
4535
4536 \noun on
4537 Allan Rae文
4538 \end_layout
4539
4540 \begin_layout Subsection
4541 はじめに
4542 \end_layout
4543
4544 \begin_layout Standard
4545 LyXには、ブリットの形が216個準備されていて、簡単なダイアログから呼び出すことができます。このダイアログを使えば、箇条書き(記号)の各階層で使うブリットの形
4546 を変更することができます。この設定は文書全体に共通なので、段落ごとに別のブリットを指定することはできません
4547 \begin_inset Foot
4548 status collapsed
4549
4550 \begin_layout Plain Layout
4551 正確には可能ですが、手動で行う必要があります。
4552 \end_layout
4553
4554 \end_inset
4555
4556
4557 \end_layout
4558
4559 \begin_layout Subsection
4560 インタフェース
4561 \end_layout
4562
4563 \begin_layout Standard
4564 メニュー項目の
4565 \begin_inset Flex MenuItem
4566 status collapsed
4567
4568 \begin_layout Plain Layout
4569 文書\SpecialChar \menuseparator
4570 設定
4571 \end_layout
4572
4573 \end_inset
4574
4575 を選択してダイアログを開き、
4576 \begin_inset Flex MenuItem
4577 status collapsed
4578
4579 \begin_layout Plain Layout
4580 ブリット
4581 \end_layout
4582
4583 \end_inset
4584
4585 タブを選択してください。
4586 \end_layout
4587
4588 \begin_layout Standard
4589 そのダイアログに、ブリットの形の一覧表があります。
4590 \begin_inset Flex MenuItem
4591 status collapsed
4592
4593 \begin_layout Plain Layout
4594 フォント
4595 \end_layout
4596
4597 \end_inset
4598
4599 と書いてあるドロップダウンメニューで、6つの各ブリット形パネルを切り替えることができます。また、一覧表左の
4600 \begin_inset Flex MenuItem
4601 status collapsed
4602
4603 \begin_layout Plain Layout
4604 階層
4605 \end_layout
4606
4607 \end_inset
4608
4609 パネルは、変更したい階層を選択するものです。
4610 \begin_inset Flex MenuItem
4611 status collapsed
4612
4613 \begin_layout Plain Layout
4614 任意のブリット
4615 \end_layout
4616
4617 \end_inset
4618
4619 では、指定したいLaTeX表現を入力することができます。任意のブリットを指定した場合には、そのコマンドが必要とするパッケージをLaTeXプリアンブルで指定する必
4620 要があります。
4621 \end_layout
4622
4623 \begin_layout Standard
4624 6つのパネルは、それぞれが必要とするパッケージによって分類されています。下記は、フォント名とLaTeXパッケージの対応表です。
4625 \end_layout
4626
4627 \begin_layout Standard
4628 \align center
4629 \begin_inset Tabular
4630 <lyxtabular version="3" rows="7" columns="2">
4631 <features tabularvalignment="middle">
4632 <column alignment="center" valignment="top" width="0pt">
4633 <column alignment="center" valignment="top" width="0pt">
4634 <row>
4635 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4636 \begin_inset Text
4637
4638 \begin_layout Plain Layout
4639 フォント
4640 \end_layout
4641
4642 \end_inset
4643 </cell>
4644 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4645 \begin_inset Text
4646
4647 \begin_layout Plain Layout
4648
4649 \family roman
4650 \series medium
4651 \shape up
4652 \size normal
4653 \emph off
4654 \bar no
4655 \noun off
4656 \color none
4657 必要とするパッケージ
4658 \end_layout
4659
4660 \end_inset
4661 </cell>
4662 </row>
4663 <row>
4664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4665 \begin_inset Text
4666
4667 \begin_layout Plain Layout
4668
4669 \family sans
4670 標準
4671 \end_layout
4672
4673 \end_inset
4674 </cell>
4675 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4676 \begin_inset Text
4677
4678 \begin_layout Plain Layout
4679
4680 \series medium
4681 \shape up
4682 \size normal
4683 \emph off
4684 \bar no
4685 \noun off
4686 \color none
4687 LaTeX
4688 \family roman
4689 本体
4690 \end_layout
4691
4692 \end_inset
4693 </cell>
4694 </row>
4695 <row>
4696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4697 \begin_inset Text
4698
4699 \begin_layout Plain Layout
4700
4701 \family sans
4702 \series medium
4703 \shape up
4704 \size normal
4705 \emph off
4706 \bar no
4707 \noun off
4708 \color none
4709 数式
4710 \end_layout
4711
4712 \end_inset
4713 </cell>
4714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4715 \begin_inset Text
4716
4717 \begin_layout Plain Layout
4718
4719 \family typewriter
4720 \series medium
4721 \shape up
4722 \size normal
4723 \emph off
4724 \bar no
4725 \noun off
4726 \color none
4727 amssymb.sty
4728 \end_layout
4729
4730 \end_inset
4731 </cell>
4732 </row>
4733 <row>
4734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4735 \begin_inset Text
4736
4737 \begin_layout Plain Layout
4738
4739 \family sans
4740 \series medium
4741 \shape up
4742 \size normal
4743 \emph off
4744 \bar no
4745 \noun off
4746 \color none
4747 絵文字1
4748 \end_layout
4749
4750 \end_inset
4751 </cell>
4752 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4753 \begin_inset Text
4754
4755 \begin_layout Plain Layout
4756
4757 \family typewriter
4758 \series medium
4759 \shape up
4760 \size normal
4761 \emph off
4762 \bar no
4763 \noun off
4764 \color none
4765 pifont.sty
4766 \end_layout
4767
4768 \end_inset
4769 </cell>
4770 </row>
4771 <row>
4772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4773 \begin_inset Text
4774
4775 \begin_layout Plain Layout
4776
4777 \family sans
4778 \series medium
4779 \shape up
4780 \size normal
4781 \emph off
4782 \bar no
4783 \noun off
4784 \color none
4785 絵文字2
4786 \end_layout
4787
4788 \end_inset
4789 </cell>
4790 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4791 \begin_inset Text
4792
4793 \begin_layout Plain Layout
4794
4795 \family typewriter
4796 \series medium
4797 \shape up
4798 \size normal
4799 \emph off
4800 \bar no
4801 \noun off
4802 \color none
4803 pifont.sty
4804 \end_layout
4805
4806 \end_inset
4807 </cell>
4808 </row>
4809 <row>
4810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4811 \begin_inset Text
4812
4813 \begin_layout Plain Layout
4814
4815 \family sans
4816 \series medium
4817 \shape up
4818 \size normal
4819 \emph off
4820 \bar no
4821 \noun off
4822 \color none
4823 絵文字3
4824 \end_layout
4825
4826 \end_inset
4827 </cell>
4828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4829 \begin_inset Text
4830
4831 \begin_layout Plain Layout
4832
4833 \family typewriter
4834 \series medium
4835 \shape up
4836 \size normal
4837 \emph off
4838 \bar no
4839 \noun off
4840 \color none
4841 pifont.sty
4842 \end_layout
4843
4844 \end_inset
4845 </cell>
4846 </row>
4847 <row>
4848 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4849 \begin_inset Text
4850
4851 \begin_layout Plain Layout
4852
4853 \family sans
4854 \series medium
4855 \shape up
4856 \size normal
4857 \emph off
4858 \bar no
4859 \noun off
4860 \color none
4861 絵文字4
4862 \end_layout
4863
4864 \end_inset
4865 </cell>
4866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4867 \begin_inset Text
4868
4869 \begin_layout Plain Layout
4870
4871 \family typewriter
4872 \series medium
4873 \shape up
4874 \size normal
4875 \emph off
4876 \bar no
4877 \noun off
4878 \color none
4879 pifont.sty
4880 \end_layout
4881
4882 \end_inset
4883 </cell>
4884 </row>
4885 </lyxtabular>
4886
4887 \end_inset
4888
4889
4890 \end_layout
4891
4892 \begin_layout Standard
4893 LyXは、ユーザーが導入されていないパッケージのブリットを使用したとしても、警告を発しません。ファイルを閲覧したり印刷したりしようとしたときにLaTeXエラーが
4894 出るようならば、パッケージが導入されていない可能性が大です
4895 \begin_inset Foot
4896 status collapsed
4897
4898 \begin_layout Plain Layout
4899 LyXが、パッケージがなくてもブリットを使用することを許すのは、編集をここで行ったとしても、別のところへエクスポートする可能性があるからです。
4900 \end_layout
4901
4902 \end_inset
4903
4904
4905 \end_layout
4906
4907 \begin_layout Subsection
4908 使用法
4909 \end_layout
4910
4911 \begin_layout Standard
4912 変更したいブリット階層を選んで、ブリットの形と大きさを選んでください。何らかの変更を加えたとしても、LyX上には反映されませんが、文書の表示を行えば確認されます
4913 \begin_inset Foot
4914 status collapsed
4915
4916 \begin_layout Plain Layout
4917 もし
4918 \emph on
4919 本当に
4920 \emph default
4921 段落ごとに異なるブリットの形を使いたいならば、TeXコードを使って少し手を汚す必要があります。この場合も、ブリット選択ダイアログを使えば、さまざまな形のLaTe
4922 Xコードを確認することができるので手助けとなるでしょう。任意に設定した段落をつくるには、以下のような選択肢があります。
4923 \end_layout
4924
4925 \begin_layout Plain Layout
4926 \begin_inset ERT
4927 status open
4928
4929 \begin_layout Plain Layout
4930
4931
4932 \backslash
4933 let
4934 \backslash
4935 savelabelitemi=
4936 \backslash
4937 labelitemi
4938 \end_layout
4939
4940 \end_inset
4941
4942
4943 \end_layout
4944
4945 \begin_layout Plain Layout
4946 \begin_inset ERT
4947 status open
4948
4949 \begin_layout Plain Layout
4950
4951
4952 \backslash
4953 renewcommand
4954 \backslash
4955 labelitemi[0]{
4956 \backslash
4957 small
4958 \backslash
4959 (
4960 \backslash
4961 sharp
4962 \backslash
4963 )}
4964 \end_layout
4965
4966 \end_inset
4967
4968
4969 \end_layout
4970
4971 \begin_layout Itemize
4972 特定の階層の新しいブリット形を指定するには、LaTeXコマンド
4973 \begin_inset Flex Code
4974 status collapsed
4975
4976 \begin_layout Plain Layout
4977
4978 \family typewriter
4979
4980 \backslash
4981 renewcommand{}{}
4982 \end_layout
4983
4984 \end_inset
4985
4986 を使用します。あとで現在のブリット形に戻すことができるように、現在のブリット形を保存しておく必要もあります。ここで使っている箇条書きでは、第1階層のブリットを変
4987 更するために、以下のLaTeXコードが使用されています。
4988 \end_layout
4989
4990 \begin_deeper
4991 \begin_layout LyX-Code
4992
4993 \family typewriter
4994
4995 \backslash
4996 let
4997 \backslash
4998 savelabelitemi=
4999 \backslash
5000 labelitemi
5001 \end_layout
5002
5003 \begin_layout LyX-Code
5004
5005 \family typewriter
5006
5007 \backslash
5008 renewcommand
5009 \backslash
5010 labelitemi[0]{
5011 \backslash
5012 small
5013 \backslash
5014 (
5015 \backslash
5016 sharp
5017 \backslash
5018 )}
5019 \end_layout
5020
5021 \end_deeper
5022 \begin_layout Itemize
5023 箇条書き(記号)の階層は、
5024 \begin_inset Flex Code
5025 status collapsed
5026
5027 \begin_layout Plain Layout
5028
5029 \backslash
5030 labelitem
5031 \end_layout
5032
5033 \end_inset
5034
5035 コマンドの一部にローマ数字で指定されていることに注意してください。
5036 \end_layout
5037
5038 \begin_layout Itemize
5039 \begin_inset ERT
5040 status open
5041
5042 \begin_layout Plain Layout
5043
5044 [
5045 \backslash
5046 (
5047 \backslash
5048 star
5049 \backslash
5050 )]
5051 \end_layout
5052
5053 \end_inset
5054
5055 各項目のブリットを指定するには、角括弧で囲んだブリット形を、行頭に
5056 \begin_inset Flex Code
5057 status collapsed
5058
5059 \begin_layout Plain Layout
5060 TeXコード
5061 \end_layout
5062
5063 \end_inset
5064
5065 として挿入してください。たとえば、この項目の行頭には
5066 \family typewriter
5067
5068 \begin_inset Flex Code
5069 status collapsed
5070
5071 \begin_layout Plain Layout
5072
5073 \family typewriter
5074 [
5075 \backslash
5076 (
5077 \backslash
5078 star
5079 \backslash
5080 )]
5081 \end_layout
5082
5083 \end_inset
5084
5085
5086 \family default
5087 が指定されています。
5088 \end_layout
5089
5090 \begin_layout Plain Layout
5091 \begin_inset ERT
5092 status open
5093
5094 \begin_layout Plain Layout
5095
5096
5097 \backslash
5098 renewcommand
5099 \backslash
5100 labelitemi[0]{
5101 \backslash
5102 savelabelitemi}
5103 \end_layout
5104
5105 \end_inset
5106
5107
5108 \end_layout
5109
5110 \begin_layout Plain Layout
5111 文書全体で使用するブリット形が有効であるようにするために、labelitemを元の設定に戻す必要があります。そのためには、以下のようにします。
5112 \end_layout
5113
5114 \begin_layout LyX-Code
5115
5116 \family typewriter
5117
5118 \backslash
5119 renewcommand
5120 \backslash
5121 labelitemi[0]{
5122 \backslash
5123 savelabelitemi}
5124 \end_layout
5125
5126 \end_inset
5127
5128
5129 \end_layout
5130
5131 \begin_layout Chapter
5132 LyXとインターネット網
5133 \end_layout
5134
5135 \begin_layout Standard
5136 LyX has long supported the export of documents to various web-friendly formats,
5137  such as HTML.
5138  Before verson 2.0, however, HTML export was always accomplished by the use
5139  of external converters.
5140 \begin_inset Foot
5141 status collapsed
5142
5143 \begin_layout Plain Layout
5144 For details on the use of external converters with LyX, see the 
5145 \emph on
5146 Converters
5147 \emph default
5148  section of the Customization manual.
5149 \end_layout
5150
5151 \end_inset
5152
5153  These fall into two large groups: there are converters that use LaTeX as
5154  an intermediate format, such as 
5155 \begin_inset Flex Code
5156 status collapsed
5157
5158 \begin_layout Plain Layout
5159
5160 \lang english
5161 htlatex
5162 \end_layout
5163
5164 \end_inset
5165
5166
5167 \begin_inset Flex Code
5168 status collapsed
5169
5170 \begin_layout Plain Layout
5171
5172 \lang english
5173 html2latex
5174 \end_layout
5175
5176 \end_inset
5177
5178 , and 
5179 \begin_inset Flex Code
5180 status collapsed
5181
5182 \begin_layout Plain Layout
5183
5184 \lang english
5185 plastex
5186 \end_layout
5187
5188 \end_inset
5189
5190 , relying upon LyX to produce the LaTeX; and there is a converter that works
5191  directly on LyX files, 
5192 \begin_inset Flex Code
5193 status collapsed
5194
5195 \begin_layout Plain Layout
5196
5197 \lang english
5198 eLyXer
5199 \end_layout
5200
5201 \end_inset
5202
5203 .
5204  All of these have different advantages and disadvantages.
5205  
5206 \end_layout
5207
5208 \begin_layout Standard
5209 The LaTeX-based converters have the advantage that, in principle, they know
5210  everything about the exported document that LaTeX does.
5211  Such converters do not care, for example, if a certain block of code was
5212  produced by LyX or was Evil Red Text.
5213  These converters know about 
5214 \begin_inset Flex Code
5215 status collapsed
5216
5217 \begin_layout Plain Layout
5218
5219 \lang english
5220 aux
5221 \end_layout
5222
5223 \end_inset
5224
5225  files, counters, and references, and can often make use of the 
5226 \begin_inset Flex Code
5227 status collapsed
5228
5229 \begin_layout Plain Layout
5230
5231 \lang english
5232 bbl
5233 \end_layout
5234
5235 \end_inset
5236
5237  files generated by BibTeX.
5238  On the other hand, LaTeX is a very hard language to parse---it is sometimes
5239  said that only TeX itself understands TeX---and LaTeX-based converters
5240  will often choke on what seem to be quite simple constructs; complex ones
5241  can throw them completely, and as of this writing, for example, the 
5242 \emph on
5243 Embedded Objects
5244 \emph default
5245  manual will not export with 
5246 \begin_inset Flex Code
5247 status collapsed
5248
5249 \begin_layout Plain Layout
5250
5251 \lang english
5252 htlatex
5253 \end_layout
5254
5255 \end_inset
5256
5257 , though the others will.
5258  The other issue concerns how math is handled.
5259  These converters typically convert the formulae into little pictures that
5260  are then linked from the HTML document.
5261  Since these are actually generated by LaTeX, they are accurate.
5262  But they do not scale well, and just getting them to look as if they are
5263  actually meant to be in your document---so that the font sizes seem to
5264  be roughly the same---can be a challenge.
5265 \end_layout
5266
5267 \begin_layout Standard
5268 Alex Fernandez's 
5269 \begin_inset Flex Code
5270 status collapsed
5271
5272 \begin_layout Plain Layout
5273
5274 \lang english
5275 eLyXer
5276 \end_layout
5277
5278 \end_inset
5279
5280  (
5281 \begin_inset CommandInset href
5282 LatexCommand href
5283 name "http://elyxer.nongnu.org/"
5284 target "http://elyxer.nongnu.org/"
5285
5286 \end_inset
5287
5288 ) solves some of these problems.
5289  In particular, the formulae it produces scale perfectly, since it renders
5290  math using a combination of HTML and CSS rather than converting the formulae
5291  to images.
5292  But even moderately complex formula are rendered less well than with 
5293 \begin_inset Flex Code
5294 status collapsed
5295
5296 \begin_layout Plain Layout
5297
5298 \lang english
5299 htlatex
5300 \end_layout
5301
5302 \end_inset
5303
5304 ; this reflects the limitations of HTML.
5305 \begin_inset Foot
5306 status collapsed
5307
5308 \begin_layout Plain Layout
5309 That said, 
5310 \begin_inset Flex Code
5311 status collapsed
5312
5313 \begin_layout Plain Layout
5314
5315 \lang english
5316 eLyXer
5317 \end_layout
5318
5319 \end_inset
5320
5321  can also use jsMath and MathJax for equations, but this setting is only
5322  available globally and requires one to have access to a server that runs
5323  the backend.
5324 \end_layout
5325
5326 \end_inset
5327
5328  More importantly (as of version 1.1.1, at least), 
5329 \begin_inset Flex Code
5330 status collapsed
5331
5332 \begin_layout Plain Layout
5333
5334 \lang english
5335 eLyXer
5336 \end_layout
5337
5338 \end_inset
5339
5340  has limited support for math macros and no support for user-defined paragraph
5341  or character styles.
5342  These limitations make 
5343 \begin_inset Flex Code
5344 status collapsed
5345
5346 \begin_layout Plain Layout
5347
5348 \lang english
5349 eLyXer
5350 \end_layout
5351
5352 \end_inset
5353
5354  unsuitable for many of the documents LyX users produce.
5355  In principle, of course, these problems could be solved, but the LyX developers
5356  have decided to follow a different path and have made LyX itself capable
5357  of writing XHTML, just as it is capable of writing LaTeX, DocBook, and
5358  plaintext.
5359 \end_layout
5360
5361 \begin_layout Standard
5362 As of this writing, XHTML output remains under development and should probably
5363  be regarded as 
5364 \begin_inset Quotes eld
5365 \end_inset
5366
5367 experimental
5368 \begin_inset Quotes erd
5369 \end_inset
5370
5371 .
5372 \begin_inset Foot
5373 status collapsed
5374
5375 \begin_layout Plain Layout
5376 The file 
5377 \begin_inset Flex Code
5378 status collapsed
5379
5380 \begin_layout Plain Layout
5381
5382 \lang english
5383 development/HTML.notes
5384 \end_layout
5385
5386 \end_inset
5387
5388 , which can be found in the LyX source tree or 
5389 \begin_inset CommandInset href
5390 LatexCommand href
5391 name "accessed online"
5392 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
5393
5394 \end_inset
5395
5396 , usually contains up-to-date information about the state of XHTML output.
5397  See also the list of XHTML bugs on 
5398 \begin_inset CommandInset href
5399 LatexCommand href
5400 name "the bug tracker"
5401 target "http://www.lyx.org/trac/query?status=reopened&status=assigned&status=new&max=0&component=xhtml+export&order=id&col=id&col=summary&col=reporter&col=keywords&keywords=%21%7Efixedintrunk&desc=1"
5402
5403 \end_inset
5404
5405 .
5406 \end_layout
5407
5408 \end_inset
5409
5410  Still, the developers have chosen this approach because it has several
5411  potential advantages over the other two.
5412 \end_layout
5413
5414 \begin_layout Standard
5415 These advantages are primarily due to the fact that the XHTML output routines,
5416  since they are part of LyX, know everything LyX knows about the document
5417  being exported.
5418 \begin_inset Foot
5419 status collapsed
5420
5421 \begin_layout Plain Layout
5422 Another advantage is that, since these routines are internal to LyX, they
5423  are immune to changes in LyX's file format, or to changes in the semantics
5424  of existing insets.
5425 \end_layout
5426
5427 \end_inset
5428
5429  So they know about the table of contents (as displayed in the outline),
5430  about the counters associated with different paragraph styles, and about
5431  user-defined styles.
5432  The XHTML output routines know what LyX knows about internationalization,
5433  too, so they will output 
5434 \begin_inset Quotes eld
5435 \end_inset
5436
5437 Chapter 1
5438 \begin_inset Quotes erd
5439 \end_inset
5440
5441  or 
5442 \begin_inset Quotes eld
5443 \end_inset
5444
5445 Kapitel 1
5446 \begin_inset Quotes erd
5447 \end_inset
5448
5449 , depending upon the language in effect at the time.
5450  
5451 \end_layout
5452
5453 \begin_layout Standard
5454 Quite generally, the output routines know what LyX knows about document
5455  layout, that is, about how the document is to be rendered on screen.
5456  We use this information when we output the document as XHTML.
5457  In particular, LyX 
5458 \emph on
5459 automatically
5460 \emph default
5461  generates CSS style information corresponding to the layout information
5462  it uses to render the document on screen: if section headings are supposed
5463  to be sans-serif and bold as seen in LyX, then (by default) they will be
5464  sans-serif and bold when viewed in a web browser, too.
5465  And this is true not just for pre-defined styles, like Section, but for
5466  any style, including user-defined styles.
5467  Indeed, the XHTML output routines make no distinction between user-defined
5468  paragraph and character styles and LyX's own pre-defined styles: in each
5469  case, everything LyX knows about the styles is contained in the layout
5470  files.
5471  And much the same is true as regards pre-defined textual insets, such as
5472  footnotes, and various custom insets.
5473  
5474 \end_layout
5475
5476 \begin_layout Standard
5477 The result is that XHTML output can be customized and extended in exactly
5478  the same way LaTeX output can be customized and extended: through layout
5479  files and modules.
5480  See chapter five of the 
5481 \emph on
5482 Customization 
5483 \emph default
5484 manual for the details.
5485 \end_layout
5486
5487 \begin_layout Standard
5488 The remainder of this chapter contains more detailed information on XHTML
5489  output, its limitations, and ways to work around those limitations.
5490 \end_layout
5491
5492 \begin_layout Section
5493 Math Output in XHTML
5494 \end_layout
5495
5496 \begin_layout Standard
5497 LyX offers four choices for how math is rendered.
5498  These have various advantages and disadvantages:
5499 \end_layout
5500
5501 \begin_layout Itemize
5502 MathML
5503 \begin_inset Newline newline
5504 \end_inset
5505
5506 MathML is a dialect of XML designed specifically for mathematics on the
5507  web, and it typically renders very well in browsers that support it.
5508  The disadvantage is that not all browsers support MathML, and support is
5509  not complete even in the Gecko-based browsers, such as Firefox.
5510 \begin_inset Newline newline
5511 \end_inset
5512
5513 If LyX is unable to render a formula as MathML---for example, if the formula
5514  uses the 
5515 \begin_inset Flex Code
5516 status collapsed
5517
5518 \begin_layout Plain Layout
5519
5520 \lang english
5521 xymatrix
5522 \end_layout
5523
5524 \end_inset
5525
5526  package or ERT---then it will instead output the formula as an image.
5527  
5528 \end_layout
5529
5530 \begin_layout Itemize
5531 HTML
5532 \begin_inset Newline newline
5533 \end_inset
5534
5535 As mentioned above, 
5536 \begin_inset Flex Code
5537 status collapsed
5538
5539 \begin_layout Plain Layout
5540
5541 \lang english
5542 elyxer
5543 \end_layout
5544
5545 \end_inset
5546
5547  outputs math as HTML, styled by CSS.
5548 \begin_inset Foot
5549 status collapsed
5550
5551 \begin_layout Plain Layout
5552 LyX has borrowed some of the CSS for its HTML output from 
5553 \begin_inset Flex Code
5554 status collapsed
5555
5556 \begin_layout Plain Layout
5557
5558 \lang english
5559 elyxer
5560 \end_layout
5561
5562 \end_inset
5563
5564 .
5565 \end_layout
5566
5567 \end_inset
5568
5569  For simple formulae, this can work quite well, though with more complicated
5570  formulae it tends to break down.
5571  Still, this method has the advantage that it is very widely supported and
5572  so it may be appropriate for documents that contain only a little, fairly
5573  simple math.
5574 \begin_inset Newline newline
5575 \end_inset
5576
5577 If Lyx is unable to render a formula as HTML---for example, if the formula
5578  uses the 
5579 \begin_inset Flex Code
5580 status collapsed
5581
5582 \begin_layout Plain Layout
5583
5584 \lang english
5585 xymatrix
5586 \end_layout
5587
5588 \end_inset
5589
5590  package or ERT---then it will instead output the formula as an image.
5591  
5592 \end_layout
5593
5594 \begin_layout Itemize
5595 Images
5596 \begin_inset Newline newline
5597 \end_inset
5598
5599 Like 
5600 \begin_inset Flex Code
5601 status collapsed
5602
5603 \begin_layout Plain Layout
5604
5605 \lang english
5606 htlatex
5607 \end_layout
5608
5609 \end_inset
5610
5611 , LyX will output formulae as images, the very same images, in fact, that
5612  are used for instant preview.
5613 \begin_inset Foot
5614 status collapsed
5615
5616 \begin_layout Plain Layout
5617 Instant preview does 
5618 \emph on
5619 not 
5620 \emph default
5621 have to be on for images to be output, however.
5622 \end_layout
5623
5624 \end_inset
5625
5626  The advantage to this method is that the images are simply generated by
5627  LaTeX, so they are very accurate.
5628  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5629  so they do not scale terribly well, and one cannot copy them, etc.
5630  (As of this writing, there are also problems about equation numbering.
5631  See 
5632 \begin_inset CommandInset href
5633 LatexCommand href
5634 name "bug 6894"
5635 target "http://www.lyx.org/trac/ticket/6894"
5636
5637 \end_inset
5638
5639 .)
5640 \begin_inset Newline newline
5641 \end_inset
5642
5643 The size of the images can be controlled by setting the 
5644 \begin_inset Quotes eld
5645 \end_inset
5646
5647 Math Images Scaling
5648 \begin_inset Quotes erd
5649 \end_inset
5650
5651  parameter under 
5652 \begin_inset Flex MenuItem
5653 status collapsed
5654
5655 \begin_layout Plain Layout
5656
5657 \lang english
5658 Document\SpecialChar \menuseparator
5659 Settings\SpecialChar \menuseparator
5660 Output
5661 \end_layout
5662
5663 \end_inset
5664
5665 .
5666 \begin_inset Foot
5667 status collapsed
5668
5669 \begin_layout Plain Layout
5670 For those who want to know, this controls the resolution of the image in
5671  dots per inch and is based upon a default of 75 dpi.
5672 \end_layout
5673
5674 \end_inset
5675
5676
5677 \begin_inset Newline newline
5678 \end_inset
5679
5680 If LyX for some reason fails to create an image for a formula (e.g., if a
5681  required LaTeX package is not installed), then it will fall back to outputing
5682  the raw LaTeX.
5683 \end_layout
5684
5685 \begin_layout Itemize
5686 LaTeX
5687 \begin_inset Newline newline
5688 \end_inset
5689
5690 Finally, LyX will happily output math as LaTeX.
5691  As well as being the output of last resort, this method can be used with
5692  such tools as 
5693 \begin_inset CommandInset href
5694 LatexCommand href
5695 name "jsMath"
5696 target "http://www.math.union.edu/~dpvc/jsMath/"
5697
5698 \end_inset
5699
5700 , which uses JavaScript to render LaTeX embedded in HTML documents.
5701  LyX wraps the LaTeX in either a 
5702 \begin_inset Flex Code
5703 status collapsed
5704
5705 \begin_layout Plain Layout
5706
5707 \lang english
5708 span
5709 \end_layout
5710
5711 \end_inset
5712
5713  (for inline formulas) or 
5714 \begin_inset Flex Code
5715 status collapsed
5716
5717 \begin_layout Plain Layout
5718
5719 \lang english
5720 div
5721 \end_layout
5722
5723 \end_inset
5724
5725  (for displayed formulas) with 
5726 \begin_inset Flex Code
5727 status collapsed
5728
5729 \begin_layout Plain Layout
5730
5731 \lang english
5732 class='math'
5733 \end_layout
5734
5735 \end_inset
5736
5737 , as is required for jsMath.
5738 \end_layout
5739
5740 \begin_layout Standard
5741 One of these output methods must be selected under 
5742 \begin_inset Flex MenuItem
5743 status collapsed
5744
5745 \begin_layout Plain Layout
5746
5747 \lang english
5748 Document\SpecialChar \menuseparator
5749 Settings\SpecialChar \menuseparator
5750 Output
5751 \end_layout
5752
5753 \end_inset
5754
5755 .
5756  By default, LyX outputs MathML.
5757  This is a document-wide setting, therefore.
5758 \end_layout
5759
5760 \begin_layout Standard
5761 Eventually, LyX will offer the user the option to select an alternate output
5762  method for a particular inset, say, one that isn't being rendered very
5763  well by MathML.
5764 \begin_inset Foot
5765 status collapsed
5766
5767 \begin_layout Plain Layout
5768 That said, since LyX falls back to images if the inset contains ERT, then
5769  one can force output as an image by putting some harmless ERT into the
5770  math, for example: 
5771 \begin_inset Formula $a=b\relax$
5772 \end_inset
5773
5774 .
5775 \end_layout
5776
5777 \end_inset
5778
5779
5780 \end_layout
5781
5782 \begin_layout Section
5783 Bibliography and Citations
5784 \end_layout
5785
5786 \begin_layout Standard
5787 XHTML output fully supports bibliographies and citations.
5788  
5789 \end_layout
5790
5791 \begin_layout Standard
5792 Citation labels are generated by the same machinery that generates LyX's
5793  on-screen labels, so the labels will look in the output much as they do
5794  in LyX, though better.
5795  If you are using numerical citations, then LyX will output numerical labels,
5796  such as [1] or [17], rather than simply showing the citation key in square
5797  brackets, as it does on-screen.
5798  If you are using author-year citations, then LyX will add lowercase letters
5799  to the years, just as BibTeX does, if it finds more than one citation for
5800  a given author-year combination.
5801  The labels will be printed with the bibliography entries.
5802  Note that there is, at present, no way to customize the appearance of the
5803  labels, for example, to choose between square brackets and parentheses.
5804 \end_layout
5805
5806 \begin_layout Standard
5807 Bibliography output is handled by the same machinery that handles the presentati
5808 on of reference information in the citation dialog, so you will see in the
5809  XHTML output pretty much what you would see if you were to look at a given
5810  entry in the citation dialog.
5811  The formatting can be customized in your layout file or, preferably, in
5812  a module.
5813  See the 
5814 \emph on
5815 Customization
5816 \emph default
5817  manual for the details.
5818 \end_layout
5819
5820 \begin_layout Standard
5821 The main defect at present is that cross-referenced information is printed
5822  with every entry with which it is associated.
5823  So you can see things like this:
5824 \end_layout
5825
5826 \begin_layout Quote
5827 Jason Stanley, 
5828 \begin_inset Quotes eld
5829 \end_inset
5830
5831 Context and Logical Form
5832 \begin_inset Quotes erd
5833 \end_inset
5834
5835 , in 
5836 \emph on
5837 Language in Context: Selected Essays
5838 \emph default
5839  (Oxford: Oxford University Press, 2007), pp.
5840  30--68.
5841 \end_layout
5842
5843 \begin_layout Quote
5844 Jason Stanley, 
5845 \begin_inset Quotes eld
5846 \end_inset
5847
5848 Semantics in Context
5849 \begin_inset Quotes erd
5850 \end_inset
5851
5852 , in 
5853 \emph on
5854 Language in Context: Selected Essays
5855 \emph default
5856  (Oxford: Oxford University Press, 2007), pp.
5857  201--30.
5858 \end_layout
5859
5860 \begin_layout Standard
5861 This should be fixed before long.
5862 \end_layout
5863
5864 \begin_layout Standard
5865 There is no support at present for sectioned bibliographies.
5866  If you have multiple bibliographies, then LyX will print the same bibliography
5867  over and over.
5868 \end_layout
5869
5870 \begin_layout Section
5871 Indexes
5872 \end_layout
5873
5874 \begin_layout Standard
5875 LyX will happily export indexes as XHTML, but with certain limitations at
5876  the moment.
5877 \end_layout
5878
5879 \begin_layout Standard
5880 Index export will be most reliable when you do not attempt to use the fancy
5881  constructs that are described in the section on indexes in the 
5882 \emph on
5883 User's Guide
5884 \emph default
5885 .
5886 \begin_inset Foot
5887 status collapsed
5888
5889 \begin_layout Plain Layout
5890 The main issue here is that LyX itself does not really handle these.
5891  It just lets you enter what you would have to enter in raw LaTeX.
5892 \end_layout
5893
5894 \end_inset
5895
5896  We'll describe how they are handled using the subsection headings from
5897  that section.
5898 \end_layout
5899
5900 \begin_layout Itemize
5901 Grouping Index Entries (aka, sub-entries): LyX makes an effort to support
5902  these, but the entries must be separated by 
5903 \begin_inset Quotes eld
5904 \end_inset
5905
5906  ! 
5907 \begin_inset Quotes erd
5908 \end_inset
5909
5910 , that is, there must be spaces around the exclamation point.
5911  This is because it is otherwise too difficult to check for escaped exclamation
5912  points, ones in math, and so forth.
5913 \end_layout
5914
5915 \begin_layout Itemize
5916 Page Ranges: There is no support at all for page ranges, since these make
5917  no sense with XHMTL.
5918  Instead, you will just get two index entries, one at either end.
5919 \end_layout
5920
5921 \begin_layout Itemize
5922 Cross-referencing: There is no support for cross-referencing.
5923  If LyX finds an entry containing the 
5924 \begin_inset Quotes eld
5925 \end_inset
5926
5927 |see\SpecialChar \ldots{}
5928
5929 \begin_inset Quotes erd
5930 \end_inset
5931
5932  construct, it is just dropped, and the rest is treated as an ordinary index
5933  entry.
5934 \end_layout
5935
5936 \begin_layout Itemize
5937 Index Entry Order: LyX does support attempts to fix the sorting order.
5938  It will take what is before the first `@' it finds and use that for sorting,
5939  taking what follows the first `@' to be the actual entry.
5940  At present, LyX does not check for escaped `@', so do not try to index
5941  email addresses.
5942 \end_layout
5943
5944 \begin_layout Itemize
5945 Index Entry Layout: You can format entries by using the text style dialog,
5946  or by using any other method available within LyX itself.
5947  There is no support for constructs like: 
5948 \begin_inset Quotes eld
5949 \end_inset
5950
5951 entry|textbf
5952 \begin_inset Quotes erd
5953 \end_inset
5954
5955 .
5956  Indeed, if LyX finds a pipe symbol, `|', in an entry, it will delete it
5957  and everything that follows it.
5958 \end_layout
5959
5960 \begin_layout Itemize
5961 Multiple Indexes: There is no support for multiple indexes.
5962  Rather, all index entries will be printed as one large index.
5963  To avoid our printing several versions of the index, we print only the
5964  main index, so make sure you have one.
5965 \end_layout
5966
5967 \begin_layout Section
5968 Nomenclature and Glossary
5969 \end_layout
5970
5971 \begin_layout Standard
5972 There is at present no support for glossaries.
5973  Adding it would be fairly trivial, and welcome.
5974 \end_layout
5975
5976 \begin_layout Chapter
5977 LyXサーバー
5978 \end_layout
5979
5980 \begin_layout Section
5981 はじめに
5982 \end_layout
5983
5984 \begin_layout Standard
5985 「LyXサーバー」を使用すると、他のプログラムが、LyXと通信したり、LyXコマンドを実行させたり、LyXの内部状態に関する情報を取得したりすることができるよう
5986 になります。これは熟練したユーザー向けの機能ですが、便利なはずです。たとえば、LyXサーバーに書き込むことによって、JabRefのような参考文献管理ソフトが、L
5987 yXに文献引用を「押し込む」ことが可能となります。
5988 \end_layout
5989
5990 \begin_layout Standard
5991 ただし、現在のところ、
5992 \emph on
5993 LyXサーバーはWindowsでは機能しない
5994 \emph default
5995 ことに注意してください
5996 \begin_inset Foot
5997 status collapsed
5998
5999 \begin_layout Plain Layout
6000 これが不可能でなければならない理由はありません。しかし、いまのところ、Windows向け開発者でこの機能を実装しようとする者がいないのです。
6001 \end_layout
6002
6003 \end_inset
6004
6005
6006 \end_layout
6007
6008 \begin_layout Section
6009 LyXサーバーを開始するには
6010 \end_layout
6011
6012 \begin_layout Standard
6013 LyXサーバーは、名前をつけたパイプの対を利用することで機能します。パイプは、通常
6014 \begin_inset Flex Code
6015 status collapsed
6016
6017 \begin_layout Plain Layout
6018 UserDir
6019 \end_layout
6020
6021 \end_inset
6022
6023 の下に作られ(Windowsを除く。Windowsでは、名前を付けた
6024 \emph on
6025 ローカルの
6026 \emph default
6027 パイプは
6028 \begin_inset Flex Code
6029 status collapsed
6030
6031 \begin_layout Plain Layout
6032
6033 \backslash
6034
6035 \backslash
6036 .
6037 \backslash
6038 pipe
6039 \end_layout
6040
6041 \end_inset
6042
6043 に特別なオブジェクトとして置かれます)、「
6044 \begin_inset Flex Code
6045 status collapsed
6046
6047 \begin_layout Plain Layout
6048 .lyxpipe.in
6049 \end_layout
6050
6051 \end_inset
6052
6053 」および「
6054 \begin_inset Flex Code
6055 status collapsed
6056
6057 \begin_layout Plain Layout
6058 .lyxpipe.out
6059 \end_layout
6060
6061 \end_inset
6062
6063 」という名前がついています。外部プログラムは、
6064 \begin_inset Flex Code
6065 status collapsed
6066
6067 \begin_layout Plain Layout
6068 .lyxpipe.in
6069 \end_layout
6070
6071 \end_inset
6072
6073 に書き込みを行い、戻りデータを
6074 \begin_inset Flex Code
6075 status collapsed
6076
6077 \begin_layout Plain Layout
6078 .lyxpipe.out
6079 \end_layout
6080
6081 \end_inset
6082
6083 から読み出します。パイプ名の語幹は、
6084 \begin_inset Flex MenuItem
6085 status collapsed
6086
6087 \begin_layout Plain Layout
6088 ツール\SpecialChar \menuseparator
6089 設定
6090 \end_layout
6091
6092 \end_inset
6093
6094 から、たとえば「
6095 \begin_inset Flex Code
6096 status collapsed
6097
6098 \begin_layout Plain Layout
6099 /home/myhome/lyxpipe
6100 \end_layout
6101
6102 \end_inset
6103
6104 」あるいはWindowsでは「
6105 \begin_inset Flex Code
6106 status collapsed
6107
6108 \begin_layout Plain Layout
6109
6110 \backslash
6111
6112 \backslash
6113 .
6114 \backslash
6115 pipe
6116 \backslash
6117 lyxpipe
6118 \end_layout
6119
6120 \end_inset
6121
6122 」などに設定することができます。サーバーを開始するためには、これを
6123 \emph on
6124 手動で設定しなくてはなりません
6125 \emph default
6126
6127 \end_layout
6128
6129 \begin_layout Standard
6130 LyXは、パイプを生成するに際して、「
6131 \begin_inset Flex Code
6132 status collapsed
6133
6134 \begin_layout Plain Layout
6135 .in
6136 \end_layout
6137
6138 \end_inset
6139
6140 」および「
6141 \begin_inset Flex Code
6142 status collapsed
6143
6144 \begin_layout Plain Layout
6145 .out
6146 \end_layout
6147
6148 \end_inset
6149
6150 」を付け加えます。パイプがすでに存在していれば、LyXは他のLyXプロセスがすでに実行中であると判断して、サーバーを開始しません。POSIX(Unix型)システ
6151 ムでは、なんらかの理由で、LyXが終了する際に使用されていない「古い」パイプが削除されずに残ったりすると、LyXはこれを削除しようとします。何らかの理由でこれが
6152 失敗した場合、手動でパイプを削除したのちに、LyXを再起動する必要があります。Windowsでは、プログラムが終了したりクラッシュしたりすると、OSがパイプを削
6153 除するので、「古い」パイプが残ることはありません。
6154 \end_layout
6155
6156 \begin_layout Standard
6157 サーバーを使用するLyXプロセスを複数起動するには、それぞれのプロセスに、別のユーザーディレクトリを使用させたり、別々の
6158 \begin_inset Flex Code
6159 status collapsed
6160
6161 \begin_layout Plain Layout
6162 preferences
6163 \end_layout
6164
6165 \end_inset
6166
6167 ファイルを使用させるなど、別々の設定を使用する必要があります。
6168 \end_layout
6169
6170 \begin_layout Standard
6171 クライアントプログラムを開発しようとされているのであれば、LyXサーバーからのデバッグ情報を有効にすると便利かもしれません。そのためには、Lyxを
6172 \begin_inset Flex Code
6173 status collapsed
6174
6175 \begin_layout Plain Layout
6176 lyx -dbg lyxserver
6177 \end_layout
6178
6179 \end_inset
6180
6181 として起動してください。
6182 \end_layout
6183
6184 \begin_layout Standard
6185 C言語で書かれた完全なサンプルクライアントが、ソース頒布版の
6186 \begin_inset Flex Code
6187 status collapsed
6188
6189 \begin_layout Plain Layout
6190 development/lyxserver/server_monitor.c
6191 \end_layout
6192
6193 \end_inset
6194
6195 にあります。
6196 \end_layout
6197
6198 \begin_layout Standard
6199 もう一つの便利なツールとして、
6200 \begin_inset Flex Code
6201 status collapsed
6202
6203 \begin_layout Plain Layout
6204 src/client/lyxclient
6205 \end_layout
6206
6207 \end_inset
6208
6209 にあるコマンドラインベースのクライアントがあります。
6210 \end_layout
6211
6212 \begin_layout Section
6213 通常の通信
6214 \end_layout
6215
6216 \begin_layout Standard
6217 LyXコールを発行するには、クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません。この行は、以下の書式を持ちます。
6218 \end_layout
6219
6220 \begin_layout Quote
6221 LYXCMD:
6222 \emph on
6223 クライアント名
6224 \emph default
6225 :
6226 \emph on
6227 関数
6228 \emph default
6229 :
6230 \emph on
6231 引数
6232 \end_layout
6233
6234 \begin_layout Description
6235 クライアント名 は、クライアントが自由に選べる名前です。これが用いられるのは、クライアントが他の要求クライアントから結果を見分けることができるように、LyXが返
6236 答をする際、クライアント名をエコーするときだけです。
6237 \end_layout
6238
6239 \begin_layout Description
6240 関数 は、LyXに実行させたい関数です。これは、ミニバッファで使用するコマンドと同じです。
6241 \end_layout
6242
6243 \begin_layout Description
6244 引数 は、一部の関数のみに効力を持つオプションの引数です(たとえば、「自己挿入」LFUNは、現在のカーソル位置に引数を文章として挿入します)。
6245 \end_layout
6246
6247 \begin_layout Standard
6248 LyXからの返答は、出力パイプに送り出され、
6249 \end_layout
6250
6251 \begin_layout Quote
6252 INFO:
6253 \emph on
6254 クライアント名
6255 \emph default
6256 :
6257 \emph on
6258 関数
6259 \emph default
6260 :
6261 \emph on
6262 データ
6263 \end_layout
6264
6265 \begin_layout Standard
6266 の書式をしています。ここで
6267 \emph on
6268 クライアント名
6269 \emph default
6270
6271 \emph on
6272 関数
6273 \emph default
6274 は、コマンド要求からそのままエコーされますが、
6275 \emph on
6276 データ
6277 \emph default
6278 はコマンド実行の結果に依存した、多少なりとも有用な情報です。「font-state」のような一部のコマンドは、LyXの内部状態に関する情報を返しますが、空のデー
6279 タ応答を返すものもあります。空のデータ返答は、コマンド実行が無事終わったことを意味します。
6280 \end_layout
6281
6282 \begin_layout Standard
6283 エラーが発生した場合のLyXの返答は
6284 \end_layout
6285
6286 \begin_layout Quote
6287 ERROR:
6288 \emph on
6289 クライアント名
6290 \emph default
6291 :
6292 \emph on
6293 関数
6294 \emph default
6295 :
6296 \emph on
6297 エラーメッセージ
6298 \end_layout
6299
6300 \begin_layout Standard
6301 の書式をしており、
6302 \emph on
6303 エラーメッセージ
6304 \emph default
6305 には、なぜコマンドが失敗したかの説明が入っているはずです。
6306 \end_layout
6307
6308 \begin_layout Standard
6309 (例)
6310 \end_layout
6311
6312 \begin_layout LyX-Code
6313 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6314 \begin_inset Newline newline
6315 \end_inset
6316
6317 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6318 \begin_inset Newline newline
6319 \end_inset
6320
6321 read a <~/.lyxpipe.out
6322 \begin_inset Newline newline
6323 \end_inset
6324
6325 echo $a
6326 \end_layout
6327
6328 \begin_layout Section
6329 通知
6330 \end_layout
6331
6332 \begin_layout Standard
6333 LyXは、発生しているイベントを、非同期的にクライアントに通知することができます。いまのところ、ユーザーがあるキー列を関数「notify」に割り当てているときの
6334 み、LyXはこの通知を行います。LyXが送る文字列の書式は
6335 \end_layout
6336
6337 \begin_layout Quote
6338 \begin_inset Flex Code
6339 status collapsed
6340
6341 \begin_layout Plain Layout
6342 NOTIFY:
6343 \end_layout
6344
6345 \end_inset
6346
6347
6348 \emph on
6349 キー列
6350 \end_layout
6351
6352 \begin_layout Standard
6353 となっていて、
6354 \emph on
6355 キー列
6356 \emph default
6357 は、ユーザーが実際に打鍵したキー列の印字表現になります。
6358 \end_layout
6359
6360 \begin_layout Standard
6361 この機構は、LyXのコマンド群を拡張してマクロを実装するのに使用することができます。なんらかのキー列を「notify」に割り当ててください。それから出力パイプで
6362 待機するクライアントを起動し、キー列に応じたコマンドを読み込み、一つないし複数のLyXコマンドを発行するLyX要求とLyXコールを使用する関数を開始するのです。
6363 \end_layout
6364
6365 \begin_layout Section
6366 単純なLyXサーバープロトコル
6367 \end_layout
6368
6369 \begin_layout Standard
6370 LyXは、セッション管理に使用することができる単純なプロトコルを実装しています。メッセージは、すべて
6371 \end_layout
6372
6373 \begin_layout Quote
6374 LYXSRV:
6375 \emph on
6376 クライアント名
6377 \emph default
6378 :
6379 \emph on
6380 プロトコルメッセージ
6381 \end_layout
6382
6383 \begin_layout Standard
6384 の書式をしており、
6385 \emph on
6386 プロトコルメッセージ
6387 \emph default
6388 は「hello」ないし「bye」です。クライアントから「hello」を受け取ると、LyXはメッセージを聴いていることをクライアントに伝えるために返答をし、LyX
6389 が終了することをクライアントに伝えるのには、LyXが「bye」を送信します。
6390 \end_layout
6391
6392 \begin_layout Section
6393 DVIとPDFの遡及検索
6394 \end_layout
6395
6396 \begin_layout Standard
6397 DVI/PDFビューア
6398 \begin_inset Foot
6399 status collapsed
6400
6401 \begin_layout Plain Layout
6402 PDFの遡及検索機能を提供しているビューアには、KDE/Linux上のOkularとMac OS X上のSkim、Windows上のSumatraPDFがありま
6403 す。
6404 \end_layout
6405
6406 \end_inset
6407
6408 には、遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります。これを使えば、DVI/PDF出力の
6409 特定の場所をクリックすることによって、LyXの文書中で対応する行にカーソルを移動させることができます。これを実現するためには、ビューアはLyXと情報交換を行う必
6410 要があります。これは、命名パイプ(
6411 \emph on
6412 lyxpipe
6413 \emph default
6414 )を使用するか、LyXが作業ディレクトリに生成するUNIXドメインソケット(
6415 \emph on
6416 lyxsocket
6417 \emph default
6418 )を使用する(これは
6419 \begin_inset Flex Code
6420 status collapsed
6421
6422 \begin_layout Plain Layout
6423 lyxclient
6424 \end_layout
6425
6426 \end_inset
6427
6428 プログラムがLyXと通信するのに使用している方法です)ことで、LyXサーバを経由して実現することができます。場合によっては、ビューアとLyXを橋渡しする補助スク
6429 リプトを必要とすることがあるかもしれませんが、それ以外は、ビューアはLyXと直接通信することができます。これは、選んだビューアと基本ソフトに依存します。また、必
6430 要とされるビューアの設定法と遡及検索が実際に行われる方法とにも依存します。したがって、下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします。その
6431 前に、DVI/PDF出力で遡及検索を有効にするためには、一般に何が必要とされるかを説明します。
6432 \end_layout
6433
6434 \begin_layout Subsection
6435 \begin_inset CommandInset label
6436 LatexCommand label
6437 name "sub:遡及検索"
6438
6439 \end_inset
6440
6441 自動有効化
6442 \end_layout
6443
6444 \begin_layout Standard
6445 ほとんどの場合、
6446 \begin_inset Flex MenuItem
6447 status collapsed
6448
6449 \begin_layout Plain Layout
6450 文書\SpecialChar \menuseparator
6451 出力\SpecialChar \menuseparator
6452 出力と同期
6453 \end_layout
6454
6455 \end_inset
6456
6457 を有効にすれば、LyXがすべて自動的に処理を行ってくれます。その場合、LyXは自動的に、PDFの場合はSyncTeXマクロを、DVIの場合はsrcltxパッケー
6458 ジを挿入します。このオプションは、
6459 \begin_inset Flex Code
6460 status collapsed
6461
6462 \begin_layout Plain Layout
6463 表示/更新
6464 \end_layout
6465
6466 \end_inset
6467
6468 ツールバーでも簡単にアクセスすることができます。
6469 \end_layout
6470
6471 \begin_layout Standard
6472 \begin_inset Flex Code
6473 status collapsed
6474
6475 \begin_layout Plain Layout
6476 srcltx
6477 \end_layout
6478
6479 \end_inset
6480
6481 パッケージや
6482 \begin_inset Flex Code
6483 status collapsed
6484
6485 \begin_layout Plain Layout
6486 src-specials
6487 \end_layout
6488
6489 \end_inset
6490
6491 を読み込むと、時折、組版に影響を与えることがありますので、仕上がりの組版においてはこれらを無効にしてください。
6492 \end_layout
6493
6494 \begin_layout Standard
6495 また、設定で自製マクロを指定することもできるので、何か特別な調整が必要な場合には、次節の手動有効化をお読みください。
6496 \end_layout
6497
6498 \begin_layout Subsection
6499 手動有効化
6500 \end_layout
6501
6502 \begin_layout Standard
6503 LaTeXは、遡及検索のために複数の方法を提供しています。ある方法は
6504 \begin_inset Flex Code
6505 status collapsed
6506
6507 \begin_layout Plain Layout
6508 latex/pdflatex
6509 \end_layout
6510
6511 \end_inset
6512
6513 プログラムに組み込まれており、他の方法は外部パッケージとして提供されています。どちらを選択するかは、お使いのLaTeX頒布版が既に特定の方法を提供しているか(組
6514 み込みによる方法は比較的新しいものです)と、お使いのビューアがそれに対応しているかに依存します。使用可能な方法を以下に述べます。
6515 \end_layout
6516
6517 \begin_layout Subsubsection*
6518 src-special経由のDVI組み込み検索(DVIのみ)
6519 \end_layout
6520
6521 \begin_layout Standard
6522 この方法は、DVIファイルに遡及検索に必要な情報を追加するものです。これは、かなり前のLaTeXから利用可能となっており(比較的最近のLaTeX頒布版はすべて対
6523 応しています)、安定して動作します。これを有効にするには、
6524 \begin_inset Flex MenuItem
6525 status collapsed
6526
6527 \begin_layout Plain Layout
6528 設定\SpecialChar \menuseparator
6529 ファイル処理\SpecialChar \menuseparator
6530 変換子
6531 \end_layout
6532
6533 \end_inset
6534
6535
6536 \begin_inset Flex MenuItem
6537 status collapsed
6538
6539 \begin_layout Plain Layout
6540 LaT
6541 \begin_inset ERT
6542 status collapsed
6543
6544 \begin_layout Plain Layout
6545
6546 {}
6547 \end_layout
6548
6549 \end_inset
6550
6551 eX (plain)->DVI
6552 \end_layout
6553
6554 \end_inset
6555
6556 ないし
6557 \begin_inset Flex MenuItem
6558 status collapsed
6559
6560 \begin_layout Plain Layout
6561 LaT
6562 \begin_inset ERT
6563 status collapsed
6564
6565 \begin_layout Plain Layout
6566
6567 {}
6568 \end_layout
6569
6570 \end_inset
6571
6572 eX (plain)->DraftDVI
6573 \end_layout
6574
6575 \end_inset
6576
6577 変換子を
6578 \begin_inset Flex Code
6579 status collapsed
6580
6581 \begin_layout Plain Layout
6582 latex -src-specials $$i
6583 \end_layout
6584
6585 \end_inset
6586
6587 に変更します。もしこれが動作しないときは、お使いのLaTeXエンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあり
6588 ます)。
6589 \end_layout
6590
6591 \begin_layout Subsubsection*
6592 外部パッケージ(PDFSyncおよびsrcltx)
6593 \end_layout
6594
6595 \begin_layout Standard
6596
6597 \emph on
6598 pdfsync
6599 \emph default
6600 および
6601 \emph on
6602 srcltx
6603 \emph default
6604 パッケージは、PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します。これを有効にするには、LyXプリアンブルで以下のようにパッケージを読み
6605 込んでください。
6606 \end_layout
6607
6608 \begin_layout Itemize
6609 PDFの遡及検索には
6610 \begin_inset Flex Code
6611 status collapsed
6612
6613 \begin_layout Plain Layout
6614
6615 \backslash
6616 usepackage{pdfsync}
6617 \end_layout
6618
6619 \end_inset
6620
6621
6622 \end_layout
6623
6624 \begin_layout Itemize
6625 DVIの遡及検索には
6626 \begin_inset Flex Code
6627 status collapsed
6628
6629 \begin_layout Plain Layout
6630
6631 \backslash
6632 usepackage[active]{srcltx}
6633 \end_layout
6634
6635 \end_inset
6636
6637
6638 \end_layout
6639
6640 \begin_layout Standard
6641 と書きます。DVIとPDFの両方の遡及検索を実行できるようにするためには、プリアンブルに以下の行を挿入する方法があります。
6642 \end_layout
6643
6644 \begin_layout LyX-Code
6645
6646 \backslash
6647 usepackage{ifpdf}
6648 \begin_inset Newline newline
6649 \end_inset
6650
6651
6652 \backslash
6653 ifpdf
6654 \begin_inset Newline newline
6655 \end_inset
6656
6657   
6658 \backslash
6659 usepackage{pdfsync}
6660 \begin_inset Newline newline
6661 \end_inset
6662
6663
6664 \backslash
6665 else
6666 \begin_inset Newline newline
6667 \end_inset
6668
6669   
6670 \backslash
6671 usepackage[active]{srcltx}
6672 \begin_inset Newline newline
6673 \end_inset
6674
6675
6676 \backslash
6677 fi
6678 \end_layout
6679
6680 \begin_layout Standard
6681 このようにすれば、DVIでもPDF(pdflatex)でも正しいパッケージを使いながら、ファイルを閲覧することができます。
6682 \end_layout
6683
6684 \begin_layout Standard
6685 なお、PDFSyncは、文書の出力レイアウトに干渉する可能性があるので注意してください。したがって、仕上がり文書ではPDFSyncを無効にすることをお勧めします
6686
6687 \end_layout
6688
6689 \begin_layout Subsubsection*
6690 SyncTeXを使った組み込み遡及検索(DVIおよびPDF)
6691 \end_layout
6692
6693 \begin_layout Standard
6694 \begin_inset Flex Code
6695 status collapsed
6696
6697 \begin_layout Plain Layout
6698 (pdf)latex
6699 \end_layout
6700
6701 \end_inset
6702
6703 の最近のバージョンは、PDFおよびDVI両方の遡及検索を組み込みでサポートしています。このいわゆる
6704 \emph on
6705 SyncTeX
6706 \emph default
6707 機能は、主に、PDFSyncパッケージをpdftexプログラムへ統合したことと、それをsrc-specialsアプローチへ取り込んだことの成果です。これを使用す
6708 るためには、少なくともTeXLive 2008か最近のMikTeX頒布版が必要です。また、既にSyncTeXサポートを提供しているPDFビューアは少ししかありま
6709 せん(Mac上のSkimとWindows上のSumatraPDF)。
6710 \end_layout
6711
6712 \begin_layout Standard
6713 DVI出力でSyncTeXを有効にするには、
6714 \begin_inset Flex MenuItem
6715 status collapsed
6716
6717 \begin_layout Plain Layout
6718 設定\SpecialChar \menuseparator
6719 ファイル処理\SpecialChar \menuseparator
6720 変換子
6721 \end_layout
6722
6723 \end_inset
6724
6725
6726 \begin_inset Flex MenuItem
6727 status collapsed
6728
6729 \begin_layout Plain Layout
6730 LaT
6731 \begin_inset ERT
6732 status collapsed
6733
6734 \begin_layout Plain Layout
6735
6736 {}
6737 \end_layout
6738
6739 \end_inset
6740
6741 eX (plain)->DVI
6742 \end_layout
6743
6744 \end_inset
6745
6746 ないし
6747 \begin_inset Flex MenuItem
6748 status collapsed
6749
6750 \begin_layout Plain Layout
6751 LaT
6752 \begin_inset ERT
6753 status collapsed
6754
6755 \begin_layout Plain Layout
6756
6757 {}
6758 \end_layout
6759
6760 \end_inset
6761
6762 eX (plain)->DraftDVI
6763 \end_layout
6764
6765 \end_inset
6766
6767 変換子を
6768 \begin_inset Flex Code
6769 status collapsed
6770
6771 \begin_layout Plain Layout
6772 latex -synctex=1 $$i
6773 \end_layout
6774
6775 \end_inset
6776
6777 に変更します。PDF出力用には、
6778 \begin_inset Flex MenuItem
6779 status collapsed
6780
6781 \begin_layout Plain Layout
6782 LaT
6783 \begin_inset ERT
6784 status collapsed
6785
6786 \begin_layout Plain Layout
6787
6788 {}
6789 \end_layout
6790
6791 \end_inset
6792
6793 eX (pdflatex)->PDF (pdflatex)
6794 \end_layout
6795
6796 \end_inset
6797
6798 変換子を
6799 \begin_inset Flex Code
6800 status collapsed
6801
6802 \begin_layout Plain Layout
6803 pdflatex -synctex=1 $$i
6804 \end_layout
6805
6806 \end_inset
6807
6808 に変更してください。また、ビューアをSyncTeXで使うのに設定を行う必要があるかどうか、お使いのビューアの取扱説明書をご確認ください
6809 \begin_inset Foot
6810 status collapsed
6811
6812 \begin_layout Plain Layout
6813 \begin_inset Flex Code
6814 status collapsed
6815
6816 \begin_layout Plain Layout
6817 -synctex=1
6818 \end_layout
6819
6820 \end_inset
6821
6822 オプションは、gzip圧縮を有効にします。お使いのビューアがgzip圧縮をサポートしていない場合には、代わりに
6823 \begin_inset Flex Code
6824 status collapsed
6825
6826 \begin_layout Plain Layout
6827 -synctex=-1
6828 \end_layout
6829
6830 \end_inset
6831
6832 を使用してください。
6833 \end_layout
6834
6835 \end_inset
6836
6837
6838 \end_layout
6839
6840 \begin_layout Subsection
6841 特定のビューアを設定して使うには
6842 \end_layout
6843
6844 \begin_layout Subsubsection*
6845 Xdvi(全プラットフォーム)
6846 \end_layout
6847
6848 \begin_layout Standard
6849 LyXは、
6850 \begin_inset Flex Code
6851 status collapsed
6852
6853 \begin_layout Plain Layout
6854 lyxclient
6855 \end_layout
6856
6857 \end_inset
6858
6859 プログラムを自動的に使うのに必要なフックを、既に提供しているので、
6860 \begin_inset Flex Code
6861 status collapsed
6862
6863 \begin_layout Plain Layout
6864 xdvi
6865 \end_layout
6866
6867 \end_inset
6868
6869 を使用する場合には、DVI遡及検索を実行するのに他にするべきことはありません。使用中の文書を上記で述べたように設定するだけです(遡及検索は、Ctrl-クリックか
6870 、Mac OS X上ではAlt-クリックで始動します)。
6871 \end_layout
6872
6873 \begin_layout Standard
6874 しかし、何らかの理由で、LyXと通信するのにソケットではなく命名パイプを使用したい場合には、
6875 \begin_inset Flex MenuItem
6876 status collapsed
6877
6878 \begin_layout Plain Layout
6879 設定\SpecialChar \menuseparator
6880 ファイル処理\SpecialChar \menuseparator
6881 ファイル書式
6882 \end_layout
6883
6884 \end_inset
6885
6886 のDVIビューアを
6887 \begin_inset Flex Code
6888 status collapsed
6889
6890 \begin_layout Plain Layout
6891 xdvi -editor 'lyxeditor.sh %f %l'
6892 \end_layout
6893
6894 \end_inset
6895
6896
6897 \begin_inset Flex Code
6898 status collapsed
6899
6900 \begin_layout Plain Layout
6901 lyxeditor.sh
6902 \end_layout
6903
6904 \end_inset
6905
6906 は適切なスクリプト名)に変更してください。たとえば、最低限のシェルスクリプトは
6907 \end_layout
6908
6909 \begin_layout LyX-Code
6910 #!/bin/sh
6911 \begin_inset Newline newline
6912 \end_inset
6913
6914 LYXPIPE="/path/to/lyxpipe"
6915 \begin_inset Newline newline
6916 \end_inset
6917
6918 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
6919 \begin_inset Newline newline
6920 \end_inset
6921
6922 echo "$COMMAND" > "${LYXPIPE}".in || exit
6923 \begin_inset Newline newline
6924 \end_inset
6925
6926 read < "${LYXPIPE}".out || exit
6927 \end_layout
6928
6929 \begin_layout Standard
6930 のようになります。ここで
6931 \begin_inset Flex Code
6932 status collapsed
6933
6934 \begin_layout Plain Layout
6935 /path/to/lyxpipe
6936 \end_layout
6937
6938 \end_inset
6939
6940 は、
6941 \begin_inset Flex MenuItem
6942 status collapsed
6943
6944 \begin_layout Plain Layout
6945 設定\SpecialChar \menuseparator
6946 パス
6947 \end_layout
6948
6949 \end_inset
6950
6951 で指定したLy
6952 \begin_inset ERT
6953 status open
6954
6955 \begin_layout Plain Layout
6956
6957 {}
6958 \end_layout
6959
6960 \end_inset
6961
6962 XServerパイプのパスを指定してください
6963 \begin_inset Foot
6964 status collapsed
6965
6966 \begin_layout Plain Layout
6967 ソース頒布版の
6968 \begin_inset Flex Code
6969 status collapsed
6970
6971 \begin_layout Plain Layout
6972 development/tools
6973 \end_layout
6974
6975 \end_inset
6976
6977 フォルダには、ユーザが設定した
6978 \emph on
6979 lyxpipe
6980 \emph default
6981 を探し出す
6982 \begin_inset Flex Code
6983 status collapsed
6984
6985 \begin_layout Plain Layout
6986 lyxeditor
6987 \end_layout
6988
6989 \end_inset
6990
6991 スクリプトがあります。
6992 \end_layout
6993
6994 \end_inset
6995
6996
6997 \end_layout
6998
6999 \begin_layout Subsubsection*
7000 MacDviX(Mac OS X)
7001 \end_layout
7002
7003 \begin_layout Standard
7004 \begin_inset Flex Code
7005 status collapsed
7006
7007 \begin_layout Plain Layout
7008 /Applications/MacDviX_Folder/calleditor.script
7009 \end_layout
7010
7011 \end_inset
7012
7013 の終わりに
7014 \end_layout
7015
7016 \begin_layout LyX-Code
7017 /Applications/Ly
7018 \begin_inset ERT
7019 status collapsed
7020
7021 \begin_layout Plain Layout
7022
7023 {}
7024 \end_layout
7025
7026 \end_inset
7027
7028 X.app/Contents/MacOS/lyxeditor "$2" $1
7029 \begin_inset Newline newline
7030 \end_inset
7031
7032 exit 1
7033 \end_layout
7034
7035 \begin_layout Standard
7036 という行を付け加えてください。Applicationsフォルダ以外の場所にLyXを導入した場合には、それに従って上記の行を修正してください。
7037 \end_layout
7038
7039 \begin_layout Standard
7040 遡及検索は、Alt-クリック(OPTION-クリック)で始動します。
7041 \end_layout
7042
7043 \begin_layout Subsubsection*
7044 Skim(Mac OS X)
7045 \end_layout
7046
7047 \begin_layout Standard
7048 \begin_inset Flex MenuItem
7049 status collapsed
7050
7051 \begin_layout Plain Layout
7052 設定\SpecialChar \menuseparator
7053 ファイル処理\SpecialChar \menuseparator
7054 ファイル書式\SpecialChar \menuseparator
7055 PDF (pdflatex)
7056 \end_layout
7057
7058 \end_inset
7059
7060 のビューア設定に
7061 \begin_inset Flex Code
7062 status collapsed
7063
7064 \begin_layout Plain Layout
7065 open -a Skim.app $$i
7066 \end_layout
7067
7068 \end_inset
7069
7070 と入力し、
7071 \begin_inset Flex MenuItem
7072 status collapsed
7073
7074 \begin_layout Plain Layout
7075 Skim\SpecialChar \menuseparator
7076 設定\SpecialChar \menuseparator
7077 Sync
7078 \end_layout
7079
7080 \end_inset
7081
7082 でLy
7083 \begin_inset ERT
7084 status collapsed
7085
7086 \begin_layout Plain Layout
7087
7088 {}
7089 \end_layout
7090
7091 \end_inset
7092
7093 Xを選択してください。
7094 \end_layout
7095
7096 \begin_layout Standard
7097 遡及検索は、COMMAND-SHIFT-クリックで始動します。
7098 \end_layout
7099
7100 \begin_layout Subsubsection*
7101 Okular (KDE)
7102 \end_layout
7103
7104 \begin_layout Standard
7105 \begin_inset Flex MenuItem
7106 status collapsed
7107
7108 \begin_layout Plain Layout
7109 設定\SpecialChar \menuseparator
7110 Okularを設定\SpecialChar \ldots{}
7111 \SpecialChar \menuseparator
7112 編集
7113 \end_layout
7114
7115 \end_inset
7116
7117 で「カスタムテキストエディタ」を選択し、コマンドに
7118 \begin_inset Flex Code
7119 status collapsed
7120
7121 \begin_layout Plain Layout
7122 lyxclient -g %f %l
7123 \end_layout
7124
7125 \end_inset
7126
7127 を加えてください。
7128 \end_layout
7129
7130 \begin_layout Standard
7131 遡及検索は、SHIFT-クリックで始動します。
7132 \end_layout
7133
7134 \begin_layout Subsubsection*
7135 YAP(Windows)
7136 \end_layout
7137
7138 \begin_layout Standard
7139 yapを起動し、
7140 \begin_inset Flex MenuItem
7141 status collapsed
7142
7143 \begin_layout Plain Layout
7144 View\SpecialChar \menuseparator
7145 Options
7146 \end_layout
7147
7148 \end_inset
7149
7150 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
7151 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
7152  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
7153 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7154 \begin_inset Flex Code
7155 status collapsed
7156
7157 \begin_layout Plain Layout
7158 lyxeditor.bat
7159 \end_layout
7160
7161 \end_inset
7162
7163 (以下参照)のあるディレクトリを見つけます。
7164 \begin_inset Flex Code
7165 status collapsed
7166
7167 \begin_layout Plain Layout
7168 lyxeditor.bat
7169 \end_layout
7170
7171 \end_inset
7172
7173 を選択してプログラムの引数を
7174 \begin_inset Flex Code
7175 status collapsed
7176
7177 \begin_layout Plain Layout
7178 %f %l
7179 \end_layout
7180
7181 \end_inset
7182
7183 と指定してください。
7184 \begin_inset Flex Code
7185 status collapsed
7186
7187 \begin_layout Plain Layout
7188 lyxeditor.bat
7189 \end_layout
7190
7191 \end_inset
7192
7193 は、
7194 \emph on
7195 lyxpipe
7196 \emph default
7197 を通じてLyXと通信するためのラッパとして使用され、以下のようになっています。
7198 \end_layout
7199
7200 \begin_layout LyX-Code
7201 @echo off
7202 \begin_inset Newline newline
7203 \end_inset
7204
7205 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7206 \backslash
7207
7208 \backslash
7209 .
7210 \backslash
7211 pipe
7212 \backslash
7213 lyxpipe.in
7214 \begin_inset Newline newline
7215 \end_inset
7216
7217 type 
7218 \backslash
7219
7220 \backslash
7221 .
7222 \backslash
7223 pipe
7224 \backslash
7225 lyxpipe.out
7226 \end_layout
7227
7228 \begin_layout Standard
7229 LyXで指定したLyXServerパイプパスが、
7230 \begin_inset Flex Code
7231 status collapsed
7232
7233 \begin_layout Plain Layout
7234
7235 \backslash
7236
7237 \backslash
7238 .
7239 \backslash
7240 pipe
7241 \backslash
7242 lyxpipe
7243 \end_layout
7244
7245 \end_inset
7246
7247 となっていることを確認するか、
7248 \begin_inset Flex Code
7249 status collapsed
7250
7251 \begin_layout Plain Layout
7252 lyxeditor.bat
7253 \end_layout
7254
7255 \end_inset
7256
7257 ラッパの方を適切に修正してください。
7258 \end_layout
7259
7260 \begin_layout Standard
7261 yapでは、遡及検索はダブルクリックで始動します。
7262 \end_layout
7263
7264 \begin_layout Subsubsection*
7265 SumatraPDF(Windows)
7266 \end_layout
7267
7268 \begin_layout Standard
7269 SumatraPDFを遡及検索で使用するためには、
7270 \begin_inset Flex MenuItem
7271 status collapsed
7272
7273 \begin_layout Plain Layout
7274 設定\SpecialChar \menuseparator
7275 ファイル処理\SpecialChar \menuseparator
7276 ファイル書式\SpecialChar \menuseparator
7277 PDF (pdflatex)
7278 \end_layout
7279
7280 \end_inset
7281
7282 のビューア設定で
7283 \begin_inset Flex Code
7284 status collapsed
7285
7286 \begin_layout Plain Layout
7287 SumatraPDF -inverse-search 
7288 \begin_inset Quotes eld
7289 \end_inset
7290
7291 lyxeditor.bat %f %l
7292 \begin_inset Quotes erd
7293 \end_inset
7294
7295
7296 \end_layout
7297
7298 \end_inset
7299
7300
7301 \begin_inset Flex Code
7302 status collapsed
7303
7304 \begin_layout Plain Layout
7305 lyxeditor.bat
7306 \end_layout
7307
7308 \end_inset
7309
7310 は上記のラッパ)と入力してください。SumatraPDF.exeがコマンドPATHにない場合、フルファイル名を使用してください。
7311 \end_layout
7312
7313 \begin_layout Standard
7314 遡及検索はダブルクリックで始動します。
7315 \end_layout
7316
7317 \begin_layout Subsubsection*
7318 YAP(Cygwin)
7319 \end_layout
7320
7321 \begin_layout Standard
7322 まずはじめに、yapがWindows環境での既定のDVIビューアになっていることを確認してから、yapを起動し、
7323 \begin_inset Flex MenuItem
7324 status collapsed
7325
7326 \begin_layout Plain Layout
7327 View\SpecialChar \menuseparator
7328 Options
7329 \end_layout
7330
7331 \end_inset
7332
7333 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
7334 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
7335  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
7336 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7337 \begin_inset Flex Code
7338 status collapsed
7339
7340 \begin_layout Plain Layout
7341 lyxeditor.exe
7342 \end_layout
7343
7344 \end_inset
7345
7346 プログラム(これは、Cygwinでは既定でLyX実行ファイルとともに導入されます)のあるディレクトリを見つけます。
7347 \begin_inset Flex Code
7348 status collapsed
7349
7350 \begin_layout Plain Layout
7351 lyxeditor.exe
7352 \end_layout
7353
7354 \end_inset
7355
7356 を選択してプログラムの引数を
7357 \begin_inset Flex Code
7358 status collapsed
7359
7360 \begin_layout Plain Layout
7361 -g %f %l
7362 \end_layout
7363
7364 \end_inset
7365
7366 と指定してください。これによって、LyXとの通信に
7367 \emph on
7368 lyxsocket
7369 \emph default
7370 が使用されるようになります。何らかの理由で
7371 \emph on
7372 lyxpipe
7373 \emph default
7374 を使用したい場合には、
7375 \begin_inset Flex Code
7376 status collapsed
7377
7378 \begin_layout Plain Layout
7379 -g
7380 \end_layout
7381
7382 \end_inset
7383
7384 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
7385 \end_layout
7386
7387 \begin_layout Standard
7388 yapでは、遡及検索はダブルクリックで始動します。
7389 \end_layout
7390
7391 \begin_layout Subsubsection*
7392 SumatraPDF(Cygwin)
7393 \end_layout
7394
7395 \begin_layout Standard
7396 SumatraPDFを遡及検索で使用するためには、
7397 \begin_inset Flex MenuItem
7398 status collapsed
7399
7400 \begin_layout Plain Layout
7401 設定\SpecialChar \menuseparator
7402 ファイル処理\SpecialChar \menuseparator
7403 ファイル書式\SpecialChar \menuseparator
7404 PDF (pdflatex)
7405 \end_layout
7406
7407 \end_inset
7408
7409 のビューア設定で
7410 \begin_inset Flex Code
7411 status collapsed
7412
7413 \begin_layout Plain Layout
7414 SumatraPDF.sh
7415 \end_layout
7416
7417 \end_inset
7418
7419 と入力してください。ここで
7420 \begin_inset Flex Code
7421 status collapsed
7422
7423 \begin_layout Plain Layout
7424 SumatraPDF.sh
7425 \end_layout
7426
7427 \end_inset
7428
7429 は以下のようなスクリプトです(お使いのコマンドパスに置きます。
7430 \begin_inset Flex Code
7431 status collapsed
7432
7433 \begin_layout Plain Layout
7434 /usr/local/bin
7435 \end_layout
7436
7437 \end_inset
7438
7439 がもっとも良い選択肢でしょう)。
7440 \end_layout
7441
7442 \begin_layout LyX-Code
7443 #!/bin/bash
7444 \begin_inset Newline newline
7445 \end_inset
7446
7447 cd $(dirname $1)
7448 \begin_inset Newline newline
7449 \end_inset
7450
7451 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
7452 \end_layout
7453
7454 \begin_layout Standard
7455 SumatraPDFは、Windowsネイティブのアプリケーションであり、LyXのCygwin版が使用するPOSIXパスを理解しないので、このラッパスクリプトが
7456 必要となります。SumatraPDF.exeがお使いのコマンドパスにない場合は、上記のスクリプトでPOSIXのフルパスを使用してください。
7457 \begin_inset Flex Code
7458 status collapsed
7459
7460 \begin_layout Plain Layout
7461 -g
7462 \end_layout
7463
7464 \end_inset
7465
7466
7467 \emph on
7468 lyxsocket
7469 \emph default
7470 経由の通信を有効にします。ここでも、
7471 \emph on
7472 lyxpipe
7473 \emph default
7474 を使用したい場合には、
7475 \begin_inset Flex Code
7476 status collapsed
7477
7478 \begin_layout Plain Layout
7479 -g
7480 \end_layout
7481
7482 \end_inset
7483
7484 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
7485 \end_layout
7486
7487 \begin_layout Standard
7488 遡及検索はダブルクリックで始動します。
7489 \end_layout
7490
7491 \begin_layout Section
7492 前方検索
7493 \end_layout
7494
7495 \begin_layout Standard
7496 前方検索を有効にするためには、生成されたPDF/DVI出力ファイルに、TeXソースに関する情報を追加する必要があります。これは、第
7497 \begin_inset CommandInset ref
7498 LatexCommand ref
7499 reference "sub:遡及検索"
7500
7501 \end_inset
7502
7503 節に述べられている方法で実行することができます。
7504 \end_layout
7505
7506 \begin_layout Standard
7507 次に、
7508 \begin_inset Flex MenuItem
7509 status collapsed
7510
7511 \begin_layout Plain Layout
7512 設定\SpecialChar \menuseparator
7513 出力\SpecialChar \menuseparator
7514 一般
7515 \end_layout
7516
7517 \end_inset
7518
7519 で自分の使うビューアを利用するように、LyXを設定する必要があります。ただし、yap・xdvi・okular・Sumatra PDFなど、一部のビューアしかこの
7520 操作は利用できません
7521 \begin_inset Foot
7522 status collapsed
7523
7524 \begin_layout Plain Layout
7525 Sumatraの場合には、http://www.istri.fr/zip/CMCDDE.zipからダウンロードできるCMCDDEが必要です。
7526 \end_layout
7527
7528 \end_inset
7529
7530 。Evinceやxpdfなどの他のビューアでは、少なくとも、ファイルの特定頁を読み込み直したり、指し示したりすることができますが、これらの場合にはsynctex
7531 の外部コールを使用することができます。設定ダイアログに用意されている用例をよく研究してください。設定中で置き換えられる値は以下の通りです。
7532 \begin_inset Flex Code
7533 status collapsed
7534
7535 \begin_layout Plain Layout
7536 $$n
7537 \end_layout
7538
7539 \end_inset
7540
7541 は行番号を指し、
7542 \begin_inset Flex Code
7543 status collapsed
7544
7545 \begin_layout Plain Layout
7546 $$t
7547 \end_layout
7548
7549 \end_inset
7550
7551 は書き出された一時.texファイル、
7552 \begin_inset Flex Code
7553 status collapsed
7554
7555 \begin_layout Plain Layout
7556 $$o
7557 \end_layout
7558
7559 \end_inset
7560
7561 は書き出された出力ファイルを指します(一時ディレクトリにどちらが存在するかに依存してdviあるいはpdf)。
7562 \end_layout
7563
7564 \begin_layout Standard
7565 閲覧時には、一時ディレクトリに.dviファイルがあるか.pdfファイルがあるか(特定の文書を閲覧するのにどの書式を使用したか)によって、適当なプレビュー書式をLyX
7566 が動的に選択します。
7567 \end_layout
7568
7569 \begin_layout Chapter
7570 特別な文書クラス
7571 \end_layout
7572
7573 \begin_layout Section
7574 A&Aの論文
7575 \end_layout
7576
7577 \begin_layout Standard
7578
7579 \noun on
7580 Peter Sütterlin文
7581 \end_layout
7582
7583 \begin_layout Subsection
7584 はじめに
7585 \end_layout
7586
7587 \begin_layout Standard
7588 この節では、文書クラス
7589 \family typewriter
7590 aa.cls
7591 \family default
7592 第5.01版を使用して科学雑誌
7593 \emph on
7594 Astronomy and Astrophysics
7595 \emph default
7596 (『天文学と宇宙物理学』:www.edpsciences.fr/aa/ 
7597 \begin_inset Flex URL
7598 status collapsed
7599
7600 \begin_layout Plain Layout
7601
7602 http://www.edpsciences.fr/aa/
7603 \end_layout
7604
7605 \end_inset
7606
7607 )に投稿する論文を執筆するためのLyXの使用法を説明します。このパッケージは、FTPサイト
7608 \end_layout
7609
7610 \begin_layout Standard
7611 \align center
7612 \begin_inset VSpace medskip
7613 \end_inset
7614
7615
7616 \begin_inset Flex URL
7617 status collapsed
7618
7619 \begin_layout Plain Layout
7620
7621 ftp://ftp.edpsciences.org/pub/aa/readme.html
7622 \end_layout
7623
7624 \end_inset
7625
7626
7627 \begin_inset VSpace medskip
7628 \end_inset
7629
7630
7631 \end_layout
7632
7633 \begin_layout Standard
7634 \noindent
7635 からダウンロードすることができます。
7636 \end_layout
7637
7638 \begin_layout Standard
7639 このパッケージには取扱説明書がついていますが、本節は、本来の取扱説明書の代わりとなることを意図したものではなく、あなたの論文を正しい様式に整えるための小さな案内
7640 書であるに過ぎません。
7641 \end_layout
7642
7643 \begin_layout Standard
7644 この学術誌の出版元は、2001年1月1日以降、Springer社からEDP Science社に変更されていることにご注意ください。この出版社の変更によって、th
7645 esaurusコマンドの廃止など、スタイルファイルに若干の変更が加わっています。LyXのaaクラスは、スタイルファイルの最新版(第5.01版)をサポートしています
7646 。もし古い版が装備されている場合には、更新してください。互換性のために、古い(第4版)レイアウトは、
7647 \family sans
7648 article (A&A V4)
7649 \family default
7650 として残してあります。
7651 \family typewriter
7652 $LyXDir/layouts/aapaper.layout
7653 \family default
7654 のコメントをご参照ください。
7655 \end_layout
7656
7657 \begin_layout Subsection
7658 最初の一歩
7659 \end_layout
7660
7661 \begin_layout Standard
7662 LyXとともに頒布されている例示用のひな型を土台として、書き始めることをお勧めします。ひな型を使用しない場合には、以下の設定にしてください。
7663 \end_layout
7664
7665 \begin_layout Itemize
7666
7667 \family sans
7668 文書\SpecialChar \menuseparator
7669 設定
7670 \family default
7671 ダイアログで
7672 \family sans
7673 article (A&A)
7674 \family default
7675 を選択してください(まぁ、これは自明ですね)。
7676 \end_layout
7677
7678 \begin_layout Itemize
7679
7680 \family sans
7681 ページレイアウト
7682 \family default
7683 オプションは変更しないで、既定値のままに設定しておいてください。全体のレイアウトはマクロが行うので、何も変更してはいけません。
7684 \end_layout
7685
7686 \begin_layout Subsection
7687 へッダ部
7688 \end_layout
7689
7690 \begin_layout Standard
7691 最初に入力すべきものは、へッダ情報です。ヘッダ情報には、以下の7つの項目があり、いくつかは必須ではありません。
7692 \end_layout
7693
7694 \begin_layout Itemize
7695
7696 \family sans
7697 タイトル
7698 \family default
7699 :[必須]
7700 \end_layout
7701
7702 \begin_layout Itemize
7703
7704 \family sans
7705 サブタイトル
7706 \family default
7707 :[非必須]
7708 \end_layout
7709
7710 \begin_layout Itemize
7711
7712 \family sans
7713 著者
7714 \family default
7715 :[必須]
7716 \end_layout
7717
7718 \begin_layout Itemize
7719
7720 \family sans
7721 住所
7722 \family default
7723 :[必須]
7724 \end_layout
7725
7726 \begin_layout Itemize
7727
7728 \family sans
7729 抜き刷り
7730 \family default
7731 :[非必須]著者が複数いる場合、抜き刷りの送付を依頼するのに連絡すべき人を記す。
7732 \end_layout
7733
7734 \begin_layout Itemize
7735
7736 \family sans
7737 メール
7738 \family default
7739 :[非必須]連絡用の電子メールアドレス。
7740 \end_layout
7741
7742 \begin_layout Itemize
7743
7744 \family sans
7745 日付
7746 \family default
7747 :[必須]推奨されるフォーマットは、
7748 \family typewriter
7749 Received: <日付>; Accepted <日付>
7750 \family default
7751 です。
7752 \end_layout
7753
7754 \begin_layout Standard
7755
7756 \family typewriter
7757
7758 \backslash
7759 maketitle
7760 \family default
7761 コマンドは、へッダが終了した場所に、LyXが自動的に入れてくれるので、手動で挿入する必要はありません。各項目の順序は関係ありませんが、見た目のためと、実際の文書
7762 のレイアウトに合わせるために、上記の順序を維持しておくと良いでしょう。
7763 \end_layout
7764
7765 \begin_layout Standard
7766 現住所の付記などのために、へッダ部に脚注を挿入したい場合には、
7767 \family sans
7768 挿入\SpecialChar \menuseparator
7769 脚注
7770 \family default
7771 を使用して標準の脚注を挿入してください。この場合には、LyXは自動的に
7772 \family typewriter
7773
7774 \backslash
7775 thanks{}
7776 \family default
7777 を使用します。
7778 \end_layout
7779
7780 \begin_layout Standard
7781 これらのトピックの他に、このマクロは、LyXが対応していない、以下の3つのLaTeXコマンドを使用します。
7782 \end_layout
7783
7784 \begin_layout Itemize
7785 複数の著者名あるいは所属名を区切るための
7786 \family typewriter
7787
7788 \backslash
7789 and
7790 \end_layout
7791
7792 \begin_layout Itemize
7793 著者と所属の対応付けをするための
7794 \family typewriter
7795
7796 \backslash
7797 inst{<番号>}
7798 \family default
7799 。所属は、
7800 \family sans
7801 住所
7802 \family default
7803 フィールドに現れる順に番号が付けられるので、各著者に番号マーカーを置く必要があります。
7804 \end_layout
7805
7806 \begin_layout Itemize
7807
7808 \family typewriter
7809
7810 \backslash
7811 email{アドレス}
7812 \family default
7813 は、至急連絡用に電子メールアドレスを付記します。
7814 \end_layout
7815
7816 \begin_layout Standard
7817 いずれの場合にも、LyX中に対応したコマンドを入力し、LaTeXコードとしてマークしてください。
7818 \begin_inset Flex Code
7819 status collapsed
7820
7821 \begin_layout Plain Layout
7822 $LyXDir/examples
7823 \end_layout
7824
7825 \end_inset
7826
7827 にある用例を参照してください。
7828 \end_layout
7829
7830 \begin_layout Subsection
7831 概要
7832 \end_layout
7833
7834 \begin_layout Standard
7835 概要は、へッダ部の直後に置きます。第5版から、概要は環境からコマンドに変更され、一段落に限るという制限が加えられました。さらに、ここにはキーワードを含む項目を入
7836 れなくてはなりません。これは、まだLyXでは実装されていないため、LaTeXコマンド
7837 \family typewriter
7838
7839 \backslash
7840 keywords{}
7841 \family default
7842 を手動で入力し、LaTeXコードとしてマークする必要があります。用例にある論文を参照してください。
7843 \end_layout
7844
7845 \begin_layout Subsection
7846 サポートされる環境
7847 \end_layout
7848
7849 \begin_layout Standard
7850 A&A論文用レイアウトでは、文章を構造化するために、以下の環境がサポートされています。
7851 \end_layout
7852
7853 \begin_layout Itemize
7854
7855 \family sans
7856 標準
7857 \end_layout
7858
7859 \begin_layout Itemize
7860
7861 \family sans
7862
7863 \end_layout
7864
7865 \begin_layout Itemize
7866
7867 \family sans
7868 小節
7869 \end_layout
7870
7871 \begin_layout Itemize
7872
7873 \family sans
7874 小々節
7875 \end_layout
7876
7877 \begin_layout Itemize
7878
7879 \family sans
7880 箇条書き(記号)
7881 \end_layout
7882
7883 \begin_layout Itemize
7884
7885 \family sans
7886 箇条書き(連番)
7887 \end_layout
7888
7889 \begin_layout Itemize
7890
7891 \family sans
7892 箇条書き(記述)
7893 \end_layout
7894
7895 \begin_layout Itemize
7896
7897 \family sans
7898 キャプション
7899 \end_layout
7900
7901 \begin_layout Itemize
7902
7903 \family sans
7904 概要
7905 \end_layout
7906
7907 \begin_layout Itemize
7908
7909 \family sans
7910 謝辞(Acknowledgment)
7911 \end_layout
7912
7913 \begin_layout Itemize
7914
7915 \family sans
7916 参考文献
7917 \end_layout
7918
7919 \begin_layout Itemize
7920
7921 \family sans
7922 LaTeX
7923 \end_layout
7924
7925 \begin_layout Subsection
7926 LyXでサポートされていないコマンド
7927 \end_layout
7928
7929 \begin_layout Standard
7930 LyXの
7931 \family sans
7932 article (A&A)
7933 \family default
7934 レイアウトでは、まだサポートされていないコマンドがあります。そのうちいくつかは既に紹介しましたが、網羅するために、以下にすべて列挙しておきます。
7935 \end_layout
7936
7937 \begin_layout Itemize
7938
7939 \family typewriter
7940
7941 \backslash
7942 and
7943 \end_layout
7944
7945 \begin_layout Itemize
7946
7947 \family typewriter
7948
7949 \backslash
7950 email
7951 \end_layout
7952
7953 \begin_layout Itemize
7954
7955 \family typewriter
7956
7957 \backslash
7958 appendix
7959 \end_layout
7960
7961 \begin_layout Itemize
7962
7963 \family typewriter
7964
7965 \backslash
7966 authorrunning
7967 \end_layout
7968
7969 \begin_layout Itemize
7970
7971 \family typewriter
7972
7973 \backslash
7974 inst{}
7975 \end_layout
7976
7977 \begin_layout Itemize
7978
7979 \family typewriter
7980
7981 \backslash
7982 keywords{}
7983 \end_layout
7984
7985 \begin_layout Itemize
7986
7987 \family typewriter
7988
7989 \backslash
7990 object{}
7991 \end_layout
7992
7993 \begin_layout Itemize
7994
7995 \family typewriter
7996
7997 \backslash
7998 titlerunning{}
7999 \end_layout
8000
8001 \begin_layout Standard
8002 これらのコマンドのいずれかを使いたい場合には、自分で入力する必要があります。
8003 \series bold
8004 これをLaTeXコマンドとしてマークすることを忘れないで下さい。
8005 \end_layout
8006
8007 \begin_layout Subsection
8008 図フロートおよび表フロート
8009 \end_layout
8010
8011 \begin_layout Standard
8012 LyXは、必要なフロート環境
8013 \family sans
8014 figure
8015 \family default
8016
8017 \family sans
8018 figure*
8019 \family default
8020
8021 \family sans
8022 table
8023 \family default
8024
8025 \family sans
8026 table*
8027 \family default
8028 をサポートしていますので、ここでは詳しい説明はしません。
8029 \emph on
8030 ユーザーの手引き
8031 \emph default
8032 をご覧ください。ただ、表は左揃えにしなくてはならないことに注意して下さい。そうするためには、表を選択して、
8033 \family sans
8034 編集\SpecialChar \menuseparator
8035 段落設定
8036 \family default
8037 で配置を変更してください。
8038 \end_layout
8039
8040 \begin_layout Standard
8041 一つだけ、特別なものがあります。それは、図横にキャプションを配置する図です。この図を作成するには、以下のようにしなくてはなりません。
8042 \end_layout
8043
8044 \begin_layout Enumerate
8045
8046 \family sans
8047 挿入\SpecialChar \menuseparator
8048 フロート\SpecialChar \menuseparator
8049
8050 \family default
8051 を使って、幅広の図フロートを作成します。それから、図フロートのラベルを右クリックして
8052 \begin_inset Flex MenuItem
8053 status collapsed
8054
8055 \begin_layout Plain Layout
8056 設定\SpecialChar \ldots{}
8057
8058 \end_layout
8059
8060 \end_inset
8061
8062 を選択し、それで開かれる
8063 \family sans
8064 フロートの設定
8065 \family default
8066 ダイアログで
8067 \family sans
8068 段をまたぐ
8069 \family default
8070 を有効にして、
8071 \family sans
8072 OK
8073 \family default
8074 ボタンを押します。
8075 \end_layout
8076
8077 \begin_layout Enumerate
8078 キャプション文を入力します。
8079 \end_layout
8080
8081 \begin_layout Enumerate
8082 キャプションの前にカーソルを移動し、
8083 \family sans
8084 Return
8085 \family default
8086 を押して、カーソルをキャプションの上に移動します。
8087 \end_layout
8088
8089 \begin_layout Enumerate
8090 図を挿入します。
8091 \end_layout
8092
8093 \begin_layout Enumerate
8094 カーソルを図の後ろに置いて、
8095 \family sans
8096 挿入\SpecialChar \menuseparator
8097 整形
8098 \bar under
8099 \SpecialChar \menuseparator
8100
8101 \bar default
8102 水平方向の空白
8103 \family default
8104 を選択して
8105 \family sans
8106 水平方向の空白の設定
8107 \family default
8108 ダイアログを開き、
8109 \family sans
8110 空白
8111 \family default
8112 ドロップダウンから
8113 \family sans
8114 水平フィル
8115 \family default
8116 を選択して、水平フィルを挿入します。
8117 \end_layout
8118
8119 \begin_layout Enumerate
8120
8121 \family sans
8122 挿入\SpecialChar \menuseparator
8123 TeXコード
8124 \family default
8125 を選択して、TeX差込枠を挿入します。
8126 \end_layout
8127
8128 \begin_layout Enumerate
8129 TeX差込枠中に
8130 \family typewriter
8131
8132 \backslash
8133 parbox[b]{55mm}{
8134 \family default
8135 と入力します。
8136 \series bold
8137 ここでは波括弧を閉じないでください。
8138 \end_layout
8139
8140 \begin_layout Enumerate
8141 カーソルをキャプション文の後ろに移動し、
8142 \family sans
8143 挿入\SpecialChar \menuseparator
8144 TeXコード
8145 \family default
8146 を選択して、別のTeX差込枠を挿入し、その中に閉じ括弧を入力します 。
8147 \end_layout
8148
8149 \begin_layout Standard
8150 例示用論文中の図もご参照ください。
8151 \end_layout
8152
8153 \begin_layout Subsection
8154 Refereeレイアウト
8155 \end_layout
8156
8157 \begin_layout Standard
8158 投稿用には、論文を特別なダブルスペースレイアウトに整形しなくてはなりません。このためには、文書クラスに
8159 \family typewriter
8160 referee
8161 \family default
8162 オプションを与える必要があります。これは、
8163 \family sans
8164 文書\SpecialChar \menuseparator
8165 設定
8166 \family default
8167 ダイアログの
8168 \family sans
8169 任意設定
8170 \family default
8171 クラスオプションフィールドを使って行うことができます。この欄に
8172 \family typewriter
8173 referee
8174 \family default
8175 と云う文字列を入力してください。
8176 \end_layout
8177
8178 \begin_layout Subsection
8179 例示用論文
8180 \end_layout
8181
8182 \begin_layout Standard
8183
8184 \family sans
8185 Examples
8186 \family default
8187 ディレクトリには、LyXで書かれた例示用論文が収録されています。これは、元のマクロパッケージの例示用論文をLyX用に直したものです。これはヒントを得るために使用
8188 したり、元の LaTeXコードとLyXでの書き方の比較に使ったりしてください。
8189 \end_layout
8190
8191 \begin_layout Section
8192 AASTeX
8193 \end_layout
8194
8195 \begin_layout Standard
8196
8197 \noun on
8198 Mike Ressler
8199 \noun default
8200
8201 \end_layout
8202
8203 \begin_layout Subsection
8204 はじめに
8205 \end_layout
8206
8207 \begin_layout Standard
8208 AASTeXは、American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑
8209 誌)同誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of
8210  the Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために、同学会が作成したマクロ集
8211 です。LyXは、これらの文書を生成する上で、なかでも数式・引用・画像処理能力において、優れたツールであることが認識されています。LyXは、同マクロ第5.0版以降を
8212 必要としており、できればここで説明されている第5.2版以降が望まれます。第5.0版未満の版は、LaTeX2.09で使用するよう企図されているため、根本的にLyXとは互
8213 換性がありません。AASTeXパッケージは、以下のAASTeXウェブサイトからダウンロードできるでしょう。
8214 \end_layout
8215
8216 \begin_layout Standard
8217 \align center
8218 \begin_inset VSpace medskip
8219 \end_inset
8220
8221
8222 \begin_inset Flex URL
8223 status collapsed
8224
8225 \begin_layout Plain Layout
8226
8227 http://www.journals.uchicago.edu/AAS/AASTeX
8228 \end_layout
8229
8230 \end_inset
8231
8232
8233 \begin_inset VSpace medskip
8234 \end_inset
8235
8236
8237 \end_layout
8238
8239 \begin_layout Standard
8240 パッケージ中には、完備したユーザーの手引きが収録されていますので、LyXで論文を書き始める前に、その中身を完全に理解しておく必要があります。LyXは、AASTe
8241 Xの全コマンドを理解する必然性をなくすものではなく、すべてを手入力する苦労を減らすだけです。仕上がりのLaTeX文書が、論文を投稿しようとしているジャーナルの要
8242 求事項に完全に合致していることを確認するのは、あなたの責任です。
8243 \end_layout
8244
8245 \begin_layout Subsection
8246 新しい論文を書き始める
8247 \end_layout
8248
8249 \begin_layout Standard
8250 論文を書き始めるには、AASTeXひな型ファイルを土台に始めることを強くお勧めします。
8251 \begin_inset Flex MenuItem
8252 status collapsed
8253
8254 \begin_layout Plain Layout
8255 ファイル\SpecialChar \menuseparator
8256 新規(ひな型使用)
8257 \end_layout
8258
8259 \end_inset
8260
8261 をクリックして、新しいファイル名を入力し、ひな型
8262 \family typewriter
8263 aastex.lyx
8264 \family default
8265 を選んでください。これには、論文原稿のほとんどに共通して使われるフィールドが書き込まれています。書き込まれている文字列(括弧
8266 \family typewriter
8267 <>
8268 \family default
8269 を含む)を正しい情報で上書きしてください。AASTeXコマンド・AASTeX環境の多くは、LyX中で直接実行することができますが、特に
8270 \family typewriter
8271
8272 \backslash
8273 altaffilmark
8274 \family default
8275
8276 \family typewriter
8277
8278 \backslash
8279 altaffiltext
8280 \family default
8281 のようにできないものもあります。この二つのコマンドは、ひな型ファイルを開いたとき、赤色に表示されているのですぐ目に入ることでしょう。このようなコマンドは、直接L
8282 aTeXコードを入力して、それをTeXコードとしてマークしなければなりません。このようなコマンドは、TeXコードあるいはEvil Red Text(邪悪な赤い文
8283 )と呼ばれます。AASTeX文書に必要とされる TeXコードを最小にするよう努力はしていますが、まだ望まれるほどにはなっていません。
8284 \end_layout
8285
8286 \begin_layout Subsection
8287 論文を書き終わったら
8288 \end_layout
8289
8290 \begin_layout Standard
8291 論文を満足する水準で書き終え、プレビューや印刷が正しく為されているとしても、まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています。
8292 \end_layout
8293
8294 \begin_layout Enumerate
8295 論文を LaTeXファイルとして書き出します(
8296 \family sans
8297 ファイル\SpecialChar \menuseparator
8298 書き出し\SpecialChar \menuseparator
8299 LateX
8300 \family default
8301 )。
8302 \end_layout
8303
8304 \begin_layout Enumerate
8305 出力した
8306 \family typewriter
8307 .tex
8308 \family default
8309 ファイルを好きなエディタで編集します。
8310 \end_layout
8311
8312 \begin_deeper
8313 \begin_layout Enumerate
8314
8315 \family typewriter
8316
8317 \backslash
8318 documentclass
8319 \family default
8320 コマンドよりも前のコメント行を削除します。
8321 \end_layout
8322
8323 \begin_layout Enumerate
8324
8325 \family typewriter
8326
8327 \backslash
8328 usepackage...{fontenc}
8329 \family default
8330 という行があれば(通常は
8331 \family typewriter
8332
8333 \backslash
8334 documentclass
8335 \family default
8336 の直後にあります)削除します。また、
8337 \family typewriter
8338
8339 \backslash
8340 secnumdepth
8341 \family default
8342 行があれば、これも削除します。
8343 \end_layout
8344
8345 \begin_layout Enumerate
8346 LaTeXプリアンブル中に意図的に置いたコマンド(
8347 \family typewriter
8348 .tex
8349 \family default
8350 ファイル中、「User specified LaTeX commands」というコメントの直後にあります)を除いて、
8351 \family typewriter
8352
8353 \backslash
8354 makeatletter
8355 \family default
8356
8357 \family typewriter
8358
8359 \backslash
8360 makeatother
8361 \family default
8362 の間のもの(これらのコマンドを含む)をすべて削除します。
8363 \end_layout
8364
8365 \end_deeper
8366 \begin_layout Enumerate
8367 編集後のファイルを LaTeXにかけて、正しく処理されることを確認します。
8368 \end_layout
8369
8370 \begin_layout Enumerate
8371 学術誌の要求事項を再読して、ファイル名と書式が正しいことを確認します。
8372 \end_layout
8373
8374 \begin_layout Enumerate
8375 投稿してください。
8376 \end_layout
8377
8378 \begin_layout Subsection
8379 特定のコマンドに関するコメント
8380 \end_layout
8381
8382 \begin_layout Standard
8383 AASTeXユーザーの手引き(
8384 \family typewriter
8385 aasguide.tex
8386 \family default
8387 )に、各AASTeXコマンドの詳しい説明があるので、ここでは、各コマンドの使用法の詳細な説明は行いません。そこで、ここではユーザーの手引きに現れるとおりに一覧を
8388 列挙して、必要なところだけコメントを加えることにしましょう。
8389 \end_layout
8390
8391 \begin_layout Subsubsection
8392 期待通りに動作するもの
8393 \end_layout
8394
8395 \begin_layout Standard
8396 これらは期待通りに動作するので、ここでは列挙するだけにして、コマンドの説明されている節を挙げておきます。
8397 \family typewriter
8398
8399 \backslash
8400 documentclass
8401 \family default
8402 (2.1.1)・
8403 \family typewriter
8404
8405 \backslash
8406 begin{document}
8407 \family default
8408 (2.2)・
8409 \family typewriter
8410
8411 \backslash
8412 title
8413 \family default
8414 (2.3)・
8415 \family typewriter
8416
8417 \backslash
8418 author
8419 \family default
8420 (2.3)・
8421 \family typewriter
8422
8423 \backslash
8424 affil
8425 \family default
8426 (2.3)・
8427 \family typewriter
8428
8429 \backslash
8430 abstract
8431 \family default
8432 (2.4)・
8433 \family typewriter
8434
8435 \backslash
8436 keywords
8437 \family default
8438 (2.5)・
8439 \family typewriter
8440
8441 \backslash
8442 section
8443 \family default
8444 (2.7)・
8445 \family typewriter
8446
8447 \backslash
8448 subsection
8449 \family default
8450 (2.7)・
8451 \family typewriter
8452
8453 \backslash
8454 subsubsection
8455 \family default
8456 (2.7)・
8457 \family typewriter
8458
8459 \backslash
8460 paragraph
8461 \family default
8462 (2.7)・
8463 \family typewriter
8464
8465 \backslash
8466 facility
8467 \family default
8468 (2.10)・
8469 \family typewriter
8470
8471 \backslash
8472 begin{displaymath}
8473 \family default
8474 (2.12)・
8475 \family typewriter
8476
8477 \backslash
8478 begin{equation}
8479 \family default
8480 (2.12)・
8481 \family typewriter
8482
8483 \backslash
8484 begin{eqnarray}
8485 \family default
8486 (2.12)・
8487 \family typewriter
8488
8489 \backslash
8490 begin{mathletters}
8491 \family default
8492 (2.12)・
8493 \family typewriter
8494
8495 \backslash
8496 begin{thebibliography}
8497 \family default
8498 (2.13.1)・
8499 \family typewriter
8500
8501 \backslash
8502 bibitem
8503 \family default
8504 (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
8505 \family typewriter
8506
8507 \backslash
8508 begin{table}
8509 \family default
8510 (2.15.4)・
8511 \family typewriter
8512
8513 \backslash
8514 begin{tabular}
8515 \family default
8516 (2.15.4)・
8517 \family typewriter
8518
8519 \backslash
8520 caption
8521 \family default
8522 (2.15.4)・
8523 \family typewriter
8524
8525 \backslash
8526 label
8527 \family default
8528 (他にもあるが特に2.15.4)・
8529 \family typewriter
8530
8531 \backslash
8532 tablerefs
8533 \family default
8534 (2.15.5)・
8535 \family typewriter
8536
8537 \backslash
8538 tablecomments
8539 \family default
8540 (2.15.5)・
8541 \family typewriter
8542
8543 \backslash
8544 url
8545 \family default
8546 (2.17.4)・
8547 \family typewriter
8548
8549 \backslash
8550 end{document}
8551 \family default
8552 (2.18)。
8553 \end_layout
8554
8555 \begin_layout Standard
8556 以下のスタイルオプションも正しく動作します。
8557 \family typewriter
8558 longabstract
8559 \family default
8560 (2.4)・
8561 \family typewriter
8562 preprint
8563 \family default
8564 (3.2.1)・
8565 \family typewriter
8566 preprint2
8567 \family default
8568 (3.2.2)・
8569 \family typewriter
8570 eqsecnum
8571 \family default
8572 (3.3)・
8573 \family typewriter
8574 flushrt
8575 \family default
8576 (3.4)。これらは、
8577 \begin_inset Flex MenuItem
8578 status collapsed
8579
8580 \begin_layout Plain Layout
8581 文書\SpecialChar \menuseparator
8582 設定
8583 \end_layout
8584
8585 \end_inset
8586
8587 にある、
8588 \family sans
8589 クラスオプション
8590 \family default
8591
8592 \family sans
8593 任意設定
8594 \family default
8595 ボックスに入力してください。
8596 \end_layout
8597
8598 \begin_layout Subsubsection
8599 動作するが、若干説明が必要なもの
8600 \end_layout
8601
8602 \begin_layout Standard
8603 以下のコマンドは動作しますが、若干の説明が必要です。
8604 \end_layout
8605
8606 \begin_layout Itemize
8607 以下の項目は、学術誌の編集者向けに取ってあるものですが、どうしても必要ならば、LaTeXプリアンブルに入れることができます。
8608 \family typewriter
8609
8610 \backslash
8611 received
8612 \family default
8613
8614 \family typewriter
8615
8616 \backslash
8617 revised
8618 \family default
8619
8620 \family typewriter
8621
8622 \backslash
8623 accepted
8624 \family default
8625
8626 \family typewriter
8627
8628 \backslash
8629 ccc
8630 \family default
8631
8632 \family typewriter
8633 cpright
8634 \family default
8635 (すべて 2.1.3)。
8636 \end_layout
8637
8638 \begin_layout Itemize
8639 以下の項目は、LaTeXのプリアンブルに置くことができるもので、これらは、ひな型ファイルには、空の引数と共に含まれています。
8640 \family typewriter
8641
8642 \backslash
8643 slugcomment
8644 \family default
8645 (2.1.4)・
8646 \family typewriter
8647
8648 \backslash
8649 shorttitle
8650 \family default
8651 (2.1.5)・
8652 \family typewriter
8653
8654 \backslash
8655 shortauthors
8656 \family default
8657 (2.1.5)。
8658 \end_layout
8659
8660 \begin_layout Itemize
8661
8662 \family typewriter
8663
8664 \backslash
8665 email
8666 \family default
8667 (2.3)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、TeXコードを使用してください。
8668 \end_layout
8669
8670 \begin_layout Itemize
8671
8672 \family typewriter
8673
8674 \backslash
8675 and
8676 \family default
8677 (2.3)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8678 \end_layout
8679
8680 \begin_layout Itemize
8681
8682 \family typewriter
8683
8684 \backslash
8685 notetoeditor
8686 \family default
8687 (2.6)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、TeXコードを使用してください。
8688 \end_layout
8689
8690 \begin_layout Itemize
8691
8692 \family typewriter
8693
8694 \backslash
8695 placetable
8696 \family default
8697 (2.8)―相互参照用タグを挿入することはできません。手動でタグ名を入力する必要があります。
8698 \end_layout
8699
8700 \begin_layout Itemize
8701
8702 \family typewriter
8703
8704 \backslash
8705 placefigure
8706 \family default
8707 (2.8)—
8708 \family typewriter
8709
8710 \backslash
8711 placetable
8712 \family default
8713 と同様。
8714 \end_layout
8715
8716 \begin_layout Itemize
8717
8718 \family typewriter
8719
8720 \backslash
8721 acknowledgements
8722 \family default
8723 (2.9)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8724 \end_layout
8725
8726 \begin_layout Itemize
8727
8728 \family typewriter
8729
8730 \backslash
8731 appendix
8732 \family default
8733 (2.11)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8734 \end_layout
8735
8736 \begin_layout Itemize
8737
8738 \family typewriter
8739
8740 \backslash
8741 figcaption
8742 \family default
8743 (2.14.2)―文章のはじめにカーソルを置いて
8744 \begin_inset Flex MenuItem
8745 status collapsed
8746
8747 \begin_layout Plain Layout
8748 挿入\SpecialChar \menuseparator
8749 短縮タイトル
8750 \end_layout
8751
8752 \end_inset
8753
8754 を選択すれば、非必須のファイル名引数を挿入することができます。「短縮タイトル」とありますが、
8755 \family typewriter
8756
8757 \backslash
8758 figcaption
8759 \family default
8760 が必要とする型の非必須引数を挿入します。望むらくはいつの日か改名されることでしょう。
8761 \end_layout
8762
8763 \begin_layout Itemize
8764
8765 \family typewriter
8766
8767 \backslash
8768 objectname
8769 \family default
8770 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
8771 \family typewriter
8772
8773 \backslash
8774 figcaption
8775 \family default
8776 と同様。
8777 \end_layout
8778
8779 \begin_layout Itemize
8780
8781 \family typewriter
8782
8783 \backslash
8784 dataset
8785 \family default
8786 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
8787 \family typewriter
8788
8789 \backslash
8790 figcaption
8791 \family default
8792 と同様。
8793 \end_layout
8794
8795 \begin_layout Subsubsection
8796 実装されていないため、TeXコードを使用するもの
8797 \end_layout
8798
8799 \begin_layout Standard
8800
8801 \family typewriter
8802
8803 \backslash
8804 altaffilmark
8805 \family default
8806 (2.3)・
8807 \family typewriter
8808
8809 \backslash
8810 altaffiltext
8811 \family default
8812 (2.3)・
8813 \family typewriter
8814
8815 \backslash
8816 eqnum
8817 \family default
8818 (2.12)・
8819 \family typewriter
8820
8821 \backslash
8822 setcounter{equation}
8823 \family default
8824 (2.12)・学術誌名略語(2.12.4)・
8825 \family typewriter
8826
8827 \backslash
8828 figurenum
8829 \family default
8830 (2.14.1)・
8831 \family typewriter
8832
8833 \backslash
8834 epsscale
8835 \family default
8836 (2.14.1)・
8837 \family typewriter
8838
8839 \backslash
8840 plotone
8841 \family default
8842 (2.14.1)・
8843 \family typewriter
8844
8845 \backslash
8846 plottwo
8847 \family default
8848 (2.14.1)・
8849 \family typewriter
8850
8851 \backslash
8852 tablenum
8853 \family default
8854 (2.15.4)・
8855 \family typewriter
8856
8857 \backslash
8858 tableline
8859 \family default
8860 (2.15.4:入れたい場所の後ろに、左側セルの最初の要素として挿入する。表中では、LyXの方法は使わないでください)・
8861 \family typewriter
8862
8863 \backslash
8864 tablenotemark
8865 \family default
8866 (2.15.5)・
8867 \family typewriter
8868
8869 \backslash
8870 tablenotetext
8871 \family default
8872 (2.15.5)・補遺(2.17)の大半(
8873 \family typewriter
8874
8875 \backslash
8876 objectname
8877 \family default
8878
8879 \family typewriter
8880
8881 \backslash
8882 dataset
8883 \family default
8884
8885 \family typewriter
8886
8887 \backslash
8888 url
8889 \family default
8890
8891 \family typewriter
8892
8893 \backslash
8894 email
8895 \family default
8896 を除く。上記参照)・
8897 \family typewriter
8898
8899 \backslash
8900 singlespace
8901 \family default
8902 (3.1)・
8903 \family typewriter
8904
8905 \backslash
8906 doublespace
8907 \family default
8908 (3.1)・
8909 \family typewriter
8910
8911 \backslash
8912 onecolumn
8913 \family default
8914 (3.2)・
8915 \family typewriter
8916
8917 \backslash
8918 twocolumn
8919 \family default
8920 (3.2)
8921 \end_layout
8922
8923 \begin_layout Subsubsection
8924 実装できないもの
8925 \end_layout
8926
8927 \begin_layout Standard
8928 references(2.12.3)環境とdeluxetable(2.14)環境は、少なくとも意味のあるような形で実装することができないので、無視してください。もし、
8929 絶対に、どうしても、deluxetableを使う必要があるならば、テキストエディタで別ファイルとして編集し、
8930 \begin_inset Flex MenuItem
8931 status collapsed
8932
8933 \begin_layout Plain Layout
8934 挿入\SpecialChar \menuseparator
8935 ファイル
8936 \begin_inset Formula $\text{\textipa{}}$
8937 \end_inset
8938
8939 \SpecialChar \menuseparator
8940 子文書
8941 \end_layout
8942
8943 \end_inset
8944
8945 を使用して、LyXファイルに読み込むことを推奨します。この実例は、
8946 \family typewriter
8947 aas_sample.lyx
8948 \family default
8949 ファイルをご参照ください。
8950 \end_layout
8951
8952 \begin_layout Subsection
8953 FAQとヒントと技とその他の考察
8954 \end_layout
8955
8956 \begin_layout Subsubsection
8957 LyXをAASTeXと協調させる
8958 \end_layout
8959
8960 \begin_layout Standard
8961 LyXに、新しいレイアウトと文書クラスを認識させるには若干コツが要ります。もしうまく行かなかったら、次のようにしてみてください。
8962 \end_layout
8963
8964 \begin_layout Enumerate
8965 LaTeXが、AASTeXを検出できることを確認してください。AASTeX頒布版に含まれる
8966 \family typewriter
8967 sample.tex
8968 \family default
8969 (あるいは
8970 \family typewriter
8971 table.tex
8972 \family default
8973 でも可)を、LaTeXやAASTeXとまったく関係のないディレクトリにコピーして、
8974 \family typewriter
8975 sample.tex
8976 \family default
8977 をLaTeXにかけてください。
8978 \end_layout
8979
8980 \begin_layout Enumerate
8981
8982 \family typewriter
8983 aastex.layout
8984 \family default
8985 が、LyXの
8986 \family typewriter
8987 layouts
8988 \family default
8989 フォルダにあることを確認してください。
8990 \end_layout
8991
8992 \begin_layout Enumerate
8993 LyX中から
8994 \family sans
8995 ツール\SpecialChar \menuseparator
8996 再初期設定
8997 \family default
8998 を再度実行し、LyXを再起動してください。
8999 \end_layout
9000
9001 \begin_layout Enumerate
9002 ひな型ではなく、通常の新規ファイルを開いてください。AASTeXが、
9003 \family sans
9004 文書\SpecialChar \menuseparator
9005 設定
9006 \family default
9007 のクラス一覧に表示されていますか?
9008 \end_layout
9009
9010 \begin_layout Standard
9011 既存のAASTeX文書を処理する際に、AASTeXレイアウトを見つけられないとか、「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が
9012 出るようであれば、正しい導入が行われていません。
9013 \end_layout
9014
9015 \begin_layout Subsubsection
9016 表を処理する際のLaTeXエラー
9017 \end_layout
9018
9019 \begin_layout Standard
9020 既定では、LyXは、表のキャプションやタイトルを中央揃えにしようと試みます。これはAASTeXと悪い相互干渉を発生させるようですので、キャプションやタイトルのど
9021 こかをクリックして、
9022 \family sans
9023 編集\SpecialChar \menuseparator
9024 段落設定
9025 \family default
9026 を選択し、
9027 \family sans
9028 配置
9029 \family default
9030
9031 \family sans
9032 両端揃え
9033 \family default
9034 に設定してください。私のところではこれで解決しました。
9035 \end_layout
9036
9037 \begin_layout Subsubsection
9038 参考文献
9039 \end_layout
9040
9041 \begin_layout Standard
9042 若干の注意があります。(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです。書誌情報を入力する際には、最後の著者と、著作年を入れる括弧の間にスペ
9043 ースを
9044 \emph on
9045 入れない
9046 \emph default
9047 ようにしてください。たとえば、
9048 \family typewriter
9049 Ressler(1992)
9050 \family default
9051 はいいですが、
9052 \family typewriter
9053 Ressler (1992)
9054 \family default
9055 ではだめです。(2)書誌情報の入力の仕方は、必ずしも自明ではありません。もっとも簡単な方法は、文書の最後に、最初の書誌情報をまず書き込み、それを
9056 \family sans
9057 参考文献
9058 \family default
9059 環境としてマークすることです。すると、入力したものの前に、小さな灰色のボックスが現れます。このボックスをクリックして、残りの情報を入力してください。新しい参考文
9060 献を追加するには、既存の参考文献の後ろでリターンを押します。すると、新しいボックスの付いた新規行が出てくるので、後は同様にしてください。
9061 \end_layout
9062
9063 \begin_layout Subsubsection
9064 EPSファイルの読み込み
9065 \end_layout
9066
9067 \begin_layout Standard
9068 AASTeXには、自前の図関連コマンド(たとえば
9069 \family typewriter
9070
9071 \backslash
9072 plotone
9073 \family default
9074 )がありますが、私は(既定のgraphicxを使った)LaTeXの標準図コマンドの方がずっと好きです。望めば、図フロートボックスに、TeXコードで
9075 \family typewriter
9076
9077 \backslash
9078 plotone
9079 \family default
9080 等のコマンドを挿入することはできますが、私には正しいレイアウトを得ることができた試しがありません。標準の画像コマンドを使えば、LyXは、
9081 \family typewriter
9082
9083 \backslash
9084 usepackage{graphics}
9085 \family default
9086 コマンドをLaTeXプリアンブルに挿入し、図をLaTeX2eの標準的な方法で取り扱って、文章の中にちりばめます。現在、ApJは、ちょうどこのようにして作成した図
9087 を受け入れていますが、AJはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません。
9088 \end_layout
9089
9090 \begin_layout Subsubsection
9091 可能だったが、実装しなかったもの
9092 \end_layout
9093
9094 \begin_layout Standard
9095 「素敵な」ものの中には、実装することも可能だったけれども、あえて実装しなかったものがあります。たとえば、紙の原稿ではダブルスペースであったとしても、LyXウィン
9096 ドウ中で、文章をダブルスペースにする意味はないと考えました。また、preprint様式とpreprint2様式を、独立したレイアウトにすることもしませんでした。
9097 いずれにしても、執筆時間のほとんどを、平の原稿モードで使うのがほとんどですから、これらの機能でディスクスペースを消費しないことにしました。
9098 \end_layout
9099
9100 \begin_layout Subsection
9101 最後に
9102 \end_layout
9103
9104 \begin_layout Standard
9105 これまでに進んできた道のりは、長い人も短い人もいることでしょう。私には、ApJとAJに発表した論文がありますが、その努力の98%はLyX上で為されました。残りの
9106 2%が、LaTeXでの後処理と若干の後片付けです。投稿の過程では何のトラブルもなく、これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう。ですか
9107 ら、がんばって発表してください!
9108 \end_layout
9109
9110 \begin_layout Section
9111 AMS LaTeX
9112 \end_layout
9113
9114 \begin_layout Standard
9115
9116 \noun on
9117 David Johnson
9118 \noun default
9119 文 
9120 \noun on
9121 Richard Heck
9122 \noun default
9123 改訂
9124 \begin_inset VSpace bigskip
9125 \end_inset
9126
9127 AMS LaTeXレイアウトは、American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです。レイアウ
9128 トは、特定の学術誌向けに仕立てられてはいませんが、簡単にそうすることができます。各学術誌毎の指示については、AMSの説明書をご参照ください(通常は、TeX出力中
9129 の一行を変更する必要があるだけです)。AMSの説明書は、ウェブWeb上の
9130 \begin_inset Flex URL
9131 status open
9132
9133 \begin_layout Plain Layout
9134
9135 http://www.ams.org
9136 \end_layout
9137
9138 \end_inset
9139
9140 か、FTPで
9141 \begin_inset Flex URL
9142 status open
9143
9144 \begin_layout Plain Layout
9145
9146 ftp://ftp.ams.org/pub/tex/amslatex/
9147 \end_layout
9148
9149 \end_inset
9150
9151 から入手することができます。これらのレイアウトは、数学的な文章を書くのであれば、どんなときでも適切かつ有用であるはずです。
9152 \end_layout
9153
9154 \begin_layout Standard
9155 基本となるAMS LaTeXレイアウトには、以下の二つがあります。
9156 \end_layout
9157
9158 \begin_layout Itemize
9159 amsart:標準のAMS article書式。
9160 \end_layout
9161
9162 \begin_layout Itemize
9163 amsbook:標準のAMS book(実際はモノグラフ)書式。
9164 \end_layout
9165
9166 \begin_layout Standard
9167 これらのレイアウトには、それ自身では、AMSクラスを使用するのに必要最低限のものしか含まれていません。特に、定理や補題などを設定するのに使用される「theore
9168 m」環境は、何一つ含まれていません。これらは、代わりに
9169 \begin_inset Flex Code
9170 status collapsed
9171
9172 \begin_layout Plain Layout
9173 定理(AMS)
9174 \end_layout
9175
9176 \end_inset
9177
9178 モジュールに収録されており、AMSクラスのいずれかを選択すると、このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ、別
9179 のものに変えたいときは取り除くこともできます)。少し使用頻度の低いものとしては、
9180 \begin_inset Flex Code
9181 status collapsed
9182
9183 \begin_layout Plain Layout
9184 定理(AMS拡張)
9185 \end_layout
9186
9187 \end_inset
9188
9189 モジュールがあり、これは手動で読み込む必要があります。
9190 \end_layout
9191
9192 \begin_layout Standard
9193 既定では、定理類は、文書を通して連番が振られますが、これは
9194 \begin_inset Flex Code
9195 status collapsed
9196
9197 \begin_layout Plain Layout
9198 定理(節毎連番)
9199 \end_layout
9200
9201 \end_inset
9202
9203 モジュールを読み込めば変更することができ、
9204 \begin_inset Flex Code
9205 status collapsed
9206
9207 \begin_layout Plain Layout
9208 book (AMS)
9209 \end_layout
9210
9211 \end_inset
9212
9213 を使用している場合には
9214 \begin_inset Flex Code
9215 status collapsed
9216
9217 \begin_layout Plain Layout
9218 定理(章毎連番)
9219 \end_layout
9220
9221 \end_inset
9222
9223 を用いても変更することができます。これらを用いると、出力は
9224 \begin_inset Formula $n.m$
9225 \end_inset
9226
9227 のようになり、最初の数字は節番号(または章番号)、次の数字はそれまで同節内(章内)に現れた出力の全数を表します。大半の環境は、連番なしでも用いることができます。
9228 連番なしのものは、環境名の後ろにアスタリスクを付けたもので表されます。連番なしの出力
9229 \emph on
9230 のみ
9231 \emph default
9232 が欲しい場合には、
9233 \begin_inset Flex Code
9234 status collapsed
9235
9236 \begin_layout Plain Layout
9237 定理(連番なし)
9238 \end_layout
9239
9240 \end_inset
9241
9242 モジュールを用います。
9243 \end_layout
9244
9245 \begin_layout Standard
9246 これらのモジュールは、AMSクラスで使用する
9247 \emph on
9248 必要はない
9249 \emph default
9250 ことに注意してください。
9251 \begin_inset Flex Code
9252 status collapsed
9253
9254 \begin_layout Plain Layout
9255 定理(AMS)
9256 \end_layout
9257
9258 \end_inset
9259
9260 モジュールや上述の他のモジュールは、他のクラス、たとえば
9261 \begin_inset Flex Code
9262 status collapsed
9263
9264 \begin_layout Plain Layout
9265 article
9266 \end_layout
9267
9268 \end_inset
9269
9270
9271 \begin_inset Flex Code
9272 status collapsed
9273
9274 \begin_layout Plain Layout
9275 report
9276 \end_layout
9277
9278 \end_inset
9279
9280
9281 \begin_inset Flex Code
9282 status collapsed
9283
9284 \begin_layout Plain Layout
9285 book (KOMA-script)
9286 \end_layout
9287
9288 \end_inset
9289
9290 などで問題なく使用することができます。
9291 \end_layout
9292
9293 \begin_layout Subsection
9294 これらのレイアウトが提供するもの
9295 \end_layout
9296
9297 \begin_layout Standard
9298 これらのレイアウトが提供している環境を列挙すると、長い一覧となります。AMS-LaTeXでは、実のところ、「theorem」環境の派生型を際限なく定義していくこ
9299 とが可能です。しかし、AMSは、LyXで利用可能になっている環境のみを使用することを推奨しています。
9300 \end_layout
9301
9302 \begin_layout Standard
9303 \begin_inset Flex Code
9304 status collapsed
9305
9306 \begin_layout Plain Layout
9307 article (AMS)
9308 \end_layout
9309
9310 \end_inset
9311
9312
9313 \begin_inset Flex Code
9314 status collapsed
9315
9316 \begin_layout Plain Layout
9317 book (AMS)
9318 \end_layout
9319
9320 \end_inset
9321
9322 には、------
9323 \begin_inset space ~
9324 \end_inset
9325
9326
9327 \begin_inset Flex Noun
9328 status collapsed
9329
9330 \begin_layout Plain Layout
9331
9332 \end_layout
9333
9334 \end_inset
9335
9336
9337 \begin_inset Flex Noun
9338 status collapsed
9339
9340 \begin_layout Plain Layout
9341 参考文献
9342 \end_layout
9343
9344 \end_inset
9345
9346
9347 \begin_inset Flex Noun
9348 status collapsed
9349
9350 \begin_layout Plain Layout
9351 タイトル
9352 \end_layout
9353
9354 \end_inset
9355
9356
9357 \begin_inset Flex Noun
9358 status collapsed
9359
9360 \begin_layout Plain Layout
9361 著者
9362 \end_layout
9363
9364 \end_inset
9365
9366
9367 \begin_inset Flex Noun
9368 status collapsed
9369
9370 \begin_layout Plain Layout
9371 日付
9372 \end_layout
9373
9374 \end_inset
9375
9376 のような標準環境の他に
9377 \begin_inset space ~
9378 \end_inset
9379
9380 ------
9381 \begin_inset space ~
9382 \end_inset
9383
9384 以下の環境があります。
9385 \end_layout
9386
9387 \begin_layout Description
9388 住所 これは著者の恒久的な住所です。
9389 \end_layout
9390
9391 \begin_layout Description
9392 現在の住所 住所と別に指定されているときには、著者の投稿時の仮初めの住所です。
9393 \end_layout
9394
9395 \begin_layout Description
9396 電子メール 著者の電子メールアドレス
9397 \end_layout
9398
9399 \begin_layout Description
9400 URL 著者のウェブアドレス。任意。
9401 \end_layout
9402
9403 \begin_layout Description
9404 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ。
9405 \end_layout
9406
9407 \begin_layout Description
9408 分野分類 
9409 \emph on
9410 Mathematical Reviews
9411 \emph default
9412 に説明が公表されているAMS Subject Classificationsの分類番号を指します。上述したAMSのウェブサイトでも、オンラインで見ることができま
9413 す。
9414 \end_layout
9415
9416 \begin_layout Description
9417 謝辞
9418 \end_layout
9419
9420 \begin_layout Description
9421 献呈
9422 \end_layout
9423
9424 \begin_layout Description
9425 翻訳者
9426 \end_layout
9427
9428 \begin_layout Standard
9429 以下の環境は、
9430 \begin_inset Flex Code
9431 status collapsed
9432
9433 \begin_layout Plain Layout
9434 定理
9435 \end_layout
9436
9437 \end_inset
9438
9439 モジュールと
9440 \begin_inset Flex Code
9441 status collapsed
9442
9443 \begin_layout Plain Layout
9444 定理(AMS)
9445 \end_layout
9446
9447 \end_inset
9448
9449 モジュールの両方で提供され、後者の場合には、星付き(連番なし)版と星なし(連番)版の両方が提供されます。
9450 \begin_inset Flex Code
9451 status collapsed
9452
9453 \begin_layout Plain Layout
9454 定理(連番なし)
9455 \end_layout
9456
9457 \end_inset
9458
9459 モジュールでは、同環境の星付き版だけが提供されます。
9460 \end_layout
9461
9462 \begin_layout Theorem
9463 これは、通常、得られた主要な結果を叙述するのに使用されます。
9464 \end_layout
9465
9466 \begin_layout Corollary*
9467 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います。これも主要な結果であることがあります。
9468 \end_layout
9469
9470 \begin_layout Lemma
9471 他の叙述を証明するために必要とされる、比較的小さな結果です。
9472 \end_layout
9473
9474 \begin_layout Proposition
9475 議論されている一般的な理論に(希望的には)何かを付け加えるような、主要ではない結果です。
9476 \end_layout
9477
9478 \begin_layout Conjecture
9479 正当化を与えずに述べられた叙述で、著者には証明法がわからないけれども、正しいと(少なくとも著者にとっては)思われるものです。
9480 \end_layout
9481
9482 \begin_layout Definition*
9483 これは自明でしょう。この環境のフォントは、前述の環境とは異なるフォントが使用されます。
9484 \end_layout
9485
9486 \begin_layout Problem
9487 これが何を指すかは必ずしも特定されていません。ご自分で解明してください。
9488 \end_layout
9489
9490 \begin_layout Exercise*
9491 この環境の説明を記述せよ。
9492 \end_layout
9493
9494 \begin_layout Note
9495 この環境もtheorem型、通常は重要性の低い所見に用いられます。
9496 \end_layout
9497
9498 \begin_layout Claim*
9499 より大きな結果の証明を与える途中で、しばしば用いられます。
9500 \end_layout
9501
9502 \begin_layout Case
9503 一般的に、これらはある条件の特定の場合を取り上げて、長い議論を区切るのに用いられます。
9504 \end_layout
9505
9506 \begin_layout Case
9507 ケースの連番の枠組みは、それ自身で独立していて、他の連番の叙述とは区別されます。
9508 \end_layout
9509
9510 \begin_layout Proof
9511 この環境の最後には、証了記号(通常は四角ですがスタイルによって変わります)が置かれます。この環境の中に別の環境を入れたい------たとえばケース環境など---
9512 ---場合で、証了記号は証明環境の終わりにのみ現れるようにしたい場合には、他の環境は証明環境の中に入れ子にしなくてはなりません。入れ子に関する情報については、
9513 \emph on
9514 ユーザーの手引き
9515 \emph default
9516
9517 \emph on
9518 環境を入れ子にする
9519 \emph default
9520 の節をご覧ください。
9521 \end_layout
9522
9523 \begin_layout Standard
9524 そして、以下は
9525 \begin_inset Flex Code
9526 status collapsed
9527
9528 \begin_layout Plain Layout
9529 定理(AMS拡張)
9530 \end_layout
9531
9532 \end_inset
9533
9534 で提供されるものです。
9535 \end_layout
9536
9537 \begin_layout Criterion*
9538 必要とされる条件です。
9539 \end_layout
9540
9541 \begin_layout Algorithm*
9542 使用する一般的手順です。
9543 \end_layout
9544
9545 \begin_layout Axiom*
9546 議論されている系内部で真と仮定される性質や命題です。
9547 \end_layout
9548
9549 \begin_layout Condition*
9550 議論の現在の文脈で仮定されている条件を述べるのに、よく用いられます。
9551 \end_layout
9552
9553 \begin_layout Note*
9554 注記と同様です。
9555 \end_layout
9556
9557 \begin_layout Notation*
9558 表記法の説明に用いられます。
9559 \end_layout
9560
9561 \begin_layout Summary
9562 本当に説明する必要がありますか?
9563 \end_layout
9564
9565 \begin_layout Acknowledgement*
9566 謝辞(acknowledgement)です。
9567 \end_layout
9568
9569 \begin_layout Conclusion*
9570 長い議論の終わりに時々用いられます。
9571 \end_layout
9572
9573 \begin_layout Fact
9574 命題と同様の用いられ方をしますが、だいたい長くないものに使われるようです。
9575 \end_layout
9576
9577 \begin_layout Standard
9578 さらに、AMSクラスは、AMS LaTeXパッケージとAMSフォントパッケージを自動的に提供します。これらの環境を使用するためには、お使いのシステム上で利用可能
9579 となっている必要があります。
9580 \end_layout
9581
9582 \begin_layout Section
9583 AGU各誌(
9584 \family sans
9585 aguplus)
9586 \end_layout
9587
9588 \begin_layout Standard
9589
9590 \noun on
9591 Martin Vermeer
9592 \noun default
9593
9594 \end_layout
9595
9596 \begin_layout Subsection
9597 概要
9598 \end_layout
9599
9600 \begin_layout Standard
9601 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです。AGU発行のクラスファイルおよび
9602 AGUplusの両方(これらは
9603 \begin_inset Flex URL
9604 status collapsed
9605
9606 \begin_layout Plain Layout
9607
9608 ftp://ftp.agu.org/journals/latex/journals
9609 \end_layout
9610
9611 \end_inset
9612
9613 にあります)が導入されていることが必要です。
9614 \end_layout
9615
9616 \begin_layout Subsection
9617 新しいスタイル
9618 \end_layout
9619
9620 \begin_layout Standard
9621
9622 \family sans
9623 段落
9624 \family default
9625 および
9626 \family sans
9627 段落*
9628 \family default
9629 は、定義し直されています。LyXの画面では、依然として
9630 \family sans
9631 段落
9632 \family default
9633
9634 \family sans
9635 段落*
9636 \family default
9637 と表示されますが、AGUクラスにおけるLaTeXの対応物は、
9638 \family sans
9639 Subsubsubsection
9640 \family default
9641
9642 \family sans
9643 Subsubsubsection*
9644 \family default
9645 です。
9646 \end_layout
9647
9648 \begin_layout Standard
9649 新しく定義されたスタイルには、
9650 \family sans
9651 左ヘッダ
9652 \family default
9653
9654 \family sans
9655 右ヘッダ
9656 \family default
9657
9658 \family sans
9659 受理日
9660 \family default
9661
9662 \family sans
9663 改訂
9664 \family default
9665
9666 \family sans
9667 採択日
9668 \family default
9669
9670 \family sans
9671 CCC
9672 \family default
9673
9674 \family sans
9675 論文ID
9676 \family default
9677
9678 \family sans
9679 著者住所
9680 \family default
9681
9682 \family sans
9683 廃棄用コメント
9684 \family default
9685 があります。これらは、ほとんど草稿用属性で、AGUクラス説明書で説明されています。
9686 \end_layout
9687
9688 \begin_layout Standard
9689 おそらく、これはまだ恐ろしく不完全です。
9690 \end_layout
9691
9692 \begin_layout Subsection
9693 新しいフロート
9694 \end_layout
9695
9696 \begin_layout Standard
9697
9698 \family sans
9699 平面表(Planotable
9700 \family default
9701 )と
9702 \family sans
9703 挿絵
9704 \family default
9705 (Plate)が新しいフロートです。また、
9706 \family sans
9707 表キャプション
9708 \family default
9709 も付け加えられています。
9710 \end_layout
9711
9712 \begin_layout Subsection
9713 サポートされている学術誌
9714 \end_layout
9715
9716 \begin_layout Itemize
9717
9718 \emph on
9719 Journal of Geophysical Research
9720 \emph default
9721
9722 \family typewriter
9723 jgrga.layout
9724 \family default
9725  --- Martin Vermeer
9726 \end_layout
9727
9728 \begin_layout Standard
9729 ここにあなたの作ったものを加えてください。難しくはありません。
9730 \family typewriter
9731 jgrga.layout
9732 \family default
9733 と 
9734 \family typewriter
9735 aguplus.inc
9736 \family default
9737 を用例として見てください。
9738 \end_layout
9739
9740 \begin_layout Subsection
9741 バグと注意すべきこと
9742 \end_layout
9743
9744 \begin_layout Standard
9745 新しいレイアウトを使うためには、新規文書の作成時に以下の手順を行う必要があります。
9746 \end_layout
9747
9748 \begin_layout Enumerate
9749
9750 \emph on
9751 babelを無効にしてください。
9752 \emph default
9753 これは、
9754 \family sans
9755 ツール\SpecialChar \menuseparator
9756 設定
9757 \family default
9758 メニュー項目で行うことができます(AGUの論文は常に英語ですよね。ですから他の言語は
9759 \emph on
9760 選ばないで下さい
9761 \emph default
9762 )。
9763 \end_layout
9764
9765 \begin_layout Enumerate
9766 使用文書の追加オプションフィールドに
9767 \family typewriter
9768 jgrga
9769 \family default
9770 と入力してください(すみません、これはバグです)。
9771 \end_layout
9772
9773 \begin_layout Enumerate
9774 BibTeX差込枠の2番目のフィールドに
9775 \family sans
9776 agu
9777 \family default
9778 と入力して、参考文献のスタイルに
9779 \family typewriter
9780 agu.bst
9781 \family default
9782 を使用していることを確認してください。標準スタイルはうまく動作しません。
9783 \end_layout
9784
9785 \begin_layout Section
9786 Broadway
9787 \end_layout
9788
9789 \begin_layout Standard
9790
9791 \noun on
9792 Garst Reese
9793 \noun default
9794
9795 \end_layout
9796
9797 \begin_layout Subsection
9798 はじめに
9799 \end_layout
9800
9801 \begin_layout Standard
9802 Broadwayは演劇を書くためのものです。書式はHollywoodよりも装飾的で、それほど標準化されていません。この書式はワークショップに向いているでしょう。
9803 \end_layout
9804
9805 \begin_layout Subsection
9806 特別な問題
9807 \end_layout
9808
9809 \begin_layout Standard
9810 Hollywoodと同様です。
9811 \end_layout
9812
9813 \begin_layout Subsection
9814 特別の機能
9815 \end_layout
9816
9817 \begin_layout Standard
9818
9819 \family sans
9820 話者
9821 \family default
9822 の名前をラベルとして挿入し、名前を挿入する際には、このラベルを相互参照してください。相互参照ダイアログには、登場人物の現在の配役が表示されます。
9823 \end_layout
9824
9825 \begin_layout Subsection
9826 用紙寸法と余白
9827 \end_layout
9828
9829 \begin_layout Standard
9830 USレター寸法で、余白は左1.6インチ、右0.75インチ、上0.5インチ、下0.75インチです。
9831 \end_layout
9832
9833 \begin_layout Subsection
9834 環境
9835 \end_layout
9836
9837 \begin_layout Standard
9838 以下の環境を使うことができます。右に記してあるキー割当ては、broadway.bindを使った場合のものです。
9839 \end_layout
9840
9841 \begin_layout Itemize
9842
9843 \family sans
9844 標準
9845 \begin_inset Newline newline
9846 \end_inset
9847
9848
9849 \family default
9850 これは使わなくていいはずですが、他の環境が当てはまらない場合のためにここに挙げておきます。
9851 \end_layout
9852
9853 \begin_layout Itemize
9854
9855 \family sans
9856 ト書き
9857 \begin_inset space \hfill{}
9858 \end_inset
9859
9860 M-z n
9861 \begin_inset Newline newline
9862 \end_inset
9863
9864
9865 \family default
9866 舞台設定と動作の説明に用います。最初に話者名をすべて大文字で書いておきます。
9867 \end_layout
9868
9869 \begin_layout Itemize
9870
9871 \family sans
9872
9873 \begin_inset space \hfill{}
9874 \end_inset
9875
9876 M-z a
9877 \begin_inset Newline newline
9878 \end_inset
9879
9880
9881 \family default
9882 自動的に連番が振られます。連番は、画面上ではアラビア数字ですが、出力ではローマ数字です。
9883 \end_layout
9884
9885 \begin_layout Itemize
9886
9887 \family sans
9888 幕*
9889 \begin_inset space \hfill{}
9890 \end_inset
9891
9892 M-z S at
9893 \begin_inset Newline newline
9894 \end_inset
9895
9896
9897 \family default
9898 幕の副題です。単に中央揃えの文になります。
9899 \end_layout
9900
9901 \begin_layout Itemize
9902
9903 \family sans
9904 場面
9905 \begin_inset space \hfill{}
9906 \end_inset
9907
9908 M-z S-S
9909 \begin_inset Newline newline
9910 \end_inset
9911
9912
9913 \family default
9914 自動的に連番は振られませんので、手動で番号を付けてください。これは私がどうすればいいか分からなかったためです。
9915 \end_layout
9916
9917 \begin_layout Itemize
9918
9919 \family sans
9920 幕開きに:
9921 \begin_inset space \hfill{}
9922 \end_inset
9923
9924 M-z S-R
9925 \begin_inset Newline newline
9926 \end_inset
9927
9928
9929 \family default
9930 ト書きの特殊な場合で、カーテンが上がるときの舞台設定と動作を説明します。
9931 \end_layout
9932
9933 \begin_layout Itemize
9934
9935 \family sans
9936 話者
9937 \begin_inset space \hfill{}
9938 \end_inset
9939
9940 M-z s
9941 \begin_inset Newline newline
9942 \end_inset
9943
9944
9945 \family default
9946 話者(役者)の配役です。すべて大文字で中央揃えに置かれます。
9947 \end_layout
9948
9949 \begin_layout Itemize
9950
9951 \family sans
9952 括弧付き
9953 \begin_inset space \hfill{}
9954 \end_inset
9955
9956 M-z p
9957 \begin_inset Newline newline
9958 \end_inset
9959
9960
9961 \family default
9962 話者への指示です。括弧は自動的に挿入されます。画面上には左括弧(のみが表示されますが、印字出力には両方の括弧が表示されます。この環境は、
9963 \family sans
9964 対話
9965 \family default
9966 の中だけで使用されます。 
9967 \end_layout
9968
9969 \begin_layout Itemize
9970
9971 \family sans
9972 対話
9973 \begin_inset space \hfill{}
9974 \end_inset
9975
9976 M-z d
9977 \begin_inset Newline newline
9978 \end_inset
9979
9980
9981 \family default
9982 話者の言う内容。
9983 \end_layout
9984
9985 \begin_layout Itemize
9986
9987 \family sans
9988 幕切れ
9989 \begin_inset space \hfill{}
9990 \end_inset
9991
9992 M-z S-C
9993 \begin_inset Newline newline
9994 \end_inset
9995
9996
9997 \family default
9998 幕が降ります。
9999 \end_layout
10000
10001 \begin_layout Itemize
10002
10003 \family sans
10004 タイトル
10005 \begin_inset space \hfill{}
10006 \end_inset
10007
10008 M-z S-T
10009 \end_layout
10010
10011 \begin_layout Itemize
10012
10013 \family sans
10014 著者
10015 \begin_inset space \hfill{}
10016 \end_inset
10017
10018 M-z S-A
10019 \end_layout
10020
10021 \begin_layout Itemize
10022
10023 \family sans
10024 右寄せ住所
10025 \begin_inset space \hfill{}
10026 \end_inset
10027
10028 M-z r
10029 \end_layout
10030
10031 \begin_layout Section
10032 Dinbrief
10033 \end_layout
10034
10035 \begin_layout Standard
10036 文書クラス
10037 \family sans
10038 dinbrief
10039 \family default
10040 は、ドイツの慣習に則った書簡の組版を行うのに用いられます。ひな型ファイルが
10041 \family typewriter
10042 .../lyx/share/templates
10043 \family default
10044 にあるので、それを土台として使用してください。
10045 \end_layout
10046
10047 \begin_layout Section
10048 EGS各誌
10049 \family sans
10050 (egs)
10051 \end_layout
10052
10053 \begin_layout Standard
10054
10055 \noun on
10056 Martin Vermeer
10057 \noun default
10058
10059 \end_layout
10060
10061 \begin_layout Subsection
10062 概要
10063 \end_layout
10064
10065 \begin_layout Standard
10066 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです。必要とされる
10067 \family typewriter
10068 egs.cls
10069 \family default
10070 は、EGSのウェブサイト
10071 \begin_inset Flex URL
10072 status collapsed
10073
10074 \begin_layout Plain Layout
10075
10076 http://www.copernicus.org/
10077 \end_layout
10078
10079 \end_inset
10080
10081 からダウンロードできます。
10082 \end_layout
10083
10084 \begin_layout Subsection
10085 新しいスタイル
10086 \end_layout
10087
10088 \begin_layout Standard
10089 新しいスタイルとして、
10090 \family sans
10091 右寄せ住所
10092 \family default
10093
10094 \family sans
10095 LaTeXタイトル
10096 \family default
10097
10098 \family sans
10099 所属
10100 \family default
10101
10102 \family sans
10103 学術誌名
10104 \family default
10105
10106 \family sans
10107 原稿番号
10108 \family default
10109
10110 \family sans
10111 筆頭著者
10112 \family default
10113
10114 \family sans
10115 受理日
10116 \family default
10117
10118 \family sans
10119 採択日
10120 \family default
10121
10122 \family sans
10123 オフセット
10124 \family default
10125 があります。現在のレイアウトファイルは、残念ながらほとんどモジュール化されておらず、さまざまな
10126 \family typewriter
10127 std*.inc
10128 \family default
10129 ファイルを読み込む形に変えた方が便利になると思われます。
10130 \end_layout
10131
10132 \begin_layout Section
10133 Elsevier各誌
10134 \end_layout
10135
10136 \begin_layout Standard
10137
10138 \lang english
10139 See the LyX template file 
10140 \family typewriter
10141 elsarticle.lyx
10142 \family default
10143 .
10144  It contains all infos you need.
10145 \end_layout
10146
10147 \begin_layout Section
10148 Foils(別名FoilTeX)
10149 \begin_inset CommandInset label
10150 LatexCommand label
10151 name "sec:foiltex"
10152
10153 \end_inset
10154
10155
10156 \end_layout
10157
10158 \begin_layout Standard
10159
10160 \noun on
10161 Allan Rae
10162 \noun default
10163
10164 \end_layout
10165
10166 \begin_layout Subsection
10167 はじめに
10168 \end_layout
10169
10170 \begin_layout Standard
10171 本節では、プレゼンテーション用のスライドを作るための、LyXの使用法を解説します。スライドを作ることのできる文書クラスには、slides・FoilTeX・sem
10172 inar・beamer・powerdotといったクラスがありますが、本節では、そのうちslidesの解説を行います。
10173 \end_layout
10174
10175 \begin_layout Standard
10176 誤解のないように、わかりやすく明確に、もう一度言っておきます。
10177 \end_layout
10178
10179 \begin_layout Standard
10180 \begin_inset VSpace bigskip
10181 \end_inset
10182
10183
10184 \end_layout
10185
10186 \begin_layout Standard
10187 \align center
10188
10189 \size large
10190 本節は「
10191 \family sans
10192 presentation (FoilT
10193 \size default
10194
10195 \begin_inset ERT
10196 status collapsed
10197
10198 \begin_layout Plain Layout
10199
10200 {}
10201 \end_layout
10202
10203 \end_inset
10204
10205
10206 \size large
10207 eX)
10208 \family default
10209 」クラス
10210 \emph on
10211 のみの
10212 \emph default
10213 解説を行います。
10214 \end_layout
10215
10216 \begin_layout Standard
10217 \begin_inset VSpace bigskip
10218 \end_inset
10219
10220
10221 \end_layout
10222
10223 \begin_layout Standard
10224
10225 \family sans
10226 transparencies (slides)
10227 \family default
10228 」の解説をお探しであれば、第
10229 \begin_inset CommandInset ref
10230 LatexCommand ref
10231 reference "sec:slitex"
10232
10233 \end_inset
10234
10235 節をご覧ください。お使いのコンピュータに
10236 \family sans
10237 foils
10238 \family default
10239 クラス(
10240 \family sans
10241 presentation (FoilT
10242 \begin_inset ERT
10243 status collapsed
10244
10245 \begin_layout Plain Layout
10246
10247 {}
10248 \end_layout
10249
10250 \end_inset
10251
10252 eX)
10253 \family default
10254 )が導入されていなければ、
10255 \family sans
10256 foils
10257 \family default
10258 ほど良くはありませんが、おそらく
10259 \family sans
10260 slides
10261 \family default
10262 クラスを使わざるをえないでしょう。
10263 \end_layout
10264
10265 \begin_layout Standard
10266
10267 \family sans
10268 foils
10269 \family default
10270 クラスは、LaTeX2eの一部として含まれているLaTeXクラスファイル
10271 \family sans
10272 foils.cls
10273 \family default
10274 の第2.1版とともに使われるように設計されています。
10275 \end_layout
10276
10277 \begin_layout Subsection
10278 最初の一歩
10279 \end_layout
10280
10281 \begin_layout Standard
10282 いうまでもなく、この文書クラスを使うには、
10283 \family sans
10284 文書\SpecialChar \menuseparator
10285 設定\SpecialChar \menuseparator
10286 文書クラス
10287 \family default
10288 メニューの
10289 \family sans
10290 文書クラス
10291 \family default
10292 ドロップダウンで「
10293 \family sans
10294 presentation (FoilT
10295 \begin_inset ERT
10296 status collapsed
10297
10298 \begin_layout Plain Layout
10299
10300 {}
10301 \end_layout
10302
10303 \end_inset
10304
10305 eX)
10306 \family default
10307 」を選択する必要があります。また、
10308 \family sans
10309 文書設定
10310 \family default
10311 ダイアログ中には、以下のように、このクラスに特有の設定がいくつかあることを知っておかなくてはなりません。
10312 \end_layout
10313
10314 \begin_layout Itemize
10315
10316 \family sans
10317 文書設定
10318 \family default
10319 ダイアログ中の、
10320 \family sans
10321 両面文書
10322 \family default
10323 オプションと
10324 \family sans
10325 二段組文書
10326 \family default
10327 オプションは変更しないでください。これらは 
10328 \family sans
10329 foils
10330 \family default
10331 クラスでは無視されます。
10332 \end_layout
10333
10334 \begin_layout Itemize
10335 既定のフォント寸法は20ptであり、17pt・25pt・30ptを選択することも可能です。
10336 \end_layout
10337
10338 \begin_layout Itemize
10339 既定のフォントは
10340 \family sans
10341 sans
10342 \family default
10343  
10344 \family sans
10345 serif
10346 \family default
10347 ですが、数式ではすべて、通常のローマン体が使用されます。
10348 \end_layout
10349
10350 \begin_layout Itemize
10351 FoilTeXは、35
10352 \begin_inset space \thinspace{}
10353 \end_inset
10354
10355 mmスライド用の特殊寸法の他、A4とレター大の用紙寸法をサポートします。A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません。
10356 \end_layout
10357
10358 \begin_layout Itemize
10359
10360 \family sans
10361 フロートの配置
10362 \family default
10363 の設定は無視されますので、わざわざ変更する必要はありません。フロートはすべて、本文中で定義された位置に表示されます。
10364 \end_layout
10365
10366 \begin_layout Itemize
10367 このクラスの
10368 \family sans
10369 ページレイアウト
10370 \family default
10371 の設定は、若干異なった挙動を示します。FoilTeXでは、ユーザ定義のロゴをはじめ、フッタとへッダに広範な設定ができます。詳細については第
10372 \begin_inset CommandInset ref
10373 LatexCommand ref
10374 reference "sec:foilfoot"
10375
10376 \end_inset
10377
10378 節をご覧ください。タイトルページは、文書中の他のページとは異なった取扱がなされ、ページ番号は
10379 \emph on
10380 つねに
10381 \emph default
10382 付けられず、(ロゴが定義されていれば)ロゴは、
10383 \emph on
10384 つねに
10385 \emph default
10386 ページ下部中央に表示されます。使用できるページ様式とその挙動は、以下の通りです。
10387 \end_layout
10388
10389 \begin_deeper
10390 \begin_layout Labeling
10391 \labelwidthstring MMMMMMM
10392
10393 \family sans
10394 \series bold
10395 empty
10396 \family default
10397 \series default
10398  最終出力には、ページ番号をはじめ、へッダ・フッタが出力されません(もちろん脚注は除きます)。
10399 \end_layout
10400
10401 \begin_layout Labeling
10402 \labelwidthstring MMMMMMM
10403
10404 \family sans
10405 \series bold
10406 plain
10407 \family default
10408 \series default
10409  最終出力には、ページ番号がページ下部の中央に出力されますが、他のへッダ・フッタは出力されません(脚注除く)。
10410 \end_layout
10411
10412 \begin_layout Labeling
10413 \labelwidthstring MMMMMMM
10414
10415 \series bold
10416 foilheadings
10417 \series default
10418  ページ番号が右下隅に出力されます。追記したへッダ・フッタも出力されます。これが既定値です。
10419 \end_layout
10420
10421 \begin_layout Labeling
10422 \labelwidthstring MMMMMMM
10423
10424 \series bold
10425 fancy
10426 \series default
10427  これは
10428 \family sans
10429 fancyheadings
10430 \family default
10431 パッケージを使えるようにします。ただし、FoilTeXパッケージの作者は、ページレイアウトが崩れる可能性があるので、これを使用することは勧めないと言及しています
10432
10433 \end_layout
10434
10435 \end_deeper
10436 \begin_layout Subsubsection
10437 任意設定クラスオプション
10438 \end_layout
10439
10440 \begin_layout Standard
10441 以下のオプションは
10442 \family sans
10443 文書設定
10444 \family default
10445 ダイアログの任意設定クラスオプションボックスで使うことができます。
10446 \end_layout
10447
10448 \begin_layout Labeling
10449 \labelwidthstring MMMMMMx
10450
10451 \series bold
10452 35mmSlide
10453 \series default
10454  これは、ページレイアウトを縦7.33インチ横11インチに設定します。これは35
10455 \begin_inset space \space{}
10456 \end_inset
10457
10458 mmスライドの縦横比にほぼ等しく、このメディアを作る作業が若干易しくなります。
10459 \end_layout
10460
10461 \begin_layout Labeling
10462 \labelwidthstring MMMMMMx
10463
10464 \series bold
10465 headrule
10466 \series default
10467  タイトルページを除くすべてのページのへッダの下に罫線を入れます。
10468 \end_layout
10469
10470 \begin_layout Labeling
10471 \labelwidthstring MMMMMMx
10472
10473 \series bold
10474 footrule
10475 \series default
10476  タイトルページを除くすべてのページのフッタの上に罫線を入れます。
10477 \end_layout
10478
10479 \begin_layout Labeling
10480 \labelwidthstring MMMMMMx
10481
10482 \series bold
10483 dvips
10484 \series default
10485  これは、新規
10486 \family sans
10487 foils
10488 \family default
10489 文書を作成する度に自動的に設定されます。このオプションは、横向きに設定されたページを回転させるのに、dvipsドライバを使うようFoilTeXに指示します。
10490 \end_layout
10491
10492 \begin_layout Labeling
10493 \labelwidthstring MMMMMMx
10494
10495 \series bold
10496 landscape
10497 \series default
10498  このオプションは、用紙寸法を横向きページ大に変更するだけで、回転は行いません。したがって、このオプションを使う場合は、各ページを回転させる外部プログラムを使用
10499 する、プリンタに用紙を横向きに給紙する必要があります。また、このオプションは、
10500 \family sans
10501 Foilhead
10502 \family default
10503 環境と
10504 \family sans
10505 Rotatefoilhead
10506 \family default
10507 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します)。
10508 \end_layout
10509
10510 \begin_layout Labeling
10511 \labelwidthstring MMMMMMx
10512
10513 \series bold
10514 leqno
10515 \series default
10516  数式番号を左側に付けます。
10517 \end_layout
10518
10519 \begin_layout Labeling
10520 \labelwidthstring MMMMMMx
10521
10522 \series bold
10523 fleqn
10524 \series default
10525  数式を左揃えにします。
10526 \end_layout
10527
10528 \begin_layout Subsection
10529 サポートされる環境
10530 \end_layout
10531
10532 \begin_layout Standard
10533 他のクラスで標準的にサポートされている環境は、
10534 \family sans
10535 foils
10536 \family default
10537 クラスでもサポートされています。それ以外に、FoilTeXが提供している環境と、LyXが付け加えた環境があります。以下の環境は、他のクラスと共通の環境です。
10538 \end_layout
10539
10540 \begin_layout Standard
10541 \begin_inset ERT
10542 status open
10543
10544 \begin_layout Plain Layout
10545
10546
10547 \backslash
10548 begin{multicols}{2}
10549 \end_layout
10550
10551 \end_inset
10552
10553
10554 \end_layout
10555
10556 \begin_layout Itemize
10557
10558 \family sans
10559 標準
10560 \end_layout
10561
10562 \begin_layout Itemize
10563
10564 \family sans
10565 箇条書き(記号)
10566 \end_layout
10567
10568 \begin_layout Itemize
10569
10570 \family sans
10571 箇条書き(連番)
10572 \end_layout
10573
10574 \begin_layout Itemize
10575
10576 \family sans
10577 箇条書き(記述)
10578 \end_layout
10579
10580 \begin_layout Itemize
10581
10582 \family sans
10583 箇条書き(リスト)
10584 \end_layout
10585
10586 \begin_layout Itemize
10587
10588 \family sans
10589 LyXコード
10590 \end_layout
10591
10592 \begin_layout Itemize
10593
10594 \family sans
10595 詩句
10596 \end_layout
10597
10598 \begin_layout Itemize
10599
10600 \family sans
10601 引用(字下げあり)
10602 \end_layout
10603
10604 \begin_layout Itemize
10605
10606 \family sans
10607 引用(字下げなし)
10608 \end_layout
10609
10610 \begin_layout Itemize
10611
10612 \family sans
10613 タイトル
10614 \end_layout
10615
10616 \begin_layout Itemize
10617
10618 \family sans
10619 著者
10620 \end_layout
10621
10622 \begin_layout Itemize
10623
10624 \family sans
10625 日付
10626 \end_layout
10627
10628 \begin_layout Itemize
10629
10630 \family sans
10631 概要
10632 \end_layout
10633
10634 \begin_layout Itemize
10635
10636 \family sans
10637 参考文献
10638 \end_layout
10639
10640 \begin_layout Itemize
10641
10642 \family sans
10643 住所
10644 \end_layout
10645
10646 \begin_layout Itemize
10647
10648 \family sans
10649 右寄せ住所
10650 \end_layout
10651
10652 \begin_layout Itemize
10653
10654 \family sans
10655 キャプション
10656 \end_layout
10657
10658 \begin_layout Itemize
10659
10660 \family sans
10661 コメント
10662 \end_layout
10663
10664 \begin_layout Standard
10665 \begin_inset ERT
10666 status open
10667
10668 \begin_layout Plain Layout
10669
10670
10671 \backslash
10672 end{multicols}
10673 \end_layout
10674
10675 \end_inset
10676
10677
10678 \end_layout
10679
10680 \begin_layout Standard
10681 つまり、節区切りを除けば、主な環境のすべてです。一枚のスライドは、基本的にタイトルと本文を備えた自己完結した節なので、
10682 \family sans
10683 Foil
10684 \family default
10685 TeXは新しいスライドを始める以下のようなコマンドを備えています。
10686 \end_layout
10687
10688 \begin_layout Itemize
10689
10690 \family sans
10691 スライドタイトル(Foilhead)
10692 \end_layout
10693
10694 \begin_layout Itemize
10695
10696 \family sans
10697 横置きスライドタイトル(Rotatefoilhead)
10698 \end_layout
10699
10700 \begin_layout Standard
10701 LyXは、以下のような、これらを若干修正した環境も用意しています。
10702 \end_layout
10703
10704 \begin_layout Itemize
10705
10706 \family sans
10707 スライドタイトル(小)(ShortFoilhead)
10708 \end_layout
10709
10710 \begin_layout Itemize
10711
10712 \family sans
10713 横置きスライドタイトル(小)(ShortRotatefoilhead)
10714 \end_layout
10715
10716 \begin_layout Standard
10717 これらの違いは次節で説明します。
10718 \end_layout
10719
10720 \begin_layout Standard
10721 スライドは、アイデアを説明したり、新しい定理を説明したりするのにしばしば使われるので、
10722 \family sans
10723 Foil
10724 \family default
10725 TeXはそれらを説明するのに便利な環境を幅広く用意しています。
10726 \end_layout
10727
10728 \begin_layout Standard
10729 \begin_inset ERT
10730 status open
10731
10732 \begin_layout Plain Layout
10733
10734
10735 \backslash
10736 begin{multicols}{2}
10737 \end_layout
10738
10739 \end_inset
10740
10741
10742 \end_layout
10743
10744 \begin_layout Itemize
10745
10746 \family sans
10747 定理
10748 \end_layout
10749
10750 \begin_layout Itemize
10751
10752 \family sans
10753 補題
10754 \end_layout
10755
10756 \begin_layout Itemize
10757
10758 \family sans
10759
10760 \end_layout
10761
10762 \begin_layout Itemize
10763
10764 \family sans
10765 命題
10766 \end_layout
10767
10768 \begin_layout Itemize
10769
10770 \family sans
10771 定義
10772 \end_layout
10773
10774 \begin_layout Itemize
10775
10776 \family sans
10777 証明
10778 \end_layout
10779
10780 \begin_layout Itemize
10781
10782 \family sans
10783 定理*
10784 \end_layout
10785
10786 \begin_layout Itemize
10787
10788 \family sans
10789 補題*
10790 \end_layout
10791
10792 \begin_layout Itemize
10793
10794 \family sans
10795 系*
10796 \end_layout
10797
10798 \begin_layout Itemize
10799
10800 \family sans
10801 命題*
10802 \end_layout
10803
10804 \begin_layout Itemize
10805
10806 \family sans
10807 定義*
10808 \end_layout
10809
10810 \begin_layout Standard
10811 \begin_inset ERT
10812 status open
10813
10814 \begin_layout Plain Layout
10815
10816
10817 \backslash
10818 end{multicols}
10819 \end_layout
10820
10821 \end_inset
10822
10823
10824 \end_layout
10825
10826 \begin_layout Standard
10827 星付き版は連番が振られず、星なし版は連番が振られます。他に、LyXで追加された以下の2つの箇条書き環境があります。
10828 \end_layout
10829
10830 \begin_layout Itemize
10831
10832 \family sans
10833 箇条書き(チック)
10834 \end_layout
10835
10836 \begin_layout Itemize
10837
10838 \family sans
10839 箇条書き(クロス)
10840 \end_layout
10841
10842 \begin_layout Standard
10843 FoilTeXには、強力なヘッダ機能とフッタ機能があり、これらはプリアンブルで設定するのが最良ですが、文章中のどこでも設定することができます。もし文書中でこれら
10844 の設定を変更したい場合には、スライドの一番上、foilheadの直後で行うのが良いでしょう。
10845 \end_layout
10846
10847 \begin_layout Standard
10848 この目的のためには、以下のコマンドスタイルがあります(
10849 \shape smallcaps
10850 Martin Vermeer)。
10851 \end_layout
10852
10853 \begin_layout Standard
10854 \begin_inset ERT
10855 status open
10856
10857 \begin_layout Plain Layout
10858
10859
10860 \backslash
10861 begin{multicols}{2}
10862 \end_layout
10863
10864 \end_inset
10865
10866
10867 \end_layout
10868
10869 \begin_layout Itemize
10870
10871 \family sans
10872 グラフィックスロゴ
10873 \end_layout
10874
10875 \begin_layout Itemize
10876
10877 \family sans
10878 配布制限
10879 \end_layout
10880
10881 \begin_layout Itemize
10882
10883 \family sans
10884 右フッタ
10885 \end_layout
10886
10887 \begin_layout Itemize
10888
10889 \family sans
10890 右ヘッダ
10891 \end_layout
10892
10893 \begin_layout Itemize
10894
10895 \family sans
10896 左ヘッダ
10897 \end_layout
10898
10899 \begin_deeper
10900 \begin_layout Standard
10901 \begin_inset space ~
10902 \end_inset
10903
10904
10905 \end_layout
10906
10907 \end_deeper
10908 \begin_layout Standard
10909 \begin_inset ERT
10910 status open
10911
10912 \begin_layout Plain Layout
10913
10914
10915 \backslash
10916 end{multicols}
10917 \end_layout
10918
10919 \end_inset
10920
10921
10922 \end_layout
10923
10924 \begin_layout Standard
10925 FoilTeXが提供しているコマンドで、LyXが直接サポートしていないコマンドもありますが、これらの説明と使い方については、第
10926 \begin_inset CommandInset ref
10927 LatexCommand ref
10928 reference "sec:unsuppfoils"
10929
10930 \end_inset
10931
10932 節で行います。
10933 \end_layout
10934
10935 \begin_layout Subsection
10936 スライドの組を作る
10937 \end_layout
10938
10939 \begin_layout Standard
10940 この節は、様々な環境を使ってスライドの組を作る方法を簡単に紹介します。スライド組の例をご覧になりたい場合は、LyXの
10941 \family typewriter
10942 examples
10943 \family default
10944 フォルダにある
10945 \family typewriter
10946 Foils.lyx
10947 \family default
10948 ファイルをご覧ください。
10949 \end_layout
10950
10951 \begin_layout Subsubsection
10952 タイトルページを作る
10953 \end_layout
10954
10955 \begin_layout Standard
10956
10957 \family sans
10958 タイトル
10959 \family default
10960
10961 \family sans
10962 著者
10963 \family default
10964
10965 \family sans
10966 日付
10967 \family default
10968
10969 \family sans
10970 概要
10971 \family default
10972 環境のある他のクラスとは異なり、
10973 \family sans
10974 foils
10975 \family default
10976 は独立したページにタイトルを作成します。
10977 \family sans
10978 日付
10979 \family default
10980 環境を使用しなかった場合には、LaTeXは(出力を生成し直したときにはいつも)その時点の日付を挿入します。
10981 \end_layout
10982
10983 \begin_layout Subsubsection
10984 新しいスライドを開始する
10985 \end_layout
10986
10987 \begin_layout Standard
10988 前述のように、新しいスライドを開始するには、4つの方法があります。縦向きのスライドを開始するには、
10989 \family sans
10990 スライドタイトル(Foilhead)
10991 \family default
10992
10993 \family sans
10994 スライドタイトル(小)(ShortFoilhead)
10995 \family default
10996 を使用します。両環境の違いは、スライドタイトル(foilhead)とスライド本文の間の余白の違いです。
10997 \end_layout
10998
10999 \begin_layout Standard
11000 横向きのスライドは、
11001 \family sans
11002 横向きスライドタイトル(Rotatefoilhead)
11003 \family default
11004 か横向きスライドタイトル(小)(
11005 \family sans
11006 ShortRotatefoilhead)
11007 \family default
11008 環境を使用して生成します。ここでも両環境の違いは、タイトルと本文の間の余白のみです。どちらの場合も、(小)と記された版は、タイトルと本文の間の余白が、0.5インチ
11009 (約1.27cm)小さくなります。
11010 \end_layout
11011
11012 \begin_layout Standard
11013 横向きのスライドをサポートする際、一つ問題となるのは、スライドを回転させようと思うと、PostScript出力を生成するのに
11014 \family typewriter
11015 dvips
11016 \family default
11017 ドライバを使用することを要求してしまうことです。もしスライドをプリンタに横に給紙することができれば、
11018 \family typewriter
11019 dvips
11020 \family default
11021 ドライバを持っていなくても、横向きのスライドをつくることができます ;-)
11022 \end_layout
11023
11024 \begin_layout Subsubsection
11025 定理・補題・証明など
11026 \end_layout
11027
11028 \begin_layout Standard
11029 LyX中の小さなバグによって、これらの環境の同じ型をお互いに直接続けて置くことはできません。これらは何かによって分離されなくてはなりません。仮に二つ続けて置いて
11030 も、2つの環境をマージしたかのように、前の環境が延長されるだけです。この問題を回避するにはどうすればよいのでしょうか。最も簡単な方法は、二つの環境の間に何か文章
11031 を置くか、あるいは二つの間に「
11032 \family typewriter
11033 %
11034 \family default
11035 」だけから成るLaTeX環境を置くことです。これによって、LyXは2つの別々の環境を生成するように強制され、正しいLaTeX出力を得ることができます。LyX頒布
11036 版に含まれる用例ファイルに例があります。この問題は、二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください。
11037 \end_layout
11038
11039 \begin_layout Subsubsection
11040 箇条書き
11041 \end_layout
11042
11043 \begin_layout Standard
11044 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて、二つの新しい様式を使用することができます。ここでは、その新しい様式のみを説明することにします。
11045 他の箇条書き環境について詳しく知りたい場合には、
11046 \emph on
11047 ユーザーの手引き
11048 \emph default
11049 をご覧ください。記号による箇条書きを使用したい場合には、上記第
11050 \begin_inset CommandInset ref
11051 LatexCommand ref
11052 reference "sec:ブリット"
11053
11054 \end_inset
11055
11056 節の
11057 \family sans
11058 箇条書き(記号)ブリットの指定
11059 \family default
11060 の節も、読まれることが望ましいでしょう。
11061 \end_layout
11062
11063 \begin_layout Standard
11064
11065 \family sans
11066 箇条書き(チック)
11067 \family default
11068
11069 \family sans
11070 箇条書き(クロス)
11071 \family default
11072 の二つの新しい様式は、チェック印や×印を箇条書きのラベルに使用する専用の環境を提供することで、予定一覧や正誤一覧を作りやすくするように設計されたものです。これら
11073 の箇条書きは、
11074 \family sans
11075 箇条書き(記号)
11076 \family default
11077 の派生型を専用に用意したものに過ぎません。ただし、これらは、
11078 \family typewriter
11079 psnfss
11080 \family default
11081 パッケージが導入済であることを要求します。
11082 \end_layout
11083
11084 \begin_layout Subsubsection
11085 図と表
11086 \end_layout
11087
11088 \begin_layout Standard
11089 FoilTeXでは、図表フロートは、本文中の挿入箇所にこれらが正確に表示されるように再定義されており、ページの上部やユーザー指定場所に押しのけたりはしないように
11090 なっています。たとえフロート配置の設定に変更を加えたとしても、単に無視されます。
11091 \end_layout
11092
11093 \begin_layout Subsubsection
11094 ページヘッダおよびページフッタ
11095 \begin_inset CommandInset label
11096 LatexCommand label
11097 name "sec:foilfoot"
11098
11099 \end_inset
11100
11101
11102 \end_layout
11103
11104 \begin_layout Standard
11105
11106 \family sans
11107 グラフィックスロゴ
11108 \family default
11109
11110 \family sans
11111 配布制限
11112 \family default
11113 の二つは、左フッタ文を制御するものです。前者は、グラフィックスのロゴをスライドに入れるためのもので、既定値は「-Typeset by 
11114 \family sans
11115 Foil
11116 \family default
11117 TeX-」となっています。後者は、「機密事項」などのように、聴衆に秘密区分を提示することを意図しています。既定値では、何も設定されていません。
11118 \end_layout
11119
11120 \begin_layout Standard
11121 スライドの残り三隅には、
11122 \family sans
11123 右フッタ
11124 \family default
11125 (既定ではページ番号)・
11126 \family sans
11127 右ヘッダ
11128 \family default
11129 (右上)・
11130 \family sans
11131 左ヘッダ
11132 \family default
11133 (左上)を使って文字を入れることができます。
11134 \end_layout
11135
11136 \begin_layout Subsection
11137 サポートされない 
11138 \family sans
11139 Foil
11140 \family default
11141 TeX機能
11142 \begin_inset CommandInset label
11143 LatexCommand label
11144 name "sec:unsuppfoils"
11145
11146 \end_inset
11147
11148
11149 \end_layout
11150
11151 \begin_layout Standard
11152 以下で言及されているコマンドは、
11153 \family sans
11154 LaTeX
11155 \family default
11156 環境内で設定されるか、他の環境中の
11157 \family sans
11158 TeXコード
11159 \family default
11160 として設定される必要があります。
11161 \end_layout
11162
11163 \begin_layout Subsubsection
11164 長さ
11165 \end_layout
11166
11167 \begin_layout Standard
11168 長さは、すべて
11169 \family typewriter
11170
11171 \backslash
11172 setlength{
11173 \family default
11174 \emph on
11175 長さ名
11176 \family typewriter
11177 \emph default
11178 }{
11179 \family default
11180 \emph on
11181 新規長さ
11182 \family typewriter
11183 \emph default
11184 }
11185 \family default
11186 コマンドで調節されます。ここで
11187 \emph on
11188 長さ名
11189 \emph default
11190 は、変更したい長さに付けられている名前で置き換え、
11191 \emph on
11192 新規長さ
11193 \emph default
11194 は、その長さの値で置き換えます。長さはすべて、インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か、
11195 \family typewriter
11196
11197 \backslash
11198 textwidth
11199 \family default
11200 のように文書比あるいはフォント基準の長さで指定する必要があります。
11201 \end_layout
11202
11203 \begin_layout Standard
11204
11205 \family typewriter
11206
11207 \backslash
11208 foilheadskip
11209 \family default
11210 で指定される長さを調節することによって、スライドタイトルとスライド本文の間の余白を変更することができます。たとえば、スライドタイトルをすべて0.5
11211 \begin_inset space \space{}
11212 \end_inset
11213
11214 inだけスライド本文に近づけるには、プリアンブルに
11215 \family typewriter
11216
11217 \backslash
11218 setlength{
11219 \backslash
11220 foilheadskip}{-0.5in}
11221 \family default
11222 と書き込みます。
11223 \end_layout
11224
11225 \begin_layout Standard
11226 フロート周囲の余白は、以下の長さを設定することで調整することができます。
11227 \end_layout
11228
11229 \begin_layout Labeling
11230 \labelwidthstring MMMMMMMMMMM
11231
11232 \family typewriter
11233
11234 \backslash
11235 abovefloatskip
11236 \family default
11237  本文とフロート上辺との間隔
11238 \end_layout
11239
11240 \begin_layout Labeling
11241 \labelwidthstring MMMMMMMMMMM
11242
11243 \family typewriter
11244
11245 \backslash
11246 abovecaptionskip
11247 \family default
11248  フロートとキャプションとの間隔
11249 \end_layout
11250
11251 \begin_layout Labeling
11252 \labelwidthstring MMMMMMMMMMM
11253
11254 \family typewriter
11255
11256 \backslash
11257 belowcaptionskip
11258 \family default
11259  キャプションとそれに続く本文との間隔
11260 \end_layout
11261
11262 \begin_layout Labeling
11263 \labelwidthstring MMMMMMMMMMM
11264
11265 \family typewriter
11266
11267 \backslash
11268 captionwidth
11269 \family default
11270  この長さを調整することでキャプションを、周囲の本文より短くすることができます。
11271 \family typewriter
11272
11273 \backslash
11274 textwidth
11275 \family default
11276 に対する相対的な長さで調整するのが最も良いでしょう。
11277 \end_layout
11278
11279 \begin_layout Standard
11280 以下のようなタイトルページ関連の長さもあり、タイトルが長い場合や、著者が複数いる場合に使うと便利かもしれません。
11281 \end_layout
11282
11283 \begin_layout Labeling
11284 \labelwidthstring MMMMMMMMMMM
11285
11286 \family typewriter
11287
11288 \backslash
11289 abovetitleskip
11290 \family default
11291  へッダとタイトルとの間隔
11292 \end_layout
11293
11294 \begin_layout Labeling
11295 \labelwidthstring MMMMMMMMMMM
11296
11297 \family typewriter
11298
11299 \backslash
11300 titleauthorskip
11301 \family default
11302  
11303 \family sans
11304 タイトル
11305 \family default
11306 環境と
11307 \family sans
11308 著者
11309 \family default
11310 環境との間隔
11311 \end_layout
11312
11313 \begin_layout Labeling
11314 \labelwidthstring MMMMMMMMMMM
11315
11316 \family typewriter
11317
11318 \backslash
11319 authorauthorskip
11320 \family default
11321  著者が複数いる場合の
11322 \family sans
11323 著者
11324 \family default
11325 行の間隔
11326 \end_layout
11327
11328 \begin_layout Labeling
11329 \labelwidthstring MMMMMMMMMMM
11330
11331 \family typewriter
11332
11333 \backslash
11334 authordateskip
11335 \family default
11336  
11337 \family sans
11338 著者
11339 \family default
11340
11341 \family sans
11342 日付
11343 \family default
11344 との間隔
11345 \end_layout
11346
11347 \begin_layout Labeling
11348 \labelwidthstring MMMMMMMMMMM
11349
11350 \family typewriter
11351
11352 \backslash
11353 dateabstractskip
11354 \family default
11355  
11356 \family sans
11357 日付
11358 \family default
11359
11360 \family sans
11361 概要
11362 \family default
11363 との間隔
11364 \end_layout
11365
11366 \begin_layout Standard
11367 最後に紹介する長さ関連コマンドは、箇条書き環境すべてに使用できるものです。
11368 \family typewriter
11369
11370 \backslash
11371 zerolistvertdimens
11372 \family default
11373 を箇条書き環境の内側に置くと、項目間の垂直余白がすべて取り除かれます。これは長さではなくコマンドなので、上述のもののように
11374 \family typewriter
11375
11376 \backslash
11377 setlength
11378 \family default
11379 を使う必要がないことに注意してください。
11380 \end_layout
11381
11382 \begin_layout Subsubsection
11383 へッダとフッタ
11384 \end_layout
11385
11386 \begin_layout Standard
11387
11388 \family typewriter
11389
11390 \backslash
11391 LogoOn
11392 \family default
11393 および
11394 \family typewriter
11395
11396 \backslash
11397 LogoOff
11398 \family default
11399 は、
11400 \family typewriter
11401 MyLogo
11402 \family default
11403 で定義したロゴを特定のページに入れるかどうかを制御します。
11404 \family typewriter
11405
11406 \backslash
11407 LogoOff
11408 \family default
11409 をプリアンブルに入れると、全スライドからロゴが取り除かれます。特定のスライドにのみロゴを付けたくない場合は、当該ページのスライドタイトルの直後に直接
11410 \family typewriter
11411
11412 \backslash
11413 LogoOff
11414 \family default
11415 を置き、次のスライドタイトルの直後に直接
11416 \family typewriter
11417
11418 \backslash
11419 LogoOn
11420 \family default
11421 を置いてください。
11422 \end_layout
11423
11424 \begin_layout Standard
11425
11426 \family sans
11427 文書レイアウト
11428 \family default
11429 ダイアログで
11430 \family sans
11431 fancy
11432 \family default
11433 ページ様式を使用することを選択した場合には、横置きページのヘッダとフッタが回転後も正しく配置されるように、プリアンブルに
11434 \family typewriter
11435
11436 \backslash
11437 let
11438 \backslash
11439 headwidth
11440 \backslash
11441 textwidth
11442 \family default
11443 を加える必要があるでしょう。これは、
11444 \family sans
11445 fancyheadings
11446 \family default
11447 パッケージが提供するページレイアウトと
11448 \family sans
11449 foils
11450 \family default
11451 クラスの提供するページレイアウトの間に衝突が発生するためです。
11452 \end_layout
11453
11454 \begin_layout Section
11455 Hollywood(Hollywoodスペック・スクリプト)
11456 \end_layout
11457
11458 \begin_layout Standard
11459
11460 \noun on
11461 Garst Reese
11462 \noun default
11463
11464 \end_layout
11465
11466 \begin_layout Subsection
11467 はじめに
11468 \end_layout
11469
11470 \begin_layout Standard
11471 脚本を正しい書式で書くことは、ハリウッドにおける「通過儀礼」です。ハリウッドの脚本は、読み手が内容に集中できるようにし、俳優にとっても読みやすくかつ親しみやすい
11472 ように設計されています。脚本の1ページは、映画の1分でなければならず、銀幕上で見えたり聞こえたりしないものは、脚本に混入してはなりません。また、全体を通してCo
11473 urier 12
11474 \begin_inset space \space{}
11475 \end_inset
11476
11477 ptフォントを使わなければならず、イタリック体は用いてはいけません。
11478 \end_layout
11479
11480 \begin_layout Subsection
11481 特別な問題
11482 \end_layout
11483
11484 \begin_layout Standard
11485 話者の行は、文の途中で改行することは
11486 \emph on
11487 決して
11488 \emph default
11489 あってはなりません。もし話者行の塊が、次頁にまたがる場合には、
11490 \family sans
11491 話者
11492 \family default
11493 名を再度書き、その後に(Cont'd)と加えます。
11494 \end_layout
11495
11496 \begin_layout Subsection
11497 特別な機能
11498 \end_layout
11499
11500 \begin_layout Standard
11501
11502 \family sans
11503 話者
11504 \family default
11505 名はラベルとして挿入し、話者名を挿入するには、そのラベルを相互参照してください。相互参照ダイアログは、登場人物の現在の配役を表示することになります。これは、ト書
11506 きに話者名を挿入するのにも使用することができます。
11507 \end_layout
11508
11509 \begin_layout Subsection
11510 用紙寸法と余白
11511 \end_layout
11512
11513 \begin_layout Standard
11514 USレター寸法で、左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです。
11515 \end_layout
11516
11517 \begin_layout Subsection
11518 環境
11519 \end_layout
11520
11521 \begin_layout Standard
11522 以下の環境が利用可能です。右に示されているキー割当てを使用するには、hollywood.bindを使用してください。
11523 \end_layout
11524
11525 \begin_layout Itemize
11526
11527 \family sans
11528 一般
11529 \begin_inset Newline newline
11530 \end_inset
11531
11532
11533 \family default
11534 他の環境が動作しない場合に使用しますが、これを使うことは避けるようにしてください。
11535 \end_layout
11536
11537 \begin_layout Itemize
11538 フェイドイン:
11539 \begin_inset space \hfill{}
11540 \end_inset
11541
11542
11543 \family sans
11544 M-z S-I
11545 \family default
11546
11547 \begin_inset Newline newline
11548 \end_inset
11549
11550 通常、この後には「Sallyは目を覚ますと」のように続きます。
11551 \end_layout
11552
11553 \begin_layout Itemize
11554
11555 \family sans
11556 屋内:
11557 \begin_inset space \hfill{}
11558 \end_inset
11559
11560 M-z i
11561 \begin_inset Newline newline
11562 \end_inset
11563
11564
11565 \family default
11566 新しい屋内(INTERIOR)カメラの設定を指定します。この後には、かならずDAYやNIGHTなどを指定して、必要な照明を定義します。この行はすべて大文字で書き
11567 ます。
11568 \end_layout
11569
11570 \begin_layout Itemize
11571
11572 \family sans
11573 屋外:
11574 \begin_inset space \hfill{}
11575 \end_inset
11576
11577 M-z e
11578 \begin_inset Newline newline
11579 \end_inset
11580
11581
11582 \family default
11583 屋外(EXTERIOR)カメラの設定を指定します。この行はすべて大文字で書きます。
11584 \end_layout
11585
11586 \begin_layout Itemize
11587
11588 \family sans
11589 話者
11590 \begin_inset space \hfill{}
11591 \end_inset
11592
11593 M-z s
11594 \begin_inset Newline newline
11595 \end_inset
11596
11597
11598 \family default
11599 話す役。
11600 \end_layout
11601
11602 \begin_layout Itemize
11603
11604 \family sans
11605 括弧付き
11606 \begin_inset space \hfill{}
11607 \end_inset
11608
11609 M-z p
11610 \begin_inset Newline newline
11611 \end_inset
11612
11613 話者
11614 \family default
11615 への指示。自動的に括弧()が挿入されますが、LyX上で表示されるのは、左括弧( のみです。印刷出力には右括弧も表示されます。
11616 \end_layout
11617
11618 \begin_layout Itemize
11619
11620 \family sans
11621 対話
11622 \begin_inset space \hfill{}
11623 \end_inset
11624
11625 M-z d
11626 \begin_inset Newline newline
11627 \end_inset
11628
11629 話者
11630 \family default
11631 が話す内容。
11632 \end_layout
11633
11634 \begin_layout Itemize
11635
11636 \family sans
11637 画面遷移
11638 \begin_inset space \hfill{}
11639 \end_inset
11640
11641 M-z t
11642 \begin_inset Newline newline
11643 \end_inset
11644
11645
11646 \family default
11647 カメラの動きの指示。例:CUT TO:。
11648 \end_layout
11649
11650 \begin_layout Itemize
11651
11652 \family sans
11653 フェイドアウト:
11654 \begin_inset space \hfill{}
11655 \end_inset
11656
11657 M-z S-I
11658 \end_layout
11659
11660 \begin_layout Itemize
11661
11662 \family sans
11663 著者
11664 \begin_inset space \hfill{}
11665 \end_inset
11666
11667 M-z S-A
11668 \end_layout
11669
11670 \begin_layout Itemize
11671
11672 \family sans
11673 タイトル
11674 \begin_inset space \hfill{}
11675 \end_inset
11676
11677 M-z S-T
11678 \end_layout
11679
11680 \begin_layout Itemize
11681
11682 \family sans
11683 右寄せ住所
11684 \begin_inset space \hfill{}
11685 \end_inset
11686
11687 M-z r
11688 \end_layout
11689
11690 \begin_layout Subsection
11691 脚本で使われる特別な用語
11692 \end_layout
11693
11694 \begin_layout Itemize
11695 (O.S) — off screen
11696 \end_layout
11697
11698 \begin_layout Itemize
11699 (V.0) — voice over
11700 \end_layout
11701
11702 \begin_layout Itemize
11703 b.g.
11704  — background
11705 \end_layout
11706
11707 \begin_layout Itemize
11708 C.U.
11709  — close-up
11710 \end_layout
11711
11712 \begin_layout Itemize
11713 PAN — camera movement
11714 \end_layout
11715
11716 \begin_layout Itemize
11717 INSERT — cut to close-up of
11718 \end_layout
11719
11720 \begin_layout Section
11721 ijmpcおよびijmpd
11722 \end_layout
11723
11724 \begin_layout Standard
11725
11726 \noun on
11727 Panayotis Papasotiriou
11728 \noun default
11729
11730 \end_layout
11731
11732 \begin_layout Subsection
11733 概観
11734 \end_layout
11735
11736 \begin_layout Standard
11737 ijpmcパッケージは、
11738 \emph on
11739 International Journal of Modern Physics C
11740 \emph default
11741 への電子投稿を可能にするためのマクロ集です。同様に、ijpmdパッケージは、
11742 \emph on
11743 International Journal of Modern Physics D
11744 \emph default
11745 へ投稿する現行を作成するためのものです。両誌ともWorld Scientific社の刊行です。対応する文書クラス名は、それぞれ
11746 \family typewriter
11747 ws-ijmpc.cls
11748 \family default
11749 および
11750 \family typewriter
11751 ws-ijmpd.cls
11752 \family default
11753 です。これらのファイルは、著者のための指針とともに、
11754 \begin_inset Flex URL
11755 status collapsed
11756
11757 \begin_layout Plain Layout
11758
11759 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
11760 \end_layout
11761
11762 \end_inset
11763
11764 および
11765 \begin_inset Flex URL
11766 status collapsed
11767
11768 \begin_layout Plain Layout
11769
11770 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
11771 \end_layout
11772
11773 \end_inset
11774
11775 の各サイトからダウンロードすることができます。両パッケージは、標準「article」パッケージの修正版であり、両者は(一部を除き)ほぼ同一です。LyXは、これら
11776 のパッケージのほとんどの機能をサポートしています。私は両誌へ投稿する論文をLyXで書き上げましたが、何らの問題も生じませんでした。
11777 \end_layout
11778
11779 \begin_layout Subsection
11780 論文を書く
11781 \end_layout
11782
11783 \begin_layout Standard
11784 通常と同じく、論文を書く上で最も易しい方法は、ひな型を使って書き始めることです。
11785 \family sans
11786 ファイル\SpecialChar \menuseparator
11787 新規(ひな形使用)
11788 \family default
11789 をクリックして、ひな型
11790 \family typewriter
11791 ijmpc.lyx
11792 \family default
11793 もしくは
11794 \family typewriter
11795 ijmpd.lyx
11796 \family default
11797 を選択してください。すると、原稿で良く使用されるフィールドを含んだ、ほぼ空の文書ができますので、既存のフィールド(鍵括弧
11798 \family typewriter
11799 <>
11800 \family default
11801 を含む)を正しい情報で置き換えてください。以下の各点にご留意ください。
11802 \end_layout
11803
11804 \begin_layout Enumerate
11805 両パッケージでは、フォント寸法や文書のページ様式を変更することが禁じられているので、LyX中でこれらを変更することはできません。
11806 \end_layout
11807
11808 \begin_layout Enumerate
11809 文書言語は変更してはいけません。論文をプレビューする前に、babelパッケージが使用されていないことを確認してください。これは、
11810 \family sans
11811 ツール\SpecialChar \menuseparator
11812 設定
11813 \family default
11814 をクリックして、
11815 \family sans
11816 言語オプション
11817 \family default
11818 タブを選択し、言語設定で
11819 \family sans
11820 Babelを使う
11821 \family default
11822 チェックボックスを無効にしてから、
11823 \family sans
11824 適用
11825 \family default
11826 をクリックすれば、設定することができます(この変更を固定するなら
11827 \family sans
11828 保存
11829 \family default
11830 を押してください)。
11831 \end_layout
11832
11833 \begin_layout Enumerate
11834 キーワードを定義するに際しては、「キーワード」様式を用いなくてはなりません。
11835 \end_layout
11836
11837 \begin_layout Enumerate
11838 ijmpcパッケージが提供する「分類コード」様式は、PACS番号のような分類コードを定義するのに使用することができます。この機能は、ijmpdパッケージではサポ
11839 ートされていませんので、ご注意ください。
11840 \end_layout
11841
11842 \begin_layout Enumerate
11843 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
11844 きます。これらの使い方は、大凡自明でしょう。LyXは、これらの環境をすべてサポートし、それぞれについて、適切なラベルと文字様式および連番スキームを使用します。
11845 \end_layout
11846
11847 \begin_layout Enumerate
11848 両パッケージは、単純な引用を使用しますので、natbibパッケージは使用してはなりません。LyX中では、引用参照は通常通り表示されますが、出力では上付き文字とし
11849 て表示されます。引用に通常の本文を使用したい場合には、「See Ref.
11850 \begin_inset space \space{}
11851 \end_inset
11852
11853
11854 \family typewriter
11855
11856 \backslash
11857 refcite{キー}
11858 \family default
11859 」のように
11860 \family typewriter
11861 refcite
11862 \family default
11863 コマンドを使用してください。
11864 \end_layout
11865
11866 \begin_layout Enumerate
11867 両パッケージには、「謝辞」環境がありません。謝辞を置くには、「節*」環境を使用してください。
11868 \end_layout
11869
11870 \begin_layout Enumerate
11871 付録は、論文中、謝辞の
11872 \emph on
11873
11874 \emph default
11875 かつ参考文献の
11876 \emph on
11877
11878 \emph default
11879 であれば、入れることができます。LyX上では、「付録領域」という特別な環境があり、これを使って付録の開始位置を指定することができます。この環境は空のままにしてお
11880 かなくてはなりません。この環境は、LaTeXコマンドを書き出すだけで、実際に出力は行いません。LyX上では、青字で「Appendix」という単語が表示され、この
11881 箇所より後の節はすべて付録であることを明示します。「付録領域」は、最初の付録の前に
11882 \emph on
11883 なくてはならない
11884 \emph default
11885 ことに注意してください。さもなくば、出力中において、付録はすべて通常の節として連番が振られてしまいます。
11886 \end_layout
11887
11888 \begin_layout Enumerate
11889 ijmpcおよびijmpdパッケージは、表キャプションを実装するのに
11890 \family typewriter
11891 tbl
11892 \family default
11893 コマンドを使用します。そのため、LyXが作成した表は正しく印字されますが、そのキャプションは無視されます。しかし、TeXコードを少し使えば、この問題を回避して、
11894 キャプションを望み通り印字することができるようになります。そうするには、表フロートを通常通り作成して、キャプションを削除し、代わりにTeXコードで
11895 \family typewriter
11896
11897 \backslash
11898 tbl{表キャプション}{
11899 \family default
11900 (ママ)と入れます。そこに表の内容を入れて、直後をTeXコード
11901 \family typewriter
11902 }
11903 \family default
11904 で閉じてください。このからくりがどのように実装されているかを見るには、ひな型ファイルに入っている表の例を精査してみてください。別の方法としては、表キャプションが
11905 欲しい場合に、表フロート全体を
11906 \family typewriter
11907 .tex
11908 \family default
11909 ファイルに収め、このファイルをLyX文書に取り込んでください(
11910 \family sans
11911 挿入\SpecialChar \menuseparator
11912 ファイル\SpecialChar \menuseparator
11913 子文書
11914 \family default
11915 )。表フロートの作り方についての詳細は、各パッケージに含まれている
11916 \family typewriter
11917 ws-ijmpc.tex
11918 \family default
11919 または
11920 \family typewriter
11921 ws-ijmpd.tex
11922 \family default
11923 ファイルをご覧ください。
11924 \end_layout
11925
11926 \begin_layout Subsection
11927 原稿を投稿するための準備
11928 \end_layout
11929
11930 \begin_layout Standard
11931 論文を投稿する前には、LyX文書をLaTeXファイルに書き出し(
11932 \family sans
11933 ファイル\SpecialChar \menuseparator
11934 書き出し\SpecialChar \menuseparator
11935 LaTeX
11936 \family default
11937
11938 \begin_inset Foot
11939 status open
11940
11941 \begin_layout Plain Layout
11942 実は、LaTeX (plain)とpdflatexとの間で選択ができます。論文を準備するのにpdflatexを使用しようとするのであれば、取り込んである画像がP
11943 DF形式に変換され、pdflatexで使用できるように、pdflatexオプションを指定しなくてはなりません。
11944 \end_layout
11945
11946 \end_inset
11947
11948 、その
11949 \family typewriter
11950 .tex
11951 \family default
11952 ファイルに以下の変更を加える必要があります。
11953 \end_layout
11954
11955 \begin_layout Enumerate
11956
11957 \family typewriter
11958
11959 \backslash
11960 documentclass
11961 \family default
11962 コマンドより前にあるコメント行を削除する。
11963 \end_layout
11964
11965 \begin_layout Enumerate
11966 自身で明示的にLaTeXプリアンブルに置いたコマンドを除き、
11967 \family typewriter
11968
11969 \backslash
11970 makeatletter
11971 \family default
11972 コマンドと
11973 \family typewriter
11974
11975 \backslash
11976 makeatother
11977 \family default
11978 コマンドの間にあるものをすべて削除する。
11979 \end_layout
11980
11981 \begin_layout Standard
11982 こうして修正を加えた
11983 \family typewriter
11984 .tex
11985 \family default
11986 ファイルを保存し、必要な回数LaTeXで処理してください。それによって得られた
11987 \family typewriter
11988 .dvi
11989 \family default
11990 文書も確認された方がよろしいでしょう。
11991 \end_layout
11992
11993 \begin_layout Subsection
11994 TeXコードの使用
11995 \end_layout
11996
11997 \begin_layout Standard
11998 TeXコードを使用するのは、2つのコマンドに限られ、これらは文書の最初に置かれなくてはなりません。論文をひな型
11999 \family typewriter
12000 ijmpc.lyx
12001 \family default
12002 または
12003 \family typewriter
12004 ijmpd.lyx
12005 \family default
12006 を使用して書き始めた場合には、これら必要なTeXコードは、すでに書き込まれています。通常、これらを削除する必要はありません。2つのうち1番めのTeXコードのみが
12007 、奇数ページおよび偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために、修正する必要があります。このTeXコードは、
12008 \family typewriter
12009
12010 \backslash
12011 markboth{著者名}{論文の短縮タイトル}
12012 \family default
12013 という形である必要があります。
12014 \end_layout
12015
12016 \begin_layout Section
12017 iopart
12018 \end_layout
12019
12020 \begin_layout Standard
12021
12022 \noun on
12023 Uwe Stöhr
12024 \noun default
12025
12026 \end_layout
12027
12028 \begin_layout Subsection
12029 概要
12030 \end_layout
12031
12032 \begin_layout Standard
12033 iopartパッケージは、Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12034 す。iopartクラスを使用した論文作成方法の著者用説明書は、ウェブサイト
12035 \begin_inset Flex URL
12036 status collapsed
12037
12038 \begin_layout Plain Layout
12039
12040 ftp://ftp.iop.org/pub/journals/latex2e
12041 \end_layout
12042
12043 \end_inset
12044
12045 からiopartパッケージとともにダウンロード可能です。
12046 \end_layout
12047
12048 \begin_layout Subsection
12049 論文を書く
12050 \end_layout
12051
12052 \begin_layout Standard
12053 論文を書くもっとも簡単な方法は、LyXの用例ファイルフォルダにある
12054 \emph on
12055 IOP-article.lyx
12056 \emph default
12057 を土台にすることです。このファイルを開き、新しい名前で保存して、書き始めてください。この用例ファイルは、特定の環境の使用法についても説明しています。もっとも重要
12058 な助言として、以下の点にご注意ください。
12059 \end_layout
12060
12061 \begin_layout Itemize
12062 文書がPDF・PS・DVIにコンパイルできるようにするためには、文書設定の
12063 \family sans
12064 数式オプション
12065 \family default
12066 で、二つの
12067 \family sans
12068 AMS mathパッケージを使う
12069 \family default
12070 関連オプションが有効になっていないことを確認してください!
12071 \end_layout
12072
12073 \begin_layout Itemize
12074 タイトル環境の選択如何によって、論文の種類が定義されます。種類毎に以下の環境をタイトルに使用してください。
12075 \end_layout
12076
12077 \begin_deeper
12078 \begin_layout Itemize
12079 論文用には
12080 \family sans
12081 タイトル
12082 \end_layout
12083
12084 \begin_layout Itemize
12085 Review用には
12086 \family sans
12087 Review
12088 \end_layout
12089
12090 \begin_layout Itemize
12091 Topical review用には
12092 \family sans
12093 Topical
12094 \end_layout
12095
12096 \begin_layout Itemize
12097 Comment用には
12098 \family sans
12099 Comment
12100 \end_layout
12101
12102 \begin_layout Itemize
12103 Note用には
12104 \family sans
12105 注釈
12106 \end_layout
12107
12108 \begin_layout Itemize
12109 論文用には
12110 \family sans
12111 Paper
12112 \family default
12113 (タイトルと同じ)
12114 \end_layout
12115
12116 \begin_layout Itemize
12117 Preliminary communication用には
12118 \family sans
12119 Prelim
12120 \end_layout
12121
12122 \begin_layout Itemize
12123 Rapid communication用には
12124 \family sans
12125 Rapid
12126 \end_layout
12127
12128 \begin_layout Itemize
12129 編集者へのLetterには
12130 \family sans
12131 書簡
12132 \end_layout
12133
12134 \end_deeper
12135 \begin_layout Itemize
12136
12137 \family sans
12138 書簡
12139 \family default
12140 以外のタイトル環境には、すべて短縮タイトルをつけることもできます。
12141 \end_layout
12142
12143 \begin_layout Itemize
12144 LyXでは直接にサポートされていませんが、一般的なタイトル環境として
12145 \family sans
12146 Article
12147 \family default
12148 があります。執筆する文書が、他のタイトル型にそぐわない場合には、TeXコードでこれを指定することができます。
12149 \end_layout
12150
12151 \begin_layout Standard
12152 特別な表や数式組版に関するヒントなど、詳しい情報については、IOP著者用ガイドラインを参照してください。
12153 \end_layout
12154
12155 \begin_layout Section
12156 Kluwer
12157 \end_layout
12158
12159 \begin_layout Standard
12160
12161 \noun on
12162 Panayotis Papasotiriou
12163 \noun default
12164
12165 \end_layout
12166
12167 \begin_layout Subsection
12168 概要
12169 \end_layout
12170
12171 \begin_layout Standard
12172 Kluwerパッケージは、Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために、同社が作成したマクロ集です。同社
12173 の発行誌のうち、(少なくとも私の専門内で)もっともよく知られているものは、
12174 \emph on
12175 Astrophysics and Space Science
12176 \emph default
12177 (『宇宙物理学と宇宙科学』)と
12178 \emph on
12179 Solar Physics
12180 \emph default
12181 (『太陽系物理学』)ですが、他にも多くの学術誌があります(
12182 \begin_inset Flex URL
12183 status collapsed
12184
12185 \begin_layout Plain Layout
12186
12187 http://www.wkap.nl/jrnllist.htm/JRNLHOME
12188 \end_layout
12189
12190 \end_inset
12191
12192 に全覧があります)。Kluwerパッケージは、
12193 \begin_inset Flex URL
12194 status collapsed
12195
12196 \begin_layout Plain Layout
12197
12198 http://www.wkap.nl/kaphtml.htm/STYLEFILES
12199 \end_layout
12200
12201 \end_inset
12202
12203 からダウンロードできます。完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です)。
12204 \end_layout
12205
12206 \begin_layout Standard
12207 LyXは、このパッケージの機能の多くをサポートしていますが、すべてではありません。しかし、TeXコードを必要とするのは、パッケージ中のいくつかの「変わった」コマ
12208 ンドだけになりました(
12209 \begin_inset CommandInset ref
12210 LatexCommand ref
12211 reference "subsec:kluwer_peculiarities"
12212
12213 \end_inset
12214
12215 参照)。最近、私はLyXを使って書いた論文を
12216 \emph on
12217 Astrophysics and Space Science
12218 \emph default
12219 に投稿しましたが、何らの問題も発生しませんでした。
12220 \end_layout
12221
12222 \begin_layout Subsection
12223 論文を書く
12224 \end_layout
12225
12226 \begin_layout Standard
12227 論文を書き始めるには、ひな型ファイルKluwerを使うのが最も簡単です。
12228 \family sans
12229 ファイル\SpecialChar \menuseparator
12230 新規(ひな型使用)
12231 \family default
12232 をクリックし、ひな型
12233 \family typewriter
12234 kluwer.lyx
12235 \family default
12236 を選択してください。これは、原稿に通常必要となる各フィールドと、それらの使用法が短く書かれただけの、(ほとんど)何も書かれていない文書です。他のテンプレートと同
12237 様に、既存の文章を(括弧
12238 \family typewriter
12239 <>
12240 \family default
12241 を含む)正しい情報で上書きしてください。
12242 \end_layout
12243
12244 \begin_layout Subsection
12245 投稿の準備
12246 \end_layout
12247
12248 \begin_layout Standard
12249 AASTeXパッケージと同様、論文を投稿する前に、以下のような「後処理」を行う必要があります。
12250 \end_layout
12251
12252 \begin_layout Enumerate
12253
12254 \family sans
12255 ファイル\SpecialChar \menuseparator
12256 書き出し\SpecialChar \menuseparator
12257 LateX
12258 \family default
12259 をクリックして、論文をLaTeXファイルに書き出す。
12260 \end_layout
12261
12262 \begin_layout Enumerate
12263 生成された
12264 \family typewriter
12265 .tex
12266 \family default
12267 ファイルに、テキストエディタを使用して、以下のような変更を加える。
12268 \end_layout
12269
12270 \begin_deeper
12271 \begin_layout Enumerate
12272
12273 \family typewriter
12274
12275 \backslash
12276 documentclass
12277 \family default
12278 コマンドより前にあるコメント行を削除する。
12279 \end_layout
12280
12281 \begin_layout Enumerate
12282 意図的にLaTeXプリアンブルに加えたコマンドを除き、
12283 \family typewriter
12284
12285 \backslash
12286 makeatletter
12287 \family default
12288 から 
12289 \family typewriter
12290
12291 \backslash
12292 makeatother
12293 \family default
12294 の間にあるものを、これらのコマンドも含め、すべて削除する。
12295 \end_layout
12296
12297 \begin_layout Standard
12298 変更した
12299 \family typewriter
12300 .tex
12301 \family default
12302 ファイルを保存する。
12303 \end_layout
12304
12305 \end_deeper
12306 \begin_layout Enumerate
12307 この
12308 \family typewriter
12309 .tex
12310 \family default
12311 ファイルを必要な回数(通常3回以内)だけLaTeXにかける。
12312 \end_layout
12313
12314 \begin_layout Enumerate
12315 生成された
12316 \family typewriter
12317 .dvi
12318 \family default
12319 ファイルを
12320 \family sans
12321 xdvi
12322 \family default
12323 などを使って開き、問題がないか確認する(間違いをしていない限り問題ないはずです)。
12324 \end_layout
12325
12326 \begin_layout Subsection
12327 Kluwerパッケージの「風変わり」な特徴
12328 \begin_inset CommandInset label
12329 LatexCommand label
12330 name "subsec:kluwer_peculiarities"
12331
12332 \end_inset
12333
12334
12335 \end_layout
12336
12337 \begin_layout Standard
12338 Kluwerパッケージには、以下のような「風変わりな」特徴があります。
12339 \end_layout
12340
12341 \begin_layout Enumerate
12342 複数の論文を1つのLaTeXファイルへ入れることができます
12343 \begin_inset Foot
12344 status collapsed
12345
12346 \begin_layout Plain Layout
12347 わざわざこんなことをする必要はないでしょう。
12348 \end_layout
12349
12350 \end_inset
12351
12352 。各論文は、「article」環境で囲まなくてはなりません。残念ながら、1つの論文だけを書く場合でも、この環境を省略することはできません。つまり、各論文は
12353 \family typewriter
12354
12355 \backslash
12356 begin{article}
12357 \family default
12358 で始まり、
12359 \family typewriter
12360
12361 \backslash
12362 end{article}
12363 \family default
12364 で終わります。この環境をLyXに実装することも可能でしたが、醜い上に初心者を混乱させる可能性があるので、実装することはしませんでした。したがって、これらの命令(
12365 \family typewriter
12366
12367 \backslash
12368 begin{article}
12369 \family default
12370
12371 \family typewriter
12372
12373 \backslash
12374 end{article}
12375 \family default
12376 )は、直接本文中に入力して、LaTeXコード(「TeXコード」のことです)としてマークする必要があります。
12377 \end_layout
12378
12379 \begin_layout Enumerate
12380 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は、「opening」とよばれる環境に入れなくて
12381 はなりません。これはLyXでは実装されていませんので、タイトルやサブタイトルなどは、2つのTeXコード行(
12382 \family typewriter
12383
12384 \backslash
12385 begin{opening}
12386 \family default
12387 および
12388 \family typewriter
12389
12390 \backslash
12391 end{opening}
12392 \family default
12393 )の間に入れる必要があります。
12394 \end_layout
12395
12396 \begin_layout Enumerate
12397 ユーザーの手引きによれば、参考文献の各項目のラベルは、
12398 \family typewriter
12399
12400 \backslash
12401 protect
12402 \backslash
12403 citeauthoryear{
12404 \family default
12405 \emph on
12406 著者名
12407 \family typewriter
12408 \emph default
12409 }{
12410 \family default
12411 \emph on
12412
12413 \family typewriter
12414 \emph default
12415 }
12416 \family default
12417  と書く必要があります。
12418 \end_layout
12419
12420 \begin_layout Standard
12421 ひな型
12422 \family typewriter
12423 kluwer.lyx
12424 \family default
12425 は、これらの風変わりな点がすべて考慮されています。このひな型を使用して、論文を新たに書きはじめる場合には、特別なことを行う必要はありません。以下の点にのみ留意し
12426 てください。
12427 \end_layout
12428
12429 \begin_layout Enumerate
12430 ひな型にあるTeXコードを削除しないでください。
12431 \end_layout
12432
12433 \begin_layout Enumerate
12434 新しい参考文献項目を入力する場合には、ひな型に例示されている参考文献項目をコピーして、必要に応じて修正してください。
12435 \end_layout
12436
12437 \begin_layout Section
12438 Koma-Script
12439 \end_layout
12440
12441 \begin_layout Standard
12442
12443 \noun on
12444 Bernd Rellermeyer
12445 \noun default
12446
12447 \end_layout
12448
12449 \begin_layout Subsection
12450 概要
12451 \end_layout
12452
12453 \begin_layout Standard
12454 LyXの文書クラス
12455 \emph on
12456 article (koma-script)
12457 \emph default
12458
12459 \emph on
12460 report (koma-script)
12461 \emph default
12462
12463 \emph on
12464 book
12465 \emph default
12466  
12467 \emph on
12468 (koma-script)
12469 \emph default
12470
12471 \emph on
12472 letter
12473 \emph default
12474  
12475 \emph on
12476 (koma-script)
12477 \emph default
12478 は、それぞれKoma-ScriptファミリーのLaTeX文書クラス
12479 \family typewriter
12480 scrartcl.cls
12481 \family default
12482
12483 \family typewriter
12484 scrreprt.cls
12485 \family default
12486
12487 \family typewriter
12488 scrbook.cls
12489 \family default
12490
12491 \family typewriter
12492 scrlettr.cls
12493 \family default
12494 に対応しています。これらは、標準文書クラス
12495 \family typewriter
12496 article.cls
12497 \family default
12498
12499 \family typewriter
12500 report.cls
12501 \family default
12502
12503 \family typewriter
12504 book.cls
12505 \family default
12506
12507 \family typewriter
12508 letter.cls
12509 \family default
12510 の代替物であり、これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します。
12511 \end_layout
12512
12513 \begin_layout Itemize
12514 標準文字寸法は、
12515 \emph on
12516 article (koma-script)
12517 \emph default
12518
12519 \emph on
12520 report (koma-script)
12521 \emph default
12522
12523 \emph on
12524 book (koma-script)
12525 \emph default
12526 で11pt、
12527 \emph on
12528 letter (koma-script)
12529 \emph default
12530 で12ptです。
12531 \end_layout
12532
12533 \begin_layout Itemize
12534 見出しや箇条書き(記述)環境のラベル、および
12535 \emph on
12536 letter (koma-script)
12537 \emph default
12538 文書クラスの要素の多くでは、ボールド体サンセリフフォントが使われます
12539 \begin_inset Foot
12540 status collapsed
12541
12542 \begin_layout Plain Layout
12543 ボールド体サンセリフフォントには、古いcmフォントと新しいecフォントの間に大きな違いがあり、特に見出しの表示の違いが際立ちます。比較すると、ecボールドサンセ
12544 リフフォントの方が、少し細く見えます。ecフォントを使用する際に「通常の」外観が欲しい場合には、
12545 \shape smallcaps
12546 Walter Schmidt
12547 \shape default
12548 作のLaTeXパッケージ
12549 \family typewriter
12550 cmsd.sty
12551 \family default
12552 が役立ちます。
12553 \end_layout
12554
12555 \end_inset
12556
12557 。章見出しの連番は、節見出しの連番と同様に行われ、別行立てで「 Chapter\SpecialChar \ldots{}
12558 」という行がつきません。さらに、多くのオプションによって、見出しの外観を修正するこ
12559 とができます(LyXでは、
12560 \family sans
12561 文書\SpecialChar \menuseparator
12562 設定
12563 \family default
12564 ダイアログの
12565 \family sans
12566 クラスオプション
12567 \family default
12568 フィールドで指定します)。これらのオプションの独語での詳細な説明が、Koma-Scriptの取扱説明書
12569 \emph on
12570 scrguide
12571 \emph default
12572 にあります。
12573 \end_layout
12574
12575 \begin_layout Itemize
12576 Koma-Script文書クラスで、印字部分をデザインする主な方法は、
12577 \family sans
12578 BCOR
12579 \family default
12580 オプションまたは
12581 \family sans
12582 DIV
12583 \family default
12584 オプションを使う方法です(LyXでは、
12585 \family sans
12586 文書\SpecialChar \menuseparator
12587 設定
12588 \family default
12589 ダイアログの
12590 \family sans
12591 クラスオプション
12592 \family default
12593 フィールドで指定します)。これらのオプションは
12594 \family sans
12595 文書\SpecialChar \menuseparator
12596 設定
12597 \family default
12598 ダイアログのオプションと同様に、ページ余白を明示的に変更することができます。これらとその他印字領域オプションのドイツ語での詳細な説明が、Koma-Script取
12599 扱説明書
12600 \emph on
12601 scrguide
12602 \emph default
12603 にあります。
12604 \end_layout
12605
12606 \begin_layout Itemize
12607 Koma-ScriptファミリーのLaTeX文書クラスには、多くの追加コマンドが定義されています。それらのうち、LyXで意味を持つものは、対応する段落環境として
12608 実装されています。
12609 \end_layout
12610
12611 \begin_layout Standard
12612 Koma-ScriptファミリーのLaTeX文書クラスに関する独語の詳細な説明が、Koma-Script取扱説明書
12613 \emph on
12614 scrguide
12615 \emph default
12616 にあります
12617 \begin_inset Foot
12618 status collapsed
12619
12620 \begin_layout Plain Layout
12621 英語翻訳版の
12622 \emph on
12623 screnggu
12624 \emph default
12625 もありますが、完訳ではありません。
12626 \end_layout
12627
12628 \end_inset
12629
12630 。以下の各節では、LyXに関係する側面のみ説明致します。
12631 \end_layout
12632
12633 \begin_layout Subsection
12634 article (koma-script)・report (koma-script)・book (koma-script)
12635 \end_layout
12636
12637 \begin_layout Standard
12638 文書クラス
12639 \emph on
12640 article (koma-script)
12641 \emph default
12642
12643 \emph on
12644 report (koma-script)
12645 \emph default
12646
12647 \emph on
12648 book
12649 \emph default
12650  
12651 \emph on
12652 (koma-script)
12653 \emph default
12654 は、それぞれレイアウトファイル
12655 \family typewriter
12656 scrartcl.layout
12657 \family default
12658
12659 \family typewriter
12660 scrreprt.layou
12661 \family default
12662 t・
12663 \family typewriter
12664 crbook.layout
12665 \family default
12666 によって実装されています。これらは、対応する標準文書クラス
12667 \emph on
12668 article
12669 \emph default
12670
12671 \emph on
12672 report
12673 \emph default
12674
12675 \emph on
12676 book
12677 \emph default
12678 の段落環境を、若干の修正を加えた上ですべて含んでいますが、LyX固有の
12679 \family sans
12680 箇条書き(一覧)
12681 \family default
12682 環境は例外であり、同じ機能を持つ新しい
12683 \family sans
12684 ラベリング
12685 \family default
12686 環境で置き換えられています。この
12687 \family sans
12688 ラベリング
12689 \family default
12690 環境以外にも、新しい段落環境が多く追加されています。これらは、
12691 \emph on
12692 letter (koma-script)
12693 \emph default
12694 には含まれていないのでご注意ください。
12695 \end_layout
12696
12697 \begin_layout Itemize
12698
12699 \family sans
12700 部(addpart)
12701 \family default
12702
12703 \family sans
12704 章(addchap)
12705 \family default
12706
12707 \family sans
12708 節(addsec)
12709 \family default
12710 :これらは、それぞれ
12711 \family sans
12712 部*
12713 \family default
12714
12715 \family sans
12716 章*
12717 \family default
12718
12719 \family sans
12720 節*
12721 \family default
12722 と同等の働きをしますが、加えて目次に項目が表示されるようになります。
12723 \family sans
12724 部(addpart)
12725 \family default
12726
12727 \family sans
12728 章(addchap)
12729 \family default
12730 は、
12731 \emph on
12732 article (koma-script)
12733 \emph default
12734 には収録されていません。
12735 \end_layout
12736
12737 \begin_layout Itemize
12738
12739 \family sans
12740 章(addchap*)
12741 \family default
12742
12743 \family sans
12744 節(addsec*)
12745 \family default
12746 :これらは、
12747 \family sans
12748 章(addchap
12749 \family default
12750 )と
12751 \family sans
12752 節(addsec)
12753 \family default
12754 とまったく同等に動作しますが、加えてランニングへッダを取り除きます。
12755 \family sans
12756 章(addchap*)
12757 \family default
12758 は、 
12759 \emph on
12760 article (koma-script)
12761 \emph default
12762 には収録されていません
12763 \begin_inset Foot
12764 status collapsed
12765
12766 \begin_layout Plain Layout
12767
12768 \emph on
12769 book (koma-script)
12770 \emph default
12771
12772 \emph on
12773 report (koma-script)
12774 \emph default
12775 には、
12776 \family typewriter
12777
12778 \backslash
12779 addpart*
12780 \family default
12781 コマンドもありますが、これは
12782 \family sans
12783 Part*
12784 \family default
12785 と同一なので、LyXでは実装されていません。
12786 \end_layout
12787
12788 \end_inset
12789
12790
12791 \end_layout
12792
12793 \begin_layout Itemize
12794
12795 \family sans
12796 小見出し(minisec)
12797 \family default
12798 :これは文書構造に現れない形で、続く段落の直上に標準文字寸法の見出しを付けます。
12799 \end_layout
12800
12801 \begin_layout Itemize
12802
12803 \family sans
12804 上部キャプション
12805 \family default
12806
12807 \family sans
12808 下部キャプション
12809 \family default
12810 は、ある要素の上部ないし下部にキャプションを配置する際、位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば、表キャプションは、つ
12811 ねに表の上に置くべきでしょう)。また、クラスオプション
12812 \family typewriter
12813 tablecaptionsabove
12814 \family default
12815 を用いれば、キャプションを指定すると、表には
12816 \family sans
12817 上部キャプション
12818 \family default
12819 が、図には
12820 \family sans
12821 下部キャプション
12822 \family default
12823 が適用されるようになります。これを使用するためには、Koma-Script第2.8q版以上が必要です。
12824 \end_layout
12825
12826 \begin_layout Itemize
12827
12828 \family sans
12829 格言(dictum)
12830 \family default
12831 :これは、章頭などに警句を置くのに用いることができます。オプション引数(
12832 \family sans
12833 挿入\SpecialChar \menuseparator
12834 短縮タイトル
12835 \family default
12836 )を用いれば、格言の作者を入れることができます。格言と作者の間は、線で区切られます。これを使用するためには、Koma-Script第2.8q版以上が必要です。
12837 \family sans
12838 格言(dictum)
12839 \family default
12840 は、
12841 \emph on
12842 article (koma-script)
12843 \emph default
12844 には収録されていません。
12845 \end_layout
12846
12847 \begin_layout Standard
12848 以下の各環境は、標準の
12849 \family sans
12850 タイトル
12851 \family default
12852
12853 \family sans
12854 著者
12855 \family default
12856
12857 \family sans
12858 日付
12859 \family default
12860 とともに文書のタイトル領域を形成します。これらは、最初の「通常の」段落よりも前に置かれる必要があります
12861 \begin_inset Foot
12862 status collapsed
12863
12864 \begin_layout Plain Layout
12865 つまり、対応するLaTeXコマンドが
12866 \family typewriter
12867
12868 \backslash
12869 maketitle
12870 \family default
12871 コマンドよりも前に現れなくてはなりません。
12872 \end_layout
12873
12874 \end_inset
12875
12876 。これらの環境が2度以上使用された場合には、後に使用されたものが前のものを上書きします。つまり最後に使用したもののみが有効になります。しかしながら、
12877 \family sans
12878 タイトル
12879 \family default
12880
12881 \family sans
12882 著者
12883 \family default
12884
12885 \family sans
12886 日付
12887 \family default
12888 のような異なる環境の順序を変更しても、生成された文書には何の効果も生じません。
12889 \end_layout
12890
12891 \begin_layout Itemize
12892
12893 \family sans
12894 主題
12895 \family default
12896 :通常のタイトル部(
12897 \family sans
12898 タイトル
12899 \family default
12900
12901 \family sans
12902 著者
12903 \family default
12904
12905 \family sans
12906 日付
12907 \family default
12908 )の上に、文書の主題用の中央揃えの段落を生成します。
12909 \end_layout
12910
12911 \begin_layout Itemize
12912
12913 \family sans
12914 出版社
12915 \family default
12916 :通常のタイトル部(
12917 \family sans
12918 タイトル
12919 \family default
12920
12921 \family sans
12922 著者
12923 \family default
12924
12925 \family sans
12926 日付
12927 \family default
12928 )の下に、出版社名用の中央揃えの段落を生成します。
12929 \end_layout
12930
12931 \begin_layout Itemize
12932
12933 \family sans
12934 献呈
12935 \family default
12936
12937 \emph on
12938 report (koma-script)
12939 \emph default
12940
12941 \emph on
12942 book (koma-script)
12943 \emph default
12944 では、タイトル頁の次に、献辞用の中央揃えの段落を独立した頁として生成します。
12945 \emph on
12946 article (koma-script)
12947 \emph default
12948 の場合は、通常のタイトル部(
12949 \family sans
12950 タイトル
12951 \family default
12952
12953 \family sans
12954 著者
12955 \family default
12956
12957 \family sans
12958 日付
12959 \family default
12960 )の下に献辞用の中央揃えの段落を生成します。
12961 \end_layout
12962
12963 \begin_layout Itemize
12964
12965 \family sans
12966 タイトル頭書き
12967 \family default
12968 :通常のタイトル部(
12969 \family sans
12970 タイトル
12971 \family default
12972
12973 \family sans
12974 著者
12975 \family default
12976
12977 \family sans
12978 日付
12979 \family default
12980 )の上に、文書頭書き用の左揃えの段落を生成します。
12981 \end_layout
12982
12983 \begin_layout Itemize
12984
12985 \family sans
12986 扉裏上部
12987 \family default
12988
12989 \emph on
12990 report (koma-script)
12991 \emph default
12992 や 
12993 \emph on
12994 book (koma-script)
12995 \emph default
12996 の両面印刷において、扉裏上部に左揃え段落を生成します。片面印刷や、
12997 \emph on
12998 article (koma-script)
12999 \emph default
13000 では何の効果も生じません。
13001 \end_layout
13002
13003 \begin_layout Itemize
13004
13005 \family sans
13006 扉裏下部
13007 \family default
13008
13009 \emph on
13010 report (koma-script)
13011 \emph default
13012 や 
13013 \emph on
13014 book (koma-script)
13015 \emph default
13016 の両面印刷において、扉裏下部に左揃え段落を生成します。片面印刷や、
13017 \emph on
13018 article (koma-script)
13019 \emph default
13020 では何の効果も生じません。
13021 \end_layout
13022
13023 \begin_layout Itemize
13024
13025 \family sans
13026 追加タイトル
13027 \family default
13028 :実際の文書の前に、整形を行わない段落から成る、特殊な「汚い」ページを生成します。
13029 \end_layout
13030
13031 \begin_layout Standard
13032 文書クラス
13033 \emph on
13034 article (koma-script)
13035 \emph default
13036
13037 \emph on
13038 report (koma-script)
13039 \emph default
13040
13041 \emph on
13042 book (koma-script)
13043 \emph default
13044 の 各レイアウトファイルは、
13045 \family typewriter
13046 scrmacros.inc
13047 \family default
13048 ファイルを読み込みます。このファイルは、ユーザ環境を定義する場所として想定されています。s
13049 \family typewriter
13050 crmacros.inc
13051 \family default
13052 を、個人用レイアウトディレクトリにコピーして編集してください!
13053 \end_layout
13054
13055 \begin_layout Subsection
13056 letter (koma-script)
13057 \end_layout
13058
13059 \begin_layout Standard
13060 \noindent
13061 文書クラス
13062 \emph on
13063 letter (koma-script)
13064 \emph default
13065 は、レイアウトファイル 
13066 \family typewriter
13067 scrlettr.layout
13068 \family default
13069 で実装されています。このレイアウトファイルには、対応する標準文書クラス
13070 \emph on
13071 letter
13072 \emph default
13073 の全段落環境が、部分的に変更を加えた形で収録されていますが、LyX固有環境の
13074 \family sans
13075 LyXコード
13076 \family default
13077
13078 \family sans
13079 コメント
13080 \family default
13081
13082 \family sans
13083 箇条書き(一覧
13084 \family default
13085 )は、新しく
13086 \family sans
13087 ラベリング
13088 \family default
13089 環境に置き換えられています。それ以外にも、標準文書クラスとは異なり、標準環境の
13090 \family sans
13091 LaTeX
13092 \family default
13093
13094 \family sans
13095 引用(字下げあり)
13096 \family default
13097
13098 \family sans
13099 引用(字下げなし)
13100 \family default
13101
13102 \family sans
13103 詩句
13104 \family default
13105 が収録されています。さらに、新しいletter固有環境がたくさん追加されています。
13106 \end_layout
13107
13108 \begin_layout Standard
13109 この文書クラスで作成した書簡の外観は、様々なLaTeXコマンドをLaTeXプリアンブルに置くことで制御することができます
13110 \begin_inset Foot
13111 status collapsed
13112
13113 \begin_layout Plain Layout
13114 例えば、名前と住所の入った書簡ヘッダの標準的外観は、きわめて頑固です。「普通の」へッダは、プリアンブル中に以下のようなコマンドを入れることで生成することができま
13115 す。
13116 \end_layout
13117
13118 \begin_layout LyX-Code
13119
13120 \backslash
13121 firsthead{
13122 \backslash
13123 parbox[b]{
13124 \backslash
13125 textwidth}
13126 \end_layout
13127
13128 \begin_layout LyX-Code
13129   {
13130 \backslash
13131 ignorespaces 
13132 \backslash
13133 fromname
13134 \backslash
13135
13136 \backslash
13137  
13138 \backslash
13139 ignorespaces 
13140 \backslash
13141 fromaddress}} 
13142 \end_layout
13143
13144 \begin_layout LyX-Code
13145
13146 \backslash
13147 nexthead{
13148 \backslash
13149 parbox[b]{
13150 \backslash
13151 textwidth}
13152 \end_layout
13153
13154 \begin_layout LyX-Code
13155   {
13156 \backslash
13157 ignorespaces 
13158 \backslash
13159 fromname 
13160 \backslash
13161 hfill 
13162 \backslash
13163 ignorespaces 
13164 \backslash
13165 pagename
13166 \backslash
13167
13168 \end_layout
13169
13170 \begin_layout LyX-Code
13171
13172 \backslash
13173 thepage}}
13174 \end_layout
13175
13176 \end_inset
13177
13178 。これらのLaTeXコマンドのドイツ語での詳細な説明は、Koma-Scriptの取扱説明書
13179 \emph on
13180 scrguide
13181 \emph default
13182 にあります。この方法で、書簡の著者は、個人用書簡レイアウトを作ることができます。
13183 \end_layout
13184
13185 \begin_layout Standard
13186
13187 \family sans
13188 書簡
13189 \family default
13190 環境および
13191 \family sans
13192 頭語
13193 \family default
13194 環境は、書簡の冒頭部を定義するもので、すべての書簡で使用しなくてはなりません。LyX文書クラスでは、これらの環境を強調するために、左余白にそれぞれ
13195 \shape italic
13196 L
13197 \shape default
13198
13199 \shape italic
13200 O
13201 \shape default
13202 という文字が表示されます。同一ファイル中には、複数の書簡を書くことができます。
13203 \family sans
13204 頭語
13205 \family default
13206 環境は、同じ受取人への書簡を新しく書き出すものであり、
13207 \family sans
13208 書簡
13209 \family default
13210 環境は、新しい受取人を生成するものです。
13211 \family sans
13212 結語
13213 \family default
13214
13215 \family sans
13216 PS
13217 \family default
13218
13219 \family sans
13220 CC
13221 \family default
13222
13223 \family sans
13224 Encl
13225 \family default
13226 は、通常の段落環境なので、同一の書簡中でも何度も使用することができます。
13227 \end_layout
13228
13229 \begin_layout Itemize
13230
13231 \family sans
13232 書簡
13233 \family default
13234 :受取人のための段落をつくり、暗黙に書簡の開始を定義します。
13235 \end_layout
13236
13237 \begin_layout Itemize
13238
13239 \family sans
13240 頭語
13241 \family default
13242 :敬称のための段落をつくり、暗黙に新しい書簡を開始します。
13243 \end_layout
13244
13245 \begin_layout Itemize
13246
13247 \family sans
13248 結語
13249 \family default
13250 :結語のための段落をつくります。
13251 \end_layout
13252
13253 \begin_layout Itemize
13254
13255 \family sans
13256 PS
13257 \family default
13258 :追伸のための段落をつくります。
13259 \end_layout
13260
13261 \begin_layout Itemize
13262
13263 \family sans
13264 CC
13265 \family default
13266 :同報一覧のための段落をつくります。
13267 \end_layout
13268
13269 \begin_layout Itemize
13270
13271 \family sans
13272 Encl
13273 \family default
13274 :同封物のための段落をつくります。
13275 \end_layout
13276
13277 \begin_layout Standard
13278
13279 \family sans
13280 名前
13281 \family default
13282
13283 \family sans
13284 署名
13285 \family default
13286
13287 \family sans
13288 住所
13289 \family default
13290
13291 \family sans
13292 電話
13293 \family default
13294
13295 \family sans
13296 場所(Place
13297 \family default
13298 )・
13299 \family sans
13300 返送先住所
13301 \family default
13302
13303 \family sans
13304 配送手段(Specialmail)
13305 \family default
13306
13307 \family sans
13308 場所
13309 \family default
13310
13311 \family sans
13312 タイトル
13313 \family default
13314
13315 \family sans
13316 主題
13317 \family default
13318 は、情報入力を促すラベルの付いた入力環境で、文書クラスが適切な処理を行います
13319 \begin_inset Foot
13320 status collapsed
13321
13322 \begin_layout Plain Layout
13323 上述の
13324 \family sans
13325 書簡
13326 \family default
13327
13328 \family sans
13329 頭語
13330 \family default
13331 が、これらのような入力環境でないのは、矛盾しているように感じられるかもしれません。しかしながら、これら2つの環境は特別の意味を持っているために、これらは左余白に
13332 一文字をマークした通常の段落環境として実装しました。さらに、
13333 \family sans
13334 頭語
13335 \family default
13336 環境と
13337 \family sans
13338 結語
13339 \family default
13340 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです。
13341 \end_layout
13342
13343 \end_inset
13344
13345 。これらの環境は、対応する
13346 \family sans
13347 頭語
13348 \family default
13349 環境の前に置く必要があります。
13350 \end_layout
13351
13352 \begin_layout Standard
13353 生成された書簡の実際の外観は、特定の環境の使い方だけではなく、他の要素にも依存するため、これらの環境をWYSIWYGとして実装することには、あまり意味がありませ
13354 ん。たとえば、
13355 \family sans
13356 署名
13357 \family default
13358 環境で入力した署名は、標準的な挙動では、同じ書簡に
13359 \family sans
13360 結語
13361 \family default
13362 環境も使用されているときのみ、書簡の出力に現れます。
13363 \family sans
13364 電話
13365 \family default
13366 環境に入力された値は、標準的な挙動では、書簡の出力には全く表示されません。書簡のヘッダを自由にデザインできることは、前出の脚注で示してあります。
13367 \end_layout
13368
13369 \begin_layout Standard
13370 入力環境は、空の段落として使うことができます。これは、たとえば
13371 \family sans
13372 署名
13373 \family default
13374 環境の場合に有効です。
13375 \family sans
13376 署名
13377 \family default
13378 環境を全く使用しない場合は、標準的な挙動では、
13379 \family sans
13380 名前
13381 \family default
13382 環境の値が署名として使用されますが、空の
13383 \family sans
13384 署名
13385 \family default
13386 環境を作成しておくと、署名の値は無定義となりません。
13387 \end_layout
13388
13389 \begin_layout Standard
13390 入力環境を使用すると、個人データ(名前や住所など)が既に入力された入力環境と、後から入力するデータの入力環境を備えた、書簡のひな型を作成することができます。
13391 \end_layout
13392
13393 \begin_layout Itemize
13394
13395 \family sans
13396 名前
13397 \family default
13398 :送り主の名前。標準的な挙動では、書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます。
13399 \end_layout
13400
13401 \begin_layout Itemize
13402
13403 \family sans
13404 署名
13405 \family default
13406 :送り主の署名。標準的な挙動では、
13407 \family sans
13408 結語
13409 \family default
13410 環境の下に表示されます。
13411 \family sans
13412 署名
13413 \family default
13414 環境を使用しないと、代わりに
13415 \family sans
13416 名前
13417 \family default
13418 環境の値が表示されます。
13419 \end_layout
13420
13421 \begin_layout Itemize
13422
13423 \family sans
13424 住所
13425 \family default
13426 :送り主の住所。標準的な挙動では、書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます。
13427 \end_layout
13428
13429 \begin_layout Itemize
13430
13431 \family sans
13432 電話
13433 \family default
13434 :送り主の電話番号。標準的な挙動では、LaTeX変数
13435 \family typewriter
13436
13437 \backslash
13438 telephonenum
13439 \family default
13440 を設定するだけです。
13441 \end_layout
13442
13443 \begin_layout Itemize
13444
13445 \family sans
13446 場所(Place)
13447 \family default
13448 :書簡を書いた場所。
13449 \end_layout
13450
13451 \begin_layout Itemize
13452
13453 \family sans
13454 日付
13455 \family default
13456 :書簡を書いた日付。
13457 \family sans
13458 場所(Place)
13459 \family default
13460
13461 \family sans
13462 日付
13463 \family default
13464 は、標準的な挙動では、受取人フィールドの下に、単一の右揃え行として場所と日付を生成します。空の
13465 \family sans
13466 日付
13467 \family default
13468 環境を作成しておくと、
13469 \family sans
13470 場所(Place)
13471 \family default
13472 の値如何に関わらず、場所も日付も表示されません。
13473 \family sans
13474 日付
13475 \family default
13476 環境を使用しない場合には、書簡を出力した日付が使用されます。
13477 \end_layout
13478
13479 \begin_layout Itemize
13480
13481 \family sans
13482 返送先住所
13483 \family default
13484 :送り主の返送先住所。標準的な挙動では、受取人の上に小文字のサンセリフ体フォントで表示されます。
13485 \end_layout
13486
13487 \begin_layout Itemize
13488
13489 \family sans
13490 特別便
13491 \family default
13492 :特別便の情報。標準的な挙動では、受取人フィールドの上かつ返送先住所の下に、下線付きで表示されます。
13493 \end_layout
13494
13495 \begin_layout Itemize
13496
13497 \family sans
13498 場所
13499 \family default
13500 :追加情報。標準的な挙動では、受取人フィールドの下の右側に表示されます。
13501 \end_layout
13502
13503 \begin_layout Itemize
13504
13505 \family sans
13506 タイトル
13507 \family default
13508 :書簡の題名。標準的な挙動では、主題の上に大きなボールド体サンセリフフォントで表示されます。
13509 \end_layout
13510
13511 \begin_layout Itemize
13512
13513 \family sans
13514 主題
13515 \family default
13516 :書簡の主題。標準的な挙動では、
13517 \family sans
13518 頭語
13519 \family default
13520 環境の上にボールド体で表示されます。
13521 \end_layout
13522
13523 \begin_layout Standard
13524
13525 \family sans
13526 Yourref・Yourmail・Myref・顧客・インボイス
13527 \family default
13528 といった環境は、
13529 \family sans
13530 タイトル
13531 \family default
13532 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
13533 ィールド行を持つ、ビジネス書簡を作成します。日付フィールドには、
13534 \family sans
13535 日付
13536 \family default
13537 環境の値が使用されます。しかしながら、これらの「ビジネス書簡環境」の一つを使用した場合には、
13538 \family sans
13539 場所(Place)
13540 \family default
13541 の値は書簡には表示されなくなり、LaTeX変数
13542 \family typewriter
13543
13544 \backslash
13545 fromplace
13546 \family default
13547 が設定させるだけになります。通常時に、受取人フィールドの下に右揃えで出力される場所と日付の出力は、抑制されます。これらのビジネス環境は、ラベル付きの入力環境とし
13548 て実装されており、対応する
13549 \family sans
13550 頭語
13551 \family default
13552 環境よりも前に置く必要があります。
13553 \end_layout
13554
13555 \begin_layout Itemize
13556
13557 \family sans
13558 Yourref
13559 \family default
13560 : Your ref.
13561 \end_layout
13562
13563 \begin_layout Itemize
13564
13565 \family sans
13566 Yourmail
13567 \family default
13568 : Your letter of.
13569 \end_layout
13570
13571 \begin_layout Itemize
13572
13573 \family sans
13574 Myref
13575 \family default
13576 : Our ref.
13577 \end_layout
13578
13579 \begin_layout Itemize
13580
13581 \family sans
13582 Customer
13583 \family default
13584 : Customer no.
13585 \end_layout
13586
13587 \begin_layout Itemize
13588
13589 \family sans
13590 Invoice
13591 \family default
13592 : Invoice no.
13593 \end_layout
13594
13595 \begin_layout Subsection
13596 新しいletterクラス:letter (koma-script v.2)
13597 \end_layout
13598
13599 \begin_layout Standard
13600 by 
13601 \noun on
13602 Jürgen Spitzmüller
13603 \begin_inset VSpace medskip
13604 \end_inset
13605
13606
13607 \end_layout
13608
13609 \begin_layout Standard
13610 \noindent
13611 Koma-Script第2.8版では、新しいletterクラス
13612 \family typewriter
13613 scrlttr2
13614 \family default
13615 が導入されたため、
13616 \family typewriter
13617 scrlettr
13618 \family default
13619 は廃止されてサポート対象外となりました。これは—LaTeX側で—全く新しいインターフェイスを持っており、旧クラスとは互換性がありません。したがって、LyXは両者
13620 をサポートしていますが、新しい方のクラスを使用することを推奨します。
13621 \end_layout
13622
13623 \begin_layout Standard
13624 このクラスは、
13625 \emph on
13626 letter (koma-script)
13627 \emph default
13628 と同一の機能に加えて、新しい機能をいくつかサポートしています。基本となる項目は、
13629 \family sans
13630 住所
13631 \family default
13632 (受取人の住所、旧レイアウトの
13633 \family sans
13634 書簡
13635 \family default
13636 と同じ)・
13637 \family sans
13638 頭語
13639 \family default
13640
13641 \family sans
13642 結語
13643 \family default
13644 です。
13645 \family sans
13646 次の住所
13647 \family default
13648 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます)。新しく付け加えられた項目は、送り主の
13649 \family sans
13650 電子メール
13651 \family default
13652
13653 \family sans
13654 URL
13655 \family default
13656
13657 \family sans
13658 ファックス
13659 \family default
13660
13661 \family sans
13662 銀行
13663 \family default
13664 、およびヘッダに(
13665 \family sans
13666 挿入\SpecialChar \menuseparator
13667
13668 \family default
13669 で)
13670 \family sans
13671 ロゴ
13672 \family default
13673 を入れることができるようになった点です。
13674 \end_layout
13675
13676 \begin_layout Standard
13677 しかしながら、もっとも大きな改善は、書簡のレイアウトを、ほとんどどんなニーズにも合わせて設定できるようになった点でしょう。これはプリアンブルか、クラスオプション
13678 として読み込まれる特別なスタイルファイル(「レタークラスオプション」、拡張子
13679 \family typewriter
13680 *.lco
13681 \family default
13682 )によって設定することができます
13683 \begin_inset Foot
13684 status collapsed
13685
13686 \begin_layout Plain Layout
13687 KOMAパッケージには、既定の
13688 \family typewriter
13689 *.lco
13690 \family default
13691 ファイルがいくつか収録されています。たとえば、ドイツの組版規則に則った
13692 \family typewriter
13693 DIN.lco
13694 \family default
13695 や、旧
13696 \family typewriter
13697 scrlettr
13698 \family default
13699 クラスの既定レイアウトを提供する
13700 \family typewriter
13701 KOMAold.lco
13702 \family default
13703 などです。たとえば後者は、
13704 \family sans
13705 文書\SpecialChar \menuseparator
13706 設定\SpecialChar \menuseparator
13707 文書クラス\SpecialChar \menuseparator
13708 クラスオプション
13709 \family default
13710 フィールドにクラスオプション
13711 \family typewriter
13712 KOMAold
13713 \family default
13714 を加えることで読み込むことができます。
13715 \end_layout
13716
13717 \end_inset
13718
13719 。用例としては、LyXに収録されているひな型
13720 \emph on
13721 koma-letter2
13722 \emph default
13723 をご覧ください。詳細な解説は、Koma-Script取扱説明書(
13724 \emph on
13725 scrguide
13726 \emph default
13727 )にあります。
13728 \end_layout
13729
13730 \begin_layout Subsection
13731 問題点
13732 \end_layout
13733
13734 \begin_layout Standard
13735 Koma-Script文書クラスをLyX上に表示する上で、LyXの内部処理が若干の問題を生じめます。
13736 \end_layout
13737
13738 \begin_layout Itemize
13739
13740 \family sans
13741
13742 \family default
13743 環境の章番号は、章見出しと同じ行ではなく、その上に表示されます。これは、レイアウトファイル中の
13744 \family sans
13745 Counter_Chapter
13746 \family default
13747 ラベル型に対するLyXの内部処理が原因です。
13748 \end_layout
13749
13750 \begin_layout Itemize
13751
13752 \family sans
13753 章(addchap)
13754 \family default
13755
13756 \family sans
13757 節(addsec)
13758 \family default
13759 環境の見出しは、「本当の」LaTeXの目次には追加されますが、LyXの目次(
13760 \family sans
13761 移動
13762 \family default
13763 メニュー)には追加されません。
13764 \end_layout
13765
13766 \begin_layout Itemize
13767
13768 \emph on
13769 letter
13770 \emph default
13771 文書クラスでの段落は、垂直スペースによる段落区切りで表示され、字下げはされません。これが標準的な挙動となっていて、特別なLaTeXコマンドは必要ありません。しか
13772 し、
13773 \family sans
13774 文書\SpecialChar \menuseparator
13775 設定
13776 \family default
13777 ダイアログでは、対応するラジオボタンは
13778 \family sans
13779 字下げ
13780 \family default
13781 に設定されています。
13782 \family sans
13783 垂直スペース
13784 \family default
13785 は、隙間を空けるために、文書にLaTeXコマンドをつねに追加するようになっていますが、この文書クラスの場合には、そのような挙動が望まれないためです。
13786 \end_layout
13787
13788 \begin_layout Section
13789 Memoir
13790 \end_layout
13791
13792 \begin_layout Standard
13793
13794 \noun on
13795 Jürgen Spitzmüller
13796 \noun default
13797
13798 \end_layout
13799
13800 \begin_layout Subsection
13801 概観
13802 \end_layout
13803
13804 \begin_layout Standard
13805 Memoirは、非常に強力で、着実に改良が加えられている文書クラスであり、フィクションとノンフィクションの文学作品用に設計されています。その目的は、ユーザーに、
13806 文書の組版に関して最大限の裁量を得させることにあります。Memoirは、標準bookクラスに基づいていますが、articleクラスをエミュレートすることもできま
13807 す(以下参照)。
13808 \end_layout
13809
13810 \begin_layout Standard
13811 Memoir開発者であるPeter Wilsonは、LaTeXの世界での、多くの便利なパッケージの作者として知られていますが、それらのほとんどは、Memoirに
13812 統合されました。このため、章のデザインや、目次や付録などのレイアウトを、はるかに簡単に行うことができます。しかしながら、LyXは、これらすべての素晴らしい機能を
13813 ネイティブでサポートしているわけではありません。これらのうちいくつかは、将来のリリースで追加されるかもしれませんが
13814 \begin_inset Foot
13815 status collapsed
13816
13817 \begin_layout Plain Layout
13818 もし提案があれば、ぜひ
13819 \begin_inset Flex URL
13820 status collapsed
13821
13822 \begin_layout Plain Layout
13823
13824 lyx-devel@lists.lyx.org
13825 \end_layout
13826
13827 \end_inset
13828
13829 までお送り下さい。
13830 \end_layout
13831
13832 \end_inset
13833
13834 、LyXのフレームワークが持つ制約のために、おそらく決して追加されることのないと考えられるものも多数あります。もちろん、ネイティブなLaTeXコマンド(TeXコ
13835 ード
13836 \begin_inset Foot
13837 status collapsed
13838
13839 \begin_layout Plain Layout
13840 【参考】詳細は、第
13841 \begin_inset CommandInset ref
13842 LatexCommand ref
13843 reference "sec:LaTeXコードを挿入する"
13844
13845 \end_inset
13846
13847 節参照。
13848 \end_layout
13849
13850 \end_inset
13851
13852 )の助けを借りれば、全機能を使用できます。この節では、LyXがネイティブにサポートしている機能についてのみ、列挙するものとします。詳細な説明(および他の機能)に
13853 ついては、Memoirクラスの詳しい取扱説明書
13854 \begin_inset Foot
13855 status collapsed
13856
13857 \begin_layout Plain Layout
13858 【参考】
13859 \begin_inset Flex URL
13860 status collapsed
13861
13862 \begin_layout Plain Layout
13863
13864 CTAN:/macros/latex/memoir/memman.pdf
13865 \end_layout
13866
13867 \end_inset
13868
13869
13870 \end_layout
13871
13872 \end_inset
13873
13874 をご覧になることをお勧めします。この取扱説明書は、本クラスのユーザーの手引きであるのみに留まらず、良い組版に関する包括的な解説であり、それ自身が良い組版の傑出し
13875 た用例となっています。
13876 \end_layout
13877
13878 \begin_layout Subsection
13879 基本的な機能と制約
13880 \end_layout
13881
13882 \begin_layout Standard
13883 Memoirは、基本的に、標準bookクラスの全機能をサポートしています。しかしながら、以下に示すような若干の違いがあります。
13884 \end_layout
13885
13886 \begin_layout Description
13887 フォント寸法: Memoirでは、9・10・11・12・14・17と、より広い範囲のフォント寸法が使用可能です。
13888 \end_layout
13889
13890 \begin_layout Description
13891 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため、LaTeXが混乱さ
13892 せられます)、fancyページ様式は使用できません。その代わり、Memoirには、多くの独自のページ様式が付属してきます(
13893 \family sans
13894 文書\SpecialChar \menuseparator
13895 設定\SpecialChar \menuseparator
13896 ページレイアウト
13897 \family default
13898 参照)。これらを章題ページに使用したい場合には、コマンド
13899 \family typewriter
13900
13901 \backslash
13902 chapterstyle
13903 \family default
13904 を、本文またはプリアンブルに記述する必要があります(例えば、
13905 \family typewriter
13906
13907 \backslash
13908 chapterstyle{companion}
13909 \family default
13910 など)。
13911 \end_layout
13912
13913 \begin_layout Description
13914 節分け: 標準クラスでは、節分けコマンド(章・節・小節等)は、非必須引数を一つ取ることができます。これを用いて、目次やヘッダ用に別のタイトルを指定することができ
13915 ます(たとえば、タイトルが長すぎる場合などに用います)。LyXでは、章や節の始めで
13916 \family sans
13917 挿入\SpecialChar \menuseparator
13918 短縮タイトル
13919 \family default
13920 を使えば、これを指定することができます。一方、Memoirでは、第2の非必須引数を取ることができ、目次用のタイトルとヘッダ用のタイトルの指定を分離しています。こ
13921 れを使えば、本文用と目次用とヘッダ用のタイトルの3種類を指定することができます。この機能を使用したい場合には、2つの非必須引数を入力して、最初のものに目次用、次
13922 のものにヘッダ用短縮タイトルを入れてください。
13923 \end_layout
13924
13925 \begin_layout Description
13926 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では、目次と図一覧および表一覧は、自動的に新規頁に置かれます。Memoirは、これとは別の方針を採り
13927 ます。改頁を行いたい場合は、手動で頁区切りを入れなくてはなりません。
13928 \end_layout
13929
13930 \begin_layout Description
13931 タイトル頁: 理由は不明ですが、Memoirはタイトルページに丁付けを行います(標準クラスでは、タイトルページは「empty」様式、すなわち丁付けを行いません)
13932 。タイトル頁に丁付けを行いたくない場合には、プリアンブルに
13933 \family typewriter
13934
13935 \backslash
13936 aliaspagestyle{title}{empty}
13937 \family default
13938 と入力してください。
13939 \end_layout
13940
13941 \begin_layout Description
13942 Article: クラスオプション
13943 \emph on
13944 article
13945 \emph default
13946 を用いる(
13947 \family sans
13948 文書\SpecialChar \menuseparator
13949 設定\SpecialChar \menuseparator
13950 クラスオプション
13951 \family default
13952 で入力)と、article様式をエミュレートできます。すなわち、(脚注・図・表等の)カウンタは、章毎にリセットされず、次の章は頁を改めず(ただし、「本物の」ar
13953 ticleクラスとは違って、頁を改めることも可)、部はbookクラスと同様に、独立の頁を使用します。
13954 \end_layout
13955
13956 \begin_layout Description
13957 Oldfontcommands: LaTeX旧2.09版で使用されていた旧いフォントコマンド(
13958 \family typewriter
13959
13960 \backslash
13961 rm
13962 \family default
13963
13964 \family typewriter
13965
13966 \backslash
13967 it
13968 \family default
13969 など)は、Memoirにおいては、既定では使用することができません。Memoirがこれらのコマンドを検知すると、エラーを発してLaTeXを停止させます。しかし、
13970 クラスオプション
13971 \emph on
13972 oldfontcommands
13973 \emph default
13974 を指定すると、これらのコマンドが容認され、エラーの代わりに警告を発するのみとなります(これによって、少なくともLaTeXは停止しなくなります)。まだ、多くのパッ
13975 ケージと、就中多くのBibTeXスタイルファイルが、これらのコマンドを使用しているので、我々はこのオプションを既定で使うこととしました。
13976 \end_layout
13977
13978 \begin_layout Subsection
13979 追加された機能
13980 \end_layout
13981
13982 \begin_layout Standard
13983 LyXでサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう。詳しくはMemoirの取扱説明書
13984 \begin_inset Foot
13985 status collapsed
13986
13987 \begin_layout Plain Layout
13988 \begin_inset Flex URL
13989 status collapsed
13990
13991 \begin_layout Plain Layout
13992
13993 CTAN:/macros/latex/memoir/memman.pdf
13994 \end_layout
13995
13996 \end_inset
13997
13998
13999 \end_layout
14000
14001 \end_inset
14002
14003 を見てください。
14004 \end_layout
14005
14006 \begin_layout Description
14007 概要: 概要が、追加された機能として扱われているのを不思議に思われるかもしれませんが、bookクラスとしては追加された機能なのです。通常bookクラスには概要は
14008 ないのですが、memoirにはあります。これは、どこでも何回でも自由に使うことができます。
14009 \end_layout
14010
14011 \begin_layout Description
14012 章要約: この古い組版様式はご覧になったことがあるかも知れません。章の内容が、見出しの下と目次に要約されているものです(たとえば、「我らが英雄がトロヤに到着する
14013 。彼は友人を失うが、新たな友人を得る。」など)。章要約(chapterprecis)はこれを行います。したがって、章要約は章の下でのみ意味を持ちます。
14014 \end_layout
14015
14016 \begin_layout Description
14017 題辞: 題辞(epigraph)は章頭の、気の利いた標語やモットーです。題辞環境は、そのような標語を組む洗練された方法を提供します。標語本体(本文)とその著者(
14018 出典)は、短い線で区切られます。この環境には二つの引数(本文と出典)が必要なので、ここでもLyXを少しだます必要があります。ここでは、2つの引数の間に、
14019 \emph on
14020 <標語>
14021 \family typewriter
14022 \emph default
14023 }{
14024 \family default
14025 \emph on
14026 <標語の著者>
14027 \emph default
14028 のように、(TeXモードで)波括弧を入れなくてはなりません。
14029 \end_layout
14030
14031 \begin_layout Description
14032 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが、LyXは、そのうちいくつかしかサポートしていません。詩題はその一
14033 つです。これは詩用の中央揃えタイトルで、目次にも表示されます(詩句が詩の標準環境です。Memoirには、詩句の拡張版もありますが、これらを使うためにはTeXコー
14034 ドを使用しなくてはなりません。これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが、LyXではそれができないためです)。
14035 \end_layout
14036
14037 \begin_layout Description
14038 詩題*: 目次に現れない他は詩題と同じです。
14039 \end_layout
14040
14041 \begin_layout Section
14042 Article(mwart)・book(mwbk)・report(mwrep)
14043 \begin_inset Argument
14044 status collapsed
14045
14046 \begin_layout Plain Layout
14047
14048 \family typewriter
14049 mw
14050 \family default
14051 クラス
14052 \end_layout
14053
14054 \end_inset
14055
14056
14057 \end_layout
14058
14059 \begin_layout Standard
14060
14061 \noun on
14062 Tomasz Luczak
14063 \noun default
14064
14065 \end_layout
14066
14067 \begin_layout Standard
14068 LyX文書クラス
14069 \emph on
14070 article (mwart)
14071 \emph default
14072
14073 \emph on
14074 report (mwrep)・book
14075 \emph default
14076  
14077 \emph on
14078 (mwbk)
14079 \emph default
14080 は、それぞれLaTeX文書クラス
14081 \family typewriter
14082 mwart.cls
14083 \family default
14084
14085 \family typewriter
14086 mwrep.cls
14087 \family default
14088
14089 \family typewriter
14090 mwbk.cls
14091 \family default
14092 に対応しています。これらは、標準の
14093 \family typewriter
14094 article.cls
14095 \family default
14096
14097 \family typewriter
14098 report.cls
14099 \family default
14100
14101 \family typewriter
14102 book.cls
14103 \family default
14104 を代替するものであり、多くの点で、ポーランド語の組版慣習によく適合しています。
14105 \end_layout
14106
14107 \begin_layout Standard
14108 基本的な違いは、次の点です。
14109 \end_layout
14110
14111 \begin_layout Itemize
14112 付番のない見出し(
14113 \family sans
14114 節*
14115 \family default
14116 などの星付き)も目次に加えられます。
14117 \end_layout
14118
14119 \begin_layout Itemize
14120 以下のページスタイルの追加
14121 \end_layout
14122
14123 \begin_deeper
14124 \begin_layout Description
14125 uheadings 分離線付きヘッダ
14126 \end_layout
14127
14128 \begin_layout Description
14129 myheadings 
14130 \family typewriter
14131
14132 \backslash
14133 markright
14134 \family default
14135 コマンドおよび
14136 \family typewriter
14137
14138 \backslash
14139 markboth
14140 \family default
14141 コマンドで設定するカスタムヘッダ
14142 \end_layout
14143
14144 \begin_layout Description
14145 myuheadings 分離線付きカスタムヘッダ
14146 \end_layout
14147
14148 \begin_layout Description
14149 outer ページの外側にページ番号
14150 \end_layout
14151
14152 \end_deeper
14153 \begin_layout Itemize
14154 オプション
14155 \end_layout
14156
14157 \begin_deeper
14158 \begin_layout Description
14159 rmheadings セリフ体見出し --- 既定
14160 \end_layout
14161
14162 \begin_layout Description
14163 sfheadings サンセリフ体見出し
14164 \end_layout
14165
14166 \begin_layout Description
14167 authortitle タイトルページは、著者名・タイトルの順で配置 --- 既定
14168 \end_layout
14169
14170 \begin_layout Description
14171 titleauthor タイトルページは、タイトル・著者名の順で配置
14172 \end_layout
14173
14174 \begin_layout Description
14175 withmarginpar ページ上に余白のための場所を確保
14176 \end_layout
14177
14178 \end_deeper
14179 \begin_layout Section
14180 Paper
14181 \end_layout
14182
14183 \begin_layout Standard
14184
14185 \family sans
14186 paper
14187 \family default
14188 文書クラスは標準
14189 \family sans
14190 article
14191 \family default
14192 クラスの代替となるものです。これは
14193 \family sans
14194 同様の
14195 \family default
14196 機能を提供しますが、サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません。
14197 \end_layout
14198
14199 \begin_layout Section
14200 RevTeX4
14201 \end_layout
14202
14203 \begin_layout Standard
14204 by 
14205 \noun on
14206 Amir Karger
14207 \end_layout
14208
14209 \begin_layout Standard
14210 \begin_inset VSpace bigskip
14211 \end_inset
14212
14213
14214 \end_layout
14215
14216 \begin_layout Standard
14217 \noindent
14218
14219 \family sans
14220 Revtex
14221 \begin_inset space ~
14222 \end_inset
14223
14224 4
14225 \family default
14226 テキストクラスは、アメリカ物理学会のRevTeX 4.0(1999年5月の
14227 \begin_inset Formula $\beta$
14228 \end_inset
14229
14230 リリース)クラスで動作します。
14231 \end_layout
14232
14233 \begin_layout Standard
14234 LyXには、RevTeX 3.1で動作する
14235 \family sans
14236 Revtex
14237 \family default
14238 テキストクラスもあります。しかしながら、第3.1版はLaTeX 2.09で動作するものであり、基本的に時代遅れなものになっています。LyXはLaTeX2eを必要とす
14239 ることから、第3.1版はLyXとうまく協調しないことを意味しますが、動作するようには調整してあります。RevTeX 4.0は、LaTeX2eで素直に動作するようにデ
14240 ザインされているので、LyXと
14241 \family sans
14242 RevTeX
14243 \begin_inset space ~
14244 \end_inset
14245
14246 4
14247 \family default
14248 テキストクラスの組で使用するのは、たいへん簡単です。
14249 \end_layout
14250
14251 \begin_layout Standard
14252 この取扱説明書は、RevTeX 4.0の説明書の
14253 \emph on
14254 補完
14255 \emph default
14256 として使用されることを前提としています。したがって、ここではRevTeX固有マクロの説明はせず、必要な場合にはプリアンブルに何と書けば良いかを知っているものとし
14257 て説明します。
14258 \end_layout
14259
14260 \begin_layout Subsection
14261 導入
14262 \end_layout
14263
14264 \begin_layout Standard
14265 RevTeX 4パッケージのREADMEファイルにあるとおり、ともかくRevTeX 4を導入しなくてはなりません。パッケージは、The RevTeX
14266  4 Web Site 
14267 \begin_inset Flex URL
14268 status collapsed
14269
14270 \begin_layout Plain Layout
14271
14272 http://publish.aps.org/revtex4/
14273 \end_layout
14274
14275 \end_inset
14276
14277 から入手することができます。これをLaTeXが検出することのできる場所に導入してください。それから、適当に選んだディレクトリ(もといクラスファイルを導入したのと
14278 は異なるディレクトリ)で簡単なRevTeX 4文書を LaTeXでコンパイルできるかどうか確認してください。この後、LyXを再初期設定すると、クラスファイルを検
14279 出し、RevTeX4テキストクラスが使用できるようになるはずです。
14280 \end_layout
14281
14282 \begin_layout Standard
14283 使い始めるには、
14284 \family typewriter
14285 tex2lyx
14286 \family default
14287 を使ってRevTeX 4文書を読み込むか、またはひな型ディレクトリにある
14288 \family sans
14289 Revtex
14290 \begin_inset space ~
14291 \end_inset
14292
14293 4
14294 \family default
14295 のひな型を使うのが、おそらく一番簡単な方法でしょう。
14296 \end_layout
14297
14298 \begin_layout Subsection
14299 プリアンブルに関すること
14300 \end_layout
14301
14302 \begin_layout Standard
14303
14304 \family typewriter
14305
14306 \backslash
14307 documentclass
14308 \family default
14309 に与える「preprint」や「aps」のような非必須引数は、他のクラス同様、
14310 \family sans
14311 文書\SpecialChar \menuseparator
14312 設定\SpecialChar \menuseparator
14313 文書クラス
14314 \family default
14315
14316 \family sans
14317 クラスオプション
14318 \family default
14319 フィールドに入れます。RevTeXでは、少なくとも一つの非必須引数が必要なことに注意してください。
14320 \end_layout
14321
14322 \begin_layout Standard
14323
14324 \family typewriter
14325
14326 \backslash
14327 draft
14328 \family default
14329 など他のプリアンブルは、他のクラス同様、
14330 \family sans
14331 文書\SpecialChar \menuseparator
14332 設定\SpecialChar \menuseparator
14333 LaTeXプリアンブル
14334 \family default
14335 に入れてください。
14336 \end_layout
14337
14338 \begin_layout Subsection
14339 レイアウト
14340 \end_layout
14341
14342 \begin_layout Standard
14343 レイアウトは、基本的にRevTeX4.0のコマンドに対応しています。たとえば、Emailレイアウトは、
14344 \family typewriter
14345
14346 \backslash
14347 email{}
14348 \family default
14349 に対応しています。(少なくともRevTeX 4.0 Beta現在では)
14350 \family sans
14351 住所
14352 \family default
14353
14354 \family sans
14355 所属
14356 \family default
14357 はまったく同じものなので、両方を使う必要はありません
14358 \begin_inset Foot
14359 status collapsed
14360
14361 \begin_layout Plain Layout
14362 ついでながら、
14363 \family typewriter
14364 tex2lyx
14365 \family default
14366 は両方とも対応しているので、
14367 \family typewriter
14368
14369 \backslash
14370 address
14371 \family default
14372
14373 \family typewriter
14374
14375 \backslash
14376 affiliation
14377 \family default
14378 のどちらも翻訳することができます。
14379 \end_layout
14380
14381 \end_inset
14382
14383
14384 \end_layout
14385
14386 \begin_layout Subsection
14387 重要な注意
14388 \end_layout
14389
14390 \begin_layout Standard
14391 RevTeX 4には、バグを引き起こしがちなために、気をつけなくてはならない特殊な面がいくつかあるため、LyXではさらに気をつけなくてはなりません。
14392 \end_layout
14393
14394 \begin_layout Standard
14395 RevTeXでは、
14396 \family typewriter
14397
14398 \backslash
14399 thanks
14400 \family default
14401 コマンドは、
14402 \family typewriter
14403
14404 \backslash
14405 author
14406 \family default
14407 コマンドの
14408 \emph on
14409 外側
14410 \emph default
14411 に来なくてはなりません。LyXでは、独立した
14412 \family sans
14413 感謝
14414 \family default
14415 レイアウトがこの働きをします。直接
14416 \family sans
14417 、著者
14418 \family default
14419 レイアウトに脚注を付けてしまうと、おかしなことが起こる可能性があります。詳細については、RevTeX 4の取扱説明書をご覧ください。
14420 \end_layout
14421
14422 \begin_layout Standard
14423 また、
14424 \family sans
14425 著者電子メール
14426 \family default
14427
14428 \family sans
14429 著者URL・感謝(thanks)
14430 \family default
14431 レイアウトは、
14432 \family sans
14433 著者
14434 \family default
14435 レイアウトと
14436 \family sans
14437 住所(
14438 \family default
14439 または同等の
14440 \family sans
14441 所属
14442 \family default
14443 )レイアウトの間に置かなければなりません。
14444 \family sans
14445 感謝(thanks)
14446 \family default
14447
14448 \family sans
14449 住所
14450 \family default
14451 の後に置いてしまうと、LaTeXはコンパイルに失敗します。
14452 \end_layout
14453
14454 \begin_layout Subsection
14455 問題点
14456 \end_layout
14457
14458 \begin_layout Standard
14459 このレイアウトの主な問題点は、電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません。例
14460 えば、節レイアウトも非必須引数を使用することができません)。これは、たとえばページヘッダにヘッダ用タイトルを設定したい場合などには、ファイルをLaTeXファイル
14461 に変換した後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません)、テキストエディタを使ってLaTeXファイルを編集し、非必須引数を書き加えなくては
14462 ならないということです。これらのレイアウトがないと、
14463 \family typewriter
14464
14465 \backslash
14466 altaffiliation
14467 \family default
14468 (またそれと同等な
14469 \family typewriter
14470
14471 \backslash
14472 altaddress
14473 \family default
14474 )は使えませんので、対応するレイアウトは存在せず、手動で書き加える必要があります
14475 \begin_inset Foot
14476 status collapsed
14477
14478 \begin_layout Plain Layout
14479
14480 \emph on
14481 JMarcからの註:
14482 \emph default
14483  実は、LyX 1.3.0 では非必須引数を一部サポートしているのですが、このレイアウトは、まだこの機能を使うようにはアップデートされていないのです。
14484 \end_layout
14485
14486 \end_inset
14487
14488
14489 \end_layout
14490
14491 \begin_layout Section
14492 Springer学術誌(
14493 \family sans
14494 svjour)
14495 \end_layout
14496
14497 \begin_layout Standard
14498
14499 \noun on
14500 Martin Vermeer
14501 \noun default
14502
14503 \end_layout
14504
14505 \begin_layout Subsection
14506 説明
14507 \end_layout
14508
14509 \begin_layout Standard
14510 これは、Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです。
14511 \begin_inset Flex URL
14512 status collapsed
14513
14514 \begin_layout Plain Layout
14515
14516 http://www.springer.de/author/tex/help-journals.html
14517 \end_layout
14518
14519 \end_inset
14520
14521 に必要なクラスファイル(LaTeX2e用になりました)とそれに対応する学術誌の一覧があります。このレイアウトはモジュール式になっています。つまり、全ジャーナル共
14522 通部分は
14523 \family typewriter
14524 svjour.inc
14525 \family default
14526 に実装されており、各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
14527 \family typewriter
14528 svjog.layout
14529 \family default
14530 など)から取り込むことができます。
14531 \end_layout
14532
14533 \begin_layout Standard
14534 このことは、上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには、
14535 \family typewriter
14536 svjog.layout
14537 \family default
14538 に書かれている指示に従って、自作の
14539 \family typewriter
14540 sv
14541 \family default
14542 <学術誌名>
14543 \family typewriter
14544 .layout
14545 \family default
14546 を書くだけで良いことを意味します。
14547 \end_layout
14548
14549 \begin_layout Standard
14550 このレイアウトは、Journal of Geodesyに対してのみ、充分な試験が為されています。
14551 \family typewriter
14552 svjour
14553 \family default
14554
14555 \family typewriter
14556 svjog
14557 \family default
14558 は、標準LyX頒布版に収録済みです。関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し、LaTeXを再設定した後(teT
14559 eXの場合は、必要に応じてroot権限で
14560 \family typewriter
14561 texhash
14562 \family default
14563 を実行します)、LyXを再初期設定すれば、動作するはずです。
14564 \end_layout
14565
14566 \begin_layout Subsection
14567 新スタイル
14568 \end_layout
14569
14570 \begin_layout Standard
14571 多くの定理環境 --- 
14572 \family sans
14573 主張
14574 \family default
14575
14576 \family sans
14577 推論
14578 \family default
14579 ・\SpecialChar \ldots{}
14580
14581 \family sans
14582 定理
14583 \family default
14584
14585 \end_layout
14586
14587 \begin_layout Standard
14588
14589 \family sans
14590 ヘッドノート
14591 \family default
14592
14593 \family sans
14594 献呈
14595 \family default
14596
14597 \family sans
14598 サブタイトル・ヘッダ用LaTeXタイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(ackno
14599 wledgement)
14600 \family default
14601 。詳しくは Springerのクラスファイルの説明書を読んでください。
14602 \end_layout
14603
14604 \begin_layout Subsection
14605 サポートしているジャーナル
14606 \end_layout
14607
14608 \begin_layout Itemize
14609
14610 \emph on
14611 Journal of Geodesy
14612 \emph default
14613
14614 \family typewriter
14615 svjog.layout
14616 \family default
14617  --- Martin Vermeer
14618 \end_layout
14619
14620 \begin_layout Itemize
14621
14622 \emph on
14623 Probability Theory and Related Fields
14624 \emph default
14625
14626 \family typewriter
14627 svprobth.layout
14628 \family default
14629  --- Jean-Marc Lasgouttes
14630 \end_layout
14631
14632 \begin_layout Standard
14633 あなた自身のレイアウトファイルをつくってください。難しくはありません。
14634 \end_layout
14635
14636 \begin_layout Subsection
14637 Credits
14638 \end_layout
14639
14640 \begin_layout Standard
14641 これらのファイルは、以前の 
14642 \family typewriter
14643 ejour2.layout
14644 \family default
14645 をもとにしています。
14646 \family typewriter
14647 ejour2.layout
14648 \family default
14649 は SpringerのLaTeX 2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです。これらのファイルはすでにありません。Jean-Mar
14650 c Lasgouttesのおかげで LyXのレイアウトファイルのメカニズムをよりよく理解することができました。
14651 \end_layout
14652
14653 \begin_layout Subsection
14654 バグ
14655 \end_layout
14656
14657 \begin_layout Standard
14658 多分あります。以前の 
14659 \family typewriter
14660 ejour2
14661 \family default
14662 よりは少なくなっているとは思いますが。
14663 \end_layout
14664
14665 \begin_layout Standard
14666 制限事項:定理環境の環境の番号は表示されません。#が表示されるだけです。
14667 \end_layout
14668
14669 \begin_layout Section
14670 Slides(別名
14671 \noun on
14672 SliTeX
14673 \noun default
14674
14675 \begin_inset Foot
14676 status collapsed
14677
14678 \begin_layout Plain Layout
14679 (訳註)この節の内容は、全般的に古くなっています。
14680 \end_layout
14681
14682 \end_inset
14683
14684
14685 \begin_inset CommandInset label
14686 LatexCommand label
14687 name "sec:slitex"
14688
14689 \end_inset
14690
14691
14692 \end_layout
14693
14694 \begin_layout Standard
14695
14696 \noun on
14697 John Weiss
14698 \noun default
14699
14700 \end_layout
14701
14702 \begin_layout Subsection
14703 はじめに
14704 \end_layout
14705
14706 \begin_layout Standard
14707 本節では、オーバーへッドプロジェクタ用のスライドをつくるのに、LyXをどのように使えばよいかを説明します。これを行う文書クラスには、既定のslideクラスと
14708 \family sans
14709 FoilTeX
14710 \family default
14711 スライドクラスの2つがあります。本節は前者について説明を行います。
14712 \end_layout
14713
14714 \begin_layout Standard
14715 誤解のないように、正しく明確に、もう一度言っておきます。
14716 \end_layout
14717
14718 \begin_layout Standard
14719 \begin_inset VSpace bigskip
14720 \end_inset
14721
14722
14723 \end_layout
14724
14725 \begin_layout Standard
14726 \align center
14727
14728 \size large
14729 本節は文書クラス
14730 \begin_inset Quotes eld
14731 \end_inset
14732
14733
14734 \family sans
14735 transparencies (slides)
14736 \family default
14737
14738 \begin_inset Quotes erd
14739 \end_inset
14740
14741
14742 \emph on
14743 のみ
14744 \emph default
14745 を説明しています。
14746 \end_layout
14747
14748 \begin_layout Standard
14749 \begin_inset VSpace bigskip
14750 \end_inset
14751
14752
14753 \end_layout
14754
14755 \begin_layout Standard
14756
14757 \family sans
14758 「slides (FoilTeX)
14759 \family default
14760 」の説明をお探しならば、第
14761 \begin_inset CommandInset ref
14762 LatexCommand ref
14763 reference "sec:foiltex"
14764
14765 \end_inset
14766
14767 節をご覧ください。
14768 \family sans
14769 foils
14770 \family default
14771 クラス「
14772 \family sans
14773 slides (FoilTeX)
14774 \family default
14775 」は、実際、本節で説明している既定
14776 \family sans
14777 slides
14778 \family default
14779 クラスよりも良いようです
14780 \begin_inset Foot
14781 status collapsed
14782
14783 \begin_layout Plain Layout
14784 \SpecialChar \ldots{}
14785
14786 \family sans
14787 FoilTeX
14788 \family default
14789 の支持者からは聞いています。けれども私は使ったことがないので、本当かどうか確かめようがありません。
14790 \end_layout
14791
14792 \end_inset
14793
14794
14795 \end_layout
14796
14797 \begin_layout Standard
14798 このクラスは、旧SLITeXパッケージをLaTeX2e用に改良したものです。LaTeX2e頒布版すべてが、このクラス(以下では単に「
14799 \family sans
14800 slides
14801 \family default
14802 」と述べることにします)を含んでいるので、あなたもお持ちのはずです。前述の
14803 \family sans
14804 foils
14805 \family default
14806 のように、同じくオーバーへッドプロジェクタ用のスライドを生成しながら、このクラスよりも良い仕事をするクラスもあります。しかしながら、オーバーレイを生成するなど、
14807 他のクラスにはできないが
14808 \family sans
14809 slides
14810 \family default
14811 ならばできることもあります。詳しくは以下をお読みください。
14812 \end_layout
14813
14814 \begin_layout Subsection
14815 使い始めるには
14816 \begin_inset CommandInset label
14817 LatexCommand label
14818 name "sec:slidesetup"
14819
14820 \end_inset
14821
14822
14823 \end_layout
14824
14825 \begin_layout Standard
14826 当然ながら、この文書クラスを使用するには、
14827 \family sans
14828 文書\SpecialChar \menuseparator
14829 設定
14830 \family default
14831 ダイアログのクラスリストから「
14832 \family sans
14833 transparencies (slides)
14834 \family default
14835 」を選択しなくてはなりません。このクラスについて、以下のように、特に知っておいた方が良いことがいくつかあります。
14836 \end_layout
14837
14838 \begin_layout Itemize
14839
14840 \family sans
14841 用紙方向
14842 \family default
14843
14844 \family sans
14845 二段組文書
14846 \family default
14847 の各オプションは、あえて変更する必要はありません。これらのオプションは、
14848 \family sans
14849 slides
14850 \family default
14851 クラスではサポートされていないので、効果がありません。
14852 \end_layout
14853
14854 \begin_layout Itemize
14855
14856 \family sans
14857 ヘディング様式
14858 \family default
14859 オプションは、このクラスでは少し異なった振る舞いをします。各選択肢とその機能は、以下の通りです。
14860 \end_layout
14861
14862 \begin_deeper
14863 \begin_layout Description
14864 プレーン(plain) 最終出力の右下隅にページ番号が付きます。
14865 \end_layout
14866
14867 \begin_layout Description
14868 設定(headings)
14869 \family sans
14870  プレーン(plain)
14871 \family default
14872 と同様ですが、それ以外にあなたが指定したタイムマーカーをすべて出力します。これが既定値です。
14873 \end_layout
14874
14875 \begin_layout Description
14876 空 最終出力には、ページ番号もタイムマーカーも位置揃えマーカーも出力されません。
14877 \end_layout
14878
14879 \end_deeper
14880 \begin_layout Itemize
14881
14882 \family sans
14883 slides
14884 \family default
14885 クラスには、もう一つ
14886 \family typewriter
14887 clock
14888 \family default
14889 というオプションがあります。これを使用するには、
14890 \family sans
14891 クラスオプション
14892 \family default
14893 に「
14894 \family typewriter
14895 clock
14896 \family default
14897 」と入力してください。
14898 \end_layout
14899
14900 \begin_deeper
14901 \begin_layout Standard
14902 このオプションを使うと、
14903 \family sans
14904 注釈
14905 \family default
14906 にタイムマーカーを加えることができます。詳細は、第
14907 \begin_inset CommandInset ref
14908 LatexCommand ref
14909 reference "sec:slideNote"
14910
14911 \end_inset
14912
14913 節をご覧ください。
14914 \end_layout
14915
14916 \end_deeper
14917 \begin_layout Standard
14918
14919 \family sans
14920 slides
14921 \family default
14922 クラスを用いた文書を自動的にセットアップするには、ひな型ファイル「
14923 \family typewriter
14924 slides.lyx
14925 \family default
14926 」を使用することもできます(新規ファイルを開く際に
14927 \family sans
14928 ファイル\SpecialChar \menuseparator
14929 新規(ひな型使用)
14930 \family default
14931 を使用してください)。ひな型ファイルには、このクラスが使用する特別な段落環境の用例も含まれています。これらについては、以下で説明します。
14932 \end_layout
14933
14934 \begin_layout Subsection
14935 段落環境
14936 \end_layout
14937
14938 \begin_layout Subsubsection
14939
14940 \family sans
14941 サポートされている環境
14942 \end_layout
14943
14944 \begin_layout Standard
14945 新しく
14946 \family sans
14947 slides
14948 \family default
14949 文書を開いたときにまず気付くのは、フォント寸法とフォント族の違いでしょう。ここでは、
14950 \family sans
14951 サンセリフ体
14952 \family default
14953 フォントの
14954 \family sans
14955 極大
14956 \family default
14957 寸法が用いられており、出力でもこのフォントが使用されます。これは、現在スライドを作成中であることの「目印」だと考えてください。出力スライドは大きなフォントを使用
14958 するため、書ける場所は少なくなります。もちろん、既定の大きな画面フォントはWYSIWYGではなく、スライドであることの目印に過ぎません。
14959 \end_layout
14960
14961 \begin_layout Standard
14962 次に気付くのは、(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう。通常見かける環境の多くがなくなって、代わりに5つの新しい環境が入ってい
14963 ます。これは、
14964 \family sans
14965 slides
14966 \family default
14967 クラスが、標準段落環境のうち以下のものしかサポートしていないためです。
14968 \end_layout
14969
14970 \begin_layout Itemize
14971
14972 \family sans
14973 標準
14974 \end_layout
14975
14976 \begin_layout Itemize
14977
14978 \family sans
14979 箇条書き(記号)
14980 \end_layout
14981
14982 \begin_layout Itemize
14983
14984 \family sans
14985 箇条書き(連番)
14986 \end_layout
14987
14988 \begin_layout Itemize
14989
14990 \family sans
14991 箇条書き(記述)
14992 \end_layout
14993
14994 \begin_layout Itemize
14995
14996 \family sans
14997 箇条書き(一覧)
14998 \end_layout
14999
15000 \begin_layout Itemize
15001
15002 \family sans
15003 引用(字下げあり)
15004 \end_layout
15005
15006 \begin_layout Itemize
15007
15008 \family sans
15009 引用(字下げなし)
15010 \end_layout
15011
15012 \begin_layout Itemize
15013
15014 \family sans
15015 詩句
15016 \end_layout
15017
15018 \begin_layout Itemize
15019
15020 \family sans
15021 キャプション
15022 \end_layout
15023
15024 \begin_layout Itemize
15025
15026 \family sans
15027 LyXコード
15028 \end_layout
15029
15030 \begin_layout Itemize
15031
15032 \family sans
15033 コメント
15034 \end_layout
15035
15036 \begin_layout Standard
15037 これ以外の標準的な環境、例えば節見出し用の環境などは
15038 \family sans
15039 slides
15040 \family default
15041 クラスでは使えません。
15042 \end_layout
15043
15044 \begin_layout Standard
15045 一方、以下の新しい環境があります。
15046 \end_layout
15047
15048 \begin_layout Itemize
15049
15050 \family sans
15051 スライド
15052 \end_layout
15053
15054 \begin_layout Itemize
15055
15056 \family sans
15057 オーバーレイ
15058 \end_layout
15059
15060 \begin_layout Itemize
15061
15062 \family sans
15063 注釈
15064 \end_layout
15065
15066 \begin_layout Itemize
15067
15068 \family sans
15069 不可視文
15070 \end_layout
15071
15072 \begin_layout Itemize
15073
15074 \family sans
15075 可視文
15076 \end_layout
15077
15078 \begin_layout Standard
15079 これら5つの環境は、LyXの「機能」のために使い方に癖があります。ご存じのように、LyXでは、空の段落環境に他の環境を入れることができません。それ自体は素晴らし
15080 いデザインなのですが、これは、スライドを平文以外では書き始めることができないことを意味します。これを取り扱うためには、ちょっとした「LaTeXマジック」が必要に
15081 なります。
15082 \end_layout
15083
15084 \begin_layout Subsubsection
15085 新環境の癖
15086 \begin_inset CommandInset label
15087 LatexCommand label
15088 name "sec:スライドの癖"
15089
15090 \end_inset
15091
15092
15093 \end_layout
15094
15095 \begin_layout Standard
15096 5つの新しい環境にはすべて、LyX現行版の制約に由来する癖があります。いま述べたように、LyXでは、環境を別の環境で開始することが禁止されています。これを回避す
15097 るために、
15098 \family sans
15099 スライド
15100 \family default
15101 環境は『
15102 \emph on
15103 ユーザーの手引き
15104 \emph default
15105 』で述べられているような段落環境ではなくなっています。
15106 \end_layout
15107
15108 \begin_layout Standard
15109
15110 \family sans
15111 スライド
15112 \family default
15113
15114 \family sans
15115 オーバーレイ
15116 \family default
15117
15118 \family sans
15119 注釈
15120 \family default
15121 は「疑似環境」だとお考えください。これらは節見出しや「
15122 \family sans
15123 キャプション
15124 \family default
15125 」のように見えますが、実際には(必要なら前段落を終了して)新しい段落環境を開始します。同様に、
15126 \family sans
15127 不可視文
15128 \family default
15129
15130 \family sans
15131 可視文
15132 \family default
15133 も「疑似コマンド」とお考えください。この2つは特定のアクションを行います。
15134 \end_layout
15135
15136 \begin_layout Standard
15137
15138 \family sans
15139 スライド
15140 \family default
15141
15142 \family sans
15143 オーバーレイ
15144 \family default
15145
15146 \family sans
15147 注釈
15148 \family default
15149
15150 \family sans
15151 不可視文
15152 \family default
15153
15154 \family sans
15155 可視文
15156 \family default
15157 の5環境に共通しているのは、長めのラベルを持つことです。このラベルに続く文章—通常は段落環境の内容になるはずですが—は、
15158 \family sans
15159 スライド
15160 \family default
15161
15162 \family sans
15163 オーバーレイ
15164 \family default
15165
15166 \family sans
15167 注釈
15168 \family default
15169
15170 \family sans
15171 不可視文
15172 \family default
15173
15174 \family sans
15175 可視文
15176 \family default
15177 では、まったく意味がなく、LyXはこの部分を完全に無視します。これらの5つの環境の内容は、完全に空のままにしておいて構いません。
15178 \end_layout
15179
15180 \begin_layout Standard
15181 長めのラベルの後に文章を入れる
15182 \emph on
15183 必要は
15184 \emph default
15185 まったく
15186 \emph on
15187 ない
15188 \emph default
15189 とはいえ、何か書いておきたいこともあるかもしれません。たとえば、スライドの内容に関する短い説明などがそうでしょう。この場合、いつもどおり説明用のコメントを入力し
15190
15191 \family sans
15192 Return
15193 \family default
15194 を押してください。
15195 \end_layout
15196
15197 \begin_layout Standard
15198 一方、説明文を入れたくない場合には、LyXの制約に直面します。自然が真空を憎むように、LyXでは、古い環境に何かを置くまでは、その中に新しい環境を入れることがで
15199 きません。そこで以下のようにしてください。
15200 \end_layout
15201
15202 \begin_layout Itemize
15203 新しい
15204 \family sans
15205 スライド
15206 \family default
15207
15208 \family sans
15209 オーバーレイ
15210 \family default
15211
15212 \family sans
15213 注釈
15214 \family default
15215
15216 \family sans
15217 不可視文
15218 \family default
15219
15220 \family sans
15221 可視文
15222 \family default
15223
15224 \emph on
15225 中に入れる
15226 \emph default
15227 文章を入力してください。
15228 \end_layout
15229
15230 \begin_layout Itemize
15231 段落の先頭に移動します。
15232 \end_layout
15233
15234 \begin_layout Itemize
15235 次に
15236 \family sans
15237 Return
15238 \family default
15239 を押します。
15240 \end_layout
15241
15242 \begin_layout Itemize
15243 最後に、この新しい空の段落を
15244 \family sans
15245 スライド
15246 \family default
15247
15248 \family sans
15249 オーバーレイ
15250 \family default
15251
15252 \family sans
15253 注釈
15254 \family default
15255
15256 \family sans
15257 不可視文
15258 \family default
15259
15260 \family sans
15261 可視文
15262 \family default
15263 に変更します。
15264 \end_layout
15265
15266 \begin_layout Standard
15267 将来のLyXでは、このような癖が解決されることを祈っています\SpecialChar \ldots{}
15268
15269 \begin_inset Foot
15270 status collapsed
15271
15272 \begin_layout Plain Layout
15273 (訳註)ここの記述は古くなっています。
15274 \end_layout
15275
15276 \end_inset
15277
15278
15279 \end_layout
15280
15281 \begin_layout Subsection
15282
15283 \family sans
15284 スライド
15285 \family default
15286
15287 \family sans
15288 オーバーレイ
15289 \family default
15290
15291 \family sans
15292 注釈で発表用のスライドを作る
15293 \end_layout
15294
15295 \begin_layout Subsubsection
15296
15297 \family sans
15298 スライド
15299 \family default
15300 環境を使う
15301 \end_layout
15302
15303 \begin_layout Standard
15304 もし本節が、実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば、大いにがっかりされるかもしれません。当然ながら、プレゼンテーション用の資
15305 料を準備するうえで
15306 \family sans
15307 slides
15308 \family default
15309 クラスを役立てる方法を詳しく説明はしますが、内容をどうするかはあなた次第です(そしてこれもLyXの哲学です)。
15310 \end_layout
15311
15312 \begin_layout Standard
15313
15314 \family sans
15315 スライド
15316 \family default
15317 環境を選択すれば(方法は第
15318 \begin_inset CommandInset ref
15319 LatexCommand ref
15320 reference "sec:スライドの癖"
15321
15322 \end_inset
15323
15324 節参照のこと)、LyXは新規スライドを開始します。この環境ないし「疑似環境」のラベルは、鮮やかな青で「新規スライド:」と表示されます。この環境の後のテキスト環境
15325 や段落環境は、すべて新規スライドに入ります。簡単ですよね。
15326 \end_layout
15327
15328 \begin_layout Standard
15329 Slidesは、おそらくLyXの中で強制的に改頁をしなくてはならない唯一のクラスです(これは
15330 \family sans
15331 段落レイアウト
15332 \family default
15333 ダイアログで指定できます)。実際、一つのスライドの内容を入力し終わったら、改頁したくなるはずです。仮に一つのスライドに物理的に入りきらない文章を入力したとすると
15334 、入りきらない部分は、次の新規スライドにまわされます。しかしながら、入りきらない部分のスライドにはページ番号が付きませんので、こうするのはお勧めしません。その上
15335 、一枚に収まらないスライドでは、
15336 \family sans
15337 オーバーレイ
15338 \family default
15339 を使用すると干渉する恐れがあります。
15340 \end_layout
15341
15342 \begin_layout Standard
15343
15344 \family sans
15345 オーバーレイ
15346 \family default
15347 環境と
15348 \family sans
15349 注釈
15350 \family default
15351 環境も、
15352 \family sans
15353 スライド
15354 \family default
15355 環境と同様の動作を示します。これらは、青の代わりに鮮やかなマゼンタで、それぞれ「
15356 \noun on
15357 新規オーバーレイ
15358 \noun default
15359 :」ないし「
15360 \noun on
15361 新規注釈:
15362 \noun default
15363 」というラベルを表示します。ラベルのフォントも、3つの環境でそれぞれ異なるものが使用されます。
15364 \end_layout
15365
15366 \begin_layout Standard
15367
15368 \family sans
15369 スライド
15370 \family default
15371 と同様に、
15372 \family sans
15373 オーバーレイ
15374 \family default
15375
15376 \family sans
15377 注釈
15378 \family default
15379 の内容が、一つのスライドないしページに物理的に収まりきらない場合には、余分は新規スライドに回されます。この場合には、
15380 \family sans
15381 注釈
15382 \family default
15383
15384 \family sans
15385 オーバーレイ
15386 \family default
15387 の本来の目的が達せられなくなりますので、ここでもこのような状態は避けるべきでしょう。
15388 \end_layout
15389
15390 \begin_layout Subsubsection
15391
15392 \family sans
15393 スライドでオーバーレイを使用する
15394 \end_layout
15395
15396 \begin_layout Standard
15397
15398 \family sans
15399 オーバーレイ
15400 \family default
15401 の背後にある考え方は、別のスライドの上にスライドを載せようとするものです。メインの
15402 \family sans
15403 スライド
15404 \family default
15405 に図があるとき、関連した文章を表示する前に、図について議論を進めたいと思うことがあるかもしれません。これを行うひとつの方法は、
15406 \family sans
15407 スライド
15408 \family default
15409 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが、この方法は、たとえばグラフを他のグラフに重ねたい場合などには、うまく行きません。この場合には、二つ
15410 のグラフを揃えるために、重ねる二つのスライドを、喋りながら手探りで揃えなくてはなりません。これらのような場合には、
15411 \family sans
15412 オーバーレイ
15413 \family default
15414 環境を使えば、もっと楽になります。
15415 \end_layout
15416
15417 \begin_layout Standard
15418
15419 \family sans
15420 オーバーレイ
15421 \family default
15422 は、「親」
15423 \family sans
15424 スライド
15425 \family default
15426 のページ番号を引継ぎ、その後に「
15427 \family typewriter
15428 -a
15429 \family default
15430 」を付け加えます
15431 \begin_inset Foot
15432 status collapsed
15433
15434 \begin_layout Plain Layout
15435 想像できるように、複数のオーバーレイがあれば、「
15436 \family typewriter
15437 -a
15438 \family default
15439 」「
15440 \family typewriter
15441 -b
15442 \family default
15443 」「
15444 \family typewriter
15445 -c
15446 \family default
15447 」などが親スライドのページ番号に付け加えられます。
15448 \end_layout
15449
15450 \end_inset
15451
15452 。当然のことながら、
15453 \family sans
15454 スライド
15455 \family default
15456
15457 \family sans
15458 オーバーレイ
15459 \family default
15460 の内容は両方とも、1枚のスライドに物理的に収まるようになっていなければなりません。
15461 \family sans
15462 オーバーレイ
15463 \family default
15464
15465 \family sans
15466 スライド
15467 \family default
15468 の「一部」であると考えるのがよいでしょう。LyXでは、
15469 \family sans
15470 オーバーレイ
15471 \family default
15472 のラベルを
15473 \family sans
15474 スライド
15475 \family default
15476 のラベルよりも下げることで、このことを視覚的に表しています。また、印刷可能な出力を生成すると、
15477 \family sans
15478 オーバーレイ
15479 \family default
15480 と親
15481 \family sans
15482 スライド
15483 \family default
15484 両方の四隅に、揃えマーカーがあることに気づかれるはずです。これは、2枚のスライドを物理的に重ね合わせるための補助となるものです。
15485 \end_layout
15486
15487 \begin_layout Standard
15488 2つのスライドをオーバーレイさせる際の大きな問題は、2枚のスライドの内容を揃えることです。2枚目のスライドのグラフには、どれだけの余白を残しておくべきなのでしょ
15489 うか?さらにややこしく、2枚目のスライドにグラフと文章を入れたいときに、その間に割り込んでしまうような文章がメインスライドにある場合には、どうでしょうか?正しい
15490 寸法の垂直スペースを挿入してみることもできるでしょう。しかし、もっと良い方法として、
15491 \family sans
15492 不可視文
15493 \family default
15494
15495 \family sans
15496 可視文
15497 \family default
15498 を使用する方法があります。
15499 \end_layout
15500
15501 \begin_layout Standard
15502 これらの名前が意味するとおり、
15503 \family sans
15504 不可視文
15505 \family default
15506
15507 \family sans
15508 可視文
15509 \family default
15510 は、それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です。しかしながら、第
15511 \begin_inset CommandInset ref
15512 LatexCommand ref
15513 reference "sec:スライドの癖"
15514
15515 \end_inset
15516
15517 節で述べたように、この2つの環境の
15518 \emph on
15519
15520 \emph default
15521 には何も置くことができません。
15522 \family sans
15523 不可視文
15524 \family default
15525 を作成すると、「<以下不可視文>」と書かれた水色のラベルが、ページに中央揃えで表示されます。このラベルに続く段落は、それが置かれるべき
15526 \family sans
15527 スライド
15528 \family default
15529 (あるいは
15530 \family sans
15531 オーバーレイ
15532 \family default
15533 ;どちらでも同じことです)部分に、代わりに空白の部分が置かれます。
15534 \end_layout
15535
15536 \begin_layout Standard
15537
15538 \family sans
15539 可視文
15540 \family default
15541 の場合には、中央揃えのラベルは、鮮やかな緑の「<以下可視文>」となります。このラベル以降の段落は、通常通りの挙動を示します。新規の
15542 \family sans
15543 スライド
15544 \family default
15545
15546 \family sans
15547 オーバーレイ
15548 \family default
15549
15550 \family sans
15551 注釈
15552 \family default
15553 を開始すると、
15554 \family sans
15555 不可視文
15556 \family default
15557 は自動的に終了されることに注意してください。したがって、
15558 \family sans
15559 スライド
15560 \family default
15561 の終わりでは、
15562 \family sans
15563 可視文
15564 \family default
15565 を使用する必要はありません。
15566 \end_layout
15567
15568 \begin_layout Standard
15569 ここまでで、
15570 \family sans
15571 スライド
15572 \family default
15573
15574 \family sans
15575 オーバーレイ
15576 \family default
15577 上で
15578 \family sans
15579 不可視文
15580 \family default
15581
15582 \family sans
15583 可視文
15584 \family default
15585 を適切に使用して、スライドをオーバーレイさせる方法が明らかになったことと思います。
15586 \end_layout
15587
15588 \begin_layout Enumerate
15589 メインのスライドか
15590 \family sans
15591 オーバーレイ
15592 \family default
15593 かに関わらず、スライド上に現れるすべてを含んだ
15594 \family sans
15595 スライド
15596 \family default
15597 を作成します。
15598 \end_layout
15599
15600 \begin_layout Enumerate
15601
15602 \family sans
15603 オーバーレイ
15604 \family default
15605 のみに表示するすべての図や段落の前に、
15606 \family sans
15607 不可視文
15608 \family default
15609 環境を挿入し、必要ならば、
15610 \family sans
15611 オーバーレイ
15612 \family default
15613 のみの文章の後に
15614 \family sans
15615 可視文
15616 \family default
15617 環境を挿入します。
15618 \end_layout
15619
15620 \begin_layout Enumerate
15621
15622 \family sans
15623 スライド
15624 \family default
15625 の直後から、
15626 \family sans
15627 オーバーレイ
15628 \family default
15629 を開始します。
15630 \end_layout
15631
15632 \begin_layout Enumerate
15633 この
15634 \family sans
15635 スライド
15636 \family default
15637 の内容を
15638 \family sans
15639 オーバーレイ
15640 \family default
15641 にコピーします。
15642 \end_layout
15643
15644 \begin_layout Enumerate
15645
15646 \family sans
15647 オーバーレイ
15648 \family default
15649 内部の
15650 \family sans
15651 不可視文
15652 \family default
15653 行をすべて
15654 \family sans
15655 不可視文
15656 \family default
15657 に変更し、
15658 \family sans
15659 可視文
15660 \family default
15661
15662 \family sans
15663 不可視文
15664 \family default
15665 に変更します。
15666 \end_layout
15667
15668 \begin_layout Standard
15669 これだけです。これで
15670 \family sans
15671 オーバーレイ
15672 \family default
15673 ができあがりました。
15674 \end_layout
15675
15676 \begin_layout Standard
15677 LyX 
15678 \family sans
15679 slides
15680 \family default
15681 クラスをデザインする上で、ひとつ残された問題があります。段落途中の文章を不可視にしたり、不可視段落の途中の文章を再度可視にしたりすることはできないのです。これを
15682 実現するためには、LaTeXコードを埋め込む必要があります
15683 \begin_inset Foot
15684 status collapsed
15685
15686 \begin_layout Plain Layout
15687 このコマンドは、
15688 \end_layout
15689
15690 \begin_layout Itemize
15691
15692 \family typewriter
15693 {
15694 \backslash
15695 invisible \SpecialChar \ldots{}
15696  }
15697 \end_layout
15698
15699 \begin_layout Itemize
15700
15701 \family typewriter
15702 {
15703 \backslash
15704 visible \SpecialChar \ldots{}
15705  }
15706 \end_layout
15707
15708 \begin_layout Plain Layout
15709 \SpecialChar \ldots{}
15710 のような形となり、TeXとしてマークする必要があります。「可視性」を変更したい文章は、波括弧のあいだ(そして
15711 \family typewriter
15712
15713 \backslash
15714 invisible
15715 \family default
15716 ないし
15717 \family typewriter
15718
15719 \backslash
15720 visible
15721 \family default
15722 コマンドの後ろ)に入れます。TeXとしてマークする方法がわからない場合は、
15723 \emph on
15724 ユーザーの手引き
15725 \emph default
15726 をご参照ください。
15727 \end_layout
15728
15729 \end_inset
15730
15731
15732 \end_layout
15733
15734 \begin_layout Subsubsection
15735
15736 \family sans
15737 スライドで注釈を使う
15738 \family default
15739
15740 \begin_inset CommandInset label
15741 LatexCommand label
15742 name "sec:スライド注釈"
15743
15744 \end_inset
15745
15746
15747 \end_layout
15748
15749 \begin_layout Standard
15750
15751 \family sans
15752 オーバーレイ
15753 \family default
15754 と同様、
15755 \family sans
15756 注釈
15757 \family default
15758 も「親」
15759 \family sans
15760 スライド
15761 \family default
15762 に関連付けられています。ここでもLyX
15763 \family sans
15764 スライド
15765 \family default
15766 クラスは視覚的な効果を与えています。
15767 \family sans
15768 注釈
15769 \family default
15770 のラベルは
15771 \family sans
15772 スライド
15773 \family default
15774 よりも短く(オーバーレイのラベルよりも長いですが)、
15775 \family sans
15776 オーバーレイ
15777 \family default
15778 のラベルと同様、派手な赤紫色です。加えて、印刷した
15779 \family sans
15780 注釈
15781 \family default
15782 には、「親」スライドのページ番号に「
15783 \family typewriter
15784 -
15785 \family default
15786 1」「
15787 \family typewriter
15788 -
15789 \family default
15790 2」「
15791 \family typewriter
15792 -
15793 \family default
15794 3」等を付けたページ番号が付けられます。1つの
15795 \family sans
15796 スライド
15797 \family default
15798 には、複数の
15799 \family sans
15800 注釈
15801 \family default
15802 を関連付けることができるので、
15803 \family sans
15804 スライド
15805 \family default
15806
15807 \family sans
15808 オーバーレイ
15809 \family default
15810 と同じように、長い注釈は、1枚の紙に収まるように分割したいと思われるに違いありません。
15811 \end_layout
15812
15813 \begin_layout Standard
15814
15815 \family sans
15816 注釈
15817 \family default
15818 の目的は明らかです。
15819 \family sans
15820 スライド
15821 \family default
15822 に関して付け加えたいことを書き留めておくことです。特定の
15823 \family sans
15824 スライド
15825 \family default
15826 についての覚書として使うこともできます。後者の場合には、タイムマーカを利用したいこともあるかもしれません。現在のところ、LyXの
15827 \family sans
15828 スライド
15829 \family default
15830 クラスは、
15831 \noun on
15832 Sli
15833 \noun default
15834 TeXの機能であるタイムマーカを「ネイティブには」サポートしていません。したがって、LaTeXコードを使用することに頼らなくてはなりません。
15835 \end_layout
15836
15837 \begin_layout Standard
15838 タイムマーカを使用するには、クラスオプション「
15839 \family typewriter
15840 clock
15841 \family default
15842 」を追加指定する必要があります(第
15843 \begin_inset CommandInset ref
15844 LatexCommand ref
15845 reference "sec:slidesetup-1"
15846
15847 \end_inset
15848
15849 節参照)。このオプションはタイムマーカ機能を有効にして、生成したすべての
15850 \family sans
15851 注釈
15852 \family default
15853 の左下にタイムマーカを表示します。タイムマーカに表示するものを設定するには、LaTeXコマンド「
15854 \family typewriter
15855
15856 \backslash
15857 settime{}
15858 \family default
15859 」および「
15860 \family typewriter
15861
15862 \backslash
15863 addtime{}
15864 \family default
15865 」を使用します。両コマンドは、秒で測った時間を引数にとります。「
15866 \family typewriter
15867
15868 \backslash
15869 settime{}
15870 \family default
15871 」は、タイムマーカを特定の時間に設定し、「
15872 \family typewriter
15873
15874 \backslash
15875 addtime{}
15876 \family default
15877 」は、タイムマーカを指定した分だけ進めます。このようにタイムマーカと
15878 \family sans
15879 注釈
15880 \family default
15881 を用いれば、特定の
15882 \family sans
15883 スライド
15884 \family default
15885 にどれだけの時間をかけるのか忘れないでいられます。
15886 \end_layout
15887
15888 \begin_layout Standard
15889 最後に、説明しておくべき機能がもう一つあります。当然ながら、
15890 \family sans
15891 スライド
15892 \family default
15893
15894 \family sans
15895 オーバーレイ
15896 \family default
15897 はすべてスライドに、
15898 \family sans
15899 注釈
15900 \family default
15901 はすべて普通の紙に印刷したいはずです。しかしながら、
15902 \family sans
15903 注釈
15904 \family default
15905 は関連付けられた親スライドの直後に
15906 \emph on
15907 来なくてはなりません
15908 \emph default
15909 。ユーザーはどうしたら良いのでしょうか。
15910 \end_layout
15911
15912 \begin_layout Standard
15913 幸いなことに、どれを印刷するか選択することを可能にするLaTeXコマンドが、2種類あります。どちらも文書のプリアンブルに記述されなくてはなりません。コマンド「
15914 \family typewriter
15915
15916 \backslash
15917 onlyslides{
15918 \backslash
15919 slides}
15920 \family default
15921 」は、出力に
15922 \family sans
15923 スライド
15924 \family default
15925
15926 \family sans
15927 オーバーレイ
15928 \family default
15929 のみが含まれるようにするものです。同様に、「
15930 \family typewriter
15931
15932 \backslash
15933 onlynotes{
15934 \backslash
15935 notes}
15936 \family default
15937 」は
15938 \family sans
15939 注釈
15940 \family default
15941 以外の出力をすべて抑制します。私のアドバイスとしては、両コマンドをプリアンブルに書いておいて、最初は両方ともコメントアウトしておくと良いでしょう。そうすれば、執
15942 筆時にはプレゼンテーション全体をプレビューすることができます。いったん書き終えたならば、二つのうち一方のコメントを外して、印刷したい方を選ぶことができます。私な
15943 らば、まず
15944 \family typewriter
15945
15946 \backslash
15947 onlyslides{
15948 \backslash
15949 slides}
15950 \family default
15951 のコメントを外して、現ファイル名に「*
15952 \family typewriter
15953 -slides
15954 \family default
15955 」を付けた新たなファイルに出力を行ない、今度はこの行をふたたびコメントアウトするとともに、「
15956 \family typewriter
15957
15958 \backslash
15959 onlynotes{
15960 \backslash
15961 notes
15962 \family default
15963 }」のコメントを外して、これを「
15964 \family typewriter
15965 *-notes.ps
15966 \family default
15967 」というファイルに出力します。そうすれば、必要に応じて、スライドまたは通常の紙をプリンタにセットし、一方のファイルをプリンタに送ればよいのです。
15968 \end_layout
15969
15970 \begin_layout Standard
15971
15972 \family typewriter
15973
15974 \backslash
15975 onlyslides{}
15976 \family default
15977 」および「
15978 \family typewriter
15979
15980 \backslash
15981 onlynotes{}
15982 \family default
15983 」コマンドには、他の引数を与えることもできます。詳しくは、LaTeXの良書をご覧ください。
15984 \end_layout
15985
15986 \begin_layout Subsection
15987
15988 \family sans
15989 slides
15990 \family default
15991 クラスのひな型ファイル
15992 \end_layout
15993
15994 \begin_layout Standard
15995
15996 \family sans
15997 slides
15998 \family default
15999 クラス用のひな型ファイルとして「
16000 \family typewriter
16001 slides.lyx
16002 \family default
16003 」が提供されています。これを使用するには、新しいプレゼンテーションを作り始める際に、
16004 \family sans
16005 ファイル\SpecialChar \menuseparator
16006 新規(ひな型使用)
16007 \family default
16008 メニューを選択してください。すると新規ファイルには、
16009 \family sans
16010 スライド
16011 \family default
16012
16013 \family sans
16014 オーバーレイ
16015 \family default
16016
16017 \family sans
16018 注釈
16019 \family default
16020 の組が、例として含まれており、
16021 \family sans
16022 スライド
16023 \family default
16024
16025 \family sans
16026 オーバーレイ
16027 \family default
16028 には、さらに
16029 \family sans
16030 不可視文
16031 \family default
16032
16033 \family sans
16034 可視文
16035 \family default
16036 の使用例も含まれています。また、プリアンブルには、次のように書き込まれています。
16037 \end_layout
16038
16039 \begin_layout LyX-Code
16040 % Uncomment to print out only slides and overlays
16041 \end_layout
16042
16043 \begin_layout LyX-Code
16044 %
16045 \end_layout
16046
16047 \begin_layout LyX-Code
16048 %
16049 \backslash
16050 onlyslides{
16051 \backslash
16052 slides}
16053 \begin_inset Newline newline
16054 \end_inset
16055
16056  
16057 \end_layout
16058
16059 \begin_layout LyX-Code
16060 % Uncomment to print out only notes
16061 \end_layout
16062
16063 \begin_layout LyX-Code
16064 %
16065 \end_layout
16066
16067 \begin_layout LyX-Code
16068 %
16069 \backslash
16070 onlynotes{
16071 \backslash
16072 notes}
16073 \end_layout
16074
16075 \begin_layout Standard
16076 最後に、私はこの文書クラスを、LaTeX2eの組み込みクラスである「
16077 \noun on
16078 SliTeX
16079 \noun default
16080 エミュレーション」クラスをサポートする目的で作成しました。私もLyXチームの他のメンバーも、この組み込みスライドクラスを使用することに賛成したり反対したりするも
16081 のではありません。これは単に、ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです。プレゼンテーションを作成するためには、
16082 \family sans
16083 Foils
16084 \family default
16085 クラス(第
16086 \begin_inset CommandInset ref
16087 LatexCommand ref
16088 reference "sec:foiltex"
16089
16090 \end_inset
16091
16092 節参照)や「
16093 \family typewriter
16094 seminar
16095 \family default
16096 」パッケージ(一部のTeX頒布版に含まれています)のように、他のLaTeX2eクラスも存在します。私はこれらについては知らないのですが、他にどのようなことができ
16097 るのか試してみてください。
16098 \end_layout
16099
16100 \begin_layout Chapter
16101 ソフトウェアを追加する必要がある LyX機能
16102 \end_layout
16103
16104 \begin_layout Section
16105 TeXのチェック
16106 \end_layout
16107
16108 \begin_layout Standard
16109
16110 \noun on
16111 Asger Alstrup
16112 \noun default
16113
16114 \end_layout
16115
16116 \begin_layout Subsection
16117 はじめに
16118 \end_layout
16119
16120 \begin_layout Standard
16121
16122 \family typewriter
16123 chktex
16124 \family default
16125 プログラムが導入されていると
16126 \begin_inset Foot
16127 status collapsed
16128
16129 \begin_layout Plain Layout
16130 LaTeX頒布版としてMiKTeXを使用している場合には、
16131 \family typewriter
16132 chktex
16133 \family default
16134 はまだ利用可能ではありません。
16135 \end_layout
16136
16137 \end_inset
16138
16139
16140 \family sans
16141 ツール
16142 \family default
16143 メニューの下に、
16144 \family sans
16145 TeX構文チェック
16146 \family default
16147 という項目が表示されます。
16148 \family typewriter
16149 chktex
16150 \family default
16151 は、CTAN
16152 \begin_inset CommandInset href
16153 LatexCommand href
16154 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
16155
16156 \end_inset
16157
16158 から入手することができます。
16159 \end_layout
16160
16161 \begin_layout Standard
16162
16163 \family sans
16164 ChkTeX
16165 \family default
16166 パッケージは、LaTeXの構成物には直感的でないものもあり、すぐ忘れてしまいがちであるのに不満を感じた
16167 \begin_inset Flex Noun
16168 status collapsed
16169
16170 \begin_layout Plain Layout
16171 Jens T.
16172  Berger Thielemann
16173 \end_layout
16174
16175 \end_inset
16176
16177 が書いたプログラムです。このプログラムは、LaTeXファイルを走査して、ファイルの整合性をチェックし、犯しがちな誤りを見つけ出します。別の技術用語では、LaTe
16178 Xにおける
16179 \family typewriter
16180 lint
16181 \family default
16182 であるとも言えます。
16183 \end_layout
16184
16185 \begin_layout Standard
16186 さて、LyXはつねに正しいLaTeXファイルを生成するはずなのに、文法チェッカーはLyXで何をするというのでしょうか。答えは簡単です。
16187 \family typewriter
16188 lint
16189 \family default
16190 がC言語プログラムの
16191 \emph on
16192 文法
16193 \emph default
16194 をチェックするだけでなく、打ち間違いによる
16195 \emph on
16196 意味上の
16197 \emph default
16198 チェックも行うように、
16199 \family sans
16200 ChkTeX
16201 \family default
16202 は、文法エラーの他に犯しがちな
16203 \emph on
16204 写植上の
16205 \emph default
16206 誤りも検出してくれるからです。
16207 \family sans
16208 ChkTeX
16209 \family default
16210 は、以下のような誤りを検出することができます。
16211 \end_layout
16212
16213 \begin_layout Itemize
16214 省略記号の検出:
16215 \begin_inset Newline newline
16216 \end_inset
16217
16218 ...ではなく\SpecialChar \ldots{}
16219 を使わなくてはなりません
16220 \end_layout
16221
16222 \begin_layout Itemize
16223 括弧の前後にスペースを置かない:
16224 \begin_inset Newline newline
16225 \end_inset
16226
16227 ( wrong spacing ):誤った空白
16228 \end_layout
16229
16230 \begin_layout Itemize
16231 よく使われる省略形の後ろは通常スペースにする:
16232 \begin_inset Newline newline
16233 \end_inset
16234
16235 e.
16236 \begin_inset space \thinspace{}
16237 \end_inset
16238
16239 g.
16240 \begin_inset space \space{}
16241 \end_inset
16242
16243 is too wide spacing.:広すぎる空白
16244 \end_layout
16245
16246 \begin_layout Itemize
16247 直前の文章が大文字で終わっているときに、文末スペースに直す:
16248 \begin_inset Newline newline
16249 \end_inset
16250
16251 This is a TEST.
16252  And this is wrong spacing.:誤った空白
16253 \end_layout
16254
16255 \begin_layout Itemize
16256 ラベルや類似コマンドの前のスペース:
16257 \begin_inset Newline newline
16258 \end_inset
16259
16260 ラベルが別のページに行ってしまわないように、ラベルは文章に接していなくてはなりません。 
16261 \begin_inset CommandInset label
16262 LatexCommand label
16263 name "sec:chktex"
16264
16265 \end_inset
16266
16267  
16268 \begin_inset Foot
16269 status collapsed
16270
16271 \begin_layout Plain Layout
16272 この脚注は、正しくないページに行ってしまう恐れがあります。
16273 \end_layout
16274
16275 \end_inset
16276
16277  このラベルは離れすぎです。
16278 \end_layout
16279
16280 \begin_layout Itemize
16281 参照の前にハードスペースではなくスペース:
16282 \begin_inset Newline newline
16283 \end_inset
16284
16285 運が悪ければ、参照文字列と参照番号のあいだでちょうど改行されてしまい、残念な結果となります。第
16286 \begin_inset CommandInset ref
16287 LatexCommand ref
16288 reference "sec:chktex"
16289
16290 \end_inset
16291
16292 節をご覧ください。
16293 \end_layout
16294
16295 \begin_layout Itemize
16296 数字のあいだで
16297 \begin_inset Formula $\times$
16298 \end_inset
16299
16300 ではなく「x」が使われている:
16301 \begin_inset Newline newline
16302 \end_inset
16303
16304 2x2は、
16305 \begin_inset Formula $2\times2$
16306 \end_inset
16307
16308 よりも安っぽく見えます。
16309 \end_layout
16310
16311 \begin_layout Standard
16312 などなど\SpecialChar \ldots{}
16313
16314 \family sans
16315 ChkTeX
16316 \family default
16317 は、印刷する前に文書を「仕上げる」上で、たいへん価値のあるツールです。必須のスペルチェックを終えた直後、組版の微調整をする前には、これを実行するべきです。
16318 \end_layout
16319
16320 \begin_layout Subsection
16321 使いかた
16322 \end_layout
16323
16324 \begin_layout Standard
16325 このプログラムを導入したならば、使うのは
16326 \family sans
16327 ツール\SpecialChar \menuseparator
16328 TeX構文チェック
16329 \family default
16330 を選択するだけなので簡単です。こうすると、LyXは使用中の文書のLaTeXファイルを生成して、
16331 \family sans
16332 ChkTeX
16333 \family default
16334 を起動し、当該ファイルを検査しますが、
16335 \family sans
16336 ChkTeX
16337 \family default
16338 から警告があった場合には、それを含んだ「エラーボックス」をLyX中に挿入します。警告は、誤りのある箇所のそばに置かれるので、メニュー項目の
16339 \family sans
16340 移動\SpecialChar \menuseparator
16341 エラー
16342 \family default
16343 を選択するか、既定の
16344 \family typewriter
16345 cua
16346 \family default
16347 キー設定ファイルならば短絡キー
16348 \family sans
16349 C-g
16350 \family default
16351 を押せば、簡単に警告の箇所を見出すことができます。エラーボックスを開けるには、マウスでボックスをクリックするか、
16352 \family typewriter
16353 cua
16354 \family default
16355 キー設定の場合には短絡キー
16356 \family sans
16357 C-i
16358 \family default
16359
16360 \family typewriter
16361 emacs
16362 \family default
16363 キー設定の場合は短絡キー
16364 \family sans
16365 C-o
16366 \family default
16367 を押します。警告を読み、それが誤りを示していれば修正します。警告が何を意味しているか理解しにくい場合には、無視しても問題はありません。画面上の文書と、
16368 \family sans
16369 ChkTeX
16370 \family default
16371 を起動する際に行なわれる実際の技術的な操作のあいだには、隠された層があり、この隔たりのせいで、一部の警告が不可解なものになったり、明らかに馬鹿げたものになる場合
16372 があるのです。
16373 \end_layout
16374
16375 \begin_layout Standard
16376 本文書自体、この機能を確認する良い材料になりますので、実行してみてください。すると、かなりの量の警告が出るはずです。これはコンピュータが敏感すぎるせいですので、
16377 警告のほとんどは実際には警告に値しません。
16378 \end_layout
16379
16380 \begin_layout Subsection
16381 微調整のしかた
16382 \end_layout
16383
16384 \begin_layout Standard
16385 場合によっては、
16386 \family sans
16387 ChkTeX
16388 \family default
16389 は、あなたが望むよりも煩すぎると思うかもしれません。そのような場合には、必要と思うまで
16390 \family sans
16391 ChkTeX
16392 \family default
16393 を無効にするか、あなたにもう少し合うように
16394 \family sans
16395 ChkTeX
16396 \family default
16397 を調整することができます。
16398 \end_layout
16399
16400 \begin_layout Standard
16401
16402 \family sans
16403 ChkTeX
16404 \family default
16405 は調整や拡張がひじょうに柔軟なのですが、LyXにおける
16406 \family sans
16407 ChkTeX
16408 \family default
16409 関連の問題が、それですべて解決すると思うべきではありません。LyXは、
16410 \family sans
16411 ChkTeX
16412 \family default
16413 出力
16414 \begin_inset Foot
16415 status collapsed
16416
16417 \begin_layout Plain Layout
16418
16419 \family sans
16420 chktex
16421 \family default
16422 の実際の出力は、
16423 \family sans
16424 chktex
16425 \family default
16426 を実行した直後に
16427 \family sans
16428 文書\SpecialChar \menuseparator
16429 LaTeXログ
16430 \family default
16431 を使えば見ることができます。
16432 \end_layout
16433
16434 \end_inset
16435
16436 から得た行番号と内部構造を一致させるため、やや特殊なLaTeXファイルを生成しなくてはならないので、警告の一部は正しく表示されていないように見えるでしょう。これ
16437 に対処するためには、以下の2つの方法があります。
16438 \end_layout
16439
16440 \begin_layout Itemize
16441
16442 \family sans
16443 設定
16444 \family default
16445
16446 \family sans
16447 出力
16448 \family default
16449
16450 \family sans
16451 LaTeX
16452 \family default
16453 タブ)中の
16454 \family sans
16455 ChkTeX
16456 \family default
16457 起動コマンドラインを調整するか、グローバルな
16458 \family sans
16459 ChkTeX
16460 \family default
16461 の設定ファイル(通常は
16462 \begin_inset Flex Code
16463 status collapsed
16464
16465 \begin_layout Plain Layout
16466 chktexrc
16467 \end_layout
16468
16469 \end_inset
16470
16471 ファイル)を調整します。コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください。
16472 \end_layout
16473
16474 \begin_layout Itemize
16475
16476 \family sans
16477 ファイル\SpecialChar \menuseparator
16478 書き出し\SpecialChar \menuseparator
16479 LaTeX
16480 \family default
16481 を使って文書をLaTeXファイルに変換し、そのファイルに対して
16482 \family typewriter
16483 chktex
16484 \family default
16485 を手動で実行します。このようにすると、LyX文書中の対応箇所を見つけるのがやや面倒ですが、少し我慢すれば見つけることができます。
16486 \end_layout
16487
16488 \begin_layout Standard
16489 以下は、
16490 \family sans
16491 設定
16492 \family default
16493 で有効化・無効化できる警告メッセージです。警告を無効にするには
16494 \family typewriter
16495 -n#
16496 \family default
16497 、有効にするには
16498 \family typewriter
16499 -w#
16500 \family default
16501 を用います。イタリック表示の項目は、既定で無効となっています。既定値は "
16502 \family typewriter
16503 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
16504 \family default
16505 "です。
16506 \end_layout
16507
16508 \begin_layout Standard
16509 LyXは、
16510 \family typewriter
16511 chktex
16512 \family default
16513 と通信するために、他のコマンドラインパラメータを特定の方法で使用しているため、メッセージを有効化・無効化する以外のオプションを使うべきではありません。
16514 \end_layout
16515
16516 \begin_layout Enumerate
16517
16518 \size small
16519 \emph on
16520 Command terminated with space.
16521 \end_layout
16522
16523 \begin_layout Enumerate
16524
16525 \size small
16526 Non-breaking space (
16527 \begin_inset Quotes eld
16528 \end_inset
16529
16530
16531 \family typewriter
16532 ~
16533 \family default
16534
16535 \begin_inset Quotes erd
16536 \end_inset
16537
16538 ) should have been used.
16539 \end_layout
16540
16541 \begin_layout Enumerate
16542
16543 \size small
16544 \emph on
16545 You should enclose the previous parenthesis with 
16546 \begin_inset Quotes eld
16547 \end_inset
16548
16549
16550 \family typewriter
16551 {}
16552 \family default
16553
16554 \begin_inset Quotes erd
16555 \end_inset
16556
16557 .
16558 \end_layout
16559
16560 \begin_layout Enumerate
16561
16562 \size small
16563 Italic correction (
16564 \begin_inset Quotes eld
16565 \end_inset
16566
16567
16568 \family typewriter
16569
16570 \backslash
16571 /
16572 \family default
16573
16574 \begin_inset Quotes erd
16575 \end_inset
16576
16577 ) found in non-italic buffer.
16578 \end_layout
16579
16580 \begin_layout Enumerate
16581
16582 \size small
16583 Italic correction (
16584 \begin_inset Quotes eld
16585 \end_inset
16586
16587
16588 \family typewriter
16589
16590 \backslash
16591 /
16592 \family default
16593
16594 \begin_inset Quotes erd
16595 \end_inset
16596
16597 ) found more than once.
16598 \end_layout
16599
16600 \begin_layout Enumerate
16601
16602 \size small
16603 \emph on
16604 No italic correction (
16605 \begin_inset Quotes eld
16606 \end_inset
16607
16608
16609 \family typewriter
16610
16611 \backslash
16612 /
16613 \family default
16614
16615 \begin_inset Quotes erd
16616 \end_inset
16617
16618 ) found.
16619 \end_layout
16620
16621 \begin_layout Enumerate
16622
16623 \size small
16624 Accent command 
16625 \begin_inset Quotes eld
16626 \end_inset
16627
16628
16629 \family typewriter
16630 cmd
16631 \family default
16632
16633 \begin_inset Quotes erd
16634 \end_inset
16635
16636  needs use of 
16637 \begin_inset Quotes eld
16638 \end_inset
16639
16640
16641 \family typewriter
16642 cmd
16643 \family default
16644
16645 \begin_inset Quotes erd
16646 \end_inset
16647
16648 .
16649 \end_layout
16650
16651 \begin_layout Enumerate
16652
16653 \size small
16654 Wrong length of dash may have been used.
16655 \end_layout
16656
16657 \begin_layout Enumerate
16658
16659 \size small
16660 \emph on
16661 \begin_inset Quotes eld
16662 \end_inset
16663
16664
16665 \family typewriter
16666 %s
16667 \family default
16668
16669 \begin_inset Quotes erd
16670 \end_inset
16671
16672  expected, found 
16673 \begin_inset Quotes eld
16674 \end_inset
16675
16676
16677 \family typewriter
16678 %s
16679 \family default
16680
16681 \begin_inset Quotes erd
16682 \end_inset
16683
16684 .
16685 \end_layout
16686
16687 \begin_layout Enumerate
16688
16689 \size small
16690 Solo 
16691 \begin_inset Quotes eld
16692 \end_inset
16693
16694
16695 \family typewriter
16696 %s
16697 \family default
16698
16699 \begin_inset Quotes erd
16700 \end_inset
16701
16702  found.
16703 \end_layout
16704
16705 \begin_layout Enumerate
16706
16707 \size small
16708 You should use 
16709 \begin_inset Quotes eld
16710 \end_inset
16711
16712
16713 \family typewriter
16714 %s
16715 \family default
16716
16717 \begin_inset Quotes erd
16718 \end_inset
16719
16720  to achieve an ellipsis.
16721 \end_layout
16722
16723 \begin_layout Enumerate
16724
16725 \size small
16726 Inter-word spacing (
16727 \begin_inset Quotes eld
16728 \end_inset
16729
16730
16731 \family typewriter
16732
16733 \backslash
16734
16735 \family default
16736  
16737 \begin_inset Quotes eld
16738 \end_inset
16739
16740 ) should perhaps be used.
16741 \end_layout
16742
16743 \begin_layout Enumerate
16744
16745 \size small
16746 Inter-sentence spacing (
16747 \begin_inset Quotes eld
16748 \end_inset
16749
16750
16751 \family typewriter
16752
16753 \backslash
16754 @
16755 \family default
16756
16757 \begin_inset Quotes erd
16758 \end_inset
16759
16760 ) should perhaps be used.
16761 \end_layout
16762
16763 \begin_layout Enumerate
16764
16765 \size small
16766 Could not find argument for command.
16767 \end_layout
16768
16769 \begin_layout Enumerate
16770
16771 \size small
16772 No match found for 
16773 \begin_inset Quotes eld
16774 \end_inset
16775
16776
16777 \family typewriter
16778 %s
16779 \family default
16780
16781 \begin_inset Quotes erd
16782 \end_inset
16783
16784 .
16785 \end_layout
16786
16787 \begin_layout Enumerate
16788
16789 \size small
16790 Math mode still on at end of LaTeX file.
16791 \end_layout
16792
16793 \begin_layout Enumerate
16794
16795 \size small
16796 Number of 
16797 \begin_inset Quotes eld
16798 \end_inset
16799
16800
16801 \family typewriter
16802 char
16803 \family default
16804
16805 \begin_inset Quotes erd
16806 \end_inset
16807
16808  doesn't match the number of 
16809 \begin_inset Quotes eld
16810 \end_inset
16811
16812
16813 \family typewriter
16814 char
16815 \family default
16816
16817 \begin_inset Quotes erd
16818 \end_inset
16819
16820 .
16821 \end_layout
16822
16823 \begin_layout Enumerate
16824
16825 \size small
16826 You should use either 
16827 \family typewriter
16828
16829 \begin_inset Quotes eld
16830 \end_inset
16831
16832
16833 \family default
16834  or 
16835 \family typewriter
16836
16837 \begin_inset Quotes erd
16838 \end_inset
16839
16840
16841 \family default
16842  as an alternative to 
16843 \begin_inset Quotes eld
16844 \end_inset
16845
16846
16847 \family typewriter
16848 "
16849 \family default
16850
16851 \begin_inset Quotes erd
16852 \end_inset
16853
16854 .
16855 \end_layout
16856
16857 \begin_layout Enumerate
16858
16859 \size small
16860 You should use "
16861 \family typewriter
16862 '
16863 \family default
16864 " (ASCII 39) instead of "" (ASCII 180).
16865 \end_layout
16866
16867 \begin_layout Enumerate
16868
16869 \size small
16870 User-specified pattern found.
16871 \end_layout
16872
16873 \begin_layout Enumerate
16874
16875 \size small
16876 This command might not be intended.
16877 \end_layout
16878
16879 \begin_layout Enumerate
16880
16881 \size small
16882 \emph on
16883 Comment displayed.
16884 \end_layout
16885
16886 \begin_layout Enumerate
16887
16888 \size small
16889 Either 
16890 \family typewriter
16891 ''
16892 \backslash
16893 ,'
16894 \family default
16895  or 
16896 \family typewriter
16897 '
16898 \backslash
16899 ,''
16900 \family default
16901  will look better.
16902 \end_layout
16903
16904 \begin_layout Enumerate
16905
16906 \size small
16907 Delete this space to maintain correct page references.
16908 \end_layout
16909
16910 \begin_layout Enumerate
16911
16912 \size small
16913 \emph on
16914 You might wish to put this between a pair of 
16915 \begin_inset Quotes eld
16916 \end_inset
16917
16918
16919 \family typewriter
16920 {}
16921 \family default
16922
16923 \begin_inset Quotes erd
16924 \end_inset
16925
16926 .
16927 \end_layout
16928
16929 \begin_layout Enumerate
16930
16931 \size small
16932 You ought to remove spaces in front of punctuation.
16933 \end_layout
16934
16935 \begin_layout Enumerate
16936
16937 \size small
16938 Could not execute LaTeX command.
16939 \end_layout
16940
16941 \begin_layout Enumerate
16942
16943 \size small
16944 Don't use 
16945 \family typewriter
16946
16947 \backslash
16948 /
16949 \family default
16950  in front of small punctuation.
16951 \end_layout
16952
16953 \begin_layout Enumerate
16954
16955 \family typewriter
16956 \size small
16957 $
16958 \backslash
16959 times$
16960 \family default
16961  may look prettier here.
16962 \end_layout
16963
16964 \begin_layout Enumerate
16965
16966 \size small
16967 \emph on
16968 Multiple spaces detected in output.
16969 \end_layout
16970
16971 \begin_layout Enumerate
16972
16973 \size small
16974 This text may be ignored.
16975 \end_layout
16976
16977 \begin_layout Enumerate
16978
16979 \size small
16980 Use 
16981 \family typewriter
16982
16983 \begin_inset Quotes eld
16984 \end_inset
16985
16986
16987 \family default
16988  to begin quotation, not 
16989 \family typewriter
16990 '
16991 \family default
16992 .
16993 \end_layout
16994
16995 \begin_layout Enumerate
16996
16997 \size small
16998 Use 
16999 \family typewriter
17000 '
17001 \family default
17002  to end quotation, not 
17003 \family typewriter
17004
17005 \begin_inset Quotes eld
17006 \end_inset
17007
17008
17009 \family default
17010 .
17011 \end_layout
17012
17013 \begin_layout Enumerate
17014
17015 \size small
17016 Don't mix quotes.
17017 \end_layout
17018
17019 \begin_layout Enumerate
17020
17021 \size small
17022 You should perhaps use 
17023 \begin_inset Quotes eld
17024 \end_inset
17025
17026
17027 \family typewriter
17028 cmd
17029 \family default
17030
17031 \begin_inset Quotes erd
17032 \end_inset
17033
17034  instead.
17035 \end_layout
17036
17037 \begin_layout Enumerate
17038
17039 \size small
17040 You should put a space in front of/after parenthesis.
17041 \end_layout
17042
17043 \begin_layout Enumerate
17044
17045 \size small
17046 You should avoid spaces in front of/after parenthesis.
17047 \end_layout
17048
17049 \begin_layout Enumerate
17050
17051 \size small
17052 \emph on
17053 You should not use punctuation in front of/after quotes.
17054 \end_layout
17055
17056 \begin_layout Enumerate
17057
17058 \size small
17059 Double space found.
17060 \end_layout
17061
17062 \begin_layout Enumerate
17063
17064 \size small
17065 You should put punctuation outside inner/inside display math mode.
17066 \end_layout
17067
17068 \begin_layout Enumerate
17069
17070 \size small
17071 You ought to not use primitive TeX in LaTeX code.
17072 \end_layout
17073
17074 \begin_layout Enumerate
17075
17076 \size small
17077 You should remove spaces in front of 
17078 \begin_inset Quotes eld
17079 \end_inset
17080
17081
17082 \family typewriter
17083 %s
17084 \family default
17085
17086 \begin_inset Quotes erd
17087 \end_inset
17088
17089
17090 \end_layout
17091
17092 \begin_layout Enumerate
17093
17094 \size small
17095 \begin_inset Quotes eld
17096 \end_inset
17097
17098
17099 \family typewriter
17100 %s
17101 \family default
17102
17103 \begin_inset Quotes erd
17104 \end_inset
17105
17106  is normally not followed by 
17107 \begin_inset Quotes eld
17108 \end_inset
17109
17110
17111 \family typewriter
17112 %c
17113 \family default
17114
17115 \begin_inset Quotes erd
17116 \end_inset
17117
17118 .
17119 \end_layout
17120
17121 \begin_layout Standard
17122 LyXの将来の版では、このツール(およびその縮小版
17123 \family typewriter
17124 lacheck
17125 \family default
17126 )の力を最大限引き出すように、より完備したインターフェイスを提供できればと考えています。しかし、現状でも十分に役立つものとなっています。ある程度長さがある既存文
17127 書に使用してみていただければ、きっと驚かれることでしょう。
17128 \end_layout
17129
17130 \begin_layout Section
17131 LyXでのバージョン管理
17132 \end_layout
17133
17134 \begin_layout Standard
17135
17136 \noun on
17137 Lars Bullik Bjønnes
17138 \noun default
17139 および
17140 \noun on
17141 Pavel Sanda
17142 \noun default
17143
17144 \end_layout
17145
17146 \begin_layout Subsection
17147 はじめに
17148 \end_layout
17149
17150 \begin_layout Standard
17151 かつて私の友人が、LyXをグループプロジェクトに使おうとしましたが、当時のLyXには、バージョン管理機能やファイルロック機構が備わっていなかったために、採用を見
17152 合わせました。この事実は少々私をいらだたせ、(将来的にCVSやSCCSのサポートできる拡張性を含め)少なくともRCSのサポートをするべきだと考えたのです。いまや
17153 これは実現しました。LyXは、今ではもっとも基本的なRCS/CVS/SVNコマンドをサポートしています。もしもっと洗練されたことを行いたい場合には、ターミナル上
17154 から手動で行う必要があります。
17155 \end_layout
17156
17157 \begin_layout Standard
17158 LyXで実際にバージョン管理機能を使い始める前に、RCS/CVS/SVNの使用法に習熟しておかなくてはなりません。また、CVSのサポートは、subversion
17159 のサポートほど良くないので、CVSよりもSVNを使うことをお勧めします。Subversionを学び始めるには、SVN Book
17160 \begin_inset Foot
17161 status collapsed
17162
17163 \begin_layout Plain Layout
17164 \begin_inset CommandInset href
17165 LatexCommand href
17166 target "http://svnbook.red-bean.com/"
17167
17168 \end_inset
17169
17170
17171 \end_layout
17172
17173 \end_inset
17174
17175 が良いでしょう。RCSの場合は、「rsintro」をお読みください(これはmanファイルです。
17176 \family typewriter
17177 man rcsintro
17178 \family default
17179 で読めます)。このファイルは、RCSの基本機能のすべてを説明しています。特に、RCSディレクトリに関するコメントと、マスターRCSファイル(
17180 \family typewriter
17181 ,v
17182 \family default
17183 で終わるファイルです)の概念に注意を払ってください。
17184 \end_layout
17185
17186 \begin_layout Standard
17187 LyXへの実装においては、GNU RCSまたはCVS/SVNパッケージの最新版を仮定しています。旧版への保証はありません。ログメッセージのほとんどは、現在のとこ
17188 ろ操作後には表示されません。確認したい場合には、メッセージペインで確かめてください。
17189 \end_layout
17190
17191 \begin_layout Standard
17192 自製の外部コマンドを導入したい場合には、LyX関数説明書のvcコマンドを確認してください。
17193 \end_layout
17194
17195 \begin_layout Subsection
17196 LyXにおけるRCSコマンド
17197 \end_layout
17198
17199 \begin_layout Standard
17200 以下の節ではLyXでサポートされているRCSコマンドを説明します。それらのコマンドは
17201 \family sans
17202 ファイル\SpecialChar \menuseparator
17203 バージョン管理
17204 \family default
17205 のサブメニューにあります。LyXは、RCS 5.7に対して試験されています。
17206 \end_layout
17207
17208 \begin_layout Subsubsection
17209
17210 \family sans
17211 登録
17212 \end_layout
17213
17214 \begin_layout Standard
17215 文書がバージョン管理の下にない場合には、これがメニューにあらわれる唯一の項目です。文書がバージョン管理下にあれば、項目
17216 \family sans
17217 登録
17218 \family default
17219 は不可視になります。
17220 \end_layout
17221
17222 \begin_layout Standard
17223 このコマンドは、文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合)。すると対話的に、文書の最初の説明を入力するように尋ねられます。すると文
17224 書は読み込み専用モードになるので、変更を加えるためには
17225 \family sans
17226 チェックアウトして編集
17227 \family default
17228 を実行する必要があります。バージョン管理下にある文書は、ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます。
17229 \end_layout
17230
17231 \begin_layout Standard
17232 実行されるRCSコマンドは:
17233 \family typewriter
17234 ci -q -u -i -t-"<初期説明文>" <ファイル名>
17235 \end_layout
17236
17237 \begin_layout Standard
17238 スイッチについて知りたい場合は、
17239 \family typewriter
17240 man ci
17241 \family default
17242 を読んでください。
17243 \end_layout
17244
17245 \begin_layout Subsubsection
17246
17247 \family sans
17248 変更をチェックインする
17249 \end_layout
17250
17251 \begin_layout Standard
17252 ファイルの編集が終わると、その変更をチェックインします。このとき、変更についての説明文を求められます。これは履歴ログに記録されます。バージョン番号は繰り上がり、
17253 変更がマスターRCSファイルに適用され、文書がアンロックされて読み込み専用モードになります。
17254 \end_layout
17255
17256 \begin_layout Standard
17257 RCSコマンド:
17258 \family typewriter
17259 ci -q -u -m"<説明文>" <ファイル名>
17260 \end_layout
17261
17262 \begin_layout Subsubsection
17263
17264 \family sans
17265 チェックアウトして編集
17266 \end_layout
17267
17268 \begin_layout Standard
17269 これは、文書をロックして編集できるようにします。そしてあなただけが文書を読み書きできるようにします。通常は、しばらくの間、文書を編集し、それが終わると変更をチェ
17270 ックインします。あなたがファイルをロックしたことを反映して、ステータスラインが変わります。
17271 \end_layout
17272
17273 \begin_layout Standard
17274 RCSコマンド:
17275 \family typewriter
17276 co -q -l <ファイル名>
17277 \end_layout
17278
17279 \begin_layout Subsubsection
17280
17281 \family sans
17282 リポジトリのバージョンに戻す
17283 \end_layout
17284
17285 \begin_layout Standard
17286 これは、最終チェックイン以降、文書に加えられた変更をすべて破棄します。変更が破棄される前に、警告が発せられます。
17287 \end_layout
17288
17289 \begin_layout Standard
17290 RCSコマンド:
17291 \family typewriter
17292 co -f -u<バージョン> <ファイル名>
17293 \end_layout
17294
17295 \begin_layout Subsubsection
17296
17297 \family sans
17298 最後のチェックインを取り消す
17299 \end_layout
17300
17301 \begin_layout Standard
17302 これは、最後のチェックインがあたかも為されなかったかのようにします。LyXに読み込まれた文書に変更は加えられませんが、マスターRCSファイルから最後のバージョン
17303 が削除されます。
17304 \end_layout
17305
17306 \begin_layout Standard
17307 RCSコマンド:
17308 \family typewriter
17309 rcs -o<バージョン> <ファイル名>
17310 \end_layout
17311
17312 \begin_layout Subsubsection
17313
17314 \family sans
17315 履歴を表示
17316 \end_layout
17317
17318 \begin_layout Standard
17319 RCS文書の完全な履歴を表示します。ブラウザ中に、
17320 \family typewriter
17321 rlog <ファイル名>
17322 \family default
17323 の出力が表示されます。詳細は
17324 \family typewriter
17325 man rlog
17326 \family default
17327 をご覧ください。
17328 \end_layout
17329
17330 \begin_layout Subsubsection
17331 改訂情報
17332 \end_layout
17333
17334 \begin_layout Standard
17335 LyXは、RCSバージョン番号情報(のみ)をサポートしています。詳細については、
17336 \begin_inset CommandInset ref
17337 LatexCommand ref
17338 reference "sub:VCS改訂情報"
17339
17340 \end_inset
17341
17342 を参照。
17343 \end_layout
17344
17345 \begin_layout Subsection
17346 LyXにおけるCVSコマンド
17347 \end_layout
17348
17349 \begin_layout Standard
17350 LyXは、現在CVSを一部サポートしています。そのコマンドは、
17351 \family sans
17352 ファイル\SpecialChar \menuseparator
17353 バージョン管理
17354 \family default
17355 サブメニューにあります。バージョン管理システムSVNの方が強力なので、可能ならばCVSではなく、SVNを使用してください。
17356 \end_layout
17357
17358 \begin_layout Subsubsection
17359 CVSの一般的な利用法
17360 \end_layout
17361
17362 \begin_layout Standard
17363 CVSを初めて使いたい場合には、外部ツールを使用して自分のレポジトリを作成し、作業コピーをチェックアウトする必要があります。クライアント=サーバーモデルを使用し
17364 ている場合には、最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません。
17365 \end_layout
17366
17367 \begin_layout Standard
17368 改訂管理下にある文書のレポジトリを他人も利用している場合に、同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します。標準的なCVSレポジトリは、ファイル
17369 ロッキング機構を有しません。これは驚くべきことかもしれませんが、コンフリクトは、文書の同じ箇所の特定の内容について、人々が意見を異にしている場合にのみ発生します
17370 。したがって、共著者同士がコンスタントにコミュニケーションを交わしていれば、このようなコンフリクトは滅多に発生しません。もしコミュニケーションがなければ、いずれ
17371 にしても根本的な問題があるわけです。それにもかかわらず、いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます。この場合、最初にチェックアウトした際に
17372 、全ファイルの作業コピーは読み込み専用にされ、ユーザーは、作業コピーを書き込み可能にする特別なコマンドを使用した後、編集を開始することになります。変更をチェック
17373 インすると、作業コピーは読み込み専用状態に戻ります。LyXで予備付きチェックアウトを利用したい場合には、
17374 \begin_inset Flex Code
17375 status collapsed
17376
17377 \begin_layout Plain Layout
17378 .cvsrc
17379 \end_layout
17380
17381 \end_inset
17382
17383 ファイルを編集して、
17384 \begin_inset Flex Code
17385 status collapsed
17386
17387 \begin_layout Plain Layout
17388 cvs -r
17389 \end_layout
17390
17391 \end_inset
17392
17393 という行を書き加える必要があります。この方法の利点は、文書のうち、書き込み可能コピーを誰が使用しているかを見ることができることです。ただし、一人のユーザーだけが
17394 コピーを書き込み可能にしているとは限りません。
17395 \end_layout
17396
17397 \begin_layout Standard
17398 LyXは、あなたが予備付きチェックアウトを使用しているか、予備なしチェックアウトを利用しているか、推測しようと試みます。使用中の作業コピーが読み込み専用になって
17399 いるか、あるいはそれが書き込み可能であって、CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には、予備付きチェックアウトを使用しているもの
17400 と仮定し、そうでない場合には予備なしチェックアウトを使用しているものと仮定します。予備付きチェックアウトが検出された場合には、作業コピーが読み込み専用の場合に書
17401 き込み可能にするためには、
17402 \begin_inset Flex MenuItem
17403 status collapsed
17404
17405 \begin_layout Plain Layout
17406 チェックアウト
17407 \end_layout
17408
17409 \end_inset
17410
17411 メニューを使用しなくてはなりません。その後、
17412 \begin_inset Flex MenuItem
17413 status collapsed
17414
17415 \begin_layout Plain Layout
17416 チェックイン
17417 \end_layout
17418
17419 \end_inset
17420
17421 メニューが利用可能になるので、自分が加えた変更をリポジトリに移した後、作業コピーを再び読み込み専用にする際には、これを使用します。
17422 \end_layout
17423
17424 \begin_layout Standard
17425 CVSの詳細な情報は、
17426 \begin_inset Flex URL
17427 status collapsed
17428
17429 \begin_layout Plain Layout
17430
17431 http://www.nongnu.org/cvs
17432 \end_layout
17433
17434 \end_inset
17435
17436
17437 \begin_inset Flex URL
17438 status collapsed
17439
17440 \begin_layout Plain Layout
17441
17442 http://ximbiot.com/cvs
17443 \end_layout
17444
17445 \end_inset
17446
17447 にあります。
17448 \end_layout
17449
17450 \begin_layout Standard
17451 以下に言及するサブコマンドとスイッチを理解するには、
17452 \family typewriter
17453 man cvs
17454 \family default
17455 をお読みください。
17456 \end_layout
17457
17458 \begin_layout Subsubsection
17459 登録
17460 \end_layout
17461
17462 \begin_layout Standard
17463 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
17464 \family sans
17465 登録
17466 \family default
17467 項目は表示されません。
17468 \end_layout
17469
17470 \begin_layout Standard
17471 本コマンドは、既に文書ディレクトリをCVS管理下に置いている場合に
17472 \series bold
17473 \emph on
17474 のみ
17475 \series default
17476 \emph default
17477 (すなわち
17478 \begin_inset Flex Code
17479 status collapsed
17480
17481 \begin_layout Plain Layout
17482 CVS/Entries
17483 \end_layout
17484
17485 \end_inset
17486
17487 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、外部ツールを使用して、アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
17488 を意味します(このステップを忘れてしまうと、LyXは文書をRCSに登録します)。
17489 \end_layout
17490
17491 \begin_layout Standard
17492 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだチェックインされたわけではないことに注意してください。
17493 \end_layout
17494
17495 \begin_layout Standard
17496 実行されるCVSコマンドは、
17497 \family typewriter
17498 cvs -q add -m"<入力した説明文>" "<ファイル名>"
17499 \family default
17500  です。
17501 \end_layout
17502
17503 \begin_layout Standard
17504 上記および他のすべてのCVSコマンドにおける
17505 \family typewriter
17506 "<ファイル名>"
17507 \family default
17508 は、「カレント作業ディレクトリをファイルの場所に移動し、パスコンポーネントを除いたファイル名を引数として使用する」という意味になります。
17509 \end_layout
17510
17511 \begin_layout Subsubsection
17512 変更のチェックイン
17513 \end_layout
17514
17515 \begin_layout Standard
17516 ファイルの編集を終えたら、変更をコミットします。このとき、文書に変更が加えられていれば、変更の説明文を入れるよう促されます。その後、変更がレポジトリに書き込まれ
17517 ます。文書を変更せず、予備付きチェックアウトが検出された場合、
17518 \begin_inset Flex MenuItem
17519 status collapsed
17520
17521 \begin_layout Plain Layout
17522 チェックアウト
17523 \end_layout
17524
17525 \end_inset
17526
17527 で作られた予備は取り消されます。
17528 \end_layout
17529
17530 \begin_layout Labeling
17531 \labelwidthstring 00.00.0000
17532 CVSコマンド: 
17533 \begin_inset space ~
17534 \end_inset
17535
17536
17537 \begin_inset Newline newline
17538 \end_inset
17539
17540
17541 \begin_inset Flex Code
17542 status collapsed
17543
17544 \begin_layout Plain Layout
17545 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
17546 \end_layout
17547
17548 \end_inset
17549
17550 あるいは
17551 \begin_inset Newline newline
17552 \end_inset
17553
17554
17555 \begin_inset Flex Code
17556 status collapsed
17557
17558 \begin_layout Plain Layout
17559 cvs -q unedit "<ファイル名>"
17560 \end_layout
17561
17562 \end_inset
17563
17564
17565 \end_layout
17566
17567 \begin_layout Subsubsection
17568 変更のチェックアウト
17569 \end_layout
17570
17571 \begin_layout Standard
17572 レポジトリを他人と共有している場合、他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります。
17573 \end_layout
17574
17575 \begin_layout Standard
17576 CVSコマンド:
17577 \family typewriter
17578 cvs -q update "<ファイル名>"
17579 \end_layout
17580
17581 \begin_layout Standard
17582 読み込み専用チェックアウトが検出された場合、作業コピーを書き込み可能にし予備を作成します。
17583 \end_layout
17584
17585 \begin_layout Standard
17586 CVSコマンド:
17587 \family typewriter
17588 cvs -q edit "<ファイル名>"
17589 \end_layout
17590
17591 \begin_layout Subsubsection
17592 レポジトリのバージョンに戻す
17593 \end_layout
17594
17595 \begin_layout Standard
17596 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVS更新コマンド
17597 が実行されます。
17598 \end_layout
17599
17600 \begin_layout Standard
17601 CVSコマンド:
17602 \family typewriter
17603 cvs -q update "<ファイル名>"
17604 \end_layout
17605
17606 \begin_layout Standard
17607 予備付きチェックアウトが検出され、作業コピーに変更がない場合、予備のみが取り消されます。
17608 \end_layout
17609
17610 \begin_layout Standard
17611 CVSコマンド:
17612 \family typewriter
17613 cvs -q unedit "<ファイル名>"
17614 \end_layout
17615
17616 \begin_layout Subsubsection
17617 ローカルディレクトリチェックアウトのレポジトリからの更新
17618 \end_layout
17619
17620 \begin_layout Standard
17621 子文書や図を含んだり、外部
17622 \begin_inset Flex Code
17623 status collapsed
17624
17625 \begin_layout Plain Layout
17626 .tex
17627 \end_layout
17628
17629 \end_inset
17630
17631 ファイルを取り込むなど、文書が複雑になるにつれ、バージョン管理の利用は複雑になります。LyXは、文書が存在するツリー全体の更新をサポートします。これは、CVSの
17632 使用法について詳しい知識のない人々や、レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に、特に便利です。ファイル構造は、すべての外部フ
17633 ァイルが、文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります。いずれにしても、複合文書を新しいディレクトリを建てて収容するのは、望ま
17634 しい習慣です。
17635 \end_layout
17636
17637 \begin_layout Standard
17638 コマンド
17639 \begin_inset Flex Code
17640 status collapsed
17641
17642 \begin_layout Plain Layout
17643 レポジトリを使ってローカル辞書を更新
17644 \end_layout
17645
17646 \end_inset
17647
17648 は、ディレクトリ全体を更新します。ローカルの変更が検出された場合には、更新を開始する前にユーザーに警告が発せられます。マージコンフリクトが発生した場合には、コン
17649 フリクトを起こしている部分の新旧バージョンが、両方とも最終文書に置かれますので、マージの結果を見直し、修正する必要があります。コンフリクトは、
17650 \begin_inset Flex Code
17651 status collapsed
17652
17653 \begin_layout Plain Layout
17654 <<<<<<<
17655 \end_layout
17656
17657 \end_inset
17658
17659
17660 \begin_inset Flex Code
17661 status collapsed
17662
17663 \begin_layout Plain Layout
17664 >>>>>>>
17665 \end_layout
17666
17667 \end_inset
17668
17669 の対に囲まれ、
17670 \begin_inset Flex Code
17671 status collapsed
17672
17673 \begin_layout Plain Layout
17674 =======
17675 \end_layout
17676
17677 \end_inset
17678
17679 で区切られて表示されます。最初の部分は、文書名に続いて、更新操作前のバージョンが置かれています。第2の部分は、
17680 \begin_inset Flex Code
17681 status collapsed
17682
17683 \begin_layout Plain Layout
17684 >
17685 \end_layout
17686
17687 \end_inset
17688
17689 記号列の後にバージョン番号に続いて、レポジトリ版が置かれます。
17690 \end_layout
17691
17692 \begin_layout Labeling
17693 \labelwidthstring 00.00.0000
17694 CVSコマンド: 
17695 \begin_inset space ~
17696 \end_inset
17697
17698
17699 \begin_inset Newline newline
17700 \end_inset
17701
17702
17703 \begin_inset Flex Code
17704 status collapsed
17705
17706 \begin_layout Plain Layout
17707 cd $path; cvs diff "."
17708 \end_layout
17709
17710 \end_inset
17711
17712 (変更が検出された場合には知らせる)
17713 \begin_inset Newline newline
17714 \end_inset
17715
17716
17717 \begin_inset Flex Code
17718 status collapsed
17719
17720 \begin_layout Plain Layout
17721 cd $path; cvs -q update "."
17722 \end_layout
17723
17724 \end_inset
17725
17726
17727 \end_layout
17728
17729 \begin_layout Standard
17730 ここで
17731 \begin_inset Flex Code
17732 status collapsed
17733
17734 \begin_layout Plain Layout
17735 $path
17736 \end_layout
17737
17738 \end_inset
17739
17740 は文書パスを表します。
17741 \end_layout
17742
17743 \begin_layout Subsubsection
17744 履歴を表示
17745 \end_layout
17746
17747 \begin_layout Standard
17748 これは、CVS文書の全履歴を表示します。
17749 \begin_inset Flex Code
17750 status collapsed
17751
17752 \begin_layout Plain Layout
17753 cvs log 
17754 \begin_inset Quotes eld
17755 \end_inset
17756
17757 <ファイル名>
17758 \begin_inset Quotes erd
17759 \end_inset
17760
17761
17762 \end_layout
17763
17764 \end_inset
17765
17766 の出力がブラウザに表示されます。
17767 \end_layout
17768
17769 \begin_layout Subsection
17770 LyXにおけるSVNコマンド
17771 \end_layout
17772
17773 \begin_layout Standard
17774 LyXは、現在SVNを一部サポートしています。そのコマンドは、
17775 \begin_inset Flex MenuItem
17776 status collapsed
17777
17778 \begin_layout Plain Layout
17779 ファイル\SpecialChar \menuseparator
17780 バージョン管理
17781 \end_layout
17782
17783 \end_inset
17784
17785 メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。LyXは、SVN
17786  1.5および1.6に対して試験されています
17787 \begin_inset Foot
17788 status collapsed
17789
17790 \begin_layout Plain Layout
17791 ほとんどのコマンドは、1.4でも動作します。第
17792 \begin_inset CommandInset ref
17793 LatexCommand ref
17794 reference "sub:レポジトリからSVN同期"
17795
17796 \end_inset
17797
17798 節をご覧ください。
17799 \end_layout
17800
17801 \end_inset
17802
17803
17804 \end_layout
17805
17806 \begin_layout Subsubsection
17807 登録
17808 \end_layout
17809
17810 \begin_layout Standard
17811 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
17812 \family sans
17813 登録
17814 \family default
17815 項目は表示されません。
17816 \end_layout
17817
17818 \begin_layout Standard
17819 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
17820 \emph on
17821 のみ
17822 \emph default
17823 (すなわち
17824 \begin_inset Flex Code
17825 status collapsed
17826
17827 \begin_layout Plain Layout
17828 .svn/entries
17829 \end_layout
17830
17831 \end_inset
17832
17833 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
17834 \end_layout
17835
17836 \begin_layout Standard
17837 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
17838 \end_layout
17839
17840 \begin_layout Standard
17841 実行されるSVNコマンドは、
17842 \begin_inset Flex Code
17843 status collapsed
17844
17845 \begin_layout Plain Layout
17846 svn add -q 
17847 \begin_inset Quotes eld
17848 \end_inset
17849
17850 <ファイル名>
17851 \begin_inset Quotes erd
17852 \end_inset
17853
17854
17855 \end_layout
17856
17857 \end_inset
17858
17859 です。
17860 \end_layout
17861
17862 \begin_layout Standard
17863 スイッチの説明は
17864 \begin_inset Flex Code
17865 status collapsed
17866
17867 \begin_layout Plain Layout
17868 man svn
17869 \end_layout
17870
17871 \end_inset
17872
17873 をお読みください。
17874 \end_layout
17875
17876 \begin_layout Subsubsection
17877 変更をチェックイン
17878 \end_layout
17879
17880 \begin_layout Standard
17881 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
17882 \end_layout
17883
17884 \begin_layout Standard
17885 SVNコマンド
17886 \begin_inset Foot
17887 status collapsed
17888
17889 \begin_layout Plain Layout
17890 ロックが有効になっていない場合です。第
17891 \begin_inset CommandInset ref
17892 LatexCommand ref
17893 reference "sub:SVNファイルロック"
17894
17895 \end_inset
17896
17897 節をご覧ください。
17898 \end_layout
17899
17900 \end_inset
17901
17902
17903 \begin_inset Flex Code
17904 status collapsed
17905
17906 \begin_layout Plain Layout
17907 svn commit -q -m
17908 \begin_inset Quotes erd
17909 \end_inset
17910
17911 <入力した説明文>
17912 \begin_inset Quotes erd
17913 \end_inset
17914
17915  
17916 \begin_inset Quotes eld
17917 \end_inset
17918
17919 <ファイル名>
17920 \begin_inset Quotes erd
17921 \end_inset
17922
17923
17924 \end_layout
17925
17926 \end_inset
17927
17928
17929 \end_layout
17930
17931 \begin_layout Subsubsection
17932 チェックアウトして編集
17933 \end_layout
17934
17935 \begin_layout Standard
17936 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
17937 しておくようにしてください。
17938 \end_layout
17939
17940 \begin_layout Standard
17941 SVNコマンド
17942 \begin_inset Foot
17943 status collapsed
17944
17945 \begin_layout Plain Layout
17946 同上。
17947 \end_layout
17948
17949 \end_inset
17950
17951
17952 \begin_inset Flex Code
17953 status collapsed
17954
17955 \begin_layout Plain Layout
17956 svn update --non-interactive 
17957 \begin_inset Quotes eld
17958 \end_inset
17959
17960 <ファイル名>
17961 \begin_inset Quotes erd
17962 \end_inset
17963
17964
17965 \end_layout
17966
17967 \end_inset
17968
17969
17970 \end_layout
17971
17972 \begin_layout Subsubsection
17973 保存されたバージョンに戻す
17974 \end_layout
17975
17976 \begin_layout Standard
17977 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
17978 \end_layout
17979
17980 \begin_layout Standard
17981 SVNコマンド:
17982 \begin_inset Flex Code
17983 status collapsed
17984
17985 \begin_layout Plain Layout
17986 svn revert -q 
17987 \begin_inset Quotes eld
17988 \end_inset
17989
17990 <ファイル名>
17991 \begin_inset Quotes erd
17992 \end_inset
17993
17994
17995 \end_layout
17996
17997 \end_inset
17998
17999
18000 \end_layout
18001
18002 \begin_layout Subsubsection
18003 \begin_inset CommandInset label
18004 LatexCommand label
18005 name "sub:レポジトリからSVN同期"
18006
18007 \end_inset
18008
18009 レポジトリを使ったローカルディレクトリの同期
18010 \begin_inset Foot
18011 status collapsed
18012
18013 \begin_layout Plain Layout
18014 このコマンドは、subversion 
18015 \begin_inset Formula $\geqq1.5$
18016 \end_inset
18017
18018 でのみ動作することに注意してください。
18019 \end_layout
18020
18021 \end_inset
18022
18023
18024 \end_layout
18025
18026 \begin_layout Standard
18027 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
18028 \begin_inset Flex Code
18029 status collapsed
18030
18031 \begin_layout Plain Layout
18032 .tex
18033 \end_layout
18034
18035 \end_inset
18036
18037 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこでLyXは、文書のおいてあるツリー全体の更新をサポートします
18038 \begin_inset Foot
18039 status collapsed
18040
18041 \begin_layout Plain Layout
18042 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
18043 \end_layout
18044
18045 \end_inset
18046
18047 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
18048
18049 \end_layout
18050
18051 \begin_layout Standard
18052 \begin_inset Flex Code
18053 status collapsed
18054
18055 \begin_layout Plain Layout
18056 ローカル辞書をレポジトリを使って更新
18057 \end_layout
18058
18059 \end_inset
18060
18061 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
18062 場合には、更新が開始される前にユーザに警告が与えられます。
18063 \end_layout
18064
18065 \begin_layout Labeling
18066 \labelwidthstring 00.00.0000
18067 SVNコマンド: 
18068 \begin_inset space ~
18069 \end_inset
18070
18071
18072 \begin_inset Newline newline
18073 \end_inset
18074
18075
18076 \begin_inset Flex Code
18077 status collapsed
18078
18079 \begin_layout Plain Layout
18080 svn diff $path(変更が発見された場合には通知します)
18081 \begin_inset Newline newline
18082 \end_inset
18083
18084 svn update --accept mine-full $path
18085 \end_layout
18086
18087 \end_inset
18088
18089
18090 \end_layout
18091
18092 \begin_layout Standard
18093 ここで
18094 \begin_inset Flex Code
18095 status collapsed
18096
18097 \begin_layout Plain Layout
18098 $path
18099 \end_layout
18100
18101 \end_inset
18102
18103 は文書のパスを示します。
18104 \end_layout
18105
18106 \begin_layout Subsubsection
18107 履歴を表示
18108 \end_layout
18109
18110 \begin_layout Standard
18111 これは、SVN文書の全履歴を表示します。
18112 \begin_inset Flex Code
18113 status collapsed
18114
18115 \begin_layout Plain Layout
18116 svn log 
18117 \begin_inset Quotes eld
18118 \end_inset
18119
18120 <ファイル名>
18121 \begin_inset Quotes erd
18122 \end_inset
18123
18124
18125 \end_layout
18126
18127 \end_inset
18128
18129 の出力がブラウザに表示されます。
18130 \end_layout
18131
18132 \begin_layout Subsubsection
18133 ファイルロック
18134 \begin_inset CommandInset label
18135 LatexCommand label
18136 name "sub:SVNファイルロック"
18137
18138 \end_inset
18139
18140
18141 \end_layout
18142
18143 \begin_layout Standard
18144 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
18145 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
18146 するための、何らかのロック機構を導入することが考えられます。
18147 \end_layout
18148
18149 \begin_layout Standard
18150 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
18151 \begin_inset Flex Code
18152 status collapsed
18153
18154 \begin_layout Plain Layout
18155 svn:needs-lock
18156 \end_layout
18157
18158 \end_inset
18159
18160 svnファイル特性に依拠した書き込み権限の自動設定(第
18161 \begin_inset CommandInset ref
18162 LatexCommand ref
18163 reference "sub:自動ロック特性"
18164
18165 \end_inset
18166
18167 節を参照)です
18168 \begin_inset Foot
18169 status open
18170
18171 \begin_layout Plain Layout
18172 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
18173 \end_layout
18174
18175 \end_inset
18176
18177 。ある文書について、この特性が検出されたときには、LyXは自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組
18178 みに切り替わります。これは特に、LyXでのファイルの使われ方に以下の二つのモードがあることを意味します。
18179 \end_layout
18180
18181 \begin_layout Itemize
18182 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
18183 \emph on
18184 チェックアウト
18185 \emph default
18186 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
18187 \end_layout
18188
18189 \begin_layout Itemize
18190 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
18191 \emph on
18192 チェックイン
18193 \emph default
18194 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
18195 \begin_inset Foot
18196 status collapsed
18197
18198 \begin_layout Plain Layout
18199 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
18200 \end_layout
18201
18202 \end_inset
18203
18204 、書き込みロックの解放のみが行われます。
18205 \end_layout
18206
18207 \begin_layout Standard
18208 SVNコマンド:
18209 \end_layout
18210
18211 \begin_layout Labeling
18212 \labelwidthstring 00.00.0000
18213 チェックイン: 
18214 \begin_inset Flex Code
18215 status collapsed
18216
18217 \begin_layout Plain Layout
18218 svn commit -q -m
18219 \begin_inset Quotes erd
18220 \end_inset
18221
18222 <説明>
18223 \begin_inset Quotes erd
18224 \end_inset
18225
18226  
18227 \begin_inset Quotes eld
18228 \end_inset
18229
18230 <ファイル名>
18231 \begin_inset Quotes erd
18232 \end_inset
18233
18234
18235 \end_layout
18236
18237 \end_inset
18238
18239
18240 \begin_inset Newline newline
18241 \end_inset
18242
18243
18244 \begin_inset Flex Code
18245 status collapsed
18246
18247 \begin_layout Plain Layout
18248 svn unlock 
18249 \begin_inset Quotes eld
18250 \end_inset
18251
18252 <ファイル名>
18253 \begin_inset Quotes erd
18254 \end_inset
18255
18256
18257 \end_layout
18258
18259 \end_inset
18260
18261
18262 \end_layout
18263
18264 \begin_layout Labeling
18265 \labelwidthstring 00.00.0000
18266 チェックアウト: 
18267 \begin_inset Flex Code
18268 status collapsed
18269
18270 \begin_layout Plain Layout
18271 svn update 
18272 \begin_inset Quotes eld
18273 \end_inset
18274
18275 <ファイル名>
18276 \begin_inset Quotes erd
18277 \end_inset
18278
18279
18280 \end_layout
18281
18282 \end_inset
18283
18284
18285 \begin_inset Newline newline
18286 \end_inset
18287
18288
18289 \begin_inset Flex Code
18290 status collapsed
18291
18292 \begin_layout Plain Layout
18293 svn unlock 
18294 \begin_inset Quotes eld
18295 \end_inset
18296
18297 <ファイル名>
18298 \begin_inset Quotes erd
18299 \end_inset
18300
18301
18302 \end_layout
18303
18304 \end_inset
18305
18306
18307 \end_layout
18308
18309 \begin_layout Subsubsection
18310 自動ロック特性
18311 \begin_inset CommandInset label
18312 LatexCommand label
18313 name "sub:自動ロック特性"
18314
18315 \end_inset
18316
18317
18318 \end_layout
18319
18320 \begin_layout Standard
18321 上述したような
18322 \begin_inset Flex Code
18323 status collapsed
18324
18325 \begin_layout Plain Layout
18326 .lyx
18327 \end_layout
18328
18329 \end_inset
18330
18331 ファイルに対する書き込み権限の自動設定は、
18332 \begin_inset Flex MenuItem
18333 status collapsed
18334
18335 \begin_layout Plain Layout
18336 ファイル\SpecialChar \menuseparator
18337 バージョン管理\SpecialChar \menuseparator
18338 ロック特性を使用
18339 \end_layout
18340
18341 \end_inset
18342
18343 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
18344 \end_layout
18345
18346 \begin_layout Standard
18347 SVNコマンド:
18348 \end_layout
18349
18350 \begin_layout Labeling
18351 \labelwidthstring 00.00.0000
18352 チェックイン: 
18353 \begin_inset Flex Code
18354 status collapsed
18355
18356 \begin_layout Plain Layout
18357 svn propset svn:needs-lock ON 
18358 \begin_inset Quotes eld
18359 \end_inset
18360
18361 <ファイル名>
18362 \begin_inset Quotes erd
18363 \end_inset
18364
18365
18366 \end_layout
18367
18368 \end_inset
18369
18370
18371 \end_layout
18372
18373 \begin_layout Labeling
18374 \labelwidthstring 00.00.0000
18375 チェックアウト: 
18376 \begin_inset Flex Code
18377 status collapsed
18378
18379 \begin_layout Plain Layout
18380 svn propdel svn:needs-lock 
18381 \begin_inset Quotes eld
18382 \end_inset
18383
18384 <ファイル名>
18385 \begin_inset Quotes erd
18386 \end_inset
18387
18388
18389 \end_layout
18390
18391 \end_inset
18392
18393
18394 \end_layout
18395
18396 \begin_layout Subsubsection
18397 \begin_inset CommandInset label
18398 LatexCommand label
18399 name "sub:VCS改訂情報"
18400
18401 \end_inset
18402
18403 文書の改訂情報
18404 \end_layout
18405
18406 \begin_layout Standard
18407 文書中で改訂情報を有効化するにはいくつかの方法があります。
18408 \end_layout
18409
18410 \begin_layout Itemize
18411 LyXによる直接サポート
18412 \end_layout
18413
18414 \begin_deeper
18415 \begin_layout Itemize
18416 ツリー改訂情報(
18417 \begin_inset Flex Code
18418 status collapsed
18419
18420 \begin_layout Plain Layout
18421 vcs-tree-revision
18422 \end_layout
18423
18424 \end_inset
18425
18426 )。
18427 \begin_inset Flex Code
18428 status collapsed
18429
18430 \begin_layout Plain Layout
18431 svnversion
18432 \end_layout
18433
18434 \end_inset
18435
18436 コマンドの出力を返します。下記の表が、結果の読み方のヒントを与えるでしょう。
18437 \end_layout
18438
18439 \begin_layout Standard
18440 \align center
18441 \begin_inset Tabular
18442 <lyxtabular version="3" rows="6" columns="2">
18443 <features tabularvalignment="middle">
18444 <column alignment="center" valignment="top" width="0">
18445 <column alignment="center" valignment="top" width="0">
18446 <row>
18447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18448 \begin_inset Text
18449
18450 \begin_layout Plain Layout
18451 出力
18452 \end_layout
18453
18454 \end_inset
18455 </cell>
18456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18457 \begin_inset Text
18458
18459 \begin_layout Plain Layout
18460 意味
18461 \end_layout
18462
18463 \end_inset
18464 </cell>
18465 </row>
18466 <row>
18467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18468 \begin_inset Text
18469
18470 \begin_layout Plain Layout
18471 4123:4168
18472 \end_layout
18473
18474 \end_inset
18475 </cell>
18476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18477 \begin_inset Text
18478
18479 \begin_layout Plain Layout
18480 改訂版の混合した作業コピー
18481 \end_layout
18482
18483 \end_inset
18484 </cell>
18485 </row>
18486 <row>
18487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18488 \begin_inset Text
18489
18490 \begin_layout Plain Layout
18491 4168M
18492 \end_layout
18493
18494 \end_inset
18495 </cell>
18496 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18497 \begin_inset Text
18498
18499 \begin_layout Plain Layout
18500 修正された作業コピー
18501 \end_layout
18502
18503 \end_inset
18504 </cell>
18505 </row>
18506 <row>
18507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18508 \begin_inset Text
18509
18510 \begin_layout Plain Layout
18511 4123S
18512 \end_layout
18513
18514 \end_inset
18515 </cell>
18516 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18517 \begin_inset Text
18518
18519 \begin_layout Plain Layout
18520 スイッチされた作業コピー
18521 \end_layout
18522
18523 \end_inset
18524 </cell>
18525 </row>
18526 <row>
18527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18528 \begin_inset Text
18529
18530 \begin_layout Plain Layout
18531 4123P
18532 \end_layout
18533
18534 \end_inset
18535 </cell>
18536 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18537 \begin_inset Text
18538
18539 \begin_layout Plain Layout
18540 チェックアウト頻度が低かったことによる不完全な作業コピー
18541 \end_layout
18542
18543 \end_inset
18544 </cell>
18545 </row>
18546 <row>
18547 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18548 \begin_inset Text
18549
18550 \begin_layout Plain Layout
18551 4123:4168MS
18552 \end_layout
18553
18554 \end_inset
18555 </cell>
18556 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18557 \begin_inset Text
18558
18559 \begin_layout Plain Layout
18560 改訂版が混合し、修正され、スイッチされた作業コピー
18561 \end_layout
18562
18563 \end_inset
18564 </cell>
18565 </row>
18566 </lyxtabular>
18567
18568 \end_inset
18569
18570
18571 \end_layout
18572
18573 \begin_layout Itemize
18574 ファイル改訂情報。
18575 \begin_inset Flex Code
18576 status collapsed
18577
18578 \begin_layout Plain Layout
18579 svn
18580 \begin_inset space ~
18581 \end_inset
18582
18583 info
18584 \begin_inset space ~
18585 \end_inset
18586
18587 --xml
18588 \begin_inset space ~
18589 \end_inset
18590
18591 file.lyx
18592 \end_layout
18593
18594 \end_inset
18595
18596 の出力を解析したものが返されます。サポートされるフラグは
18597 \end_layout
18598
18599 \begin_deeper
18600 \begin_layout Itemize
18601 最終コミットのバージョン番号(
18602 \begin_inset Flex Code
18603 status collapsed
18604
18605 \begin_layout Plain Layout
18606 vcs-revision
18607 \end_layout
18608
18609 \end_inset
18610
18611
18612 \end_layout
18613
18614 \begin_layout Itemize
18615 最終コミットの著者(
18616 \begin_inset Flex Code
18617 status collapsed
18618
18619 \begin_layout Plain Layout
18620 vcs-author
18621 \end_layout
18622
18623 \end_inset
18624
18625
18626 \end_layout
18627
18628 \begin_layout Itemize
18629 最終コミットの日付(
18630 \begin_inset Flex Code
18631 status collapsed
18632
18633 \begin_layout Plain Layout
18634 vcs-date
18635 \end_layout
18636
18637 \end_inset
18638
18639
18640 \end_layout
18641
18642 \begin_layout Itemize
18643 最終コミットの時間(
18644 \begin_inset Flex Code
18645 status collapsed
18646
18647 \begin_layout Plain Layout
18648 vcs-time
18649 \end_layout
18650
18651 \end_inset
18652
18653
18654 \end_layout
18655
18656 \end_deeper
18657 \begin_layout Standard
18658 これらの情報は、情報差込枠で得ることができます(例:
18659 \begin_inset Flex Code
18660 status collapsed
18661
18662 \begin_layout Plain Layout
18663 info-insert buffer vcs-date
18664 \end_layout
18665
18666 \end_inset
18667
18668 )。これらの情報は、ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
18669 \begin_inset Flex Code
18670 status collapsed
18671
18672 \begin_layout Plain Layout
18673 .svn
18674 \end_layout
18675
18676 \end_inset
18677
18678 ディレクトリがあるときのみ)利用可能です。
18679 \end_layout
18680
18681 \end_deeper
18682 \begin_layout Itemize
18683 もう一つの---ハッカー的な---方法は、SVNキーワードを使用する方法です
18684 \begin_inset Foot
18685 status collapsed
18686
18687 \begin_layout Plain Layout
18688 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
18689 \end_layout
18690
18691 \end_inset
18692
18693 。簡単に言えば、ファイルキーワード特性を設定して(例:
18694 \family sans
18695 svn propset svn:keywords 'Rev' file.lyx
18696 \family default
18697 )、文書中にキーワードTeXコード
18698 \begin_inset Foot
18699 status collapsed
18700
18701 \begin_layout Plain Layout
18702 これは、LyXがキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
18703 \end_layout
18704
18705 \end_inset
18706
18707 タグ(例:
18708 \begin_inset ERT
18709 status open
18710
18711 \begin_layout Plain Layout
18712
18713 $Rev$
18714 \end_layout
18715
18716 \end_inset
18717
18718 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
18719 \begin_inset ERT
18720 status open
18721
18722 \begin_layout Plain Layout
18723
18724 $Rev: 59 $
18725 \end_layout
18726
18727 \end_inset
18728
18729 )。このアプローチにはいくつか問題があります。第一に、TeXの世界では「$」文字は数式を表すのに使われるので、LyX中の
18730 \begin_inset Formula $Rev$
18731 \end_inset
18732
18733 という数式表現が、すべて
18734 \begin_inset Formula $Rev:59$
18735 \end_inset
18736
18737 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
18738 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
18739 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、LyXがこれを直接サポートすることは、難しそうです。
18740 \end_layout
18741
18742 \begin_layout Subsection
18743 SVNとWindows環境
18744 \end_layout
18745
18746 \begin_layout Quote
18747 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。---P.
18748  A.
18749  ルービン
18750 \end_layout
18751
18752 \begin_layout Subsubsection
18753 準備
18754 \end_layout
18755
18756 \begin_layout Standard
18757 LyXを導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クラ
18758 イアントプログラムのWindows用インストーラは
18759 \begin_inset CommandInset href
18760 LatexCommand href
18761 name "CollabNet"
18762 target "http://www.collab.net/nonav/downloads/subversion/"
18763
18764 \end_inset
18765
18766 にあります。ユーザは
18767 \begin_inset CommandInset href
18768 LatexCommand href
18769 name "TortoiseSVN"
18770 target "http://tortoisesvn.tigris.org/"
18771
18772 \end_inset
18773
18774 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。LyX外部で
18775 行う操作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、LyX自身が使用するクライアントプログラムの代わりとは成
18776 りませんので、注意してください。
18777 \end_layout
18778
18779 \begin_layout Subsubsection
18780 文書をSubversion管理下に置くには
18781 \end_layout
18782
18783 \begin_layout Standard
18784 LyX文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロ
18785 ジェクトに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下
18786 にない場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、LyXの外
18787 部で行います。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、
18788 DOSプロンプトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。
18789 レポジトリは既に存在し、新規プロジェクトを
18790 \begin_inset Flex Code
18791 status collapsed
18792
18793 \begin_layout Plain Layout
18794 C:
18795 \backslash
18796 new project
18797 \end_layout
18798
18799 \end_inset
18800
18801 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
18802 \begin_inset Flex Code
18803 status collapsed
18804
18805 \begin_layout Plain Layout
18806 svn --help
18807 \end_layout
18808
18809 \end_inset
18810
18811 を実行してください。
18812 \end_layout
18813
18814 \begin_layout Enumerate
18815 Windows Explorerで
18816 \begin_inset Flex Code
18817 status collapsed
18818
18819 \begin_layout Plain Layout
18820 C:
18821 \backslash
18822 new project
18823 \end_layout
18824
18825 \end_inset
18826
18827 を見つけ出して右クリックし、
18828 \begin_inset Flex MenuItem
18829 status collapsed
18830
18831 \begin_layout Plain Layout
18832 TortoiseSVN\SpecialChar \menuseparator
18833 Repo-browser
18834 \end_layout
18835
18836 \end_inset
18837
18838 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
18839 \end_layout
18840
18841 \begin_layout Enumerate
18842 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
18843 \begin_inset Flex MenuItem
18844 status collapsed
18845
18846 \begin_layout Plain Layout
18847 Create folder\SpecialChar \ldots{}
18848
18849 \end_layout
18850
18851 \end_inset
18852
18853 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
18854 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
18855 \end_layout
18856
18857 \begin_layout Enumerate
18858 再度
18859 \begin_inset Flex Code
18860 status collapsed
18861
18862 \begin_layout Plain Layout
18863 C:
18864 \backslash
18865 new project
18866 \end_layout
18867
18868 \end_inset
18869
18870 を右クリックし、今度は
18871 \begin_inset Flex MenuItem
18872 status collapsed
18873
18874 \begin_layout Plain Layout
18875 SVN Checkout\SpecialChar \ldots{}
18876
18877 \end_layout
18878
18879 \end_inset
18880
18881 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
18882 \begin_inset Flex Code
18883 status collapsed
18884
18885 \begin_layout Plain Layout
18886 C:
18887 \backslash
18888 new project
18889 \end_layout
18890
18891 \end_inset
18892
18893 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
18894 \begin_inset Flex Code
18895 status collapsed
18896
18897 \begin_layout Plain Layout
18898 C:
18899 \backslash
18900 new project
18901 \end_layout
18902
18903 \end_inset
18904
18905 の下に
18906 \begin_inset Flex Code
18907 status collapsed
18908
18909 \begin_layout Plain Layout
18910 .svn
18911 \end_layout
18912
18913 \end_inset
18914
18915 ディレクトリが作成されます。
18916 \end_layout
18917
18918 \begin_layout Enumerate
18919 LyXで文書を新規作成するか開くかして、
18920 \begin_inset Flex MenuItem
18921 status collapsed
18922
18923 \begin_layout Plain Layout
18924 ファイル\SpecialChar \menuseparator
18925 バージョン管理\SpecialChar \menuseparator
18926 登録
18927 \end_layout
18928
18929 \end_inset
18930
18931 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
18932 \end_layout
18933
18934 \begin_layout Standard
18935 爾後、
18936 \begin_inset Flex MenuItem
18937 status collapsed
18938
18939 \begin_layout Plain Layout
18940 ファイル\SpecialChar \menuseparator
18941 バージョン管理
18942 \end_layout
18943
18944 \end_inset
18945
18946 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
18947 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
18948 \end_layout
18949
18950 \begin_layout Subsubsection
18951 Windows下でSVNと共にSSHトンネルを使うには
18952 \end_layout
18953
18954 \begin_layout Standard
18955 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
18956 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
18957 ることを覚悟しておいてください。
18958 \end_layout
18959
18960 \begin_layout Enumerate
18961 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
18962 \begin_inset Flex Code
18963 status collapsed
18964
18965 \begin_layout Plain Layout
18966 svn --version
18967 \end_layout
18968
18969 \end_inset
18970
18971 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
18972 \end_layout
18973
18974 \begin_layout Enumerate
18975 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
18976 \begin_inset Foot
18977 status open
18978
18979 \begin_layout Plain Layout
18980 \begin_inset Flex URL
18981 status collapsed
18982
18983 \begin_layout Plain Layout
18984
18985 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
18986 \end_layout
18987
18988 \end_inset
18989
18990
18991 \end_layout
18992
18993 \end_inset
18994
18995 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
18996 護などを加えないキーのみを使用することとします。
18997 \end_layout
18998
18999 \begin_deeper
19000 \begin_layout Enumerate
19001 \begin_inset Flex Code
19002 status collapsed
19003
19004 \begin_layout Plain Layout
19005 puttygen
19006 \end_layout
19007
19008 \end_inset
19009
19010 を使ってキーを生成します。.ppkプライベートキーファイルを保存し、パブリックキーファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブ
19011 リックキーの書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized
19012 _keys file:」編集フィールドから、直接サーバの
19013 \begin_inset Flex Code
19014 status collapsed
19015
19016 \begin_layout Plain Layout
19017 ~/.ssh/authorized_keys
19018 \end_layout
19019
19020 \end_inset
19021
19022 または
19023 \begin_inset Flex Code
19024 status collapsed
19025
19026 \begin_layout Plain Layout
19027 authorized_keys2
19028 \end_layout
19029
19030 \end_inset
19031
19032 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
19033 \end_layout
19034
19035 \begin_layout Enumerate
19036 Puttyのplinkを入手してください。SVNのconfigファイル
19037 \begin_inset Foot
19038 status collapsed
19039
19040 \begin_layout Plain Layout
19041 正確なパスはWindowsのバージョンに依りますが、通常は
19042 \begin_inset Flex Code
19043 status collapsed
19044
19045 \begin_layout Plain Layout
19046 c:
19047 \backslash
19048 Documents and Settings
19049 \backslash
19050 user
19051 \backslash
19052 Application Data
19053 \backslash
19054 Subversion
19055 \backslash
19056 config
19057 \end_layout
19058
19059 \end_inset
19060
19061
19062 \begin_inset Flex Code
19063 status collapsed
19064
19065 \begin_layout Plain Layout
19066 AppData
19067 \backslash
19068 Roaming
19069 \backslash
19070 Subversion
19071 \end_layout
19072
19073 \end_inset
19074
19075 辺りにあります。
19076 \end_layout
19077
19078 \end_inset
19079
19080 中の
19081 \begin_inset Flex Code
19082 status collapsed
19083
19084 \begin_layout Plain Layout
19085 [tunnels]
19086 \end_layout
19087
19088 \end_inset
19089
19090 セクションにsshコマンドを設定してください。例:
19091 \begin_inset Flex Code
19092 status collapsed
19093
19094 \begin_layout Plain Layout
19095 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
19096 \end_layout
19097
19098 \end_inset
19099
19100
19101 \begin_inset Foot
19102 status collapsed
19103
19104 \begin_layout Plain Layout
19105 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
19106 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
19107 \end_layout
19108
19109 \end_inset
19110
19111
19112 \end_layout
19113
19114 \end_deeper
19115 \begin_layout Enumerate
19116 SVNアーカイブをチェックアウトしてください。例:
19117 \begin_inset Flex Code
19118 status collapsed
19119
19120 \begin_layout Plain Layout
19121 svn co svn+ssh://user@server/repository_path
19122 \end_layout
19123
19124 \end_inset
19125
19126
19127 \end_layout
19128
19129 \begin_layout Subsubsection
19130 行末変換
19131 \end_layout
19132
19133 \begin_layout Standard
19134 共著者同士がLinuxとWindowsを混在させているとき、LyXは.lyxファイル中で異なった行末記号を使用することになります。これは、LyXの機能に関する限り
19135 問題になりませんが、コミット差分は巨大になり、マージではコンフリクトを引き起こしがちです。幸いにして、SVNは、.lyxファイルを
19136 \begin_inset Flex Code
19137 status collapsed
19138
19139 \begin_layout Plain Layout
19140 native
19141 \end_layout
19142
19143 \end_inset
19144
19145 モードに切り替える際
19146 \begin_inset Foot
19147 status collapsed
19148
19149 \begin_layout Plain Layout
19150 手短には
19151 \begin_inset Flex Code
19152 status collapsed
19153
19154 \begin_layout Plain Layout
19155 svn propset svn:eol-style native FILE_NAME
19156 \end_layout
19157
19158 \end_inset
19159
19160
19161 \end_layout
19162
19163 \end_inset
19164
19165 、CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
19166 \begin_inset Foot
19167 status collapsed
19168
19169 \begin_layout Plain Layout
19170 \begin_inset Flex URL
19171 status collapsed
19172
19173 \begin_layout Plain Layout
19174
19175 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
19176 \end_layout
19177
19178 \end_inset
19179
19180
19181 \end_layout
19182
19183 \end_inset
19184
19185
19186 \end_layout
19187
19188 \begin_layout Subsection
19189 さらなる調整
19190 \end_layout
19191
19192 \begin_layout Standard
19193 vcコマンド機構が最近になって付け加えられたおかげで、LyXのパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
19194 \end_layout
19195
19196 \begin_layout Standard
19197 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
19198 \end_layout
19199
19200 \begin_layout Description
19201 コミット: 
19202 \begin_inset Flex Code
19203 status collapsed
19204
19205 \begin_layout Plain Layout
19206 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
19207 \end_layout
19208
19209 \end_inset
19210
19211
19212 \end_layout
19213
19214 \begin_layout Description
19215 元に戻す: 
19216 \begin_inset Flex Code
19217 status collapsed
19218
19219 \begin_layout Plain Layout
19220 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
19221 \end_layout
19222
19223 \end_inset
19224
19225
19226 \end_layout
19227
19228 \begin_layout Subsection
19229 バージョン管理と文書比較
19230 \end_layout
19231
19232 \begin_layout Standard
19233 バージョン管理は、通常
19234 \begin_inset Flex Code
19235 status collapsed
19236
19237 \begin_layout Plain Layout
19238 diff
19239 \end_layout
19240
19241 \end_inset
19242
19243 ダンプを生成することによって、改訂版の間の変更点を検査するのが、典型的な使用法です。これは平文ファイルには有効なのですが、複雑な構造を持つLyXファイルの場合に
19244 は、あまり便利ではありません。そこで、LyXは独自の文書比較機能を提供しています。この機能を呼び出すには2つの方法があります。1つは、LyXの
19245 \begin_inset Flex Code
19246 status collapsed
19247
19248 \begin_layout Plain Layout
19249 VC_COMPARE
19250 \end_layout
19251
19252 \end_inset
19253
19254 関数を直接呼び出す方法であり(詳細はLyX関数説明書を参照)、もう1つは
19255 \begin_inset Flex MenuItem
19256 status collapsed
19257
19258 \begin_layout Plain Layout
19259 旧改訂と比較\SpecialChar \ldots{}
19260
19261 \end_layout
19262
19263 \end_inset
19264
19265 メニューないしアイコンを使用する方法です。当該文書のうち、任意の2つの改訂版を比較することもできますし、編集中の現行版を古い改訂版と比較することもできます(この
19266 とき改訂版遡及数「
19267 \begin_inset Flex MenuItem
19268 status collapsed
19269
19270 \begin_layout Plain Layout
19271 0
19272 \end_layout
19273
19274 \end_inset
19275
19276 」は、編集中のファイルと最後にコミットした改訂版との比較を意味します)。
19277 \end_layout
19278
19279 \begin_layout Standard
19280 この機能は、SVNとRCSでサポートされていますが、RCSは、より複雑なバージョン付けスキームを持っているため、制約があります。ダイアログ中で改訂版を指定する際
19281 の数字は、つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」)。
19282 \end_layout
19283
19284 \begin_layout Section
19285 文芸的プログラミング
19286 \end_layout
19287
19288 \begin_layout Standard
19289
19290 \noun on
19291 Kayvan Sylvan
19292 \noun default
19293 (kayvan@sylvan.com)改訂 
19294 \noun on
19295 Edmar Wienskoski Jr.
19296 \noun default
19297 (edmar-w-jr@technologist.com)原文
19298 \end_layout
19299
19300 \begin_layout Subsection
19301 はじめに
19302 \end_layout
19303
19304 \begin_layout Standard
19305 この節の主な目的は、文芸的プログラミング(literate programming)のために、LyXをどう使えばよいかをお見せすることです。ここでは、あなたがこ
19306 のプログラミング技術をよくご存じで、「tangling」や「weaving」の意味するところを知っているものとして説明します。そうでない場合には、以下の各節にあ
19307 るウェブリンクをたどってください。そこには、かつての開発の歴史から最新のツールチップまで、たくさんの良質なドキュメンテーションがあります。
19308 \end_layout
19309
19310 \begin_layout Standard
19311 また、あなたが、LyXの設定を変更することを厭わない程度までLyXに習熟しており、Xリソースファイルにも親しんでいることを前提にしています。そうでない場合は、あ
19312 なたの必要とするトピックを扱っている、LyXの他の説明書で調べてください。
19313 \end_layout
19314
19315 \begin_layout Subsection
19316 文芸的プログラミング
19317 \end_layout
19318
19319 \begin_layout Standard
19320 以下は、文芸的プログラミング FAQからの抜粋です。
19321 \end_layout
19322
19323 \begin_layout Quotation
19324 文芸的プログラミングは、人間が読むのに適した形でのドキュメンテーションとソースの組合わせです。実際、文芸的プログラムは楽しい読み物であるべきであり、さらには参加
19325 したいとさえ思わせるべきなのです!(ボブ、ごめん。言わずにはいれなかった。)一般的に、文芸的プログラムは、ソースとドキュメンテーションを同一ファイル上に結合した
19326 ものです。そして、文芸的プログラミングツールは、ファイルを解析して、読むことのできるドキュメンテーションか、あるいはコンパイル可能なソースを生成します。文芸的プ
19327 ログラミングのWEBスタイルは、D.
19328 \begin_inset space \thinspace{}
19329 \end_inset
19330
19331 E.
19332  Knuthが、TeX組版ソフトウエアを開発中に作り出したものです。
19333 \end_layout
19334
19335 \begin_layout Standard
19336 他のエキスパートの発言です。
19337 \end_layout
19338
19339 \begin_layout Quotation
19340
19341 \emph on
19342 文芸的プログラミングは、冗長なコメント付けと何が違いますか?
19343 \end_layout
19344
19345 \begin_layout Quotation
19346 3つの際立った特徴があります。重要な順に列挙すれば、
19347 \end_layout
19348
19349 \begin_deeper
19350 \begin_layout Itemize
19351 推敲の順序が柔軟
19352 \end_layout
19353
19354 \begin_layout Itemize
19355 ブラウジングの自動サポート
19356 \end_layout
19357
19358 \begin_layout Itemize
19359 特に図式と数式を含んだドキュメンテーションの組版
19360 \end_layout
19361
19362 \end_deeper
19363 \begin_layout Quotation
19364 などがあります。
19365 \end_layout
19366
19367 \begin_layout Standard
19368 あなたの興味に火を付けたところで参考文献を見てみましょう。
19369 \end_layout
19370
19371 \begin_layout Subsubsection
19372 参考文献
19373 \end_layout
19374
19375 \begin_layout Standard
19376 完全な文芸的プログラミング FAQは
19377 \end_layout
19378
19379 \begin_layout Quote
19380 Literate Programming FAQ 
19381 \begin_inset Flex URL
19382 status collapsed
19383
19384 \begin_layout Plain Layout
19385
19386 http://shelob.ce.ttu.edu/daves/lpfaq/faq.html
19387 \end_layout
19388
19389 \end_inset
19390
19391
19392 \end_layout
19393
19394 \begin_layout Standard
19395 にあります。
19396 \end_layout
19397
19398 \begin_layout Standard
19399 このFAQには、23(二十三です!)の文芸的プログラミング用ツールが列挙されています。一部のツールは、特定のプログラミング言語用に特化したものですが、一般的な対
19400 象を持つものもあります。私は自分で使うのに、いくつかの理由から
19401 \noun on
19402 Noweb
19403 \noun default
19404 を選びました。
19405 \end_layout
19406
19407 \begin_layout Itemize
19408 ドキュメンテーションをLaTeXでもHTMLでも出力できる。
19409 \end_layout
19410
19411 \begin_layout Itemize
19412 開放的なアーキテクチャに持っているので、新しいフィルタをプラグインとして加えたり、自分が必要な特別な処理を実行することが容易である。
19413 \end_layout
19414
19415 \begin_layout Itemize
19416 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです)。
19417 \end_layout
19418
19419 \begin_layout Itemize
19420 無料である。
19421 \end_layout
19422
19423 \begin_layout Standard
19424 Nowebのウェブページは
19425 \end_layout
19426
19427 \begin_layout Quote
19428 Nowebホームページ 
19429 \begin_inset Flex URL
19430 status collapsed
19431
19432 \begin_layout Plain Layout
19433
19434 http://www.cs.virginia.edu/~nr/noweb/
19435 \end_layout
19436
19437 \end_inset
19438
19439
19440 \end_layout
19441
19442 \begin_layout Standard
19443 にあります。ここから始めれば、たくさんの興味深いリンクや、文芸的プログラミングの用例にたどり着くことができます。
19444 \end_layout
19445
19446 \begin_layout Subsection
19447 LyXと文芸的プログラミング
19448 \end_layout
19449
19450 \begin_layout Standard
19451 LyXにおける文芸的プログラミングのサポートは、LyXの汎用変換機構を使用して実現しています。このサポートは「Noweb非依存」的な方法で提供されているので、L
19452 yXの設定を変更するだけで、自分の好きな他の文芸的プログラミングツールを使って、この新しいLyXの機能を利用することができます。
19453 \end_layout
19454
19455 \begin_layout Subsubsection
19456 ドキュメントとコードの生成(weavingおよびtangling)
19457 \end_layout
19458
19459 \begin_layout Paragraph
19460 文書クラスの選択
19461 \end_layout
19462
19463 \begin_layout Standard
19464 NowebとLyXの導入に成功すると、新規文書を開いたり、既存文書の文書クラスを変更しようとする際、以下の3つの新しい文書クラスが利用可能になっているはずです。
19465 \end_layout
19466
19467 \begin_layout Itemize
19468 Article (Noweb)
19469 \end_layout
19470
19471 \begin_layout Itemize
19472 Book (Noweb)
19473 \end_layout
19474
19475 \begin_layout Itemize
19476 Report (Noweb)
19477 \end_layout
19478
19479 \begin_layout Standard
19480 文芸的プログラミング文書を作成する場合には、これらのうち一つを選んでください。
19481 \end_layout
19482
19483 \begin_layout Standard
19484 文芸的プログラミング文書は、これら3つのクラスに限定されないことに注意してください。letterのような他のスタイルから新しいクラスを作成することもできますし、
19485 Article (AMS)のような他のクラスバリエーションと組み合わせて作成することもできます。既存のクラスではカバーできないような、特別なニーズがある場合には
19486 、LyX開発者用メーリングリスト(lyx-devel@lists.lyx.org)に連絡していただければ、新しい項目を加えるように調整するか、そのしかたをお教えしま
19487
19488 \begin_inset Foot
19489 status collapsed
19490
19491 \begin_layout Plain Layout
19492 これは非常に簡単です。これを行うには、4行から成るファイルを作成し、自動設定を実行するだけなのです。
19493 \end_layout
19494
19495 \end_inset
19496
19497 。また、Noweb以外の文芸的プログラミングツールを使用する場合にも、そのための新しい文書クラスをつくる必要があります。
19498 \end_layout
19499
19500 \begin_layout Paragraph
19501 コードの入力
19502 \end_layout
19503
19504 \begin_layout Standard
19505 LyXでは、
19506 \noun on
19507 Scrap
19508 \noun default
19509
19510 \begin_inset Foot
19511 status collapsed
19512
19513 \begin_layout Plain Layout
19514 Nowebでの名称は「Chunk」です。歴史的な理由から、別の文芸プログラミングツールNuwebで使われている「scrap」という用語を使用しています。Nuwe
19515 bは、私がNowebに乗り換える前に長年使用していたツールです。
19516 \end_layout
19517
19518 \end_inset
19519
19520 という名前のレイアウトを使えば、コードを入力することができます。Nowebは次のようにscrapを区切ります。
19521 \end_layout
19522
19523 \begin_layout LyX-Code
19524 <<My scrap>>=
19525 \end_layout
19526
19527 \begin_layout LyX-Code
19528   code
19529 \end_layout
19530
19531 \begin_layout LyX-Code
19532   more code
19533 \end_layout
19534
19535 \begin_layout LyX-Code
19536   even more code
19537 \end_layout
19538
19539 \begin_layout LyX-Code
19540   @
19541 \end_layout
19542
19543 \begin_layout Standard
19544 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまりLyXはこの間に書かれたものへのどんな変更も禁止しなくてははなりません。こ
19545 れはScrapと呼ぶ特別なレイアウトで扱われます。この環境は通常の段落のようですが、自由に空白を入れることができます。
19546 \end_layout
19547
19548 \begin_layout Standard
19549 Scrap段落環境の欠点は、連続したコードの段落の間に空行がソースコードにも印刷したドキュメントにも入ることです。これを回避するためには、Scrap環境の中の改
19550 行には(ctrl-return)を使ってください。上の例では次のようにします
19551 \begin_inset Foot
19552 status collapsed
19553
19554 \begin_layout Plain Layout
19555 印刷したバージョンを読んでいる場合にはこの例と上の例の違いが分かりません。
19556 \end_layout
19557
19558 \end_inset
19559
19560
19561 \end_layout
19562
19563 \begin_layout LyX-Code
19564 <<My scrap>>=
19565 \begin_inset Newline newline
19566 \end_inset
19567
19568   code
19569 \begin_inset Newline newline
19570 \end_inset
19571
19572   more code
19573 \begin_inset Newline newline
19574 \end_inset
19575
19576   even more code
19577 \begin_inset Newline newline
19578 \end_inset
19579
19580   @
19581 \end_layout
19582
19583 \begin_layout Standard
19584 この環境はうまく働きます。不便な点は普通のリターンのかわりにctrl-returnを使わなければならないことです
19585 \begin_inset Foot
19586 status collapsed
19587
19588 \begin_layout Plain Layout
19589 これは改善しなければならない点でしょう。
19590 \end_layout
19591
19592 \end_inset
19593
19594
19595 \end_layout
19596
19597 \begin_layout Standard
19598 また、Scrapの中にNowebの%defを使うことができます。これを使うことでNowebのidentifierの相互参照に項目を加えることができます。次の例を
19599 見てください。
19600 \end_layout
19601
19602 \begin_layout LyX-Code
19603 <<My scrap>>=
19604 \begin_inset Newline newline
19605 \end_inset
19606
19607   def some_function(args):
19608 \begin_inset Newline newline
19609 \end_inset
19610
19611     "This is the doc string for this function."
19612 \begin_inset Newline newline
19613 \end_inset
19614
19615     print "My args: ", args
19616 \end_layout
19617
19618 \begin_layout LyX-Code
19619 @ %def some_function
19620 \end_layout
19621
19622 \begin_layout Standard
19623 これをどのように使って、その結果相互参照がどうなるかは
19624 \emph on
19625 LIBDIR/examples/listerrors.lyx
19626 \emph default
19627 の中の文芸pythonプログラムを見るとよくわかります。
19628 \end_layout
19629
19630 \begin_layout Paragraph
19631 ドキュメンテーションの生成
19632 \end_layout
19633
19634 \begin_layout Standard
19635 新しい文章ファイルを正しい文書クラスでつくり、その中にコードとテキストも入れました。これをどうやって印刷したらいいのでしょう。簡単です。
19636 \begin_inset Flex MenuItem
19637 status collapsed
19638
19639 \begin_layout Plain Layout
19640 表示\SpecialChar \menuseparator
19641 DVI
19642 \end_layout
19643
19644 \end_inset
19645
19646 等を選ぶだけです。普通の文章の場合と同じで、特別なことは必要ありません。
19647 \end_layout
19648
19649 \begin_layout Standard
19650 LyXの内部で何が起っているかを説明しておきましょう。
19651 \end_layout
19652
19653 \begin_layout Enumerate
19654 \begin_inset Flex MenuItem
19655 status collapsed
19656
19657 \begin_layout Plain Layout
19658 表示\SpecialChar \menuseparator
19659 DVI
19660 \end_layout
19661
19662 \end_inset
19663
19664 が選ばれると、LaTeXファイルがつくられます。
19665 \end_layout
19666
19667 \begin_deeper
19668 \begin_layout Standard
19669 ドキュメントが文芸プログラミング用のクラスであった場合には、拡張子に(
19670 \begin_inset Flex MenuItem
19671 status collapsed
19672
19673 \begin_layout Plain Layout
19674 設定
19675 \end_layout
19676
19677 \end_inset
19678
19679 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
19680 \end_layout
19681
19682 \end_deeper
19683 \begin_layout Enumerate
19684 違いがファイル名だけなのに注意してください。LyXによる特別な処理は必要ありません。Scrap環境でコードを入力するのだけがポイントです。
19685 \end_layout
19686
19687 \begin_layout Enumerate
19688 ドキュメントが文芸プログラムクラスなら、LyXは内部のLyXからNowebのコンバータを使い、それからNowebからLaTeXのコンバータ
19689 \begin_inset Foot
19690 status collapsed
19691
19692 \begin_layout Plain Layout
19693 これらのコンバータは、
19694 \family sans
19695 \bar under
19696 E
19697 \bar default
19698 dit\SpecialChar \menuseparator
19699
19700 \bar under
19701 P
19702 \bar default
19703 references
19704 \family default
19705  パネルの Conversion タブで設定できます。
19706 \end_layout
19707
19708 \end_inset
19709
19710 を使ってLaTeXファイルを生成します。
19711 \end_layout
19712
19713 \begin_deeper
19714 \begin_layout Standard
19715 それ以外の場合はこのステップを飛ばします。
19716 \end_layout
19717
19718 \end_deeper
19719 \begin_layout Enumerate
19720 最後にLaTeXが実行され、普通の文章と同じ後処理が行われます。
19721 \end_layout
19722
19723 \begin_layout Standard
19724 様々なコンバータから走らせるコマンドを変えることによって、特定の文芸プログラム用のソフトウエアにしばられないようになっています。
19725 \end_layout
19726
19727 \begin_layout Paragraph
19728 コードの生成
19729 \end_layout
19730
19731 \begin_layout Standard
19732 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様にLaTeXファイルが生成されます。それからLyXは
19733 \family typewriter
19734 Noweb->Program
19735 \family default
19736 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
19737 \end_layout
19738
19739 \begin_layout Enumerate
19740 コンバータプログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマ
19741 ットへ変換します)。
19742 \end_layout
19743
19744 \begin_layout Enumerate
19745 エラーログパーサー。これはエラーメッセージをLyXが理解できる形へ書き直します。これによって、LyXはファイルバッファの正しい位置へエラーボックスを配置すること
19746 ができます。
19747 \end_layout
19748
19749 \begin_layout Standard
19750 はじめのパートのために、「変換子」設定で、
19751 \begin_inset Quotes eld
19752 \end_inset
19753
19754
19755 \family typewriter
19756 build-script$$i
19757 \family default
19758
19759 \begin_inset Quotes erd
19760 \end_inset
19761
19762 と指定します。これは基本的に、LyXが
19763 \family typewriter
19764 build-script
19765 \family default
19766 (プログラムかスクリプト名)を(一般にはLyXの一時ファイル用のディレクトリにつくられる)Nowebファイルの名前とともに起動することを意味しています。
19767 \end_layout
19768
19769 \begin_layout Standard
19770 以下にbuild-scriptの一例を書いておきます。パスが通っているディレクトリに置いて使います。
19771 \end_layout
19772
19773 \begin_layout LyX-Code
19774 #!/bin/sh
19775 \end_layout
19776
19777 \begin_layout LyX-Code
19778 #
19779 \end_layout
19780
19781 \begin_layout LyX-Code
19782 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh
19783 \end_layout
19784
19785 \begin_layout Standard
19786 コンバータの設定の次の部分はFlagsです。これを
19787 \begin_inset Quotes eld
19788 \end_inset
19789
19790
19791 \family typewriter
19792 originaldir,parselog=listerrors
19793 \family default
19794
19795 \begin_inset Quotes erd
19796 \end_inset
19797
19798 と指定してください。これで、
19799 \family typewriter
19800 build-script
19801 \family default
19802 が出すすべてのエラーをlisterrorsプログラムに渡します。
19803 \end_layout
19804
19805 \begin_layout Standard
19806 コンバータコードがlisterrorsプログラムを探す順序は、はじめに
19807 \emph on
19808 MYLYXDIR/scripts
19809 \emph default
19810 、次に
19811 \emph on
19812 LIBDIR/scripts
19813 \emph default
19814 、最後にパスです。
19815 \end_layout
19816
19817 \begin_layout Paragraph
19818 文章中でのプログラムの構築操作の説明
19819 \end_layout
19820
19821 \begin_layout Standard
19822 LyXとNowebの統合の最後の部分は、
19823 \begin_inset Quotes eld
19824 \end_inset
19825
19826 build-script
19827 \begin_inset Quotes erd
19828 \end_inset
19829
19830  scrapです。一般に、あなたのプログラムの構築操作の説明それ自身をscrapに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
19831 iptでは、scrapを見つけるのにnotangleコマンドを使い、shを使って起動します。
19832 \end_layout
19833
19834 \begin_layout Standard
19835 以下に典型的なscrapがどのようなものかを書いておきます。
19836 \end_layout
19837
19838 \begin_layout LyX-Code
19839 <<build-script>>=
19840 \begin_inset Newline newline
19841 \end_inset
19842
19843 #!/bin/sh
19844 \begin_inset Newline newline
19845 \end_inset
19846
19847
19848 \begin_inset Newline newline
19849 \end_inset
19850
19851 if [ -z "${NOWEB_SOURCE}" ]
19852 \begin_inset Newline newline
19853 \end_inset
19854
19855 then
19856 \begin_inset Newline newline
19857 \end_inset
19858
19859   NOWEB_SOURCE=myfile.nw
19860 \begin_inset Newline newline
19861 \end_inset
19862
19863 fi
19864 \begin_inset Newline newline
19865 \end_inset
19866
19867 [...
19868  code to extract files ...]
19869 \begin_inset Newline newline
19870 \end_inset
19871
19872 [...
19873  code to compile files ...]
19874 \begin_inset Newline newline
19875 \end_inset
19876
19877 @
19878 \end_layout
19879
19880 \begin_layout Standard
19881
19882 \emph on
19883 LIBDIR/examples/listerrors.lyx
19884 \emph default
19885
19886 \emph on
19887 LIBDIR/examples/Literate.lyx
19888 \emph default
19889 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
19890 ってもらうための例です。また、
19891 \emph on
19892 LIBDIR/examples/noweb2lyx.lyx
19893 \emph default
19894 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、LyXの文芸プログラミングのサポートがプログラム言語に依存
19895 しないことを示しています。
19896 \end_layout
19897
19898 \begin_layout Subsubsection
19899 LyXの設定
19900 \end_layout
19901
19902 \begin_layout Standard
19903 すべての文芸プログラムのための設定は、
19904 \begin_inset Flex MenuItem
19905 status collapsed
19906
19907 \begin_layout Plain Layout
19908 ツール\SpecialChar \menuseparator
19909 設定
19910 \end_layout
19911
19912 \end_inset
19913
19914 パネルの「変換子」タブですることができます。重要な部分を見ておきましょう。
19915 \end_layout
19916
19917 \begin_layout Description
19918 the
19919 \begin_inset space ~
19920 \end_inset
19921
19922
19923 \begin_inset Quotes eld
19924 \end_inset
19925
19926 literate
19927 \begin_inset Quotes erd
19928 \end_inset
19929
19930
19931 \begin_inset space ~
19932 \end_inset
19933
19934 format 書式タブで設定します。ここで、Noweb特有の設定を行います。
19935 \family sans
19936 GUI名
19937 \family default
19938
19939 \family typewriter
19940 NoWeb
19941 \family default
19942 に、拡張子を
19943 \family typewriter
19944 .nw
19945 \family default
19946 に設定してください。これによって、LyXに変換プロセスの第一段階でつくられるファイルに
19947 \family typewriter
19948 .nw
19949 \family default
19950 という拡張子をつけることを指示します。
19951 \end_layout
19952
19953 \begin_layout Description
19954 the
19955 \begin_inset space ~
19956 \end_inset
19957
19958
19959 \family sans
19960 Program
19961 \family default
19962
19963 \begin_inset space ~
19964 \end_inset
19965
19966 format これは空にしてください。この項目のただひとつの目的は変換の最終的なフォーマットを指定することです(これが設定されていると、このフォーマットからの変
19967 換を行えます)。
19968 \end_layout
19969
19970 \begin_layout Description
19971
19972 \family sans
19973 NoWeb
19974 \family default
19975 ->
19976 \family sans
19977 LaTeX
19978 \family default
19979  このコンバータは、weavingの段階を行います。Nowebの場合は、
19980 \begin_inset Quotes eld
19981 \end_inset
19982
19983
19984 \family typewriter
19985 noweave -delay -index $$i > $$o
19986 \family default
19987
19988 \begin_inset Quotes erd
19989 \end_inset
19990
19991 に設定してください。
19992 \end_layout
19993
19994 \begin_layout Description
19995
19996 \family sans
19997 NoWeb
19998 \family default
19999 ->
20000 \family sans
20001 Program
20002 \family default
20003  これは、tanglingを行います。以前に説明したように、
20004 \family typewriter
20005 build-script $$i
20006 \family default
20007  と設定して、Flagsに 
20008 \begin_inset Quotes eld
20009 \end_inset
20010
20011
20012 \family typewriter
20013 originaldir,parselog=listerrors
20014 \family default
20015
20016 \begin_inset Quotes erd
20017 \end_inset
20018
20019  を入れてください。
20020 \end_layout
20021
20022 \begin_layout Subsubsection
20023 デバッグ機能の拡張
20024 \end_layout
20025
20026 \begin_layout Standard
20027 ddd/gdbまたは他のデバッガで使えるserver-goto-file-rowという関数が新たにLyXサーバに実装されました。
20028 \end_layout
20029
20030 \begin_layout Standard
20031 ddd/gdbでデバッグしているとき、一つのキーストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-V
20032 になっています。この設定はdddで
20033 \begin_inset Flex MenuItem
20034 status collapsed
20035
20036 \begin_layout Plain Layout
20037 ツール\SpecialChar \menuseparator
20038 設定\SpecialChar \menuseparator
20039 ファイル書式
20040 \end_layout
20041
20042 \end_inset
20043
20044 ウインドウを表示して、
20045 \begin_inset Flex MenuItem
20046 status collapsed
20047
20048 \begin_layout Plain Layout
20049 編集プログラム
20050 \end_layout
20051
20052 \end_inset
20053
20054 エントリを変えると変えることができます。
20055 \end_layout
20056
20057 \begin_layout Standard
20058 新しいLyXサーバの関数と、このdddの機能を使うために
20059 \begin_inset Flex MenuItem
20060 status collapsed
20061
20062 \begin_layout Plain Layout
20063 編集プログラム
20064 \end_layout
20065
20066 \end_inset
20067
20068 を次のように設定してください。
20069 \end_layout
20070
20071 \begin_layout LyX-Code
20072 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
20073 \end_layout
20074
20075 \begin_layout Standard
20076 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddはLyXサーバに情報を
20077 送り、LyXは同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります
20078
20079 \end_layout
20080
20081 \begin_layout Standard
20082 この機能が動くにはLyXサーバが利用可能でなければなりません(既定ではLyXサーバーは使えないようになっています)。LyXサーバを使えるようにするには、
20083 \family sans
20084
20085 \begin_inset Flex MenuItem
20086 status collapsed
20087
20088 \begin_layout Plain Layout
20089
20090 \family sans
20091 設定
20092 \end_layout
20093
20094 \end_inset
20095
20096
20097 \family default
20098
20099 \family sans
20100
20101 \begin_inset Flex MenuItem
20102 status collapsed
20103
20104 \begin_layout Plain Layout
20105
20106 \family sans
20107 パス
20108 \end_layout
20109
20110 \end_inset
20111
20112
20113 \family default
20114 タブ)の
20115 \family sans
20116
20117 \begin_inset Flex MenuItem
20118 status collapsed
20119
20120 \begin_layout Plain Layout
20121
20122 \family sans
20123 LyXサーバーパイプ
20124 \family default
20125
20126 \end_layout
20127
20128 \end_inset
20129
20130
20131 \family default
20132
20133 \begin_inset Quotes eld
20134 \end_inset
20135
20136
20137 \family typewriter
20138 /home/<your-home-directory>/.lyx/lyxpipe
20139 \family default
20140
20141 \begin_inset Quotes erd
20142 \end_inset
20143
20144  のようにパスを指定してください。
20145 \end_layout
20146
20147 \begin_layout Standard
20148 詳しくは『
20149 \emph on
20150 取扱説明書カスタマイズ篇
20151 \emph default
20152 』のLyXサーバの説明を読んでください。
20153 \end_layout
20154
20155 \begin_layout Subsubsection
20156 ツールバーの拡張
20157 \end_layout
20158
20159 \begin_layout Standard
20160 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
20161 \family sans
20162 Standard
20163 \family default
20164
20165 \family sans
20166 Section
20167 \family default
20168
20169 \family sans
20170 LaTeX
20171 \family default
20172
20173 \family sans
20174 LyX-Code
20175 \family default
20176
20177 \family sans
20178 Scrap
20179 \family default
20180 環境用のボタンを用意しています。最後の一つはファイルメニューの Build Programエントリへのショートカットです。
20181 \end_layout
20182
20183 \begin_layout Standard
20184 LyXはツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
20185 \begin_inset Flex MenuItem
20186 status collapsed
20187
20188 \begin_layout Plain Layout
20189 表示\SpecialChar \menuseparator
20190 更新\SpecialChar \menuseparator
20191 DVI
20192 \end_layout
20193
20194 \end_inset
20195
20196
20197 \begin_inset Flex MenuItem
20198 status collapsed
20199
20200 \begin_layout Plain Layout
20201 表示\SpecialChar \menuseparator
20202 DVI
20203 \end_layout
20204
20205 \end_inset
20206
20207 を組み合わせたものになっています。
20208 \end_layout
20209
20210 \begin_layout LyX-Code
20211 Toolbar
20212 \end_layout
20213
20214 \begin_layout LyX-Code
20215   Layouts
20216 \end_layout
20217
20218 \begin_layout LyX-Code
20219   Icon "layout Standard"
20220 \end_layout
20221
20222 \begin_layout LyX-Code
20223   Icon "layout Section"
20224 \end_layout
20225
20226 \begin_layout LyX-Code
20227   Icon "layout LaTeX"
20228 \end_layout
20229
20230 \begin_layout LyX-Code
20231   Icon "layout LyX-Code"
20232 \end_layout
20233
20234 \begin_layout LyX-Code
20235   Icon "layout Scrap"
20236 \end_layout
20237
20238 \begin_layout LyX-Code
20239   Separator
20240 \end_layout
20241
20242 \begin_layout LyX-Code
20243   Icon "buffer-view"
20244 \end_layout
20245
20246 \begin_layout LyX-Code
20247   Icon "buffer-typeset"
20248 \end_layout
20249
20250 \begin_layout LyX-Code
20251   Icon "build-program"
20252 \end_layout
20253
20254 \begin_layout LyX-Code
20255   Separator
20256 \end_layout
20257
20258 \begin_layout LyX-Code
20259 .
20260 \end_layout
20261
20262 \begin_layout LyX-Code
20263 .
20264 \end_layout
20265
20266 \begin_layout LyX-Code
20267 .
20268 \end_layout
20269
20270 \begin_layout LyX-Code
20271 End
20272 \end_layout
20273
20274 \begin_layout Subsubsection
20275 色を変える
20276 \end_layout
20277
20278 \begin_layout Standard
20279 LyXではいくつもの色を
20280 \begin_inset Flex MenuItem
20281 status collapsed
20282
20283 \begin_layout Plain Layout
20284 設定
20285 \end_layout
20286
20287 \end_inset
20288
20289 で変えることができます。まず変えたいと思うのはLaTeXフォントカラーでしょう。既定では赤になっていますが、ScrapはLaTeXフォントを使い、文芸的プログラ
20290 ミングでは多くのScrapがあるためにそれらがすべて赤では疲れてしまいます。
20291 \begin_inset Flex MenuItem
20292 status collapsed
20293
20294 \begin_layout Plain Layout
20295 操作性\SpecialChar \menuseparator
20296
20297 \end_layout
20298
20299 \end_inset
20300
20301 タブでこの色を変えることができます。
20302 \end_layout
20303
20304 \begin_layout Standard
20305 次にすることは画面の改行文字を見えなくすることです。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少し違
20306 う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
20307 \end_layout
20308
20309 \begin_layout Chapter
20310
20311 \lang english
20312 Special features
20313 \lang japanese
20314
20315 \begin_inset CommandInset label
20316 LatexCommand label
20317 name "chap:Special-features"
20318
20319 \end_inset
20320
20321
20322 \end_layout
20323
20324 \begin_layout Standard
20325
20326 \lang english
20327 You can do everything with LyX that you can do with LaTeX.
20328  However, LyX cannot support every LaTeX feature directly.
20329  But you can always use TeX Code.
20330  This chapter shows you some more special things you might want to use.
20331  For other special things you can do with figures, tables, floats, boxes
20332  and notes, have a look at the 
20333 \emph on
20334 EmbeddedObjects
20335 \emph default
20336  manual.
20337 \end_layout
20338
20339 \begin_layout Section
20340
20341 \lang english
20342 Multiple Text Columns
20343 \end_layout
20344
20345 \begin_layout Standard
20346
20347 \lang english
20348 This feature is independent of the option 
20349 \family sans
20350 Two-column document
20351 \family default
20352  in the document settings under 
20353 \family sans
20354 Text Layout
20355 \family default
20356 .
20357  If you want to have 2
20358 \begin_inset space ~
20359 \end_inset
20360
20361 columns for the whole document, it is recommended to use the 
20362 \family sans
20363 Two-column document
20364 \family default
20365  option.
20366  For all other cases use this feature.
20367 \end_layout
20368
20369 \begin_layout Standard
20370
20371 \lang english
20372 To use multiple text columns in your document, you have to load the module
20373  
20374 \family sans
20375 Multiple Columns
20376 \family default
20377  (menu 
20378 \family sans
20379 Document\SpecialChar \menuseparator
20380 Settings\SpecialChar \menuseparator
20381 Modules
20382 \family default
20383 ) and must have the LaTeX-package 
20384 \series bold
20385 multicol
20386 \series default
20387
20388 \begin_inset Index idx
20389 status collapsed
20390
20391 \begin_layout Plain Layout
20392
20393 \lang english
20394 LaTeX-packages ! multicol
20395 \end_layout
20396
20397 \end_inset
20398
20399  installed.
20400 \end_layout
20401
20402 \begin_layout Standard
20403
20404 \lang english
20405 Footnotes within multiple columns will be placed at the bottom of the page
20406  and not under each column.
20407  Within the different columns you can use everything, with the limitation
20408  that for floats you need to use the float option 
20409 \family sans
20410 Span columns
20411 \family default
20412 .
20413 \end_layout
20414
20415 \begin_layout Subsection
20416
20417 \lang english
20418 Basics
20419 \end_layout
20420
20421 \begin_layout Standard
20422
20423 \lang english
20424 If you want to have 2 columns in your text, use the style 
20425 \family sans
20426 Begin Multiple Columns
20427 \family default
20428  where the columns should start.
20429  The content of the style is the number of the columns, so in this case
20430  use a 
20431 \begin_inset Quotes eld
20432 \end_inset
20433
20434 2
20435 \begin_inset Quotes erd
20436 \end_inset
20437
20438 .
20439  At the point where the columns should end use the style 
20440 \family sans
20441 End Multiple Columns
20442 \family default
20443  and keep it empty.
20444 \end_layout
20445
20446 \begin_layout Standard
20447
20448 \lang english
20449 Here is an example:
20450 \end_layout
20451
20452 \begin_layout Begin Multiple Columns
20453
20454 \lang english
20455 2
20456 \end_layout
20457
20458 \begin_layout Standard
20459 \noindent
20460
20461 \series bold
20462 \size small
20463 \lang english
20464 The Adventure of the Empty House
20465 \series default
20466
20467 \begin_inset Newline newline
20468 \end_inset
20469
20470 by 
20471 \noun on
20472 Sir Arthur Conan Doyle
20473 \end_layout
20474
20475 \begin_layout Standard
20476
20477 \size small
20478 \lang english
20479 It was in the spring of the year 1894 that all London was interested, and
20480  the fashionable world dismayed, by the murder of the Honourable Ronald
20481  Adair under most unusual and inexplicable circumstances.
20482  The public has already learned those particulars of the crime which came
20483  out in the police investigation, but a good deal was suppressed upon that
20484  occasion, since the case for the prosecution was so overwhelmingly strong
20485  that it was not necessary to bring forward all the facts.
20486  Only now, at the end of nearly ten years, am I allowed to supply those
20487  missing links which make up the whole of that remarkable chain.
20488  The crime was of interest in itself, but that interest was as nothing to
20489  me compared to the inconceivable sequel, which afforded me the greatest
20490  shock and surprise of any event in my adventurous life.
20491  Even now, after this long interval, I find myself thrilling as I think
20492  of it, and feeling once more that sudden flood of joy, amazement, and increduli
20493 ty which utterly submerged my mind.
20494  Let me say to that public, which has shown some interest in those glimpses
20495  which I have occasionally given them of the thoughts and actions of a very
20496  remarkable man, that they are not to blame me if I have not shared my knowledge
20497  with them, for I should have considered it my first duty to do so, had
20498  I not been barred by a positive prohibition from his own lips, which was
20499  only withdrawn upon the third of last month.
20500 \end_layout
20501
20502 \begin_layout End Multiple Columns
20503
20504 \end_layout
20505
20506 \begin_layout Standard
20507
20508 \lang english
20509 Here is an example with 3
20510 \begin_inset space ~
20511 \end_inset
20512
20513 columns:
20514 \end_layout
20515
20516 \begin_layout Begin Multiple Columns
20517
20518 \lang english
20519 3
20520 \end_layout
20521
20522 \begin_layout Standard
20523
20524 \size footnotesize
20525 \lang english
20526 It can be imagined that my close intimacy with Sherlock Holmes had interested
20527  me deeply in crime, and that after his disappearance I never failed to
20528  read with care the various problems which came before the public.
20529  And I even attempted, more than once, for my own private satisfaction,
20530  to employ his methods in their solution, though with indifferent success.
20531  There was none, however, which appealed to me like this tragedy of Ronald
20532  Adair.
20533  As I read the evidence at the inquest, which led up to a verdict of willful
20534  murder against some person or persons unknown, I realized more clearly
20535  than I had ever done the loss which the community had sustained by the
20536  death of Sherlock Holmes.
20537  There were points about this strange business which would, I was sure,
20538  have specially appealed to him, and the efforts of the police would have
20539  been supplemented, or more probably anticipated, by the trained observation
20540  and the alert mind of the first criminal agent in Europe.
20541  All day, as I drove upon my round, I turned over the case in my mind and
20542  found no explanation which appeared to me to be adequate.
20543  At the risk of telling a twice-told tale, I will recapitulate the facts
20544  as they were known to the public at the conclusion of the inquest.
20545 \end_layout
20546
20547 \begin_layout End Multiple Columns
20548
20549 \end_layout
20550
20551 \begin_layout Standard
20552
20553 \lang english
20554 You can have up to 10
20555 \begin_inset space ~
20556 \end_inset
20557
20558 columns if you want to, but that might not be very pleasant for the readers
20559  of your document.
20560 \end_layout
20561
20562 \begin_layout Standard
20563
20564 \lang english
20565 \begin_inset Newpage newpage
20566 \end_inset
20567
20568
20569 \end_layout
20570
20571 \begin_layout Subsection
20572
20573 \lang english
20574 Columns inside Columns
20575 \end_layout
20576
20577 \begin_layout Standard
20578
20579 \lang english
20580 You can also have columns inside columns:
20581 \end_layout
20582
20583 \begin_layout Begin Multiple Columns
20584
20585 \lang english
20586 2
20587 \end_layout
20588
20589 \begin_layout Standard
20590
20591 \size footnotesize
20592 \lang english
20593 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
20594  at that time governor of one of the Australian colonies.
20595  Adair's mother had returned from Australia to undergo the operation for
20596  cataract, and she, her son Ronald, and her daughter Hilda were living together
20597  at 427 Park Lane.
20598 \end_layout
20599
20600 \begin_layout Begin Multiple Columns
20601
20602 \lang english
20603 2
20604 \end_layout
20605
20606 \begin_layout Standard
20607
20608 \size footnotesize
20609 \lang english
20610 The youth moved in the best society–had, so far as was known, no enemies
20611  and no particular vices.
20612  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
20613  had been broken off by mutual consent some months before, and there was
20614  no sign that it had left any very profound feeling behind it.
20615  For the rest {sic} the man's life moved in a narrow and conventional circle,
20616  for his habits were quiet and his nature unemotional.
20617  Yet it was upon this easy-going young aristocrat that death came, in most
20618  strange and unexpected form, between the hours of ten and eleven-twenty
20619  on the night of March 30, 1894.
20620 \end_layout
20621
20622 \begin_layout End Multiple Columns
20623
20624 \end_layout
20625
20626 \begin_layout Standard
20627
20628 \size footnotesize
20629 \lang english
20630 Ronald Adair was fond of cards–playing continually, but never for such stakes
20631  as would hurt him.
20632  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
20633  It was shown that, after dinner on the day of his death, he had played
20634  a rubber of whist at the latter club.
20635  He had also played there in the afternoon.
20636
20637 \size default
20638  
20639 \size footnotesize
20640 The evidence of those who had played with him– Mr.
20641  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
20642  and that there was a fairly equal fall of the cards.
20643  Adair might have lost five pounds, but not more.
20644  His fortune was a considerable one, and such a loss could not in any way
20645  affect him.
20646  He had played nearly every day at one club or other, but he was a cautious
20647  player, and usually rose a winner.
20648  It came out in evidence that, in partnership with Colonel Moran, he had
20649  actually won as much as four hundred and twenty pounds in a sitting, some
20650  weeks before, from Godfrey Milner and Lord Balmoral.
20651  So much for his recent history as it came out at the inquest.
20652 \end_layout
20653
20654 \begin_layout End Multiple Columns
20655
20656 \end_layout
20657
20658 \begin_layout Subsection
20659
20660 \lang english
20661 Advanced Examples
20662 \end_layout
20663
20664 \begin_layout Standard
20665
20666 \lang english
20667 The examples in this section show some more special features of multiple
20668  columns.
20669 \end_layout
20670
20671 \begin_layout Standard
20672
20673 \lang english
20674 For more features of multiple columns, have a look at the documentation
20675  of the LaTeX-package 
20676 \series bold
20677 multicol
20678 \series default
20679
20680 \begin_inset Index idx
20681 status collapsed
20682
20683 \begin_layout Plain Layout
20684
20685 \lang english
20686 LaTeX-packages ! multicol
20687 \end_layout
20688
20689 \end_inset
20690
20691
20692 \lang japanese
20693
20694 \begin_inset CommandInset citation
20695 LatexCommand cite
20696 key "multicol"
20697
20698 \end_inset
20699
20700 .
20701 \end_layout
20702
20703 \begin_layout Subsubsection
20704
20705 \lang english
20706 Preface
20707 \end_layout
20708
20709 \begin_layout Standard
20710
20711 \lang english
20712 To add a preface text for multiple columns, add the command
20713 \end_layout
20714
20715 \begin_layout Standard
20716
20717 \series bold
20718 \lang english
20719 }[
20720 \end_layout
20721
20722 \begin_layout Standard
20723
20724 \lang english
20725 as TeX Code behind the number of columns in the
20726 \family sans
20727  Begin Multiple Columns
20728 \family default
20729  style.
20730  behind the command write the text.
20731  At the end of the style use the command
20732 \end_layout
20733
20734 \begin_layout Standard
20735
20736 \series bold
20737 \lang english
20738 ]{
20739 \end_layout
20740
20741 \begin_layout Standard
20742
20743 \lang english
20744 as TeX Code.
20745  An example with some preface text:
20746 \end_layout
20747
20748 \begin_layout Standard
20749
20750 \lang english
20751 \begin_inset VSpace bigskip
20752 \end_inset
20753
20754
20755 \end_layout
20756
20757 \begin_layout Begin Multiple Columns
20758
20759 \lang english
20760 2
20761 \begin_inset ERT
20762 status collapsed
20763
20764 \begin_layout Plain Layout
20765
20766 }[
20767 \end_layout
20768
20769 \end_inset
20770
20771 And the story continues and continues and continues and continues\SpecialChar \ldots{}
20772
20773 \begin_inset ERT
20774 status collapsed
20775
20776 \begin_layout Plain Layout
20777
20778 ]{
20779 \end_layout
20780
20781 \end_inset
20782
20783
20784 \end_layout
20785
20786 \begin_layout Standard
20787
20788 \size small
20789 \lang english
20790 On the evening of the crime, he returned from the club exactly at ten.
20791  His mother and sister were out spending the evening with a relation.
20792  The servant deposed that she heard him enter the front room on the second
20793  floor, generally used as his sitting-room.
20794  She had lit a fire there, and as it smoked she had opened the window.
20795  No sound was heard from the room until eleven-twenty, the hour of the return
20796  of Lady Maynooth and her daughter.
20797  Desiring to say good-night, she attempted to enter her son's room.
20798  The door was locked on the inside, and no answer could be got to their
20799  cries and knocking.
20800  Help was obtained, and the door forced.
20801  The unfortunate young man was found lying near the table.
20802  His head had been horribly mutilated by an expanding revolver bullet, but
20803  no weapon of any sort was to be found in the room.
20804 \end_layout
20805
20806 \begin_layout End Multiple Columns
20807
20808 \end_layout
20809
20810 \begin_layout Standard
20811
20812 \lang english
20813 You can also use a section heading as the preface if you use a section command
20814  as TeX Code behind the first TeX Code.
20815  For example the command
20816 \end_layout
20817
20818 \begin_layout Standard
20819
20820 \series bold
20821 \lang english
20822
20823 \backslash
20824 subsection{subsection title}
20825 \end_layout
20826
20827 \begin_layout Standard
20828
20829 \lang english
20830 creates a subsection.
20831  In this example the preface is a subsubsection:
20832 \end_layout
20833
20834 \begin_layout Begin Multiple Columns
20835
20836 \lang english
20837 2
20838 \begin_inset ERT
20839 status collapsed
20840
20841 \begin_layout Plain Layout
20842
20843 }[
20844 \end_layout
20845
20846 \end_inset
20847
20848
20849 \begin_inset ERT
20850 status collapsed
20851
20852 \begin_layout Plain Layout
20853
20854
20855 \backslash
20856 subsubsection{
20857 \end_layout
20858
20859 \end_inset
20860
20861 This is a subsubsection heading as a preface
20862 \begin_inset ERT
20863 status collapsed
20864
20865 \begin_layout Plain Layout
20866
20867 }
20868 \end_layout
20869
20870 \end_inset
20871
20872
20873 \begin_inset ERT
20874 status collapsed
20875
20876 \begin_layout Plain Layout
20877
20878 ]{
20879 \end_layout
20880
20881 \end_inset
20882
20883
20884 \end_layout
20885
20886 \begin_layout Standard
20887
20888 \size small
20889 \lang english
20890 A minute examination of the circumstances served only to make the case more
20891  complex.
20892  In the first place, no reason could be given why the young man should have
20893  fastened the door upon the inside.
20894  There was the possibility that the murderer had done this, and had afterwards
20895  escaped by the window.
20896  The drop was at least twenty feet, however, and a bed of crocuses in full
20897  bloom lay beneath.
20898  Neither the flowers nor the earth showed any sign of having been disturbed,
20899  nor were there any marks upon the narrow strip of grass which separated
20900  the house from the road.
20901  Apparently, therefore, it was the young man himself who had fastened the
20902  door.
20903  But how did he come by his death? No one could have climbed up to the window
20904  without leaving traces.
20905  Suppose a man had fired through the window, he would indeed be a remarkable
20906  shot who could with a revolver inflict so deadly a wound.
20907  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
20908  a hundred yards of the house.
20909  No one had heard a shot.
20910 \end_layout
20911
20912 \begin_layout End Multiple Columns
20913
20914 \end_layout
20915
20916 \begin_layout Standard
20917
20918 \lang english
20919 If there is less vertical space left on the page at the beginning of the
20920  multiple columns than needed for 6
20921 \begin_inset space ~
20922 \end_inset
20923
20924 text lines, a page break will be inserted before the multiple columns.
20925  Depending on the number of lines of the preface text, you might want to
20926  change this value.
20927  It is determined by inserting the command
20928 \end_layout
20929
20930 \begin_layout Standard
20931
20932 \series bold
20933 \lang english
20934 ][number
20935 \backslash
20936 baselineskip
20937 \end_layout
20938
20939 \begin_layout Standard
20940
20941 \lang english
20942 as TeX Code behind the preface definition but before the final 
20943 \series bold
20944 ]{
20945 \series default
20946  command.
20947  
20948 \emph on
20949 number
20950 \emph default
20951  is hereby the number of text lines.
20952  In this example the space is set to 7
20953 \begin_inset space ~
20954 \end_inset
20955
20956 text lines:
20957 \end_layout
20958
20959 \begin_layout Begin Multiple Columns
20960
20961 \lang english
20962 2
20963 \begin_inset ERT
20964 status collapsed
20965
20966 \begin_layout Plain Layout
20967
20968 }[
20969 \end_layout
20970
20971 \end_inset
20972
20973
20974 \begin_inset ERT
20975 status collapsed
20976
20977 \begin_layout Plain Layout
20978
20979
20980 \backslash
20981 subsubsection{
20982 \end_layout
20983
20984 \end_inset
20985
20986 This is the sectioning command
20987 \begin_inset Newline newline
20988 \end_inset
20989
20990 as a preface and
20991 \begin_inset Newline newline
20992 \end_inset
20993
20994 with multiple text lines
20995 \begin_inset ERT
20996 status collapsed
20997
20998 \begin_layout Plain Layout
20999
21000 }
21001 \end_layout
21002
21003 \end_inset
21004
21005
21006 \begin_inset ERT
21007 status collapsed
21008
21009 \begin_layout Plain Layout
21010
21011 ][7
21012 \backslash
21013 baselineskip
21014 \end_layout
21015
21016 \end_inset
21017
21018
21019 \begin_inset ERT
21020 status collapsed
21021
21022 \begin_layout Plain Layout
21023
21024 ]{
21025 \end_layout
21026
21027 \end_inset
21028
21029
21030 \end_layout
21031
21032 \begin_layout Standard
21033
21034 \size small
21035 \lang english
21036 On the evening of the crime, he returned from the club exactly at ten.
21037  His mother and sister were out spending the evening with a relation.
21038  The servant deposed that she heard him enter the front room on the second
21039  floor, generally used as his sitting-room.
21040  She had lit a fire there, and as it smoked she had opened the window.
21041  No sound was heard from the room until eleven-twenty, the hour of the return
21042  of Lady Maynooth and her daughter.
21043  Desiring to say good-night, she attempted to enter her son's room.
21044  The door was locked on the inside, and no answer could be got to their
21045  cries and knocking.
21046  Help was obtained, and the door forced.
21047  The unfortunate young man was found lying near the table.
21048  His head had been horribly mutilated by an expanding revolver bullet, but
21049  no weapon of any sort was to be found in the room.
21050 \end_layout
21051
21052 \begin_layout End Multiple Columns
21053
21054 \end_layout
21055
21056 \begin_layout Subsubsection
21057
21058 \lang english
21059 Surrounding Space
21060 \end_layout
21061
21062 \begin_layout Standard
21063
21064 \lang english
21065 The amount of space before and after multiple columns can be changed by
21066  changing the length 
21067 \series bold
21068
21069 \backslash
21070 multicolsep
21071 \series default
21072 .
21073  For example the command
21074 \end_layout
21075
21076 \begin_layout Standard
21077
21078 \series bold
21079 \lang english
21080
21081 \backslash
21082 setlength{
21083 \backslash
21084 multicolsep}{3cm}
21085 \end_layout
21086
21087 \begin_layout Standard
21088
21089 \lang english
21090 in TeX Code changes its value to 3
21091 \begin_inset space \thinspace{}
21092 \end_inset
21093
21094 cm.
21095  The change must be made before the multiple columns' start.
21096  The predefined value is 13
21097 \begin_inset space \thinspace{}
21098 \end_inset
21099
21100 pt.
21101 \end_layout
21102
21103 \begin_layout Standard
21104
21105 \lang english
21106 For this example 
21107 \series bold
21108
21109 \backslash
21110 multicolsep
21111 \series default
21112  was set to 2.5
21113 \begin_inset space \thinspace{}
21114 \end_inset
21115
21116 cm:
21117 \end_layout
21118
21119 \begin_layout Standard
21120
21121 \lang english
21122 \begin_inset ERT
21123 status open
21124
21125 \begin_layout Plain Layout
21126
21127
21128 \backslash
21129 setlength{
21130 \backslash
21131 multicolsep}{2.5cm}
21132 \end_layout
21133
21134 \end_inset
21135
21136
21137 \end_layout
21138
21139 \begin_layout Begin Multiple Columns
21140
21141 \lang english
21142 2
21143 \end_layout
21144
21145 \begin_layout Standard
21146
21147 \size small
21148 \lang english
21149 All day I turned these facts over in my mind, endeavouring to hit upon some
21150  theory which could reconcile them all, and to find that line of least resistanc
21151 e which my poor friend had declared to be the starting-point of every investigat
21152 ion.
21153  I confess that I made little progress.
21154  In the evening I strolled across the Park, and found myself about six o'clock
21155  at the Oxford Street end of Park Lane.
21156  A group of loafers upon the pavements, all staring up at a particular window,
21157  directed me to the house which I had come to see.
21158  A tall, thin man with coloured glasses, whom I strongly suspected of being
21159  a plain-clothes detective, was pointing out some theory of his own, while
21160  the others crowded round to listen to what he said.
21161  I got as near him as I could, but his observations seemed to me to be absurd,
21162  so I withdrew again in some disgust.
21163  As I did so I struck against an elderly, deformed man, who had been behind
21164  me, and I knocked down several books which he was carrying.
21165 \end_layout
21166
21167 \begin_layout End Multiple Columns
21168
21169 \end_layout
21170
21171 \begin_layout Standard
21172
21173 \lang english
21174 \begin_inset Note Greyedout
21175 status open
21176
21177 \begin_layout Plain Layout
21178
21179 \series bold
21180 \lang english
21181 Note:
21182 \series default
21183  The values you set with 
21184 \series bold
21185
21186 \backslash
21187 setlength
21188 \series default
21189  will be used for all following multiple columns until to change them again.
21190 \end_layout
21191
21192 \end_inset
21193
21194
21195 \end_layout
21196
21197 \begin_layout Standard
21198
21199 \lang english
21200 \begin_inset ERT
21201 status collapsed
21202
21203 \begin_layout Plain Layout
21204
21205
21206 \backslash
21207 setlength{
21208 \backslash
21209 multicolsep}{13pt}
21210 \end_layout
21211
21212 \end_inset
21213
21214
21215 \begin_inset Note Note
21216 status collapsed
21217
21218 \begin_layout Plain Layout
21219
21220 \lang english
21221 go back to the default
21222 \end_layout
21223
21224 \end_inset
21225
21226
21227 \end_layout
21228
21229 \begin_layout Subsubsection
21230
21231 \lang english
21232 Column Separation
21233 \end_layout
21234
21235 \begin_layout Standard
21236
21237 \lang english
21238 The width of the columns is automatically calculated, but you can modify
21239  the space between the columns.
21240  This is done by changing the length 
21241 \series bold
21242
21243 \backslash
21244 columnsep
21245 \series default
21246 .
21247  Its predefined value is 10
21248 \begin_inset space \thinspace{}
21249 \end_inset
21250
21251 pt.
21252  Here is an example where 
21253 \series bold
21254
21255 \backslash
21256 columnsep
21257 \series default
21258  is set to 3
21259 \begin_inset space \thinspace{}
21260 \end_inset
21261
21262 cm:
21263 \end_layout
21264
21265 \begin_layout Standard
21266
21267 \lang english
21268 \begin_inset ERT
21269 status open
21270
21271 \begin_layout Plain Layout
21272
21273
21274 \backslash
21275 setlength{
21276 \backslash
21277 columnsep}{3cm}
21278 \end_layout
21279
21280 \end_inset
21281
21282
21283 \end_layout
21284
21285 \begin_layout Begin Multiple Columns
21286
21287 \lang english
21288 2
21289 \end_layout
21290
21291 \begin_layout Standard
21292
21293 \size small
21294 \lang english
21295 My observations of No.
21296 \begin_inset space \space{}
21297 \end_inset
21298
21299 427 Park Lane did little to clear up the problem in which I was interested.
21300  The house was separated from the street by a low wall and railing, the
21301  whole not more than five feet high.
21302  It was perfectly easy, therefore, for anyone to get into the garden, but
21303  the window was entirely inaccessible, since there was no water pipe or
21304  anything which could help the most active man to climb it.
21305  More puzzled than ever, I retraced my steps to Kensington.
21306  I had not been in my study five minutes when the maid entered to say that
21307  a person desired to see me.
21308  To my astonishment it was none other than my strange old book collector,
21309  his sharp, wizened face peering out from a frame of white hair, and his
21310  precious volumes, a dozen of them at least, wedged under his right arm.
21311 \end_layout
21312
21313 \begin_layout End Multiple Columns
21314
21315 \end_layout
21316
21317 \begin_layout Standard
21318
21319 \lang english
21320 \begin_inset ERT
21321 status collapsed
21322
21323 \begin_layout Plain Layout
21324
21325
21326 \backslash
21327 setlength{
21328 \backslash
21329 columnsep}{10pt}
21330 \end_layout
21331
21332 \end_inset
21333
21334
21335 \begin_inset Note Note
21336 status collapsed
21337
21338 \begin_layout Plain Layout
21339
21340 \lang english
21341 go back to the default
21342 \end_layout
21343
21344 \end_inset
21345
21346
21347 \end_layout
21348
21349 \begin_layout Subsubsection
21350
21351 \lang english
21352 Vertical Lines
21353 \end_layout
21354
21355 \begin_layout Standard
21356
21357 \lang english
21358 Between the columns a rule with a width of the length 
21359 \series bold
21360
21361 \backslash
21362 columnseprule
21363 \series default
21364  is placed.
21365  If this rule width is set to 0
21366 \begin_inset space \thinspace{}
21367 \end_inset
21368
21369 pt (this is the default), the rule is suppressed.
21370  In the following example, the line separating the columns is 2
21371 \begin_inset space \thinspace{}
21372 \end_inset
21373
21374 pt wide.
21375 \end_layout
21376
21377 \begin_layout Standard
21378
21379 \lang english
21380 \begin_inset ERT
21381 status open
21382
21383 \begin_layout Plain Layout
21384
21385
21386 \backslash
21387 setlength{
21388 \backslash
21389 columnseprule}{2pt}
21390 \end_layout
21391
21392 \end_inset
21393
21394
21395 \end_layout
21396
21397 \begin_layout Begin Multiple Columns
21398
21399 \lang english
21400 2
21401 \end_layout
21402
21403 \begin_layout Standard
21404
21405 \size small
21406 \lang english
21407 \begin_inset Quotes eld
21408 \end_inset
21409
21410 You're surprised to see me, sir,
21411 \begin_inset Quotes erd
21412 \end_inset
21413
21414  said he, in a strange, croaking voice.
21415 \end_layout
21416
21417 \begin_layout Standard
21418
21419 \size small
21420 \lang english
21421 I acknowledged that I was.
21422 \end_layout
21423
21424 \begin_layout Standard
21425
21426 \size small
21427 \lang english
21428 \begin_inset Quotes eld
21429 \end_inset
21430
21431 Well, I've a conscience, sir, and when I chanced to see you go into this
21432  house, as I came hobbling after you, I thought to myself, I'll just step
21433  in and see that kind gentleman, and tell him that if I was a bit gruff
21434  in my manner there was not any harm meant, and that I am much obliged to
21435  him for picking up my books.
21436 \begin_inset Quotes erd
21437 \end_inset
21438
21439
21440 \end_layout
21441
21442 \begin_layout Standard
21443
21444 \size small
21445 \lang english
21446 \begin_inset Quotes eld
21447 \end_inset
21448
21449 You make too much of a trifle,
21450 \begin_inset Quotes erd
21451 \end_inset
21452
21453  said I.
21454  
21455 \begin_inset Quotes eld
21456 \end_inset
21457
21458 May I ask how you knew who I was?
21459 \begin_inset Quotes erd
21460 \end_inset
21461
21462
21463 \end_layout
21464
21465 \begin_layout Standard
21466
21467 \size small
21468 \lang english
21469 \begin_inset Quotes eld
21470 \end_inset
21471
21472 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
21473  you'll find my little bookshop at the corner of Church Street, and very
21474  happy to see you, I am sure.
21475  Maybe you collect yourself, sir.
21476  Here's 
21477 \noun on
21478 British
21479 \begin_inset space ~
21480 \end_inset
21481
21482 Birds
21483 \noun default
21484 , and 
21485 \noun on
21486 Catullus
21487 \noun default
21488 , and 
21489 \noun on
21490 The Holy War
21491 \noun default
21492 --a bargain, every one of them.
21493  With five volumes you could just fill that gap on that second shelf.
21494  It looks untidy, does it not, sir?
21495 \begin_inset Quotes erd
21496 \end_inset
21497
21498
21499 \end_layout
21500
21501 \begin_layout End Multiple Columns
21502
21503 \end_layout
21504
21505 \begin_layout Standard
21506
21507 \lang english
21508 \begin_inset ERT
21509 status collapsed
21510
21511 \begin_layout Plain Layout
21512
21513
21514 \backslash
21515 setlength{
21516 \backslash
21517 columnseprule}{0pt}
21518 \end_layout
21519
21520 \end_inset
21521
21522
21523 \begin_inset Note Note
21524 status collapsed
21525
21526 \begin_layout Plain Layout
21527
21528 \lang english
21529 go back to the default
21530 \end_layout
21531
21532 \end_inset
21533
21534
21535 \end_layout
21536
21537 \begin_layout Standard
21538 \begin_inset Newpage newpage
21539 \end_inset
21540
21541
21542 \end_layout
21543
21544 \begin_layout Section
21545 標準的でない形の段落
21546 \end_layout
21547
21548 \begin_layout Standard
21549 \begin_inset ERT
21550 status collapsed
21551
21552 \begin_layout Plain Layout
21553
21554
21555 \backslash
21556 begin{sloppypar}
21557 \end_layout
21558
21559 \end_inset
21560
21561
21562 \end_layout
21563
21564 \begin_layout Standard
21565 \begin_inset ERT
21566 status collapsed
21567
21568 \begin_layout Plain Layout
21569
21570
21571 \backslash
21572 newdimen
21573 \backslash
21574 varunit 
21575 \end_layout
21576
21577 \begin_layout Plain Layout
21578
21579
21580 \backslash
21581 setlength{
21582 \backslash
21583 varunit}{4.5in}
21584 \end_layout
21585
21586 \end_inset
21587
21588
21589 \end_layout
21590
21591 \begin_layout Standard
21592 \noindent
21593 \begin_inset ERT
21594 status collapsed
21595
21596 \begin_layout Plain Layout
21597
21598
21599 \backslash
21600 parshape 19 0.45
21601 \backslash
21602 varunit 0.332
21603 \backslash
21604 varunit
21605 \end_layout
21606
21607 \begin_layout Plain Layout
21608
21609 0.40
21610 \backslash
21611 varunit 0.300
21612 \backslash
21613 varunit
21614 \end_layout
21615
21616 \begin_layout Plain Layout
21617
21618 0.35
21619 \backslash
21620 varunit 0.293
21621 \backslash
21622 varunit
21623 \end_layout
21624
21625 \begin_layout Plain Layout
21626
21627 0.30
21628 \backslash
21629 varunit 0.300
21630 \backslash
21631 varunit
21632 \end_layout
21633
21634 \begin_layout Plain Layout
21635
21636 0.25
21637 \backslash
21638 varunit 0.317
21639 \backslash
21640 varunit
21641 \end_layout
21642
21643 \begin_layout Plain Layout
21644
21645 0.20
21646 \backslash
21647 varunit 0.342
21648 \backslash
21649 varunit
21650 \end_layout
21651
21652 \begin_layout Plain Layout
21653
21654 0.15
21655 \backslash
21656 varunit 0.373
21657 \backslash
21658 varunit
21659 \end_layout
21660
21661 \begin_layout Plain Layout
21662
21663 0.10
21664 \backslash
21665 varunit 0.410
21666 \backslash
21667 varunit
21668 \end_layout
21669
21670 \begin_layout Plain Layout
21671
21672 0.05
21673 \backslash
21674 varunit 0.453
21675 \backslash
21676 varunit
21677 \end_layout
21678
21679 \begin_layout Plain Layout
21680
21681 0.00
21682 \backslash
21683 varunit 0.500
21684 \backslash
21685 varunit
21686 \end_layout
21687
21688 \begin_layout Plain Layout
21689
21690 0.05
21691 \backslash
21692 varunit 0.453
21693 \backslash
21694 varunit
21695 \end_layout
21696
21697 \begin_layout Plain Layout
21698
21699 0.10
21700 \backslash
21701 varunit 0.410
21702 \backslash
21703 varunit
21704 \end_layout
21705
21706 \begin_layout Plain Layout
21707
21708 0.15
21709 \backslash
21710 varunit 0.373
21711 \backslash
21712 varunit
21713 \end_layout
21714
21715 \begin_layout Plain Layout
21716
21717 0.20
21718 \backslash
21719 varunit 0.342
21720 \backslash
21721 varunit
21722 \end_layout
21723
21724 \begin_layout Plain Layout
21725
21726 0.25
21727 \backslash
21728 varunit 0.317
21729 \backslash
21730 varunit
21731 \end_layout
21732
21733 \begin_layout Plain Layout
21734
21735 0.30
21736 \backslash
21737 varunit 0.300
21738 \backslash
21739 varunit
21740 \end_layout
21741
21742 \begin_layout Plain Layout
21743
21744 0.35
21745 \backslash
21746 varunit 0.293
21747 \backslash
21748 varunit
21749 \end_layout
21750
21751 \begin_layout Plain Layout
21752
21753 0.40
21754 \backslash
21755 varunit 0.300
21756 \backslash
21757 varunit
21758 \end_layout
21759
21760 \begin_layout Plain Layout
21761
21762 0.45
21763 \backslash
21764 varunit 0.332
21765 \backslash
21766 varunit
21767 \end_layout
21768
21769 \begin_layout Plain Layout
21770
21771 \end_layout
21772
21773 \end_inset
21774
21775 長方形の段落の形を変えたい場合があるでしょう。そういう場合は楽しいTeXコマンド
21776 \family typewriter
21777
21778 \backslash
21779 parshape
21780 \family default
21781 を使いましょう。この例で分かるように適当に行の長さを設定することで好きな形の段落が作れます。馬鹿げているように見えるかもしれませんが、dropped
21782  capitalを最終調整したり、長方形ではない図のまわりを文章で囲ったりするのにこのような手作業が必要なのです。
21783 \end_layout
21784
21785 \begin_layout Standard
21786 \begin_inset VSpace bigskip
21787 \end_inset
21788
21789 文法は
21790 \family typewriter
21791
21792 \backslash
21793 parshape numlines #1indent #1length #2indent #2length \SpecialChar \ldots{}
21794  #nindent #nlength
21795 \family default
21796  です。
21797 \family typewriter
21798 numlines
21799 \family default
21800 は段落をつくる行数です。その段落の本文がこれより短い場合はそこで終わり、長い場合には最後の行の定義がそれ以後も使われます。
21801 \family typewriter
21802 #nindent
21803 \family default
21804
21805 \family typewriter
21806 #nlength
21807 \family default
21808 エントリは左余白からの字下げの量と、字下げされたところからの行の長さを指定します。この形は現在の段落にだけ適応されて、次の段落では通常の形にリセットされます。
21809 \end_layout
21810
21811 \begin_layout Standard
21812 \begin_inset ERT
21813 status collapsed
21814
21815 \begin_layout Plain Layout
21816
21817
21818 \backslash
21819 end{sloppypar}
21820 \end_layout
21821
21822 \end_inset
21823
21824
21825 \end_layout
21826
21827 \begin_layout Bibliography
21828 \begin_inset CommandInset bibitem
21829 LatexCommand bibitem
21830 key "multicol"
21831
21832 \end_inset
21833
21834
21835 \lang english
21836 Documentation of the LaTeX-package
21837 \lang japanese
21838  
21839 \begin_inset CommandInset href
21840 LatexCommand href
21841 name "multicol"
21842 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
21843
21844 \end_inset
21845
21846
21847 \lang english
21848
21849 \begin_inset Index idx
21850 status collapsed
21851
21852 \begin_layout Plain Layout
21853
21854 \lang english
21855 LaTeX-packages ! multicol
21856 \end_layout
21857
21858 \end_inset
21859
21860
21861 \end_layout
21862
21863 \end_body
21864 \end_document