]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
Merge branch 'master' of git.lyx.org:lyx
[lyx.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 \notefontcolor #0000ff
120 \index 索引
121 \shortcut idx
122 \color #008000
123 \end_index
124 \secnumdepth 3
125 \tocdepth 3
126 \paragraph_separation indent
127 \paragraph_indentation default
128 \quotes_language english
129 \papercolumns 1
130 \papersides 2
131 \paperpagestyle headings
132 \tracking_changes false
133 \output_changes false
134 \html_math_output 0
135 \html_css_as_file 0
136 \html_be_strict true
137 \end_header
138
139 \begin_body
140
141 \begin_layout Title
142 LyXの高度な機能
143 \begin_inset Newline newline
144 \end_inset
145
146
147 \begin_inset Newline newline
148 \end_inset
149
150
151 \size large
152 Version 2.0.x
153 \end_layout
154
155 \begin_layout Author
156 LyXプロジェクトチーム
157 \begin_inset Foot
158 status collapsed
159
160 \begin_layout Plain Layout
161 このファイルは主にRichard Heckによって管理されています。コメントをされたい場合や誤りを発見された場合には、LyX文書化メーリングリスト
162 \begin_inset Flex Code
163 status open
164
165 \begin_layout Plain Layout
166 \noindent
167
168 \family typewriter
169 <lyx-docs@lists.lyx.org>
170 \end_layout
171
172 \end_inset
173
174 に英文にてお知らせ下さい。この文書の翻訳は、当初人見光太郎氏が行った貢献に基づいています。
175 \end_layout
176
177 \end_inset
178
179  
180 \end_layout
181
182 \begin_layout Standard
183 \begin_inset CommandInset toc
184 LatexCommand tableofcontents
185
186 \end_inset
187
188
189 \end_layout
190
191 \begin_layout Chapter
192 はじめに
193 \end_layout
194
195 \begin_layout Standard
196 いまお読みの取扱説明書『
197 \emph on
198 LyX拡張機能篇
199 \emph default
200 』は、基本的には『
201 \emph on
202 ユーザーの手引き
203 \emph default
204 』の第二部です。この文書を別部とした理由は、単純に『
205 \emph on
206 ユーザーの手引き
207 \emph default
208 』がすでに大部となっていることと、『
209 \emph on
210 ユーザーの手引き
211 \emph default
212 』が、ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです。一方で、LyXプロジェクトチームは、LyXを各設定ファイルと外部パッケージ
213 によって拡張可能な状態にしておくことを長期的な目標にしています。つまり、あるLaTeXパッケージをサポートしたい場合に、LyX自身に変更を加えることなく、当該パ
214 ッケージ用のレイアウトファイル(ないしモジュール)を作成すればいいようにしているのです。すでにこのような形で、いくつもの新機能がユーザーによって追加されています
215 。この取扱説明書は、そのような形での貢献を文書化する冊子として位置付けられています。
216 \end_layout
217
218 \begin_layout Standard
219 この取扱説明書では、ファックスのサポート・バージョン管理・SGMLサポートのような、正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
220 しています。さらに、LaTeXの強力な機能を直接使って文書を美しく仕上げるための、LaTeXツールやテクニックを述べた章も収録しています。つきつめれば、LyXと
221 はあくまでWYSIWYMたることを企図しているため、LaTeXの全機能の一部へのインタフェースは用意するものの、すべてを用意することはないでしょう。
222 \end_layout
223
224 \begin_layout Standard
225 もし、まだ『
226 \emph on
227 はじめの一歩
228 \emph default
229 』をお読みでなかったら、この取扱説明書から読みはじめるのは誤りです。『
230 \emph on
231 はじめの一歩
232 \emph default
233 』には、全取扱説明書に共通の表記法と書式が説明されていますので、まずそれからお読みください。さらに、この取扱説明書を読もうとする前に、『
234 \emph on
235 ユーザーの手引き
236 \emph default
237 』をよくお読みになって、LyXの全基本機能を習得してください。
238 \end_layout
239
240 \begin_layout Standard
241 この取扱説明書の取り上げられている話題は、LyXがLaTeXにどう関わっているかに強く関係していますので、まず次章では、LyXの内部動作がどうなっているか、Ly
242 Xに希望するLaTeXコードを正確に生成させるにはどうしたらいいかを収録しています。本章は、あきらかに熟練LyXユーザー向けの章となっています。
243 \end_layout
244
245 \begin_layout Chapter
246 LyXとLaTeX
247 \end_layout
248
249 \begin_layout Section
250 LyXはLaTeXをどう使っているか
251 \end_layout
252
253 \begin_layout Standard
254 本章
255 \family roman
256 \series medium
257 \shape up
258 \size normal
259 \emph off
260 \bar no
261 \noun off
262 \color none
263 は、TeX熟練者とLaTeXに興味のある方向けの章です。ここでは、LyXとLaTeXが、印刷可能な出力を生成するのに、どのように協働しているのかを説明します。全
264 取扱説明書中で本章だけは、LaTeXのことを多少なりともご存知であることを前提とします。
265 \end_layout
266
267 \begin_layout Standard
268
269 \family roman
270 \series medium
271 \shape up
272 \size normal
273 \emph off
274 \bar no
275 \noun off
276 \color none
277 かつてLyXは、「LaTeXの
278 \family default
279 \series default
280 \shape default
281 \size default
282 \emph default
283 \bar default
284 \noun default
285 \color inherit
286 WYSIWYM
287 \family roman
288 \series medium
289 \shape up
290 \size normal
291 \emph off
292 \bar no
293 \noun off
294 \color none
295 なフロントエンド」と呼ばれていましたが、いまではこれは正しくありません。LaTeXのフロントエンドは、いくつも出回っています
296 \begin_inset Foot
297 status collapsed
298
299 \begin_layout Plain Layout
300
301 \family roman
302 \series medium
303 \shape up
304 \size normal
305 \emph off
306 \bar no
307 \noun off
308 \color none
309 有名なものとしては、Linux上のTeXmakerとkile、OSX上のTeXshopなどがあります。もちろんviとemacsのLaTeXモードも含まれます。
310 \end_layout
311
312 \end_inset
313
314 。これらは、基本的にLaTeXを走らせる機能を有し、編集中のファイルのエラーを表示する機能を持ったテキストエディタです。LyXも、エディタであり、LaTeXを走
315 らせる機能を有し、ファイル中のエラーを指摘しますが、それ以上にもっともっと多くのことをしてくれます。
316 \family default
317 \series default
318 \shape default
319 \size default
320 \emph default
321 \bar default
322 \noun default
323 \color inherit
324 ひとつには、
325 \family roman
326 \series medium
327 \shape up
328 \size normal
329 \emph off
330 \bar no
331 \noun off
332 \color none
333 LyXを効果的に使うのに、LaTeXの知識が必要とされないことが挙げられます。またLyXは、それ自身、いくつかの拡張をLaTeXに加えています。時間のあるときに
334 でも、いちど以下の手順を試してみてください。まず
335 \family sans
336 \series default
337 \shape default
338 \size default
339 \emph default
340 \bar default
341 \noun default
342 \color inherit
343
344 \begin_inset Flex MenuItem
345 status collapsed
346
347 \begin_layout Plain Layout
348
349 \family sans
350 ファイル
351 \end_layout
352
353 \end_inset
354
355
356 \family roman
357 \series medium
358 \shape up
359 \size normal
360 \emph off
361 \bar no
362 \noun off
363 \color none
364 メニューから
365 \family sans
366 \series default
367 \shape default
368 \size default
369 \emph default
370 \bar default
371 \noun default
372 \color inherit
373
374 \begin_inset Flex MenuItem
375 status collapsed
376
377 \begin_layout Plain Layout
378
379 \family sans
380 エクスポート\SpecialChar \menuseparator
381 LaTeX
382 \end_layout
383
384 \end_inset
385
386
387 \family roman
388 \series medium
389 \shape up
390 \size normal
391 \emph off
392 \bar no
393 \noun off
394 \color none
395 (あるいは
396 \family sans
397 \series default
398 \shape default
399 \size default
400 \emph default
401 \bar default
402 \noun default
403 \color inherit
404
405 \begin_inset Flex MenuItem
406 status collapsed
407
408 \begin_layout Plain Layout
409
410 \family sans
411 表示\SpecialChar \menuseparator
412 ソースを閲覧
413 \end_layout
414
415 \end_inset
416
417
418 \family roman
419 \series medium
420 \shape up
421 \size normal
422 \emph off
423 \bar no
424 \noun off
425 \color none
426 )を選択し、そこから出力される
427 \begin_inset Flex Code
428 status collapsed
429
430 \begin_layout Plain Layout
431
432 \family typewriter
433 .tex
434 \end_layout
435
436 \end_inset
437
438 ファイルのプリアンブルをご覧ください。LyXによって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
439 \family default
440 \series default
441 \shape default
442 \size default
443 \emph default
444 \bar default
445 \noun default
446 \color inherit
447 。これらのマクロは、文書中で使用する機能に応じて、自動的に定義されます。
448 \end_layout
449
450 \begin_layout Standard
451
452 \family roman
453 \series medium
454 \shape up
455 \size normal
456 \emph off
457 \bar no
458 \noun off
459 \color none
460 自動的にLaTeXを実行するコマンドが、以下のようにいくつかあります。
461 \end_layout
462
463 \begin_layout Itemize
464 \begin_inset Flex MenuItem
465 status collapsed
466
467 \begin_layout Plain Layout
468
469 \bar under
470 表示\SpecialChar \menuseparator
471
472 \emph on
473 書式
474 \end_layout
475
476 \end_inset
477
478
479 \end_layout
480
481 \begin_layout Itemize
482
483 \family sans
484 \begin_inset Flex MenuItem
485 status collapsed
486
487 \begin_layout Plain Layout
488
489 \bar under
490 表示\SpecialChar \menuseparator
491 更新\SpecialChar \menuseparator
492
493 \emph on
494 書式
495 \end_layout
496
497 \end_inset
498
499
500 \end_layout
501
502 \begin_layout Itemize
503
504 \family sans
505 \begin_inset Flex MenuItem
506 status collapsed
507
508 \begin_layout Plain Layout
509
510 \bar under
511 ファイル
512 \bar default
513 \SpecialChar \menuseparator
514
515 \bar under
516 印刷
517 \end_layout
518
519 \end_inset
520
521
522 \end_layout
523
524 \begin_layout Itemize
525
526 \family sans
527 \begin_inset Flex MenuItem
528 status collapsed
529
530 \begin_layout Plain Layout
531
532 \bar under
533 ファイル
534 \bar default
535 \SpecialChar \menuseparator
536
537 \bar under
538 ファックス
539 \end_layout
540
541 \end_inset
542
543
544 \end_layout
545
546 \begin_layout Standard
547
548 \family roman
549 \series medium
550 \shape up
551 \size normal
552 \emph off
553 \bar no
554 \noun off
555 \color none
556 これらは、最後にLaTeXを実行してからファイルに変更が加えられた場合のみ、LaTeXを実行します。
557 \end_layout
558
559 \begin_layout Standard
560
561 \family roman
562 \series medium
563 \shape up
564 \size normal
565 \emph off
566 \bar no
567 \noun off
568 \color none
569 LyXが編集中のファイルをLaTeXにかけるとき、LyXは以下の段階をふみます。
570 \end_layout
571
572 \begin_layout Enumerate
573
574 \family roman
575 \series medium
576 \shape up
577 \size normal
578 \emph off
579 \bar no
580 \noun off
581 \color none
582 文書をLaTeXに変換し、ファイルの拡張子を
583 \begin_inset Flex Code
584 status collapsed
585
586 \begin_layout Plain Layout
587
588 \family roman
589 \series medium
590 \shape up
591 \size normal
592 \emph off
593 \bar no
594 \noun off
595 \color none
596 .lyx
597 \end_layout
598
599 \end_inset
600
601 から
602 \begin_inset Flex Code
603 status collapsed
604
605 \begin_layout Plain Layout
606
607 \family roman
608 \series medium
609 \shape up
610 \size normal
611 \emph off
612 \bar no
613 \noun off
614 \color none
615 .tex
616 \end_layout
617
618 \end_inset
619
620 に変えて保存。
621 \end_layout
622
623 \begin_layout Enumerate
624
625 \family roman
626 \series medium
627 \shape up
628 \size normal
629 \emph off
630 \bar no
631 \noun off
632 \color none
633 この
634 \begin_inset Flex Code
635 status collapsed
636
637 \begin_layout Plain Layout
638
639 \family roman
640 \series medium
641 \shape up
642 \size normal
643 \emph off
644 \bar no
645 \noun off
646 \color none
647 .tex
648 \end_layout
649
650 \end_inset
651
652 ファイルに対して(必要に応じて複数回)LaTeXを実行し、LaTeXファイルをコンパイルするのに必要な他のコマンド(
653 \begin_inset Flex Code
654 status collapsed
655
656 \begin_layout Plain Layout
657
658 \family roman
659 \series medium
660 \shape up
661 \size normal
662 \emph off
663 \bar no
664 \noun off
665 \color none
666 bibtex
667 \end_layout
668
669 \end_inset
670
671
672 \begin_inset Flex Code
673 status collapsed
674
675 \begin_layout Plain Layout
676
677 \family roman
678 \series medium
679 \shape up
680 \size normal
681 \emph off
682 \bar no
683 \noun off
684 \color none
685 makeindex
686 \end_layout
687
688 \end_inset
689
690 など)を実行。。
691 \end_layout
692
693 \begin_layout Enumerate
694
695 \family roman
696 \series medium
697 \shape up
698 \size normal
699 \emph off
700 \bar no
701 \noun off
702 \color none
703 もしエラーがあれば、エラーログを表示。
704 \end_layout
705
706 \begin_layout Standard
707
708 \family roman
709 \series medium
710 \shape up
711 \size normal
712 \emph off
713 \bar no
714 \noun off
715 \color none
716 LaTeXを
717 \family sans
718 \series default
719 \shape default
720 \size default
721 \emph default
722 \bar default
723 \noun default
724 \color inherit
725
726 \begin_inset Flex MenuItem
727 status collapsed
728
729 \begin_layout Plain Layout
730
731 \family sans
732 表示\SpecialChar \menuseparator
733 DVI
734 \end_layout
735
736 \end_inset
737
738
739 \family roman
740 \series medium
741 \shape up
742 \size normal
743 \emph off
744 \bar no
745 \noun off
746 \color none
747 を使用して実行した場合には、LyXはこの後、DVIビューアを実行してDVIファイルを表示します。
748 \begin_inset Flex MenuItem
749 status collapsed
750
751 \begin_layout Plain Layout
752
753 \family roman
754 \series medium
755 \shape up
756 \size normal
757 \emph off
758 \bar no
759 \noun off
760 \color none
761 表示\SpecialChar \menuseparator
762 PostScript
763 \end_layout
764
765 \end_inset
766
767 を使用した場合には、LyXはさらに以下の段階をふみます。
768 \end_layout
769
770 \begin_layout Itemize
771
772 \family roman
773 \series medium
774 \shape up
775 \size normal
776 \emph off
777 \bar no
778 \noun off
779 \color none
780 \begin_inset Flex Code
781 status collapsed
782
783 \begin_layout Plain Layout
784
785 \family typewriter
786 dvips
787 \end_layout
788
789 \end_inset
790
791 を実行して、
792 \family default
793 \series default
794 \shape default
795 \size default
796 \emph default
797 \bar default
798 \noun default
799 \color inherit
800 DVI
801 \family roman
802 \series medium
803 \shape up
804 \size normal
805 \emph off
806 \bar no
807 \noun off
808 \color none
809 ファイルをPostScript®
810 \family default
811 \series default
812 \shape default
813 \size default
814 \emph default
815 \bar default
816 \noun default
817 \color inherit
818 に変換。
819 \end_layout
820
821 \begin_layout Itemize
822
823 \family roman
824 \series medium
825 \shape up
826 \size normal
827 \emph off
828 \bar no
829 \noun off
830 \color none
831 \begin_inset Flex Code
832 status collapsed
833
834 \begin_layout Plain Layout
835
836 \family typewriter
837 ghostview
838 \end_layout
839
840 \end_inset
841
842 などのPostScript®ビューアを実行して、PostScript®
843 \family default
844 \series default
845 \shape default
846 \size default
847 \emph default
848 \bar default
849 \noun default
850 \color inherit
851 ファイルを表示。
852 \end_layout
853
854 \begin_layout Standard
855 LyXは、他の書式を表示したりエクスポートしたりする際にも、同様のことを行います。
856 \end_layout
857
858 \begin_layout Section
859 LaTeXファイルをLyXに読み込む
860 \end_layout
861
862 \begin_layout Standard
863 LyXで
864 \family sans
865
866 \begin_inset Flex MenuItem
867 status collapsed
868
869 \begin_layout Plain Layout
870
871 \family sans
872 ファイル\SpecialChar \menuseparator
873 インポート\SpecialChar \menuseparator
874 LaTeX
875 \end_layout
876
877 \end_inset
878
879
880 \family roman
881 \series medium
882 \shape up
883 \size normal
884 \emph off
885 \bar no
886 \noun off
887 \color none
888 コマンドを使用すると、LaTeXファイルを
889 \family default
890 \series default
891 \shape default
892 \size default
893 \emph default
894 \bar default
895 \noun default
896  
897 \family roman
898 \series medium
899 \shape up
900 \size normal
901 \emph off
902 \bar no
903 \noun off
904 LyXにインポートすることができます。このコマンドは、
905 \family typewriter
906 \series default
907 \shape default
908 \size default
909 \emph default
910 \bar default
911 \noun default
912 \color inherit
913
914 \begin_inset Flex Code
915 status collapsed
916
917 \begin_layout Plain Layout
918
919 \family typewriter
920 tex2lyx
921 \end_layout
922
923 \end_inset
924
925
926 \family roman
927 \series medium
928 \shape up
929 \size normal
930 \emph off
931 \bar no
932 \noun off
933 \color none
934 というプログラムを呼び出し、
935 \family typewriter
936 \series default
937 \shape default
938 \size default
939 \emph default
940 \bar default
941 \noun default
942 \color inherit
943
944 \begin_inset Flex Code
945 status collapsed
946
947 \begin_layout Plain Layout
948
949 \family typewriter
950 foo.tex
951 \end_layout
952
953 \end_inset
954
955
956 \family default
957 などというファイルから
958 \begin_inset Flex Code
959 status collapsed
960
961 \begin_layout Plain Layout
962
963 \family typewriter
964 foo.lyx
965 \end_layout
966
967 \end_inset
968
969 を生成します。LyXは、この変換したファイルを開きます
970 \begin_inset Foot
971 status collapsed
972
973 \begin_layout Plain Layout
974 \begin_inset Flex Code
975 status collapsed
976
977 \begin_layout Plain Layout
978 tex2lyx
979 \end_layout
980
981 \end_inset
982
983 は、もちろんコマンドラインから実行することもできます。
984 \end_layout
985
986 \end_inset
987
988
989 \end_layout
990
991 \begin_layout Standard
992
993 \family typewriter
994 \begin_inset Flex Code
995 status collapsed
996
997 \begin_layout Plain Layout
998
999 \family typewriter
1000 tex2lyx
1001 \end_layout
1002
1003 \end_inset
1004
1005
1006 \family roman
1007 \series medium
1008 \shape up
1009 \size normal
1010 \emph off
1011 \bar no
1012 \noun off
1013 \color none
1014 は、文法的に正しいLaTeXファイルのほとんどを変換することができますが、すべてを変換できるわけではありません。
1015 \family typewriter
1016 \series default
1017 \shape default
1018 \size default
1019 \emph default
1020 \bar default
1021 \noun default
1022 \color inherit
1023
1024 \begin_inset Flex Code
1025 status collapsed
1026
1027 \begin_layout Plain Layout
1028
1029 \family typewriter
1030 tex2lyx
1031 \end_layout
1032
1033 \end_inset
1034
1035
1036 \family roman
1037 \series medium
1038 \shape up
1039 \size normal
1040 \emph off
1041 \bar no
1042 \noun off
1043 \color none
1044 は、理解不能な部分はTeXコードボックスの形で残しますので、ファイルを
1045 \family typewriter
1046 \series default
1047 \shape default
1048 \size default
1049 \emph default
1050 \bar default
1051 \noun default
1052 \color inherit
1053
1054 \begin_inset Flex Code
1055 status collapsed
1056
1057 \begin_layout Plain Layout
1058
1059 \family typewriter
1060 tex2lyx
1061 \end_layout
1062
1063 \end_inset
1064
1065
1066 \family roman
1067 \series medium
1068 \shape up
1069 \size normal
1070 \emph off
1071 \bar no
1072 \noun off
1073 \color none
1074 で変換したのち、TeXコードボックスを探して、手動で正しく編集してください。
1075 \end_layout
1076
1077 \begin_layout Standard
1078
1079 \family roman
1080 \series medium
1081 \shape up
1082 \size normal
1083 \emph off
1084 \bar no
1085 \noun off
1086 \color none
1087 TeXコードボックスがなにかご存じなければ、次節をお読みください。
1088 \end_layout
1089
1090 \begin_layout Section
1091 LaTeXコードを挿入する
1092 \begin_inset CommandInset label
1093 LatexCommand label
1094 name "sec:LaTeXコードを挿入する"
1095
1096 \end_inset
1097
1098
1099 \end_layout
1100
1101 \begin_layout Standard
1102
1103 \family roman
1104 \series medium
1105 \shape up
1106 \size normal
1107 \emph off
1108 \bar no
1109 \noun off
1110 \color none
1111 どのLyX文書にもつねにTeXコードを挿入することが可能であるというきわめて単純な理由によって、LaTeXにできることは、つねにLyXでも行うことができます。一
1112 方、LyXは、すべてのLaTeX構成物をLyX内に表示できるわけではなく、将来的にもそうならないでしょう。かりにLaTeXコマンドをLyX文書に挿入する必要が出
1113 てきた場合には、
1114 \begin_inset Flex Code
1115 status collapsed
1116
1117 \begin_layout Plain Layout
1118
1119 \family roman
1120 \series medium
1121 \shape up
1122 \size normal
1123 \emph off
1124 \bar no
1125 \noun off
1126 \color none
1127 TeXコード
1128 \end_layout
1129
1130 \end_inset
1131
1132 ボックスを使用してください。これは、
1133 \family sans
1134 \series default
1135 \shape default
1136 \size default
1137 \emph default
1138 \bar default
1139 \noun default
1140 \color inherit
1141
1142 \begin_inset Flex MenuItem
1143 status collapsed
1144
1145 \begin_layout Plain Layout
1146
1147 \family sans
1148 挿入\SpecialChar \menuseparator
1149 TeXコード
1150 \end_layout
1151
1152 \end_inset
1153
1154
1155 \family roman
1156 \series medium
1157 \shape up
1158 \size normal
1159 \emph off
1160 \bar no
1161 \noun off
1162 \color none
1163 から、文書中に挿入することができます。
1164 \end_layout
1165
1166 \begin_layout Standard
1167 以下は、LaTeXコマンドをLyX文書中に挿入する例です。コードは以下のようになっているとしましょう。
1168 \end_layout
1169
1170 \begin_layout LyX-Code
1171
1172 \backslash
1173 begin{tabular}{ll}
1174 \begin_inset Newline newline
1175 \end_inset
1176
1177
1178 \backslash
1179 begin{minipage}{5cm}
1180 \begin_inset Newline newline
1181 \end_inset
1182
1183 これは、ミニページ環境の例です。
1184 \begin_inset Newline newline
1185 \end_inset
1186
1187 これには、
1188 \begin_inset Newline newline
1189 \end_inset
1190
1191 (フロートでない)図表を
1192 \begin_inset Newline newline
1193 \end_inset
1194
1195 含め、ほとんど何でも
1196 \begin_inset Newline newline
1197 \end_inset
1198
1199 入れることができます。 
1200 \begin_inset Newline newline
1201 \end_inset
1202
1203
1204 \backslash
1205 end{minipage}
1206 \begin_inset Newline newline
1207 \end_inset
1208
1209 &
1210 \begin_inset Newline newline
1211 \end_inset
1212
1213
1214 \backslash
1215 begin{minipage}{5cm}
1216 \begin_inset Newline newline
1217 \end_inset
1218
1219
1220 \backslash
1221 begin{verbatim}
1222 \begin_inset Newline newline
1223 \end_inset
1224
1225
1226 \backslash
1227 begin{minipage}{5cm}
1228 \begin_inset Newline newline
1229 \end_inset
1230
1231 これ...
1232  
1233 \begin_inset Newline newline
1234 \end_inset
1235
1236
1237 \backslash
1238 end{minipage}
1239 \begin_inset Newline newline
1240 \end_inset
1241
1242
1243 \backslash
1244 end{verbatim}
1245 \begin_inset Newline newline
1246 \end_inset
1247
1248
1249 \backslash
1250 end{minipage}
1251 \begin_inset Newline newline
1252 \end_inset
1253
1254
1255 \backslash
1256 end{tabular}
1257 \end_layout
1258
1259 \begin_layout LyX-Code
1260
1261 \end_layout
1262
1263 \begin_layout Standard
1264 上記のテキストを含んだ
1265 \begin_inset Flex Code
1266 status collapsed
1267
1268 \begin_layout Plain Layout
1269 TeXコード
1270 \end_layout
1271
1272 \end_inset
1273
1274 ボックスが、この段落の直後にあります。この取扱説明書をLyX上でご覧になっていれば、TeXコード差込枠のみが見えるはずです。印刷した取扱説明書をご覧であれば、実
1275 際の結果が見れるはずです。
1276 \end_layout
1277
1278 \begin_layout Standard
1279 \begin_inset ERT
1280 status collapsed
1281
1282 \begin_layout Plain Layout
1283
1284
1285 \backslash
1286 begin{tabular}{ll}
1287 \end_layout
1288
1289 \begin_layout Plain Layout
1290
1291
1292 \backslash
1293 begin{minipage}{5cm}
1294 \end_layout
1295
1296 \begin_layout Plain Layout
1297
1298 これは、ミニページ環境の例です。これには、(フロートでない)図表を含め、ほとんど何でも入れることができます。 
1299 \backslash
1300 end{minipage}
1301 \end_layout
1302
1303 \begin_layout Plain Layout
1304
1305 &
1306 \end_layout
1307
1308 \begin_layout Plain Layout
1309
1310
1311 \backslash
1312 begin{minipage}{5cm}
1313 \end_layout
1314
1315 \begin_layout Plain Layout
1316
1317
1318 \backslash
1319 begin{verbatim}
1320 \end_layout
1321
1322 \begin_layout Plain Layout
1323
1324
1325 \backslash
1326 begin{minipage}{5cm}
1327 \end_layout
1328
1329 \begin_layout Plain Layout
1330
1331 これ...
1332  
1333 \backslash
1334 end{minipage}
1335 \end_layout
1336
1337 \begin_layout Plain Layout
1338
1339
1340 \backslash
1341 end{verbatim}
1342 \end_layout
1343
1344 \begin_layout Plain Layout
1345
1346
1347 \backslash
1348 end{minipage}
1349 \end_layout
1350
1351 \begin_layout Plain Layout
1352
1353
1354 \backslash
1355 end{tabular}
1356 \end_layout
1357
1358 \end_inset
1359
1360
1361 \end_layout
1362
1363 \begin_layout Standard
1364
1365 \family roman
1366 \series medium
1367 \shape up
1368 \size normal
1369 \emph off
1370 \bar no
1371 \noun off
1372 \color none
1373 TeXコードを使用する方法に加えて、複雑なLaTeXコードを含む部分を別ファイルとして作成しておき、そのファイルをインクルードするのに
1374 \begin_inset Flex MenuItem
1375 status collapsed
1376
1377 \begin_layout Plain Layout
1378
1379 \family roman
1380 \series medium
1381 \shape up
1382 \size normal
1383 \emph off
1384 \bar no
1385 \noun off
1386 \color none
1387 挿入\SpecialChar \menuseparator
1388 ファイル\SpecialChar \menuseparator
1389 子文書
1390 \end_layout
1391
1392 \end_inset
1393
1394 を使用する方法もあります(取り込みの型として
1395 \begin_inset Flex Code
1396 status collapsed
1397
1398 \begin_layout Plain Layout
1399
1400 \family roman
1401 \series medium
1402 \shape up
1403 \size normal
1404 \emph off
1405 \bar no
1406 \noun off
1407 \color none
1408 Input
1409 \end_layout
1410
1411 \end_inset
1412
1413 を選択しなくてはなりません)。この方法をとる場合には、.texファイルが正しく動作することが
1414 \family default
1415 \series default
1416 \shape default
1417 \size default
1418 \emph on
1419 \bar default
1420 \noun default
1421 \color inherit
1422 確認できている
1423 \family roman
1424 \series medium
1425 \shape up
1426 \size normal
1427 \emph off
1428 \bar no
1429 \noun off
1430 \color none
1431 場合のみに限った方がよいでしょう。さもないと、LaTeXエラーを追跡するたいへんな作業を行わなくてはならなくなります。
1432 \end_layout
1433
1434 \begin_layout Standard
1435
1436 \family roman
1437 \series medium
1438 \shape up
1439 \size normal
1440 \emph off
1441 \bar no
1442 \noun off
1443 \color none
1444 最後に、いくつか強調しておくべきことがあります。
1445 \end_layout
1446
1447 \begin_layout Itemize
1448
1449 \family roman
1450 \series medium
1451 \shape up
1452 \size normal
1453 \emph off
1454 \bar no
1455 \noun off
1456 \color none
1457 LyXは、あなたのLaTeXコードが正しいかどうかを
1458 \family default
1459 \series default
1460 \shape default
1461 \size default
1462 \emph on
1463 \bar default
1464 \noun default
1465 \color inherit
1466 チェックしません
1467 \family roman
1468 \series medium
1469 \shape up
1470 \size normal
1471 \emph off
1472 \bar no
1473 \noun off
1474 \color none
1475
1476 \end_layout
1477
1478 \begin_layout Itemize
1479
1480 \family roman
1481 \series medium
1482 \shape up
1483 \size normal
1484 \emph off
1485 \bar no
1486 \noun off
1487 \color none
1488 車輪の再発明をしないようにご注意ください。
1489 \end_layout
1490
1491 \begin_layout Standard
1492
1493 \family roman
1494 \series medium
1495 \shape up
1496 \size normal
1497 \emph off
1498 \bar no
1499 \noun off
1500 \color none
1501 二番目の点に関して、LyXはひじょうにたくさんの機能を装備しており、その数は増えつづけています。ご自身でLaTeXコードを書かなくてはならないと思い込む前に、L
1502 yXがこれこれの機能をもっていないことを、取扱説明書で確実に確かめてください。さらに世の中には、封筒のラベルから美しい複数ページにわたる表を作るものまで、ありと
1503 あらゆることを行う膨大な数のLaTeXパッケージが存在します。
1504 \family default
1505 \series default
1506 \shape default
1507 \size default
1508 \emph default
1509 \bar default
1510 \noun default
1511 \color inherit
1512 詳細については、
1513 \begin_inset CommandInset href
1514 LatexCommand href
1515 name "CTAN"
1516 target "http://www.ctan.org/"
1517
1518 \end_inset
1519
1520
1521 \family roman
1522 \series medium
1523 \shape up
1524 \size normal
1525 \emph off
1526 \bar no
1527 \noun off
1528 \color none
1529 と第
1530 \begin_inset CommandInset ref
1531 LatexCommand ref
1532 reference "chap:Special-features"
1533
1534 \end_inset
1535
1536 節をご覧ください。
1537 \end_layout
1538
1539 \begin_layout Standard
1540
1541 \family roman
1542 \series medium
1543 \shape up
1544 \size normal
1545 \emph off
1546 \bar no
1547 \noun off
1548 \color none
1549 もし、文書中で例外的に手の込んだことをなさりたければ、かならず良いLaTeX関連書籍を参考とするようにしてください。『
1550 \family default
1551 \series default
1552 \shape default
1553 \size default
1554 \emph on
1555 \bar default
1556 \noun default
1557 \color inherit
1558 ユーザーの手引き
1559 \family roman
1560 \series medium
1561 \shape up
1562 \size normal
1563 \emph off
1564 \bar no
1565 \noun off
1566 \color none
1567 』の参考文献に多くのLaTeX関連書籍が引用されています。
1568 \end_layout
1569
1570 \begin_layout Section
1571 LyXとLaTeXプリアンブル
1572 \end_layout
1573
1574 \begin_layout Subsection
1575 LaTeXプリアンブルについて
1576 \end_layout
1577
1578 \begin_layout Standard
1579
1580 \family roman
1581 \series medium
1582 \shape up
1583 \size normal
1584 \emph off
1585 \bar no
1586 \noun off
1587 \color none
1588 すでにLaTeXについてご存知であれば、ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう。もしご存じなければ、以下の説明で大まかな理解は
1589 得られるはずです。詳しくはLaTeX関連書籍をご参照ください。いずれにしても、以下でLyX文書のLaTeXプリアンブルで何ができるか、または何をする必要がないか
1590 説明をしますので、以下の各要点はお読みになった方が良いでしょう。
1591 \end_layout
1592
1593 \begin_layout Standard
1594
1595 \family roman
1596 \series medium
1597 \shape up
1598 \size normal
1599 \emph off
1600 \bar no
1601 \noun off
1602 \color none
1603 LaTeXプリアンブルは、LaTeX文書のいちばん始め、本文の
1604 \family default
1605 \series default
1606 \shape default
1607 \size default
1608 \emph on
1609 \bar default
1610 \noun default
1611 \color inherit
1612
1613 \family roman
1614 \series medium
1615 \shape up
1616 \size normal
1617 \emph off
1618 \bar no
1619 \noun off
1620 \color none
1621 の部分に来ます。ここでは以下のことを行います。
1622 \end_layout
1623
1624 \begin_layout Itemize
1625
1626 \family roman
1627 \series medium
1628 \shape up
1629 \size normal
1630 \emph off
1631 \bar no
1632 \noun off
1633 \color none
1634 文書クラス(ドキュメントクラス)の宣言。
1635 \begin_inset Newline newline
1636 \end_inset
1637
1638 これはLyXがすでに行ってくれています。もしあなたが熟達したLaTeX使いであり、自作の文書クラスを使いたい場合には、取扱説明書『
1639 \family default
1640 \series default
1641 \shape default
1642 \size default
1643 \emph on
1644 \bar default
1645 \noun default
1646 \color inherit
1647 カスタマイズ篇
1648 \family roman
1649 \series medium
1650 \shape up
1651 \size normal
1652 \emph off
1653 \bar no
1654 \noun off
1655 \color none
1656 』をご覧になれば、LyXに自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります。
1657 \end_layout
1658
1659 \begin_layout Itemize
1660
1661 \family roman
1662 \series medium
1663 \shape up
1664 \size normal
1665 \emph off
1666 \bar no
1667 \noun off
1668 \color none
1669 パッケージ使用の宣言。
1670 \begin_inset Newline newline
1671 \end_inset
1672
1673 LaTeXパッケージは、パッケージがプリアンブルで宣言された場合のみ、文書中で利用可能となる、追加コマンド群を提供します。例えば
1674 \family typewriter
1675 \series default
1676 \shape default
1677 \size default
1678 \emph default
1679 \bar default
1680 \noun default
1681 \color inherit
1682
1683 \family roman
1684 \series medium
1685 \shape up
1686 \size normal
1687 \emph off
1688 \bar no
1689 \noun off
1690 \color none
1691
1692 \begin_inset Flex Code
1693 status collapsed
1694
1695 \begin_layout Plain Layout
1696
1697 \family typewriter
1698 indentfirst
1699 \end_layout
1700
1701 \end_inset
1702
1703 パッケージは、すべての段落の最初の行を字下げします。他にも、ラベルや宛名書き、余白設定等の様々なパッケージがあります。
1704 \end_layout
1705
1706 \begin_layout Itemize
1707
1708 \family roman
1709 \series medium
1710 \shape up
1711 \size normal
1712 \emph off
1713 \bar no
1714 \noun off
1715 \color none
1716 カウンタ・変数・長さ・幅の設定。
1717 \begin_inset Newline newline
1718 \end_inset
1719
1720 LaTeXのカウンタと変数の中には、プリアンブルでグローバルに
1721 \family default
1722 \series default
1723 \shape default
1724 \size default
1725 \emph default
1726 \bar default
1727 \noun default
1728 \color inherit
1729 設定
1730 \emph on
1731 しないかぎり
1732 \family roman
1733 \series medium
1734 \shape up
1735 \size normal
1736 \emph off
1737 \bar no
1738 \noun off
1739 \color none
1740 、望んだ効果を持たないものがあります。(文書中で設定したり再設定したりすることのできる変数もあります。)余白は、プリアンブルで設定しなくてはならない変数の代表例
1741 です。他には、箇条書きに付けるラベル書式が挙げられます。じつは、この設定は文書中どこでもできるのですが、プリアンブルでいちどだけ設定するのが望ましい方法です。
1742 \end_layout
1743
1744 \begin_layout Itemize
1745
1746 \family roman
1747 \series medium
1748 \shape up
1749 \size normal
1750 \emph off
1751 \bar no
1752 \noun off
1753 \color none
1754 ユーザー定義コマンドの宣言(
1755 \begin_inset Flex Code
1756 status collapsed
1757
1758 \begin_layout Plain Layout
1759
1760 \family roman
1761 \series medium
1762 \shape up
1763 \size normal
1764 \emph off
1765 \bar no
1766 \noun off
1767 \color none
1768
1769 \backslash
1770 newcommand
1771 \end_layout
1772
1773 \end_inset
1774
1775 または
1776 \begin_inset Flex Code
1777 status collapsed
1778
1779 \begin_layout Plain Layout
1780
1781 \family roman
1782 \series medium
1783 \shape up
1784 \size normal
1785 \emph off
1786 \bar no
1787 \noun off
1788 \color none
1789
1790 \backslash
1791 renewcommand
1792 \end_layout
1793
1794 \end_inset
1795
1796 を使用)。
1797 \begin_inset Newline newline
1798 \end_inset
1799
1800 ユーザー定義コマンドは、文書中で頻出するLaTeXコマンドの短縮形です。このようなコマンドを宣言するには、プリアンブルが適した場所ですが、どこで宣言することも
1801 \family default
1802 \series default
1803 \shape default
1804 \size default
1805 \emph on
1806 \bar default
1807 \noun default
1808 \color inherit
1809 可能
1810 \family roman
1811 \series medium
1812 \shape up
1813 \size normal
1814 \emph off
1815 \bar no
1816 \noun off
1817 \color none
1818 です(もちろんコマンドが初めて使用される場所よりも前です)。あまりないことではありますが、お使いの文書中に生のLaTeXコードがあふれている場合には便利でしょう
1819
1820 \end_layout
1821
1822 \begin_layout Standard
1823
1824 \family roman
1825 \series medium
1826 \shape up
1827 \size normal
1828 \emph off
1829 \bar no
1830 \noun off
1831 \color none
1832 LyXは、その生成する
1833 \begin_inset Flex Code
1834 status collapsed
1835
1836 \begin_layout Plain Layout
1837
1838 \family roman
1839 \series medium
1840 \shape up
1841 \size normal
1842 \emph off
1843 \bar no
1844 \noun off
1845 \color none
1846 .tex
1847 \end_layout
1848
1849 \end_inset
1850
1851 ファイルのプリアンブルに、それ自身の定義を追加します。これによって、LyXの生成するLaTeXファイルの可搬性を高めています。
1852 \end_layout
1853
1854 \begin_layout Subsection
1855 プリアンブルの変更
1856 \end_layout
1857
1858 \begin_layout Standard
1859
1860 \family roman
1861 \series medium
1862 \shape up
1863 \size normal
1864 \emph off
1865 \bar no
1866 \noun off
1867 \color none
1868 LyXがLaTeXファイルのプリアンブルに追加するコマンドは、つねに同じです。これは、LyX自体にパッチを当てないかぎり変更できないようになっています。しかしな
1869 がら、
1870 \begin_inset Flex MenuItem
1871 status collapsed
1872
1873 \begin_layout Plain Layout
1874
1875 \family roman
1876 \series medium
1877 \shape up
1878 \size normal
1879 \emph off
1880 \bar no
1881 \noun off
1882 \color none
1883 文書\SpecialChar \menuseparator
1884 設定
1885 \end_layout
1886
1887 \end_inset
1888
1889 ダイアログの
1890 \begin_inset Flex MenuItem
1891 status collapsed
1892
1893 \begin_layout Plain Layout
1894
1895 \family roman
1896 \series medium
1897 \shape up
1898 \size normal
1899 \emph off
1900 \bar no
1901 \noun off
1902 \color none
1903 LaTeXプリアンブル
1904 \end_layout
1905
1906 \end_inset
1907
1908 の項から、プリアンブルに追加をすることはできます。LyXは、
1909 \family sans
1910 \series default
1911 \shape default
1912 \size default
1913 \emph default
1914 \bar default
1915 \noun default
1916 \color inherit
1917
1918 \begin_inset Flex MenuItem
1919 status collapsed
1920
1921 \begin_layout Plain Layout
1922
1923 \family sans
1924 プリアンブル
1925 \end_layout
1926
1927 \end_inset
1928
1929
1930 \family roman
1931 \series medium
1932 \shape up
1933 \size normal
1934 \emph off
1935 \bar no
1936 \noun off
1937 \color none
1938 ダイアログ内のすべてのものを、LyX埋込みのプリアンブルに付け加えます。ご自身の宣言をプリアンブルに追加する前に、あなたがしようとしていることをLyXがすでにサ
1939 ポートしていないかどうか確認してください(車輪の再発明をしないように、とはすでに申しあげたことです)。
1940 \family default
1941 \series default
1942 \shape default
1943 \size default
1944 \emph default
1945 \bar default
1946 \noun default
1947 \color inherit
1948 また、
1949 \emph on
1950 プリアンブルコードが正しいことを確認してください。
1951 \emph default
1952 LyXは、プリアンブルをチェックしません。
1953 \family roman
1954 \series medium
1955 \shape up
1956 \size normal
1957 \emph off
1958 \bar no
1959 \noun off
1960 \color none
1961 もしエラーがあれば、「
1962 \begin_inset Flex Code
1963 status collapsed
1964
1965 \begin_layout Plain Layout
1966
1967 \family roman
1968 \series medium
1969 \shape up
1970 \size normal
1971 \emph off
1972 \bar no
1973 \noun off
1974 \color none
1975 Missing 
1976 \backslash
1977 begin{document}
1978 \end_layout
1979
1980 \end_inset
1981
1982 」といったエラーが出ることでしょう。このようなエラーが出たときは、プリアンブルを再確認してください。
1983 \end_layout
1984
1985 \begin_layout Subsection
1986
1987 \end_layout
1988
1989 \begin_layout Standard
1990
1991 \family roman
1992 \series medium
1993 \shape up
1994 \size normal
1995 \emph off
1996 \bar no
1997 \noun off
1998 \color none
1999 以下は、プリアンブルに追加できるものとその効果を示す例です。
2000 \end_layout
2001
2002 \begin_layout Subsubsection
2003 例1:オフセット
2004 \end_layout
2005
2006 \begin_layout Standard
2007
2008 \family roman
2009 \series medium
2010 \shape up
2011 \size normal
2012 \emph off
2013 \bar no
2014 \noun off
2015 \color none
2016 LaTeXには
2017 \family default
2018 \series default
2019 \shape default
2020 \size default
2021 \emph default
2022 \bar default
2023 \noun default
2024 \color inherit
2025
2026 \family roman
2027 \series medium
2028 \shape up
2029 \size normal
2030 \emph off
2031 \bar no
2032 \noun off
2033 \color none
2034
2035 \begin_inset Flex Code
2036 status collapsed
2037
2038 \begin_layout Plain Layout
2039
2040 \family typewriter
2041
2042 \backslash
2043 hoffset
2044 \end_layout
2045
2046 \end_inset
2047
2048
2049 \family typewriter
2050 \series default
2051 \shape default
2052 \size default
2053 \emph default
2054 \bar default
2055 \noun default
2056 \color inherit
2057
2058 \begin_inset Flex Code
2059 status collapsed
2060
2061 \begin_layout Plain Layout
2062
2063 \family typewriter
2064
2065 \backslash
2066 voffset
2067 \end_layout
2068
2069 \end_inset
2070
2071
2072 \family roman
2073 \series medium
2074 \shape up
2075 \size normal
2076 \emph off
2077 \bar no
2078 \noun off
2079 \color none
2080 というページ位置を制御する2つの変数があります。その機能は名前から明らかなとおりです。これらの変数は、ラベルを印刷するときなどに便利です。往々にして、印刷用紙の
2081 寸法とそのうち実際に印字可能な範囲は同じではありません。ここに
2082 \begin_inset Flex Code
2083 status collapsed
2084
2085 \begin_layout Plain Layout
2086
2087 \family typewriter
2088
2089 \backslash
2090 hoffset
2091 \end_layout
2092
2093 \end_inset
2094
2095
2096 \family typewriter
2097 \series default
2098 \shape default
2099 \size default
2100 \emph default
2101 \bar default
2102 \noun default
2103 \color inherit
2104
2105 \begin_inset Flex Code
2106 status collapsed
2107
2108 \begin_layout Plain Layout
2109
2110 \family typewriter
2111
2112 \backslash
2113 voffset
2114 \end_layout
2115
2116 \end_inset
2117
2118
2119 \family default
2120 が役立つわけです。
2121 \end_layout
2122
2123 \begin_layout Standard
2124
2125 \family roman
2126 \series medium
2127 \shape up
2128 \size normal
2129 \emph off
2130 \bar no
2131 \noun off
2132 \color none
2133 \begin_inset Flex Code
2134 status collapsed
2135
2136 \begin_layout Plain Layout
2137
2138 \family typewriter
2139
2140 \backslash
2141 hoffset
2142 \end_layout
2143
2144 \end_inset
2145
2146
2147 \family typewriter
2148 \series default
2149 \shape default
2150 \size default
2151 \emph default
2152 \bar default
2153 \noun default
2154 \color inherit
2155
2156 \begin_inset Flex Code
2157 status collapsed
2158
2159 \begin_layout Plain Layout
2160
2161 \family typewriter
2162
2163 \backslash
2164 voffset
2165 \end_layout
2166
2167 \end_inset
2168
2169
2170 \family roman
2171 \series medium
2172 \shape up
2173 \size normal
2174 \emph off
2175 \bar no
2176 \noun off
2177 \color none
2178 の既定値はともに0ポイント、つまりページをシフトしません。残念ながら、DVIドライバによってはつねにページをシフトすることがあるようです。我々には、どうしてその
2179 ようなことをするのか、そしてシスアドがどうしてそれを修正しないのか理解できませんが、もし個人的に管理できないシステムでLyXを使用していて、シスアドがお馬鹿さん
2180 である場合には、
2181 \begin_inset Flex Code
2182 status collapsed
2183
2184 \begin_layout Plain Layout
2185
2186 \family typewriter
2187
2188 \backslash
2189 hoffset
2190 \end_layout
2191
2192 \end_inset
2193
2194
2195 \family typewriter
2196 \series default
2197 \shape default
2198 \size default
2199 \emph default
2200 \bar default
2201 \noun default
2202 \color inherit
2203
2204 \begin_inset Flex Code
2205 status collapsed
2206
2207 \begin_layout Plain Layout
2208
2209 \family typewriter
2210
2211 \backslash
2212 voffset
2213 \end_layout
2214
2215 \end_inset
2216
2217
2218 \family roman
2219 \series medium
2220 \shape up
2221 \size normal
2222 \emph off
2223 \bar no
2224 \noun off
2225 \color none
2226 が役に立ちます。かりに、上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう。その場合は、以下をプリアンブルに追加するとよいでしょう。
2227 \end_layout
2228
2229 \begin_layout LyX-Code
2230
2231 \backslash
2232 setlength{
2233 \backslash
2234 hoffset}{-0.5 in}
2235 \end_layout
2236
2237 \begin_layout LyX-Code
2238
2239 \backslash
2240 setlength{
2241 \backslash
2242 voffset}{-0.5 in}
2243 \end_layout
2244
2245 \begin_layout Standard
2246
2247 \family roman
2248 \series medium
2249 \shape up
2250 \size normal
2251 \emph off
2252 \bar no
2253 \noun off
2254 \color none
2255 これで余白が修正されます。
2256 \end_layout
2257
2258 \begin_layout Subsubsection
2259 例2:ラベル
2260 \end_layout
2261
2262 \begin_layout Standard
2263
2264 \family roman
2265 \series medium
2266 \shape up
2267 \size normal
2268 \emph off
2269 \bar no
2270 \noun off
2271 \color none
2272 いま、たくさんの宛名ラベルを印刷をしたいものとしましょう。ラベルシートを印刷するために便利な
2273 \begin_inset Flex Code
2274 status collapsed
2275
2276 \begin_layout Plain Layout
2277
2278 \family typewriter
2279 labels.sty
2280 \end_layout
2281
2282 \end_inset
2283
2284 というLaTeXパッケージが、お近くのCTANアーカイブで入手可能です。お使いのシステムには、既定ではこのパッケージは導入されていないかもしれません。ご自身でお
2285 確かめください。また、このパッケージの取扱説明書を読まれたいかもしれませんが、それもご自身にお任せします。これは使用例ですので、このパッケージをどう使うかの例だ
2286 けお見せすることにします。
2287 \end_layout
2288
2289 \begin_layout Standard
2290
2291 \family roman
2292 \series medium
2293 \shape up
2294 \size normal
2295 \emph off
2296 \bar no
2297 \noun off
2298 \color none
2299 まず、
2300 \begin_inset Flex Code
2301 status collapsed
2302
2303 \begin_layout Plain Layout
2304
2305 \family sans
2306 article
2307 \end_layout
2308
2309 \end_inset
2310
2311 文書クラスを使用していることをご確認ください。次に、以下のような設定をプリアンブルに追加しなければなりません。
2312 \end_layout
2313
2314 \begin_layout LyX-Code
2315
2316 \backslash
2317 usepackage{labels}
2318 \end_layout
2319
2320 \begin_layout LyX-Code
2321
2322 \backslash
2323 LabelCols=3
2324 \end_layout
2325
2326 \begin_layout LyX-Code
2327
2328 \backslash
2329 LabelRows=7
2330 \end_layout
2331
2332 \begin_layout LyX-Code
2333
2334 \backslash
2335 LeftBorder=8mm
2336 \end_layout
2337
2338 \begin_layout LyX-Code
2339
2340 \backslash
2341 RightBorder=8mm
2342 \end_layout
2343
2344 \begin_layout LyX-Code
2345
2346 \backslash
2347 TopBorder=9mm
2348 \end_layout
2349
2350 \begin_layout LyX-Code
2351
2352 \backslash
2353 BottomBorder=2mm
2354 \end_layout
2355
2356 \begin_layout Standard
2357
2358 \family roman
2359 \series medium
2360 \shape up
2361 \size normal
2362 \emph off
2363 \bar no
2364 \noun off
2365 \color none
2366 これは
2367 \family default
2368 \series default
2369 \shape default
2370 \size default
2371 \emph default
2372 \bar default
2373 \noun default
2374 \color inherit
2375 Avery®ラベルシートのストック5360
2376 \family roman
2377 \series medium
2378 \shape up
2379 \size normal
2380 \emph off
2381 \bar no
2382 \noun off
2383 \color none
2384 番を使用する場合の設定です。これで、各宛名を
2385 \begin_inset Flex Code
2386 status collapsed
2387
2388 \begin_layout Plain Layout
2389
2390 \family typewriter
2391
2392 \backslash
2393 begin{labels}
2394 \end_layout
2395
2396 \end_inset
2397
2398
2399 \family typewriter
2400 \series default
2401 \shape default
2402 \size default
2403 \emph default
2404 \bar default
2405 \noun default
2406 \color inherit
2407
2408 \begin_inset Flex Code
2409 status collapsed
2410
2411 \begin_layout Plain Layout
2412
2413 \family typewriter
2414
2415 \backslash
2416 end{labels}
2417 \end_layout
2418
2419 \end_inset
2420
2421
2422 \family roman
2423 \series medium
2424 \shape up
2425 \size normal
2426 \emph off
2427 \bar no
2428 \noun off
2429 \color none
2430 で囲めば、宛名ラベルの印刷をすることができます。本機能およびその他の機能に関しては、
2431 \begin_inset Flex Code
2432 status collapsed
2433
2434 \begin_layout Plain Layout
2435
2436 \family typewriter
2437 labels.sty
2438 \end_layout
2439
2440 \end_inset
2441
2442 の取扱説明書に説明されています。
2443 \end_layout
2444
2445 \begin_layout Standard
2446
2447 \family roman
2448 \series medium
2449 \shape up
2450 \size normal
2451 \emph off
2452 \bar no
2453 \noun off
2454 \color none
2455 そのうち誰かが、このパッケージを直接サポートするLyXレイアウトファイルを作ってくれるかもしれません。その誰かはあなたかもしれません。
2456 \end_layout
2457
2458 \begin_layout Subsubsection
2459 例3: 段落の字下げ
2460 \end_layout
2461
2462 \begin_layout Standard
2463
2464 \family roman
2465 \series medium
2466 \shape up
2467 \size normal
2468 \emph off
2469 \bar no
2470 \noun off
2471 \color none
2472 アメリカ人は
2473 \family default
2474 \series default
2475 \shape default
2476 \size default
2477 \emph default
2478 \bar default
2479 \noun default
2480 \color inherit
2481
2482 \emph on
2483 すべての
2484 \family roman
2485 \series medium
2486 \shape up
2487 \size normal
2488 \emph off
2489 \bar no
2490 \noun off
2491 \color none
2492 段落の最初の行を字下げするように教育されています。そのために彼らの他の変な習慣と同じく、いつものようにすべての段落の最初の行を下げるまで、アメリカ人はごちゃごち
2493 ゃと文句を言いつづけるのです
2494 \family default
2495 \series default
2496 \shape default
2497 \size default
2498 \emph default
2499 \bar default
2500 \noun default
2501 \color inherit
2502 。(これはユーモアです。(ほんと?)
2503 \emph on
2504 ユーモアですってば
2505 \emph default
2506 。)
2507 \end_layout
2508
2509 \begin_layout Standard
2510
2511 \family roman
2512 \series medium
2513 \shape up
2514 \size normal
2515 \emph off
2516 \bar no
2517 \noun off
2518 \color none
2519 もちろん、これは標準的な組版ルールではありません。書籍では、典型的には、他の段落のあとにくる段落
2520 \family default
2521 \series default
2522 \shape default
2523 \size default
2524 \emph on
2525 \bar default
2526 \noun default
2527 \color inherit
2528 のみ
2529 \family roman
2530 \series medium
2531 \shape up
2532 \size normal
2533 \emph off
2534 \bar no
2535 \noun off
2536 \color none
2537 字下げを行ないます。一行めを字下げをするそもそもの目的は、隣接する段落から区別するためです。したがって、図のあとや節の最初の段落など、先行する段落がない場合には
2538 、字下げをする必要はないのです。
2539 \end_layout
2540
2541 \begin_layout Standard
2542
2543 \family roman
2544 \series medium
2545 \shape up
2546 \size normal
2547 \emph off
2548 \bar no
2549 \noun off
2550 \color none
2551 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!)、そのような小難しいことはかまわずに、いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2552 ルに次の行を加えて下さい。
2553 \end_layout
2554
2555 \begin_layout LyX-Code
2556
2557 \backslash
2558 usepackage{indentfirst}
2559 \end_layout
2560
2561 \begin_layout Standard
2562
2563 \family roman
2564 \series medium
2565 \shape up
2566 \size normal
2567 \emph off
2568 \bar no
2569 \noun off
2570 \color none
2571 もしお使いのTeX頒布版が脳死状態でなければ、このパッケージが入っているはずなので、建国の父たちが意図したように、すべての段落が字下げされます。
2572 \end_layout
2573
2574 \begin_layout Subsubsection
2575 例4:この文書
2576 \end_layout
2577
2578 \begin_layout Standard
2579
2580 \family roman
2581 \series medium
2582 \shape up
2583 \size normal
2584 \emph off
2585 \bar no
2586 \noun off
2587 \color none
2588 この文書のプリアンブルを見てみると、どのような高度な設定ができるか、おおまかな理解が得られるでしょう。また第
2589 \family default
2590 \series default
2591 \shape default
2592 \size default
2593 \emph default
2594 \bar default
2595 \noun default
2596 \color inherit
2597
2598 \begin_inset CommandInset ref
2599 LatexCommand ref
2600 reference "chap:Special-features"
2601
2602 \end_inset
2603
2604
2605 \family roman
2606 \series medium
2607 \shape up
2608 \size normal
2609 \emph off
2610 \bar no
2611 \noun off
2612 \color none
2613 章には、他の例や、LaTeXの各種の「汚い技」があります。
2614 \end_layout
2615
2616 \begin_layout Section
2617 LyXおよびLaTeXのエラー
2618 \end_layout
2619
2620 \begin_layout Standard
2621
2622 \family roman
2623 \series medium
2624 \shape up
2625 \size normal
2626 \emph off
2627 \bar no
2628 \noun off
2629 \color none
2630 LyXがLaTeXを呼び出す際、LyXはLaTeXに、かりにエラーがあったとしても楽観的に無視して先に進むように指示します。その後LyXは、LaTeXの実行ログ
2631 ファイルを事後処理用に使います。ログファイルを分析したのち、LyXはエラーを一覧表示するダイアログを表示します。エラーのうちどれかをクリックすると、LyXファイ
2632 ル中、そのエラーの発生した場所に表示を移動します
2633 \begin_inset Foot
2634 status collapsed
2635
2636 \begin_layout Plain Layout
2637
2638 \family roman
2639 \series medium
2640 \shape up
2641 \size normal
2642 \emph off
2643 \bar no
2644 \noun off
2645 \color none
2646 正確にいうと、通常は、です。ログファイルの分析は難しい仕事ですので、LyXはつねに正しい行に連れて行ってくれるとは限りません。ときには、LaTeXがある行にエラ
2647 ーがあると報告したとしても、実際のエラーはそれよりも前であることもあります。これは、プログラムで閉じ括弧を忘れたときに似ていなくもありません。エラーは表示されま
2648 すが、実際にエラーのある場所よりも後ろでエラーが報告されるのです。
2649 \end_layout
2650
2651 \end_inset
2652
2653
2654 \family default
2655 \series default
2656 \shape default
2657 \size default
2658 \emph default
2659 \bar default
2660 \noun default
2661 \color inherit
2662
2663 \end_layout
2664
2665 \begin_layout Standard
2666
2667 \family roman
2668 \series medium
2669 \shape up
2670 \size normal
2671 \emph off
2672 \bar no
2673 \noun off
2674 \color none
2675 人によっては、ログファイルを直接ご覧になりたいかもしれません。これは、
2676 \begin_inset Flex MenuItem
2677 status collapsed
2678
2679 \begin_layout Plain Layout
2680
2681 \family roman
2682 \series medium
2683 \shape up
2684 \size normal
2685 \emph off
2686 \bar no
2687 \noun off
2688 \color none
2689 文書\SpecialChar \menuseparator
2690 LaTeXログ
2691 \end_layout
2692
2693 \end_inset
2694
2695 で見ることができます。エラーメッセージや警告には、よく見かけるものがいくつかありますので、それらをここに収録しておきます。ここにないエラーや警告に関しては、La
2696 TeX関連の良書を参照してください。
2697 \end_layout
2698
2699 \begin_layout Itemize
2700
2701 \family typewriter
2702 \begin_inset Flex Code
2703 status collapsed
2704
2705 \begin_layout Plain Layout
2706
2707 \family typewriter
2708 LaTeX Warning
2709 \end_layout
2710
2711 \end_inset
2712
2713
2714 \family roman
2715 \series medium
2716 \shape up
2717 \size normal
2718 \emph off
2719 \bar no
2720 \noun off
2721 \color none
2722
2723 \begin_inset Newline newline
2724 \end_inset
2725
2726 これで始まるメッセージは、LaTeXコード自体を「デバッグ」するための警告メッセージです。相互参照や参考文献を追加したり変更した場合に、もう一度LaTeXを実行
2727 する必要があることを知らせるために、このようなメッセージが表示されます。このメッセージは、だいたいにおいて無視しても大丈夫です。
2728 \end_layout
2729
2730 \begin_layout Itemize
2731
2732 \family typewriter
2733 \begin_inset Flex Code
2734 status collapsed
2735
2736 \begin_layout Plain Layout
2737
2738 \family typewriter
2739 LaTeX Font Warning
2740 \end_layout
2741
2742 \end_inset
2743
2744
2745 \family roman
2746 \series medium
2747 \shape up
2748 \size normal
2749 \emph off
2750 \bar no
2751 \noun off
2752 \color none
2753
2754 \begin_inset Newline newline
2755 \end_inset
2756
2757 LaTeXがフォントを見つけられなかったと言う警告メッセージです。多くの場合、このメッセージの後に、LaTeXが使用した代替フォントに関する情報が続きます。これ
2758 も無視して構いません。
2759 \end_layout
2760
2761 \begin_layout Itemize
2762
2763 \family roman
2764 \series medium
2765 \shape up
2766 \size normal
2767 \emph off
2768 \bar no
2769 \noun off
2770 \color none
2771 \begin_inset Flex Code
2772 status collapsed
2773
2774 \begin_layout Plain Layout
2775
2776 \family typewriter
2777 Overfull 
2778 \backslash
2779 hbox
2780 \end_layout
2781
2782 \end_inset
2783
2784
2785 \begin_inset Newline newline
2786 \end_inset
2787
2788 LaTeXは、
2789 \family default
2790 \series default
2791 \shape default
2792 \size default
2793 \emph on
2794 \bar default
2795 \noun default
2796 \color inherit
2797 ほぼどんなときでも
2798 \family roman
2799 \series medium
2800 \shape up
2801 \size normal
2802 \emph off
2803 \bar no
2804 \noun off
2805 \color none
2806 この警告を吐き出します。これは、一行が長すぎて右余白にはみ出してしまったという警告ですが、ほとんどの場合、最終出力を見ても判別できないくらい(せいぜい1ポイント
2807 か2ポイント)です。あるいは1文字か2文字右余白に出ているくらいです。LaTeXは、どんな文書を書いても、少なくとも一つはこのメッセージを出すようです。
2808 \begin_inset Newline newline
2809 \end_inset
2810
2811 このメッセージは無視しても大丈夫です。何か行が長すぎるような問題があれば、目で見ればわかります。出力を目で確認してください
2812 \begin_inset Foot
2813 status collapsed
2814
2815 \begin_layout Plain Layout
2816 あるいは、
2817 \begin_inset Flex MenuItem
2818 status collapsed
2819
2820 \begin_layout Plain Layout
2821 文書\SpecialChar \menuseparator
2822 設定
2823 \end_layout
2824
2825 \end_inset
2826
2827 で「draft」オプションを指定する方法もあります。こうすると、LaTeXは、overfullの発生した行の余白に黒い四角を描画します。
2828 \end_layout
2829
2830 \end_inset
2831
2832
2833 \end_layout
2834
2835 \begin_layout Itemize
2836
2837 \family typewriter
2838 \begin_inset Flex Code
2839 status collapsed
2840
2841 \begin_layout Plain Layout
2842
2843 \family typewriter
2844 Underfull 
2845 \backslash
2846 hbox
2847 \end_layout
2848
2849 \end_inset
2850
2851
2852 \begin_inset Newline newline
2853 \end_inset
2854
2855
2856 \family roman
2857 \series medium
2858 \shape up
2859 \size normal
2860 \emph off
2861 \bar no
2862 \noun off
2863 \color none
2864 これは上の警告と違ってあまり出てきません。なぜだかは分かりませんが、LaTeXは1行を短めにする印字するよりは、長めにする方が好きなようです。
2865 \end_layout
2866
2867 \begin_layout Itemize
2868 \begin_inset Flex Code
2869 status collapsed
2870
2871 \begin_layout Plain Layout
2872
2873 \family typewriter
2874 Overfull 
2875 \backslash
2876 vbox
2877 \end_layout
2878
2879 \end_inset
2880
2881
2882 \family typewriter
2883
2884 \begin_inset Flex Code
2885 status collapsed
2886
2887 \begin_layout Plain Layout
2888
2889 \family typewriter
2890 Underfull 
2891 \backslash
2892 vbox
2893 \end_layout
2894
2895 \end_inset
2896
2897
2898 \family default
2899
2900 \begin_inset Newline newline
2901 \end_inset
2902
2903
2904 \family roman
2905 \series medium
2906 \shape up
2907 \size normal
2908 \emph off
2909 \bar no
2910 \noun off
2911 \color none
2912 ページ区切りに問題があったという警告です。この場合も、出力を目で確認してください。何か問題があれば、見てすぐわかります。
2913 \end_layout
2914
2915 \begin_layout Itemize
2916
2917 \family typewriter
2918 \begin_inset Flex Code
2919 status collapsed
2920
2921 \begin_layout Plain Layout
2922
2923 \family typewriter
2924 LaTeX Error: File 
2925 \begin_inset Quotes els
2926 \end_inset
2927
2928 Xxxx
2929 \begin_inset Quotes ers
2930 \end_inset
2931
2932  not found
2933 \end_layout
2934
2935 \end_inset
2936
2937
2938 \family roman
2939 \series medium
2940 \shape up
2941 \size normal
2942 \emph off
2943 \bar no
2944 \noun off
2945 \color none
2946
2947 \begin_inset Newline newline
2948 \end_inset
2949
2950 ファイル「Xxxx」が、システムに導入されていません。これは通常、文書が必要としているLaTeXパッケージに、導入済でないものがある場合に現れます。プリアンブル
2951 に変更を加えておらず、
2952 \begin_inset Flex Code
2953 status collapsed
2954
2955 \begin_layout Plain Layout
2956
2957 \family typewriter
2958
2959 \backslash
2960 usepackage{}
2961 \end_layout
2962
2963 \end_inset
2964
2965 コマンドも使用していないとすれば、LyXが読み込もうしているパッケージに存在しないものがあるということです。
2966 \family default
2967 \series default
2968 \shape default
2969 \size default
2970 \emph default
2971 \bar default
2972 \noun default
2973 \color inherit
2974
2975 \begin_inset Flex MenuItem
2976 status collapsed
2977
2978 \begin_layout Plain Layout
2979 ヘルプ\SpecialChar \menuseparator
2980 LaTeXの設定
2981 \end_layout
2982
2983 \end_inset
2984
2985
2986 \family roman
2987 \series medium
2988 \shape up
2989 \size normal
2990 \emph off
2991 \bar no
2992 \noun off
2993 \color none
2994 を使用して、LyXが認識しているパッケージの一覧を得てください。このファイルは、(
2995 \begin_inset Flex MenuItem
2996 status collapsed
2997
2998 \begin_layout Plain Layout
2999
3000 \family roman
3001 \series medium
3002 \shape up
3003 \size normal
3004 \emph off
3005 \bar no
3006 \noun off
3007 \color none
3008 ツール\SpecialChar \menuseparator
3009 再設定
3010 \end_layout
3011
3012 \end_inset
3013
3014 を使用して)LyXの再設定を行うたびに更新され、どのパッケージが検出されたか、それらのパッケージが何をするものかを表示します。
3015 \begin_inset Newline newline
3016 \end_inset
3017
3018
3019 \family sans
3020 \series default
3021 \shape default
3022 \size default
3023 \emph default
3024 \bar default
3025 \noun default
3026 \color inherit
3027
3028 \begin_inset Flex Code
3029 status collapsed
3030
3031 \begin_layout Plain Layout
3032
3033 \family sans
3034
3035 \backslash
3036 usepackage{}
3037 \end_layout
3038
3039 \end_inset
3040
3041
3042 \family roman
3043 \series medium
3044 \shape up
3045 \size normal
3046 \emph off
3047 \bar no
3048 \noun off
3049 \color none
3050 コマンドを使っていて、肝心のパッケージが導入されていない場合には、ご自身で導入する必要があります。
3051 \end_layout
3052
3053 \begin_layout Itemize
3054
3055 \family typewriter
3056 \begin_inset Flex Code
3057 status collapsed
3058
3059 \begin_layout Plain Layout
3060
3061 \family typewriter
3062 LaTeX Error: Unknown option
3063 \end_layout
3064
3065 \end_inset
3066
3067
3068 \family roman
3069 \series medium
3070 \shape up
3071 \size normal
3072 \emph off
3073 \bar no
3074 \noun off
3075 \color none
3076
3077 \begin_inset Newline newline
3078 \end_inset
3079
3080 このように始まるエラーメッセージは、パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです。パッケージの取扱説明書をご確認くだ
3081 さい。
3082 \end_layout
3083
3084 \begin_layout Itemize
3085
3086 \family typewriter
3087 \begin_inset Flex Code
3088 status collapsed
3089
3090 \begin_layout Plain Layout
3091
3092 \family typewriter
3093 Undefined control sequence
3094 \end_layout
3095
3096 \end_inset
3097
3098
3099 \family roman
3100 \series medium
3101 \shape up
3102 \size normal
3103 \emph off
3104 \bar no
3105 \noun off
3106 \color none
3107
3108 \begin_inset Newline newline
3109 \end_inset
3110
3111 お使いの文書にLaTeXコードを挿入した際、打ち間違いをしてしまうと、このようなメッセージが表示されます。あるいは、パッケージを読み込ませるのを忘れたのかもしれ
3112 ません。いずれにしても、このメッセージは、あなたが未定義のコマンドを使用したことを示しています。
3113 \end_layout
3114
3115 \begin_layout Standard
3116
3117 \family roman
3118 \series medium
3119 \shape up
3120 \size normal
3121 \emph off
3122 \bar no
3123 \noun off
3124 \color none
3125 これ以外にも、エラーメッセージや警告メッセージがあります。一般に、読んで意味がすぐにわかるものは、LaTeXのメッセージです。何を言っているのかさっぱりわからな
3126 いものもありますが、通常これらは、TeXのメッセージであり、それが何を意味しているのか、どのように解読すればいいのか、
3127 \family default
3128 \series default
3129 \shape default
3130 \size default
3131 \emph on
3132 \bar default
3133 \noun default
3134 \color inherit
3135 まったく
3136 \family roman
3137 \series medium
3138 \shape up
3139 \size normal
3140 \emph off
3141 \bar no
3142 \noun off
3143 \color none
3144 手がかりがありません。誰もわからないのです。
3145 \end_layout
3146
3147 \begin_layout Standard
3148
3149 \family roman
3150 \series medium
3151 \shape up
3152 \size normal
3153 \emph off
3154 \bar no
3155 \noun off
3156 \color none
3157 エラーメッセージが表示された場合は、つねに以下のチェックリストにしたがった方がよいでしょう。
3158 \end_layout
3159
3160 \begin_layout Enumerate
3161
3162 \family roman
3163 \series medium
3164 \shape up
3165 \size normal
3166 \emph off
3167 \bar no
3168 \noun off
3169 \color none
3170 ご自分で挿入したLaTeXコードに打ち間違いがないかどうか確かめる。
3171 \end_layout
3172
3173 \begin_layout Enumerate
3174
3175 \family roman
3176 \series medium
3177 \shape up
3178 \size normal
3179 \emph off
3180 \bar no
3181 \noun off
3182 \color none
3183 打ち間違いがなければ、コマンドを正しく使ったかどうか確かめる。
3184 \end_layout
3185
3186 \begin_layout Enumerate
3187
3188 \family roman
3189 \series medium
3190 \shape up
3191 \size normal
3192 \emph off
3193 \bar no
3194 \noun off
3195 \color none
3196 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には---特に
3197 \begin_inset Flex Code
3198 status collapsed
3199
3200 \begin_layout Plain Layout
3201
3202 \family roman
3203 \series medium
3204 \shape up
3205 \size normal
3206 \emph off
3207 \bar no
3208 \noun off
3209 \color none
3210 Missing 
3211 \backslash
3212 begin{document}
3213 \end_layout
3214
3215 \end_inset
3216
3217 が表示されているならば---、プリアンブルにエラーがあることを意味します。プリアンブルのデバックを行ってください。
3218 \end_layout
3219
3220 \begin_layout Enumerate
3221
3222 \family roman
3223 \series medium
3224 \shape up
3225 \size normal
3226 \emph off
3227 \bar no
3228 \noun off
3229 \color none
3230 プリアンブルに何も追加せず、文書にLaTeXコードをまったく挿入しなかった場合には、LaTeX頒布版自体をまず疑ってください。導入されていないパッケージを探しだ
3231 して、導入してください。
3232 \end_layout
3233
3234 \begin_layout Enumerate
3235
3236 \family roman
3237 \series medium
3238 \shape up
3239 \size normal
3240 \emph off
3241 \bar no
3242 \noun off
3243 \color none
3244 導入されていないパッケージはなかったものとしましょう。LyXを微調整するオプションを使用していますか。特に、手動で
3245 \begin_inset Flex Code
3246 status collapsed
3247
3248 \begin_layout Plain Layout
3249
3250 \family sans
3251 Protected
3252 \begin_inset space ~
3253 \end_inset
3254
3255 Blank
3256 \end_layout
3257
3258 \end_inset
3259
3260
3261 \begin_inset Flex Code
3262 status collapsed
3263
3264 \begin_layout Plain Layout
3265
3266 \family sans
3267 Linebreak
3268 \end_layout
3269
3270 \end_inset
3271
3272
3273 \family sans
3274 \series default
3275 \shape default
3276 \size default
3277 \emph default
3278 \bar default
3279 \noun default
3280 \color inherit
3281
3282 \begin_inset Flex Code
3283 status collapsed
3284
3285 \begin_layout Plain Layout
3286
3287 \family sans
3288 Pagebreak
3289 \end_layout
3290
3291 \end_inset
3292
3293
3294 \family roman
3295 \series medium
3296 \shape up
3297 \size normal
3298 \emph off
3299 \bar no
3300 \noun off
3301 \color none
3302 などをたくさん挿入するなど、微調整オプションを
3303 \family default
3304 \series default
3305 \shape default
3306 \size default
3307 \emph on
3308 \bar default
3309 \noun default
3310 \color inherit
3311 悪用
3312 \family roman
3313 \series medium
3314 \shape up
3315 \size normal
3316 \emph off
3317 \bar no
3318 \noun off
3319 \color none
3320 していませんか。適切な段落環境を使用する代わりに、これらを使用してその場をしのごうとしていませんか。
3321 \end_layout
3322
3323 \begin_layout Enumerate
3324
3325 \family roman
3326 \series medium
3327 \shape up
3328 \size normal
3329 \emph off
3330 \bar no
3331 \noun off
3332 \color none
3333 微調整オプションはまったく使用しておらず、規則に乗っ取って作業していたものとしましょう。何か曲芸のようなことをしようとはしていませんか。数式や表中で、たとえば表
3334 のセルに図を入れるなど、おかしなことをしようとしていませんか。
3335 \end_layout
3336
3337 \begin_layout Enumerate
3338 LaTeXが改行位置を見つけられないほど長い一節がありませんか。既定では、改行するために単語間に空白をたくさん追加することを、LaTeXはかなり嫌います。可能で
3339 あれば、問題が生じないように段落を修正するのが望ましいでしょう。それが難しければ、LaTeXが改行しやすく(sloppy)なるように、その部分を
3340 \family typewriter
3341
3342 \begin_inset Flex Code
3343 status collapsed
3344
3345 \begin_layout Plain Layout
3346
3347 \family typewriter
3348
3349 \backslash
3350 sloppypar
3351 \end_layout
3352
3353 \end_inset
3354
3355
3356 \family default
3357 で囲んでください。
3358 \end_layout
3359
3360 \begin_layout Enumerate
3361
3362 \family roman
3363 \series medium
3364 \shape up
3365 \size normal
3366 \emph off
3367 \bar no
3368 \noun off
3369 \color none
3370 入れ子の階層を深くしすぎていませんか。LyXは、(今のところ)環境の入れ子の階層が制限内にあるかチェックしません。かりに、環境を17段の入れ子にしたりしていたら
3371 、それが原因です(LaTeXの上限は5段です)。
3372 \end_layout
3373
3374 \begin_layout Enumerate
3375
3376 \family roman
3377 \series medium
3378 \shape up
3379 \size normal
3380 \emph off
3381 \bar no
3382 \noun off
3383 \color none
3384 エラーメッセージは発生しないけれども、出力がひどいものとしましょう。図表が幅が広すぎたり長すぎてページに収まらない場合には、
3385 \end_layout
3386
3387 \begin_deeper
3388 \begin_layout Enumerate
3389
3390 \family roman
3391 \series medium
3392 \shape up
3393 \size normal
3394 \emph off
3395 \bar no
3396 \noun off
3397 \color none
3398 図がページに合うように大きさを変える、
3399 \end_layout
3400
3401 \begin_layout Enumerate
3402
3403 \family roman
3404 \series medium
3405 \shape up
3406 \size normal
3407 \emph off
3408 \bar no
3409 \noun off
3410 \color none
3411 表がページに合うように削る、
3412 \end_layout
3413
3414 \begin_layout Standard
3415
3416 \family roman
3417 \series medium
3418 \shape up
3419 \size normal
3420 \emph off
3421 \bar no
3422 \noun off
3423 \color none
3424 などの手段を採る必要があります。
3425 \end_layout
3426
3427 \end_deeper
3428 \begin_layout Enumerate
3429 他に出力におかしいところがあり、曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば、何がおかしいのか確定的なことは言えません。
3430 \end_layout
3431
3432 \begin_layout Standard
3433
3434 \family roman
3435 \series medium
3436 \shape up
3437 \size normal
3438 \emph off
3439 \bar no
3440 \noun off
3441 \color none
3442 これらすべてが役に立たないとすれば、
3443 \family default
3444 \series default
3445 \shape default
3446 \size default
3447 \emph on
3448 \bar default
3449 \noun default
3450 \color inherit
3451 ひょっとしたら
3452 \family roman
3453 \series medium
3454 \shape up
3455 \size normal
3456 \emph off
3457 \bar no
3458 \noun off
3459 \color none
3460 LyXのバグを発見したのかもしれません‥‥。
3461 \end_layout
3462
3463 \begin_layout Chapter
3464 補完ツール
3465 \end_layout
3466
3467 \begin_layout Section
3468 BibTeXによる参照文献のカスタマイズ
3469 \end_layout
3470
3471 \begin_layout Standard
3472 BibTeXの基本的な使用法は、『
3473 \emph on
3474 ユーザーの手引き
3475 \emph default
3476 』の
3477 \emph on
3478 参考文献データベース(BibTeX)
3479 \emph default
3480 の節に説明があります。以下の各小節では、LyXでサポートされている参考文献の特別な機能について説明することとします。
3481 \end_layout
3482
3483 \begin_layout Subsection
3484 他の引用様式
3485 \end_layout
3486
3487 \begin_layout Standard
3488 標準のBibTeXは、引用された著作を参照するのに、([12]のように)数字を使用します。しかし、多くの科学分野で、これとは異なる引用様式が用いられています。も
3489 っともよく見られるのは、著者-出版年様式(例:Knuth 1984a)です。LyXは、この様式を提供する2つのパッケージ
3490 \begin_inset Flex Code
3491 status collapsed
3492
3493 \begin_layout Plain Layout
3494 natbib
3495 \end_layout
3496
3497 \end_inset
3498
3499
3500 \begin_inset Flex Code
3501 status collapsed
3502
3503 \begin_layout Plain Layout
3504 jurabib
3505 \end_layout
3506
3507 \end_inset
3508
3509 をサポートしています。これらのパッケージには、それぞれ長所短所がありますが、ここでは詳細に立ち入る紙幅がありません。単純な著者-出版年様式(あるいは著者-番号)
3510 様式が欲しい場合や、無数にある
3511 \begin_inset Flex Code
3512 status collapsed
3513
3514 \begin_layout Plain Layout
3515 natbib
3516 \end_layout
3517
3518 \end_inset
3519
3520 用スタイルファイルのうちどれかを使用したい場合には、定評のある
3521 \begin_inset Flex Code
3522 status collapsed
3523
3524 \begin_layout Plain Layout
3525 natbib
3526 \end_layout
3527
3528 \end_inset
3529
3530 パッケージがおそらくよい選択でしょう。短縮タイトルによる参照や
3531 \emph on
3532 ibid.
3533 \emph default
3534 など、特別な機能が必要な場合には、
3535 \begin_inset Flex Code
3536 status collapsed
3537
3538 \begin_layout Plain Layout
3539 jurabib
3540 \end_layout
3541
3542 \end_inset
3543
3544 パッケージの利用を考えるとよいかもしれません。
3545 \end_layout
3546
3547 \begin_layout Standard
3548 LyXでの両パッケージの取扱い方は、ほぼ同じです。
3549 \begin_inset Flex MenuItem
3550 status collapsed
3551
3552 \begin_layout Plain Layout
3553 文書\SpecialChar \menuseparator
3554 設定
3555 \end_layout
3556
3557 \end_inset
3558
3559 メニューを開き、
3560 \begin_inset Flex MenuItem
3561 status collapsed
3562
3563 \begin_layout Plain Layout
3564 参考文献
3565 \end_layout
3566
3567 \end_inset
3568
3569 項目から
3570 \begin_inset Flex MenuItem
3571 status collapsed
3572
3573 \begin_layout Plain Layout
3574 Natbib
3575 \end_layout
3576
3577 \end_inset
3578
3579 オプションか
3580 \begin_inset Flex MenuItem
3581 status collapsed
3582
3583 \begin_layout Plain Layout
3584 Jurabib
3585 \end_layout
3586
3587 \end_inset
3588
3589 オプションを選択してください。これらのパッケージによって、引用ダイアログに機能が追加され、参照の様式が選択できるようになります(「Knuth 1984」、「Kn
3590 uth (1984)」、「Knuth, 1984」、「1984」など)。両パッケージは、専用にデザインされたスタイルファイルを必要とすることに注意してください。
3591 両者ともそれ自身のスタイルファイルを同梱していますが、他にもたくさんの追加スタイルファイルがありますし、
3592 \begin_inset Flex Code
3593 status collapsed
3594
3595 \begin_layout Plain Layout
3596 natbib
3597 \end_layout
3598
3599 \end_inset
3600
3601 に至っては、対話的なスタイルファイルビルダーさえ存在します
3602 \begin_inset Foot
3603 status collapsed
3604
3605 \begin_layout Plain Layout
3606 \begin_inset Flex URL
3607 status open
3608
3609 \begin_layout Plain Layout
3610
3611 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3612 \end_layout
3613
3614 \end_inset
3615
3616 をご参照ください。
3617 \end_layout
3618
3619 \end_inset
3620
3621
3622 \end_layout
3623
3624 \begin_layout Subsection
3625 節分けされた参考文献
3626 \end_layout
3627
3628 \begin_layout Standard
3629 場合によっては、参考文献をいくつかの節に分ける必要があることがあります。たとえば、あなたが歴史家であるとすれば、出典と学術文献を分ける機能は、おそらく「必需品」
3630 でさえあります。残念ながら、BibTeX自身ではこのようなことができません。しかし、適切なLaTeXパッケージの助けを借りると、BibTeXをこのような必要性を
3631 満たすように拡張することができます。
3632 \end_layout
3633
3634 \begin_layout Standard
3635 LyXは、このようなパッケージの一つである
3636 \begin_inset Flex Code
3637 status collapsed
3638
3639 \begin_layout Plain Layout
3640 bibtopic
3641 \end_layout
3642
3643 \end_inset
3644
3645
3646 \begin_inset Foot
3647 status collapsed
3648
3649 \begin_layout Plain Layout
3650 \begin_inset Flex URL
3651 status open
3652
3653 \begin_layout Plain Layout
3654
3655 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3656 \end_layout
3657
3658 \end_inset
3659
3660 から入手可能です。
3661 \end_layout
3662
3663 \end_inset
3664
3665 をそのままでサポートします。このパッケージの長所は、(
3666 \begin_inset Flex Code
3667 status collapsed
3668
3669 \begin_layout Plain Layout
3670 multibib
3671 \end_layout
3672
3673 \end_inset
3674
3675 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです。そのかわりに、参考文献の違う節には、その節向けの項目を収録した別の参考文献デ
3676 ータベースを用意する必要があります。たとえば、参考文献を「出典」の節と「学術文献」の節に分けたい場合には、それぞれの参考文献データベース、たとえば
3677 \begin_inset Flex Code
3678 status collapsed
3679
3680 \begin_layout Plain Layout
3681 souces.bib
3682 \end_layout
3683
3684 \end_inset
3685
3686
3687 \begin_inset Flex Code
3688 status collapsed
3689
3690 \begin_layout Plain Layout
3691 scientific.bib
3692 \end_layout
3693
3694 \end_inset
3695
3696 とを作成する必要があります。
3697 \end_layout
3698
3699 \begin_layout Standard
3700 \begin_inset Flex MenuItem
3701 status collapsed
3702
3703 \begin_layout Plain Layout
3704 文書\SpecialChar \menuseparator
3705 設定
3706 \end_layout
3707
3708 \end_inset
3709
3710 を開いて
3711 \begin_inset Flex MenuItem
3712 status collapsed
3713
3714 \begin_layout Plain Layout
3715 参考文献
3716 \end_layout
3717
3718 \end_inset
3719
3720 の下の
3721 \begin_inset Flex MenuItem
3722 status collapsed
3723
3724 \begin_layout Plain Layout
3725 節分けされた参考文献
3726 \end_layout
3727
3728 \end_inset
3729
3730 をチェックしてください。すると、参考文献の各節に一つずつ、複数の参考文献を挿入することができます。上記の例では、BibTeX参考文献
3731 \begin_inset Flex Code
3732 status collapsed
3733
3734 \begin_layout Plain Layout
3735 sources.bib
3736 \end_layout
3737
3738 \end_inset
3739
3740 と二つめの参考文献データベース
3741 \begin_inset Flex Code
3742 status collapsed
3743
3744 \begin_layout Plain Layout
3745 scientific.bib
3746 \end_layout
3747
3748 \end_inset
3749
3750 を挿入します。各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です。くわえて、参考文献の節に、指定したデータベースの「引用されたすべての参照」を載せる
3751 (これが既定です)か、「引用されなかったすべての参照」を載せるか、あるいは「すべての参照」を載せるかを選択することができます。これは、もし参考文献を「本文に引用
3752 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に、便利でありましょう。各節の見出しは、通常の節や小節として入れることができ
3753 ます。
3754 \begin_inset Flex Code
3755 status collapsed
3756
3757 \begin_layout Plain Layout
3758 bibtopic
3759 \end_layout
3760
3761 \end_inset
3762
3763 は、参考文献用の見出しを取り除いてしまいますので、手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください)。
3764 \end_layout
3765
3766 \begin_layout Subsection
3767 複数の参考文献
3768 \end_layout
3769
3770 \begin_layout Standard
3771 文書の節ごとあるいは章ごとの参考文献など、複数の参考文献はBibTeX自身ではサポートされていません。しかしながら、もし若干の
3772 \begin_inset Flex Code
3773 status collapsed
3774
3775 \begin_layout Plain Layout
3776 TeXコード
3777 \end_layout
3778
3779 \end_inset
3780
3781 (第
3782 \begin_inset CommandInset ref
3783 LatexCommand ref
3784 reference "sec:LaTeXコードを挿入する"
3785
3786 \end_inset
3787
3788 節を参照)を利用することを厭わなければ、LyXで節分けされた参考文献を作るのに使用されている(前節を参照)
3789 \begin_inset Flex Code
3790 status collapsed
3791
3792 \begin_layout Plain Layout
3793 bibtopic
3794 \end_layout
3795
3796 \end_inset
3797
3798 パッケージが、この課題を解決する簡単な方法を提供します
3799 \begin_inset Foot
3800 status collapsed
3801
3802 \begin_layout Plain Layout
3803 ほかに、
3804 \begin_inset Flex Code
3805 status collapsed
3806
3807 \begin_layout Plain Layout
3808 chapterbib
3809 \end_layout
3810
3811 \end_inset
3812
3813
3814 \begin_inset Flex Code
3815 status collapsed
3816
3817 \begin_layout Plain Layout
3818 bibunits
3819 \end_layout
3820
3821 \end_inset
3822
3823 パッケージを利用する方法もあります。
3824 \end_layout
3825
3826 \end_inset
3827
3828
3829 \end_layout
3830
3831 \begin_layout Standard
3832 まず
3833 \begin_inset Flex MenuItem
3834 status collapsed
3835
3836 \begin_layout Plain Layout
3837 文書\SpecialChar \menuseparator
3838 設定
3839 \end_layout
3840
3841 \end_inset
3842
3843 に行って
3844 \begin_inset Flex MenuItem
3845 status collapsed
3846
3847 \begin_layout Plain Layout
3848 参考文献
3849 \end_layout
3850
3851 \end_inset
3852
3853 の下の
3854 \begin_inset Flex MenuItem
3855 status collapsed
3856
3857 \begin_layout Plain Layout
3858 節分けされた参考文献
3859 \end_layout
3860
3861 \end_inset
3862
3863 を有効にしてください。つぎに文書中において、参考文献(BibTeX参考文献本体を含む)の入った節を
3864 \begin_inset Flex Code
3865 status collapsed
3866
3867 \begin_layout Plain Layout
3868
3869 \backslash
3870 begin{btUnit}
3871 \end_layout
3872
3873 \end_inset
3874
3875
3876 \begin_inset Flex Code
3877 status collapsed
3878
3879 \begin_layout Plain Layout
3880
3881 \backslash
3882 end{btUnit}
3883 \end_layout
3884
3885 \end_inset
3886
3887 のあいだにはさまなくてはなりません(これらのコマンドはTeXコードとして挿入する必要があります)。参考文献には、現在位置の
3888 \begin_inset Flex Code
3889 status collapsed
3890
3891 \begin_layout Plain Layout
3892 btUnit
3893 \end_layout
3894
3895 \end_inset
3896
3897 において引用されたすべての参照が含まれることになります。
3898 \series bold
3899 (註)
3900 \series default
3901 この方法を用いる場合には、すべての参照はいずれかの
3902 \begin_inset Flex Code
3903 status collapsed
3904
3905 \begin_layout Plain Layout
3906 btUnit
3907 \end_layout
3908
3909 \end_inset
3910
3911 内部になくてはなりません。また、
3912 \begin_inset Flex Code
3913 status collapsed
3914
3915 \begin_layout Plain Layout
3916 btUnit
3917 \end_layout
3918
3919 \end_inset
3920
3921 は入れ子構造にすることができません。
3922 \end_layout
3923
3924 \begin_layout Section
3925 複合文書
3926 \end_layout
3927
3928 \begin_layout Subsection
3929 一般的な操作
3930 \end_layout
3931
3932 \begin_layout Standard
3933 たくさんの節を含んだ大きなファイルで作業をする場合、文書をいくつかのファイルに分割した方が往々にして便利ですし、場合によっては、表部分にはしょっちゅう変更が加え
3934 られるけれども、その前の文章はつねに同じであるようなケースもあるでしょう。このような場合には、複合文書を利用することを、まずご検討ください。たとえば、科学論文は
3935 通常、導入部・所見・結果・議論・結論の五つの節から成ります。これら各節を別々のLyXファイルにして、タイトル・著者・概要・参考文献等と、これら五つのインクルード
3936 \begin_inset Foot
3937 status collapsed
3938
3939 \begin_layout Plain Layout
3940
3941 \series bold
3942 (訳註)
3943 \series default
3944 「取り込む」の意です。原語「include」に対する訳語として、プログラミング用語の「インクルードする」以外に適語がないので、ここではプログラミング用語をそのま
3945 ま使用します。
3946 \end_layout
3947
3948 \end_inset
3949
3950 ファイルを持つ、もう一つ別の「マスター」ファイルを作成するようにすることができます。これらの各ファイルは、単にマスターファイルにインクルードされるだけでなく、単
3951 独でも出力したり印刷したりすることのできる完全なLyXファイルであるように注意することが重要です。しかも、これらの各ファイルは、同じ文書クラスでなくてはなりませ
3952 ん。articleクラスとbookクラスを混在させるようなことはなさらないでください。LaTeXファイルをインクルードすることもできますが、このファイルにはプリ
3953 アンブルがあってはなりません(
3954 \family typewriter
3955
3956 \backslash
3957 begin{document}
3958 \family default
3959 行とその前のすべて、および
3960 \family typewriter
3961
3962 \backslash
3963 end{documen
3964 \family default
3965 t}行は削除しておかなければなりません)。さもないと、DVIファイルを作成する際にエラーが発生するでしょう。
3966 \end_layout
3967
3968 \begin_layout Standard
3969 LyXでは、
3970 \family sans
3971 挿入\SpecialChar \menuseparator
3972 ファイル\SpecialChar \menuseparator
3973 子文書
3974 \family default
3975 で簡単にファイルをインクルードすることができます。このメニューを選んでクリックすると、カーソルの現在位置に小さな枠が挿入されます。この枠をクリックすると、ダイア
3976 ログが現れるので、そこでインクルードするファイルとインクルード方法を選択することができます。
3977 \end_layout
3978
3979 \begin_layout Standard
3980 ファイル選択ボックスは、いまや自明でしょう。インクルード方法には、「include」・「input」・「verbatim」の三つがあります。「include」と
3981 「input」の違いは、正確にはLaTeXの達人にしか意味のないものですが、ほとんどの人にとって意味のある違いといえば、「include」されたファイルは新規頁
3982 から組版されるのに対し、「input」されたファイルは現在のページから組版される点です。
3983 \end_layout
3984
3985 \begin_layout Standard
3986 一般に、マスターファイルは、組版前に完全なLaTeXファイルに変換されますが、インクルードされるファイルは、プリアンブル情報をまったく持たないLaTeXファイル
3987 に変換されます。
3988 \end_layout
3989
3990 \begin_layout Standard
3991 「verbatim」インクルードファイルでは、ファイルの内容がそのまま(つまり「
3992 \begin_inset Flex Code
3993 status collapsed
3994
3995 \begin_layout Plain Layout
3996 verbatim
3997 \end_layout
3998
3999 \end_inset
4000
4001 」モードで)固定幅タイプライタフォントで組版されます。通常、このファイルの空白は、通常のLyXでの空白の取扱いとは違って、連続した複数の空白がそのまま出力される
4002 ものの、単なる見えない空白です。ただし、
4003 \family sans
4004
4005 \begin_inset Flex MenuItem
4006 status collapsed
4007
4008 \begin_layout Plain Layout
4009
4010 \family sans
4011 出力の空白に印付けをする
4012 \end_layout
4013
4014 \end_inset
4015
4016
4017 \family default
4018 チェックボックスを有効にすると、空白が存在することを明確にするために空白の印が出力されます。
4019 \end_layout
4020
4021 \begin_layout Subsection
4022 ファイル間の相互参照
4023 \end_layout
4024
4025 \begin_layout Standard
4026 \begin_inset Box Shadowbox
4027 position "t"
4028 hor_pos "c"
4029 has_inner_box 1
4030 inner_pos "t"
4031 use_parbox 0
4032 use_makebox 0
4033 width "100col%"
4034 special "none"
4035 height "1in"
4036 height_special "totalheight"
4037 status open
4038
4039 \begin_layout Plain Layout
4040 この節の内容は、すでに古くなっています。既定のマスター文書についてと、マスターが開いているときに子文書をどう開くかについて記述する必要があります。[[要修正]]
4041 \end_layout
4042
4043 \end_inset
4044
4045
4046 \end_layout
4047
4048 \begin_layout Standard
4049 異なるファイル間に相互参照を設定することも可能です。まず、すべての関係するファイルを開いてください。例として、2つのファイルを扱う場合を考え、各ファイルをA・B
4050 と呼びます。BがAにインクルードされるファイルだとします。Aにラベルを入れて、Bで参照したいとしましょう。文書Bで相互参照ダイアログを開いて、使用する「バッファ
4051 」を選んでください。
4052 \end_layout
4053
4054 \begin_layout Subsection
4055 すべての子文書での参考文献
4056 \end_layout
4057
4058 \begin_layout Standard
4059 \begin_inset Box Shadowbox
4060 position "t"
4061 hor_pos "c"
4062 has_inner_box 1
4063 inner_pos "t"
4064 use_parbox 0
4065 use_makebox 0
4066 width "100col%"
4067 special "none"
4068 height "1in"
4069 height_special "totalheight"
4070 status open
4071
4072 \begin_layout Plain Layout
4073 この節も更新が必要です。この点に関する内容がwikiにあるので、それをここにコピーすることも可か。
4074 \end_layout
4075
4076 \end_inset
4077
4078
4079 \end_layout
4080
4081 \begin_layout Standard
4082 すべての子文書の全文献項目を含んだ参考文献一覧をコピーし、それをコメントに変更してください。このようにすることで、LyXは.bibファイルを見つけることができ、参
4083 考文献一覧を見えるようにせずとも簡単に参照を挿入することができるようになります。
4084 \end_layout
4085
4086 \begin_layout Standard
4087 参考文献一覧がコメントにあるために、LaTeXはそれを使用しないので、参照は[1]のようには表示されないで[?]のように表示されます。ひとつの解決法として、コメ
4088 ントをインクルードするLaTeXパッケージの
4089 \begin_inset Flex Code
4090 status collapsed
4091
4092 \begin_layout Plain Layout
4093 comment
4094 \end_layout
4095
4096 \end_inset
4097
4098 を使用して、ファイルを別々に処理する方法があります。そのためには、すべての子文書のプリアンブルに以下を書き加えてください。
4099 \end_layout
4100
4101 \begin_layout LyX-Code
4102
4103 \backslash
4104 usepackage{comment}
4105 \end_layout
4106
4107 \begin_layout LyX-Code
4108
4109 \backslash
4110 includecomment{comment}
4111 \end_layout
4112
4113 \begin_layout Standard
4114 \begin_inset Flex URL
4115 status collapsed
4116
4117 \begin_layout Plain Layout
4118
4119 http://wiki.lyx.org/FAQ/Unsorted#toc31
4120 \end_layout
4121
4122 \end_inset
4123
4124 も参照してください。
4125 \end_layout
4126
4127 \begin_layout Section
4128 装飾的なヘッダ・フッタ
4129 \end_layout
4130
4131 \begin_layout Standard
4132 既定のページレイアウトは、どちらかといえば素っ気ないものです。
4133 \begin_inset Flex Code
4134 status collapsed
4135
4136 \begin_layout Plain Layout
4137 article
4138 \end_layout
4139
4140 \end_inset
4141
4142 文書クラスの場合には、ページの下の真ん中にページ番号がつくだけです。この取扱説明書はKOMA-scriptのbookクラスなので、すこしは凝ってますが、ほんとう
4143 に着飾るには、『
4144 \emph on
4145 ユーザーの手引き
4146 \emph default
4147 』に述べられているように、文書ページスタイルを「装飾的(fancy)」に設定する必要があります。この節では、望んだとおりの効果を得るために、LaTeXプリアンブ
4148 ルに挿入する必要のあるLaTeXコードについて解説します。
4149 \end_layout
4150
4151 \begin_layout Standard
4152 ページへッダは、「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています。フッタも同様に3つのフィールド
4153 に分類されています。これらのフィールドをもっとも簡単に設定するLaTeXコマンドには、
4154 \family typewriter
4155
4156 \begin_inset Flex Code
4157 status collapsed
4158
4159 \begin_layout Plain Layout
4160
4161 \family typewriter
4162
4163 \backslash
4164 lhead
4165 \end_layout
4166
4167 \end_inset
4168
4169
4170 \family default
4171
4172 \family typewriter
4173
4174 \begin_inset Flex Code
4175 status collapsed
4176
4177 \begin_layout Plain Layout
4178
4179 \family typewriter
4180
4181 \backslash
4182 chead
4183 \end_layout
4184
4185 \end_inset
4186
4187
4188 \family default
4189
4190 \family typewriter
4191
4192 \begin_inset Flex Code
4193 status collapsed
4194
4195 \begin_layout Plain Layout
4196
4197 \family typewriter
4198
4199 \backslash
4200 rhead
4201 \end_layout
4202
4203 \end_inset
4204
4205
4206 \family default
4207
4208 \begin_inset Flex Code
4209 status collapsed
4210
4211 \begin_layout Plain Layout
4212
4213 \backslash
4214 lfoot
4215 \end_layout
4216
4217 \end_inset
4218
4219 などがあります。かりに、各ページの左上端に自分の名前を入れたいものとしましょう。次のようなコマンドをプリアンブルに入れるだけです。
4220 \end_layout
4221
4222 \begin_layout Standard
4223
4224 \family typewriter
4225
4226 \backslash
4227 lhead{物書 はじめ}
4228 \end_layout
4229
4230 \begin_layout Standard
4231 これで自分の名前が左上に現れます。フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には、空の引数を持つコマンドを入
4232 れるだけです。すなわち、
4233 \end_layout
4234
4235 \begin_layout Standard
4236
4237 \family typewriter
4238
4239 \backslash
4240 cfoot{}
4241 \begin_inset Newline newline
4242 \end_inset
4243
4244
4245 \family default
4246 とします。
4247 \end_layout
4248
4249 \begin_layout Standard
4250 もっと美しくしてみましょう。節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ、ページ番号を(4ページのように)右上に、自分の名前を左下に、日
4251 付を右下に入れます。以下のコマンドをプリアンブルに入れます。
4252 \end_layout
4253
4254 \begin_layout Standard
4255
4256 \family typewriter
4257
4258 \backslash
4259 lhead{第
4260 \backslash
4261 thesection 節}
4262 \end_layout
4263
4264 \begin_layout Standard
4265
4266 \family typewriter
4267
4268 \backslash
4269 chead{}
4270 \end_layout
4271
4272 \begin_layout Standard
4273
4274 \family typewriter
4275
4276 \backslash
4277 rhead{
4278 \backslash
4279 thepage ページ}
4280 \end_layout
4281
4282 \begin_layout Standard
4283
4284 \family typewriter
4285
4286 \backslash
4287 lfoot{物書 はじめ}
4288 \end_layout
4289
4290 \begin_layout Standard
4291
4292 \family typewriter
4293
4294 \backslash
4295 cfoot{}
4296 \end_layout
4297
4298 \begin_layout Standard
4299
4300 \family typewriter
4301
4302 \backslash
4303 rfoot{
4304 \backslash
4305 today}
4306 \end_layout
4307
4308 \begin_layout Standard
4309 コマンド
4310 \family typewriter
4311
4312 \begin_inset Flex Code
4313 status collapsed
4314
4315 \begin_layout Plain Layout
4316
4317 \family typewriter
4318
4319 \backslash
4320 thesecti
4321 \family default
4322 o
4323 \family typewriter
4324 n
4325 \end_layout
4326
4327 \end_inset
4328
4329
4330 \family default
4331
4332 \begin_inset Flex Code
4333 status collapsed
4334
4335 \begin_layout Plain Layout
4336
4337 \family typewriter
4338
4339 \backslash
4340 thepa
4341 \family default
4342 ge
4343 \end_layout
4344
4345 \end_inset
4346
4347 は、それぞれLaTeXの節カウンタおよびページカウンタを取得するもので、これによって現在の節番号とページ番号を印字します。
4348 \begin_inset Flex Code
4349 status collapsed
4350
4351 \begin_layout Plain Layout
4352
4353 \family typewriter
4354
4355 \backslash
4356 tod
4357 \family default
4358 ay
4359 \end_layout
4360
4361 \end_inset
4362
4363 は、今日の日付を印字するものです。
4364 \end_layout
4365
4366 \begin_layout Standard
4367 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます。もし罫線が必要なければ、太さを0にしてください。ヘッダ罫線は、既定では0.4ptの太さであり、
4368 フッタ罫線は0ptです。太さを変更するには、
4369 \family typewriter
4370
4371 \begin_inset Flex Code
4372 status collapsed
4373
4374 \begin_layout Plain Layout
4375
4376 \family typewriter
4377
4378 \backslash
4379 renewcommand{
4380 \backslash
4381 headrulewidth}{0.4pt}
4382 \end_layout
4383
4384 \end_inset
4385
4386
4387 \family default
4388
4389 \family typewriter
4390
4391 \begin_inset Flex Code
4392 status collapsed
4393
4394 \begin_layout Plain Layout
4395
4396 \family typewriter
4397
4398 \backslash
4399 renewcommand{
4400 \backslash
4401 footrulewidth}{0.4pt}
4402 \end_layout
4403
4404 \end_inset
4405
4406
4407 \family default
4408 のようなコマンドを使用してください。
4409 \end_layout
4410
4411 \begin_layout Standard
4412 \begin_inset Flex Code
4413 status collapsed
4414
4415 \begin_layout Plain Layout
4416
4417 \family typewriter
4418
4419 \backslash
4420 thispagestyle{empty}
4421 \end_layout
4422
4423 \end_inset
4424
4425
4426 \begin_inset Flex Code
4427 status collapsed
4428
4429 \begin_layout Plain Layout
4430
4431 \family typewriter
4432
4433 \backslash
4434 thispagestyle{plain}
4435 \end_layout
4436
4437 \end_inset
4438
4439
4440 \begin_inset Flex Code
4441 status collapsed
4442
4443 \begin_layout Plain Layout
4444
4445 \family typewriter
4446
4447 \backslash
4448 thispagestyle{fancy}
4449 \end_layout
4450
4451 \end_inset
4452
4453 のようなコマンドを使えば、各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます。設定を変更したいページに、これらのコマンドをTeXコード
4454 として挿入してください。実は、タイトルページは、その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず、既定でプ
4455 レーン(plain)になるように設定されているのです。
4456 \end_layout
4457
4458 \begin_layout Standard
4459 奇数ページの左上だけに何かを挿入するなど、もっと複雑なコマンドもあるのですが、詳しい解説は
4460 \begin_inset Flex Code
4461 status collapsed
4462
4463 \begin_layout Plain Layout
4464
4465 \family typewriter
4466 fancyhdr
4467 \end_layout
4468
4469 \end_inset
4470
4471 パッケージの取扱説明書をご参照ください(
4472 \begin_inset Flex Code
4473 status collapsed
4474
4475 \begin_layout Plain Layout
4476 fancyhdr.dvi
4477 \end_layout
4478
4479 \end_inset
4480
4481 を探してください)。
4482 \end_layout
4483
4484 \begin_layout Standard
4485 最後の例として、へッダやフッタに画像を挿入できることを取り上げましょう。会社のロゴをページ左上に入れたいものとします。たとえば、
4486 \end_layout
4487
4488 \begin_layout Standard
4489
4490 \family typewriter
4491
4492 \backslash
4493 lhead{
4494 \backslash
4495 resizebox{1in}{!}{
4496 \backslash
4497 includegraphics{logo.eps}}}
4498 \end_layout
4499
4500 \begin_layout Standard
4501 \noindent
4502 とすれば、これを実現できます(文書中に他に画像を挿入していない場合には、
4503 \begin_inset Newline newline
4504 \end_inset
4505
4506
4507 \begin_inset Flex Code
4508 status collapsed
4509
4510 \begin_layout Plain Layout
4511 \noindent
4512
4513 \family typewriter
4514
4515 \backslash
4516 usepackage{graphics}
4517 \end_layout
4518
4519 \end_inset
4520
4521 をプリアンブルに宣言する必要があります)。
4522 \end_layout
4523
4524 \begin_layout Section
4525 箇条書き(記号)ブリットの指定
4526 \begin_inset CommandInset label
4527 LatexCommand label
4528 name "sec:ブリット"
4529
4530 \end_inset
4531
4532
4533 \end_layout
4534
4535 \begin_layout Standard
4536
4537 \noun on
4538 Allan Rae文
4539 \end_layout
4540
4541 \begin_layout Subsection
4542 はじめに
4543 \end_layout
4544
4545 \begin_layout Standard
4546 LyXには、ブリットの形が216個準備されていて、簡単なダイアログから呼び出すことができます。このダイアログを使えば、箇条書き(記号)の各階層で使うブリットの形
4547 を変更することができます。この設定は文書全体に共通なので、段落ごとに別のブリットを指定することはできません
4548 \begin_inset Foot
4549 status collapsed
4550
4551 \begin_layout Plain Layout
4552 正確には可能ですが、手動で行う必要があります。
4553 \end_layout
4554
4555 \end_inset
4556
4557
4558 \end_layout
4559
4560 \begin_layout Subsection
4561 インタフェース
4562 \end_layout
4563
4564 \begin_layout Standard
4565 メニュー項目の
4566 \begin_inset Flex MenuItem
4567 status collapsed
4568
4569 \begin_layout Plain Layout
4570 文書\SpecialChar \menuseparator
4571 設定
4572 \end_layout
4573
4574 \end_inset
4575
4576 を選択してダイアログを開き、
4577 \begin_inset Flex MenuItem
4578 status collapsed
4579
4580 \begin_layout Plain Layout
4581 ブリット
4582 \end_layout
4583
4584 \end_inset
4585
4586 タブを選択してください。
4587 \end_layout
4588
4589 \begin_layout Standard
4590 そのダイアログに、ブリットの形の一覧表があります。
4591 \begin_inset Flex MenuItem
4592 status collapsed
4593
4594 \begin_layout Plain Layout
4595 フォント
4596 \end_layout
4597
4598 \end_inset
4599
4600 と書いてあるドロップダウンメニューで、6つの各ブリット形パネルを切り替えることができます。また、一覧表左の
4601 \begin_inset Flex MenuItem
4602 status collapsed
4603
4604 \begin_layout Plain Layout
4605 階層
4606 \end_layout
4607
4608 \end_inset
4609
4610 パネルは、変更したい階層を選択するものです。
4611 \begin_inset Flex MenuItem
4612 status collapsed
4613
4614 \begin_layout Plain Layout
4615 任意のブリット
4616 \end_layout
4617
4618 \end_inset
4619
4620 では、指定したいLaTeX表現を入力することができます。任意のブリットを指定した場合には、そのコマンドが必要とするパッケージをLaTeXプリアンブルで指定する必
4621 要があります。
4622 \end_layout
4623
4624 \begin_layout Standard
4625 6つのパネルは、それぞれが必要とするパッケージによって分類されています。下記は、フォント名とLaTeXパッケージの対応表です。
4626 \end_layout
4627
4628 \begin_layout Standard
4629 \align center
4630 \begin_inset Tabular
4631 <lyxtabular version="3" rows="7" columns="2">
4632 <features tabularvalignment="middle">
4633 <column alignment="center" valignment="top" width="0pt">
4634 <column alignment="center" valignment="top" width="0pt">
4635 <row>
4636 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4637 \begin_inset Text
4638
4639 \begin_layout Plain Layout
4640 フォント
4641 \end_layout
4642
4643 \end_inset
4644 </cell>
4645 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4646 \begin_inset Text
4647
4648 \begin_layout Plain Layout
4649
4650 \family roman
4651 \series medium
4652 \shape up
4653 \size normal
4654 \emph off
4655 \bar no
4656 \noun off
4657 \color none
4658 必要とするパッケージ
4659 \end_layout
4660
4661 \end_inset
4662 </cell>
4663 </row>
4664 <row>
4665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4666 \begin_inset Text
4667
4668 \begin_layout Plain Layout
4669
4670 \family sans
4671 標準
4672 \end_layout
4673
4674 \end_inset
4675 </cell>
4676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4677 \begin_inset Text
4678
4679 \begin_layout Plain Layout
4680
4681 \series medium
4682 \shape up
4683 \size normal
4684 \emph off
4685 \bar no
4686 \noun off
4687 \color none
4688 LaTeX
4689 \family roman
4690 本体
4691 \end_layout
4692
4693 \end_inset
4694 </cell>
4695 </row>
4696 <row>
4697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4698 \begin_inset Text
4699
4700 \begin_layout Plain Layout
4701
4702 \family sans
4703 \series medium
4704 \shape up
4705 \size normal
4706 \emph off
4707 \bar no
4708 \noun off
4709 \color none
4710 数式
4711 \end_layout
4712
4713 \end_inset
4714 </cell>
4715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4716 \begin_inset Text
4717
4718 \begin_layout Plain Layout
4719
4720 \family typewriter
4721 \series medium
4722 \shape up
4723 \size normal
4724 \emph off
4725 \bar no
4726 \noun off
4727 \color none
4728 amssymb.sty
4729 \end_layout
4730
4731 \end_inset
4732 </cell>
4733 </row>
4734 <row>
4735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4736 \begin_inset Text
4737
4738 \begin_layout Plain Layout
4739
4740 \family sans
4741 \series medium
4742 \shape up
4743 \size normal
4744 \emph off
4745 \bar no
4746 \noun off
4747 \color none
4748 絵文字1
4749 \end_layout
4750
4751 \end_inset
4752 </cell>
4753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4754 \begin_inset Text
4755
4756 \begin_layout Plain Layout
4757
4758 \family typewriter
4759 \series medium
4760 \shape up
4761 \size normal
4762 \emph off
4763 \bar no
4764 \noun off
4765 \color none
4766 pifont.sty
4767 \end_layout
4768
4769 \end_inset
4770 </cell>
4771 </row>
4772 <row>
4773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4774 \begin_inset Text
4775
4776 \begin_layout Plain Layout
4777
4778 \family sans
4779 \series medium
4780 \shape up
4781 \size normal
4782 \emph off
4783 \bar no
4784 \noun off
4785 \color none
4786 絵文字2
4787 \end_layout
4788
4789 \end_inset
4790 </cell>
4791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4792 \begin_inset Text
4793
4794 \begin_layout Plain Layout
4795
4796 \family typewriter
4797 \series medium
4798 \shape up
4799 \size normal
4800 \emph off
4801 \bar no
4802 \noun off
4803 \color none
4804 pifont.sty
4805 \end_layout
4806
4807 \end_inset
4808 </cell>
4809 </row>
4810 <row>
4811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4812 \begin_inset Text
4813
4814 \begin_layout Plain Layout
4815
4816 \family sans
4817 \series medium
4818 \shape up
4819 \size normal
4820 \emph off
4821 \bar no
4822 \noun off
4823 \color none
4824 絵文字3
4825 \end_layout
4826
4827 \end_inset
4828 </cell>
4829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4830 \begin_inset Text
4831
4832 \begin_layout Plain Layout
4833
4834 \family typewriter
4835 \series medium
4836 \shape up
4837 \size normal
4838 \emph off
4839 \bar no
4840 \noun off
4841 \color none
4842 pifont.sty
4843 \end_layout
4844
4845 \end_inset
4846 </cell>
4847 </row>
4848 <row>
4849 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4850 \begin_inset Text
4851
4852 \begin_layout Plain Layout
4853
4854 \family sans
4855 \series medium
4856 \shape up
4857 \size normal
4858 \emph off
4859 \bar no
4860 \noun off
4861 \color none
4862 絵文字4
4863 \end_layout
4864
4865 \end_inset
4866 </cell>
4867 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4868 \begin_inset Text
4869
4870 \begin_layout Plain Layout
4871
4872 \family typewriter
4873 \series medium
4874 \shape up
4875 \size normal
4876 \emph off
4877 \bar no
4878 \noun off
4879 \color none
4880 pifont.sty
4881 \end_layout
4882
4883 \end_inset
4884 </cell>
4885 </row>
4886 </lyxtabular>
4887
4888 \end_inset
4889
4890
4891 \end_layout
4892
4893 \begin_layout Standard
4894 LyXは、ユーザーが導入されていないパッケージのブリットを使用したとしても、警告を発しません。ファイルを閲覧したり印刷したりしようとしたときにLaTeXエラーが
4895 出るようならば、パッケージが導入されていない可能性が大です
4896 \begin_inset Foot
4897 status collapsed
4898
4899 \begin_layout Plain Layout
4900 LyXが、パッケージがなくてもブリットを使用することを許すのは、編集をここで行ったとしても、別のところへエクスポートする可能性があるからです。
4901 \end_layout
4902
4903 \end_inset
4904
4905
4906 \end_layout
4907
4908 \begin_layout Subsection
4909 使用法
4910 \end_layout
4911
4912 \begin_layout Standard
4913 変更したいブリット階層を選んで、ブリットの形と大きさを選んでください。何らかの変更を加えたとしても、LyX上には反映されませんが、文書の表示を行えば確認されます
4914 \begin_inset Foot
4915 status collapsed
4916
4917 \begin_layout Plain Layout
4918 もし
4919 \emph on
4920 本当に
4921 \emph default
4922 段落ごとに異なるブリットの形を使いたいならば、TeXコードを使って少し手を汚す必要があります。この場合も、ブリット選択ダイアログを使えば、さまざまな形のLaTe
4923 Xコードを確認することができるので手助けとなるでしょう。任意に設定した段落をつくるには、以下のような選択肢があります。
4924 \end_layout
4925
4926 \begin_layout Plain Layout
4927 \begin_inset ERT
4928 status open
4929
4930 \begin_layout Plain Layout
4931
4932
4933 \backslash
4934 let
4935 \backslash
4936 savelabelitemi=
4937 \backslash
4938 labelitemi
4939 \end_layout
4940
4941 \end_inset
4942
4943
4944 \end_layout
4945
4946 \begin_layout Plain Layout
4947 \begin_inset ERT
4948 status open
4949
4950 \begin_layout Plain Layout
4951
4952
4953 \backslash
4954 renewcommand
4955 \backslash
4956 labelitemi[0]{
4957 \backslash
4958 small
4959 \backslash
4960 (
4961 \backslash
4962 sharp
4963 \backslash
4964 )}
4965 \end_layout
4966
4967 \end_inset
4968
4969
4970 \end_layout
4971
4972 \begin_layout Itemize
4973 特定の階層の新しいブリット形を指定するには、LaTeXコマンド
4974 \begin_inset Flex Code
4975 status collapsed
4976
4977 \begin_layout Plain Layout
4978
4979 \family typewriter
4980
4981 \backslash
4982 renewcommand{}{}
4983 \end_layout
4984
4985 \end_inset
4986
4987 を使用します。あとで現在のブリット形に戻すことができるように、現在のブリット形を保存しておく必要もあります。ここで使っている箇条書きでは、第1階層のブリットを変
4988 更するために、以下のLaTeXコードが使用されています。
4989 \end_layout
4990
4991 \begin_deeper
4992 \begin_layout LyX-Code
4993
4994 \family typewriter
4995
4996 \backslash
4997 let
4998 \backslash
4999 savelabelitemi=
5000 \backslash
5001 labelitemi
5002 \end_layout
5003
5004 \begin_layout LyX-Code
5005
5006 \family typewriter
5007
5008 \backslash
5009 renewcommand
5010 \backslash
5011 labelitemi[0]{
5012 \backslash
5013 small
5014 \backslash
5015 (
5016 \backslash
5017 sharp
5018 \backslash
5019 )}
5020 \end_layout
5021
5022 \end_deeper
5023 \begin_layout Itemize
5024 箇条書き(記号)の階層は、
5025 \begin_inset Flex Code
5026 status collapsed
5027
5028 \begin_layout Plain Layout
5029
5030 \backslash
5031 labelitem
5032 \end_layout
5033
5034 \end_inset
5035
5036 コマンドの一部にローマ数字で指定されていることに注意してください。
5037 \end_layout
5038
5039 \begin_layout Itemize
5040 \begin_inset ERT
5041 status open
5042
5043 \begin_layout Plain Layout
5044
5045 [
5046 \backslash
5047 (
5048 \backslash
5049 star
5050 \backslash
5051 )]
5052 \end_layout
5053
5054 \end_inset
5055
5056 各項目のブリットを指定するには、角括弧で囲んだブリット形を、行頭に
5057 \begin_inset Flex Code
5058 status collapsed
5059
5060 \begin_layout Plain Layout
5061 TeXコード
5062 \end_layout
5063
5064 \end_inset
5065
5066 として挿入してください。たとえば、この項目の行頭には
5067 \family typewriter
5068
5069 \begin_inset Flex Code
5070 status collapsed
5071
5072 \begin_layout Plain Layout
5073
5074 \family typewriter
5075 [
5076 \backslash
5077 (
5078 \backslash
5079 star
5080 \backslash
5081 )]
5082 \end_layout
5083
5084 \end_inset
5085
5086
5087 \family default
5088 が指定されています。
5089 \end_layout
5090
5091 \begin_layout Plain Layout
5092 \begin_inset ERT
5093 status open
5094
5095 \begin_layout Plain Layout
5096
5097
5098 \backslash
5099 renewcommand
5100 \backslash
5101 labelitemi[0]{
5102 \backslash
5103 savelabelitemi}
5104 \end_layout
5105
5106 \end_inset
5107
5108
5109 \end_layout
5110
5111 \begin_layout Plain Layout
5112 文書全体で使用するブリット形が有効であるようにするために、labelitemを元の設定に戻す必要があります。そのためには、以下のようにします。
5113 \end_layout
5114
5115 \begin_layout LyX-Code
5116
5117 \family typewriter
5118
5119 \backslash
5120 renewcommand
5121 \backslash
5122 labelitemi[0]{
5123 \backslash
5124 savelabelitemi}
5125 \end_layout
5126
5127 \end_inset
5128
5129
5130 \end_layout
5131
5132 \begin_layout Chapter
5133 LyXとインターネット網
5134 \end_layout
5135
5136 \begin_layout Standard
5137 LyX has long supported the export of documents to various web-friendly formats,
5138  such as HTML.
5139  Before verson 2.0, however, HTML export was always accomplished by the use
5140  of external converters.
5141 \begin_inset Foot
5142 status collapsed
5143
5144 \begin_layout Plain Layout
5145 For details on the use of external converters with LyX, see the 
5146 \emph on
5147 Converters
5148 \emph default
5149  section of the Customization manual.
5150 \end_layout
5151
5152 \end_inset
5153
5154  These fall into two large groups: there are converters that use LaTeX as
5155  an intermediate format, such as 
5156 \begin_inset Flex Code
5157 status collapsed
5158
5159 \begin_layout Plain Layout
5160
5161 \lang english
5162 htlatex
5163 \end_layout
5164
5165 \end_inset
5166
5167
5168 \begin_inset Flex Code
5169 status collapsed
5170
5171 \begin_layout Plain Layout
5172
5173 \lang english
5174 html2latex
5175 \end_layout
5176
5177 \end_inset
5178
5179 , and 
5180 \begin_inset Flex Code
5181 status collapsed
5182
5183 \begin_layout Plain Layout
5184
5185 \lang english
5186 plastex
5187 \end_layout
5188
5189 \end_inset
5190
5191 , relying upon LyX to produce the LaTeX; and there is a converter that works
5192  directly on LyX files, 
5193 \begin_inset Flex Code
5194 status collapsed
5195
5196 \begin_layout Plain Layout
5197
5198 \lang english
5199 eLyXer
5200 \end_layout
5201
5202 \end_inset
5203
5204 .
5205  All of these have different advantages and disadvantages.
5206  
5207 \end_layout
5208
5209 \begin_layout Standard
5210 The LaTeX-based converters have the advantage that, in principle, they know
5211  everything about the exported document that LaTeX does.
5212  Such converters do not care, for example, if a certain block of code was
5213  produced by LyX or was Evil Red Text.
5214  These converters know about 
5215 \begin_inset Flex Code
5216 status collapsed
5217
5218 \begin_layout Plain Layout
5219
5220 \lang english
5221 aux
5222 \end_layout
5223
5224 \end_inset
5225
5226  files, counters, and references, and can often make use of the 
5227 \begin_inset Flex Code
5228 status collapsed
5229
5230 \begin_layout Plain Layout
5231
5232 \lang english
5233 bbl
5234 \end_layout
5235
5236 \end_inset
5237
5238  files generated by BibTeX.
5239  On the other hand, LaTeX is a very hard language to parse---it is sometimes
5240  said that only TeX itself understands TeX---and LaTeX-based converters
5241  will often choke on what seem to be quite simple constructs; complex ones
5242  can throw them completely, and as of this writing, for example, the 
5243 \emph on
5244 Embedded Objects
5245 \emph default
5246  manual will not export with 
5247 \begin_inset Flex Code
5248 status collapsed
5249
5250 \begin_layout Plain Layout
5251
5252 \lang english
5253 htlatex
5254 \end_layout
5255
5256 \end_inset
5257
5258 , though the others will.
5259  The other issue concerns how math is handled.
5260  These converters typically convert the formulae into little pictures that
5261  are then linked from the HTML document.
5262  Since these are actually generated by LaTeX, they are accurate.
5263  But they do not scale well, and just getting them to look as if they are
5264  actually meant to be in your document---so that the font sizes seem to
5265  be roughly the same---can be a challenge.
5266 \end_layout
5267
5268 \begin_layout Standard
5269 Alex Fernandez's 
5270 \begin_inset Flex Code
5271 status collapsed
5272
5273 \begin_layout Plain Layout
5274
5275 \lang english
5276 eLyXer
5277 \end_layout
5278
5279 \end_inset
5280
5281  (
5282 \begin_inset CommandInset href
5283 LatexCommand href
5284 name "http://elyxer.nongnu.org/"
5285 target "http://elyxer.nongnu.org/"
5286
5287 \end_inset
5288
5289 ) solves some of these problems.
5290  In particular, the formulae it produces scale perfectly, since it renders
5291  math using a combination of HTML and CSS rather than converting the formulae
5292  to images.
5293  But even moderately complex formula are rendered less well than with 
5294 \begin_inset Flex Code
5295 status collapsed
5296
5297 \begin_layout Plain Layout
5298
5299 \lang english
5300 htlatex
5301 \end_layout
5302
5303 \end_inset
5304
5305 ; this reflects the limitations of HTML.
5306 \begin_inset Foot
5307 status collapsed
5308
5309 \begin_layout Plain Layout
5310 That said, 
5311 \begin_inset Flex Code
5312 status collapsed
5313
5314 \begin_layout Plain Layout
5315
5316 \lang english
5317 eLyXer
5318 \end_layout
5319
5320 \end_inset
5321
5322  can also use jsMath and MathJax for equations, but this setting is only
5323  available globally and requires one to have access to a server that runs
5324  the backend.
5325 \end_layout
5326
5327 \end_inset
5328
5329  More importantly (as of version 1.1.1, at least), 
5330 \begin_inset Flex Code
5331 status collapsed
5332
5333 \begin_layout Plain Layout
5334
5335 \lang english
5336 eLyXer
5337 \end_layout
5338
5339 \end_inset
5340
5341  has limited support for math macros and no support for user-defined paragraph
5342  or character styles.
5343  These limitations make 
5344 \begin_inset Flex Code
5345 status collapsed
5346
5347 \begin_layout Plain Layout
5348
5349 \lang english
5350 eLyXer
5351 \end_layout
5352
5353 \end_inset
5354
5355  unsuitable for many of the documents LyX users produce.
5356  In principle, of course, these problems could be solved, but the LyX developers
5357  have decided to follow a different path and have made LyX itself capable
5358  of writing XHTML, just as it is capable of writing LaTeX, DocBook, and
5359  plaintext.
5360 \end_layout
5361
5362 \begin_layout Standard
5363 As of this writing, XHTML output remains under development and should probably
5364  be regarded as 
5365 \begin_inset Quotes eld
5366 \end_inset
5367
5368 experimental
5369 \begin_inset Quotes erd
5370 \end_inset
5371
5372 .
5373 \begin_inset Foot
5374 status collapsed
5375
5376 \begin_layout Plain Layout
5377 The file 
5378 \begin_inset Flex Code
5379 status collapsed
5380
5381 \begin_layout Plain Layout
5382
5383 \lang english
5384 development/HTML.notes
5385 \end_layout
5386
5387 \end_inset
5388
5389 , which can be found in the LyX source tree or 
5390 \begin_inset CommandInset href
5391 LatexCommand href
5392 name "accessed online"
5393 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5394
5395 \end_inset
5396
5397 , usually contains up-to-date information about the state of XHTML output.
5398  See also the list of XHTML bugs on 
5399 \begin_inset CommandInset href
5400 LatexCommand href
5401 name "the bug tracker"
5402 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"
5403
5404 \end_inset
5405
5406 .
5407 \end_layout
5408
5409 \end_inset
5410
5411  Still, the developers have chosen this approach because it has several
5412  potential advantages over the other two.
5413 \end_layout
5414
5415 \begin_layout Standard
5416 These advantages are primarily due to the fact that the XHTML output routines,
5417  since they are part of LyX, know everything LyX knows about the document
5418  being exported.
5419 \begin_inset Foot
5420 status collapsed
5421
5422 \begin_layout Plain Layout
5423 Another advantage is that, since these routines are internal to LyX, they
5424  are immune to changes in LyX's file format, or to changes in the semantics
5425  of existing insets.
5426 \end_layout
5427
5428 \end_inset
5429
5430  So they know about the table of contents (as displayed in the outline),
5431  about the counters associated with different paragraph styles, and about
5432  user-defined styles.
5433  The XHTML output routines know what LyX knows about internationalization,
5434  too, so they will output 
5435 \begin_inset Quotes eld
5436 \end_inset
5437
5438 Chapter 1
5439 \begin_inset Quotes erd
5440 \end_inset
5441
5442  or 
5443 \begin_inset Quotes eld
5444 \end_inset
5445
5446 Kapitel 1
5447 \begin_inset Quotes erd
5448 \end_inset
5449
5450 , depending upon the language in effect at the time.
5451  
5452 \end_layout
5453
5454 \begin_layout Standard
5455 Quite generally, the output routines know what LyX knows about document
5456  layout, that is, about how the document is to be rendered on screen.
5457  We use this information when we output the document as XHTML.
5458  In particular, LyX 
5459 \emph on
5460 automatically
5461 \emph default
5462  generates CSS style information corresponding to the layout information
5463  it uses to render the document on screen: if section headings are supposed
5464  to be sans-serif and bold as seen in LyX, then (by default) they will be
5465  sans-serif and bold when viewed in a web browser, too.
5466  And this is true not just for pre-defined styles, like Section, but for
5467  any style, including user-defined styles.
5468  Indeed, the XHTML output routines make no distinction between user-defined
5469  paragraph and character styles and LyX's own pre-defined styles: in each
5470  case, everything LyX knows about the styles is contained in the layout
5471  files.
5472  And much the same is true as regards pre-defined textual insets, such as
5473  footnotes, and various custom insets.
5474  
5475 \end_layout
5476
5477 \begin_layout Standard
5478 The result is that XHTML output can be customized and extended in exactly
5479  the same way LaTeX output can be customized and extended: through layout
5480  files and modules.
5481  See chapter five of the 
5482 \emph on
5483 Customization 
5484 \emph default
5485 manual for the details.
5486 \end_layout
5487
5488 \begin_layout Standard
5489 The remainder of this chapter contains more detailed information on XHTML
5490  output, its limitations, and ways to work around those limitations.
5491 \end_layout
5492
5493 \begin_layout Section
5494 Math Output in XHTML
5495 \end_layout
5496
5497 \begin_layout Standard
5498 LyX offers four choices for how math is rendered.
5499  These have various advantages and disadvantages:
5500 \end_layout
5501
5502 \begin_layout Itemize
5503 MathML
5504 \begin_inset Newline newline
5505 \end_inset
5506
5507 MathML is a dialect of XML designed specifically for mathematics on the
5508  web, and it typically renders very well in browsers that support it.
5509  The disadvantage is that not all browsers support MathML, and support is
5510  not complete even in the Gecko-based browsers, such as Firefox.
5511 \begin_inset Newline newline
5512 \end_inset
5513
5514 If LyX is unable to render a formula as MathML---for example, if the formula
5515  uses the 
5516 \begin_inset Flex Code
5517 status collapsed
5518
5519 \begin_layout Plain Layout
5520
5521 \lang english
5522 xymatrix
5523 \end_layout
5524
5525 \end_inset
5526
5527  package or ERT---then it will instead output the formula as an image.
5528  
5529 \end_layout
5530
5531 \begin_layout Itemize
5532 HTML
5533 \begin_inset Newline newline
5534 \end_inset
5535
5536 As mentioned above, 
5537 \begin_inset Flex Code
5538 status collapsed
5539
5540 \begin_layout Plain Layout
5541
5542 \lang english
5543 elyxer
5544 \end_layout
5545
5546 \end_inset
5547
5548  outputs math as HTML, styled by CSS.
5549 \begin_inset Foot
5550 status collapsed
5551
5552 \begin_layout Plain Layout
5553 LyX has borrowed some of the CSS for its HTML output from 
5554 \begin_inset Flex Code
5555 status collapsed
5556
5557 \begin_layout Plain Layout
5558
5559 \lang english
5560 elyxer
5561 \end_layout
5562
5563 \end_inset
5564
5565 .
5566 \end_layout
5567
5568 \end_inset
5569
5570  For simple formulae, this can work quite well, though with more complicated
5571  formulae it tends to break down.
5572  Still, this method has the advantage that it is very widely supported and
5573  so it may be appropriate for documents that contain only a little, fairly
5574  simple math.
5575 \begin_inset Newline newline
5576 \end_inset
5577
5578 If Lyx is unable to render a formula as HTML---for example, if the formula
5579  uses the 
5580 \begin_inset Flex Code
5581 status collapsed
5582
5583 \begin_layout Plain Layout
5584
5585 \lang english
5586 xymatrix
5587 \end_layout
5588
5589 \end_inset
5590
5591  package or ERT---then it will instead output the formula as an image.
5592  
5593 \end_layout
5594
5595 \begin_layout Itemize
5596 Images
5597 \begin_inset Newline newline
5598 \end_inset
5599
5600 Like 
5601 \begin_inset Flex Code
5602 status collapsed
5603
5604 \begin_layout Plain Layout
5605
5606 \lang english
5607 htlatex
5608 \end_layout
5609
5610 \end_inset
5611
5612 , LyX will output formulae as images, the very same images, in fact, that
5613  are used for instant preview.
5614 \begin_inset Foot
5615 status collapsed
5616
5617 \begin_layout Plain Layout
5618 Instant preview does 
5619 \emph on
5620 not 
5621 \emph default
5622 have to be on for images to be output, however.
5623 \end_layout
5624
5625 \end_inset
5626
5627  The advantage to this method is that the images are simply generated by
5628  LaTeX, so they are very accurate.
5629  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5630  so they do not scale terribly well, and one cannot copy them, etc.
5631  (As of this writing, there are also problems about equation numbering.
5632  See 
5633 \begin_inset CommandInset href
5634 LatexCommand href
5635 name "bug 6894"
5636 target "http://www.lyx.org/trac/ticket/6894"
5637
5638 \end_inset
5639
5640 .)
5641 \begin_inset Newline newline
5642 \end_inset
5643
5644 The size of the images can be controlled by setting the 
5645 \begin_inset Quotes eld
5646 \end_inset
5647
5648 Math Images Scaling
5649 \begin_inset Quotes erd
5650 \end_inset
5651
5652  parameter under 
5653 \begin_inset Flex MenuItem
5654 status collapsed
5655
5656 \begin_layout Plain Layout
5657
5658 \lang english
5659 Document\SpecialChar \menuseparator
5660 Settings\SpecialChar \menuseparator
5661 Output
5662 \end_layout
5663
5664 \end_inset
5665
5666 .
5667 \begin_inset Foot
5668 status collapsed
5669
5670 \begin_layout Plain Layout
5671 For those who want to know, this controls the resolution of the image in
5672  dots per inch and is based upon a default of 75 dpi.
5673 \end_layout
5674
5675 \end_inset
5676
5677
5678 \begin_inset Newline newline
5679 \end_inset
5680
5681 If LyX for some reason fails to create an image for a formula (e.g., if a
5682  required LaTeX package is not installed), then it will fall back to outputing
5683  the raw LaTeX.
5684 \end_layout
5685
5686 \begin_layout Itemize
5687 LaTeX
5688 \begin_inset Newline newline
5689 \end_inset
5690
5691 Finally, LyX will happily output math as LaTeX.
5692  As well as being the output of last resort, this method can be used with
5693  such tools as 
5694 \begin_inset CommandInset href
5695 LatexCommand href
5696 name "jsMath"
5697 target "http://www.math.union.edu/~dpvc/jsMath/"
5698
5699 \end_inset
5700
5701 , which uses JavaScript to render LaTeX embedded in HTML documents.
5702  LyX wraps the LaTeX in either a 
5703 \begin_inset Flex Code
5704 status collapsed
5705
5706 \begin_layout Plain Layout
5707
5708 \lang english
5709 span
5710 \end_layout
5711
5712 \end_inset
5713
5714  (for inline formulas) or 
5715 \begin_inset Flex Code
5716 status collapsed
5717
5718 \begin_layout Plain Layout
5719
5720 \lang english
5721 div
5722 \end_layout
5723
5724 \end_inset
5725
5726  (for displayed formulas) with 
5727 \begin_inset Flex Code
5728 status collapsed
5729
5730 \begin_layout Plain Layout
5731
5732 \lang english
5733 class='math'
5734 \end_layout
5735
5736 \end_inset
5737
5738 , as is required for jsMath.
5739 \end_layout
5740
5741 \begin_layout Standard
5742 One of these output methods must be selected under 
5743 \begin_inset Flex MenuItem
5744 status collapsed
5745
5746 \begin_layout Plain Layout
5747
5748 \lang english
5749 Document\SpecialChar \menuseparator
5750 Settings\SpecialChar \menuseparator
5751 Output
5752 \end_layout
5753
5754 \end_inset
5755
5756 .
5757  By default, LyX outputs MathML.
5758  This is a document-wide setting, therefore.
5759 \end_layout
5760
5761 \begin_layout Standard
5762 Eventually, LyX will offer the user the option to select an alternate output
5763  method for a particular inset, say, one that isn't being rendered very
5764  well by MathML.
5765 \begin_inset Foot
5766 status collapsed
5767
5768 \begin_layout Plain Layout
5769 That said, since LyX falls back to images if the inset contains ERT, then
5770  one can force output as an image by putting some harmless ERT into the
5771  math, for example: 
5772 \begin_inset Formula $a=b\relax$
5773 \end_inset
5774
5775 .
5776 \end_layout
5777
5778 \end_inset
5779
5780
5781 \end_layout
5782
5783 \begin_layout Section
5784 Bibliography and Citations
5785 \end_layout
5786
5787 \begin_layout Standard
5788 XHTML output fully supports bibliographies and citations.
5789  
5790 \end_layout
5791
5792 \begin_layout Standard
5793 Citation labels are generated by the same machinery that generates LyX's
5794  on-screen labels, so the labels will look in the output much as they do
5795  in LyX, though better.
5796  If you are using numerical citations, then LyX will output numerical labels,
5797  such as [1] or [17], rather than simply showing the citation key in square
5798  brackets, as it does on-screen.
5799  If you are using author-year citations, then LyX will add lowercase letters
5800  to the years, just as BibTeX does, if it finds more than one citation for
5801  a given author-year combination.
5802  The labels will be printed with the bibliography entries.
5803  Note that there is, at present, no way to customize the appearance of the
5804  labels, for example, to choose between square brackets and parentheses.
5805 \end_layout
5806
5807 \begin_layout Standard
5808 Bibliography output is handled by the same machinery that handles the presentati
5809 on of reference information in the citation dialog, so you will see in the
5810  XHTML output pretty much what you would see if you were to look at a given
5811  entry in the citation dialog.
5812  The formatting can be customized in your layout file or, preferably, in
5813  a module.
5814  See the 
5815 \emph on
5816 Customization
5817 \emph default
5818  manual for the details.
5819 \end_layout
5820
5821 \begin_layout Standard
5822 The main defect at present is that cross-referenced information is printed
5823  with every entry with which it is associated.
5824  So you can see things like this:
5825 \end_layout
5826
5827 \begin_layout Quote
5828 Jason Stanley, 
5829 \begin_inset Quotes eld
5830 \end_inset
5831
5832 Context and Logical Form
5833 \begin_inset Quotes erd
5834 \end_inset
5835
5836 , in 
5837 \emph on
5838 Language in Context: Selected Essays
5839 \emph default
5840  (Oxford: Oxford University Press, 2007), pp.
5841  30--68.
5842 \end_layout
5843
5844 \begin_layout Quote
5845 Jason Stanley, 
5846 \begin_inset Quotes eld
5847 \end_inset
5848
5849 Semantics in Context
5850 \begin_inset Quotes erd
5851 \end_inset
5852
5853 , in 
5854 \emph on
5855 Language in Context: Selected Essays
5856 \emph default
5857  (Oxford: Oxford University Press, 2007), pp.
5858  201--30.
5859 \end_layout
5860
5861 \begin_layout Standard
5862 This should be fixed before long.
5863 \end_layout
5864
5865 \begin_layout Standard
5866 There is no support at present for sectioned bibliographies.
5867  If you have multiple bibliographies, then LyX will print the same bibliography
5868  over and over.
5869 \end_layout
5870
5871 \begin_layout Section
5872 Indexes
5873 \end_layout
5874
5875 \begin_layout Standard
5876 LyX will happily export indexes as XHTML, but with certain limitations at
5877  the moment.
5878 \end_layout
5879
5880 \begin_layout Standard
5881 Index export will be most reliable when you do not attempt to use the fancy
5882  constructs that are described in the section on indexes in the 
5883 \emph on
5884 User's Guide
5885 \emph default
5886 .
5887 \begin_inset Foot
5888 status collapsed
5889
5890 \begin_layout Plain Layout
5891 The main issue here is that LyX itself does not really handle these.
5892  It just lets you enter what you would have to enter in raw LaTeX.
5893 \end_layout
5894
5895 \end_inset
5896
5897  We'll describe how they are handled using the subsection headings from
5898  that section.
5899 \end_layout
5900
5901 \begin_layout Itemize
5902 Grouping Index Entries (aka, sub-entries): LyX makes an effort to support
5903  these, but the entries must be separated by 
5904 \begin_inset Quotes eld
5905 \end_inset
5906
5907  ! 
5908 \begin_inset Quotes erd
5909 \end_inset
5910
5911 , that is, there must be spaces around the exclamation point.
5912  This is because it is otherwise too difficult to check for escaped exclamation
5913  points, ones in math, and so forth.
5914 \end_layout
5915
5916 \begin_layout Itemize
5917 Page Ranges: There is no support at all for page ranges, since these make
5918  no sense with XHMTL.
5919  Instead, you will just get two index entries, one at either end.
5920 \end_layout
5921
5922 \begin_layout Itemize
5923 Cross-referencing: There is no support for cross-referencing.
5924  If LyX finds an entry containing the 
5925 \begin_inset Quotes eld
5926 \end_inset
5927
5928 |see\SpecialChar \ldots{}
5929
5930 \begin_inset Quotes erd
5931 \end_inset
5932
5933  construct, it is just dropped, and the rest is treated as an ordinary index
5934  entry.
5935 \end_layout
5936
5937 \begin_layout Itemize
5938 Index Entry Order: LyX does support attempts to fix the sorting order.
5939  It will take what is before the first `@' it finds and use that for sorting,
5940  taking what follows the first `@' to be the actual entry.
5941  At present, LyX does not check for escaped `@', so do not try to index
5942  email addresses.
5943 \end_layout
5944
5945 \begin_layout Itemize
5946 Index Entry Layout: You can format entries by using the text style dialog,
5947  or by using any other method available within LyX itself.
5948  There is no support for constructs like: 
5949 \begin_inset Quotes eld
5950 \end_inset
5951
5952 entry|textbf
5953 \begin_inset Quotes erd
5954 \end_inset
5955
5956 .
5957  Indeed, if LyX finds a pipe symbol, `|', in an entry, it will delete it
5958  and everything that follows it.
5959 \end_layout
5960
5961 \begin_layout Itemize
5962 Multiple Indexes: There is no support for multiple indexes.
5963  Rather, all index entries will be printed as one large index.
5964  To avoid our printing several versions of the index, we print only the
5965  main index, so make sure you have one.
5966 \end_layout
5967
5968 \begin_layout Section
5969 Nomenclature and Glossary
5970 \end_layout
5971
5972 \begin_layout Standard
5973 There is at present no support for glossaries.
5974  Adding it would be fairly trivial, and welcome.
5975 \end_layout
5976
5977 \begin_layout Chapter
5978 LyXサーバー
5979 \end_layout
5980
5981 \begin_layout Section
5982 はじめに
5983 \end_layout
5984
5985 \begin_layout Standard
5986 「LyXサーバー」を使用すると、他のプログラムが、LyXと通信したり、LyXコマンドを実行させたり、LyXの内部状態に関する情報を取得したりすることができるよう
5987 になります。これは熟練したユーザー向けの機能ですが、便利なはずです。たとえば、LyXサーバーに書き込むことによって、JabRefのような参考文献管理ソフトが、L
5988 yXに文献引用を「押し込む」ことが可能となります。
5989 \end_layout
5990
5991 \begin_layout Standard
5992 ただし、現在のところ、
5993 \emph on
5994 LyXサーバーはWindowsでは機能しない
5995 \emph default
5996 ことに注意してください
5997 \begin_inset Foot
5998 status collapsed
5999
6000 \begin_layout Plain Layout
6001 これが不可能でなければならない理由はありません。しかし、いまのところ、Windows向け開発者でこの機能を実装しようとする者がいないのです。
6002 \end_layout
6003
6004 \end_inset
6005
6006
6007 \end_layout
6008
6009 \begin_layout Section
6010 LyXサーバーを開始するには
6011 \end_layout
6012
6013 \begin_layout Standard
6014 LyXサーバーは、名前をつけたパイプの対を利用することで機能します。パイプは、通常
6015 \begin_inset Flex Code
6016 status collapsed
6017
6018 \begin_layout Plain Layout
6019 UserDir
6020 \end_layout
6021
6022 \end_inset
6023
6024 の下に作られ(Windowsを除く。Windowsでは、名前を付けた
6025 \emph on
6026 ローカルの
6027 \emph default
6028 パイプは
6029 \begin_inset Flex Code
6030 status collapsed
6031
6032 \begin_layout Plain Layout
6033
6034 \backslash
6035
6036 \backslash
6037 .
6038 \backslash
6039 pipe
6040 \end_layout
6041
6042 \end_inset
6043
6044 に特別なオブジェクトとして置かれます)、「
6045 \begin_inset Flex Code
6046 status collapsed
6047
6048 \begin_layout Plain Layout
6049 .lyxpipe.in
6050 \end_layout
6051
6052 \end_inset
6053
6054 」および「
6055 \begin_inset Flex Code
6056 status collapsed
6057
6058 \begin_layout Plain Layout
6059 .lyxpipe.out
6060 \end_layout
6061
6062 \end_inset
6063
6064 」という名前がついています。外部プログラムは、
6065 \begin_inset Flex Code
6066 status collapsed
6067
6068 \begin_layout Plain Layout
6069 .lyxpipe.in
6070 \end_layout
6071
6072 \end_inset
6073
6074 に書き込みを行い、戻りデータを
6075 \begin_inset Flex Code
6076 status collapsed
6077
6078 \begin_layout Plain Layout
6079 .lyxpipe.out
6080 \end_layout
6081
6082 \end_inset
6083
6084 から読み出します。パイプ名の語幹は、
6085 \begin_inset Flex MenuItem
6086 status collapsed
6087
6088 \begin_layout Plain Layout
6089 ツール\SpecialChar \menuseparator
6090 設定
6091 \end_layout
6092
6093 \end_inset
6094
6095 から、たとえば「
6096 \begin_inset Flex Code
6097 status collapsed
6098
6099 \begin_layout Plain Layout
6100 /home/myhome/lyxpipe
6101 \end_layout
6102
6103 \end_inset
6104
6105 」あるいはWindowsでは「
6106 \begin_inset Flex Code
6107 status collapsed
6108
6109 \begin_layout Plain Layout
6110
6111 \backslash
6112
6113 \backslash
6114 .
6115 \backslash
6116 pipe
6117 \backslash
6118 lyxpipe
6119 \end_layout
6120
6121 \end_inset
6122
6123 」などに設定することができます。サーバーを開始するためには、これを
6124 \emph on
6125 手動で設定しなくてはなりません
6126 \emph default
6127
6128 \end_layout
6129
6130 \begin_layout Standard
6131 LyXは、パイプを生成するに際して、「
6132 \begin_inset Flex Code
6133 status collapsed
6134
6135 \begin_layout Plain Layout
6136 .in
6137 \end_layout
6138
6139 \end_inset
6140
6141 」および「
6142 \begin_inset Flex Code
6143 status collapsed
6144
6145 \begin_layout Plain Layout
6146 .out
6147 \end_layout
6148
6149 \end_inset
6150
6151 」を付け加えます。パイプがすでに存在していれば、LyXは他のLyXプロセスがすでに実行中であると判断して、サーバーを開始しません。POSIX(Unix型)システ
6152 ムでは、なんらかの理由で、LyXが終了する際に使用されていない「古い」パイプが削除されずに残ったりすると、LyXはこれを削除しようとします。何らかの理由でこれが
6153 失敗した場合、手動でパイプを削除したのちに、LyXを再起動する必要があります。Windowsでは、プログラムが終了したりクラッシュしたりすると、OSがパイプを削
6154 除するので、「古い」パイプが残ることはありません。
6155 \end_layout
6156
6157 \begin_layout Standard
6158 サーバーを使用するLyXプロセスを複数起動するには、それぞれのプロセスに、別のユーザーディレクトリを使用させたり、別々の
6159 \begin_inset Flex Code
6160 status collapsed
6161
6162 \begin_layout Plain Layout
6163 preferences
6164 \end_layout
6165
6166 \end_inset
6167
6168 ファイルを使用させるなど、別々の設定を使用する必要があります。
6169 \end_layout
6170
6171 \begin_layout Standard
6172 クライアントプログラムを開発しようとされているのであれば、LyXサーバーからのデバッグ情報を有効にすると便利かもしれません。そのためには、Lyxを
6173 \begin_inset Flex Code
6174 status collapsed
6175
6176 \begin_layout Plain Layout
6177 lyx -dbg lyxserver
6178 \end_layout
6179
6180 \end_inset
6181
6182 として起動してください。
6183 \end_layout
6184
6185 \begin_layout Standard
6186 C言語で書かれた完全なサンプルクライアントが、ソース頒布版の
6187 \begin_inset Flex Code
6188 status collapsed
6189
6190 \begin_layout Plain Layout
6191 development/lyxserver/server_monitor.c
6192 \end_layout
6193
6194 \end_inset
6195
6196 にあります。
6197 \end_layout
6198
6199 \begin_layout Standard
6200 もう一つの便利なツールとして、
6201 \begin_inset Flex Code
6202 status collapsed
6203
6204 \begin_layout Plain Layout
6205 src/client/lyxclient
6206 \end_layout
6207
6208 \end_inset
6209
6210 にあるコマンドラインベースのクライアントがあります。
6211 \end_layout
6212
6213 \begin_layout Section
6214 通常の通信
6215 \end_layout
6216
6217 \begin_layout Standard
6218 LyXコールを発行するには、クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません。この行は、以下の書式を持ちます。
6219 \end_layout
6220
6221 \begin_layout Quote
6222 LYXCMD:
6223 \emph on
6224 クライアント名
6225 \emph default
6226 :
6227 \emph on
6228 関数
6229 \emph default
6230 :
6231 \emph on
6232 引数
6233 \end_layout
6234
6235 \begin_layout Description
6236 クライアント名 は、クライアントが自由に選べる名前です。これが用いられるのは、クライアントが他の要求クライアントから結果を見分けることができるように、LyXが返
6237 答をする際、クライアント名をエコーするときだけです。
6238 \end_layout
6239
6240 \begin_layout Description
6241 関数 は、LyXに実行させたい関数です。これは、ミニバッファで使用するコマンドと同じです。
6242 \end_layout
6243
6244 \begin_layout Description
6245 引数 は、一部の関数のみに効力を持つオプションの引数です(たとえば、「自己挿入」LFUNは、現在のカーソル位置に引数を文章として挿入します)。
6246 \end_layout
6247
6248 \begin_layout Standard
6249 LyXからの返答は、出力パイプに送り出され、
6250 \end_layout
6251
6252 \begin_layout Quote
6253 INFO:
6254 \emph on
6255 クライアント名
6256 \emph default
6257 :
6258 \emph on
6259 関数
6260 \emph default
6261 :
6262 \emph on
6263 データ
6264 \end_layout
6265
6266 \begin_layout Standard
6267 の書式をしています。ここで
6268 \emph on
6269 クライアント名
6270 \emph default
6271
6272 \emph on
6273 関数
6274 \emph default
6275 は、コマンド要求からそのままエコーされますが、
6276 \emph on
6277 データ
6278 \emph default
6279 はコマンド実行の結果に依存した、多少なりとも有用な情報です。「font-state」のような一部のコマンドは、LyXの内部状態に関する情報を返しますが、空のデー
6280 タ応答を返すものもあります。空のデータ返答は、コマンド実行が無事終わったことを意味します。
6281 \end_layout
6282
6283 \begin_layout Standard
6284 エラーが発生した場合のLyXの返答は
6285 \end_layout
6286
6287 \begin_layout Quote
6288 ERROR:
6289 \emph on
6290 クライアント名
6291 \emph default
6292 :
6293 \emph on
6294 関数
6295 \emph default
6296 :
6297 \emph on
6298 エラーメッセージ
6299 \end_layout
6300
6301 \begin_layout Standard
6302 の書式をしており、
6303 \emph on
6304 エラーメッセージ
6305 \emph default
6306 には、なぜコマンドが失敗したかの説明が入っているはずです。
6307 \end_layout
6308
6309 \begin_layout Standard
6310 (例)
6311 \end_layout
6312
6313 \begin_layout LyX-Code
6314 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6315 \begin_inset Newline newline
6316 \end_inset
6317
6318 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6319 \begin_inset Newline newline
6320 \end_inset
6321
6322 read a <~/.lyxpipe.out
6323 \begin_inset Newline newline
6324 \end_inset
6325
6326 echo $a
6327 \end_layout
6328
6329 \begin_layout Section
6330 通知
6331 \end_layout
6332
6333 \begin_layout Standard
6334 LyXは、発生しているイベントを、非同期的にクライアントに通知することができます。いまのところ、ユーザーがあるキー列を関数「notify」に割り当てているときの
6335 み、LyXはこの通知を行います。LyXが送る文字列の書式は
6336 \end_layout
6337
6338 \begin_layout Quote
6339 \begin_inset Flex Code
6340 status collapsed
6341
6342 \begin_layout Plain Layout
6343 NOTIFY:
6344 \end_layout
6345
6346 \end_inset
6347
6348
6349 \emph on
6350 キー列
6351 \end_layout
6352
6353 \begin_layout Standard
6354 となっていて、
6355 \emph on
6356 キー列
6357 \emph default
6358 は、ユーザーが実際に打鍵したキー列の印字表現になります。
6359 \end_layout
6360
6361 \begin_layout Standard
6362 この機構は、LyXのコマンド群を拡張してマクロを実装するのに使用することができます。なんらかのキー列を「notify」に割り当ててください。それから出力パイプで
6363 待機するクライアントを起動し、キー列に応じたコマンドを読み込み、一つないし複数のLyXコマンドを発行するLyX要求とLyXコールを使用する関数を開始するのです。
6364 \end_layout
6365
6366 \begin_layout Section
6367 単純なLyXサーバープロトコル
6368 \end_layout
6369
6370 \begin_layout Standard
6371 LyXは、セッション管理に使用することができる単純なプロトコルを実装しています。メッセージは、すべて
6372 \end_layout
6373
6374 \begin_layout Quote
6375 LYXSRV:
6376 \emph on
6377 クライアント名
6378 \emph default
6379 :
6380 \emph on
6381 プロトコルメッセージ
6382 \end_layout
6383
6384 \begin_layout Standard
6385 の書式をしており、
6386 \emph on
6387 プロトコルメッセージ
6388 \emph default
6389 は「hello」ないし「bye」です。クライアントから「hello」を受け取ると、LyXはメッセージを聴いていることをクライアントに伝えるために返答をし、LyX
6390 が終了することをクライアントに伝えるのには、LyXが「bye」を送信します。
6391 \end_layout
6392
6393 \begin_layout Section
6394 DVIとPDFの遡及検索
6395 \end_layout
6396
6397 \begin_layout Standard
6398 DVI/PDFビューア
6399 \begin_inset Foot
6400 status collapsed
6401
6402 \begin_layout Plain Layout
6403 PDFの遡及検索機能を提供しているビューアには、KDE/Linux上のOkularとMac OS X上のSkim、Windows上のSumatraPDFがありま
6404 す。
6405 \end_layout
6406
6407 \end_inset
6408
6409 には、遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります。これを使えば、DVI/PDF出力の
6410 特定の場所をクリックすることによって、LyXの文書中で対応する行にカーソルを移動させることができます。これを実現するためには、ビューアはLyXと情報交換を行う必
6411 要があります。これは、命名パイプ(
6412 \emph on
6413 lyxpipe
6414 \emph default
6415 )を使用するか、LyXが作業ディレクトリに生成するUNIXドメインソケット(
6416 \emph on
6417 lyxsocket
6418 \emph default
6419 )を使用する(これは
6420 \begin_inset Flex Code
6421 status collapsed
6422
6423 \begin_layout Plain Layout
6424 lyxclient
6425 \end_layout
6426
6427 \end_inset
6428
6429 プログラムがLyXと通信するのに使用している方法です)ことで、LyXサーバを経由して実現することができます。場合によっては、ビューアとLyXを橋渡しする補助スク
6430 リプトを必要とすることがあるかもしれませんが、それ以外は、ビューアはLyXと直接通信することができます。これは、選んだビューアと基本ソフトに依存します。また、必
6431 要とされるビューアの設定法と遡及検索が実際に行われる方法とにも依存します。したがって、下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします。その
6432 前に、DVI/PDF出力で遡及検索を有効にするためには、一般に何が必要とされるかを説明します。
6433 \end_layout
6434
6435 \begin_layout Subsection
6436 \begin_inset CommandInset label
6437 LatexCommand label
6438 name "sub:遡及検索"
6439
6440 \end_inset
6441
6442 自動有効化
6443 \end_layout
6444
6445 \begin_layout Standard
6446
6447 \lang english
6448 In most cases LyX will do the work for you by enabling the option 
6449 \begin_inset Flex MenuItem
6450 status collapsed
6451
6452 \begin_layout Plain Layout
6453
6454 \lang english
6455 Synchronize with Output
6456 \end_layout
6457
6458 \end_inset
6459
6460  in the menu 
6461 \begin_inset Flex MenuItem
6462 status collapsed
6463
6464 \begin_layout Plain Layout
6465
6466 \lang english
6467 Document\SpecialChar \menuseparator
6468 Settings\SpecialChar \menuseparator
6469 Output
6470 \end_layout
6471
6472 \end_inset
6473
6474 .
6475  In such a case LyX will automatically insert the necessary SyncTeX macro
6476  (for PDF) or load the srcltx package (for DVI) respectively.
6477  This option can be easily reached also on 
6478 \begin_inset Flex Code
6479 status collapsed
6480
6481 \begin_layout Plain Layout
6482
6483 \lang english
6484 View/Update
6485 \end_layout
6486
6487 \end_inset
6488
6489  Toolbar.
6490 \end_layout
6491
6492 \begin_layout Standard
6493
6494 \lang english
6495 If you need a different setting, you can select or input a custom macro
6496  from the drop down box just below 
6497 \begin_inset Flex MenuItem
6498 status collapsed
6499
6500 \begin_layout Plain Layout
6501
6502 \lang english
6503 Document\SpecialChar \menuseparator
6504 Settings\SpecialChar \menuseparator
6505 Output\SpecialChar \menuseparator
6506 Synchronize with Output
6507 \end_layout
6508
6509 \end_inset
6510
6511 .
6512 \end_layout
6513
6514 \begin_layout Standard
6515
6516 \lang english
6517 Note that the method 
6518 \begin_inset Flex Code
6519 status collapsed
6520
6521 \begin_layout Plain Layout
6522
6523 \lang english
6524
6525 \backslash
6526 synctex=1
6527 \end_layout
6528
6529 \end_inset
6530
6531  enables gzip compression.
6532  If your viewer does not support it, you should instead use 
6533 \begin_inset Flex Code
6534 status collapsed
6535
6536 \begin_layout Plain Layout
6537
6538 \lang english
6539
6540 \backslash
6541 synctex=-1
6542 \end_layout
6543
6544 \end_inset
6545
6546 .
6547 \end_layout
6548
6549 \begin_layout Standard
6550
6551 \lang english
6552 Please aöso note that including the 
6553 \begin_inset Flex Code
6554 status collapsed
6555
6556 \begin_layout Plain Layout
6557
6558 \lang english
6559 srcltx
6560 \end_layout
6561
6562 \end_inset
6563
6564  package or 
6565 \begin_inset Flex Code
6566 status collapsed
6567
6568 \begin_layout Plain Layout
6569
6570 \lang english
6571 src-specials
6572 \end_layout
6573
6574 \end_inset
6575
6576  sometimes has an undesired impact on the typesetting.
6577  Thus, you should switch output synchronization off for the final typesetting
6578  if you use the 
6579 \begin_inset Flex Code
6580 status collapsed
6581
6582 \begin_layout Plain Layout
6583
6584 \lang english
6585 srcltx
6586 \end_layout
6587
6588 \end_inset
6589
6590  package or 
6591 \begin_inset Flex Code
6592 status collapsed
6593
6594 \begin_layout Plain Layout
6595
6596 \lang english
6597 src-specials
6598 \end_layout
6599
6600 \end_inset
6601
6602 .
6603  
6604 \end_layout
6605
6606 \begin_layout Standard
6607
6608 \lang english
6609 In case you need some more special settings that are not covered by the
6610  automatic settings, read the next section about how to set up output synchroniz
6611 ation manually.
6612  If the automatic setup suits your needs, you can readily jump to section
6613 \begin_inset space ~
6614 \end_inset
6615
6616
6617 \lang japanese
6618
6619 \begin_inset CommandInset ref
6620 LatexCommand ref
6621 reference "sub:特定のビューアを設定して使うには"
6622
6623 \end_inset
6624
6625
6626 \lang english
6627 , where the necessary configuration steps in your viewer -- needed both
6628  with the automatic and the manual setup -- are described.
6629 \end_layout
6630
6631 \begin_layout Subsection
6632 手動有効化
6633 \end_layout
6634
6635 \begin_layout Standard
6636 LaTeXは、遡及検索のために複数の方法を提供しています。ある方法は
6637 \begin_inset Flex Code
6638 status collapsed
6639
6640 \begin_layout Plain Layout
6641 latex/pdflatex
6642 \end_layout
6643
6644 \end_inset
6645
6646 プログラムに組み込まれており、他の方法は外部パッケージとして提供されています。どちらを選択するかは、お使いのLaTeX頒布版が既に特定の方法を提供しているか(組
6647 み込みによる方法は比較的新しいものです)と、お使いのビューアがそれに対応しているかに依存します。使用可能な方法を以下に述べます。
6648 \end_layout
6649
6650 \begin_layout Subsubsection*
6651 src-special経由のDVI組み込み検索(DVIのみ)
6652 \end_layout
6653
6654 \begin_layout Standard
6655 この方法は、DVIファイルに遡及検索に必要な情報を追加するものです。これは、かなり前のLaTeXから利用可能となっており(比較的最近のLaTeX頒布版はすべて対
6656 応しています)、安定して動作します。これを有効にするには、
6657 \begin_inset Flex MenuItem
6658 status collapsed
6659
6660 \begin_layout Plain Layout
6661 設定\SpecialChar \menuseparator
6662 ファイル処理\SpecialChar \menuseparator
6663 変換子
6664 \end_layout
6665
6666 \end_inset
6667
6668
6669 \begin_inset Flex MenuItem
6670 status collapsed
6671
6672 \begin_layout Plain Layout
6673 LaT
6674 \begin_inset ERT
6675 status collapsed
6676
6677 \begin_layout Plain Layout
6678
6679 {}
6680 \end_layout
6681
6682 \end_inset
6683
6684 eX (plain)->DVI
6685 \end_layout
6686
6687 \end_inset
6688
6689 ないし
6690 \begin_inset Flex MenuItem
6691 status collapsed
6692
6693 \begin_layout Plain Layout
6694 LaT
6695 \begin_inset ERT
6696 status collapsed
6697
6698 \begin_layout Plain Layout
6699
6700 {}
6701 \end_layout
6702
6703 \end_inset
6704
6705 eX (plain)->DraftDVI
6706 \end_layout
6707
6708 \end_inset
6709
6710 変換子を
6711 \begin_inset Flex Code
6712 status collapsed
6713
6714 \begin_layout Plain Layout
6715 latex -src-specials $$i
6716 \end_layout
6717
6718 \end_inset
6719
6720 に変更します。もしこれが動作しないときは、お使いのLaTeXエンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあり
6721 ます)。
6722 \end_layout
6723
6724 \begin_layout Subsubsection*
6725 外部パッケージ(PDFSyncおよびsrcltx)
6726 \end_layout
6727
6728 \begin_layout Standard
6729
6730 \emph on
6731 pdfsync
6732 \emph default
6733 および
6734 \emph on
6735 srcltx
6736 \emph default
6737 パッケージは、PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します。これを有効にするには、LyXプリアンブルで以下のようにパッケージを読み
6738 込んでください。
6739 \end_layout
6740
6741 \begin_layout Itemize
6742 PDFの遡及検索には
6743 \begin_inset Flex Code
6744 status collapsed
6745
6746 \begin_layout Plain Layout
6747
6748 \backslash
6749 usepackage{pdfsync}
6750 \end_layout
6751
6752 \end_inset
6753
6754
6755 \end_layout
6756
6757 \begin_layout Itemize
6758 DVIの遡及検索には
6759 \begin_inset Flex Code
6760 status collapsed
6761
6762 \begin_layout Plain Layout
6763
6764 \backslash
6765 usepackage[active]{srcltx}
6766 \end_layout
6767
6768 \end_inset
6769
6770
6771 \end_layout
6772
6773 \begin_layout Standard
6774 と書きます。DVIとPDFの両方の遡及検索を実行できるようにするためには、プリアンブルに以下の行を挿入する方法があります。
6775 \end_layout
6776
6777 \begin_layout LyX-Code
6778
6779 \backslash
6780 usepackage{ifpdf}
6781 \begin_inset Newline newline
6782 \end_inset
6783
6784
6785 \backslash
6786 ifpdf
6787 \begin_inset Newline newline
6788 \end_inset
6789
6790   
6791 \backslash
6792 usepackage{pdfsync}
6793 \begin_inset Newline newline
6794 \end_inset
6795
6796
6797 \backslash
6798 else
6799 \begin_inset Newline newline
6800 \end_inset
6801
6802   
6803 \backslash
6804 usepackage[active]{srcltx}
6805 \begin_inset Newline newline
6806 \end_inset
6807
6808
6809 \backslash
6810 fi
6811 \end_layout
6812
6813 \begin_layout Standard
6814 このようにすれば、DVIでもPDF(pdflatex)でも正しいパッケージを使いながら、ファイルを閲覧することができます。
6815 \end_layout
6816
6817 \begin_layout Standard
6818 なお、PDFSyncは、文書の出力レイアウトに干渉する可能性があるので注意してください。したがって、仕上がり文書ではPDFSyncを無効にすることをお勧めします
6819
6820 \end_layout
6821
6822 \begin_layout Subsubsection*
6823 SyncTeXを使った組み込み遡及検索(DVIおよびPDF)
6824 \end_layout
6825
6826 \begin_layout Standard
6827 \begin_inset Flex Code
6828 status collapsed
6829
6830 \begin_layout Plain Layout
6831 (pdf)latex
6832 \end_layout
6833
6834 \end_inset
6835
6836 の最近のバージョンは、PDFおよびDVI両方の遡及検索を組み込みでサポートしています。このいわゆる
6837 \emph on
6838 SyncTeX
6839 \emph default
6840 機能は、主に、PDFSyncパッケージをpdftexプログラムへ統合したことと、それをsrc-specialsアプローチへ取り込んだことの成果です。これを使用す
6841 るためには、少なくともTeXLive 2008か最近のMikTeX頒布版が必要です。また、既にSyncTeXサポートを提供しているPDFビューアは少ししかありま
6842 せん(Mac上のSkimとWindows上のSumatraPDF)。
6843 \end_layout
6844
6845 \begin_layout Standard
6846 DVI出力でSyncTeXを有効にするには、
6847 \begin_inset Flex MenuItem
6848 status collapsed
6849
6850 \begin_layout Plain Layout
6851 設定\SpecialChar \menuseparator
6852 ファイル処理\SpecialChar \menuseparator
6853 変換子
6854 \end_layout
6855
6856 \end_inset
6857
6858
6859 \begin_inset Flex MenuItem
6860 status collapsed
6861
6862 \begin_layout Plain Layout
6863 LaT
6864 \begin_inset ERT
6865 status collapsed
6866
6867 \begin_layout Plain Layout
6868
6869 {}
6870 \end_layout
6871
6872 \end_inset
6873
6874 eX (plain)->DVI
6875 \end_layout
6876
6877 \end_inset
6878
6879 ないし
6880 \begin_inset Flex MenuItem
6881 status collapsed
6882
6883 \begin_layout Plain Layout
6884 LaT
6885 \begin_inset ERT
6886 status collapsed
6887
6888 \begin_layout Plain Layout
6889
6890 {}
6891 \end_layout
6892
6893 \end_inset
6894
6895 eX (plain)->DraftDVI
6896 \end_layout
6897
6898 \end_inset
6899
6900 変換子を
6901 \begin_inset Flex Code
6902 status collapsed
6903
6904 \begin_layout Plain Layout
6905 latex -synctex=1 $$i
6906 \end_layout
6907
6908 \end_inset
6909
6910 に変更します。PDF出力用には、
6911 \begin_inset Flex MenuItem
6912 status collapsed
6913
6914 \begin_layout Plain Layout
6915 LaT
6916 \begin_inset ERT
6917 status collapsed
6918
6919 \begin_layout Plain Layout
6920
6921 {}
6922 \end_layout
6923
6924 \end_inset
6925
6926 eX (pdflatex)->PDF (pdflatex)
6927 \end_layout
6928
6929 \end_inset
6930
6931 変換子を
6932 \begin_inset Flex Code
6933 status collapsed
6934
6935 \begin_layout Plain Layout
6936 pdflatex -synctex=1 $$i
6937 \end_layout
6938
6939 \end_inset
6940
6941 に変更してください。また、ビューアをSyncTeXで使うのに設定を行う必要があるかどうか、お使いのビューアの取扱説明書をご確認ください。
6942 \begin_inset Foot
6943 status collapsed
6944
6945 \begin_layout Plain Layout
6946 \begin_inset Flex Code
6947 status collapsed
6948
6949 \begin_layout Plain Layout
6950 -synctex=1
6951 \end_layout
6952
6953 \end_inset
6954
6955 オプションは、gzip圧縮を有効にします。お使いのビューアがgzip圧縮をサポートしていない場合には、代わりに
6956 \begin_inset Flex Code
6957 status collapsed
6958
6959 \begin_layout Plain Layout
6960 -synctex=-1
6961 \end_layout
6962
6963 \end_inset
6964
6965 を使用してください。
6966 \end_layout
6967
6968 \end_inset
6969
6970
6971 \end_layout
6972
6973 \begin_layout Subsection
6974 特定のビューアを設定して使うには
6975 \begin_inset CommandInset label
6976 LatexCommand label
6977 name "sub:特定のビューアを設定して使うには"
6978
6979 \end_inset
6980
6981
6982 \end_layout
6983
6984 \begin_layout Subsubsection*
6985 Xdvi(全プラットフォーム)
6986 \end_layout
6987
6988 \begin_layout Standard
6989 LyXは、
6990 \begin_inset Flex Code
6991 status collapsed
6992
6993 \begin_layout Plain Layout
6994 lyxclient
6995 \end_layout
6996
6997 \end_inset
6998
6999 プログラムを自動的に使うのに必要なフックを、既に提供しているので、
7000 \begin_inset Flex Code
7001 status collapsed
7002
7003 \begin_layout Plain Layout
7004 xdvi
7005 \end_layout
7006
7007 \end_inset
7008
7009 を使用する場合には、DVI遡及検索を実行するのに他にするべきことはありません。使用中の文書を上記で述べたように設定するだけです(遡及検索は、Ctrl-クリックか
7010 、Mac OS X上ではAlt-クリックで始動します)。
7011 \end_layout
7012
7013 \begin_layout Standard
7014 しかし、何らかの理由で、LyXと通信するのにソケットではなく命名パイプを使用したい場合には、
7015 \begin_inset Flex MenuItem
7016 status collapsed
7017
7018 \begin_layout Plain Layout
7019 設定\SpecialChar \menuseparator
7020 ファイル処理\SpecialChar \menuseparator
7021 ファイル書式
7022 \end_layout
7023
7024 \end_inset
7025
7026 のDVIビューアを
7027 \begin_inset Flex Code
7028 status collapsed
7029
7030 \begin_layout Plain Layout
7031 xdvi -editor 'lyxeditor.sh %f %l'
7032 \end_layout
7033
7034 \end_inset
7035
7036
7037 \begin_inset Flex Code
7038 status collapsed
7039
7040 \begin_layout Plain Layout
7041 lyxeditor.sh
7042 \end_layout
7043
7044 \end_inset
7045
7046 は適切なスクリプト名)に変更してください。たとえば、最低限のシェルスクリプトは
7047 \end_layout
7048
7049 \begin_layout LyX-Code
7050 #!/bin/sh
7051 \begin_inset Newline newline
7052 \end_inset
7053
7054 LYXPIPE="/path/to/lyxpipe"
7055 \begin_inset Newline newline
7056 \end_inset
7057
7058 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7059 \begin_inset Newline newline
7060 \end_inset
7061
7062 echo "$COMMAND" > "${LYXPIPE}".in || exit
7063 \begin_inset Newline newline
7064 \end_inset
7065
7066 read < "${LYXPIPE}".out || exit
7067 \end_layout
7068
7069 \begin_layout Standard
7070 のようになります。ここで
7071 \begin_inset Flex Code
7072 status collapsed
7073
7074 \begin_layout Plain Layout
7075 /path/to/lyxpipe
7076 \end_layout
7077
7078 \end_inset
7079
7080 は、
7081 \begin_inset Flex MenuItem
7082 status collapsed
7083
7084 \begin_layout Plain Layout
7085 設定\SpecialChar \menuseparator
7086 パス
7087 \end_layout
7088
7089 \end_inset
7090
7091 で指定したLy
7092 \begin_inset ERT
7093 status open
7094
7095 \begin_layout Plain Layout
7096
7097 {}
7098 \end_layout
7099
7100 \end_inset
7101
7102 XServerパイプのパスを指定してください
7103 \begin_inset Foot
7104 status collapsed
7105
7106 \begin_layout Plain Layout
7107 ソース頒布版の
7108 \begin_inset Flex Code
7109 status collapsed
7110
7111 \begin_layout Plain Layout
7112 development/tools
7113 \end_layout
7114
7115 \end_inset
7116
7117 フォルダには、ユーザが設定した
7118 \emph on
7119 lyxpipe
7120 \emph default
7121 を探し出す
7122 \begin_inset Flex Code
7123 status collapsed
7124
7125 \begin_layout Plain Layout
7126 lyxeditor
7127 \end_layout
7128
7129 \end_inset
7130
7131 スクリプトがあります。
7132 \end_layout
7133
7134 \end_inset
7135
7136
7137 \end_layout
7138
7139 \begin_layout Subsubsection*
7140 MacDviX(Mac OS X)
7141 \end_layout
7142
7143 \begin_layout Standard
7144 \begin_inset Flex Code
7145 status collapsed
7146
7147 \begin_layout Plain Layout
7148 /Applications/MacDviX_Folder/calleditor.script
7149 \end_layout
7150
7151 \end_inset
7152
7153 の終わりに
7154 \end_layout
7155
7156 \begin_layout LyX-Code
7157 /Applications/Ly
7158 \begin_inset ERT
7159 status collapsed
7160
7161 \begin_layout Plain Layout
7162
7163 {}
7164 \end_layout
7165
7166 \end_inset
7167
7168 X.app/Contents/MacOS/lyxeditor "$2" $1
7169 \begin_inset Newline newline
7170 \end_inset
7171
7172 exit 1
7173 \end_layout
7174
7175 \begin_layout Standard
7176 という行を付け加えてください。Applicationsフォルダ以外の場所にLyXを導入した場合には、それに従って上記の行を修正してください。
7177 \end_layout
7178
7179 \begin_layout Standard
7180 遡及検索は、Alt-クリック(OPTION-クリック)で始動します。
7181 \end_layout
7182
7183 \begin_layout Subsubsection*
7184 Skim(Mac OS X)
7185 \end_layout
7186
7187 \begin_layout Standard
7188 \begin_inset Flex MenuItem
7189 status collapsed
7190
7191 \begin_layout Plain Layout
7192 設定\SpecialChar \menuseparator
7193 ファイル処理\SpecialChar \menuseparator
7194 ファイル書式\SpecialChar \menuseparator
7195 PDF (pdflatex)
7196 \end_layout
7197
7198 \end_inset
7199
7200 のビューア設定に
7201 \begin_inset Flex Code
7202 status collapsed
7203
7204 \begin_layout Plain Layout
7205 open -a Skim.app $$i
7206 \end_layout
7207
7208 \end_inset
7209
7210 と入力し、
7211 \begin_inset Flex MenuItem
7212 status collapsed
7213
7214 \begin_layout Plain Layout
7215 Skim\SpecialChar \menuseparator
7216 設定\SpecialChar \menuseparator
7217 Sync
7218 \end_layout
7219
7220 \end_inset
7221
7222 でLy
7223 \begin_inset ERT
7224 status collapsed
7225
7226 \begin_layout Plain Layout
7227
7228 {}
7229 \end_layout
7230
7231 \end_inset
7232
7233 Xを選択してください。
7234 \end_layout
7235
7236 \begin_layout Standard
7237 遡及検索は、COMMAND-SHIFT-クリックで始動します。
7238 \end_layout
7239
7240 \begin_layout Subsubsection*
7241 Okular (KDE)
7242 \end_layout
7243
7244 \begin_layout Standard
7245 \begin_inset Flex MenuItem
7246 status collapsed
7247
7248 \begin_layout Plain Layout
7249 設定\SpecialChar \menuseparator
7250 Okularを設定\SpecialChar \ldots{}
7251 \SpecialChar \menuseparator
7252 編集
7253 \end_layout
7254
7255 \end_inset
7256
7257 で「カスタムテキストエディタ」を選択し、コマンドに
7258 \begin_inset Flex Code
7259 status collapsed
7260
7261 \begin_layout Plain Layout
7262 lyxclient -g %f %l
7263 \end_layout
7264
7265 \end_inset
7266
7267 を加えてください。
7268 \end_layout
7269
7270 \begin_layout Standard
7271 遡及検索は、SHIFT-クリックで始動します。
7272 \end_layout
7273
7274 \begin_layout Subsubsection*
7275 YAP(Windows)
7276 \end_layout
7277
7278 \begin_layout Standard
7279 yapを起動し、
7280 \begin_inset Flex MenuItem
7281 status collapsed
7282
7283 \begin_layout Plain Layout
7284 View\SpecialChar \menuseparator
7285 Options
7286 \end_layout
7287
7288 \end_inset
7289
7290 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
7291 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
7292  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
7293 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7294 \begin_inset Flex Code
7295 status collapsed
7296
7297 \begin_layout Plain Layout
7298 lyxeditor.bat
7299 \end_layout
7300
7301 \end_inset
7302
7303 (以下参照)のあるディレクトリを見つけます。
7304 \begin_inset Flex Code
7305 status collapsed
7306
7307 \begin_layout Plain Layout
7308 lyxeditor.bat
7309 \end_layout
7310
7311 \end_inset
7312
7313 を選択してプログラムの引数を
7314 \begin_inset Flex Code
7315 status collapsed
7316
7317 \begin_layout Plain Layout
7318 %f %l
7319 \end_layout
7320
7321 \end_inset
7322
7323 と指定してください。
7324 \begin_inset Flex Code
7325 status collapsed
7326
7327 \begin_layout Plain Layout
7328 lyxeditor.bat
7329 \end_layout
7330
7331 \end_inset
7332
7333 は、
7334 \emph on
7335 lyxpipe
7336 \emph default
7337 を通じてLyXと通信するためのラッパとして使用され、以下のようになっています。
7338 \end_layout
7339
7340 \begin_layout LyX-Code
7341 @echo off
7342 \begin_inset Newline newline
7343 \end_inset
7344
7345 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7346 \backslash
7347
7348 \backslash
7349 .
7350 \backslash
7351 pipe
7352 \backslash
7353 lyxpipe.in
7354 \begin_inset Newline newline
7355 \end_inset
7356
7357 type 
7358 \backslash
7359
7360 \backslash
7361 .
7362 \backslash
7363 pipe
7364 \backslash
7365 lyxpipe.out
7366 \end_layout
7367
7368 \begin_layout Standard
7369 LyXで指定したLyXServerパイプパスが、
7370 \begin_inset Flex Code
7371 status collapsed
7372
7373 \begin_layout Plain Layout
7374
7375 \backslash
7376
7377 \backslash
7378 .
7379 \backslash
7380 pipe
7381 \backslash
7382 lyxpipe
7383 \end_layout
7384
7385 \end_inset
7386
7387 となっていることを確認するか、
7388 \begin_inset Flex Code
7389 status collapsed
7390
7391 \begin_layout Plain Layout
7392 lyxeditor.bat
7393 \end_layout
7394
7395 \end_inset
7396
7397 ラッパの方を適切に修正してください。
7398 \end_layout
7399
7400 \begin_layout Standard
7401 yapでは、遡及検索はダブルクリックで始動します。
7402 \end_layout
7403
7404 \begin_layout Subsubsection*
7405 SumatraPDF(Windows)
7406 \end_layout
7407
7408 \begin_layout Standard
7409 SumatraPDFを遡及検索で使用するためには、
7410 \begin_inset Flex MenuItem
7411 status collapsed
7412
7413 \begin_layout Plain Layout
7414 設定\SpecialChar \menuseparator
7415 ファイル処理\SpecialChar \menuseparator
7416 ファイル書式\SpecialChar \menuseparator
7417 PDF (pdflatex)
7418 \end_layout
7419
7420 \end_inset
7421
7422 のビューア設定で
7423 \begin_inset Flex Code
7424 status collapsed
7425
7426 \begin_layout Plain Layout
7427 SumatraPDF -inverse-search 
7428 \begin_inset Quotes eld
7429 \end_inset
7430
7431 lyxeditor.bat %f %l
7432 \begin_inset Quotes erd
7433 \end_inset
7434
7435
7436 \end_layout
7437
7438 \end_inset
7439
7440
7441 \begin_inset Flex Code
7442 status collapsed
7443
7444 \begin_layout Plain Layout
7445 lyxeditor.bat
7446 \end_layout
7447
7448 \end_inset
7449
7450 は上記のラッパ)と入力してください。SumatraPDF.exeがコマンドPATHにない場合、フルファイル名を使用してください。
7451 \end_layout
7452
7453 \begin_layout Standard
7454 遡及検索はダブルクリックで始動します。
7455 \end_layout
7456
7457 \begin_layout Subsubsection*
7458 YAP(Cygwin)
7459 \end_layout
7460
7461 \begin_layout Standard
7462 まずはじめに、yapがWindows環境での既定のDVIビューアになっていることを確認してから、yapを起動し、
7463 \begin_inset Flex MenuItem
7464 status collapsed
7465
7466 \begin_layout Plain Layout
7467 View\SpecialChar \menuseparator
7468 Options
7469 \end_layout
7470
7471 \end_inset
7472
7473 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
7474 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
7475  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
7476 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7477 \begin_inset Flex Code
7478 status collapsed
7479
7480 \begin_layout Plain Layout
7481 lyxeditor.exe
7482 \end_layout
7483
7484 \end_inset
7485
7486 プログラム(これは、Cygwinでは既定でLyX実行ファイルとともに導入されます)のあるディレクトリを見つけます。
7487 \begin_inset Flex Code
7488 status collapsed
7489
7490 \begin_layout Plain Layout
7491 lyxeditor.exe
7492 \end_layout
7493
7494 \end_inset
7495
7496 を選択してプログラムの引数を
7497 \begin_inset Flex Code
7498 status collapsed
7499
7500 \begin_layout Plain Layout
7501 -g %f %l
7502 \end_layout
7503
7504 \end_inset
7505
7506 と指定してください。これによって、LyXとの通信に
7507 \emph on
7508 lyxsocket
7509 \emph default
7510 が使用されるようになります。何らかの理由で
7511 \emph on
7512 lyxpipe
7513 \emph default
7514 を使用したい場合には、
7515 \begin_inset Flex Code
7516 status collapsed
7517
7518 \begin_layout Plain Layout
7519 -g
7520 \end_layout
7521
7522 \end_inset
7523
7524 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
7525 \end_layout
7526
7527 \begin_layout Standard
7528 yapでは、遡及検索はダブルクリックで始動します。
7529 \end_layout
7530
7531 \begin_layout Subsubsection*
7532 SumatraPDF(Cygwin)
7533 \end_layout
7534
7535 \begin_layout Standard
7536 SumatraPDFを遡及検索で使用するためには、
7537 \begin_inset Flex MenuItem
7538 status collapsed
7539
7540 \begin_layout Plain Layout
7541 設定\SpecialChar \menuseparator
7542 ファイル処理\SpecialChar \menuseparator
7543 ファイル書式\SpecialChar \menuseparator
7544 PDF (pdflatex)
7545 \end_layout
7546
7547 \end_inset
7548
7549 のビューア設定で
7550 \begin_inset Flex Code
7551 status collapsed
7552
7553 \begin_layout Plain Layout
7554 SumatraPDF.sh
7555 \end_layout
7556
7557 \end_inset
7558
7559 と入力してください。ここで
7560 \begin_inset Flex Code
7561 status collapsed
7562
7563 \begin_layout Plain Layout
7564 SumatraPDF.sh
7565 \end_layout
7566
7567 \end_inset
7568
7569 は以下のようなスクリプトです(お使いのコマンドパスに置きます。
7570 \begin_inset Flex Code
7571 status collapsed
7572
7573 \begin_layout Plain Layout
7574 /usr/local/bin
7575 \end_layout
7576
7577 \end_inset
7578
7579 がもっとも良い選択肢でしょう)。
7580 \end_layout
7581
7582 \begin_layout LyX-Code
7583 #!/bin/bash
7584 \begin_inset Newline newline
7585 \end_inset
7586
7587 cd $(dirname $1)
7588 \begin_inset Newline newline
7589 \end_inset
7590
7591 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
7592 \end_layout
7593
7594 \begin_layout Standard
7595 SumatraPDFは、Windowsネイティブのアプリケーションであり、LyXのCygwin版が使用するPOSIXパスを理解しないので、このラッパスクリプトが
7596 必要となります。SumatraPDF.exeがお使いのコマンドパスにない場合は、上記のスクリプトでPOSIXのフルパスを使用してください。
7597 \begin_inset Flex Code
7598 status collapsed
7599
7600 \begin_layout Plain Layout
7601 -g
7602 \end_layout
7603
7604 \end_inset
7605
7606
7607 \emph on
7608 lyxsocket
7609 \emph default
7610 経由の通信を有効にします。ここでも、
7611 \emph on
7612 lyxpipe
7613 \emph default
7614 を使用したい場合には、
7615 \begin_inset Flex Code
7616 status collapsed
7617
7618 \begin_layout Plain Layout
7619 -g
7620 \end_layout
7621
7622 \end_inset
7623
7624 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
7625 \end_layout
7626
7627 \begin_layout Standard
7628 遡及検索はダブルクリックで始動します。
7629 \end_layout
7630
7631 \begin_layout Section
7632 前方検索
7633 \end_layout
7634
7635 \begin_layout Standard
7636 前方検索を有効にするためには、生成されたPDF/DVI出力ファイルに、TeXソースに関する情報を追加する必要があります。これは、第
7637 \begin_inset CommandInset ref
7638 LatexCommand ref
7639 reference "sub:遡及検索"
7640
7641 \end_inset
7642
7643 節に述べられている方法で実行することができます。
7644 \end_layout
7645
7646 \begin_layout Standard
7647 次に、
7648 \begin_inset Flex MenuItem
7649 status collapsed
7650
7651 \begin_layout Plain Layout
7652 設定\SpecialChar \menuseparator
7653 出力\SpecialChar \menuseparator
7654 一般
7655 \end_layout
7656
7657 \end_inset
7658
7659 で自分の使うビューアを利用するように、LyXを設定する必要があります。ただし、yap・xdvi・okular・Sumatra PDFなど、一部のビューアしかこの
7660 操作は利用できません
7661 \begin_inset Foot
7662 status collapsed
7663
7664 \begin_layout Plain Layout
7665 Sumatraの場合には、http://www.istri.fr/zip/CMCDDE.zipからダウンロードできるCMCDDEが必要です。
7666 \end_layout
7667
7668 \end_inset
7669
7670 。Evinceやxpdfなどの他のビューアでは、少なくとも、ファイルの特定頁を読み込み直したり、指し示したりすることができますが、これらの場合にはsynctex
7671 の外部コールを使用することができます。設定ダイアログに用意されている用例をよく研究してください。設定中で置き換えられる値は以下の通りです。
7672 \begin_inset Flex Code
7673 status collapsed
7674
7675 \begin_layout Plain Layout
7676 $$n
7677 \end_layout
7678
7679 \end_inset
7680
7681 は行番号を指し、
7682 \begin_inset Flex Code
7683 status collapsed
7684
7685 \begin_layout Plain Layout
7686 $$t
7687 \end_layout
7688
7689 \end_inset
7690
7691 は書き出された一時.texファイル、
7692 \begin_inset Flex Code
7693 status collapsed
7694
7695 \begin_layout Plain Layout
7696 $$o
7697 \end_layout
7698
7699 \end_inset
7700
7701 は書き出された出力ファイルを指します(一時ディレクトリにどちらが存在するかに依存してdviあるいはpdf)。
7702 \end_layout
7703
7704 \begin_layout Standard
7705 閲覧時には、一時ディレクトリに.dviファイルがあるか.pdfファイルがあるか(特定の文書を閲覧するのにどの書式を使用したか)によって、適当なプレビュー書式をLyX
7706 が動的に選択します。
7707 \end_layout
7708
7709 \begin_layout Chapter
7710 特別な文書クラス
7711 \end_layout
7712
7713 \begin_layout Section
7714 A&Aの論文
7715 \end_layout
7716
7717 \begin_layout Standard
7718
7719 \noun on
7720 Peter Sütterlin文
7721 \end_layout
7722
7723 \begin_layout Subsection
7724 はじめに
7725 \end_layout
7726
7727 \begin_layout Standard
7728 この節では、文書クラス
7729 \family typewriter
7730 aa.cls
7731 \family default
7732 第5.01版を使用して科学雑誌
7733 \emph on
7734 Astronomy and Astrophysics
7735 \emph default
7736 (『天文学と宇宙物理学』:www.edpsciences.fr/aa/ 
7737 \begin_inset Flex URL
7738 status collapsed
7739
7740 \begin_layout Plain Layout
7741
7742 http://www.edpsciences.fr/aa/
7743 \end_layout
7744
7745 \end_inset
7746
7747 )に投稿する論文を執筆するためのLyXの使用法を説明します。このパッケージは、FTPサイト
7748 \end_layout
7749
7750 \begin_layout Standard
7751 \align center
7752 \begin_inset VSpace medskip
7753 \end_inset
7754
7755
7756 \begin_inset Flex URL
7757 status collapsed
7758
7759 \begin_layout Plain Layout
7760
7761 ftp://ftp.edpsciences.org/pub/aa/readme.html
7762 \end_layout
7763
7764 \end_inset
7765
7766
7767 \begin_inset VSpace medskip
7768 \end_inset
7769
7770
7771 \end_layout
7772
7773 \begin_layout Standard
7774 \noindent
7775 からダウンロードすることができます。
7776 \end_layout
7777
7778 \begin_layout Standard
7779 このパッケージには取扱説明書がついていますが、本節は、本来の取扱説明書の代わりとなることを意図したものではなく、あなたの論文を正しい様式に整えるための小さな案内
7780 書であるに過ぎません。
7781 \end_layout
7782
7783 \begin_layout Standard
7784 この学術誌の出版元は、2001年1月1日以降、Springer社からEDP Science社に変更されていることにご注意ください。この出版社の変更によって、th
7785 esaurusコマンドの廃止など、スタイルファイルに若干の変更が加わっています。LyXのaaクラスは、スタイルファイルの最新版(第5.01版)をサポートしています
7786 。もし古い版が装備されている場合には、更新してください。互換性のために、古い(第4版)レイアウトは、
7787 \family sans
7788 article (A&A V4)
7789 \family default
7790 として残してあります。
7791 \family typewriter
7792 $LyXDir/layouts/aapaper.layout
7793 \family default
7794 のコメントをご参照ください。
7795 \end_layout
7796
7797 \begin_layout Subsection
7798 最初の一歩
7799 \end_layout
7800
7801 \begin_layout Standard
7802 LyXとともに頒布されている例示用のひな型を土台として、書き始めることをお勧めします。ひな型を使用しない場合には、以下の設定にしてください。
7803 \end_layout
7804
7805 \begin_layout Itemize
7806
7807 \family sans
7808 文書\SpecialChar \menuseparator
7809 設定
7810 \family default
7811 ダイアログで
7812 \family sans
7813 article (A&A)
7814 \family default
7815 を選択してください(まぁ、これは自明ですね)。
7816 \end_layout
7817
7818 \begin_layout Itemize
7819
7820 \family sans
7821 ページレイアウト
7822 \family default
7823 オプションは変更しないで、既定値のままに設定しておいてください。全体のレイアウトはマクロが行うので、何も変更してはいけません。
7824 \end_layout
7825
7826 \begin_layout Subsection
7827 へッダ部
7828 \end_layout
7829
7830 \begin_layout Standard
7831 最初に入力すべきものは、へッダ情報です。ヘッダ情報には、以下の7つの項目があり、いくつかは必須ではありません。
7832 \end_layout
7833
7834 \begin_layout Itemize
7835
7836 \family sans
7837 タイトル
7838 \family default
7839 :[必須]
7840 \end_layout
7841
7842 \begin_layout Itemize
7843
7844 \family sans
7845 サブタイトル
7846 \family default
7847 :[非必須]
7848 \end_layout
7849
7850 \begin_layout Itemize
7851
7852 \family sans
7853 著者
7854 \family default
7855 :[必須]
7856 \end_layout
7857
7858 \begin_layout Itemize
7859
7860 \family sans
7861 住所
7862 \family default
7863 :[必須]
7864 \end_layout
7865
7866 \begin_layout Itemize
7867
7868 \family sans
7869 抜き刷り
7870 \family default
7871 :[非必須]著者が複数いる場合、抜き刷りの送付を依頼するのに連絡すべき人を記す。
7872 \end_layout
7873
7874 \begin_layout Itemize
7875
7876 \family sans
7877 メール
7878 \family default
7879 :[非必須]連絡用の電子メールアドレス。
7880 \end_layout
7881
7882 \begin_layout Itemize
7883
7884 \family sans
7885 日付
7886 \family default
7887 :[必須]推奨されるフォーマットは、
7888 \family typewriter
7889 Received: <日付>; Accepted <日付>
7890 \family default
7891 です。
7892 \end_layout
7893
7894 \begin_layout Standard
7895
7896 \family typewriter
7897
7898 \backslash
7899 maketitle
7900 \family default
7901 コマンドは、へッダが終了した場所に、LyXが自動的に入れてくれるので、手動で挿入する必要はありません。各項目の順序は関係ありませんが、見た目のためと、実際の文書
7902 のレイアウトに合わせるために、上記の順序を維持しておくと良いでしょう。
7903 \end_layout
7904
7905 \begin_layout Standard
7906 現住所の付記などのために、へッダ部に脚注を挿入したい場合には、
7907 \family sans
7908 挿入\SpecialChar \menuseparator
7909 脚注
7910 \family default
7911 を使用して標準の脚注を挿入してください。この場合には、LyXは自動的に
7912 \family typewriter
7913
7914 \backslash
7915 thanks{}
7916 \family default
7917 を使用します。
7918 \end_layout
7919
7920 \begin_layout Standard
7921 これらのトピックの他に、このマクロは、LyXが対応していない、以下の3つのLaTeXコマンドを使用します。
7922 \end_layout
7923
7924 \begin_layout Itemize
7925 複数の著者名あるいは所属名を区切るための
7926 \family typewriter
7927
7928 \backslash
7929 and
7930 \end_layout
7931
7932 \begin_layout Itemize
7933 著者と所属の対応付けをするための
7934 \family typewriter
7935
7936 \backslash
7937 inst{<番号>}
7938 \family default
7939 。所属は、
7940 \family sans
7941 住所
7942 \family default
7943 フィールドに現れる順に番号が付けられるので、各著者に番号マーカーを置く必要があります。
7944 \end_layout
7945
7946 \begin_layout Itemize
7947
7948 \family typewriter
7949
7950 \backslash
7951 email{アドレス}
7952 \family default
7953 は、至急連絡用に電子メールアドレスを付記します。
7954 \end_layout
7955
7956 \begin_layout Standard
7957 いずれの場合にも、LyX中に対応したコマンドを入力し、LaTeXコードとしてマークしてください。
7958 \begin_inset Flex Code
7959 status collapsed
7960
7961 \begin_layout Plain Layout
7962 $LyXDir/examples
7963 \end_layout
7964
7965 \end_inset
7966
7967 にある用例を参照してください。
7968 \end_layout
7969
7970 \begin_layout Subsection
7971 概要
7972 \end_layout
7973
7974 \begin_layout Standard
7975 概要は、へッダ部の直後に置きます。第5版から、概要は環境からコマンドに変更され、一段落に限るという制限が加えられました。さらに、ここにはキーワードを含む項目を入
7976 れなくてはなりません。これは、まだLyXでは実装されていないため、LaTeXコマンド
7977 \family typewriter
7978
7979 \backslash
7980 keywords{}
7981 \family default
7982 を手動で入力し、LaTeXコードとしてマークする必要があります。用例にある論文を参照してください。
7983 \end_layout
7984
7985 \begin_layout Subsection
7986 サポートされる環境
7987 \end_layout
7988
7989 \begin_layout Standard
7990 A&A論文用レイアウトでは、文章を構造化するために、以下の環境がサポートされています。
7991 \end_layout
7992
7993 \begin_layout Itemize
7994
7995 \family sans
7996 標準
7997 \end_layout
7998
7999 \begin_layout Itemize
8000
8001 \family sans
8002
8003 \end_layout
8004
8005 \begin_layout Itemize
8006
8007 \family sans
8008 小節
8009 \end_layout
8010
8011 \begin_layout Itemize
8012
8013 \family sans
8014 小々節
8015 \end_layout
8016
8017 \begin_layout Itemize
8018
8019 \family sans
8020 箇条書き(記号)
8021 \end_layout
8022
8023 \begin_layout Itemize
8024
8025 \family sans
8026 箇条書き(連番)
8027 \end_layout
8028
8029 \begin_layout Itemize
8030
8031 \family sans
8032 箇条書き(記述)
8033 \end_layout
8034
8035 \begin_layout Itemize
8036
8037 \family sans
8038 キャプション
8039 \end_layout
8040
8041 \begin_layout Itemize
8042
8043 \family sans
8044 概要
8045 \end_layout
8046
8047 \begin_layout Itemize
8048
8049 \family sans
8050 謝辞(Acknowledgment)
8051 \end_layout
8052
8053 \begin_layout Itemize
8054
8055 \family sans
8056 参考文献
8057 \end_layout
8058
8059 \begin_layout Itemize
8060
8061 \family sans
8062 LaTeX
8063 \end_layout
8064
8065 \begin_layout Subsection
8066 LyXでサポートされていないコマンド
8067 \end_layout
8068
8069 \begin_layout Standard
8070 LyXの
8071 \family sans
8072 article (A&A)
8073 \family default
8074 レイアウトでは、まだサポートされていないコマンドがあります。そのうちいくつかは既に紹介しましたが、網羅するために、以下にすべて列挙しておきます。
8075 \end_layout
8076
8077 \begin_layout Itemize
8078
8079 \family typewriter
8080
8081 \backslash
8082 and
8083 \end_layout
8084
8085 \begin_layout Itemize
8086
8087 \family typewriter
8088
8089 \backslash
8090 email
8091 \end_layout
8092
8093 \begin_layout Itemize
8094
8095 \family typewriter
8096
8097 \backslash
8098 appendix
8099 \end_layout
8100
8101 \begin_layout Itemize
8102
8103 \family typewriter
8104
8105 \backslash
8106 authorrunning
8107 \end_layout
8108
8109 \begin_layout Itemize
8110
8111 \family typewriter
8112
8113 \backslash
8114 inst{}
8115 \end_layout
8116
8117 \begin_layout Itemize
8118
8119 \family typewriter
8120
8121 \backslash
8122 keywords{}
8123 \end_layout
8124
8125 \begin_layout Itemize
8126
8127 \family typewriter
8128
8129 \backslash
8130 object{}
8131 \end_layout
8132
8133 \begin_layout Itemize
8134
8135 \family typewriter
8136
8137 \backslash
8138 titlerunning{}
8139 \end_layout
8140
8141 \begin_layout Standard
8142 これらのコマンドのいずれかを使いたい場合には、自分で入力する必要があります。
8143 \series bold
8144 これをLaTeXコマンドとしてマークすることを忘れないで下さい。
8145 \end_layout
8146
8147 \begin_layout Subsection
8148 図フロートおよび表フロート
8149 \end_layout
8150
8151 \begin_layout Standard
8152 LyXは、必要なフロート環境
8153 \family sans
8154 figure
8155 \family default
8156
8157 \family sans
8158 figure*
8159 \family default
8160
8161 \family sans
8162 table
8163 \family default
8164
8165 \family sans
8166 table*
8167 \family default
8168 をサポートしていますので、ここでは詳しい説明はしません。
8169 \emph on
8170 ユーザーの手引き
8171 \emph default
8172 をご覧ください。ただ、表は左揃えにしなくてはならないことに注意して下さい。そうするためには、表を選択して、
8173 \family sans
8174 編集\SpecialChar \menuseparator
8175 段落設定
8176 \family default
8177 で配置を変更してください。
8178 \end_layout
8179
8180 \begin_layout Standard
8181 一つだけ、特別なものがあります。それは、図横にキャプションを配置する図です。この図を作成するには、以下のようにしなくてはなりません。
8182 \end_layout
8183
8184 \begin_layout Enumerate
8185
8186 \family sans
8187 挿入\SpecialChar \menuseparator
8188 フロート\SpecialChar \menuseparator
8189
8190 \family default
8191 を使って、幅広の図フロートを作成します。それから、図フロートのラベルを右クリックして
8192 \begin_inset Flex MenuItem
8193 status collapsed
8194
8195 \begin_layout Plain Layout
8196 設定\SpecialChar \ldots{}
8197
8198 \end_layout
8199
8200 \end_inset
8201
8202 を選択し、それで開かれる
8203 \family sans
8204 フロートの設定
8205 \family default
8206 ダイアログで
8207 \family sans
8208 段をまたぐ
8209 \family default
8210 を有効にして、
8211 \family sans
8212 OK
8213 \family default
8214 ボタンを押します。
8215 \end_layout
8216
8217 \begin_layout Enumerate
8218 キャプション文を入力します。
8219 \end_layout
8220
8221 \begin_layout Enumerate
8222 キャプションの前にカーソルを移動し、
8223 \family sans
8224 Return
8225 \family default
8226 を押して、カーソルをキャプションの上に移動します。
8227 \end_layout
8228
8229 \begin_layout Enumerate
8230 図を挿入します。
8231 \end_layout
8232
8233 \begin_layout Enumerate
8234 カーソルを図の後ろに置いて、
8235 \family sans
8236 挿入\SpecialChar \menuseparator
8237 整形
8238 \bar under
8239 \SpecialChar \menuseparator
8240
8241 \bar default
8242 水平方向の空白
8243 \family default
8244 を選択して
8245 \family sans
8246 水平方向の空白の設定
8247 \family default
8248 ダイアログを開き、
8249 \family sans
8250 空白
8251 \family default
8252 ドロップダウンから
8253 \family sans
8254 水平フィル
8255 \family default
8256 を選択して、水平フィルを挿入します。
8257 \end_layout
8258
8259 \begin_layout Enumerate
8260
8261 \family sans
8262 挿入\SpecialChar \menuseparator
8263 TeXコード
8264 \family default
8265 を選択して、TeX差込枠を挿入します。
8266 \end_layout
8267
8268 \begin_layout Enumerate
8269 TeX差込枠中に
8270 \family typewriter
8271
8272 \backslash
8273 parbox[b]{55mm}{
8274 \family default
8275 と入力します。
8276 \series bold
8277 ここでは波括弧を閉じないでください。
8278 \end_layout
8279
8280 \begin_layout Enumerate
8281 カーソルをキャプション文の後ろに移動し、
8282 \family sans
8283 挿入\SpecialChar \menuseparator
8284 TeXコード
8285 \family default
8286 を選択して、別のTeX差込枠を挿入し、その中に閉じ括弧を入力します 。
8287 \end_layout
8288
8289 \begin_layout Standard
8290 例示用論文中の図もご参照ください。
8291 \end_layout
8292
8293 \begin_layout Subsection
8294 Refereeレイアウト
8295 \end_layout
8296
8297 \begin_layout Standard
8298 投稿用には、論文を特別なダブルスペースレイアウトに整形しなくてはなりません。このためには、文書クラスに
8299 \family typewriter
8300 referee
8301 \family default
8302 オプションを与える必要があります。これは、
8303 \family sans
8304 文書\SpecialChar \menuseparator
8305 設定
8306 \family default
8307 ダイアログの
8308 \family sans
8309 任意設定
8310 \family default
8311 クラスオプションフィールドを使って行うことができます。この欄に
8312 \family typewriter
8313 referee
8314 \family default
8315 と云う文字列を入力してください。
8316 \end_layout
8317
8318 \begin_layout Subsection
8319 例示用論文
8320 \end_layout
8321
8322 \begin_layout Standard
8323
8324 \family sans
8325 Examples
8326 \family default
8327 ディレクトリには、LyXで書かれた例示用論文が収録されています。これは、元のマクロパッケージの例示用論文をLyX用に直したものです。これはヒントを得るために使用
8328 したり、元の LaTeXコードとLyXでの書き方の比較に使ったりしてください。
8329 \end_layout
8330
8331 \begin_layout Section
8332 AASTeX
8333 \end_layout
8334
8335 \begin_layout Standard
8336
8337 \noun on
8338 Mike Ressler
8339 \noun default
8340
8341 \end_layout
8342
8343 \begin_layout Subsection
8344 はじめに
8345 \end_layout
8346
8347 \begin_layout Standard
8348 AASTeXは、American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑
8349 誌)同誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of
8350  the Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために、同学会が作成したマクロ集
8351 です。LyXは、これらの文書を生成する上で、なかでも数式・引用・画像処理能力において、優れたツールであることが認識されています。LyXは、同マクロ第5.0版以降を
8352 必要としており、できればここで説明されている第5.2版以降が望まれます。第5.0版未満の版は、LaTeX2.09で使用するよう企図されているため、根本的にLyXとは互
8353 換性がありません。AASTeXパッケージは、以下のAASTeXウェブサイトからダウンロードできるでしょう。
8354 \end_layout
8355
8356 \begin_layout Standard
8357 \align center
8358 \begin_inset VSpace medskip
8359 \end_inset
8360
8361
8362 \begin_inset Flex URL
8363 status collapsed
8364
8365 \begin_layout Plain Layout
8366
8367 http://www.journals.uchicago.edu/AAS/AASTeX
8368 \end_layout
8369
8370 \end_inset
8371
8372
8373 \begin_inset VSpace medskip
8374 \end_inset
8375
8376
8377 \end_layout
8378
8379 \begin_layout Standard
8380 パッケージ中には、完備したユーザーの手引きが収録されていますので、LyXで論文を書き始める前に、その中身を完全に理解しておく必要があります。LyXは、AASTe
8381 Xの全コマンドを理解する必然性をなくすものではなく、すべてを手入力する苦労を減らすだけです。仕上がりのLaTeX文書が、論文を投稿しようとしているジャーナルの要
8382 求事項に完全に合致していることを確認するのは、あなたの責任です。
8383 \end_layout
8384
8385 \begin_layout Subsection
8386 新しい論文を書き始める
8387 \end_layout
8388
8389 \begin_layout Standard
8390 論文を書き始めるには、AASTeXひな型ファイルを土台に始めることを強くお勧めします。
8391 \begin_inset Flex MenuItem
8392 status collapsed
8393
8394 \begin_layout Plain Layout
8395 ファイル\SpecialChar \menuseparator
8396 新規(ひな型使用)
8397 \end_layout
8398
8399 \end_inset
8400
8401 をクリックして、新しいファイル名を入力し、ひな型
8402 \family typewriter
8403 aastex.lyx
8404 \family default
8405 を選んでください。これには、論文原稿のほとんどに共通して使われるフィールドが書き込まれています。書き込まれている文字列(括弧
8406 \family typewriter
8407 <>
8408 \family default
8409 を含む)を正しい情報で上書きしてください。AASTeXコマンド・AASTeX環境の多くは、LyX中で直接実行することができますが、特に
8410 \family typewriter
8411
8412 \backslash
8413 altaffilmark
8414 \family default
8415
8416 \family typewriter
8417
8418 \backslash
8419 altaffiltext
8420 \family default
8421 のようにできないものもあります。この二つのコマンドは、ひな型ファイルを開いたとき、赤色に表示されているのですぐ目に入ることでしょう。このようなコマンドは、直接L
8422 aTeXコードを入力して、それをTeXコードとしてマークしなければなりません。このようなコマンドは、TeXコードあるいはEvil Red Text(邪悪な赤い文
8423 )と呼ばれます。AASTeX文書に必要とされる TeXコードを最小にするよう努力はしていますが、まだ望まれるほどにはなっていません。
8424 \end_layout
8425
8426 \begin_layout Subsection
8427 論文を書き終わったら
8428 \end_layout
8429
8430 \begin_layout Standard
8431 論文を満足する水準で書き終え、プレビューや印刷が正しく為されているとしても、まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています。
8432 \end_layout
8433
8434 \begin_layout Enumerate
8435 論文を LaTeXファイルとして書き出します(
8436 \family sans
8437 ファイル\SpecialChar \menuseparator
8438 書き出し\SpecialChar \menuseparator
8439 LateX
8440 \family default
8441 )。
8442 \end_layout
8443
8444 \begin_layout Enumerate
8445 出力した
8446 \family typewriter
8447 .tex
8448 \family default
8449 ファイルを好きなエディタで編集します。
8450 \end_layout
8451
8452 \begin_deeper
8453 \begin_layout Enumerate
8454
8455 \family typewriter
8456
8457 \backslash
8458 documentclass
8459 \family default
8460 コマンドよりも前のコメント行を削除します。
8461 \end_layout
8462
8463 \begin_layout Enumerate
8464
8465 \family typewriter
8466
8467 \backslash
8468 usepackage...{fontenc}
8469 \family default
8470 という行があれば(通常は
8471 \family typewriter
8472
8473 \backslash
8474 documentclass
8475 \family default
8476 の直後にあります)削除します。また、
8477 \family typewriter
8478
8479 \backslash
8480 secnumdepth
8481 \family default
8482 行があれば、これも削除します。
8483 \end_layout
8484
8485 \begin_layout Enumerate
8486 LaTeXプリアンブル中に意図的に置いたコマンド(
8487 \family typewriter
8488 .tex
8489 \family default
8490 ファイル中、「User specified LaTeX commands」というコメントの直後にあります)を除いて、
8491 \family typewriter
8492
8493 \backslash
8494 makeatletter
8495 \family default
8496
8497 \family typewriter
8498
8499 \backslash
8500 makeatother
8501 \family default
8502 の間のもの(これらのコマンドを含む)をすべて削除します。
8503 \end_layout
8504
8505 \end_deeper
8506 \begin_layout Enumerate
8507 編集後のファイルを LaTeXにかけて、正しく処理されることを確認します。
8508 \end_layout
8509
8510 \begin_layout Enumerate
8511 学術誌の要求事項を再読して、ファイル名と書式が正しいことを確認します。
8512 \end_layout
8513
8514 \begin_layout Enumerate
8515 投稿してください。
8516 \end_layout
8517
8518 \begin_layout Subsection
8519 特定のコマンドに関するコメント
8520 \end_layout
8521
8522 \begin_layout Standard
8523 AASTeXユーザーの手引き(
8524 \family typewriter
8525 aasguide.tex
8526 \family default
8527 )に、各AASTeXコマンドの詳しい説明があるので、ここでは、各コマンドの使用法の詳細な説明は行いません。そこで、ここではユーザーの手引きに現れるとおりに一覧を
8528 列挙して、必要なところだけコメントを加えることにしましょう。
8529 \end_layout
8530
8531 \begin_layout Subsubsection
8532 期待通りに動作するもの
8533 \end_layout
8534
8535 \begin_layout Standard
8536 これらは期待通りに動作するので、ここでは列挙するだけにして、コマンドの説明されている節を挙げておきます。
8537 \family typewriter
8538
8539 \backslash
8540 documentclass
8541 \family default
8542 (2.1.1)・
8543 \family typewriter
8544
8545 \backslash
8546 begin{document}
8547 \family default
8548 (2.2)・
8549 \family typewriter
8550
8551 \backslash
8552 title
8553 \family default
8554 (2.3)・
8555 \family typewriter
8556
8557 \backslash
8558 author
8559 \family default
8560 (2.3)・
8561 \family typewriter
8562
8563 \backslash
8564 affil
8565 \family default
8566 (2.3)・
8567 \family typewriter
8568
8569 \backslash
8570 abstract
8571 \family default
8572 (2.4)・
8573 \family typewriter
8574
8575 \backslash
8576 keywords
8577 \family default
8578 (2.5)・
8579 \family typewriter
8580
8581 \backslash
8582 section
8583 \family default
8584 (2.7)・
8585 \family typewriter
8586
8587 \backslash
8588 subsection
8589 \family default
8590 (2.7)・
8591 \family typewriter
8592
8593 \backslash
8594 subsubsection
8595 \family default
8596 (2.7)・
8597 \family typewriter
8598
8599 \backslash
8600 paragraph
8601 \family default
8602 (2.7)・
8603 \family typewriter
8604
8605 \backslash
8606 facility
8607 \family default
8608 (2.10)・
8609 \family typewriter
8610
8611 \backslash
8612 begin{displaymath}
8613 \family default
8614 (2.12)・
8615 \family typewriter
8616
8617 \backslash
8618 begin{equation}
8619 \family default
8620 (2.12)・
8621 \family typewriter
8622
8623 \backslash
8624 begin{eqnarray}
8625 \family default
8626 (2.12)・
8627 \family typewriter
8628
8629 \backslash
8630 begin{mathletters}
8631 \family default
8632 (2.12)・
8633 \family typewriter
8634
8635 \backslash
8636 begin{thebibliography}
8637 \family default
8638 (2.13.1)・
8639 \family typewriter
8640
8641 \backslash
8642 bibitem
8643 \family default
8644 (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
8645 \family typewriter
8646
8647 \backslash
8648 begin{table}
8649 \family default
8650 (2.15.4)・
8651 \family typewriter
8652
8653 \backslash
8654 begin{tabular}
8655 \family default
8656 (2.15.4)・
8657 \family typewriter
8658
8659 \backslash
8660 caption
8661 \family default
8662 (2.15.4)・
8663 \family typewriter
8664
8665 \backslash
8666 label
8667 \family default
8668 (他にもあるが特に2.15.4)・
8669 \family typewriter
8670
8671 \backslash
8672 tablerefs
8673 \family default
8674 (2.15.5)・
8675 \family typewriter
8676
8677 \backslash
8678 tablecomments
8679 \family default
8680 (2.15.5)・
8681 \family typewriter
8682
8683 \backslash
8684 url
8685 \family default
8686 (2.17.4)・
8687 \family typewriter
8688
8689 \backslash
8690 end{document}
8691 \family default
8692 (2.18)。
8693 \end_layout
8694
8695 \begin_layout Standard
8696 以下のスタイルオプションも正しく動作します。
8697 \family typewriter
8698 longabstract
8699 \family default
8700 (2.4)・
8701 \family typewriter
8702 preprint
8703 \family default
8704 (3.2.1)・
8705 \family typewriter
8706 preprint2
8707 \family default
8708 (3.2.2)・
8709 \family typewriter
8710 eqsecnum
8711 \family default
8712 (3.3)・
8713 \family typewriter
8714 flushrt
8715 \family default
8716 (3.4)。これらは、
8717 \begin_inset Flex MenuItem
8718 status collapsed
8719
8720 \begin_layout Plain Layout
8721 文書\SpecialChar \menuseparator
8722 設定
8723 \end_layout
8724
8725 \end_inset
8726
8727 にある、
8728 \family sans
8729 クラスオプション
8730 \family default
8731
8732 \family sans
8733 任意設定
8734 \family default
8735 ボックスに入力してください。
8736 \end_layout
8737
8738 \begin_layout Subsubsection
8739 動作するが、若干説明が必要なもの
8740 \end_layout
8741
8742 \begin_layout Standard
8743 以下のコマンドは動作しますが、若干の説明が必要です。
8744 \end_layout
8745
8746 \begin_layout Itemize
8747 以下の項目は、学術誌の編集者向けに取ってあるものですが、どうしても必要ならば、LaTeXプリアンブルに入れることができます。
8748 \family typewriter
8749
8750 \backslash
8751 received
8752 \family default
8753
8754 \family typewriter
8755
8756 \backslash
8757 revised
8758 \family default
8759
8760 \family typewriter
8761
8762 \backslash
8763 accepted
8764 \family default
8765
8766 \family typewriter
8767
8768 \backslash
8769 ccc
8770 \family default
8771
8772 \family typewriter
8773 cpright
8774 \family default
8775 (すべて 2.1.3)。
8776 \end_layout
8777
8778 \begin_layout Itemize
8779 以下の項目は、LaTeXのプリアンブルに置くことができるもので、これらは、ひな型ファイルには、空の引数と共に含まれています。
8780 \family typewriter
8781
8782 \backslash
8783 slugcomment
8784 \family default
8785 (2.1.4)・
8786 \family typewriter
8787
8788 \backslash
8789 shorttitle
8790 \family default
8791 (2.1.5)・
8792 \family typewriter
8793
8794 \backslash
8795 shortauthors
8796 \family default
8797 (2.1.5)。
8798 \end_layout
8799
8800 \begin_layout Itemize
8801
8802 \family typewriter
8803
8804 \backslash
8805 email
8806 \family default
8807 (2.3)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、TeXコードを使用してください。
8808 \end_layout
8809
8810 \begin_layout Itemize
8811
8812 \family typewriter
8813
8814 \backslash
8815 and
8816 \family default
8817 (2.3)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8818 \end_layout
8819
8820 \begin_layout Itemize
8821
8822 \family typewriter
8823
8824 \backslash
8825 notetoeditor
8826 \family default
8827 (2.6)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、TeXコードを使用してください。
8828 \end_layout
8829
8830 \begin_layout Itemize
8831
8832 \family typewriter
8833
8834 \backslash
8835 placetable
8836 \family default
8837 (2.8)―相互参照用タグを挿入することはできません。手動でタグ名を入力する必要があります。
8838 \end_layout
8839
8840 \begin_layout Itemize
8841
8842 \family typewriter
8843
8844 \backslash
8845 placefigure
8846 \family default
8847 (2.8)—
8848 \family typewriter
8849
8850 \backslash
8851 placetable
8852 \family default
8853 と同様。
8854 \end_layout
8855
8856 \begin_layout Itemize
8857
8858 \family typewriter
8859
8860 \backslash
8861 acknowledgements
8862 \family default
8863 (2.9)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8864 \end_layout
8865
8866 \begin_layout Itemize
8867
8868 \family typewriter
8869
8870 \backslash
8871 appendix
8872 \family default
8873 (2.11)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8874 \end_layout
8875
8876 \begin_layout Itemize
8877
8878 \family typewriter
8879
8880 \backslash
8881 figcaption
8882 \family default
8883 (2.14.2)―文章のはじめにカーソルを置いて
8884 \begin_inset Flex MenuItem
8885 status collapsed
8886
8887 \begin_layout Plain Layout
8888 挿入\SpecialChar \menuseparator
8889 短縮タイトル
8890 \end_layout
8891
8892 \end_inset
8893
8894 を選択すれば、非必須のファイル名引数を挿入することができます。「短縮タイトル」とありますが、
8895 \family typewriter
8896
8897 \backslash
8898 figcaption
8899 \family default
8900 が必要とする型の非必須引数を挿入します。望むらくはいつの日か改名されることでしょう。
8901 \end_layout
8902
8903 \begin_layout Itemize
8904
8905 \family typewriter
8906
8907 \backslash
8908 objectname
8909 \family default
8910 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
8911 \family typewriter
8912
8913 \backslash
8914 figcaption
8915 \family default
8916 と同様。
8917 \end_layout
8918
8919 \begin_layout Itemize
8920
8921 \family typewriter
8922
8923 \backslash
8924 dataset
8925 \family default
8926 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
8927 \family typewriter
8928
8929 \backslash
8930 figcaption
8931 \family default
8932 と同様。
8933 \end_layout
8934
8935 \begin_layout Subsubsection
8936 実装されていないため、TeXコードを使用するもの
8937 \end_layout
8938
8939 \begin_layout Standard
8940
8941 \family typewriter
8942
8943 \backslash
8944 altaffilmark
8945 \family default
8946 (2.3)・
8947 \family typewriter
8948
8949 \backslash
8950 altaffiltext
8951 \family default
8952 (2.3)・
8953 \family typewriter
8954
8955 \backslash
8956 eqnum
8957 \family default
8958 (2.12)・
8959 \family typewriter
8960
8961 \backslash
8962 setcounter{equation}
8963 \family default
8964 (2.12)・学術誌名略語(2.12.4)・
8965 \family typewriter
8966
8967 \backslash
8968 figurenum
8969 \family default
8970 (2.14.1)・
8971 \family typewriter
8972
8973 \backslash
8974 epsscale
8975 \family default
8976 (2.14.1)・
8977 \family typewriter
8978
8979 \backslash
8980 plotone
8981 \family default
8982 (2.14.1)・
8983 \family typewriter
8984
8985 \backslash
8986 plottwo
8987 \family default
8988 (2.14.1)・
8989 \family typewriter
8990
8991 \backslash
8992 tablenum
8993 \family default
8994 (2.15.4)・
8995 \family typewriter
8996
8997 \backslash
8998 tableline
8999 \family default
9000 (2.15.4:入れたい場所の後ろに、左側セルの最初の要素として挿入する。表中では、LyXの方法は使わないでください)・
9001 \family typewriter
9002
9003 \backslash
9004 tablenotemark
9005 \family default
9006 (2.15.5)・
9007 \family typewriter
9008
9009 \backslash
9010 tablenotetext
9011 \family default
9012 (2.15.5)・補遺(2.17)の大半(
9013 \family typewriter
9014
9015 \backslash
9016 objectname
9017 \family default
9018
9019 \family typewriter
9020
9021 \backslash
9022 dataset
9023 \family default
9024
9025 \family typewriter
9026
9027 \backslash
9028 url
9029 \family default
9030
9031 \family typewriter
9032
9033 \backslash
9034 email
9035 \family default
9036 を除く。上記参照)・
9037 \family typewriter
9038
9039 \backslash
9040 singlespace
9041 \family default
9042 (3.1)・
9043 \family typewriter
9044
9045 \backslash
9046 doublespace
9047 \family default
9048 (3.1)・
9049 \family typewriter
9050
9051 \backslash
9052 onecolumn
9053 \family default
9054 (3.2)・
9055 \family typewriter
9056
9057 \backslash
9058 twocolumn
9059 \family default
9060 (3.2)
9061 \end_layout
9062
9063 \begin_layout Subsubsection
9064 実装できないもの
9065 \end_layout
9066
9067 \begin_layout Standard
9068 references(2.12.3)環境とdeluxetable(2.14)環境は、少なくとも意味のあるような形で実装することができないので、無視してください。もし、
9069 絶対に、どうしても、deluxetableを使う必要があるならば、テキストエディタで別ファイルとして編集し、
9070 \begin_inset Flex MenuItem
9071 status collapsed
9072
9073 \begin_layout Plain Layout
9074 挿入\SpecialChar \menuseparator
9075 ファイル
9076 \begin_inset Formula $\text{\textipa{}}$
9077 \end_inset
9078
9079 \SpecialChar \menuseparator
9080 子文書
9081 \end_layout
9082
9083 \end_inset
9084
9085 を使用して、LyXファイルに読み込むことを推奨します。この実例は、
9086 \family typewriter
9087 aas_sample.lyx
9088 \family default
9089 ファイルをご参照ください。
9090 \end_layout
9091
9092 \begin_layout Subsection
9093 FAQとヒントと技とその他の考察
9094 \end_layout
9095
9096 \begin_layout Subsubsection
9097 LyXをAASTeXと協調させる
9098 \end_layout
9099
9100 \begin_layout Standard
9101 LyXに、新しいレイアウトと文書クラスを認識させるには若干コツが要ります。もしうまく行かなかったら、次のようにしてみてください。
9102 \end_layout
9103
9104 \begin_layout Enumerate
9105 LaTeXが、AASTeXを検出できることを確認してください。AASTeX頒布版に含まれる
9106 \family typewriter
9107 sample.tex
9108 \family default
9109 (あるいは
9110 \family typewriter
9111 table.tex
9112 \family default
9113 でも可)を、LaTeXやAASTeXとまったく関係のないディレクトリにコピーして、
9114 \family typewriter
9115 sample.tex
9116 \family default
9117 をLaTeXにかけてください。
9118 \end_layout
9119
9120 \begin_layout Enumerate
9121
9122 \family typewriter
9123 aastex.layout
9124 \family default
9125 が、LyXの
9126 \family typewriter
9127 layouts
9128 \family default
9129 フォルダにあることを確認してください。
9130 \end_layout
9131
9132 \begin_layout Enumerate
9133 LyX中から
9134 \family sans
9135 ツール\SpecialChar \menuseparator
9136 再初期設定
9137 \family default
9138 を再度実行し、LyXを再起動してください。
9139 \end_layout
9140
9141 \begin_layout Enumerate
9142 ひな型ではなく、通常の新規ファイルを開いてください。AASTeXが、
9143 \family sans
9144 文書\SpecialChar \menuseparator
9145 設定
9146 \family default
9147 のクラス一覧に表示されていますか?
9148 \end_layout
9149
9150 \begin_layout Standard
9151 既存のAASTeX文書を処理する際に、AASTeXレイアウトを見つけられないとか、「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が
9152 出るようであれば、正しい導入が行われていません。
9153 \end_layout
9154
9155 \begin_layout Subsubsection
9156 表を処理する際のLaTeXエラー
9157 \end_layout
9158
9159 \begin_layout Standard
9160 既定では、LyXは、表のキャプションやタイトルを中央揃えにしようと試みます。これはAASTeXと悪い相互干渉を発生させるようですので、キャプションやタイトルのど
9161 こかをクリックして、
9162 \family sans
9163 編集\SpecialChar \menuseparator
9164 段落設定
9165 \family default
9166 を選択し、
9167 \family sans
9168 配置
9169 \family default
9170
9171 \family sans
9172 両端揃え
9173 \family default
9174 に設定してください。私のところではこれで解決しました。
9175 \end_layout
9176
9177 \begin_layout Subsubsection
9178 参考文献
9179 \end_layout
9180
9181 \begin_layout Standard
9182 若干の注意があります。(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです。書誌情報を入力する際には、最後の著者と、著作年を入れる括弧の間にスペ
9183 ースを
9184 \emph on
9185 入れない
9186 \emph default
9187 ようにしてください。たとえば、
9188 \family typewriter
9189 Ressler(1992)
9190 \family default
9191 はいいですが、
9192 \family typewriter
9193 Ressler (1992)
9194 \family default
9195 ではだめです。(2)書誌情報の入力の仕方は、必ずしも自明ではありません。もっとも簡単な方法は、文書の最後に、最初の書誌情報をまず書き込み、それを
9196 \family sans
9197 参考文献
9198 \family default
9199 環境としてマークすることです。すると、入力したものの前に、小さな灰色のボックスが現れます。このボックスをクリックして、残りの情報を入力してください。新しい参考文
9200 献を追加するには、既存の参考文献の後ろでリターンを押します。すると、新しいボックスの付いた新規行が出てくるので、後は同様にしてください。
9201 \end_layout
9202
9203 \begin_layout Subsubsection
9204 EPSファイルの読み込み
9205 \end_layout
9206
9207 \begin_layout Standard
9208 AASTeXには、自前の図関連コマンド(たとえば
9209 \family typewriter
9210
9211 \backslash
9212 plotone
9213 \family default
9214 )がありますが、私は(既定のgraphicxを使った)LaTeXの標準図コマンドの方がずっと好きです。望めば、図フロートボックスに、TeXコードで
9215 \family typewriter
9216
9217 \backslash
9218 plotone
9219 \family default
9220 等のコマンドを挿入することはできますが、私には正しいレイアウトを得ることができた試しがありません。標準の画像コマンドを使えば、LyXは、
9221 \family typewriter
9222
9223 \backslash
9224 usepackage{graphics}
9225 \family default
9226 コマンドをLaTeXプリアンブルに挿入し、図をLaTeX2eの標準的な方法で取り扱って、文章の中にちりばめます。現在、ApJは、ちょうどこのようにして作成した図
9227 を受け入れていますが、AJはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません。
9228 \end_layout
9229
9230 \begin_layout Subsubsection
9231 可能だったが、実装しなかったもの
9232 \end_layout
9233
9234 \begin_layout Standard
9235 「素敵な」ものの中には、実装することも可能だったけれども、あえて実装しなかったものがあります。たとえば、紙の原稿ではダブルスペースであったとしても、LyXウィン
9236 ドウ中で、文章をダブルスペースにする意味はないと考えました。また、preprint様式とpreprint2様式を、独立したレイアウトにすることもしませんでした。
9237 いずれにしても、執筆時間のほとんどを、平の原稿モードで使うのがほとんどですから、これらの機能でディスクスペースを消費しないことにしました。
9238 \end_layout
9239
9240 \begin_layout Subsection
9241 最後に
9242 \end_layout
9243
9244 \begin_layout Standard
9245 これまでに進んできた道のりは、長い人も短い人もいることでしょう。私には、ApJとAJに発表した論文がありますが、その努力の98%はLyX上で為されました。残りの
9246 2%が、LaTeXでの後処理と若干の後片付けです。投稿の過程では何のトラブルもなく、これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう。ですか
9247 ら、がんばって発表してください!
9248 \end_layout
9249
9250 \begin_layout Section
9251 AMS LaTeX
9252 \end_layout
9253
9254 \begin_layout Standard
9255
9256 \noun on
9257 David Johnson
9258 \noun default
9259 文 
9260 \noun on
9261 Richard Heck
9262 \noun default
9263 改訂
9264 \begin_inset VSpace bigskip
9265 \end_inset
9266
9267 AMS LaTeXレイアウトは、American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです。レイアウ
9268 トは、特定の学術誌向けに仕立てられてはいませんが、簡単にそうすることができます。各学術誌毎の指示については、AMSの説明書をご参照ください(通常は、TeX出力中
9269 の一行を変更する必要があるだけです)。AMSの説明書は、ウェブWeb上の
9270 \begin_inset Flex URL
9271 status open
9272
9273 \begin_layout Plain Layout
9274
9275 http://www.ams.org
9276 \end_layout
9277
9278 \end_inset
9279
9280 か、FTPで
9281 \begin_inset Flex URL
9282 status open
9283
9284 \begin_layout Plain Layout
9285
9286 ftp://ftp.ams.org/pub/tex/amslatex/
9287 \end_layout
9288
9289 \end_inset
9290
9291 から入手することができます。これらのレイアウトは、数学的な文章を書くのであれば、どんなときでも適切かつ有用であるはずです。
9292 \end_layout
9293
9294 \begin_layout Standard
9295 基本となるAMS LaTeXレイアウトには、以下の二つがあります。
9296 \end_layout
9297
9298 \begin_layout Itemize
9299 amsart:標準のAMS article書式。
9300 \end_layout
9301
9302 \begin_layout Itemize
9303 amsbook:標準のAMS book(実際はモノグラフ)書式。
9304 \end_layout
9305
9306 \begin_layout Standard
9307 これらのレイアウトには、それ自身では、AMSクラスを使用するのに必要最低限のものしか含まれていません。特に、定理や補題などを設定するのに使用される「theore
9308 m」環境は、何一つ含まれていません。これらは、代わりに
9309 \begin_inset Flex Code
9310 status collapsed
9311
9312 \begin_layout Plain Layout
9313 定理(AMS)
9314 \end_layout
9315
9316 \end_inset
9317
9318 モジュールに収録されており、AMSクラスのいずれかを選択すると、このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ、別
9319 のものに変えたいときは取り除くこともできます)。少し使用頻度の低いものとしては、
9320 \begin_inset Flex Code
9321 status collapsed
9322
9323 \begin_layout Plain Layout
9324 定理(AMS拡張)
9325 \end_layout
9326
9327 \end_inset
9328
9329 モジュールがあり、これは手動で読み込む必要があります。
9330 \end_layout
9331
9332 \begin_layout Standard
9333 既定では、定理類は、文書を通して連番が振られますが、これは
9334 \begin_inset Flex Code
9335 status collapsed
9336
9337 \begin_layout Plain Layout
9338 定理(節毎連番)
9339 \end_layout
9340
9341 \end_inset
9342
9343 モジュールを読み込めば変更することができ、
9344 \begin_inset Flex Code
9345 status collapsed
9346
9347 \begin_layout Plain Layout
9348 book (AMS)
9349 \end_layout
9350
9351 \end_inset
9352
9353 を使用している場合には
9354 \begin_inset Flex Code
9355 status collapsed
9356
9357 \begin_layout Plain Layout
9358 定理(章毎連番)
9359 \end_layout
9360
9361 \end_inset
9362
9363 を用いても変更することができます。これらを用いると、出力は
9364 \begin_inset Formula $n.m$
9365 \end_inset
9366
9367 のようになり、最初の数字は節番号(または章番号)、次の数字はそれまで同節内(章内)に現れた出力の全数を表します。大半の環境は、連番なしでも用いることができます。
9368 連番なしのものは、環境名の後ろにアスタリスクを付けたもので表されます。連番なしの出力
9369 \emph on
9370 のみ
9371 \emph default
9372 が欲しい場合には、
9373 \begin_inset Flex Code
9374 status collapsed
9375
9376 \begin_layout Plain Layout
9377 定理(連番なし)
9378 \end_layout
9379
9380 \end_inset
9381
9382 モジュールを用います。
9383 \end_layout
9384
9385 \begin_layout Standard
9386 これらのモジュールは、AMSクラスで使用する
9387 \emph on
9388 必要はない
9389 \emph default
9390 ことに注意してください。
9391 \begin_inset Flex Code
9392 status collapsed
9393
9394 \begin_layout Plain Layout
9395 定理(AMS)
9396 \end_layout
9397
9398 \end_inset
9399
9400 モジュールや上述の他のモジュールは、他のクラス、たとえば
9401 \begin_inset Flex Code
9402 status collapsed
9403
9404 \begin_layout Plain Layout
9405 article
9406 \end_layout
9407
9408 \end_inset
9409
9410
9411 \begin_inset Flex Code
9412 status collapsed
9413
9414 \begin_layout Plain Layout
9415 report
9416 \end_layout
9417
9418 \end_inset
9419
9420
9421 \begin_inset Flex Code
9422 status collapsed
9423
9424 \begin_layout Plain Layout
9425 book (KOMA-script)
9426 \end_layout
9427
9428 \end_inset
9429
9430 などで問題なく使用することができます。
9431 \end_layout
9432
9433 \begin_layout Subsection
9434 これらのレイアウトが提供するもの
9435 \end_layout
9436
9437 \begin_layout Standard
9438 これらのレイアウトが提供している環境を列挙すると、長い一覧となります。AMS-LaTeXでは、実のところ、「theorem」環境の派生型を際限なく定義していくこ
9439 とが可能です。しかし、AMSは、LyXで利用可能になっている環境のみを使用することを推奨しています。
9440 \end_layout
9441
9442 \begin_layout Standard
9443 \begin_inset Flex Code
9444 status collapsed
9445
9446 \begin_layout Plain Layout
9447 article (AMS)
9448 \end_layout
9449
9450 \end_inset
9451
9452
9453 \begin_inset Flex Code
9454 status collapsed
9455
9456 \begin_layout Plain Layout
9457 book (AMS)
9458 \end_layout
9459
9460 \end_inset
9461
9462 には、------
9463 \begin_inset space ~
9464 \end_inset
9465
9466
9467 \begin_inset Flex Noun
9468 status collapsed
9469
9470 \begin_layout Plain Layout
9471
9472 \end_layout
9473
9474 \end_inset
9475
9476
9477 \begin_inset Flex Noun
9478 status collapsed
9479
9480 \begin_layout Plain Layout
9481 参考文献
9482 \end_layout
9483
9484 \end_inset
9485
9486
9487 \begin_inset Flex Noun
9488 status collapsed
9489
9490 \begin_layout Plain Layout
9491 タイトル
9492 \end_layout
9493
9494 \end_inset
9495
9496
9497 \begin_inset Flex Noun
9498 status collapsed
9499
9500 \begin_layout Plain Layout
9501 著者
9502 \end_layout
9503
9504 \end_inset
9505
9506
9507 \begin_inset Flex Noun
9508 status collapsed
9509
9510 \begin_layout Plain Layout
9511 日付
9512 \end_layout
9513
9514 \end_inset
9515
9516 のような標準環境の他に
9517 \begin_inset space ~
9518 \end_inset
9519
9520 ------
9521 \begin_inset space ~
9522 \end_inset
9523
9524 以下の環境があります。
9525 \end_layout
9526
9527 \begin_layout Description
9528 住所 これは著者の恒久的な住所です。
9529 \end_layout
9530
9531 \begin_layout Description
9532 現在の住所 住所と別に指定されているときには、著者の投稿時の仮初めの住所です。
9533 \end_layout
9534
9535 \begin_layout Description
9536 電子メール 著者の電子メールアドレス
9537 \end_layout
9538
9539 \begin_layout Description
9540 URL 著者のウェブアドレス。任意。
9541 \end_layout
9542
9543 \begin_layout Description
9544 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ。
9545 \end_layout
9546
9547 \begin_layout Description
9548 分野分類 
9549 \emph on
9550 Mathematical Reviews
9551 \emph default
9552 に説明が公表されているAMS Subject Classificationsの分類番号を指します。上述したAMSのウェブサイトでも、オンラインで見ることができま
9553 す。
9554 \end_layout
9555
9556 \begin_layout Description
9557 謝辞
9558 \end_layout
9559
9560 \begin_layout Description
9561 献呈
9562 \end_layout
9563
9564 \begin_layout Description
9565 翻訳者
9566 \end_layout
9567
9568 \begin_layout Standard
9569 以下の環境は、
9570 \begin_inset Flex Code
9571 status collapsed
9572
9573 \begin_layout Plain Layout
9574 定理
9575 \end_layout
9576
9577 \end_inset
9578
9579 モジュールと
9580 \begin_inset Flex Code
9581 status collapsed
9582
9583 \begin_layout Plain Layout
9584 定理(AMS)
9585 \end_layout
9586
9587 \end_inset
9588
9589 モジュールの両方で提供され、後者の場合には、星付き(連番なし)版と星なし(連番)版の両方が提供されます。
9590 \begin_inset Flex Code
9591 status collapsed
9592
9593 \begin_layout Plain Layout
9594 定理(連番なし)
9595 \end_layout
9596
9597 \end_inset
9598
9599 モジュールでは、同環境の星付き版だけが提供されます。
9600 \end_layout
9601
9602 \begin_layout Theorem
9603 これは、通常、得られた主要な結果を叙述するのに使用されます。
9604 \end_layout
9605
9606 \begin_layout Corollary*
9607 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います。これも主要な結果であることがあります。
9608 \end_layout
9609
9610 \begin_layout Lemma
9611 他の叙述を証明するために必要とされる、比較的小さな結果です。
9612 \end_layout
9613
9614 \begin_layout Proposition
9615 議論されている一般的な理論に(希望的には)何かを付け加えるような、主要ではない結果です。
9616 \end_layout
9617
9618 \begin_layout Conjecture
9619 正当化を与えずに述べられた叙述で、著者には証明法がわからないけれども、正しいと(少なくとも著者にとっては)思われるものです。
9620 \end_layout
9621
9622 \begin_layout Definition*
9623 これは自明でしょう。この環境のフォントは、前述の環境とは異なるフォントが使用されます。
9624 \end_layout
9625
9626 \begin_layout Problem
9627 これが何を指すかは必ずしも特定されていません。ご自分で解明してください。
9628 \end_layout
9629
9630 \begin_layout Exercise*
9631 この環境の説明を記述せよ。
9632 \end_layout
9633
9634 \begin_layout Note
9635 この環境もtheorem型、通常は重要性の低い所見に用いられます。
9636 \end_layout
9637
9638 \begin_layout Claim*
9639 より大きな結果の証明を与える途中で、しばしば用いられます。
9640 \end_layout
9641
9642 \begin_layout Case
9643 一般的に、これらはある条件の特定の場合を取り上げて、長い議論を区切るのに用いられます。
9644 \end_layout
9645
9646 \begin_layout Case
9647 ケースの連番の枠組みは、それ自身で独立していて、他の連番の叙述とは区別されます。
9648 \end_layout
9649
9650 \begin_layout Proof
9651 この環境の最後には、証了記号(通常は四角ですがスタイルによって変わります)が置かれます。この環境の中に別の環境を入れたい------たとえばケース環境など---
9652 ---場合で、証了記号は証明環境の終わりにのみ現れるようにしたい場合には、他の環境は証明環境の中に入れ子にしなくてはなりません。入れ子に関する情報については、
9653 \emph on
9654 ユーザーの手引き
9655 \emph default
9656
9657 \emph on
9658 環境を入れ子にする
9659 \emph default
9660 の節をご覧ください。
9661 \end_layout
9662
9663 \begin_layout Standard
9664 そして、以下は
9665 \begin_inset Flex Code
9666 status collapsed
9667
9668 \begin_layout Plain Layout
9669 定理(AMS拡張)
9670 \end_layout
9671
9672 \end_inset
9673
9674 で提供されるものです。
9675 \end_layout
9676
9677 \begin_layout Criterion*
9678 必要とされる条件です。
9679 \end_layout
9680
9681 \begin_layout Algorithm*
9682 使用する一般的手順です。
9683 \end_layout
9684
9685 \begin_layout Axiom*
9686 議論されている系内部で真と仮定される性質や命題です。
9687 \end_layout
9688
9689 \begin_layout Condition*
9690 議論の現在の文脈で仮定されている条件を述べるのに、よく用いられます。
9691 \end_layout
9692
9693 \begin_layout Note*
9694 注記と同様です。
9695 \end_layout
9696
9697 \begin_layout Notation*
9698 表記法の説明に用いられます。
9699 \end_layout
9700
9701 \begin_layout Summary
9702 本当に説明する必要がありますか?
9703 \end_layout
9704
9705 \begin_layout Acknowledgement*
9706 謝辞(acknowledgement)です。
9707 \end_layout
9708
9709 \begin_layout Conclusion*
9710 長い議論の終わりに時々用いられます。
9711 \end_layout
9712
9713 \begin_layout Fact
9714 命題と同様の用いられ方をしますが、だいたい長くないものに使われるようです。
9715 \end_layout
9716
9717 \begin_layout Standard
9718 さらに、AMSクラスは、AMS LaTeXパッケージとAMSフォントパッケージを自動的に提供します。これらの環境を使用するためには、お使いのシステム上で利用可能
9719 となっている必要があります。
9720 \end_layout
9721
9722 \begin_layout Section
9723 AGU各誌(
9724 \family sans
9725 aguplus)
9726 \end_layout
9727
9728 \begin_layout Standard
9729
9730 \noun on
9731 Martin Vermeer
9732 \noun default
9733
9734 \end_layout
9735
9736 \begin_layout Subsection
9737 概要
9738 \end_layout
9739
9740 \begin_layout Standard
9741 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです。AGU発行のクラスファイルおよび
9742 AGUplusの両方(これらは
9743 \begin_inset Flex URL
9744 status collapsed
9745
9746 \begin_layout Plain Layout
9747
9748 ftp://ftp.agu.org/journals/latex/journals
9749 \end_layout
9750
9751 \end_inset
9752
9753 にあります)が導入されていることが必要です。
9754 \end_layout
9755
9756 \begin_layout Subsection
9757 新しいスタイル
9758 \end_layout
9759
9760 \begin_layout Standard
9761
9762 \family sans
9763 段落
9764 \family default
9765 および
9766 \family sans
9767 段落*
9768 \family default
9769 は、定義し直されています。LyXの画面では、依然として
9770 \family sans
9771 段落
9772 \family default
9773
9774 \family sans
9775 段落*
9776 \family default
9777 と表示されますが、AGUクラスにおけるLaTeXの対応物は、
9778 \family sans
9779 Subsubsubsection
9780 \family default
9781
9782 \family sans
9783 Subsubsubsection*
9784 \family default
9785 です。
9786 \end_layout
9787
9788 \begin_layout Standard
9789 新しく定義されたスタイルには、
9790 \family sans
9791 左ヘッダ
9792 \family default
9793
9794 \family sans
9795 右ヘッダ
9796 \family default
9797
9798 \family sans
9799 受理日
9800 \family default
9801
9802 \family sans
9803 改訂
9804 \family default
9805
9806 \family sans
9807 採択日
9808 \family default
9809
9810 \family sans
9811 CCC
9812 \family default
9813
9814 \family sans
9815 論文ID
9816 \family default
9817
9818 \family sans
9819 著者住所
9820 \family default
9821
9822 \family sans
9823 廃棄用コメント
9824 \family default
9825 があります。これらは、ほとんど草稿用属性で、AGUクラス説明書で説明されています。
9826 \end_layout
9827
9828 \begin_layout Standard
9829 おそらく、これはまだ恐ろしく不完全です。
9830 \end_layout
9831
9832 \begin_layout Subsection
9833 新しいフロート
9834 \end_layout
9835
9836 \begin_layout Standard
9837
9838 \family sans
9839 平面表(Planotable
9840 \family default
9841 )と
9842 \family sans
9843 挿絵
9844 \family default
9845 (Plate)が新しいフロートです。また、
9846 \family sans
9847 表キャプション
9848 \family default
9849 も付け加えられています。
9850 \end_layout
9851
9852 \begin_layout Subsection
9853 サポートされている学術誌
9854 \end_layout
9855
9856 \begin_layout Itemize
9857
9858 \emph on
9859 Journal of Geophysical Research
9860 \emph default
9861
9862 \family typewriter
9863 jgrga.layout
9864 \family default
9865  --- Martin Vermeer
9866 \end_layout
9867
9868 \begin_layout Standard
9869 ここにあなたの作ったものを加えてください。難しくはありません。
9870 \family typewriter
9871 jgrga.layout
9872 \family default
9873 と 
9874 \family typewriter
9875 aguplus.inc
9876 \family default
9877 を用例として見てください。
9878 \end_layout
9879
9880 \begin_layout Subsection
9881 バグと注意すべきこと
9882 \end_layout
9883
9884 \begin_layout Standard
9885 新しいレイアウトを使うためには、新規文書の作成時に以下の手順を行う必要があります。
9886 \end_layout
9887
9888 \begin_layout Enumerate
9889
9890 \emph on
9891 babelを無効にしてください。
9892 \emph default
9893 これは、
9894 \family sans
9895 ツール\SpecialChar \menuseparator
9896 設定
9897 \family default
9898 メニュー項目で行うことができます(AGUの論文は常に英語ですよね。ですから他の言語は
9899 \emph on
9900 選ばないで下さい
9901 \emph default
9902 )。
9903 \end_layout
9904
9905 \begin_layout Enumerate
9906 使用文書の追加オプションフィールドに
9907 \family typewriter
9908 jgrga
9909 \family default
9910 と入力してください(すみません、これはバグです)。
9911 \end_layout
9912
9913 \begin_layout Enumerate
9914 BibTeX差込枠の2番目のフィールドに
9915 \family sans
9916 agu
9917 \family default
9918 と入力して、参考文献のスタイルに
9919 \family typewriter
9920 agu.bst
9921 \family default
9922 を使用していることを確認してください。標準スタイルはうまく動作しません。
9923 \end_layout
9924
9925 \begin_layout Section
9926 Broadway
9927 \end_layout
9928
9929 \begin_layout Standard
9930
9931 \noun on
9932 Garst Reese
9933 \noun default
9934
9935 \end_layout
9936
9937 \begin_layout Subsection
9938 はじめに
9939 \end_layout
9940
9941 \begin_layout Standard
9942 Broadwayは演劇を書くためのものです。書式はHollywoodよりも装飾的で、それほど標準化されていません。この書式はワークショップに向いているでしょう。
9943 \end_layout
9944
9945 \begin_layout Subsection
9946 特別な問題
9947 \end_layout
9948
9949 \begin_layout Standard
9950 Hollywoodと同様です。
9951 \end_layout
9952
9953 \begin_layout Subsection
9954 特別の機能
9955 \end_layout
9956
9957 \begin_layout Standard
9958
9959 \family sans
9960 話者
9961 \family default
9962 の名前をラベルとして挿入し、名前を挿入する際には、このラベルを相互参照してください。相互参照ダイアログには、登場人物の現在の配役が表示されます。
9963 \end_layout
9964
9965 \begin_layout Subsection
9966 用紙寸法と余白
9967 \end_layout
9968
9969 \begin_layout Standard
9970 USレター寸法で、余白は左1.6インチ、右0.75インチ、上0.5インチ、下0.75インチです。
9971 \end_layout
9972
9973 \begin_layout Subsection
9974 環境
9975 \end_layout
9976
9977 \begin_layout Standard
9978 以下の環境を使うことができます。右に記してあるキー割当ては、broadway.bindを使った場合のものです。
9979 \end_layout
9980
9981 \begin_layout Itemize
9982
9983 \family sans
9984 標準
9985 \begin_inset Newline newline
9986 \end_inset
9987
9988
9989 \family default
9990 これは使わなくていいはずですが、他の環境が当てはまらない場合のためにここに挙げておきます。
9991 \end_layout
9992
9993 \begin_layout Itemize
9994
9995 \family sans
9996 ト書き
9997 \begin_inset space \hfill{}
9998 \end_inset
9999
10000 M-z n
10001 \begin_inset Newline newline
10002 \end_inset
10003
10004
10005 \family default
10006 舞台設定と動作の説明に用います。最初に話者名をすべて大文字で書いておきます。
10007 \end_layout
10008
10009 \begin_layout Itemize
10010
10011 \family sans
10012
10013 \begin_inset space \hfill{}
10014 \end_inset
10015
10016 M-z a
10017 \begin_inset Newline newline
10018 \end_inset
10019
10020
10021 \family default
10022 自動的に連番が振られます。連番は、画面上ではアラビア数字ですが、出力ではローマ数字です。
10023 \end_layout
10024
10025 \begin_layout Itemize
10026
10027 \family sans
10028 幕*
10029 \begin_inset space \hfill{}
10030 \end_inset
10031
10032 M-z S at
10033 \begin_inset Newline newline
10034 \end_inset
10035
10036
10037 \family default
10038 幕の副題です。単に中央揃えの文になります。
10039 \end_layout
10040
10041 \begin_layout Itemize
10042
10043 \family sans
10044 場面
10045 \begin_inset space \hfill{}
10046 \end_inset
10047
10048 M-z S-S
10049 \begin_inset Newline newline
10050 \end_inset
10051
10052
10053 \family default
10054 自動的に連番は振られませんので、手動で番号を付けてください。これは私がどうすればいいか分からなかったためです。
10055 \end_layout
10056
10057 \begin_layout Itemize
10058
10059 \family sans
10060 幕開きに:
10061 \begin_inset space \hfill{}
10062 \end_inset
10063
10064 M-z S-R
10065 \begin_inset Newline newline
10066 \end_inset
10067
10068
10069 \family default
10070 ト書きの特殊な場合で、カーテンが上がるときの舞台設定と動作を説明します。
10071 \end_layout
10072
10073 \begin_layout Itemize
10074
10075 \family sans
10076 話者
10077 \begin_inset space \hfill{}
10078 \end_inset
10079
10080 M-z s
10081 \begin_inset Newline newline
10082 \end_inset
10083
10084
10085 \family default
10086 話者(役者)の配役です。すべて大文字で中央揃えに置かれます。
10087 \end_layout
10088
10089 \begin_layout Itemize
10090
10091 \family sans
10092 括弧付き
10093 \begin_inset space \hfill{}
10094 \end_inset
10095
10096 M-z p
10097 \begin_inset Newline newline
10098 \end_inset
10099
10100
10101 \family default
10102 話者への指示です。括弧は自動的に挿入されます。画面上には左括弧(のみが表示されますが、印字出力には両方の括弧が表示されます。この環境は、
10103 \family sans
10104 対話
10105 \family default
10106 の中だけで使用されます。 
10107 \end_layout
10108
10109 \begin_layout Itemize
10110
10111 \family sans
10112 対話
10113 \begin_inset space \hfill{}
10114 \end_inset
10115
10116 M-z d
10117 \begin_inset Newline newline
10118 \end_inset
10119
10120
10121 \family default
10122 話者の言う内容。
10123 \end_layout
10124
10125 \begin_layout Itemize
10126
10127 \family sans
10128 幕切れ
10129 \begin_inset space \hfill{}
10130 \end_inset
10131
10132 M-z S-C
10133 \begin_inset Newline newline
10134 \end_inset
10135
10136
10137 \family default
10138 幕が降ります。
10139 \end_layout
10140
10141 \begin_layout Itemize
10142
10143 \family sans
10144 タイトル
10145 \begin_inset space \hfill{}
10146 \end_inset
10147
10148 M-z S-T
10149 \end_layout
10150
10151 \begin_layout Itemize
10152
10153 \family sans
10154 著者
10155 \begin_inset space \hfill{}
10156 \end_inset
10157
10158 M-z S-A
10159 \end_layout
10160
10161 \begin_layout Itemize
10162
10163 \family sans
10164 右寄せ住所
10165 \begin_inset space \hfill{}
10166 \end_inset
10167
10168 M-z r
10169 \end_layout
10170
10171 \begin_layout Section
10172 Dinbrief
10173 \end_layout
10174
10175 \begin_layout Standard
10176 文書クラス
10177 \family sans
10178 dinbrief
10179 \family default
10180 は、ドイツの慣習に則った書簡の組版を行うのに用いられます。ひな型ファイルが
10181 \family typewriter
10182 .../lyx/share/templates
10183 \family default
10184 にあるので、それを土台として使用してください。
10185 \end_layout
10186
10187 \begin_layout Section
10188 EGS各誌
10189 \family sans
10190 (egs)
10191 \end_layout
10192
10193 \begin_layout Standard
10194
10195 \noun on
10196 Martin Vermeer
10197 \noun default
10198
10199 \end_layout
10200
10201 \begin_layout Subsection
10202 概要
10203 \end_layout
10204
10205 \begin_layout Standard
10206 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです。必要とされる
10207 \family typewriter
10208 egs.cls
10209 \family default
10210 は、EGSのウェブサイト
10211 \begin_inset Flex URL
10212 status collapsed
10213
10214 \begin_layout Plain Layout
10215
10216 http://www.copernicus.org/
10217 \end_layout
10218
10219 \end_inset
10220
10221 からダウンロードできます。
10222 \end_layout
10223
10224 \begin_layout Subsection
10225 新しいスタイル
10226 \end_layout
10227
10228 \begin_layout Standard
10229 新しいスタイルとして、
10230 \family sans
10231 右寄せ住所
10232 \family default
10233
10234 \family sans
10235 LaTeXタイトル
10236 \family default
10237
10238 \family sans
10239 所属
10240 \family default
10241
10242 \family sans
10243 学術誌名
10244 \family default
10245
10246 \family sans
10247 原稿番号
10248 \family default
10249
10250 \family sans
10251 筆頭著者
10252 \family default
10253
10254 \family sans
10255 受理日
10256 \family default
10257
10258 \family sans
10259 採択日
10260 \family default
10261
10262 \family sans
10263 オフセット
10264 \family default
10265 があります。現在のレイアウトファイルは、残念ながらほとんどモジュール化されておらず、さまざまな
10266 \family typewriter
10267 std*.inc
10268 \family default
10269 ファイルを読み込む形に変えた方が便利になると思われます。
10270 \end_layout
10271
10272 \begin_layout Section
10273 Elsevier各誌
10274 \end_layout
10275
10276 \begin_layout Standard
10277
10278 \lang english
10279 See the LyX template file 
10280 \family typewriter
10281 elsarticle.lyx
10282 \family default
10283 .
10284  It contains all infos you need.
10285 \end_layout
10286
10287 \begin_layout Section
10288 Foils(別名FoilTeX)
10289 \begin_inset CommandInset label
10290 LatexCommand label
10291 name "sec:foiltex"
10292
10293 \end_inset
10294
10295
10296 \end_layout
10297
10298 \begin_layout Standard
10299
10300 \noun on
10301 Allan Rae
10302 \noun default
10303
10304 \end_layout
10305
10306 \begin_layout Subsection
10307 はじめに
10308 \end_layout
10309
10310 \begin_layout Standard
10311 本節では、プレゼンテーション用のスライドを作るための、LyXの使用法を解説します。スライドを作ることのできる文書クラスには、slides・FoilTeX・sem
10312 inar・beamer・powerdotといったクラスがありますが、本節では、そのうちslidesの解説を行います。
10313 \end_layout
10314
10315 \begin_layout Standard
10316 誤解のないように、わかりやすく明確に、もう一度言っておきます。
10317 \end_layout
10318
10319 \begin_layout Standard
10320 \begin_inset VSpace bigskip
10321 \end_inset
10322
10323
10324 \end_layout
10325
10326 \begin_layout Standard
10327 \align center
10328
10329 \size large
10330 本節は「
10331 \family sans
10332 presentation (FoilT
10333 \size default
10334
10335 \begin_inset ERT
10336 status collapsed
10337
10338 \begin_layout Plain Layout
10339
10340 {}
10341 \end_layout
10342
10343 \end_inset
10344
10345
10346 \size large
10347 eX)
10348 \family default
10349 」クラス
10350 \emph on
10351 のみの
10352 \emph default
10353 解説を行います。
10354 \end_layout
10355
10356 \begin_layout Standard
10357 \begin_inset VSpace bigskip
10358 \end_inset
10359
10360
10361 \end_layout
10362
10363 \begin_layout Standard
10364
10365 \family sans
10366 transparencies (slides)
10367 \family default
10368 」の解説をお探しであれば、第
10369 \begin_inset CommandInset ref
10370 LatexCommand ref
10371 reference "sec:slitex"
10372
10373 \end_inset
10374
10375 節をご覧ください。お使いのコンピュータに
10376 \family sans
10377 foils
10378 \family default
10379 クラス(
10380 \family sans
10381 presentation (FoilT
10382 \begin_inset ERT
10383 status collapsed
10384
10385 \begin_layout Plain Layout
10386
10387 {}
10388 \end_layout
10389
10390 \end_inset
10391
10392 eX)
10393 \family default
10394 )が導入されていなければ、
10395 \family sans
10396 foils
10397 \family default
10398 ほど良くはありませんが、おそらく
10399 \family sans
10400 slides
10401 \family default
10402 クラスを使わざるをえないでしょう。
10403 \end_layout
10404
10405 \begin_layout Standard
10406
10407 \family sans
10408 foils
10409 \family default
10410 クラスは、LaTeX2eの一部として含まれているLaTeXクラスファイル
10411 \family sans
10412 foils.cls
10413 \family default
10414 の第2.1版とともに使われるように設計されています。
10415 \end_layout
10416
10417 \begin_layout Subsection
10418 最初の一歩
10419 \end_layout
10420
10421 \begin_layout Standard
10422 いうまでもなく、この文書クラスを使うには、
10423 \family sans
10424 文書\SpecialChar \menuseparator
10425 設定\SpecialChar \menuseparator
10426 文書クラス
10427 \family default
10428 メニューの
10429 \family sans
10430 文書クラス
10431 \family default
10432 ドロップダウンで「
10433 \family sans
10434 presentation (FoilT
10435 \begin_inset ERT
10436 status collapsed
10437
10438 \begin_layout Plain Layout
10439
10440 {}
10441 \end_layout
10442
10443 \end_inset
10444
10445 eX)
10446 \family default
10447 」を選択する必要があります。また、
10448 \family sans
10449 文書設定
10450 \family default
10451 ダイアログ中には、以下のように、このクラスに特有の設定がいくつかあることを知っておかなくてはなりません。
10452 \end_layout
10453
10454 \begin_layout Itemize
10455
10456 \family sans
10457 文書設定
10458 \family default
10459 ダイアログ中の、
10460 \family sans
10461 両面文書
10462 \family default
10463 オプションと
10464 \family sans
10465 二段組文書
10466 \family default
10467 オプションは変更しないでください。これらは 
10468 \family sans
10469 foils
10470 \family default
10471 クラスでは無視されます。
10472 \end_layout
10473
10474 \begin_layout Itemize
10475 既定のフォント寸法は20ptであり、17pt・25pt・30ptを選択することも可能です。
10476 \end_layout
10477
10478 \begin_layout Itemize
10479 既定のフォントは
10480 \family sans
10481 sans
10482 \family default
10483  
10484 \family sans
10485 serif
10486 \family default
10487 ですが、数式ではすべて、通常のローマン体が使用されます。
10488 \end_layout
10489
10490 \begin_layout Itemize
10491 FoilTeXは、35
10492 \begin_inset space \thinspace{}
10493 \end_inset
10494
10495 mmスライド用の特殊寸法の他、A4とレター大の用紙寸法をサポートします。A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません。
10496 \end_layout
10497
10498 \begin_layout Itemize
10499
10500 \family sans
10501 フロートの配置
10502 \family default
10503 の設定は無視されますので、わざわざ変更する必要はありません。フロートはすべて、本文中で定義された位置に表示されます。
10504 \end_layout
10505
10506 \begin_layout Itemize
10507 このクラスの
10508 \family sans
10509 ページレイアウト
10510 \family default
10511 の設定は、若干異なった挙動を示します。FoilTeXでは、ユーザ定義のロゴをはじめ、フッタとへッダに広範な設定ができます。詳細については第
10512 \begin_inset CommandInset ref
10513 LatexCommand ref
10514 reference "sec:foilfoot"
10515
10516 \end_inset
10517
10518 節をご覧ください。タイトルページは、文書中の他のページとは異なった取扱がなされ、ページ番号は
10519 \emph on
10520 つねに
10521 \emph default
10522 付けられず、(ロゴが定義されていれば)ロゴは、
10523 \emph on
10524 つねに
10525 \emph default
10526 ページ下部中央に表示されます。使用できるページ様式とその挙動は、以下の通りです。
10527 \end_layout
10528
10529 \begin_deeper
10530 \begin_layout Labeling
10531 \labelwidthstring MMMMMMM
10532
10533 \family sans
10534 \series bold
10535 empty
10536 \family default
10537 \series default
10538  最終出力には、ページ番号をはじめ、へッダ・フッタが出力されません(もちろん脚注は除きます)。
10539 \end_layout
10540
10541 \begin_layout Labeling
10542 \labelwidthstring MMMMMMM
10543
10544 \family sans
10545 \series bold
10546 plain
10547 \family default
10548 \series default
10549  最終出力には、ページ番号がページ下部の中央に出力されますが、他のへッダ・フッタは出力されません(脚注除く)。
10550 \end_layout
10551
10552 \begin_layout Labeling
10553 \labelwidthstring MMMMMMM
10554
10555 \series bold
10556 foilheadings
10557 \series default
10558  ページ番号が右下隅に出力されます。追記したへッダ・フッタも出力されます。これが既定値です。
10559 \end_layout
10560
10561 \begin_layout Labeling
10562 \labelwidthstring MMMMMMM
10563
10564 \series bold
10565 fancy
10566 \series default
10567  これは
10568 \family sans
10569 fancyheadings
10570 \family default
10571 パッケージを使えるようにします。ただし、FoilTeXパッケージの作者は、ページレイアウトが崩れる可能性があるので、これを使用することは勧めないと言及しています
10572
10573 \end_layout
10574
10575 \end_deeper
10576 \begin_layout Subsubsection
10577 任意設定クラスオプション
10578 \end_layout
10579
10580 \begin_layout Standard
10581 以下のオプションは
10582 \family sans
10583 文書設定
10584 \family default
10585 ダイアログの任意設定クラスオプションボックスで使うことができます。
10586 \end_layout
10587
10588 \begin_layout Labeling
10589 \labelwidthstring MMMMMMx
10590
10591 \series bold
10592 35mmSlide
10593 \series default
10594  これは、ページレイアウトを縦7.33インチ横11インチに設定します。これは35
10595 \begin_inset space \space{}
10596 \end_inset
10597
10598 mmスライドの縦横比にほぼ等しく、このメディアを作る作業が若干易しくなります。
10599 \end_layout
10600
10601 \begin_layout Labeling
10602 \labelwidthstring MMMMMMx
10603
10604 \series bold
10605 headrule
10606 \series default
10607  タイトルページを除くすべてのページのへッダの下に罫線を入れます。
10608 \end_layout
10609
10610 \begin_layout Labeling
10611 \labelwidthstring MMMMMMx
10612
10613 \series bold
10614 footrule
10615 \series default
10616  タイトルページを除くすべてのページのフッタの上に罫線を入れます。
10617 \end_layout
10618
10619 \begin_layout Labeling
10620 \labelwidthstring MMMMMMx
10621
10622 \series bold
10623 dvips
10624 \series default
10625  これは、新規
10626 \family sans
10627 foils
10628 \family default
10629 文書を作成する度に自動的に設定されます。このオプションは、横向きに設定されたページを回転させるのに、dvipsドライバを使うようFoilTeXに指示します。
10630 \end_layout
10631
10632 \begin_layout Labeling
10633 \labelwidthstring MMMMMMx
10634
10635 \series bold
10636 landscape
10637 \series default
10638  このオプションは、用紙寸法を横向きページ大に変更するだけで、回転は行いません。したがって、このオプションを使う場合は、各ページを回転させる外部プログラムを使用
10639 する、プリンタに用紙を横向きに給紙する必要があります。また、このオプションは、
10640 \family sans
10641 Foilhead
10642 \family default
10643 環境と
10644 \family sans
10645 Rotatefoilhead
10646 \family default
10647 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します)。
10648 \end_layout
10649
10650 \begin_layout Labeling
10651 \labelwidthstring MMMMMMx
10652
10653 \series bold
10654 leqno
10655 \series default
10656  数式番号を左側に付けます。
10657 \end_layout
10658
10659 \begin_layout Labeling
10660 \labelwidthstring MMMMMMx
10661
10662 \series bold
10663 fleqn
10664 \series default
10665  数式を左揃えにします。
10666 \end_layout
10667
10668 \begin_layout Subsection
10669 サポートされる環境
10670 \end_layout
10671
10672 \begin_layout Standard
10673 他のクラスで標準的にサポートされている環境は、
10674 \family sans
10675 foils
10676 \family default
10677 クラスでもサポートされています。それ以外に、FoilTeXが提供している環境と、LyXが付け加えた環境があります。以下の環境は、他のクラスと共通の環境です。
10678 \end_layout
10679
10680 \begin_layout Standard
10681 \begin_inset ERT
10682 status open
10683
10684 \begin_layout Plain Layout
10685
10686
10687 \backslash
10688 begin{multicols}{2}
10689 \end_layout
10690
10691 \end_inset
10692
10693
10694 \end_layout
10695
10696 \begin_layout Itemize
10697
10698 \family sans
10699 標準
10700 \end_layout
10701
10702 \begin_layout Itemize
10703
10704 \family sans
10705 箇条書き(記号)
10706 \end_layout
10707
10708 \begin_layout Itemize
10709
10710 \family sans
10711 箇条書き(連番)
10712 \end_layout
10713
10714 \begin_layout Itemize
10715
10716 \family sans
10717 箇条書き(記述)
10718 \end_layout
10719
10720 \begin_layout Itemize
10721
10722 \family sans
10723 箇条書き(リスト)
10724 \end_layout
10725
10726 \begin_layout Itemize
10727
10728 \family sans
10729 LyXコード
10730 \end_layout
10731
10732 \begin_layout Itemize
10733
10734 \family sans
10735 詩句
10736 \end_layout
10737
10738 \begin_layout Itemize
10739
10740 \family sans
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 Standard
10805 \begin_inset ERT
10806 status open
10807
10808 \begin_layout Plain Layout
10809
10810
10811 \backslash
10812 end{multicols}
10813 \end_layout
10814
10815 \end_inset
10816
10817
10818 \end_layout
10819
10820 \begin_layout Standard
10821 つまり、節区切りを除けば、主な環境のすべてです。一枚のスライドは、基本的にタイトルと本文を備えた自己完結した節なので、
10822 \family sans
10823 Foil
10824 \family default
10825 TeXは新しいスライドを始める以下のようなコマンドを備えています。
10826 \end_layout
10827
10828 \begin_layout Itemize
10829
10830 \family sans
10831 スライドタイトル(Foilhead)
10832 \end_layout
10833
10834 \begin_layout Itemize
10835
10836 \family sans
10837 横置きスライドタイトル(Rotatefoilhead)
10838 \end_layout
10839
10840 \begin_layout Standard
10841 LyXは、以下のような、これらを若干修正した環境も用意しています。
10842 \end_layout
10843
10844 \begin_layout Itemize
10845
10846 \family sans
10847 スライドタイトル(小)(ShortFoilhead)
10848 \end_layout
10849
10850 \begin_layout Itemize
10851
10852 \family sans
10853 横置きスライドタイトル(小)(ShortRotatefoilhead)
10854 \end_layout
10855
10856 \begin_layout Standard
10857 これらの違いは次節で説明します。
10858 \end_layout
10859
10860 \begin_layout Standard
10861 スライドは、アイデアを説明したり、新しい定理を説明したりするのにしばしば使われるので、
10862 \family sans
10863 Foil
10864 \family default
10865 TeXはそれらを説明するのに便利な環境を幅広く用意しています。
10866 \end_layout
10867
10868 \begin_layout Standard
10869 \begin_inset ERT
10870 status open
10871
10872 \begin_layout Plain Layout
10873
10874
10875 \backslash
10876 begin{multicols}{2}
10877 \end_layout
10878
10879 \end_inset
10880
10881
10882 \end_layout
10883
10884 \begin_layout Itemize
10885
10886 \family sans
10887 定理
10888 \end_layout
10889
10890 \begin_layout Itemize
10891
10892 \family sans
10893 補題
10894 \end_layout
10895
10896 \begin_layout Itemize
10897
10898 \family sans
10899
10900 \end_layout
10901
10902 \begin_layout Itemize
10903
10904 \family sans
10905 命題
10906 \end_layout
10907
10908 \begin_layout Itemize
10909
10910 \family sans
10911 定義
10912 \end_layout
10913
10914 \begin_layout Itemize
10915
10916 \family sans
10917 証明
10918 \end_layout
10919
10920 \begin_layout Itemize
10921
10922 \family sans
10923 定理*
10924 \end_layout
10925
10926 \begin_layout Itemize
10927
10928 \family sans
10929 補題*
10930 \end_layout
10931
10932 \begin_layout Itemize
10933
10934 \family sans
10935 系*
10936 \end_layout
10937
10938 \begin_layout Itemize
10939
10940 \family sans
10941 命題*
10942 \end_layout
10943
10944 \begin_layout Itemize
10945
10946 \family sans
10947 定義*
10948 \end_layout
10949
10950 \begin_layout Standard
10951 \begin_inset ERT
10952 status open
10953
10954 \begin_layout Plain Layout
10955
10956
10957 \backslash
10958 end{multicols}
10959 \end_layout
10960
10961 \end_inset
10962
10963
10964 \end_layout
10965
10966 \begin_layout Standard
10967 星付き版は連番が振られず、星なし版は連番が振られます。他に、LyXで追加された以下の2つの箇条書き環境があります。
10968 \end_layout
10969
10970 \begin_layout Itemize
10971
10972 \family sans
10973 箇条書き(チック)
10974 \end_layout
10975
10976 \begin_layout Itemize
10977
10978 \family sans
10979 箇条書き(クロス)
10980 \end_layout
10981
10982 \begin_layout Standard
10983 FoilTeXには、強力なヘッダ機能とフッタ機能があり、これらはプリアンブルで設定するのが最良ですが、文章中のどこでも設定することができます。もし文書中でこれら
10984 の設定を変更したい場合には、スライドの一番上、foilheadの直後で行うのが良いでしょう。
10985 \end_layout
10986
10987 \begin_layout Standard
10988 この目的のためには、以下のコマンドスタイルがあります(
10989 \shape smallcaps
10990 Martin Vermeer)。
10991 \end_layout
10992
10993 \begin_layout Standard
10994 \begin_inset ERT
10995 status open
10996
10997 \begin_layout Plain Layout
10998
10999
11000 \backslash
11001 begin{multicols}{2}
11002 \end_layout
11003
11004 \end_inset
11005
11006
11007 \end_layout
11008
11009 \begin_layout Itemize
11010
11011 \family sans
11012 グラフィックスロゴ
11013 \end_layout
11014
11015 \begin_layout Itemize
11016
11017 \family sans
11018 配布制限
11019 \end_layout
11020
11021 \begin_layout Itemize
11022
11023 \family sans
11024 右フッタ
11025 \end_layout
11026
11027 \begin_layout Itemize
11028
11029 \family sans
11030 右ヘッダ
11031 \end_layout
11032
11033 \begin_layout Itemize
11034
11035 \family sans
11036 左ヘッダ
11037 \end_layout
11038
11039 \begin_deeper
11040 \begin_layout Standard
11041 \begin_inset space ~
11042 \end_inset
11043
11044
11045 \end_layout
11046
11047 \end_deeper
11048 \begin_layout Standard
11049 \begin_inset ERT
11050 status open
11051
11052 \begin_layout Plain Layout
11053
11054
11055 \backslash
11056 end{multicols}
11057 \end_layout
11058
11059 \end_inset
11060
11061
11062 \end_layout
11063
11064 \begin_layout Standard
11065 FoilTeXが提供しているコマンドで、LyXが直接サポートしていないコマンドもありますが、これらの説明と使い方については、第
11066 \begin_inset CommandInset ref
11067 LatexCommand ref
11068 reference "sec:unsuppfoils"
11069
11070 \end_inset
11071
11072 節で行います。
11073 \end_layout
11074
11075 \begin_layout Subsection
11076 スライドの組を作る
11077 \end_layout
11078
11079 \begin_layout Standard
11080 この節は、様々な環境を使ってスライドの組を作る方法を簡単に紹介します。スライド組の例をご覧になりたい場合は、LyXの
11081 \family typewriter
11082 examples
11083 \family default
11084 フォルダにある
11085 \family typewriter
11086 Foils.lyx
11087 \family default
11088 ファイルをご覧ください。
11089 \end_layout
11090
11091 \begin_layout Subsubsection
11092 タイトルページを作る
11093 \end_layout
11094
11095 \begin_layout Standard
11096
11097 \family sans
11098 タイトル
11099 \family default
11100
11101 \family sans
11102 著者
11103 \family default
11104
11105 \family sans
11106 日付
11107 \family default
11108
11109 \family sans
11110 概要
11111 \family default
11112 環境のある他のクラスとは異なり、
11113 \family sans
11114 foils
11115 \family default
11116 は独立したページにタイトルを作成します。
11117 \family sans
11118 日付
11119 \family default
11120 環境を使用しなかった場合には、LaTeXは(出力を生成し直したときにはいつも)その時点の日付を挿入します。
11121 \end_layout
11122
11123 \begin_layout Subsubsection
11124 新しいスライドを開始する
11125 \end_layout
11126
11127 \begin_layout Standard
11128 前述のように、新しいスライドを開始するには、4つの方法があります。縦向きのスライドを開始するには、
11129 \family sans
11130 スライドタイトル(Foilhead)
11131 \family default
11132
11133 \family sans
11134 スライドタイトル(小)(ShortFoilhead)
11135 \family default
11136 を使用します。両環境の違いは、スライドタイトル(foilhead)とスライド本文の間の余白の違いです。
11137 \end_layout
11138
11139 \begin_layout Standard
11140 横向きのスライドは、
11141 \family sans
11142 横向きスライドタイトル(Rotatefoilhead)
11143 \family default
11144 か横向きスライドタイトル(小)(
11145 \family sans
11146 ShortRotatefoilhead)
11147 \family default
11148 環境を使用して生成します。ここでも両環境の違いは、タイトルと本文の間の余白のみです。どちらの場合も、(小)と記された版は、タイトルと本文の間の余白が、0.5インチ
11149 (約1.27cm)小さくなります。
11150 \end_layout
11151
11152 \begin_layout Standard
11153 横向きのスライドをサポートする際、一つ問題となるのは、スライドを回転させようと思うと、PostScript出力を生成するのに
11154 \family typewriter
11155 dvips
11156 \family default
11157 ドライバを使用することを要求してしまうことです。もしスライドをプリンタに横に給紙することができれば、
11158 \family typewriter
11159 dvips
11160 \family default
11161 ドライバを持っていなくても、横向きのスライドをつくることができます ;-)
11162 \end_layout
11163
11164 \begin_layout Subsubsection
11165 定理・補題・証明など
11166 \end_layout
11167
11168 \begin_layout Standard
11169 LyX中の小さなバグによって、これらの環境の同じ型をお互いに直接続けて置くことはできません。これらは何かによって分離されなくてはなりません。仮に二つ続けて置いて
11170 も、2つの環境をマージしたかのように、前の環境が延長されるだけです。この問題を回避するにはどうすればよいのでしょうか。最も簡単な方法は、二つの環境の間に何か文章
11171 を置くか、あるいは二つの間に「
11172 \family typewriter
11173 %
11174 \family default
11175 」だけから成るLaTeX環境を置くことです。これによって、LyXは2つの別々の環境を生成するように強制され、正しいLaTeX出力を得ることができます。LyX頒布
11176 版に含まれる用例ファイルに例があります。この問題は、二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください。
11177 \end_layout
11178
11179 \begin_layout Subsubsection
11180 箇条書き
11181 \end_layout
11182
11183 \begin_layout Standard
11184 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて、二つの新しい様式を使用することができます。ここでは、その新しい様式のみを説明することにします。
11185 他の箇条書き環境について詳しく知りたい場合には、
11186 \emph on
11187 ユーザーの手引き
11188 \emph default
11189 をご覧ください。記号による箇条書きを使用したい場合には、上記第
11190 \begin_inset CommandInset ref
11191 LatexCommand ref
11192 reference "sec:ブリット"
11193
11194 \end_inset
11195
11196 節の
11197 \family sans
11198 箇条書き(記号)ブリットの指定
11199 \family default
11200 の節も、読まれることが望ましいでしょう。
11201 \end_layout
11202
11203 \begin_layout Standard
11204
11205 \family sans
11206 箇条書き(チック)
11207 \family default
11208
11209 \family sans
11210 箇条書き(クロス)
11211 \family default
11212 の二つの新しい様式は、チェック印や×印を箇条書きのラベルに使用する専用の環境を提供することで、予定一覧や正誤一覧を作りやすくするように設計されたものです。これら
11213 の箇条書きは、
11214 \family sans
11215 箇条書き(記号)
11216 \family default
11217 の派生型を専用に用意したものに過ぎません。ただし、これらは、
11218 \family typewriter
11219 psnfss
11220 \family default
11221 パッケージが導入済であることを要求します。
11222 \end_layout
11223
11224 \begin_layout Subsubsection
11225 図と表
11226 \end_layout
11227
11228 \begin_layout Standard
11229 FoilTeXでは、図表フロートは、本文中の挿入箇所にこれらが正確に表示されるように再定義されており、ページの上部やユーザー指定場所に押しのけたりはしないように
11230 なっています。たとえフロート配置の設定に変更を加えたとしても、単に無視されます。
11231 \end_layout
11232
11233 \begin_layout Subsubsection
11234 ページヘッダおよびページフッタ
11235 \begin_inset CommandInset label
11236 LatexCommand label
11237 name "sec:foilfoot"
11238
11239 \end_inset
11240
11241
11242 \end_layout
11243
11244 \begin_layout Standard
11245
11246 \family sans
11247 グラフィックスロゴ
11248 \family default
11249
11250 \family sans
11251 配布制限
11252 \family default
11253 の二つは、左フッタ文を制御するものです。前者は、グラフィックスのロゴをスライドに入れるためのもので、既定値は「-Typeset by 
11254 \family sans
11255 Foil
11256 \family default
11257 TeX-」となっています。後者は、「機密事項」などのように、聴衆に秘密区分を提示することを意図しています。既定値では、何も設定されていません。
11258 \end_layout
11259
11260 \begin_layout Standard
11261 スライドの残り三隅には、
11262 \family sans
11263 右フッタ
11264 \family default
11265 (既定ではページ番号)・
11266 \family sans
11267 右ヘッダ
11268 \family default
11269 (右上)・
11270 \family sans
11271 左ヘッダ
11272 \family default
11273 (左上)を使って文字を入れることができます。
11274 \end_layout
11275
11276 \begin_layout Subsection
11277 サポートされない 
11278 \family sans
11279 Foil
11280 \family default
11281 TeX機能
11282 \begin_inset CommandInset label
11283 LatexCommand label
11284 name "sec:unsuppfoils"
11285
11286 \end_inset
11287
11288
11289 \end_layout
11290
11291 \begin_layout Standard
11292 以下で言及されているコマンドは、
11293 \family sans
11294 LaTeX
11295 \family default
11296 環境内で設定されるか、他の環境中の
11297 \family sans
11298 TeXコード
11299 \family default
11300 として設定される必要があります。
11301 \end_layout
11302
11303 \begin_layout Subsubsection
11304 長さ
11305 \end_layout
11306
11307 \begin_layout Standard
11308 長さは、すべて
11309 \family typewriter
11310
11311 \backslash
11312 setlength{
11313 \family default
11314 \emph on
11315 長さ名
11316 \family typewriter
11317 \emph default
11318 }{
11319 \family default
11320 \emph on
11321 新規長さ
11322 \family typewriter
11323 \emph default
11324 }
11325 \family default
11326 コマンドで調節されます。ここで
11327 \emph on
11328 長さ名
11329 \emph default
11330 は、変更したい長さに付けられている名前で置き換え、
11331 \emph on
11332 新規長さ
11333 \emph default
11334 は、その長さの値で置き換えます。長さはすべて、インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か、
11335 \family typewriter
11336
11337 \backslash
11338 textwidth
11339 \family default
11340 のように文書比あるいはフォント基準の長さで指定する必要があります。
11341 \end_layout
11342
11343 \begin_layout Standard
11344
11345 \family typewriter
11346
11347 \backslash
11348 foilheadskip
11349 \family default
11350 で指定される長さを調節することによって、スライドタイトルとスライド本文の間の余白を変更することができます。たとえば、スライドタイトルをすべて0.5
11351 \begin_inset space \space{}
11352 \end_inset
11353
11354 inだけスライド本文に近づけるには、プリアンブルに
11355 \family typewriter
11356
11357 \backslash
11358 setlength{
11359 \backslash
11360 foilheadskip}{-0.5in}
11361 \family default
11362 と書き込みます。
11363 \end_layout
11364
11365 \begin_layout Standard
11366 フロート周囲の余白は、以下の長さを設定することで調整することができます。
11367 \end_layout
11368
11369 \begin_layout Labeling
11370 \labelwidthstring MMMMMMMMMMM
11371
11372 \family typewriter
11373
11374 \backslash
11375 abovefloatskip
11376 \family default
11377  本文とフロート上辺との間隔
11378 \end_layout
11379
11380 \begin_layout Labeling
11381 \labelwidthstring MMMMMMMMMMM
11382
11383 \family typewriter
11384
11385 \backslash
11386 abovecaptionskip
11387 \family default
11388  フロートとキャプションとの間隔
11389 \end_layout
11390
11391 \begin_layout Labeling
11392 \labelwidthstring MMMMMMMMMMM
11393
11394 \family typewriter
11395
11396 \backslash
11397 belowcaptionskip
11398 \family default
11399  キャプションとそれに続く本文との間隔
11400 \end_layout
11401
11402 \begin_layout Labeling
11403 \labelwidthstring MMMMMMMMMMM
11404
11405 \family typewriter
11406
11407 \backslash
11408 captionwidth
11409 \family default
11410  この長さを調整することでキャプションを、周囲の本文より短くすることができます。
11411 \family typewriter
11412
11413 \backslash
11414 textwidth
11415 \family default
11416 に対する相対的な長さで調整するのが最も良いでしょう。
11417 \end_layout
11418
11419 \begin_layout Standard
11420 以下のようなタイトルページ関連の長さもあり、タイトルが長い場合や、著者が複数いる場合に使うと便利かもしれません。
11421 \end_layout
11422
11423 \begin_layout Labeling
11424 \labelwidthstring MMMMMMMMMMM
11425
11426 \family typewriter
11427
11428 \backslash
11429 abovetitleskip
11430 \family default
11431  へッダとタイトルとの間隔
11432 \end_layout
11433
11434 \begin_layout Labeling
11435 \labelwidthstring MMMMMMMMMMM
11436
11437 \family typewriter
11438
11439 \backslash
11440 titleauthorskip
11441 \family default
11442  
11443 \family sans
11444 タイトル
11445 \family default
11446 環境と
11447 \family sans
11448 著者
11449 \family default
11450 環境との間隔
11451 \end_layout
11452
11453 \begin_layout Labeling
11454 \labelwidthstring MMMMMMMMMMM
11455
11456 \family typewriter
11457
11458 \backslash
11459 authorauthorskip
11460 \family default
11461  著者が複数いる場合の
11462 \family sans
11463 著者
11464 \family default
11465 行の間隔
11466 \end_layout
11467
11468 \begin_layout Labeling
11469 \labelwidthstring MMMMMMMMMMM
11470
11471 \family typewriter
11472
11473 \backslash
11474 authordateskip
11475 \family default
11476  
11477 \family sans
11478 著者
11479 \family default
11480
11481 \family sans
11482 日付
11483 \family default
11484 との間隔
11485 \end_layout
11486
11487 \begin_layout Labeling
11488 \labelwidthstring MMMMMMMMMMM
11489
11490 \family typewriter
11491
11492 \backslash
11493 dateabstractskip
11494 \family default
11495  
11496 \family sans
11497 日付
11498 \family default
11499
11500 \family sans
11501 概要
11502 \family default
11503 との間隔
11504 \end_layout
11505
11506 \begin_layout Standard
11507 最後に紹介する長さ関連コマンドは、箇条書き環境すべてに使用できるものです。
11508 \family typewriter
11509
11510 \backslash
11511 zerolistvertdimens
11512 \family default
11513 を箇条書き環境の内側に置くと、項目間の垂直余白がすべて取り除かれます。これは長さではなくコマンドなので、上述のもののように
11514 \family typewriter
11515
11516 \backslash
11517 setlength
11518 \family default
11519 を使う必要がないことに注意してください。
11520 \end_layout
11521
11522 \begin_layout Subsubsection
11523 へッダとフッタ
11524 \end_layout
11525
11526 \begin_layout Standard
11527
11528 \family typewriter
11529
11530 \backslash
11531 LogoOn
11532 \family default
11533 および
11534 \family typewriter
11535
11536 \backslash
11537 LogoOff
11538 \family default
11539 は、
11540 \family typewriter
11541 MyLogo
11542 \family default
11543 で定義したロゴを特定のページに入れるかどうかを制御します。
11544 \family typewriter
11545
11546 \backslash
11547 LogoOff
11548 \family default
11549 をプリアンブルに入れると、全スライドからロゴが取り除かれます。特定のスライドにのみロゴを付けたくない場合は、当該ページのスライドタイトルの直後に直接
11550 \family typewriter
11551
11552 \backslash
11553 LogoOff
11554 \family default
11555 を置き、次のスライドタイトルの直後に直接
11556 \family typewriter
11557
11558 \backslash
11559 LogoOn
11560 \family default
11561 を置いてください。
11562 \end_layout
11563
11564 \begin_layout Standard
11565
11566 \family sans
11567 文書レイアウト
11568 \family default
11569 ダイアログで
11570 \family sans
11571 fancy
11572 \family default
11573 ページ様式を使用することを選択した場合には、横置きページのヘッダとフッタが回転後も正しく配置されるように、プリアンブルに
11574 \family typewriter
11575
11576 \backslash
11577 let
11578 \backslash
11579 headwidth
11580 \backslash
11581 textwidth
11582 \family default
11583 を加える必要があるでしょう。これは、
11584 \family sans
11585 fancyheadings
11586 \family default
11587 パッケージが提供するページレイアウトと
11588 \family sans
11589 foils
11590 \family default
11591 クラスの提供するページレイアウトの間に衝突が発生するためです。
11592 \end_layout
11593
11594 \begin_layout Section
11595 Hollywood(Hollywoodスペック・スクリプト)
11596 \end_layout
11597
11598 \begin_layout Standard
11599
11600 \noun on
11601 Garst Reese
11602 \noun default
11603
11604 \end_layout
11605
11606 \begin_layout Subsection
11607 はじめに
11608 \end_layout
11609
11610 \begin_layout Standard
11611 脚本を正しい書式で書くことは、ハリウッドにおける「通過儀礼」です。ハリウッドの脚本は、読み手が内容に集中できるようにし、俳優にとっても読みやすくかつ親しみやすい
11612 ように設計されています。脚本の1ページは、映画の1分でなければならず、銀幕上で見えたり聞こえたりしないものは、脚本に混入してはなりません。また、全体を通してCo
11613 urier 12
11614 \begin_inset space \space{}
11615 \end_inset
11616
11617 ptフォントを使わなければならず、イタリック体は用いてはいけません。
11618 \end_layout
11619
11620 \begin_layout Subsection
11621 特別な問題
11622 \end_layout
11623
11624 \begin_layout Standard
11625 話者の行は、文の途中で改行することは
11626 \emph on
11627 決して
11628 \emph default
11629 あってはなりません。もし話者行の塊が、次頁にまたがる場合には、
11630 \family sans
11631 話者
11632 \family default
11633 名を再度書き、その後に(Cont'd)と加えます。
11634 \end_layout
11635
11636 \begin_layout Subsection
11637 特別な機能
11638 \end_layout
11639
11640 \begin_layout Standard
11641
11642 \family sans
11643 話者
11644 \family default
11645 名はラベルとして挿入し、話者名を挿入するには、そのラベルを相互参照してください。相互参照ダイアログは、登場人物の現在の配役を表示することになります。これは、ト書
11646 きに話者名を挿入するのにも使用することができます。
11647 \end_layout
11648
11649 \begin_layout Subsection
11650 用紙寸法と余白
11651 \end_layout
11652
11653 \begin_layout Standard
11654 USレター寸法で、左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです。
11655 \end_layout
11656
11657 \begin_layout Subsection
11658 環境
11659 \end_layout
11660
11661 \begin_layout Standard
11662 以下の環境が利用可能です。右に示されているキー割当てを使用するには、hollywood.bindを使用してください。
11663 \end_layout
11664
11665 \begin_layout Itemize
11666
11667 \family sans
11668 一般
11669 \begin_inset Newline newline
11670 \end_inset
11671
11672
11673 \family default
11674 他の環境が動作しない場合に使用しますが、これを使うことは避けるようにしてください。
11675 \end_layout
11676
11677 \begin_layout Itemize
11678 フェイドイン:
11679 \begin_inset space \hfill{}
11680 \end_inset
11681
11682
11683 \family sans
11684 M-z S-I
11685 \family default
11686
11687 \begin_inset Newline newline
11688 \end_inset
11689
11690 通常、この後には「Sallyは目を覚ますと」のように続きます。
11691 \end_layout
11692
11693 \begin_layout Itemize
11694
11695 \family sans
11696 屋内:
11697 \begin_inset space \hfill{}
11698 \end_inset
11699
11700 M-z i
11701 \begin_inset Newline newline
11702 \end_inset
11703
11704
11705 \family default
11706 新しい屋内(INTERIOR)カメラの設定を指定します。この後には、かならずDAYやNIGHTなどを指定して、必要な照明を定義します。この行はすべて大文字で書き
11707 ます。
11708 \end_layout
11709
11710 \begin_layout Itemize
11711
11712 \family sans
11713 屋外:
11714 \begin_inset space \hfill{}
11715 \end_inset
11716
11717 M-z e
11718 \begin_inset Newline newline
11719 \end_inset
11720
11721
11722 \family default
11723 屋外(EXTERIOR)カメラの設定を指定します。この行はすべて大文字で書きます。
11724 \end_layout
11725
11726 \begin_layout Itemize
11727
11728 \family sans
11729 話者
11730 \begin_inset space \hfill{}
11731 \end_inset
11732
11733 M-z s
11734 \begin_inset Newline newline
11735 \end_inset
11736
11737
11738 \family default
11739 話す役。
11740 \end_layout
11741
11742 \begin_layout Itemize
11743
11744 \family sans
11745 括弧付き
11746 \begin_inset space \hfill{}
11747 \end_inset
11748
11749 M-z p
11750 \begin_inset Newline newline
11751 \end_inset
11752
11753 話者
11754 \family default
11755 への指示。自動的に括弧()が挿入されますが、LyX上で表示されるのは、左括弧( のみです。印刷出力には右括弧も表示されます。
11756 \end_layout
11757
11758 \begin_layout Itemize
11759
11760 \family sans
11761 対話
11762 \begin_inset space \hfill{}
11763 \end_inset
11764
11765 M-z d
11766 \begin_inset Newline newline
11767 \end_inset
11768
11769 話者
11770 \family default
11771 が話す内容。
11772 \end_layout
11773
11774 \begin_layout Itemize
11775
11776 \family sans
11777 画面遷移
11778 \begin_inset space \hfill{}
11779 \end_inset
11780
11781 M-z t
11782 \begin_inset Newline newline
11783 \end_inset
11784
11785
11786 \family default
11787 カメラの動きの指示。例:CUT TO:。
11788 \end_layout
11789
11790 \begin_layout Itemize
11791
11792 \family sans
11793 フェイドアウト:
11794 \begin_inset space \hfill{}
11795 \end_inset
11796
11797 M-z S-I
11798 \end_layout
11799
11800 \begin_layout Itemize
11801
11802 \family sans
11803 著者
11804 \begin_inset space \hfill{}
11805 \end_inset
11806
11807 M-z S-A
11808 \end_layout
11809
11810 \begin_layout Itemize
11811
11812 \family sans
11813 タイトル
11814 \begin_inset space \hfill{}
11815 \end_inset
11816
11817 M-z S-T
11818 \end_layout
11819
11820 \begin_layout Itemize
11821
11822 \family sans
11823 右寄せ住所
11824 \begin_inset space \hfill{}
11825 \end_inset
11826
11827 M-z r
11828 \end_layout
11829
11830 \begin_layout Subsection
11831 脚本で使われる特別な用語
11832 \end_layout
11833
11834 \begin_layout Itemize
11835 (O.S) — off screen
11836 \end_layout
11837
11838 \begin_layout Itemize
11839 (V.0) — voice over
11840 \end_layout
11841
11842 \begin_layout Itemize
11843 b.g.
11844  — background
11845 \end_layout
11846
11847 \begin_layout Itemize
11848 C.U.
11849  — close-up
11850 \end_layout
11851
11852 \begin_layout Itemize
11853 PAN — camera movement
11854 \end_layout
11855
11856 \begin_layout Itemize
11857 INSERT — cut to close-up of
11858 \end_layout
11859
11860 \begin_layout Section
11861 ijmpcおよびijmpd
11862 \end_layout
11863
11864 \begin_layout Standard
11865
11866 \noun on
11867 Panayotis Papasotiriou
11868 \noun default
11869
11870 \end_layout
11871
11872 \begin_layout Subsection
11873 概観
11874 \end_layout
11875
11876 \begin_layout Standard
11877 ijpmcパッケージは、
11878 \emph on
11879 International Journal of Modern Physics C
11880 \emph default
11881 への電子投稿を可能にするためのマクロ集です。同様に、ijpmdパッケージは、
11882 \emph on
11883 International Journal of Modern Physics D
11884 \emph default
11885 へ投稿する現行を作成するためのものです。両誌ともWorld Scientific社の刊行です。対応する文書クラス名は、それぞれ
11886 \family typewriter
11887 ws-ijmpc.cls
11888 \family default
11889 および
11890 \family typewriter
11891 ws-ijmpd.cls
11892 \family default
11893 です。これらのファイルは、著者のための指針とともに、
11894 \begin_inset Flex URL
11895 status collapsed
11896
11897 \begin_layout Plain Layout
11898
11899 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
11900 \end_layout
11901
11902 \end_inset
11903
11904 および
11905 \begin_inset Flex URL
11906 status collapsed
11907
11908 \begin_layout Plain Layout
11909
11910 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
11911 \end_layout
11912
11913 \end_inset
11914
11915 の各サイトからダウンロードすることができます。両パッケージは、標準「article」パッケージの修正版であり、両者は(一部を除き)ほぼ同一です。LyXは、これら
11916 のパッケージのほとんどの機能をサポートしています。私は両誌へ投稿する論文をLyXで書き上げましたが、何らの問題も生じませんでした。
11917 \end_layout
11918
11919 \begin_layout Subsection
11920 論文を書く
11921 \end_layout
11922
11923 \begin_layout Standard
11924 通常と同じく、論文を書く上で最も易しい方法は、ひな型を使って書き始めることです。
11925 \family sans
11926 ファイル\SpecialChar \menuseparator
11927 新規(ひな形使用)
11928 \family default
11929 をクリックして、ひな型
11930 \family typewriter
11931 ijmpc.lyx
11932 \family default
11933 もしくは
11934 \family typewriter
11935 ijmpd.lyx
11936 \family default
11937 を選択してください。すると、原稿で良く使用されるフィールドを含んだ、ほぼ空の文書ができますので、既存のフィールド(鍵括弧
11938 \family typewriter
11939 <>
11940 \family default
11941 を含む)を正しい情報で置き換えてください。以下の各点にご留意ください。
11942 \end_layout
11943
11944 \begin_layout Enumerate
11945 両パッケージでは、フォント寸法や文書のページ様式を変更することが禁じられているので、LyX中でこれらを変更することはできません。
11946 \end_layout
11947
11948 \begin_layout Enumerate
11949 文書言語は変更してはいけません。論文をプレビューする前に、babelパッケージが使用されていないことを確認してください。これは、
11950 \family sans
11951 ツール\SpecialChar \menuseparator
11952 設定
11953 \family default
11954 をクリックして、
11955 \family sans
11956 言語オプション
11957 \family default
11958 タブを選択し、言語設定で
11959 \family sans
11960 Babelを使う
11961 \family default
11962 チェックボックスを無効にしてから、
11963 \family sans
11964 適用
11965 \family default
11966 をクリックすれば、設定することができます(この変更を固定するなら
11967 \family sans
11968 保存
11969 \family default
11970 を押してください)。
11971 \end_layout
11972
11973 \begin_layout Enumerate
11974 キーワードを定義するに際しては、「キーワード」様式を用いなくてはなりません。
11975 \end_layout
11976
11977 \begin_layout Enumerate
11978 ijmpcパッケージが提供する「分類コード」様式は、PACS番号のような分類コードを定義するのに使用することができます。この機能は、ijmpdパッケージではサポ
11979 ートされていませんので、ご注意ください。
11980 \end_layout
11981
11982 \begin_layout Enumerate
11983 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
11984 きます。これらの使い方は、大凡自明でしょう。LyXは、これらの環境をすべてサポートし、それぞれについて、適切なラベルと文字様式および連番スキームを使用します。
11985 \end_layout
11986
11987 \begin_layout Enumerate
11988 両パッケージは、単純な引用を使用しますので、natbibパッケージは使用してはなりません。LyX中では、引用参照は通常通り表示されますが、出力では上付き文字とし
11989 て表示されます。引用に通常の本文を使用したい場合には、「See Ref.
11990 \begin_inset space \space{}
11991 \end_inset
11992
11993
11994 \family typewriter
11995
11996 \backslash
11997 refcite{キー}
11998 \family default
11999 」のように
12000 \family typewriter
12001 refcite
12002 \family default
12003 コマンドを使用してください。
12004 \end_layout
12005
12006 \begin_layout Enumerate
12007 両パッケージには、「謝辞」環境がありません。謝辞を置くには、「節*」環境を使用してください。
12008 \end_layout
12009
12010 \begin_layout Enumerate
12011 付録は、論文中、謝辞の
12012 \emph on
12013
12014 \emph default
12015 かつ参考文献の
12016 \emph on
12017
12018 \emph default
12019 であれば、入れることができます。LyX上では、「付録領域」という特別な環境があり、これを使って付録の開始位置を指定することができます。この環境は空のままにしてお
12020 かなくてはなりません。この環境は、LaTeXコマンドを書き出すだけで、実際に出力は行いません。LyX上では、青字で「Appendix」という単語が表示され、この
12021 箇所より後の節はすべて付録であることを明示します。「付録領域」は、最初の付録の前に
12022 \emph on
12023 なくてはならない
12024 \emph default
12025 ことに注意してください。さもなくば、出力中において、付録はすべて通常の節として連番が振られてしまいます。
12026 \end_layout
12027
12028 \begin_layout Enumerate
12029 ijmpcおよびijmpdパッケージは、表キャプションを実装するのに
12030 \family typewriter
12031 tbl
12032 \family default
12033 コマンドを使用します。そのため、LyXが作成した表は正しく印字されますが、そのキャプションは無視されます。しかし、TeXコードを少し使えば、この問題を回避して、
12034 キャプションを望み通り印字することができるようになります。そうするには、表フロートを通常通り作成して、キャプションを削除し、代わりにTeXコードで
12035 \family typewriter
12036
12037 \backslash
12038 tbl{表キャプション}{
12039 \family default
12040 (ママ)と入れます。そこに表の内容を入れて、直後をTeXコード
12041 \family typewriter
12042 }
12043 \family default
12044 で閉じてください。このからくりがどのように実装されているかを見るには、ひな型ファイルに入っている表の例を精査してみてください。別の方法としては、表キャプションが
12045 欲しい場合に、表フロート全体を
12046 \family typewriter
12047 .tex
12048 \family default
12049 ファイルに収め、このファイルをLyX文書に取り込んでください(
12050 \family sans
12051 挿入\SpecialChar \menuseparator
12052 ファイル\SpecialChar \menuseparator
12053 子文書
12054 \family default
12055 )。表フロートの作り方についての詳細は、各パッケージに含まれている
12056 \family typewriter
12057 ws-ijmpc.tex
12058 \family default
12059 または
12060 \family typewriter
12061 ws-ijmpd.tex
12062 \family default
12063 ファイルをご覧ください。
12064 \end_layout
12065
12066 \begin_layout Subsection
12067 原稿を投稿するための準備
12068 \end_layout
12069
12070 \begin_layout Standard
12071 論文を投稿する前には、LyX文書をLaTeXファイルに書き出し(
12072 \family sans
12073 ファイル\SpecialChar \menuseparator
12074 書き出し\SpecialChar \menuseparator
12075 LaTeX
12076 \family default
12077
12078 \begin_inset Foot
12079 status open
12080
12081 \begin_layout Plain Layout
12082 実は、LaTeX (plain)とpdflatexとの間で選択ができます。論文を準備するのにpdflatexを使用しようとするのであれば、取り込んである画像がP
12083 DF形式に変換され、pdflatexで使用できるように、pdflatexオプションを指定しなくてはなりません。
12084 \end_layout
12085
12086 \end_inset
12087
12088 、その
12089 \family typewriter
12090 .tex
12091 \family default
12092 ファイルに以下の変更を加える必要があります。
12093 \end_layout
12094
12095 \begin_layout Enumerate
12096
12097 \family typewriter
12098
12099 \backslash
12100 documentclass
12101 \family default
12102 コマンドより前にあるコメント行を削除する。
12103 \end_layout
12104
12105 \begin_layout Enumerate
12106 自身で明示的にLaTeXプリアンブルに置いたコマンドを除き、
12107 \family typewriter
12108
12109 \backslash
12110 makeatletter
12111 \family default
12112 コマンドと
12113 \family typewriter
12114
12115 \backslash
12116 makeatother
12117 \family default
12118 コマンドの間にあるものをすべて削除する。
12119 \end_layout
12120
12121 \begin_layout Standard
12122 こうして修正を加えた
12123 \family typewriter
12124 .tex
12125 \family default
12126 ファイルを保存し、必要な回数LaTeXで処理してください。それによって得られた
12127 \family typewriter
12128 .dvi
12129 \family default
12130 文書も確認された方がよろしいでしょう。
12131 \end_layout
12132
12133 \begin_layout Subsection
12134 TeXコードの使用
12135 \end_layout
12136
12137 \begin_layout Standard
12138 TeXコードを使用するのは、2つのコマンドに限られ、これらは文書の最初に置かれなくてはなりません。論文をひな型
12139 \family typewriter
12140 ijmpc.lyx
12141 \family default
12142 または
12143 \family typewriter
12144 ijmpd.lyx
12145 \family default
12146 を使用して書き始めた場合には、これら必要なTeXコードは、すでに書き込まれています。通常、これらを削除する必要はありません。2つのうち1番めのTeXコードのみが
12147 、奇数ページおよび偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために、修正する必要があります。このTeXコードは、
12148 \family typewriter
12149
12150 \backslash
12151 markboth{著者名}{論文の短縮タイトル}
12152 \family default
12153 という形である必要があります。
12154 \end_layout
12155
12156 \begin_layout Section
12157 iopart
12158 \end_layout
12159
12160 \begin_layout Standard
12161
12162 \noun on
12163 Uwe Stöhr
12164 \noun default
12165
12166 \end_layout
12167
12168 \begin_layout Subsection
12169 概要
12170 \end_layout
12171
12172 \begin_layout Standard
12173 iopartパッケージは、Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12174 す。iopartクラスを使用した論文作成方法の著者用説明書は、ウェブサイト
12175 \begin_inset Flex URL
12176 status collapsed
12177
12178 \begin_layout Plain Layout
12179
12180 ftp://ftp.iop.org/pub/journals/latex2e
12181 \end_layout
12182
12183 \end_inset
12184
12185 からiopartパッケージとともにダウンロード可能です。
12186 \end_layout
12187
12188 \begin_layout Subsection
12189 論文を書く
12190 \end_layout
12191
12192 \begin_layout Standard
12193 論文を書くもっとも簡単な方法は、LyXの用例ファイルフォルダにある
12194 \emph on
12195 IOP-article.lyx
12196 \emph default
12197 を土台にすることです。このファイルを開き、新しい名前で保存して、書き始めてください。この用例ファイルは、特定の環境の使用法についても説明しています。もっとも重要
12198 な助言として、以下の点にご注意ください。
12199 \end_layout
12200
12201 \begin_layout Itemize
12202 文書がPDF・PS・DVIにコンパイルできるようにするためには、文書設定の
12203 \family sans
12204 数式オプション
12205 \family default
12206 で、二つの
12207 \family sans
12208 AMS mathパッケージを使う
12209 \family default
12210 関連オプションが有効になっていないことを確認してください!
12211 \end_layout
12212
12213 \begin_layout Itemize
12214 タイトル環境の選択如何によって、論文の種類が定義されます。種類毎に以下の環境をタイトルに使用してください。
12215 \end_layout
12216
12217 \begin_deeper
12218 \begin_layout Itemize
12219 論文用には
12220 \family sans
12221 タイトル
12222 \end_layout
12223
12224 \begin_layout Itemize
12225 Review用には
12226 \family sans
12227 Review
12228 \end_layout
12229
12230 \begin_layout Itemize
12231 Topical review用には
12232 \family sans
12233 Topical
12234 \end_layout
12235
12236 \begin_layout Itemize
12237 Comment用には
12238 \family sans
12239 Comment
12240 \end_layout
12241
12242 \begin_layout Itemize
12243 Note用には
12244 \family sans
12245 注釈
12246 \end_layout
12247
12248 \begin_layout Itemize
12249 論文用には
12250 \family sans
12251 Paper
12252 \family default
12253 (タイトルと同じ)
12254 \end_layout
12255
12256 \begin_layout Itemize
12257 Preliminary communication用には
12258 \family sans
12259 Prelim
12260 \end_layout
12261
12262 \begin_layout Itemize
12263 Rapid communication用には
12264 \family sans
12265 Rapid
12266 \end_layout
12267
12268 \begin_layout Itemize
12269 編集者へのLetterには
12270 \family sans
12271 書簡
12272 \end_layout
12273
12274 \end_deeper
12275 \begin_layout Itemize
12276
12277 \family sans
12278 書簡
12279 \family default
12280 以外のタイトル環境には、すべて短縮タイトルをつけることもできます。
12281 \end_layout
12282
12283 \begin_layout Itemize
12284 LyXでは直接にサポートされていませんが、一般的なタイトル環境として
12285 \family sans
12286 Article
12287 \family default
12288 があります。執筆する文書が、他のタイトル型にそぐわない場合には、TeXコードでこれを指定することができます。
12289 \end_layout
12290
12291 \begin_layout Standard
12292 特別な表や数式組版に関するヒントなど、詳しい情報については、IOP著者用ガイドラインを参照してください。
12293 \end_layout
12294
12295 \begin_layout Section
12296 Kluwer
12297 \end_layout
12298
12299 \begin_layout Standard
12300
12301 \noun on
12302 Panayotis Papasotiriou
12303 \noun default
12304
12305 \end_layout
12306
12307 \begin_layout Subsection
12308 概要
12309 \end_layout
12310
12311 \begin_layout Standard
12312 Kluwerパッケージは、Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために、同社が作成したマクロ集です。同社
12313 の発行誌のうち、(少なくとも私の専門内で)もっともよく知られているものは、
12314 \emph on
12315 Astrophysics and Space Science
12316 \emph default
12317 (『宇宙物理学と宇宙科学』)と
12318 \emph on
12319 Solar Physics
12320 \emph default
12321 (『太陽系物理学』)ですが、他にも多くの学術誌があります(
12322 \begin_inset Flex URL
12323 status collapsed
12324
12325 \begin_layout Plain Layout
12326
12327 http://www.wkap.nl/jrnllist.htm/JRNLHOME
12328 \end_layout
12329
12330 \end_inset
12331
12332 に全覧があります)。Kluwerパッケージは、
12333 \begin_inset Flex URL
12334 status collapsed
12335
12336 \begin_layout Plain Layout
12337
12338 http://www.wkap.nl/kaphtml.htm/STYLEFILES
12339 \end_layout
12340
12341 \end_inset
12342
12343 からダウンロードできます。完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です)。
12344 \end_layout
12345
12346 \begin_layout Standard
12347 LyXは、このパッケージの機能の多くをサポートしていますが、すべてではありません。しかし、TeXコードを必要とするのは、パッケージ中のいくつかの「変わった」コマ
12348 ンドだけになりました(
12349 \begin_inset CommandInset ref
12350 LatexCommand ref
12351 reference "subsec:kluwer_peculiarities"
12352
12353 \end_inset
12354
12355 参照)。最近、私はLyXを使って書いた論文を
12356 \emph on
12357 Astrophysics and Space Science
12358 \emph default
12359 に投稿しましたが、何らの問題も発生しませんでした。
12360 \end_layout
12361
12362 \begin_layout Subsection
12363 論文を書く
12364 \end_layout
12365
12366 \begin_layout Standard
12367 論文を書き始めるには、ひな型ファイルKluwerを使うのが最も簡単です。
12368 \family sans
12369 ファイル\SpecialChar \menuseparator
12370 新規(ひな型使用)
12371 \family default
12372 をクリックし、ひな型
12373 \family typewriter
12374 kluwer.lyx
12375 \family default
12376 を選択してください。これは、原稿に通常必要となる各フィールドと、それらの使用法が短く書かれただけの、(ほとんど)何も書かれていない文書です。他のテンプレートと同
12377 様に、既存の文章を(括弧
12378 \family typewriter
12379 <>
12380 \family default
12381 を含む)正しい情報で上書きしてください。
12382 \end_layout
12383
12384 \begin_layout Subsection
12385 投稿の準備
12386 \end_layout
12387
12388 \begin_layout Standard
12389 AASTeXパッケージと同様、論文を投稿する前に、以下のような「後処理」を行う必要があります。
12390 \end_layout
12391
12392 \begin_layout Enumerate
12393
12394 \family sans
12395 ファイル\SpecialChar \menuseparator
12396 書き出し\SpecialChar \menuseparator
12397 LateX
12398 \family default
12399 をクリックして、論文をLaTeXファイルに書き出す。
12400 \end_layout
12401
12402 \begin_layout Enumerate
12403 生成された
12404 \family typewriter
12405 .tex
12406 \family default
12407 ファイルに、テキストエディタを使用して、以下のような変更を加える。
12408 \end_layout
12409
12410 \begin_deeper
12411 \begin_layout Enumerate
12412
12413 \family typewriter
12414
12415 \backslash
12416 documentclass
12417 \family default
12418 コマンドより前にあるコメント行を削除する。
12419 \end_layout
12420
12421 \begin_layout Enumerate
12422 意図的にLaTeXプリアンブルに加えたコマンドを除き、
12423 \family typewriter
12424
12425 \backslash
12426 makeatletter
12427 \family default
12428 から 
12429 \family typewriter
12430
12431 \backslash
12432 makeatother
12433 \family default
12434 の間にあるものを、これらのコマンドも含め、すべて削除する。
12435 \end_layout
12436
12437 \begin_layout Standard
12438 変更した
12439 \family typewriter
12440 .tex
12441 \family default
12442 ファイルを保存する。
12443 \end_layout
12444
12445 \end_deeper
12446 \begin_layout Enumerate
12447 この
12448 \family typewriter
12449 .tex
12450 \family default
12451 ファイルを必要な回数(通常3回以内)だけLaTeXにかける。
12452 \end_layout
12453
12454 \begin_layout Enumerate
12455 生成された
12456 \family typewriter
12457 .dvi
12458 \family default
12459 ファイルを
12460 \family sans
12461 xdvi
12462 \family default
12463 などを使って開き、問題がないか確認する(間違いをしていない限り問題ないはずです)。
12464 \end_layout
12465
12466 \begin_layout Subsection
12467 Kluwerパッケージの「風変わり」な特徴
12468 \begin_inset CommandInset label
12469 LatexCommand label
12470 name "subsec:kluwer_peculiarities"
12471
12472 \end_inset
12473
12474
12475 \end_layout
12476
12477 \begin_layout Standard
12478 Kluwerパッケージには、以下のような「風変わりな」特徴があります。
12479 \end_layout
12480
12481 \begin_layout Enumerate
12482 複数の論文を1つのLaTeXファイルへ入れることができます
12483 \begin_inset Foot
12484 status collapsed
12485
12486 \begin_layout Plain Layout
12487 わざわざこんなことをする必要はないでしょう。
12488 \end_layout
12489
12490 \end_inset
12491
12492 。各論文は、「article」環境で囲まなくてはなりません。残念ながら、1つの論文だけを書く場合でも、この環境を省略することはできません。つまり、各論文は
12493 \family typewriter
12494
12495 \backslash
12496 begin{article}
12497 \family default
12498 で始まり、
12499 \family typewriter
12500
12501 \backslash
12502 end{article}
12503 \family default
12504 で終わります。この環境をLyXに実装することも可能でしたが、醜い上に初心者を混乱させる可能性があるので、実装することはしませんでした。したがって、これらの命令(
12505 \family typewriter
12506
12507 \backslash
12508 begin{article}
12509 \family default
12510
12511 \family typewriter
12512
12513 \backslash
12514 end{article}
12515 \family default
12516 )は、直接本文中に入力して、LaTeXコード(「TeXコード」のことです)としてマークする必要があります。
12517 \end_layout
12518
12519 \begin_layout Enumerate
12520 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は、「opening」とよばれる環境に入れなくて
12521 はなりません。これはLyXでは実装されていませんので、タイトルやサブタイトルなどは、2つのTeXコード行(
12522 \family typewriter
12523
12524 \backslash
12525 begin{opening}
12526 \family default
12527 および
12528 \family typewriter
12529
12530 \backslash
12531 end{opening}
12532 \family default
12533 )の間に入れる必要があります。
12534 \end_layout
12535
12536 \begin_layout Enumerate
12537 ユーザーの手引きによれば、参考文献の各項目のラベルは、
12538 \family typewriter
12539
12540 \backslash
12541 protect
12542 \backslash
12543 citeauthoryear{
12544 \family default
12545 \emph on
12546 著者名
12547 \family typewriter
12548 \emph default
12549 }{
12550 \family default
12551 \emph on
12552
12553 \family typewriter
12554 \emph default
12555 }
12556 \family default
12557  と書く必要があります。
12558 \end_layout
12559
12560 \begin_layout Standard
12561 ひな型
12562 \family typewriter
12563 kluwer.lyx
12564 \family default
12565 は、これらの風変わりな点がすべて考慮されています。このひな型を使用して、論文を新たに書きはじめる場合には、特別なことを行う必要はありません。以下の点にのみ留意し
12566 てください。
12567 \end_layout
12568
12569 \begin_layout Enumerate
12570 ひな型にあるTeXコードを削除しないでください。
12571 \end_layout
12572
12573 \begin_layout Enumerate
12574 新しい参考文献項目を入力する場合には、ひな型に例示されている参考文献項目をコピーして、必要に応じて修正してください。
12575 \end_layout
12576
12577 \begin_layout Section
12578 Koma-Script
12579 \end_layout
12580
12581 \begin_layout Standard
12582
12583 \noun on
12584 Bernd Rellermeyer
12585 \noun default
12586
12587 \end_layout
12588
12589 \begin_layout Subsection
12590 概要
12591 \end_layout
12592
12593 \begin_layout Standard
12594 LyXの文書クラス
12595 \emph on
12596 article (koma-script)
12597 \emph default
12598
12599 \emph on
12600 report (koma-script)
12601 \emph default
12602
12603 \emph on
12604 book
12605 \emph default
12606  
12607 \emph on
12608 (koma-script)
12609 \emph default
12610
12611 \emph on
12612 letter
12613 \emph default
12614  
12615 \emph on
12616 (koma-script)
12617 \emph default
12618 は、それぞれKoma-ScriptファミリーのLaTeX文書クラス
12619 \family typewriter
12620 scrartcl.cls
12621 \family default
12622
12623 \family typewriter
12624 scrreprt.cls
12625 \family default
12626
12627 \family typewriter
12628 scrbook.cls
12629 \family default
12630
12631 \family typewriter
12632 scrlettr.cls
12633 \family default
12634 に対応しています。これらは、標準文書クラス
12635 \family typewriter
12636 article.cls
12637 \family default
12638
12639 \family typewriter
12640 report.cls
12641 \family default
12642
12643 \family typewriter
12644 book.cls
12645 \family default
12646
12647 \family typewriter
12648 letter.cls
12649 \family default
12650 の代替物であり、これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します。
12651 \end_layout
12652
12653 \begin_layout Itemize
12654 標準文字寸法は、
12655 \emph on
12656 article (koma-script)
12657 \emph default
12658
12659 \emph on
12660 report (koma-script)
12661 \emph default
12662
12663 \emph on
12664 book (koma-script)
12665 \emph default
12666 で11pt、
12667 \emph on
12668 letter (koma-script)
12669 \emph default
12670 で12ptです。
12671 \end_layout
12672
12673 \begin_layout Itemize
12674 見出しや箇条書き(記述)環境のラベル、および
12675 \emph on
12676 letter (koma-script)
12677 \emph default
12678 文書クラスの要素の多くでは、ボールド体サンセリフフォントが使われます
12679 \begin_inset Foot
12680 status collapsed
12681
12682 \begin_layout Plain Layout
12683 ボールド体サンセリフフォントには、古いcmフォントと新しいecフォントの間に大きな違いがあり、特に見出しの表示の違いが際立ちます。比較すると、ecボールドサンセ
12684 リフフォントの方が、少し細く見えます。ecフォントを使用する際に「通常の」外観が欲しい場合には、
12685 \shape smallcaps
12686 Walter Schmidt
12687 \shape default
12688 作のLaTeXパッケージ
12689 \family typewriter
12690 cmsd.sty
12691 \family default
12692 が役立ちます。
12693 \end_layout
12694
12695 \end_inset
12696
12697 。章見出しの連番は、節見出しの連番と同様に行われ、別行立てで「 Chapter\SpecialChar \ldots{}
12698 」という行がつきません。さらに、多くのオプションによって、見出しの外観を修正するこ
12699 とができます(LyXでは、
12700 \family sans
12701 文書\SpecialChar \menuseparator
12702 設定
12703 \family default
12704 ダイアログの
12705 \family sans
12706 クラスオプション
12707 \family default
12708 フィールドで指定します)。これらのオプションの独語での詳細な説明が、Koma-Scriptの取扱説明書
12709 \emph on
12710 scrguide
12711 \emph default
12712 にあります。
12713 \end_layout
12714
12715 \begin_layout Itemize
12716 Koma-Script文書クラスで、印字部分をデザインする主な方法は、
12717 \family sans
12718 BCOR
12719 \family default
12720 オプションまたは
12721 \family sans
12722 DIV
12723 \family default
12724 オプションを使う方法です(LyXでは、
12725 \family sans
12726 文書\SpecialChar \menuseparator
12727 設定
12728 \family default
12729 ダイアログの
12730 \family sans
12731 クラスオプション
12732 \family default
12733 フィールドで指定します)。これらのオプションは
12734 \family sans
12735 文書\SpecialChar \menuseparator
12736 設定
12737 \family default
12738 ダイアログのオプションと同様に、ページ余白を明示的に変更することができます。これらとその他印字領域オプションのドイツ語での詳細な説明が、Koma-Script取
12739 扱説明書
12740 \emph on
12741 scrguide
12742 \emph default
12743 にあります。
12744 \end_layout
12745
12746 \begin_layout Itemize
12747 Koma-ScriptファミリーのLaTeX文書クラスには、多くの追加コマンドが定義されています。それらのうち、LyXで意味を持つものは、対応する段落環境として
12748 実装されています。
12749 \end_layout
12750
12751 \begin_layout Standard
12752 Koma-ScriptファミリーのLaTeX文書クラスに関する独語の詳細な説明が、Koma-Script取扱説明書
12753 \emph on
12754 scrguide
12755 \emph default
12756 にあります
12757 \begin_inset Foot
12758 status collapsed
12759
12760 \begin_layout Plain Layout
12761 英語翻訳版の
12762 \emph on
12763 screnggu
12764 \emph default
12765 もありますが、完訳ではありません。
12766 \end_layout
12767
12768 \end_inset
12769
12770 。以下の各節では、LyXに関係する側面のみ説明致します。
12771 \end_layout
12772
12773 \begin_layout Subsection
12774 article (koma-script)・report (koma-script)・book (koma-script)
12775 \end_layout
12776
12777 \begin_layout Standard
12778 文書クラス
12779 \emph on
12780 article (koma-script)
12781 \emph default
12782
12783 \emph on
12784 report (koma-script)
12785 \emph default
12786
12787 \emph on
12788 book
12789 \emph default
12790  
12791 \emph on
12792 (koma-script)
12793 \emph default
12794 は、それぞれレイアウトファイル
12795 \family typewriter
12796 scrartcl.layout
12797 \family default
12798
12799 \family typewriter
12800 scrreprt.layou
12801 \family default
12802 t・
12803 \family typewriter
12804 crbook.layout
12805 \family default
12806 によって実装されています。これらは、対応する標準文書クラス
12807 \emph on
12808 article
12809 \emph default
12810
12811 \emph on
12812 report
12813 \emph default
12814
12815 \emph on
12816 book
12817 \emph default
12818 の段落環境を、若干の修正を加えた上ですべて含んでいますが、LyX固有の
12819 \family sans
12820 箇条書き(一覧)
12821 \family default
12822 環境は例外であり、同じ機能を持つ新しい
12823 \family sans
12824 ラベリング
12825 \family default
12826 環境で置き換えられています。この
12827 \family sans
12828 ラベリング
12829 \family default
12830 環境以外にも、新しい段落環境が多く追加されています。これらは、
12831 \emph on
12832 letter (koma-script)
12833 \emph default
12834 には含まれていないのでご注意ください。
12835 \end_layout
12836
12837 \begin_layout Itemize
12838
12839 \family sans
12840 部(addpart)
12841 \family default
12842
12843 \family sans
12844 章(addchap)
12845 \family default
12846
12847 \family sans
12848 節(addsec)
12849 \family default
12850 :これらは、それぞれ
12851 \family sans
12852 部*
12853 \family default
12854
12855 \family sans
12856 章*
12857 \family default
12858
12859 \family sans
12860 節*
12861 \family default
12862 と同等の働きをしますが、加えて目次に項目が表示されるようになります。
12863 \family sans
12864 部(addpart)
12865 \family default
12866
12867 \family sans
12868 章(addchap)
12869 \family default
12870 は、
12871 \emph on
12872 article (koma-script)
12873 \emph default
12874 には収録されていません。
12875 \end_layout
12876
12877 \begin_layout Itemize
12878
12879 \family sans
12880 章(addchap*)
12881 \family default
12882
12883 \family sans
12884 節(addsec*)
12885 \family default
12886 :これらは、
12887 \family sans
12888 章(addchap
12889 \family default
12890 )と
12891 \family sans
12892 節(addsec)
12893 \family default
12894 とまったく同等に動作しますが、加えてランニングへッダを取り除きます。
12895 \family sans
12896 章(addchap*)
12897 \family default
12898 は、 
12899 \emph on
12900 article (koma-script)
12901 \emph default
12902 には収録されていません
12903 \begin_inset Foot
12904 status collapsed
12905
12906 \begin_layout Plain Layout
12907
12908 \emph on
12909 book (koma-script)
12910 \emph default
12911
12912 \emph on
12913 report (koma-script)
12914 \emph default
12915 には、
12916 \family typewriter
12917
12918 \backslash
12919 addpart*
12920 \family default
12921 コマンドもありますが、これは
12922 \family sans
12923 Part*
12924 \family default
12925 と同一なので、LyXでは実装されていません。
12926 \end_layout
12927
12928 \end_inset
12929
12930
12931 \end_layout
12932
12933 \begin_layout Itemize
12934
12935 \family sans
12936 小見出し(minisec)
12937 \family default
12938 :これは文書構造に現れない形で、続く段落の直上に標準文字寸法の見出しを付けます。
12939 \end_layout
12940
12941 \begin_layout Itemize
12942
12943 \family sans
12944 上部キャプション
12945 \family default
12946
12947 \family sans
12948 下部キャプション
12949 \family default
12950 は、ある要素の上部ないし下部にキャプションを配置する際、位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば、表キャプションは、つ
12951 ねに表の上に置くべきでしょう)。また、クラスオプション
12952 \family typewriter
12953 tablecaptionsabove
12954 \family default
12955 を用いれば、キャプションを指定すると、表には
12956 \family sans
12957 上部キャプション
12958 \family default
12959 が、図には
12960 \family sans
12961 下部キャプション
12962 \family default
12963 が適用されるようになります。これを使用するためには、Koma-Script第2.8q版以上が必要です。
12964 \end_layout
12965
12966 \begin_layout Itemize
12967
12968 \family sans
12969 格言(dictum)
12970 \family default
12971 :これは、章頭などに警句を置くのに用いることができます。オプション引数(
12972 \family sans
12973 挿入\SpecialChar \menuseparator
12974 短縮タイトル
12975 \family default
12976 )を用いれば、格言の作者を入れることができます。格言と作者の間は、線で区切られます。これを使用するためには、Koma-Script第2.8q版以上が必要です。
12977 \family sans
12978 格言(dictum)
12979 \family default
12980 は、
12981 \emph on
12982 article (koma-script)
12983 \emph default
12984 には収録されていません。
12985 \end_layout
12986
12987 \begin_layout Standard
12988 以下の各環境は、標準の
12989 \family sans
12990 タイトル
12991 \family default
12992
12993 \family sans
12994 著者
12995 \family default
12996
12997 \family sans
12998 日付
12999 \family default
13000 とともに文書のタイトル領域を形成します。これらは、最初の「通常の」段落よりも前に置かれる必要があります
13001 \begin_inset Foot
13002 status collapsed
13003
13004 \begin_layout Plain Layout
13005 つまり、対応するLaTeXコマンドが
13006 \family typewriter
13007
13008 \backslash
13009 maketitle
13010 \family default
13011 コマンドよりも前に現れなくてはなりません。
13012 \end_layout
13013
13014 \end_inset
13015
13016 。これらの環境が2度以上使用された場合には、後に使用されたものが前のものを上書きします。つまり最後に使用したもののみが有効になります。しかしながら、
13017 \family sans
13018 タイトル
13019 \family default
13020
13021 \family sans
13022 著者
13023 \family default
13024
13025 \family sans
13026 日付
13027 \family default
13028 のような異なる環境の順序を変更しても、生成された文書には何の効果も生じません。
13029 \end_layout
13030
13031 \begin_layout Itemize
13032
13033 \family sans
13034 主題
13035 \family default
13036 :通常のタイトル部(
13037 \family sans
13038 タイトル
13039 \family default
13040
13041 \family sans
13042 著者
13043 \family default
13044
13045 \family sans
13046 日付
13047 \family default
13048 )の上に、文書の主題用の中央揃えの段落を生成します。
13049 \end_layout
13050
13051 \begin_layout Itemize
13052
13053 \family sans
13054 出版社
13055 \family default
13056 :通常のタイトル部(
13057 \family sans
13058 タイトル
13059 \family default
13060
13061 \family sans
13062 著者
13063 \family default
13064
13065 \family sans
13066 日付
13067 \family default
13068 )の下に、出版社名用の中央揃えの段落を生成します。
13069 \end_layout
13070
13071 \begin_layout Itemize
13072
13073 \family sans
13074 献呈
13075 \family default
13076
13077 \emph on
13078 report (koma-script)
13079 \emph default
13080
13081 \emph on
13082 book (koma-script)
13083 \emph default
13084 では、タイトル頁の次に、献辞用の中央揃えの段落を独立した頁として生成します。
13085 \emph on
13086 article (koma-script)
13087 \emph default
13088 の場合は、通常のタイトル部(
13089 \family sans
13090 タイトル
13091 \family default
13092
13093 \family sans
13094 著者
13095 \family default
13096
13097 \family sans
13098 日付
13099 \family default
13100 )の下に献辞用の中央揃えの段落を生成します。
13101 \end_layout
13102
13103 \begin_layout Itemize
13104
13105 \family sans
13106 タイトル頭書き
13107 \family default
13108 :通常のタイトル部(
13109 \family sans
13110 タイトル
13111 \family default
13112
13113 \family sans
13114 著者
13115 \family default
13116
13117 \family sans
13118 日付
13119 \family default
13120 )の上に、文書頭書き用の左揃えの段落を生成します。
13121 \end_layout
13122
13123 \begin_layout Itemize
13124
13125 \family sans
13126 扉裏上部
13127 \family default
13128
13129 \emph on
13130 report (koma-script)
13131 \emph default
13132 や 
13133 \emph on
13134 book (koma-script)
13135 \emph default
13136 の両面印刷において、扉裏上部に左揃え段落を生成します。片面印刷や、
13137 \emph on
13138 article (koma-script)
13139 \emph default
13140 では何の効果も生じません。
13141 \end_layout
13142
13143 \begin_layout Itemize
13144
13145 \family sans
13146 扉裏下部
13147 \family default
13148
13149 \emph on
13150 report (koma-script)
13151 \emph default
13152 や 
13153 \emph on
13154 book (koma-script)
13155 \emph default
13156 の両面印刷において、扉裏下部に左揃え段落を生成します。片面印刷や、
13157 \emph on
13158 article (koma-script)
13159 \emph default
13160 では何の効果も生じません。
13161 \end_layout
13162
13163 \begin_layout Itemize
13164
13165 \family sans
13166 追加タイトル
13167 \family default
13168 :実際の文書の前に、整形を行わない段落から成る、特殊な「汚い」ページを生成します。
13169 \end_layout
13170
13171 \begin_layout Standard
13172 文書クラス
13173 \emph on
13174 article (koma-script)
13175 \emph default
13176
13177 \emph on
13178 report (koma-script)
13179 \emph default
13180
13181 \emph on
13182 book (koma-script)
13183 \emph default
13184 の 各レイアウトファイルは、
13185 \family typewriter
13186 scrmacros.inc
13187 \family default
13188 ファイルを読み込みます。このファイルは、ユーザ環境を定義する場所として想定されています。s
13189 \family typewriter
13190 crmacros.inc
13191 \family default
13192 を、個人用レイアウトディレクトリにコピーして編集してください!
13193 \end_layout
13194
13195 \begin_layout Subsection
13196 letter (koma-script)
13197 \end_layout
13198
13199 \begin_layout Standard
13200 \noindent
13201 文書クラス
13202 \emph on
13203 letter (koma-script)
13204 \emph default
13205 は、レイアウトファイル 
13206 \family typewriter
13207 scrlettr.layout
13208 \family default
13209 で実装されています。このレイアウトファイルには、対応する標準文書クラス
13210 \emph on
13211 letter
13212 \emph default
13213 の全段落環境が、部分的に変更を加えた形で収録されていますが、LyX固有環境の
13214 \family sans
13215 LyXコード
13216 \family default
13217
13218 \family sans
13219 コメント
13220 \family default
13221
13222 \family sans
13223 箇条書き(一覧
13224 \family default
13225 )は、新しく
13226 \family sans
13227 ラベリング
13228 \family default
13229 環境に置き換えられています。それ以外にも、標準文書クラスとは異なり、標準環境の
13230 \family sans
13231 LaTeX
13232 \family default
13233
13234 \family sans
13235 引用(字下げあり)
13236 \family default
13237
13238 \family sans
13239 引用(字下げなし)
13240 \family default
13241
13242 \family sans
13243 詩句
13244 \family default
13245 が収録されています。さらに、新しいletter固有環境がたくさん追加されています。
13246 \end_layout
13247
13248 \begin_layout Standard
13249 この文書クラスで作成した書簡の外観は、様々なLaTeXコマンドをLaTeXプリアンブルに置くことで制御することができます
13250 \begin_inset Foot
13251 status collapsed
13252
13253 \begin_layout Plain Layout
13254 例えば、名前と住所の入った書簡ヘッダの標準的外観は、きわめて頑固です。「普通の」へッダは、プリアンブル中に以下のようなコマンドを入れることで生成することができま
13255 す。
13256 \end_layout
13257
13258 \begin_layout LyX-Code
13259
13260 \backslash
13261 firsthead{
13262 \backslash
13263 parbox[b]{
13264 \backslash
13265 textwidth}
13266 \end_layout
13267
13268 \begin_layout LyX-Code
13269   {
13270 \backslash
13271 ignorespaces 
13272 \backslash
13273 fromname
13274 \backslash
13275
13276 \backslash
13277  
13278 \backslash
13279 ignorespaces 
13280 \backslash
13281 fromaddress}} 
13282 \end_layout
13283
13284 \begin_layout LyX-Code
13285
13286 \backslash
13287 nexthead{
13288 \backslash
13289 parbox[b]{
13290 \backslash
13291 textwidth}
13292 \end_layout
13293
13294 \begin_layout LyX-Code
13295   {
13296 \backslash
13297 ignorespaces 
13298 \backslash
13299 fromname 
13300 \backslash
13301 hfill 
13302 \backslash
13303 ignorespaces 
13304 \backslash
13305 pagename
13306 \backslash
13307
13308 \end_layout
13309
13310 \begin_layout LyX-Code
13311
13312 \backslash
13313 thepage}}
13314 \end_layout
13315
13316 \end_inset
13317
13318 。これらのLaTeXコマンドのドイツ語での詳細な説明は、Koma-Scriptの取扱説明書
13319 \emph on
13320 scrguide
13321 \emph default
13322 にあります。この方法で、書簡の著者は、個人用書簡レイアウトを作ることができます。
13323 \end_layout
13324
13325 \begin_layout Standard
13326
13327 \family sans
13328 書簡
13329 \family default
13330 環境および
13331 \family sans
13332 頭語
13333 \family default
13334 環境は、書簡の冒頭部を定義するもので、すべての書簡で使用しなくてはなりません。LyX文書クラスでは、これらの環境を強調するために、左余白にそれぞれ
13335 \shape italic
13336 L
13337 \shape default
13338
13339 \shape italic
13340 O
13341 \shape default
13342 という文字が表示されます。同一ファイル中には、複数の書簡を書くことができます。
13343 \family sans
13344 頭語
13345 \family default
13346 環境は、同じ受取人への書簡を新しく書き出すものであり、
13347 \family sans
13348 書簡
13349 \family default
13350 環境は、新しい受取人を生成するものです。
13351 \family sans
13352 結語
13353 \family default
13354
13355 \family sans
13356 PS
13357 \family default
13358
13359 \family sans
13360 CC
13361 \family default
13362
13363 \family sans
13364 Encl
13365 \family default
13366 は、通常の段落環境なので、同一の書簡中でも何度も使用することができます。
13367 \end_layout
13368
13369 \begin_layout Itemize
13370
13371 \family sans
13372 書簡
13373 \family default
13374 :受取人のための段落をつくり、暗黙に書簡の開始を定義します。
13375 \end_layout
13376
13377 \begin_layout Itemize
13378
13379 \family sans
13380 頭語
13381 \family default
13382 :敬称のための段落をつくり、暗黙に新しい書簡を開始します。
13383 \end_layout
13384
13385 \begin_layout Itemize
13386
13387 \family sans
13388 結語
13389 \family default
13390 :結語のための段落をつくります。
13391 \end_layout
13392
13393 \begin_layout Itemize
13394
13395 \family sans
13396 PS
13397 \family default
13398 :追伸のための段落をつくります。
13399 \end_layout
13400
13401 \begin_layout Itemize
13402
13403 \family sans
13404 CC
13405 \family default
13406 :同報一覧のための段落をつくります。
13407 \end_layout
13408
13409 \begin_layout Itemize
13410
13411 \family sans
13412 Encl
13413 \family default
13414 :同封物のための段落をつくります。
13415 \end_layout
13416
13417 \begin_layout Standard
13418
13419 \family sans
13420 名前
13421 \family default
13422
13423 \family sans
13424 署名
13425 \family default
13426
13427 \family sans
13428 住所
13429 \family default
13430
13431 \family sans
13432 電話
13433 \family default
13434
13435 \family sans
13436 場所(Place
13437 \family default
13438 )・
13439 \family sans
13440 返送先住所
13441 \family default
13442
13443 \family sans
13444 配送手段(Specialmail)
13445 \family default
13446
13447 \family sans
13448 場所
13449 \family default
13450
13451 \family sans
13452 タイトル
13453 \family default
13454
13455 \family sans
13456 主題
13457 \family default
13458 は、情報入力を促すラベルの付いた入力環境で、文書クラスが適切な処理を行います
13459 \begin_inset Foot
13460 status collapsed
13461
13462 \begin_layout Plain Layout
13463 上述の
13464 \family sans
13465 書簡
13466 \family default
13467
13468 \family sans
13469 頭語
13470 \family default
13471 が、これらのような入力環境でないのは、矛盾しているように感じられるかもしれません。しかしながら、これら2つの環境は特別の意味を持っているために、これらは左余白に
13472 一文字をマークした通常の段落環境として実装しました。さらに、
13473 \family sans
13474 頭語
13475 \family default
13476 環境と
13477 \family sans
13478 結語
13479 \family default
13480 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです。
13481 \end_layout
13482
13483 \end_inset
13484
13485 。これらの環境は、対応する
13486 \family sans
13487 頭語
13488 \family default
13489 環境の前に置く必要があります。
13490 \end_layout
13491
13492 \begin_layout Standard
13493 生成された書簡の実際の外観は、特定の環境の使い方だけではなく、他の要素にも依存するため、これらの環境をWYSIWYGとして実装することには、あまり意味がありませ
13494 ん。たとえば、
13495 \family sans
13496 署名
13497 \family default
13498 環境で入力した署名は、標準的な挙動では、同じ書簡に
13499 \family sans
13500 結語
13501 \family default
13502 環境も使用されているときのみ、書簡の出力に現れます。
13503 \family sans
13504 電話
13505 \family default
13506 環境に入力された値は、標準的な挙動では、書簡の出力には全く表示されません。書簡のヘッダを自由にデザインできることは、前出の脚注で示してあります。
13507 \end_layout
13508
13509 \begin_layout Standard
13510 入力環境は、空の段落として使うことができます。これは、たとえば
13511 \family sans
13512 署名
13513 \family default
13514 環境の場合に有効です。
13515 \family sans
13516 署名
13517 \family default
13518 環境を全く使用しない場合は、標準的な挙動では、
13519 \family sans
13520 名前
13521 \family default
13522 環境の値が署名として使用されますが、空の
13523 \family sans
13524 署名
13525 \family default
13526 環境を作成しておくと、署名の値は無定義となりません。
13527 \end_layout
13528
13529 \begin_layout Standard
13530 入力環境を使用すると、個人データ(名前や住所など)が既に入力された入力環境と、後から入力するデータの入力環境を備えた、書簡のひな型を作成することができます。
13531 \end_layout
13532
13533 \begin_layout Itemize
13534
13535 \family sans
13536 名前
13537 \family default
13538 :送り主の名前。標準的な挙動では、書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます。
13539 \end_layout
13540
13541 \begin_layout Itemize
13542
13543 \family sans
13544 署名
13545 \family default
13546 :送り主の署名。標準的な挙動では、
13547 \family sans
13548 結語
13549 \family default
13550 環境の下に表示されます。
13551 \family sans
13552 署名
13553 \family default
13554 環境を使用しないと、代わりに
13555 \family sans
13556 名前
13557 \family default
13558 環境の値が表示されます。
13559 \end_layout
13560
13561 \begin_layout Itemize
13562
13563 \family sans
13564 住所
13565 \family default
13566 :送り主の住所。標準的な挙動では、書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます。
13567 \end_layout
13568
13569 \begin_layout Itemize
13570
13571 \family sans
13572 電話
13573 \family default
13574 :送り主の電話番号。標準的な挙動では、LaTeX変数
13575 \family typewriter
13576
13577 \backslash
13578 telephonenum
13579 \family default
13580 を設定するだけです。
13581 \end_layout
13582
13583 \begin_layout Itemize
13584
13585 \family sans
13586 場所(Place)
13587 \family default
13588 :書簡を書いた場所。
13589 \end_layout
13590
13591 \begin_layout Itemize
13592
13593 \family sans
13594 日付
13595 \family default
13596 :書簡を書いた日付。
13597 \family sans
13598 場所(Place)
13599 \family default
13600
13601 \family sans
13602 日付
13603 \family default
13604 は、標準的な挙動では、受取人フィールドの下に、単一の右揃え行として場所と日付を生成します。空の
13605 \family sans
13606 日付
13607 \family default
13608 環境を作成しておくと、
13609 \family sans
13610 場所(Place)
13611 \family default
13612 の値如何に関わらず、場所も日付も表示されません。
13613 \family sans
13614 日付
13615 \family default
13616 環境を使用しない場合には、書簡を出力した日付が使用されます。
13617 \end_layout
13618
13619 \begin_layout Itemize
13620
13621 \family sans
13622 返送先住所
13623 \family default
13624 :送り主の返送先住所。標準的な挙動では、受取人の上に小文字のサンセリフ体フォントで表示されます。
13625 \end_layout
13626
13627 \begin_layout Itemize
13628
13629 \family sans
13630 特別便
13631 \family default
13632 :特別便の情報。標準的な挙動では、受取人フィールドの上かつ返送先住所の下に、下線付きで表示されます。
13633 \end_layout
13634
13635 \begin_layout Itemize
13636
13637 \family sans
13638 場所
13639 \family default
13640 :追加情報。標準的な挙動では、受取人フィールドの下の右側に表示されます。
13641 \end_layout
13642
13643 \begin_layout Itemize
13644
13645 \family sans
13646 タイトル
13647 \family default
13648 :書簡の題名。標準的な挙動では、主題の上に大きなボールド体サンセリフフォントで表示されます。
13649 \end_layout
13650
13651 \begin_layout Itemize
13652
13653 \family sans
13654 主題
13655 \family default
13656 :書簡の主題。標準的な挙動では、
13657 \family sans
13658 頭語
13659 \family default
13660 環境の上にボールド体で表示されます。
13661 \end_layout
13662
13663 \begin_layout Standard
13664
13665 \family sans
13666 Yourref・Yourmail・Myref・顧客・インボイス
13667 \family default
13668 といった環境は、
13669 \family sans
13670 タイトル
13671 \family default
13672 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
13673 ィールド行を持つ、ビジネス書簡を作成します。日付フィールドには、
13674 \family sans
13675 日付
13676 \family default
13677 環境の値が使用されます。しかしながら、これらの「ビジネス書簡環境」の一つを使用した場合には、
13678 \family sans
13679 場所(Place)
13680 \family default
13681 の値は書簡には表示されなくなり、LaTeX変数
13682 \family typewriter
13683
13684 \backslash
13685 fromplace
13686 \family default
13687 が設定させるだけになります。通常時に、受取人フィールドの下に右揃えで出力される場所と日付の出力は、抑制されます。これらのビジネス環境は、ラベル付きの入力環境とし
13688 て実装されており、対応する
13689 \family sans
13690 頭語
13691 \family default
13692 環境よりも前に置く必要があります。
13693 \end_layout
13694
13695 \begin_layout Itemize
13696
13697 \family sans
13698 Yourref
13699 \family default
13700 : Your ref.
13701 \end_layout
13702
13703 \begin_layout Itemize
13704
13705 \family sans
13706 Yourmail
13707 \family default
13708 : Your letter of.
13709 \end_layout
13710
13711 \begin_layout Itemize
13712
13713 \family sans
13714 Myref
13715 \family default
13716 : Our ref.
13717 \end_layout
13718
13719 \begin_layout Itemize
13720
13721 \family sans
13722 Customer
13723 \family default
13724 : Customer no.
13725 \end_layout
13726
13727 \begin_layout Itemize
13728
13729 \family sans
13730 Invoice
13731 \family default
13732 : Invoice no.
13733 \end_layout
13734
13735 \begin_layout Subsection
13736 新しいletterクラス:letter (koma-script v.2)
13737 \end_layout
13738
13739 \begin_layout Standard
13740 by 
13741 \noun on
13742 Jürgen Spitzmüller
13743 \begin_inset VSpace medskip
13744 \end_inset
13745
13746
13747 \end_layout
13748
13749 \begin_layout Standard
13750 \noindent
13751 Koma-Script第2.8版では、新しいletterクラス
13752 \family typewriter
13753 scrlttr2
13754 \family default
13755 が導入されたため、
13756 \family typewriter
13757 scrlettr
13758 \family default
13759 は廃止されてサポート対象外となりました。これは—LaTeX側で—全く新しいインターフェイスを持っており、旧クラスとは互換性がありません。したがって、LyXは両者
13760 をサポートしていますが、新しい方のクラスを使用することを推奨します。
13761 \end_layout
13762
13763 \begin_layout Standard
13764 このクラスは、
13765 \emph on
13766 letter (koma-script)
13767 \emph default
13768 と同一の機能に加えて、新しい機能をいくつかサポートしています。基本となる項目は、
13769 \family sans
13770 住所
13771 \family default
13772 (受取人の住所、旧レイアウトの
13773 \family sans
13774 書簡
13775 \family default
13776 と同じ)・
13777 \family sans
13778 頭語
13779 \family default
13780
13781 \family sans
13782 結語
13783 \family default
13784 です。
13785 \family sans
13786 次の住所
13787 \family default
13788 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます)。新しく付け加えられた項目は、送り主の
13789 \family sans
13790 電子メール
13791 \family default
13792
13793 \family sans
13794 URL
13795 \family default
13796
13797 \family sans
13798 ファックス
13799 \family default
13800
13801 \family sans
13802 銀行
13803 \family default
13804 、およびヘッダに(
13805 \family sans
13806 挿入\SpecialChar \menuseparator
13807
13808 \family default
13809 で)
13810 \family sans
13811 ロゴ
13812 \family default
13813 を入れることができるようになった点です。
13814 \end_layout
13815
13816 \begin_layout Standard
13817 しかしながら、もっとも大きな改善は、書簡のレイアウトを、ほとんどどんなニーズにも合わせて設定できるようになった点でしょう。これはプリアンブルか、クラスオプション
13818 として読み込まれる特別なスタイルファイル(「レタークラスオプション」、拡張子
13819 \family typewriter
13820 *.lco
13821 \family default
13822 )によって設定することができます
13823 \begin_inset Foot
13824 status collapsed
13825
13826 \begin_layout Plain Layout
13827 KOMAパッケージには、既定の
13828 \family typewriter
13829 *.lco
13830 \family default
13831 ファイルがいくつか収録されています。たとえば、ドイツの組版規則に則った
13832 \family typewriter
13833 DIN.lco
13834 \family default
13835 や、旧
13836 \family typewriter
13837 scrlettr
13838 \family default
13839 クラスの既定レイアウトを提供する
13840 \family typewriter
13841 KOMAold.lco
13842 \family default
13843 などです。たとえば後者は、
13844 \family sans
13845 文書\SpecialChar \menuseparator
13846 設定\SpecialChar \menuseparator
13847 文書クラス\SpecialChar \menuseparator
13848 クラスオプション
13849 \family default
13850 フィールドにクラスオプション
13851 \family typewriter
13852 KOMAold
13853 \family default
13854 を加えることで読み込むことができます。
13855 \end_layout
13856
13857 \end_inset
13858
13859 。用例としては、LyXに収録されているひな型
13860 \emph on
13861 koma-letter2
13862 \emph default
13863 をご覧ください。詳細な解説は、Koma-Script取扱説明書(
13864 \emph on
13865 scrguide
13866 \emph default
13867 )にあります。
13868 \end_layout
13869
13870 \begin_layout Subsection
13871 問題点
13872 \end_layout
13873
13874 \begin_layout Standard
13875 Koma-Script文書クラスをLyX上に表示する上で、LyXの内部処理が若干の問題を生じめます。
13876 \end_layout
13877
13878 \begin_layout Itemize
13879
13880 \family sans
13881
13882 \family default
13883 環境の章番号は、章見出しと同じ行ではなく、その上に表示されます。これは、レイアウトファイル中の
13884 \family sans
13885 Counter_Chapter
13886 \family default
13887 ラベル型に対するLyXの内部処理が原因です。
13888 \end_layout
13889
13890 \begin_layout Itemize
13891
13892 \family sans
13893 章(addchap)
13894 \family default
13895
13896 \family sans
13897 節(addsec)
13898 \family default
13899 環境の見出しは、「本当の」LaTeXの目次には追加されますが、LyXの目次(
13900 \family sans
13901 移動
13902 \family default
13903 メニュー)には追加されません。
13904 \end_layout
13905
13906 \begin_layout Itemize
13907
13908 \emph on
13909 letter
13910 \emph default
13911 文書クラスでの段落は、垂直スペースによる段落区切りで表示され、字下げはされません。これが標準的な挙動となっていて、特別なLaTeXコマンドは必要ありません。しか
13912 し、
13913 \family sans
13914 文書\SpecialChar \menuseparator
13915 設定
13916 \family default
13917 ダイアログでは、対応するラジオボタンは
13918 \family sans
13919 字下げ
13920 \family default
13921 に設定されています。
13922 \family sans
13923 垂直スペース
13924 \family default
13925 は、隙間を空けるために、文書にLaTeXコマンドをつねに追加するようになっていますが、この文書クラスの場合には、そのような挙動が望まれないためです。
13926 \end_layout
13927
13928 \begin_layout Section
13929 Memoir
13930 \end_layout
13931
13932 \begin_layout Standard
13933
13934 \noun on
13935 Jürgen Spitzmüller
13936 \noun default
13937
13938 \end_layout
13939
13940 \begin_layout Subsection
13941 概観
13942 \end_layout
13943
13944 \begin_layout Standard
13945 Memoirは、非常に強力で、着実に改良が加えられている文書クラスであり、フィクションとノンフィクションの文学作品用に設計されています。その目的は、ユーザーに、
13946 文書の組版に関して最大限の裁量を得させることにあります。Memoirは、標準bookクラスに基づいていますが、articleクラスをエミュレートすることもできま
13947 す(以下参照)。
13948 \end_layout
13949
13950 \begin_layout Standard
13951 Memoir開発者であるPeter Wilsonは、LaTeXの世界での、多くの便利なパッケージの作者として知られていますが、それらのほとんどは、Memoirに
13952 統合されました。このため、章のデザインや、目次や付録などのレイアウトを、はるかに簡単に行うことができます。しかしながら、LyXは、これらすべての素晴らしい機能を
13953 ネイティブでサポートしているわけではありません。これらのうちいくつかは、将来のリリースで追加されるかもしれませんが
13954 \begin_inset Foot
13955 status collapsed
13956
13957 \begin_layout Plain Layout
13958 もし提案があれば、ぜひ
13959 \begin_inset Flex URL
13960 status collapsed
13961
13962 \begin_layout Plain Layout
13963
13964 lyx-devel@lists.lyx.org
13965 \end_layout
13966
13967 \end_inset
13968
13969 までお送り下さい。
13970 \end_layout
13971
13972 \end_inset
13973
13974 、LyXのフレームワークが持つ制約のために、おそらく決して追加されることのないと考えられるものも多数あります。もちろん、ネイティブなLaTeXコマンド(TeXコ
13975 ード
13976 \begin_inset Foot
13977 status collapsed
13978
13979 \begin_layout Plain Layout
13980 【参考】詳細は、第
13981 \begin_inset CommandInset ref
13982 LatexCommand ref
13983 reference "sec:LaTeXコードを挿入する"
13984
13985 \end_inset
13986
13987 節参照。
13988 \end_layout
13989
13990 \end_inset
13991
13992 )の助けを借りれば、全機能を使用できます。この節では、LyXがネイティブにサポートしている機能についてのみ、列挙するものとします。詳細な説明(および他の機能)に
13993 ついては、Memoirクラスの詳しい取扱説明書
13994 \begin_inset Foot
13995 status collapsed
13996
13997 \begin_layout Plain Layout
13998 【参考】
13999 \begin_inset Flex URL
14000 status collapsed
14001
14002 \begin_layout Plain Layout
14003
14004 CTAN:/macros/latex/memoir/memman.pdf
14005 \end_layout
14006
14007 \end_inset
14008
14009
14010 \end_layout
14011
14012 \end_inset
14013
14014 をご覧になることをお勧めします。この取扱説明書は、本クラスのユーザーの手引きであるのみに留まらず、良い組版に関する包括的な解説であり、それ自身が良い組版の傑出し
14015 た用例となっています。
14016 \end_layout
14017
14018 \begin_layout Subsection
14019 基本的な機能と制約
14020 \end_layout
14021
14022 \begin_layout Standard
14023 Memoirは、基本的に、標準bookクラスの全機能をサポートしています。しかしながら、以下に示すような若干の違いがあります。
14024 \end_layout
14025
14026 \begin_layout Description
14027 フォント寸法: Memoirでは、9・10・11・12・14・17と、より広い範囲のフォント寸法が使用可能です。
14028 \end_layout
14029
14030 \begin_layout Description
14031 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため、LaTeXが混乱さ
14032 せられます)、fancyページ様式は使用できません。その代わり、Memoirには、多くの独自のページ様式が付属してきます(
14033 \family sans
14034 文書\SpecialChar \menuseparator
14035 設定\SpecialChar \menuseparator
14036 ページレイアウト
14037 \family default
14038 参照)。これらを章題ページに使用したい場合には、コマンド
14039 \family typewriter
14040
14041 \backslash
14042 chapterstyle
14043 \family default
14044 を、本文またはプリアンブルに記述する必要があります(例えば、
14045 \family typewriter
14046
14047 \backslash
14048 chapterstyle{companion}
14049 \family default
14050 など)。
14051 \end_layout
14052
14053 \begin_layout Description
14054 節分け: 標準クラスでは、節分けコマンド(章・節・小節等)は、非必須引数を一つ取ることができます。これを用いて、目次やヘッダ用に別のタイトルを指定することができ
14055 ます(たとえば、タイトルが長すぎる場合などに用います)。LyXでは、章や節の始めで
14056 \family sans
14057 挿入\SpecialChar \menuseparator
14058 短縮タイトル
14059 \family default
14060 を使えば、これを指定することができます。一方、Memoirでは、第2の非必須引数を取ることができ、目次用のタイトルとヘッダ用のタイトルの指定を分離しています。こ
14061 れを使えば、本文用と目次用とヘッダ用のタイトルの3種類を指定することができます。この機能を使用したい場合には、2つの非必須引数を入力して、最初のものに目次用、次
14062 のものにヘッダ用短縮タイトルを入れてください。
14063 \end_layout
14064
14065 \begin_layout Description
14066 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では、目次と図一覧および表一覧は、自動的に新規頁に置かれます。Memoirは、これとは別の方針を採り
14067 ます。改頁を行いたい場合は、手動で頁区切りを入れなくてはなりません。
14068 \end_layout
14069
14070 \begin_layout Description
14071 タイトル頁: 理由は不明ですが、Memoirはタイトルページに丁付けを行います(標準クラスでは、タイトルページは「empty」様式、すなわち丁付けを行いません)
14072 。タイトル頁に丁付けを行いたくない場合には、プリアンブルに
14073 \family typewriter
14074
14075 \backslash
14076 aliaspagestyle{title}{empty}
14077 \family default
14078 と入力してください。
14079 \end_layout
14080
14081 \begin_layout Description
14082 Article: クラスオプション
14083 \emph on
14084 article
14085 \emph default
14086 を用いる(
14087 \family sans
14088 文書\SpecialChar \menuseparator
14089 設定\SpecialChar \menuseparator
14090 クラスオプション
14091 \family default
14092 で入力)と、article様式をエミュレートできます。すなわち、(脚注・図・表等の)カウンタは、章毎にリセットされず、次の章は頁を改めず(ただし、「本物の」ar
14093 ticleクラスとは違って、頁を改めることも可)、部はbookクラスと同様に、独立の頁を使用します。
14094 \end_layout
14095
14096 \begin_layout Description
14097 Oldfontcommands: LaTeX旧2.09版で使用されていた旧いフォントコマンド(
14098 \family typewriter
14099
14100 \backslash
14101 rm
14102 \family default
14103
14104 \family typewriter
14105
14106 \backslash
14107 it
14108 \family default
14109 など)は、Memoirにおいては、既定では使用することができません。Memoirがこれらのコマンドを検知すると、エラーを発してLaTeXを停止させます。しかし、
14110 クラスオプション
14111 \emph on
14112 oldfontcommands
14113 \emph default
14114 を指定すると、これらのコマンドが容認され、エラーの代わりに警告を発するのみとなります(これによって、少なくともLaTeXは停止しなくなります)。まだ、多くのパッ
14115 ケージと、就中多くのBibTeXスタイルファイルが、これらのコマンドを使用しているので、我々はこのオプションを既定で使うこととしました。
14116 \end_layout
14117
14118 \begin_layout Subsection
14119 追加された機能
14120 \end_layout
14121
14122 \begin_layout Standard
14123 LyXでサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう。詳しくはMemoirの取扱説明書
14124 \begin_inset Foot
14125 status collapsed
14126
14127 \begin_layout Plain Layout
14128 \begin_inset Flex URL
14129 status collapsed
14130
14131 \begin_layout Plain Layout
14132
14133 CTAN:/macros/latex/memoir/memman.pdf
14134 \end_layout
14135
14136 \end_inset
14137
14138
14139 \end_layout
14140
14141 \end_inset
14142
14143 を見てください。
14144 \end_layout
14145
14146 \begin_layout Description
14147 概要: 概要が、追加された機能として扱われているのを不思議に思われるかもしれませんが、bookクラスとしては追加された機能なのです。通常bookクラスには概要は
14148 ないのですが、memoirにはあります。これは、どこでも何回でも自由に使うことができます。
14149 \end_layout
14150
14151 \begin_layout Description
14152 章要約: この古い組版様式はご覧になったことがあるかも知れません。章の内容が、見出しの下と目次に要約されているものです(たとえば、「我らが英雄がトロヤに到着する
14153 。彼は友人を失うが、新たな友人を得る。」など)。章要約(chapterprecis)はこれを行います。したがって、章要約は章の下でのみ意味を持ちます。
14154 \end_layout
14155
14156 \begin_layout Description
14157 題辞: 題辞(epigraph)は章頭の、気の利いた標語やモットーです。題辞環境は、そのような標語を組む洗練された方法を提供します。標語本体(本文)とその著者(
14158 出典)は、短い線で区切られます。この環境には二つの引数(本文と出典)が必要なので、ここでもLyXを少しだます必要があります。ここでは、2つの引数の間に、
14159 \emph on
14160 <標語>
14161 \family typewriter
14162 \emph default
14163 }{
14164 \family default
14165 \emph on
14166 <標語の著者>
14167 \emph default
14168 のように、(TeXモードで)波括弧を入れなくてはなりません。
14169 \end_layout
14170
14171 \begin_layout Description
14172 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが、LyXは、そのうちいくつかしかサポートしていません。詩題はその一
14173 つです。これは詩用の中央揃えタイトルで、目次にも表示されます(詩句が詩の標準環境です。Memoirには、詩句の拡張版もありますが、これらを使うためにはTeXコー
14174 ドを使用しなくてはなりません。これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが、LyXではそれができないためです)。
14175 \end_layout
14176
14177 \begin_layout Description
14178 詩題*: 目次に現れない他は詩題と同じです。
14179 \end_layout
14180
14181 \begin_layout Section
14182 Article(mwart)・book(mwbk)・report(mwrep)
14183 \begin_inset Argument
14184 status collapsed
14185
14186 \begin_layout Plain Layout
14187
14188 \family typewriter
14189 mw
14190 \family default
14191 クラス
14192 \end_layout
14193
14194 \end_inset
14195
14196
14197 \end_layout
14198
14199 \begin_layout Standard
14200
14201 \noun on
14202 Tomasz Luczak
14203 \noun default
14204
14205 \end_layout
14206
14207 \begin_layout Standard
14208 LyX文書クラス
14209 \emph on
14210 article (mwart)
14211 \emph default
14212
14213 \emph on
14214 report (mwrep)・book
14215 \emph default
14216  
14217 \emph on
14218 (mwbk)
14219 \emph default
14220 は、それぞれLaTeX文書クラス
14221 \family typewriter
14222 mwart.cls
14223 \family default
14224
14225 \family typewriter
14226 mwrep.cls
14227 \family default
14228
14229 \family typewriter
14230 mwbk.cls
14231 \family default
14232 に対応しています。これらは、標準の
14233 \family typewriter
14234 article.cls
14235 \family default
14236
14237 \family typewriter
14238 report.cls
14239 \family default
14240
14241 \family typewriter
14242 book.cls
14243 \family default
14244 を代替するものであり、多くの点で、ポーランド語の組版慣習によく適合しています。
14245 \end_layout
14246
14247 \begin_layout Standard
14248 基本的な違いは、次の点です。
14249 \end_layout
14250
14251 \begin_layout Itemize
14252 付番のない見出し(
14253 \family sans
14254 節*
14255 \family default
14256 などの星付き)も目次に加えられます。
14257 \end_layout
14258
14259 \begin_layout Itemize
14260 以下のページスタイルの追加
14261 \end_layout
14262
14263 \begin_deeper
14264 \begin_layout Description
14265 uheadings 分離線付きヘッダ
14266 \end_layout
14267
14268 \begin_layout Description
14269 myheadings 
14270 \family typewriter
14271
14272 \backslash
14273 markright
14274 \family default
14275 コマンドおよび
14276 \family typewriter
14277
14278 \backslash
14279 markboth
14280 \family default
14281 コマンドで設定するカスタムヘッダ
14282 \end_layout
14283
14284 \begin_layout Description
14285 myuheadings 分離線付きカスタムヘッダ
14286 \end_layout
14287
14288 \begin_layout Description
14289 outer ページの外側にページ番号
14290 \end_layout
14291
14292 \end_deeper
14293 \begin_layout Itemize
14294 オプション
14295 \end_layout
14296
14297 \begin_deeper
14298 \begin_layout Description
14299 rmheadings セリフ体見出し --- 既定
14300 \end_layout
14301
14302 \begin_layout Description
14303 sfheadings サンセリフ体見出し
14304 \end_layout
14305
14306 \begin_layout Description
14307 authortitle タイトルページは、著者名・タイトルの順で配置 --- 既定
14308 \end_layout
14309
14310 \begin_layout Description
14311 titleauthor タイトルページは、タイトル・著者名の順で配置
14312 \end_layout
14313
14314 \begin_layout Description
14315 withmarginpar ページ上に余白のための場所を確保
14316 \end_layout
14317
14318 \end_deeper
14319 \begin_layout Section
14320 Paper
14321 \end_layout
14322
14323 \begin_layout Standard
14324
14325 \family sans
14326 paper
14327 \family default
14328 文書クラスは標準
14329 \family sans
14330 article
14331 \family default
14332 クラスの代替となるものです。これは
14333 \family sans
14334 同様の
14335 \family default
14336 機能を提供しますが、サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません。
14337 \end_layout
14338
14339 \begin_layout Section
14340 RevTeX4
14341 \end_layout
14342
14343 \begin_layout Standard
14344 by 
14345 \noun on
14346 Amir Karger
14347 \end_layout
14348
14349 \begin_layout Standard
14350 \begin_inset VSpace bigskip
14351 \end_inset
14352
14353
14354 \end_layout
14355
14356 \begin_layout Standard
14357 \noindent
14358
14359 \family sans
14360 Revtex
14361 \begin_inset space ~
14362 \end_inset
14363
14364 4
14365 \family default
14366 テキストクラスは、アメリカ物理学会のRevTeX 4.0(1999年5月の
14367 \begin_inset Formula $\beta$
14368 \end_inset
14369
14370 リリース)クラスで動作します。
14371 \end_layout
14372
14373 \begin_layout Standard
14374 LyXには、RevTeX 3.1で動作する
14375 \family sans
14376 Revtex
14377 \family default
14378 テキストクラスもあります。しかしながら、第3.1版はLaTeX 2.09で動作するものであり、基本的に時代遅れなものになっています。LyXはLaTeX2eを必要とす
14379 ることから、第3.1版はLyXとうまく協調しないことを意味しますが、動作するようには調整してあります。RevTeX 4.0は、LaTeX2eで素直に動作するようにデ
14380 ザインされているので、LyXと
14381 \family sans
14382 RevTeX
14383 \begin_inset space ~
14384 \end_inset
14385
14386 4
14387 \family default
14388 テキストクラスの組で使用するのは、たいへん簡単です。
14389 \end_layout
14390
14391 \begin_layout Standard
14392 この取扱説明書は、RevTeX 4.0の説明書の
14393 \emph on
14394 補完
14395 \emph default
14396 として使用されることを前提としています。したがって、ここではRevTeX固有マクロの説明はせず、必要な場合にはプリアンブルに何と書けば良いかを知っているものとし
14397 て説明します。
14398 \end_layout
14399
14400 \begin_layout Subsection
14401 導入
14402 \end_layout
14403
14404 \begin_layout Standard
14405 RevTeX 4パッケージのREADMEファイルにあるとおり、ともかくRevTeX 4を導入しなくてはなりません。パッケージは、The RevTeX
14406  4 Web Site 
14407 \begin_inset Flex URL
14408 status collapsed
14409
14410 \begin_layout Plain Layout
14411
14412 http://publish.aps.org/revtex4/
14413 \end_layout
14414
14415 \end_inset
14416
14417 から入手することができます。これをLaTeXが検出することのできる場所に導入してください。それから、適当に選んだディレクトリ(もといクラスファイルを導入したのと
14418 は異なるディレクトリ)で簡単なRevTeX 4文書を LaTeXでコンパイルできるかどうか確認してください。この後、LyXを再初期設定すると、クラスファイルを検
14419 出し、RevTeX4テキストクラスが使用できるようになるはずです。
14420 \end_layout
14421
14422 \begin_layout Standard
14423 使い始めるには、
14424 \family typewriter
14425 tex2lyx
14426 \family default
14427 を使ってRevTeX 4文書を読み込むか、またはひな型ディレクトリにある
14428 \family sans
14429 Revtex
14430 \begin_inset space ~
14431 \end_inset
14432
14433 4
14434 \family default
14435 のひな型を使うのが、おそらく一番簡単な方法でしょう。
14436 \end_layout
14437
14438 \begin_layout Subsection
14439 プリアンブルに関すること
14440 \end_layout
14441
14442 \begin_layout Standard
14443
14444 \family typewriter
14445
14446 \backslash
14447 documentclass
14448 \family default
14449 に与える「preprint」や「aps」のような非必須引数は、他のクラス同様、
14450 \family sans
14451 文書\SpecialChar \menuseparator
14452 設定\SpecialChar \menuseparator
14453 文書クラス
14454 \family default
14455
14456 \family sans
14457 クラスオプション
14458 \family default
14459 フィールドに入れます。RevTeXでは、少なくとも一つの非必須引数が必要なことに注意してください。
14460 \end_layout
14461
14462 \begin_layout Standard
14463
14464 \family typewriter
14465
14466 \backslash
14467 draft
14468 \family default
14469 など他のプリアンブルは、他のクラス同様、
14470 \family sans
14471 文書\SpecialChar \menuseparator
14472 設定\SpecialChar \menuseparator
14473 LaTeXプリアンブル
14474 \family default
14475 に入れてください。
14476 \end_layout
14477
14478 \begin_layout Subsection
14479 レイアウト
14480 \end_layout
14481
14482 \begin_layout Standard
14483 レイアウトは、基本的にRevTeX4.0のコマンドに対応しています。たとえば、Emailレイアウトは、
14484 \family typewriter
14485
14486 \backslash
14487 email{}
14488 \family default
14489 に対応しています。(少なくともRevTeX 4.0 Beta現在では)
14490 \family sans
14491 住所
14492 \family default
14493
14494 \family sans
14495 所属
14496 \family default
14497 はまったく同じものなので、両方を使う必要はありません
14498 \begin_inset Foot
14499 status collapsed
14500
14501 \begin_layout Plain Layout
14502 ついでながら、
14503 \family typewriter
14504 tex2lyx
14505 \family default
14506 は両方とも対応しているので、
14507 \family typewriter
14508
14509 \backslash
14510 address
14511 \family default
14512
14513 \family typewriter
14514
14515 \backslash
14516 affiliation
14517 \family default
14518 のどちらも翻訳することができます。
14519 \end_layout
14520
14521 \end_inset
14522
14523
14524 \end_layout
14525
14526 \begin_layout Subsection
14527 重要な注意
14528 \end_layout
14529
14530 \begin_layout Standard
14531 RevTeX 4には、バグを引き起こしがちなために、気をつけなくてはならない特殊な面がいくつかあるため、LyXではさらに気をつけなくてはなりません。
14532 \end_layout
14533
14534 \begin_layout Standard
14535 RevTeXでは、
14536 \family typewriter
14537
14538 \backslash
14539 thanks
14540 \family default
14541 コマンドは、
14542 \family typewriter
14543
14544 \backslash
14545 author
14546 \family default
14547 コマンドの
14548 \emph on
14549 外側
14550 \emph default
14551 に来なくてはなりません。LyXでは、独立した
14552 \family sans
14553 感謝
14554 \family default
14555 レイアウトがこの働きをします。直接
14556 \family sans
14557 、著者
14558 \family default
14559 レイアウトに脚注を付けてしまうと、おかしなことが起こる可能性があります。詳細については、RevTeX 4の取扱説明書をご覧ください。
14560 \end_layout
14561
14562 \begin_layout Standard
14563 また、
14564 \family sans
14565 著者電子メール
14566 \family default
14567
14568 \family sans
14569 著者URL・感謝(thanks)
14570 \family default
14571 レイアウトは、
14572 \family sans
14573 著者
14574 \family default
14575 レイアウトと
14576 \family sans
14577 住所(
14578 \family default
14579 または同等の
14580 \family sans
14581 所属
14582 \family default
14583 )レイアウトの間に置かなければなりません。
14584 \family sans
14585 感謝(thanks)
14586 \family default
14587
14588 \family sans
14589 住所
14590 \family default
14591 の後に置いてしまうと、LaTeXはコンパイルに失敗します。
14592 \end_layout
14593
14594 \begin_layout Subsection
14595 問題点
14596 \end_layout
14597
14598 \begin_layout Standard
14599 このレイアウトの主な問題点は、電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません。例
14600 えば、節レイアウトも非必須引数を使用することができません)。これは、たとえばページヘッダにヘッダ用タイトルを設定したい場合などには、ファイルをLaTeXファイル
14601 に変換した後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません)、テキストエディタを使ってLaTeXファイルを編集し、非必須引数を書き加えなくては
14602 ならないということです。これらのレイアウトがないと、
14603 \family typewriter
14604
14605 \backslash
14606 altaffiliation
14607 \family default
14608 (またそれと同等な
14609 \family typewriter
14610
14611 \backslash
14612 altaddress
14613 \family default
14614 )は使えませんので、対応するレイアウトは存在せず、手動で書き加える必要があります
14615 \begin_inset Foot
14616 status collapsed
14617
14618 \begin_layout Plain Layout
14619
14620 \emph on
14621 JMarcからの註:
14622 \emph default
14623  実は、LyX 1.3.0 では非必須引数を一部サポートしているのですが、このレイアウトは、まだこの機能を使うようにはアップデートされていないのです。
14624 \end_layout
14625
14626 \end_inset
14627
14628
14629 \end_layout
14630
14631 \begin_layout Section
14632 Springer学術誌(
14633 \family sans
14634 svjour)
14635 \end_layout
14636
14637 \begin_layout Standard
14638
14639 \noun on
14640 Martin Vermeer
14641 \noun default
14642
14643 \end_layout
14644
14645 \begin_layout Subsection
14646 説明
14647 \end_layout
14648
14649 \begin_layout Standard
14650 これは、Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです。
14651 \begin_inset Flex URL
14652 status collapsed
14653
14654 \begin_layout Plain Layout
14655
14656 http://www.springer.de/author/tex/help-journals.html
14657 \end_layout
14658
14659 \end_inset
14660
14661 に必要なクラスファイル(LaTeX2e用になりました)とそれに対応する学術誌の一覧があります。このレイアウトはモジュール式になっています。つまり、全ジャーナル共
14662 通部分は
14663 \family typewriter
14664 svjour.inc
14665 \family default
14666 に実装されており、各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
14667 \family typewriter
14668 svjog.layout
14669 \family default
14670 など)から取り込むことができます。
14671 \end_layout
14672
14673 \begin_layout Standard
14674 このことは、上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには、
14675 \family typewriter
14676 svjog.layout
14677 \family default
14678 に書かれている指示に従って、自作の
14679 \family typewriter
14680 sv
14681 \family default
14682 <学術誌名>
14683 \family typewriter
14684 .layout
14685 \family default
14686 を書くだけで良いことを意味します。
14687 \end_layout
14688
14689 \begin_layout Standard
14690 このレイアウトは、Journal of Geodesyに対してのみ、充分な試験が為されています。
14691 \family typewriter
14692 svjour
14693 \family default
14694
14695 \family typewriter
14696 svjog
14697 \family default
14698 は、標準LyX頒布版に収録済みです。関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し、LaTeXを再設定した後(teT
14699 eXの場合は、必要に応じてroot権限で
14700 \family typewriter
14701 texhash
14702 \family default
14703 を実行します)、LyXを再初期設定すれば、動作するはずです。
14704 \end_layout
14705
14706 \begin_layout Subsection
14707 新スタイル
14708 \end_layout
14709
14710 \begin_layout Standard
14711 多くの定理環境 --- 
14712 \family sans
14713 主張
14714 \family default
14715
14716 \family sans
14717 推論
14718 \family default
14719 ・\SpecialChar \ldots{}
14720
14721 \family sans
14722 定理
14723 \family default
14724
14725 \end_layout
14726
14727 \begin_layout Standard
14728
14729 \family sans
14730 ヘッドノート
14731 \family default
14732
14733 \family sans
14734 献呈
14735 \family default
14736
14737 \family sans
14738 サブタイトル・ヘッダ用LaTeXタイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(ackno
14739 wledgement)
14740 \family default
14741 。詳しくは Springerのクラスファイルの説明書を読んでください。
14742 \end_layout
14743
14744 \begin_layout Subsection
14745 サポートしているジャーナル
14746 \end_layout
14747
14748 \begin_layout Itemize
14749
14750 \emph on
14751 Journal of Geodesy
14752 \emph default
14753
14754 \family typewriter
14755 svjog.layout
14756 \family default
14757  --- Martin Vermeer
14758 \end_layout
14759
14760 \begin_layout Itemize
14761
14762 \emph on
14763 Probability Theory and Related Fields
14764 \emph default
14765
14766 \family typewriter
14767 svprobth.layout
14768 \family default
14769  --- Jean-Marc Lasgouttes
14770 \end_layout
14771
14772 \begin_layout Standard
14773 あなた自身のレイアウトファイルをつくってください。難しくはありません。
14774 \end_layout
14775
14776 \begin_layout Subsection
14777 Credits
14778 \end_layout
14779
14780 \begin_layout Standard
14781 これらのファイルは、以前の 
14782 \family typewriter
14783 ejour2.layout
14784 \family default
14785 をもとにしています。
14786 \family typewriter
14787 ejour2.layout
14788 \family default
14789 は SpringerのLaTeX 2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです。これらのファイルはすでにありません。Jean-Mar
14790 c Lasgouttesのおかげで LyXのレイアウトファイルのメカニズムをよりよく理解することができました。
14791 \end_layout
14792
14793 \begin_layout Subsection
14794 バグ
14795 \end_layout
14796
14797 \begin_layout Standard
14798 多分あります。以前の 
14799 \family typewriter
14800 ejour2
14801 \family default
14802 よりは少なくなっているとは思いますが。
14803 \end_layout
14804
14805 \begin_layout Standard
14806 制限事項:定理環境の環境の番号は表示されません。#が表示されるだけです。
14807 \end_layout
14808
14809 \begin_layout Section
14810 Slides(別名
14811 \noun on
14812 SliTeX
14813 \noun default
14814
14815 \begin_inset Foot
14816 status collapsed
14817
14818 \begin_layout Plain Layout
14819 (訳註)この節の内容は、全般的に古くなっています。
14820 \end_layout
14821
14822 \end_inset
14823
14824
14825 \begin_inset CommandInset label
14826 LatexCommand label
14827 name "sec:slitex"
14828
14829 \end_inset
14830
14831
14832 \end_layout
14833
14834 \begin_layout Standard
14835
14836 \noun on
14837 John Weiss
14838 \noun default
14839
14840 \end_layout
14841
14842 \begin_layout Subsection
14843 はじめに
14844 \end_layout
14845
14846 \begin_layout Standard
14847 本節では、オーバーへッドプロジェクタ用のスライドをつくるのに、LyXをどのように使えばよいかを説明します。これを行う文書クラスには、既定のslideクラスと
14848 \family sans
14849 FoilTeX
14850 \family default
14851 スライドクラスの2つがあります。本節は前者について説明を行います。
14852 \end_layout
14853
14854 \begin_layout Standard
14855 誤解のないように、正しく明確に、もう一度言っておきます。
14856 \end_layout
14857
14858 \begin_layout Standard
14859 \begin_inset VSpace bigskip
14860 \end_inset
14861
14862
14863 \end_layout
14864
14865 \begin_layout Standard
14866 \align center
14867
14868 \size large
14869 本節は文書クラス
14870 \begin_inset Quotes eld
14871 \end_inset
14872
14873
14874 \family sans
14875 transparencies (slides)
14876 \family default
14877
14878 \begin_inset Quotes erd
14879 \end_inset
14880
14881
14882 \emph on
14883 のみ
14884 \emph default
14885 を説明しています。
14886 \end_layout
14887
14888 \begin_layout Standard
14889 \begin_inset VSpace bigskip
14890 \end_inset
14891
14892
14893 \end_layout
14894
14895 \begin_layout Standard
14896
14897 \family sans
14898 「slides (FoilTeX)
14899 \family default
14900 」の説明をお探しならば、第
14901 \begin_inset CommandInset ref
14902 LatexCommand ref
14903 reference "sec:foiltex"
14904
14905 \end_inset
14906
14907 節をご覧ください。
14908 \family sans
14909 foils
14910 \family default
14911 クラス「
14912 \family sans
14913 slides (FoilTeX)
14914 \family default
14915 」は、実際、本節で説明している既定
14916 \family sans
14917 slides
14918 \family default
14919 クラスよりも良いようです
14920 \begin_inset Foot
14921 status collapsed
14922
14923 \begin_layout Plain Layout
14924 \SpecialChar \ldots{}
14925
14926 \family sans
14927 FoilTeX
14928 \family default
14929 の支持者からは聞いています。けれども私は使ったことがないので、本当かどうか確かめようがありません。
14930 \end_layout
14931
14932 \end_inset
14933
14934
14935 \end_layout
14936
14937 \begin_layout Standard
14938 このクラスは、旧SLITeXパッケージをLaTeX2e用に改良したものです。LaTeX2e頒布版すべてが、このクラス(以下では単に「
14939 \family sans
14940 slides
14941 \family default
14942 」と述べることにします)を含んでいるので、あなたもお持ちのはずです。前述の
14943 \family sans
14944 foils
14945 \family default
14946 のように、同じくオーバーへッドプロジェクタ用のスライドを生成しながら、このクラスよりも良い仕事をするクラスもあります。しかしながら、オーバーレイを生成するなど、
14947 他のクラスにはできないが
14948 \family sans
14949 slides
14950 \family default
14951 ならばできることもあります。詳しくは以下をお読みください。
14952 \end_layout
14953
14954 \begin_layout Subsection
14955 使い始めるには
14956 \begin_inset CommandInset label
14957 LatexCommand label
14958 name "sec:slidesetup"
14959
14960 \end_inset
14961
14962
14963 \end_layout
14964
14965 \begin_layout Standard
14966 当然ながら、この文書クラスを使用するには、
14967 \family sans
14968 文書\SpecialChar \menuseparator
14969 設定
14970 \family default
14971 ダイアログのクラスリストから「
14972 \family sans
14973 transparencies (slides)
14974 \family default
14975 」を選択しなくてはなりません。このクラスについて、以下のように、特に知っておいた方が良いことがいくつかあります。
14976 \end_layout
14977
14978 \begin_layout Itemize
14979
14980 \family sans
14981 用紙方向
14982 \family default
14983
14984 \family sans
14985 二段組文書
14986 \family default
14987 の各オプションは、あえて変更する必要はありません。これらのオプションは、
14988 \family sans
14989 slides
14990 \family default
14991 クラスではサポートされていないので、効果がありません。
14992 \end_layout
14993
14994 \begin_layout Itemize
14995
14996 \family sans
14997 ヘディング様式
14998 \family default
14999 オプションは、このクラスでは少し異なった振る舞いをします。各選択肢とその機能は、以下の通りです。
15000 \end_layout
15001
15002 \begin_deeper
15003 \begin_layout Description
15004 プレーン(plain) 最終出力の右下隅にページ番号が付きます。
15005 \end_layout
15006
15007 \begin_layout Description
15008 設定(headings)
15009 \family sans
15010  プレーン(plain)
15011 \family default
15012 と同様ですが、それ以外にあなたが指定したタイムマーカーをすべて出力します。これが既定値です。
15013 \end_layout
15014
15015 \begin_layout Description
15016 空 最終出力には、ページ番号もタイムマーカーも位置揃えマーカーも出力されません。
15017 \end_layout
15018
15019 \end_deeper
15020 \begin_layout Itemize
15021
15022 \family sans
15023 slides
15024 \family default
15025 クラスには、もう一つ
15026 \family typewriter
15027 clock
15028 \family default
15029 というオプションがあります。これを使用するには、
15030 \family sans
15031 クラスオプション
15032 \family default
15033 に「
15034 \family typewriter
15035 clock
15036 \family default
15037 」と入力してください。
15038 \end_layout
15039
15040 \begin_deeper
15041 \begin_layout Standard
15042 このオプションを使うと、
15043 \family sans
15044 注釈
15045 \family default
15046 にタイムマーカーを加えることができます。詳細は、第
15047 \begin_inset CommandInset ref
15048 LatexCommand ref
15049 reference "sec:slideNote"
15050
15051 \end_inset
15052
15053 節をご覧ください。
15054 \end_layout
15055
15056 \end_deeper
15057 \begin_layout Standard
15058
15059 \family sans
15060 slides
15061 \family default
15062 クラスを用いた文書を自動的にセットアップするには、ひな型ファイル「
15063 \family typewriter
15064 slides.lyx
15065 \family default
15066 」を使用することもできます(新規ファイルを開く際に
15067 \family sans
15068 ファイル\SpecialChar \menuseparator
15069 新規(ひな型使用)
15070 \family default
15071 を使用してください)。ひな型ファイルには、このクラスが使用する特別な段落環境の用例も含まれています。これらについては、以下で説明します。
15072 \end_layout
15073
15074 \begin_layout Subsection
15075 段落環境
15076 \end_layout
15077
15078 \begin_layout Subsubsection
15079
15080 \family sans
15081 サポートされている環境
15082 \end_layout
15083
15084 \begin_layout Standard
15085 新しく
15086 \family sans
15087 slides
15088 \family default
15089 文書を開いたときにまず気付くのは、フォント寸法とフォント族の違いでしょう。ここでは、
15090 \family sans
15091 サンセリフ体
15092 \family default
15093 フォントの
15094 \family sans
15095 極大
15096 \family default
15097 寸法が用いられており、出力でもこのフォントが使用されます。これは、現在スライドを作成中であることの「目印」だと考えてください。出力スライドは大きなフォントを使用
15098 するため、書ける場所は少なくなります。もちろん、既定の大きな画面フォントはWYSIWYGではなく、スライドであることの目印に過ぎません。
15099 \end_layout
15100
15101 \begin_layout Standard
15102 次に気付くのは、(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう。通常見かける環境の多くがなくなって、代わりに5つの新しい環境が入ってい
15103 ます。これは、
15104 \family sans
15105 slides
15106 \family default
15107 クラスが、標準段落環境のうち以下のものしかサポートしていないためです。
15108 \end_layout
15109
15110 \begin_layout Itemize
15111
15112 \family sans
15113 標準
15114 \end_layout
15115
15116 \begin_layout Itemize
15117
15118 \family sans
15119 箇条書き(記号)
15120 \end_layout
15121
15122 \begin_layout Itemize
15123
15124 \family sans
15125 箇条書き(連番)
15126 \end_layout
15127
15128 \begin_layout Itemize
15129
15130 \family sans
15131 箇条書き(記述)
15132 \end_layout
15133
15134 \begin_layout Itemize
15135
15136 \family sans
15137 箇条書き(一覧)
15138 \end_layout
15139
15140 \begin_layout Itemize
15141
15142 \family sans
15143 引用(字下げあり)
15144 \end_layout
15145
15146 \begin_layout Itemize
15147
15148 \family sans
15149 引用(字下げなし)
15150 \end_layout
15151
15152 \begin_layout Itemize
15153
15154 \family sans
15155 詩句
15156 \end_layout
15157
15158 \begin_layout Itemize
15159
15160 \family sans
15161 キャプション
15162 \end_layout
15163
15164 \begin_layout Itemize
15165
15166 \family sans
15167 LyXコード
15168 \end_layout
15169
15170 \begin_layout Itemize
15171
15172 \family sans
15173 コメント
15174 \end_layout
15175
15176 \begin_layout Standard
15177 これ以外の標準的な環境、例えば節見出し用の環境などは
15178 \family sans
15179 slides
15180 \family default
15181 クラスでは使えません。
15182 \end_layout
15183
15184 \begin_layout Standard
15185 一方、以下の新しい環境があります。
15186 \end_layout
15187
15188 \begin_layout Itemize
15189
15190 \family sans
15191 スライド
15192 \end_layout
15193
15194 \begin_layout Itemize
15195
15196 \family sans
15197 オーバーレイ
15198 \end_layout
15199
15200 \begin_layout Itemize
15201
15202 \family sans
15203 注釈
15204 \end_layout
15205
15206 \begin_layout Itemize
15207
15208 \family sans
15209 不可視文
15210 \end_layout
15211
15212 \begin_layout Itemize
15213
15214 \family sans
15215 可視文
15216 \end_layout
15217
15218 \begin_layout Standard
15219 これら5つの環境は、LyXの「機能」のために使い方に癖があります。ご存じのように、LyXでは、空の段落環境に他の環境を入れることができません。それ自体は素晴らし
15220 いデザインなのですが、これは、スライドを平文以外では書き始めることができないことを意味します。これを取り扱うためには、ちょっとした「LaTeXマジック」が必要に
15221 なります。
15222 \end_layout
15223
15224 \begin_layout Subsubsection
15225 新環境の癖
15226 \begin_inset CommandInset label
15227 LatexCommand label
15228 name "sec:スライドの癖"
15229
15230 \end_inset
15231
15232
15233 \end_layout
15234
15235 \begin_layout Standard
15236 5つの新しい環境にはすべて、LyX現行版の制約に由来する癖があります。いま述べたように、LyXでは、環境を別の環境で開始することが禁止されています。これを回避す
15237 るために、
15238 \family sans
15239 スライド
15240 \family default
15241 環境は『
15242 \emph on
15243 ユーザーの手引き
15244 \emph default
15245 』で述べられているような段落環境ではなくなっています。
15246 \end_layout
15247
15248 \begin_layout Standard
15249
15250 \family sans
15251 スライド
15252 \family default
15253
15254 \family sans
15255 オーバーレイ
15256 \family default
15257
15258 \family sans
15259 注釈
15260 \family default
15261 は「疑似環境」だとお考えください。これらは節見出しや「
15262 \family sans
15263 キャプション
15264 \family default
15265 」のように見えますが、実際には(必要なら前段落を終了して)新しい段落環境を開始します。同様に、
15266 \family sans
15267 不可視文
15268 \family default
15269
15270 \family sans
15271 可視文
15272 \family default
15273 も「疑似コマンド」とお考えください。この2つは特定のアクションを行います。
15274 \end_layout
15275
15276 \begin_layout Standard
15277
15278 \family sans
15279 スライド
15280 \family default
15281
15282 \family sans
15283 オーバーレイ
15284 \family default
15285
15286 \family sans
15287 注釈
15288 \family default
15289
15290 \family sans
15291 不可視文
15292 \family default
15293
15294 \family sans
15295 可視文
15296 \family default
15297 の5環境に共通しているのは、長めのラベルを持つことです。このラベルに続く文章—通常は段落環境の内容になるはずですが—は、
15298 \family sans
15299 スライド
15300 \family default
15301
15302 \family sans
15303 オーバーレイ
15304 \family default
15305
15306 \family sans
15307 注釈
15308 \family default
15309
15310 \family sans
15311 不可視文
15312 \family default
15313
15314 \family sans
15315 可視文
15316 \family default
15317 では、まったく意味がなく、LyXはこの部分を完全に無視します。これらの5つの環境の内容は、完全に空のままにしておいて構いません。
15318 \end_layout
15319
15320 \begin_layout Standard
15321 長めのラベルの後に文章を入れる
15322 \emph on
15323 必要は
15324 \emph default
15325 まったく
15326 \emph on
15327 ない
15328 \emph default
15329 とはいえ、何か書いておきたいこともあるかもしれません。たとえば、スライドの内容に関する短い説明などがそうでしょう。この場合、いつもどおり説明用のコメントを入力し
15330
15331 \family sans
15332 Return
15333 \family default
15334 を押してください。
15335 \end_layout
15336
15337 \begin_layout Standard
15338 一方、説明文を入れたくない場合には、LyXの制約に直面します。自然が真空を憎むように、LyXでは、古い環境に何かを置くまでは、その中に新しい環境を入れることがで
15339 きません。そこで以下のようにしてください。
15340 \end_layout
15341
15342 \begin_layout Itemize
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 \family sans
15357 不可視文
15358 \family default
15359
15360 \family sans
15361 可視文
15362 \family default
15363
15364 \emph on
15365 中に入れる
15366 \emph default
15367 文章を入力してください。
15368 \end_layout
15369
15370 \begin_layout Itemize
15371 段落の先頭に移動します。
15372 \end_layout
15373
15374 \begin_layout Itemize
15375 次に
15376 \family sans
15377 Return
15378 \family default
15379 を押します。
15380 \end_layout
15381
15382 \begin_layout Itemize
15383 最後に、この新しい空の段落を
15384 \family sans
15385 スライド
15386 \family default
15387
15388 \family sans
15389 オーバーレイ
15390 \family default
15391
15392 \family sans
15393 注釈
15394 \family default
15395
15396 \family sans
15397 不可視文
15398 \family default
15399
15400 \family sans
15401 可視文
15402 \family default
15403 に変更します。
15404 \end_layout
15405
15406 \begin_layout Standard
15407 将来のLyXでは、このような癖が解決されることを祈っています\SpecialChar \ldots{}
15408
15409 \begin_inset Foot
15410 status collapsed
15411
15412 \begin_layout Plain Layout
15413 (訳註)ここの記述は古くなっています。
15414 \end_layout
15415
15416 \end_inset
15417
15418
15419 \end_layout
15420
15421 \begin_layout Subsection
15422
15423 \family sans
15424 スライド
15425 \family default
15426
15427 \family sans
15428 オーバーレイ
15429 \family default
15430
15431 \family sans
15432 注釈で発表用のスライドを作る
15433 \end_layout
15434
15435 \begin_layout Subsubsection
15436
15437 \family sans
15438 スライド
15439 \family default
15440 環境を使う
15441 \end_layout
15442
15443 \begin_layout Standard
15444 もし本節が、実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば、大いにがっかりされるかもしれません。当然ながら、プレゼンテーション用の資
15445 料を準備するうえで
15446 \family sans
15447 slides
15448 \family default
15449 クラスを役立てる方法を詳しく説明はしますが、内容をどうするかはあなた次第です(そしてこれもLyXの哲学です)。
15450 \end_layout
15451
15452 \begin_layout Standard
15453
15454 \family sans
15455 スライド
15456 \family default
15457 環境を選択すれば(方法は第
15458 \begin_inset CommandInset ref
15459 LatexCommand ref
15460 reference "sec:スライドの癖"
15461
15462 \end_inset
15463
15464 節参照のこと)、LyXは新規スライドを開始します。この環境ないし「疑似環境」のラベルは、鮮やかな青で「新規スライド:」と表示されます。この環境の後のテキスト環境
15465 や段落環境は、すべて新規スライドに入ります。簡単ですよね。
15466 \end_layout
15467
15468 \begin_layout Standard
15469 Slidesは、おそらくLyXの中で強制的に改頁をしなくてはならない唯一のクラスです(これは
15470 \family sans
15471 段落レイアウト
15472 \family default
15473 ダイアログで指定できます)。実際、一つのスライドの内容を入力し終わったら、改頁したくなるはずです。仮に一つのスライドに物理的に入りきらない文章を入力したとすると
15474 、入りきらない部分は、次の新規スライドにまわされます。しかしながら、入りきらない部分のスライドにはページ番号が付きませんので、こうするのはお勧めしません。その上
15475 、一枚に収まらないスライドでは、
15476 \family sans
15477 オーバーレイ
15478 \family default
15479 を使用すると干渉する恐れがあります。
15480 \end_layout
15481
15482 \begin_layout Standard
15483
15484 \family sans
15485 オーバーレイ
15486 \family default
15487 環境と
15488 \family sans
15489 注釈
15490 \family default
15491 環境も、
15492 \family sans
15493 スライド
15494 \family default
15495 環境と同様の動作を示します。これらは、青の代わりに鮮やかなマゼンタで、それぞれ「
15496 \noun on
15497 新規オーバーレイ
15498 \noun default
15499 :」ないし「
15500 \noun on
15501 新規注釈:
15502 \noun default
15503 」というラベルを表示します。ラベルのフォントも、3つの環境でそれぞれ異なるものが使用されます。
15504 \end_layout
15505
15506 \begin_layout Standard
15507
15508 \family sans
15509 スライド
15510 \family default
15511 と同様に、
15512 \family sans
15513 オーバーレイ
15514 \family default
15515
15516 \family sans
15517 注釈
15518 \family default
15519 の内容が、一つのスライドないしページに物理的に収まりきらない場合には、余分は新規スライドに回されます。この場合には、
15520 \family sans
15521 注釈
15522 \family default
15523
15524 \family sans
15525 オーバーレイ
15526 \family default
15527 の本来の目的が達せられなくなりますので、ここでもこのような状態は避けるべきでしょう。
15528 \end_layout
15529
15530 \begin_layout Subsubsection
15531
15532 \family sans
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 のグラフを揃えるために、重ねる二つのスライドを、喋りながら手探りで揃えなくてはなりません。これらのような場合には、
15551 \family sans
15552 オーバーレイ
15553 \family default
15554 環境を使えば、もっと楽になります。
15555 \end_layout
15556
15557 \begin_layout Standard
15558
15559 \family sans
15560 オーバーレイ
15561 \family default
15562 は、「親」
15563 \family sans
15564 スライド
15565 \family default
15566 のページ番号を引継ぎ、その後に「
15567 \family typewriter
15568 -a
15569 \family default
15570 」を付け加えます
15571 \begin_inset Foot
15572 status collapsed
15573
15574 \begin_layout Plain Layout
15575 想像できるように、複数のオーバーレイがあれば、「
15576 \family typewriter
15577 -a
15578 \family default
15579 」「
15580 \family typewriter
15581 -b
15582 \family default
15583 」「
15584 \family typewriter
15585 -c
15586 \family default
15587 」などが親スライドのページ番号に付け加えられます。
15588 \end_layout
15589
15590 \end_inset
15591
15592 。当然のことながら、
15593 \family sans
15594 スライド
15595 \family default
15596
15597 \family sans
15598 オーバーレイ
15599 \family default
15600 の内容は両方とも、1枚のスライドに物理的に収まるようになっていなければなりません。
15601 \family sans
15602 オーバーレイ
15603 \family default
15604
15605 \family sans
15606 スライド
15607 \family default
15608 の「一部」であると考えるのがよいでしょう。LyXでは、
15609 \family sans
15610 オーバーレイ
15611 \family default
15612 のラベルを
15613 \family sans
15614 スライド
15615 \family default
15616 のラベルよりも下げることで、このことを視覚的に表しています。また、印刷可能な出力を生成すると、
15617 \family sans
15618 オーバーレイ
15619 \family default
15620 と親
15621 \family sans
15622 スライド
15623 \family default
15624 両方の四隅に、揃えマーカーがあることに気づかれるはずです。これは、2枚のスライドを物理的に重ね合わせるための補助となるものです。
15625 \end_layout
15626
15627 \begin_layout Standard
15628 2つのスライドをオーバーレイさせる際の大きな問題は、2枚のスライドの内容を揃えることです。2枚目のスライドのグラフには、どれだけの余白を残しておくべきなのでしょ
15629 うか?さらにややこしく、2枚目のスライドにグラフと文章を入れたいときに、その間に割り込んでしまうような文章がメインスライドにある場合には、どうでしょうか?正しい
15630 寸法の垂直スペースを挿入してみることもできるでしょう。しかし、もっと良い方法として、
15631 \family sans
15632 不可視文
15633 \family default
15634
15635 \family sans
15636 可視文
15637 \family default
15638 を使用する方法があります。
15639 \end_layout
15640
15641 \begin_layout Standard
15642 これらの名前が意味するとおり、
15643 \family sans
15644 不可視文
15645 \family default
15646
15647 \family sans
15648 可視文
15649 \family default
15650 は、それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です。しかしながら、第
15651 \begin_inset CommandInset ref
15652 LatexCommand ref
15653 reference "sec:スライドの癖"
15654
15655 \end_inset
15656
15657 節で述べたように、この2つの環境の
15658 \emph on
15659
15660 \emph default
15661 には何も置くことができません。
15662 \family sans
15663 不可視文
15664 \family default
15665 を作成すると、「<以下不可視文>」と書かれた水色のラベルが、ページに中央揃えで表示されます。このラベルに続く段落は、それが置かれるべき
15666 \family sans
15667 スライド
15668 \family default
15669 (あるいは
15670 \family sans
15671 オーバーレイ
15672 \family default
15673 ;どちらでも同じことです)部分に、代わりに空白の部分が置かれます。
15674 \end_layout
15675
15676 \begin_layout Standard
15677
15678 \family sans
15679 可視文
15680 \family default
15681 の場合には、中央揃えのラベルは、鮮やかな緑の「<以下可視文>」となります。このラベル以降の段落は、通常通りの挙動を示します。新規の
15682 \family sans
15683 スライド
15684 \family default
15685
15686 \family sans
15687 オーバーレイ
15688 \family default
15689
15690 \family sans
15691 注釈
15692 \family default
15693 を開始すると、
15694 \family sans
15695 不可視文
15696 \family default
15697 は自動的に終了されることに注意してください。したがって、
15698 \family sans
15699 スライド
15700 \family default
15701 の終わりでは、
15702 \family sans
15703 可視文
15704 \family default
15705 を使用する必要はありません。
15706 \end_layout
15707
15708 \begin_layout Standard
15709 ここまでで、
15710 \family sans
15711 スライド
15712 \family default
15713
15714 \family sans
15715 オーバーレイ
15716 \family default
15717 上で
15718 \family sans
15719 不可視文
15720 \family default
15721
15722 \family sans
15723 可視文
15724 \family default
15725 を適切に使用して、スライドをオーバーレイさせる方法が明らかになったことと思います。
15726 \end_layout
15727
15728 \begin_layout Enumerate
15729 メインのスライドか
15730 \family sans
15731 オーバーレイ
15732 \family default
15733 かに関わらず、スライド上に現れるすべてを含んだ
15734 \family sans
15735 スライド
15736 \family default
15737 を作成します。
15738 \end_layout
15739
15740 \begin_layout Enumerate
15741
15742 \family sans
15743 オーバーレイ
15744 \family default
15745 のみに表示するすべての図や段落の前に、
15746 \family sans
15747 不可視文
15748 \family default
15749 環境を挿入し、必要ならば、
15750 \family sans
15751 オーバーレイ
15752 \family default
15753 のみの文章の後に
15754 \family sans
15755 可視文
15756 \family default
15757 環境を挿入します。
15758 \end_layout
15759
15760 \begin_layout Enumerate
15761
15762 \family sans
15763 スライド
15764 \family default
15765 の直後から、
15766 \family sans
15767 オーバーレイ
15768 \family default
15769 を開始します。
15770 \end_layout
15771
15772 \begin_layout Enumerate
15773 この
15774 \family sans
15775 スライド
15776 \family default
15777 の内容を
15778 \family sans
15779 オーバーレイ
15780 \family default
15781 にコピーします。
15782 \end_layout
15783
15784 \begin_layout Enumerate
15785
15786 \family sans
15787 オーバーレイ
15788 \family default
15789 内部の
15790 \family sans
15791 不可視文
15792 \family default
15793 行をすべて
15794 \family sans
15795 不可視文
15796 \family default
15797 に変更し、
15798 \family sans
15799 可視文
15800 \family default
15801
15802 \family sans
15803 不可視文
15804 \family default
15805 に変更します。
15806 \end_layout
15807
15808 \begin_layout Standard
15809 これだけです。これで
15810 \family sans
15811 オーバーレイ
15812 \family default
15813 ができあがりました。
15814 \end_layout
15815
15816 \begin_layout Standard
15817 LyX 
15818 \family sans
15819 slides
15820 \family default
15821 クラスをデザインする上で、ひとつ残された問題があります。段落途中の文章を不可視にしたり、不可視段落の途中の文章を再度可視にしたりすることはできないのです。これを
15822 実現するためには、LaTeXコードを埋め込む必要があります
15823 \begin_inset Foot
15824 status collapsed
15825
15826 \begin_layout Plain Layout
15827 このコマンドは、
15828 \end_layout
15829
15830 \begin_layout Itemize
15831
15832 \family typewriter
15833 {
15834 \backslash
15835 invisible \SpecialChar \ldots{}
15836  }
15837 \end_layout
15838
15839 \begin_layout Itemize
15840
15841 \family typewriter
15842 {
15843 \backslash
15844 visible \SpecialChar \ldots{}
15845  }
15846 \end_layout
15847
15848 \begin_layout Plain Layout
15849 \SpecialChar \ldots{}
15850 のような形となり、TeXとしてマークする必要があります。「可視性」を変更したい文章は、波括弧のあいだ(そして
15851 \family typewriter
15852
15853 \backslash
15854 invisible
15855 \family default
15856 ないし
15857 \family typewriter
15858
15859 \backslash
15860 visible
15861 \family default
15862 コマンドの後ろ)に入れます。TeXとしてマークする方法がわからない場合は、
15863 \emph on
15864 ユーザーの手引き
15865 \emph default
15866 をご参照ください。
15867 \end_layout
15868
15869 \end_inset
15870
15871
15872 \end_layout
15873
15874 \begin_layout Subsubsection
15875
15876 \family sans
15877 スライドで注釈を使う
15878 \family default
15879
15880 \begin_inset CommandInset label
15881 LatexCommand label
15882 name "sec:スライド注釈"
15883
15884 \end_inset
15885
15886
15887 \end_layout
15888
15889 \begin_layout Standard
15890
15891 \family sans
15892 オーバーレイ
15893 \family default
15894 と同様、
15895 \family sans
15896 注釈
15897 \family default
15898 も「親」
15899 \family sans
15900 スライド
15901 \family default
15902 に関連付けられています。ここでもLyX
15903 \family sans
15904 スライド
15905 \family default
15906 クラスは視覚的な効果を与えています。
15907 \family sans
15908 注釈
15909 \family default
15910 のラベルは
15911 \family sans
15912 スライド
15913 \family default
15914 よりも短く(オーバーレイのラベルよりも長いですが)、
15915 \family sans
15916 オーバーレイ
15917 \family default
15918 のラベルと同様、派手な赤紫色です。加えて、印刷した
15919 \family sans
15920 注釈
15921 \family default
15922 には、「親」スライドのページ番号に「
15923 \family typewriter
15924 -
15925 \family default
15926 1」「
15927 \family typewriter
15928 -
15929 \family default
15930 2」「
15931 \family typewriter
15932 -
15933 \family default
15934 3」等を付けたページ番号が付けられます。1つの
15935 \family sans
15936 スライド
15937 \family default
15938 には、複数の
15939 \family sans
15940 注釈
15941 \family default
15942 を関連付けることができるので、
15943 \family sans
15944 スライド
15945 \family default
15946
15947 \family sans
15948 オーバーレイ
15949 \family default
15950 と同じように、長い注釈は、1枚の紙に収まるように分割したいと思われるに違いありません。
15951 \end_layout
15952
15953 \begin_layout Standard
15954
15955 \family sans
15956 注釈
15957 \family default
15958 の目的は明らかです。
15959 \family sans
15960 スライド
15961 \family default
15962 に関して付け加えたいことを書き留めておくことです。特定の
15963 \family sans
15964 スライド
15965 \family default
15966 についての覚書として使うこともできます。後者の場合には、タイムマーカを利用したいこともあるかもしれません。現在のところ、LyXの
15967 \family sans
15968 スライド
15969 \family default
15970 クラスは、
15971 \noun on
15972 Sli
15973 \noun default
15974 TeXの機能であるタイムマーカを「ネイティブには」サポートしていません。したがって、LaTeXコードを使用することに頼らなくてはなりません。
15975 \end_layout
15976
15977 \begin_layout Standard
15978 タイムマーカを使用するには、クラスオプション「
15979 \family typewriter
15980 clock
15981 \family default
15982 」を追加指定する必要があります(第
15983 \begin_inset CommandInset ref
15984 LatexCommand ref
15985 reference "sec:slidesetup-1"
15986
15987 \end_inset
15988
15989 節参照)。このオプションはタイムマーカ機能を有効にして、生成したすべての
15990 \family sans
15991 注釈
15992 \family default
15993 の左下にタイムマーカを表示します。タイムマーカに表示するものを設定するには、LaTeXコマンド「
15994 \family typewriter
15995
15996 \backslash
15997 settime{}
15998 \family default
15999 」および「
16000 \family typewriter
16001
16002 \backslash
16003 addtime{}
16004 \family default
16005 」を使用します。両コマンドは、秒で測った時間を引数にとります。「
16006 \family typewriter
16007
16008 \backslash
16009 settime{}
16010 \family default
16011 」は、タイムマーカを特定の時間に設定し、「
16012 \family typewriter
16013
16014 \backslash
16015 addtime{}
16016 \family default
16017 」は、タイムマーカを指定した分だけ進めます。このようにタイムマーカと
16018 \family sans
16019 注釈
16020 \family default
16021 を用いれば、特定の
16022 \family sans
16023 スライド
16024 \family default
16025 にどれだけの時間をかけるのか忘れないでいられます。
16026 \end_layout
16027
16028 \begin_layout Standard
16029 最後に、説明しておくべき機能がもう一つあります。当然ながら、
16030 \family sans
16031 スライド
16032 \family default
16033
16034 \family sans
16035 オーバーレイ
16036 \family default
16037 はすべてスライドに、
16038 \family sans
16039 注釈
16040 \family default
16041 はすべて普通の紙に印刷したいはずです。しかしながら、
16042 \family sans
16043 注釈
16044 \family default
16045 は関連付けられた親スライドの直後に
16046 \emph on
16047 来なくてはなりません
16048 \emph default
16049 。ユーザーはどうしたら良いのでしょうか。
16050 \end_layout
16051
16052 \begin_layout Standard
16053 幸いなことに、どれを印刷するか選択することを可能にするLaTeXコマンドが、2種類あります。どちらも文書のプリアンブルに記述されなくてはなりません。コマンド「
16054 \family typewriter
16055
16056 \backslash
16057 onlyslides{
16058 \backslash
16059 slides}
16060 \family default
16061 」は、出力に
16062 \family sans
16063 スライド
16064 \family default
16065
16066 \family sans
16067 オーバーレイ
16068 \family default
16069 のみが含まれるようにするものです。同様に、「
16070 \family typewriter
16071
16072 \backslash
16073 onlynotes{
16074 \backslash
16075 notes}
16076 \family default
16077 」は
16078 \family sans
16079 注釈
16080 \family default
16081 以外の出力をすべて抑制します。私のアドバイスとしては、両コマンドをプリアンブルに書いておいて、最初は両方ともコメントアウトしておくと良いでしょう。そうすれば、執
16082 筆時にはプレゼンテーション全体をプレビューすることができます。いったん書き終えたならば、二つのうち一方のコメントを外して、印刷したい方を選ぶことができます。私な
16083 らば、まず
16084 \family typewriter
16085
16086 \backslash
16087 onlyslides{
16088 \backslash
16089 slides}
16090 \family default
16091 のコメントを外して、現ファイル名に「*
16092 \family typewriter
16093 -slides
16094 \family default
16095 」を付けた新たなファイルに出力を行ない、今度はこの行をふたたびコメントアウトするとともに、「
16096 \family typewriter
16097
16098 \backslash
16099 onlynotes{
16100 \backslash
16101 notes
16102 \family default
16103 }」のコメントを外して、これを「
16104 \family typewriter
16105 *-notes.ps
16106 \family default
16107 」というファイルに出力します。そうすれば、必要に応じて、スライドまたは通常の紙をプリンタにセットし、一方のファイルをプリンタに送ればよいのです。
16108 \end_layout
16109
16110 \begin_layout Standard
16111
16112 \family typewriter
16113
16114 \backslash
16115 onlyslides{}
16116 \family default
16117 」および「
16118 \family typewriter
16119
16120 \backslash
16121 onlynotes{}
16122 \family default
16123 」コマンドには、他の引数を与えることもできます。詳しくは、LaTeXの良書をご覧ください。
16124 \end_layout
16125
16126 \begin_layout Subsection
16127
16128 \family sans
16129 slides
16130 \family default
16131 クラスのひな型ファイル
16132 \end_layout
16133
16134 \begin_layout Standard
16135
16136 \family sans
16137 slides
16138 \family default
16139 クラス用のひな型ファイルとして「
16140 \family typewriter
16141 slides.lyx
16142 \family default
16143 」が提供されています。これを使用するには、新しいプレゼンテーションを作り始める際に、
16144 \family sans
16145 ファイル\SpecialChar \menuseparator
16146 新規(ひな型使用)
16147 \family default
16148 メニューを選択してください。すると新規ファイルには、
16149 \family sans
16150 スライド
16151 \family default
16152
16153 \family sans
16154 オーバーレイ
16155 \family default
16156
16157 \family sans
16158 注釈
16159 \family default
16160 の組が、例として含まれており、
16161 \family sans
16162 スライド
16163 \family default
16164
16165 \family sans
16166 オーバーレイ
16167 \family default
16168 には、さらに
16169 \family sans
16170 不可視文
16171 \family default
16172
16173 \family sans
16174 可視文
16175 \family default
16176 の使用例も含まれています。また、プリアンブルには、次のように書き込まれています。
16177 \end_layout
16178
16179 \begin_layout LyX-Code
16180 % Uncomment to print out only slides and overlays
16181 \end_layout
16182
16183 \begin_layout LyX-Code
16184 %
16185 \end_layout
16186
16187 \begin_layout LyX-Code
16188 %
16189 \backslash
16190 onlyslides{
16191 \backslash
16192 slides}
16193 \begin_inset Newline newline
16194 \end_inset
16195
16196  
16197 \end_layout
16198
16199 \begin_layout LyX-Code
16200 % Uncomment to print out only notes
16201 \end_layout
16202
16203 \begin_layout LyX-Code
16204 %
16205 \end_layout
16206
16207 \begin_layout LyX-Code
16208 %
16209 \backslash
16210 onlynotes{
16211 \backslash
16212 notes}
16213 \end_layout
16214
16215 \begin_layout Standard
16216 最後に、私はこの文書クラスを、LaTeX2eの組み込みクラスである「
16217 \noun on
16218 SliTeX
16219 \noun default
16220 エミュレーション」クラスをサポートする目的で作成しました。私もLyXチームの他のメンバーも、この組み込みスライドクラスを使用することに賛成したり反対したりするも
16221 のではありません。これは単に、ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです。プレゼンテーションを作成するためには、
16222 \family sans
16223 Foils
16224 \family default
16225 クラス(第
16226 \begin_inset CommandInset ref
16227 LatexCommand ref
16228 reference "sec:foiltex"
16229
16230 \end_inset
16231
16232 節参照)や「
16233 \family typewriter
16234 seminar
16235 \family default
16236 」パッケージ(一部のTeX頒布版に含まれています)のように、他のLaTeX2eクラスも存在します。私はこれらについては知らないのですが、他にどのようなことができ
16237 るのか試してみてください。
16238 \end_layout
16239
16240 \begin_layout Chapter
16241 ソフトウェアを追加する必要がある LyX機能
16242 \end_layout
16243
16244 \begin_layout Section
16245 TeXのチェック
16246 \end_layout
16247
16248 \begin_layout Standard
16249
16250 \noun on
16251 Asger Alstrup
16252 \noun default
16253
16254 \end_layout
16255
16256 \begin_layout Subsection
16257 はじめに
16258 \end_layout
16259
16260 \begin_layout Standard
16261
16262 \family typewriter
16263 chktex
16264 \family default
16265 プログラムが導入されていると
16266 \begin_inset Foot
16267 status collapsed
16268
16269 \begin_layout Plain Layout
16270 LaTeX頒布版としてMiKTeXを使用している場合には、
16271 \family typewriter
16272 chktex
16273 \family default
16274 はまだ利用可能ではありません。
16275 \end_layout
16276
16277 \end_inset
16278
16279
16280 \family sans
16281 ツール
16282 \family default
16283 メニューの下に、
16284 \family sans
16285 TeX構文チェック
16286 \family default
16287 という項目が表示されます。
16288 \family typewriter
16289 chktex
16290 \family default
16291 は、CTAN
16292 \begin_inset CommandInset href
16293 LatexCommand href
16294 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
16295
16296 \end_inset
16297
16298 から入手することができます。
16299 \end_layout
16300
16301 \begin_layout Standard
16302
16303 \family sans
16304 ChkTeX
16305 \family default
16306 パッケージは、LaTeXの構成物には直感的でないものもあり、すぐ忘れてしまいがちであるのに不満を感じた
16307 \begin_inset Flex Noun
16308 status collapsed
16309
16310 \begin_layout Plain Layout
16311 Jens T.
16312  Berger Thielemann
16313 \end_layout
16314
16315 \end_inset
16316
16317 が書いたプログラムです。このプログラムは、LaTeXファイルを走査して、ファイルの整合性をチェックし、犯しがちな誤りを見つけ出します。別の技術用語では、LaTe
16318 Xにおける
16319 \family typewriter
16320 lint
16321 \family default
16322 であるとも言えます。
16323 \end_layout
16324
16325 \begin_layout Standard
16326 さて、LyXはつねに正しいLaTeXファイルを生成するはずなのに、文法チェッカーはLyXで何をするというのでしょうか。答えは簡単です。
16327 \family typewriter
16328 lint
16329 \family default
16330 がC言語プログラムの
16331 \emph on
16332 文法
16333 \emph default
16334 をチェックするだけでなく、打ち間違いによる
16335 \emph on
16336 意味上の
16337 \emph default
16338 チェックも行うように、
16339 \family sans
16340 ChkTeX
16341 \family default
16342 は、文法エラーの他に犯しがちな
16343 \emph on
16344 写植上の
16345 \emph default
16346 誤りも検出してくれるからです。
16347 \family sans
16348 ChkTeX
16349 \family default
16350 は、以下のような誤りを検出することができます。
16351 \end_layout
16352
16353 \begin_layout Itemize
16354 省略記号の検出:
16355 \begin_inset Newline newline
16356 \end_inset
16357
16358 ...ではなく\SpecialChar \ldots{}
16359 を使わなくてはなりません
16360 \end_layout
16361
16362 \begin_layout Itemize
16363 括弧の前後にスペースを置かない:
16364 \begin_inset Newline newline
16365 \end_inset
16366
16367 ( wrong spacing ):誤った空白
16368 \end_layout
16369
16370 \begin_layout Itemize
16371 よく使われる省略形の後ろは通常スペースにする:
16372 \begin_inset Newline newline
16373 \end_inset
16374
16375 e.
16376 \begin_inset space \thinspace{}
16377 \end_inset
16378
16379 g.
16380 \begin_inset space \space{}
16381 \end_inset
16382
16383 is too wide spacing.:広すぎる空白
16384 \end_layout
16385
16386 \begin_layout Itemize
16387 直前の文章が大文字で終わっているときに、文末スペースに直す:
16388 \begin_inset Newline newline
16389 \end_inset
16390
16391 This is a TEST.
16392  And this is wrong spacing.:誤った空白
16393 \end_layout
16394
16395 \begin_layout Itemize
16396 ラベルや類似コマンドの前のスペース:
16397 \begin_inset Newline newline
16398 \end_inset
16399
16400 ラベルが別のページに行ってしまわないように、ラベルは文章に接していなくてはなりません。 
16401 \begin_inset CommandInset label
16402 LatexCommand label
16403 name "sec:chktex"
16404
16405 \end_inset
16406
16407  
16408 \begin_inset Foot
16409 status collapsed
16410
16411 \begin_layout Plain Layout
16412 この脚注は、正しくないページに行ってしまう恐れがあります。
16413 \end_layout
16414
16415 \end_inset
16416
16417  このラベルは離れすぎです。
16418 \end_layout
16419
16420 \begin_layout Itemize
16421 参照の前にハードスペースではなくスペース:
16422 \begin_inset Newline newline
16423 \end_inset
16424
16425 運が悪ければ、参照文字列と参照番号のあいだでちょうど改行されてしまい、残念な結果となります。第
16426 \begin_inset CommandInset ref
16427 LatexCommand ref
16428 reference "sec:chktex"
16429
16430 \end_inset
16431
16432 節をご覧ください。
16433 \end_layout
16434
16435 \begin_layout Itemize
16436 数字のあいだで
16437 \begin_inset Formula $\times$
16438 \end_inset
16439
16440 ではなく「x」が使われている:
16441 \begin_inset Newline newline
16442 \end_inset
16443
16444 2x2は、
16445 \begin_inset Formula $2\times2$
16446 \end_inset
16447
16448 よりも安っぽく見えます。
16449 \end_layout
16450
16451 \begin_layout Standard
16452 などなど\SpecialChar \ldots{}
16453
16454 \family sans
16455 ChkTeX
16456 \family default
16457 は、印刷する前に文書を「仕上げる」上で、たいへん価値のあるツールです。必須のスペルチェックを終えた直後、組版の微調整をする前には、これを実行するべきです。
16458 \end_layout
16459
16460 \begin_layout Subsection
16461 使いかた
16462 \end_layout
16463
16464 \begin_layout Standard
16465 このプログラムを導入したならば、使うのは
16466 \family sans
16467 ツール\SpecialChar \menuseparator
16468 TeX構文チェック
16469 \family default
16470 を選択するだけなので簡単です。こうすると、LyXは使用中の文書のLaTeXファイルを生成して、
16471 \family sans
16472 ChkTeX
16473 \family default
16474 を起動し、当該ファイルを検査しますが、
16475 \family sans
16476 ChkTeX
16477 \family default
16478 から警告があった場合には、それを含んだ「エラーボックス」をLyX中に挿入します。警告は、誤りのある箇所のそばに置かれるので、メニュー項目の
16479 \family sans
16480 移動\SpecialChar \menuseparator
16481 エラー
16482 \family default
16483 を選択するか、既定の
16484 \family typewriter
16485 cua
16486 \family default
16487 キー設定ファイルならば短絡キー
16488 \family sans
16489 C-g
16490 \family default
16491 を押せば、簡単に警告の箇所を見出すことができます。エラーボックスを開けるには、マウスでボックスをクリックするか、
16492 \family typewriter
16493 cua
16494 \family default
16495 キー設定の場合には短絡キー
16496 \family sans
16497 C-i
16498 \family default
16499
16500 \family typewriter
16501 emacs
16502 \family default
16503 キー設定の場合は短絡キー
16504 \family sans
16505 C-o
16506 \family default
16507 を押します。警告を読み、それが誤りを示していれば修正します。警告が何を意味しているか理解しにくい場合には、無視しても問題はありません。画面上の文書と、
16508 \family sans
16509 ChkTeX
16510 \family default
16511 を起動する際に行なわれる実際の技術的な操作のあいだには、隠された層があり、この隔たりのせいで、一部の警告が不可解なものになったり、明らかに馬鹿げたものになる場合
16512 があるのです。
16513 \end_layout
16514
16515 \begin_layout Standard
16516 本文書自体、この機能を確認する良い材料になりますので、実行してみてください。すると、かなりの量の警告が出るはずです。これはコンピュータが敏感すぎるせいですので、
16517 警告のほとんどは実際には警告に値しません。
16518 \end_layout
16519
16520 \begin_layout Subsection
16521 微調整のしかた
16522 \end_layout
16523
16524 \begin_layout Standard
16525 場合によっては、
16526 \family sans
16527 ChkTeX
16528 \family default
16529 は、あなたが望むよりも煩すぎると思うかもしれません。そのような場合には、必要と思うまで
16530 \family sans
16531 ChkTeX
16532 \family default
16533 を無効にするか、あなたにもう少し合うように
16534 \family sans
16535 ChkTeX
16536 \family default
16537 を調整することができます。
16538 \end_layout
16539
16540 \begin_layout Standard
16541
16542 \family sans
16543 ChkTeX
16544 \family default
16545 は調整や拡張がひじょうに柔軟なのですが、LyXにおける
16546 \family sans
16547 ChkTeX
16548 \family default
16549 関連の問題が、それですべて解決すると思うべきではありません。LyXは、
16550 \family sans
16551 ChkTeX
16552 \family default
16553 出力
16554 \begin_inset Foot
16555 status collapsed
16556
16557 \begin_layout Plain Layout
16558
16559 \family sans
16560 chktex
16561 \family default
16562 の実際の出力は、
16563 \family sans
16564 chktex
16565 \family default
16566 を実行した直後に
16567 \family sans
16568 文書\SpecialChar \menuseparator
16569 LaTeXログ
16570 \family default
16571 を使えば見ることができます。
16572 \end_layout
16573
16574 \end_inset
16575
16576 から得た行番号と内部構造を一致させるため、やや特殊なLaTeXファイルを生成しなくてはならないので、警告の一部は正しく表示されていないように見えるでしょう。これ
16577 に対処するためには、以下の2つの方法があります。
16578 \end_layout
16579
16580 \begin_layout Itemize
16581
16582 \family sans
16583 設定
16584 \family default
16585
16586 \family sans
16587 出力
16588 \family default
16589
16590 \family sans
16591 LaTeX
16592 \family default
16593 タブ)中の
16594 \family sans
16595 ChkTeX
16596 \family default
16597 起動コマンドラインを調整するか、グローバルな
16598 \family sans
16599 ChkTeX
16600 \family default
16601 の設定ファイル(通常は
16602 \begin_inset Flex Code
16603 status collapsed
16604
16605 \begin_layout Plain Layout
16606 chktexrc
16607 \end_layout
16608
16609 \end_inset
16610
16611 ファイル)を調整します。コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください。
16612 \end_layout
16613
16614 \begin_layout Itemize
16615
16616 \family sans
16617 ファイル\SpecialChar \menuseparator
16618 書き出し\SpecialChar \menuseparator
16619 LaTeX
16620 \family default
16621 を使って文書をLaTeXファイルに変換し、そのファイルに対して
16622 \family typewriter
16623 chktex
16624 \family default
16625 を手動で実行します。このようにすると、LyX文書中の対応箇所を見つけるのがやや面倒ですが、少し我慢すれば見つけることができます。
16626 \end_layout
16627
16628 \begin_layout Standard
16629 以下は、
16630 \family sans
16631 設定
16632 \family default
16633 で有効化・無効化できる警告メッセージです。警告を無効にするには
16634 \family typewriter
16635 -n#
16636 \family default
16637 、有効にするには
16638 \family typewriter
16639 -w#
16640 \family default
16641 を用います。イタリック表示の項目は、既定で無効となっています。既定値は "
16642 \family typewriter
16643 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
16644 \family default
16645 "です。
16646 \end_layout
16647
16648 \begin_layout Standard
16649 LyXは、
16650 \family typewriter
16651 chktex
16652 \family default
16653 と通信するために、他のコマンドラインパラメータを特定の方法で使用しているため、メッセージを有効化・無効化する以外のオプションを使うべきではありません。
16654 \end_layout
16655
16656 \begin_layout Enumerate
16657
16658 \size small
16659 \emph on
16660 Command terminated with space.
16661 \end_layout
16662
16663 \begin_layout Enumerate
16664
16665 \size small
16666 Non-breaking space (
16667 \begin_inset Quotes eld
16668 \end_inset
16669
16670
16671 \family typewriter
16672 ~
16673 \family default
16674
16675 \begin_inset Quotes erd
16676 \end_inset
16677
16678 ) should have been used.
16679 \end_layout
16680
16681 \begin_layout Enumerate
16682
16683 \size small
16684 \emph on
16685 You should enclose the previous parenthesis with 
16686 \begin_inset Quotes eld
16687 \end_inset
16688
16689
16690 \family typewriter
16691 {}
16692 \family default
16693
16694 \begin_inset Quotes erd
16695 \end_inset
16696
16697 .
16698 \end_layout
16699
16700 \begin_layout Enumerate
16701
16702 \size small
16703 Italic correction (
16704 \begin_inset Quotes eld
16705 \end_inset
16706
16707
16708 \family typewriter
16709
16710 \backslash
16711 /
16712 \family default
16713
16714 \begin_inset Quotes erd
16715 \end_inset
16716
16717 ) found in non-italic buffer.
16718 \end_layout
16719
16720 \begin_layout Enumerate
16721
16722 \size small
16723 Italic correction (
16724 \begin_inset Quotes eld
16725 \end_inset
16726
16727
16728 \family typewriter
16729
16730 \backslash
16731 /
16732 \family default
16733
16734 \begin_inset Quotes erd
16735 \end_inset
16736
16737 ) found more than once.
16738 \end_layout
16739
16740 \begin_layout Enumerate
16741
16742 \size small
16743 \emph on
16744 No italic correction (
16745 \begin_inset Quotes eld
16746 \end_inset
16747
16748
16749 \family typewriter
16750
16751 \backslash
16752 /
16753 \family default
16754
16755 \begin_inset Quotes erd
16756 \end_inset
16757
16758 ) found.
16759 \end_layout
16760
16761 \begin_layout Enumerate
16762
16763 \size small
16764 Accent command 
16765 \begin_inset Quotes eld
16766 \end_inset
16767
16768
16769 \family typewriter
16770 cmd
16771 \family default
16772
16773 \begin_inset Quotes erd
16774 \end_inset
16775
16776  needs use of 
16777 \begin_inset Quotes eld
16778 \end_inset
16779
16780
16781 \family typewriter
16782 cmd
16783 \family default
16784
16785 \begin_inset Quotes erd
16786 \end_inset
16787
16788 .
16789 \end_layout
16790
16791 \begin_layout Enumerate
16792
16793 \size small
16794 Wrong length of dash may have been used.
16795 \end_layout
16796
16797 \begin_layout Enumerate
16798
16799 \size small
16800 \emph on
16801 \begin_inset Quotes eld
16802 \end_inset
16803
16804
16805 \family typewriter
16806 %s
16807 \family default
16808
16809 \begin_inset Quotes erd
16810 \end_inset
16811
16812  expected, found 
16813 \begin_inset Quotes eld
16814 \end_inset
16815
16816
16817 \family typewriter
16818 %s
16819 \family default
16820
16821 \begin_inset Quotes erd
16822 \end_inset
16823
16824 .
16825 \end_layout
16826
16827 \begin_layout Enumerate
16828
16829 \size small
16830 Solo 
16831 \begin_inset Quotes eld
16832 \end_inset
16833
16834
16835 \family typewriter
16836 %s
16837 \family default
16838
16839 \begin_inset Quotes erd
16840 \end_inset
16841
16842  found.
16843 \end_layout
16844
16845 \begin_layout Enumerate
16846
16847 \size small
16848 You should use 
16849 \begin_inset Quotes eld
16850 \end_inset
16851
16852
16853 \family typewriter
16854 %s
16855 \family default
16856
16857 \begin_inset Quotes erd
16858 \end_inset
16859
16860  to achieve an ellipsis.
16861 \end_layout
16862
16863 \begin_layout Enumerate
16864
16865 \size small
16866 Inter-word spacing (
16867 \begin_inset Quotes eld
16868 \end_inset
16869
16870
16871 \family typewriter
16872
16873 \backslash
16874
16875 \family default
16876  
16877 \begin_inset Quotes eld
16878 \end_inset
16879
16880 ) should perhaps be used.
16881 \end_layout
16882
16883 \begin_layout Enumerate
16884
16885 \size small
16886 Inter-sentence spacing (
16887 \begin_inset Quotes eld
16888 \end_inset
16889
16890
16891 \family typewriter
16892
16893 \backslash
16894 @
16895 \family default
16896
16897 \begin_inset Quotes erd
16898 \end_inset
16899
16900 ) should perhaps be used.
16901 \end_layout
16902
16903 \begin_layout Enumerate
16904
16905 \size small
16906 Could not find argument for command.
16907 \end_layout
16908
16909 \begin_layout Enumerate
16910
16911 \size small
16912 No match found for 
16913 \begin_inset Quotes eld
16914 \end_inset
16915
16916
16917 \family typewriter
16918 %s
16919 \family default
16920
16921 \begin_inset Quotes erd
16922 \end_inset
16923
16924 .
16925 \end_layout
16926
16927 \begin_layout Enumerate
16928
16929 \size small
16930 Math mode still on at end of LaTeX file.
16931 \end_layout
16932
16933 \begin_layout Enumerate
16934
16935 \size small
16936 Number of 
16937 \begin_inset Quotes eld
16938 \end_inset
16939
16940
16941 \family typewriter
16942 char
16943 \family default
16944
16945 \begin_inset Quotes erd
16946 \end_inset
16947
16948  doesn't match the number of 
16949 \begin_inset Quotes eld
16950 \end_inset
16951
16952
16953 \family typewriter
16954 char
16955 \family default
16956
16957 \begin_inset Quotes erd
16958 \end_inset
16959
16960 .
16961 \end_layout
16962
16963 \begin_layout Enumerate
16964
16965 \size small
16966 You should use either 
16967 \family typewriter
16968
16969 \begin_inset Quotes eld
16970 \end_inset
16971
16972
16973 \family default
16974  or 
16975 \family typewriter
16976
16977 \begin_inset Quotes erd
16978 \end_inset
16979
16980
16981 \family default
16982  as an alternative to 
16983 \begin_inset Quotes eld
16984 \end_inset
16985
16986
16987 \family typewriter
16988 "
16989 \family default
16990
16991 \begin_inset Quotes erd
16992 \end_inset
16993
16994 .
16995 \end_layout
16996
16997 \begin_layout Enumerate
16998
16999 \size small
17000 You should use "
17001 \family typewriter
17002 '
17003 \family default
17004 " (ASCII 39) instead of "" (ASCII 180).
17005 \end_layout
17006
17007 \begin_layout Enumerate
17008
17009 \size small
17010 User-specified pattern found.
17011 \end_layout
17012
17013 \begin_layout Enumerate
17014
17015 \size small
17016 This command might not be intended.
17017 \end_layout
17018
17019 \begin_layout Enumerate
17020
17021 \size small
17022 \emph on
17023 Comment displayed.
17024 \end_layout
17025
17026 \begin_layout Enumerate
17027
17028 \size small
17029 Either 
17030 \family typewriter
17031 ''
17032 \backslash
17033 ,'
17034 \family default
17035  or 
17036 \family typewriter
17037 '
17038 \backslash
17039 ,''
17040 \family default
17041  will look better.
17042 \end_layout
17043
17044 \begin_layout Enumerate
17045
17046 \size small
17047 Delete this space to maintain correct page references.
17048 \end_layout
17049
17050 \begin_layout Enumerate
17051
17052 \size small
17053 \emph on
17054 You might wish to put this between a pair of 
17055 \begin_inset Quotes eld
17056 \end_inset
17057
17058
17059 \family typewriter
17060 {}
17061 \family default
17062
17063 \begin_inset Quotes erd
17064 \end_inset
17065
17066 .
17067 \end_layout
17068
17069 \begin_layout Enumerate
17070
17071 \size small
17072 You ought to remove spaces in front of punctuation.
17073 \end_layout
17074
17075 \begin_layout Enumerate
17076
17077 \size small
17078 Could not execute LaTeX command.
17079 \end_layout
17080
17081 \begin_layout Enumerate
17082
17083 \size small
17084 Don't use 
17085 \family typewriter
17086
17087 \backslash
17088 /
17089 \family default
17090  in front of small punctuation.
17091 \end_layout
17092
17093 \begin_layout Enumerate
17094
17095 \family typewriter
17096 \size small
17097 $
17098 \backslash
17099 times$
17100 \family default
17101  may look prettier here.
17102 \end_layout
17103
17104 \begin_layout Enumerate
17105
17106 \size small
17107 \emph on
17108 Multiple spaces detected in output.
17109 \end_layout
17110
17111 \begin_layout Enumerate
17112
17113 \size small
17114 This text may be ignored.
17115 \end_layout
17116
17117 \begin_layout Enumerate
17118
17119 \size small
17120 Use 
17121 \family typewriter
17122
17123 \begin_inset Quotes eld
17124 \end_inset
17125
17126
17127 \family default
17128  to begin quotation, not 
17129 \family typewriter
17130 '
17131 \family default
17132 .
17133 \end_layout
17134
17135 \begin_layout Enumerate
17136
17137 \size small
17138 Use 
17139 \family typewriter
17140 '
17141 \family default
17142  to end quotation, not 
17143 \family typewriter
17144
17145 \begin_inset Quotes eld
17146 \end_inset
17147
17148
17149 \family default
17150 .
17151 \end_layout
17152
17153 \begin_layout Enumerate
17154
17155 \size small
17156 Don't mix quotes.
17157 \end_layout
17158
17159 \begin_layout Enumerate
17160
17161 \size small
17162 You should perhaps use 
17163 \begin_inset Quotes eld
17164 \end_inset
17165
17166
17167 \family typewriter
17168 cmd
17169 \family default
17170
17171 \begin_inset Quotes erd
17172 \end_inset
17173
17174  instead.
17175 \end_layout
17176
17177 \begin_layout Enumerate
17178
17179 \size small
17180 You should put a space in front of/after parenthesis.
17181 \end_layout
17182
17183 \begin_layout Enumerate
17184
17185 \size small
17186 You should avoid spaces in front of/after parenthesis.
17187 \end_layout
17188
17189 \begin_layout Enumerate
17190
17191 \size small
17192 \emph on
17193 You should not use punctuation in front of/after quotes.
17194 \end_layout
17195
17196 \begin_layout Enumerate
17197
17198 \size small
17199 Double space found.
17200 \end_layout
17201
17202 \begin_layout Enumerate
17203
17204 \size small
17205 You should put punctuation outside inner/inside display math mode.
17206 \end_layout
17207
17208 \begin_layout Enumerate
17209
17210 \size small
17211 You ought to not use primitive TeX in LaTeX code.
17212 \end_layout
17213
17214 \begin_layout Enumerate
17215
17216 \size small
17217 You should remove spaces in front of 
17218 \begin_inset Quotes eld
17219 \end_inset
17220
17221
17222 \family typewriter
17223 %s
17224 \family default
17225
17226 \begin_inset Quotes erd
17227 \end_inset
17228
17229
17230 \end_layout
17231
17232 \begin_layout Enumerate
17233
17234 \size small
17235 \begin_inset Quotes eld
17236 \end_inset
17237
17238
17239 \family typewriter
17240 %s
17241 \family default
17242
17243 \begin_inset Quotes erd
17244 \end_inset
17245
17246  is normally not followed by 
17247 \begin_inset Quotes eld
17248 \end_inset
17249
17250
17251 \family typewriter
17252 %c
17253 \family default
17254
17255 \begin_inset Quotes erd
17256 \end_inset
17257
17258 .
17259 \end_layout
17260
17261 \begin_layout Standard
17262 LyXの将来の版では、このツール(およびその縮小版
17263 \family typewriter
17264 lacheck
17265 \family default
17266 )の力を最大限引き出すように、より完備したインターフェイスを提供できればと考えています。しかし、現状でも十分に役立つものとなっています。ある程度長さがある既存文
17267 書に使用してみていただければ、きっと驚かれることでしょう。
17268 \end_layout
17269
17270 \begin_layout Section
17271 LyXでのバージョン管理
17272 \end_layout
17273
17274 \begin_layout Standard
17275
17276 \noun on
17277 Lars Bullik Bjønnes
17278 \noun default
17279 および
17280 \noun on
17281 Pavel Sanda
17282 \noun default
17283
17284 \end_layout
17285
17286 \begin_layout Subsection
17287 はじめに
17288 \end_layout
17289
17290 \begin_layout Standard
17291 かつて私の友人が、LyXをグループプロジェクトに使おうとしましたが、当時のLyXには、バージョン管理機能やファイルロック機構が備わっていなかったために、採用を見
17292 合わせました。この事実は少々私をいらだたせ、(将来的にCVSやSCCSのサポートできる拡張性を含め)少なくともRCSのサポートをするべきだと考えたのです。いまや
17293 これは実現しました。LyXは、今ではもっとも基本的なRCS/CVS/SVNコマンドをサポートしています。もしもっと洗練されたことを行いたい場合には、ターミナル上
17294 から手動で行う必要があります。
17295 \end_layout
17296
17297 \begin_layout Standard
17298 LyXで実際にバージョン管理機能を使い始める前に、RCS/CVS/SVNの使用法に習熟しておかなくてはなりません。また、CVSのサポートは、subversion
17299 のサポートほど良くないので、CVSよりもSVNを使うことをお勧めします。Subversionを学び始めるには、SVN Book
17300 \begin_inset Foot
17301 status collapsed
17302
17303 \begin_layout Plain Layout
17304 \begin_inset CommandInset href
17305 LatexCommand href
17306 target "http://svnbook.red-bean.com/"
17307
17308 \end_inset
17309
17310
17311 \end_layout
17312
17313 \end_inset
17314
17315 が良いでしょう。RCSの場合は、「rsintro」をお読みください(これはmanファイルです。
17316 \family typewriter
17317 man rcsintro
17318 \family default
17319 で読めます)。このファイルは、RCSの基本機能のすべてを説明しています。特に、RCSディレクトリに関するコメントと、マスターRCSファイル(
17320 \family typewriter
17321 ,v
17322 \family default
17323 で終わるファイルです)の概念に注意を払ってください。
17324 \end_layout
17325
17326 \begin_layout Standard
17327 LyXへの実装においては、GNU RCSまたはCVS/SVNパッケージの最新版を仮定しています。旧版への保証はありません。ログメッセージのほとんどは、現在のとこ
17328 ろ操作後には表示されません。確認したい場合には、メッセージペインで確かめてください。
17329 \end_layout
17330
17331 \begin_layout Standard
17332 自製の外部コマンドを導入したい場合には、LyX関数説明書のvcコマンドを確認してください。
17333 \end_layout
17334
17335 \begin_layout Subsection
17336 LyXにおけるRCSコマンド
17337 \end_layout
17338
17339 \begin_layout Standard
17340 以下の節ではLyXでサポートされているRCSコマンドを説明します。それらのコマンドは
17341 \family sans
17342 ファイル\SpecialChar \menuseparator
17343 バージョン管理
17344 \family default
17345 のサブメニューにあります。LyXは、RCS 5.7に対して試験されています。
17346 \end_layout
17347
17348 \begin_layout Subsubsection
17349
17350 \family sans
17351 登録
17352 \end_layout
17353
17354 \begin_layout Standard
17355 文書がバージョン管理の下にない場合には、これがメニューにあらわれる唯一の項目です。文書がバージョン管理下にあれば、項目
17356 \family sans
17357 登録
17358 \family default
17359 は不可視になります。
17360 \end_layout
17361
17362 \begin_layout Standard
17363 このコマンドは、文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合)。すると対話的に、文書の最初の説明を入力するように尋ねられます。すると文
17364 書は読み込み専用モードになるので、変更を加えるためには
17365 \family sans
17366 チェックアウトして編集
17367 \family default
17368 を実行する必要があります。バージョン管理下にある文書は、ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます。
17369 \end_layout
17370
17371 \begin_layout Standard
17372 実行されるRCSコマンドは:
17373 \family typewriter
17374 ci -q -u -i -t-"<初期説明文>" <ファイル名>
17375 \end_layout
17376
17377 \begin_layout Standard
17378 スイッチについて知りたい場合は、
17379 \family typewriter
17380 man ci
17381 \family default
17382 を読んでください。
17383 \end_layout
17384
17385 \begin_layout Subsubsection
17386
17387 \family sans
17388 変更をチェックインする
17389 \end_layout
17390
17391 \begin_layout Standard
17392 ファイルの編集が終わると、その変更をチェックインします。このとき、変更についての説明文を求められます。これは履歴ログに記録されます。バージョン番号は繰り上がり、
17393 変更がマスターRCSファイルに適用され、文書がアンロックされて読み込み専用モードになります。
17394 \end_layout
17395
17396 \begin_layout Standard
17397 RCSコマンド:
17398 \family typewriter
17399 ci -q -u -m"<説明文>" <ファイル名>
17400 \end_layout
17401
17402 \begin_layout Subsubsection
17403
17404 \family sans
17405 チェックアウトして編集
17406 \end_layout
17407
17408 \begin_layout Standard
17409 これは、文書をロックして編集できるようにします。そしてあなただけが文書を読み書きできるようにします。通常は、しばらくの間、文書を編集し、それが終わると変更をチェ
17410 ックインします。あなたがファイルをロックしたことを反映して、ステータスラインが変わります。
17411 \end_layout
17412
17413 \begin_layout Standard
17414 RCSコマンド:
17415 \family typewriter
17416 co -q -l <ファイル名>
17417 \end_layout
17418
17419 \begin_layout Subsubsection
17420
17421 \family sans
17422 リポジトリのバージョンに戻す
17423 \end_layout
17424
17425 \begin_layout Standard
17426 これは、最終チェックイン以降、文書に加えられた変更をすべて破棄します。変更が破棄される前に、警告が発せられます。
17427 \end_layout
17428
17429 \begin_layout Standard
17430 RCSコマンド:
17431 \family typewriter
17432 co -f -u<バージョン> <ファイル名>
17433 \end_layout
17434
17435 \begin_layout Subsubsection
17436
17437 \family sans
17438 最後のチェックインを取り消す
17439 \end_layout
17440
17441 \begin_layout Standard
17442 これは、最後のチェックインがあたかも為されなかったかのようにします。LyXに読み込まれた文書に変更は加えられませんが、マスターRCSファイルから最後のバージョン
17443 が削除されます。
17444 \end_layout
17445
17446 \begin_layout Standard
17447 RCSコマンド:
17448 \family typewriter
17449 rcs -o<バージョン> <ファイル名>
17450 \end_layout
17451
17452 \begin_layout Subsubsection
17453
17454 \family sans
17455 履歴を表示
17456 \end_layout
17457
17458 \begin_layout Standard
17459 RCS文書の完全な履歴を表示します。ブラウザ中に、
17460 \family typewriter
17461 rlog <ファイル名>
17462 \family default
17463 の出力が表示されます。詳細は
17464 \family typewriter
17465 man rlog
17466 \family default
17467 をご覧ください。
17468 \end_layout
17469
17470 \begin_layout Subsubsection
17471 改訂情報
17472 \end_layout
17473
17474 \begin_layout Standard
17475 LyXは、RCSバージョン番号情報(のみ)をサポートしています。詳細については、
17476 \begin_inset CommandInset ref
17477 LatexCommand ref
17478 reference "sub:VCS改訂情報"
17479
17480 \end_inset
17481
17482 を参照。
17483 \end_layout
17484
17485 \begin_layout Subsection
17486 LyXにおけるCVSコマンド
17487 \end_layout
17488
17489 \begin_layout Standard
17490 LyXは、現在CVSを一部サポートしています。そのコマンドは、
17491 \family sans
17492 ファイル\SpecialChar \menuseparator
17493 バージョン管理
17494 \family default
17495 サブメニューにあります。バージョン管理システムSVNの方が強力なので、可能ならばCVSではなく、SVNを使用してください。
17496 \end_layout
17497
17498 \begin_layout Subsubsection
17499 CVSの一般的な利用法
17500 \end_layout
17501
17502 \begin_layout Standard
17503 CVSを初めて使いたい場合には、外部ツールを使用して自分のレポジトリを作成し、作業コピーをチェックアウトする必要があります。クライアント=サーバーモデルを使用し
17504 ている場合には、最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません。
17505 \end_layout
17506
17507 \begin_layout Standard
17508 改訂管理下にある文書のレポジトリを他人も利用している場合に、同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します。標準的なCVSレポジトリは、ファイル
17509 ロッキング機構を有しません。これは驚くべきことかもしれませんが、コンフリクトは、文書の同じ箇所の特定の内容について、人々が意見を異にしている場合にのみ発生します
17510 。したがって、共著者同士がコンスタントにコミュニケーションを交わしていれば、このようなコンフリクトは滅多に発生しません。もしコミュニケーションがなければ、いずれ
17511 にしても根本的な問題があるわけです。それにもかかわらず、いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます。この場合、最初にチェックアウトした際に
17512 、全ファイルの作業コピーは読み込み専用にされ、ユーザーは、作業コピーを書き込み可能にする特別なコマンドを使用した後、編集を開始することになります。変更をチェック
17513 インすると、作業コピーは読み込み専用状態に戻ります。LyXで予備付きチェックアウトを利用したい場合には、
17514 \begin_inset Flex Code
17515 status collapsed
17516
17517 \begin_layout Plain Layout
17518 .cvsrc
17519 \end_layout
17520
17521 \end_inset
17522
17523 ファイルを編集して、
17524 \begin_inset Flex Code
17525 status collapsed
17526
17527 \begin_layout Plain Layout
17528 cvs -r
17529 \end_layout
17530
17531 \end_inset
17532
17533 という行を書き加える必要があります。この方法の利点は、文書のうち、書き込み可能コピーを誰が使用しているかを見ることができることです。ただし、一人のユーザーだけが
17534 コピーを書き込み可能にしているとは限りません。
17535 \end_layout
17536
17537 \begin_layout Standard
17538 LyXは、あなたが予備付きチェックアウトを使用しているか、予備なしチェックアウトを利用しているか、推測しようと試みます。使用中の作業コピーが読み込み専用になって
17539 いるか、あるいはそれが書き込み可能であって、CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には、予備付きチェックアウトを使用しているもの
17540 と仮定し、そうでない場合には予備なしチェックアウトを使用しているものと仮定します。予備付きチェックアウトが検出された場合には、作業コピーが読み込み専用の場合に書
17541 き込み可能にするためには、
17542 \begin_inset Flex MenuItem
17543 status collapsed
17544
17545 \begin_layout Plain Layout
17546 チェックアウト
17547 \end_layout
17548
17549 \end_inset
17550
17551 メニューを使用しなくてはなりません。その後、
17552 \begin_inset Flex MenuItem
17553 status collapsed
17554
17555 \begin_layout Plain Layout
17556 チェックイン
17557 \end_layout
17558
17559 \end_inset
17560
17561 メニューが利用可能になるので、自分が加えた変更をリポジトリに移した後、作業コピーを再び読み込み専用にする際には、これを使用します。
17562 \end_layout
17563
17564 \begin_layout Standard
17565 CVSの詳細な情報は、
17566 \begin_inset Flex URL
17567 status collapsed
17568
17569 \begin_layout Plain Layout
17570
17571 http://www.nongnu.org/cvs
17572 \end_layout
17573
17574 \end_inset
17575
17576
17577 \begin_inset Flex URL
17578 status collapsed
17579
17580 \begin_layout Plain Layout
17581
17582 http://ximbiot.com/cvs
17583 \end_layout
17584
17585 \end_inset
17586
17587 にあります。
17588 \end_layout
17589
17590 \begin_layout Standard
17591 以下に言及するサブコマンドとスイッチを理解するには、
17592 \family typewriter
17593 man cvs
17594 \family default
17595 をお読みください。
17596 \end_layout
17597
17598 \begin_layout Subsubsection
17599 登録
17600 \end_layout
17601
17602 \begin_layout Standard
17603 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
17604 \family sans
17605 登録
17606 \family default
17607 項目は表示されません。
17608 \end_layout
17609
17610 \begin_layout Standard
17611 本コマンドは、既に文書ディレクトリをCVS管理下に置いている場合に
17612 \series bold
17613 \emph on
17614 のみ
17615 \series default
17616 \emph default
17617 (すなわち
17618 \begin_inset Flex Code
17619 status collapsed
17620
17621 \begin_layout Plain Layout
17622 CVS/Entries
17623 \end_layout
17624
17625 \end_inset
17626
17627 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、外部ツールを使用して、アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
17628 を意味します(このステップを忘れてしまうと、LyXは文書をRCSに登録します)。
17629 \end_layout
17630
17631 \begin_layout Standard
17632 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだチェックインされたわけではないことに注意してください。
17633 \end_layout
17634
17635 \begin_layout Standard
17636 実行されるCVSコマンドは、
17637 \family typewriter
17638 cvs -q add -m"<入力した説明文>" "<ファイル名>"
17639 \family default
17640  です。
17641 \end_layout
17642
17643 \begin_layout Standard
17644 上記および他のすべてのCVSコマンドにおける
17645 \family typewriter
17646 "<ファイル名>"
17647 \family default
17648 は、「カレント作業ディレクトリをファイルの場所に移動し、パスコンポーネントを除いたファイル名を引数として使用する」という意味になります。
17649 \end_layout
17650
17651 \begin_layout Subsubsection
17652 変更のチェックイン
17653 \end_layout
17654
17655 \begin_layout Standard
17656 ファイルの編集を終えたら、変更をコミットします。このとき、文書に変更が加えられていれば、変更の説明文を入れるよう促されます。その後、変更がレポジトリに書き込まれ
17657 ます。文書を変更せず、予備付きチェックアウトが検出された場合、
17658 \begin_inset Flex MenuItem
17659 status collapsed
17660
17661 \begin_layout Plain Layout
17662 チェックアウト
17663 \end_layout
17664
17665 \end_inset
17666
17667 で作られた予備は取り消されます。
17668 \end_layout
17669
17670 \begin_layout Labeling
17671 \labelwidthstring 00.00.0000
17672 CVSコマンド: 
17673 \begin_inset space ~
17674 \end_inset
17675
17676
17677 \begin_inset Newline newline
17678 \end_inset
17679
17680
17681 \begin_inset Flex Code
17682 status collapsed
17683
17684 \begin_layout Plain Layout
17685 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
17686 \end_layout
17687
17688 \end_inset
17689
17690 あるいは
17691 \begin_inset Newline newline
17692 \end_inset
17693
17694
17695 \begin_inset Flex Code
17696 status collapsed
17697
17698 \begin_layout Plain Layout
17699 cvs -q unedit "<ファイル名>"
17700 \end_layout
17701
17702 \end_inset
17703
17704
17705 \end_layout
17706
17707 \begin_layout Subsubsection
17708 変更のチェックアウト
17709 \end_layout
17710
17711 \begin_layout Standard
17712 レポジトリを他人と共有している場合、他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります。
17713 \end_layout
17714
17715 \begin_layout Standard
17716 CVSコマンド:
17717 \family typewriter
17718 cvs -q update "<ファイル名>"
17719 \end_layout
17720
17721 \begin_layout Standard
17722 読み込み専用チェックアウトが検出された場合、作業コピーを書き込み可能にし予備を作成します。
17723 \end_layout
17724
17725 \begin_layout Standard
17726 CVSコマンド:
17727 \family typewriter
17728 cvs -q edit "<ファイル名>"
17729 \end_layout
17730
17731 \begin_layout Subsubsection
17732 レポジトリのバージョンに戻す
17733 \end_layout
17734
17735 \begin_layout Standard
17736 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVS更新コマンド
17737 が実行されます。
17738 \end_layout
17739
17740 \begin_layout Standard
17741 CVSコマンド:
17742 \family typewriter
17743 cvs -q update "<ファイル名>"
17744 \end_layout
17745
17746 \begin_layout Standard
17747 予備付きチェックアウトが検出され、作業コピーに変更がない場合、予備のみが取り消されます。
17748 \end_layout
17749
17750 \begin_layout Standard
17751 CVSコマンド:
17752 \family typewriter
17753 cvs -q unedit "<ファイル名>"
17754 \end_layout
17755
17756 \begin_layout Subsubsection
17757 ローカルディレクトリチェックアウトのレポジトリからの更新
17758 \end_layout
17759
17760 \begin_layout Standard
17761 子文書や図を含んだり、外部
17762 \begin_inset Flex Code
17763 status collapsed
17764
17765 \begin_layout Plain Layout
17766 .tex
17767 \end_layout
17768
17769 \end_inset
17770
17771 ファイルを取り込むなど、文書が複雑になるにつれ、バージョン管理の利用は複雑になります。LyXは、文書が存在するツリー全体の更新をサポートします。これは、CVSの
17772 使用法について詳しい知識のない人々や、レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に、特に便利です。ファイル構造は、すべての外部フ
17773 ァイルが、文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります。いずれにしても、複合文書を新しいディレクトリを建てて収容するのは、望ま
17774 しい習慣です。
17775 \end_layout
17776
17777 \begin_layout Standard
17778 コマンド
17779 \begin_inset Flex Code
17780 status collapsed
17781
17782 \begin_layout Plain Layout
17783 レポジトリを使ってローカル辞書を更新
17784 \end_layout
17785
17786 \end_inset
17787
17788 は、ディレクトリ全体を更新します。ローカルの変更が検出された場合には、更新を開始する前にユーザーに警告が発せられます。マージコンフリクトが発生した場合には、コン
17789 フリクトを起こしている部分の新旧バージョンが、両方とも最終文書に置かれますので、マージの結果を見直し、修正する必要があります。コンフリクトは、
17790 \begin_inset Flex Code
17791 status collapsed
17792
17793 \begin_layout Plain Layout
17794 <<<<<<<
17795 \end_layout
17796
17797 \end_inset
17798
17799
17800 \begin_inset Flex Code
17801 status collapsed
17802
17803 \begin_layout Plain Layout
17804 >>>>>>>
17805 \end_layout
17806
17807 \end_inset
17808
17809 の対に囲まれ、
17810 \begin_inset Flex Code
17811 status collapsed
17812
17813 \begin_layout Plain Layout
17814 =======
17815 \end_layout
17816
17817 \end_inset
17818
17819 で区切られて表示されます。最初の部分は、文書名に続いて、更新操作前のバージョンが置かれています。第2の部分は、
17820 \begin_inset Flex Code
17821 status collapsed
17822
17823 \begin_layout Plain Layout
17824 >
17825 \end_layout
17826
17827 \end_inset
17828
17829 記号列の後にバージョン番号に続いて、レポジトリ版が置かれます。
17830 \end_layout
17831
17832 \begin_layout Labeling
17833 \labelwidthstring 00.00.0000
17834 CVSコマンド: 
17835 \begin_inset space ~
17836 \end_inset
17837
17838
17839 \begin_inset Newline newline
17840 \end_inset
17841
17842
17843 \begin_inset Flex Code
17844 status collapsed
17845
17846 \begin_layout Plain Layout
17847 cd $path; cvs diff "."
17848 \end_layout
17849
17850 \end_inset
17851
17852 (変更が検出された場合には知らせる)
17853 \begin_inset Newline newline
17854 \end_inset
17855
17856
17857 \begin_inset Flex Code
17858 status collapsed
17859
17860 \begin_layout Plain Layout
17861 cd $path; cvs -q update "."
17862 \end_layout
17863
17864 \end_inset
17865
17866
17867 \end_layout
17868
17869 \begin_layout Standard
17870 ここで
17871 \begin_inset Flex Code
17872 status collapsed
17873
17874 \begin_layout Plain Layout
17875 $path
17876 \end_layout
17877
17878 \end_inset
17879
17880 は文書パスを表します。
17881 \end_layout
17882
17883 \begin_layout Subsubsection
17884 履歴を表示
17885 \end_layout
17886
17887 \begin_layout Standard
17888 これは、CVS文書の全履歴を表示します。
17889 \begin_inset Flex Code
17890 status collapsed
17891
17892 \begin_layout Plain Layout
17893 cvs log 
17894 \begin_inset Quotes eld
17895 \end_inset
17896
17897 <ファイル名>
17898 \begin_inset Quotes erd
17899 \end_inset
17900
17901
17902 \end_layout
17903
17904 \end_inset
17905
17906 の出力がブラウザに表示されます。
17907 \end_layout
17908
17909 \begin_layout Subsection
17910 LyXにおけるSVNコマンド
17911 \end_layout
17912
17913 \begin_layout Standard
17914 LyXは、現在SVNを一部サポートしています。そのコマンドは、
17915 \begin_inset Flex MenuItem
17916 status collapsed
17917
17918 \begin_layout Plain Layout
17919 ファイル\SpecialChar \menuseparator
17920 バージョン管理
17921 \end_layout
17922
17923 \end_inset
17924
17925 メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。LyXは、SVN
17926  1.5および1.6に対して試験されています
17927 \begin_inset Foot
17928 status collapsed
17929
17930 \begin_layout Plain Layout
17931 ほとんどのコマンドは、1.4でも動作します。第
17932 \begin_inset CommandInset ref
17933 LatexCommand ref
17934 reference "sub:レポジトリからSVN同期"
17935
17936 \end_inset
17937
17938 節をご覧ください。
17939 \end_layout
17940
17941 \end_inset
17942
17943
17944 \end_layout
17945
17946 \begin_layout Subsubsection
17947 登録
17948 \end_layout
17949
17950 \begin_layout Standard
17951 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
17952 \family sans
17953 登録
17954 \family default
17955 項目は表示されません。
17956 \end_layout
17957
17958 \begin_layout Standard
17959 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
17960 \emph on
17961 のみ
17962 \emph default
17963 (すなわち
17964 \begin_inset Flex Code
17965 status collapsed
17966
17967 \begin_layout Plain Layout
17968 .svn/entries
17969 \end_layout
17970
17971 \end_inset
17972
17973 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
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 add -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 Standard
18003 スイッチの説明は
18004 \begin_inset Flex Code
18005 status collapsed
18006
18007 \begin_layout Plain Layout
18008 man svn
18009 \end_layout
18010
18011 \end_inset
18012
18013 をお読みください。
18014 \end_layout
18015
18016 \begin_layout Subsubsection
18017 変更をチェックイン
18018 \end_layout
18019
18020 \begin_layout Standard
18021 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
18022 \end_layout
18023
18024 \begin_layout Standard
18025 SVNコマンド
18026 \begin_inset Foot
18027 status collapsed
18028
18029 \begin_layout Plain Layout
18030 ロックが有効になっていない場合です。第
18031 \begin_inset CommandInset ref
18032 LatexCommand ref
18033 reference "sub:SVNファイルロック"
18034
18035 \end_inset
18036
18037 節をご覧ください。
18038 \end_layout
18039
18040 \end_inset
18041
18042
18043 \begin_inset Flex Code
18044 status collapsed
18045
18046 \begin_layout Plain Layout
18047 svn commit -q -m
18048 \begin_inset Quotes erd
18049 \end_inset
18050
18051 <入力した説明文>
18052 \begin_inset Quotes erd
18053 \end_inset
18054
18055  
18056 \begin_inset Quotes eld
18057 \end_inset
18058
18059 <ファイル名>
18060 \begin_inset Quotes erd
18061 \end_inset
18062
18063
18064 \end_layout
18065
18066 \end_inset
18067
18068
18069 \end_layout
18070
18071 \begin_layout Subsubsection
18072 チェックアウトして編集
18073 \end_layout
18074
18075 \begin_layout Standard
18076 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
18077 しておくようにしてください。
18078 \end_layout
18079
18080 \begin_layout Standard
18081 SVNコマンド
18082 \begin_inset Foot
18083 status collapsed
18084
18085 \begin_layout Plain Layout
18086 同上。
18087 \end_layout
18088
18089 \end_inset
18090
18091
18092 \begin_inset Flex Code
18093 status collapsed
18094
18095 \begin_layout Plain Layout
18096 svn update --non-interactive 
18097 \begin_inset Quotes eld
18098 \end_inset
18099
18100 <ファイル名>
18101 \begin_inset Quotes erd
18102 \end_inset
18103
18104
18105 \end_layout
18106
18107 \end_inset
18108
18109
18110 \end_layout
18111
18112 \begin_layout Subsubsection
18113 保存されたバージョンに戻す
18114 \end_layout
18115
18116 \begin_layout Standard
18117 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
18118 \end_layout
18119
18120 \begin_layout Standard
18121 SVNコマンド:
18122 \begin_inset Flex Code
18123 status collapsed
18124
18125 \begin_layout Plain Layout
18126 svn revert -q 
18127 \begin_inset Quotes eld
18128 \end_inset
18129
18130 <ファイル名>
18131 \begin_inset Quotes erd
18132 \end_inset
18133
18134
18135 \end_layout
18136
18137 \end_inset
18138
18139
18140 \end_layout
18141
18142 \begin_layout Subsubsection
18143 \begin_inset CommandInset label
18144 LatexCommand label
18145 name "sub:レポジトリからSVN同期"
18146
18147 \end_inset
18148
18149 レポジトリを使ったローカルディレクトリの同期
18150 \begin_inset Foot
18151 status collapsed
18152
18153 \begin_layout Plain Layout
18154 このコマンドは、subversion 
18155 \begin_inset Formula $\geqq1.5$
18156 \end_inset
18157
18158 でのみ動作することに注意してください。
18159 \end_layout
18160
18161 \end_inset
18162
18163
18164 \end_layout
18165
18166 \begin_layout Standard
18167 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
18168 \begin_inset Flex Code
18169 status collapsed
18170
18171 \begin_layout Plain Layout
18172 .tex
18173 \end_layout
18174
18175 \end_inset
18176
18177 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこでLyXは、文書のおいてあるツリー全体の更新をサポートします
18178 \begin_inset Foot
18179 status collapsed
18180
18181 \begin_layout Plain Layout
18182 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
18183 \end_layout
18184
18185 \end_inset
18186
18187 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
18188
18189 \end_layout
18190
18191 \begin_layout Standard
18192 \begin_inset Flex Code
18193 status collapsed
18194
18195 \begin_layout Plain Layout
18196 ローカル辞書をレポジトリを使って更新
18197 \end_layout
18198
18199 \end_inset
18200
18201 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
18202 場合には、更新が開始される前にユーザに警告が与えられます。
18203 \end_layout
18204
18205 \begin_layout Labeling
18206 \labelwidthstring 00.00.0000
18207 SVNコマンド: 
18208 \begin_inset space ~
18209 \end_inset
18210
18211
18212 \begin_inset Newline newline
18213 \end_inset
18214
18215
18216 \begin_inset Flex Code
18217 status collapsed
18218
18219 \begin_layout Plain Layout
18220 svn diff $path(変更が発見された場合には通知します)
18221 \begin_inset Newline newline
18222 \end_inset
18223
18224 svn update --accept mine-full $path
18225 \end_layout
18226
18227 \end_inset
18228
18229
18230 \end_layout
18231
18232 \begin_layout Standard
18233 ここで
18234 \begin_inset Flex Code
18235 status collapsed
18236
18237 \begin_layout Plain Layout
18238 $path
18239 \end_layout
18240
18241 \end_inset
18242
18243 は文書のパスを示します。
18244 \end_layout
18245
18246 \begin_layout Subsubsection
18247 履歴を表示
18248 \end_layout
18249
18250 \begin_layout Standard
18251 これは、SVN文書の全履歴を表示します。
18252 \begin_inset Flex Code
18253 status collapsed
18254
18255 \begin_layout Plain Layout
18256 svn log 
18257 \begin_inset Quotes eld
18258 \end_inset
18259
18260 <ファイル名>
18261 \begin_inset Quotes erd
18262 \end_inset
18263
18264
18265 \end_layout
18266
18267 \end_inset
18268
18269 の出力がブラウザに表示されます。
18270 \end_layout
18271
18272 \begin_layout Subsubsection
18273 ファイルロック
18274 \begin_inset CommandInset label
18275 LatexCommand label
18276 name "sub:SVNファイルロック"
18277
18278 \end_inset
18279
18280
18281 \end_layout
18282
18283 \begin_layout Standard
18284 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
18285 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
18286 するための、何らかのロック機構を導入することが考えられます。
18287 \end_layout
18288
18289 \begin_layout Standard
18290 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
18291 \begin_inset Flex Code
18292 status collapsed
18293
18294 \begin_layout Plain Layout
18295 svn:needs-lock
18296 \end_layout
18297
18298 \end_inset
18299
18300 svnファイル特性に依拠した書き込み権限の自動設定(第
18301 \begin_inset CommandInset ref
18302 LatexCommand ref
18303 reference "sub:自動ロック特性"
18304
18305 \end_inset
18306
18307 節を参照)です
18308 \begin_inset Foot
18309 status open
18310
18311 \begin_layout Plain Layout
18312 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
18313 \end_layout
18314
18315 \end_inset
18316
18317 。ある文書について、この特性が検出されたときには、LyXは自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組
18318 みに切り替わります。これは特に、LyXでのファイルの使われ方に以下の二つのモードがあることを意味します。
18319 \end_layout
18320
18321 \begin_layout Itemize
18322 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
18323 \emph on
18324 チェックアウト
18325 \emph default
18326 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
18327 \end_layout
18328
18329 \begin_layout Itemize
18330 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
18331 \emph on
18332 チェックイン
18333 \emph default
18334 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
18335 \begin_inset Foot
18336 status collapsed
18337
18338 \begin_layout Plain Layout
18339 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
18340 \end_layout
18341
18342 \end_inset
18343
18344 、書き込みロックの解放のみが行われます。
18345 \end_layout
18346
18347 \begin_layout Standard
18348 SVNコマンド:
18349 \end_layout
18350
18351 \begin_layout Labeling
18352 \labelwidthstring 00.00.0000
18353 チェックイン: 
18354 \begin_inset Flex Code
18355 status collapsed
18356
18357 \begin_layout Plain Layout
18358 svn commit -q -m
18359 \begin_inset Quotes erd
18360 \end_inset
18361
18362 <説明>
18363 \begin_inset Quotes erd
18364 \end_inset
18365
18366  
18367 \begin_inset Quotes eld
18368 \end_inset
18369
18370 <ファイル名>
18371 \begin_inset Quotes erd
18372 \end_inset
18373
18374
18375 \end_layout
18376
18377 \end_inset
18378
18379
18380 \begin_inset Newline newline
18381 \end_inset
18382
18383
18384 \begin_inset Flex Code
18385 status collapsed
18386
18387 \begin_layout Plain Layout
18388 svn unlock 
18389 \begin_inset Quotes eld
18390 \end_inset
18391
18392 <ファイル名>
18393 \begin_inset Quotes erd
18394 \end_inset
18395
18396
18397 \end_layout
18398
18399 \end_inset
18400
18401
18402 \end_layout
18403
18404 \begin_layout Labeling
18405 \labelwidthstring 00.00.0000
18406 チェックアウト: 
18407 \begin_inset Flex Code
18408 status collapsed
18409
18410 \begin_layout Plain Layout
18411 svn update 
18412 \begin_inset Quotes eld
18413 \end_inset
18414
18415 <ファイル名>
18416 \begin_inset Quotes erd
18417 \end_inset
18418
18419
18420 \end_layout
18421
18422 \end_inset
18423
18424
18425 \begin_inset Newline newline
18426 \end_inset
18427
18428
18429 \begin_inset Flex Code
18430 status collapsed
18431
18432 \begin_layout Plain Layout
18433 svn unlock 
18434 \begin_inset Quotes eld
18435 \end_inset
18436
18437 <ファイル名>
18438 \begin_inset Quotes erd
18439 \end_inset
18440
18441
18442 \end_layout
18443
18444 \end_inset
18445
18446
18447 \end_layout
18448
18449 \begin_layout Subsubsection
18450 自動ロック特性
18451 \begin_inset CommandInset label
18452 LatexCommand label
18453 name "sub:自動ロック特性"
18454
18455 \end_inset
18456
18457
18458 \end_layout
18459
18460 \begin_layout Standard
18461 上述したような
18462 \begin_inset Flex Code
18463 status collapsed
18464
18465 \begin_layout Plain Layout
18466 .lyx
18467 \end_layout
18468
18469 \end_inset
18470
18471 ファイルに対する書き込み権限の自動設定は、
18472 \begin_inset Flex MenuItem
18473 status collapsed
18474
18475 \begin_layout Plain Layout
18476 ファイル\SpecialChar \menuseparator
18477 バージョン管理\SpecialChar \menuseparator
18478 ロック特性を使用
18479 \end_layout
18480
18481 \end_inset
18482
18483 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
18484 \end_layout
18485
18486 \begin_layout Standard
18487 SVNコマンド:
18488 \end_layout
18489
18490 \begin_layout Labeling
18491 \labelwidthstring 00.00.0000
18492 チェックイン: 
18493 \begin_inset Flex Code
18494 status collapsed
18495
18496 \begin_layout Plain Layout
18497 svn propset svn:needs-lock ON 
18498 \begin_inset Quotes eld
18499 \end_inset
18500
18501 <ファイル名>
18502 \begin_inset Quotes erd
18503 \end_inset
18504
18505
18506 \end_layout
18507
18508 \end_inset
18509
18510
18511 \end_layout
18512
18513 \begin_layout Labeling
18514 \labelwidthstring 00.00.0000
18515 チェックアウト: 
18516 \begin_inset Flex Code
18517 status collapsed
18518
18519 \begin_layout Plain Layout
18520 svn propdel svn:needs-lock 
18521 \begin_inset Quotes eld
18522 \end_inset
18523
18524 <ファイル名>
18525 \begin_inset Quotes erd
18526 \end_inset
18527
18528
18529 \end_layout
18530
18531 \end_inset
18532
18533
18534 \end_layout
18535
18536 \begin_layout Subsubsection
18537 \begin_inset CommandInset label
18538 LatexCommand label
18539 name "sub:VCS改訂情報"
18540
18541 \end_inset
18542
18543 文書の改訂情報
18544 \end_layout
18545
18546 \begin_layout Standard
18547 文書中で改訂情報を有効化するにはいくつかの方法があります。
18548 \end_layout
18549
18550 \begin_layout Itemize
18551 LyXによる直接サポート
18552 \end_layout
18553
18554 \begin_deeper
18555 \begin_layout Itemize
18556 ツリー改訂情報(
18557 \begin_inset Flex Code
18558 status collapsed
18559
18560 \begin_layout Plain Layout
18561 vcs-tree-revision
18562 \end_layout
18563
18564 \end_inset
18565
18566 )。
18567 \begin_inset Flex Code
18568 status collapsed
18569
18570 \begin_layout Plain Layout
18571 svnversion
18572 \end_layout
18573
18574 \end_inset
18575
18576 コマンドの出力を返します。下記の表が、結果の読み方のヒントを与えるでしょう。
18577 \end_layout
18578
18579 \begin_layout Standard
18580 \align center
18581 \begin_inset Tabular
18582 <lyxtabular version="3" rows="6" columns="2">
18583 <features tabularvalignment="middle">
18584 <column alignment="center" valignment="top" width="0">
18585 <column alignment="center" valignment="top" width="0">
18586 <row>
18587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18588 \begin_inset Text
18589
18590 \begin_layout Plain Layout
18591 出力
18592 \end_layout
18593
18594 \end_inset
18595 </cell>
18596 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18597 \begin_inset Text
18598
18599 \begin_layout Plain Layout
18600 意味
18601 \end_layout
18602
18603 \end_inset
18604 </cell>
18605 </row>
18606 <row>
18607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18608 \begin_inset Text
18609
18610 \begin_layout Plain Layout
18611 4123:4168
18612 \end_layout
18613
18614 \end_inset
18615 </cell>
18616 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18617 \begin_inset Text
18618
18619 \begin_layout Plain Layout
18620 改訂版の混合した作業コピー
18621 \end_layout
18622
18623 \end_inset
18624 </cell>
18625 </row>
18626 <row>
18627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18628 \begin_inset Text
18629
18630 \begin_layout Plain Layout
18631 4168M
18632 \end_layout
18633
18634 \end_inset
18635 </cell>
18636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18637 \begin_inset Text
18638
18639 \begin_layout Plain Layout
18640 修正された作業コピー
18641 \end_layout
18642
18643 \end_inset
18644 </cell>
18645 </row>
18646 <row>
18647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18648 \begin_inset Text
18649
18650 \begin_layout Plain Layout
18651 4123S
18652 \end_layout
18653
18654 \end_inset
18655 </cell>
18656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18657 \begin_inset Text
18658
18659 \begin_layout Plain Layout
18660 スイッチされた作業コピー
18661 \end_layout
18662
18663 \end_inset
18664 </cell>
18665 </row>
18666 <row>
18667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18668 \begin_inset Text
18669
18670 \begin_layout Plain Layout
18671 4123P
18672 \end_layout
18673
18674 \end_inset
18675 </cell>
18676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18677 \begin_inset Text
18678
18679 \begin_layout Plain Layout
18680 チェックアウト頻度が低かったことによる不完全な作業コピー
18681 \end_layout
18682
18683 \end_inset
18684 </cell>
18685 </row>
18686 <row>
18687 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18688 \begin_inset Text
18689
18690 \begin_layout Plain Layout
18691 4123:4168MS
18692 \end_layout
18693
18694 \end_inset
18695 </cell>
18696 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18697 \begin_inset Text
18698
18699 \begin_layout Plain Layout
18700 改訂版が混合し、修正され、スイッチされた作業コピー
18701 \end_layout
18702
18703 \end_inset
18704 </cell>
18705 </row>
18706 </lyxtabular>
18707
18708 \end_inset
18709
18710
18711 \end_layout
18712
18713 \begin_layout Itemize
18714 ファイル改訂情報。
18715 \begin_inset Flex Code
18716 status collapsed
18717
18718 \begin_layout Plain Layout
18719 svn
18720 \begin_inset space ~
18721 \end_inset
18722
18723 info
18724 \begin_inset space ~
18725 \end_inset
18726
18727 --xml
18728 \begin_inset space ~
18729 \end_inset
18730
18731 file.lyx
18732 \end_layout
18733
18734 \end_inset
18735
18736 の出力を解析したものが返されます。サポートされるフラグは
18737 \end_layout
18738
18739 \begin_deeper
18740 \begin_layout Itemize
18741 最終コミットのバージョン番号(
18742 \begin_inset Flex Code
18743 status collapsed
18744
18745 \begin_layout Plain Layout
18746 vcs-revision
18747 \end_layout
18748
18749 \end_inset
18750
18751
18752 \end_layout
18753
18754 \begin_layout Itemize
18755 最終コミットの著者(
18756 \begin_inset Flex Code
18757 status collapsed
18758
18759 \begin_layout Plain Layout
18760 vcs-author
18761 \end_layout
18762
18763 \end_inset
18764
18765
18766 \end_layout
18767
18768 \begin_layout Itemize
18769 最終コミットの日付(
18770 \begin_inset Flex Code
18771 status collapsed
18772
18773 \begin_layout Plain Layout
18774 vcs-date
18775 \end_layout
18776
18777 \end_inset
18778
18779
18780 \end_layout
18781
18782 \begin_layout Itemize
18783 最終コミットの時間(
18784 \begin_inset Flex Code
18785 status collapsed
18786
18787 \begin_layout Plain Layout
18788 vcs-time
18789 \end_layout
18790
18791 \end_inset
18792
18793
18794 \end_layout
18795
18796 \end_deeper
18797 \begin_layout Standard
18798 これらの情報は、情報差込枠で得ることができます(例:
18799 \begin_inset Flex Code
18800 status collapsed
18801
18802 \begin_layout Plain Layout
18803 info-insert buffer vcs-date
18804 \end_layout
18805
18806 \end_inset
18807
18808 )。これらの情報は、ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
18809 \begin_inset Flex Code
18810 status collapsed
18811
18812 \begin_layout Plain Layout
18813 .svn
18814 \end_layout
18815
18816 \end_inset
18817
18818 ディレクトリがあるときのみ)利用可能です。
18819 \end_layout
18820
18821 \end_deeper
18822 \begin_layout Itemize
18823 もう一つの---ハッカー的な---方法は、SVNキーワードを使用する方法です
18824 \begin_inset Foot
18825 status collapsed
18826
18827 \begin_layout Plain Layout
18828 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
18829 \end_layout
18830
18831 \end_inset
18832
18833 。簡単に言えば、ファイルキーワード特性を設定して(例:
18834 \family sans
18835 svn propset svn:keywords 'Rev' file.lyx
18836 \family default
18837 )、文書中にキーワードTeXコード
18838 \begin_inset Foot
18839 status collapsed
18840
18841 \begin_layout Plain Layout
18842 これは、LyXがキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
18843 \end_layout
18844
18845 \end_inset
18846
18847 タグ(例:
18848 \begin_inset ERT
18849 status open
18850
18851 \begin_layout Plain Layout
18852
18853 $Rev$
18854 \end_layout
18855
18856 \end_inset
18857
18858 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
18859 \begin_inset ERT
18860 status open
18861
18862 \begin_layout Plain Layout
18863
18864 $Rev: 59 $
18865 \end_layout
18866
18867 \end_inset
18868
18869 )。このアプローチにはいくつか問題があります。第一に、TeXの世界では「$」文字は数式を表すのに使われるので、LyX中の
18870 \begin_inset Formula $Rev$
18871 \end_inset
18872
18873 という数式表現が、すべて
18874 \begin_inset Formula $Rev:59$
18875 \end_inset
18876
18877 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
18878 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
18879 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、LyXがこれを直接サポートすることは、難しそうです。
18880 \end_layout
18881
18882 \begin_layout Subsection
18883 SVNとWindows環境
18884 \end_layout
18885
18886 \begin_layout Quote
18887 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。---P.
18888  A.
18889  ルービン
18890 \end_layout
18891
18892 \begin_layout Subsubsection
18893 準備
18894 \end_layout
18895
18896 \begin_layout Standard
18897 LyXを導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クラ
18898 イアントプログラムのWindows用インストーラは
18899 \begin_inset CommandInset href
18900 LatexCommand href
18901 name "CollabNet"
18902 target "http://www.collab.net/nonav/downloads/subversion/"
18903
18904 \end_inset
18905
18906 にあります。ユーザは
18907 \begin_inset CommandInset href
18908 LatexCommand href
18909 name "TortoiseSVN"
18910 target "http://tortoisesvn.tigris.org/"
18911
18912 \end_inset
18913
18914 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。LyX外部で
18915 行う操作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、LyX自身が使用するクライアントプログラムの代わりとは成
18916 りませんので、注意してください。
18917 \end_layout
18918
18919 \begin_layout Subsubsection
18920 文書をSubversion管理下に置くには
18921 \end_layout
18922
18923 \begin_layout Standard
18924 LyX文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロ
18925 ジェクトに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下
18926 にない場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、LyXの外
18927 部で行います。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、
18928 DOSプロンプトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。
18929 レポジトリは既に存在し、新規プロジェクトを
18930 \begin_inset Flex Code
18931 status collapsed
18932
18933 \begin_layout Plain Layout
18934 C:
18935 \backslash
18936 new project
18937 \end_layout
18938
18939 \end_inset
18940
18941 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
18942 \begin_inset Flex Code
18943 status collapsed
18944
18945 \begin_layout Plain Layout
18946 svn --help
18947 \end_layout
18948
18949 \end_inset
18950
18951 を実行してください。
18952 \end_layout
18953
18954 \begin_layout Enumerate
18955 Windows Explorerで
18956 \begin_inset Flex Code
18957 status collapsed
18958
18959 \begin_layout Plain Layout
18960 C:
18961 \backslash
18962 new project
18963 \end_layout
18964
18965 \end_inset
18966
18967 を見つけ出して右クリックし、
18968 \begin_inset Flex MenuItem
18969 status collapsed
18970
18971 \begin_layout Plain Layout
18972 TortoiseSVN\SpecialChar \menuseparator
18973 Repo-browser
18974 \end_layout
18975
18976 \end_inset
18977
18978 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
18979 \end_layout
18980
18981 \begin_layout Enumerate
18982 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
18983 \begin_inset Flex MenuItem
18984 status collapsed
18985
18986 \begin_layout Plain Layout
18987 Create folder\SpecialChar \ldots{}
18988
18989 \end_layout
18990
18991 \end_inset
18992
18993 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
18994 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
18995 \end_layout
18996
18997 \begin_layout Enumerate
18998 再度
18999 \begin_inset Flex Code
19000 status collapsed
19001
19002 \begin_layout Plain Layout
19003 C:
19004 \backslash
19005 new project
19006 \end_layout
19007
19008 \end_inset
19009
19010 を右クリックし、今度は
19011 \begin_inset Flex MenuItem
19012 status collapsed
19013
19014 \begin_layout Plain Layout
19015 SVN Checkout\SpecialChar \ldots{}
19016
19017 \end_layout
19018
19019 \end_inset
19020
19021 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
19022 \begin_inset Flex Code
19023 status collapsed
19024
19025 \begin_layout Plain Layout
19026 C:
19027 \backslash
19028 new project
19029 \end_layout
19030
19031 \end_inset
19032
19033 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
19034 \begin_inset Flex Code
19035 status collapsed
19036
19037 \begin_layout Plain Layout
19038 C:
19039 \backslash
19040 new project
19041 \end_layout
19042
19043 \end_inset
19044
19045 の下に
19046 \begin_inset Flex Code
19047 status collapsed
19048
19049 \begin_layout Plain Layout
19050 .svn
19051 \end_layout
19052
19053 \end_inset
19054
19055 ディレクトリが作成されます。
19056 \end_layout
19057
19058 \begin_layout Enumerate
19059 LyXで文書を新規作成するか開くかして、
19060 \begin_inset Flex MenuItem
19061 status collapsed
19062
19063 \begin_layout Plain Layout
19064 ファイル\SpecialChar \menuseparator
19065 バージョン管理\SpecialChar \menuseparator
19066 登録
19067 \end_layout
19068
19069 \end_inset
19070
19071 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
19072 \end_layout
19073
19074 \begin_layout Standard
19075 爾後、
19076 \begin_inset Flex MenuItem
19077 status collapsed
19078
19079 \begin_layout Plain Layout
19080 ファイル\SpecialChar \menuseparator
19081 バージョン管理
19082 \end_layout
19083
19084 \end_inset
19085
19086 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
19087 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
19088 \end_layout
19089
19090 \begin_layout Subsubsection
19091 Windows下でSVNと共にSSHトンネルを使うには
19092 \end_layout
19093
19094 \begin_layout Standard
19095 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
19096 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
19097 ることを覚悟しておいてください。
19098 \end_layout
19099
19100 \begin_layout Enumerate
19101 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
19102 \begin_inset Flex Code
19103 status collapsed
19104
19105 \begin_layout Plain Layout
19106 svn --version
19107 \end_layout
19108
19109 \end_inset
19110
19111 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
19112 \end_layout
19113
19114 \begin_layout Enumerate
19115 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
19116 \begin_inset Foot
19117 status open
19118
19119 \begin_layout Plain Layout
19120 \begin_inset Flex URL
19121 status collapsed
19122
19123 \begin_layout Plain Layout
19124
19125 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
19126 \end_layout
19127
19128 \end_inset
19129
19130
19131 \end_layout
19132
19133 \end_inset
19134
19135 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
19136 護などを加えないキーのみを使用することとします。
19137 \end_layout
19138
19139 \begin_deeper
19140 \begin_layout Enumerate
19141 \begin_inset Flex Code
19142 status collapsed
19143
19144 \begin_layout Plain Layout
19145 puttygen
19146 \end_layout
19147
19148 \end_inset
19149
19150 を使ってキーを生成します。.ppkプライベートキーファイルを保存し、パブリックキーファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブ
19151 リックキーの書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized
19152 _keys file:」編集フィールドから、直接サーバの
19153 \begin_inset Flex Code
19154 status collapsed
19155
19156 \begin_layout Plain Layout
19157 ~/.ssh/authorized_keys
19158 \end_layout
19159
19160 \end_inset
19161
19162 または
19163 \begin_inset Flex Code
19164 status collapsed
19165
19166 \begin_layout Plain Layout
19167 authorized_keys2
19168 \end_layout
19169
19170 \end_inset
19171
19172 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
19173 \end_layout
19174
19175 \begin_layout Enumerate
19176 Puttyのplinkを入手してください。SVNのconfigファイル
19177 \begin_inset Foot
19178 status collapsed
19179
19180 \begin_layout Plain Layout
19181 正確なパスはWindowsのバージョンに依りますが、通常は
19182 \begin_inset Flex Code
19183 status collapsed
19184
19185 \begin_layout Plain Layout
19186 c:
19187 \backslash
19188 Documents and Settings
19189 \backslash
19190 user
19191 \backslash
19192 Application Data
19193 \backslash
19194 Subversion
19195 \backslash
19196 config
19197 \end_layout
19198
19199 \end_inset
19200
19201
19202 \begin_inset Flex Code
19203 status collapsed
19204
19205 \begin_layout Plain Layout
19206 AppData
19207 \backslash
19208 Roaming
19209 \backslash
19210 Subversion
19211 \end_layout
19212
19213 \end_inset
19214
19215 辺りにあります。
19216 \end_layout
19217
19218 \end_inset
19219
19220 中の
19221 \begin_inset Flex Code
19222 status collapsed
19223
19224 \begin_layout Plain Layout
19225 [tunnels]
19226 \end_layout
19227
19228 \end_inset
19229
19230 セクションにsshコマンドを設定してください。例:
19231 \begin_inset Flex Code
19232 status collapsed
19233
19234 \begin_layout Plain Layout
19235 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
19236 \end_layout
19237
19238 \end_inset
19239
19240
19241 \begin_inset Foot
19242 status collapsed
19243
19244 \begin_layout Plain Layout
19245 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
19246 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
19247 \end_layout
19248
19249 \end_inset
19250
19251
19252 \end_layout
19253
19254 \end_deeper
19255 \begin_layout Enumerate
19256 SVNアーカイブをチェックアウトしてください。例:
19257 \begin_inset Flex Code
19258 status collapsed
19259
19260 \begin_layout Plain Layout
19261 svn co svn+ssh://user@server/repository_path
19262 \end_layout
19263
19264 \end_inset
19265
19266
19267 \end_layout
19268
19269 \begin_layout Subsubsection
19270 行末変換
19271 \end_layout
19272
19273 \begin_layout Standard
19274 共著者同士がLinuxとWindowsを混在させているとき、LyXは.lyxファイル中で異なった行末記号を使用することになります。これは、LyXの機能に関する限り
19275 問題になりませんが、コミット差分は巨大になり、マージではコンフリクトを引き起こしがちです。幸いにして、SVNは、.lyxファイルを
19276 \begin_inset Flex Code
19277 status collapsed
19278
19279 \begin_layout Plain Layout
19280 native
19281 \end_layout
19282
19283 \end_inset
19284
19285 モードに切り替える際
19286 \begin_inset Foot
19287 status collapsed
19288
19289 \begin_layout Plain Layout
19290 手短には
19291 \begin_inset Flex Code
19292 status collapsed
19293
19294 \begin_layout Plain Layout
19295 svn propset svn:eol-style native FILE_NAME
19296 \end_layout
19297
19298 \end_inset
19299
19300
19301 \end_layout
19302
19303 \end_inset
19304
19305 、CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
19306 \begin_inset Foot
19307 status collapsed
19308
19309 \begin_layout Plain Layout
19310 \begin_inset Flex URL
19311 status collapsed
19312
19313 \begin_layout Plain Layout
19314
19315 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
19316 \end_layout
19317
19318 \end_inset
19319
19320
19321 \end_layout
19322
19323 \end_inset
19324
19325
19326 \end_layout
19327
19328 \begin_layout Subsection
19329 さらなる調整
19330 \end_layout
19331
19332 \begin_layout Standard
19333 vcコマンド機構が最近になって付け加えられたおかげで、LyXのパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
19334 \end_layout
19335
19336 \begin_layout Standard
19337 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
19338 \end_layout
19339
19340 \begin_layout Description
19341 コミット: 
19342 \begin_inset Flex Code
19343 status collapsed
19344
19345 \begin_layout Plain Layout
19346 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
19347 \end_layout
19348
19349 \end_inset
19350
19351
19352 \end_layout
19353
19354 \begin_layout Description
19355 元に戻す: 
19356 \begin_inset Flex Code
19357 status collapsed
19358
19359 \begin_layout Plain Layout
19360 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
19361 \end_layout
19362
19363 \end_inset
19364
19365
19366 \end_layout
19367
19368 \begin_layout Subsection
19369 バージョン管理と文書比較
19370 \end_layout
19371
19372 \begin_layout Standard
19373 バージョン管理は、通常
19374 \begin_inset Flex Code
19375 status collapsed
19376
19377 \begin_layout Plain Layout
19378 diff
19379 \end_layout
19380
19381 \end_inset
19382
19383 ダンプを生成することによって、改訂版の間の変更点を検査するのが、典型的な使用法です。これは平文ファイルには有効なのですが、複雑な構造を持つLyXファイルの場合に
19384 は、あまり便利ではありません。そこで、LyXは独自の文書比較機能を提供しています。この機能を呼び出すには2つの方法があります。1つは、LyXの
19385 \begin_inset Flex Code
19386 status collapsed
19387
19388 \begin_layout Plain Layout
19389 VC_COMPARE
19390 \end_layout
19391
19392 \end_inset
19393
19394 関数を直接呼び出す方法であり(詳細はLyX関数説明書を参照)、もう1つは
19395 \begin_inset Flex MenuItem
19396 status collapsed
19397
19398 \begin_layout Plain Layout
19399 旧改訂と比較\SpecialChar \ldots{}
19400
19401 \end_layout
19402
19403 \end_inset
19404
19405 メニューないしアイコンを使用する方法です。当該文書のうち、任意の2つの改訂版を比較することもできますし、編集中の現行版を古い改訂版と比較することもできます(この
19406 とき改訂版遡及数「
19407 \begin_inset Flex MenuItem
19408 status collapsed
19409
19410 \begin_layout Plain Layout
19411 0
19412 \end_layout
19413
19414 \end_inset
19415
19416 」は、編集中のファイルと最後にコミットした改訂版との比較を意味します)。
19417 \end_layout
19418
19419 \begin_layout Standard
19420 この機能は、SVNとRCSでサポートされていますが、RCSは、より複雑なバージョン付けスキームを持っているため、制約があります。ダイアログ中で改訂版を指定する際
19421 の数字は、つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」)。
19422 \end_layout
19423
19424 \begin_layout Section
19425 文芸的プログラミング
19426 \end_layout
19427
19428 \begin_layout Standard
19429
19430 \noun on
19431 Kayvan Sylvan
19432 \noun default
19433 (kayvan@sylvan.com)改訂 
19434 \noun on
19435 Edmar Wienskoski Jr.
19436 \noun default
19437 (edmar-w-jr@technologist.com)原文
19438 \end_layout
19439
19440 \begin_layout Subsection
19441 はじめに
19442 \end_layout
19443
19444 \begin_layout Standard
19445 この節の主な目的は、文芸的プログラミング(literate programming)のために、LyXをどう使えばよいかをお見せすることです。ここでは、あなたがこ
19446 のプログラミング技術をよくご存じで、「tangling」や「weaving」の意味するところを知っているものとして説明します。そうでない場合には、以下の各節にあ
19447 るウェブリンクをたどってください。そこには、かつての開発の歴史から最新のツールチップまで、たくさんの良質なドキュメンテーションがあります。
19448 \end_layout
19449
19450 \begin_layout Standard
19451 また、あなたが、LyXの設定を変更することを厭わない程度までLyXに習熟しており、Xリソースファイルにも親しんでいることを前提にしています。そうでない場合は、あ
19452 なたの必要とするトピックを扱っている、LyXの他の説明書で調べてください。
19453 \end_layout
19454
19455 \begin_layout Subsection
19456 文芸的プログラミング
19457 \end_layout
19458
19459 \begin_layout Standard
19460 以下は、文芸的プログラミング FAQからの抜粋です。
19461 \end_layout
19462
19463 \begin_layout Quotation
19464 文芸的プログラミングは、人間が読むのに適した形でのドキュメンテーションとソースの組合わせです。実際、文芸的プログラムは楽しい読み物であるべきであり、さらには参加
19465 したいとさえ思わせるべきなのです!(ボブ、ごめん。言わずにはいれなかった。)一般的に、文芸的プログラムは、ソースとドキュメンテーションを同一ファイル上に結合した
19466 ものです。そして、文芸的プログラミングツールは、ファイルを解析して、読むことのできるドキュメンテーションか、あるいはコンパイル可能なソースを生成します。文芸的プ
19467 ログラミングのWEBスタイルは、D.
19468 \begin_inset space \thinspace{}
19469 \end_inset
19470
19471 E.
19472  Knuthが、TeX組版ソフトウエアを開発中に作り出したものです。
19473 \end_layout
19474
19475 \begin_layout Standard
19476 他のエキスパートの発言です。
19477 \end_layout
19478
19479 \begin_layout Quotation
19480
19481 \emph on
19482 文芸的プログラミングは、冗長なコメント付けと何が違いますか?
19483 \end_layout
19484
19485 \begin_layout Quotation
19486 3つの際立った特徴があります。重要な順に列挙すれば、
19487 \end_layout
19488
19489 \begin_deeper
19490 \begin_layout Itemize
19491 推敲の順序が柔軟
19492 \end_layout
19493
19494 \begin_layout Itemize
19495 ブラウジングの自動サポート
19496 \end_layout
19497
19498 \begin_layout Itemize
19499 特に図式と数式を含んだドキュメンテーションの組版
19500 \end_layout
19501
19502 \end_deeper
19503 \begin_layout Quotation
19504 などがあります。
19505 \end_layout
19506
19507 \begin_layout Standard
19508 あなたの興味に火を付けたところで参考文献を見てみましょう。
19509 \end_layout
19510
19511 \begin_layout Subsubsection
19512 参考文献
19513 \end_layout
19514
19515 \begin_layout Standard
19516 完全な文芸的プログラミング FAQは
19517 \end_layout
19518
19519 \begin_layout Quote
19520 Literate Programming FAQ 
19521 \begin_inset Flex URL
19522 status collapsed
19523
19524 \begin_layout Plain Layout
19525
19526 http://shelob.ce.ttu.edu/daves/lpfaq/faq.html
19527 \end_layout
19528
19529 \end_inset
19530
19531
19532 \end_layout
19533
19534 \begin_layout Standard
19535 にあります。
19536 \end_layout
19537
19538 \begin_layout Standard
19539 このFAQには、23(二十三です!)の文芸的プログラミング用ツールが列挙されています。一部のツールは、特定のプログラミング言語用に特化したものですが、一般的な対
19540 象を持つものもあります。私は自分で使うのに、いくつかの理由から
19541 \noun on
19542 Noweb
19543 \noun default
19544 を選びました。
19545 \end_layout
19546
19547 \begin_layout Itemize
19548 ドキュメンテーションをLaTeXでもHTMLでも出力できる。
19549 \end_layout
19550
19551 \begin_layout Itemize
19552 開放的なアーキテクチャに持っているので、新しいフィルタをプラグインとして加えたり、自分が必要な特別な処理を実行することが容易である。
19553 \end_layout
19554
19555 \begin_layout Itemize
19556 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです)。
19557 \end_layout
19558
19559 \begin_layout Itemize
19560 無料である。
19561 \end_layout
19562
19563 \begin_layout Standard
19564 Nowebのウェブページは
19565 \end_layout
19566
19567 \begin_layout Quote
19568 Nowebホームページ 
19569 \begin_inset Flex URL
19570 status collapsed
19571
19572 \begin_layout Plain Layout
19573
19574 http://www.cs.virginia.edu/~nr/noweb/
19575 \end_layout
19576
19577 \end_inset
19578
19579
19580 \end_layout
19581
19582 \begin_layout Standard
19583 にあります。ここから始めれば、たくさんの興味深いリンクや、文芸的プログラミングの用例にたどり着くことができます。
19584 \end_layout
19585
19586 \begin_layout Subsection
19587 LyXと文芸的プログラミング
19588 \end_layout
19589
19590 \begin_layout Standard
19591 LyXにおける文芸的プログラミングのサポートは、LyXの汎用変換機構を使用して実現しています。このサポートは「Noweb非依存」的な方法で提供されているので、L
19592 yXの設定を変更するだけで、自分の好きな他の文芸的プログラミングツールを使って、この新しいLyXの機能を利用することができます。
19593 \end_layout
19594
19595 \begin_layout Subsubsection
19596 ドキュメントとコードの生成(weavingおよびtangling)
19597 \end_layout
19598
19599 \begin_layout Paragraph
19600 文書クラスの選択
19601 \end_layout
19602
19603 \begin_layout Standard
19604 NowebとLyXの導入に成功すると、新規文書を開いたり、既存文書の文書クラスを変更しようとする際、以下の3つの新しい文書クラスが利用可能になっているはずです。
19605 \end_layout
19606
19607 \begin_layout Itemize
19608 Article (Noweb)
19609 \end_layout
19610
19611 \begin_layout Itemize
19612 Book (Noweb)
19613 \end_layout
19614
19615 \begin_layout Itemize
19616 Report (Noweb)
19617 \end_layout
19618
19619 \begin_layout Standard
19620 文芸的プログラミング文書を作成する場合には、これらのうち一つを選んでください。
19621 \end_layout
19622
19623 \begin_layout Standard
19624 文芸的プログラミング文書は、これら3つのクラスに限定されないことに注意してください。letterのような他のスタイルから新しいクラスを作成することもできますし、
19625 Article (AMS)のような他のクラスバリエーションと組み合わせて作成することもできます。既存のクラスではカバーできないような、特別なニーズがある場合には
19626 、LyX開発者用メーリングリスト(lyx-devel@lists.lyx.org)に連絡していただければ、新しい項目を加えるように調整するか、そのしかたをお教えしま
19627
19628 \begin_inset Foot
19629 status collapsed
19630
19631 \begin_layout Plain Layout
19632 これは非常に簡単です。これを行うには、4行から成るファイルを作成し、自動設定を実行するだけなのです。
19633 \end_layout
19634
19635 \end_inset
19636
19637 。また、Noweb以外の文芸的プログラミングツールを使用する場合にも、そのための新しい文書クラスをつくる必要があります。
19638 \end_layout
19639
19640 \begin_layout Paragraph
19641 コードの入力
19642 \end_layout
19643
19644 \begin_layout Standard
19645 LyXでは、
19646 \noun on
19647 Scrap
19648 \noun default
19649
19650 \begin_inset Foot
19651 status collapsed
19652
19653 \begin_layout Plain Layout
19654 Nowebでの名称は「Chunk」です。歴史的な理由から、別の文芸プログラミングツールNuwebで使われている「scrap」という用語を使用しています。Nuwe
19655 bは、私がNowebに乗り換える前に長年使用していたツールです。
19656 \end_layout
19657
19658 \end_inset
19659
19660 という名前のレイアウトを使えば、コードを入力することができます。Nowebは次のようにscrapを区切ります。
19661 \end_layout
19662
19663 \begin_layout LyX-Code
19664 <<My scrap>>=
19665 \end_layout
19666
19667 \begin_layout LyX-Code
19668   code
19669 \end_layout
19670
19671 \begin_layout LyX-Code
19672   more code
19673 \end_layout
19674
19675 \begin_layout LyX-Code
19676   even more code
19677 \end_layout
19678
19679 \begin_layout LyX-Code
19680   @
19681 \end_layout
19682
19683 \begin_layout Standard
19684 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまりLyXはこの間に書かれたものへのどんな変更も禁止しなくてははなりません。こ
19685 れはScrapと呼ぶ特別なレイアウトで扱われます。この環境は通常の段落のようですが、自由に空白を入れることができます。
19686 \end_layout
19687
19688 \begin_layout Standard
19689 Scrap段落環境の欠点は、連続したコードの段落の間に空行がソースコードにも印刷したドキュメントにも入ることです。これを回避するためには、Scrap環境の中の改
19690 行には(ctrl-return)を使ってください。上の例では次のようにします
19691 \begin_inset Foot
19692 status collapsed
19693
19694 \begin_layout Plain Layout
19695 印刷したバージョンを読んでいる場合にはこの例と上の例の違いが分かりません。
19696 \end_layout
19697
19698 \end_inset
19699
19700
19701 \end_layout
19702
19703 \begin_layout LyX-Code
19704 <<My scrap>>=
19705 \begin_inset Newline newline
19706 \end_inset
19707
19708   code
19709 \begin_inset Newline newline
19710 \end_inset
19711
19712   more code
19713 \begin_inset Newline newline
19714 \end_inset
19715
19716   even more code
19717 \begin_inset Newline newline
19718 \end_inset
19719
19720   @
19721 \end_layout
19722
19723 \begin_layout Standard
19724 この環境はうまく働きます。不便な点は普通のリターンのかわりにctrl-returnを使わなければならないことです
19725 \begin_inset Foot
19726 status collapsed
19727
19728 \begin_layout Plain Layout
19729 これは改善しなければならない点でしょう。
19730 \end_layout
19731
19732 \end_inset
19733
19734
19735 \end_layout
19736
19737 \begin_layout Standard
19738 また、Scrapの中にNowebの%defを使うことができます。これを使うことでNowebのidentifierの相互参照に項目を加えることができます。次の例を
19739 見てください。
19740 \end_layout
19741
19742 \begin_layout LyX-Code
19743 <<My scrap>>=
19744 \begin_inset Newline newline
19745 \end_inset
19746
19747   def some_function(args):
19748 \begin_inset Newline newline
19749 \end_inset
19750
19751     "This is the doc string for this function."
19752 \begin_inset Newline newline
19753 \end_inset
19754
19755     print "My args: ", args
19756 \end_layout
19757
19758 \begin_layout LyX-Code
19759 @ %def some_function
19760 \end_layout
19761
19762 \begin_layout Standard
19763 これをどのように使って、その結果相互参照がどうなるかは
19764 \emph on
19765 LIBDIR/examples/listerrors.lyx
19766 \emph default
19767 の中の文芸pythonプログラムを見るとよくわかります。
19768 \end_layout
19769
19770 \begin_layout Paragraph
19771 ドキュメンテーションの生成
19772 \end_layout
19773
19774 \begin_layout Standard
19775 新しい文章ファイルを正しい文書クラスでつくり、その中にコードとテキストも入れました。これをどうやって印刷したらいいのでしょう。簡単です。
19776 \begin_inset Flex MenuItem
19777 status collapsed
19778
19779 \begin_layout Plain Layout
19780 表示\SpecialChar \menuseparator
19781 DVI
19782 \end_layout
19783
19784 \end_inset
19785
19786 等を選ぶだけです。普通の文章の場合と同じで、特別なことは必要ありません。
19787 \end_layout
19788
19789 \begin_layout Standard
19790 LyXの内部で何が起っているかを説明しておきましょう。
19791 \end_layout
19792
19793 \begin_layout Enumerate
19794 \begin_inset Flex MenuItem
19795 status collapsed
19796
19797 \begin_layout Plain Layout
19798 表示\SpecialChar \menuseparator
19799 DVI
19800 \end_layout
19801
19802 \end_inset
19803
19804 が選ばれると、LaTeXファイルがつくられます。
19805 \end_layout
19806
19807 \begin_deeper
19808 \begin_layout Standard
19809 ドキュメントが文芸プログラミング用のクラスであった場合には、拡張子に(
19810 \begin_inset Flex MenuItem
19811 status collapsed
19812
19813 \begin_layout Plain Layout
19814 設定
19815 \end_layout
19816
19817 \end_inset
19818
19819 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
19820 \end_layout
19821
19822 \end_deeper
19823 \begin_layout Enumerate
19824 違いがファイル名だけなのに注意してください。LyXによる特別な処理は必要ありません。Scrap環境でコードを入力するのだけがポイントです。
19825 \end_layout
19826
19827 \begin_layout Enumerate
19828 ドキュメントが文芸プログラムクラスなら、LyXは内部のLyXからNowebのコンバータを使い、それからNowebからLaTeXのコンバータ
19829 \begin_inset Foot
19830 status collapsed
19831
19832 \begin_layout Plain Layout
19833 これらのコンバータは、
19834 \family sans
19835 \bar under
19836 E
19837 \bar default
19838 dit\SpecialChar \menuseparator
19839
19840 \bar under
19841 P
19842 \bar default
19843 references
19844 \family default
19845  パネルの Conversion タブで設定できます。
19846 \end_layout
19847
19848 \end_inset
19849
19850 を使ってLaTeXファイルを生成します。
19851 \end_layout
19852
19853 \begin_deeper
19854 \begin_layout Standard
19855 それ以外の場合はこのステップを飛ばします。
19856 \end_layout
19857
19858 \end_deeper
19859 \begin_layout Enumerate
19860 最後にLaTeXが実行され、普通の文章と同じ後処理が行われます。
19861 \end_layout
19862
19863 \begin_layout Standard
19864 様々なコンバータから走らせるコマンドを変えることによって、特定の文芸プログラム用のソフトウエアにしばられないようになっています。
19865 \end_layout
19866
19867 \begin_layout Paragraph
19868 コードの生成
19869 \end_layout
19870
19871 \begin_layout Standard
19872 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様にLaTeXファイルが生成されます。それからLyXは
19873 \family typewriter
19874 Noweb->Program
19875 \family default
19876 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
19877 \end_layout
19878
19879 \begin_layout Enumerate
19880 コンバータプログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマ
19881 ットへ変換します)。
19882 \end_layout
19883
19884 \begin_layout Enumerate
19885 エラーログパーサー。これはエラーメッセージをLyXが理解できる形へ書き直します。これによって、LyXはファイルバッファの正しい位置へエラーボックスを配置すること
19886 ができます。
19887 \end_layout
19888
19889 \begin_layout Standard
19890 はじめのパートのために、「変換子」設定で、
19891 \begin_inset Quotes eld
19892 \end_inset
19893
19894
19895 \family typewriter
19896 build-script$$i
19897 \family default
19898
19899 \begin_inset Quotes erd
19900 \end_inset
19901
19902 と指定します。これは基本的に、LyXが
19903 \family typewriter
19904 build-script
19905 \family default
19906 (プログラムかスクリプト名)を(一般にはLyXの一時ファイル用のディレクトリにつくられる)Nowebファイルの名前とともに起動することを意味しています。
19907 \end_layout
19908
19909 \begin_layout Standard
19910 以下にbuild-scriptの一例を書いておきます。パスが通っているディレクトリに置いて使います。
19911 \end_layout
19912
19913 \begin_layout LyX-Code
19914 #!/bin/sh
19915 \end_layout
19916
19917 \begin_layout LyX-Code
19918 #
19919 \end_layout
19920
19921 \begin_layout LyX-Code
19922 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh
19923 \end_layout
19924
19925 \begin_layout Standard
19926 コンバータの設定の次の部分はFlagsです。これを
19927 \begin_inset Quotes eld
19928 \end_inset
19929
19930
19931 \family typewriter
19932 originaldir,parselog=listerrors
19933 \family default
19934
19935 \begin_inset Quotes erd
19936 \end_inset
19937
19938 と指定してください。これで、
19939 \family typewriter
19940 build-script
19941 \family default
19942 が出すすべてのエラーをlisterrorsプログラムに渡します。
19943 \end_layout
19944
19945 \begin_layout Standard
19946 コンバータコードがlisterrorsプログラムを探す順序は、はじめに
19947 \emph on
19948 MYLYXDIR/scripts
19949 \emph default
19950 、次に
19951 \emph on
19952 LIBDIR/scripts
19953 \emph default
19954 、最後にパスです。
19955 \end_layout
19956
19957 \begin_layout Paragraph
19958 文章中でのプログラムの構築操作の説明
19959 \end_layout
19960
19961 \begin_layout Standard
19962 LyXとNowebの統合の最後の部分は、
19963 \begin_inset Quotes eld
19964 \end_inset
19965
19966 build-script
19967 \begin_inset Quotes erd
19968 \end_inset
19969
19970  scrapです。一般に、あなたのプログラムの構築操作の説明それ自身をscrapに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
19971 iptでは、scrapを見つけるのにnotangleコマンドを使い、shを使って起動します。
19972 \end_layout
19973
19974 \begin_layout Standard
19975 以下に典型的なscrapがどのようなものかを書いておきます。
19976 \end_layout
19977
19978 \begin_layout LyX-Code
19979 <<build-script>>=
19980 \begin_inset Newline newline
19981 \end_inset
19982
19983 #!/bin/sh
19984 \begin_inset Newline newline
19985 \end_inset
19986
19987
19988 \begin_inset Newline newline
19989 \end_inset
19990
19991 if [ -z "${NOWEB_SOURCE}" ]
19992 \begin_inset Newline newline
19993 \end_inset
19994
19995 then
19996 \begin_inset Newline newline
19997 \end_inset
19998
19999   NOWEB_SOURCE=myfile.nw
20000 \begin_inset Newline newline
20001 \end_inset
20002
20003 fi
20004 \begin_inset Newline newline
20005 \end_inset
20006
20007 [...
20008  code to extract files ...]
20009 \begin_inset Newline newline
20010 \end_inset
20011
20012 [...
20013  code to compile files ...]
20014 \begin_inset Newline newline
20015 \end_inset
20016
20017 @
20018 \end_layout
20019
20020 \begin_layout Standard
20021
20022 \emph on
20023 LIBDIR/examples/listerrors.lyx
20024 \emph default
20025
20026 \emph on
20027 LIBDIR/examples/Literate.lyx
20028 \emph default
20029 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
20030 ってもらうための例です。また、
20031 \emph on
20032 LIBDIR/examples/noweb2lyx.lyx
20033 \emph default
20034 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、LyXの文芸プログラミングのサポートがプログラム言語に依存
20035 しないことを示しています。
20036 \end_layout
20037
20038 \begin_layout Subsubsection
20039 LyXの設定
20040 \end_layout
20041
20042 \begin_layout Standard
20043 すべての文芸プログラムのための設定は、
20044 \begin_inset Flex MenuItem
20045 status collapsed
20046
20047 \begin_layout Plain Layout
20048 ツール\SpecialChar \menuseparator
20049 設定
20050 \end_layout
20051
20052 \end_inset
20053
20054 パネルの「変換子」タブですることができます。重要な部分を見ておきましょう。
20055 \end_layout
20056
20057 \begin_layout Description
20058 the
20059 \begin_inset space ~
20060 \end_inset
20061
20062
20063 \begin_inset Quotes eld
20064 \end_inset
20065
20066 literate
20067 \begin_inset Quotes erd
20068 \end_inset
20069
20070
20071 \begin_inset space ~
20072 \end_inset
20073
20074 format 書式タブで設定します。ここで、Noweb特有の設定を行います。
20075 \family sans
20076 GUI名
20077 \family default
20078
20079 \family typewriter
20080 NoWeb
20081 \family default
20082 に、拡張子を
20083 \family typewriter
20084 .nw
20085 \family default
20086 に設定してください。これによって、LyXに変換プロセスの第一段階でつくられるファイルに
20087 \family typewriter
20088 .nw
20089 \family default
20090 という拡張子をつけることを指示します。
20091 \end_layout
20092
20093 \begin_layout Description
20094 the
20095 \begin_inset space ~
20096 \end_inset
20097
20098
20099 \family sans
20100 Program
20101 \family default
20102
20103 \begin_inset space ~
20104 \end_inset
20105
20106 format これは空にしてください。この項目のただひとつの目的は変換の最終的なフォーマットを指定することです(これが設定されていると、このフォーマットからの変
20107 換を行えます)。
20108 \end_layout
20109
20110 \begin_layout Description
20111
20112 \family sans
20113 NoWeb
20114 \family default
20115 ->
20116 \family sans
20117 LaTeX
20118 \family default
20119  このコンバータは、weavingの段階を行います。Nowebの場合は、
20120 \begin_inset Quotes eld
20121 \end_inset
20122
20123
20124 \family typewriter
20125 noweave -delay -index $$i > $$o
20126 \family default
20127
20128 \begin_inset Quotes erd
20129 \end_inset
20130
20131 に設定してください。
20132 \end_layout
20133
20134 \begin_layout Description
20135
20136 \family sans
20137 NoWeb
20138 \family default
20139 ->
20140 \family sans
20141 Program
20142 \family default
20143  これは、tanglingを行います。以前に説明したように、
20144 \family typewriter
20145 build-script $$i
20146 \family default
20147  と設定して、Flagsに 
20148 \begin_inset Quotes eld
20149 \end_inset
20150
20151
20152 \family typewriter
20153 originaldir,parselog=listerrors
20154 \family default
20155
20156 \begin_inset Quotes erd
20157 \end_inset
20158
20159  を入れてください。
20160 \end_layout
20161
20162 \begin_layout Subsubsection
20163 デバッグ機能の拡張
20164 \end_layout
20165
20166 \begin_layout Standard
20167 ddd/gdbまたは他のデバッガで使えるserver-goto-file-rowという関数が新たにLyXサーバに実装されました。
20168 \end_layout
20169
20170 \begin_layout Standard
20171 ddd/gdbでデバッグしているとき、一つのキーストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-V
20172 になっています。この設定はdddで
20173 \begin_inset Flex MenuItem
20174 status collapsed
20175
20176 \begin_layout Plain Layout
20177 ツール\SpecialChar \menuseparator
20178 設定\SpecialChar \menuseparator
20179 ファイル書式
20180 \end_layout
20181
20182 \end_inset
20183
20184 ウインドウを表示して、
20185 \begin_inset Flex MenuItem
20186 status collapsed
20187
20188 \begin_layout Plain Layout
20189 編集プログラム
20190 \end_layout
20191
20192 \end_inset
20193
20194 エントリを変えると変えることができます。
20195 \end_layout
20196
20197 \begin_layout Standard
20198 新しいLyXサーバの関数と、このdddの機能を使うために
20199 \begin_inset Flex MenuItem
20200 status collapsed
20201
20202 \begin_layout Plain Layout
20203 編集プログラム
20204 \end_layout
20205
20206 \end_inset
20207
20208 を次のように設定してください。
20209 \end_layout
20210
20211 \begin_layout LyX-Code
20212 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
20213 \end_layout
20214
20215 \begin_layout Standard
20216 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddはLyXサーバに情報を
20217 送り、LyXは同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります
20218
20219 \end_layout
20220
20221 \begin_layout Standard
20222 この機能が動くにはLyXサーバが利用可能でなければなりません(既定ではLyXサーバーは使えないようになっています)。LyXサーバを使えるようにするには、
20223 \family sans
20224
20225 \begin_inset Flex MenuItem
20226 status collapsed
20227
20228 \begin_layout Plain Layout
20229
20230 \family sans
20231 設定
20232 \end_layout
20233
20234 \end_inset
20235
20236
20237 \family default
20238
20239 \family sans
20240
20241 \begin_inset Flex MenuItem
20242 status collapsed
20243
20244 \begin_layout Plain Layout
20245
20246 \family sans
20247 パス
20248 \end_layout
20249
20250 \end_inset
20251
20252
20253 \family default
20254 タブ)の
20255 \family sans
20256
20257 \begin_inset Flex MenuItem
20258 status collapsed
20259
20260 \begin_layout Plain Layout
20261
20262 \family sans
20263 LyXサーバーパイプ
20264 \family default
20265
20266 \end_layout
20267
20268 \end_inset
20269
20270
20271 \family default
20272
20273 \begin_inset Quotes eld
20274 \end_inset
20275
20276
20277 \family typewriter
20278 /home/<your-home-directory>/.lyx/lyxpipe
20279 \family default
20280
20281 \begin_inset Quotes erd
20282 \end_inset
20283
20284  のようにパスを指定してください。
20285 \end_layout
20286
20287 \begin_layout Standard
20288 詳しくは『
20289 \emph on
20290 取扱説明書カスタマイズ篇
20291 \emph default
20292 』のLyXサーバの説明を読んでください。
20293 \end_layout
20294
20295 \begin_layout Subsubsection
20296 ツールバーの拡張
20297 \end_layout
20298
20299 \begin_layout Standard
20300 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
20301 \family sans
20302 Standard
20303 \family default
20304
20305 \family sans
20306 Section
20307 \family default
20308
20309 \family sans
20310 LaTeX
20311 \family default
20312
20313 \family sans
20314 LyX-Code
20315 \family default
20316
20317 \family sans
20318 Scrap
20319 \family default
20320 環境用のボタンを用意しています。最後の一つはファイルメニューの Build Programエントリへのショートカットです。
20321 \end_layout
20322
20323 \begin_layout Standard
20324 LyXはツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
20325 \begin_inset Flex MenuItem
20326 status collapsed
20327
20328 \begin_layout Plain Layout
20329 表示\SpecialChar \menuseparator
20330 更新\SpecialChar \menuseparator
20331 DVI
20332 \end_layout
20333
20334 \end_inset
20335
20336
20337 \begin_inset Flex MenuItem
20338 status collapsed
20339
20340 \begin_layout Plain Layout
20341 表示\SpecialChar \menuseparator
20342 DVI
20343 \end_layout
20344
20345 \end_inset
20346
20347 を組み合わせたものになっています。
20348 \end_layout
20349
20350 \begin_layout LyX-Code
20351 Toolbar
20352 \end_layout
20353
20354 \begin_layout LyX-Code
20355   Layouts
20356 \end_layout
20357
20358 \begin_layout LyX-Code
20359   Icon "layout Standard"
20360 \end_layout
20361
20362 \begin_layout LyX-Code
20363   Icon "layout Section"
20364 \end_layout
20365
20366 \begin_layout LyX-Code
20367   Icon "layout LaTeX"
20368 \end_layout
20369
20370 \begin_layout LyX-Code
20371   Icon "layout LyX-Code"
20372 \end_layout
20373
20374 \begin_layout LyX-Code
20375   Icon "layout Scrap"
20376 \end_layout
20377
20378 \begin_layout LyX-Code
20379   Separator
20380 \end_layout
20381
20382 \begin_layout LyX-Code
20383   Icon "buffer-view"
20384 \end_layout
20385
20386 \begin_layout LyX-Code
20387   Icon "buffer-typeset"
20388 \end_layout
20389
20390 \begin_layout LyX-Code
20391   Icon "build-program"
20392 \end_layout
20393
20394 \begin_layout LyX-Code
20395   Separator
20396 \end_layout
20397
20398 \begin_layout LyX-Code
20399 .
20400 \end_layout
20401
20402 \begin_layout LyX-Code
20403 .
20404 \end_layout
20405
20406 \begin_layout LyX-Code
20407 .
20408 \end_layout
20409
20410 \begin_layout LyX-Code
20411 End
20412 \end_layout
20413
20414 \begin_layout Subsubsection
20415 色を変える
20416 \end_layout
20417
20418 \begin_layout Standard
20419 LyXではいくつもの色を
20420 \begin_inset Flex MenuItem
20421 status collapsed
20422
20423 \begin_layout Plain Layout
20424 設定
20425 \end_layout
20426
20427 \end_inset
20428
20429 で変えることができます。まず変えたいと思うのはLaTeXフォントカラーでしょう。既定では赤になっていますが、ScrapはLaTeXフォントを使い、文芸的プログラ
20430 ミングでは多くのScrapがあるためにそれらがすべて赤では疲れてしまいます。
20431 \begin_inset Flex MenuItem
20432 status collapsed
20433
20434 \begin_layout Plain Layout
20435 操作性\SpecialChar \menuseparator
20436
20437 \end_layout
20438
20439 \end_inset
20440
20441 タブでこの色を変えることができます。
20442 \end_layout
20443
20444 \begin_layout Standard
20445 次にすることは画面の改行文字を見えなくすることです。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少し違
20446 う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
20447 \end_layout
20448
20449 \begin_layout Chapter
20450
20451 \lang english
20452 Special features
20453 \lang japanese
20454
20455 \begin_inset CommandInset label
20456 LatexCommand label
20457 name "chap:Special-features"
20458
20459 \end_inset
20460
20461
20462 \end_layout
20463
20464 \begin_layout Standard
20465
20466 \lang english
20467 You can do everything with LyX that you can do with LaTeX.
20468  However, LyX cannot support every LaTeX feature directly.
20469  But you can always use TeX Code.
20470  This chapter shows you some more special things you might want to use.
20471  For other special things you can do with figures, tables, floats, boxes
20472  and notes, have a look at the 
20473 \emph on
20474 EmbeddedObjects
20475 \emph default
20476  manual.
20477 \end_layout
20478
20479 \begin_layout Section
20480
20481 \lang english
20482 Multiple Text Columns
20483 \end_layout
20484
20485 \begin_layout Standard
20486
20487 \lang english
20488 This feature is independent of the option 
20489 \family sans
20490 Two-column document
20491 \family default
20492  in the document settings under 
20493 \family sans
20494 Text Layout
20495 \family default
20496 .
20497  If you want to have 2
20498 \begin_inset space ~
20499 \end_inset
20500
20501 columns for the whole document, it is recommended to use the 
20502 \family sans
20503 Two-column document
20504 \family default
20505  option.
20506  For all other cases use this feature.
20507 \end_layout
20508
20509 \begin_layout Standard
20510
20511 \lang english
20512 To use multiple text columns in your document, you have to load the module
20513  
20514 \family sans
20515 Multiple Columns
20516 \family default
20517  (menu 
20518 \family sans
20519 Document\SpecialChar \menuseparator
20520 Settings\SpecialChar \menuseparator
20521 Modules
20522 \family default
20523 ) and must have the LaTeX-package 
20524 \series bold
20525 multicol
20526 \series default
20527
20528 \begin_inset Index idx
20529 status collapsed
20530
20531 \begin_layout Plain Layout
20532
20533 \lang english
20534 LaTeX-packages ! multicol
20535 \end_layout
20536
20537 \end_inset
20538
20539  installed.
20540 \end_layout
20541
20542 \begin_layout Standard
20543
20544 \lang english
20545 Footnotes within multiple columns will be placed at the bottom of the page
20546  and not under each column.
20547  Within the different columns you can use everything, with the limitation
20548  that for floats you need to use the float option 
20549 \family sans
20550 Span columns
20551 \family default
20552 .
20553 \end_layout
20554
20555 \begin_layout Subsection
20556
20557 \lang english
20558 Basics
20559 \end_layout
20560
20561 \begin_layout Standard
20562
20563 \lang english
20564 If you want to have 2 columns in your text, use the style 
20565 \family sans
20566 Begin Multiple Columns
20567 \family default
20568  where the columns should start.
20569  The content of the style is the number of the columns, so in this case
20570  use a 
20571 \begin_inset Quotes eld
20572 \end_inset
20573
20574 2
20575 \begin_inset Quotes erd
20576 \end_inset
20577
20578 .
20579  At the point where the columns should end use the style 
20580 \family sans
20581 End Multiple Columns
20582 \family default
20583  and keep it empty.
20584 \end_layout
20585
20586 \begin_layout Standard
20587
20588 \lang english
20589 Here is an example:
20590 \end_layout
20591
20592 \begin_layout Begin Multiple Columns
20593
20594 \lang english
20595 2
20596 \end_layout
20597
20598 \begin_layout Standard
20599 \noindent
20600
20601 \series bold
20602 \size small
20603 \lang english
20604 The Adventure of the Empty House
20605 \series default
20606
20607 \begin_inset Newline newline
20608 \end_inset
20609
20610 by 
20611 \noun on
20612 Sir Arthur Conan Doyle
20613 \end_layout
20614
20615 \begin_layout Standard
20616
20617 \size small
20618 \lang english
20619 It was in the spring of the year 1894 that all London was interested, and
20620  the fashionable world dismayed, by the murder of the Honourable Ronald
20621  Adair under most unusual and inexplicable circumstances.
20622  The public has already learned those particulars of the crime which came
20623  out in the police investigation, but a good deal was suppressed upon that
20624  occasion, since the case for the prosecution was so overwhelmingly strong
20625  that it was not necessary to bring forward all the facts.
20626  Only now, at the end of nearly ten years, am I allowed to supply those
20627  missing links which make up the whole of that remarkable chain.
20628  The crime was of interest in itself, but that interest was as nothing to
20629  me compared to the inconceivable sequel, which afforded me the greatest
20630  shock and surprise of any event in my adventurous life.
20631  Even now, after this long interval, I find myself thrilling as I think
20632  of it, and feeling once more that sudden flood of joy, amazement, and increduli
20633 ty which utterly submerged my mind.
20634  Let me say to that public, which has shown some interest in those glimpses
20635  which I have occasionally given them of the thoughts and actions of a very
20636  remarkable man, that they are not to blame me if I have not shared my knowledge
20637  with them, for I should have considered it my first duty to do so, had
20638  I not been barred by a positive prohibition from his own lips, which was
20639  only withdrawn upon the third of last month.
20640 \end_layout
20641
20642 \begin_layout End Multiple Columns
20643
20644 \end_layout
20645
20646 \begin_layout Standard
20647
20648 \lang english
20649 Here is an example with 3
20650 \begin_inset space ~
20651 \end_inset
20652
20653 columns:
20654 \end_layout
20655
20656 \begin_layout Begin Multiple Columns
20657
20658 \lang english
20659 3
20660 \end_layout
20661
20662 \begin_layout Standard
20663
20664 \size footnotesize
20665 \lang english
20666 It can be imagined that my close intimacy with Sherlock Holmes had interested
20667  me deeply in crime, and that after his disappearance I never failed to
20668  read with care the various problems which came before the public.
20669  And I even attempted, more than once, for my own private satisfaction,
20670  to employ his methods in their solution, though with indifferent success.
20671  There was none, however, which appealed to me like this tragedy of Ronald
20672  Adair.
20673  As I read the evidence at the inquest, which led up to a verdict of willful
20674  murder against some person or persons unknown, I realized more clearly
20675  than I had ever done the loss which the community had sustained by the
20676  death of Sherlock Holmes.
20677  There were points about this strange business which would, I was sure,
20678  have specially appealed to him, and the efforts of the police would have
20679  been supplemented, or more probably anticipated, by the trained observation
20680  and the alert mind of the first criminal agent in Europe.
20681  All day, as I drove upon my round, I turned over the case in my mind and
20682  found no explanation which appeared to me to be adequate.
20683  At the risk of telling a twice-told tale, I will recapitulate the facts
20684  as they were known to the public at the conclusion of the inquest.
20685 \end_layout
20686
20687 \begin_layout End Multiple Columns
20688
20689 \end_layout
20690
20691 \begin_layout Standard
20692
20693 \lang english
20694 You can have up to 10
20695 \begin_inset space ~
20696 \end_inset
20697
20698 columns if you want to, but that might not be very pleasant for the readers
20699  of your document.
20700 \end_layout
20701
20702 \begin_layout Standard
20703
20704 \lang english
20705 \begin_inset Newpage newpage
20706 \end_inset
20707
20708
20709 \end_layout
20710
20711 \begin_layout Subsection
20712
20713 \lang english
20714 Columns inside Columns
20715 \end_layout
20716
20717 \begin_layout Standard
20718
20719 \lang english
20720 You can also have columns inside columns:
20721 \end_layout
20722
20723 \begin_layout Begin Multiple Columns
20724
20725 \lang english
20726 2
20727 \end_layout
20728
20729 \begin_layout Standard
20730
20731 \size footnotesize
20732 \lang english
20733 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
20734  at that time governor of one of the Australian colonies.
20735  Adair's mother had returned from Australia to undergo the operation for
20736  cataract, and she, her son Ronald, and her daughter Hilda were living together
20737  at 427 Park Lane.
20738 \end_layout
20739
20740 \begin_layout Begin Multiple Columns
20741
20742 \lang english
20743 2
20744 \end_layout
20745
20746 \begin_layout Standard
20747
20748 \size footnotesize
20749 \lang english
20750 The youth moved in the best society–had, so far as was known, no enemies
20751  and no particular vices.
20752  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
20753  had been broken off by mutual consent some months before, and there was
20754  no sign that it had left any very profound feeling behind it.
20755  For the rest {sic} the man's life moved in a narrow and conventional circle,
20756  for his habits were quiet and his nature unemotional.
20757  Yet it was upon this easy-going young aristocrat that death came, in most
20758  strange and unexpected form, between the hours of ten and eleven-twenty
20759  on the night of March 30, 1894.
20760 \end_layout
20761
20762 \begin_layout End Multiple Columns
20763
20764 \end_layout
20765
20766 \begin_layout Standard
20767
20768 \size footnotesize
20769 \lang english
20770 Ronald Adair was fond of cards–playing continually, but never for such stakes
20771  as would hurt him.
20772  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
20773  It was shown that, after dinner on the day of his death, he had played
20774  a rubber of whist at the latter club.
20775  He had also played there in the afternoon.
20776
20777 \size default
20778  
20779 \size footnotesize
20780 The evidence of those who had played with him– Mr.
20781  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
20782  and that there was a fairly equal fall of the cards.
20783  Adair might have lost five pounds, but not more.
20784  His fortune was a considerable one, and such a loss could not in any way
20785  affect him.
20786  He had played nearly every day at one club or other, but he was a cautious
20787  player, and usually rose a winner.
20788  It came out in evidence that, in partnership with Colonel Moran, he had
20789  actually won as much as four hundred and twenty pounds in a sitting, some
20790  weeks before, from Godfrey Milner and Lord Balmoral.
20791  So much for his recent history as it came out at the inquest.
20792 \end_layout
20793
20794 \begin_layout End Multiple Columns
20795
20796 \end_layout
20797
20798 \begin_layout Subsection
20799
20800 \lang english
20801 Advanced Examples
20802 \end_layout
20803
20804 \begin_layout Standard
20805
20806 \lang english
20807 The examples in this section show some more special features of multiple
20808  columns.
20809 \end_layout
20810
20811 \begin_layout Standard
20812
20813 \lang english
20814 For more features of multiple columns, have a look at the documentation
20815  of the LaTeX-package 
20816 \series bold
20817 multicol
20818 \series default
20819
20820 \begin_inset Index idx
20821 status collapsed
20822
20823 \begin_layout Plain Layout
20824
20825 \lang english
20826 LaTeX-packages ! multicol
20827 \end_layout
20828
20829 \end_inset
20830
20831
20832 \lang japanese
20833
20834 \begin_inset CommandInset citation
20835 LatexCommand cite
20836 key "multicol"
20837
20838 \end_inset
20839
20840 .
20841 \end_layout
20842
20843 \begin_layout Subsubsection
20844
20845 \lang english
20846 Preface
20847 \end_layout
20848
20849 \begin_layout Standard
20850
20851 \lang english
20852 To add a preface text for multiple columns, add the command
20853 \end_layout
20854
20855 \begin_layout Standard
20856
20857 \series bold
20858 \lang english
20859 }[
20860 \end_layout
20861
20862 \begin_layout Standard
20863
20864 \lang english
20865 as TeX Code behind the number of columns in the
20866 \family sans
20867  Begin Multiple Columns
20868 \family default
20869  style.
20870  behind the command write the text.
20871  At the end of the style use the command
20872 \end_layout
20873
20874 \begin_layout Standard
20875
20876 \series bold
20877 \lang english
20878 ]{
20879 \end_layout
20880
20881 \begin_layout Standard
20882
20883 \lang english
20884 as TeX Code.
20885  An example with some preface text:
20886 \end_layout
20887
20888 \begin_layout Standard
20889
20890 \lang english
20891 \begin_inset VSpace bigskip
20892 \end_inset
20893
20894
20895 \end_layout
20896
20897 \begin_layout Begin Multiple Columns
20898
20899 \lang english
20900 2
20901 \begin_inset ERT
20902 status collapsed
20903
20904 \begin_layout Plain Layout
20905
20906 }[
20907 \end_layout
20908
20909 \end_inset
20910
20911 And the story continues and continues and continues and continues\SpecialChar \ldots{}
20912
20913 \begin_inset ERT
20914 status collapsed
20915
20916 \begin_layout Plain Layout
20917
20918 ]{
20919 \end_layout
20920
20921 \end_inset
20922
20923
20924 \end_layout
20925
20926 \begin_layout Standard
20927
20928 \size small
20929 \lang english
20930 On the evening of the crime, he returned from the club exactly at ten.
20931  His mother and sister were out spending the evening with a relation.
20932  The servant deposed that she heard him enter the front room on the second
20933  floor, generally used as his sitting-room.
20934  She had lit a fire there, and as it smoked she had opened the window.
20935  No sound was heard from the room until eleven-twenty, the hour of the return
20936  of Lady Maynooth and her daughter.
20937  Desiring to say good-night, she attempted to enter her son's room.
20938  The door was locked on the inside, and no answer could be got to their
20939  cries and knocking.
20940  Help was obtained, and the door forced.
20941  The unfortunate young man was found lying near the table.
20942  His head had been horribly mutilated by an expanding revolver bullet, but
20943  no weapon of any sort was to be found in the room.
20944 \end_layout
20945
20946 \begin_layout End Multiple Columns
20947
20948 \end_layout
20949
20950 \begin_layout Standard
20951
20952 \lang english
20953 You can also use a section heading as the preface if you use a section command
20954  as TeX Code behind the first TeX Code.
20955  For example the command
20956 \end_layout
20957
20958 \begin_layout Standard
20959
20960 \series bold
20961 \lang english
20962
20963 \backslash
20964 subsection{subsection title}
20965 \end_layout
20966
20967 \begin_layout Standard
20968
20969 \lang english
20970 creates a subsection.
20971  In this example the preface is a subsubsection:
20972 \end_layout
20973
20974 \begin_layout Begin Multiple Columns
20975
20976 \lang english
20977 2
20978 \begin_inset ERT
20979 status collapsed
20980
20981 \begin_layout Plain Layout
20982
20983 }[
20984 \end_layout
20985
20986 \end_inset
20987
20988
20989 \begin_inset ERT
20990 status collapsed
20991
20992 \begin_layout Plain Layout
20993
20994
20995 \backslash
20996 subsubsection{
20997 \end_layout
20998
20999 \end_inset
21000
21001 This is a subsubsection heading as a preface
21002 \begin_inset ERT
21003 status collapsed
21004
21005 \begin_layout Plain Layout
21006
21007 }
21008 \end_layout
21009
21010 \end_inset
21011
21012
21013 \begin_inset ERT
21014 status collapsed
21015
21016 \begin_layout Plain Layout
21017
21018 ]{
21019 \end_layout
21020
21021 \end_inset
21022
21023
21024 \end_layout
21025
21026 \begin_layout Standard
21027
21028 \size small
21029 \lang english
21030 A minute examination of the circumstances served only to make the case more
21031  complex.
21032  In the first place, no reason could be given why the young man should have
21033  fastened the door upon the inside.
21034  There was the possibility that the murderer had done this, and had afterwards
21035  escaped by the window.
21036  The drop was at least twenty feet, however, and a bed of crocuses in full
21037  bloom lay beneath.
21038  Neither the flowers nor the earth showed any sign of having been disturbed,
21039  nor were there any marks upon the narrow strip of grass which separated
21040  the house from the road.
21041  Apparently, therefore, it was the young man himself who had fastened the
21042  door.
21043  But how did he come by his death? No one could have climbed up to the window
21044  without leaving traces.
21045  Suppose a man had fired through the window, he would indeed be a remarkable
21046  shot who could with a revolver inflict so deadly a wound.
21047  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
21048  a hundred yards of the house.
21049  No one had heard a shot.
21050 \end_layout
21051
21052 \begin_layout End Multiple Columns
21053
21054 \end_layout
21055
21056 \begin_layout Standard
21057
21058 \lang english
21059 If there is less vertical space left on the page at the beginning of the
21060  multiple columns than needed for 6
21061 \begin_inset space ~
21062 \end_inset
21063
21064 text lines, a page break will be inserted before the multiple columns.
21065  Depending on the number of lines of the preface text, you might want to
21066  change this value.
21067  It is determined by inserting the command
21068 \end_layout
21069
21070 \begin_layout Standard
21071
21072 \series bold
21073 \lang english
21074 ][number
21075 \backslash
21076 baselineskip
21077 \end_layout
21078
21079 \begin_layout Standard
21080
21081 \lang english
21082 as TeX Code behind the preface definition but before the final 
21083 \series bold
21084 ]{
21085 \series default
21086  command.
21087  
21088 \emph on
21089 number
21090 \emph default
21091  is hereby the number of text lines.
21092  In this example the space is set to 7
21093 \begin_inset space ~
21094 \end_inset
21095
21096 text lines:
21097 \end_layout
21098
21099 \begin_layout Begin Multiple Columns
21100
21101 \lang english
21102 2
21103 \begin_inset ERT
21104 status collapsed
21105
21106 \begin_layout Plain Layout
21107
21108 }[
21109 \end_layout
21110
21111 \end_inset
21112
21113
21114 \begin_inset ERT
21115 status collapsed
21116
21117 \begin_layout Plain Layout
21118
21119
21120 \backslash
21121 subsubsection{
21122 \end_layout
21123
21124 \end_inset
21125
21126 This is the sectioning command
21127 \begin_inset Newline newline
21128 \end_inset
21129
21130 as a preface and
21131 \begin_inset Newline newline
21132 \end_inset
21133
21134 with multiple text lines
21135 \begin_inset ERT
21136 status collapsed
21137
21138 \begin_layout Plain Layout
21139
21140 }
21141 \end_layout
21142
21143 \end_inset
21144
21145
21146 \begin_inset ERT
21147 status collapsed
21148
21149 \begin_layout Plain Layout
21150
21151 ][7
21152 \backslash
21153 baselineskip
21154 \end_layout
21155
21156 \end_inset
21157
21158
21159 \begin_inset ERT
21160 status collapsed
21161
21162 \begin_layout Plain Layout
21163
21164 ]{
21165 \end_layout
21166
21167 \end_inset
21168
21169
21170 \end_layout
21171
21172 \begin_layout Standard
21173
21174 \size small
21175 \lang english
21176 On the evening of the crime, he returned from the club exactly at ten.
21177  His mother and sister were out spending the evening with a relation.
21178  The servant deposed that she heard him enter the front room on the second
21179  floor, generally used as his sitting-room.
21180  She had lit a fire there, and as it smoked she had opened the window.
21181  No sound was heard from the room until eleven-twenty, the hour of the return
21182  of Lady Maynooth and her daughter.
21183  Desiring to say good-night, she attempted to enter her son's room.
21184  The door was locked on the inside, and no answer could be got to their
21185  cries and knocking.
21186  Help was obtained, and the door forced.
21187  The unfortunate young man was found lying near the table.
21188  His head had been horribly mutilated by an expanding revolver bullet, but
21189  no weapon of any sort was to be found in the room.
21190 \end_layout
21191
21192 \begin_layout End Multiple Columns
21193
21194 \end_layout
21195
21196 \begin_layout Subsubsection
21197
21198 \lang english
21199 Surrounding Space
21200 \end_layout
21201
21202 \begin_layout Standard
21203
21204 \lang english
21205 The amount of space before and after multiple columns can be changed by
21206  changing the length 
21207 \series bold
21208
21209 \backslash
21210 multicolsep
21211 \series default
21212 .
21213  For example the command
21214 \end_layout
21215
21216 \begin_layout Standard
21217
21218 \series bold
21219 \lang english
21220
21221 \backslash
21222 setlength{
21223 \backslash
21224 multicolsep}{3cm}
21225 \end_layout
21226
21227 \begin_layout Standard
21228
21229 \lang english
21230 in TeX Code changes its value to 3
21231 \begin_inset space \thinspace{}
21232 \end_inset
21233
21234 cm.
21235  The change must be made before the multiple columns' start.
21236  The predefined value is 13
21237 \begin_inset space \thinspace{}
21238 \end_inset
21239
21240 pt.
21241 \end_layout
21242
21243 \begin_layout Standard
21244
21245 \lang english
21246 For this example 
21247 \series bold
21248
21249 \backslash
21250 multicolsep
21251 \series default
21252  was set to 2.5
21253 \begin_inset space \thinspace{}
21254 \end_inset
21255
21256 cm:
21257 \end_layout
21258
21259 \begin_layout Standard
21260
21261 \lang english
21262 \begin_inset ERT
21263 status open
21264
21265 \begin_layout Plain Layout
21266
21267
21268 \backslash
21269 setlength{
21270 \backslash
21271 multicolsep}{2.5cm}
21272 \end_layout
21273
21274 \end_inset
21275
21276
21277 \end_layout
21278
21279 \begin_layout Begin Multiple Columns
21280
21281 \lang english
21282 2
21283 \end_layout
21284
21285 \begin_layout Standard
21286
21287 \size small
21288 \lang english
21289 All day I turned these facts over in my mind, endeavouring to hit upon some
21290  theory which could reconcile them all, and to find that line of least resistanc
21291 e which my poor friend had declared to be the starting-point of every investigat
21292 ion.
21293  I confess that I made little progress.
21294  In the evening I strolled across the Park, and found myself about six o'clock
21295  at the Oxford Street end of Park Lane.
21296  A group of loafers upon the pavements, all staring up at a particular window,
21297  directed me to the house which I had come to see.
21298  A tall, thin man with coloured glasses, whom I strongly suspected of being
21299  a plain-clothes detective, was pointing out some theory of his own, while
21300  the others crowded round to listen to what he said.
21301  I got as near him as I could, but his observations seemed to me to be absurd,
21302  so I withdrew again in some disgust.
21303  As I did so I struck against an elderly, deformed man, who had been behind
21304  me, and I knocked down several books which he was carrying.
21305 \end_layout
21306
21307 \begin_layout End Multiple Columns
21308
21309 \end_layout
21310
21311 \begin_layout Standard
21312
21313 \lang english
21314 \begin_inset Note Greyedout
21315 status open
21316
21317 \begin_layout Plain Layout
21318
21319 \series bold
21320 \lang english
21321 Note:
21322 \series default
21323  The values you set with 
21324 \series bold
21325
21326 \backslash
21327 setlength
21328 \series default
21329  will be used for all following multiple columns until to change them again.
21330 \end_layout
21331
21332 \end_inset
21333
21334
21335 \end_layout
21336
21337 \begin_layout Standard
21338
21339 \lang english
21340 \begin_inset ERT
21341 status collapsed
21342
21343 \begin_layout Plain Layout
21344
21345
21346 \backslash
21347 setlength{
21348 \backslash
21349 multicolsep}{13pt}
21350 \end_layout
21351
21352 \end_inset
21353
21354
21355 \begin_inset Note Note
21356 status collapsed
21357
21358 \begin_layout Plain Layout
21359
21360 \lang english
21361 go back to the default
21362 \end_layout
21363
21364 \end_inset
21365
21366
21367 \end_layout
21368
21369 \begin_layout Subsubsection
21370
21371 \lang english
21372 Column Separation
21373 \end_layout
21374
21375 \begin_layout Standard
21376
21377 \lang english
21378 The width of the columns is automatically calculated, but you can modify
21379  the space between the columns.
21380  This is done by changing the length 
21381 \series bold
21382
21383 \backslash
21384 columnsep
21385 \series default
21386 .
21387  Its predefined value is 10
21388 \begin_inset space \thinspace{}
21389 \end_inset
21390
21391 pt.
21392  Here is an example where 
21393 \series bold
21394
21395 \backslash
21396 columnsep
21397 \series default
21398  is set to 3
21399 \begin_inset space \thinspace{}
21400 \end_inset
21401
21402 cm:
21403 \end_layout
21404
21405 \begin_layout Standard
21406
21407 \lang english
21408 \begin_inset ERT
21409 status open
21410
21411 \begin_layout Plain Layout
21412
21413
21414 \backslash
21415 setlength{
21416 \backslash
21417 columnsep}{3cm}
21418 \end_layout
21419
21420 \end_inset
21421
21422
21423 \end_layout
21424
21425 \begin_layout Begin Multiple Columns
21426
21427 \lang english
21428 2
21429 \end_layout
21430
21431 \begin_layout Standard
21432
21433 \size small
21434 \lang english
21435 My observations of No.
21436 \begin_inset space \space{}
21437 \end_inset
21438
21439 427 Park Lane did little to clear up the problem in which I was interested.
21440  The house was separated from the street by a low wall and railing, the
21441  whole not more than five feet high.
21442  It was perfectly easy, therefore, for anyone to get into the garden, but
21443  the window was entirely inaccessible, since there was no water pipe or
21444  anything which could help the most active man to climb it.
21445  More puzzled than ever, I retraced my steps to Kensington.
21446  I had not been in my study five minutes when the maid entered to say that
21447  a person desired to see me.
21448  To my astonishment it was none other than my strange old book collector,
21449  his sharp, wizened face peering out from a frame of white hair, and his
21450  precious volumes, a dozen of them at least, wedged under his right arm.
21451 \end_layout
21452
21453 \begin_layout End Multiple Columns
21454
21455 \end_layout
21456
21457 \begin_layout Standard
21458
21459 \lang english
21460 \begin_inset ERT
21461 status collapsed
21462
21463 \begin_layout Plain Layout
21464
21465
21466 \backslash
21467 setlength{
21468 \backslash
21469 columnsep}{10pt}
21470 \end_layout
21471
21472 \end_inset
21473
21474
21475 \begin_inset Note Note
21476 status collapsed
21477
21478 \begin_layout Plain Layout
21479
21480 \lang english
21481 go back to the default
21482 \end_layout
21483
21484 \end_inset
21485
21486
21487 \end_layout
21488
21489 \begin_layout Subsubsection
21490
21491 \lang english
21492 Vertical Lines
21493 \end_layout
21494
21495 \begin_layout Standard
21496
21497 \lang english
21498 Between the columns a rule with a width of the length 
21499 \series bold
21500
21501 \backslash
21502 columnseprule
21503 \series default
21504  is placed.
21505  If this rule width is set to 0
21506 \begin_inset space \thinspace{}
21507 \end_inset
21508
21509 pt (this is the default), the rule is suppressed.
21510  In the following example, the line separating the columns is 2
21511 \begin_inset space \thinspace{}
21512 \end_inset
21513
21514 pt wide.
21515 \end_layout
21516
21517 \begin_layout Standard
21518
21519 \lang english
21520 \begin_inset ERT
21521 status open
21522
21523 \begin_layout Plain Layout
21524
21525
21526 \backslash
21527 setlength{
21528 \backslash
21529 columnseprule}{2pt}
21530 \end_layout
21531
21532 \end_inset
21533
21534
21535 \end_layout
21536
21537 \begin_layout Begin Multiple Columns
21538
21539 \lang english
21540 2
21541 \end_layout
21542
21543 \begin_layout Standard
21544
21545 \size small
21546 \lang english
21547 \begin_inset Quotes eld
21548 \end_inset
21549
21550 You're surprised to see me, sir,
21551 \begin_inset Quotes erd
21552 \end_inset
21553
21554  said he, in a strange, croaking voice.
21555 \end_layout
21556
21557 \begin_layout Standard
21558
21559 \size small
21560 \lang english
21561 I acknowledged that I was.
21562 \end_layout
21563
21564 \begin_layout Standard
21565
21566 \size small
21567 \lang english
21568 \begin_inset Quotes eld
21569 \end_inset
21570
21571 Well, I've a conscience, sir, and when I chanced to see you go into this
21572  house, as I came hobbling after you, I thought to myself, I'll just step
21573  in and see that kind gentleman, and tell him that if I was a bit gruff
21574  in my manner there was not any harm meant, and that I am much obliged to
21575  him for picking up my books.
21576 \begin_inset Quotes erd
21577 \end_inset
21578
21579
21580 \end_layout
21581
21582 \begin_layout Standard
21583
21584 \size small
21585 \lang english
21586 \begin_inset Quotes eld
21587 \end_inset
21588
21589 You make too much of a trifle,
21590 \begin_inset Quotes erd
21591 \end_inset
21592
21593  said I.
21594  
21595 \begin_inset Quotes eld
21596 \end_inset
21597
21598 May I ask how you knew who I was?
21599 \begin_inset Quotes erd
21600 \end_inset
21601
21602
21603 \end_layout
21604
21605 \begin_layout Standard
21606
21607 \size small
21608 \lang english
21609 \begin_inset Quotes eld
21610 \end_inset
21611
21612 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
21613  you'll find my little bookshop at the corner of Church Street, and very
21614  happy to see you, I am sure.
21615  Maybe you collect yourself, sir.
21616  Here's 
21617 \noun on
21618 British
21619 \begin_inset space ~
21620 \end_inset
21621
21622 Birds
21623 \noun default
21624 , and 
21625 \noun on
21626 Catullus
21627 \noun default
21628 , and 
21629 \noun on
21630 The Holy War
21631 \noun default
21632 --a bargain, every one of them.
21633  With five volumes you could just fill that gap on that second shelf.
21634  It looks untidy, does it not, sir?
21635 \begin_inset Quotes erd
21636 \end_inset
21637
21638
21639 \end_layout
21640
21641 \begin_layout End Multiple Columns
21642
21643 \end_layout
21644
21645 \begin_layout Standard
21646
21647 \lang english
21648 \begin_inset ERT
21649 status collapsed
21650
21651 \begin_layout Plain Layout
21652
21653
21654 \backslash
21655 setlength{
21656 \backslash
21657 columnseprule}{0pt}
21658 \end_layout
21659
21660 \end_inset
21661
21662
21663 \begin_inset Note Note
21664 status collapsed
21665
21666 \begin_layout Plain Layout
21667
21668 \lang english
21669 go back to the default
21670 \end_layout
21671
21672 \end_inset
21673
21674
21675 \end_layout
21676
21677 \begin_layout Standard
21678 \begin_inset Newpage newpage
21679 \end_inset
21680
21681
21682 \end_layout
21683
21684 \begin_layout Section
21685 標準的でない形の段落
21686 \end_layout
21687
21688 \begin_layout Standard
21689 \begin_inset ERT
21690 status collapsed
21691
21692 \begin_layout Plain Layout
21693
21694
21695 \backslash
21696 begin{sloppypar}
21697 \end_layout
21698
21699 \end_inset
21700
21701
21702 \end_layout
21703
21704 \begin_layout Standard
21705 \begin_inset ERT
21706 status collapsed
21707
21708 \begin_layout Plain Layout
21709
21710
21711 \backslash
21712 newdimen
21713 \backslash
21714 varunit 
21715 \end_layout
21716
21717 \begin_layout Plain Layout
21718
21719
21720 \backslash
21721 setlength{
21722 \backslash
21723 varunit}{4.5in}
21724 \end_layout
21725
21726 \end_inset
21727
21728
21729 \end_layout
21730
21731 \begin_layout Standard
21732 \noindent
21733 \begin_inset ERT
21734 status collapsed
21735
21736 \begin_layout Plain Layout
21737
21738
21739 \backslash
21740 parshape 19 0.45
21741 \backslash
21742 varunit 0.332
21743 \backslash
21744 varunit
21745 \end_layout
21746
21747 \begin_layout Plain Layout
21748
21749 0.40
21750 \backslash
21751 varunit 0.300
21752 \backslash
21753 varunit
21754 \end_layout
21755
21756 \begin_layout Plain Layout
21757
21758 0.35
21759 \backslash
21760 varunit 0.293
21761 \backslash
21762 varunit
21763 \end_layout
21764
21765 \begin_layout Plain Layout
21766
21767 0.30
21768 \backslash
21769 varunit 0.300
21770 \backslash
21771 varunit
21772 \end_layout
21773
21774 \begin_layout Plain Layout
21775
21776 0.25
21777 \backslash
21778 varunit 0.317
21779 \backslash
21780 varunit
21781 \end_layout
21782
21783 \begin_layout Plain Layout
21784
21785 0.20
21786 \backslash
21787 varunit 0.342
21788 \backslash
21789 varunit
21790 \end_layout
21791
21792 \begin_layout Plain Layout
21793
21794 0.15
21795 \backslash
21796 varunit 0.373
21797 \backslash
21798 varunit
21799 \end_layout
21800
21801 \begin_layout Plain Layout
21802
21803 0.10
21804 \backslash
21805 varunit 0.410
21806 \backslash
21807 varunit
21808 \end_layout
21809
21810 \begin_layout Plain Layout
21811
21812 0.05
21813 \backslash
21814 varunit 0.453
21815 \backslash
21816 varunit
21817 \end_layout
21818
21819 \begin_layout Plain Layout
21820
21821 0.00
21822 \backslash
21823 varunit 0.500
21824 \backslash
21825 varunit
21826 \end_layout
21827
21828 \begin_layout Plain Layout
21829
21830 0.05
21831 \backslash
21832 varunit 0.453
21833 \backslash
21834 varunit
21835 \end_layout
21836
21837 \begin_layout Plain Layout
21838
21839 0.10
21840 \backslash
21841 varunit 0.410
21842 \backslash
21843 varunit
21844 \end_layout
21845
21846 \begin_layout Plain Layout
21847
21848 0.15
21849 \backslash
21850 varunit 0.373
21851 \backslash
21852 varunit
21853 \end_layout
21854
21855 \begin_layout Plain Layout
21856
21857 0.20
21858 \backslash
21859 varunit 0.342
21860 \backslash
21861 varunit
21862 \end_layout
21863
21864 \begin_layout Plain Layout
21865
21866 0.25
21867 \backslash
21868 varunit 0.317
21869 \backslash
21870 varunit
21871 \end_layout
21872
21873 \begin_layout Plain Layout
21874
21875 0.30
21876 \backslash
21877 varunit 0.300
21878 \backslash
21879 varunit
21880 \end_layout
21881
21882 \begin_layout Plain Layout
21883
21884 0.35
21885 \backslash
21886 varunit 0.293
21887 \backslash
21888 varunit
21889 \end_layout
21890
21891 \begin_layout Plain Layout
21892
21893 0.40
21894 \backslash
21895 varunit 0.300
21896 \backslash
21897 varunit
21898 \end_layout
21899
21900 \begin_layout Plain Layout
21901
21902 0.45
21903 \backslash
21904 varunit 0.332
21905 \backslash
21906 varunit
21907 \end_layout
21908
21909 \begin_layout Plain Layout
21910
21911 \end_layout
21912
21913 \end_inset
21914
21915 長方形の段落の形を変えたい場合があるでしょう。そういう場合は楽しいTeXコマンド
21916 \family typewriter
21917
21918 \backslash
21919 parshape
21920 \family default
21921 を使いましょう。この例で分かるように適当に行の長さを設定することで好きな形の段落が作れます。馬鹿げているように見えるかもしれませんが、dropped
21922  capitalを最終調整したり、長方形ではない図のまわりを文章で囲ったりするのにこのような手作業が必要なのです。
21923 \end_layout
21924
21925 \begin_layout Standard
21926 \begin_inset VSpace bigskip
21927 \end_inset
21928
21929 文法は
21930 \family typewriter
21931
21932 \backslash
21933 parshape numlines #1indent #1length #2indent #2length \SpecialChar \ldots{}
21934  #nindent #nlength
21935 \family default
21936  です。
21937 \family typewriter
21938 numlines
21939 \family default
21940 は段落をつくる行数です。その段落の本文がこれより短い場合はそこで終わり、長い場合には最後の行の定義がそれ以後も使われます。
21941 \family typewriter
21942 #nindent
21943 \family default
21944
21945 \family typewriter
21946 #nlength
21947 \family default
21948 エントリは左余白からの字下げの量と、字下げされたところからの行の長さを指定します。この形は現在の段落にだけ適応されて、次の段落では通常の形にリセットされます。
21949 \end_layout
21950
21951 \begin_layout Standard
21952 \begin_inset ERT
21953 status collapsed
21954
21955 \begin_layout Plain Layout
21956
21957
21958 \backslash
21959 end{sloppypar}
21960 \end_layout
21961
21962 \end_inset
21963
21964
21965 \end_layout
21966
21967 \begin_layout Bibliography
21968 \begin_inset CommandInset bibitem
21969 LatexCommand bibitem
21970 key "multicol"
21971
21972 \end_inset
21973
21974
21975 \lang english
21976 Documentation of the LaTeX-package
21977 \lang japanese
21978  
21979 \begin_inset CommandInset href
21980 LatexCommand href
21981 name "multicol"
21982 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
21983
21984 \end_inset
21985
21986
21987 \lang english
21988
21989 \begin_inset Index idx
21990 status collapsed
21991
21992 \begin_layout Plain Layout
21993
21994 \lang english
21995 LaTeX-packages ! multicol
21996 \end_layout
21997
21998 \end_inset
21999
22000
22001 \end_layout
22002
22003 \end_body
22004 \end_document