]> git.lyx.org Git - features.git/blob - lib/doc/ja/Additional.lyx
Additional.lyx: fix some cross-references
[features.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.1 created this file. For more info see http://www.lyx.org/
2 \lyxformat 459
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 % extra space for tables
40 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
41
42 \usepackage{t1enc}
43 \end_preamble
44 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
45 \use_default_options false
46 \begin_modules
47 logicalmkup
48 theorems-ams
49 theorems-ams-extended
50 multicol
51 shapepar
52 \end_modules
53 \maintain_unincluded_children false
54 \begin_local_layout
55 Format 7
56 InsetLayout CharStyle:MenuItem
57 LyxType               charstyle
58 LabelString           menu
59 LatexType             command
60 LatexName             menuitem
61 Font
62 Family              Sans
63 EndFont
64 Preamble
65 \newcommand*{\menuitem}[1]{{\sffamily #1}}
66 EndPreamble
67 End
68 \end_local_layout
69 \language japanese
70 \language_package default
71 \inputencoding jis
72 \fontencoding global
73 \font_roman default
74 \font_sans default
75 \font_typewriter default
76 \font_math auto
77 \font_default_family default
78 \use_non_tex_fonts false
79 \font_sc false
80 \font_osf false
81 \font_sf_scale 100
82 \font_tt_scale 100
83 \graphics default
84 \default_output_format default
85 \output_sync 0
86 \bibtex_command default
87 \index_command default
88 \paperfontsize 12
89 \spacing single
90 \use_hyperref true
91 \pdf_title "LyX拡張機能篇"
92 \pdf_author "LyXプロジェクトチーム"
93 \pdf_subject "LyX拡張機能取扱説明書"
94 \pdf_keywords "LyX、取扱説明書、文書化、拡張"
95 \pdf_bookmarks true
96 \pdf_bookmarksnumbered true
97 \pdf_bookmarksopen false
98 \pdf_bookmarksopenlevel 1
99 \pdf_breaklinks false
100 \pdf_pdfborder false
101 \pdf_colorlinks true
102 \pdf_backref false
103 \pdf_pdfusetitle false
104 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
105 \papersize default
106 \use_geometry false
107 \use_package amsmath 1
108 \use_package amssymb 1
109 \use_package esint 0
110 \use_package mathdots 1
111 \use_package mathtools 0
112 \use_package mhchem 1
113 \use_package stackrel 0
114 \use_package stmaryrd 0
115 \use_package undertilde 0
116 \cite_engine basic
117 \cite_engine_type numerical
118 \biblio_style plain
119 \use_bibtopic false
120 \use_indices false
121 \paperorientation portrait
122 \suppress_date false
123 \justification true
124 \use_refstyle 0
125 \notefontcolor #0000ff
126 \index 索引
127 \shortcut idx
128 \color #008000
129 \end_index
130 \secnumdepth 3
131 \tocdepth 3
132 \paragraph_separation indent
133 \paragraph_indentation default
134 \quotes_language english
135 \papercolumns 1
136 \papersides 2
137 \paperpagestyle headings
138 \tracking_changes false
139 \output_changes false
140 \html_math_output 0
141 \html_css_as_file 0
142 \html_be_strict true
143 \end_header
144
145 \begin_body
146
147 \begin_layout Title
148 LyXの高度な機能
149 \begin_inset Newline newline
150 \end_inset
151
152
153 \begin_inset Newline newline
154 \end_inset
155
156
157 \size large
158 Version 2.0.x
159 \end_layout
160
161 \begin_layout Author
162 LyXプロジェクトチーム
163 \begin_inset Foot
164 status collapsed
165
166 \begin_layout Plain Layout
167 このファイルは主にRichard Heckによって管理されています。コメントをされたい場合や誤りを発見された場合には、LyX文書化メーリングリスト
168 \begin_inset Flex Code
169 status open
170
171 \begin_layout Plain Layout
172 \noindent
173
174 \family typewriter
175 <lyx-docs@lists.lyx.org>
176 \end_layout
177
178 \end_inset
179
180 に英文にてお知らせ下さい。この文書の翻訳は、当初人見光太郎氏が行った貢献に基づいています。
181 \end_layout
182
183 \end_inset
184
185  
186 \end_layout
187
188 \begin_layout Standard
189 \begin_inset CommandInset toc
190 LatexCommand tableofcontents
191
192 \end_inset
193
194
195 \end_layout
196
197 \begin_layout Chapter
198 はじめに
199 \end_layout
200
201 \begin_layout Standard
202 いまお読みの取扱説明書『
203 \emph on
204 LyX拡張機能篇
205 \emph default
206 』は、基本的には『
207 \emph on
208 ユーザーの手引き
209 \emph default
210 』の第二部です。この文書を別部とした理由は、単純に『
211 \emph on
212 ユーザーの手引き
213 \emph default
214 』がすでに大部となっていることと、『
215 \emph on
216 ユーザーの手引き
217 \emph default
218 』が、ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです。一方で、LyXプロジェクトチームは、LyXを各設定ファイルと外部パッケージ
219 によって拡張可能な状態にしておくことを長期的な目標にしています。つまり、あるLaTeXパッケージをサポートしたい場合に、LyX自身に変更を加えることなく、当該パ
220 ッケージ用のレイアウトファイル(ないしモジュール)を作成すればいいようにしているのです。すでにこのような形で、いくつもの新機能がユーザーによって追加されています
221 。この取扱説明書は、そのような形での貢献を文書化する冊子として位置付けられています。
222 \end_layout
223
224 \begin_layout Standard
225 この取扱説明書では、ファックスのサポート・バージョン管理・SGMLサポートのような、正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
226 しています。さらに、LaTeXの強力な機能を直接使って文書を美しく仕上げるための、LaTeXツールやテクニックを述べた章も収録しています。つきつめれば、LyXと
227 はあくまでWYSIWYMたることを企図しているため、LaTeXの全機能の一部へのインタフェースは用意するものの、すべてを用意することはないでしょう。
228 \end_layout
229
230 \begin_layout Standard
231 もし、まだ『
232 \emph on
233 はじめの一歩
234 \emph default
235 』をお読みでなかったら、この取扱説明書から読みはじめるのは誤りです。『
236 \emph on
237 はじめの一歩
238 \emph default
239 』には、全取扱説明書に共通の表記法と書式が説明されていますので、まずそれからお読みください。さらに、この取扱説明書を読もうとする前に、『
240 \emph on
241 ユーザーの手引き
242 \emph default
243 』をよくお読みになって、LyXの全基本機能を習得してください。
244 \end_layout
245
246 \begin_layout Standard
247 この取扱説明書の取り上げられている話題は、LyXがLaTeXにどう関わっているかに強く関係していますので、まず次章では、LyXの内部動作がどうなっているか、Ly
248 Xに希望するLaTeXコードを正確に生成させるにはどうしたらいいかを収録しています。本章は、あきらかに熟練LyXユーザー向けの章となっています。
249 \end_layout
250
251 \begin_layout Chapter
252 LyXとLaTeX
253 \end_layout
254
255 \begin_layout Section
256 LyXはLaTeXをどう使っているか
257 \end_layout
258
259 \begin_layout Standard
260 本章
261 \family roman
262 \series medium
263 \shape up
264 \size normal
265 \emph off
266 \bar no
267 \noun off
268 \color none
269 は、TeX熟練者とLaTeXに興味のある方向けの章です。ここでは、LyXとLaTeXが、印刷可能な出力を生成するのに、どのように協働しているのかを説明します。全
270 取扱説明書中で本章だけは、LaTeXのことを多少なりともご存知であることを前提とします。
271 \end_layout
272
273 \begin_layout Standard
274
275 \family roman
276 \series medium
277 \shape up
278 \size normal
279 \emph off
280 \bar no
281 \noun off
282 \color none
283 かつてLyXは、「LaTeXの
284 \family default
285 \series default
286 \shape default
287 \size default
288 \emph default
289 \bar default
290 \noun default
291 \color inherit
292 WYSIWYM
293 \family roman
294 \series medium
295 \shape up
296 \size normal
297 \emph off
298 \bar no
299 \noun off
300 \color none
301 なフロントエンド」と呼ばれていましたが、いまではこれは正しくありません。LaTeXのフロントエンドは、いくつも出回っています
302 \begin_inset Foot
303 status collapsed
304
305 \begin_layout Plain Layout
306
307 \family roman
308 \series medium
309 \shape up
310 \size normal
311 \emph off
312 \bar no
313 \noun off
314 \color none
315 有名なものとしては、Linux上のTeXmakerとkile、OSX上のTeXshopなどがあります。もちろんviとemacsのLaTeXモードも含まれます。
316 \end_layout
317
318 \end_inset
319
320 。これらは、基本的にLaTeXを走らせる機能を有し、編集中のファイルのエラーを表示する機能を持ったテキストエディタです。LyXも、エディタであり、LaTeXを走
321 らせる機能を有し、ファイル中のエラーを指摘しますが、それ以上にもっともっと多くのことをしてくれます。
322 \family default
323 \series default
324 \shape default
325 \size default
326 \emph default
327 \bar default
328 \noun default
329 \color inherit
330 ひとつには、
331 \family roman
332 \series medium
333 \shape up
334 \size normal
335 \emph off
336 \bar no
337 \noun off
338 \color none
339 LyXを効果的に使うのに、LaTeXの知識が必要とされないことが挙げられます。またLyXは、それ自身、いくつかの拡張をLaTeXに加えています。時間のあるときに
340 でも、いちど以下の手順を試してみてください。まず
341 \family sans
342 \series default
343 \shape default
344 \size default
345 \emph default
346 \bar default
347 \noun default
348 \color inherit
349
350 \begin_inset Flex MenuItem
351 status collapsed
352
353 \begin_layout Plain Layout
354
355 \family sans
356 ファイル
357 \end_layout
358
359 \end_inset
360
361
362 \family roman
363 \series medium
364 \shape up
365 \size normal
366 \emph off
367 \bar no
368 \noun off
369 \color none
370 メニューから
371 \family sans
372 \series default
373 \shape default
374 \size default
375 \emph default
376 \bar default
377 \noun default
378 \color inherit
379
380 \begin_inset Flex MenuItem
381 status collapsed
382
383 \begin_layout Plain Layout
384
385 \family sans
386 エクスポート\SpecialChar \menuseparator
387 LaTeX
388 \end_layout
389
390 \end_inset
391
392
393 \family roman
394 \series medium
395 \shape up
396 \size normal
397 \emph off
398 \bar no
399 \noun off
400 \color none
401 (あるいは
402 \family sans
403 \series default
404 \shape default
405 \size default
406 \emph default
407 \bar default
408 \noun default
409 \color inherit
410
411 \begin_inset Flex MenuItem
412 status collapsed
413
414 \begin_layout Plain Layout
415
416 \family sans
417 表示\SpecialChar \menuseparator
418 ソースを閲覧
419 \end_layout
420
421 \end_inset
422
423
424 \family roman
425 \series medium
426 \shape up
427 \size normal
428 \emph off
429 \bar no
430 \noun off
431 \color none
432 )を選択し、そこから出力される
433 \begin_inset Flex Code
434 status collapsed
435
436 \begin_layout Plain Layout
437
438 \family typewriter
439 .tex
440 \end_layout
441
442 \end_inset
443
444 ファイルのプリアンブルをご覧ください。LyXによって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
445 \family default
446 \series default
447 \shape default
448 \size default
449 \emph default
450 \bar default
451 \noun default
452 \color inherit
453 。これらのマクロは、文書中で使用する機能に応じて、自動的に定義されます。
454 \end_layout
455
456 \begin_layout Standard
457
458 \family roman
459 \series medium
460 \shape up
461 \size normal
462 \emph off
463 \bar no
464 \noun off
465 \color none
466 自動的にLaTeXを実行するコマンドが、以下のようにいくつかあります。
467 \end_layout
468
469 \begin_layout Itemize
470 \begin_inset Flex MenuItem
471 status collapsed
472
473 \begin_layout Plain Layout
474
475 \bar under
476 表示\SpecialChar \menuseparator
477
478 \emph on
479 書式
480 \end_layout
481
482 \end_inset
483
484
485 \end_layout
486
487 \begin_layout Itemize
488
489 \family sans
490 \begin_inset Flex MenuItem
491 status collapsed
492
493 \begin_layout Plain Layout
494
495 \bar under
496 表示\SpecialChar \menuseparator
497 更新\SpecialChar \menuseparator
498
499 \emph on
500 書式
501 \end_layout
502
503 \end_inset
504
505
506 \end_layout
507
508 \begin_layout Itemize
509
510 \family sans
511 \begin_inset Flex MenuItem
512 status collapsed
513
514 \begin_layout Plain Layout
515
516 \bar under
517 ファイル
518 \bar default
519 \SpecialChar \menuseparator
520
521 \bar under
522 印刷
523 \end_layout
524
525 \end_inset
526
527
528 \end_layout
529
530 \begin_layout Itemize
531
532 \family sans
533 \begin_inset Flex MenuItem
534 status collapsed
535
536 \begin_layout Plain Layout
537
538 \bar under
539 ファイル
540 \bar default
541 \SpecialChar \menuseparator
542
543 \bar under
544 ファックス
545 \end_layout
546
547 \end_inset
548
549
550 \end_layout
551
552 \begin_layout Standard
553
554 \family roman
555 \series medium
556 \shape up
557 \size normal
558 \emph off
559 \bar no
560 \noun off
561 \color none
562 これらは、最後にLaTeXを実行してからファイルに変更が加えられた場合のみ、LaTeXを実行します。
563 \end_layout
564
565 \begin_layout Standard
566
567 \family roman
568 \series medium
569 \shape up
570 \size normal
571 \emph off
572 \bar no
573 \noun off
574 \color none
575 LyXが編集中のファイルをLaTeXにかけるとき、LyXは以下の段階をふみます。
576 \end_layout
577
578 \begin_layout Enumerate
579
580 \family roman
581 \series medium
582 \shape up
583 \size normal
584 \emph off
585 \bar no
586 \noun off
587 \color none
588 文書をLaTeXに変換し、ファイルの拡張子を
589 \begin_inset Flex Code
590 status collapsed
591
592 \begin_layout Plain Layout
593
594 \family roman
595 \series medium
596 \shape up
597 \size normal
598 \emph off
599 \bar no
600 \noun off
601 \color none
602 .lyx
603 \end_layout
604
605 \end_inset
606
607 から
608 \begin_inset Flex Code
609 status collapsed
610
611 \begin_layout Plain Layout
612
613 \family roman
614 \series medium
615 \shape up
616 \size normal
617 \emph off
618 \bar no
619 \noun off
620 \color none
621 .tex
622 \end_layout
623
624 \end_inset
625
626 に変えて保存。
627 \end_layout
628
629 \begin_layout Enumerate
630
631 \family roman
632 \series medium
633 \shape up
634 \size normal
635 \emph off
636 \bar no
637 \noun off
638 \color none
639 この
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644
645 \family roman
646 \series medium
647 \shape up
648 \size normal
649 \emph off
650 \bar no
651 \noun off
652 \color none
653 .tex
654 \end_layout
655
656 \end_inset
657
658 ファイルに対して(必要に応じて複数回)LaTeXを実行し、LaTeXファイルをコンパイルするのに必要な他のコマンド(
659 \begin_inset Flex Code
660 status collapsed
661
662 \begin_layout Plain Layout
663
664 \family roman
665 \series medium
666 \shape up
667 \size normal
668 \emph off
669 \bar no
670 \noun off
671 \color none
672 bibtex
673 \end_layout
674
675 \end_inset
676
677
678 \begin_inset Flex Code
679 status collapsed
680
681 \begin_layout Plain Layout
682
683 \family roman
684 \series medium
685 \shape up
686 \size normal
687 \emph off
688 \bar no
689 \noun off
690 \color none
691 makeindex
692 \end_layout
693
694 \end_inset
695
696 など)を実行。。
697 \end_layout
698
699 \begin_layout Enumerate
700
701 \family roman
702 \series medium
703 \shape up
704 \size normal
705 \emph off
706 \bar no
707 \noun off
708 \color none
709 もしエラーがあれば、エラーログを表示。
710 \end_layout
711
712 \begin_layout Standard
713
714 \family roman
715 \series medium
716 \shape up
717 \size normal
718 \emph off
719 \bar no
720 \noun off
721 \color none
722 LaTeXを
723 \family sans
724 \series default
725 \shape default
726 \size default
727 \emph default
728 \bar default
729 \noun default
730 \color inherit
731
732 \begin_inset Flex MenuItem
733 status collapsed
734
735 \begin_layout Plain Layout
736
737 \family sans
738 表示\SpecialChar \menuseparator
739 DVI
740 \end_layout
741
742 \end_inset
743
744
745 \family roman
746 \series medium
747 \shape up
748 \size normal
749 \emph off
750 \bar no
751 \noun off
752 \color none
753 を使用して実行した場合には、LyXはこの後、DVIビューアを実行してDVIファイルを表示します。
754 \begin_inset Flex MenuItem
755 status collapsed
756
757 \begin_layout Plain Layout
758
759 \family roman
760 \series medium
761 \shape up
762 \size normal
763 \emph off
764 \bar no
765 \noun off
766 \color none
767 表示\SpecialChar \menuseparator
768 PostScript
769 \end_layout
770
771 \end_inset
772
773 を使用した場合には、LyXはさらに以下の段階をふみます。
774 \end_layout
775
776 \begin_layout Itemize
777
778 \family roman
779 \series medium
780 \shape up
781 \size normal
782 \emph off
783 \bar no
784 \noun off
785 \color none
786 \begin_inset Flex Code
787 status collapsed
788
789 \begin_layout Plain Layout
790
791 \family typewriter
792 dvips
793 \end_layout
794
795 \end_inset
796
797 を実行して、
798 \family default
799 \series default
800 \shape default
801 \size default
802 \emph default
803 \bar default
804 \noun default
805 \color inherit
806 DVI
807 \family roman
808 \series medium
809 \shape up
810 \size normal
811 \emph off
812 \bar no
813 \noun off
814 \color none
815 ファイルをPostScript®
816 \family default
817 \series default
818 \shape default
819 \size default
820 \emph default
821 \bar default
822 \noun default
823 \color inherit
824 に変換。
825 \end_layout
826
827 \begin_layout Itemize
828
829 \family roman
830 \series medium
831 \shape up
832 \size normal
833 \emph off
834 \bar no
835 \noun off
836 \color none
837 \begin_inset Flex Code
838 status collapsed
839
840 \begin_layout Plain Layout
841
842 \family typewriter
843 ghostview
844 \end_layout
845
846 \end_inset
847
848 などのPostScript®ビューアを実行して、PostScript®
849 \family default
850 \series default
851 \shape default
852 \size default
853 \emph default
854 \bar default
855 \noun default
856 \color inherit
857 ファイルを表示。
858 \end_layout
859
860 \begin_layout Standard
861 LyXは、他の書式を表示したりエクスポートしたりする際にも、同様のことを行います。
862 \end_layout
863
864 \begin_layout Section
865 LaTeXファイルをLyXに読み込む
866 \end_layout
867
868 \begin_layout Standard
869 LyXで
870 \family sans
871
872 \begin_inset Flex MenuItem
873 status collapsed
874
875 \begin_layout Plain Layout
876
877 \family sans
878 ファイル\SpecialChar \menuseparator
879 インポート\SpecialChar \menuseparator
880 LaTeX
881 \end_layout
882
883 \end_inset
884
885
886 \family roman
887 \series medium
888 \shape up
889 \size normal
890 \emph off
891 \bar no
892 \noun off
893 \color none
894 コマンドを使用すると、LaTeXファイルを
895 \family default
896 \series default
897 \shape default
898 \size default
899 \emph default
900 \bar default
901 \noun default
902  
903 \family roman
904 \series medium
905 \shape up
906 \size normal
907 \emph off
908 \bar no
909 \noun off
910 LyXにインポートすることができます。このコマンドは、
911 \family typewriter
912 \series default
913 \shape default
914 \size default
915 \emph default
916 \bar default
917 \noun default
918 \color inherit
919
920 \begin_inset Flex Code
921 status collapsed
922
923 \begin_layout Plain Layout
924
925 \family typewriter
926 tex2lyx
927 \end_layout
928
929 \end_inset
930
931
932 \family roman
933 \series medium
934 \shape up
935 \size normal
936 \emph off
937 \bar no
938 \noun off
939 \color none
940 というプログラムを呼び出し、
941 \family typewriter
942 \series default
943 \shape default
944 \size default
945 \emph default
946 \bar default
947 \noun default
948 \color inherit
949
950 \begin_inset Flex Code
951 status collapsed
952
953 \begin_layout Plain Layout
954
955 \family typewriter
956 foo.tex
957 \end_layout
958
959 \end_inset
960
961
962 \family default
963 などというファイルから
964 \begin_inset Flex Code
965 status collapsed
966
967 \begin_layout Plain Layout
968
969 \family typewriter
970 foo.lyx
971 \end_layout
972
973 \end_inset
974
975 を生成します。LyXは、この変換したファイルを開きます
976 \begin_inset Foot
977 status collapsed
978
979 \begin_layout Plain Layout
980 \begin_inset Flex Code
981 status collapsed
982
983 \begin_layout Plain Layout
984 tex2lyx
985 \end_layout
986
987 \end_inset
988
989 は、もちろんコマンドラインから実行することもできます。
990 \end_layout
991
992 \end_inset
993
994
995 \end_layout
996
997 \begin_layout Standard
998
999 \family typewriter
1000 \begin_inset Flex Code
1001 status collapsed
1002
1003 \begin_layout Plain Layout
1004
1005 \family typewriter
1006 tex2lyx
1007 \end_layout
1008
1009 \end_inset
1010
1011
1012 \family roman
1013 \series medium
1014 \shape up
1015 \size normal
1016 \emph off
1017 \bar no
1018 \noun off
1019 \color none
1020 は、文法的に正しいLaTeXファイルのほとんどを変換することができますが、すべてを変換できるわけではありません。
1021 \family typewriter
1022 \series default
1023 \shape default
1024 \size default
1025 \emph default
1026 \bar default
1027 \noun default
1028 \color inherit
1029
1030 \begin_inset Flex Code
1031 status collapsed
1032
1033 \begin_layout Plain Layout
1034
1035 \family typewriter
1036 tex2lyx
1037 \end_layout
1038
1039 \end_inset
1040
1041
1042 \family roman
1043 \series medium
1044 \shape up
1045 \size normal
1046 \emph off
1047 \bar no
1048 \noun off
1049 \color none
1050 は、理解不能な部分はTeXコードボックスの形で残しますので、ファイルを
1051 \family typewriter
1052 \series default
1053 \shape default
1054 \size default
1055 \emph default
1056 \bar default
1057 \noun default
1058 \color inherit
1059
1060 \begin_inset Flex Code
1061 status collapsed
1062
1063 \begin_layout Plain Layout
1064
1065 \family typewriter
1066 tex2lyx
1067 \end_layout
1068
1069 \end_inset
1070
1071
1072 \family roman
1073 \series medium
1074 \shape up
1075 \size normal
1076 \emph off
1077 \bar no
1078 \noun off
1079 \color none
1080 で変換したのち、TeXコードボックスを探して、手動で正しく編集してください。
1081 \end_layout
1082
1083 \begin_layout Standard
1084
1085 \family roman
1086 \series medium
1087 \shape up
1088 \size normal
1089 \emph off
1090 \bar no
1091 \noun off
1092 \color none
1093 TeXコードボックスがなにかご存じなければ、次節をお読みください。
1094 \end_layout
1095
1096 \begin_layout Section
1097 LaTeXコードを挿入する
1098 \begin_inset CommandInset label
1099 LatexCommand label
1100 name "sec:LaTeXコードを挿入する"
1101
1102 \end_inset
1103
1104
1105 \end_layout
1106
1107 \begin_layout Standard
1108
1109 \family roman
1110 \series medium
1111 \shape up
1112 \size normal
1113 \emph off
1114 \bar no
1115 \noun off
1116 \color none
1117 どのLyX文書にもつねにTeXコードを挿入することが可能であるというきわめて単純な理由によって、LaTeXにできることは、つねにLyXでも行うことができます。一
1118 方、LyXは、すべてのLaTeX構成物をLyX内に表示できるわけではなく、将来的にもそうならないでしょう。かりにLaTeXコマンドをLyX文書に挿入する必要が出
1119 てきた場合には、
1120 \begin_inset Flex Code
1121 status collapsed
1122
1123 \begin_layout Plain Layout
1124
1125 \family roman
1126 \series medium
1127 \shape up
1128 \size normal
1129 \emph off
1130 \bar no
1131 \noun off
1132 \color none
1133 TeXコード
1134 \end_layout
1135
1136 \end_inset
1137
1138 ボックスを使用してください。これは、
1139 \family sans
1140 \series default
1141 \shape default
1142 \size default
1143 \emph default
1144 \bar default
1145 \noun default
1146 \color inherit
1147
1148 \begin_inset Flex MenuItem
1149 status collapsed
1150
1151 \begin_layout Plain Layout
1152
1153 \family sans
1154 挿入\SpecialChar \menuseparator
1155 TeXコード
1156 \end_layout
1157
1158 \end_inset
1159
1160
1161 \family roman
1162 \series medium
1163 \shape up
1164 \size normal
1165 \emph off
1166 \bar no
1167 \noun off
1168 \color none
1169 から、文書中に挿入することができます。
1170 \end_layout
1171
1172 \begin_layout Standard
1173 以下は、LaTeXコマンドをLyX文書中に挿入する例です。コードは以下のようになっているとしましょう。
1174 \end_layout
1175
1176 \begin_layout LyX-Code
1177
1178 \backslash
1179 begin{tabular}{ll}
1180 \begin_inset Newline newline
1181 \end_inset
1182
1183
1184 \backslash
1185 begin{minipage}{5cm}
1186 \begin_inset Newline newline
1187 \end_inset
1188
1189 これは、ミニページ環境の例です。
1190 \begin_inset Newline newline
1191 \end_inset
1192
1193 これには、
1194 \begin_inset Newline newline
1195 \end_inset
1196
1197 (フロートでない)図表を
1198 \begin_inset Newline newline
1199 \end_inset
1200
1201 含め、ほとんど何でも
1202 \begin_inset Newline newline
1203 \end_inset
1204
1205 入れることができます。 
1206 \begin_inset Newline newline
1207 \end_inset
1208
1209
1210 \backslash
1211 end{minipage}
1212 \begin_inset Newline newline
1213 \end_inset
1214
1215 &
1216 \begin_inset Newline newline
1217 \end_inset
1218
1219
1220 \backslash
1221 begin{minipage}{5cm}
1222 \begin_inset Newline newline
1223 \end_inset
1224
1225
1226 \backslash
1227 begin{verbatim}
1228 \begin_inset Newline newline
1229 \end_inset
1230
1231
1232 \backslash
1233 begin{minipage}{5cm}
1234 \begin_inset Newline newline
1235 \end_inset
1236
1237 これ...
1238  
1239 \begin_inset Newline newline
1240 \end_inset
1241
1242
1243 \backslash
1244 end{minipage}
1245 \begin_inset Newline newline
1246 \end_inset
1247
1248
1249 \backslash
1250 end{verbatim}
1251 \begin_inset Newline newline
1252 \end_inset
1253
1254
1255 \backslash
1256 end{minipage}
1257 \begin_inset Newline newline
1258 \end_inset
1259
1260
1261 \backslash
1262 end{tabular}
1263 \end_layout
1264
1265 \begin_layout LyX-Code
1266
1267 \end_layout
1268
1269 \begin_layout Standard
1270 上記のテキストを含んだ
1271 \begin_inset Flex Code
1272 status collapsed
1273
1274 \begin_layout Plain Layout
1275 TeXコード
1276 \end_layout
1277
1278 \end_inset
1279
1280 ボックスが、この段落の直後にあります。この取扱説明書をLyX上でご覧になっていれば、TeXコード差込枠のみが見えるはずです。印刷した取扱説明書をご覧であれば、実
1281 際の結果が見れるはずです。
1282 \end_layout
1283
1284 \begin_layout Standard
1285 \begin_inset ERT
1286 status collapsed
1287
1288 \begin_layout Plain Layout
1289
1290
1291 \backslash
1292 begin{tabular}{ll}
1293 \end_layout
1294
1295 \begin_layout Plain Layout
1296
1297
1298 \backslash
1299 begin{minipage}{5cm}
1300 \end_layout
1301
1302 \begin_layout Plain Layout
1303
1304 これは、ミニページ環境の例です。これには、(フロートでない)図表を含め、ほとんど何でも入れることができます。 
1305 \backslash
1306 end{minipage}
1307 \end_layout
1308
1309 \begin_layout Plain Layout
1310
1311 &
1312 \end_layout
1313
1314 \begin_layout Plain Layout
1315
1316
1317 \backslash
1318 begin{minipage}{5cm}
1319 \end_layout
1320
1321 \begin_layout Plain Layout
1322
1323
1324 \backslash
1325 begin{verbatim}
1326 \end_layout
1327
1328 \begin_layout Plain Layout
1329
1330
1331 \backslash
1332 begin{minipage}{5cm}
1333 \end_layout
1334
1335 \begin_layout Plain Layout
1336
1337 これ...
1338  
1339 \backslash
1340 end{minipage}
1341 \end_layout
1342
1343 \begin_layout Plain Layout
1344
1345
1346 \backslash
1347 end{verbatim}
1348 \end_layout
1349
1350 \begin_layout Plain Layout
1351
1352
1353 \backslash
1354 end{minipage}
1355 \end_layout
1356
1357 \begin_layout Plain Layout
1358
1359
1360 \backslash
1361 end{tabular}
1362 \end_layout
1363
1364 \end_inset
1365
1366
1367 \end_layout
1368
1369 \begin_layout Standard
1370
1371 \family roman
1372 \series medium
1373 \shape up
1374 \size normal
1375 \emph off
1376 \bar no
1377 \noun off
1378 \color none
1379 TeXコードを使用する方法に加えて、複雑なLaTeXコードを含む部分を別ファイルとして作成しておき、そのファイルをインクルードするのに
1380 \begin_inset Flex MenuItem
1381 status collapsed
1382
1383 \begin_layout Plain Layout
1384
1385 \family roman
1386 \series medium
1387 \shape up
1388 \size normal
1389 \emph off
1390 \bar no
1391 \noun off
1392 \color none
1393 挿入\SpecialChar \menuseparator
1394 ファイル\SpecialChar \menuseparator
1395 子文書
1396 \end_layout
1397
1398 \end_inset
1399
1400 を使用する方法もあります(取り込みの型として
1401 \begin_inset Flex Code
1402 status collapsed
1403
1404 \begin_layout Plain Layout
1405
1406 \family roman
1407 \series medium
1408 \shape up
1409 \size normal
1410 \emph off
1411 \bar no
1412 \noun off
1413 \color none
1414 Input
1415 \end_layout
1416
1417 \end_inset
1418
1419 を選択しなくてはなりません)。この方法をとる場合には、.texファイルが正しく動作することが
1420 \family default
1421 \series default
1422 \shape default
1423 \size default
1424 \emph on
1425 \bar default
1426 \noun default
1427 \color inherit
1428 確認できている
1429 \family roman
1430 \series medium
1431 \shape up
1432 \size normal
1433 \emph off
1434 \bar no
1435 \noun off
1436 \color none
1437 場合のみに限った方がよいでしょう。さもないと、LaTeXエラーを追跡するたいへんな作業を行わなくてはならなくなります。
1438 \end_layout
1439
1440 \begin_layout Standard
1441
1442 \family roman
1443 \series medium
1444 \shape up
1445 \size normal
1446 \emph off
1447 \bar no
1448 \noun off
1449 \color none
1450 最後に、いくつか強調しておくべきことがあります。
1451 \end_layout
1452
1453 \begin_layout Itemize
1454
1455 \family roman
1456 \series medium
1457 \shape up
1458 \size normal
1459 \emph off
1460 \bar no
1461 \noun off
1462 \color none
1463 LyXは、あなたのLaTeXコードが正しいかどうかを
1464 \family default
1465 \series default
1466 \shape default
1467 \size default
1468 \emph on
1469 \bar default
1470 \noun default
1471 \color inherit
1472 チェックしません
1473 \family roman
1474 \series medium
1475 \shape up
1476 \size normal
1477 \emph off
1478 \bar no
1479 \noun off
1480 \color none
1481
1482 \end_layout
1483
1484 \begin_layout Itemize
1485
1486 \family roman
1487 \series medium
1488 \shape up
1489 \size normal
1490 \emph off
1491 \bar no
1492 \noun off
1493 \color none
1494 車輪の再発明をしないようにご注意ください。
1495 \end_layout
1496
1497 \begin_layout Standard
1498
1499 \family roman
1500 \series medium
1501 \shape up
1502 \size normal
1503 \emph off
1504 \bar no
1505 \noun off
1506 \color none
1507 二番目の点に関して、LyXはひじょうにたくさんの機能を装備しており、その数は増えつづけています。ご自身でLaTeXコードを書かなくてはならないと思い込む前に、L
1508 yXがこれこれの機能をもっていないことを、取扱説明書で確実に確かめてください。さらに世の中には、封筒のラベルから美しい複数ページにわたる表を作るものまで、ありと
1509 あらゆることを行う膨大な数のLaTeXパッケージが存在します。
1510 \family default
1511 \series default
1512 \shape default
1513 \size default
1514 \emph default
1515 \bar default
1516 \noun default
1517 \color inherit
1518 詳細については、
1519 \begin_inset CommandInset href
1520 LatexCommand href
1521 name "CTAN"
1522 target "http://www.ctan.org/"
1523
1524 \end_inset
1525
1526
1527 \family roman
1528 \series medium
1529 \shape up
1530 \size normal
1531 \emph off
1532 \bar no
1533 \noun off
1534 \color none
1535 と第
1536 \begin_inset CommandInset ref
1537 LatexCommand ref
1538 reference "chap:Special-features"
1539
1540 \end_inset
1541
1542 節をご覧ください。
1543 \end_layout
1544
1545 \begin_layout Standard
1546
1547 \family roman
1548 \series medium
1549 \shape up
1550 \size normal
1551 \emph off
1552 \bar no
1553 \noun off
1554 \color none
1555 もし、文書中で例外的に手の込んだことをなさりたければ、かならず良いLaTeX関連書籍を参考とするようにしてください。『
1556 \family default
1557 \series default
1558 \shape default
1559 \size default
1560 \emph on
1561 \bar default
1562 \noun default
1563 \color inherit
1564 ユーザーの手引き
1565 \family roman
1566 \series medium
1567 \shape up
1568 \size normal
1569 \emph off
1570 \bar no
1571 \noun off
1572 \color none
1573 』の参考文献に多くのLaTeX関連書籍が引用されています。
1574 \end_layout
1575
1576 \begin_layout Section
1577 LyXとLaTeXプリアンブル
1578 \end_layout
1579
1580 \begin_layout Subsection
1581 LaTeXプリアンブルについて
1582 \end_layout
1583
1584 \begin_layout Standard
1585
1586 \family roman
1587 \series medium
1588 \shape up
1589 \size normal
1590 \emph off
1591 \bar no
1592 \noun off
1593 \color none
1594 すでにLaTeXについてご存知であれば、ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう。もしご存じなければ、以下の説明で大まかな理解は
1595 得られるはずです。詳しくはLaTeX関連書籍をご参照ください。いずれにしても、以下でLyX文書のLaTeXプリアンブルで何ができるか、または何をする必要がないか
1596 説明をしますので、以下の各要点はお読みになった方が良いでしょう。
1597 \end_layout
1598
1599 \begin_layout Standard
1600
1601 \family roman
1602 \series medium
1603 \shape up
1604 \size normal
1605 \emph off
1606 \bar no
1607 \noun off
1608 \color none
1609 LaTeXプリアンブルは、LaTeX文書のいちばん始め、本文の
1610 \family default
1611 \series default
1612 \shape default
1613 \size default
1614 \emph on
1615 \bar default
1616 \noun default
1617 \color inherit
1618
1619 \family roman
1620 \series medium
1621 \shape up
1622 \size normal
1623 \emph off
1624 \bar no
1625 \noun off
1626 \color none
1627 の部分に来ます。ここでは以下のことを行います。
1628 \end_layout
1629
1630 \begin_layout Itemize
1631
1632 \family roman
1633 \series medium
1634 \shape up
1635 \size normal
1636 \emph off
1637 \bar no
1638 \noun off
1639 \color none
1640 文書クラス(ドキュメントクラス)の宣言。
1641 \begin_inset Newline newline
1642 \end_inset
1643
1644 これはLyXがすでに行ってくれています。もしあなたが熟達したLaTeX使いであり、自作の文書クラスを使いたい場合には、取扱説明書『
1645 \family default
1646 \series default
1647 \shape default
1648 \size default
1649 \emph on
1650 \bar default
1651 \noun default
1652 \color inherit
1653 カスタマイズ篇
1654 \family roman
1655 \series medium
1656 \shape up
1657 \size normal
1658 \emph off
1659 \bar no
1660 \noun off
1661 \color none
1662 』をご覧になれば、LyXに自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります。
1663 \end_layout
1664
1665 \begin_layout Itemize
1666
1667 \family roman
1668 \series medium
1669 \shape up
1670 \size normal
1671 \emph off
1672 \bar no
1673 \noun off
1674 \color none
1675 パッケージ使用の宣言。
1676 \begin_inset Newline newline
1677 \end_inset
1678
1679 LaTeXパッケージは、パッケージがプリアンブルで宣言された場合のみ、文書中で利用可能となる、追加コマンド群を提供します。例えば
1680 \family typewriter
1681 \series default
1682 \shape default
1683 \size default
1684 \emph default
1685 \bar default
1686 \noun default
1687 \color inherit
1688
1689 \family roman
1690 \series medium
1691 \shape up
1692 \size normal
1693 \emph off
1694 \bar no
1695 \noun off
1696 \color none
1697
1698 \begin_inset Flex Code
1699 status collapsed
1700
1701 \begin_layout Plain Layout
1702
1703 \family typewriter
1704 indentfirst
1705 \end_layout
1706
1707 \end_inset
1708
1709 パッケージは、すべての段落の最初の行を字下げします。他にも、ラベルや宛名書き、余白設定等の様々なパッケージがあります。
1710 \end_layout
1711
1712 \begin_layout Itemize
1713
1714 \family roman
1715 \series medium
1716 \shape up
1717 \size normal
1718 \emph off
1719 \bar no
1720 \noun off
1721 \color none
1722 カウンタ・変数・長さ・幅の設定。
1723 \begin_inset Newline newline
1724 \end_inset
1725
1726 LaTeXのカウンタと変数の中には、プリアンブルでグローバルに
1727 \family default
1728 \series default
1729 \shape default
1730 \size default
1731 \emph default
1732 \bar default
1733 \noun default
1734 \color inherit
1735 設定
1736 \emph on
1737 しないかぎり
1738 \family roman
1739 \series medium
1740 \shape up
1741 \size normal
1742 \emph off
1743 \bar no
1744 \noun off
1745 \color none
1746 、望んだ効果を持たないものがあります。(文書中で設定したり再設定したりすることのできる変数もあります。)余白は、プリアンブルで設定しなくてはならない変数の代表例
1747 です。他には、箇条書きに付けるラベル書式が挙げられます。じつは、この設定は文書中どこでもできるのですが、プリアンブルでいちどだけ設定するのが望ましい方法です。
1748 \end_layout
1749
1750 \begin_layout Itemize
1751
1752 \family roman
1753 \series medium
1754 \shape up
1755 \size normal
1756 \emph off
1757 \bar no
1758 \noun off
1759 \color none
1760 ユーザー定義コマンドの宣言(
1761 \begin_inset Flex Code
1762 status collapsed
1763
1764 \begin_layout Plain Layout
1765
1766 \family roman
1767 \series medium
1768 \shape up
1769 \size normal
1770 \emph off
1771 \bar no
1772 \noun off
1773 \color none
1774
1775 \backslash
1776 newcommand
1777 \end_layout
1778
1779 \end_inset
1780
1781 または
1782 \begin_inset Flex Code
1783 status collapsed
1784
1785 \begin_layout Plain Layout
1786
1787 \family roman
1788 \series medium
1789 \shape up
1790 \size normal
1791 \emph off
1792 \bar no
1793 \noun off
1794 \color none
1795
1796 \backslash
1797 renewcommand
1798 \end_layout
1799
1800 \end_inset
1801
1802 を使用)。
1803 \begin_inset Newline newline
1804 \end_inset
1805
1806 ユーザー定義コマンドは、文書中で頻出するLaTeXコマンドの短縮形です。このようなコマンドを宣言するには、プリアンブルが適した場所ですが、どこで宣言することも
1807 \family default
1808 \series default
1809 \shape default
1810 \size default
1811 \emph on
1812 \bar default
1813 \noun default
1814 \color inherit
1815 可能
1816 \family roman
1817 \series medium
1818 \shape up
1819 \size normal
1820 \emph off
1821 \bar no
1822 \noun off
1823 \color none
1824 です(もちろんコマンドが初めて使用される場所よりも前です)。あまりないことではありますが、お使いの文書中に生のLaTeXコードがあふれている場合には便利でしょう
1825
1826 \end_layout
1827
1828 \begin_layout Standard
1829
1830 \family roman
1831 \series medium
1832 \shape up
1833 \size normal
1834 \emph off
1835 \bar no
1836 \noun off
1837 \color none
1838 LyXは、その生成する
1839 \begin_inset Flex Code
1840 status collapsed
1841
1842 \begin_layout Plain Layout
1843
1844 \family roman
1845 \series medium
1846 \shape up
1847 \size normal
1848 \emph off
1849 \bar no
1850 \noun off
1851 \color none
1852 .tex
1853 \end_layout
1854
1855 \end_inset
1856
1857 ファイルのプリアンブルに、それ自身の定義を追加します。これによって、LyXの生成するLaTeXファイルの可搬性を高めています。
1858 \end_layout
1859
1860 \begin_layout Subsection
1861 プリアンブルの変更
1862 \end_layout
1863
1864 \begin_layout Standard
1865
1866 \family roman
1867 \series medium
1868 \shape up
1869 \size normal
1870 \emph off
1871 \bar no
1872 \noun off
1873 \color none
1874 LyXがLaTeXファイルのプリアンブルに追加するコマンドは、つねに同じです。これは、LyX自体にパッチを当てないかぎり変更できないようになっています。しかしな
1875 がら、
1876 \begin_inset Flex MenuItem
1877 status collapsed
1878
1879 \begin_layout Plain Layout
1880
1881 \family roman
1882 \series medium
1883 \shape up
1884 \size normal
1885 \emph off
1886 \bar no
1887 \noun off
1888 \color none
1889 文書\SpecialChar \menuseparator
1890 設定
1891 \end_layout
1892
1893 \end_inset
1894
1895 ダイアログの
1896 \begin_inset Flex MenuItem
1897 status collapsed
1898
1899 \begin_layout Plain Layout
1900
1901 \family roman
1902 \series medium
1903 \shape up
1904 \size normal
1905 \emph off
1906 \bar no
1907 \noun off
1908 \color none
1909 LaTeXプリアンブル
1910 \end_layout
1911
1912 \end_inset
1913
1914 の項から、プリアンブルに追加をすることはできます。LyXは、
1915 \family sans
1916 \series default
1917 \shape default
1918 \size default
1919 \emph default
1920 \bar default
1921 \noun default
1922 \color inherit
1923
1924 \begin_inset Flex MenuItem
1925 status collapsed
1926
1927 \begin_layout Plain Layout
1928
1929 \family sans
1930 プリアンブル
1931 \end_layout
1932
1933 \end_inset
1934
1935
1936 \family roman
1937 \series medium
1938 \shape up
1939 \size normal
1940 \emph off
1941 \bar no
1942 \noun off
1943 \color none
1944 ダイアログ内のすべてのものを、LyX埋込みのプリアンブルに付け加えます。ご自身の宣言をプリアンブルに追加する前に、あなたがしようとしていることをLyXがすでにサ
1945 ポートしていないかどうか確認してください(車輪の再発明をしないように、とはすでに申しあげたことです)。
1946 \family default
1947 \series default
1948 \shape default
1949 \size default
1950 \emph default
1951 \bar default
1952 \noun default
1953 \color inherit
1954 また、
1955 \emph on
1956 プリアンブルコードが正しいことを確認してください。
1957 \emph default
1958 LyXは、プリアンブルをチェックしません。
1959 \family roman
1960 \series medium
1961 \shape up
1962 \size normal
1963 \emph off
1964 \bar no
1965 \noun off
1966 \color none
1967 もしエラーがあれば、「
1968 \begin_inset Flex Code
1969 status collapsed
1970
1971 \begin_layout Plain Layout
1972
1973 \family roman
1974 \series medium
1975 \shape up
1976 \size normal
1977 \emph off
1978 \bar no
1979 \noun off
1980 \color none
1981 Missing 
1982 \backslash
1983 begin{document}
1984 \end_layout
1985
1986 \end_inset
1987
1988 」といったエラーが出ることでしょう。このようなエラーが出たときは、プリアンブルを再確認してください。
1989 \end_layout
1990
1991 \begin_layout Subsection
1992
1993 \end_layout
1994
1995 \begin_layout Standard
1996
1997 \family roman
1998 \series medium
1999 \shape up
2000 \size normal
2001 \emph off
2002 \bar no
2003 \noun off
2004 \color none
2005 以下は、プリアンブルに追加できるものとその効果を示す例です。
2006 \end_layout
2007
2008 \begin_layout Subsubsection
2009 例1:オフセット
2010 \end_layout
2011
2012 \begin_layout Standard
2013
2014 \family roman
2015 \series medium
2016 \shape up
2017 \size normal
2018 \emph off
2019 \bar no
2020 \noun off
2021 \color none
2022 LaTeXには
2023 \family default
2024 \series default
2025 \shape default
2026 \size default
2027 \emph default
2028 \bar default
2029 \noun default
2030 \color inherit
2031
2032 \family roman
2033 \series medium
2034 \shape up
2035 \size normal
2036 \emph off
2037 \bar no
2038 \noun off
2039 \color none
2040
2041 \begin_inset Flex Code
2042 status collapsed
2043
2044 \begin_layout Plain Layout
2045
2046 \family typewriter
2047
2048 \backslash
2049 hoffset
2050 \end_layout
2051
2052 \end_inset
2053
2054
2055 \family typewriter
2056 \series default
2057 \shape default
2058 \size default
2059 \emph default
2060 \bar default
2061 \noun default
2062 \color inherit
2063
2064 \begin_inset Flex Code
2065 status collapsed
2066
2067 \begin_layout Plain Layout
2068
2069 \family typewriter
2070
2071 \backslash
2072 voffset
2073 \end_layout
2074
2075 \end_inset
2076
2077
2078 \family roman
2079 \series medium
2080 \shape up
2081 \size normal
2082 \emph off
2083 \bar no
2084 \noun off
2085 \color none
2086 というページ位置を制御する2つの変数があります。その機能は名前から明らかなとおりです。これらの変数は、ラベルを印刷するときなどに便利です。往々にして、印刷用紙の
2087 寸法とそのうち実際に印字可能な範囲は同じではありません。ここに
2088 \begin_inset Flex Code
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092
2093 \family typewriter
2094
2095 \backslash
2096 hoffset
2097 \end_layout
2098
2099 \end_inset
2100
2101
2102 \family typewriter
2103 \series default
2104 \shape default
2105 \size default
2106 \emph default
2107 \bar default
2108 \noun default
2109 \color inherit
2110
2111 \begin_inset Flex Code
2112 status collapsed
2113
2114 \begin_layout Plain Layout
2115
2116 \family typewriter
2117
2118 \backslash
2119 voffset
2120 \end_layout
2121
2122 \end_inset
2123
2124
2125 \family default
2126 が役立つわけです。
2127 \end_layout
2128
2129 \begin_layout Standard
2130
2131 \family roman
2132 \series medium
2133 \shape up
2134 \size normal
2135 \emph off
2136 \bar no
2137 \noun off
2138 \color none
2139 \begin_inset Flex Code
2140 status collapsed
2141
2142 \begin_layout Plain Layout
2143
2144 \family typewriter
2145
2146 \backslash
2147 hoffset
2148 \end_layout
2149
2150 \end_inset
2151
2152
2153 \family typewriter
2154 \series default
2155 \shape default
2156 \size default
2157 \emph default
2158 \bar default
2159 \noun default
2160 \color inherit
2161
2162 \begin_inset Flex Code
2163 status collapsed
2164
2165 \begin_layout Plain Layout
2166
2167 \family typewriter
2168
2169 \backslash
2170 voffset
2171 \end_layout
2172
2173 \end_inset
2174
2175
2176 \family roman
2177 \series medium
2178 \shape up
2179 \size normal
2180 \emph off
2181 \bar no
2182 \noun off
2183 \color none
2184 の既定値はともに0ポイント、つまりページをシフトしません。残念ながら、DVIドライバによってはつねにページをシフトすることがあるようです。我々には、どうしてその
2185 ようなことをするのか、そしてシスアドがどうしてそれを修正しないのか理解できませんが、もし個人的に管理できないシステムでLyXを使用していて、シスアドがお馬鹿さん
2186 である場合には、
2187 \begin_inset Flex Code
2188 status collapsed
2189
2190 \begin_layout Plain Layout
2191
2192 \family typewriter
2193
2194 \backslash
2195 hoffset
2196 \end_layout
2197
2198 \end_inset
2199
2200
2201 \family typewriter
2202 \series default
2203 \shape default
2204 \size default
2205 \emph default
2206 \bar default
2207 \noun default
2208 \color inherit
2209
2210 \begin_inset Flex Code
2211 status collapsed
2212
2213 \begin_layout Plain Layout
2214
2215 \family typewriter
2216
2217 \backslash
2218 voffset
2219 \end_layout
2220
2221 \end_inset
2222
2223
2224 \family roman
2225 \series medium
2226 \shape up
2227 \size normal
2228 \emph off
2229 \bar no
2230 \noun off
2231 \color none
2232 が役に立ちます。かりに、上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう。その場合は、以下をプリアンブルに追加するとよいでしょう。
2233 \end_layout
2234
2235 \begin_layout LyX-Code
2236
2237 \backslash
2238 setlength{
2239 \backslash
2240 hoffset}{-0.5 in}
2241 \end_layout
2242
2243 \begin_layout LyX-Code
2244
2245 \backslash
2246 setlength{
2247 \backslash
2248 voffset}{-0.5 in}
2249 \end_layout
2250
2251 \begin_layout Standard
2252
2253 \family roman
2254 \series medium
2255 \shape up
2256 \size normal
2257 \emph off
2258 \bar no
2259 \noun off
2260 \color none
2261 これで余白が修正されます。
2262 \end_layout
2263
2264 \begin_layout Subsubsection
2265 例2:ラベル
2266 \end_layout
2267
2268 \begin_layout Standard
2269
2270 \family roman
2271 \series medium
2272 \shape up
2273 \size normal
2274 \emph off
2275 \bar no
2276 \noun off
2277 \color none
2278 いま、たくさんの宛名ラベルを印刷をしたいものとしましょう。ラベルシートを印刷するために便利な
2279 \begin_inset Flex Code
2280 status collapsed
2281
2282 \begin_layout Plain Layout
2283
2284 \family typewriter
2285 labels.sty
2286 \end_layout
2287
2288 \end_inset
2289
2290 というLaTeXパッケージが、お近くのCTANアーカイブで入手可能です。お使いのシステムには、既定ではこのパッケージは導入されていないかもしれません。ご自身でお
2291 確かめください。また、このパッケージの取扱説明書を読まれたいかもしれませんが、それもご自身にお任せします。これは使用例ですので、このパッケージをどう使うかの例だ
2292 けお見せすることにします。
2293 \end_layout
2294
2295 \begin_layout Standard
2296
2297 \family roman
2298 \series medium
2299 \shape up
2300 \size normal
2301 \emph off
2302 \bar no
2303 \noun off
2304 \color none
2305 まず、
2306 \begin_inset Flex Code
2307 status collapsed
2308
2309 \begin_layout Plain Layout
2310
2311 \family sans
2312 article
2313 \end_layout
2314
2315 \end_inset
2316
2317 文書クラスを使用していることをご確認ください。次に、以下のような設定をプリアンブルに追加しなければなりません。
2318 \end_layout
2319
2320 \begin_layout LyX-Code
2321
2322 \backslash
2323 usepackage{labels}
2324 \end_layout
2325
2326 \begin_layout LyX-Code
2327
2328 \backslash
2329 LabelCols=3
2330 \end_layout
2331
2332 \begin_layout LyX-Code
2333
2334 \backslash
2335 LabelRows=7
2336 \end_layout
2337
2338 \begin_layout LyX-Code
2339
2340 \backslash
2341 LeftBorder=8mm
2342 \end_layout
2343
2344 \begin_layout LyX-Code
2345
2346 \backslash
2347 RightBorder=8mm
2348 \end_layout
2349
2350 \begin_layout LyX-Code
2351
2352 \backslash
2353 TopBorder=9mm
2354 \end_layout
2355
2356 \begin_layout LyX-Code
2357
2358 \backslash
2359 BottomBorder=2mm
2360 \end_layout
2361
2362 \begin_layout Standard
2363
2364 \family roman
2365 \series medium
2366 \shape up
2367 \size normal
2368 \emph off
2369 \bar no
2370 \noun off
2371 \color none
2372 これは
2373 \family default
2374 \series default
2375 \shape default
2376 \size default
2377 \emph default
2378 \bar default
2379 \noun default
2380 \color inherit
2381 Avery®ラベルシートのストック5360
2382 \family roman
2383 \series medium
2384 \shape up
2385 \size normal
2386 \emph off
2387 \bar no
2388 \noun off
2389 \color none
2390 番を使用する場合の設定です。これで、各宛名を
2391 \begin_inset Flex Code
2392 status collapsed
2393
2394 \begin_layout Plain Layout
2395
2396 \family typewriter
2397
2398 \backslash
2399 begin{labels}
2400 \end_layout
2401
2402 \end_inset
2403
2404
2405 \family typewriter
2406 \series default
2407 \shape default
2408 \size default
2409 \emph default
2410 \bar default
2411 \noun default
2412 \color inherit
2413
2414 \begin_inset Flex Code
2415 status collapsed
2416
2417 \begin_layout Plain Layout
2418
2419 \family typewriter
2420
2421 \backslash
2422 end{labels}
2423 \end_layout
2424
2425 \end_inset
2426
2427
2428 \family roman
2429 \series medium
2430 \shape up
2431 \size normal
2432 \emph off
2433 \bar no
2434 \noun off
2435 \color none
2436 で囲めば、宛名ラベルの印刷をすることができます。本機能およびその他の機能に関しては、
2437 \begin_inset Flex Code
2438 status collapsed
2439
2440 \begin_layout Plain Layout
2441
2442 \family typewriter
2443 labels.sty
2444 \end_layout
2445
2446 \end_inset
2447
2448 の取扱説明書に説明されています。
2449 \end_layout
2450
2451 \begin_layout Standard
2452
2453 \family roman
2454 \series medium
2455 \shape up
2456 \size normal
2457 \emph off
2458 \bar no
2459 \noun off
2460 \color none
2461 そのうち誰かが、このパッケージを直接サポートするLyXレイアウトファイルを作ってくれるかもしれません。その誰かはあなたかもしれません。
2462 \end_layout
2463
2464 \begin_layout Subsubsection
2465 例3: 段落の字下げ
2466 \end_layout
2467
2468 \begin_layout Standard
2469
2470 \family roman
2471 \series medium
2472 \shape up
2473 \size normal
2474 \emph off
2475 \bar no
2476 \noun off
2477 \color none
2478 アメリカ人は
2479 \family default
2480 \series default
2481 \shape default
2482 \size default
2483 \emph default
2484 \bar default
2485 \noun default
2486 \color inherit
2487
2488 \emph on
2489 すべての
2490 \family roman
2491 \series medium
2492 \shape up
2493 \size normal
2494 \emph off
2495 \bar no
2496 \noun off
2497 \color none
2498 段落の最初の行を字下げするように教育されています。そのために彼らの他の変な習慣と同じく、いつものようにすべての段落の最初の行を下げるまで、アメリカ人はごちゃごち
2499 ゃと文句を言いつづけるのです
2500 \family default
2501 \series default
2502 \shape default
2503 \size default
2504 \emph default
2505 \bar default
2506 \noun default
2507 \color inherit
2508 。(これはユーモアです。(ほんと?)
2509 \emph on
2510 ユーモアですってば
2511 \emph default
2512 。)
2513 \end_layout
2514
2515 \begin_layout Standard
2516
2517 \family roman
2518 \series medium
2519 \shape up
2520 \size normal
2521 \emph off
2522 \bar no
2523 \noun off
2524 \color none
2525 もちろん、これは標準的な組版ルールではありません。書籍では、典型的には、他の段落のあとにくる段落
2526 \family default
2527 \series default
2528 \shape default
2529 \size default
2530 \emph on
2531 \bar default
2532 \noun default
2533 \color inherit
2534 のみ
2535 \family roman
2536 \series medium
2537 \shape up
2538 \size normal
2539 \emph off
2540 \bar no
2541 \noun off
2542 \color none
2543 字下げを行ないます。一行めを字下げをするそもそもの目的は、隣接する段落から区別するためです。したがって、図のあとや節の最初の段落など、先行する段落がない場合には
2544 、字下げをする必要はないのです。
2545 \end_layout
2546
2547 \begin_layout Standard
2548
2549 \family roman
2550 \series medium
2551 \shape up
2552 \size normal
2553 \emph off
2554 \bar no
2555 \noun off
2556 \color none
2557 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!)、そのような小難しいことはかまわずに、いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2558 ルに次の行を加えて下さい。
2559 \end_layout
2560
2561 \begin_layout LyX-Code
2562
2563 \backslash
2564 usepackage{indentfirst}
2565 \end_layout
2566
2567 \begin_layout Standard
2568
2569 \family roman
2570 \series medium
2571 \shape up
2572 \size normal
2573 \emph off
2574 \bar no
2575 \noun off
2576 \color none
2577 もしお使いのTeX頒布版が脳死状態でなければ、このパッケージが入っているはずなので、建国の父たちが意図したように、すべての段落が字下げされます。
2578 \end_layout
2579
2580 \begin_layout Subsubsection
2581 例4:この文書
2582 \end_layout
2583
2584 \begin_layout Standard
2585
2586 \family roman
2587 \series medium
2588 \shape up
2589 \size normal
2590 \emph off
2591 \bar no
2592 \noun off
2593 \color none
2594 この文書のプリアンブルを見てみると、どのような高度な設定ができるか、おおまかな理解が得られるでしょう。また第
2595 \family default
2596 \series default
2597 \shape default
2598 \size default
2599 \emph default
2600 \bar default
2601 \noun default
2602 \color inherit
2603
2604 \begin_inset CommandInset ref
2605 LatexCommand ref
2606 reference "chap:Special-features"
2607
2608 \end_inset
2609
2610
2611 \family roman
2612 \series medium
2613 \shape up
2614 \size normal
2615 \emph off
2616 \bar no
2617 \noun off
2618 \color none
2619 章には、他の例や、LaTeXの各種の「汚い技」があります。
2620 \end_layout
2621
2622 \begin_layout Section
2623 LyXおよびLaTeXのエラー
2624 \end_layout
2625
2626 \begin_layout Standard
2627
2628 \family roman
2629 \series medium
2630 \shape up
2631 \size normal
2632 \emph off
2633 \bar no
2634 \noun off
2635 \color none
2636 LyXがLaTeXを呼び出す際、LyXはLaTeXに、かりにエラーがあったとしても楽観的に無視して先に進むように指示します。その後LyXは、LaTeXの実行ログ
2637 ファイルを事後処理用に使います。ログファイルを分析したのち、LyXはエラーを一覧表示するダイアログを表示します。エラーのうちどれかをクリックすると、LyXファイ
2638 ル中、そのエラーの発生した場所に表示を移動します
2639 \begin_inset Foot
2640 status collapsed
2641
2642 \begin_layout Plain Layout
2643
2644 \family roman
2645 \series medium
2646 \shape up
2647 \size normal
2648 \emph off
2649 \bar no
2650 \noun off
2651 \color none
2652 正確にいうと、通常は、です。ログファイルの分析は難しい仕事ですので、LyXはつねに正しい行に連れて行ってくれるとは限りません。ときには、LaTeXがある行にエラ
2653 ーがあると報告したとしても、実際のエラーはそれよりも前であることもあります。これは、プログラムで閉じ括弧を忘れたときに似ていなくもありません。エラーは表示されま
2654 すが、実際にエラーのある場所よりも後ろでエラーが報告されるのです。
2655 \end_layout
2656
2657 \end_inset
2658
2659
2660 \family default
2661 \series default
2662 \shape default
2663 \size default
2664 \emph default
2665 \bar default
2666 \noun default
2667 \color inherit
2668
2669 \end_layout
2670
2671 \begin_layout Standard
2672
2673 \family roman
2674 \series medium
2675 \shape up
2676 \size normal
2677 \emph off
2678 \bar no
2679 \noun off
2680 \color none
2681 人によっては、ログファイルを直接ご覧になりたいかもしれません。これは、
2682 \begin_inset Flex MenuItem
2683 status collapsed
2684
2685 \begin_layout Plain Layout
2686
2687 \family roman
2688 \series medium
2689 \shape up
2690 \size normal
2691 \emph off
2692 \bar no
2693 \noun off
2694 \color none
2695 文書\SpecialChar \menuseparator
2696 LaTeXログ
2697 \end_layout
2698
2699 \end_inset
2700
2701 で見ることができます。エラーメッセージや警告には、よく見かけるものがいくつかありますので、それらをここに収録しておきます。ここにないエラーや警告に関しては、La
2702 TeX関連の良書を参照してください。
2703 \end_layout
2704
2705 \begin_layout Itemize
2706
2707 \family typewriter
2708 \begin_inset Flex Code
2709 status collapsed
2710
2711 \begin_layout Plain Layout
2712
2713 \family typewriter
2714 LaTeX Warning
2715 \end_layout
2716
2717 \end_inset
2718
2719
2720 \family roman
2721 \series medium
2722 \shape up
2723 \size normal
2724 \emph off
2725 \bar no
2726 \noun off
2727 \color none
2728
2729 \begin_inset Newline newline
2730 \end_inset
2731
2732 これで始まるメッセージは、LaTeXコード自体を「デバッグ」するための警告メッセージです。相互参照や参考文献を追加したり変更した場合に、もう一度LaTeXを実行
2733 する必要があることを知らせるために、このようなメッセージが表示されます。このメッセージは、だいたいにおいて無視しても大丈夫です。
2734 \end_layout
2735
2736 \begin_layout Itemize
2737
2738 \family typewriter
2739 \begin_inset Flex Code
2740 status collapsed
2741
2742 \begin_layout Plain Layout
2743
2744 \family typewriter
2745 LaTeX Font Warning
2746 \end_layout
2747
2748 \end_inset
2749
2750
2751 \family roman
2752 \series medium
2753 \shape up
2754 \size normal
2755 \emph off
2756 \bar no
2757 \noun off
2758 \color none
2759
2760 \begin_inset Newline newline
2761 \end_inset
2762
2763 LaTeXがフォントを見つけられなかったと言う警告メッセージです。多くの場合、このメッセージの後に、LaTeXが使用した代替フォントに関する情報が続きます。これ
2764 も無視して構いません。
2765 \end_layout
2766
2767 \begin_layout Itemize
2768
2769 \family roman
2770 \series medium
2771 \shape up
2772 \size normal
2773 \emph off
2774 \bar no
2775 \noun off
2776 \color none
2777 \begin_inset Flex Code
2778 status collapsed
2779
2780 \begin_layout Plain Layout
2781
2782 \family typewriter
2783 Overfull 
2784 \backslash
2785 hbox
2786 \end_layout
2787
2788 \end_inset
2789
2790
2791 \begin_inset Newline newline
2792 \end_inset
2793
2794 LaTeXは、
2795 \family default
2796 \series default
2797 \shape default
2798 \size default
2799 \emph on
2800 \bar default
2801 \noun default
2802 \color inherit
2803 ほぼどんなときでも
2804 \family roman
2805 \series medium
2806 \shape up
2807 \size normal
2808 \emph off
2809 \bar no
2810 \noun off
2811 \color none
2812 この警告を吐き出します。これは、一行が長すぎて右余白にはみ出してしまったという警告ですが、ほとんどの場合、最終出力を見ても判別できないくらい(せいぜい1ポイント
2813 か2ポイント)です。あるいは1文字か2文字右余白に出ているくらいです。LaTeXは、どんな文書を書いても、少なくとも一つはこのメッセージを出すようです。
2814 \begin_inset Newline newline
2815 \end_inset
2816
2817 このメッセージは無視しても大丈夫です。何か行が長すぎるような問題があれば、目で見ればわかります。出力を目で確認してください
2818 \begin_inset Foot
2819 status collapsed
2820
2821 \begin_layout Plain Layout
2822 あるいは、
2823 \begin_inset Flex MenuItem
2824 status collapsed
2825
2826 \begin_layout Plain Layout
2827 文書\SpecialChar \menuseparator
2828 設定
2829 \end_layout
2830
2831 \end_inset
2832
2833 で「draft」オプションを指定する方法もあります。こうすると、LaTeXは、overfullの発生した行の余白に黒い四角を描画します。
2834 \end_layout
2835
2836 \end_inset
2837
2838
2839 \end_layout
2840
2841 \begin_layout Itemize
2842
2843 \family typewriter
2844 \begin_inset Flex Code
2845 status collapsed
2846
2847 \begin_layout Plain Layout
2848
2849 \family typewriter
2850 Underfull 
2851 \backslash
2852 hbox
2853 \end_layout
2854
2855 \end_inset
2856
2857
2858 \begin_inset Newline newline
2859 \end_inset
2860
2861
2862 \family roman
2863 \series medium
2864 \shape up
2865 \size normal
2866 \emph off
2867 \bar no
2868 \noun off
2869 \color none
2870 これは上の警告と違ってあまり出てきません。なぜだかは分かりませんが、LaTeXは1行を短めにする印字するよりは、長めにする方が好きなようです。
2871 \end_layout
2872
2873 \begin_layout Itemize
2874 \begin_inset Flex Code
2875 status collapsed
2876
2877 \begin_layout Plain Layout
2878
2879 \family typewriter
2880 Overfull 
2881 \backslash
2882 vbox
2883 \end_layout
2884
2885 \end_inset
2886
2887
2888 \family typewriter
2889
2890 \begin_inset Flex Code
2891 status collapsed
2892
2893 \begin_layout Plain Layout
2894
2895 \family typewriter
2896 Underfull 
2897 \backslash
2898 vbox
2899 \end_layout
2900
2901 \end_inset
2902
2903
2904 \family default
2905
2906 \begin_inset Newline newline
2907 \end_inset
2908
2909
2910 \family roman
2911 \series medium
2912 \shape up
2913 \size normal
2914 \emph off
2915 \bar no
2916 \noun off
2917 \color none
2918 ページ区切りに問題があったという警告です。この場合も、出力を目で確認してください。何か問題があれば、見てすぐわかります。
2919 \end_layout
2920
2921 \begin_layout Itemize
2922
2923 \family typewriter
2924 \begin_inset Flex Code
2925 status collapsed
2926
2927 \begin_layout Plain Layout
2928
2929 \family typewriter
2930 LaTeX Error: File 
2931 \begin_inset Quotes els
2932 \end_inset
2933
2934 Xxxx
2935 \begin_inset Quotes ers
2936 \end_inset
2937
2938  not found
2939 \end_layout
2940
2941 \end_inset
2942
2943
2944 \family roman
2945 \series medium
2946 \shape up
2947 \size normal
2948 \emph off
2949 \bar no
2950 \noun off
2951 \color none
2952
2953 \begin_inset Newline newline
2954 \end_inset
2955
2956 ファイル「Xxxx」が、システムに導入されていません。これは通常、文書が必要としているLaTeXパッケージに、導入済でないものがある場合に現れます。プリアンブル
2957 に変更を加えておらず、
2958 \begin_inset Flex Code
2959 status collapsed
2960
2961 \begin_layout Plain Layout
2962
2963 \family typewriter
2964
2965 \backslash
2966 usepackage{}
2967 \end_layout
2968
2969 \end_inset
2970
2971 コマンドも使用していないとすれば、LyXが読み込もうしているパッケージに存在しないものがあるということです。
2972 \family default
2973 \series default
2974 \shape default
2975 \size default
2976 \emph default
2977 \bar default
2978 \noun default
2979 \color inherit
2980
2981 \begin_inset Flex MenuItem
2982 status collapsed
2983
2984 \begin_layout Plain Layout
2985 ヘルプ\SpecialChar \menuseparator
2986 LaTeXの設定
2987 \end_layout
2988
2989 \end_inset
2990
2991
2992 \family roman
2993 \series medium
2994 \shape up
2995 \size normal
2996 \emph off
2997 \bar no
2998 \noun off
2999 \color none
3000 を使用して、LyXが認識しているパッケージの一覧を得てください。このファイルは、(
3001 \begin_inset Flex MenuItem
3002 status collapsed
3003
3004 \begin_layout Plain Layout
3005
3006 \family roman
3007 \series medium
3008 \shape up
3009 \size normal
3010 \emph off
3011 \bar no
3012 \noun off
3013 \color none
3014 ツール\SpecialChar \menuseparator
3015 再設定
3016 \end_layout
3017
3018 \end_inset
3019
3020 を使用して)LyXの再設定を行うたびに更新され、どのパッケージが検出されたか、それらのパッケージが何をするものかを表示します。
3021 \begin_inset Newline newline
3022 \end_inset
3023
3024
3025 \family sans
3026 \series default
3027 \shape default
3028 \size default
3029 \emph default
3030 \bar default
3031 \noun default
3032 \color inherit
3033
3034 \begin_inset Flex Code
3035 status collapsed
3036
3037 \begin_layout Plain Layout
3038
3039 \family sans
3040
3041 \backslash
3042 usepackage{}
3043 \end_layout
3044
3045 \end_inset
3046
3047
3048 \family roman
3049 \series medium
3050 \shape up
3051 \size normal
3052 \emph off
3053 \bar no
3054 \noun off
3055 \color none
3056 コマンドを使っていて、肝心のパッケージが導入されていない場合には、ご自身で導入する必要があります。
3057 \end_layout
3058
3059 \begin_layout Itemize
3060
3061 \family typewriter
3062 \begin_inset Flex Code
3063 status collapsed
3064
3065 \begin_layout Plain Layout
3066
3067 \family typewriter
3068 LaTeX Error: Unknown option
3069 \end_layout
3070
3071 \end_inset
3072
3073
3074 \family roman
3075 \series medium
3076 \shape up
3077 \size normal
3078 \emph off
3079 \bar no
3080 \noun off
3081 \color none
3082
3083 \begin_inset Newline newline
3084 \end_inset
3085
3086 このように始まるエラーメッセージは、パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです。パッケージの取扱説明書をご確認くだ
3087 さい。
3088 \end_layout
3089
3090 \begin_layout Itemize
3091
3092 \family typewriter
3093 \begin_inset Flex Code
3094 status collapsed
3095
3096 \begin_layout Plain Layout
3097
3098 \family typewriter
3099 Undefined control sequence
3100 \end_layout
3101
3102 \end_inset
3103
3104
3105 \family roman
3106 \series medium
3107 \shape up
3108 \size normal
3109 \emph off
3110 \bar no
3111 \noun off
3112 \color none
3113
3114 \begin_inset Newline newline
3115 \end_inset
3116
3117 お使いの文書にLaTeXコードを挿入した際、打ち間違いをしてしまうと、このようなメッセージが表示されます。あるいは、パッケージを読み込ませるのを忘れたのかもしれ
3118 ません。いずれにしても、このメッセージは、あなたが未定義のコマンドを使用したことを示しています。
3119 \end_layout
3120
3121 \begin_layout Standard
3122
3123 \family roman
3124 \series medium
3125 \shape up
3126 \size normal
3127 \emph off
3128 \bar no
3129 \noun off
3130 \color none
3131 これ以外にも、エラーメッセージや警告メッセージがあります。一般に、読んで意味がすぐにわかるものは、LaTeXのメッセージです。何を言っているのかさっぱりわからな
3132 いものもありますが、通常これらは、TeXのメッセージであり、それが何を意味しているのか、どのように解読すればいいのか、
3133 \family default
3134 \series default
3135 \shape default
3136 \size default
3137 \emph on
3138 \bar default
3139 \noun default
3140 \color inherit
3141 まったく
3142 \family roman
3143 \series medium
3144 \shape up
3145 \size normal
3146 \emph off
3147 \bar no
3148 \noun off
3149 \color none
3150 手がかりがありません。誰もわからないのです。
3151 \end_layout
3152
3153 \begin_layout Standard
3154
3155 \family roman
3156 \series medium
3157 \shape up
3158 \size normal
3159 \emph off
3160 \bar no
3161 \noun off
3162 \color none
3163 エラーメッセージが表示された場合は、つねに以下のチェックリストにしたがった方がよいでしょう。
3164 \end_layout
3165
3166 \begin_layout Enumerate
3167
3168 \family roman
3169 \series medium
3170 \shape up
3171 \size normal
3172 \emph off
3173 \bar no
3174 \noun off
3175 \color none
3176 ご自分で挿入したLaTeXコードに打ち間違いがないかどうか確かめる。
3177 \end_layout
3178
3179 \begin_layout Enumerate
3180
3181 \family roman
3182 \series medium
3183 \shape up
3184 \size normal
3185 \emph off
3186 \bar no
3187 \noun off
3188 \color none
3189 打ち間違いがなければ、コマンドを正しく使ったかどうか確かめる。
3190 \end_layout
3191
3192 \begin_layout Enumerate
3193
3194 \family roman
3195 \series medium
3196 \shape up
3197 \size normal
3198 \emph off
3199 \bar no
3200 \noun off
3201 \color none
3202 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には---特に
3203 \begin_inset Flex Code
3204 status collapsed
3205
3206 \begin_layout Plain Layout
3207
3208 \family roman
3209 \series medium
3210 \shape up
3211 \size normal
3212 \emph off
3213 \bar no
3214 \noun off
3215 \color none
3216 Missing 
3217 \backslash
3218 begin{document}
3219 \end_layout
3220
3221 \end_inset
3222
3223 が表示されているならば---、プリアンブルにエラーがあることを意味します。プリアンブルのデバックを行ってください。
3224 \end_layout
3225
3226 \begin_layout Enumerate
3227
3228 \family roman
3229 \series medium
3230 \shape up
3231 \size normal
3232 \emph off
3233 \bar no
3234 \noun off
3235 \color none
3236 プリアンブルに何も追加せず、文書にLaTeXコードをまったく挿入しなかった場合には、LaTeX頒布版自体をまず疑ってください。導入されていないパッケージを探しだ
3237 して、導入してください。
3238 \end_layout
3239
3240 \begin_layout Enumerate
3241
3242 \family roman
3243 \series medium
3244 \shape up
3245 \size normal
3246 \emph off
3247 \bar no
3248 \noun off
3249 \color none
3250 導入されていないパッケージはなかったものとしましょう。LyXを微調整するオプションを使用していますか。特に、手動で
3251 \begin_inset Flex Code
3252 status collapsed
3253
3254 \begin_layout Plain Layout
3255
3256 \family sans
3257 Protected
3258 \begin_inset space ~
3259 \end_inset
3260
3261 Blank
3262 \end_layout
3263
3264 \end_inset
3265
3266
3267 \begin_inset Flex Code
3268 status collapsed
3269
3270 \begin_layout Plain Layout
3271
3272 \family sans
3273 Linebreak
3274 \end_layout
3275
3276 \end_inset
3277
3278
3279 \family sans
3280 \series default
3281 \shape default
3282 \size default
3283 \emph default
3284 \bar default
3285 \noun default
3286 \color inherit
3287
3288 \begin_inset Flex Code
3289 status collapsed
3290
3291 \begin_layout Plain Layout
3292
3293 \family sans
3294 Pagebreak
3295 \end_layout
3296
3297 \end_inset
3298
3299
3300 \family roman
3301 \series medium
3302 \shape up
3303 \size normal
3304 \emph off
3305 \bar no
3306 \noun off
3307 \color none
3308 などをたくさん挿入するなど、微調整オプションを
3309 \family default
3310 \series default
3311 \shape default
3312 \size default
3313 \emph on
3314 \bar default
3315 \noun default
3316 \color inherit
3317 悪用
3318 \family roman
3319 \series medium
3320 \shape up
3321 \size normal
3322 \emph off
3323 \bar no
3324 \noun off
3325 \color none
3326 していませんか。適切な段落環境を使用する代わりに、これらを使用してその場をしのごうとしていませんか。
3327 \end_layout
3328
3329 \begin_layout Enumerate
3330
3331 \family roman
3332 \series medium
3333 \shape up
3334 \size normal
3335 \emph off
3336 \bar no
3337 \noun off
3338 \color none
3339 微調整オプションはまったく使用しておらず、規則に乗っ取って作業していたものとしましょう。何か曲芸のようなことをしようとはしていませんか。数式や表中で、たとえば表
3340 のセルに図を入れるなど、おかしなことをしようとしていませんか。
3341 \end_layout
3342
3343 \begin_layout Enumerate
3344 LaTeXが改行位置を見つけられないほど長い一節がありませんか。既定では、改行するために単語間に空白をたくさん追加することを、LaTeXはかなり嫌います。可能で
3345 あれば、問題が生じないように段落を修正するのが望ましいでしょう。それが難しければ、LaTeXが改行しやすく(sloppy)なるように、その部分を
3346 \family typewriter
3347
3348 \begin_inset Flex Code
3349 status collapsed
3350
3351 \begin_layout Plain Layout
3352
3353 \family typewriter
3354
3355 \backslash
3356 sloppypar
3357 \end_layout
3358
3359 \end_inset
3360
3361
3362 \family default
3363 で囲んでください。
3364 \end_layout
3365
3366 \begin_layout Enumerate
3367
3368 \family roman
3369 \series medium
3370 \shape up
3371 \size normal
3372 \emph off
3373 \bar no
3374 \noun off
3375 \color none
3376 入れ子の階層を深くしすぎていませんか。LyXは、(今のところ)環境の入れ子の階層が制限内にあるかチェックしません。かりに、環境を17段の入れ子にしたりしていたら
3377 、それが原因です(LaTeXの上限は5段です)。
3378 \end_layout
3379
3380 \begin_layout Enumerate
3381
3382 \family roman
3383 \series medium
3384 \shape up
3385 \size normal
3386 \emph off
3387 \bar no
3388 \noun off
3389 \color none
3390 エラーメッセージは発生しないけれども、出力がひどいものとしましょう。図表が幅が広すぎたり長すぎてページに収まらない場合には、
3391 \end_layout
3392
3393 \begin_deeper
3394 \begin_layout Enumerate
3395
3396 \family roman
3397 \series medium
3398 \shape up
3399 \size normal
3400 \emph off
3401 \bar no
3402 \noun off
3403 \color none
3404 図がページに合うように大きさを変える、
3405 \end_layout
3406
3407 \begin_layout Enumerate
3408
3409 \family roman
3410 \series medium
3411 \shape up
3412 \size normal
3413 \emph off
3414 \bar no
3415 \noun off
3416 \color none
3417 表がページに合うように削る、
3418 \end_layout
3419
3420 \begin_layout Standard
3421
3422 \family roman
3423 \series medium
3424 \shape up
3425 \size normal
3426 \emph off
3427 \bar no
3428 \noun off
3429 \color none
3430 などの手段を採る必要があります。
3431 \end_layout
3432
3433 \end_deeper
3434 \begin_layout Enumerate
3435 他に出力におかしいところがあり、曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば、何がおかしいのか確定的なことは言えません。
3436 \end_layout
3437
3438 \begin_layout Standard
3439
3440 \family roman
3441 \series medium
3442 \shape up
3443 \size normal
3444 \emph off
3445 \bar no
3446 \noun off
3447 \color none
3448 これらすべてが役に立たないとすれば、
3449 \family default
3450 \series default
3451 \shape default
3452 \size default
3453 \emph on
3454 \bar default
3455 \noun default
3456 \color inherit
3457 ひょっとしたら
3458 \family roman
3459 \series medium
3460 \shape up
3461 \size normal
3462 \emph off
3463 \bar no
3464 \noun off
3465 \color none
3466 LyXのバグを発見したのかもしれません‥‥。
3467 \end_layout
3468
3469 \begin_layout Chapter
3470 補完ツール
3471 \end_layout
3472
3473 \begin_layout Section
3474 BibTeXによる参照文献のカスタマイズ
3475 \end_layout
3476
3477 \begin_layout Standard
3478 BibTeXの基本的な使用法は、『
3479 \emph on
3480 ユーザーの手引き
3481 \emph default
3482 』の
3483 \emph on
3484 参考文献データベース(BibTeX)
3485 \emph default
3486 の節に説明があります。以下の各小節では、LyXでサポートされている参考文献の特別な機能について説明することとします。
3487 \end_layout
3488
3489 \begin_layout Subsection
3490 他の引用様式
3491 \end_layout
3492
3493 \begin_layout Standard
3494 標準のBibTeXは、引用された著作を参照するのに、([12]のように)数字を使用します。しかし、多くの科学分野で、これとは異なる引用様式が用いられています。も
3495 っともよく見られるのは、著者-出版年様式(例:Knuth 1984a)です。LyXは、この様式を提供する2つのパッケージ
3496 \begin_inset Flex Code
3497 status collapsed
3498
3499 \begin_layout Plain Layout
3500 natbib
3501 \end_layout
3502
3503 \end_inset
3504
3505
3506 \begin_inset Flex Code
3507 status collapsed
3508
3509 \begin_layout Plain Layout
3510 jurabib
3511 \end_layout
3512
3513 \end_inset
3514
3515 をサポートしています。これらのパッケージには、それぞれ長所短所がありますが、ここでは詳細に立ち入る紙幅がありません。単純な著者-出版年様式(あるいは著者-番号)
3516 様式が欲しい場合や、無数にある
3517 \begin_inset Flex Code
3518 status collapsed
3519
3520 \begin_layout Plain Layout
3521 natbib
3522 \end_layout
3523
3524 \end_inset
3525
3526 用スタイルファイルのうちどれかを使用したい場合には、定評のある
3527 \begin_inset Flex Code
3528 status collapsed
3529
3530 \begin_layout Plain Layout
3531 natbib
3532 \end_layout
3533
3534 \end_inset
3535
3536 パッケージがおそらくよい選択でしょう。短縮タイトルによる参照や
3537 \emph on
3538 ibid.
3539 \emph default
3540 など、特別な機能が必要な場合には、
3541 \begin_inset Flex Code
3542 status collapsed
3543
3544 \begin_layout Plain Layout
3545 jurabib
3546 \end_layout
3547
3548 \end_inset
3549
3550 パッケージの利用を考えるとよいかもしれません。
3551 \end_layout
3552
3553 \begin_layout Standard
3554 LyXでの両パッケージの取扱い方は、ほぼ同じです。
3555 \begin_inset Flex MenuItem
3556 status collapsed
3557
3558 \begin_layout Plain Layout
3559 文書\SpecialChar \menuseparator
3560 設定
3561 \end_layout
3562
3563 \end_inset
3564
3565 メニューを開き、
3566 \begin_inset Flex MenuItem
3567 status collapsed
3568
3569 \begin_layout Plain Layout
3570 参考文献
3571 \end_layout
3572
3573 \end_inset
3574
3575 項目から
3576 \begin_inset Flex MenuItem
3577 status collapsed
3578
3579 \begin_layout Plain Layout
3580 Natbib
3581 \end_layout
3582
3583 \end_inset
3584
3585 オプションか
3586 \begin_inset Flex MenuItem
3587 status collapsed
3588
3589 \begin_layout Plain Layout
3590 Jurabib
3591 \end_layout
3592
3593 \end_inset
3594
3595 オプションを選択してください。これらのパッケージによって、引用ダイアログに機能が追加され、参照の様式が選択できるようになります(「Knuth 1984」、「Kn
3596 uth (1984)」、「Knuth, 1984」、「1984」など)。両パッケージは、専用にデザインされたスタイルファイルを必要とすることに注意してください。
3597 両者ともそれ自身のスタイルファイルを同梱していますが、他にもたくさんの追加スタイルファイルがありますし、
3598 \begin_inset Flex Code
3599 status collapsed
3600
3601 \begin_layout Plain Layout
3602 natbib
3603 \end_layout
3604
3605 \end_inset
3606
3607 に至っては、対話的なスタイルファイルビルダーさえ存在します
3608 \begin_inset Foot
3609 status collapsed
3610
3611 \begin_layout Plain Layout
3612 \begin_inset Flex URL
3613 status open
3614
3615 \begin_layout Plain Layout
3616
3617 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3618 \end_layout
3619
3620 \end_inset
3621
3622 をご参照ください。
3623 \end_layout
3624
3625 \end_inset
3626
3627
3628 \end_layout
3629
3630 \begin_layout Subsection
3631 節分けされた参考文献
3632 \end_layout
3633
3634 \begin_layout Standard
3635 場合によっては、参考文献をいくつかの節に分ける必要があることがあります。たとえば、あなたが歴史家であるとすれば、出典と学術文献を分ける機能は、おそらく「必需品」
3636 でさえあります。残念ながら、BibTeX自身ではこのようなことができません。しかし、適切なLaTeXパッケージの助けを借りると、BibTeXをこのような必要性を
3637 満たすように拡張することができます。
3638 \end_layout
3639
3640 \begin_layout Standard
3641 LyXは、このようなパッケージの一つである
3642 \begin_inset Flex Code
3643 status collapsed
3644
3645 \begin_layout Plain Layout
3646 bibtopic
3647 \end_layout
3648
3649 \end_inset
3650
3651
3652 \begin_inset Foot
3653 status collapsed
3654
3655 \begin_layout Plain Layout
3656 \begin_inset Flex URL
3657 status open
3658
3659 \begin_layout Plain Layout
3660
3661 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3662 \end_layout
3663
3664 \end_inset
3665
3666 から入手可能です。
3667 \end_layout
3668
3669 \end_inset
3670
3671 をそのままでサポートします。このパッケージの長所は、(
3672 \begin_inset Flex Code
3673 status collapsed
3674
3675 \begin_layout Plain Layout
3676 multibib
3677 \end_layout
3678
3679 \end_inset
3680
3681 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです。そのかわりに、参考文献の違う節には、その節向けの項目を収録した別の参考文献デ
3682 ータベースを用意する必要があります。たとえば、参考文献を「出典」の節と「学術文献」の節に分けたい場合には、それぞれの参考文献データベース、たとえば
3683 \begin_inset Flex Code
3684 status collapsed
3685
3686 \begin_layout Plain Layout
3687 souces.bib
3688 \end_layout
3689
3690 \end_inset
3691
3692
3693 \begin_inset Flex Code
3694 status collapsed
3695
3696 \begin_layout Plain Layout
3697 scientific.bib
3698 \end_layout
3699
3700 \end_inset
3701
3702 とを作成する必要があります。
3703 \end_layout
3704
3705 \begin_layout Standard
3706 \begin_inset Flex MenuItem
3707 status collapsed
3708
3709 \begin_layout Plain Layout
3710 文書\SpecialChar \menuseparator
3711 設定
3712 \end_layout
3713
3714 \end_inset
3715
3716 を開いて
3717 \begin_inset Flex MenuItem
3718 status collapsed
3719
3720 \begin_layout Plain Layout
3721 参考文献
3722 \end_layout
3723
3724 \end_inset
3725
3726 の下の
3727 \begin_inset Flex MenuItem
3728 status collapsed
3729
3730 \begin_layout Plain Layout
3731 節分けされた参考文献
3732 \end_layout
3733
3734 \end_inset
3735
3736 をチェックしてください。すると、参考文献の各節に一つずつ、複数の参考文献を挿入することができます。上記の例では、BibTeX参考文献
3737 \begin_inset Flex Code
3738 status collapsed
3739
3740 \begin_layout Plain Layout
3741 sources.bib
3742 \end_layout
3743
3744 \end_inset
3745
3746 と二つめの参考文献データベース
3747 \begin_inset Flex Code
3748 status collapsed
3749
3750 \begin_layout Plain Layout
3751 scientific.bib
3752 \end_layout
3753
3754 \end_inset
3755
3756 を挿入します。各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です。くわえて、参考文献の節に、指定したデータベースの「引用されたすべての参照」を載せる
3757 (これが既定です)か、「引用されなかったすべての参照」を載せるか、あるいは「すべての参照」を載せるかを選択することができます。これは、もし参考文献を「本文に引用
3758 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に、便利でありましょう。各節の見出しは、通常の節や小節として入れることができ
3759 ます。
3760 \begin_inset Flex Code
3761 status collapsed
3762
3763 \begin_layout Plain Layout
3764 bibtopic
3765 \end_layout
3766
3767 \end_inset
3768
3769 は、参考文献用の見出しを取り除いてしまいますので、手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください)。
3770 \end_layout
3771
3772 \begin_layout Subsection
3773 複数の参考文献
3774 \end_layout
3775
3776 \begin_layout Standard
3777 文書の節ごとあるいは章ごとの参考文献など、複数の参考文献はBibTeX自身ではサポートされていません。しかしながら、もし若干の
3778 \begin_inset Flex Code
3779 status collapsed
3780
3781 \begin_layout Plain Layout
3782 TeXコード
3783 \end_layout
3784
3785 \end_inset
3786
3787 (第
3788 \begin_inset CommandInset ref
3789 LatexCommand ref
3790 reference "sec:LaTeXコードを挿入する"
3791
3792 \end_inset
3793
3794 節を参照)を利用することを厭わなければ、LyXで節分けされた参考文献を作るのに使用されている(前節を参照)
3795 \begin_inset Flex Code
3796 status collapsed
3797
3798 \begin_layout Plain Layout
3799 bibtopic
3800 \end_layout
3801
3802 \end_inset
3803
3804 パッケージが、この課題を解決する簡単な方法を提供します
3805 \begin_inset Foot
3806 status collapsed
3807
3808 \begin_layout Plain Layout
3809 ほかに、
3810 \begin_inset Flex Code
3811 status collapsed
3812
3813 \begin_layout Plain Layout
3814 chapterbib
3815 \end_layout
3816
3817 \end_inset
3818
3819
3820 \begin_inset Flex Code
3821 status collapsed
3822
3823 \begin_layout Plain Layout
3824 bibunits
3825 \end_layout
3826
3827 \end_inset
3828
3829 パッケージを利用する方法もあります。
3830 \end_layout
3831
3832 \end_inset
3833
3834
3835 \end_layout
3836
3837 \begin_layout Standard
3838 まず
3839 \begin_inset Flex MenuItem
3840 status collapsed
3841
3842 \begin_layout Plain Layout
3843 文書\SpecialChar \menuseparator
3844 設定
3845 \end_layout
3846
3847 \end_inset
3848
3849 に行って
3850 \begin_inset Flex MenuItem
3851 status collapsed
3852
3853 \begin_layout Plain Layout
3854 参考文献
3855 \end_layout
3856
3857 \end_inset
3858
3859 の下の
3860 \begin_inset Flex MenuItem
3861 status collapsed
3862
3863 \begin_layout Plain Layout
3864 節分けされた参考文献
3865 \end_layout
3866
3867 \end_inset
3868
3869 を有効にしてください。つぎに文書中において、参考文献(BibTeX参考文献本体を含む)の入った節を
3870 \begin_inset Flex Code
3871 status collapsed
3872
3873 \begin_layout Plain Layout
3874
3875 \backslash
3876 begin{btUnit}
3877 \end_layout
3878
3879 \end_inset
3880
3881
3882 \begin_inset Flex Code
3883 status collapsed
3884
3885 \begin_layout Plain Layout
3886
3887 \backslash
3888 end{btUnit}
3889 \end_layout
3890
3891 \end_inset
3892
3893 のあいだにはさまなくてはなりません(これらのコマンドはTeXコードとして挿入する必要があります)。参考文献には、現在位置の
3894 \begin_inset Flex Code
3895 status collapsed
3896
3897 \begin_layout Plain Layout
3898 btUnit
3899 \end_layout
3900
3901 \end_inset
3902
3903 において引用されたすべての参照が含まれることになります。
3904 \series bold
3905 (註)
3906 \series default
3907 この方法を用いる場合には、すべての参照はいずれかの
3908 \begin_inset Flex Code
3909 status collapsed
3910
3911 \begin_layout Plain Layout
3912 btUnit
3913 \end_layout
3914
3915 \end_inset
3916
3917 内部になくてはなりません。また、
3918 \begin_inset Flex Code
3919 status collapsed
3920
3921 \begin_layout Plain Layout
3922 btUnit
3923 \end_layout
3924
3925 \end_inset
3926
3927 は入れ子構造にすることができません。
3928 \end_layout
3929
3930 \begin_layout Section
3931 複合文書
3932 \end_layout
3933
3934 \begin_layout Subsection
3935 一般的な操作
3936 \end_layout
3937
3938 \begin_layout Standard
3939 たくさんの節を含んだ大きなファイルで作業をする場合、文書をいくつかのファイルに分割した方が往々にして便利ですし、場合によっては、表部分にはしょっちゅう変更が加え
3940 られるけれども、その前の文章はつねに同じであるようなケースもあるでしょう。このような場合には、複合文書を利用することを、まずご検討ください。たとえば、科学論文は
3941 通常、導入部・所見・結果・議論・結論の五つの節から成ります。これら各節を別々のLyXファイルにして、タイトル・著者・概要・参考文献等と、これら五つのインクルード
3942 \begin_inset Foot
3943 status collapsed
3944
3945 \begin_layout Plain Layout
3946
3947 \series bold
3948 (訳註)
3949 \series default
3950 「取り込む」の意です。原語「include」に対する訳語として、プログラミング用語の「インクルードする」以外に適語がないので、ここではプログラミング用語をそのま
3951 ま使用します。
3952 \end_layout
3953
3954 \end_inset
3955
3956 ファイルを持つ、もう一つ別の「マスター」ファイルを作成するようにすることができます。これらの各ファイルは、単にマスターファイルにインクルードされるだけでなく、単
3957 独でも出力したり印刷したりすることのできる完全なLyXファイルであるように注意することが重要です。しかも、これらの各ファイルは、同じ文書クラスでなくてはなりませ
3958 ん。articleクラスとbookクラスを混在させるようなことはなさらないでください。LaTeXファイルをインクルードすることもできますが、このファイルにはプリ
3959 アンブルがあってはなりません(
3960 \family typewriter
3961
3962 \backslash
3963 begin{document}
3964 \family default
3965 行とその前のすべて、および
3966 \family typewriter
3967
3968 \backslash
3969 end{documen
3970 \family default
3971 t}行は削除しておかなければなりません)。さもないと、DVIファイルを作成する際にエラーが発生するでしょう。
3972 \end_layout
3973
3974 \begin_layout Standard
3975 LyXでは、
3976 \family sans
3977 挿入\SpecialChar \menuseparator
3978 ファイル\SpecialChar \menuseparator
3979 子文書
3980 \family default
3981 で簡単にファイルをインクルードすることができます。このメニューを選んでクリックすると、カーソルの現在位置に小さな枠が挿入されます。この枠をクリックすると、ダイア
3982 ログが現れるので、そこでインクルードするファイルとインクルード方法を選択することができます。
3983 \end_layout
3984
3985 \begin_layout Standard
3986 ファイル選択ボックスは、いまや自明でしょう。インクルード方法には、「include」・「input」・「verbatim」の三つがあります。「include」と
3987 「input」の違いは、正確にはLaTeXの達人にしか意味のないものですが、ほとんどの人にとって意味のある違いといえば、「include」されたファイルは新規頁
3988 から組版されるのに対し、「input」されたファイルは現在のページから組版される点です。
3989 \end_layout
3990
3991 \begin_layout Standard
3992 一般に、マスターファイルは、組版前に完全なLaTeXファイルに変換されますが、インクルードされるファイルは、プリアンブル情報をまったく持たないLaTeXファイル
3993 に変換されます。
3994 \end_layout
3995
3996 \begin_layout Standard
3997 「verbatim」インクルードファイルでは、ファイルの内容がそのまま(つまり「
3998 \begin_inset Flex Code
3999 status collapsed
4000
4001 \begin_layout Plain Layout
4002 verbatim
4003 \end_layout
4004
4005 \end_inset
4006
4007 」モードで)固定幅タイプライタフォントで組版されます。通常、このファイルの空白は、通常のLyXでの空白の取扱いとは違って、連続した複数の空白がそのまま出力される
4008 ものの、単なる見えない空白です。ただし、
4009 \family sans
4010
4011 \begin_inset Flex MenuItem
4012 status collapsed
4013
4014 \begin_layout Plain Layout
4015
4016 \family sans
4017 出力の空白に印付けをする
4018 \end_layout
4019
4020 \end_inset
4021
4022
4023 \family default
4024 チェックボックスを有効にすると、空白が存在することを明確にするために空白の印が出力されます。
4025 \end_layout
4026
4027 \begin_layout Subsection
4028 ファイル間の相互参照
4029 \end_layout
4030
4031 \begin_layout Standard
4032 \begin_inset Box Shadowbox
4033 position "t"
4034 hor_pos "c"
4035 has_inner_box 1
4036 inner_pos "t"
4037 use_parbox 0
4038 use_makebox 0
4039 width "100col%"
4040 special "none"
4041 height "1in"
4042 height_special "totalheight"
4043 status open
4044
4045 \begin_layout Plain Layout
4046 この節の内容は、すでに古くなっています。既定のマスター文書についてと、マスターが開いているときに子文書をどう開くかについて記述する必要があります。[[要修正]]
4047 \end_layout
4048
4049 \end_inset
4050
4051
4052 \end_layout
4053
4054 \begin_layout Standard
4055 異なるファイル間に相互参照を設定することも可能です。まず、すべての関係するファイルを開いてください。例として、2つのファイルを扱う場合を考え、各ファイルをA・B
4056 と呼びます。BがAにインクルードされるファイルだとします。Aにラベルを入れて、Bで参照したいとしましょう。文書Bで相互参照ダイアログを開いて、使用する「バッファ
4057 」を選んでください。
4058 \end_layout
4059
4060 \begin_layout Subsection
4061 すべての子文書での参考文献
4062 \end_layout
4063
4064 \begin_layout Standard
4065 \begin_inset Box Shadowbox
4066 position "t"
4067 hor_pos "c"
4068 has_inner_box 1
4069 inner_pos "t"
4070 use_parbox 0
4071 use_makebox 0
4072 width "100col%"
4073 special "none"
4074 height "1in"
4075 height_special "totalheight"
4076 status open
4077
4078 \begin_layout Plain Layout
4079 この節も更新が必要です。この点に関する内容がwikiにあるので、それをここにコピーすることも可か。
4080 \end_layout
4081
4082 \end_inset
4083
4084
4085 \end_layout
4086
4087 \begin_layout Standard
4088 すべての子文書の全文献項目を含んだ参考文献一覧をコピーし、それをコメントに変更してください。このようにすることで、LyXは.bibファイルを見つけることができ、参
4089 考文献一覧を見えるようにせずとも簡単に参照を挿入することができるようになります。
4090 \end_layout
4091
4092 \begin_layout Standard
4093 参考文献一覧がコメントにあるために、LaTeXはそれを使用しないので、参照は[1]のようには表示されないで[?]のように表示されます。ひとつの解決法として、コメ
4094 ントをインクルードするLaTeXパッケージの
4095 \begin_inset Flex Code
4096 status collapsed
4097
4098 \begin_layout Plain Layout
4099 comment
4100 \end_layout
4101
4102 \end_inset
4103
4104 を使用して、ファイルを別々に処理する方法があります。そのためには、すべての子文書のプリアンブルに以下を書き加えてください。
4105 \end_layout
4106
4107 \begin_layout LyX-Code
4108
4109 \backslash
4110 usepackage{comment}
4111 \end_layout
4112
4113 \begin_layout LyX-Code
4114
4115 \backslash
4116 includecomment{comment}
4117 \end_layout
4118
4119 \begin_layout Standard
4120 \begin_inset Flex URL
4121 status collapsed
4122
4123 \begin_layout Plain Layout
4124
4125 http://wiki.lyx.org/FAQ/Unsorted#toc31
4126 \end_layout
4127
4128 \end_inset
4129
4130 も参照してください。
4131 \end_layout
4132
4133 \begin_layout Section
4134 装飾的なヘッダ・フッタ
4135 \end_layout
4136
4137 \begin_layout Standard
4138 既定のページレイアウトは、どちらかといえば素っ気ないものです。
4139 \begin_inset Flex Code
4140 status collapsed
4141
4142 \begin_layout Plain Layout
4143 article
4144 \end_layout
4145
4146 \end_inset
4147
4148 文書クラスの場合には、ページの下の真ん中にページ番号がつくだけです。この取扱説明書はKOMA-scriptのbookクラスなので、すこしは凝ってますが、ほんとう
4149 に着飾るには、『
4150 \emph on
4151 ユーザーの手引き
4152 \emph default
4153 』に述べられているように、文書ページスタイルを「装飾的(fancy)」に設定する必要があります。この節では、望んだとおりの効果を得るために、LaTeXプリアンブ
4154 ルに挿入する必要のあるLaTeXコードについて解説します。
4155 \end_layout
4156
4157 \begin_layout Standard
4158 ページへッダは、「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています。フッタも同様に3つのフィールド
4159 に分類されています。これらのフィールドをもっとも簡単に設定するLaTeXコマンドには、
4160 \family typewriter
4161
4162 \begin_inset Flex Code
4163 status collapsed
4164
4165 \begin_layout Plain Layout
4166
4167 \family typewriter
4168
4169 \backslash
4170 lhead
4171 \end_layout
4172
4173 \end_inset
4174
4175
4176 \family default
4177
4178 \family typewriter
4179
4180 \begin_inset Flex Code
4181 status collapsed
4182
4183 \begin_layout Plain Layout
4184
4185 \family typewriter
4186
4187 \backslash
4188 chead
4189 \end_layout
4190
4191 \end_inset
4192
4193
4194 \family default
4195
4196 \family typewriter
4197
4198 \begin_inset Flex Code
4199 status collapsed
4200
4201 \begin_layout Plain Layout
4202
4203 \family typewriter
4204
4205 \backslash
4206 rhead
4207 \end_layout
4208
4209 \end_inset
4210
4211
4212 \family default
4213
4214 \begin_inset Flex Code
4215 status collapsed
4216
4217 \begin_layout Plain Layout
4218
4219 \backslash
4220 lfoot
4221 \end_layout
4222
4223 \end_inset
4224
4225 などがあります。かりに、各ページの左上端に自分の名前を入れたいものとしましょう。次のようなコマンドをプリアンブルに入れるだけです。
4226 \end_layout
4227
4228 \begin_layout Standard
4229
4230 \family typewriter
4231
4232 \backslash
4233 lhead{物書 はじめ}
4234 \end_layout
4235
4236 \begin_layout Standard
4237 これで自分の名前が左上に現れます。フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には、空の引数を持つコマンドを入
4238 れるだけです。すなわち、
4239 \end_layout
4240
4241 \begin_layout Standard
4242
4243 \family typewriter
4244
4245 \backslash
4246 cfoot{}
4247 \begin_inset Newline newline
4248 \end_inset
4249
4250
4251 \family default
4252 とします。
4253 \end_layout
4254
4255 \begin_layout Standard
4256 もっと美しくしてみましょう。節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ、ページ番号を(4ページのように)右上に、自分の名前を左下に、日
4257 付を右下に入れます。以下のコマンドをプリアンブルに入れます。
4258 \end_layout
4259
4260 \begin_layout Standard
4261
4262 \family typewriter
4263
4264 \backslash
4265 lhead{第
4266 \backslash
4267 thesection 節}
4268 \end_layout
4269
4270 \begin_layout Standard
4271
4272 \family typewriter
4273
4274 \backslash
4275 chead{}
4276 \end_layout
4277
4278 \begin_layout Standard
4279
4280 \family typewriter
4281
4282 \backslash
4283 rhead{
4284 \backslash
4285 thepage ページ}
4286 \end_layout
4287
4288 \begin_layout Standard
4289
4290 \family typewriter
4291
4292 \backslash
4293 lfoot{物書 はじめ}
4294 \end_layout
4295
4296 \begin_layout Standard
4297
4298 \family typewriter
4299
4300 \backslash
4301 cfoot{}
4302 \end_layout
4303
4304 \begin_layout Standard
4305
4306 \family typewriter
4307
4308 \backslash
4309 rfoot{
4310 \backslash
4311 today}
4312 \end_layout
4313
4314 \begin_layout Standard
4315 コマンド
4316 \family typewriter
4317
4318 \begin_inset Flex Code
4319 status collapsed
4320
4321 \begin_layout Plain Layout
4322
4323 \family typewriter
4324
4325 \backslash
4326 thesecti
4327 \family default
4328 o
4329 \family typewriter
4330 n
4331 \end_layout
4332
4333 \end_inset
4334
4335
4336 \family default
4337
4338 \begin_inset Flex Code
4339 status collapsed
4340
4341 \begin_layout Plain Layout
4342
4343 \family typewriter
4344
4345 \backslash
4346 thepa
4347 \family default
4348 ge
4349 \end_layout
4350
4351 \end_inset
4352
4353 は、それぞれLaTeXの節カウンタおよびページカウンタを取得するもので、これによって現在の節番号とページ番号を印字します。
4354 \begin_inset Flex Code
4355 status collapsed
4356
4357 \begin_layout Plain Layout
4358
4359 \family typewriter
4360
4361 \backslash
4362 tod
4363 \family default
4364 ay
4365 \end_layout
4366
4367 \end_inset
4368
4369 は、今日の日付を印字するものです。
4370 \end_layout
4371
4372 \begin_layout Standard
4373 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます。もし罫線が必要なければ、太さを0にしてください。ヘッダ罫線は、既定では0.4ptの太さであり、
4374 フッタ罫線は0ptです。太さを変更するには、
4375 \family typewriter
4376
4377 \begin_inset Flex Code
4378 status collapsed
4379
4380 \begin_layout Plain Layout
4381
4382 \family typewriter
4383
4384 \backslash
4385 renewcommand{
4386 \backslash
4387 headrulewidth}{0.4pt}
4388 \end_layout
4389
4390 \end_inset
4391
4392
4393 \family default
4394
4395 \family typewriter
4396
4397 \begin_inset Flex Code
4398 status collapsed
4399
4400 \begin_layout Plain Layout
4401
4402 \family typewriter
4403
4404 \backslash
4405 renewcommand{
4406 \backslash
4407 footrulewidth}{0.4pt}
4408 \end_layout
4409
4410 \end_inset
4411
4412
4413 \family default
4414 のようなコマンドを使用してください。
4415 \end_layout
4416
4417 \begin_layout Standard
4418 \begin_inset Flex Code
4419 status collapsed
4420
4421 \begin_layout Plain Layout
4422
4423 \family typewriter
4424
4425 \backslash
4426 thispagestyle{empty}
4427 \end_layout
4428
4429 \end_inset
4430
4431
4432 \begin_inset Flex Code
4433 status collapsed
4434
4435 \begin_layout Plain Layout
4436
4437 \family typewriter
4438
4439 \backslash
4440 thispagestyle{plain}
4441 \end_layout
4442
4443 \end_inset
4444
4445
4446 \begin_inset Flex Code
4447 status collapsed
4448
4449 \begin_layout Plain Layout
4450
4451 \family typewriter
4452
4453 \backslash
4454 thispagestyle{fancy}
4455 \end_layout
4456
4457 \end_inset
4458
4459 のようなコマンドを使えば、各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます。設定を変更したいページに、これらのコマンドをTeXコード
4460 として挿入してください。実は、タイトルページは、その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず、既定でプ
4461 レーン(plain)になるように設定されているのです。
4462 \end_layout
4463
4464 \begin_layout Standard
4465 奇数ページの左上だけに何かを挿入するなど、もっと複雑なコマンドもあるのですが、詳しい解説は
4466 \begin_inset Flex Code
4467 status collapsed
4468
4469 \begin_layout Plain Layout
4470
4471 \family typewriter
4472 fancyhdr
4473 \end_layout
4474
4475 \end_inset
4476
4477 パッケージの取扱説明書をご参照ください(
4478 \begin_inset Flex Code
4479 status collapsed
4480
4481 \begin_layout Plain Layout
4482 fancyhdr.dvi
4483 \end_layout
4484
4485 \end_inset
4486
4487 を探してください)。
4488 \end_layout
4489
4490 \begin_layout Standard
4491 最後の例として、へッダやフッタに画像を挿入できることを取り上げましょう。会社のロゴをページ左上に入れたいものとします。たとえば、
4492 \end_layout
4493
4494 \begin_layout Standard
4495
4496 \family typewriter
4497
4498 \backslash
4499 lhead{
4500 \backslash
4501 resizebox{1in}{!}{
4502 \backslash
4503 includegraphics{logo.eps}}}
4504 \end_layout
4505
4506 \begin_layout Standard
4507 \noindent
4508 とすれば、これを実現できます(文書中に他に画像を挿入していない場合には、
4509 \begin_inset Newline newline
4510 \end_inset
4511
4512
4513 \begin_inset Flex Code
4514 status collapsed
4515
4516 \begin_layout Plain Layout
4517 \noindent
4518
4519 \family typewriter
4520
4521 \backslash
4522 usepackage{graphics}
4523 \end_layout
4524
4525 \end_inset
4526
4527 をプリアンブルに宣言する必要があります)。
4528 \end_layout
4529
4530 \begin_layout Section
4531 箇条書き(記号)ブリットの指定
4532 \begin_inset CommandInset label
4533 LatexCommand label
4534 name "sec:ブリット"
4535
4536 \end_inset
4537
4538
4539 \end_layout
4540
4541 \begin_layout Standard
4542
4543 \noun on
4544 Allan Rae文
4545 \end_layout
4546
4547 \begin_layout Subsection
4548 はじめに
4549 \end_layout
4550
4551 \begin_layout Standard
4552 LyXには、ブリットの形が216個準備されていて、簡単なダイアログから呼び出すことができます。このダイアログを使えば、箇条書き(記号)の各階層で使うブリットの形
4553 を変更することができます。この設定は文書全体に共通なので、段落ごとに別のブリットを指定することはできません
4554 \begin_inset Foot
4555 status collapsed
4556
4557 \begin_layout Plain Layout
4558 正確には可能ですが、手動で行う必要があります。
4559 \end_layout
4560
4561 \end_inset
4562
4563
4564 \end_layout
4565
4566 \begin_layout Subsection
4567 インタフェース
4568 \end_layout
4569
4570 \begin_layout Standard
4571 メニュー項目の
4572 \begin_inset Flex MenuItem
4573 status collapsed
4574
4575 \begin_layout Plain Layout
4576 文書\SpecialChar \menuseparator
4577 設定
4578 \end_layout
4579
4580 \end_inset
4581
4582 を選択してダイアログを開き、
4583 \begin_inset Flex MenuItem
4584 status collapsed
4585
4586 \begin_layout Plain Layout
4587 ブリット
4588 \end_layout
4589
4590 \end_inset
4591
4592 タブを選択してください。
4593 \end_layout
4594
4595 \begin_layout Standard
4596 そのダイアログに、ブリットの形の一覧表があります。
4597 \begin_inset Flex MenuItem
4598 status collapsed
4599
4600 \begin_layout Plain Layout
4601 フォント
4602 \end_layout
4603
4604 \end_inset
4605
4606 と書いてあるドロップダウンメニューで、6つの各ブリット形パネルを切り替えることができます。また、一覧表左の
4607 \begin_inset Flex MenuItem
4608 status collapsed
4609
4610 \begin_layout Plain Layout
4611 階層
4612 \end_layout
4613
4614 \end_inset
4615
4616 パネルは、変更したい階層を選択するものです。
4617 \begin_inset Flex MenuItem
4618 status collapsed
4619
4620 \begin_layout Plain Layout
4621 任意のブリット
4622 \end_layout
4623
4624 \end_inset
4625
4626 では、指定したいLaTeX表現を入力することができます。任意のブリットを指定した場合には、そのコマンドが必要とするパッケージをLaTeXプリアンブルで指定する必
4627 要があります。
4628 \end_layout
4629
4630 \begin_layout Standard
4631 6つのパネルは、それぞれが必要とするパッケージによって分類されています。下記は、フォント名とLaTeXパッケージの対応表です。
4632 \end_layout
4633
4634 \begin_layout Standard
4635 \align center
4636 \begin_inset Tabular
4637 <lyxtabular version="3" rows="7" columns="2">
4638 <features rotate="0" tabularvalignment="middle">
4639 <column alignment="center" valignment="top" width="0pt">
4640 <column alignment="center" valignment="top" width="0pt">
4641 <row>
4642 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4643 \begin_inset Text
4644
4645 \begin_layout Plain Layout
4646 フォント
4647 \end_layout
4648
4649 \end_inset
4650 </cell>
4651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4652 \begin_inset Text
4653
4654 \begin_layout Plain Layout
4655
4656 \family roman
4657 \series medium
4658 \shape up
4659 \size normal
4660 \emph off
4661 \bar no
4662 \noun off
4663 \color none
4664 必要とするパッケージ
4665 \end_layout
4666
4667 \end_inset
4668 </cell>
4669 </row>
4670 <row>
4671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4672 \begin_inset Text
4673
4674 \begin_layout Plain Layout
4675
4676 \family sans
4677 標準
4678 \end_layout
4679
4680 \end_inset
4681 </cell>
4682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4683 \begin_inset Text
4684
4685 \begin_layout Plain Layout
4686
4687 \series medium
4688 \shape up
4689 \size normal
4690 \emph off
4691 \bar no
4692 \noun off
4693 \color none
4694 LaTeX
4695 \family roman
4696 本体
4697 \end_layout
4698
4699 \end_inset
4700 </cell>
4701 </row>
4702 <row>
4703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4704 \begin_inset Text
4705
4706 \begin_layout Plain Layout
4707
4708 \family sans
4709 \series medium
4710 \shape up
4711 \size normal
4712 \emph off
4713 \bar no
4714 \noun off
4715 \color none
4716 数式
4717 \end_layout
4718
4719 \end_inset
4720 </cell>
4721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4722 \begin_inset Text
4723
4724 \begin_layout Plain Layout
4725
4726 \family typewriter
4727 \series medium
4728 \shape up
4729 \size normal
4730 \emph off
4731 \bar no
4732 \noun off
4733 \color none
4734 amssymb.sty
4735 \end_layout
4736
4737 \end_inset
4738 </cell>
4739 </row>
4740 <row>
4741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4742 \begin_inset Text
4743
4744 \begin_layout Plain Layout
4745
4746 \family sans
4747 \series medium
4748 \shape up
4749 \size normal
4750 \emph off
4751 \bar no
4752 \noun off
4753 \color none
4754 絵文字1
4755 \end_layout
4756
4757 \end_inset
4758 </cell>
4759 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4760 \begin_inset Text
4761
4762 \begin_layout Plain Layout
4763
4764 \family typewriter
4765 \series medium
4766 \shape up
4767 \size normal
4768 \emph off
4769 \bar no
4770 \noun off
4771 \color none
4772 pifont.sty
4773 \end_layout
4774
4775 \end_inset
4776 </cell>
4777 </row>
4778 <row>
4779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4780 \begin_inset Text
4781
4782 \begin_layout Plain Layout
4783
4784 \family sans
4785 \series medium
4786 \shape up
4787 \size normal
4788 \emph off
4789 \bar no
4790 \noun off
4791 \color none
4792 絵文字2
4793 \end_layout
4794
4795 \end_inset
4796 </cell>
4797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4798 \begin_inset Text
4799
4800 \begin_layout Plain Layout
4801
4802 \family typewriter
4803 \series medium
4804 \shape up
4805 \size normal
4806 \emph off
4807 \bar no
4808 \noun off
4809 \color none
4810 pifont.sty
4811 \end_layout
4812
4813 \end_inset
4814 </cell>
4815 </row>
4816 <row>
4817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4818 \begin_inset Text
4819
4820 \begin_layout Plain Layout
4821
4822 \family sans
4823 \series medium
4824 \shape up
4825 \size normal
4826 \emph off
4827 \bar no
4828 \noun off
4829 \color none
4830 絵文字3
4831 \end_layout
4832
4833 \end_inset
4834 </cell>
4835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4836 \begin_inset Text
4837
4838 \begin_layout Plain Layout
4839
4840 \family typewriter
4841 \series medium
4842 \shape up
4843 \size normal
4844 \emph off
4845 \bar no
4846 \noun off
4847 \color none
4848 pifont.sty
4849 \end_layout
4850
4851 \end_inset
4852 </cell>
4853 </row>
4854 <row>
4855 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4856 \begin_inset Text
4857
4858 \begin_layout Plain Layout
4859
4860 \family sans
4861 \series medium
4862 \shape up
4863 \size normal
4864 \emph off
4865 \bar no
4866 \noun off
4867 \color none
4868 絵文字4
4869 \end_layout
4870
4871 \end_inset
4872 </cell>
4873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4874 \begin_inset Text
4875
4876 \begin_layout Plain Layout
4877
4878 \family typewriter
4879 \series medium
4880 \shape up
4881 \size normal
4882 \emph off
4883 \bar no
4884 \noun off
4885 \color none
4886 pifont.sty
4887 \end_layout
4888
4889 \end_inset
4890 </cell>
4891 </row>
4892 </lyxtabular>
4893
4894 \end_inset
4895
4896
4897 \end_layout
4898
4899 \begin_layout Standard
4900 LyXは、ユーザーが導入されていないパッケージのブリットを使用したとしても、警告を発しません。ファイルを閲覧したり印刷したりしようとしたときにLaTeXエラーが
4901 出るようならば、パッケージが導入されていない可能性が大です
4902 \begin_inset Foot
4903 status collapsed
4904
4905 \begin_layout Plain Layout
4906 LyXが、パッケージがなくてもブリットを使用することを許すのは、編集をここで行ったとしても、別のところへエクスポートする可能性があるからです。
4907 \end_layout
4908
4909 \end_inset
4910
4911
4912 \end_layout
4913
4914 \begin_layout Subsection
4915 使用法
4916 \end_layout
4917
4918 \begin_layout Standard
4919 変更したいブリット階層を選んで、ブリットの形と大きさを選んでください。何らかの変更を加えたとしても、LyX上には反映されませんが、文書の表示を行えば確認されます
4920 \begin_inset Foot
4921 status collapsed
4922
4923 \begin_layout Plain Layout
4924 もし
4925 \emph on
4926 本当に
4927 \emph default
4928 段落ごとに異なるブリットの形を使いたいならば、TeXコードを使って少し手を汚す必要があります。この場合も、ブリット選択ダイアログを使えば、さまざまな形のLaTe
4929 Xコードを確認することができるので手助けとなるでしょう。任意に設定した段落をつくるには、以下のような選択肢があります。
4930 \end_layout
4931
4932 \begin_layout Plain Layout
4933 \begin_inset ERT
4934 status open
4935
4936 \begin_layout Plain Layout
4937
4938
4939 \backslash
4940 let
4941 \backslash
4942 savelabelitemi=
4943 \backslash
4944 labelitemi
4945 \end_layout
4946
4947 \end_inset
4948
4949
4950 \end_layout
4951
4952 \begin_layout Plain Layout
4953 \begin_inset ERT
4954 status open
4955
4956 \begin_layout Plain Layout
4957
4958
4959 \backslash
4960 renewcommand
4961 \backslash
4962 labelitemi[0]{
4963 \backslash
4964 small
4965 \backslash
4966 (
4967 \backslash
4968 sharp
4969 \backslash
4970 )}
4971 \end_layout
4972
4973 \end_inset
4974
4975
4976 \end_layout
4977
4978 \begin_layout Itemize
4979 特定の階層の新しいブリット形を指定するには、LaTeXコマンド
4980 \begin_inset Flex Code
4981 status collapsed
4982
4983 \begin_layout Plain Layout
4984
4985 \family typewriter
4986
4987 \backslash
4988 renewcommand{}{}
4989 \end_layout
4990
4991 \end_inset
4992
4993 を使用します。あとで現在のブリット形に戻すことができるように、現在のブリット形を保存しておく必要もあります。ここで使っている箇条書きでは、第1階層のブリットを変
4994 更するために、以下のLaTeXコードが使用されています。
4995 \end_layout
4996
4997 \begin_deeper
4998 \begin_layout LyX-Code
4999
5000 \family typewriter
5001
5002 \backslash
5003 let
5004 \backslash
5005 savelabelitemi=
5006 \backslash
5007 labelitemi
5008 \end_layout
5009
5010 \begin_layout LyX-Code
5011
5012 \family typewriter
5013
5014 \backslash
5015 renewcommand
5016 \backslash
5017 labelitemi[0]{
5018 \backslash
5019 small
5020 \backslash
5021 (
5022 \backslash
5023 sharp
5024 \backslash
5025 )}
5026 \end_layout
5027
5028 \end_deeper
5029 \begin_layout Itemize
5030 箇条書き(記号)の階層は、
5031 \begin_inset Flex Code
5032 status collapsed
5033
5034 \begin_layout Plain Layout
5035
5036 \backslash
5037 labelitem
5038 \end_layout
5039
5040 \end_inset
5041
5042 コマンドの一部にローマ数字で指定されていることに注意してください。
5043 \end_layout
5044
5045 \begin_layout Itemize
5046 \begin_inset ERT
5047 status open
5048
5049 \begin_layout Plain Layout
5050
5051 [
5052 \backslash
5053 (
5054 \backslash
5055 star
5056 \backslash
5057 )]
5058 \end_layout
5059
5060 \end_inset
5061
5062 各項目のブリットを指定するには、角括弧で囲んだブリット形を、行頭に
5063 \begin_inset Flex Code
5064 status collapsed
5065
5066 \begin_layout Plain Layout
5067 TeXコード
5068 \end_layout
5069
5070 \end_inset
5071
5072 として挿入してください。たとえば、この項目の行頭には
5073 \family typewriter
5074
5075 \begin_inset Flex Code
5076 status collapsed
5077
5078 \begin_layout Plain Layout
5079
5080 \family typewriter
5081 [
5082 \backslash
5083 (
5084 \backslash
5085 star
5086 \backslash
5087 )]
5088 \end_layout
5089
5090 \end_inset
5091
5092
5093 \family default
5094 が指定されています。
5095 \end_layout
5096
5097 \begin_layout Plain Layout
5098 \begin_inset ERT
5099 status open
5100
5101 \begin_layout Plain Layout
5102
5103
5104 \backslash
5105 renewcommand
5106 \backslash
5107 labelitemi[0]{
5108 \backslash
5109 savelabelitemi}
5110 \end_layout
5111
5112 \end_inset
5113
5114
5115 \end_layout
5116
5117 \begin_layout Plain Layout
5118 文書全体で使用するブリット形が有効であるようにするために、labelitemを元の設定に戻す必要があります。そのためには、以下のようにします。
5119 \end_layout
5120
5121 \begin_layout LyX-Code
5122
5123 \family typewriter
5124
5125 \backslash
5126 renewcommand
5127 \backslash
5128 labelitemi[0]{
5129 \backslash
5130 savelabelitemi}
5131 \end_layout
5132
5133 \end_inset
5134
5135
5136 \end_layout
5137
5138 \begin_layout Chapter
5139 LyXとインターネット網
5140 \end_layout
5141
5142 \begin_layout Standard
5143 LyX has long supported the export of documents to various web-friendly formats,
5144  such as HTML.
5145  Before verson 2.0, however, HTML export was always accomplished by the use
5146  of external converters.
5147 \begin_inset Foot
5148 status collapsed
5149
5150 \begin_layout Plain Layout
5151 For details on the use of external converters with LyX, see the 
5152 \emph on
5153 Converters
5154 \emph default
5155  section of the Customization manual.
5156 \end_layout
5157
5158 \end_inset
5159
5160  These fall into two large groups: there are converters that use LaTeX as
5161  an intermediate format, such as 
5162 \begin_inset Flex Code
5163 status collapsed
5164
5165 \begin_layout Plain Layout
5166
5167 \lang english
5168 htlatex
5169 \end_layout
5170
5171 \end_inset
5172
5173
5174 \begin_inset Flex Code
5175 status collapsed
5176
5177 \begin_layout Plain Layout
5178
5179 \lang english
5180 html2latex
5181 \end_layout
5182
5183 \end_inset
5184
5185 , and 
5186 \begin_inset Flex Code
5187 status collapsed
5188
5189 \begin_layout Plain Layout
5190
5191 \lang english
5192 plastex
5193 \end_layout
5194
5195 \end_inset
5196
5197 , relying upon LyX to produce the LaTeX; and there is a converter that works
5198  directly on LyX files, 
5199 \begin_inset Flex Code
5200 status collapsed
5201
5202 \begin_layout Plain Layout
5203
5204 \lang english
5205 eLyXer
5206 \end_layout
5207
5208 \end_inset
5209
5210 .
5211  All of these have different advantages and disadvantages.
5212  
5213 \end_layout
5214
5215 \begin_layout Standard
5216 The LaTeX-based converters have the advantage that, in principle, they know
5217  everything about the exported document that LaTeX does.
5218  Such converters do not care, for example, if a certain block of code was
5219  produced by LyX or was Evil Red Text.
5220  These converters know about 
5221 \begin_inset Flex Code
5222 status collapsed
5223
5224 \begin_layout Plain Layout
5225
5226 \lang english
5227 aux
5228 \end_layout
5229
5230 \end_inset
5231
5232  files, counters, and references, and can often make use of the 
5233 \begin_inset Flex Code
5234 status collapsed
5235
5236 \begin_layout Plain Layout
5237
5238 \lang english
5239 bbl
5240 \end_layout
5241
5242 \end_inset
5243
5244  files generated by BibTeX.
5245  On the other hand, LaTeX is a very hard language to parse---it is sometimes
5246  said that only TeX itself understands TeX---and LaTeX-based converters
5247  will often choke on what seem to be quite simple constructs; complex ones
5248  can throw them completely, and as of this writing, for example, the 
5249 \emph on
5250 Embedded Objects
5251 \emph default
5252  manual will not export with 
5253 \begin_inset Flex Code
5254 status collapsed
5255
5256 \begin_layout Plain Layout
5257
5258 \lang english
5259 htlatex
5260 \end_layout
5261
5262 \end_inset
5263
5264 , though the others will.
5265  The other issue concerns how math is handled.
5266  These converters typically convert the formulae into little pictures that
5267  are then linked from the HTML document.
5268  Since these are actually generated by LaTeX, they are accurate.
5269  But they do not scale well, and just getting them to look as if they are
5270  actually meant to be in your document---so that the font sizes seem to
5271  be roughly the same---can be a challenge.
5272 \end_layout
5273
5274 \begin_layout Standard
5275 Alex Fernandez's 
5276 \begin_inset Flex Code
5277 status collapsed
5278
5279 \begin_layout Plain Layout
5280
5281 \lang english
5282 eLyXer
5283 \end_layout
5284
5285 \end_inset
5286
5287  (
5288 \begin_inset CommandInset href
5289 LatexCommand href
5290 name "http://elyxer.nongnu.org/"
5291 target "http://elyxer.nongnu.org/"
5292
5293 \end_inset
5294
5295 ) solves some of these problems.
5296  In particular, the formulae it produces scale perfectly, since it renders
5297  math using a combination of HTML and CSS rather than converting the formulae
5298  to images.
5299  But even moderately complex formula are rendered less well than with 
5300 \begin_inset Flex Code
5301 status collapsed
5302
5303 \begin_layout Plain Layout
5304
5305 \lang english
5306 htlatex
5307 \end_layout
5308
5309 \end_inset
5310
5311 ; this reflects the limitations of HTML.
5312 \begin_inset Foot
5313 status collapsed
5314
5315 \begin_layout Plain Layout
5316 That said, 
5317 \begin_inset Flex Code
5318 status collapsed
5319
5320 \begin_layout Plain Layout
5321
5322 \lang english
5323 eLyXer
5324 \end_layout
5325
5326 \end_inset
5327
5328  can also use jsMath and MathJax for equations, but this setting is only
5329  available globally and requires one to have access to a server that runs
5330  the backend.
5331 \end_layout
5332
5333 \end_inset
5334
5335  More importantly (as of version 1.1.1, at least), 
5336 \begin_inset Flex Code
5337 status collapsed
5338
5339 \begin_layout Plain Layout
5340
5341 \lang english
5342 eLyXer
5343 \end_layout
5344
5345 \end_inset
5346
5347  has limited support for math macros and no support for user-defined paragraph
5348  or character styles.
5349  These limitations make 
5350 \begin_inset Flex Code
5351 status collapsed
5352
5353 \begin_layout Plain Layout
5354
5355 \lang english
5356 eLyXer
5357 \end_layout
5358
5359 \end_inset
5360
5361  unsuitable for many of the documents LyX users produce.
5362  In principle, of course, these problems could be solved, but the LyX developers
5363  have decided to follow a different path and have made LyX itself capable
5364  of writing XHTML, just as it is capable of writing LaTeX, DocBook, and
5365  plaintext.
5366 \end_layout
5367
5368 \begin_layout Standard
5369 As of this writing, XHTML output remains under development and should probably
5370  be regarded as 
5371 \begin_inset Quotes eld
5372 \end_inset
5373
5374 experimental
5375 \begin_inset Quotes erd
5376 \end_inset
5377
5378 .
5379 \begin_inset Foot
5380 status collapsed
5381
5382 \begin_layout Plain Layout
5383 The file 
5384 \begin_inset Flex Code
5385 status collapsed
5386
5387 \begin_layout Plain Layout
5388
5389 \lang english
5390 development/HTML.notes
5391 \end_layout
5392
5393 \end_inset
5394
5395 , which can be found in the LyX source tree or 
5396 \begin_inset CommandInset href
5397 LatexCommand href
5398 name "accessed online"
5399 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5400
5401 \end_inset
5402
5403 , usually contains up-to-date information about the state of XHTML output.
5404  See also the list of XHTML bugs on 
5405 \begin_inset CommandInset href
5406 LatexCommand href
5407 name "the bug tracker"
5408 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"
5409
5410 \end_inset
5411
5412 .
5413 \end_layout
5414
5415 \end_inset
5416
5417  Still, the developers have chosen this approach because it has several
5418  potential advantages over the other two.
5419 \end_layout
5420
5421 \begin_layout Standard
5422 These advantages are primarily due to the fact that the XHTML output routines,
5423  since they are part of LyX, know everything LyX knows about the document
5424  being exported.
5425 \begin_inset Foot
5426 status collapsed
5427
5428 \begin_layout Plain Layout
5429 Another advantage is that, since these routines are internal to LyX, they
5430  are immune to changes in LyX's file format, or to changes in the semantics
5431  of existing insets.
5432 \end_layout
5433
5434 \end_inset
5435
5436  So they know about the table of contents (as displayed in the outline),
5437  about the counters associated with different paragraph styles, and about
5438  user-defined styles.
5439  The XHTML output routines know what LyX knows about internationalization,
5440  too, so they will output 
5441 \begin_inset Quotes eld
5442 \end_inset
5443
5444 Chapter 1
5445 \begin_inset Quotes erd
5446 \end_inset
5447
5448  or 
5449 \begin_inset Quotes eld
5450 \end_inset
5451
5452 Kapitel 1
5453 \begin_inset Quotes erd
5454 \end_inset
5455
5456 , depending upon the language in effect at the time.
5457  
5458 \end_layout
5459
5460 \begin_layout Standard
5461 Quite generally, the output routines know what LyX knows about document
5462  layout, that is, about how the document is to be rendered on screen.
5463  We use this information when we output the document as XHTML.
5464  In particular, LyX 
5465 \emph on
5466 automatically
5467 \emph default
5468  generates CSS style information corresponding to the layout information
5469  it uses to render the document on screen: if section headings are supposed
5470  to be sans-serif and bold as seen in LyX, then (by default) they will be
5471  sans-serif and bold when viewed in a web browser, too.
5472  And this is true not just for pre-defined styles, like Section, but for
5473  any style, including user-defined styles.
5474  Indeed, the XHTML output routines make no distinction between user-defined
5475  paragraph and character styles and LyX's own pre-defined styles: in each
5476  case, everything LyX knows about the styles is contained in the layout
5477  files.
5478  And much the same is true as regards pre-defined textual insets, such as
5479  footnotes, and various custom insets.
5480  
5481 \end_layout
5482
5483 \begin_layout Standard
5484 The result is that XHTML output can be customized and extended in exactly
5485  the same way LaTeX output can be customized and extended: through layout
5486  files and modules.
5487  See chapter five of the 
5488 \emph on
5489 Customization 
5490 \emph default
5491 manual for the details.
5492 \end_layout
5493
5494 \begin_layout Standard
5495 The remainder of this chapter contains more detailed information on XHTML
5496  output, its limitations, and ways to work around those limitations.
5497 \end_layout
5498
5499 \begin_layout Section
5500 Math Output in XHTML
5501 \end_layout
5502
5503 \begin_layout Standard
5504 LyX offers four choices for how math is rendered.
5505  These have various advantages and disadvantages:
5506 \end_layout
5507
5508 \begin_layout Itemize
5509 MathML
5510 \begin_inset Newline newline
5511 \end_inset
5512
5513 MathML is a dialect of XML designed specifically for mathematics on the
5514  web, and it typically renders very well in browsers that support it.
5515  The disadvantage is that not all browsers support MathML, and support is
5516  not complete even in the Gecko-based browsers, such as Firefox.
5517 \begin_inset Newline newline
5518 \end_inset
5519
5520 If LyX is unable to render a formula as MathML---for example, if the formula
5521  uses the 
5522 \begin_inset Flex Code
5523 status collapsed
5524
5525 \begin_layout Plain Layout
5526
5527 \lang english
5528 xymatrix
5529 \end_layout
5530
5531 \end_inset
5532
5533  package or ERT---then it will instead output the formula as an image.
5534  
5535 \end_layout
5536
5537 \begin_layout Itemize
5538 HTML
5539 \begin_inset Newline newline
5540 \end_inset
5541
5542 As mentioned above, 
5543 \begin_inset Flex Code
5544 status collapsed
5545
5546 \begin_layout Plain Layout
5547
5548 \lang english
5549 elyxer
5550 \end_layout
5551
5552 \end_inset
5553
5554  outputs math as HTML, styled by CSS.
5555 \begin_inset Foot
5556 status collapsed
5557
5558 \begin_layout Plain Layout
5559 LyX has borrowed some of the CSS for its HTML output from 
5560 \begin_inset Flex Code
5561 status collapsed
5562
5563 \begin_layout Plain Layout
5564
5565 \lang english
5566 elyxer
5567 \end_layout
5568
5569 \end_inset
5570
5571 .
5572 \end_layout
5573
5574 \end_inset
5575
5576  For simple formulae, this can work quite well, though with more complicated
5577  formulae it tends to break down.
5578  Still, this method has the advantage that it is very widely supported and
5579  so it may be appropriate for documents that contain only a little, fairly
5580  simple math.
5581 \begin_inset Newline newline
5582 \end_inset
5583
5584 If Lyx is unable to render a formula as HTML---for example, if the formula
5585  uses the 
5586 \begin_inset Flex Code
5587 status collapsed
5588
5589 \begin_layout Plain Layout
5590
5591 \lang english
5592 xymatrix
5593 \end_layout
5594
5595 \end_inset
5596
5597  package or ERT---then it will instead output the formula as an image.
5598  
5599 \end_layout
5600
5601 \begin_layout Itemize
5602 Images
5603 \begin_inset Newline newline
5604 \end_inset
5605
5606 Like 
5607 \begin_inset Flex Code
5608 status collapsed
5609
5610 \begin_layout Plain Layout
5611
5612 \lang english
5613 htlatex
5614 \end_layout
5615
5616 \end_inset
5617
5618 , LyX will output formulae as images, the very same images, in fact, that
5619  are used for instant preview.
5620 \begin_inset Foot
5621 status collapsed
5622
5623 \begin_layout Plain Layout
5624 Instant preview does 
5625 \emph on
5626 not 
5627 \emph default
5628 have to be on for images to be output, however.
5629 \end_layout
5630
5631 \end_inset
5632
5633  The advantage to this method is that the images are simply generated by
5634  LaTeX, so they are very accurate.
5635  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5636  so they do not scale terribly well, and one cannot copy them, etc.
5637  (As of this writing, there are also problems about equation numbering.
5638  See 
5639 \begin_inset CommandInset href
5640 LatexCommand href
5641 name "bug 6894"
5642 target "http://www.lyx.org/trac/ticket/6894"
5643
5644 \end_inset
5645
5646 .)
5647 \begin_inset Newline newline
5648 \end_inset
5649
5650 The size of the images can be controlled by setting the 
5651 \begin_inset Quotes eld
5652 \end_inset
5653
5654 Math Images Scaling
5655 \begin_inset Quotes erd
5656 \end_inset
5657
5658  parameter under 
5659 \begin_inset Flex MenuItem
5660 status collapsed
5661
5662 \begin_layout Plain Layout
5663
5664 \lang english
5665 Document\SpecialChar \menuseparator
5666 Settings\SpecialChar \menuseparator
5667 Output
5668 \end_layout
5669
5670 \end_inset
5671
5672 .
5673 \begin_inset Foot
5674 status collapsed
5675
5676 \begin_layout Plain Layout
5677 For those who want to know, this controls the resolution of the image in
5678  dots per inch and is based upon a default of 75 dpi.
5679 \end_layout
5680
5681 \end_inset
5682
5683
5684 \begin_inset Newline newline
5685 \end_inset
5686
5687 If LyX for some reason fails to create an image for a formula (e.g., if a
5688  required LaTeX package is not installed), then it will fall back to outputing
5689  the raw LaTeX.
5690 \end_layout
5691
5692 \begin_layout Itemize
5693 LaTeX
5694 \begin_inset Newline newline
5695 \end_inset
5696
5697 Finally, LyX will happily output math as LaTeX.
5698  As well as being the output of last resort, this method can be used with
5699  such tools as 
5700 \begin_inset CommandInset href
5701 LatexCommand href
5702 name "jsMath"
5703 target "http://www.math.union.edu/~dpvc/jsMath/"
5704
5705 \end_inset
5706
5707 , which uses JavaScript to render LaTeX embedded in HTML documents.
5708  LyX wraps the LaTeX in either a 
5709 \begin_inset Flex Code
5710 status collapsed
5711
5712 \begin_layout Plain Layout
5713
5714 \lang english
5715 span
5716 \end_layout
5717
5718 \end_inset
5719
5720  (for inline formulas) or 
5721 \begin_inset Flex Code
5722 status collapsed
5723
5724 \begin_layout Plain Layout
5725
5726 \lang english
5727 div
5728 \end_layout
5729
5730 \end_inset
5731
5732  (for displayed formulas) with 
5733 \begin_inset Flex Code
5734 status collapsed
5735
5736 \begin_layout Plain Layout
5737
5738 \lang english
5739 class='math'
5740 \end_layout
5741
5742 \end_inset
5743
5744 , as is required for jsMath.
5745 \end_layout
5746
5747 \begin_layout Standard
5748 One of these output methods must be selected under 
5749 \begin_inset Flex MenuItem
5750 status collapsed
5751
5752 \begin_layout Plain Layout
5753
5754 \lang english
5755 Document\SpecialChar \menuseparator
5756 Settings\SpecialChar \menuseparator
5757 Output
5758 \end_layout
5759
5760 \end_inset
5761
5762 .
5763  By default, LyX outputs MathML.
5764  This is a document-wide setting, therefore.
5765 \end_layout
5766
5767 \begin_layout Standard
5768 Eventually, LyX will offer the user the option to select an alternate output
5769  method for a particular inset, say, one that isn't being rendered very
5770  well by MathML.
5771 \begin_inset Foot
5772 status collapsed
5773
5774 \begin_layout Plain Layout
5775 That said, since LyX falls back to images if the inset contains ERT, then
5776  one can force output as an image by putting some harmless ERT into the
5777  math, for example: 
5778 \begin_inset Formula $a=b\relax$
5779 \end_inset
5780
5781 .
5782 \end_layout
5783
5784 \end_inset
5785
5786
5787 \end_layout
5788
5789 \begin_layout Section
5790 Bibliography and Citations
5791 \end_layout
5792
5793 \begin_layout Standard
5794 XHTML output fully supports bibliographies and citations.
5795  
5796 \end_layout
5797
5798 \begin_layout Standard
5799 Citation labels are generated by the same machinery that generates LyX's
5800  on-screen labels, so the labels will look in the output much as they do
5801  in LyX, though better.
5802  If you are using numerical citations, then LyX will output numerical labels,
5803  such as [1] or [17], rather than simply showing the citation key in square
5804  brackets, as it does on-screen.
5805  If you are using author-year citations, then LyX will add lowercase letters
5806  to the years, just as BibTeX does, if it finds more than one citation for
5807  a given author-year combination.
5808  The labels will be printed with the bibliography entries.
5809  Note that there is, at present, no way to customize the appearance of the
5810  labels, for example, to choose between square brackets and parentheses.
5811 \end_layout
5812
5813 \begin_layout Standard
5814 Bibliography output is handled by the same machinery that handles the presentati
5815 on of reference information in the citation dialog, so you will see in the
5816  XHTML output pretty much what you would see if you were to look at a given
5817  entry in the citation dialog.
5818  The formatting can be customized in your layout file or, preferably, in
5819  a module.
5820  See the 
5821 \emph on
5822 Customization
5823 \emph default
5824  manual for the details.
5825 \end_layout
5826
5827 \begin_layout Standard
5828 The main defect at present is that cross-referenced information is printed
5829  with every entry with which it is associated.
5830  So you can see things like this:
5831 \end_layout
5832
5833 \begin_layout Quote
5834 Jason Stanley, 
5835 \begin_inset Quotes eld
5836 \end_inset
5837
5838 Context and Logical Form
5839 \begin_inset Quotes erd
5840 \end_inset
5841
5842 , in 
5843 \emph on
5844 Language in Context: Selected Essays
5845 \emph default
5846  (Oxford: Oxford University Press, 2007), pp.
5847  30--68.
5848 \end_layout
5849
5850 \begin_layout Quote
5851 Jason Stanley, 
5852 \begin_inset Quotes eld
5853 \end_inset
5854
5855 Semantics in Context
5856 \begin_inset Quotes erd
5857 \end_inset
5858
5859 , in 
5860 \emph on
5861 Language in Context: Selected Essays
5862 \emph default
5863  (Oxford: Oxford University Press, 2007), pp.
5864  201--30.
5865 \end_layout
5866
5867 \begin_layout Standard
5868 This should be fixed before long.
5869 \end_layout
5870
5871 \begin_layout Standard
5872 There is no support at present for sectioned bibliographies.
5873  If you have multiple bibliographies, then LyX will print the same bibliography
5874  over and over.
5875 \end_layout
5876
5877 \begin_layout Section
5878 Indexes
5879 \end_layout
5880
5881 \begin_layout Standard
5882 LyX will happily export indexes as XHTML, but with certain limitations at
5883  the moment.
5884 \end_layout
5885
5886 \begin_layout Standard
5887 Index export will be most reliable when you do not attempt to use the fancy
5888  constructs that are described in the section on indexes in the 
5889 \emph on
5890 User's Guide
5891 \emph default
5892 .
5893 \begin_inset Foot
5894 status collapsed
5895
5896 \begin_layout Plain Layout
5897 The main issue here is that LyX itself does not really handle these.
5898  It just lets you enter what you would have to enter in raw LaTeX.
5899 \end_layout
5900
5901 \end_inset
5902
5903  We'll describe how they are handled using the subsection headings from
5904  that section.
5905 \end_layout
5906
5907 \begin_layout Itemize
5908 Grouping Index Entries (aka, sub-entries): LyX makes an effort to support
5909  these, but the entries must be separated by 
5910 \begin_inset Quotes eld
5911 \end_inset
5912
5913  ! 
5914 \begin_inset Quotes erd
5915 \end_inset
5916
5917 , that is, there must be spaces around the exclamation point.
5918  This is because it is otherwise too difficult to check for escaped exclamation
5919  points, ones in math, and so forth.
5920 \end_layout
5921
5922 \begin_layout Itemize
5923 Page Ranges: There is no support at all for page ranges, since these make
5924  no sense with XHMTL.
5925  Instead, you will just get two index entries, one at either end.
5926 \end_layout
5927
5928 \begin_layout Itemize
5929 Cross-referencing: There is no support for cross-referencing.
5930  If LyX finds an entry containing the 
5931 \begin_inset Quotes eld
5932 \end_inset
5933
5934 |see\SpecialChar \ldots{}
5935
5936 \begin_inset Quotes erd
5937 \end_inset
5938
5939  construct, it is just dropped, and the rest is treated as an ordinary index
5940  entry.
5941 \end_layout
5942
5943 \begin_layout Itemize
5944 Index Entry Order: LyX does support attempts to fix the sorting order.
5945  It will take what is before the first `@' it finds and use that for sorting,
5946  taking what follows the first `@' to be the actual entry.
5947  At present, LyX does not check for escaped `@', so do not try to index
5948  email addresses.
5949 \end_layout
5950
5951 \begin_layout Itemize
5952 Index Entry Layout: You can format entries by using the text style dialog,
5953  or by using any other method available within LyX itself.
5954  There is no support for constructs like: 
5955 \begin_inset Quotes eld
5956 \end_inset
5957
5958 entry|textbf
5959 \begin_inset Quotes erd
5960 \end_inset
5961
5962 .
5963  Indeed, if LyX finds a pipe symbol, `|', in an entry, it will delete it
5964  and everything that follows it.
5965 \end_layout
5966
5967 \begin_layout Itemize
5968 Multiple Indexes: There is no support for multiple indexes.
5969  Rather, all index entries will be printed as one large index.
5970  To avoid our printing several versions of the index, we print only the
5971  main index, so make sure you have one.
5972 \end_layout
5973
5974 \begin_layout Section
5975 Nomenclature and Glossary
5976 \end_layout
5977
5978 \begin_layout Standard
5979 There is at present no support for glossaries.
5980  Adding it would be fairly trivial, and welcome.
5981 \end_layout
5982
5983 \begin_layout Chapter
5984 LyXサーバー
5985 \end_layout
5986
5987 \begin_layout Section
5988 はじめに
5989 \end_layout
5990
5991 \begin_layout Standard
5992 「LyXサーバー」を使用すると、他のプログラムが、LyXと通信したり、LyXコマンドを実行させたり、LyXの内部状態に関する情報を取得したりすることができるよう
5993 になります。これは熟練したユーザー向けの機能ですが、便利なはずです。たとえば、LyXサーバーに書き込むことによって、JabRefのような参考文献管理ソフトが、L
5994 yXに文献引用を「押し込む」ことが可能となります。
5995 \end_layout
5996
5997 \begin_layout Standard
5998 ただし、現在のところ、
5999 \emph on
6000 LyXサーバーはWindowsでは機能しない
6001 \emph default
6002 ことに注意してください
6003 \begin_inset Foot
6004 status collapsed
6005
6006 \begin_layout Plain Layout
6007 これが不可能でなければならない理由はありません。しかし、いまのところ、Windows向け開発者でこの機能を実装しようとする者がいないのです。
6008 \end_layout
6009
6010 \end_inset
6011
6012
6013 \end_layout
6014
6015 \begin_layout Section
6016 LyXサーバーを開始するには
6017 \end_layout
6018
6019 \begin_layout Standard
6020 LyXサーバーは、名前をつけたパイプの対を利用することで機能します。パイプは、通常
6021 \begin_inset Flex Code
6022 status collapsed
6023
6024 \begin_layout Plain Layout
6025 UserDir
6026 \end_layout
6027
6028 \end_inset
6029
6030 の下に作られ(Windowsを除く。Windowsでは、名前を付けた
6031 \emph on
6032 ローカルの
6033 \emph default
6034 パイプは
6035 \begin_inset Flex Code
6036 status collapsed
6037
6038 \begin_layout Plain Layout
6039
6040 \backslash
6041
6042 \backslash
6043 .
6044 \backslash
6045 pipe
6046 \end_layout
6047
6048 \end_inset
6049
6050 に特別なオブジェクトとして置かれます)、「
6051 \begin_inset Flex Code
6052 status collapsed
6053
6054 \begin_layout Plain Layout
6055 .lyxpipe.in
6056 \end_layout
6057
6058 \end_inset
6059
6060 」および「
6061 \begin_inset Flex Code
6062 status collapsed
6063
6064 \begin_layout Plain Layout
6065 .lyxpipe.out
6066 \end_layout
6067
6068 \end_inset
6069
6070 」という名前がついています。外部プログラムは、
6071 \begin_inset Flex Code
6072 status collapsed
6073
6074 \begin_layout Plain Layout
6075 .lyxpipe.in
6076 \end_layout
6077
6078 \end_inset
6079
6080 に書き込みを行い、戻りデータを
6081 \begin_inset Flex Code
6082 status collapsed
6083
6084 \begin_layout Plain Layout
6085 .lyxpipe.out
6086 \end_layout
6087
6088 \end_inset
6089
6090 から読み出します。パイプ名の語幹は、
6091 \begin_inset Flex MenuItem
6092 status collapsed
6093
6094 \begin_layout Plain Layout
6095 ツール\SpecialChar \menuseparator
6096 設定
6097 \end_layout
6098
6099 \end_inset
6100
6101 から、たとえば「
6102 \begin_inset Flex Code
6103 status collapsed
6104
6105 \begin_layout Plain Layout
6106 /home/myhome/lyxpipe
6107 \end_layout
6108
6109 \end_inset
6110
6111 」あるいはWindowsでは「
6112 \begin_inset Flex Code
6113 status collapsed
6114
6115 \begin_layout Plain Layout
6116
6117 \backslash
6118
6119 \backslash
6120 .
6121 \backslash
6122 pipe
6123 \backslash
6124 lyxpipe
6125 \end_layout
6126
6127 \end_inset
6128
6129 」などに設定することができます。サーバーを開始するためには、これを
6130 \emph on
6131 手動で設定しなくてはなりません
6132 \emph default
6133
6134 \end_layout
6135
6136 \begin_layout Standard
6137 LyXは、パイプを生成するに際して、「
6138 \begin_inset Flex Code
6139 status collapsed
6140
6141 \begin_layout Plain Layout
6142 .in
6143 \end_layout
6144
6145 \end_inset
6146
6147 」および「
6148 \begin_inset Flex Code
6149 status collapsed
6150
6151 \begin_layout Plain Layout
6152 .out
6153 \end_layout
6154
6155 \end_inset
6156
6157 」を付け加えます。パイプがすでに存在していれば、LyXは他のLyXプロセスがすでに実行中であると判断して、サーバーを開始しません。POSIX(Unix型)システ
6158 ムでは、なんらかの理由で、LyXが終了する際に使用されていない「古い」パイプが削除されずに残ったりすると、LyXはこれを削除しようとします。何らかの理由でこれが
6159 失敗した場合、手動でパイプを削除したのちに、LyXを再起動する必要があります。Windowsでは、プログラムが終了したりクラッシュしたりすると、OSがパイプを削
6160 除するので、「古い」パイプが残ることはありません。
6161 \end_layout
6162
6163 \begin_layout Standard
6164 サーバーを使用するLyXプロセスを複数起動するには、それぞれのプロセスに、別のユーザーディレクトリを使用させたり、別々の
6165 \begin_inset Flex Code
6166 status collapsed
6167
6168 \begin_layout Plain Layout
6169 preferences
6170 \end_layout
6171
6172 \end_inset
6173
6174 ファイルを使用させるなど、別々の設定を使用する必要があります。
6175 \end_layout
6176
6177 \begin_layout Standard
6178 クライアントプログラムを開発しようとされているのであれば、LyXサーバーからのデバッグ情報を有効にすると便利かもしれません。そのためには、Lyxを
6179 \begin_inset Flex Code
6180 status collapsed
6181
6182 \begin_layout Plain Layout
6183 lyx -dbg lyxserver
6184 \end_layout
6185
6186 \end_inset
6187
6188 として起動してください。
6189 \end_layout
6190
6191 \begin_layout Standard
6192 C言語で書かれた完全なサンプルクライアントが、ソース頒布版の
6193 \begin_inset Flex Code
6194 status collapsed
6195
6196 \begin_layout Plain Layout
6197 development/lyxserver/server_monitor.c
6198 \end_layout
6199
6200 \end_inset
6201
6202 にあります。
6203 \end_layout
6204
6205 \begin_layout Standard
6206 もう一つの便利なツールとして、
6207 \begin_inset Flex Code
6208 status collapsed
6209
6210 \begin_layout Plain Layout
6211 src/client/lyxclient
6212 \end_layout
6213
6214 \end_inset
6215
6216 にあるコマンドラインベースのクライアントがあります。
6217 \end_layout
6218
6219 \begin_layout Section
6220 通常の通信
6221 \end_layout
6222
6223 \begin_layout Standard
6224 LyXコールを発行するには、クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません。この行は、以下の書式を持ちます。
6225 \end_layout
6226
6227 \begin_layout Quote
6228 LYXCMD:
6229 \emph on
6230 クライアント名
6231 \emph default
6232 :
6233 \emph on
6234 関数
6235 \emph default
6236 :
6237 \emph on
6238 引数
6239 \end_layout
6240
6241 \begin_layout Description
6242 クライアント名 は、クライアントが自由に選べる名前です。これが用いられるのは、クライアントが他の要求クライアントから結果を見分けることができるように、LyXが返
6243 答をする際、クライアント名をエコーするときだけです。
6244 \end_layout
6245
6246 \begin_layout Description
6247 関数 は、LyXに実行させたい関数です。これは、ミニバッファで使用するコマンドと同じです。
6248 \end_layout
6249
6250 \begin_layout Description
6251 引数 は、一部の関数のみに効力を持つオプションの引数です(たとえば、「自己挿入」LFUNは、現在のカーソル位置に引数を文章として挿入します)。
6252 \end_layout
6253
6254 \begin_layout Standard
6255 LyXからの返答は、出力パイプに送り出され、
6256 \end_layout
6257
6258 \begin_layout Quote
6259 INFO:
6260 \emph on
6261 クライアント名
6262 \emph default
6263 :
6264 \emph on
6265 関数
6266 \emph default
6267 :
6268 \emph on
6269 データ
6270 \end_layout
6271
6272 \begin_layout Standard
6273 の書式をしています。ここで
6274 \emph on
6275 クライアント名
6276 \emph default
6277
6278 \emph on
6279 関数
6280 \emph default
6281 は、コマンド要求からそのままエコーされますが、
6282 \emph on
6283 データ
6284 \emph default
6285 はコマンド実行の結果に依存した、多少なりとも有用な情報です。「font-state」のような一部のコマンドは、LyXの内部状態に関する情報を返しますが、空のデー
6286 タ応答を返すものもあります。空のデータ返答は、コマンド実行が無事終わったことを意味します。
6287 \end_layout
6288
6289 \begin_layout Standard
6290 エラーが発生した場合のLyXの返答は
6291 \end_layout
6292
6293 \begin_layout Quote
6294 ERROR:
6295 \emph on
6296 クライアント名
6297 \emph default
6298 :
6299 \emph on
6300 関数
6301 \emph default
6302 :
6303 \emph on
6304 エラーメッセージ
6305 \end_layout
6306
6307 \begin_layout Standard
6308 の書式をしており、
6309 \emph on
6310 エラーメッセージ
6311 \emph default
6312 には、なぜコマンドが失敗したかの説明が入っているはずです。
6313 \end_layout
6314
6315 \begin_layout Standard
6316 (例)
6317 \end_layout
6318
6319 \begin_layout LyX-Code
6320 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6321 \begin_inset Newline newline
6322 \end_inset
6323
6324 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6325 \begin_inset Newline newline
6326 \end_inset
6327
6328 read a <~/.lyxpipe.out
6329 \begin_inset Newline newline
6330 \end_inset
6331
6332 echo $a
6333 \end_layout
6334
6335 \begin_layout Section
6336 通知
6337 \end_layout
6338
6339 \begin_layout Standard
6340 LyXは、発生しているイベントを、非同期的にクライアントに通知することができます。いまのところ、ユーザーがあるキー列を関数「notify」に割り当てているときの
6341 み、LyXはこの通知を行います。LyXが送る文字列の書式は
6342 \end_layout
6343
6344 \begin_layout Quote
6345 \begin_inset Flex Code
6346 status collapsed
6347
6348 \begin_layout Plain Layout
6349 NOTIFY:
6350 \end_layout
6351
6352 \end_inset
6353
6354
6355 \emph on
6356 キー列
6357 \end_layout
6358
6359 \begin_layout Standard
6360 となっていて、
6361 \emph on
6362 キー列
6363 \emph default
6364 は、ユーザーが実際に打鍵したキー列の印字表現になります。
6365 \end_layout
6366
6367 \begin_layout Standard
6368 この機構は、LyXのコマンド群を拡張してマクロを実装するのに使用することができます。なんらかのキー列を「notify」に割り当ててください。それから出力パイプで
6369 待機するクライアントを起動し、キー列に応じたコマンドを読み込み、一つないし複数のLyXコマンドを発行するLyX要求とLyXコールを使用する関数を開始するのです。
6370 \end_layout
6371
6372 \begin_layout Section
6373 単純なLyXサーバープロトコル
6374 \end_layout
6375
6376 \begin_layout Standard
6377 LyXは、セッション管理に使用することができる単純なプロトコルを実装しています。メッセージは、すべて
6378 \end_layout
6379
6380 \begin_layout Quote
6381 LYXSRV:
6382 \emph on
6383 クライアント名
6384 \emph default
6385 :
6386 \emph on
6387 プロトコルメッセージ
6388 \end_layout
6389
6390 \begin_layout Standard
6391 の書式をしており、
6392 \emph on
6393 プロトコルメッセージ
6394 \emph default
6395 は「hello」ないし「bye」です。クライアントから「hello」を受け取ると、LyXはメッセージを聴いていることをクライアントに伝えるために返答をし、LyX
6396 が終了することをクライアントに伝えるのには、LyXが「bye」を送信します。
6397 \end_layout
6398
6399 \begin_layout Section
6400 DVIとPDFの遡及検索
6401 \end_layout
6402
6403 \begin_layout Standard
6404 DVI/PDFビューア
6405 \begin_inset Foot
6406 status collapsed
6407
6408 \begin_layout Plain Layout
6409 PDFの遡及検索機能を提供しているビューアには、KDE/Linux上のOkularとMac OS X上のSkim、Windows上のSumatraPDFがありま
6410 す。
6411 \end_layout
6412
6413 \end_inset
6414
6415 には、遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります。これを使えば、DVI/PDF出力の
6416 特定の場所をクリックすることによって、LyXの文書中で対応する行にカーソルを移動させることができます。これを実現するためには、ビューアはLyXと情報交換を行う必
6417 要があります。これは、命名パイプ(
6418 \emph on
6419 lyxpipe
6420 \emph default
6421 )を使用するか、LyXが作業ディレクトリに生成するUNIXドメインソケット(
6422 \emph on
6423 lyxsocket
6424 \emph default
6425 )を使用する(これは
6426 \begin_inset Flex Code
6427 status collapsed
6428
6429 \begin_layout Plain Layout
6430 lyxclient
6431 \end_layout
6432
6433 \end_inset
6434
6435 プログラムがLyXと通信するのに使用している方法です)ことで、LyXサーバを経由して実現することができます。場合によっては、ビューアとLyXを橋渡しする補助スク
6436 リプトを必要とすることがあるかもしれませんが、それ以外は、ビューアはLyXと直接通信することができます。これは、選んだビューアと基本ソフトに依存します。また、必
6437 要とされるビューアの設定法と遡及検索が実際に行われる方法とにも依存します。したがって、下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします。その
6438 前に、DVI/PDF出力で遡及検索を有効にするためには、一般に何が必要とされるかを説明します。
6439 \end_layout
6440
6441 \begin_layout Subsection
6442 \begin_inset CommandInset label
6443 LatexCommand label
6444 name "sub:遡及検索"
6445
6446 \end_inset
6447
6448 自動有効化
6449 \end_layout
6450
6451 \begin_layout Standard
6452
6453 \lang english
6454 In most cases LyX will do the work for you by enabling the option 
6455 \begin_inset Flex MenuItem
6456 status collapsed
6457
6458 \begin_layout Plain Layout
6459
6460 \lang english
6461 Synchronize with Output
6462 \end_layout
6463
6464 \end_inset
6465
6466  in the menu 
6467 \begin_inset Flex MenuItem
6468 status collapsed
6469
6470 \begin_layout Plain Layout
6471
6472 \lang english
6473 Document\SpecialChar \menuseparator
6474 Settings\SpecialChar \menuseparator
6475 Output
6476 \end_layout
6477
6478 \end_inset
6479
6480 .
6481  In such a case LyX will automatically insert the necessary SyncTeX macro
6482  (for PDF) or load the srcltx package (for DVI) respectively.
6483  This option can be easily reached also on 
6484 \begin_inset Flex Code
6485 status collapsed
6486
6487 \begin_layout Plain Layout
6488
6489 \lang english
6490 View/Update
6491 \end_layout
6492
6493 \end_inset
6494
6495  Toolbar.
6496 \end_layout
6497
6498 \begin_layout Standard
6499
6500 \lang english
6501 If you need a different setting, you can select or input a custom macro
6502  from the drop down box just below 
6503 \begin_inset Flex MenuItem
6504 status collapsed
6505
6506 \begin_layout Plain Layout
6507
6508 \lang english
6509 Document\SpecialChar \menuseparator
6510 Settings\SpecialChar \menuseparator
6511 Output\SpecialChar \menuseparator
6512 Synchronize with Output
6513 \end_layout
6514
6515 \end_inset
6516
6517 .
6518 \end_layout
6519
6520 \begin_layout Standard
6521
6522 \lang english
6523 Note that the method 
6524 \begin_inset Flex Code
6525 status collapsed
6526
6527 \begin_layout Plain Layout
6528
6529 \lang english
6530
6531 \backslash
6532 synctex=1
6533 \end_layout
6534
6535 \end_inset
6536
6537  enables gzip compression.
6538  If your viewer does not support it, you should instead use 
6539 \begin_inset Flex Code
6540 status collapsed
6541
6542 \begin_layout Plain Layout
6543
6544 \lang english
6545
6546 \backslash
6547 synctex=-1
6548 \end_layout
6549
6550 \end_inset
6551
6552 .
6553 \end_layout
6554
6555 \begin_layout Standard
6556
6557 \lang english
6558 Please aöso note that including the 
6559 \begin_inset Flex Code
6560 status collapsed
6561
6562 \begin_layout Plain Layout
6563
6564 \lang english
6565 srcltx
6566 \end_layout
6567
6568 \end_inset
6569
6570  package or 
6571 \begin_inset Flex Code
6572 status collapsed
6573
6574 \begin_layout Plain Layout
6575
6576 \lang english
6577 src-specials
6578 \end_layout
6579
6580 \end_inset
6581
6582  sometimes has an undesired impact on the typesetting.
6583  Thus, you should switch output synchronization off for the final typesetting
6584  if you use the 
6585 \begin_inset Flex Code
6586 status collapsed
6587
6588 \begin_layout Plain Layout
6589
6590 \lang english
6591 srcltx
6592 \end_layout
6593
6594 \end_inset
6595
6596  package or 
6597 \begin_inset Flex Code
6598 status collapsed
6599
6600 \begin_layout Plain Layout
6601
6602 \lang english
6603 src-specials
6604 \end_layout
6605
6606 \end_inset
6607
6608 .
6609  
6610 \end_layout
6611
6612 \begin_layout Standard
6613
6614 \lang english
6615 In case you need some more special settings that are not covered by the
6616  automatic settings, read the next section about how to set up output synchroniz
6617 ation manually.
6618  If the automatic setup suits your needs, you can readily jump to section
6619 \begin_inset space ~
6620 \end_inset
6621
6622
6623 \lang japanese
6624
6625 \begin_inset CommandInset ref
6626 LatexCommand ref
6627 reference "sub:特定のビューアを設定して使うには"
6628
6629 \end_inset
6630
6631
6632 \lang english
6633 , where the necessary configuration steps in your viewer -- needed both
6634  with the automatic and the manual setup -- are described.
6635 \end_layout
6636
6637 \begin_layout Subsection
6638 手動有効化
6639 \end_layout
6640
6641 \begin_layout Standard
6642 LaTeXは、遡及検索のために複数の方法を提供しています。ある方法は
6643 \begin_inset Flex Code
6644 status collapsed
6645
6646 \begin_layout Plain Layout
6647 latex/pdflatex
6648 \end_layout
6649
6650 \end_inset
6651
6652 プログラムに組み込まれており、他の方法は外部パッケージとして提供されています。どちらを選択するかは、お使いのLaTeX頒布版が既に特定の方法を提供しているか(組
6653 み込みによる方法は比較的新しいものです)と、お使いのビューアがそれに対応しているかに依存します。使用可能な方法を以下に述べます。
6654 \end_layout
6655
6656 \begin_layout Subsubsection*
6657 src-special経由のDVI組み込み検索(DVIのみ)
6658 \end_layout
6659
6660 \begin_layout Standard
6661 この方法は、DVIファイルに遡及検索に必要な情報を追加するものです。これは、かなり前のLaTeXから利用可能となっており(比較的最近のLaTeX頒布版はすべて対
6662 応しています)、安定して動作します。これを有効にするには、
6663 \begin_inset Flex MenuItem
6664 status collapsed
6665
6666 \begin_layout Plain Layout
6667 設定\SpecialChar \menuseparator
6668 ファイル処理\SpecialChar \menuseparator
6669 変換子
6670 \end_layout
6671
6672 \end_inset
6673
6674
6675 \begin_inset Flex MenuItem
6676 status collapsed
6677
6678 \begin_layout Plain Layout
6679 LaT
6680 \begin_inset ERT
6681 status collapsed
6682
6683 \begin_layout Plain Layout
6684
6685 {}
6686 \end_layout
6687
6688 \end_inset
6689
6690 eX (plain)->DVI
6691 \end_layout
6692
6693 \end_inset
6694
6695 ないし
6696 \begin_inset Flex MenuItem
6697 status collapsed
6698
6699 \begin_layout Plain Layout
6700 LaT
6701 \begin_inset ERT
6702 status collapsed
6703
6704 \begin_layout Plain Layout
6705
6706 {}
6707 \end_layout
6708
6709 \end_inset
6710
6711 eX (plain)->DraftDVI
6712 \end_layout
6713
6714 \end_inset
6715
6716 変換子を
6717 \begin_inset Flex Code
6718 status collapsed
6719
6720 \begin_layout Plain Layout
6721 latex -src-specials $$i
6722 \end_layout
6723
6724 \end_inset
6725
6726 に変更します。もしこれが動作しないときは、お使いのLaTeXエンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあり
6727 ます)。
6728 \end_layout
6729
6730 \begin_layout Subsubsection*
6731 外部パッケージ(PDFSyncおよびsrcltx)
6732 \end_layout
6733
6734 \begin_layout Standard
6735
6736 \emph on
6737 pdfsync
6738 \emph default
6739 および
6740 \emph on
6741 srcltx
6742 \emph default
6743 パッケージは、PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します。これを有効にするには、LyXプリアンブルで以下のようにパッケージを読み
6744 込んでください。
6745 \end_layout
6746
6747 \begin_layout Itemize
6748 PDFの遡及検索には
6749 \begin_inset Flex Code
6750 status collapsed
6751
6752 \begin_layout Plain Layout
6753
6754 \backslash
6755 usepackage{pdfsync}
6756 \end_layout
6757
6758 \end_inset
6759
6760
6761 \end_layout
6762
6763 \begin_layout Itemize
6764 DVIの遡及検索には
6765 \begin_inset Flex Code
6766 status collapsed
6767
6768 \begin_layout Plain Layout
6769
6770 \backslash
6771 usepackage[active]{srcltx}
6772 \end_layout
6773
6774 \end_inset
6775
6776
6777 \end_layout
6778
6779 \begin_layout Standard
6780 と書きます。DVIとPDFの両方の遡及検索を実行できるようにするためには、プリアンブルに以下の行を挿入する方法があります。
6781 \end_layout
6782
6783 \begin_layout LyX-Code
6784
6785 \backslash
6786 usepackage{ifpdf}
6787 \begin_inset Newline newline
6788 \end_inset
6789
6790
6791 \backslash
6792 ifpdf
6793 \begin_inset Newline newline
6794 \end_inset
6795
6796   
6797 \backslash
6798 usepackage{pdfsync}
6799 \begin_inset Newline newline
6800 \end_inset
6801
6802
6803 \backslash
6804 else
6805 \begin_inset Newline newline
6806 \end_inset
6807
6808   
6809 \backslash
6810 usepackage[active]{srcltx}
6811 \begin_inset Newline newline
6812 \end_inset
6813
6814
6815 \backslash
6816 fi
6817 \end_layout
6818
6819 \begin_layout Standard
6820 このようにすれば、DVIでもPDF(pdflatex)でも正しいパッケージを使いながら、ファイルを閲覧することができます。
6821 \end_layout
6822
6823 \begin_layout Standard
6824 なお、PDFSyncは、文書の出力レイアウトに干渉する可能性があるので注意してください。したがって、仕上がり文書ではPDFSyncを無効にすることをお勧めします
6825
6826 \end_layout
6827
6828 \begin_layout Subsubsection*
6829 SyncTeXを使った組み込み遡及検索(DVIおよびPDF)
6830 \end_layout
6831
6832 \begin_layout Standard
6833 \begin_inset Flex Code
6834 status collapsed
6835
6836 \begin_layout Plain Layout
6837 (pdf)latex
6838 \end_layout
6839
6840 \end_inset
6841
6842 の最近のバージョンは、PDFおよびDVI両方の遡及検索を組み込みでサポートしています。このいわゆる
6843 \emph on
6844 SyncTeX
6845 \emph default
6846 機能は、主に、PDFSyncパッケージをpdftexプログラムへ統合したことと、それをsrc-specialsアプローチへ取り込んだことの成果です。これを使用す
6847 るためには、少なくともTeXLive 2008か最近のMikTeX頒布版が必要です。また、既にSyncTeXサポートを提供しているPDFビューアは少ししかありま
6848 せん(Mac上のSkimとWindows上のSumatraPDF)。
6849 \end_layout
6850
6851 \begin_layout Standard
6852 DVI出力でSyncTeXを有効にするには、
6853 \begin_inset Flex MenuItem
6854 status collapsed
6855
6856 \begin_layout Plain Layout
6857 設定\SpecialChar \menuseparator
6858 ファイル処理\SpecialChar \menuseparator
6859 変換子
6860 \end_layout
6861
6862 \end_inset
6863
6864
6865 \begin_inset Flex MenuItem
6866 status collapsed
6867
6868 \begin_layout Plain Layout
6869 LaT
6870 \begin_inset ERT
6871 status collapsed
6872
6873 \begin_layout Plain Layout
6874
6875 {}
6876 \end_layout
6877
6878 \end_inset
6879
6880 eX (plain)->DVI
6881 \end_layout
6882
6883 \end_inset
6884
6885 ないし
6886 \begin_inset Flex MenuItem
6887 status collapsed
6888
6889 \begin_layout Plain Layout
6890 LaT
6891 \begin_inset ERT
6892 status collapsed
6893
6894 \begin_layout Plain Layout
6895
6896 {}
6897 \end_layout
6898
6899 \end_inset
6900
6901 eX (plain)->DraftDVI
6902 \end_layout
6903
6904 \end_inset
6905
6906 変換子を
6907 \begin_inset Flex Code
6908 status collapsed
6909
6910 \begin_layout Plain Layout
6911 latex -synctex=1 $$i
6912 \end_layout
6913
6914 \end_inset
6915
6916 に変更します。PDF出力用には、
6917 \begin_inset Flex MenuItem
6918 status collapsed
6919
6920 \begin_layout Plain Layout
6921 LaT
6922 \begin_inset ERT
6923 status collapsed
6924
6925 \begin_layout Plain Layout
6926
6927 {}
6928 \end_layout
6929
6930 \end_inset
6931
6932 eX (pdflatex)->PDF (pdflatex)
6933 \end_layout
6934
6935 \end_inset
6936
6937 変換子を
6938 \begin_inset Flex Code
6939 status collapsed
6940
6941 \begin_layout Plain Layout
6942 pdflatex -synctex=1 $$i
6943 \end_layout
6944
6945 \end_inset
6946
6947 に変更してください。また、ビューアをSyncTeXで使うのに設定を行う必要があるかどうか、お使いのビューアの取扱説明書をご確認ください。
6948 \begin_inset Foot
6949 status collapsed
6950
6951 \begin_layout Plain Layout
6952 \begin_inset Flex Code
6953 status collapsed
6954
6955 \begin_layout Plain Layout
6956 -synctex=1
6957 \end_layout
6958
6959 \end_inset
6960
6961 オプションは、gzip圧縮を有効にします。お使いのビューアがgzip圧縮をサポートしていない場合には、代わりに
6962 \begin_inset Flex Code
6963 status collapsed
6964
6965 \begin_layout Plain Layout
6966 -synctex=-1
6967 \end_layout
6968
6969 \end_inset
6970
6971 を使用してください。
6972 \end_layout
6973
6974 \end_inset
6975
6976
6977 \end_layout
6978
6979 \begin_layout Subsection
6980 特定のビューアを設定して使うには
6981 \begin_inset CommandInset label
6982 LatexCommand label
6983 name "sub:特定のビューアを設定して使うには"
6984
6985 \end_inset
6986
6987
6988 \end_layout
6989
6990 \begin_layout Subsubsection*
6991 Xdvi(全プラットフォーム)
6992 \end_layout
6993
6994 \begin_layout Standard
6995 LyXは、
6996 \begin_inset Flex Code
6997 status collapsed
6998
6999 \begin_layout Plain Layout
7000 lyxclient
7001 \end_layout
7002
7003 \end_inset
7004
7005 プログラムを自動的に使うのに必要なフックを、既に提供しているので、
7006 \begin_inset Flex Code
7007 status collapsed
7008
7009 \begin_layout Plain Layout
7010 xdvi
7011 \end_layout
7012
7013 \end_inset
7014
7015 を使用する場合には、DVI遡及検索を実行するのに他にするべきことはありません。使用中の文書を上記で述べたように設定するだけです(遡及検索は、Ctrl-クリックか
7016 、Mac OS X上ではAlt-クリックで始動します)。
7017 \end_layout
7018
7019 \begin_layout Standard
7020 しかし、何らかの理由で、LyXと通信するのにソケットではなく命名パイプを使用したい場合には、
7021 \begin_inset Flex MenuItem
7022 status collapsed
7023
7024 \begin_layout Plain Layout
7025 設定\SpecialChar \menuseparator
7026 ファイル処理\SpecialChar \menuseparator
7027 ファイル書式
7028 \end_layout
7029
7030 \end_inset
7031
7032 のDVIビューアを
7033 \begin_inset Flex Code
7034 status collapsed
7035
7036 \begin_layout Plain Layout
7037 xdvi -editor 'lyxeditor.sh %f %l'
7038 \end_layout
7039
7040 \end_inset
7041
7042
7043 \begin_inset Flex Code
7044 status collapsed
7045
7046 \begin_layout Plain Layout
7047 lyxeditor.sh
7048 \end_layout
7049
7050 \end_inset
7051
7052 は適切なスクリプト名)に変更してください。たとえば、最低限のシェルスクリプトは
7053 \end_layout
7054
7055 \begin_layout LyX-Code
7056 #!/bin/sh
7057 \begin_inset Newline newline
7058 \end_inset
7059
7060 LYXPIPE="/path/to/lyxpipe"
7061 \begin_inset Newline newline
7062 \end_inset
7063
7064 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7065 \begin_inset Newline newline
7066 \end_inset
7067
7068 echo "$COMMAND" > "${LYXPIPE}".in || exit
7069 \begin_inset Newline newline
7070 \end_inset
7071
7072 read < "${LYXPIPE}".out || exit
7073 \end_layout
7074
7075 \begin_layout Standard
7076 のようになります。ここで
7077 \begin_inset Flex Code
7078 status collapsed
7079
7080 \begin_layout Plain Layout
7081 /path/to/lyxpipe
7082 \end_layout
7083
7084 \end_inset
7085
7086 は、
7087 \begin_inset Flex MenuItem
7088 status collapsed
7089
7090 \begin_layout Plain Layout
7091 設定\SpecialChar \menuseparator
7092 パス
7093 \end_layout
7094
7095 \end_inset
7096
7097 で指定したLy
7098 \begin_inset ERT
7099 status open
7100
7101 \begin_layout Plain Layout
7102
7103 {}
7104 \end_layout
7105
7106 \end_inset
7107
7108 XServerパイプのパスを指定してください
7109 \begin_inset Foot
7110 status collapsed
7111
7112 \begin_layout Plain Layout
7113 ソース頒布版の
7114 \begin_inset Flex Code
7115 status collapsed
7116
7117 \begin_layout Plain Layout
7118 development/tools
7119 \end_layout
7120
7121 \end_inset
7122
7123 フォルダには、ユーザが設定した
7124 \emph on
7125 lyxpipe
7126 \emph default
7127 を探し出す
7128 \begin_inset Flex Code
7129 status collapsed
7130
7131 \begin_layout Plain Layout
7132 lyxeditor
7133 \end_layout
7134
7135 \end_inset
7136
7137 スクリプトがあります。
7138 \end_layout
7139
7140 \end_inset
7141
7142
7143 \end_layout
7144
7145 \begin_layout Subsubsection*
7146 MacDviX(Mac OS X)
7147 \end_layout
7148
7149 \begin_layout Standard
7150 \begin_inset Flex Code
7151 status collapsed
7152
7153 \begin_layout Plain Layout
7154 /Applications/MacDviX_Folder/calleditor.script
7155 \end_layout
7156
7157 \end_inset
7158
7159 の終わりに
7160 \end_layout
7161
7162 \begin_layout LyX-Code
7163 /Applications/Ly
7164 \begin_inset ERT
7165 status collapsed
7166
7167 \begin_layout Plain Layout
7168
7169 {}
7170 \end_layout
7171
7172 \end_inset
7173
7174 X.app/Contents/MacOS/lyxeditor "$2" $1
7175 \begin_inset Newline newline
7176 \end_inset
7177
7178 exit 1
7179 \end_layout
7180
7181 \begin_layout Standard
7182 という行を付け加えてください。Applicationsフォルダ以外の場所にLyXを導入した場合には、それに従って上記の行を修正してください。
7183 \end_layout
7184
7185 \begin_layout Standard
7186 遡及検索は、Alt-クリック(OPTION-クリック)で始動します。
7187 \end_layout
7188
7189 \begin_layout Subsubsection*
7190 Skim(Mac OS X)
7191 \end_layout
7192
7193 \begin_layout Standard
7194 \begin_inset Flex MenuItem
7195 status collapsed
7196
7197 \begin_layout Plain Layout
7198 設定\SpecialChar \menuseparator
7199 ファイル処理\SpecialChar \menuseparator
7200 ファイル書式\SpecialChar \menuseparator
7201 PDF (pdflatex)
7202 \end_layout
7203
7204 \end_inset
7205
7206 のビューア設定に
7207 \begin_inset Flex Code
7208 status collapsed
7209
7210 \begin_layout Plain Layout
7211 open -a Skim.app $$i
7212 \end_layout
7213
7214 \end_inset
7215
7216 と入力し、
7217 \begin_inset Flex MenuItem
7218 status collapsed
7219
7220 \begin_layout Plain Layout
7221 Skim\SpecialChar \menuseparator
7222 設定\SpecialChar \menuseparator
7223 Sync
7224 \end_layout
7225
7226 \end_inset
7227
7228 でLy
7229 \begin_inset ERT
7230 status collapsed
7231
7232 \begin_layout Plain Layout
7233
7234 {}
7235 \end_layout
7236
7237 \end_inset
7238
7239 Xを選択してください。
7240 \end_layout
7241
7242 \begin_layout Standard
7243 遡及検索は、COMMAND-SHIFT-クリックで始動します。
7244 \end_layout
7245
7246 \begin_layout Subsubsection*
7247 Okular (KDE)
7248 \end_layout
7249
7250 \begin_layout Standard
7251 \begin_inset Flex MenuItem
7252 status collapsed
7253
7254 \begin_layout Plain Layout
7255 設定\SpecialChar \menuseparator
7256 Okularを設定\SpecialChar \ldots{}
7257 \SpecialChar \menuseparator
7258 編集
7259 \end_layout
7260
7261 \end_inset
7262
7263 で「カスタムテキストエディタ」を選択し、コマンドに
7264 \begin_inset Flex Code
7265 status collapsed
7266
7267 \begin_layout Plain Layout
7268 lyxclient -g %f %l
7269 \end_layout
7270
7271 \end_inset
7272
7273 を加えてください。
7274 \end_layout
7275
7276 \begin_layout Standard
7277 遡及検索は、SHIFT-クリックで始動します。
7278 \end_layout
7279
7280 \begin_layout Subsubsection*
7281 YAP(Windows)
7282 \end_layout
7283
7284 \begin_layout Standard
7285 yapを起動し、
7286 \begin_inset Flex MenuItem
7287 status collapsed
7288
7289 \begin_layout Plain Layout
7290 View\SpecialChar \menuseparator
7291 Options
7292 \end_layout
7293
7294 \end_inset
7295
7296 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
7297 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
7298  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
7299 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7300 \begin_inset Flex Code
7301 status collapsed
7302
7303 \begin_layout Plain Layout
7304 lyxeditor.bat
7305 \end_layout
7306
7307 \end_inset
7308
7309 (以下参照)のあるディレクトリを見つけます。
7310 \begin_inset Flex Code
7311 status collapsed
7312
7313 \begin_layout Plain Layout
7314 lyxeditor.bat
7315 \end_layout
7316
7317 \end_inset
7318
7319 を選択してプログラムの引数を
7320 \begin_inset Flex Code
7321 status collapsed
7322
7323 \begin_layout Plain Layout
7324 %f %l
7325 \end_layout
7326
7327 \end_inset
7328
7329 と指定してください。
7330 \begin_inset Flex Code
7331 status collapsed
7332
7333 \begin_layout Plain Layout
7334 lyxeditor.bat
7335 \end_layout
7336
7337 \end_inset
7338
7339 は、
7340 \emph on
7341 lyxpipe
7342 \emph default
7343 を通じてLyXと通信するためのラッパとして使用され、以下のようになっています。
7344 \end_layout
7345
7346 \begin_layout LyX-Code
7347 @echo off
7348 \begin_inset Newline newline
7349 \end_inset
7350
7351 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7352 \backslash
7353
7354 \backslash
7355 .
7356 \backslash
7357 pipe
7358 \backslash
7359 lyxpipe.in
7360 \begin_inset Newline newline
7361 \end_inset
7362
7363 type 
7364 \backslash
7365
7366 \backslash
7367 .
7368 \backslash
7369 pipe
7370 \backslash
7371 lyxpipe.out
7372 \end_layout
7373
7374 \begin_layout Standard
7375 LyXで指定したLyXServerパイプパスが、
7376 \begin_inset Flex Code
7377 status collapsed
7378
7379 \begin_layout Plain Layout
7380
7381 \backslash
7382
7383 \backslash
7384 .
7385 \backslash
7386 pipe
7387 \backslash
7388 lyxpipe
7389 \end_layout
7390
7391 \end_inset
7392
7393 となっていることを確認するか、
7394 \begin_inset Flex Code
7395 status collapsed
7396
7397 \begin_layout Plain Layout
7398 lyxeditor.bat
7399 \end_layout
7400
7401 \end_inset
7402
7403 ラッパの方を適切に修正してください。
7404 \end_layout
7405
7406 \begin_layout Standard
7407 yapでは、遡及検索はダブルクリックで始動します。
7408 \end_layout
7409
7410 \begin_layout Subsubsection*
7411 SumatraPDF(Windows)
7412 \end_layout
7413
7414 \begin_layout Standard
7415 SumatraPDFを遡及検索で使用するためには、
7416 \begin_inset Flex MenuItem
7417 status collapsed
7418
7419 \begin_layout Plain Layout
7420 設定\SpecialChar \menuseparator
7421 ファイル処理\SpecialChar \menuseparator
7422 ファイル書式\SpecialChar \menuseparator
7423 PDF (pdflatex)
7424 \end_layout
7425
7426 \end_inset
7427
7428 のビューア設定で
7429 \begin_inset Flex Code
7430 status collapsed
7431
7432 \begin_layout Plain Layout
7433 SumatraPDF -inverse-search 
7434 \begin_inset Quotes eld
7435 \end_inset
7436
7437 lyxeditor.bat %f %l
7438 \begin_inset Quotes erd
7439 \end_inset
7440
7441
7442 \end_layout
7443
7444 \end_inset
7445
7446
7447 \begin_inset Flex Code
7448 status collapsed
7449
7450 \begin_layout Plain Layout
7451 lyxeditor.bat
7452 \end_layout
7453
7454 \end_inset
7455
7456 は上記のラッパ)と入力してください。SumatraPDF.exeがコマンドPATHにない場合、フルファイル名を使用してください。
7457 \end_layout
7458
7459 \begin_layout Standard
7460 遡及検索はダブルクリックで始動します。
7461 \end_layout
7462
7463 \begin_layout Subsubsection*
7464 YAP(Cygwin)
7465 \end_layout
7466
7467 \begin_layout Standard
7468 まずはじめに、yapがWindows環境での既定のDVIビューアになっていることを確認してから、yapを起動し、
7469 \begin_inset Flex MenuItem
7470 status collapsed
7471
7472 \begin_layout Plain Layout
7473 View\SpecialChar \menuseparator
7474 Options
7475 \end_layout
7476
7477 \end_inset
7478
7479 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
7480 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
7481  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
7482 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7483 \begin_inset Flex Code
7484 status collapsed
7485
7486 \begin_layout Plain Layout
7487 lyxeditor.exe
7488 \end_layout
7489
7490 \end_inset
7491
7492 プログラム(これは、Cygwinでは既定でLyX実行ファイルとともに導入されます)のあるディレクトリを見つけます。
7493 \begin_inset Flex Code
7494 status collapsed
7495
7496 \begin_layout Plain Layout
7497 lyxeditor.exe
7498 \end_layout
7499
7500 \end_inset
7501
7502 を選択してプログラムの引数を
7503 \begin_inset Flex Code
7504 status collapsed
7505
7506 \begin_layout Plain Layout
7507 -g %f %l
7508 \end_layout
7509
7510 \end_inset
7511
7512 と指定してください。これによって、LyXとの通信に
7513 \emph on
7514 lyxsocket
7515 \emph default
7516 が使用されるようになります。何らかの理由で
7517 \emph on
7518 lyxpipe
7519 \emph default
7520 を使用したい場合には、
7521 \begin_inset Flex Code
7522 status collapsed
7523
7524 \begin_layout Plain Layout
7525 -g
7526 \end_layout
7527
7528 \end_inset
7529
7530 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
7531 \end_layout
7532
7533 \begin_layout Standard
7534 yapでは、遡及検索はダブルクリックで始動します。
7535 \end_layout
7536
7537 \begin_layout Subsubsection*
7538 SumatraPDF(Cygwin)
7539 \end_layout
7540
7541 \begin_layout Standard
7542 SumatraPDFを遡及検索で使用するためには、
7543 \begin_inset Flex MenuItem
7544 status collapsed
7545
7546 \begin_layout Plain Layout
7547 設定\SpecialChar \menuseparator
7548 ファイル処理\SpecialChar \menuseparator
7549 ファイル書式\SpecialChar \menuseparator
7550 PDF (pdflatex)
7551 \end_layout
7552
7553 \end_inset
7554
7555 のビューア設定で
7556 \begin_inset Flex Code
7557 status collapsed
7558
7559 \begin_layout Plain Layout
7560 SumatraPDF.sh
7561 \end_layout
7562
7563 \end_inset
7564
7565 と入力してください。ここで
7566 \begin_inset Flex Code
7567 status collapsed
7568
7569 \begin_layout Plain Layout
7570 SumatraPDF.sh
7571 \end_layout
7572
7573 \end_inset
7574
7575 は以下のようなスクリプトです(お使いのコマンドパスに置きます。
7576 \begin_inset Flex Code
7577 status collapsed
7578
7579 \begin_layout Plain Layout
7580 /usr/local/bin
7581 \end_layout
7582
7583 \end_inset
7584
7585 がもっとも良い選択肢でしょう)。
7586 \end_layout
7587
7588 \begin_layout LyX-Code
7589 #!/bin/bash
7590 \begin_inset Newline newline
7591 \end_inset
7592
7593 cd $(dirname $1)
7594 \begin_inset Newline newline
7595 \end_inset
7596
7597 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
7598 \end_layout
7599
7600 \begin_layout Standard
7601 SumatraPDFは、Windowsネイティブのアプリケーションであり、LyXのCygwin版が使用するPOSIXパスを理解しないので、このラッパスクリプトが
7602 必要となります。SumatraPDF.exeがお使いのコマンドパスにない場合は、上記のスクリプトでPOSIXのフルパスを使用してください。
7603 \begin_inset Flex Code
7604 status collapsed
7605
7606 \begin_layout Plain Layout
7607 -g
7608 \end_layout
7609
7610 \end_inset
7611
7612
7613 \emph on
7614 lyxsocket
7615 \emph default
7616 経由の通信を有効にします。ここでも、
7617 \emph on
7618 lyxpipe
7619 \emph default
7620 を使用したい場合には、
7621 \begin_inset Flex Code
7622 status collapsed
7623
7624 \begin_layout Plain Layout
7625 -g
7626 \end_layout
7627
7628 \end_inset
7629
7630 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
7631 \end_layout
7632
7633 \begin_layout Standard
7634 遡及検索はダブルクリックで始動します。
7635 \end_layout
7636
7637 \begin_layout Section
7638 前方検索
7639 \end_layout
7640
7641 \begin_layout Standard
7642 前方検索を有効にするためには、生成されたPDF/DVI出力ファイルに、TeXソースに関する情報を追加する必要があります。これは、第
7643 \begin_inset CommandInset ref
7644 LatexCommand ref
7645 reference "sub:遡及検索"
7646
7647 \end_inset
7648
7649 節に述べられている方法で実行することができます。
7650 \end_layout
7651
7652 \begin_layout Standard
7653 次に、
7654 \begin_inset Flex MenuItem
7655 status collapsed
7656
7657 \begin_layout Plain Layout
7658 設定\SpecialChar \menuseparator
7659 出力\SpecialChar \menuseparator
7660 一般
7661 \end_layout
7662
7663 \end_inset
7664
7665 で自分の使うビューアを利用するように、LyXを設定する必要があります。ただし、yap・xdvi・okular・Sumatra PDFなど、一部のビューアしかこの
7666 操作は利用できません
7667 \begin_inset Foot
7668 status collapsed
7669
7670 \begin_layout Plain Layout
7671 Sumatraの場合には、http://www.istri.fr/zip/CMCDDE.zipからダウンロードできるCMCDDEが必要です。
7672 \end_layout
7673
7674 \end_inset
7675
7676 。Evinceやxpdfなどの他のビューアでは、少なくとも、ファイルの特定頁を読み込み直したり、指し示したりすることができますが、これらの場合にはsynctex
7677 の外部コールを使用することができます。設定ダイアログに用意されている用例をよく研究してください。設定中で置き換えられる値は以下の通りです。
7678 \begin_inset Flex Code
7679 status collapsed
7680
7681 \begin_layout Plain Layout
7682 $$n
7683 \end_layout
7684
7685 \end_inset
7686
7687 は行番号を指し、
7688 \begin_inset Flex Code
7689 status collapsed
7690
7691 \begin_layout Plain Layout
7692 $$t
7693 \end_layout
7694
7695 \end_inset
7696
7697 は書き出された一時.texファイル、
7698 \begin_inset Flex Code
7699 status collapsed
7700
7701 \begin_layout Plain Layout
7702 $$o
7703 \end_layout
7704
7705 \end_inset
7706
7707 は書き出された出力ファイルを指します(一時ディレクトリにどちらが存在するかに依存してdviあるいはpdf)。
7708 \end_layout
7709
7710 \begin_layout Standard
7711 閲覧時には、一時ディレクトリに.dviファイルがあるか.pdfファイルがあるか(特定の文書を閲覧するのにどの書式を使用したか)によって、適当なプレビュー書式をLyX
7712 が動的に選択します。
7713 \end_layout
7714
7715 \begin_layout Chapter
7716 特別な文書クラス
7717 \end_layout
7718
7719 \begin_layout Section
7720 A&Aの論文
7721 \end_layout
7722
7723 \begin_layout Standard
7724
7725 \noun on
7726 Peter Sütterlin文
7727 \end_layout
7728
7729 \begin_layout Subsection
7730 はじめに
7731 \end_layout
7732
7733 \begin_layout Standard
7734 この節では、文書クラス
7735 \family typewriter
7736 aa.cls
7737 \family default
7738 第5.01版を使用して科学雑誌
7739 \emph on
7740 Astronomy and Astrophysics
7741 \emph default
7742 (『天文学と宇宙物理学』:www.edpsciences.fr/aa/ 
7743 \begin_inset Flex URL
7744 status collapsed
7745
7746 \begin_layout Plain Layout
7747
7748 http://www.edpsciences.fr/aa/
7749 \end_layout
7750
7751 \end_inset
7752
7753 )に投稿する論文を執筆するためのLyXの使用法を説明します。このパッケージは、FTPサイト
7754 \end_layout
7755
7756 \begin_layout Standard
7757 \align center
7758 \begin_inset VSpace medskip
7759 \end_inset
7760
7761
7762 \begin_inset Flex URL
7763 status collapsed
7764
7765 \begin_layout Plain Layout
7766
7767 ftp://ftp.edpsciences.org/pub/aa/readme.html
7768 \end_layout
7769
7770 \end_inset
7771
7772
7773 \begin_inset VSpace medskip
7774 \end_inset
7775
7776
7777 \end_layout
7778
7779 \begin_layout Standard
7780 \noindent
7781 からダウンロードすることができます。
7782 \end_layout
7783
7784 \begin_layout Standard
7785 このパッケージには取扱説明書がついていますが、本節は、本来の取扱説明書の代わりとなることを意図したものではなく、あなたの論文を正しい様式に整えるための小さな案内
7786 書であるに過ぎません。
7787 \end_layout
7788
7789 \begin_layout Standard
7790 この学術誌の出版元は、2001年1月1日以降、Springer社からEDP Science社に変更されていることにご注意ください。この出版社の変更によって、th
7791 esaurusコマンドの廃止など、スタイルファイルに若干の変更が加わっています。LyXのaaクラスは、スタイルファイルの最新版(第5.01版)をサポートしています
7792 。もし古い版が装備されている場合には、更新してください。互換性のために、古い(第4版)レイアウトは、
7793 \family sans
7794 article (A&A V4)
7795 \family default
7796 として残してあります。
7797 \family typewriter
7798 $LyXDir/layouts/aapaper.layout
7799 \family default
7800 のコメントをご参照ください。
7801 \end_layout
7802
7803 \begin_layout Subsection
7804 最初の一歩
7805 \end_layout
7806
7807 \begin_layout Standard
7808 LyXとともに頒布されている例示用のひな型を土台として、書き始めることをお勧めします。ひな型を使用しない場合には、以下の設定にしてください。
7809 \end_layout
7810
7811 \begin_layout Itemize
7812
7813 \family sans
7814 文書\SpecialChar \menuseparator
7815 設定
7816 \family default
7817 ダイアログで
7818 \family sans
7819 article (A&A)
7820 \family default
7821 を選択してください(まぁ、これは自明ですね)。
7822 \end_layout
7823
7824 \begin_layout Itemize
7825
7826 \family sans
7827 ページレイアウト
7828 \family default
7829 オプションは変更しないで、既定値のままに設定しておいてください。全体のレイアウトはマクロが行うので、何も変更してはいけません。
7830 \end_layout
7831
7832 \begin_layout Subsection
7833 へッダ部
7834 \end_layout
7835
7836 \begin_layout Standard
7837 最初に入力すべきものは、へッダ情報です。ヘッダ情報には、以下の7つの項目があり、いくつかは必須ではありません。
7838 \end_layout
7839
7840 \begin_layout Itemize
7841
7842 \family sans
7843 タイトル
7844 \family default
7845 :[必須]
7846 \end_layout
7847
7848 \begin_layout Itemize
7849
7850 \family sans
7851 サブタイトル
7852 \family default
7853 :[非必須]
7854 \end_layout
7855
7856 \begin_layout Itemize
7857
7858 \family sans
7859 著者
7860 \family default
7861 :[必須]
7862 \end_layout
7863
7864 \begin_layout Itemize
7865
7866 \family sans
7867 住所
7868 \family default
7869 :[必須]
7870 \end_layout
7871
7872 \begin_layout Itemize
7873
7874 \family sans
7875 抜き刷り
7876 \family default
7877 :[非必須]著者が複数いる場合、抜き刷りの送付を依頼するのに連絡すべき人を記す。
7878 \end_layout
7879
7880 \begin_layout Itemize
7881
7882 \family sans
7883 メール
7884 \family default
7885 :[非必須]連絡用の電子メールアドレス。
7886 \end_layout
7887
7888 \begin_layout Itemize
7889
7890 \family sans
7891 日付
7892 \family default
7893 :[必須]推奨されるフォーマットは、
7894 \family typewriter
7895 Received: <日付>; Accepted <日付>
7896 \family default
7897 です。
7898 \end_layout
7899
7900 \begin_layout Standard
7901
7902 \family typewriter
7903
7904 \backslash
7905 maketitle
7906 \family default
7907 コマンドは、へッダが終了した場所に、LyXが自動的に入れてくれるので、手動で挿入する必要はありません。各項目の順序は関係ありませんが、見た目のためと、実際の文書
7908 のレイアウトに合わせるために、上記の順序を維持しておくと良いでしょう。
7909 \end_layout
7910
7911 \begin_layout Standard
7912 現住所の付記などのために、へッダ部に脚注を挿入したい場合には、
7913 \family sans
7914 挿入\SpecialChar \menuseparator
7915 脚注
7916 \family default
7917 を使用して標準の脚注を挿入してください。この場合には、LyXは自動的に
7918 \family typewriter
7919
7920 \backslash
7921 thanks{}
7922 \family default
7923 を使用します。
7924 \end_layout
7925
7926 \begin_layout Standard
7927 これらのトピックの他に、このマクロは、LyXが対応していない、以下の3つのLaTeXコマンドを使用します。
7928 \end_layout
7929
7930 \begin_layout Itemize
7931 複数の著者名あるいは所属名を区切るための
7932 \family typewriter
7933
7934 \backslash
7935 and
7936 \end_layout
7937
7938 \begin_layout Itemize
7939 著者と所属の対応付けをするための
7940 \family typewriter
7941
7942 \backslash
7943 inst{<番号>}
7944 \family default
7945 。所属は、
7946 \family sans
7947 住所
7948 \family default
7949 フィールドに現れる順に番号が付けられるので、各著者に番号マーカーを置く必要があります。
7950 \end_layout
7951
7952 \begin_layout Itemize
7953
7954 \family typewriter
7955
7956 \backslash
7957 email{アドレス}
7958 \family default
7959 は、至急連絡用に電子メールアドレスを付記します。
7960 \end_layout
7961
7962 \begin_layout Standard
7963 いずれの場合にも、LyX中に対応したコマンドを入力し、LaTeXコードとしてマークしてください。
7964 \begin_inset Flex Code
7965 status collapsed
7966
7967 \begin_layout Plain Layout
7968 $LyXDir/examples
7969 \end_layout
7970
7971 \end_inset
7972
7973 にある用例を参照してください。
7974 \end_layout
7975
7976 \begin_layout Subsection
7977 概要
7978 \end_layout
7979
7980 \begin_layout Standard
7981 概要は、へッダ部の直後に置きます。第5版から、概要は環境からコマンドに変更され、一段落に限るという制限が加えられました。さらに、ここにはキーワードを含む項目を入
7982 れなくてはなりません。これは、まだLyXでは実装されていないため、LaTeXコマンド
7983 \family typewriter
7984
7985 \backslash
7986 keywords{}
7987 \family default
7988 を手動で入力し、LaTeXコードとしてマークする必要があります。用例にある論文を参照してください。
7989 \end_layout
7990
7991 \begin_layout Subsection
7992 サポートされる環境
7993 \end_layout
7994
7995 \begin_layout Standard
7996 A&A論文用レイアウトでは、文章を構造化するために、以下の環境がサポートされています。
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 概要
8051 \end_layout
8052
8053 \begin_layout Itemize
8054
8055 \family sans
8056 謝辞(Acknowledgment)
8057 \end_layout
8058
8059 \begin_layout Itemize
8060
8061 \family sans
8062 参考文献
8063 \end_layout
8064
8065 \begin_layout Itemize
8066
8067 \family sans
8068 LaTeX
8069 \end_layout
8070
8071 \begin_layout Subsection
8072 LyXでサポートされていないコマンド
8073 \end_layout
8074
8075 \begin_layout Standard
8076 LyXの
8077 \family sans
8078 article (A&A)
8079 \family default
8080 レイアウトでは、まだサポートされていないコマンドがあります。そのうちいくつかは既に紹介しましたが、網羅するために、以下にすべて列挙しておきます。
8081 \end_layout
8082
8083 \begin_layout Itemize
8084
8085 \family typewriter
8086
8087 \backslash
8088 and
8089 \end_layout
8090
8091 \begin_layout Itemize
8092
8093 \family typewriter
8094
8095 \backslash
8096 email
8097 \end_layout
8098
8099 \begin_layout Itemize
8100
8101 \family typewriter
8102
8103 \backslash
8104 appendix
8105 \end_layout
8106
8107 \begin_layout Itemize
8108
8109 \family typewriter
8110
8111 \backslash
8112 authorrunning
8113 \end_layout
8114
8115 \begin_layout Itemize
8116
8117 \family typewriter
8118
8119 \backslash
8120 inst{}
8121 \end_layout
8122
8123 \begin_layout Itemize
8124
8125 \family typewriter
8126
8127 \backslash
8128 keywords{}
8129 \end_layout
8130
8131 \begin_layout Itemize
8132
8133 \family typewriter
8134
8135 \backslash
8136 object{}
8137 \end_layout
8138
8139 \begin_layout Itemize
8140
8141 \family typewriter
8142
8143 \backslash
8144 titlerunning{}
8145 \end_layout
8146
8147 \begin_layout Standard
8148 これらのコマンドのいずれかを使いたい場合には、自分で入力する必要があります。
8149 \series bold
8150 これをLaTeXコマンドとしてマークすることを忘れないで下さい。
8151 \end_layout
8152
8153 \begin_layout Subsection
8154 図フロートおよび表フロート
8155 \end_layout
8156
8157 \begin_layout Standard
8158 LyXは、必要なフロート環境
8159 \family sans
8160 figure
8161 \family default
8162
8163 \family sans
8164 figure*
8165 \family default
8166
8167 \family sans
8168 table
8169 \family default
8170
8171 \family sans
8172 table*
8173 \family default
8174 をサポートしていますので、ここでは詳しい説明はしません。
8175 \emph on
8176 ユーザーの手引き
8177 \emph default
8178 をご覧ください。ただ、表は左揃えにしなくてはならないことに注意して下さい。そうするためには、表を選択して、
8179 \family sans
8180 編集\SpecialChar \menuseparator
8181 段落設定
8182 \family default
8183 で配置を変更してください。
8184 \end_layout
8185
8186 \begin_layout Standard
8187 一つだけ、特別なものがあります。それは、図横にキャプションを配置する図です。この図を作成するには、以下のようにしなくてはなりません。
8188 \end_layout
8189
8190 \begin_layout Enumerate
8191
8192 \family sans
8193 挿入\SpecialChar \menuseparator
8194 フロート\SpecialChar \menuseparator
8195
8196 \family default
8197 を使って、幅広の図フロートを作成します。それから、図フロートのラベルを右クリックして
8198 \begin_inset Flex MenuItem
8199 status collapsed
8200
8201 \begin_layout Plain Layout
8202 設定\SpecialChar \ldots{}
8203
8204 \end_layout
8205
8206 \end_inset
8207
8208 を選択し、それで開かれる
8209 \family sans
8210 フロートの設定
8211 \family default
8212 ダイアログで
8213 \family sans
8214 段をまたぐ
8215 \family default
8216 を有効にして、
8217 \family sans
8218 OK
8219 \family default
8220 ボタンを押します。
8221 \end_layout
8222
8223 \begin_layout Enumerate
8224 キャプション文を入力します。
8225 \end_layout
8226
8227 \begin_layout Enumerate
8228 キャプションの前にカーソルを移動し、
8229 \family sans
8230 Return
8231 \family default
8232 を押して、カーソルをキャプションの上に移動します。
8233 \end_layout
8234
8235 \begin_layout Enumerate
8236 図を挿入します。
8237 \end_layout
8238
8239 \begin_layout Enumerate
8240 カーソルを図の後ろに置いて、
8241 \family sans
8242 挿入\SpecialChar \menuseparator
8243 整形
8244 \bar under
8245 \SpecialChar \menuseparator
8246
8247 \bar default
8248 水平方向の空白
8249 \family default
8250 を選択して
8251 \family sans
8252 水平方向の空白の設定
8253 \family default
8254 ダイアログを開き、
8255 \family sans
8256 空白
8257 \family default
8258 ドロップダウンから
8259 \family sans
8260 水平フィル
8261 \family default
8262 を選択して、水平フィルを挿入します。
8263 \end_layout
8264
8265 \begin_layout Enumerate
8266
8267 \family sans
8268 挿入\SpecialChar \menuseparator
8269 TeXコード
8270 \family default
8271 を選択して、TeX差込枠を挿入します。
8272 \end_layout
8273
8274 \begin_layout Enumerate
8275 TeX差込枠中に
8276 \family typewriter
8277
8278 \backslash
8279 parbox[b]{55mm}{
8280 \family default
8281 と入力します。
8282 \series bold
8283 ここでは波括弧を閉じないでください。
8284 \end_layout
8285
8286 \begin_layout Enumerate
8287 カーソルをキャプション文の後ろに移動し、
8288 \family sans
8289 挿入\SpecialChar \menuseparator
8290 TeXコード
8291 \family default
8292 を選択して、別のTeX差込枠を挿入し、その中に閉じ括弧を入力します 。
8293 \end_layout
8294
8295 \begin_layout Standard
8296 例示用論文中の図もご参照ください。
8297 \end_layout
8298
8299 \begin_layout Subsection
8300 Refereeレイアウト
8301 \end_layout
8302
8303 \begin_layout Standard
8304 投稿用には、論文を特別なダブルスペースレイアウトに整形しなくてはなりません。このためには、文書クラスに
8305 \family typewriter
8306 referee
8307 \family default
8308 オプションを与える必要があります。これは、
8309 \family sans
8310 文書\SpecialChar \menuseparator
8311 設定
8312 \family default
8313 ダイアログの
8314 \family sans
8315 任意設定
8316 \family default
8317 クラスオプションフィールドを使って行うことができます。この欄に
8318 \family typewriter
8319 referee
8320 \family default
8321 と云う文字列を入力してください。
8322 \end_layout
8323
8324 \begin_layout Subsection
8325 例示用論文
8326 \end_layout
8327
8328 \begin_layout Standard
8329
8330 \family sans
8331 Examples
8332 \family default
8333 ディレクトリには、LyXで書かれた例示用論文が収録されています。これは、元のマクロパッケージの例示用論文をLyX用に直したものです。これはヒントを得るために使用
8334 したり、元の LaTeXコードとLyXでの書き方の比較に使ったりしてください。
8335 \end_layout
8336
8337 \begin_layout Section
8338 AASTeX
8339 \end_layout
8340
8341 \begin_layout Standard
8342
8343 \noun on
8344 Mike Ressler
8345 \noun default
8346
8347 \end_layout
8348
8349 \begin_layout Subsection
8350 はじめに
8351 \end_layout
8352
8353 \begin_layout Standard
8354 AASTeXは、American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑
8355 誌)同誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of
8356  the Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために、同学会が作成したマクロ集
8357 です。LyXは、これらの文書を生成する上で、なかでも数式・引用・画像処理能力において、優れたツールであることが認識されています。LyXは、同マクロ第5.0版以降を
8358 必要としており、できればここで説明されている第5.2版以降が望まれます。第5.0版未満の版は、LaTeX2.09で使用するよう企図されているため、根本的にLyXとは互
8359 換性がありません。AASTeXパッケージは、以下のAASTeXウェブサイトからダウンロードできるでしょう。
8360 \end_layout
8361
8362 \begin_layout Standard
8363 \align center
8364 \begin_inset VSpace medskip
8365 \end_inset
8366
8367
8368 \begin_inset Flex URL
8369 status collapsed
8370
8371 \begin_layout Plain Layout
8372
8373 http://www.journals.uchicago.edu/AAS/AASTeX
8374 \end_layout
8375
8376 \end_inset
8377
8378
8379 \begin_inset VSpace medskip
8380 \end_inset
8381
8382
8383 \end_layout
8384
8385 \begin_layout Standard
8386 パッケージ中には、完備したユーザーの手引きが収録されていますので、LyXで論文を書き始める前に、その中身を完全に理解しておく必要があります。LyXは、AASTe
8387 Xの全コマンドを理解する必然性をなくすものではなく、すべてを手入力する苦労を減らすだけです。仕上がりのLaTeX文書が、論文を投稿しようとしているジャーナルの要
8388 求事項に完全に合致していることを確認するのは、あなたの責任です。
8389 \end_layout
8390
8391 \begin_layout Subsection
8392 新しい論文を書き始める
8393 \end_layout
8394
8395 \begin_layout Standard
8396 論文を書き始めるには、AASTeXひな型ファイルを土台に始めることを強くお勧めします。
8397 \begin_inset Flex MenuItem
8398 status collapsed
8399
8400 \begin_layout Plain Layout
8401 ファイル\SpecialChar \menuseparator
8402 新規(ひな型使用)
8403 \end_layout
8404
8405 \end_inset
8406
8407 をクリックして、新しいファイル名を入力し、ひな型
8408 \family typewriter
8409 aastex.lyx
8410 \family default
8411 を選んでください。これには、論文原稿のほとんどに共通して使われるフィールドが書き込まれています。書き込まれている文字列(括弧
8412 \family typewriter
8413 <>
8414 \family default
8415 を含む)を正しい情報で上書きしてください。AASTeXコマンド・AASTeX環境の多くは、LyX中で直接実行することができますが、特に
8416 \family typewriter
8417
8418 \backslash
8419 altaffilmark
8420 \family default
8421
8422 \family typewriter
8423
8424 \backslash
8425 altaffiltext
8426 \family default
8427 のようにできないものもあります。この二つのコマンドは、ひな型ファイルを開いたとき、赤色に表示されているのですぐ目に入ることでしょう。このようなコマンドは、直接L
8428 aTeXコードを入力して、それをTeXコードとしてマークしなければなりません。このようなコマンドは、TeXコードあるいはEvil Red Text(邪悪な赤い文
8429 )と呼ばれます。AASTeX文書に必要とされる TeXコードを最小にするよう努力はしていますが、まだ望まれるほどにはなっていません。
8430 \end_layout
8431
8432 \begin_layout Subsection
8433 論文を書き終わったら
8434 \end_layout
8435
8436 \begin_layout Standard
8437 論文を満足する水準で書き終え、プレビューや印刷が正しく為されているとしても、まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています。
8438 \end_layout
8439
8440 \begin_layout Enumerate
8441 論文を LaTeXファイルとして書き出します(
8442 \family sans
8443 ファイル\SpecialChar \menuseparator
8444 書き出し\SpecialChar \menuseparator
8445 LateX
8446 \family default
8447 )。
8448 \end_layout
8449
8450 \begin_layout Enumerate
8451 出力した
8452 \family typewriter
8453 .tex
8454 \family default
8455 ファイルを好きなエディタで編集します。
8456 \end_layout
8457
8458 \begin_deeper
8459 \begin_layout Enumerate
8460
8461 \family typewriter
8462
8463 \backslash
8464 documentclass
8465 \family default
8466 コマンドよりも前のコメント行を削除します。
8467 \end_layout
8468
8469 \begin_layout Enumerate
8470
8471 \family typewriter
8472
8473 \backslash
8474 usepackage...{fontenc}
8475 \family default
8476 という行があれば(通常は
8477 \family typewriter
8478
8479 \backslash
8480 documentclass
8481 \family default
8482 の直後にあります)削除します。また、
8483 \family typewriter
8484
8485 \backslash
8486 secnumdepth
8487 \family default
8488 行があれば、これも削除します。
8489 \end_layout
8490
8491 \begin_layout Enumerate
8492 LaTeXプリアンブル中に意図的に置いたコマンド(
8493 \family typewriter
8494 .tex
8495 \family default
8496 ファイル中、「User specified LaTeX commands」というコメントの直後にあります)を除いて、
8497 \family typewriter
8498
8499 \backslash
8500 makeatletter
8501 \family default
8502
8503 \family typewriter
8504
8505 \backslash
8506 makeatother
8507 \family default
8508 の間のもの(これらのコマンドを含む)をすべて削除します。
8509 \end_layout
8510
8511 \end_deeper
8512 \begin_layout Enumerate
8513 編集後のファイルを LaTeXにかけて、正しく処理されることを確認します。
8514 \end_layout
8515
8516 \begin_layout Enumerate
8517 学術誌の要求事項を再読して、ファイル名と書式が正しいことを確認します。
8518 \end_layout
8519
8520 \begin_layout Enumerate
8521 投稿してください。
8522 \end_layout
8523
8524 \begin_layout Subsection
8525 特定のコマンドに関するコメント
8526 \end_layout
8527
8528 \begin_layout Standard
8529 AASTeXユーザーの手引き(
8530 \family typewriter
8531 aasguide.tex
8532 \family default
8533 )に、各AASTeXコマンドの詳しい説明があるので、ここでは、各コマンドの使用法の詳細な説明は行いません。そこで、ここではユーザーの手引きに現れるとおりに一覧を
8534 列挙して、必要なところだけコメントを加えることにしましょう。
8535 \end_layout
8536
8537 \begin_layout Subsubsection
8538 期待通りに動作するもの
8539 \end_layout
8540
8541 \begin_layout Standard
8542 これらは期待通りに動作するので、ここでは列挙するだけにして、コマンドの説明されている節を挙げておきます。
8543 \family typewriter
8544
8545 \backslash
8546 documentclass
8547 \family default
8548 (2.1.1)・
8549 \family typewriter
8550
8551 \backslash
8552 begin{document}
8553 \family default
8554 (2.2)・
8555 \family typewriter
8556
8557 \backslash
8558 title
8559 \family default
8560 (2.3)・
8561 \family typewriter
8562
8563 \backslash
8564 author
8565 \family default
8566 (2.3)・
8567 \family typewriter
8568
8569 \backslash
8570 affil
8571 \family default
8572 (2.3)・
8573 \family typewriter
8574
8575 \backslash
8576 abstract
8577 \family default
8578 (2.4)・
8579 \family typewriter
8580
8581 \backslash
8582 keywords
8583 \family default
8584 (2.5)・
8585 \family typewriter
8586
8587 \backslash
8588 section
8589 \family default
8590 (2.7)・
8591 \family typewriter
8592
8593 \backslash
8594 subsection
8595 \family default
8596 (2.7)・
8597 \family typewriter
8598
8599 \backslash
8600 subsubsection
8601 \family default
8602 (2.7)・
8603 \family typewriter
8604
8605 \backslash
8606 paragraph
8607 \family default
8608 (2.7)・
8609 \family typewriter
8610
8611 \backslash
8612 facility
8613 \family default
8614 (2.10)・
8615 \family typewriter
8616
8617 \backslash
8618 begin{displaymath}
8619 \family default
8620 (2.12)・
8621 \family typewriter
8622
8623 \backslash
8624 begin{equation}
8625 \family default
8626 (2.12)・
8627 \family typewriter
8628
8629 \backslash
8630 begin{eqnarray}
8631 \family default
8632 (2.12)・
8633 \family typewriter
8634
8635 \backslash
8636 begin{mathletters}
8637 \family default
8638 (2.12)・
8639 \family typewriter
8640
8641 \backslash
8642 begin{thebibliography}
8643 \family default
8644 (2.13.1)・
8645 \family typewriter
8646
8647 \backslash
8648 bibitem
8649 \family default
8650 (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
8651 \family typewriter
8652
8653 \backslash
8654 begin{table}
8655 \family default
8656 (2.15.4)・
8657 \family typewriter
8658
8659 \backslash
8660 begin{tabular}
8661 \family default
8662 (2.15.4)・
8663 \family typewriter
8664
8665 \backslash
8666 caption
8667 \family default
8668 (2.15.4)・
8669 \family typewriter
8670
8671 \backslash
8672 label
8673 \family default
8674 (他にもあるが特に2.15.4)・
8675 \family typewriter
8676
8677 \backslash
8678 tablerefs
8679 \family default
8680 (2.15.5)・
8681 \family typewriter
8682
8683 \backslash
8684 tablecomments
8685 \family default
8686 (2.15.5)・
8687 \family typewriter
8688
8689 \backslash
8690 url
8691 \family default
8692 (2.17.4)・
8693 \family typewriter
8694
8695 \backslash
8696 end{document}
8697 \family default
8698 (2.18)。
8699 \end_layout
8700
8701 \begin_layout Standard
8702 以下のスタイルオプションも正しく動作します。
8703 \family typewriter
8704 longabstract
8705 \family default
8706 (2.4)・
8707 \family typewriter
8708 preprint
8709 \family default
8710 (3.2.1)・
8711 \family typewriter
8712 preprint2
8713 \family default
8714 (3.2.2)・
8715 \family typewriter
8716 eqsecnum
8717 \family default
8718 (3.3)・
8719 \family typewriter
8720 flushrt
8721 \family default
8722 (3.4)。これらは、
8723 \begin_inset Flex MenuItem
8724 status collapsed
8725
8726 \begin_layout Plain Layout
8727 文書\SpecialChar \menuseparator
8728 設定
8729 \end_layout
8730
8731 \end_inset
8732
8733 にある、
8734 \family sans
8735 クラスオプション
8736 \family default
8737
8738 \family sans
8739 任意設定
8740 \family default
8741 ボックスに入力してください。
8742 \end_layout
8743
8744 \begin_layout Subsubsection
8745 動作するが、若干説明が必要なもの
8746 \end_layout
8747
8748 \begin_layout Standard
8749 以下のコマンドは動作しますが、若干の説明が必要です。
8750 \end_layout
8751
8752 \begin_layout Itemize
8753 以下の項目は、学術誌の編集者向けに取ってあるものですが、どうしても必要ならば、LaTeXプリアンブルに入れることができます。
8754 \family typewriter
8755
8756 \backslash
8757 received
8758 \family default
8759
8760 \family typewriter
8761
8762 \backslash
8763 revised
8764 \family default
8765
8766 \family typewriter
8767
8768 \backslash
8769 accepted
8770 \family default
8771
8772 \family typewriter
8773
8774 \backslash
8775 ccc
8776 \family default
8777
8778 \family typewriter
8779 cpright
8780 \family default
8781 (すべて 2.1.3)。
8782 \end_layout
8783
8784 \begin_layout Itemize
8785 以下の項目は、LaTeXのプリアンブルに置くことができるもので、これらは、ひな型ファイルには、空の引数と共に含まれています。
8786 \family typewriter
8787
8788 \backslash
8789 slugcomment
8790 \family default
8791 (2.1.4)・
8792 \family typewriter
8793
8794 \backslash
8795 shorttitle
8796 \family default
8797 (2.1.5)・
8798 \family typewriter
8799
8800 \backslash
8801 shortauthors
8802 \family default
8803 (2.1.5)。
8804 \end_layout
8805
8806 \begin_layout Itemize
8807
8808 \family typewriter
8809
8810 \backslash
8811 email
8812 \family default
8813 (2.3)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、TeXコードを使用してください。
8814 \end_layout
8815
8816 \begin_layout Itemize
8817
8818 \family typewriter
8819
8820 \backslash
8821 and
8822 \family default
8823 (2.3)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8824 \end_layout
8825
8826 \begin_layout Itemize
8827
8828 \family typewriter
8829
8830 \backslash
8831 notetoeditor
8832 \family default
8833 (2.6)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、TeXコードを使用してください。
8834 \end_layout
8835
8836 \begin_layout Itemize
8837
8838 \family typewriter
8839
8840 \backslash
8841 placetable
8842 \family default
8843 (2.8)―相互参照用タグを挿入することはできません。手動でタグ名を入力する必要があります。
8844 \end_layout
8845
8846 \begin_layout Itemize
8847
8848 \family typewriter
8849
8850 \backslash
8851 placefigure
8852 \family default
8853 (2.8)—
8854 \family typewriter
8855
8856 \backslash
8857 placetable
8858 \family default
8859 と同様。
8860 \end_layout
8861
8862 \begin_layout Itemize
8863
8864 \family typewriter
8865
8866 \backslash
8867 acknowledgements
8868 \family default
8869 (2.9)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8870 \end_layout
8871
8872 \begin_layout Itemize
8873
8874 \family typewriter
8875
8876 \backslash
8877 appendix
8878 \family default
8879 (2.11)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8880 \end_layout
8881
8882 \begin_layout Itemize
8883
8884 \family typewriter
8885
8886 \backslash
8887 figcaption
8888 \family default
8889 (2.14.2)―文章のはじめにカーソルを置いて
8890 \begin_inset Flex MenuItem
8891 status collapsed
8892
8893 \begin_layout Plain Layout
8894 挿入\SpecialChar \menuseparator
8895 短縮タイトル
8896 \end_layout
8897
8898 \end_inset
8899
8900 を選択すれば、非必須のファイル名引数を挿入することができます。「短縮タイトル」とありますが、
8901 \family typewriter
8902
8903 \backslash
8904 figcaption
8905 \family default
8906 が必要とする型の非必須引数を挿入します。望むらくはいつの日か改名されることでしょう。
8907 \end_layout
8908
8909 \begin_layout Itemize
8910
8911 \family typewriter
8912
8913 \backslash
8914 objectname
8915 \family default
8916 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
8917 \family typewriter
8918
8919 \backslash
8920 figcaption
8921 \family default
8922 と同様。
8923 \end_layout
8924
8925 \begin_layout Itemize
8926
8927 \family typewriter
8928
8929 \backslash
8930 dataset
8931 \family default
8932 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
8933 \family typewriter
8934
8935 \backslash
8936 figcaption
8937 \family default
8938 と同様。
8939 \end_layout
8940
8941 \begin_layout Subsubsection
8942 実装されていないため、TeXコードを使用するもの
8943 \end_layout
8944
8945 \begin_layout Standard
8946
8947 \family typewriter
8948
8949 \backslash
8950 altaffilmark
8951 \family default
8952 (2.3)・
8953 \family typewriter
8954
8955 \backslash
8956 altaffiltext
8957 \family default
8958 (2.3)・
8959 \family typewriter
8960
8961 \backslash
8962 eqnum
8963 \family default
8964 (2.12)・
8965 \family typewriter
8966
8967 \backslash
8968 setcounter{equation}
8969 \family default
8970 (2.12)・学術誌名略語(2.12.4)・
8971 \family typewriter
8972
8973 \backslash
8974 figurenum
8975 \family default
8976 (2.14.1)・
8977 \family typewriter
8978
8979 \backslash
8980 epsscale
8981 \family default
8982 (2.14.1)・
8983 \family typewriter
8984
8985 \backslash
8986 plotone
8987 \family default
8988 (2.14.1)・
8989 \family typewriter
8990
8991 \backslash
8992 plottwo
8993 \family default
8994 (2.14.1)・
8995 \family typewriter
8996
8997 \backslash
8998 tablenum
8999 \family default
9000 (2.15.4)・
9001 \family typewriter
9002
9003 \backslash
9004 tableline
9005 \family default
9006 (2.15.4:入れたい場所の後ろに、左側セルの最初の要素として挿入する。表中では、LyXの方法は使わないでください)・
9007 \family typewriter
9008
9009 \backslash
9010 tablenotemark
9011 \family default
9012 (2.15.5)・
9013 \family typewriter
9014
9015 \backslash
9016 tablenotetext
9017 \family default
9018 (2.15.5)・補遺(2.17)の大半(
9019 \family typewriter
9020
9021 \backslash
9022 objectname
9023 \family default
9024
9025 \family typewriter
9026
9027 \backslash
9028 dataset
9029 \family default
9030
9031 \family typewriter
9032
9033 \backslash
9034 url
9035 \family default
9036
9037 \family typewriter
9038
9039 \backslash
9040 email
9041 \family default
9042 を除く。上記参照)・
9043 \family typewriter
9044
9045 \backslash
9046 singlespace
9047 \family default
9048 (3.1)・
9049 \family typewriter
9050
9051 \backslash
9052 doublespace
9053 \family default
9054 (3.1)・
9055 \family typewriter
9056
9057 \backslash
9058 onecolumn
9059 \family default
9060 (3.2)・
9061 \family typewriter
9062
9063 \backslash
9064 twocolumn
9065 \family default
9066 (3.2)
9067 \end_layout
9068
9069 \begin_layout Subsubsection
9070 実装できないもの
9071 \end_layout
9072
9073 \begin_layout Standard
9074 references(2.12.3)環境とdeluxetable(2.14)環境は、少なくとも意味のあるような形で実装することができないので、無視してください。もし、
9075 絶対に、どうしても、deluxetableを使う必要があるならば、テキストエディタで別ファイルとして編集し、
9076 \begin_inset Flex MenuItem
9077 status collapsed
9078
9079 \begin_layout Plain Layout
9080 挿入\SpecialChar \menuseparator
9081 ファイル
9082 \begin_inset Formula $\text{\textipa{}}$
9083 \end_inset
9084
9085 \SpecialChar \menuseparator
9086 子文書
9087 \end_layout
9088
9089 \end_inset
9090
9091 を使用して、LyXファイルに読み込むことを推奨します。この実例は、
9092 \family typewriter
9093 aas_sample.lyx
9094 \family default
9095 ファイルをご参照ください。
9096 \end_layout
9097
9098 \begin_layout Subsection
9099 FAQとヒントと技とその他の考察
9100 \end_layout
9101
9102 \begin_layout Subsubsection
9103 LyXをAASTeXと協調させる
9104 \end_layout
9105
9106 \begin_layout Standard
9107 LyXに、新しいレイアウトと文書クラスを認識させるには若干コツが要ります。もしうまく行かなかったら、次のようにしてみてください。
9108 \end_layout
9109
9110 \begin_layout Enumerate
9111 LaTeXが、AASTeXを検出できることを確認してください。AASTeX頒布版に含まれる
9112 \family typewriter
9113 sample.tex
9114 \family default
9115 (あるいは
9116 \family typewriter
9117 table.tex
9118 \family default
9119 でも可)を、LaTeXやAASTeXとまったく関係のないディレクトリにコピーして、
9120 \family typewriter
9121 sample.tex
9122 \family default
9123 をLaTeXにかけてください。
9124 \end_layout
9125
9126 \begin_layout Enumerate
9127
9128 \family typewriter
9129 aastex.layout
9130 \family default
9131 が、LyXの
9132 \family typewriter
9133 layouts
9134 \family default
9135 フォルダにあることを確認してください。
9136 \end_layout
9137
9138 \begin_layout Enumerate
9139 LyX中から
9140 \family sans
9141 ツール\SpecialChar \menuseparator
9142 再初期設定
9143 \family default
9144 を再度実行し、LyXを再起動してください。
9145 \end_layout
9146
9147 \begin_layout Enumerate
9148 ひな型ではなく、通常の新規ファイルを開いてください。AASTeXが、
9149 \family sans
9150 文書\SpecialChar \menuseparator
9151 設定
9152 \family default
9153 のクラス一覧に表示されていますか?
9154 \end_layout
9155
9156 \begin_layout Standard
9157 既存のAASTeX文書を処理する際に、AASTeXレイアウトを見つけられないとか、「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が
9158 出るようであれば、正しい導入が行われていません。
9159 \end_layout
9160
9161 \begin_layout Subsubsection
9162 表を処理する際のLaTeXエラー
9163 \end_layout
9164
9165 \begin_layout Standard
9166 既定では、LyXは、表のキャプションやタイトルを中央揃えにしようと試みます。これはAASTeXと悪い相互干渉を発生させるようですので、キャプションやタイトルのど
9167 こかをクリックして、
9168 \family sans
9169 編集\SpecialChar \menuseparator
9170 段落設定
9171 \family default
9172 を選択し、
9173 \family sans
9174 配置
9175 \family default
9176
9177 \family sans
9178 両端揃え
9179 \family default
9180 に設定してください。私のところではこれで解決しました。
9181 \end_layout
9182
9183 \begin_layout Subsubsection
9184 参考文献
9185 \end_layout
9186
9187 \begin_layout Standard
9188 若干の注意があります。(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです。書誌情報を入力する際には、最後の著者と、著作年を入れる括弧の間にスペ
9189 ースを
9190 \emph on
9191 入れない
9192 \emph default
9193 ようにしてください。たとえば、
9194 \family typewriter
9195 Ressler(1992)
9196 \family default
9197 はいいですが、
9198 \family typewriter
9199 Ressler (1992)
9200 \family default
9201 ではだめです。(2)書誌情報の入力の仕方は、必ずしも自明ではありません。もっとも簡単な方法は、文書の最後に、最初の書誌情報をまず書き込み、それを
9202 \family sans
9203 参考文献
9204 \family default
9205 環境としてマークすることです。すると、入力したものの前に、小さな灰色のボックスが現れます。このボックスをクリックして、残りの情報を入力してください。新しい参考文
9206 献を追加するには、既存の参考文献の後ろでリターンを押します。すると、新しいボックスの付いた新規行が出てくるので、後は同様にしてください。
9207 \end_layout
9208
9209 \begin_layout Subsubsection
9210 EPSファイルの読み込み
9211 \end_layout
9212
9213 \begin_layout Standard
9214 AASTeXには、自前の図関連コマンド(たとえば
9215 \family typewriter
9216
9217 \backslash
9218 plotone
9219 \family default
9220 )がありますが、私は(既定のgraphicxを使った)LaTeXの標準図コマンドの方がずっと好きです。望めば、図フロートボックスに、TeXコードで
9221 \family typewriter
9222
9223 \backslash
9224 plotone
9225 \family default
9226 等のコマンドを挿入することはできますが、私には正しいレイアウトを得ることができた試しがありません。標準の画像コマンドを使えば、LyXは、
9227 \family typewriter
9228
9229 \backslash
9230 usepackage{graphics}
9231 \family default
9232 コマンドをLaTeXプリアンブルに挿入し、図をLaTeX2eの標準的な方法で取り扱って、文章の中にちりばめます。現在、ApJは、ちょうどこのようにして作成した図
9233 を受け入れていますが、AJはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません。
9234 \end_layout
9235
9236 \begin_layout Subsubsection
9237 可能だったが、実装しなかったもの
9238 \end_layout
9239
9240 \begin_layout Standard
9241 「素敵な」ものの中には、実装することも可能だったけれども、あえて実装しなかったものがあります。たとえば、紙の原稿ではダブルスペースであったとしても、LyXウィン
9242 ドウ中で、文章をダブルスペースにする意味はないと考えました。また、preprint様式とpreprint2様式を、独立したレイアウトにすることもしませんでした。
9243 いずれにしても、執筆時間のほとんどを、平の原稿モードで使うのがほとんどですから、これらの機能でディスクスペースを消費しないことにしました。
9244 \end_layout
9245
9246 \begin_layout Subsection
9247 最後に
9248 \end_layout
9249
9250 \begin_layout Standard
9251 これまでに進んできた道のりは、長い人も短い人もいることでしょう。私には、ApJとAJに発表した論文がありますが、その努力の98%はLyX上で為されました。残りの
9252 2%が、LaTeXでの後処理と若干の後片付けです。投稿の過程では何のトラブルもなく、これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう。ですか
9253 ら、がんばって発表してください!
9254 \end_layout
9255
9256 \begin_layout Section
9257 AMS LaTeX
9258 \end_layout
9259
9260 \begin_layout Standard
9261
9262 \noun on
9263 David Johnson
9264 \noun default
9265 文 
9266 \noun on
9267 Richard Heck
9268 \noun default
9269 改訂
9270 \begin_inset VSpace bigskip
9271 \end_inset
9272
9273 AMS LaTeXレイアウトは、American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです。レイアウ
9274 トは、特定の学術誌向けに仕立てられてはいませんが、簡単にそうすることができます。各学術誌毎の指示については、AMSの説明書をご参照ください(通常は、TeX出力中
9275 の一行を変更する必要があるだけです)。AMSの説明書は、ウェブWeb上の
9276 \begin_inset Flex URL
9277 status open
9278
9279 \begin_layout Plain Layout
9280
9281 http://www.ams.org
9282 \end_layout
9283
9284 \end_inset
9285
9286 か、FTPで
9287 \begin_inset Flex URL
9288 status open
9289
9290 \begin_layout Plain Layout
9291
9292 ftp://ftp.ams.org/pub/tex/amslatex/
9293 \end_layout
9294
9295 \end_inset
9296
9297 から入手することができます。これらのレイアウトは、数学的な文章を書くのであれば、どんなときでも適切かつ有用であるはずです。
9298 \end_layout
9299
9300 \begin_layout Standard
9301 基本となるAMS LaTeXレイアウトには、以下の二つがあります。
9302 \end_layout
9303
9304 \begin_layout Itemize
9305 amsart:標準のAMS article書式。
9306 \end_layout
9307
9308 \begin_layout Itemize
9309 amsbook:標準のAMS book(実際はモノグラフ)書式。
9310 \end_layout
9311
9312 \begin_layout Standard
9313 これらのレイアウトには、それ自身では、AMSクラスを使用するのに必要最低限のものしか含まれていません。特に、定理や補題などを設定するのに使用される「theore
9314 m」環境は、何一つ含まれていません。これらは、代わりに
9315 \begin_inset Flex Code
9316 status collapsed
9317
9318 \begin_layout Plain Layout
9319 定理(AMS)
9320 \end_layout
9321
9322 \end_inset
9323
9324 モジュールに収録されており、AMSクラスのいずれかを選択すると、このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ、別
9325 のものに変えたいときは取り除くこともできます)。少し使用頻度の低いものとしては、
9326 \begin_inset Flex Code
9327 status collapsed
9328
9329 \begin_layout Plain Layout
9330 定理(AMS拡張)
9331 \end_layout
9332
9333 \end_inset
9334
9335 モジュールがあり、これは手動で読み込む必要があります。
9336 \end_layout
9337
9338 \begin_layout Standard
9339 既定では、定理類は、文書を通して連番が振られますが、これは
9340 \begin_inset Flex Code
9341 status collapsed
9342
9343 \begin_layout Plain Layout
9344 定理(節毎連番)
9345 \end_layout
9346
9347 \end_inset
9348
9349 モジュールを読み込めば変更することができ、
9350 \begin_inset Flex Code
9351 status collapsed
9352
9353 \begin_layout Plain Layout
9354 book (AMS)
9355 \end_layout
9356
9357 \end_inset
9358
9359 を使用している場合には
9360 \begin_inset Flex Code
9361 status collapsed
9362
9363 \begin_layout Plain Layout
9364 定理(章毎連番)
9365 \end_layout
9366
9367 \end_inset
9368
9369 を用いても変更することができます。これらを用いると、出力は
9370 \begin_inset Formula $n.m$
9371 \end_inset
9372
9373 のようになり、最初の数字は節番号(または章番号)、次の数字はそれまで同節内(章内)に現れた出力の全数を表します。大半の環境は、連番なしでも用いることができます。
9374 連番なしのものは、環境名の後ろにアスタリスクを付けたもので表されます。連番なしの出力
9375 \emph on
9376 のみ
9377 \emph default
9378 が欲しい場合には、
9379 \begin_inset Flex Code
9380 status collapsed
9381
9382 \begin_layout Plain Layout
9383 定理(連番なし)
9384 \end_layout
9385
9386 \end_inset
9387
9388 モジュールを用います。
9389 \end_layout
9390
9391 \begin_layout Standard
9392 これらのモジュールは、AMSクラスで使用する
9393 \emph on
9394 必要はない
9395 \emph default
9396 ことに注意してください。
9397 \begin_inset Flex Code
9398 status collapsed
9399
9400 \begin_layout Plain Layout
9401 定理(AMS)
9402 \end_layout
9403
9404 \end_inset
9405
9406 モジュールや上述の他のモジュールは、他のクラス、たとえば
9407 \begin_inset Flex Code
9408 status collapsed
9409
9410 \begin_layout Plain Layout
9411 article
9412 \end_layout
9413
9414 \end_inset
9415
9416
9417 \begin_inset Flex Code
9418 status collapsed
9419
9420 \begin_layout Plain Layout
9421 report
9422 \end_layout
9423
9424 \end_inset
9425
9426
9427 \begin_inset Flex Code
9428 status collapsed
9429
9430 \begin_layout Plain Layout
9431 book (KOMA-script)
9432 \end_layout
9433
9434 \end_inset
9435
9436 などで問題なく使用することができます。
9437 \end_layout
9438
9439 \begin_layout Subsection
9440 これらのレイアウトが提供するもの
9441 \end_layout
9442
9443 \begin_layout Standard
9444 これらのレイアウトが提供している環境を列挙すると、長い一覧となります。AMS-LaTeXでは、実のところ、「theorem」環境の派生型を際限なく定義していくこ
9445 とが可能です。しかし、AMSは、LyXで利用可能になっている環境のみを使用することを推奨しています。
9446 \end_layout
9447
9448 \begin_layout Standard
9449 \begin_inset Flex Code
9450 status collapsed
9451
9452 \begin_layout Plain Layout
9453 article (AMS)
9454 \end_layout
9455
9456 \end_inset
9457
9458
9459 \begin_inset Flex Code
9460 status collapsed
9461
9462 \begin_layout Plain Layout
9463 book (AMS)
9464 \end_layout
9465
9466 \end_inset
9467
9468 には、------
9469 \begin_inset space ~
9470 \end_inset
9471
9472
9473 \begin_inset Flex Noun
9474 status collapsed
9475
9476 \begin_layout Plain Layout
9477
9478 \end_layout
9479
9480 \end_inset
9481
9482
9483 \begin_inset Flex Noun
9484 status collapsed
9485
9486 \begin_layout Plain Layout
9487 参考文献
9488 \end_layout
9489
9490 \end_inset
9491
9492
9493 \begin_inset Flex Noun
9494 status collapsed
9495
9496 \begin_layout Plain Layout
9497 タイトル
9498 \end_layout
9499
9500 \end_inset
9501
9502
9503 \begin_inset Flex Noun
9504 status collapsed
9505
9506 \begin_layout Plain Layout
9507 著者
9508 \end_layout
9509
9510 \end_inset
9511
9512
9513 \begin_inset Flex Noun
9514 status collapsed
9515
9516 \begin_layout Plain Layout
9517 日付
9518 \end_layout
9519
9520 \end_inset
9521
9522 のような標準環境の他に
9523 \begin_inset space ~
9524 \end_inset
9525
9526 ------
9527 \begin_inset space ~
9528 \end_inset
9529
9530 以下の環境があります。
9531 \end_layout
9532
9533 \begin_layout Description
9534 住所 これは著者の恒久的な住所です。
9535 \end_layout
9536
9537 \begin_layout Description
9538 現在の住所 住所と別に指定されているときには、著者の投稿時の仮初めの住所です。
9539 \end_layout
9540
9541 \begin_layout Description
9542 電子メール 著者の電子メールアドレス
9543 \end_layout
9544
9545 \begin_layout Description
9546 URL 著者のウェブアドレス。任意。
9547 \end_layout
9548
9549 \begin_layout Description
9550 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ。
9551 \end_layout
9552
9553 \begin_layout Description
9554 分野分類 
9555 \emph on
9556 Mathematical Reviews
9557 \emph default
9558 に説明が公表されているAMS Subject Classificationsの分類番号を指します。上述したAMSのウェブサイトでも、オンラインで見ることができま
9559 す。
9560 \end_layout
9561
9562 \begin_layout Description
9563 謝辞
9564 \end_layout
9565
9566 \begin_layout Description
9567 献呈
9568 \end_layout
9569
9570 \begin_layout Description
9571 翻訳者
9572 \end_layout
9573
9574 \begin_layout Standard
9575 以下の環境は、
9576 \begin_inset Flex Code
9577 status collapsed
9578
9579 \begin_layout Plain Layout
9580 定理
9581 \end_layout
9582
9583 \end_inset
9584
9585 モジュールと
9586 \begin_inset Flex Code
9587 status collapsed
9588
9589 \begin_layout Plain Layout
9590 定理(AMS)
9591 \end_layout
9592
9593 \end_inset
9594
9595 モジュールの両方で提供され、後者の場合には、星付き(連番なし)版と星なし(連番)版の両方が提供されます。
9596 \begin_inset Flex Code
9597 status collapsed
9598
9599 \begin_layout Plain Layout
9600 定理(連番なし)
9601 \end_layout
9602
9603 \end_inset
9604
9605 モジュールでは、同環境の星付き版だけが提供されます。
9606 \end_layout
9607
9608 \begin_layout Theorem
9609 これは、通常、得られた主要な結果を叙述するのに使用されます。
9610 \end_layout
9611
9612 \begin_layout Corollary*
9613 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います。これも主要な結果であることがあります。
9614 \end_layout
9615
9616 \begin_layout Lemma
9617 他の叙述を証明するために必要とされる、比較的小さな結果です。
9618 \end_layout
9619
9620 \begin_layout Proposition
9621 議論されている一般的な理論に(希望的には)何かを付け加えるような、主要ではない結果です。
9622 \end_layout
9623
9624 \begin_layout Conjecture
9625 正当化を与えずに述べられた叙述で、著者には証明法がわからないけれども、正しいと(少なくとも著者にとっては)思われるものです。
9626 \end_layout
9627
9628 \begin_layout Definition*
9629 これは自明でしょう。この環境のフォントは、前述の環境とは異なるフォントが使用されます。
9630 \end_layout
9631
9632 \begin_layout Problem
9633 これが何を指すかは必ずしも特定されていません。ご自分で解明してください。
9634 \end_layout
9635
9636 \begin_layout Exercise*
9637 この環境の説明を記述せよ。
9638 \end_layout
9639
9640 \begin_layout Note
9641 この環境もtheorem型、通常は重要性の低い所見に用いられます。
9642 \end_layout
9643
9644 \begin_layout Claim*
9645 より大きな結果の証明を与える途中で、しばしば用いられます。
9646 \end_layout
9647
9648 \begin_layout Case
9649 一般的に、これらはある条件の特定の場合を取り上げて、長い議論を区切るのに用いられます。
9650 \end_layout
9651
9652 \begin_layout Case
9653 ケースの連番の枠組みは、それ自身で独立していて、他の連番の叙述とは区別されます。
9654 \end_layout
9655
9656 \begin_layout Proof
9657 この環境の最後には、証了記号(通常は四角ですがスタイルによって変わります)が置かれます。この環境の中に別の環境を入れたい------たとえばケース環境など---
9658 ---場合で、証了記号は証明環境の終わりにのみ現れるようにしたい場合には、他の環境は証明環境の中に入れ子にしなくてはなりません。入れ子に関する情報については、
9659 \emph on
9660 ユーザーの手引き
9661 \emph default
9662
9663 \emph on
9664 環境を入れ子にする
9665 \emph default
9666 の節をご覧ください。
9667 \end_layout
9668
9669 \begin_layout Standard
9670 そして、以下は
9671 \begin_inset Flex Code
9672 status collapsed
9673
9674 \begin_layout Plain Layout
9675 定理(AMS拡張)
9676 \end_layout
9677
9678 \end_inset
9679
9680 で提供されるものです。
9681 \end_layout
9682
9683 \begin_layout Criterion*
9684 必要とされる条件です。
9685 \end_layout
9686
9687 \begin_layout Algorithm*
9688 使用する一般的手順です。
9689 \end_layout
9690
9691 \begin_layout Axiom*
9692 議論されている系内部で真と仮定される性質や命題です。
9693 \end_layout
9694
9695 \begin_layout Condition*
9696 議論の現在の文脈で仮定されている条件を述べるのに、よく用いられます。
9697 \end_layout
9698
9699 \begin_layout Note*
9700 注記と同様です。
9701 \end_layout
9702
9703 \begin_layout Notation*
9704 表記法の説明に用いられます。
9705 \end_layout
9706
9707 \begin_layout Summary
9708 本当に説明する必要がありますか?
9709 \end_layout
9710
9711 \begin_layout Acknowledgement*
9712 謝辞(acknowledgement)です。
9713 \end_layout
9714
9715 \begin_layout Conclusion*
9716 長い議論の終わりに時々用いられます。
9717 \end_layout
9718
9719 \begin_layout Fact
9720 命題と同様の用いられ方をしますが、だいたい長くないものに使われるようです。
9721 \end_layout
9722
9723 \begin_layout Standard
9724 さらに、AMSクラスは、AMS LaTeXパッケージとAMSフォントパッケージを自動的に提供します。これらの環境を使用するためには、お使いのシステム上で利用可能
9725 となっている必要があります。
9726 \end_layout
9727
9728 \begin_layout Section
9729 AGU各誌(
9730 \family sans
9731 aguplus)
9732 \end_layout
9733
9734 \begin_layout Standard
9735
9736 \noun on
9737 Martin Vermeer
9738 \noun default
9739
9740 \end_layout
9741
9742 \begin_layout Subsection
9743 概要
9744 \end_layout
9745
9746 \begin_layout Standard
9747 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです。AGU発行のクラスファイルおよび
9748 AGUplusの両方(これらは
9749 \begin_inset Flex URL
9750 status collapsed
9751
9752 \begin_layout Plain Layout
9753
9754 ftp://ftp.agu.org/journals/latex/journals
9755 \end_layout
9756
9757 \end_inset
9758
9759 にあります)が導入されていることが必要です。
9760 \end_layout
9761
9762 \begin_layout Subsection
9763 新しいスタイル
9764 \end_layout
9765
9766 \begin_layout Standard
9767
9768 \family sans
9769 段落
9770 \family default
9771 および
9772 \family sans
9773 段落*
9774 \family default
9775 は、定義し直されています。LyXの画面では、依然として
9776 \family sans
9777 段落
9778 \family default
9779
9780 \family sans
9781 段落*
9782 \family default
9783 と表示されますが、AGUクラスにおけるLaTeXの対応物は、
9784 \family sans
9785 Subsubsubsection
9786 \family default
9787
9788 \family sans
9789 Subsubsubsection*
9790 \family default
9791 です。
9792 \end_layout
9793
9794 \begin_layout Standard
9795 新しく定義されたスタイルには、
9796 \family sans
9797 左ヘッダ
9798 \family default
9799
9800 \family sans
9801 右ヘッダ
9802 \family default
9803
9804 \family sans
9805 受理日
9806 \family default
9807
9808 \family sans
9809 改訂
9810 \family default
9811
9812 \family sans
9813 採択日
9814 \family default
9815
9816 \family sans
9817 CCC
9818 \family default
9819
9820 \family sans
9821 論文ID
9822 \family default
9823
9824 \family sans
9825 著者住所
9826 \family default
9827
9828 \family sans
9829 廃棄用コメント
9830 \family default
9831 があります。これらは、ほとんど草稿用属性で、AGUクラス説明書で説明されています。
9832 \end_layout
9833
9834 \begin_layout Standard
9835 おそらく、これはまだ恐ろしく不完全です。
9836 \end_layout
9837
9838 \begin_layout Subsection
9839 新しいフロート
9840 \end_layout
9841
9842 \begin_layout Standard
9843
9844 \family sans
9845 平面表(Planotable
9846 \family default
9847 )と
9848 \family sans
9849 挿絵
9850 \family default
9851 (Plate)が新しいフロートです。また、
9852 \family sans
9853 表キャプション
9854 \family default
9855 も付け加えられています。
9856 \end_layout
9857
9858 \begin_layout Subsection
9859 サポートされている学術誌
9860 \end_layout
9861
9862 \begin_layout Itemize
9863
9864 \emph on
9865 Journal of Geophysical Research
9866 \emph default
9867
9868 \family typewriter
9869 jgrga.layout
9870 \family default
9871  --- Martin Vermeer
9872 \end_layout
9873
9874 \begin_layout Standard
9875 ここにあなたの作ったものを加えてください。難しくはありません。
9876 \family typewriter
9877 jgrga.layout
9878 \family default
9879 と 
9880 \family typewriter
9881 aguplus.inc
9882 \family default
9883 を用例として見てください。
9884 \end_layout
9885
9886 \begin_layout Subsection
9887 バグと注意すべきこと
9888 \end_layout
9889
9890 \begin_layout Standard
9891 新しいレイアウトを使うためには、新規文書の作成時に以下の手順を行う必要があります。
9892 \end_layout
9893
9894 \begin_layout Enumerate
9895
9896 \emph on
9897 babelを無効にしてください。
9898 \emph default
9899 これは、
9900 \family sans
9901 ツール\SpecialChar \menuseparator
9902 設定
9903 \family default
9904 メニュー項目で行うことができます(AGUの論文は常に英語ですよね。ですから他の言語は
9905 \emph on
9906 選ばないで下さい
9907 \emph default
9908 )。
9909 \end_layout
9910
9911 \begin_layout Enumerate
9912 使用文書の追加オプションフィールドに
9913 \family typewriter
9914 jgrga
9915 \family default
9916 と入力してください(すみません、これはバグです)。
9917 \end_layout
9918
9919 \begin_layout Enumerate
9920 BibTeX差込枠の2番目のフィールドに
9921 \family sans
9922 agu
9923 \family default
9924 と入力して、参考文献のスタイルに
9925 \family typewriter
9926 agu.bst
9927 \family default
9928 を使用していることを確認してください。標準スタイルはうまく動作しません。
9929 \end_layout
9930
9931 \begin_layout Section
9932 Broadway
9933 \end_layout
9934
9935 \begin_layout Standard
9936
9937 \noun on
9938 Garst Reese
9939 \noun default
9940
9941 \end_layout
9942
9943 \begin_layout Subsection
9944 はじめに
9945 \end_layout
9946
9947 \begin_layout Standard
9948 Broadwayは演劇を書くためのものです。書式はHollywoodよりも装飾的で、それほど標準化されていません。この書式はワークショップに向いているでしょう。
9949 \end_layout
9950
9951 \begin_layout Subsection
9952 特別な問題
9953 \end_layout
9954
9955 \begin_layout Standard
9956 Hollywoodと同様です。
9957 \end_layout
9958
9959 \begin_layout Subsection
9960 特別の機能
9961 \end_layout
9962
9963 \begin_layout Standard
9964
9965 \family sans
9966 話者
9967 \family default
9968 の名前をラベルとして挿入し、名前を挿入する際には、このラベルを相互参照してください。相互参照ダイアログには、登場人物の現在の配役が表示されます。
9969 \end_layout
9970
9971 \begin_layout Subsection
9972 用紙寸法と余白
9973 \end_layout
9974
9975 \begin_layout Standard
9976 USレター寸法で、余白は左1.6インチ、右0.75インチ、上0.5インチ、下0.75インチです。
9977 \end_layout
9978
9979 \begin_layout Subsection
9980 環境
9981 \end_layout
9982
9983 \begin_layout Standard
9984 以下の環境を使うことができます。右に記してあるキー割当ては、broadway.bindを使った場合のものです。
9985 \end_layout
9986
9987 \begin_layout Itemize
9988
9989 \family sans
9990 標準
9991 \begin_inset Newline newline
9992 \end_inset
9993
9994
9995 \family default
9996 これは使わなくていいはずですが、他の環境が当てはまらない場合のためにここに挙げておきます。
9997 \end_layout
9998
9999 \begin_layout Itemize
10000
10001 \family sans
10002 ト書き
10003 \begin_inset space \hfill{}
10004 \end_inset
10005
10006 M-z n
10007 \begin_inset Newline newline
10008 \end_inset
10009
10010
10011 \family default
10012 舞台設定と動作の説明に用います。最初に話者名をすべて大文字で書いておきます。
10013 \end_layout
10014
10015 \begin_layout Itemize
10016
10017 \family sans
10018
10019 \begin_inset space \hfill{}
10020 \end_inset
10021
10022 M-z a
10023 \begin_inset Newline newline
10024 \end_inset
10025
10026
10027 \family default
10028 自動的に連番が振られます。連番は、画面上ではアラビア数字ですが、出力ではローマ数字です。
10029 \end_layout
10030
10031 \begin_layout Itemize
10032
10033 \family sans
10034 幕*
10035 \begin_inset space \hfill{}
10036 \end_inset
10037
10038 M-z S at
10039 \begin_inset Newline newline
10040 \end_inset
10041
10042
10043 \family default
10044 幕の副題です。単に中央揃えの文になります。
10045 \end_layout
10046
10047 \begin_layout Itemize
10048
10049 \family sans
10050 場面
10051 \begin_inset space \hfill{}
10052 \end_inset
10053
10054 M-z S-S
10055 \begin_inset Newline newline
10056 \end_inset
10057
10058
10059 \family default
10060 自動的に連番は振られませんので、手動で番号を付けてください。これは私がどうすればいいか分からなかったためです。
10061 \end_layout
10062
10063 \begin_layout Itemize
10064
10065 \family sans
10066 幕開きに:
10067 \begin_inset space \hfill{}
10068 \end_inset
10069
10070 M-z S-R
10071 \begin_inset Newline newline
10072 \end_inset
10073
10074
10075 \family default
10076 ト書きの特殊な場合で、カーテンが上がるときの舞台設定と動作を説明します。
10077 \end_layout
10078
10079 \begin_layout Itemize
10080
10081 \family sans
10082 話者
10083 \begin_inset space \hfill{}
10084 \end_inset
10085
10086 M-z s
10087 \begin_inset Newline newline
10088 \end_inset
10089
10090
10091 \family default
10092 話者(役者)の配役です。すべて大文字で中央揃えに置かれます。
10093 \end_layout
10094
10095 \begin_layout Itemize
10096
10097 \family sans
10098 括弧付き
10099 \begin_inset space \hfill{}
10100 \end_inset
10101
10102 M-z p
10103 \begin_inset Newline newline
10104 \end_inset
10105
10106
10107 \family default
10108 話者への指示です。括弧は自動的に挿入されます。画面上には左括弧(のみが表示されますが、印字出力には両方の括弧が表示されます。この環境は、
10109 \family sans
10110 対話
10111 \family default
10112 の中だけで使用されます。 
10113 \end_layout
10114
10115 \begin_layout Itemize
10116
10117 \family sans
10118 対話
10119 \begin_inset space \hfill{}
10120 \end_inset
10121
10122 M-z d
10123 \begin_inset Newline newline
10124 \end_inset
10125
10126
10127 \family default
10128 話者の言う内容。
10129 \end_layout
10130
10131 \begin_layout Itemize
10132
10133 \family sans
10134 幕切れ
10135 \begin_inset space \hfill{}
10136 \end_inset
10137
10138 M-z S-C
10139 \begin_inset Newline newline
10140 \end_inset
10141
10142
10143 \family default
10144 幕が降ります。
10145 \end_layout
10146
10147 \begin_layout Itemize
10148
10149 \family sans
10150 タイトル
10151 \begin_inset space \hfill{}
10152 \end_inset
10153
10154 M-z S-T
10155 \end_layout
10156
10157 \begin_layout Itemize
10158
10159 \family sans
10160 著者
10161 \begin_inset space \hfill{}
10162 \end_inset
10163
10164 M-z S-A
10165 \end_layout
10166
10167 \begin_layout Itemize
10168
10169 \family sans
10170 右寄せ住所
10171 \begin_inset space \hfill{}
10172 \end_inset
10173
10174 M-z r
10175 \end_layout
10176
10177 \begin_layout Section
10178 Dinbrief
10179 \end_layout
10180
10181 \begin_layout Standard
10182 文書クラス
10183 \family sans
10184 dinbrief
10185 \family default
10186 は、ドイツの慣習に則った書簡の組版を行うのに用いられます。ひな型ファイルが
10187 \family typewriter
10188 .../lyx/share/templates
10189 \family default
10190 にあるので、それを土台として使用してください。
10191 \end_layout
10192
10193 \begin_layout Section
10194 EGS各誌
10195 \family sans
10196 (egs)
10197 \end_layout
10198
10199 \begin_layout Standard
10200
10201 \noun on
10202 Martin Vermeer
10203 \noun default
10204
10205 \end_layout
10206
10207 \begin_layout Subsection
10208 概要
10209 \end_layout
10210
10211 \begin_layout Standard
10212 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです。必要とされる
10213 \family typewriter
10214 egs.cls
10215 \family default
10216 は、EGSのウェブサイト
10217 \begin_inset Flex URL
10218 status collapsed
10219
10220 \begin_layout Plain Layout
10221
10222 http://www.copernicus.org/
10223 \end_layout
10224
10225 \end_inset
10226
10227 からダウンロードできます。
10228 \end_layout
10229
10230 \begin_layout Subsection
10231 新しいスタイル
10232 \end_layout
10233
10234 \begin_layout Standard
10235 新しいスタイルとして、
10236 \family sans
10237 右寄せ住所
10238 \family default
10239
10240 \family sans
10241 LaTeXタイトル
10242 \family default
10243
10244 \family sans
10245 所属
10246 \family default
10247
10248 \family sans
10249 学術誌名
10250 \family default
10251
10252 \family sans
10253 原稿番号
10254 \family default
10255
10256 \family sans
10257 筆頭著者
10258 \family default
10259
10260 \family sans
10261 受理日
10262 \family default
10263
10264 \family sans
10265 採択日
10266 \family default
10267
10268 \family sans
10269 オフセット
10270 \family default
10271 があります。現在のレイアウトファイルは、残念ながらほとんどモジュール化されておらず、さまざまな
10272 \family typewriter
10273 std*.inc
10274 \family default
10275 ファイルを読み込む形に変えた方が便利になると思われます。
10276 \end_layout
10277
10278 \begin_layout Section
10279 Elsevier各誌
10280 \end_layout
10281
10282 \begin_layout Standard
10283
10284 \lang english
10285 See the LyX template file 
10286 \family typewriter
10287 elsarticle.lyx
10288 \family default
10289 .
10290  It contains all infos you need.
10291 \end_layout
10292
10293 \begin_layout Section
10294 Foils(別名FoilTeX)
10295 \begin_inset CommandInset label
10296 LatexCommand label
10297 name "sec:foiltex"
10298
10299 \end_inset
10300
10301
10302 \end_layout
10303
10304 \begin_layout Standard
10305
10306 \noun on
10307 Allan Rae
10308 \noun default
10309
10310 \end_layout
10311
10312 \begin_layout Subsection
10313 はじめに
10314 \end_layout
10315
10316 \begin_layout Standard
10317 本節では、プレゼンテーション用のスライドを作るための、LyXの使用法を解説します。スライドを作ることのできる文書クラスには、slides・FoilTeX・sem
10318 inar・beamer・powerdotといったクラスがありますが、本節では、そのうちslidesの解説を行います。
10319 \end_layout
10320
10321 \begin_layout Standard
10322 誤解のないように、わかりやすく明確に、もう一度言っておきます。
10323 \end_layout
10324
10325 \begin_layout Standard
10326 \begin_inset VSpace bigskip
10327 \end_inset
10328
10329
10330 \end_layout
10331
10332 \begin_layout Standard
10333 \align center
10334
10335 \size large
10336 本節は「
10337 \family sans
10338 presentation (FoilT
10339 \size default
10340
10341 \begin_inset ERT
10342 status collapsed
10343
10344 \begin_layout Plain Layout
10345
10346 {}
10347 \end_layout
10348
10349 \end_inset
10350
10351
10352 \size large
10353 eX)
10354 \family default
10355 」クラス
10356 \emph on
10357 のみの
10358 \emph default
10359 解説を行います。
10360 \end_layout
10361
10362 \begin_layout Standard
10363 \begin_inset VSpace bigskip
10364 \end_inset
10365
10366
10367 \end_layout
10368
10369 \begin_layout Standard
10370
10371 \family sans
10372 transparencies (slides)
10373 \family default
10374 」の解説をお探しであれば、第
10375 \begin_inset CommandInset ref
10376 LatexCommand ref
10377 reference "sec:slitex"
10378
10379 \end_inset
10380
10381 節をご覧ください。お使いのコンピュータに
10382 \family sans
10383 foils
10384 \family default
10385 クラス(
10386 \family sans
10387 presentation (FoilT
10388 \begin_inset ERT
10389 status collapsed
10390
10391 \begin_layout Plain Layout
10392
10393 {}
10394 \end_layout
10395
10396 \end_inset
10397
10398 eX)
10399 \family default
10400 )が導入されていなければ、
10401 \family sans
10402 foils
10403 \family default
10404 ほど良くはありませんが、おそらく
10405 \family sans
10406 slides
10407 \family default
10408 クラスを使わざるをえないでしょう。
10409 \end_layout
10410
10411 \begin_layout Standard
10412
10413 \family sans
10414 foils
10415 \family default
10416 クラスは、LaTeX2eの一部として含まれているLaTeXクラスファイル
10417 \family sans
10418 foils.cls
10419 \family default
10420 の第2.1版とともに使われるように設計されています。
10421 \end_layout
10422
10423 \begin_layout Subsection
10424 最初の一歩
10425 \end_layout
10426
10427 \begin_layout Standard
10428 いうまでもなく、この文書クラスを使うには、
10429 \family sans
10430 文書\SpecialChar \menuseparator
10431 設定\SpecialChar \menuseparator
10432 文書クラス
10433 \family default
10434 メニューの
10435 \family sans
10436 文書クラス
10437 \family default
10438 ドロップダウンで「
10439 \family sans
10440 presentation (FoilT
10441 \begin_inset ERT
10442 status collapsed
10443
10444 \begin_layout Plain Layout
10445
10446 {}
10447 \end_layout
10448
10449 \end_inset
10450
10451 eX)
10452 \family default
10453 」を選択する必要があります。また、
10454 \family sans
10455 文書設定
10456 \family default
10457 ダイアログ中には、以下のように、このクラスに特有の設定がいくつかあることを知っておかなくてはなりません。
10458 \end_layout
10459
10460 \begin_layout Itemize
10461
10462 \family sans
10463 文書設定
10464 \family default
10465 ダイアログ中の、
10466 \family sans
10467 両面文書
10468 \family default
10469 オプションと
10470 \family sans
10471 二段組文書
10472 \family default
10473 オプションは変更しないでください。これらは 
10474 \family sans
10475 foils
10476 \family default
10477 クラスでは無視されます。
10478 \end_layout
10479
10480 \begin_layout Itemize
10481 既定のフォント寸法は20ptであり、17pt・25pt・30ptを選択することも可能です。
10482 \end_layout
10483
10484 \begin_layout Itemize
10485 既定のフォントは
10486 \family sans
10487 sans
10488 \family default
10489  
10490 \family sans
10491 serif
10492 \family default
10493 ですが、数式ではすべて、通常のローマン体が使用されます。
10494 \end_layout
10495
10496 \begin_layout Itemize
10497 FoilTeXは、35
10498 \begin_inset space \thinspace{}
10499 \end_inset
10500
10501 mmスライド用の特殊寸法の他、A4とレター大の用紙寸法をサポートします。A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません。
10502 \end_layout
10503
10504 \begin_layout Itemize
10505
10506 \family sans
10507 フロートの配置
10508 \family default
10509 の設定は無視されますので、わざわざ変更する必要はありません。フロートはすべて、本文中で定義された位置に表示されます。
10510 \end_layout
10511
10512 \begin_layout Itemize
10513 このクラスの
10514 \family sans
10515 ページレイアウト
10516 \family default
10517 の設定は、若干異なった挙動を示します。FoilTeXでは、ユーザ定義のロゴをはじめ、フッタとへッダに広範な設定ができます。詳細については第
10518 \begin_inset CommandInset ref
10519 LatexCommand ref
10520 reference "sec:foilfoot"
10521
10522 \end_inset
10523
10524 節をご覧ください。タイトルページは、文書中の他のページとは異なった取扱がなされ、ページ番号は
10525 \emph on
10526 つねに
10527 \emph default
10528 付けられず、(ロゴが定義されていれば)ロゴは、
10529 \emph on
10530 つねに
10531 \emph default
10532 ページ下部中央に表示されます。使用できるページ様式とその挙動は、以下の通りです。
10533 \end_layout
10534
10535 \begin_deeper
10536 \begin_layout Labeling
10537 \labelwidthstring MMMMMMM
10538
10539 \family sans
10540 \series bold
10541 empty
10542 \family default
10543 \series default
10544  最終出力には、ページ番号をはじめ、へッダ・フッタが出力されません(もちろん脚注は除きます)。
10545 \end_layout
10546
10547 \begin_layout Labeling
10548 \labelwidthstring MMMMMMM
10549
10550 \family sans
10551 \series bold
10552 plain
10553 \family default
10554 \series default
10555  最終出力には、ページ番号がページ下部の中央に出力されますが、他のへッダ・フッタは出力されません(脚注除く)。
10556 \end_layout
10557
10558 \begin_layout Labeling
10559 \labelwidthstring MMMMMMM
10560
10561 \series bold
10562 foilheadings
10563 \series default
10564  ページ番号が右下隅に出力されます。追記したへッダ・フッタも出力されます。これが既定値です。
10565 \end_layout
10566
10567 \begin_layout Labeling
10568 \labelwidthstring MMMMMMM
10569
10570 \series bold
10571 fancy
10572 \series default
10573  これは
10574 \family sans
10575 fancyheadings
10576 \family default
10577 パッケージを使えるようにします。ただし、FoilTeXパッケージの作者は、ページレイアウトが崩れる可能性があるので、これを使用することは勧めないと言及しています
10578
10579 \end_layout
10580
10581 \end_deeper
10582 \begin_layout Subsubsection
10583 任意設定クラスオプション
10584 \end_layout
10585
10586 \begin_layout Standard
10587 以下のオプションは
10588 \family sans
10589 文書設定
10590 \family default
10591 ダイアログの任意設定クラスオプションボックスで使うことができます。
10592 \end_layout
10593
10594 \begin_layout Labeling
10595 \labelwidthstring MMMMMMx
10596
10597 \series bold
10598 35mmSlide
10599 \series default
10600  これは、ページレイアウトを縦7.33インチ横11インチに設定します。これは35
10601 \begin_inset space \space{}
10602 \end_inset
10603
10604 mmスライドの縦横比にほぼ等しく、このメディアを作る作業が若干易しくなります。
10605 \end_layout
10606
10607 \begin_layout Labeling
10608 \labelwidthstring MMMMMMx
10609
10610 \series bold
10611 headrule
10612 \series default
10613  タイトルページを除くすべてのページのへッダの下に罫線を入れます。
10614 \end_layout
10615
10616 \begin_layout Labeling
10617 \labelwidthstring MMMMMMx
10618
10619 \series bold
10620 footrule
10621 \series default
10622  タイトルページを除くすべてのページのフッタの上に罫線を入れます。
10623 \end_layout
10624
10625 \begin_layout Labeling
10626 \labelwidthstring MMMMMMx
10627
10628 \series bold
10629 dvips
10630 \series default
10631  これは、新規
10632 \family sans
10633 foils
10634 \family default
10635 文書を作成する度に自動的に設定されます。このオプションは、横向きに設定されたページを回転させるのに、dvipsドライバを使うようFoilTeXに指示します。
10636 \end_layout
10637
10638 \begin_layout Labeling
10639 \labelwidthstring MMMMMMx
10640
10641 \series bold
10642 landscape
10643 \series default
10644  このオプションは、用紙寸法を横向きページ大に変更するだけで、回転は行いません。したがって、このオプションを使う場合は、各ページを回転させる外部プログラムを使用
10645 する、プリンタに用紙を横向きに給紙する必要があります。また、このオプションは、
10646 \family sans
10647 Foilhead
10648 \family default
10649 環境と
10650 \family sans
10651 Rotatefoilhead
10652 \family default
10653 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します)。
10654 \end_layout
10655
10656 \begin_layout Labeling
10657 \labelwidthstring MMMMMMx
10658
10659 \series bold
10660 leqno
10661 \series default
10662  数式番号を左側に付けます。
10663 \end_layout
10664
10665 \begin_layout Labeling
10666 \labelwidthstring MMMMMMx
10667
10668 \series bold
10669 fleqn
10670 \series default
10671  数式を左揃えにします。
10672 \end_layout
10673
10674 \begin_layout Subsection
10675 サポートされる環境
10676 \end_layout
10677
10678 \begin_layout Standard
10679 他のクラスで標準的にサポートされている環境は、
10680 \family sans
10681 foils
10682 \family default
10683 クラスでもサポートされています。それ以外に、FoilTeXが提供している環境と、LyXが付け加えた環境があります。以下の環境は、他のクラスと共通の環境です。
10684 \end_layout
10685
10686 \begin_layout Standard
10687 \begin_inset ERT
10688 status open
10689
10690 \begin_layout Plain Layout
10691
10692
10693 \backslash
10694 begin{multicols}{2}
10695 \end_layout
10696
10697 \end_inset
10698
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 箇条書き(リスト)
10730 \end_layout
10731
10732 \begin_layout Itemize
10733
10734 \family sans
10735 LyXコード
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 Itemize
10805
10806 \family sans
10807 コメント
10808 \end_layout
10809
10810 \begin_layout Standard
10811 \begin_inset ERT
10812 status open
10813
10814 \begin_layout Plain Layout
10815
10816
10817 \backslash
10818 end{multicols}
10819 \end_layout
10820
10821 \end_inset
10822
10823
10824 \end_layout
10825
10826 \begin_layout Standard
10827 つまり、節区切りを除けば、主な環境のすべてです。一枚のスライドは、基本的にタイトルと本文を備えた自己完結した節なので、
10828 \family sans
10829 Foil
10830 \family default
10831 TeXは新しいスライドを始める以下のようなコマンドを備えています。
10832 \end_layout
10833
10834 \begin_layout Itemize
10835
10836 \family sans
10837 スライドタイトル(Foilhead)
10838 \end_layout
10839
10840 \begin_layout Itemize
10841
10842 \family sans
10843 横置きスライドタイトル(Rotatefoilhead)
10844 \end_layout
10845
10846 \begin_layout Standard
10847 LyXは、以下のような、これらを若干修正した環境も用意しています。
10848 \end_layout
10849
10850 \begin_layout Itemize
10851
10852 \family sans
10853 スライドタイトル(小)(ShortFoilhead)
10854 \end_layout
10855
10856 \begin_layout Itemize
10857
10858 \family sans
10859 横置きスライドタイトル(小)(ShortRotatefoilhead)
10860 \end_layout
10861
10862 \begin_layout Standard
10863 これらの違いは次節で説明します。
10864 \end_layout
10865
10866 \begin_layout Standard
10867 スライドは、アイデアを説明したり、新しい定理を説明したりするのにしばしば使われるので、
10868 \family sans
10869 Foil
10870 \family default
10871 TeXはそれらを説明するのに便利な環境を幅広く用意しています。
10872 \end_layout
10873
10874 \begin_layout Standard
10875 \begin_inset ERT
10876 status open
10877
10878 \begin_layout Plain Layout
10879
10880
10881 \backslash
10882 begin{multicols}{2}
10883 \end_layout
10884
10885 \end_inset
10886
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 Itemize
10951
10952 \family sans
10953 定義*
10954 \end_layout
10955
10956 \begin_layout Standard
10957 \begin_inset ERT
10958 status open
10959
10960 \begin_layout Plain Layout
10961
10962
10963 \backslash
10964 end{multicols}
10965 \end_layout
10966
10967 \end_inset
10968
10969
10970 \end_layout
10971
10972 \begin_layout Standard
10973 星付き版は連番が振られず、星なし版は連番が振られます。他に、LyXで追加された以下の2つの箇条書き環境があります。
10974 \end_layout
10975
10976 \begin_layout Itemize
10977
10978 \family sans
10979 箇条書き(チック)
10980 \end_layout
10981
10982 \begin_layout Itemize
10983
10984 \family sans
10985 箇条書き(クロス)
10986 \end_layout
10987
10988 \begin_layout Standard
10989 FoilTeXには、強力なヘッダ機能とフッタ機能があり、これらはプリアンブルで設定するのが最良ですが、文章中のどこでも設定することができます。もし文書中でこれら
10990 の設定を変更したい場合には、スライドの一番上、foilheadの直後で行うのが良いでしょう。
10991 \end_layout
10992
10993 \begin_layout Standard
10994 この目的のためには、以下のコマンドスタイルがあります(
10995 \shape smallcaps
10996 Martin Vermeer)。
10997 \end_layout
10998
10999 \begin_layout Standard
11000 \begin_inset ERT
11001 status open
11002
11003 \begin_layout Plain Layout
11004
11005
11006 \backslash
11007 begin{multicols}{2}
11008 \end_layout
11009
11010 \end_inset
11011
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_layout Itemize
11040
11041 \family sans
11042 左ヘッダ
11043 \end_layout
11044
11045 \begin_deeper
11046 \begin_layout Standard
11047 \begin_inset space ~
11048 \end_inset
11049
11050
11051 \end_layout
11052
11053 \end_deeper
11054 \begin_layout Standard
11055 \begin_inset ERT
11056 status open
11057
11058 \begin_layout Plain Layout
11059
11060
11061 \backslash
11062 end{multicols}
11063 \end_layout
11064
11065 \end_inset
11066
11067
11068 \end_layout
11069
11070 \begin_layout Standard
11071 FoilTeXが提供しているコマンドで、LyXが直接サポートしていないコマンドもありますが、これらの説明と使い方については、第
11072 \begin_inset CommandInset ref
11073 LatexCommand ref
11074 reference "sec:unsuppfoils"
11075
11076 \end_inset
11077
11078 節で行います。
11079 \end_layout
11080
11081 \begin_layout Subsection
11082 スライドの組を作る
11083 \end_layout
11084
11085 \begin_layout Standard
11086 この節は、様々な環境を使ってスライドの組を作る方法を簡単に紹介します。スライド組の例をご覧になりたい場合は、LyXの
11087 \family typewriter
11088 examples
11089 \family default
11090 フォルダにある
11091 \family typewriter
11092 Foils.lyx
11093 \family default
11094 ファイルをご覧ください。
11095 \end_layout
11096
11097 \begin_layout Subsubsection
11098 タイトルページを作る
11099 \end_layout
11100
11101 \begin_layout Standard
11102
11103 \family sans
11104 タイトル
11105 \family default
11106
11107 \family sans
11108 著者
11109 \family default
11110
11111 \family sans
11112 日付
11113 \family default
11114
11115 \family sans
11116 概要
11117 \family default
11118 環境のある他のクラスとは異なり、
11119 \family sans
11120 foils
11121 \family default
11122 は独立したページにタイトルを作成します。
11123 \family sans
11124 日付
11125 \family default
11126 環境を使用しなかった場合には、LaTeXは(出力を生成し直したときにはいつも)その時点の日付を挿入します。
11127 \end_layout
11128
11129 \begin_layout Subsubsection
11130 新しいスライドを開始する
11131 \end_layout
11132
11133 \begin_layout Standard
11134 前述のように、新しいスライドを開始するには、4つの方法があります。縦向きのスライドを開始するには、
11135 \family sans
11136 スライドタイトル(Foilhead)
11137 \family default
11138
11139 \family sans
11140 スライドタイトル(小)(ShortFoilhead)
11141 \family default
11142 を使用します。両環境の違いは、スライドタイトル(foilhead)とスライド本文の間の余白の違いです。
11143 \end_layout
11144
11145 \begin_layout Standard
11146 横向きのスライドは、
11147 \family sans
11148 横向きスライドタイトル(Rotatefoilhead)
11149 \family default
11150 か横向きスライドタイトル(小)(
11151 \family sans
11152 ShortRotatefoilhead)
11153 \family default
11154 環境を使用して生成します。ここでも両環境の違いは、タイトルと本文の間の余白のみです。どちらの場合も、(小)と記された版は、タイトルと本文の間の余白が、0.5インチ
11155 (約1.27cm)小さくなります。
11156 \end_layout
11157
11158 \begin_layout Standard
11159 横向きのスライドをサポートする際、一つ問題となるのは、スライドを回転させようと思うと、PostScript出力を生成するのに
11160 \family typewriter
11161 dvips
11162 \family default
11163 ドライバを使用することを要求してしまうことです。もしスライドをプリンタに横に給紙することができれば、
11164 \family typewriter
11165 dvips
11166 \family default
11167 ドライバを持っていなくても、横向きのスライドをつくることができます ;-)
11168 \end_layout
11169
11170 \begin_layout Subsubsection
11171 定理・補題・証明など
11172 \end_layout
11173
11174 \begin_layout Standard
11175 LyX中の小さなバグによって、これらの環境の同じ型をお互いに直接続けて置くことはできません。これらは何かによって分離されなくてはなりません。仮に二つ続けて置いて
11176 も、2つの環境をマージしたかのように、前の環境が延長されるだけです。この問題を回避するにはどうすればよいのでしょうか。最も簡単な方法は、二つの環境の間に何か文章
11177 を置くか、あるいは二つの間に「
11178 \family typewriter
11179 %
11180 \family default
11181 」だけから成るLaTeX環境を置くことです。これによって、LyXは2つの別々の環境を生成するように強制され、正しいLaTeX出力を得ることができます。LyX頒布
11182 版に含まれる用例ファイルに例があります。この問題は、二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください。
11183 \end_layout
11184
11185 \begin_layout Subsubsection
11186 箇条書き
11187 \end_layout
11188
11189 \begin_layout Standard
11190 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて、二つの新しい様式を使用することができます。ここでは、その新しい様式のみを説明することにします。
11191 他の箇条書き環境について詳しく知りたい場合には、
11192 \emph on
11193 ユーザーの手引き
11194 \emph default
11195 をご覧ください。記号による箇条書きを使用したい場合には、上記第
11196 \begin_inset CommandInset ref
11197 LatexCommand ref
11198 reference "sec:ブリット"
11199
11200 \end_inset
11201
11202 節の
11203 \family sans
11204 箇条書き(記号)ブリットの指定
11205 \family default
11206 の節も、読まれることが望ましいでしょう。
11207 \end_layout
11208
11209 \begin_layout Standard
11210
11211 \family sans
11212 箇条書き(チック)
11213 \family default
11214
11215 \family sans
11216 箇条書き(クロス)
11217 \family default
11218 の二つの新しい様式は、チェック印や×印を箇条書きのラベルに使用する専用の環境を提供することで、予定一覧や正誤一覧を作りやすくするように設計されたものです。これら
11219 の箇条書きは、
11220 \family sans
11221 箇条書き(記号)
11222 \family default
11223 の派生型を専用に用意したものに過ぎません。ただし、これらは、
11224 \family typewriter
11225 psnfss
11226 \family default
11227 パッケージが導入済であることを要求します。
11228 \end_layout
11229
11230 \begin_layout Subsubsection
11231 図と表
11232 \end_layout
11233
11234 \begin_layout Standard
11235 FoilTeXでは、図表フロートは、本文中の挿入箇所にこれらが正確に表示されるように再定義されており、ページの上部やユーザー指定場所に押しのけたりはしないように
11236 なっています。たとえフロート配置の設定に変更を加えたとしても、単に無視されます。
11237 \end_layout
11238
11239 \begin_layout Subsubsection
11240 ページヘッダおよびページフッタ
11241 \begin_inset CommandInset label
11242 LatexCommand label
11243 name "sec:foilfoot"
11244
11245 \end_inset
11246
11247
11248 \end_layout
11249
11250 \begin_layout Standard
11251
11252 \family sans
11253 グラフィックスロゴ
11254 \family default
11255
11256 \family sans
11257 配布制限
11258 \family default
11259 の二つは、左フッタ文を制御するものです。前者は、グラフィックスのロゴをスライドに入れるためのもので、既定値は「-Typeset by 
11260 \family sans
11261 Foil
11262 \family default
11263 TeX-」となっています。後者は、「機密事項」などのように、聴衆に秘密区分を提示することを意図しています。既定値では、何も設定されていません。
11264 \end_layout
11265
11266 \begin_layout Standard
11267 スライドの残り三隅には、
11268 \family sans
11269 右フッタ
11270 \family default
11271 (既定ではページ番号)・
11272 \family sans
11273 右ヘッダ
11274 \family default
11275 (右上)・
11276 \family sans
11277 左ヘッダ
11278 \family default
11279 (左上)を使って文字を入れることができます。
11280 \end_layout
11281
11282 \begin_layout Subsection
11283 サポートされない 
11284 \family sans
11285 Foil
11286 \family default
11287 TeX機能
11288 \begin_inset CommandInset label
11289 LatexCommand label
11290 name "sec:unsuppfoils"
11291
11292 \end_inset
11293
11294
11295 \end_layout
11296
11297 \begin_layout Standard
11298 以下で言及されているコマンドは、
11299 \family sans
11300 LaTeX
11301 \family default
11302 環境内で設定されるか、他の環境中の
11303 \family sans
11304 TeXコード
11305 \family default
11306 として設定される必要があります。
11307 \end_layout
11308
11309 \begin_layout Subsubsection
11310 長さ
11311 \end_layout
11312
11313 \begin_layout Standard
11314 長さは、すべて
11315 \family typewriter
11316
11317 \backslash
11318 setlength{
11319 \family default
11320 \emph on
11321 長さ名
11322 \family typewriter
11323 \emph default
11324 }{
11325 \family default
11326 \emph on
11327 新規長さ
11328 \family typewriter
11329 \emph default
11330 }
11331 \family default
11332 コマンドで調節されます。ここで
11333 \emph on
11334 長さ名
11335 \emph default
11336 は、変更したい長さに付けられている名前で置き換え、
11337 \emph on
11338 新規長さ
11339 \emph default
11340 は、その長さの値で置き換えます。長さはすべて、インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か、
11341 \family typewriter
11342
11343 \backslash
11344 textwidth
11345 \family default
11346 のように文書比あるいはフォント基準の長さで指定する必要があります。
11347 \end_layout
11348
11349 \begin_layout Standard
11350
11351 \family typewriter
11352
11353 \backslash
11354 foilheadskip
11355 \family default
11356 で指定される長さを調節することによって、スライドタイトルとスライド本文の間の余白を変更することができます。たとえば、スライドタイトルをすべて0.5
11357 \begin_inset space \space{}
11358 \end_inset
11359
11360 inだけスライド本文に近づけるには、プリアンブルに
11361 \family typewriter
11362
11363 \backslash
11364 setlength{
11365 \backslash
11366 foilheadskip}{-0.5in}
11367 \family default
11368 と書き込みます。
11369 \end_layout
11370
11371 \begin_layout Standard
11372 フロート周囲の余白は、以下の長さを設定することで調整することができます。
11373 \end_layout
11374
11375 \begin_layout Labeling
11376 \labelwidthstring MMMMMMMMMMM
11377
11378 \family typewriter
11379
11380 \backslash
11381 abovefloatskip
11382 \family default
11383  本文とフロート上辺との間隔
11384 \end_layout
11385
11386 \begin_layout Labeling
11387 \labelwidthstring MMMMMMMMMMM
11388
11389 \family typewriter
11390
11391 \backslash
11392 abovecaptionskip
11393 \family default
11394  フロートとキャプションとの間隔
11395 \end_layout
11396
11397 \begin_layout Labeling
11398 \labelwidthstring MMMMMMMMMMM
11399
11400 \family typewriter
11401
11402 \backslash
11403 belowcaptionskip
11404 \family default
11405  キャプションとそれに続く本文との間隔
11406 \end_layout
11407
11408 \begin_layout Labeling
11409 \labelwidthstring MMMMMMMMMMM
11410
11411 \family typewriter
11412
11413 \backslash
11414 captionwidth
11415 \family default
11416  この長さを調整することでキャプションを、周囲の本文より短くすることができます。
11417 \family typewriter
11418
11419 \backslash
11420 textwidth
11421 \family default
11422 に対する相対的な長さで調整するのが最も良いでしょう。
11423 \end_layout
11424
11425 \begin_layout Standard
11426 以下のようなタイトルページ関連の長さもあり、タイトルが長い場合や、著者が複数いる場合に使うと便利かもしれません。
11427 \end_layout
11428
11429 \begin_layout Labeling
11430 \labelwidthstring MMMMMMMMMMM
11431
11432 \family typewriter
11433
11434 \backslash
11435 abovetitleskip
11436 \family default
11437  へッダとタイトルとの間隔
11438 \end_layout
11439
11440 \begin_layout Labeling
11441 \labelwidthstring MMMMMMMMMMM
11442
11443 \family typewriter
11444
11445 \backslash
11446 titleauthorskip
11447 \family default
11448  
11449 \family sans
11450 タイトル
11451 \family default
11452 環境と
11453 \family sans
11454 著者
11455 \family default
11456 環境との間隔
11457 \end_layout
11458
11459 \begin_layout Labeling
11460 \labelwidthstring MMMMMMMMMMM
11461
11462 \family typewriter
11463
11464 \backslash
11465 authorauthorskip
11466 \family default
11467  著者が複数いる場合の
11468 \family sans
11469 著者
11470 \family default
11471 行の間隔
11472 \end_layout
11473
11474 \begin_layout Labeling
11475 \labelwidthstring MMMMMMMMMMM
11476
11477 \family typewriter
11478
11479 \backslash
11480 authordateskip
11481 \family default
11482  
11483 \family sans
11484 著者
11485 \family default
11486
11487 \family sans
11488 日付
11489 \family default
11490 との間隔
11491 \end_layout
11492
11493 \begin_layout Labeling
11494 \labelwidthstring MMMMMMMMMMM
11495
11496 \family typewriter
11497
11498 \backslash
11499 dateabstractskip
11500 \family default
11501  
11502 \family sans
11503 日付
11504 \family default
11505
11506 \family sans
11507 概要
11508 \family default
11509 との間隔
11510 \end_layout
11511
11512 \begin_layout Standard
11513 最後に紹介する長さ関連コマンドは、箇条書き環境すべてに使用できるものです。
11514 \family typewriter
11515
11516 \backslash
11517 zerolistvertdimens
11518 \family default
11519 を箇条書き環境の内側に置くと、項目間の垂直余白がすべて取り除かれます。これは長さではなくコマンドなので、上述のもののように
11520 \family typewriter
11521
11522 \backslash
11523 setlength
11524 \family default
11525 を使う必要がないことに注意してください。
11526 \end_layout
11527
11528 \begin_layout Subsubsection
11529 へッダとフッタ
11530 \end_layout
11531
11532 \begin_layout Standard
11533
11534 \family typewriter
11535
11536 \backslash
11537 LogoOn
11538 \family default
11539 および
11540 \family typewriter
11541
11542 \backslash
11543 LogoOff
11544 \family default
11545 は、
11546 \family typewriter
11547 MyLogo
11548 \family default
11549 で定義したロゴを特定のページに入れるかどうかを制御します。
11550 \family typewriter
11551
11552 \backslash
11553 LogoOff
11554 \family default
11555 をプリアンブルに入れると、全スライドからロゴが取り除かれます。特定のスライドにのみロゴを付けたくない場合は、当該ページのスライドタイトルの直後に直接
11556 \family typewriter
11557
11558 \backslash
11559 LogoOff
11560 \family default
11561 を置き、次のスライドタイトルの直後に直接
11562 \family typewriter
11563
11564 \backslash
11565 LogoOn
11566 \family default
11567 を置いてください。
11568 \end_layout
11569
11570 \begin_layout Standard
11571
11572 \family sans
11573 文書レイアウト
11574 \family default
11575 ダイアログで
11576 \family sans
11577 fancy
11578 \family default
11579 ページ様式を使用することを選択した場合には、横置きページのヘッダとフッタが回転後も正しく配置されるように、プリアンブルに
11580 \family typewriter
11581
11582 \backslash
11583 let
11584 \backslash
11585 headwidth
11586 \backslash
11587 textwidth
11588 \family default
11589 を加える必要があるでしょう。これは、
11590 \family sans
11591 fancyheadings
11592 \family default
11593 パッケージが提供するページレイアウトと
11594 \family sans
11595 foils
11596 \family default
11597 クラスの提供するページレイアウトの間に衝突が発生するためです。
11598 \end_layout
11599
11600 \begin_layout Section
11601 Hollywood(Hollywoodスペック・スクリプト)
11602 \end_layout
11603
11604 \begin_layout Standard
11605
11606 \noun on
11607 Garst Reese
11608 \noun default
11609
11610 \end_layout
11611
11612 \begin_layout Subsection
11613 はじめに
11614 \end_layout
11615
11616 \begin_layout Standard
11617 脚本を正しい書式で書くことは、ハリウッドにおける「通過儀礼」です。ハリウッドの脚本は、読み手が内容に集中できるようにし、俳優にとっても読みやすくかつ親しみやすい
11618 ように設計されています。脚本の1ページは、映画の1分でなければならず、銀幕上で見えたり聞こえたりしないものは、脚本に混入してはなりません。また、全体を通してCo
11619 urier 12
11620 \begin_inset space \space{}
11621 \end_inset
11622
11623 ptフォントを使わなければならず、イタリック体は用いてはいけません。
11624 \end_layout
11625
11626 \begin_layout Subsection
11627 特別な問題
11628 \end_layout
11629
11630 \begin_layout Standard
11631 話者の行は、文の途中で改行することは
11632 \emph on
11633 決して
11634 \emph default
11635 あってはなりません。もし話者行の塊が、次頁にまたがる場合には、
11636 \family sans
11637 話者
11638 \family default
11639 名を再度書き、その後に(Cont'd)と加えます。
11640 \end_layout
11641
11642 \begin_layout Subsection
11643 特別な機能
11644 \end_layout
11645
11646 \begin_layout Standard
11647
11648 \family sans
11649 話者
11650 \family default
11651 名はラベルとして挿入し、話者名を挿入するには、そのラベルを相互参照してください。相互参照ダイアログは、登場人物の現在の配役を表示することになります。これは、ト書
11652 きに話者名を挿入するのにも使用することができます。
11653 \end_layout
11654
11655 \begin_layout Subsection
11656 用紙寸法と余白
11657 \end_layout
11658
11659 \begin_layout Standard
11660 USレター寸法で、左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです。
11661 \end_layout
11662
11663 \begin_layout Subsection
11664 環境
11665 \end_layout
11666
11667 \begin_layout Standard
11668 以下の環境が利用可能です。右に示されているキー割当てを使用するには、hollywood.bindを使用してください。
11669 \end_layout
11670
11671 \begin_layout Itemize
11672
11673 \family sans
11674 一般
11675 \begin_inset Newline newline
11676 \end_inset
11677
11678
11679 \family default
11680 他の環境が動作しない場合に使用しますが、これを使うことは避けるようにしてください。
11681 \end_layout
11682
11683 \begin_layout Itemize
11684 フェイドイン:
11685 \begin_inset space \hfill{}
11686 \end_inset
11687
11688
11689 \family sans
11690 M-z S-I
11691 \family default
11692
11693 \begin_inset Newline newline
11694 \end_inset
11695
11696 通常、この後には「Sallyは目を覚ますと」のように続きます。
11697 \end_layout
11698
11699 \begin_layout Itemize
11700
11701 \family sans
11702 屋内:
11703 \begin_inset space \hfill{}
11704 \end_inset
11705
11706 M-z i
11707 \begin_inset Newline newline
11708 \end_inset
11709
11710
11711 \family default
11712 新しい屋内(INTERIOR)カメラの設定を指定します。この後には、かならずDAYやNIGHTなどを指定して、必要な照明を定義します。この行はすべて大文字で書き
11713 ます。
11714 \end_layout
11715
11716 \begin_layout Itemize
11717
11718 \family sans
11719 屋外:
11720 \begin_inset space \hfill{}
11721 \end_inset
11722
11723 M-z e
11724 \begin_inset Newline newline
11725 \end_inset
11726
11727
11728 \family default
11729 屋外(EXTERIOR)カメラの設定を指定します。この行はすべて大文字で書きます。
11730 \end_layout
11731
11732 \begin_layout Itemize
11733
11734 \family sans
11735 話者
11736 \begin_inset space \hfill{}
11737 \end_inset
11738
11739 M-z s
11740 \begin_inset Newline newline
11741 \end_inset
11742
11743
11744 \family default
11745 話す役。
11746 \end_layout
11747
11748 \begin_layout Itemize
11749
11750 \family sans
11751 括弧付き
11752 \begin_inset space \hfill{}
11753 \end_inset
11754
11755 M-z p
11756 \begin_inset Newline newline
11757 \end_inset
11758
11759 話者
11760 \family default
11761 への指示。自動的に括弧()が挿入されますが、LyX上で表示されるのは、左括弧( のみです。印刷出力には右括弧も表示されます。
11762 \end_layout
11763
11764 \begin_layout Itemize
11765
11766 \family sans
11767 対話
11768 \begin_inset space \hfill{}
11769 \end_inset
11770
11771 M-z d
11772 \begin_inset Newline newline
11773 \end_inset
11774
11775 話者
11776 \family default
11777 が話す内容。
11778 \end_layout
11779
11780 \begin_layout Itemize
11781
11782 \family sans
11783 画面遷移
11784 \begin_inset space \hfill{}
11785 \end_inset
11786
11787 M-z t
11788 \begin_inset Newline newline
11789 \end_inset
11790
11791
11792 \family default
11793 カメラの動きの指示。例:CUT TO:。
11794 \end_layout
11795
11796 \begin_layout Itemize
11797
11798 \family sans
11799 フェイドアウト:
11800 \begin_inset space \hfill{}
11801 \end_inset
11802
11803 M-z S-I
11804 \end_layout
11805
11806 \begin_layout Itemize
11807
11808 \family sans
11809 著者
11810 \begin_inset space \hfill{}
11811 \end_inset
11812
11813 M-z S-A
11814 \end_layout
11815
11816 \begin_layout Itemize
11817
11818 \family sans
11819 タイトル
11820 \begin_inset space \hfill{}
11821 \end_inset
11822
11823 M-z S-T
11824 \end_layout
11825
11826 \begin_layout Itemize
11827
11828 \family sans
11829 右寄せ住所
11830 \begin_inset space \hfill{}
11831 \end_inset
11832
11833 M-z r
11834 \end_layout
11835
11836 \begin_layout Subsection
11837 脚本で使われる特別な用語
11838 \end_layout
11839
11840 \begin_layout Itemize
11841 (O.S) — off screen
11842 \end_layout
11843
11844 \begin_layout Itemize
11845 (V.0) — voice over
11846 \end_layout
11847
11848 \begin_layout Itemize
11849 b.g.
11850  — background
11851 \end_layout
11852
11853 \begin_layout Itemize
11854 C.U.
11855  — close-up
11856 \end_layout
11857
11858 \begin_layout Itemize
11859 PAN — camera movement
11860 \end_layout
11861
11862 \begin_layout Itemize
11863 INSERT — cut to close-up of
11864 \end_layout
11865
11866 \begin_layout Section
11867 ijmpcおよびijmpd
11868 \end_layout
11869
11870 \begin_layout Standard
11871
11872 \noun on
11873 Panayotis Papasotiriou
11874 \noun default
11875
11876 \end_layout
11877
11878 \begin_layout Subsection
11879 概観
11880 \end_layout
11881
11882 \begin_layout Standard
11883 ijpmcパッケージは、
11884 \emph on
11885 International Journal of Modern Physics C
11886 \emph default
11887 への電子投稿を可能にするためのマクロ集です。同様に、ijpmdパッケージは、
11888 \emph on
11889 International Journal of Modern Physics D
11890 \emph default
11891 へ投稿する現行を作成するためのものです。両誌ともWorld Scientific社の刊行です。対応する文書クラス名は、それぞれ
11892 \family typewriter
11893 ws-ijmpc.cls
11894 \family default
11895 および
11896 \family typewriter
11897 ws-ijmpd.cls
11898 \family default
11899 です。これらのファイルは、著者のための指針とともに、
11900 \begin_inset Flex URL
11901 status collapsed
11902
11903 \begin_layout Plain Layout
11904
11905 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
11906 \end_layout
11907
11908 \end_inset
11909
11910 および
11911 \begin_inset Flex URL
11912 status collapsed
11913
11914 \begin_layout Plain Layout
11915
11916 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
11917 \end_layout
11918
11919 \end_inset
11920
11921 の各サイトからダウンロードすることができます。両パッケージは、標準「article」パッケージの修正版であり、両者は(一部を除き)ほぼ同一です。LyXは、これら
11922 のパッケージのほとんどの機能をサポートしています。私は両誌へ投稿する論文をLyXで書き上げましたが、何らの問題も生じませんでした。
11923 \end_layout
11924
11925 \begin_layout Subsection
11926 論文を書く
11927 \end_layout
11928
11929 \begin_layout Standard
11930 通常と同じく、論文を書く上で最も易しい方法は、ひな型を使って書き始めることです。
11931 \family sans
11932 ファイル\SpecialChar \menuseparator
11933 新規(ひな形使用)
11934 \family default
11935 をクリックして、ひな型
11936 \family typewriter
11937 ijmpc.lyx
11938 \family default
11939 もしくは
11940 \family typewriter
11941 ijmpd.lyx
11942 \family default
11943 を選択してください。すると、原稿で良く使用されるフィールドを含んだ、ほぼ空の文書ができますので、既存のフィールド(鍵括弧
11944 \family typewriter
11945 <>
11946 \family default
11947 を含む)を正しい情報で置き換えてください。以下の各点にご留意ください。
11948 \end_layout
11949
11950 \begin_layout Enumerate
11951 両パッケージでは、フォント寸法や文書のページ様式を変更することが禁じられているので、LyX中でこれらを変更することはできません。
11952 \end_layout
11953
11954 \begin_layout Enumerate
11955 文書言語は変更してはいけません。論文をプレビューする前に、babelパッケージが使用されていないことを確認してください。これは、
11956 \family sans
11957 ツール\SpecialChar \menuseparator
11958 設定
11959 \family default
11960 をクリックして、
11961 \family sans
11962 言語オプション
11963 \family default
11964 タブを選択し、言語設定で
11965 \family sans
11966 Babelを使う
11967 \family default
11968 チェックボックスを無効にしてから、
11969 \family sans
11970 適用
11971 \family default
11972 をクリックすれば、設定することができます(この変更を固定するなら
11973 \family sans
11974 保存
11975 \family default
11976 を押してください)。
11977 \end_layout
11978
11979 \begin_layout Enumerate
11980 キーワードを定義するに際しては、「キーワード」様式を用いなくてはなりません。
11981 \end_layout
11982
11983 \begin_layout Enumerate
11984 ijmpcパッケージが提供する「分類コード」様式は、PACS番号のような分類コードを定義するのに使用することができます。この機能は、ijmpdパッケージではサポ
11985 ートされていませんので、ご注意ください。
11986 \end_layout
11987
11988 \begin_layout Enumerate
11989 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
11990 きます。これらの使い方は、大凡自明でしょう。LyXは、これらの環境をすべてサポートし、それぞれについて、適切なラベルと文字様式および連番スキームを使用します。
11991 \end_layout
11992
11993 \begin_layout Enumerate
11994 両パッケージは、単純な引用を使用しますので、natbibパッケージは使用してはなりません。LyX中では、引用参照は通常通り表示されますが、出力では上付き文字とし
11995 て表示されます。引用に通常の本文を使用したい場合には、「See Ref.
11996 \begin_inset space \space{}
11997 \end_inset
11998
11999
12000 \family typewriter
12001
12002 \backslash
12003 refcite{キー}
12004 \family default
12005 」のように
12006 \family typewriter
12007 refcite
12008 \family default
12009 コマンドを使用してください。
12010 \end_layout
12011
12012 \begin_layout Enumerate
12013 両パッケージには、「謝辞」環境がありません。謝辞を置くには、「節*」環境を使用してください。
12014 \end_layout
12015
12016 \begin_layout Enumerate
12017 付録は、論文中、謝辞の
12018 \emph on
12019
12020 \emph default
12021 かつ参考文献の
12022 \emph on
12023
12024 \emph default
12025 であれば、入れることができます。LyX上では、「付録領域」という特別な環境があり、これを使って付録の開始位置を指定することができます。この環境は空のままにしてお
12026 かなくてはなりません。この環境は、LaTeXコマンドを書き出すだけで、実際に出力は行いません。LyX上では、青字で「Appendix」という単語が表示され、この
12027 箇所より後の節はすべて付録であることを明示します。「付録領域」は、最初の付録の前に
12028 \emph on
12029 なくてはならない
12030 \emph default
12031 ことに注意してください。さもなくば、出力中において、付録はすべて通常の節として連番が振られてしまいます。
12032 \end_layout
12033
12034 \begin_layout Enumerate
12035 ijmpcおよびijmpdパッケージは、表キャプションを実装するのに
12036 \family typewriter
12037 tbl
12038 \family default
12039 コマンドを使用します。そのため、LyXが作成した表は正しく印字されますが、そのキャプションは無視されます。しかし、TeXコードを少し使えば、この問題を回避して、
12040 キャプションを望み通り印字することができるようになります。そうするには、表フロートを通常通り作成して、キャプションを削除し、代わりにTeXコードで
12041 \family typewriter
12042
12043 \backslash
12044 tbl{表キャプション}{
12045 \family default
12046 (ママ)と入れます。そこに表の内容を入れて、直後をTeXコード
12047 \family typewriter
12048 }
12049 \family default
12050 で閉じてください。このからくりがどのように実装されているかを見るには、ひな型ファイルに入っている表の例を精査してみてください。別の方法としては、表キャプションが
12051 欲しい場合に、表フロート全体を
12052 \family typewriter
12053 .tex
12054 \family default
12055 ファイルに収め、このファイルをLyX文書に取り込んでください(
12056 \family sans
12057 挿入\SpecialChar \menuseparator
12058 ファイル\SpecialChar \menuseparator
12059 子文書
12060 \family default
12061 )。表フロートの作り方についての詳細は、各パッケージに含まれている
12062 \family typewriter
12063 ws-ijmpc.tex
12064 \family default
12065 または
12066 \family typewriter
12067 ws-ijmpd.tex
12068 \family default
12069 ファイルをご覧ください。
12070 \end_layout
12071
12072 \begin_layout Subsection
12073 原稿を投稿するための準備
12074 \end_layout
12075
12076 \begin_layout Standard
12077 論文を投稿する前には、LyX文書をLaTeXファイルに書き出し(
12078 \family sans
12079 ファイル\SpecialChar \menuseparator
12080 書き出し\SpecialChar \menuseparator
12081 LaTeX
12082 \family default
12083
12084 \begin_inset Foot
12085 status open
12086
12087 \begin_layout Plain Layout
12088 実は、LaTeX (plain)とpdflatexとの間で選択ができます。論文を準備するのにpdflatexを使用しようとするのであれば、取り込んである画像がP
12089 DF形式に変換され、pdflatexで使用できるように、pdflatexオプションを指定しなくてはなりません。
12090 \end_layout
12091
12092 \end_inset
12093
12094 、その
12095 \family typewriter
12096 .tex
12097 \family default
12098 ファイルに以下の変更を加える必要があります。
12099 \end_layout
12100
12101 \begin_layout Enumerate
12102
12103 \family typewriter
12104
12105 \backslash
12106 documentclass
12107 \family default
12108 コマンドより前にあるコメント行を削除する。
12109 \end_layout
12110
12111 \begin_layout Enumerate
12112 自身で明示的にLaTeXプリアンブルに置いたコマンドを除き、
12113 \family typewriter
12114
12115 \backslash
12116 makeatletter
12117 \family default
12118 コマンドと
12119 \family typewriter
12120
12121 \backslash
12122 makeatother
12123 \family default
12124 コマンドの間にあるものをすべて削除する。
12125 \end_layout
12126
12127 \begin_layout Standard
12128 こうして修正を加えた
12129 \family typewriter
12130 .tex
12131 \family default
12132 ファイルを保存し、必要な回数LaTeXで処理してください。それによって得られた
12133 \family typewriter
12134 .dvi
12135 \family default
12136 文書も確認された方がよろしいでしょう。
12137 \end_layout
12138
12139 \begin_layout Subsection
12140 TeXコードの使用
12141 \end_layout
12142
12143 \begin_layout Standard
12144 TeXコードを使用するのは、2つのコマンドに限られ、これらは文書の最初に置かれなくてはなりません。論文をひな型
12145 \family typewriter
12146 ijmpc.lyx
12147 \family default
12148 または
12149 \family typewriter
12150 ijmpd.lyx
12151 \family default
12152 を使用して書き始めた場合には、これら必要なTeXコードは、すでに書き込まれています。通常、これらを削除する必要はありません。2つのうち1番めのTeXコードのみが
12153 、奇数ページおよび偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために、修正する必要があります。このTeXコードは、
12154 \family typewriter
12155
12156 \backslash
12157 markboth{著者名}{論文の短縮タイトル}
12158 \family default
12159 という形である必要があります。
12160 \end_layout
12161
12162 \begin_layout Section
12163 iopart
12164 \end_layout
12165
12166 \begin_layout Standard
12167
12168 \noun on
12169 Uwe Stöhr
12170 \noun default
12171
12172 \end_layout
12173
12174 \begin_layout Subsection
12175 概要
12176 \end_layout
12177
12178 \begin_layout Standard
12179 iopartパッケージは、Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12180 す。iopartクラスを使用した論文作成方法の著者用説明書は、ウェブサイト
12181 \begin_inset Flex URL
12182 status collapsed
12183
12184 \begin_layout Plain Layout
12185
12186 ftp://ftp.iop.org/pub/journals/latex2e
12187 \end_layout
12188
12189 \end_inset
12190
12191 からiopartパッケージとともにダウンロード可能です。
12192 \end_layout
12193
12194 \begin_layout Subsection
12195 論文を書く
12196 \end_layout
12197
12198 \begin_layout Standard
12199 論文を書くもっとも簡単な方法は、LyXの用例ファイルフォルダにある
12200 \emph on
12201 IOP-article.lyx
12202 \emph default
12203 を土台にすることです。このファイルを開き、新しい名前で保存して、書き始めてください。この用例ファイルは、特定の環境の使用法についても説明しています。もっとも重要
12204 な助言として、以下の点にご注意ください。
12205 \end_layout
12206
12207 \begin_layout Itemize
12208 文書がPDF・PS・DVIにコンパイルできるようにするためには、文書設定の
12209 \family sans
12210 数式オプション
12211 \family default
12212 で、二つの
12213 \family sans
12214 AMS mathパッケージを使う
12215 \family default
12216 関連オプションが有効になっていないことを確認してください!
12217 \end_layout
12218
12219 \begin_layout Itemize
12220 タイトル環境の選択如何によって、論文の種類が定義されます。種類毎に以下の環境をタイトルに使用してください。
12221 \end_layout
12222
12223 \begin_deeper
12224 \begin_layout Itemize
12225 論文用には
12226 \family sans
12227 タイトル
12228 \end_layout
12229
12230 \begin_layout Itemize
12231 Review用には
12232 \family sans
12233 Review
12234 \end_layout
12235
12236 \begin_layout Itemize
12237 Topical review用には
12238 \family sans
12239 Topical
12240 \end_layout
12241
12242 \begin_layout Itemize
12243 Comment用には
12244 \family sans
12245 Comment
12246 \end_layout
12247
12248 \begin_layout Itemize
12249 Note用には
12250 \family sans
12251 注釈
12252 \end_layout
12253
12254 \begin_layout Itemize
12255 論文用には
12256 \family sans
12257 Paper
12258 \family default
12259 (タイトルと同じ)
12260 \end_layout
12261
12262 \begin_layout Itemize
12263 Preliminary communication用には
12264 \family sans
12265 Prelim
12266 \end_layout
12267
12268 \begin_layout Itemize
12269 Rapid communication用には
12270 \family sans
12271 Rapid
12272 \end_layout
12273
12274 \begin_layout Itemize
12275 編集者へのLetterには
12276 \family sans
12277 書簡
12278 \end_layout
12279
12280 \end_deeper
12281 \begin_layout Itemize
12282
12283 \family sans
12284 書簡
12285 \family default
12286 以外のタイトル環境には、すべて短縮タイトルをつけることもできます。
12287 \end_layout
12288
12289 \begin_layout Itemize
12290 LyXでは直接にサポートされていませんが、一般的なタイトル環境として
12291 \family sans
12292 Article
12293 \family default
12294 があります。執筆する文書が、他のタイトル型にそぐわない場合には、TeXコードでこれを指定することができます。
12295 \end_layout
12296
12297 \begin_layout Standard
12298 特別な表や数式組版に関するヒントなど、詳しい情報については、IOP著者用ガイドラインを参照してください。
12299 \end_layout
12300
12301 \begin_layout Section
12302 Kluwer
12303 \end_layout
12304
12305 \begin_layout Standard
12306
12307 \noun on
12308 Panayotis Papasotiriou
12309 \noun default
12310
12311 \end_layout
12312
12313 \begin_layout Subsection
12314 概要
12315 \end_layout
12316
12317 \begin_layout Standard
12318 Kluwerパッケージは、Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために、同社が作成したマクロ集です。同社
12319 の発行誌のうち、(少なくとも私の専門内で)もっともよく知られているものは、
12320 \emph on
12321 Astrophysics and Space Science
12322 \emph default
12323 (『宇宙物理学と宇宙科学』)と
12324 \emph on
12325 Solar Physics
12326 \emph default
12327 (『太陽系物理学』)ですが、他にも多くの学術誌があります(
12328 \begin_inset Flex URL
12329 status collapsed
12330
12331 \begin_layout Plain Layout
12332
12333 http://www.wkap.nl/jrnllist.htm/JRNLHOME
12334 \end_layout
12335
12336 \end_inset
12337
12338 に全覧があります)。Kluwerパッケージは、
12339 \begin_inset Flex URL
12340 status collapsed
12341
12342 \begin_layout Plain Layout
12343
12344 http://www.wkap.nl/kaphtml.htm/STYLEFILES
12345 \end_layout
12346
12347 \end_inset
12348
12349 からダウンロードできます。完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です)。
12350 \end_layout
12351
12352 \begin_layout Standard
12353 LyXは、このパッケージの機能の多くをサポートしていますが、すべてではありません。しかし、TeXコードを必要とするのは、パッケージ中のいくつかの「変わった」コマ
12354 ンドだけになりました(
12355 \begin_inset CommandInset ref
12356 LatexCommand ref
12357 reference "subsec:kluwer_peculiarities"
12358
12359 \end_inset
12360
12361 参照)。最近、私はLyXを使って書いた論文を
12362 \emph on
12363 Astrophysics and Space Science
12364 \emph default
12365 に投稿しましたが、何らの問題も発生しませんでした。
12366 \end_layout
12367
12368 \begin_layout Subsection
12369 論文を書く
12370 \end_layout
12371
12372 \begin_layout Standard
12373 論文を書き始めるには、ひな型ファイルKluwerを使うのが最も簡単です。
12374 \family sans
12375 ファイル\SpecialChar \menuseparator
12376 新規(ひな型使用)
12377 \family default
12378 をクリックし、ひな型
12379 \family typewriter
12380 kluwer.lyx
12381 \family default
12382 を選択してください。これは、原稿に通常必要となる各フィールドと、それらの使用法が短く書かれただけの、(ほとんど)何も書かれていない文書です。他のテンプレートと同
12383 様に、既存の文章を(括弧
12384 \family typewriter
12385 <>
12386 \family default
12387 を含む)正しい情報で上書きしてください。
12388 \end_layout
12389
12390 \begin_layout Subsection
12391 投稿の準備
12392 \end_layout
12393
12394 \begin_layout Standard
12395 AASTeXパッケージと同様、論文を投稿する前に、以下のような「後処理」を行う必要があります。
12396 \end_layout
12397
12398 \begin_layout Enumerate
12399
12400 \family sans
12401 ファイル\SpecialChar \menuseparator
12402 書き出し\SpecialChar \menuseparator
12403 LateX
12404 \family default
12405 をクリックして、論文をLaTeXファイルに書き出す。
12406 \end_layout
12407
12408 \begin_layout Enumerate
12409 生成された
12410 \family typewriter
12411 .tex
12412 \family default
12413 ファイルに、テキストエディタを使用して、以下のような変更を加える。
12414 \end_layout
12415
12416 \begin_deeper
12417 \begin_layout Enumerate
12418
12419 \family typewriter
12420
12421 \backslash
12422 documentclass
12423 \family default
12424 コマンドより前にあるコメント行を削除する。
12425 \end_layout
12426
12427 \begin_layout Enumerate
12428 意図的にLaTeXプリアンブルに加えたコマンドを除き、
12429 \family typewriter
12430
12431 \backslash
12432 makeatletter
12433 \family default
12434 から 
12435 \family typewriter
12436
12437 \backslash
12438 makeatother
12439 \family default
12440 の間にあるものを、これらのコマンドも含め、すべて削除する。
12441 \end_layout
12442
12443 \begin_layout Standard
12444 変更した
12445 \family typewriter
12446 .tex
12447 \family default
12448 ファイルを保存する。
12449 \end_layout
12450
12451 \end_deeper
12452 \begin_layout Enumerate
12453 この
12454 \family typewriter
12455 .tex
12456 \family default
12457 ファイルを必要な回数(通常3回以内)だけLaTeXにかける。
12458 \end_layout
12459
12460 \begin_layout Enumerate
12461 生成された
12462 \family typewriter
12463 .dvi
12464 \family default
12465 ファイルを
12466 \family sans
12467 xdvi
12468 \family default
12469 などを使って開き、問題がないか確認する(間違いをしていない限り問題ないはずです)。
12470 \end_layout
12471
12472 \begin_layout Subsection
12473 Kluwerパッケージの「風変わり」な特徴
12474 \begin_inset CommandInset label
12475 LatexCommand label
12476 name "subsec:kluwer_peculiarities"
12477
12478 \end_inset
12479
12480
12481 \end_layout
12482
12483 \begin_layout Standard
12484 Kluwerパッケージには、以下のような「風変わりな」特徴があります。
12485 \end_layout
12486
12487 \begin_layout Enumerate
12488 複数の論文を1つのLaTeXファイルへ入れることができます
12489 \begin_inset Foot
12490 status collapsed
12491
12492 \begin_layout Plain Layout
12493 わざわざこんなことをする必要はないでしょう。
12494 \end_layout
12495
12496 \end_inset
12497
12498 。各論文は、「article」環境で囲まなくてはなりません。残念ながら、1つの論文だけを書く場合でも、この環境を省略することはできません。つまり、各論文は
12499 \family typewriter
12500
12501 \backslash
12502 begin{article}
12503 \family default
12504 で始まり、
12505 \family typewriter
12506
12507 \backslash
12508 end{article}
12509 \family default
12510 で終わります。この環境をLyXに実装することも可能でしたが、醜い上に初心者を混乱させる可能性があるので、実装することはしませんでした。したがって、これらの命令(
12511 \family typewriter
12512
12513 \backslash
12514 begin{article}
12515 \family default
12516
12517 \family typewriter
12518
12519 \backslash
12520 end{article}
12521 \family default
12522 )は、直接本文中に入力して、LaTeXコード(「TeXコード」のことです)としてマークする必要があります。
12523 \end_layout
12524
12525 \begin_layout Enumerate
12526 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は、「opening」とよばれる環境に入れなくて
12527 はなりません。これはLyXでは実装されていませんので、タイトルやサブタイトルなどは、2つのTeXコード行(
12528 \family typewriter
12529
12530 \backslash
12531 begin{opening}
12532 \family default
12533 および
12534 \family typewriter
12535
12536 \backslash
12537 end{opening}
12538 \family default
12539 )の間に入れる必要があります。
12540 \end_layout
12541
12542 \begin_layout Enumerate
12543 ユーザーの手引きによれば、参考文献の各項目のラベルは、
12544 \family typewriter
12545
12546 \backslash
12547 protect
12548 \backslash
12549 citeauthoryear{
12550 \family default
12551 \emph on
12552 著者名
12553 \family typewriter
12554 \emph default
12555 }{
12556 \family default
12557 \emph on
12558
12559 \family typewriter
12560 \emph default
12561 }
12562 \family default
12563  と書く必要があります。
12564 \end_layout
12565
12566 \begin_layout Standard
12567 ひな型
12568 \family typewriter
12569 kluwer.lyx
12570 \family default
12571 は、これらの風変わりな点がすべて考慮されています。このひな型を使用して、論文を新たに書きはじめる場合には、特別なことを行う必要はありません。以下の点にのみ留意し
12572 てください。
12573 \end_layout
12574
12575 \begin_layout Enumerate
12576 ひな型にあるTeXコードを削除しないでください。
12577 \end_layout
12578
12579 \begin_layout Enumerate
12580 新しい参考文献項目を入力する場合には、ひな型に例示されている参考文献項目をコピーして、必要に応じて修正してください。
12581 \end_layout
12582
12583 \begin_layout Section
12584 Koma-Script
12585 \end_layout
12586
12587 \begin_layout Standard
12588
12589 \noun on
12590 Bernd Rellermeyer
12591 \noun default
12592
12593 \end_layout
12594
12595 \begin_layout Subsection
12596 概要
12597 \end_layout
12598
12599 \begin_layout Standard
12600 LyXの文書クラス
12601 \emph on
12602 article (koma-script)
12603 \emph default
12604
12605 \emph on
12606 report (koma-script)
12607 \emph default
12608
12609 \emph on
12610 book
12611 \emph default
12612  
12613 \emph on
12614 (koma-script)
12615 \emph default
12616
12617 \emph on
12618 letter
12619 \emph default
12620  
12621 \emph on
12622 (koma-script)
12623 \emph default
12624 は、それぞれKoma-ScriptファミリーのLaTeX文書クラス
12625 \family typewriter
12626 scrartcl.cls
12627 \family default
12628
12629 \family typewriter
12630 scrreprt.cls
12631 \family default
12632
12633 \family typewriter
12634 scrbook.cls
12635 \family default
12636
12637 \family typewriter
12638 scrlettr.cls
12639 \family default
12640 に対応しています。これらは、標準文書クラス
12641 \family typewriter
12642 article.cls
12643 \family default
12644
12645 \family typewriter
12646 report.cls
12647 \family default
12648
12649 \family typewriter
12650 book.cls
12651 \family default
12652
12653 \family typewriter
12654 letter.cls
12655 \family default
12656 の代替物であり、これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します。
12657 \end_layout
12658
12659 \begin_layout Itemize
12660 標準文字寸法は、
12661 \emph on
12662 article (koma-script)
12663 \emph default
12664
12665 \emph on
12666 report (koma-script)
12667 \emph default
12668
12669 \emph on
12670 book (koma-script)
12671 \emph default
12672 で11pt、
12673 \emph on
12674 letter (koma-script)
12675 \emph default
12676 で12ptです。
12677 \end_layout
12678
12679 \begin_layout Itemize
12680 見出しや箇条書き(記述)環境のラベル、および
12681 \emph on
12682 letter (koma-script)
12683 \emph default
12684 文書クラスの要素の多くでは、ボールド体サンセリフフォントが使われます
12685 \begin_inset Foot
12686 status collapsed
12687
12688 \begin_layout Plain Layout
12689 ボールド体サンセリフフォントには、古いcmフォントと新しいecフォントの間に大きな違いがあり、特に見出しの表示の違いが際立ちます。比較すると、ecボールドサンセ
12690 リフフォントの方が、少し細く見えます。ecフォントを使用する際に「通常の」外観が欲しい場合には、
12691 \shape smallcaps
12692 Walter Schmidt
12693 \shape default
12694 作のLaTeXパッケージ
12695 \family typewriter
12696 cmsd.sty
12697 \family default
12698 が役立ちます。
12699 \end_layout
12700
12701 \end_inset
12702
12703 。章見出しの連番は、節見出しの連番と同様に行われ、別行立てで「 Chapter\SpecialChar \ldots{}
12704 」という行がつきません。さらに、多くのオプションによって、見出しの外観を修正するこ
12705 とができます(LyXでは、
12706 \family sans
12707 文書\SpecialChar \menuseparator
12708 設定
12709 \family default
12710 ダイアログの
12711 \family sans
12712 クラスオプション
12713 \family default
12714 フィールドで指定します)。これらのオプションの独語での詳細な説明が、Koma-Scriptの取扱説明書
12715 \emph on
12716 scrguide
12717 \emph default
12718 にあります。
12719 \end_layout
12720
12721 \begin_layout Itemize
12722 Koma-Script文書クラスで、印字部分をデザインする主な方法は、
12723 \family sans
12724 BCOR
12725 \family default
12726 オプションまたは
12727 \family sans
12728 DIV
12729 \family default
12730 オプションを使う方法です(LyXでは、
12731 \family sans
12732 文書\SpecialChar \menuseparator
12733 設定
12734 \family default
12735 ダイアログの
12736 \family sans
12737 クラスオプション
12738 \family default
12739 フィールドで指定します)。これらのオプションは
12740 \family sans
12741 文書\SpecialChar \menuseparator
12742 設定
12743 \family default
12744 ダイアログのオプションと同様に、ページ余白を明示的に変更することができます。これらとその他印字領域オプションのドイツ語での詳細な説明が、Koma-Script取
12745 扱説明書
12746 \emph on
12747 scrguide
12748 \emph default
12749 にあります。
12750 \end_layout
12751
12752 \begin_layout Itemize
12753 Koma-ScriptファミリーのLaTeX文書クラスには、多くの追加コマンドが定義されています。それらのうち、LyXで意味を持つものは、対応する段落環境として
12754 実装されています。
12755 \end_layout
12756
12757 \begin_layout Standard
12758 Koma-ScriptファミリーのLaTeX文書クラスに関する独語の詳細な説明が、Koma-Script取扱説明書
12759 \emph on
12760 scrguide
12761 \emph default
12762 にあります
12763 \begin_inset Foot
12764 status collapsed
12765
12766 \begin_layout Plain Layout
12767 英語翻訳版の
12768 \emph on
12769 screnggu
12770 \emph default
12771 もありますが、完訳ではありません。
12772 \end_layout
12773
12774 \end_inset
12775
12776 。以下の各節では、LyXに関係する側面のみ説明致します。
12777 \end_layout
12778
12779 \begin_layout Subsection
12780 article (koma-script)・report (koma-script)・book (koma-script)
12781 \end_layout
12782
12783 \begin_layout Standard
12784 文書クラス
12785 \emph on
12786 article (koma-script)
12787 \emph default
12788
12789 \emph on
12790 report (koma-script)
12791 \emph default
12792
12793 \emph on
12794 book
12795 \emph default
12796  
12797 \emph on
12798 (koma-script)
12799 \emph default
12800 は、それぞれレイアウトファイル
12801 \family typewriter
12802 scrartcl.layout
12803 \family default
12804
12805 \family typewriter
12806 scrreprt.layou
12807 \family default
12808 t・
12809 \family typewriter
12810 crbook.layout
12811 \family default
12812 によって実装されています。これらは、対応する標準文書クラス
12813 \emph on
12814 article
12815 \emph default
12816
12817 \emph on
12818 report
12819 \emph default
12820
12821 \emph on
12822 book
12823 \emph default
12824 の段落環境を、若干の修正を加えた上ですべて含んでいますが、LyX固有の
12825 \family sans
12826 箇条書き(一覧)
12827 \family default
12828 環境は例外であり、同じ機能を持つ新しい
12829 \family sans
12830 ラベリング
12831 \family default
12832 環境で置き換えられています。この
12833 \family sans
12834 ラベリング
12835 \family default
12836 環境以外にも、新しい段落環境が多く追加されています。これらは、
12837 \emph on
12838 letter (koma-script)
12839 \emph default
12840 には含まれていないのでご注意ください。
12841 \end_layout
12842
12843 \begin_layout Itemize
12844
12845 \family sans
12846 部(addpart)
12847 \family default
12848
12849 \family sans
12850 章(addchap)
12851 \family default
12852
12853 \family sans
12854 節(addsec)
12855 \family default
12856 :これらは、それぞれ
12857 \family sans
12858 部*
12859 \family default
12860
12861 \family sans
12862 章*
12863 \family default
12864
12865 \family sans
12866 節*
12867 \family default
12868 と同等の働きをしますが、加えて目次に項目が表示されるようになります。
12869 \family sans
12870 部(addpart)
12871 \family default
12872
12873 \family sans
12874 章(addchap)
12875 \family default
12876 は、
12877 \emph on
12878 article (koma-script)
12879 \emph default
12880 には収録されていません。
12881 \end_layout
12882
12883 \begin_layout Itemize
12884
12885 \family sans
12886 章(addchap*)
12887 \family default
12888
12889 \family sans
12890 節(addsec*)
12891 \family default
12892 :これらは、
12893 \family sans
12894 章(addchap
12895 \family default
12896 )と
12897 \family sans
12898 節(addsec)
12899 \family default
12900 とまったく同等に動作しますが、加えてランニングへッダを取り除きます。
12901 \family sans
12902 章(addchap*)
12903 \family default
12904 は、 
12905 \emph on
12906 article (koma-script)
12907 \emph default
12908 には収録されていません
12909 \begin_inset Foot
12910 status collapsed
12911
12912 \begin_layout Plain Layout
12913
12914 \emph on
12915 book (koma-script)
12916 \emph default
12917
12918 \emph on
12919 report (koma-script)
12920 \emph default
12921 には、
12922 \family typewriter
12923
12924 \backslash
12925 addpart*
12926 \family default
12927 コマンドもありますが、これは
12928 \family sans
12929 Part*
12930 \family default
12931 と同一なので、LyXでは実装されていません。
12932 \end_layout
12933
12934 \end_inset
12935
12936
12937 \end_layout
12938
12939 \begin_layout Itemize
12940
12941 \family sans
12942 小見出し(minisec)
12943 \family default
12944 :これは文書構造に現れない形で、続く段落の直上に標準文字寸法の見出しを付けます。
12945 \end_layout
12946
12947 \begin_layout Itemize
12948
12949 \family sans
12950 上部キャプション
12951 \family default
12952
12953 \family sans
12954 下部キャプション
12955 \family default
12956 は、ある要素の上部ないし下部にキャプションを配置する際、位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば、表キャプションは、つ
12957 ねに表の上に置くべきでしょう)。また、クラスオプション
12958 \family typewriter
12959 tablecaptionsabove
12960 \family default
12961 を用いれば、キャプションを指定すると、表には
12962 \family sans
12963 上部キャプション
12964 \family default
12965 が、図には
12966 \family sans
12967 下部キャプション
12968 \family default
12969 が適用されるようになります。これを使用するためには、Koma-Script第2.8q版以上が必要です。
12970 \end_layout
12971
12972 \begin_layout Itemize
12973
12974 \family sans
12975 格言(dictum)
12976 \family default
12977 :これは、章頭などに警句を置くのに用いることができます。オプション引数(
12978 \family sans
12979 挿入\SpecialChar \menuseparator
12980 短縮タイトル
12981 \family default
12982 )を用いれば、格言の作者を入れることができます。格言と作者の間は、線で区切られます。これを使用するためには、Koma-Script第2.8q版以上が必要です。
12983 \family sans
12984 格言(dictum)
12985 \family default
12986 は、
12987 \emph on
12988 article (koma-script)
12989 \emph default
12990 には収録されていません。
12991 \end_layout
12992
12993 \begin_layout Standard
12994 以下の各環境は、標準の
12995 \family sans
12996 タイトル
12997 \family default
12998
12999 \family sans
13000 著者
13001 \family default
13002
13003 \family sans
13004 日付
13005 \family default
13006 とともに文書のタイトル領域を形成します。これらは、最初の「通常の」段落よりも前に置かれる必要があります
13007 \begin_inset Foot
13008 status collapsed
13009
13010 \begin_layout Plain Layout
13011 つまり、対応するLaTeXコマンドが
13012 \family typewriter
13013
13014 \backslash
13015 maketitle
13016 \family default
13017 コマンドよりも前に現れなくてはなりません。
13018 \end_layout
13019
13020 \end_inset
13021
13022 。これらの環境が2度以上使用された場合には、後に使用されたものが前のものを上書きします。つまり最後に使用したもののみが有効になります。しかしながら、
13023 \family sans
13024 タイトル
13025 \family default
13026
13027 \family sans
13028 著者
13029 \family default
13030
13031 \family sans
13032 日付
13033 \family default
13034 のような異なる環境の順序を変更しても、生成された文書には何の効果も生じません。
13035 \end_layout
13036
13037 \begin_layout Itemize
13038
13039 \family sans
13040 主題
13041 \family default
13042 :通常のタイトル部(
13043 \family sans
13044 タイトル
13045 \family default
13046
13047 \family sans
13048 著者
13049 \family default
13050
13051 \family sans
13052 日付
13053 \family default
13054 )の上に、文書の主題用の中央揃えの段落を生成します。
13055 \end_layout
13056
13057 \begin_layout Itemize
13058
13059 \family sans
13060 出版社
13061 \family default
13062 :通常のタイトル部(
13063 \family sans
13064 タイトル
13065 \family default
13066
13067 \family sans
13068 著者
13069 \family default
13070
13071 \family sans
13072 日付
13073 \family default
13074 )の下に、出版社名用の中央揃えの段落を生成します。
13075 \end_layout
13076
13077 \begin_layout Itemize
13078
13079 \family sans
13080 献呈
13081 \family default
13082
13083 \emph on
13084 report (koma-script)
13085 \emph default
13086
13087 \emph on
13088 book (koma-script)
13089 \emph default
13090 では、タイトル頁の次に、献辞用の中央揃えの段落を独立した頁として生成します。
13091 \emph on
13092 article (koma-script)
13093 \emph default
13094 の場合は、通常のタイトル部(
13095 \family sans
13096 タイトル
13097 \family default
13098
13099 \family sans
13100 著者
13101 \family default
13102
13103 \family sans
13104 日付
13105 \family default
13106 )の下に献辞用の中央揃えの段落を生成します。
13107 \end_layout
13108
13109 \begin_layout Itemize
13110
13111 \family sans
13112 タイトル頭書き
13113 \family default
13114 :通常のタイトル部(
13115 \family sans
13116 タイトル
13117 \family default
13118
13119 \family sans
13120 著者
13121 \family default
13122
13123 \family sans
13124 日付
13125 \family default
13126 )の上に、文書頭書き用の左揃えの段落を生成します。
13127 \end_layout
13128
13129 \begin_layout Itemize
13130
13131 \family sans
13132 扉裏上部
13133 \family default
13134
13135 \emph on
13136 report (koma-script)
13137 \emph default
13138 や 
13139 \emph on
13140 book (koma-script)
13141 \emph default
13142 の両面印刷において、扉裏上部に左揃え段落を生成します。片面印刷や、
13143 \emph on
13144 article (koma-script)
13145 \emph default
13146 では何の効果も生じません。
13147 \end_layout
13148
13149 \begin_layout Itemize
13150
13151 \family sans
13152 扉裏下部
13153 \family default
13154
13155 \emph on
13156 report (koma-script)
13157 \emph default
13158 や 
13159 \emph on
13160 book (koma-script)
13161 \emph default
13162 の両面印刷において、扉裏下部に左揃え段落を生成します。片面印刷や、
13163 \emph on
13164 article (koma-script)
13165 \emph default
13166 では何の効果も生じません。
13167 \end_layout
13168
13169 \begin_layout Itemize
13170
13171 \family sans
13172 追加タイトル
13173 \family default
13174 :実際の文書の前に、整形を行わない段落から成る、特殊な「汚い」ページを生成します。
13175 \end_layout
13176
13177 \begin_layout Standard
13178 文書クラス
13179 \emph on
13180 article (koma-script)
13181 \emph default
13182
13183 \emph on
13184 report (koma-script)
13185 \emph default
13186
13187 \emph on
13188 book (koma-script)
13189 \emph default
13190 の 各レイアウトファイルは、
13191 \family typewriter
13192 scrmacros.inc
13193 \family default
13194 ファイルを読み込みます。このファイルは、ユーザ環境を定義する場所として想定されています。s
13195 \family typewriter
13196 crmacros.inc
13197 \family default
13198 を、個人用レイアウトディレクトリにコピーして編集してください!
13199 \end_layout
13200
13201 \begin_layout Subsection
13202 letter (koma-script)
13203 \end_layout
13204
13205 \begin_layout Standard
13206 \noindent
13207 文書クラス
13208 \emph on
13209 letter (koma-script)
13210 \emph default
13211 は、レイアウトファイル 
13212 \family typewriter
13213 scrlettr.layout
13214 \family default
13215 で実装されています。このレイアウトファイルには、対応する標準文書クラス
13216 \emph on
13217 letter
13218 \emph default
13219 の全段落環境が、部分的に変更を加えた形で収録されていますが、LyX固有環境の
13220 \family sans
13221 LyXコード
13222 \family default
13223
13224 \family sans
13225 コメント
13226 \family default
13227
13228 \family sans
13229 箇条書き(一覧
13230 \family default
13231 )は、新しく
13232 \family sans
13233 ラベリング
13234 \family default
13235 環境に置き換えられています。それ以外にも、標準文書クラスとは異なり、標準環境の
13236 \family sans
13237 LaTeX
13238 \family default
13239
13240 \family sans
13241 引用(字下げあり)
13242 \family default
13243
13244 \family sans
13245 引用(字下げなし)
13246 \family default
13247
13248 \family sans
13249 詩句
13250 \family default
13251 が収録されています。さらに、新しいletter固有環境がたくさん追加されています。
13252 \end_layout
13253
13254 \begin_layout Standard
13255 この文書クラスで作成した書簡の外観は、様々なLaTeXコマンドをLaTeXプリアンブルに置くことで制御することができます
13256 \begin_inset Foot
13257 status collapsed
13258
13259 \begin_layout Plain Layout
13260 例えば、名前と住所の入った書簡ヘッダの標準的外観は、きわめて頑固です。「普通の」へッダは、プリアンブル中に以下のようなコマンドを入れることで生成することができま
13261 す。
13262 \end_layout
13263
13264 \begin_layout LyX-Code
13265
13266 \backslash
13267 firsthead{
13268 \backslash
13269 parbox[b]{
13270 \backslash
13271 textwidth}
13272 \end_layout
13273
13274 \begin_layout LyX-Code
13275   {
13276 \backslash
13277 ignorespaces 
13278 \backslash
13279 fromname
13280 \backslash
13281
13282 \backslash
13283  
13284 \backslash
13285 ignorespaces 
13286 \backslash
13287 fromaddress}} 
13288 \end_layout
13289
13290 \begin_layout LyX-Code
13291
13292 \backslash
13293 nexthead{
13294 \backslash
13295 parbox[b]{
13296 \backslash
13297 textwidth}
13298 \end_layout
13299
13300 \begin_layout LyX-Code
13301   {
13302 \backslash
13303 ignorespaces 
13304 \backslash
13305 fromname 
13306 \backslash
13307 hfill 
13308 \backslash
13309 ignorespaces 
13310 \backslash
13311 pagename
13312 \backslash
13313
13314 \end_layout
13315
13316 \begin_layout LyX-Code
13317
13318 \backslash
13319 thepage}}
13320 \end_layout
13321
13322 \end_inset
13323
13324 。これらのLaTeXコマンドのドイツ語での詳細な説明は、Koma-Scriptの取扱説明書
13325 \emph on
13326 scrguide
13327 \emph default
13328 にあります。この方法で、書簡の著者は、個人用書簡レイアウトを作ることができます。
13329 \end_layout
13330
13331 \begin_layout Standard
13332
13333 \family sans
13334 書簡
13335 \family default
13336 環境および
13337 \family sans
13338 頭語
13339 \family default
13340 環境は、書簡の冒頭部を定義するもので、すべての書簡で使用しなくてはなりません。LyX文書クラスでは、これらの環境を強調するために、左余白にそれぞれ
13341 \shape italic
13342 L
13343 \shape default
13344
13345 \shape italic
13346 O
13347 \shape default
13348 という文字が表示されます。同一ファイル中には、複数の書簡を書くことができます。
13349 \family sans
13350 頭語
13351 \family default
13352 環境は、同じ受取人への書簡を新しく書き出すものであり、
13353 \family sans
13354 書簡
13355 \family default
13356 環境は、新しい受取人を生成するものです。
13357 \family sans
13358 結語
13359 \family default
13360
13361 \family sans
13362 PS
13363 \family default
13364
13365 \family sans
13366 CC
13367 \family default
13368
13369 \family sans
13370 Encl
13371 \family default
13372 は、通常の段落環境なので、同一の書簡中でも何度も使用することができます。
13373 \end_layout
13374
13375 \begin_layout Itemize
13376
13377 \family sans
13378 書簡
13379 \family default
13380 :受取人のための段落をつくり、暗黙に書簡の開始を定義します。
13381 \end_layout
13382
13383 \begin_layout Itemize
13384
13385 \family sans
13386 頭語
13387 \family default
13388 :敬称のための段落をつくり、暗黙に新しい書簡を開始します。
13389 \end_layout
13390
13391 \begin_layout Itemize
13392
13393 \family sans
13394 結語
13395 \family default
13396 :結語のための段落をつくります。
13397 \end_layout
13398
13399 \begin_layout Itemize
13400
13401 \family sans
13402 PS
13403 \family default
13404 :追伸のための段落をつくります。
13405 \end_layout
13406
13407 \begin_layout Itemize
13408
13409 \family sans
13410 CC
13411 \family default
13412 :同報一覧のための段落をつくります。
13413 \end_layout
13414
13415 \begin_layout Itemize
13416
13417 \family sans
13418 Encl
13419 \family default
13420 :同封物のための段落をつくります。
13421 \end_layout
13422
13423 \begin_layout Standard
13424
13425 \family sans
13426 名前
13427 \family default
13428
13429 \family sans
13430 署名
13431 \family default
13432
13433 \family sans
13434 住所
13435 \family default
13436
13437 \family sans
13438 電話
13439 \family default
13440
13441 \family sans
13442 場所(Place
13443 \family default
13444 )・
13445 \family sans
13446 返送先住所
13447 \family default
13448
13449 \family sans
13450 配送手段(Specialmail)
13451 \family default
13452
13453 \family sans
13454 場所
13455 \family default
13456
13457 \family sans
13458 タイトル
13459 \family default
13460
13461 \family sans
13462 主題
13463 \family default
13464 は、情報入力を促すラベルの付いた入力環境で、文書クラスが適切な処理を行います
13465 \begin_inset Foot
13466 status collapsed
13467
13468 \begin_layout Plain Layout
13469 上述の
13470 \family sans
13471 書簡
13472 \family default
13473
13474 \family sans
13475 頭語
13476 \family default
13477 が、これらのような入力環境でないのは、矛盾しているように感じられるかもしれません。しかしながら、これら2つの環境は特別の意味を持っているために、これらは左余白に
13478 一文字をマークした通常の段落環境として実装しました。さらに、
13479 \family sans
13480 頭語
13481 \family default
13482 環境と
13483 \family sans
13484 結語
13485 \family default
13486 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです。
13487 \end_layout
13488
13489 \end_inset
13490
13491 。これらの環境は、対応する
13492 \family sans
13493 頭語
13494 \family default
13495 環境の前に置く必要があります。
13496 \end_layout
13497
13498 \begin_layout Standard
13499 生成された書簡の実際の外観は、特定の環境の使い方だけではなく、他の要素にも依存するため、これらの環境をWYSIWYGとして実装することには、あまり意味がありませ
13500 ん。たとえば、
13501 \family sans
13502 署名
13503 \family default
13504 環境で入力した署名は、標準的な挙動では、同じ書簡に
13505 \family sans
13506 結語
13507 \family default
13508 環境も使用されているときのみ、書簡の出力に現れます。
13509 \family sans
13510 電話
13511 \family default
13512 環境に入力された値は、標準的な挙動では、書簡の出力には全く表示されません。書簡のヘッダを自由にデザインできることは、前出の脚注で示してあります。
13513 \end_layout
13514
13515 \begin_layout Standard
13516 入力環境は、空の段落として使うことができます。これは、たとえば
13517 \family sans
13518 署名
13519 \family default
13520 環境の場合に有効です。
13521 \family sans
13522 署名
13523 \family default
13524 環境を全く使用しない場合は、標準的な挙動では、
13525 \family sans
13526 名前
13527 \family default
13528 環境の値が署名として使用されますが、空の
13529 \family sans
13530 署名
13531 \family default
13532 環境を作成しておくと、署名の値は無定義となりません。
13533 \end_layout
13534
13535 \begin_layout Standard
13536 入力環境を使用すると、個人データ(名前や住所など)が既に入力された入力環境と、後から入力するデータの入力環境を備えた、書簡のひな型を作成することができます。
13537 \end_layout
13538
13539 \begin_layout Itemize
13540
13541 \family sans
13542 名前
13543 \family default
13544 :送り主の名前。標準的な挙動では、書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます。
13545 \end_layout
13546
13547 \begin_layout Itemize
13548
13549 \family sans
13550 署名
13551 \family default
13552 :送り主の署名。標準的な挙動では、
13553 \family sans
13554 結語
13555 \family default
13556 環境の下に表示されます。
13557 \family sans
13558 署名
13559 \family default
13560 環境を使用しないと、代わりに
13561 \family sans
13562 名前
13563 \family default
13564 環境の値が表示されます。
13565 \end_layout
13566
13567 \begin_layout Itemize
13568
13569 \family sans
13570 住所
13571 \family default
13572 :送り主の住所。標準的な挙動では、書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます。
13573 \end_layout
13574
13575 \begin_layout Itemize
13576
13577 \family sans
13578 電話
13579 \family default
13580 :送り主の電話番号。標準的な挙動では、LaTeX変数
13581 \family typewriter
13582
13583 \backslash
13584 telephonenum
13585 \family default
13586 を設定するだけです。
13587 \end_layout
13588
13589 \begin_layout Itemize
13590
13591 \family sans
13592 場所(Place)
13593 \family default
13594 :書簡を書いた場所。
13595 \end_layout
13596
13597 \begin_layout Itemize
13598
13599 \family sans
13600 日付
13601 \family default
13602 :書簡を書いた日付。
13603 \family sans
13604 場所(Place)
13605 \family default
13606
13607 \family sans
13608 日付
13609 \family default
13610 は、標準的な挙動では、受取人フィールドの下に、単一の右揃え行として場所と日付を生成します。空の
13611 \family sans
13612 日付
13613 \family default
13614 環境を作成しておくと、
13615 \family sans
13616 場所(Place)
13617 \family default
13618 の値如何に関わらず、場所も日付も表示されません。
13619 \family sans
13620 日付
13621 \family default
13622 環境を使用しない場合には、書簡を出力した日付が使用されます。
13623 \end_layout
13624
13625 \begin_layout Itemize
13626
13627 \family sans
13628 返送先住所
13629 \family default
13630 :送り主の返送先住所。標準的な挙動では、受取人の上に小文字のサンセリフ体フォントで表示されます。
13631 \end_layout
13632
13633 \begin_layout Itemize
13634
13635 \family sans
13636 特別便
13637 \family default
13638 :特別便の情報。標準的な挙動では、受取人フィールドの上かつ返送先住所の下に、下線付きで表示されます。
13639 \end_layout
13640
13641 \begin_layout Itemize
13642
13643 \family sans
13644 場所
13645 \family default
13646 :追加情報。標準的な挙動では、受取人フィールドの下の右側に表示されます。
13647 \end_layout
13648
13649 \begin_layout Itemize
13650
13651 \family sans
13652 タイトル
13653 \family default
13654 :書簡の題名。標準的な挙動では、主題の上に大きなボールド体サンセリフフォントで表示されます。
13655 \end_layout
13656
13657 \begin_layout Itemize
13658
13659 \family sans
13660 主題
13661 \family default
13662 :書簡の主題。標準的な挙動では、
13663 \family sans
13664 頭語
13665 \family default
13666 環境の上にボールド体で表示されます。
13667 \end_layout
13668
13669 \begin_layout Standard
13670
13671 \family sans
13672 Yourref・Yourmail・Myref・顧客・インボイス
13673 \family default
13674 といった環境は、
13675 \family sans
13676 タイトル
13677 \family default
13678 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
13679 ィールド行を持つ、ビジネス書簡を作成します。日付フィールドには、
13680 \family sans
13681 日付
13682 \family default
13683 環境の値が使用されます。しかしながら、これらの「ビジネス書簡環境」の一つを使用した場合には、
13684 \family sans
13685 場所(Place)
13686 \family default
13687 の値は書簡には表示されなくなり、LaTeX変数
13688 \family typewriter
13689
13690 \backslash
13691 fromplace
13692 \family default
13693 が設定させるだけになります。通常時に、受取人フィールドの下に右揃えで出力される場所と日付の出力は、抑制されます。これらのビジネス環境は、ラベル付きの入力環境とし
13694 て実装されており、対応する
13695 \family sans
13696 頭語
13697 \family default
13698 環境よりも前に置く必要があります。
13699 \end_layout
13700
13701 \begin_layout Itemize
13702
13703 \family sans
13704 Yourref
13705 \family default
13706 : Your ref.
13707 \end_layout
13708
13709 \begin_layout Itemize
13710
13711 \family sans
13712 Yourmail
13713 \family default
13714 : Your letter of.
13715 \end_layout
13716
13717 \begin_layout Itemize
13718
13719 \family sans
13720 Myref
13721 \family default
13722 : Our ref.
13723 \end_layout
13724
13725 \begin_layout Itemize
13726
13727 \family sans
13728 Customer
13729 \family default
13730 : Customer no.
13731 \end_layout
13732
13733 \begin_layout Itemize
13734
13735 \family sans
13736 Invoice
13737 \family default
13738 : Invoice no.
13739 \end_layout
13740
13741 \begin_layout Subsection
13742 新しいletterクラス:letter (koma-script v.2)
13743 \end_layout
13744
13745 \begin_layout Standard
13746 by 
13747 \noun on
13748 Jürgen Spitzmüller
13749 \begin_inset VSpace medskip
13750 \end_inset
13751
13752
13753 \end_layout
13754
13755 \begin_layout Standard
13756 \noindent
13757 Koma-Script第2.8版では、新しいletterクラス
13758 \family typewriter
13759 scrlttr2
13760 \family default
13761 が導入されたため、
13762 \family typewriter
13763 scrlettr
13764 \family default
13765 は廃止されてサポート対象外となりました。これは—LaTeX側で—全く新しいインターフェイスを持っており、旧クラスとは互換性がありません。したがって、LyXは両者
13766 をサポートしていますが、新しい方のクラスを使用することを推奨します。
13767 \end_layout
13768
13769 \begin_layout Standard
13770 このクラスは、
13771 \emph on
13772 letter (koma-script)
13773 \emph default
13774 と同一の機能に加えて、新しい機能をいくつかサポートしています。基本となる項目は、
13775 \family sans
13776 住所
13777 \family default
13778 (受取人の住所、旧レイアウトの
13779 \family sans
13780 書簡
13781 \family default
13782 と同じ)・
13783 \family sans
13784 頭語
13785 \family default
13786
13787 \family sans
13788 結語
13789 \family default
13790 です。
13791 \family sans
13792 次の住所
13793 \family default
13794 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます)。新しく付け加えられた項目は、送り主の
13795 \family sans
13796 電子メール
13797 \family default
13798
13799 \family sans
13800 URL
13801 \family default
13802
13803 \family sans
13804 ファックス
13805 \family default
13806
13807 \family sans
13808 銀行
13809 \family default
13810 、およびヘッダに(
13811 \family sans
13812 挿入\SpecialChar \menuseparator
13813
13814 \family default
13815 で)
13816 \family sans
13817 ロゴ
13818 \family default
13819 を入れることができるようになった点です。
13820 \end_layout
13821
13822 \begin_layout Standard
13823 しかしながら、もっとも大きな改善は、書簡のレイアウトを、ほとんどどんなニーズにも合わせて設定できるようになった点でしょう。これはプリアンブルか、クラスオプション
13824 として読み込まれる特別なスタイルファイル(「レタークラスオプション」、拡張子
13825 \family typewriter
13826 *.lco
13827 \family default
13828 )によって設定することができます
13829 \begin_inset Foot
13830 status collapsed
13831
13832 \begin_layout Plain Layout
13833 KOMAパッケージには、既定の
13834 \family typewriter
13835 *.lco
13836 \family default
13837 ファイルがいくつか収録されています。たとえば、ドイツの組版規則に則った
13838 \family typewriter
13839 DIN.lco
13840 \family default
13841 や、旧
13842 \family typewriter
13843 scrlettr
13844 \family default
13845 クラスの既定レイアウトを提供する
13846 \family typewriter
13847 KOMAold.lco
13848 \family default
13849 などです。たとえば後者は、
13850 \family sans
13851 文書\SpecialChar \menuseparator
13852 設定\SpecialChar \menuseparator
13853 文書クラス\SpecialChar \menuseparator
13854 クラスオプション
13855 \family default
13856 フィールドにクラスオプション
13857 \family typewriter
13858 KOMAold
13859 \family default
13860 を加えることで読み込むことができます。
13861 \end_layout
13862
13863 \end_inset
13864
13865 。用例としては、LyXに収録されているひな型
13866 \emph on
13867 koma-letter2
13868 \emph default
13869 をご覧ください。詳細な解説は、Koma-Script取扱説明書(
13870 \emph on
13871 scrguide
13872 \emph default
13873 )にあります。
13874 \end_layout
13875
13876 \begin_layout Subsection
13877 問題点
13878 \end_layout
13879
13880 \begin_layout Standard
13881 Koma-Script文書クラスをLyX上に表示する上で、LyXの内部処理が若干の問題を生じめます。
13882 \end_layout
13883
13884 \begin_layout Itemize
13885
13886 \family sans
13887
13888 \family default
13889 環境の章番号は、章見出しと同じ行ではなく、その上に表示されます。これは、レイアウトファイル中の
13890 \family sans
13891 Counter_Chapter
13892 \family default
13893 ラベル型に対するLyXの内部処理が原因です。
13894 \end_layout
13895
13896 \begin_layout Itemize
13897
13898 \family sans
13899 章(addchap)
13900 \family default
13901
13902 \family sans
13903 節(addsec)
13904 \family default
13905 環境の見出しは、「本当の」LaTeXの目次には追加されますが、LyXの目次(
13906 \family sans
13907 移動
13908 \family default
13909 メニュー)には追加されません。
13910 \end_layout
13911
13912 \begin_layout Itemize
13913
13914 \emph on
13915 letter
13916 \emph default
13917 文書クラスでの段落は、垂直スペースによる段落区切りで表示され、字下げはされません。これが標準的な挙動となっていて、特別なLaTeXコマンドは必要ありません。しか
13918 し、
13919 \family sans
13920 文書\SpecialChar \menuseparator
13921 設定
13922 \family default
13923 ダイアログでは、対応するラジオボタンは
13924 \family sans
13925 字下げ
13926 \family default
13927 に設定されています。
13928 \family sans
13929 垂直スペース
13930 \family default
13931 は、隙間を空けるために、文書にLaTeXコマンドをつねに追加するようになっていますが、この文書クラスの場合には、そのような挙動が望まれないためです。
13932 \end_layout
13933
13934 \begin_layout Section
13935 Memoir
13936 \end_layout
13937
13938 \begin_layout Standard
13939
13940 \noun on
13941 Jürgen Spitzmüller
13942 \noun default
13943
13944 \end_layout
13945
13946 \begin_layout Subsection
13947 概観
13948 \end_layout
13949
13950 \begin_layout Standard
13951 Memoirは、非常に強力で、着実に改良が加えられている文書クラスであり、フィクションとノンフィクションの文学作品用に設計されています。その目的は、ユーザーに、
13952 文書の組版に関して最大限の裁量を得させることにあります。Memoirは、標準bookクラスに基づいていますが、articleクラスをエミュレートすることもできま
13953 す(以下参照)。
13954 \end_layout
13955
13956 \begin_layout Standard
13957 Memoir開発者であるPeter Wilsonは、LaTeXの世界での、多くの便利なパッケージの作者として知られていますが、それらのほとんどは、Memoirに
13958 統合されました。このため、章のデザインや、目次や付録などのレイアウトを、はるかに簡単に行うことができます。しかしながら、LyXは、これらすべての素晴らしい機能を
13959 ネイティブでサポートしているわけではありません。これらのうちいくつかは、将来のリリースで追加されるかもしれませんが
13960 \begin_inset Foot
13961 status collapsed
13962
13963 \begin_layout Plain Layout
13964 もし提案があれば、ぜひ
13965 \begin_inset Flex URL
13966 status collapsed
13967
13968 \begin_layout Plain Layout
13969
13970 lyx-devel@lists.lyx.org
13971 \end_layout
13972
13973 \end_inset
13974
13975 までお送り下さい。
13976 \end_layout
13977
13978 \end_inset
13979
13980 、LyXのフレームワークが持つ制約のために、おそらく決して追加されることのないと考えられるものも多数あります。もちろん、ネイティブなLaTeXコマンド(TeXコ
13981 ード
13982 \begin_inset Foot
13983 status collapsed
13984
13985 \begin_layout Plain Layout
13986 【参考】詳細は、第
13987 \begin_inset CommandInset ref
13988 LatexCommand ref
13989 reference "sec:LaTeXコードを挿入する"
13990
13991 \end_inset
13992
13993 節参照。
13994 \end_layout
13995
13996 \end_inset
13997
13998 )の助けを借りれば、全機能を使用できます。この節では、LyXがネイティブにサポートしている機能についてのみ、列挙するものとします。詳細な説明(および他の機能)に
13999 ついては、Memoirクラスの詳しい取扱説明書
14000 \begin_inset Foot
14001 status collapsed
14002
14003 \begin_layout Plain Layout
14004 【参考】
14005 \begin_inset Flex URL
14006 status collapsed
14007
14008 \begin_layout Plain Layout
14009
14010 CTAN:/macros/latex/memoir/memman.pdf
14011 \end_layout
14012
14013 \end_inset
14014
14015
14016 \end_layout
14017
14018 \end_inset
14019
14020 をご覧になることをお勧めします。この取扱説明書は、本クラスのユーザーの手引きであるのみに留まらず、良い組版に関する包括的な解説であり、それ自身が良い組版の傑出し
14021 た用例となっています。
14022 \end_layout
14023
14024 \begin_layout Subsection
14025 基本的な機能と制約
14026 \end_layout
14027
14028 \begin_layout Standard
14029 Memoirは、基本的に、標準bookクラスの全機能をサポートしています。しかしながら、以下に示すような若干の違いがあります。
14030 \end_layout
14031
14032 \begin_layout Description
14033 フォント寸法: Memoirでは、9・10・11・12・14・17と、より広い範囲のフォント寸法が使用可能です。
14034 \end_layout
14035
14036 \begin_layout Description
14037 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため、LaTeXが混乱さ
14038 せられます)、fancyページ様式は使用できません。その代わり、Memoirには、多くの独自のページ様式が付属してきます(
14039 \family sans
14040 文書\SpecialChar \menuseparator
14041 設定\SpecialChar \menuseparator
14042 ページレイアウト
14043 \family default
14044 参照)。これらを章題ページに使用したい場合には、コマンド
14045 \family typewriter
14046
14047 \backslash
14048 chapterstyle
14049 \family default
14050 を、本文またはプリアンブルに記述する必要があります(例えば、
14051 \family typewriter
14052
14053 \backslash
14054 chapterstyle{companion}
14055 \family default
14056 など)。
14057 \end_layout
14058
14059 \begin_layout Description
14060 節分け: 標準クラスでは、節分けコマンド(章・節・小節等)は、非必須引数を一つ取ることができます。これを用いて、目次やヘッダ用に別のタイトルを指定することができ
14061 ます(たとえば、タイトルが長すぎる場合などに用います)。LyXでは、章や節の始めで
14062 \family sans
14063 挿入\SpecialChar \menuseparator
14064 短縮タイトル
14065 \family default
14066 を使えば、これを指定することができます。一方、Memoirでは、第2の非必須引数を取ることができ、目次用のタイトルとヘッダ用のタイトルの指定を分離しています。こ
14067 れを使えば、本文用と目次用とヘッダ用のタイトルの3種類を指定することができます。この機能を使用したい場合には、2つの非必須引数を入力して、最初のものに目次用、次
14068 のものにヘッダ用短縮タイトルを入れてください。
14069 \end_layout
14070
14071 \begin_layout Description
14072 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では、目次と図一覧および表一覧は、自動的に新規頁に置かれます。Memoirは、これとは別の方針を採り
14073 ます。改頁を行いたい場合は、手動で頁区切りを入れなくてはなりません。
14074 \end_layout
14075
14076 \begin_layout Description
14077 タイトル頁: 理由は不明ですが、Memoirはタイトルページに丁付けを行います(標準クラスでは、タイトルページは「empty」様式、すなわち丁付けを行いません)
14078 。タイトル頁に丁付けを行いたくない場合には、プリアンブルに
14079 \family typewriter
14080
14081 \backslash
14082 aliaspagestyle{title}{empty}
14083 \family default
14084 と入力してください。
14085 \end_layout
14086
14087 \begin_layout Description
14088 Article: クラスオプション
14089 \emph on
14090 article
14091 \emph default
14092 を用いる(
14093 \family sans
14094 文書\SpecialChar \menuseparator
14095 設定\SpecialChar \menuseparator
14096 クラスオプション
14097 \family default
14098 で入力)と、article様式をエミュレートできます。すなわち、(脚注・図・表等の)カウンタは、章毎にリセットされず、次の章は頁を改めず(ただし、「本物の」ar
14099 ticleクラスとは違って、頁を改めることも可)、部はbookクラスと同様に、独立の頁を使用します。
14100 \end_layout
14101
14102 \begin_layout Description
14103 Oldfontcommands: LaTeX旧2.09版で使用されていた旧いフォントコマンド(
14104 \family typewriter
14105
14106 \backslash
14107 rm
14108 \family default
14109
14110 \family typewriter
14111
14112 \backslash
14113 it
14114 \family default
14115 など)は、Memoirにおいては、既定では使用することができません。Memoirがこれらのコマンドを検知すると、エラーを発してLaTeXを停止させます。しかし、
14116 クラスオプション
14117 \emph on
14118 oldfontcommands
14119 \emph default
14120 を指定すると、これらのコマンドが容認され、エラーの代わりに警告を発するのみとなります(これによって、少なくともLaTeXは停止しなくなります)。まだ、多くのパッ
14121 ケージと、就中多くのBibTeXスタイルファイルが、これらのコマンドを使用しているので、我々はこのオプションを既定で使うこととしました。
14122 \end_layout
14123
14124 \begin_layout Subsection
14125 追加された機能
14126 \end_layout
14127
14128 \begin_layout Standard
14129 LyXでサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう。詳しくはMemoirの取扱説明書
14130 \begin_inset Foot
14131 status collapsed
14132
14133 \begin_layout Plain Layout
14134 \begin_inset Flex URL
14135 status collapsed
14136
14137 \begin_layout Plain Layout
14138
14139 CTAN:/macros/latex/memoir/memman.pdf
14140 \end_layout
14141
14142 \end_inset
14143
14144
14145 \end_layout
14146
14147 \end_inset
14148
14149 を見てください。
14150 \end_layout
14151
14152 \begin_layout Description
14153 概要: 概要が、追加された機能として扱われているのを不思議に思われるかもしれませんが、bookクラスとしては追加された機能なのです。通常bookクラスには概要は
14154 ないのですが、memoirにはあります。これは、どこでも何回でも自由に使うことができます。
14155 \end_layout
14156
14157 \begin_layout Description
14158 章要約: この古い組版様式はご覧になったことがあるかも知れません。章の内容が、見出しの下と目次に要約されているものです(たとえば、「我らが英雄がトロヤに到着する
14159 。彼は友人を失うが、新たな友人を得る。」など)。章要約(chapterprecis)はこれを行います。したがって、章要約は章の下でのみ意味を持ちます。
14160 \end_layout
14161
14162 \begin_layout Description
14163 題辞: 題辞(epigraph)は章頭の、気の利いた標語やモットーです。題辞環境は、そのような標語を組む洗練された方法を提供します。標語本体(本文)とその著者(
14164 出典)は、短い線で区切られます。この環境には二つの引数(本文と出典)が必要なので、ここでもLyXを少しだます必要があります。ここでは、2つの引数の間に、
14165 \emph on
14166 <標語>
14167 \family typewriter
14168 \emph default
14169 }{
14170 \family default
14171 \emph on
14172 <標語の著者>
14173 \emph default
14174 のように、(TeXモードで)波括弧を入れなくてはなりません。
14175 \end_layout
14176
14177 \begin_layout Description
14178 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが、LyXは、そのうちいくつかしかサポートしていません。詩題はその一
14179 つです。これは詩用の中央揃えタイトルで、目次にも表示されます(詩句が詩の標準環境です。Memoirには、詩句の拡張版もありますが、これらを使うためにはTeXコー
14180 ドを使用しなくてはなりません。これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが、LyXではそれができないためです)。
14181 \end_layout
14182
14183 \begin_layout Description
14184 詩題*: 目次に現れない他は詩題と同じです。
14185 \end_layout
14186
14187 \begin_layout Section
14188 Article(mwart)・book(mwbk)・report(mwrep)
14189 \begin_inset Argument 1
14190 status collapsed
14191
14192 \begin_layout Plain Layout
14193
14194 \family typewriter
14195 mw
14196 \family default
14197 クラス
14198 \end_layout
14199
14200 \end_inset
14201
14202
14203 \end_layout
14204
14205 \begin_layout Standard
14206
14207 \noun on
14208 Tomasz Luczak
14209 \noun default
14210
14211 \end_layout
14212
14213 \begin_layout Standard
14214 LyX文書クラス
14215 \emph on
14216 article (mwart)
14217 \emph default
14218
14219 \emph on
14220 report (mwrep)・book
14221 \emph default
14222  
14223 \emph on
14224 (mwbk)
14225 \emph default
14226 は、それぞれLaTeX文書クラス
14227 \family typewriter
14228 mwart.cls
14229 \family default
14230
14231 \family typewriter
14232 mwrep.cls
14233 \family default
14234
14235 \family typewriter
14236 mwbk.cls
14237 \family default
14238 に対応しています。これらは、標準の
14239 \family typewriter
14240 article.cls
14241 \family default
14242
14243 \family typewriter
14244 report.cls
14245 \family default
14246
14247 \family typewriter
14248 book.cls
14249 \family default
14250 を代替するものであり、多くの点で、ポーランド語の組版慣習によく適合しています。
14251 \end_layout
14252
14253 \begin_layout Standard
14254 基本的な違いは、次の点です。
14255 \end_layout
14256
14257 \begin_layout Itemize
14258 付番のない見出し(
14259 \family sans
14260 節*
14261 \family default
14262 などの星付き)も目次に加えられます。
14263 \end_layout
14264
14265 \begin_layout Itemize
14266 以下のページスタイルの追加
14267 \end_layout
14268
14269 \begin_deeper
14270 \begin_layout Description
14271 uheadings 分離線付きヘッダ
14272 \end_layout
14273
14274 \begin_layout Description
14275 myheadings 
14276 \family typewriter
14277
14278 \backslash
14279 markright
14280 \family default
14281 コマンドおよび
14282 \family typewriter
14283
14284 \backslash
14285 markboth
14286 \family default
14287 コマンドで設定するカスタムヘッダ
14288 \end_layout
14289
14290 \begin_layout Description
14291 myuheadings 分離線付きカスタムヘッダ
14292 \end_layout
14293
14294 \begin_layout Description
14295 outer ページの外側にページ番号
14296 \end_layout
14297
14298 \end_deeper
14299 \begin_layout Itemize
14300 オプション
14301 \end_layout
14302
14303 \begin_deeper
14304 \begin_layout Description
14305 rmheadings セリフ体見出し --- 既定
14306 \end_layout
14307
14308 \begin_layout Description
14309 sfheadings サンセリフ体見出し
14310 \end_layout
14311
14312 \begin_layout Description
14313 authortitle タイトルページは、著者名・タイトルの順で配置 --- 既定
14314 \end_layout
14315
14316 \begin_layout Description
14317 titleauthor タイトルページは、タイトル・著者名の順で配置
14318 \end_layout
14319
14320 \begin_layout Description
14321 withmarginpar ページ上に余白のための場所を確保
14322 \end_layout
14323
14324 \end_deeper
14325 \begin_layout Section
14326 Paper
14327 \end_layout
14328
14329 \begin_layout Standard
14330
14331 \family sans
14332 paper
14333 \family default
14334 文書クラスは標準
14335 \family sans
14336 article
14337 \family default
14338 クラスの代替となるものです。これは
14339 \family sans
14340 同様の
14341 \family default
14342 機能を提供しますが、サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません。
14343 \end_layout
14344
14345 \begin_layout Section
14346 RevTeX4
14347 \end_layout
14348
14349 \begin_layout Standard
14350 by 
14351 \noun on
14352 Amir Karger
14353 \end_layout
14354
14355 \begin_layout Standard
14356 \begin_inset VSpace bigskip
14357 \end_inset
14358
14359
14360 \end_layout
14361
14362 \begin_layout Standard
14363 \noindent
14364
14365 \family sans
14366 Revtex
14367 \begin_inset space ~
14368 \end_inset
14369
14370 4
14371 \family default
14372 テキストクラスは、アメリカ物理学会のRevTeX 4.0(1999年5月の
14373 \begin_inset Formula $\beta$
14374 \end_inset
14375
14376 リリース)クラスで動作します。
14377 \end_layout
14378
14379 \begin_layout Standard
14380 LyXには、RevTeX 3.1で動作する
14381 \family sans
14382 Revtex
14383 \family default
14384 テキストクラスもあります。しかしながら、第3.1版はLaTeX 2.09で動作するものであり、基本的に時代遅れなものになっています。LyXはLaTeX2eを必要とす
14385 ることから、第3.1版はLyXとうまく協調しないことを意味しますが、動作するようには調整してあります。RevTeX 4.0は、LaTeX2eで素直に動作するようにデ
14386 ザインされているので、LyXと
14387 \family sans
14388 RevTeX
14389 \begin_inset space ~
14390 \end_inset
14391
14392 4
14393 \family default
14394 テキストクラスの組で使用するのは、たいへん簡単です。
14395 \end_layout
14396
14397 \begin_layout Standard
14398 この取扱説明書は、RevTeX 4.0の説明書の
14399 \emph on
14400 補完
14401 \emph default
14402 として使用されることを前提としています。したがって、ここではRevTeX固有マクロの説明はせず、必要な場合にはプリアンブルに何と書けば良いかを知っているものとし
14403 て説明します。
14404 \end_layout
14405
14406 \begin_layout Subsection
14407 導入
14408 \end_layout
14409
14410 \begin_layout Standard
14411 RevTeX 4パッケージのREADMEファイルにあるとおり、ともかくRevTeX 4を導入しなくてはなりません。パッケージは、The RevTeX
14412  4 Web Site 
14413 \begin_inset Flex URL
14414 status collapsed
14415
14416 \begin_layout Plain Layout
14417
14418 http://publish.aps.org/revtex4/
14419 \end_layout
14420
14421 \end_inset
14422
14423 から入手することができます。これをLaTeXが検出することのできる場所に導入してください。それから、適当に選んだディレクトリ(もといクラスファイルを導入したのと
14424 は異なるディレクトリ)で簡単なRevTeX 4文書を LaTeXでコンパイルできるかどうか確認してください。この後、LyXを再初期設定すると、クラスファイルを検
14425 出し、RevTeX4テキストクラスが使用できるようになるはずです。
14426 \end_layout
14427
14428 \begin_layout Standard
14429 使い始めるには、
14430 \family typewriter
14431 tex2lyx
14432 \family default
14433 を使ってRevTeX 4文書を読み込むか、またはひな型ディレクトリにある
14434 \family sans
14435 Revtex
14436 \begin_inset space ~
14437 \end_inset
14438
14439 4
14440 \family default
14441 のひな型を使うのが、おそらく一番簡単な方法でしょう。
14442 \end_layout
14443
14444 \begin_layout Subsection
14445 プリアンブルに関すること
14446 \end_layout
14447
14448 \begin_layout Standard
14449
14450 \family typewriter
14451
14452 \backslash
14453 documentclass
14454 \family default
14455 に与える「preprint」や「aps」のような非必須引数は、他のクラス同様、
14456 \family sans
14457 文書\SpecialChar \menuseparator
14458 設定\SpecialChar \menuseparator
14459 文書クラス
14460 \family default
14461
14462 \family sans
14463 クラスオプション
14464 \family default
14465 フィールドに入れます。RevTeXでは、少なくとも一つの非必須引数が必要なことに注意してください。
14466 \end_layout
14467
14468 \begin_layout Standard
14469
14470 \family typewriter
14471
14472 \backslash
14473 draft
14474 \family default
14475 など他のプリアンブルは、他のクラス同様、
14476 \family sans
14477 文書\SpecialChar \menuseparator
14478 設定\SpecialChar \menuseparator
14479 LaTeXプリアンブル
14480 \family default
14481 に入れてください。
14482 \end_layout
14483
14484 \begin_layout Subsection
14485 レイアウト
14486 \end_layout
14487
14488 \begin_layout Standard
14489 レイアウトは、基本的にRevTeX4.0のコマンドに対応しています。たとえば、Emailレイアウトは、
14490 \family typewriter
14491
14492 \backslash
14493 email{}
14494 \family default
14495 に対応しています。(少なくともRevTeX 4.0 Beta現在では)
14496 \family sans
14497 住所
14498 \family default
14499
14500 \family sans
14501 所属
14502 \family default
14503 はまったく同じものなので、両方を使う必要はありません
14504 \begin_inset Foot
14505 status collapsed
14506
14507 \begin_layout Plain Layout
14508 ついでながら、
14509 \family typewriter
14510 tex2lyx
14511 \family default
14512 は両方とも対応しているので、
14513 \family typewriter
14514
14515 \backslash
14516 address
14517 \family default
14518
14519 \family typewriter
14520
14521 \backslash
14522 affiliation
14523 \family default
14524 のどちらも翻訳することができます。
14525 \end_layout
14526
14527 \end_inset
14528
14529
14530 \end_layout
14531
14532 \begin_layout Subsection
14533 重要な注意
14534 \end_layout
14535
14536 \begin_layout Standard
14537 RevTeX 4には、バグを引き起こしがちなために、気をつけなくてはならない特殊な面がいくつかあるため、LyXではさらに気をつけなくてはなりません。
14538 \end_layout
14539
14540 \begin_layout Standard
14541 RevTeXでは、
14542 \family typewriter
14543
14544 \backslash
14545 thanks
14546 \family default
14547 コマンドは、
14548 \family typewriter
14549
14550 \backslash
14551 author
14552 \family default
14553 コマンドの
14554 \emph on
14555 外側
14556 \emph default
14557 に来なくてはなりません。LyXでは、独立した
14558 \family sans
14559 感謝
14560 \family default
14561 レイアウトがこの働きをします。直接
14562 \family sans
14563 、著者
14564 \family default
14565 レイアウトに脚注を付けてしまうと、おかしなことが起こる可能性があります。詳細については、RevTeX 4の取扱説明書をご覧ください。
14566 \end_layout
14567
14568 \begin_layout Standard
14569 また、
14570 \family sans
14571 著者電子メール
14572 \family default
14573
14574 \family sans
14575 著者URL・感謝(thanks)
14576 \family default
14577 レイアウトは、
14578 \family sans
14579 著者
14580 \family default
14581 レイアウトと
14582 \family sans
14583 住所(
14584 \family default
14585 または同等の
14586 \family sans
14587 所属
14588 \family default
14589 )レイアウトの間に置かなければなりません。
14590 \family sans
14591 感謝(thanks)
14592 \family default
14593
14594 \family sans
14595 住所
14596 \family default
14597 の後に置いてしまうと、LaTeXはコンパイルに失敗します。
14598 \end_layout
14599
14600 \begin_layout Subsection
14601 問題点
14602 \end_layout
14603
14604 \begin_layout Standard
14605 このレイアウトの主な問題点は、電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません。例
14606 えば、節レイアウトも非必須引数を使用することができません)。これは、たとえばページヘッダにヘッダ用タイトルを設定したい場合などには、ファイルをLaTeXファイル
14607 に変換した後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません)、テキストエディタを使ってLaTeXファイルを編集し、非必須引数を書き加えなくては
14608 ならないということです。これらのレイアウトがないと、
14609 \family typewriter
14610
14611 \backslash
14612 altaffiliation
14613 \family default
14614 (またそれと同等な
14615 \family typewriter
14616
14617 \backslash
14618 altaddress
14619 \family default
14620 )は使えませんので、対応するレイアウトは存在せず、手動で書き加える必要があります
14621 \begin_inset Foot
14622 status collapsed
14623
14624 \begin_layout Plain Layout
14625
14626 \emph on
14627 JMarcからの註:
14628 \emph default
14629  実は、LyX 1.3.0 では非必須引数を一部サポートしているのですが、このレイアウトは、まだこの機能を使うようにはアップデートされていないのです。
14630 \end_layout
14631
14632 \end_inset
14633
14634
14635 \end_layout
14636
14637 \begin_layout Section
14638 Springer学術誌(
14639 \family sans
14640 svjour)
14641 \end_layout
14642
14643 \begin_layout Standard
14644
14645 \noun on
14646 Martin Vermeer
14647 \noun default
14648
14649 \end_layout
14650
14651 \begin_layout Subsection
14652 説明
14653 \end_layout
14654
14655 \begin_layout Standard
14656 これは、Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです。
14657 \begin_inset Flex URL
14658 status collapsed
14659
14660 \begin_layout Plain Layout
14661
14662 http://www.springer.de/author/tex/help-journals.html
14663 \end_layout
14664
14665 \end_inset
14666
14667 に必要なクラスファイル(LaTeX2e用になりました)とそれに対応する学術誌の一覧があります。このレイアウトはモジュール式になっています。つまり、全ジャーナル共
14668 通部分は
14669 \family typewriter
14670 svjour.inc
14671 \family default
14672 に実装されており、各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
14673 \family typewriter
14674 svjog.layout
14675 \family default
14676 など)から取り込むことができます。
14677 \end_layout
14678
14679 \begin_layout Standard
14680 このことは、上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには、
14681 \family typewriter
14682 svjog.layout
14683 \family default
14684 に書かれている指示に従って、自作の
14685 \family typewriter
14686 sv
14687 \family default
14688 <学術誌名>
14689 \family typewriter
14690 .layout
14691 \family default
14692 を書くだけで良いことを意味します。
14693 \end_layout
14694
14695 \begin_layout Standard
14696 このレイアウトは、Journal of Geodesyに対してのみ、充分な試験が為されています。
14697 \family typewriter
14698 svjour
14699 \family default
14700
14701 \family typewriter
14702 svjog
14703 \family default
14704 は、標準LyX頒布版に収録済みです。関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し、LaTeXを再設定した後(teT
14705 eXの場合は、必要に応じてroot権限で
14706 \family typewriter
14707 texhash
14708 \family default
14709 を実行します)、LyXを再初期設定すれば、動作するはずです。
14710 \end_layout
14711
14712 \begin_layout Subsection
14713 新スタイル
14714 \end_layout
14715
14716 \begin_layout Standard
14717 多くの定理環境 --- 
14718 \family sans
14719 主張
14720 \family default
14721
14722 \family sans
14723 推論
14724 \family default
14725 ・\SpecialChar \ldots{}
14726
14727 \family sans
14728 定理
14729 \family default
14730
14731 \end_layout
14732
14733 \begin_layout Standard
14734
14735 \family sans
14736 ヘッドノート
14737 \family default
14738
14739 \family sans
14740 献呈
14741 \family default
14742
14743 \family sans
14744 サブタイトル・ヘッダ用LaTeXタイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(ackno
14745 wledgement)
14746 \family default
14747 。詳しくは Springerのクラスファイルの説明書を読んでください。
14748 \end_layout
14749
14750 \begin_layout Subsection
14751 サポートしているジャーナル
14752 \end_layout
14753
14754 \begin_layout Itemize
14755
14756 \emph on
14757 Journal of Geodesy
14758 \emph default
14759
14760 \family typewriter
14761 svjog.layout
14762 \family default
14763  --- Martin Vermeer
14764 \end_layout
14765
14766 \begin_layout Itemize
14767
14768 \emph on
14769 Probability Theory and Related Fields
14770 \emph default
14771
14772 \family typewriter
14773 svprobth.layout
14774 \family default
14775  --- Jean-Marc Lasgouttes
14776 \end_layout
14777
14778 \begin_layout Standard
14779 あなた自身のレイアウトファイルをつくってください。難しくはありません。
14780 \end_layout
14781
14782 \begin_layout Subsection
14783 Credits
14784 \end_layout
14785
14786 \begin_layout Standard
14787 これらのファイルは、以前の 
14788 \family typewriter
14789 ejour2.layout
14790 \family default
14791 をもとにしています。
14792 \family typewriter
14793 ejour2.layout
14794 \family default
14795 は SpringerのLaTeX 2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです。これらのファイルはすでにありません。Jean-Mar
14796 c Lasgouttesのおかげで LyXのレイアウトファイルのメカニズムをよりよく理解することができました。
14797 \end_layout
14798
14799 \begin_layout Subsection
14800 バグ
14801 \end_layout
14802
14803 \begin_layout Standard
14804 多分あります。以前の 
14805 \family typewriter
14806 ejour2
14807 \family default
14808 よりは少なくなっているとは思いますが。
14809 \end_layout
14810
14811 \begin_layout Standard
14812 制限事項:定理環境の環境の番号は表示されません。#が表示されるだけです。
14813 \end_layout
14814
14815 \begin_layout Section
14816 Slides(別名
14817 \noun on
14818 SliTeX
14819 \noun default
14820
14821 \begin_inset Foot
14822 status collapsed
14823
14824 \begin_layout Plain Layout
14825 (訳註)この節の内容は、全般的に古くなっています。
14826 \end_layout
14827
14828 \end_inset
14829
14830
14831 \begin_inset CommandInset label
14832 LatexCommand label
14833 name "sec:slitex"
14834
14835 \end_inset
14836
14837
14838 \end_layout
14839
14840 \begin_layout Standard
14841
14842 \noun on
14843 John Weiss
14844 \noun default
14845
14846 \end_layout
14847
14848 \begin_layout Subsection
14849 はじめに
14850 \end_layout
14851
14852 \begin_layout Standard
14853 本節では、オーバーへッドプロジェクタ用のスライドをつくるのに、LyXをどのように使えばよいかを説明します。これを行う文書クラスには、既定のslideクラスと
14854 \family sans
14855 FoilTeX
14856 \family default
14857 スライドクラスの2つがあります。本節は前者について説明を行います。
14858 \end_layout
14859
14860 \begin_layout Standard
14861 誤解のないように、正しく明確に、もう一度言っておきます。
14862 \end_layout
14863
14864 \begin_layout Standard
14865 \begin_inset VSpace bigskip
14866 \end_inset
14867
14868
14869 \end_layout
14870
14871 \begin_layout Standard
14872 \align center
14873
14874 \size large
14875 本節は文書クラス
14876 \begin_inset Quotes eld
14877 \end_inset
14878
14879
14880 \family sans
14881 transparencies (slides)
14882 \family default
14883
14884 \begin_inset Quotes erd
14885 \end_inset
14886
14887
14888 \emph on
14889 のみ
14890 \emph default
14891 を説明しています。
14892 \end_layout
14893
14894 \begin_layout Standard
14895 \begin_inset VSpace bigskip
14896 \end_inset
14897
14898
14899 \end_layout
14900
14901 \begin_layout Standard
14902
14903 \family sans
14904 「slides (FoilTeX)
14905 \family default
14906 」の説明をお探しならば、第
14907 \begin_inset CommandInset ref
14908 LatexCommand ref
14909 reference "sec:foiltex"
14910
14911 \end_inset
14912
14913 節をご覧ください。
14914 \family sans
14915 foils
14916 \family default
14917 クラス「
14918 \family sans
14919 slides (FoilTeX)
14920 \family default
14921 」は、実際、本節で説明している既定
14922 \family sans
14923 slides
14924 \family default
14925 クラスよりも良いようです
14926 \begin_inset Foot
14927 status collapsed
14928
14929 \begin_layout Plain Layout
14930 \SpecialChar \ldots{}
14931
14932 \family sans
14933 FoilTeX
14934 \family default
14935 の支持者からは聞いています。けれども私は使ったことがないので、本当かどうか確かめようがありません。
14936 \end_layout
14937
14938 \end_inset
14939
14940
14941 \end_layout
14942
14943 \begin_layout Standard
14944 このクラスは、旧SLITeXパッケージをLaTeX2e用に改良したものです。LaTeX2e頒布版すべてが、このクラス(以下では単に「
14945 \family sans
14946 slides
14947 \family default
14948 」と述べることにします)を含んでいるので、あなたもお持ちのはずです。前述の
14949 \family sans
14950 foils
14951 \family default
14952 のように、同じくオーバーへッドプロジェクタ用のスライドを生成しながら、このクラスよりも良い仕事をするクラスもあります。しかしながら、オーバーレイを生成するなど、
14953 他のクラスにはできないが
14954 \family sans
14955 slides
14956 \family default
14957 ならばできることもあります。詳しくは以下をお読みください。
14958 \end_layout
14959
14960 \begin_layout Subsection
14961 使い始めるには
14962 \begin_inset CommandInset label
14963 LatexCommand label
14964 name "sec:slidesetup"
14965
14966 \end_inset
14967
14968
14969 \end_layout
14970
14971 \begin_layout Standard
14972 当然ながら、この文書クラスを使用するには、
14973 \family sans
14974 文書\SpecialChar \menuseparator
14975 設定
14976 \family default
14977 ダイアログのクラスリストから「
14978 \family sans
14979 transparencies (slides)
14980 \family default
14981 」を選択しなくてはなりません。このクラスについて、以下のように、特に知っておいた方が良いことがいくつかあります。
14982 \end_layout
14983
14984 \begin_layout Itemize
14985
14986 \family sans
14987 用紙方向
14988 \family default
14989
14990 \family sans
14991 二段組文書
14992 \family default
14993 の各オプションは、あえて変更する必要はありません。これらのオプションは、
14994 \family sans
14995 slides
14996 \family default
14997 クラスではサポートされていないので、効果がありません。
14998 \end_layout
14999
15000 \begin_layout Itemize
15001
15002 \family sans
15003 ヘディング様式
15004 \family default
15005 オプションは、このクラスでは少し異なった振る舞いをします。各選択肢とその機能は、以下の通りです。
15006 \end_layout
15007
15008 \begin_deeper
15009 \begin_layout Description
15010 プレーン(plain) 最終出力の右下隅にページ番号が付きます。
15011 \end_layout
15012
15013 \begin_layout Description
15014 設定(headings)
15015 \family sans
15016  プレーン(plain)
15017 \family default
15018 と同様ですが、それ以外にあなたが指定したタイムマーカーをすべて出力します。これが既定値です。
15019 \end_layout
15020
15021 \begin_layout Description
15022 空 最終出力には、ページ番号もタイムマーカーも位置揃えマーカーも出力されません。
15023 \end_layout
15024
15025 \end_deeper
15026 \begin_layout Itemize
15027
15028 \family sans
15029 slides
15030 \family default
15031 クラスには、もう一つ
15032 \family typewriter
15033 clock
15034 \family default
15035 というオプションがあります。これを使用するには、
15036 \family sans
15037 クラスオプション
15038 \family default
15039 に「
15040 \family typewriter
15041 clock
15042 \family default
15043 」と入力してください。
15044 \end_layout
15045
15046 \begin_deeper
15047 \begin_layout Standard
15048 このオプションを使うと、
15049 \family sans
15050 注釈
15051 \family default
15052 にタイムマーカーを加えることができます。詳細は、第
15053 \begin_inset CommandInset ref
15054 LatexCommand ref
15055 reference "sec:スライド注釈"
15056
15057 \end_inset
15058
15059 節をご覧ください。
15060 \end_layout
15061
15062 \end_deeper
15063 \begin_layout Standard
15064
15065 \family sans
15066 slides
15067 \family default
15068 クラスを用いた文書を自動的にセットアップするには、ひな型ファイル「
15069 \family typewriter
15070 slides.lyx
15071 \family default
15072 」を使用することもできます(新規ファイルを開く際に
15073 \family sans
15074 ファイル\SpecialChar \menuseparator
15075 新規(ひな型使用)
15076 \family default
15077 を使用してください)。ひな型ファイルには、このクラスが使用する特別な段落環境の用例も含まれています。これらについては、以下で説明します。
15078 \end_layout
15079
15080 \begin_layout Subsection
15081 段落環境
15082 \end_layout
15083
15084 \begin_layout Subsubsection
15085
15086 \family sans
15087 サポートされている環境
15088 \end_layout
15089
15090 \begin_layout Standard
15091 新しく
15092 \family sans
15093 slides
15094 \family default
15095 文書を開いたときにまず気付くのは、フォント寸法とフォント族の違いでしょう。ここでは、
15096 \family sans
15097 サンセリフ体
15098 \family default
15099 フォントの
15100 \family sans
15101 極大
15102 \family default
15103 寸法が用いられており、出力でもこのフォントが使用されます。これは、現在スライドを作成中であることの「目印」だと考えてください。出力スライドは大きなフォントを使用
15104 するため、書ける場所は少なくなります。もちろん、既定の大きな画面フォントはWYSIWYGではなく、スライドであることの目印に過ぎません。
15105 \end_layout
15106
15107 \begin_layout Standard
15108 次に気付くのは、(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう。通常見かける環境の多くがなくなって、代わりに5つの新しい環境が入ってい
15109 ます。これは、
15110 \family sans
15111 slides
15112 \family default
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 キャプション
15168 \end_layout
15169
15170 \begin_layout Itemize
15171
15172 \family sans
15173 LyXコード
15174 \end_layout
15175
15176 \begin_layout Itemize
15177
15178 \family sans
15179 コメント
15180 \end_layout
15181
15182 \begin_layout Standard
15183 これ以外の標準的な環境、例えば節見出し用の環境などは
15184 \family sans
15185 slides
15186 \family default
15187 クラスでは使えません。
15188 \end_layout
15189
15190 \begin_layout Standard
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 Itemize
15219
15220 \family sans
15221 可視文
15222 \end_layout
15223
15224 \begin_layout Standard
15225 これら5つの環境は、LyXの「機能」のために使い方に癖があります。ご存じのように、LyXでは、空の段落環境に他の環境を入れることができません。それ自体は素晴らし
15226 いデザインなのですが、これは、スライドを平文以外では書き始めることができないことを意味します。これを取り扱うためには、ちょっとした「LaTeXマジック」が必要に
15227 なります。
15228 \end_layout
15229
15230 \begin_layout Subsubsection
15231 新環境の癖
15232 \begin_inset CommandInset label
15233 LatexCommand label
15234 name "sec:スライドの癖"
15235
15236 \end_inset
15237
15238
15239 \end_layout
15240
15241 \begin_layout Standard
15242 5つの新しい環境にはすべて、LyX現行版の制約に由来する癖があります。いま述べたように、LyXでは、環境を別の環境で開始することが禁止されています。これを回避す
15243 るために、
15244 \family sans
15245 スライド
15246 \family default
15247 環境は『
15248 \emph on
15249 ユーザーの手引き
15250 \emph default
15251 』で述べられているような段落環境ではなくなっています。
15252 \end_layout
15253
15254 \begin_layout Standard
15255
15256 \family sans
15257 スライド
15258 \family default
15259
15260 \family sans
15261 オーバーレイ
15262 \family default
15263
15264 \family sans
15265 注釈
15266 \family default
15267 は「疑似環境」だとお考えください。これらは節見出しや「
15268 \family sans
15269 キャプション
15270 \family default
15271 」のように見えますが、実際には(必要なら前段落を終了して)新しい段落環境を開始します。同様に、
15272 \family sans
15273 不可視文
15274 \family default
15275
15276 \family sans
15277 可視文
15278 \family default
15279 も「疑似コマンド」とお考えください。この2つは特定のアクションを行います。
15280 \end_layout
15281
15282 \begin_layout Standard
15283
15284 \family sans
15285 スライド
15286 \family default
15287
15288 \family sans
15289 オーバーレイ
15290 \family default
15291
15292 \family sans
15293 注釈
15294 \family default
15295
15296 \family sans
15297 不可視文
15298 \family default
15299
15300 \family sans
15301 可視文
15302 \family default
15303 の5環境に共通しているのは、長めのラベルを持つことです。このラベルに続く文章—通常は段落環境の内容になるはずですが—は、
15304 \family sans
15305 スライド
15306 \family default
15307
15308 \family sans
15309 オーバーレイ
15310 \family default
15311
15312 \family sans
15313 注釈
15314 \family default
15315
15316 \family sans
15317 不可視文
15318 \family default
15319
15320 \family sans
15321 可視文
15322 \family default
15323 では、まったく意味がなく、LyXはこの部分を完全に無視します。これらの5つの環境の内容は、完全に空のままにしておいて構いません。
15324 \end_layout
15325
15326 \begin_layout Standard
15327 長めのラベルの後に文章を入れる
15328 \emph on
15329 必要は
15330 \emph default
15331 まったく
15332 \emph on
15333 ない
15334 \emph default
15335 とはいえ、何か書いておきたいこともあるかもしれません。たとえば、スライドの内容に関する短い説明などがそうでしょう。この場合、いつもどおり説明用のコメントを入力し
15336
15337 \family sans
15338 Return
15339 \family default
15340 を押してください。
15341 \end_layout
15342
15343 \begin_layout Standard
15344 一方、説明文を入れたくない場合には、LyXの制約に直面します。自然が真空を憎むように、LyXでは、古い環境に何かを置くまでは、その中に新しい環境を入れることがで
15345 きません。そこで以下のようにしてください。
15346 \end_layout
15347
15348 \begin_layout Itemize
15349 新しい
15350 \family sans
15351 スライド
15352 \family default
15353
15354 \family sans
15355 オーバーレイ
15356 \family default
15357
15358 \family sans
15359 注釈
15360 \family default
15361
15362 \family sans
15363 不可視文
15364 \family default
15365
15366 \family sans
15367 可視文
15368 \family default
15369
15370 \emph on
15371 中に入れる
15372 \emph default
15373 文章を入力してください。
15374 \end_layout
15375
15376 \begin_layout Itemize
15377 段落の先頭に移動します。
15378 \end_layout
15379
15380 \begin_layout Itemize
15381 次に
15382 \family sans
15383 Return
15384 \family default
15385 を押します。
15386 \end_layout
15387
15388 \begin_layout Itemize
15389 最後に、この新しい空の段落を
15390 \family sans
15391 スライド
15392 \family default
15393
15394 \family sans
15395 オーバーレイ
15396 \family default
15397
15398 \family sans
15399 注釈
15400 \family default
15401
15402 \family sans
15403 不可視文
15404 \family default
15405
15406 \family sans
15407 可視文
15408 \family default
15409 に変更します。
15410 \end_layout
15411
15412 \begin_layout Standard
15413 将来のLyXでは、このような癖が解決されることを祈っています\SpecialChar \ldots{}
15414
15415 \begin_inset Foot
15416 status collapsed
15417
15418 \begin_layout Plain Layout
15419 (訳註)ここの記述は古くなっています。
15420 \end_layout
15421
15422 \end_inset
15423
15424
15425 \end_layout
15426
15427 \begin_layout Subsection
15428
15429 \family sans
15430 スライド
15431 \family default
15432
15433 \family sans
15434 オーバーレイ
15435 \family default
15436
15437 \family sans
15438 注釈で発表用のスライドを作る
15439 \end_layout
15440
15441 \begin_layout Subsubsection
15442
15443 \family sans
15444 スライド
15445 \family default
15446 環境を使う
15447 \end_layout
15448
15449 \begin_layout Standard
15450 もし本節が、実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば、大いにがっかりされるかもしれません。当然ながら、プレゼンテーション用の資
15451 料を準備するうえで
15452 \family sans
15453 slides
15454 \family default
15455 クラスを役立てる方法を詳しく説明はしますが、内容をどうするかはあなた次第です(そしてこれもLyXの哲学です)。
15456 \end_layout
15457
15458 \begin_layout Standard
15459
15460 \family sans
15461 スライド
15462 \family default
15463 環境を選択すれば(方法は第
15464 \begin_inset CommandInset ref
15465 LatexCommand ref
15466 reference "sec:スライドの癖"
15467
15468 \end_inset
15469
15470 節参照のこと)、LyXは新規スライドを開始します。この環境ないし「疑似環境」のラベルは、鮮やかな青で「新規スライド:」と表示されます。この環境の後のテキスト環境
15471 や段落環境は、すべて新規スライドに入ります。簡単ですよね。
15472 \end_layout
15473
15474 \begin_layout Standard
15475 Slidesは、おそらくLyXの中で強制的に改頁をしなくてはならない唯一のクラスです(これは
15476 \family sans
15477 段落レイアウト
15478 \family default
15479 ダイアログで指定できます)。実際、一つのスライドの内容を入力し終わったら、改頁したくなるはずです。仮に一つのスライドに物理的に入りきらない文章を入力したとすると
15480 、入りきらない部分は、次の新規スライドにまわされます。しかしながら、入りきらない部分のスライドにはページ番号が付きませんので、こうするのはお勧めしません。その上
15481 、一枚に収まらないスライドでは、
15482 \family sans
15483 オーバーレイ
15484 \family default
15485 を使用すると干渉する恐れがあります。
15486 \end_layout
15487
15488 \begin_layout Standard
15489
15490 \family sans
15491 オーバーレイ
15492 \family default
15493 環境と
15494 \family sans
15495 注釈
15496 \family default
15497 環境も、
15498 \family sans
15499 スライド
15500 \family default
15501 環境と同様の動作を示します。これらは、青の代わりに鮮やかなマゼンタで、それぞれ「
15502 \noun on
15503 新規オーバーレイ
15504 \noun default
15505 :」ないし「
15506 \noun on
15507 新規注釈:
15508 \noun default
15509 」というラベルを表示します。ラベルのフォントも、3つの環境でそれぞれ異なるものが使用されます。
15510 \end_layout
15511
15512 \begin_layout Standard
15513
15514 \family sans
15515 スライド
15516 \family default
15517 と同様に、
15518 \family sans
15519 オーバーレイ
15520 \family default
15521
15522 \family sans
15523 注釈
15524 \family default
15525 の内容が、一つのスライドないしページに物理的に収まりきらない場合には、余分は新規スライドに回されます。この場合には、
15526 \family sans
15527 注釈
15528 \family default
15529
15530 \family sans
15531 オーバーレイ
15532 \family default
15533 の本来の目的が達せられなくなりますので、ここでもこのような状態は避けるべきでしょう。
15534 \end_layout
15535
15536 \begin_layout Subsubsection
15537
15538 \family sans
15539 スライドでオーバーレイを使用する
15540 \end_layout
15541
15542 \begin_layout Standard
15543
15544 \family sans
15545 オーバーレイ
15546 \family default
15547 の背後にある考え方は、別のスライドの上にスライドを載せようとするものです。メインの
15548 \family sans
15549 スライド
15550 \family default
15551 に図があるとき、関連した文章を表示する前に、図について議論を進めたいと思うことがあるかもしれません。これを行うひとつの方法は、
15552 \family sans
15553 スライド
15554 \family default
15555 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが、この方法は、たとえばグラフを他のグラフに重ねたい場合などには、うまく行きません。この場合には、二つ
15556 のグラフを揃えるために、重ねる二つのスライドを、喋りながら手探りで揃えなくてはなりません。これらのような場合には、
15557 \family sans
15558 オーバーレイ
15559 \family default
15560 環境を使えば、もっと楽になります。
15561 \end_layout
15562
15563 \begin_layout Standard
15564
15565 \family sans
15566 オーバーレイ
15567 \family default
15568 は、「親」
15569 \family sans
15570 スライド
15571 \family default
15572 のページ番号を引継ぎ、その後に「
15573 \family typewriter
15574 -a
15575 \family default
15576 」を付け加えます
15577 \begin_inset Foot
15578 status collapsed
15579
15580 \begin_layout Plain Layout
15581 想像できるように、複数のオーバーレイがあれば、「
15582 \family typewriter
15583 -a
15584 \family default
15585 」「
15586 \family typewriter
15587 -b
15588 \family default
15589 」「
15590 \family typewriter
15591 -c
15592 \family default
15593 」などが親スライドのページ番号に付け加えられます。
15594 \end_layout
15595
15596 \end_inset
15597
15598 。当然のことながら、
15599 \family sans
15600 スライド
15601 \family default
15602
15603 \family sans
15604 オーバーレイ
15605 \family default
15606 の内容は両方とも、1枚のスライドに物理的に収まるようになっていなければなりません。
15607 \family sans
15608 オーバーレイ
15609 \family default
15610
15611 \family sans
15612 スライド
15613 \family default
15614 の「一部」であると考えるのがよいでしょう。LyXでは、
15615 \family sans
15616 オーバーレイ
15617 \family default
15618 のラベルを
15619 \family sans
15620 スライド
15621 \family default
15622 のラベルよりも下げることで、このことを視覚的に表しています。また、印刷可能な出力を生成すると、
15623 \family sans
15624 オーバーレイ
15625 \family default
15626 と親
15627 \family sans
15628 スライド
15629 \family default
15630 両方の四隅に、揃えマーカーがあることに気づかれるはずです。これは、2枚のスライドを物理的に重ね合わせるための補助となるものです。
15631 \end_layout
15632
15633 \begin_layout Standard
15634 2つのスライドをオーバーレイさせる際の大きな問題は、2枚のスライドの内容を揃えることです。2枚目のスライドのグラフには、どれだけの余白を残しておくべきなのでしょ
15635 うか?さらにややこしく、2枚目のスライドにグラフと文章を入れたいときに、その間に割り込んでしまうような文章がメインスライドにある場合には、どうでしょうか?正しい
15636 寸法の垂直スペースを挿入してみることもできるでしょう。しかし、もっと良い方法として、
15637 \family sans
15638 不可視文
15639 \family default
15640
15641 \family sans
15642 可視文
15643 \family default
15644 を使用する方法があります。
15645 \end_layout
15646
15647 \begin_layout Standard
15648 これらの名前が意味するとおり、
15649 \family sans
15650 不可視文
15651 \family default
15652
15653 \family sans
15654 可視文
15655 \family default
15656 は、それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です。しかしながら、第
15657 \begin_inset CommandInset ref
15658 LatexCommand ref
15659 reference "sec:スライドの癖"
15660
15661 \end_inset
15662
15663 節で述べたように、この2つの環境の
15664 \emph on
15665
15666 \emph default
15667 には何も置くことができません。
15668 \family sans
15669 不可視文
15670 \family default
15671 を作成すると、「<以下不可視文>」と書かれた水色のラベルが、ページに中央揃えで表示されます。このラベルに続く段落は、それが置かれるべき
15672 \family sans
15673 スライド
15674 \family default
15675 (あるいは
15676 \family sans
15677 オーバーレイ
15678 \family default
15679 ;どちらでも同じことです)部分に、代わりに空白の部分が置かれます。
15680 \end_layout
15681
15682 \begin_layout Standard
15683
15684 \family sans
15685 可視文
15686 \family default
15687 の場合には、中央揃えのラベルは、鮮やかな緑の「<以下可視文>」となります。このラベル以降の段落は、通常通りの挙動を示します。新規の
15688 \family sans
15689 スライド
15690 \family default
15691
15692 \family sans
15693 オーバーレイ
15694 \family default
15695
15696 \family sans
15697 注釈
15698 \family default
15699 を開始すると、
15700 \family sans
15701 不可視文
15702 \family default
15703 は自動的に終了されることに注意してください。したがって、
15704 \family sans
15705 スライド
15706 \family default
15707 の終わりでは、
15708 \family sans
15709 可視文
15710 \family default
15711 を使用する必要はありません。
15712 \end_layout
15713
15714 \begin_layout Standard
15715 ここまでで、
15716 \family sans
15717 スライド
15718 \family default
15719
15720 \family sans
15721 オーバーレイ
15722 \family default
15723 上で
15724 \family sans
15725 不可視文
15726 \family default
15727
15728 \family sans
15729 可視文
15730 \family default
15731 を適切に使用して、スライドをオーバーレイさせる方法が明らかになったことと思います。
15732 \end_layout
15733
15734 \begin_layout Enumerate
15735 メインのスライドか
15736 \family sans
15737 オーバーレイ
15738 \family default
15739 かに関わらず、スライド上に現れるすべてを含んだ
15740 \family sans
15741 スライド
15742 \family default
15743 を作成します。
15744 \end_layout
15745
15746 \begin_layout Enumerate
15747
15748 \family sans
15749 オーバーレイ
15750 \family default
15751 のみに表示するすべての図や段落の前に、
15752 \family sans
15753 不可視文
15754 \family default
15755 環境を挿入し、必要ならば、
15756 \family sans
15757 オーバーレイ
15758 \family default
15759 のみの文章の後に
15760 \family sans
15761 可視文
15762 \family default
15763 環境を挿入します。
15764 \end_layout
15765
15766 \begin_layout Enumerate
15767
15768 \family sans
15769 スライド
15770 \family default
15771 の直後から、
15772 \family sans
15773 オーバーレイ
15774 \family default
15775 を開始します。
15776 \end_layout
15777
15778 \begin_layout Enumerate
15779 この
15780 \family sans
15781 スライド
15782 \family default
15783 の内容を
15784 \family sans
15785 オーバーレイ
15786 \family default
15787 にコピーします。
15788 \end_layout
15789
15790 \begin_layout Enumerate
15791
15792 \family sans
15793 オーバーレイ
15794 \family default
15795 内部の
15796 \family sans
15797 不可視文
15798 \family default
15799 行をすべて
15800 \family sans
15801 不可視文
15802 \family default
15803 に変更し、
15804 \family sans
15805 可視文
15806 \family default
15807
15808 \family sans
15809 不可視文
15810 \family default
15811 に変更します。
15812 \end_layout
15813
15814 \begin_layout Standard
15815 これだけです。これで
15816 \family sans
15817 オーバーレイ
15818 \family default
15819 ができあがりました。
15820 \end_layout
15821
15822 \begin_layout Standard
15823 LyX 
15824 \family sans
15825 slides
15826 \family default
15827 クラスをデザインする上で、ひとつ残された問題があります。段落途中の文章を不可視にしたり、不可視段落の途中の文章を再度可視にしたりすることはできないのです。これを
15828 実現するためには、LaTeXコードを埋め込む必要があります
15829 \begin_inset Foot
15830 status collapsed
15831
15832 \begin_layout Plain Layout
15833 このコマンドは、
15834 \end_layout
15835
15836 \begin_layout Itemize
15837
15838 \family typewriter
15839 {
15840 \backslash
15841 invisible \SpecialChar \ldots{}
15842  }
15843 \end_layout
15844
15845 \begin_layout Itemize
15846
15847 \family typewriter
15848 {
15849 \backslash
15850 visible \SpecialChar \ldots{}
15851  }
15852 \end_layout
15853
15854 \begin_layout Plain Layout
15855 \SpecialChar \ldots{}
15856 のような形となり、TeXとしてマークする必要があります。「可視性」を変更したい文章は、波括弧のあいだ(そして
15857 \family typewriter
15858
15859 \backslash
15860 invisible
15861 \family default
15862 ないし
15863 \family typewriter
15864
15865 \backslash
15866 visible
15867 \family default
15868 コマンドの後ろ)に入れます。TeXとしてマークする方法がわからない場合は、
15869 \emph on
15870 ユーザーの手引き
15871 \emph default
15872 をご参照ください。
15873 \end_layout
15874
15875 \end_inset
15876
15877
15878 \end_layout
15879
15880 \begin_layout Subsubsection
15881
15882 \family sans
15883 スライドで注釈を使う
15884 \family default
15885
15886 \begin_inset CommandInset label
15887 LatexCommand label
15888 name "sec:スライド注釈"
15889
15890 \end_inset
15891
15892
15893 \end_layout
15894
15895 \begin_layout Standard
15896
15897 \family sans
15898 オーバーレイ
15899 \family default
15900 と同様、
15901 \family sans
15902 注釈
15903 \family default
15904 も「親」
15905 \family sans
15906 スライド
15907 \family default
15908 に関連付けられています。ここでもLyX
15909 \family sans
15910 スライド
15911 \family default
15912 クラスは視覚的な効果を与えています。
15913 \family sans
15914 注釈
15915 \family default
15916 のラベルは
15917 \family sans
15918 スライド
15919 \family default
15920 よりも短く(オーバーレイのラベルよりも長いですが)、
15921 \family sans
15922 オーバーレイ
15923 \family default
15924 のラベルと同様、派手な赤紫色です。加えて、印刷した
15925 \family sans
15926 注釈
15927 \family default
15928 には、「親」スライドのページ番号に「
15929 \family typewriter
15930 -
15931 \family default
15932 1」「
15933 \family typewriter
15934 -
15935 \family default
15936 2」「
15937 \family typewriter
15938 -
15939 \family default
15940 3」等を付けたページ番号が付けられます。1つの
15941 \family sans
15942 スライド
15943 \family default
15944 には、複数の
15945 \family sans
15946 注釈
15947 \family default
15948 を関連付けることができるので、
15949 \family sans
15950 スライド
15951 \family default
15952
15953 \family sans
15954 オーバーレイ
15955 \family default
15956 と同じように、長い注釈は、1枚の紙に収まるように分割したいと思われるに違いありません。
15957 \end_layout
15958
15959 \begin_layout Standard
15960
15961 \family sans
15962 注釈
15963 \family default
15964 の目的は明らかです。
15965 \family sans
15966 スライド
15967 \family default
15968 に関して付け加えたいことを書き留めておくことです。特定の
15969 \family sans
15970 スライド
15971 \family default
15972 についての覚書として使うこともできます。後者の場合には、タイムマーカを利用したいこともあるかもしれません。現在のところ、LyXの
15973 \family sans
15974 スライド
15975 \family default
15976 クラスは、
15977 \noun on
15978 Sli
15979 \noun default
15980 TeXの機能であるタイムマーカを「ネイティブには」サポートしていません。したがって、LaTeXコードを使用することに頼らなくてはなりません。
15981 \end_layout
15982
15983 \begin_layout Standard
15984 タイムマーカを使用するには、クラスオプション「
15985 \family typewriter
15986 clock
15987 \family default
15988 」を追加指定する必要があります(第
15989 \begin_inset CommandInset ref
15990 LatexCommand ref
15991 reference "sec:slidesetup"
15992
15993 \end_inset
15994
15995 節参照)。このオプションはタイムマーカ機能を有効にして、生成したすべての
15996 \family sans
15997 注釈
15998 \family default
15999 の左下にタイムマーカを表示します。タイムマーカに表示するものを設定するには、LaTeXコマンド「
16000 \family typewriter
16001
16002 \backslash
16003 settime{}
16004 \family default
16005 」および「
16006 \family typewriter
16007
16008 \backslash
16009 addtime{}
16010 \family default
16011 」を使用します。両コマンドは、秒で測った時間を引数にとります。「
16012 \family typewriter
16013
16014 \backslash
16015 settime{}
16016 \family default
16017 」は、タイムマーカを特定の時間に設定し、「
16018 \family typewriter
16019
16020 \backslash
16021 addtime{}
16022 \family default
16023 」は、タイムマーカを指定した分だけ進めます。このようにタイムマーカと
16024 \family sans
16025 注釈
16026 \family default
16027 を用いれば、特定の
16028 \family sans
16029 スライド
16030 \family default
16031 にどれだけの時間をかけるのか忘れないでいられます。
16032 \end_layout
16033
16034 \begin_layout Standard
16035 最後に、説明しておくべき機能がもう一つあります。当然ながら、
16036 \family sans
16037 スライド
16038 \family default
16039
16040 \family sans
16041 オーバーレイ
16042 \family default
16043 はすべてスライドに、
16044 \family sans
16045 注釈
16046 \family default
16047 はすべて普通の紙に印刷したいはずです。しかしながら、
16048 \family sans
16049 注釈
16050 \family default
16051 は関連付けられた親スライドの直後に
16052 \emph on
16053 来なくてはなりません
16054 \emph default
16055 。ユーザーはどうしたら良いのでしょうか。
16056 \end_layout
16057
16058 \begin_layout Standard
16059 幸いなことに、どれを印刷するか選択することを可能にするLaTeXコマンドが、2種類あります。どちらも文書のプリアンブルに記述されなくてはなりません。コマンド「
16060 \family typewriter
16061
16062 \backslash
16063 onlyslides{
16064 \backslash
16065 slides}
16066 \family default
16067 」は、出力に
16068 \family sans
16069 スライド
16070 \family default
16071
16072 \family sans
16073 オーバーレイ
16074 \family default
16075 のみが含まれるようにするものです。同様に、「
16076 \family typewriter
16077
16078 \backslash
16079 onlynotes{
16080 \backslash
16081 notes}
16082 \family default
16083 」は
16084 \family sans
16085 注釈
16086 \family default
16087 以外の出力をすべて抑制します。私のアドバイスとしては、両コマンドをプリアンブルに書いておいて、最初は両方ともコメントアウトしておくと良いでしょう。そうすれば、執
16088 筆時にはプレゼンテーション全体をプレビューすることができます。いったん書き終えたならば、二つのうち一方のコメントを外して、印刷したい方を選ぶことができます。私な
16089 らば、まず
16090 \family typewriter
16091
16092 \backslash
16093 onlyslides{
16094 \backslash
16095 slides}
16096 \family default
16097 のコメントを外して、現ファイル名に「*
16098 \family typewriter
16099 -slides
16100 \family default
16101 」を付けた新たなファイルに出力を行ない、今度はこの行をふたたびコメントアウトするとともに、「
16102 \family typewriter
16103
16104 \backslash
16105 onlynotes{
16106 \backslash
16107 notes
16108 \family default
16109 }」のコメントを外して、これを「
16110 \family typewriter
16111 *-notes.ps
16112 \family default
16113 」というファイルに出力します。そうすれば、必要に応じて、スライドまたは通常の紙をプリンタにセットし、一方のファイルをプリンタに送ればよいのです。
16114 \end_layout
16115
16116 \begin_layout Standard
16117
16118 \family typewriter
16119
16120 \backslash
16121 onlyslides{}
16122 \family default
16123 」および「
16124 \family typewriter
16125
16126 \backslash
16127 onlynotes{}
16128 \family default
16129 」コマンドには、他の引数を与えることもできます。詳しくは、LaTeXの良書をご覧ください。
16130 \end_layout
16131
16132 \begin_layout Subsection
16133
16134 \family sans
16135 slides
16136 \family default
16137 クラスのひな型ファイル
16138 \end_layout
16139
16140 \begin_layout Standard
16141
16142 \family sans
16143 slides
16144 \family default
16145 クラス用のひな型ファイルとして「
16146 \family typewriter
16147 slides.lyx
16148 \family default
16149 」が提供されています。これを使用するには、新しいプレゼンテーションを作り始める際に、
16150 \family sans
16151 ファイル\SpecialChar \menuseparator
16152 新規(ひな型使用)
16153 \family default
16154 メニューを選択してください。すると新規ファイルには、
16155 \family sans
16156 スライド
16157 \family default
16158
16159 \family sans
16160 オーバーレイ
16161 \family default
16162
16163 \family sans
16164 注釈
16165 \family default
16166 の組が、例として含まれており、
16167 \family sans
16168 スライド
16169 \family default
16170
16171 \family sans
16172 オーバーレイ
16173 \family default
16174 には、さらに
16175 \family sans
16176 不可視文
16177 \family default
16178
16179 \family sans
16180 可視文
16181 \family default
16182 の使用例も含まれています。また、プリアンブルには、次のように書き込まれています。
16183 \end_layout
16184
16185 \begin_layout LyX-Code
16186 % Uncomment to print out only slides and overlays
16187 \end_layout
16188
16189 \begin_layout LyX-Code
16190 %
16191 \end_layout
16192
16193 \begin_layout LyX-Code
16194 %
16195 \backslash
16196 onlyslides{
16197 \backslash
16198 slides}
16199 \begin_inset Newline newline
16200 \end_inset
16201
16202  
16203 \end_layout
16204
16205 \begin_layout LyX-Code
16206 % Uncomment to print out only notes
16207 \end_layout
16208
16209 \begin_layout LyX-Code
16210 %
16211 \end_layout
16212
16213 \begin_layout LyX-Code
16214 %
16215 \backslash
16216 onlynotes{
16217 \backslash
16218 notes}
16219 \end_layout
16220
16221 \begin_layout Standard
16222 最後に、私はこの文書クラスを、LaTeX2eの組み込みクラスである「
16223 \noun on
16224 SliTeX
16225 \noun default
16226 エミュレーション」クラスをサポートする目的で作成しました。私もLyXチームの他のメンバーも、この組み込みスライドクラスを使用することに賛成したり反対したりするも
16227 のではありません。これは単に、ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです。プレゼンテーションを作成するためには、
16228 \family sans
16229 Foils
16230 \family default
16231 クラス(第
16232 \begin_inset CommandInset ref
16233 LatexCommand ref
16234 reference "sec:foiltex"
16235
16236 \end_inset
16237
16238 節参照)や「
16239 \family typewriter
16240 seminar
16241 \family default
16242 」パッケージ(一部のTeX頒布版に含まれています)のように、他のLaTeX2eクラスも存在します。私はこれらについては知らないのですが、他にどのようなことができ
16243 るのか試してみてください。
16244 \end_layout
16245
16246 \begin_layout Chapter
16247 ソフトウェアを追加する必要がある LyX機能
16248 \end_layout
16249
16250 \begin_layout Section
16251 TeXのチェック
16252 \end_layout
16253
16254 \begin_layout Standard
16255
16256 \noun on
16257 Asger Alstrup
16258 \noun default
16259
16260 \end_layout
16261
16262 \begin_layout Subsection
16263 はじめに
16264 \end_layout
16265
16266 \begin_layout Standard
16267
16268 \family typewriter
16269 chktex
16270 \family default
16271 プログラムが導入されていると
16272 \begin_inset Foot
16273 status collapsed
16274
16275 \begin_layout Plain Layout
16276 LaTeX頒布版としてMiKTeXを使用している場合には、
16277 \family typewriter
16278 chktex
16279 \family default
16280 はまだ利用可能ではありません。
16281 \end_layout
16282
16283 \end_inset
16284
16285
16286 \family sans
16287 ツール
16288 \family default
16289 メニューの下に、
16290 \family sans
16291 TeX構文チェック
16292 \family default
16293 という項目が表示されます。
16294 \family typewriter
16295 chktex
16296 \family default
16297 は、CTAN
16298 \begin_inset Newline newline
16299 \end_inset
16300
16301
16302 \begin_inset CommandInset href
16303 LatexCommand href
16304 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
16305
16306 \end_inset
16307
16308 から入手することができます。
16309 \end_layout
16310
16311 \begin_layout Standard
16312
16313 \family sans
16314 ChkTeX
16315 \family default
16316 パッケージは、LaTeXの構成物には直感的でないものもあり、すぐ忘れてしまいがちであるのに不満を感じた
16317 \begin_inset Flex Noun
16318 status collapsed
16319
16320 \begin_layout Plain Layout
16321 Jens T.
16322  Berger Thielemann
16323 \end_layout
16324
16325 \end_inset
16326
16327 が書いたプログラムです。このプログラムは、LaTeXファイルを走査して、ファイルの整合性をチェックし、犯しがちな誤りを見つけ出します。別の技術用語では、LaTe
16328 Xにおける
16329 \family typewriter
16330 lint
16331 \family default
16332 であるとも言えます。
16333 \end_layout
16334
16335 \begin_layout Standard
16336 さて、LyXはつねに正しいLaTeXファイルを生成するはずなのに、文法チェッカーはLyXで何をするというのでしょうか。答えは簡単です。
16337 \family typewriter
16338 lint
16339 \family default
16340 がC言語プログラムの
16341 \emph on
16342 文法
16343 \emph default
16344 をチェックするだけでなく、打ち間違いによる
16345 \emph on
16346 意味上の
16347 \emph default
16348 チェックも行うように、
16349 \family sans
16350 ChkTeX
16351 \family default
16352 は、文法エラーの他に犯しがちな
16353 \emph on
16354 写植上の
16355 \emph default
16356 誤りも検出してくれるからです。
16357 \family sans
16358 ChkTeX
16359 \family default
16360 は、以下のような誤りを検出することができます。
16361 \end_layout
16362
16363 \begin_layout Itemize
16364 省略記号の検出:
16365 \begin_inset Newline newline
16366 \end_inset
16367
16368 ...ではなく\SpecialChar \ldots{}
16369 を使わなくてはなりません
16370 \end_layout
16371
16372 \begin_layout Itemize
16373 括弧の前後にスペースを置かない:
16374 \begin_inset Newline newline
16375 \end_inset
16376
16377 ( wrong spacing ):誤った空白
16378 \end_layout
16379
16380 \begin_layout Itemize
16381 よく使われる省略形の後ろは通常スペースにする:
16382 \begin_inset Newline newline
16383 \end_inset
16384
16385 e.
16386 \begin_inset space \thinspace{}
16387 \end_inset
16388
16389 g.
16390 \begin_inset space \space{}
16391 \end_inset
16392
16393 is too wide spacing.:広すぎる空白
16394 \end_layout
16395
16396 \begin_layout Itemize
16397 直前の文章が大文字で終わっているときに、文末スペースに直す:
16398 \begin_inset Newline newline
16399 \end_inset
16400
16401 This is a TEST.
16402  And this is wrong spacing.:誤った空白
16403 \end_layout
16404
16405 \begin_layout Itemize
16406 ラベルや類似コマンドの前のスペース:
16407 \begin_inset Newline newline
16408 \end_inset
16409
16410 ラベルが別のページに行ってしまわないように、ラベルは文章に接していなくてはなりません。 
16411 \begin_inset CommandInset label
16412 LatexCommand label
16413 name "sec:chktex"
16414
16415 \end_inset
16416
16417  
16418 \begin_inset Foot
16419 status collapsed
16420
16421 \begin_layout Plain Layout
16422 この脚注は、正しくないページに行ってしまう恐れがあります。
16423 \end_layout
16424
16425 \end_inset
16426
16427  このラベルは離れすぎです。
16428 \end_layout
16429
16430 \begin_layout Itemize
16431 参照の前にハードスペースではなくスペース:
16432 \begin_inset Newline newline
16433 \end_inset
16434
16435 運が悪ければ、参照文字列と参照番号のあいだでちょうど改行されてしまい、残念な結果となります。第
16436 \begin_inset CommandInset ref
16437 LatexCommand ref
16438 reference "sec:chktex"
16439
16440 \end_inset
16441
16442 節をご覧ください。
16443 \end_layout
16444
16445 \begin_layout Itemize
16446 数字のあいだで
16447 \begin_inset Formula $\times$
16448 \end_inset
16449
16450 ではなく「x」が使われている:
16451 \begin_inset Newline newline
16452 \end_inset
16453
16454 2x2は、
16455 \begin_inset Formula $2\times2$
16456 \end_inset
16457
16458 よりも安っぽく見えます。
16459 \end_layout
16460
16461 \begin_layout Standard
16462 などなど\SpecialChar \ldots{}
16463
16464 \family sans
16465 ChkTeX
16466 \family default
16467 は、印刷する前に文書を「仕上げる」上で、たいへん価値のあるツールです。必須のスペルチェックを終えた直後、組版の微調整をする前には、これを実行するべきです。
16468 \end_layout
16469
16470 \begin_layout Subsection
16471 使いかた
16472 \end_layout
16473
16474 \begin_layout Standard
16475 このプログラムを導入したならば、使うのは
16476 \family sans
16477 ツール\SpecialChar \menuseparator
16478 TeX構文チェック
16479 \family default
16480 を選択するだけなので簡単です。こうすると、LyXは使用中の文書のLaTeXファイルを生成して、
16481 \family sans
16482 ChkTeX
16483 \family default
16484 を起動し、当該ファイルを検査しますが、
16485 \family sans
16486 ChkTeX
16487 \family default
16488 から警告があった場合には、それを含んだ「エラーボックス」をLyX中に挿入します。警告は、誤りのある箇所のそばに置かれるので、メニュー項目の
16489 \family sans
16490 移動\SpecialChar \menuseparator
16491 エラー
16492 \family default
16493 を選択するか、既定の
16494 \family typewriter
16495 cua
16496 \family default
16497 キー設定ファイルならば短絡キー
16498 \family sans
16499 C-g
16500 \family default
16501 を押せば、簡単に警告の箇所を見出すことができます。エラーボックスを開けるには、マウスでボックスをクリックするか、
16502 \family typewriter
16503 cua
16504 \family default
16505 キー設定の場合には短絡キー
16506 \family sans
16507 C-i
16508 \family default
16509
16510 \family typewriter
16511 emacs
16512 \family default
16513 キー設定の場合は短絡キー
16514 \family sans
16515 C-o
16516 \family default
16517 を押します。警告を読み、それが誤りを示していれば修正します。警告が何を意味しているか理解しにくい場合には、無視しても問題はありません。画面上の文書と、
16518 \family sans
16519 ChkTeX
16520 \family default
16521 を起動する際に行なわれる実際の技術的な操作のあいだには、隠された層があり、この隔たりのせいで、一部の警告が不可解なものになったり、明らかに馬鹿げたものになる場合
16522 があるのです。
16523 \end_layout
16524
16525 \begin_layout Standard
16526 本文書自体、この機能を確認する良い材料になりますので、実行してみてください。すると、かなりの量の警告が出るはずです。これはコンピュータが敏感すぎるせいですので、
16527 警告のほとんどは実際には警告に値しません。
16528 \end_layout
16529
16530 \begin_layout Subsection
16531 微調整のしかた
16532 \end_layout
16533
16534 \begin_layout Standard
16535 場合によっては、
16536 \family sans
16537 ChkTeX
16538 \family default
16539 は、あなたが望むよりも煩すぎると思うかもしれません。そのような場合には、必要と思うまで
16540 \family sans
16541 ChkTeX
16542 \family default
16543 を無効にするか、あなたにもう少し合うように
16544 \family sans
16545 ChkTeX
16546 \family default
16547 を調整することができます。
16548 \end_layout
16549
16550 \begin_layout Standard
16551
16552 \family sans
16553 ChkTeX
16554 \family default
16555 は調整や拡張がひじょうに柔軟なのですが、LyXにおける
16556 \family sans
16557 ChkTeX
16558 \family default
16559 関連の問題が、それですべて解決すると思うべきではありません。LyXは、
16560 \family sans
16561 ChkTeX
16562 \family default
16563 出力
16564 \begin_inset Foot
16565 status collapsed
16566
16567 \begin_layout Plain Layout
16568
16569 \family sans
16570 chktex
16571 \family default
16572 の実際の出力は、
16573 \family sans
16574 chktex
16575 \family default
16576 を実行した直後に
16577 \family sans
16578 文書\SpecialChar \menuseparator
16579 LaTeXログ
16580 \family default
16581 を使えば見ることができます。
16582 \end_layout
16583
16584 \end_inset
16585
16586 から得た行番号と内部構造を一致させるため、やや特殊なLaTeXファイルを生成しなくてはならないので、警告の一部は正しく表示されていないように見えるでしょう。これ
16587 に対処するためには、以下の2つの方法があります。
16588 \end_layout
16589
16590 \begin_layout Itemize
16591
16592 \family sans
16593 設定
16594 \family default
16595
16596 \family sans
16597 出力
16598 \family default
16599
16600 \family sans
16601 LaTeX
16602 \family default
16603 タブ)中の
16604 \family sans
16605 ChkTeX
16606 \family default
16607 起動コマンドラインを調整するか、グローバルな
16608 \family sans
16609 ChkTeX
16610 \family default
16611 の設定ファイル(通常は
16612 \begin_inset Flex Code
16613 status collapsed
16614
16615 \begin_layout Plain Layout
16616 chktexrc
16617 \end_layout
16618
16619 \end_inset
16620
16621 ファイル)を調整します。コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください。
16622 \end_layout
16623
16624 \begin_layout Itemize
16625
16626 \family sans
16627 ファイル\SpecialChar \menuseparator
16628 書き出し\SpecialChar \menuseparator
16629 LaTeX
16630 \family default
16631 を使って文書をLaTeXファイルに変換し、そのファイルに対して
16632 \family typewriter
16633 chktex
16634 \family default
16635 を手動で実行します。このようにすると、LyX文書中の対応箇所を見つけるのがやや面倒ですが、少し我慢すれば見つけることができます。
16636 \end_layout
16637
16638 \begin_layout Standard
16639 以下は、
16640 \family sans
16641 設定
16642 \family default
16643 で有効化・無効化できる警告メッセージです。警告を無効にするには
16644 \family typewriter
16645 -n#
16646 \family default
16647 、有効にするには
16648 \family typewriter
16649 -w#
16650 \family default
16651 を用います。イタリック表示の項目は、既定で無効となっています。既定値は "
16652 \family typewriter
16653 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
16654 \family default
16655 "です。
16656 \end_layout
16657
16658 \begin_layout Standard
16659 LyXは、
16660 \family typewriter
16661 chktex
16662 \family default
16663 と通信するために、他のコマンドラインパラメータを特定の方法で使用しているため、メッセージを有効化・無効化する以外のオプションを使うべきではありません。
16664 \end_layout
16665
16666 \begin_layout Enumerate
16667
16668 \size small
16669 \emph on
16670 Command terminated with space.
16671 \end_layout
16672
16673 \begin_layout Enumerate
16674
16675 \size small
16676 Non-breaking space (
16677 \begin_inset Quotes eld
16678 \end_inset
16679
16680
16681 \family typewriter
16682 ~
16683 \family default
16684
16685 \begin_inset Quotes erd
16686 \end_inset
16687
16688 ) should have been used.
16689 \end_layout
16690
16691 \begin_layout Enumerate
16692
16693 \size small
16694 \emph on
16695 You should enclose the previous parenthesis with 
16696 \begin_inset Quotes eld
16697 \end_inset
16698
16699
16700 \family typewriter
16701 {}
16702 \family default
16703
16704 \begin_inset Quotes erd
16705 \end_inset
16706
16707 .
16708 \end_layout
16709
16710 \begin_layout Enumerate
16711
16712 \size small
16713 Italic correction (
16714 \begin_inset Quotes eld
16715 \end_inset
16716
16717
16718 \family typewriter
16719
16720 \backslash
16721 /
16722 \family default
16723
16724 \begin_inset Quotes erd
16725 \end_inset
16726
16727 ) found in non-italic buffer.
16728 \end_layout
16729
16730 \begin_layout Enumerate
16731
16732 \size small
16733 Italic correction (
16734 \begin_inset Quotes eld
16735 \end_inset
16736
16737
16738 \family typewriter
16739
16740 \backslash
16741 /
16742 \family default
16743
16744 \begin_inset Quotes erd
16745 \end_inset
16746
16747 ) found more than once.
16748 \end_layout
16749
16750 \begin_layout Enumerate
16751
16752 \size small
16753 \emph on
16754 No italic correction (
16755 \begin_inset Quotes eld
16756 \end_inset
16757
16758
16759 \family typewriter
16760
16761 \backslash
16762 /
16763 \family default
16764
16765 \begin_inset Quotes erd
16766 \end_inset
16767
16768 ) found.
16769 \end_layout
16770
16771 \begin_layout Enumerate
16772
16773 \size small
16774 Accent command 
16775 \begin_inset Quotes eld
16776 \end_inset
16777
16778
16779 \family typewriter
16780 cmd
16781 \family default
16782
16783 \begin_inset Quotes erd
16784 \end_inset
16785
16786  needs use of 
16787 \begin_inset Quotes eld
16788 \end_inset
16789
16790
16791 \family typewriter
16792 cmd
16793 \family default
16794
16795 \begin_inset Quotes erd
16796 \end_inset
16797
16798 .
16799 \end_layout
16800
16801 \begin_layout Enumerate
16802
16803 \size small
16804 Wrong length of dash may have been used.
16805 \end_layout
16806
16807 \begin_layout Enumerate
16808
16809 \size small
16810 \emph on
16811 \begin_inset Quotes eld
16812 \end_inset
16813
16814
16815 \family typewriter
16816 %s
16817 \family default
16818
16819 \begin_inset Quotes erd
16820 \end_inset
16821
16822  expected, found 
16823 \begin_inset Quotes eld
16824 \end_inset
16825
16826
16827 \family typewriter
16828 %s
16829 \family default
16830
16831 \begin_inset Quotes erd
16832 \end_inset
16833
16834 .
16835 \end_layout
16836
16837 \begin_layout Enumerate
16838
16839 \size small
16840 Solo 
16841 \begin_inset Quotes eld
16842 \end_inset
16843
16844
16845 \family typewriter
16846 %s
16847 \family default
16848
16849 \begin_inset Quotes erd
16850 \end_inset
16851
16852  found.
16853 \end_layout
16854
16855 \begin_layout Enumerate
16856
16857 \size small
16858 You should use 
16859 \begin_inset Quotes eld
16860 \end_inset
16861
16862
16863 \family typewriter
16864 %s
16865 \family default
16866
16867 \begin_inset Quotes erd
16868 \end_inset
16869
16870  to achieve an ellipsis.
16871 \end_layout
16872
16873 \begin_layout Enumerate
16874
16875 \size small
16876 Inter-word spacing (
16877 \begin_inset Quotes eld
16878 \end_inset
16879
16880
16881 \family typewriter
16882
16883 \backslash
16884
16885 \family default
16886  
16887 \begin_inset Quotes eld
16888 \end_inset
16889
16890 ) should perhaps be used.
16891 \end_layout
16892
16893 \begin_layout Enumerate
16894
16895 \size small
16896 Inter-sentence spacing (
16897 \begin_inset Quotes eld
16898 \end_inset
16899
16900
16901 \family typewriter
16902
16903 \backslash
16904 @
16905 \family default
16906
16907 \begin_inset Quotes erd
16908 \end_inset
16909
16910 ) should perhaps be used.
16911 \end_layout
16912
16913 \begin_layout Enumerate
16914
16915 \size small
16916 Could not find argument for command.
16917 \end_layout
16918
16919 \begin_layout Enumerate
16920
16921 \size small
16922 No match found for 
16923 \begin_inset Quotes eld
16924 \end_inset
16925
16926
16927 \family typewriter
16928 %s
16929 \family default
16930
16931 \begin_inset Quotes erd
16932 \end_inset
16933
16934 .
16935 \end_layout
16936
16937 \begin_layout Enumerate
16938
16939 \size small
16940 Math mode still on at end of LaTeX file.
16941 \end_layout
16942
16943 \begin_layout Enumerate
16944
16945 \size small
16946 Number of 
16947 \begin_inset Quotes eld
16948 \end_inset
16949
16950
16951 \family typewriter
16952 char
16953 \family default
16954
16955 \begin_inset Quotes erd
16956 \end_inset
16957
16958  doesn't match the number of 
16959 \begin_inset Quotes eld
16960 \end_inset
16961
16962
16963 \family typewriter
16964 char
16965 \family default
16966
16967 \begin_inset Quotes erd
16968 \end_inset
16969
16970 .
16971 \end_layout
16972
16973 \begin_layout Enumerate
16974
16975 \size small
16976 You should use either 
16977 \family typewriter
16978
16979 \begin_inset Quotes eld
16980 \end_inset
16981
16982
16983 \family default
16984  or 
16985 \family typewriter
16986
16987 \begin_inset Quotes erd
16988 \end_inset
16989
16990
16991 \family default
16992  as an alternative to 
16993 \begin_inset Quotes eld
16994 \end_inset
16995
16996
16997 \family typewriter
16998 "
16999 \family default
17000
17001 \begin_inset Quotes erd
17002 \end_inset
17003
17004 .
17005 \end_layout
17006
17007 \begin_layout Enumerate
17008
17009 \size small
17010 You should use "
17011 \family typewriter
17012 '
17013 \family default
17014 " (ASCII 39) instead of "" (ASCII 180).
17015 \end_layout
17016
17017 \begin_layout Enumerate
17018
17019 \size small
17020 User-specified pattern found.
17021 \end_layout
17022
17023 \begin_layout Enumerate
17024
17025 \size small
17026 This command might not be intended.
17027 \end_layout
17028
17029 \begin_layout Enumerate
17030
17031 \size small
17032 \emph on
17033 Comment displayed.
17034 \end_layout
17035
17036 \begin_layout Enumerate
17037
17038 \size small
17039 Either 
17040 \family typewriter
17041 ''
17042 \backslash
17043 ,'
17044 \family default
17045  or 
17046 \family typewriter
17047 '
17048 \backslash
17049 ,''
17050 \family default
17051  will look better.
17052 \end_layout
17053
17054 \begin_layout Enumerate
17055
17056 \size small
17057 Delete this space to maintain correct page references.
17058 \end_layout
17059
17060 \begin_layout Enumerate
17061
17062 \size small
17063 \emph on
17064 You might wish to put this between a pair of 
17065 \begin_inset Quotes eld
17066 \end_inset
17067
17068
17069 \family typewriter
17070 {}
17071 \family default
17072
17073 \begin_inset Quotes erd
17074 \end_inset
17075
17076 .
17077 \end_layout
17078
17079 \begin_layout Enumerate
17080
17081 \size small
17082 You ought to remove spaces in front of punctuation.
17083 \end_layout
17084
17085 \begin_layout Enumerate
17086
17087 \size small
17088 Could not execute LaTeX command.
17089 \end_layout
17090
17091 \begin_layout Enumerate
17092
17093 \size small
17094 Don't use 
17095 \family typewriter
17096
17097 \backslash
17098 /
17099 \family default
17100  in front of small punctuation.
17101 \end_layout
17102
17103 \begin_layout Enumerate
17104
17105 \family typewriter
17106 \size small
17107 $
17108 \backslash
17109 times$
17110 \family default
17111  may look prettier here.
17112 \end_layout
17113
17114 \begin_layout Enumerate
17115
17116 \size small
17117 \emph on
17118 Multiple spaces detected in output.
17119 \end_layout
17120
17121 \begin_layout Enumerate
17122
17123 \size small
17124 This text may be ignored.
17125 \end_layout
17126
17127 \begin_layout Enumerate
17128
17129 \size small
17130 Use 
17131 \family typewriter
17132
17133 \begin_inset Quotes eld
17134 \end_inset
17135
17136
17137 \family default
17138  to begin quotation, not 
17139 \family typewriter
17140 '
17141 \family default
17142 .
17143 \end_layout
17144
17145 \begin_layout Enumerate
17146
17147 \size small
17148 Use 
17149 \family typewriter
17150 '
17151 \family default
17152  to end quotation, not 
17153 \family typewriter
17154
17155 \begin_inset Quotes eld
17156 \end_inset
17157
17158
17159 \family default
17160 .
17161 \end_layout
17162
17163 \begin_layout Enumerate
17164
17165 \size small
17166 Don't mix quotes.
17167 \end_layout
17168
17169 \begin_layout Enumerate
17170
17171 \size small
17172 You should perhaps use 
17173 \begin_inset Quotes eld
17174 \end_inset
17175
17176
17177 \family typewriter
17178 cmd
17179 \family default
17180
17181 \begin_inset Quotes erd
17182 \end_inset
17183
17184  instead.
17185 \end_layout
17186
17187 \begin_layout Enumerate
17188
17189 \size small
17190 You should put a space in front of/after parenthesis.
17191 \end_layout
17192
17193 \begin_layout Enumerate
17194
17195 \size small
17196 You should avoid spaces in front of/after parenthesis.
17197 \end_layout
17198
17199 \begin_layout Enumerate
17200
17201 \size small
17202 \emph on
17203 You should not use punctuation in front of/after quotes.
17204 \end_layout
17205
17206 \begin_layout Enumerate
17207
17208 \size small
17209 Double space found.
17210 \end_layout
17211
17212 \begin_layout Enumerate
17213
17214 \size small
17215 You should put punctuation outside inner/inside display math mode.
17216 \end_layout
17217
17218 \begin_layout Enumerate
17219
17220 \size small
17221 You ought to not use primitive TeX in LaTeX code.
17222 \end_layout
17223
17224 \begin_layout Enumerate
17225
17226 \size small
17227 You should remove spaces in front of 
17228 \begin_inset Quotes eld
17229 \end_inset
17230
17231
17232 \family typewriter
17233 %s
17234 \family default
17235
17236 \begin_inset Quotes erd
17237 \end_inset
17238
17239
17240 \end_layout
17241
17242 \begin_layout Enumerate
17243
17244 \size small
17245 \begin_inset Quotes eld
17246 \end_inset
17247
17248
17249 \family typewriter
17250 %s
17251 \family default
17252
17253 \begin_inset Quotes erd
17254 \end_inset
17255
17256  is normally not followed by 
17257 \begin_inset Quotes eld
17258 \end_inset
17259
17260
17261 \family typewriter
17262 %c
17263 \family default
17264
17265 \begin_inset Quotes erd
17266 \end_inset
17267
17268 .
17269 \end_layout
17270
17271 \begin_layout Standard
17272 LyXの将来の版では、このツール(およびその縮小版
17273 \family typewriter
17274 lacheck
17275 \family default
17276 )の力を最大限引き出すように、より完備したインターフェイスを提供できればと考えています。しかし、現状でも十分に役立つものとなっています。ある程度長さがある既存文
17277 書に使用してみていただければ、きっと驚かれることでしょう。
17278 \end_layout
17279
17280 \begin_layout Section
17281 LyXでのバージョン管理
17282 \end_layout
17283
17284 \begin_layout Standard
17285
17286 \noun on
17287 Lars Bullik Bjønnes
17288 \noun default
17289 および
17290 \noun on
17291 Pavel Sanda
17292 \noun default
17293
17294 \end_layout
17295
17296 \begin_layout Subsection
17297 はじめに
17298 \end_layout
17299
17300 \begin_layout Standard
17301 かつて私の友人が、LyXをグループプロジェクトに使おうとしましたが、当時のLyXには、バージョン管理機能やファイルロック機構が備わっていなかったために、採用を見
17302 合わせました。この事実は少々私をいらだたせ、(将来的にCVSやSCCSのサポートできる拡張性を含め)少なくともRCSのサポートをするべきだと考えたのです。いまや
17303 これは実現しました。LyXは、今ではもっとも基本的なRCS/CVS/SVNコマンドをサポートしています。もしもっと洗練されたことを行いたい場合には、ターミナル上
17304 から手動で行う必要があります。
17305 \end_layout
17306
17307 \begin_layout Standard
17308 LyXで実際にバージョン管理機能を使い始める前に、RCS/CVS/SVNの使用法に習熟しておかなくてはなりません。また、CVSのサポートは、subversion
17309 のサポートほど良くないので、CVSよりもSVNを使うことをお勧めします。Subversionを学び始めるには、SVN Book
17310 \begin_inset Foot
17311 status collapsed
17312
17313 \begin_layout Plain Layout
17314 \begin_inset CommandInset href
17315 LatexCommand href
17316 target "http://svnbook.red-bean.com/"
17317
17318 \end_inset
17319
17320
17321 \end_layout
17322
17323 \end_inset
17324
17325 が良いでしょう。RCSの場合は、「rsintro」をお読みください(これはmanファイルです。
17326 \family typewriter
17327 man rcsintro
17328 \family default
17329 で読めます)。このファイルは、RCSの基本機能のすべてを説明しています。特に、RCSディレクトリに関するコメントと、マスターRCSファイル(
17330 \family typewriter
17331 ,v
17332 \family default
17333 で終わるファイルです)の概念に注意を払ってください。
17334 \end_layout
17335
17336 \begin_layout Standard
17337 LyXへの実装においては、GNU RCSまたはCVS/SVNパッケージの最新版を仮定しています。旧版への保証はありません。ログメッセージのほとんどは、現在のとこ
17338 ろ操作後には表示されません。確認したい場合には、メッセージペインで確かめてください。
17339 \end_layout
17340
17341 \begin_layout Standard
17342 自製の外部コマンドを導入したい場合には、LyX関数説明書のvcコマンドを確認してください。
17343 \end_layout
17344
17345 \begin_layout Subsection
17346 LyXにおけるRCSコマンド
17347 \end_layout
17348
17349 \begin_layout Standard
17350 以下の節ではLyXでサポートされているRCSコマンドを説明します。それらのコマンドは
17351 \family sans
17352 ファイル\SpecialChar \menuseparator
17353 バージョン管理
17354 \family default
17355 のサブメニューにあります。LyXは、RCS 5.7に対して試験されています。
17356 \end_layout
17357
17358 \begin_layout Subsubsection
17359
17360 \family sans
17361 登録
17362 \end_layout
17363
17364 \begin_layout Standard
17365 文書がバージョン管理の下にない場合には、これがメニューにあらわれる唯一の項目です。文書がバージョン管理下にあれば、項目
17366 \family sans
17367 登録
17368 \family default
17369 は不可視になります。
17370 \end_layout
17371
17372 \begin_layout Standard
17373 このコマンドは、文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合)。すると対話的に、文書の最初の説明を入力するように尋ねられます。すると文
17374 書は読み込み専用モードになるので、変更を加えるためには
17375 \family sans
17376 チェックアウトして編集
17377 \family default
17378 を実行する必要があります。バージョン管理下にある文書は、ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます。
17379 \end_layout
17380
17381 \begin_layout Standard
17382 実行されるRCSコマンドは:
17383 \family typewriter
17384 ci -q -u -i -t-"<初期説明文>" <ファイル名>
17385 \end_layout
17386
17387 \begin_layout Standard
17388 スイッチについて知りたい場合は、
17389 \family typewriter
17390 man ci
17391 \family default
17392 を読んでください。
17393 \end_layout
17394
17395 \begin_layout Subsubsection
17396
17397 \family sans
17398 変更をチェックインする
17399 \end_layout
17400
17401 \begin_layout Standard
17402 ファイルの編集が終わると、その変更をチェックインします。このとき、変更についての説明文を求められます。これは履歴ログに記録されます。バージョン番号は繰り上がり、
17403 変更がマスターRCSファイルに適用され、文書がアンロックされて読み込み専用モードになります。
17404 \end_layout
17405
17406 \begin_layout Standard
17407 RCSコマンド:
17408 \family typewriter
17409 ci -q -u -m"<説明文>" <ファイル名>
17410 \end_layout
17411
17412 \begin_layout Subsubsection
17413
17414 \family sans
17415 チェックアウトして編集
17416 \end_layout
17417
17418 \begin_layout Standard
17419 これは、文書をロックして編集できるようにします。そしてあなただけが文書を読み書きできるようにします。通常は、しばらくの間、文書を編集し、それが終わると変更をチェ
17420 ックインします。あなたがファイルをロックしたことを反映して、ステータスラインが変わります。
17421 \end_layout
17422
17423 \begin_layout Standard
17424 RCSコマンド:
17425 \family typewriter
17426 co -q -l <ファイル名>
17427 \end_layout
17428
17429 \begin_layout Subsubsection
17430
17431 \family sans
17432 リポジトリのバージョンに戻す
17433 \end_layout
17434
17435 \begin_layout Standard
17436 これは、最終チェックイン以降、文書に加えられた変更をすべて破棄します。変更が破棄される前に、警告が発せられます。
17437 \end_layout
17438
17439 \begin_layout Standard
17440 RCSコマンド:
17441 \family typewriter
17442 co -f -u<バージョン> <ファイル名>
17443 \end_layout
17444
17445 \begin_layout Subsubsection
17446
17447 \family sans
17448 最後のチェックインを取り消す
17449 \end_layout
17450
17451 \begin_layout Standard
17452 これは、最後のチェックインがあたかも為されなかったかのようにします。LyXに読み込まれた文書に変更は加えられませんが、マスターRCSファイルから最後のバージョン
17453 が削除されます。
17454 \end_layout
17455
17456 \begin_layout Standard
17457 RCSコマンド:
17458 \family typewriter
17459 rcs -o<バージョン> <ファイル名>
17460 \end_layout
17461
17462 \begin_layout Subsubsection
17463
17464 \family sans
17465 履歴を表示
17466 \end_layout
17467
17468 \begin_layout Standard
17469 RCS文書の完全な履歴を表示します。ブラウザ中に、
17470 \family typewriter
17471 rlog <ファイル名>
17472 \family default
17473 の出力が表示されます。詳細は
17474 \family typewriter
17475 man rlog
17476 \family default
17477 をご覧ください。
17478 \end_layout
17479
17480 \begin_layout Subsubsection
17481 改訂情報
17482 \end_layout
17483
17484 \begin_layout Standard
17485 LyXは、RCSバージョン番号情報(のみ)をサポートしています。詳細については、
17486 \begin_inset CommandInset ref
17487 LatexCommand ref
17488 reference "sub:VCS改訂情報"
17489
17490 \end_inset
17491
17492 を参照。
17493 \end_layout
17494
17495 \begin_layout Subsection
17496 LyXにおけるCVSコマンド
17497 \end_layout
17498
17499 \begin_layout Standard
17500 LyXは、現在CVSを一部サポートしています。そのコマンドは、
17501 \family sans
17502 ファイル\SpecialChar \menuseparator
17503 バージョン管理
17504 \family default
17505 サブメニューにあります。バージョン管理システムSVNの方が強力なので、可能ならばCVSではなく、SVNを使用してください。
17506 \end_layout
17507
17508 \begin_layout Subsubsection
17509 CVSの一般的な利用法
17510 \end_layout
17511
17512 \begin_layout Standard
17513 CVSを初めて使いたい場合には、外部ツールを使用して自分のレポジトリを作成し、作業コピーをチェックアウトする必要があります。クライアント=サーバーモデルを使用し
17514 ている場合には、最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません。
17515 \end_layout
17516
17517 \begin_layout Standard
17518 改訂管理下にある文書のレポジトリを他人も利用している場合に、同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します。標準的なCVSレポジトリは、ファイル
17519 ロッキング機構を有しません。これは驚くべきことかもしれませんが、コンフリクトは、文書の同じ箇所の特定の内容について、人々が意見を異にしている場合にのみ発生します
17520 。したがって、共著者同士がコンスタントにコミュニケーションを交わしていれば、このようなコンフリクトは滅多に発生しません。もしコミュニケーションがなければ、いずれ
17521 にしても根本的な問題があるわけです。それにもかかわらず、いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます。この場合、最初にチェックアウトした際に
17522 、全ファイルの作業コピーは読み込み専用にされ、ユーザーは、作業コピーを書き込み可能にする特別なコマンドを使用した後、編集を開始することになります。変更をチェック
17523 インすると、作業コピーは読み込み専用状態に戻ります。LyXで予備付きチェックアウトを利用したい場合には、
17524 \begin_inset Flex Code
17525 status collapsed
17526
17527 \begin_layout Plain Layout
17528 .cvsrc
17529 \end_layout
17530
17531 \end_inset
17532
17533 ファイルを編集して、
17534 \begin_inset Flex Code
17535 status collapsed
17536
17537 \begin_layout Plain Layout
17538 cvs -r
17539 \end_layout
17540
17541 \end_inset
17542
17543 という行を書き加える必要があります。この方法の利点は、文書のうち、書き込み可能コピーを誰が使用しているかを見ることができることです。ただし、一人のユーザーだけが
17544 コピーを書き込み可能にしているとは限りません。
17545 \end_layout
17546
17547 \begin_layout Standard
17548 LyXは、あなたが予備付きチェックアウトを使用しているか、予備なしチェックアウトを利用しているか、推測しようと試みます。使用中の作業コピーが読み込み専用になって
17549 いるか、あるいはそれが書き込み可能であって、CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には、予備付きチェックアウトを使用しているもの
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 \begin_inset Flex MenuItem
17563 status collapsed
17564
17565 \begin_layout Plain Layout
17566 チェックイン
17567 \end_layout
17568
17569 \end_inset
17570
17571 メニューが利用可能になるので、自分が加えた変更をリポジトリに移した後、作業コピーを再び読み込み専用にする際には、これを使用します。
17572 \end_layout
17573
17574 \begin_layout Standard
17575 CVSの詳細な情報は、
17576 \begin_inset Flex URL
17577 status collapsed
17578
17579 \begin_layout Plain Layout
17580
17581 http://www.nongnu.org/cvs
17582 \end_layout
17583
17584 \end_inset
17585
17586
17587 \begin_inset Flex URL
17588 status collapsed
17589
17590 \begin_layout Plain Layout
17591
17592 http://ximbiot.com/cvs
17593 \end_layout
17594
17595 \end_inset
17596
17597 にあります。
17598 \end_layout
17599
17600 \begin_layout Standard
17601 以下に言及するサブコマンドとスイッチを理解するには、
17602 \family typewriter
17603 man cvs
17604 \family default
17605 をお読みください。
17606 \end_layout
17607
17608 \begin_layout Subsubsection
17609 登録
17610 \end_layout
17611
17612 \begin_layout Standard
17613 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
17614 \family sans
17615 登録
17616 \family default
17617 項目は表示されません。
17618 \end_layout
17619
17620 \begin_layout Standard
17621 本コマンドは、既に文書ディレクトリをCVS管理下に置いている場合に
17622 \series bold
17623 \emph on
17624 のみ
17625 \series default
17626 \emph default
17627 (すなわち
17628 \begin_inset Flex Code
17629 status collapsed
17630
17631 \begin_layout Plain Layout
17632 CVS/Entries
17633 \end_layout
17634
17635 \end_inset
17636
17637 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、外部ツールを使用して、アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
17638 を意味します(このステップを忘れてしまうと、LyXは文書をRCSに登録します)。
17639 \end_layout
17640
17641 \begin_layout Standard
17642 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだチェックインされたわけではないことに注意してください。
17643 \end_layout
17644
17645 \begin_layout Standard
17646 実行されるCVSコマンドは、
17647 \family typewriter
17648 cvs -q add -m"<入力した説明文>" "<ファイル名>"
17649 \family default
17650  です。
17651 \end_layout
17652
17653 \begin_layout Standard
17654 上記および他のすべてのCVSコマンドにおける
17655 \family typewriter
17656 "<ファイル名>"
17657 \family default
17658 は、「カレント作業ディレクトリをファイルの場所に移動し、パスコンポーネントを除いたファイル名を引数として使用する」という意味になります。
17659 \end_layout
17660
17661 \begin_layout Subsubsection
17662 変更のチェックイン
17663 \end_layout
17664
17665 \begin_layout Standard
17666 ファイルの編集を終えたら、変更をコミットします。このとき、文書に変更が加えられていれば、変更の説明文を入れるよう促されます。その後、変更がレポジトリに書き込まれ
17667 ます。文書を変更せず、予備付きチェックアウトが検出された場合、
17668 \begin_inset Flex MenuItem
17669 status collapsed
17670
17671 \begin_layout Plain Layout
17672 チェックアウト
17673 \end_layout
17674
17675 \end_inset
17676
17677 で作られた予備は取り消されます。
17678 \end_layout
17679
17680 \begin_layout Labeling
17681 \labelwidthstring 00.00.0000
17682 CVSコマンド: 
17683 \begin_inset space ~
17684 \end_inset
17685
17686
17687 \begin_inset Newline newline
17688 \end_inset
17689
17690
17691 \begin_inset Flex Code
17692 status collapsed
17693
17694 \begin_layout Plain Layout
17695 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
17696 \end_layout
17697
17698 \end_inset
17699
17700 あるいは
17701 \begin_inset Newline newline
17702 \end_inset
17703
17704
17705 \begin_inset Flex Code
17706 status collapsed
17707
17708 \begin_layout Plain Layout
17709 cvs -q unedit "<ファイル名>"
17710 \end_layout
17711
17712 \end_inset
17713
17714
17715 \end_layout
17716
17717 \begin_layout Subsubsection
17718 変更のチェックアウト
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 update "<ファイル名>"
17729 \end_layout
17730
17731 \begin_layout Standard
17732 読み込み専用チェックアウトが検出された場合、作業コピーを書き込み可能にし予備を作成します。
17733 \end_layout
17734
17735 \begin_layout Standard
17736 CVSコマンド:
17737 \family typewriter
17738 cvs -q edit "<ファイル名>"
17739 \end_layout
17740
17741 \begin_layout Subsubsection
17742 レポジトリのバージョンに戻す
17743 \end_layout
17744
17745 \begin_layout Standard
17746 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVS更新コマンド
17747 が実行されます。
17748 \end_layout
17749
17750 \begin_layout Standard
17751 CVSコマンド:
17752 \family typewriter
17753 cvs -q update "<ファイル名>"
17754 \end_layout
17755
17756 \begin_layout Standard
17757 予備付きチェックアウトが検出され、作業コピーに変更がない場合、予備のみが取り消されます。
17758 \end_layout
17759
17760 \begin_layout Standard
17761 CVSコマンド:
17762 \family typewriter
17763 cvs -q unedit "<ファイル名>"
17764 \end_layout
17765
17766 \begin_layout Subsubsection
17767 ローカルディレクトリチェックアウトのレポジトリからの更新
17768 \end_layout
17769
17770 \begin_layout Standard
17771 子文書や図を含んだり、外部
17772 \begin_inset Flex Code
17773 status collapsed
17774
17775 \begin_layout Plain Layout
17776 .tex
17777 \end_layout
17778
17779 \end_inset
17780
17781 ファイルを取り込むなど、文書が複雑になるにつれ、バージョン管理の利用は複雑になります。LyXは、文書が存在するツリー全体の更新をサポートします。これは、CVSの
17782 使用法について詳しい知識のない人々や、レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に、特に便利です。ファイル構造は、すべての外部フ
17783 ァイルが、文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります。いずれにしても、複合文書を新しいディレクトリを建てて収容するのは、望ま
17784 しい習慣です。
17785 \end_layout
17786
17787 \begin_layout Standard
17788 コマンド
17789 \begin_inset Flex Code
17790 status collapsed
17791
17792 \begin_layout Plain Layout
17793 レポジトリを使ってローカル辞書を更新
17794 \end_layout
17795
17796 \end_inset
17797
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 の対に囲まれ、
17820 \begin_inset Flex Code
17821 status collapsed
17822
17823 \begin_layout Plain Layout
17824 =======
17825 \end_layout
17826
17827 \end_inset
17828
17829 で区切られて表示されます。最初の部分は、文書名に続いて、更新操作前のバージョンが置かれています。第2の部分は、
17830 \begin_inset Flex Code
17831 status collapsed
17832
17833 \begin_layout Plain Layout
17834 >
17835 \end_layout
17836
17837 \end_inset
17838
17839 記号列の後にバージョン番号に続いて、レポジトリ版が置かれます。
17840 \end_layout
17841
17842 \begin_layout Labeling
17843 \labelwidthstring 00.00.0000
17844 CVSコマンド: 
17845 \begin_inset space ~
17846 \end_inset
17847
17848
17849 \begin_inset Newline newline
17850 \end_inset
17851
17852
17853 \begin_inset Flex Code
17854 status collapsed
17855
17856 \begin_layout Plain Layout
17857 cd $path; cvs diff "."
17858 \end_layout
17859
17860 \end_inset
17861
17862 (変更が検出された場合には知らせる)
17863 \begin_inset Newline newline
17864 \end_inset
17865
17866
17867 \begin_inset Flex Code
17868 status collapsed
17869
17870 \begin_layout Plain Layout
17871 cd $path; cvs -q update "."
17872 \end_layout
17873
17874 \end_inset
17875
17876
17877 \end_layout
17878
17879 \begin_layout Standard
17880 ここで
17881 \begin_inset Flex Code
17882 status collapsed
17883
17884 \begin_layout Plain Layout
17885 $path
17886 \end_layout
17887
17888 \end_inset
17889
17890 は文書パスを表します。
17891 \end_layout
17892
17893 \begin_layout Subsubsection
17894 履歴を表示
17895 \end_layout
17896
17897 \begin_layout Standard
17898 これは、CVS文書の全履歴を表示します。
17899 \begin_inset Flex Code
17900 status collapsed
17901
17902 \begin_layout Plain Layout
17903 cvs log 
17904 \begin_inset Quotes eld
17905 \end_inset
17906
17907 <ファイル名>
17908 \begin_inset Quotes erd
17909 \end_inset
17910
17911
17912 \end_layout
17913
17914 \end_inset
17915
17916 の出力がブラウザに表示されます。
17917 \end_layout
17918
17919 \begin_layout Subsection
17920 LyXにおけるSVNコマンド
17921 \end_layout
17922
17923 \begin_layout Standard
17924 LyXは、現在SVNを一部サポートしています。そのコマンドは、
17925 \begin_inset Flex MenuItem
17926 status collapsed
17927
17928 \begin_layout Plain Layout
17929 ファイル\SpecialChar \menuseparator
17930 バージョン管理
17931 \end_layout
17932
17933 \end_inset
17934
17935 メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。LyXは、SVN
17936  1.5および1.6に対して試験されています
17937 \begin_inset Foot
17938 status collapsed
17939
17940 \begin_layout Plain Layout
17941 ほとんどのコマンドは、1.4でも動作します。第
17942 \begin_inset CommandInset ref
17943 LatexCommand ref
17944 reference "sub:レポジトリからSVN同期"
17945
17946 \end_inset
17947
17948 節をご覧ください。
17949 \end_layout
17950
17951 \end_inset
17952
17953
17954 \end_layout
17955
17956 \begin_layout Subsubsection
17957 登録
17958 \end_layout
17959
17960 \begin_layout Standard
17961 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
17962 \family sans
17963 登録
17964 \family default
17965 項目は表示されません。
17966 \end_layout
17967
17968 \begin_layout Standard
17969 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
17970 \emph on
17971 のみ
17972 \emph default
17973 (すなわち
17974 \begin_inset Flex Code
17975 status collapsed
17976
17977 \begin_layout Plain Layout
17978 .svn/entries
17979 \end_layout
17980
17981 \end_inset
17982
17983 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
17984 \end_layout
17985
17986 \begin_layout Standard
17987 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
17988 \end_layout
17989
17990 \begin_layout Standard
17991 実行されるSVNコマンドは、
17992 \begin_inset Flex Code
17993 status collapsed
17994
17995 \begin_layout Plain Layout
17996 svn add -q 
17997 \begin_inset Quotes eld
17998 \end_inset
17999
18000 <ファイル名>
18001 \begin_inset Quotes erd
18002 \end_inset
18003
18004
18005 \end_layout
18006
18007 \end_inset
18008
18009 です。
18010 \end_layout
18011
18012 \begin_layout Standard
18013 スイッチの説明は
18014 \begin_inset Flex Code
18015 status collapsed
18016
18017 \begin_layout Plain Layout
18018 man svn
18019 \end_layout
18020
18021 \end_inset
18022
18023 をお読みください。
18024 \end_layout
18025
18026 \begin_layout Subsubsection
18027 変更をチェックイン
18028 \end_layout
18029
18030 \begin_layout Standard
18031 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
18032 \end_layout
18033
18034 \begin_layout Standard
18035 SVNコマンド
18036 \begin_inset Foot
18037 status collapsed
18038
18039 \begin_layout Plain Layout
18040 ロックが有効になっていない場合です。第
18041 \begin_inset CommandInset ref
18042 LatexCommand ref
18043 reference "sub:SVNファイルロック"
18044
18045 \end_inset
18046
18047 節をご覧ください。
18048 \end_layout
18049
18050 \end_inset
18051
18052
18053 \begin_inset Flex Code
18054 status collapsed
18055
18056 \begin_layout Plain Layout
18057 svn commit -q -m
18058 \begin_inset Quotes erd
18059 \end_inset
18060
18061 <入力した説明文>
18062 \begin_inset Quotes erd
18063 \end_inset
18064
18065  
18066 \begin_inset Quotes eld
18067 \end_inset
18068
18069 <ファイル名>
18070 \begin_inset Quotes erd
18071 \end_inset
18072
18073
18074 \end_layout
18075
18076 \end_inset
18077
18078
18079 \end_layout
18080
18081 \begin_layout Subsubsection
18082 チェックアウトして編集
18083 \end_layout
18084
18085 \begin_layout Standard
18086 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
18087 しておくようにしてください。
18088 \end_layout
18089
18090 \begin_layout Standard
18091 SVNコマンド
18092 \begin_inset Foot
18093 status collapsed
18094
18095 \begin_layout Plain Layout
18096 同上。
18097 \end_layout
18098
18099 \end_inset
18100
18101
18102 \begin_inset Flex Code
18103 status collapsed
18104
18105 \begin_layout Plain Layout
18106 svn update --non-interactive 
18107 \begin_inset Quotes eld
18108 \end_inset
18109
18110 <ファイル名>
18111 \begin_inset Quotes erd
18112 \end_inset
18113
18114
18115 \end_layout
18116
18117 \end_inset
18118
18119
18120 \end_layout
18121
18122 \begin_layout Subsubsection
18123 保存されたバージョンに戻す
18124 \end_layout
18125
18126 \begin_layout Standard
18127 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
18128 \end_layout
18129
18130 \begin_layout Standard
18131 SVNコマンド:
18132 \begin_inset Flex Code
18133 status collapsed
18134
18135 \begin_layout Plain Layout
18136 svn revert -q 
18137 \begin_inset Quotes eld
18138 \end_inset
18139
18140 <ファイル名>
18141 \begin_inset Quotes erd
18142 \end_inset
18143
18144
18145 \end_layout
18146
18147 \end_inset
18148
18149
18150 \end_layout
18151
18152 \begin_layout Subsubsection
18153 \begin_inset CommandInset label
18154 LatexCommand label
18155 name "sub:レポジトリからSVN同期"
18156
18157 \end_inset
18158
18159 レポジトリを使ったローカルディレクトリの同期
18160 \begin_inset Foot
18161 status collapsed
18162
18163 \begin_layout Plain Layout
18164 このコマンドは、subversion 
18165 \begin_inset Formula $\geqq1.5$
18166 \end_inset
18167
18168 でのみ動作することに注意してください。
18169 \end_layout
18170
18171 \end_inset
18172
18173
18174 \end_layout
18175
18176 \begin_layout Standard
18177 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
18178 \begin_inset Flex Code
18179 status collapsed
18180
18181 \begin_layout Plain Layout
18182 .tex
18183 \end_layout
18184
18185 \end_inset
18186
18187 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこでLyXは、文書のおいてあるツリー全体の更新をサポートします
18188 \begin_inset Foot
18189 status collapsed
18190
18191 \begin_layout Plain Layout
18192 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
18193 \end_layout
18194
18195 \end_inset
18196
18197 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
18198
18199 \end_layout
18200
18201 \begin_layout Standard
18202 \begin_inset Flex Code
18203 status collapsed
18204
18205 \begin_layout Plain Layout
18206 ローカル辞書をレポジトリを使って更新
18207 \end_layout
18208
18209 \end_inset
18210
18211 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
18212 場合には、更新が開始される前にユーザに警告が与えられます。
18213 \end_layout
18214
18215 \begin_layout Labeling
18216 \labelwidthstring 00.00.0000
18217 SVNコマンド: 
18218 \begin_inset space ~
18219 \end_inset
18220
18221
18222 \begin_inset Newline newline
18223 \end_inset
18224
18225
18226 \begin_inset Flex Code
18227 status collapsed
18228
18229 \begin_layout Plain Layout
18230 svn diff $path(変更が発見された場合には通知します)
18231 \begin_inset Newline newline
18232 \end_inset
18233
18234 svn update --accept mine-full $path
18235 \end_layout
18236
18237 \end_inset
18238
18239
18240 \end_layout
18241
18242 \begin_layout Standard
18243 ここで
18244 \begin_inset Flex Code
18245 status collapsed
18246
18247 \begin_layout Plain Layout
18248 $path
18249 \end_layout
18250
18251 \end_inset
18252
18253 は文書のパスを示します。
18254 \end_layout
18255
18256 \begin_layout Subsubsection
18257 履歴を表示
18258 \end_layout
18259
18260 \begin_layout Standard
18261 これは、SVN文書の全履歴を表示します。
18262 \begin_inset Flex Code
18263 status collapsed
18264
18265 \begin_layout Plain Layout
18266 svn log 
18267 \begin_inset Quotes eld
18268 \end_inset
18269
18270 <ファイル名>
18271 \begin_inset Quotes erd
18272 \end_inset
18273
18274
18275 \end_layout
18276
18277 \end_inset
18278
18279 の出力がブラウザに表示されます。
18280 \end_layout
18281
18282 \begin_layout Subsubsection
18283 ファイルロック
18284 \begin_inset CommandInset label
18285 LatexCommand label
18286 name "sub:SVNファイルロック"
18287
18288 \end_inset
18289
18290
18291 \end_layout
18292
18293 \begin_layout Standard
18294 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
18295 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
18296 するための、何らかのロック機構を導入することが考えられます。
18297 \end_layout
18298
18299 \begin_layout Standard
18300 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
18301 \begin_inset Flex Code
18302 status collapsed
18303
18304 \begin_layout Plain Layout
18305 svn:needs-lock
18306 \end_layout
18307
18308 \end_inset
18309
18310 svnファイル特性に依拠した書き込み権限の自動設定(第
18311 \begin_inset CommandInset ref
18312 LatexCommand ref
18313 reference "sub:自動ロック特性"
18314
18315 \end_inset
18316
18317 節を参照)です
18318 \begin_inset Foot
18319 status open
18320
18321 \begin_layout Plain Layout
18322 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
18323 \end_layout
18324
18325 \end_inset
18326
18327 。ある文書について、この特性が検出されたときには、LyXは自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組
18328 みに切り替わります。これは特に、LyXでのファイルの使われ方に以下の二つのモードがあることを意味します。
18329 \end_layout
18330
18331 \begin_layout Itemize
18332 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
18333 \emph on
18334 チェックアウト
18335 \emph default
18336 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
18337 \end_layout
18338
18339 \begin_layout Itemize
18340 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
18341 \emph on
18342 チェックイン
18343 \emph default
18344 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
18345 \begin_inset Foot
18346 status collapsed
18347
18348 \begin_layout Plain Layout
18349 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
18350 \end_layout
18351
18352 \end_inset
18353
18354 、書き込みロックの解放のみが行われます。
18355 \end_layout
18356
18357 \begin_layout Standard
18358 SVNコマンド:
18359 \end_layout
18360
18361 \begin_layout Labeling
18362 \labelwidthstring 00.00.0000
18363 チェックイン: 
18364 \begin_inset Flex Code
18365 status collapsed
18366
18367 \begin_layout Plain Layout
18368 svn commit -q -m
18369 \begin_inset Quotes erd
18370 \end_inset
18371
18372 <説明>
18373 \begin_inset Quotes erd
18374 \end_inset
18375
18376  
18377 \begin_inset Quotes eld
18378 \end_inset
18379
18380 <ファイル名>
18381 \begin_inset Quotes erd
18382 \end_inset
18383
18384
18385 \end_layout
18386
18387 \end_inset
18388
18389
18390 \begin_inset Newline newline
18391 \end_inset
18392
18393
18394 \begin_inset Flex Code
18395 status collapsed
18396
18397 \begin_layout Plain Layout
18398 svn unlock 
18399 \begin_inset Quotes eld
18400 \end_inset
18401
18402 <ファイル名>
18403 \begin_inset Quotes erd
18404 \end_inset
18405
18406
18407 \end_layout
18408
18409 \end_inset
18410
18411
18412 \end_layout
18413
18414 \begin_layout Labeling
18415 \labelwidthstring 00.00.0000
18416 チェックアウト: 
18417 \begin_inset Flex Code
18418 status collapsed
18419
18420 \begin_layout Plain Layout
18421 svn update 
18422 \begin_inset Quotes eld
18423 \end_inset
18424
18425 <ファイル名>
18426 \begin_inset Quotes erd
18427 \end_inset
18428
18429
18430 \end_layout
18431
18432 \end_inset
18433
18434
18435 \begin_inset Newline newline
18436 \end_inset
18437
18438
18439 \begin_inset Flex Code
18440 status collapsed
18441
18442 \begin_layout Plain Layout
18443 svn unlock 
18444 \begin_inset Quotes eld
18445 \end_inset
18446
18447 <ファイル名>
18448 \begin_inset Quotes erd
18449 \end_inset
18450
18451
18452 \end_layout
18453
18454 \end_inset
18455
18456
18457 \end_layout
18458
18459 \begin_layout Subsubsection
18460 自動ロック特性
18461 \begin_inset CommandInset label
18462 LatexCommand label
18463 name "sub:自動ロック特性"
18464
18465 \end_inset
18466
18467
18468 \end_layout
18469
18470 \begin_layout Standard
18471 上述したような
18472 \begin_inset Flex Code
18473 status collapsed
18474
18475 \begin_layout Plain Layout
18476 .lyx
18477 \end_layout
18478
18479 \end_inset
18480
18481 ファイルに対する書き込み権限の自動設定は、
18482 \begin_inset Flex MenuItem
18483 status collapsed
18484
18485 \begin_layout Plain Layout
18486 ファイル\SpecialChar \menuseparator
18487 バージョン管理\SpecialChar \menuseparator
18488 ロック特性を使用
18489 \end_layout
18490
18491 \end_inset
18492
18493 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
18494 \end_layout
18495
18496 \begin_layout Standard
18497 SVNコマンド:
18498 \end_layout
18499
18500 \begin_layout Labeling
18501 \labelwidthstring 00.00.0000
18502 チェックイン: 
18503 \begin_inset Flex Code
18504 status collapsed
18505
18506 \begin_layout Plain Layout
18507 svn propset svn:needs-lock ON 
18508 \begin_inset Quotes eld
18509 \end_inset
18510
18511 <ファイル名>
18512 \begin_inset Quotes erd
18513 \end_inset
18514
18515
18516 \end_layout
18517
18518 \end_inset
18519
18520
18521 \end_layout
18522
18523 \begin_layout Labeling
18524 \labelwidthstring 00.00.0000
18525 チェックアウト: 
18526 \begin_inset Flex Code
18527 status collapsed
18528
18529 \begin_layout Plain Layout
18530 svn propdel svn:needs-lock 
18531 \begin_inset Quotes eld
18532 \end_inset
18533
18534 <ファイル名>
18535 \begin_inset Quotes erd
18536 \end_inset
18537
18538
18539 \end_layout
18540
18541 \end_inset
18542
18543
18544 \end_layout
18545
18546 \begin_layout Subsubsection
18547 \begin_inset CommandInset label
18548 LatexCommand label
18549 name "sub:VCS改訂情報"
18550
18551 \end_inset
18552
18553 文書の改訂情報
18554 \end_layout
18555
18556 \begin_layout Standard
18557 文書中で改訂情報を有効化するにはいくつかの方法があります。
18558 \end_layout
18559
18560 \begin_layout Itemize
18561 LyXによる直接サポート
18562 \end_layout
18563
18564 \begin_deeper
18565 \begin_layout Itemize
18566 ツリー改訂情報(
18567 \begin_inset Flex Code
18568 status collapsed
18569
18570 \begin_layout Plain Layout
18571 vcs-tree-revision
18572 \end_layout
18573
18574 \end_inset
18575
18576 )。
18577 \begin_inset Flex Code
18578 status collapsed
18579
18580 \begin_layout Plain Layout
18581 svnversion
18582 \end_layout
18583
18584 \end_inset
18585
18586 コマンドの出力を返します。下記の表が、結果の読み方のヒントを与えるでしょう。
18587 \end_layout
18588
18589 \begin_layout Standard
18590 \align center
18591 \begin_inset Tabular
18592 <lyxtabular version="3" rows="6" columns="2">
18593 <features rotate="0" tabularvalignment="middle">
18594 <column alignment="center" valignment="top" width="0">
18595 <column alignment="center" valignment="top" width="0">
18596 <row>
18597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18598 \begin_inset Text
18599
18600 \begin_layout Plain Layout
18601 出力
18602 \end_layout
18603
18604 \end_inset
18605 </cell>
18606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18607 \begin_inset Text
18608
18609 \begin_layout Plain Layout
18610 意味
18611 \end_layout
18612
18613 \end_inset
18614 </cell>
18615 </row>
18616 <row>
18617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18618 \begin_inset Text
18619
18620 \begin_layout Plain Layout
18621 4123:4168
18622 \end_layout
18623
18624 \end_inset
18625 </cell>
18626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18627 \begin_inset Text
18628
18629 \begin_layout Plain Layout
18630 改訂版の混合した作業コピー
18631 \end_layout
18632
18633 \end_inset
18634 </cell>
18635 </row>
18636 <row>
18637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18638 \begin_inset Text
18639
18640 \begin_layout Plain Layout
18641 4168M
18642 \end_layout
18643
18644 \end_inset
18645 </cell>
18646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18647 \begin_inset Text
18648
18649 \begin_layout Plain Layout
18650 修正された作業コピー
18651 \end_layout
18652
18653 \end_inset
18654 </cell>
18655 </row>
18656 <row>
18657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18658 \begin_inset Text
18659
18660 \begin_layout Plain Layout
18661 4123S
18662 \end_layout
18663
18664 \end_inset
18665 </cell>
18666 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18667 \begin_inset Text
18668
18669 \begin_layout Plain Layout
18670 スイッチされた作業コピー
18671 \end_layout
18672
18673 \end_inset
18674 </cell>
18675 </row>
18676 <row>
18677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18678 \begin_inset Text
18679
18680 \begin_layout Plain Layout
18681 4123P
18682 \end_layout
18683
18684 \end_inset
18685 </cell>
18686 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18687 \begin_inset Text
18688
18689 \begin_layout Plain Layout
18690 チェックアウト頻度が低かったことによる不完全な作業コピー
18691 \end_layout
18692
18693 \end_inset
18694 </cell>
18695 </row>
18696 <row>
18697 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18698 \begin_inset Text
18699
18700 \begin_layout Plain Layout
18701 4123:4168MS
18702 \end_layout
18703
18704 \end_inset
18705 </cell>
18706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18707 \begin_inset Text
18708
18709 \begin_layout Plain Layout
18710 改訂版が混合し、修正され、スイッチされた作業コピー
18711 \end_layout
18712
18713 \end_inset
18714 </cell>
18715 </row>
18716 </lyxtabular>
18717
18718 \end_inset
18719
18720
18721 \end_layout
18722
18723 \begin_layout Itemize
18724 ファイル改訂情報。
18725 \begin_inset Flex Code
18726 status collapsed
18727
18728 \begin_layout Plain Layout
18729 svn
18730 \begin_inset space ~
18731 \end_inset
18732
18733 info
18734 \begin_inset space ~
18735 \end_inset
18736
18737 --xml
18738 \begin_inset space ~
18739 \end_inset
18740
18741 file.lyx
18742 \end_layout
18743
18744 \end_inset
18745
18746 の出力を解析したものが返されます。サポートされるフラグは
18747 \end_layout
18748
18749 \begin_deeper
18750 \begin_layout Itemize
18751 最終コミットのバージョン番号(
18752 \begin_inset Flex Code
18753 status collapsed
18754
18755 \begin_layout Plain Layout
18756 vcs-revision
18757 \end_layout
18758
18759 \end_inset
18760
18761
18762 \end_layout
18763
18764 \begin_layout Itemize
18765 最終コミットの著者(
18766 \begin_inset Flex Code
18767 status collapsed
18768
18769 \begin_layout Plain Layout
18770 vcs-author
18771 \end_layout
18772
18773 \end_inset
18774
18775
18776 \end_layout
18777
18778 \begin_layout Itemize
18779 最終コミットの日付(
18780 \begin_inset Flex Code
18781 status collapsed
18782
18783 \begin_layout Plain Layout
18784 vcs-date
18785 \end_layout
18786
18787 \end_inset
18788
18789
18790 \end_layout
18791
18792 \begin_layout Itemize
18793 最終コミットの時間(
18794 \begin_inset Flex Code
18795 status collapsed
18796
18797 \begin_layout Plain Layout
18798 vcs-time
18799 \end_layout
18800
18801 \end_inset
18802
18803
18804 \end_layout
18805
18806 \end_deeper
18807 \begin_layout Standard
18808 これらの情報は、情報差込枠で得ることができます(例:
18809 \begin_inset Flex Code
18810 status collapsed
18811
18812 \begin_layout Plain Layout
18813 info-insert buffer vcs-date
18814 \end_layout
18815
18816 \end_inset
18817
18818 )。これらの情報は、ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
18819 \begin_inset Flex Code
18820 status collapsed
18821
18822 \begin_layout Plain Layout
18823 .svn
18824 \end_layout
18825
18826 \end_inset
18827
18828 ディレクトリがあるときのみ)利用可能です。
18829 \end_layout
18830
18831 \end_deeper
18832 \begin_layout Itemize
18833 もう一つの---ハッカー的な---方法は、SVNキーワードを使用する方法です
18834 \begin_inset Foot
18835 status collapsed
18836
18837 \begin_layout Plain Layout
18838 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
18839 \end_layout
18840
18841 \end_inset
18842
18843 。簡単に言えば、ファイルキーワード特性を設定して(例:
18844 \family sans
18845 svn propset svn:keywords 'Rev' file.lyx
18846 \family default
18847 )、文書中にキーワードTeXコード
18848 \begin_inset Foot
18849 status collapsed
18850
18851 \begin_layout Plain Layout
18852 これは、LyXがキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
18853 \end_layout
18854
18855 \end_inset
18856
18857 タグ(例:
18858 \begin_inset ERT
18859 status open
18860
18861 \begin_layout Plain Layout
18862
18863 $Rev$
18864 \end_layout
18865
18866 \end_inset
18867
18868 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
18869 \begin_inset ERT
18870 status open
18871
18872 \begin_layout Plain Layout
18873
18874 $Rev: 59 $
18875 \end_layout
18876
18877 \end_inset
18878
18879 )。このアプローチにはいくつか問題があります。第一に、TeXの世界では「$」文字は数式を表すのに使われるので、LyX中の
18880 \begin_inset Formula $Rev$
18881 \end_inset
18882
18883 という数式表現が、すべて
18884 \begin_inset Formula $Rev:59$
18885 \end_inset
18886
18887 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
18888 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
18889 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、LyXがこれを直接サポートすることは、難しそうです。
18890 \end_layout
18891
18892 \begin_layout Subsection
18893 SVNとWindows環境
18894 \end_layout
18895
18896 \begin_layout Quote
18897 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。---P.
18898  A.
18899  ルービン
18900 \end_layout
18901
18902 \begin_layout Subsubsection
18903 準備
18904 \end_layout
18905
18906 \begin_layout Standard
18907 LyXを導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クラ
18908 イアントプログラムのWindows用インストーラは
18909 \begin_inset CommandInset href
18910 LatexCommand href
18911 name "CollabNet"
18912 target "http://www.collab.net/nonav/downloads/subversion/"
18913
18914 \end_inset
18915
18916 にあります。ユーザは
18917 \begin_inset CommandInset href
18918 LatexCommand href
18919 name "TortoiseSVN"
18920 target "http://tortoisesvn.tigris.org/"
18921
18922 \end_inset
18923
18924 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。LyX外部で
18925 行う操作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、LyX自身が使用するクライアントプログラムの代わりとは成
18926 りませんので、注意してください。
18927 \end_layout
18928
18929 \begin_layout Subsubsection
18930 文書をSubversion管理下に置くには
18931 \end_layout
18932
18933 \begin_layout Standard
18934 LyX文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロ
18935 ジェクトに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下
18936 にない場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、LyXの外
18937 部で行います。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、
18938 DOSプロンプトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。
18939 レポジトリは既に存在し、新規プロジェクトを
18940 \begin_inset Flex Code
18941 status collapsed
18942
18943 \begin_layout Plain Layout
18944 C:
18945 \backslash
18946 new project
18947 \end_layout
18948
18949 \end_inset
18950
18951 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
18952 \begin_inset Flex Code
18953 status collapsed
18954
18955 \begin_layout Plain Layout
18956 svn --help
18957 \end_layout
18958
18959 \end_inset
18960
18961 を実行してください。
18962 \end_layout
18963
18964 \begin_layout Enumerate
18965 Windows Explorerで
18966 \begin_inset Flex Code
18967 status collapsed
18968
18969 \begin_layout Plain Layout
18970 C:
18971 \backslash
18972 new project
18973 \end_layout
18974
18975 \end_inset
18976
18977 を見つけ出して右クリックし、
18978 \begin_inset Flex MenuItem
18979 status collapsed
18980
18981 \begin_layout Plain Layout
18982 TortoiseSVN\SpecialChar \menuseparator
18983 Repo-browser
18984 \end_layout
18985
18986 \end_inset
18987
18988 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
18989 \end_layout
18990
18991 \begin_layout Enumerate
18992 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
18993 \begin_inset Flex MenuItem
18994 status collapsed
18995
18996 \begin_layout Plain Layout
18997 Create folder\SpecialChar \ldots{}
18998
18999 \end_layout
19000
19001 \end_inset
19002
19003 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
19004 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
19005 \end_layout
19006
19007 \begin_layout Enumerate
19008 再度
19009 \begin_inset Flex Code
19010 status collapsed
19011
19012 \begin_layout Plain Layout
19013 C:
19014 \backslash
19015 new project
19016 \end_layout
19017
19018 \end_inset
19019
19020 を右クリックし、今度は
19021 \begin_inset Flex MenuItem
19022 status collapsed
19023
19024 \begin_layout Plain Layout
19025 SVN Checkout\SpecialChar \ldots{}
19026
19027 \end_layout
19028
19029 \end_inset
19030
19031 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
19032 \begin_inset Flex Code
19033 status collapsed
19034
19035 \begin_layout Plain Layout
19036 C:
19037 \backslash
19038 new project
19039 \end_layout
19040
19041 \end_inset
19042
19043 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
19044 \begin_inset Flex Code
19045 status collapsed
19046
19047 \begin_layout Plain Layout
19048 C:
19049 \backslash
19050 new project
19051 \end_layout
19052
19053 \end_inset
19054
19055 の下に
19056 \begin_inset Flex Code
19057 status collapsed
19058
19059 \begin_layout Plain Layout
19060 .svn
19061 \end_layout
19062
19063 \end_inset
19064
19065 ディレクトリが作成されます。
19066 \end_layout
19067
19068 \begin_layout Enumerate
19069 LyXで文書を新規作成するか開くかして、
19070 \begin_inset Flex MenuItem
19071 status collapsed
19072
19073 \begin_layout Plain Layout
19074 ファイル\SpecialChar \menuseparator
19075 バージョン管理\SpecialChar \menuseparator
19076 登録
19077 \end_layout
19078
19079 \end_inset
19080
19081 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
19082 \end_layout
19083
19084 \begin_layout Standard
19085 爾後、
19086 \begin_inset Flex MenuItem
19087 status collapsed
19088
19089 \begin_layout Plain Layout
19090 ファイル\SpecialChar \menuseparator
19091 バージョン管理
19092 \end_layout
19093
19094 \end_inset
19095
19096 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
19097 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
19098 \end_layout
19099
19100 \begin_layout Subsubsection
19101 Windows下でSVNと共にSSHトンネルを使うには
19102 \end_layout
19103
19104 \begin_layout Standard
19105 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
19106 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
19107 ることを覚悟しておいてください。
19108 \end_layout
19109
19110 \begin_layout Enumerate
19111 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
19112 \begin_inset Flex Code
19113 status collapsed
19114
19115 \begin_layout Plain Layout
19116 svn --version
19117 \end_layout
19118
19119 \end_inset
19120
19121 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
19122 \end_layout
19123
19124 \begin_layout Enumerate
19125 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
19126 \begin_inset Foot
19127 status open
19128
19129 \begin_layout Plain Layout
19130 \begin_inset Flex URL
19131 status collapsed
19132
19133 \begin_layout Plain Layout
19134
19135 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
19136 \end_layout
19137
19138 \end_inset
19139
19140
19141 \end_layout
19142
19143 \end_inset
19144
19145 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
19146 護などを加えないキーのみを使用することとします。
19147 \end_layout
19148
19149 \begin_deeper
19150 \begin_layout Enumerate
19151 \begin_inset Flex Code
19152 status collapsed
19153
19154 \begin_layout Plain Layout
19155 puttygen
19156 \end_layout
19157
19158 \end_inset
19159
19160 を使ってキーを生成します。.ppkプライベートキーファイルを保存し、パブリックキーファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブ
19161 リックキーの書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized
19162 _keys file:」編集フィールドから、直接サーバの
19163 \begin_inset Flex Code
19164 status collapsed
19165
19166 \begin_layout Plain Layout
19167 ~/.ssh/authorized_keys
19168 \end_layout
19169
19170 \end_inset
19171
19172 または
19173 \begin_inset Flex Code
19174 status collapsed
19175
19176 \begin_layout Plain Layout
19177 authorized_keys2
19178 \end_layout
19179
19180 \end_inset
19181
19182 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
19183 \end_layout
19184
19185 \begin_layout Enumerate
19186 Puttyのplinkを入手してください。SVNのconfigファイル
19187 \begin_inset Foot
19188 status collapsed
19189
19190 \begin_layout Plain Layout
19191 正確なパスはWindowsのバージョンに依りますが、通常は
19192 \begin_inset Flex Code
19193 status collapsed
19194
19195 \begin_layout Plain Layout
19196 c:
19197 \backslash
19198 Documents and Settings
19199 \backslash
19200 user
19201 \backslash
19202 Application Data
19203 \backslash
19204 Subversion
19205 \backslash
19206 config
19207 \end_layout
19208
19209 \end_inset
19210
19211
19212 \begin_inset Flex Code
19213 status collapsed
19214
19215 \begin_layout Plain Layout
19216 AppData
19217 \backslash
19218 Roaming
19219 \backslash
19220 Subversion
19221 \end_layout
19222
19223 \end_inset
19224
19225 辺りにあります。
19226 \end_layout
19227
19228 \end_inset
19229
19230 中の
19231 \begin_inset Flex Code
19232 status collapsed
19233
19234 \begin_layout Plain Layout
19235 [tunnels]
19236 \end_layout
19237
19238 \end_inset
19239
19240 セクションにsshコマンドを設定してください。例:
19241 \begin_inset Flex Code
19242 status collapsed
19243
19244 \begin_layout Plain Layout
19245 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
19246 \end_layout
19247
19248 \end_inset
19249
19250
19251 \begin_inset Foot
19252 status collapsed
19253
19254 \begin_layout Plain Layout
19255 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
19256 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
19257 \end_layout
19258
19259 \end_inset
19260
19261
19262 \end_layout
19263
19264 \end_deeper
19265 \begin_layout Enumerate
19266 SVNアーカイブをチェックアウトしてください。例:
19267 \begin_inset Newline newline
19268 \end_inset
19269
19270
19271 \begin_inset Flex Code
19272 status collapsed
19273
19274 \begin_layout Plain Layout
19275 svn co svn+ssh://user@server/repository_path
19276 \end_layout
19277
19278 \end_inset
19279
19280
19281 \end_layout
19282
19283 \begin_layout Subsubsection
19284 行末変換
19285 \end_layout
19286
19287 \begin_layout Standard
19288 共著者同士がLinuxとWindowsを混在させているとき、LyXは.lyxファイル中で異なった行末記号を使用することになります。これは、LyXの機能に関する限り
19289 問題になりませんが、コミット差分は巨大になり、マージではコンフリクトを引き起こしがちです。幸いにして、SVNは、.lyxファイルを
19290 \begin_inset Flex Code
19291 status collapsed
19292
19293 \begin_layout Plain Layout
19294 native
19295 \end_layout
19296
19297 \end_inset
19298
19299 モードに切り替える際
19300 \begin_inset Foot
19301 status collapsed
19302
19303 \begin_layout Plain Layout
19304 手短には
19305 \begin_inset Flex Code
19306 status collapsed
19307
19308 \begin_layout Plain Layout
19309 svn propset svn:eol-style native FILE_NAME
19310 \end_layout
19311
19312 \end_inset
19313
19314
19315 \end_layout
19316
19317 \end_inset
19318
19319 、CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
19320 \begin_inset Foot
19321 status collapsed
19322
19323 \begin_layout Plain Layout
19324 \begin_inset Flex URL
19325 status collapsed
19326
19327 \begin_layout Plain Layout
19328
19329 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
19330 \end_layout
19331
19332 \end_inset
19333
19334
19335 \end_layout
19336
19337 \end_inset
19338
19339
19340 \end_layout
19341
19342 \begin_layout Subsection
19343 さらなる調整
19344 \end_layout
19345
19346 \begin_layout Standard
19347 vcコマンド機構が最近になって付け加えられたおかげで、LyXのパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
19348 \end_layout
19349
19350 \begin_layout Standard
19351 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
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:commit /path:$$p"
19361 \end_layout
19362
19363 \end_inset
19364
19365
19366 \end_layout
19367
19368 \begin_layout Description
19369 元に戻す: 
19370 \begin_inset Flex Code
19371 status collapsed
19372
19373 \begin_layout Plain Layout
19374 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
19375 \end_layout
19376
19377 \end_inset
19378
19379
19380 \end_layout
19381
19382 \begin_layout Subsection
19383 バージョン管理と文書比較
19384 \end_layout
19385
19386 \begin_layout Standard
19387 バージョン管理は、通常
19388 \begin_inset Flex Code
19389 status collapsed
19390
19391 \begin_layout Plain Layout
19392 diff
19393 \end_layout
19394
19395 \end_inset
19396
19397 ダンプを生成することによって、改訂版の間の変更点を検査するのが、典型的な使用法です。これは平文ファイルには有効なのですが、複雑な構造を持つLyXファイルの場合に
19398 は、あまり便利ではありません。そこで、LyXは独自の文書比較機能を提供しています。この機能を呼び出すには2つの方法があります。1つは、LyXの
19399 \begin_inset Flex Code
19400 status collapsed
19401
19402 \begin_layout Plain Layout
19403 VC_COMPARE
19404 \end_layout
19405
19406 \end_inset
19407
19408 関数を直接呼び出す方法であり(詳細はLyX関数説明書を参照)、もう1つは
19409 \begin_inset Flex MenuItem
19410 status collapsed
19411
19412 \begin_layout Plain Layout
19413 旧改訂と比較\SpecialChar \ldots{}
19414
19415 \end_layout
19416
19417 \end_inset
19418
19419 メニューないしアイコンを使用する方法です。当該文書のうち、任意の2つの改訂版を比較することもできますし、編集中の現行版を古い改訂版と比較することもできます(この
19420 とき改訂版遡及数「
19421 \begin_inset Flex MenuItem
19422 status collapsed
19423
19424 \begin_layout Plain Layout
19425 0
19426 \end_layout
19427
19428 \end_inset
19429
19430 」は、編集中のファイルと最後にコミットした改訂版との比較を意味します)。
19431 \end_layout
19432
19433 \begin_layout Standard
19434 この機能は、SVNとRCSでサポートされていますが、RCSは、より複雑なバージョン付けスキームを持っているため、制約があります。ダイアログ中で改訂版を指定する際
19435 の数字は、つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」)。
19436 \end_layout
19437
19438 \begin_layout Section
19439 文芸的プログラミング
19440 \end_layout
19441
19442 \begin_layout Standard
19443
19444 \noun on
19445 Kayvan Sylvan
19446 \noun default
19447 (kayvan@sylvan.com)改訂 
19448 \noun on
19449 Edmar Wienskoski Jr.
19450 \noun default
19451 (edmar-w-jr@technologist.com)原文
19452 \end_layout
19453
19454 \begin_layout Subsection
19455 はじめに
19456 \end_layout
19457
19458 \begin_layout Standard
19459 この節の主な目的は、文芸的プログラミング(literate programming)のために、LyXをどう使えばよいかをお見せすることです。ここでは、あなたがこ
19460 のプログラミング技術をよくご存じで、「tangling」や「weaving」の意味するところを知っているものとして説明します。そうでない場合には、以下の各節にあ
19461 るウェブリンクをたどってください。そこには、かつての開発の歴史から最新のツールチップまで、たくさんの良質なドキュメンテーションがあります。
19462 \end_layout
19463
19464 \begin_layout Standard
19465 また、あなたが、LyXの設定を変更することを厭わない程度までLyXに習熟しており、Xリソースファイルにも親しんでいることを前提にしています。そうでない場合は、あ
19466 なたの必要とするトピックを扱っている、LyXの他の説明書で調べてください。
19467 \end_layout
19468
19469 \begin_layout Subsection
19470 文芸的プログラミング
19471 \end_layout
19472
19473 \begin_layout Standard
19474 以下は、文芸的プログラミング FAQからの抜粋です。
19475 \end_layout
19476
19477 \begin_layout Quotation
19478 文芸的プログラミングは、人間が読むのに適した形でのドキュメンテーションとソースの組合わせです。実際、文芸的プログラムは楽しい読み物であるべきであり、さらには参加
19479 したいとさえ思わせるべきなのです!(ボブ、ごめん。言わずにはいれなかった。)一般的に、文芸的プログラムは、ソースとドキュメンテーションを同一ファイル上に結合した
19480 ものです。そして、文芸的プログラミングツールは、ファイルを解析して、読むことのできるドキュメンテーションか、あるいはコンパイル可能なソースを生成します。文芸的プ
19481 ログラミングのWEBスタイルは、D.
19482 \begin_inset space \thinspace{}
19483 \end_inset
19484
19485 E.
19486  Knuthが、TeX組版ソフトウエアを開発中に作り出したものです。
19487 \end_layout
19488
19489 \begin_layout Standard
19490 他のエキスパートの発言です。
19491 \end_layout
19492
19493 \begin_layout Quotation
19494
19495 \emph on
19496 文芸的プログラミングは、冗長なコメント付けと何が違いますか?
19497 \end_layout
19498
19499 \begin_layout Quotation
19500 3つの際立った特徴があります。重要な順に列挙すれば、
19501 \end_layout
19502
19503 \begin_deeper
19504 \begin_layout Itemize
19505 推敲の順序が柔軟
19506 \end_layout
19507
19508 \begin_layout Itemize
19509 ブラウジングの自動サポート
19510 \end_layout
19511
19512 \begin_layout Itemize
19513 特に図式と数式を含んだドキュメンテーションの組版
19514 \end_layout
19515
19516 \end_deeper
19517 \begin_layout Quotation
19518 などがあります。
19519 \end_layout
19520
19521 \begin_layout Standard
19522 あなたの興味に火を付けたところで参考文献を見てみましょう。
19523 \end_layout
19524
19525 \begin_layout Subsubsection
19526 参考文献
19527 \end_layout
19528
19529 \begin_layout Standard
19530 完全な文芸的プログラミング FAQは
19531 \end_layout
19532
19533 \begin_layout Quote
19534 Literate Programming FAQ 
19535 \begin_inset Flex URL
19536 status collapsed
19537
19538 \begin_layout Plain Layout
19539
19540 http://shelob.ce.ttu.edu/daves/lpfaq/faq.html
19541 \end_layout
19542
19543 \end_inset
19544
19545
19546 \end_layout
19547
19548 \begin_layout Standard
19549 にあります。
19550 \end_layout
19551
19552 \begin_layout Standard
19553 このFAQには、23(二十三です!)の文芸的プログラミング用ツールが列挙されています。一部のツールは、特定のプログラミング言語用に特化したものですが、一般的な対
19554 象を持つものもあります。私は自分で使うのに、いくつかの理由から
19555 \noun on
19556 Noweb
19557 \noun default
19558 を選びました。
19559 \end_layout
19560
19561 \begin_layout Itemize
19562 ドキュメンテーションをLaTeXでもHTMLでも出力できる。
19563 \end_layout
19564
19565 \begin_layout Itemize
19566 開放的なアーキテクチャに持っているので、新しいフィルタをプラグインとして加えたり、自分が必要な特別な処理を実行することが容易である。
19567 \end_layout
19568
19569 \begin_layout Itemize
19570 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです)。
19571 \end_layout
19572
19573 \begin_layout Itemize
19574 無料である。
19575 \end_layout
19576
19577 \begin_layout Standard
19578 Nowebのウェブページは
19579 \end_layout
19580
19581 \begin_layout Quote
19582 Nowebホームページ 
19583 \begin_inset Flex URL
19584 status collapsed
19585
19586 \begin_layout Plain Layout
19587
19588 http://www.cs.virginia.edu/~nr/noweb/
19589 \end_layout
19590
19591 \end_inset
19592
19593
19594 \end_layout
19595
19596 \begin_layout Standard
19597 にあります。ここから始めれば、たくさんの興味深いリンクや、文芸的プログラミングの用例にたどり着くことができます。
19598 \end_layout
19599
19600 \begin_layout Subsection
19601 LyXと文芸的プログラミング
19602 \end_layout
19603
19604 \begin_layout Standard
19605 LyXにおける文芸的プログラミングのサポートは、LyXの汎用変換機構を使用して実現しています。このサポートは「Noweb非依存」的な方法で提供されているので、L
19606 yXの設定を変更するだけで、自分の好きな他の文芸的プログラミングツールを使って、この新しいLyXの機能を利用することができます。
19607 \end_layout
19608
19609 \begin_layout Subsubsection
19610 ドキュメントとコードの生成(weavingおよびtangling)
19611 \end_layout
19612
19613 \begin_layout Paragraph
19614 文書クラスの選択
19615 \end_layout
19616
19617 \begin_layout Standard
19618 NowebとLyXの導入に成功すると、新規文書を開いたり、既存文書の文書クラスを変更しようとする際、以下の3つの新しい文書クラスが利用可能になっているはずです。
19619 \end_layout
19620
19621 \begin_layout Itemize
19622 Article (Noweb)
19623 \end_layout
19624
19625 \begin_layout Itemize
19626 Book (Noweb)
19627 \end_layout
19628
19629 \begin_layout Itemize
19630 Report (Noweb)
19631 \end_layout
19632
19633 \begin_layout Standard
19634 文芸的プログラミング文書を作成する場合には、これらのうち一つを選んでください。
19635 \end_layout
19636
19637 \begin_layout Standard
19638 文芸的プログラミング文書は、これら3つのクラスに限定されないことに注意してください。letterのような他のスタイルから新しいクラスを作成することもできますし、
19639 Article (AMS)のような他のクラスバリエーションと組み合わせて作成することもできます。既存のクラスではカバーできないような、特別なニーズがある場合には
19640 、LyX開発者用メーリングリスト(lyx-devel@lists.lyx.org)に連絡していただければ、新しい項目を加えるように調整するか、そのしかたをお教えしま
19641
19642 \begin_inset Foot
19643 status collapsed
19644
19645 \begin_layout Plain Layout
19646 これは非常に簡単です。これを行うには、4行から成るファイルを作成し、自動設定を実行するだけなのです。
19647 \end_layout
19648
19649 \end_inset
19650
19651 。また、Noweb以外の文芸的プログラミングツールを使用する場合にも、そのための新しい文書クラスをつくる必要があります。
19652 \end_layout
19653
19654 \begin_layout Paragraph
19655 コードの入力
19656 \end_layout
19657
19658 \begin_layout Standard
19659 LyXでは、
19660 \begin_inset Flex Noun
19661 status collapsed
19662
19663 \begin_layout Plain Layout
19664 Chunk
19665 \end_layout
19666
19667 \end_inset
19668
19669 という名前のレイアウトを使えば、コードを入力することができます。Nowebは次のようにchunks を区切ります。
19670 \end_layout
19671
19672 \begin_layout LyX-Code
19673 <<My code>>=
19674 \end_layout
19675
19676 \begin_layout LyX-Code
19677   code
19678 \end_layout
19679
19680 \begin_layout LyX-Code
19681   more code
19682 \end_layout
19683
19684 \begin_layout LyX-Code
19685   even more code
19686 \end_layout
19687
19688 \begin_layout LyX-Code
19689   @
19690 \end_layout
19691
19692 \begin_layout Standard
19693 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまりLyXはこの間に書かれたものへのどんな変更も禁止しなくてははなりません。こ
19694 れは
19695 \begin_inset Flex Noun
19696 status collapsed
19697
19698 \begin_layout Plain Layout
19699 Chunk
19700 \end_layout
19701
19702 \end_inset
19703
19704 と呼ぶ特別なレイアウトで扱われます。この環境は通常の段落のようですが、自由に空白を入れることができます。
19705 \end_layout
19706
19707 \begin_layout Standard
19708 また、chunkの中にNowebの%defを使うことができます。これを使うことでNowebのidentifierの相互参照に項目を加えることができます。次の例を
19709 見てください。
19710 \end_layout
19711
19712 \begin_layout LyX-Code
19713 <<My chunk>>=
19714 \end_layout
19715
19716 \begin_layout LyX-Code
19717 def some_function(args):
19718 \end_layout
19719
19720 \begin_layout LyX-Code
19721    "This is the doc string for this function."
19722 \end_layout
19723
19724 \begin_layout LyX-Code
19725    print "My args: ", args
19726 \end_layout
19727
19728 \begin_layout LyX-Code
19729 @ %def some_function
19730 \end_layout
19731
19732 \begin_layout Standard
19733 これをどのように使って、その結果相互参照がどうなるかは
19734 \emph on
19735 LIBDIR/examples/listerrors.lyx
19736 \emph default
19737 の中の文芸pythonプログラムを見るとよくわかります。
19738 \end_layout
19739
19740 \begin_layout Paragraph
19741 ドキュメンテーションの生成
19742 \end_layout
19743
19744 \begin_layout Standard
19745 新しい文章ファイルを正しい文書クラスでつくり、その中にコードとテキストも入れました。これをどうやって印刷したらいいのでしょう。簡単です。
19746 \begin_inset Flex MenuItem
19747 status collapsed
19748
19749 \begin_layout Plain Layout
19750 表示\SpecialChar \menuseparator
19751 DVI
19752 \end_layout
19753
19754 \end_inset
19755
19756 等を選ぶだけです。普通の文章の場合と同じで、特別なことは必要ありません。
19757 \end_layout
19758
19759 \begin_layout Standard
19760 LyXの内部で何が起っているかを説明しておきましょう。
19761 \end_layout
19762
19763 \begin_layout Enumerate
19764 \begin_inset Flex MenuItem
19765 status collapsed
19766
19767 \begin_layout Plain Layout
19768 表示\SpecialChar \menuseparator
19769 DVI
19770 \end_layout
19771
19772 \end_inset
19773
19774 が選ばれると、LaTeXファイルがつくられます。
19775 \end_layout
19776
19777 \begin_deeper
19778 \begin_layout Standard
19779 ドキュメントが文芸プログラミング用のクラスであった場合には、拡張子に(
19780 \begin_inset Flex MenuItem
19781 status collapsed
19782
19783 \begin_layout Plain Layout
19784 設定
19785 \end_layout
19786
19787 \end_inset
19788
19789 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
19790 \end_layout
19791
19792 \end_deeper
19793 \begin_layout Enumerate
19794 違いがファイル名だけなのに注意してください。LyXによる特別な処理は必要ありません。
19795 \begin_inset Flex Noun
19796 status collapsed
19797
19798 \begin_layout Plain Layout
19799 Chunk
19800 \end_layout
19801
19802 \end_inset
19803
19804 環境でコードを入力するのだけがポイントです。
19805 \end_layout
19806
19807 \begin_layout Enumerate
19808 ドキュメントが文芸プログラムクラスなら、LyXは内部のLyXからNowebのコンバータを使い、それからNowebからLaTeXのコンバータ
19809 \begin_inset Foot
19810 status collapsed
19811
19812 \begin_layout Plain Layout
19813 これらのコンバータは、
19814 \family sans
19815 \bar under
19816 E
19817 \bar default
19818 dit\SpecialChar \menuseparator
19819
19820 \bar under
19821 P
19822 \bar default
19823 references
19824 \family default
19825  パネルの Conversion タブで設定できます。
19826 \end_layout
19827
19828 \end_inset
19829
19830 を使ってLaTeXファイルを生成します。
19831 \end_layout
19832
19833 \begin_deeper
19834 \begin_layout Standard
19835 それ以外の場合はこのステップを飛ばします。
19836 \end_layout
19837
19838 \end_deeper
19839 \begin_layout Enumerate
19840 最後にLaTeXが実行され、普通の文章と同じ後処理が行われます。
19841 \end_layout
19842
19843 \begin_layout Standard
19844 様々なコンバータから走らせるコマンドを変えることによって、特定の文芸プログラム用のソフトウエアにしばられないようになっています。
19845 \end_layout
19846
19847 \begin_layout Paragraph
19848 コードの生成
19849 \end_layout
19850
19851 \begin_layout Standard
19852 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様にLaTeXファイルが生成されます。それからLyXは
19853 \family typewriter
19854 Noweb->Program
19855 \family default
19856 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
19857 \end_layout
19858
19859 \begin_layout Enumerate
19860 コンバータプログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマ
19861 ットへ変換します)。
19862 \end_layout
19863
19864 \begin_layout Enumerate
19865 エラーログパーサー。これはエラーメッセージをLyXが理解できる形へ書き直します。これによって、LyXはファイルバッファの正しい位置へエラーボックスを配置すること
19866 ができます。
19867 \end_layout
19868
19869 \begin_layout Standard
19870 はじめのパートのために、「変換子」設定で、
19871 \begin_inset Quotes eld
19872 \end_inset
19873
19874
19875 \family typewriter
19876 build-script$$i
19877 \family default
19878
19879 \begin_inset Quotes erd
19880 \end_inset
19881
19882 と指定します。これは基本的に、LyXが
19883 \family typewriter
19884 build-script
19885 \family default
19886 (プログラムかスクリプト名)を(一般にはLyXの一時ファイル用のディレクトリにつくられる)Nowebファイルの名前とともに起動することを意味しています。
19887 \end_layout
19888
19889 \begin_layout Standard
19890 以下にbuild-scriptの一例を書いておきます。パスが通っているディレクトリに置いて使います。
19891 \end_layout
19892
19893 \begin_layout Standard
19894 \begin_inset VSpace defskip
19895 \end_inset
19896
19897
19898 \end_layout
19899
19900 \begin_layout Standard
19901
19902 \family sans
19903 #!/bin/sh
19904 \end_layout
19905
19906 \begin_layout Standard
19907
19908 \family sans
19909 #
19910 \end_layout
19911
19912 \begin_layout Standard
19913
19914 \family sans
19915 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
19916 \end_layout
19917
19918 \begin_layout Standard
19919 \begin_inset VSpace defskip
19920 \end_inset
19921
19922
19923 \end_layout
19924
19925 \begin_layout Standard
19926
19927 \lang english
19928 The next part of the converter setting is the 
19929 \begin_inset Quotes eld
19930 \end_inset
19931
19932 Flags
19933 \begin_inset Quotes erd
19934 \end_inset
19935
19936  which is to be set to
19937 \begin_inset Newline newline
19938 \end_inset
19939
19940
19941 \begin_inset Quotes eld
19942 \end_inset
19943
19944
19945 \family typewriter
19946 parselog=$$s/scripts/listerrors
19947 \family default
19948
19949 \begin_inset Quotes erd
19950 \end_inset
19951
19952 .
19953 \begin_inset Newline newline
19954 \end_inset
19955
19956 This will run any errors that are generated by the 
19957 \begin_inset Quotes eld
19958 \end_inset
19959
19960 build-script
19961 \begin_inset Quotes erd
19962 \end_inset
19963
19964  process through the 
19965 \begin_inset Quotes eld
19966 \end_inset
19967
19968 listerrors
19969 \begin_inset Quotes erd
19970 \end_inset
19971
19972  program.
19973 \end_layout
19974
19975 \begin_layout Standard
19976
19977 \lang english
19978 The build will normally take place in LyX's temporary directory, so the
19979  files produced by the conversion will be in that directory.
19980  LyX will copy out what it regards as the `main' file, but the 
19981 \family typewriter
19982 Noweb->Program
19983 \family default
19984  conversion may produce several files, and so most of these would then be
19985  deleted when LyX was closed.
19986  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
19987  the build-script chunk can place the generated files in that location.
19988 \end_layout
19989
19990 \begin_layout Paragraph
19991 文章中でのプログラムの構築操作の説明
19992 \end_layout
19993
19994 \begin_layout Standard
19995 LyXとNowebの統合の最後の部分は、
19996 \begin_inset Quotes eld
19997 \end_inset
19998
19999 build-script
20000 \begin_inset Quotes erd
20001 \end_inset
20002
20003  chunkです。一般に、あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
20004 iptでは、chunkを見つけるのにnotangleコマンドを使い、shを使って起動します。
20005 \end_layout
20006
20007 \begin_layout Standard
20008 以下に典型的なschunkがどのようなものかを書いておきます。
20009 \end_layout
20010
20011 \begin_layout LyX-Code
20012 <<build-script>>=
20013 \end_layout
20014
20015 \begin_layout LyX-Code
20016 #!/bin/sh
20017 \begin_inset Newline newline
20018 \end_inset
20019
20020 if [ -z "${NOWEB_SOURCE}" ]
20021 \begin_inset Newline newline
20022 \end_inset
20023
20024 then
20025 \end_layout
20026
20027 \begin_layout LyX-Code
20028 NOWEB_SOURCE=myfile.nw
20029 \begin_inset Newline newline
20030 \end_inset
20031
20032 fi
20033 \begin_inset Newline newline
20034 \end_inset
20035
20036 [...
20037  code to extract files ...
20038  use NOWEB_OUTPUT_DIR here ...]
20039 \begin_inset Newline newline
20040 \end_inset
20041
20042 [...
20043  code to compile files ...]
20044 \begin_inset Newline newline
20045 \end_inset
20046
20047 @
20048 \end_layout
20049
20050 \begin_layout Standard
20051
20052 \emph on
20053 LIBDIR/examples/listerrors.lyx
20054 \emph default
20055
20056 \emph on
20057 LIBDIR/examples/Literate.lyx
20058 \emph default
20059 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
20060 ってもらうための例です。また、
20061 \emph on
20062 LIBDIR/examples/noweb2lyx.lyx
20063 \emph default
20064 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、LyXの文芸プログラミングのサポートがプログラム言語に依存
20065 しないことを示しています。
20066 \end_layout
20067
20068 \begin_layout Subsubsection
20069 LyXの設定
20070 \end_layout
20071
20072 \begin_layout Standard
20073 すべての文芸プログラムのための設定は、
20074 \begin_inset Flex MenuItem
20075 status collapsed
20076
20077 \begin_layout Plain Layout
20078 ツール\SpecialChar \menuseparator
20079 設定
20080 \end_layout
20081
20082 \end_inset
20083
20084 パネルの「変換子」タブですることができます。重要な部分を見ておきましょう。
20085 \end_layout
20086
20087 \begin_layout Description
20088 the
20089 \begin_inset space ~
20090 \end_inset
20091
20092
20093 \begin_inset Quotes eld
20094 \end_inset
20095
20096 literate
20097 \begin_inset Quotes erd
20098 \end_inset
20099
20100
20101 \begin_inset space ~
20102 \end_inset
20103
20104 format 書式タブで設定します。ここで、Noweb特有の設定を行います。
20105 \family sans
20106 GUI名
20107 \family default
20108
20109 \family typewriter
20110 NoWeb
20111 \family default
20112 に、拡張子を
20113 \family typewriter
20114 .nw
20115 \family default
20116 に設定してください。これによって、LyXに変換プロセスの第一段階でつくられるファイルに
20117 \family typewriter
20118 .nw
20119 \family default
20120 という拡張子をつけることを指示します。
20121 \end_layout
20122
20123 \begin_layout Description
20124 the
20125 \begin_inset space ~
20126 \end_inset
20127
20128
20129 \family sans
20130 Program
20131 \family default
20132
20133 \begin_inset space ~
20134 \end_inset
20135
20136 format これは空にしてください。この項目のただひとつの目的は変換の最終的なフォーマットを指定することです(これが設定されていると、このフォーマットからの変
20137 換を行えます)。
20138 \end_layout
20139
20140 \begin_layout Description
20141
20142 \family sans
20143 NoWeb
20144 \family default
20145 ->
20146 \family sans
20147 LaTeX
20148 \family default
20149  このコンバータは、weavingの段階を行います。Nowebの場合は、
20150 \begin_inset Quotes eld
20151 \end_inset
20152
20153
20154 \family typewriter
20155 noweave -delay -index $$i > $$o
20156 \family default
20157
20158 \begin_inset Quotes erd
20159 \end_inset
20160
20161 に設定してください。
20162 \end_layout
20163
20164 \begin_layout Description
20165
20166 \family sans
20167 NoWeb
20168 \family default
20169 ->
20170 \family sans
20171 Program
20172 \family default
20173  これは、tanglingを行います。以前に説明したように、
20174 \family typewriter
20175 build-script $$i
20176 \family default
20177  と設定して、Flagsに 
20178 \begin_inset Quotes eld
20179 \end_inset
20180
20181
20182 \family typewriter
20183 originaldir,parselog=listerrors
20184 \family default
20185
20186 \begin_inset Quotes erd
20187 \end_inset
20188
20189  を入れてください。
20190 \end_layout
20191
20192 \begin_layout Subsubsection
20193 デバッグ機能の拡張
20194 \end_layout
20195
20196 \begin_layout Standard
20197 ddd/gdbまたは他のデバッガで使えるserver-goto-file-rowという関数が新たにLyXサーバに実装されました。
20198 \end_layout
20199
20200 \begin_layout Standard
20201 ddd/gdbでデバッグしているとき、一つのキーストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-V
20202 になっています。この設定はdddで
20203 \begin_inset Flex MenuItem
20204 status collapsed
20205
20206 \begin_layout Plain Layout
20207 ツール\SpecialChar \menuseparator
20208 設定\SpecialChar \menuseparator
20209 ファイル書式
20210 \end_layout
20211
20212 \end_inset
20213
20214 ウインドウを表示して、
20215 \begin_inset Flex MenuItem
20216 status collapsed
20217
20218 \begin_layout Plain Layout
20219 編集プログラム
20220 \end_layout
20221
20222 \end_inset
20223
20224 エントリを変えると変えることができます。
20225 \end_layout
20226
20227 \begin_layout Standard
20228 新しいLyXサーバの関数と、このdddの機能を使うために
20229 \begin_inset Flex MenuItem
20230 status collapsed
20231
20232 \begin_layout Plain Layout
20233 編集プログラム
20234 \end_layout
20235
20236 \end_inset
20237
20238 を次のように設定してください。
20239 \end_layout
20240
20241 \begin_layout Standard
20242 \begin_inset VSpace defskip
20243 \end_inset
20244
20245
20246 \end_layout
20247
20248 \begin_layout Standard
20249
20250 \family sans
20251 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
20252 \end_layout
20253
20254 \begin_layout Standard
20255 \begin_inset VSpace defskip
20256 \end_inset
20257
20258
20259 \end_layout
20260
20261 \begin_layout Standard
20262 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddはLyXサーバに情報を
20263 送り、LyXは同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります
20264
20265 \end_layout
20266
20267 \begin_layout Standard
20268 この機能が動くにはLyXサーバが利用可能でなければなりません(既定ではLyXサーバーは使えないようになっています)。LyXサーバを使えるようにするには、
20269 \family sans
20270
20271 \begin_inset Flex MenuItem
20272 status collapsed
20273
20274 \begin_layout Plain Layout
20275
20276 \family sans
20277 設定
20278 \end_layout
20279
20280 \end_inset
20281
20282
20283 \family default
20284
20285 \family sans
20286
20287 \begin_inset Flex MenuItem
20288 status collapsed
20289
20290 \begin_layout Plain Layout
20291
20292 \family sans
20293 パス
20294 \end_layout
20295
20296 \end_inset
20297
20298
20299 \family default
20300 タブ)の
20301 \family sans
20302
20303 \begin_inset Flex MenuItem
20304 status collapsed
20305
20306 \begin_layout Plain Layout
20307
20308 \family sans
20309 LyXサーバーパイプ
20310 \family default
20311
20312 \end_layout
20313
20314 \end_inset
20315
20316
20317 \family default
20318
20319 \begin_inset Quotes eld
20320 \end_inset
20321
20322
20323 \family typewriter
20324 /home/<your-home-directory>/.lyx/lyxpipe
20325 \family default
20326
20327 \begin_inset Quotes erd
20328 \end_inset
20329
20330  のようにパスを指定してください。
20331 \end_layout
20332
20333 \begin_layout Standard
20334 詳しくは『
20335 \emph on
20336 取扱説明書カスタマイズ篇
20337 \emph default
20338 』のLyXサーバの説明を読んでください。
20339 \end_layout
20340
20341 \begin_layout Subsubsection
20342 ツールバーの拡張
20343 \end_layout
20344
20345 \begin_layout Standard
20346 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
20347 \family sans
20348 Standard
20349 \family default
20350
20351 \family sans
20352 Section
20353 \family default
20354
20355 \family sans
20356 LaTeX
20357 \family default
20358
20359 \family sans
20360 LyX-Code
20361 \family default
20362
20363 \family sans
20364 Chunk
20365 \family default
20366 環境用のボタンを用意しています。最後の一つはファイルメニューの Build Programエントリへのショートカットです。
20367 \end_layout
20368
20369 \begin_layout Standard
20370 LyXはツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
20371 \begin_inset Flex MenuItem
20372 status collapsed
20373
20374 \begin_layout Plain Layout
20375 表示\SpecialChar \menuseparator
20376 更新\SpecialChar \menuseparator
20377 DVI
20378 \end_layout
20379
20380 \end_inset
20381
20382
20383 \begin_inset Flex MenuItem
20384 status collapsed
20385
20386 \begin_layout Plain Layout
20387 表示\SpecialChar \menuseparator
20388 DVI
20389 \end_layout
20390
20391 \end_inset
20392
20393 を組み合わせたものになっています。
20394 \end_layout
20395
20396 \begin_layout LyX-Code
20397 Toolbar
20398 \end_layout
20399
20400 \begin_layout LyX-Code
20401   Layouts
20402 \end_layout
20403
20404 \begin_layout LyX-Code
20405   Icon "layout Standard"
20406 \end_layout
20407
20408 \begin_layout LyX-Code
20409   Icon "layout Section"
20410 \end_layout
20411
20412 \begin_layout LyX-Code
20413   Icon "layout LaTeX"
20414 \end_layout
20415
20416 \begin_layout LyX-Code
20417   Icon "layout LyX-Code"
20418 \end_layout
20419
20420 \begin_layout LyX-Code
20421   Icon "layout Chunk"
20422 \end_layout
20423
20424 \begin_layout LyX-Code
20425   Separator
20426 \end_layout
20427
20428 \begin_layout LyX-Code
20429   Icon "buffer-view"
20430 \end_layout
20431
20432 \begin_layout LyX-Code
20433   Icon "buffer-typeset"
20434 \end_layout
20435
20436 \begin_layout LyX-Code
20437   Icon "build-program"
20438 \end_layout
20439
20440 \begin_layout LyX-Code
20441   Separator
20442 \end_layout
20443
20444 \begin_layout LyX-Code
20445 .
20446 \end_layout
20447
20448 \begin_layout LyX-Code
20449 .
20450 \end_layout
20451
20452 \begin_layout LyX-Code
20453 .
20454 \end_layout
20455
20456 \begin_layout LyX-Code
20457 End
20458 \end_layout
20459
20460 \begin_layout Subsubsection
20461 色を変える
20462 \end_layout
20463
20464 \begin_layout Standard
20465 LyXではいくつもの色を
20466 \begin_inset Flex MenuItem
20467 status collapsed
20468
20469 \begin_layout Plain Layout
20470 設定
20471 \end_layout
20472
20473 \end_inset
20474
20475 で変えることができます。まず変えたいと思うのはLaTeXフォントカラーでしょう。既定では赤になっていますが、ChunkはLaTeXフォントを使い、文芸的プログラ
20476 ミングでは多くのChunkがあるためにそれらがすべて赤では疲れてしまいます。
20477 \begin_inset Flex MenuItem
20478 status collapsed
20479
20480 \begin_layout Plain Layout
20481 操作性\SpecialChar \menuseparator
20482
20483 \end_layout
20484
20485 \end_inset
20486
20487 タブでこの色を変えることができます。
20488 \end_layout
20489
20490 \begin_layout Standard
20491 次にすることは画面の改行文字を見えなくすることです。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少し違
20492 う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
20493 \end_layout
20494
20495 \begin_layout Subsection
20496
20497 \lang english
20498 LyX and knitr/Sweave
20499 \end_layout
20500
20501 \begin_layout Standard
20502
20503 \lang english
20504 Support for 
20505 \family sans
20506 knitr
20507 \family default
20508  and 
20509 \family sans
20510 Sweave
20511 \family default
20512  is documented in the 
20513 \emph on
20514 knitr.lyx
20515 \emph default
20516  example file and in the Sweave manual (menu 
20517 \family sans
20518 Help\SpecialChar \menuseparator
20519 Specific Manuals
20520 \family default
20521 ).
20522 \end_layout
20523
20524 \begin_layout Chapter
20525
20526 \lang english
20527 Special features
20528 \lang japanese
20529
20530 \begin_inset CommandInset label
20531 LatexCommand label
20532 name "chap:Special-features"
20533
20534 \end_inset
20535
20536
20537 \end_layout
20538
20539 \begin_layout Standard
20540
20541 \lang english
20542 You can do everything with LyX that you can do with LaTeX.
20543  However, LyX cannot support every LaTeX feature directly.
20544  But you can always use TeX Code.
20545  This chapter shows you some more special things you might want to use.
20546  For other special things you can do with figures, tables, floats, boxes
20547  and notes, have a look at the 
20548 \emph on
20549 EmbeddedObjects
20550 \emph default
20551  manual.
20552 \end_layout
20553
20554 \begin_layout Section
20555
20556 \lang english
20557 Multiple Text Columns
20558 \end_layout
20559
20560 \begin_layout Standard
20561
20562 \lang english
20563 This feature is independent of the option 
20564 \family sans
20565 Two-column document
20566 \family default
20567  in the document settings under 
20568 \family sans
20569 Text Layout
20570 \family default
20571 .
20572  If you want to have 2
20573 \begin_inset space ~
20574 \end_inset
20575
20576 columns for the whole document, it is recommended to use the 
20577 \family sans
20578 Two-column document
20579 \family default
20580  option.
20581  For all other cases use this feature.
20582 \end_layout
20583
20584 \begin_layout Standard
20585
20586 \lang english
20587 To use multiple text columns in your document, you have to load the module
20588  
20589 \family sans
20590 Multiple Columns
20591 \family default
20592  (menu 
20593 \family sans
20594 Document\SpecialChar \menuseparator
20595 Settings\SpecialChar \menuseparator
20596 Modules
20597 \family default
20598 ) and must have the LaTeX-package 
20599 \series bold
20600 multicol
20601 \series default
20602  installed.
20603 \end_layout
20604
20605 \begin_layout Standard
20606
20607 \lang english
20608 Footnotes within multiple columns will be placed at the bottom of the page
20609  and not under each column.
20610  Within the different columns you can use everything, with the limitation
20611  that for floats you need to use the float option 
20612 \family sans
20613 Span columns
20614 \family default
20615 .
20616 \end_layout
20617
20618 \begin_layout Subsection
20619
20620 \lang english
20621 Basics
20622 \end_layout
20623
20624 \begin_layout Standard
20625
20626 \lang english
20627 If you want to have 2 columns in your text, use the style 
20628 \family sans
20629 Begin Multiple Columns
20630 \family default
20631  where the columns should start.
20632  The content of the style is the number of the columns, so in this case
20633  use a 
20634 \begin_inset Quotes eld
20635 \end_inset
20636
20637 2
20638 \begin_inset Quotes erd
20639 \end_inset
20640
20641 .
20642  At the point where the columns should end use the style 
20643 \family sans
20644 End Multiple Columns
20645 \family default
20646  and keep it empty.
20647 \end_layout
20648
20649 \begin_layout Standard
20650
20651 \lang english
20652 Here is an example:
20653 \end_layout
20654
20655 \begin_layout Begin Multiple Columns
20656
20657 \lang english
20658 2
20659 \end_layout
20660
20661 \begin_layout Standard
20662 \noindent
20663
20664 \series bold
20665 \size small
20666 \lang english
20667 The Adventure of the Empty House
20668 \series default
20669
20670 \begin_inset Newline newline
20671 \end_inset
20672
20673 by 
20674 \noun on
20675 Sir Arthur Conan Doyle
20676 \end_layout
20677
20678 \begin_layout Standard
20679
20680 \size small
20681 \lang english
20682 It was in the spring of the year 1894 that all London was interested, and
20683  the fashionable world dismayed, by the murder of the Honourable Ronald
20684  Adair under most unusual and inexplicable circumstances.
20685  The public has already learned those particulars of the crime which came
20686  out in the police investigation, but a good deal was suppressed upon that
20687  occasion, since the case for the prosecution was so overwhelmingly strong
20688  that it was not necessary to bring forward all the facts.
20689  Only now, at the end of nearly ten years, am I allowed to supply those
20690  missing links which make up the whole of that remarkable chain.
20691  The crime was of interest in itself, but that interest was as nothing to
20692  me compared to the inconceivable sequel, which afforded me the greatest
20693  shock and surprise of any event in my adventurous life.
20694  Even now, after this long interval, I find myself thrilling as I think
20695  of it, and feeling once more that sudden flood of joy, amazement, and increduli
20696 ty which utterly submerged my mind.
20697  Let me say to that public, which has shown some interest in those glimpses
20698  which I have occasionally given them of the thoughts and actions of a very
20699  remarkable man, that they are not to blame me if I have not shared my knowledge
20700  with them, for I should have considered it my first duty to do so, had
20701  I not been barred by a positive prohibition from his own lips, which was
20702  only withdrawn upon the third of last month.
20703 \end_layout
20704
20705 \begin_layout End Multiple Columns
20706
20707 \end_layout
20708
20709 \begin_layout Standard
20710
20711 \lang english
20712 Here is an example with 3
20713 \begin_inset space ~
20714 \end_inset
20715
20716 columns:
20717 \end_layout
20718
20719 \begin_layout Begin Multiple Columns
20720
20721 \lang english
20722 3
20723 \end_layout
20724
20725 \begin_layout Standard
20726
20727 \size footnotesize
20728 \lang english
20729 It can be imagined that my close intimacy with Sherlock Holmes had interested
20730  me deeply in crime, and that after his disappearance I never failed to
20731  read with care the various problems which came before the public.
20732  And I even attempted, more than once, for my own private satisfaction,
20733  to employ his methods in their solution, though with indifferent success.
20734  There was none, however, which appealed to me like this tragedy of Ronald
20735  Adair.
20736  As I read the evidence at the inquest, which led up to a verdict of willful
20737  murder against some person or persons unknown, I realized more clearly
20738  than I had ever done the loss which the community had sustained by the
20739  death of Sherlock Holmes.
20740  There were points about this strange business which would, I was sure,
20741  have specially appealed to him, and the efforts of the police would have
20742  been supplemented, or more probably anticipated, by the trained observation
20743  and the alert mind of the first criminal agent in Europe.
20744  All day, as I drove upon my round, I turned over the case in my mind and
20745  found no explanation which appeared to me to be adequate.
20746  At the risk of telling a twice-told tale, I will recapitulate the facts
20747  as they were known to the public at the conclusion of the inquest.
20748 \end_layout
20749
20750 \begin_layout End Multiple Columns
20751
20752 \end_layout
20753
20754 \begin_layout Standard
20755
20756 \lang english
20757 You can have up to 10
20758 \begin_inset space ~
20759 \end_inset
20760
20761 columns if you want to, but that might not be very pleasant for the readers
20762  of your document.
20763 \end_layout
20764
20765 \begin_layout Standard
20766
20767 \lang english
20768 \begin_inset Newpage newpage
20769 \end_inset
20770
20771
20772 \end_layout
20773
20774 \begin_layout Subsection
20775
20776 \lang english
20777 Columns inside Columns
20778 \end_layout
20779
20780 \begin_layout Standard
20781
20782 \lang english
20783 You can also have columns inside columns:
20784 \end_layout
20785
20786 \begin_layout Begin Multiple Columns
20787
20788 \lang english
20789 2
20790 \end_layout
20791
20792 \begin_layout Standard
20793
20794 \size footnotesize
20795 \lang english
20796 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
20797  at that time governor of one of the Australian colonies.
20798  Adair's mother had returned from Australia to undergo the operation for
20799  cataract, and she, her son Ronald, and her daughter Hilda were living together
20800  at 427 Park Lane.
20801 \end_layout
20802
20803 \begin_layout Begin Multiple Columns
20804
20805 \lang english
20806 2
20807 \end_layout
20808
20809 \begin_layout Standard
20810
20811 \size footnotesize
20812 \lang english
20813 The youth moved in the best society–had, so far as was known, no enemies
20814  and no particular vices.
20815  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
20816  had been broken off by mutual consent some months before, and there was
20817  no sign that it had left any very profound feeling behind it.
20818  For the rest {sic} the man's life moved in a narrow and conventional circle,
20819  for his habits were quiet and his nature unemotional.
20820  Yet it was upon this easy-going young aristocrat that death came, in most
20821  strange and unexpected form, between the hours of ten and eleven-twenty
20822  on the night of March 30, 1894.
20823 \end_layout
20824
20825 \begin_layout End Multiple Columns
20826
20827 \end_layout
20828
20829 \begin_layout Standard
20830
20831 \size footnotesize
20832 \lang english
20833 Ronald Adair was fond of cards–playing continually, but never for such stakes
20834  as would hurt him.
20835  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
20836  It was shown that, after dinner on the day of his death, he had played
20837  a rubber of whist at the latter club.
20838  He had also played there in the afternoon.
20839
20840 \size default
20841  
20842 \size footnotesize
20843 The evidence of those who had played with him– Mr.
20844  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
20845  and that there was a fairly equal fall of the cards.
20846  Adair might have lost five pounds, but not more.
20847  His fortune was a considerable one, and such a loss could not in any way
20848  affect him.
20849  He had played nearly every day at one club or other, but he was a cautious
20850  player, and usually rose a winner.
20851  It came out in evidence that, in partnership with Colonel Moran, he had
20852  actually won as much as four hundred and twenty pounds in a sitting, some
20853  weeks before, from Godfrey Milner and Lord Balmoral.
20854  So much for his recent history as it came out at the inquest.
20855 \end_layout
20856
20857 \begin_layout End Multiple Columns
20858
20859 \end_layout
20860
20861 \begin_layout Subsection
20862
20863 \lang english
20864 Advanced Examples
20865 \end_layout
20866
20867 \begin_layout Standard
20868
20869 \lang english
20870 The examples in this section show some more special features of multiple
20871  columns.
20872 \end_layout
20873
20874 \begin_layout Standard
20875
20876 \lang english
20877 For more features of multiple columns, have a look at the documentation
20878  of the LaTeX-package 
20879 \series bold
20880 multicol
20881 \series default
20882 \lang japanese
20883
20884 \begin_inset CommandInset citation
20885 LatexCommand cite
20886 key "multicol"
20887
20888 \end_inset
20889
20890 .
20891 \end_layout
20892
20893 \begin_layout Subsubsection
20894
20895 \lang english
20896 Preface
20897 \end_layout
20898
20899 \begin_layout Standard
20900
20901 \lang english
20902 To add a preface text for multiple columns, add the command
20903 \end_layout
20904
20905 \begin_layout Standard
20906
20907 \series bold
20908 \lang english
20909 }[
20910 \end_layout
20911
20912 \begin_layout Standard
20913
20914 \lang english
20915 as TeX Code behind the number of columns in the
20916 \family sans
20917  Begin Multiple Columns
20918 \family default
20919  style.
20920  behind the command write the text.
20921  At the end of the style use the command
20922 \end_layout
20923
20924 \begin_layout Standard
20925
20926 \series bold
20927 \lang english
20928 ]{
20929 \end_layout
20930
20931 \begin_layout Standard
20932
20933 \lang english
20934 as TeX Code.
20935  An example with some preface text:
20936 \end_layout
20937
20938 \begin_layout Standard
20939
20940 \lang english
20941 \begin_inset VSpace bigskip
20942 \end_inset
20943
20944
20945 \end_layout
20946
20947 \begin_layout Begin Multiple Columns
20948
20949 \lang english
20950 2
20951 \begin_inset ERT
20952 status collapsed
20953
20954 \begin_layout Plain Layout
20955
20956 }[
20957 \end_layout
20958
20959 \end_inset
20960
20961 And the story continues and continues and continues and continues\SpecialChar \ldots{}
20962
20963 \begin_inset ERT
20964 status collapsed
20965
20966 \begin_layout Plain Layout
20967
20968 ]{
20969 \end_layout
20970
20971 \end_inset
20972
20973
20974 \end_layout
20975
20976 \begin_layout Standard
20977
20978 \size small
20979 \lang english
20980 On the evening of the crime, he returned from the club exactly at ten.
20981  His mother and sister were out spending the evening with a relation.
20982  The servant deposed that she heard him enter the front room on the second
20983  floor, generally used as his sitting-room.
20984  She had lit a fire there, and as it smoked she had opened the window.
20985  No sound was heard from the room until eleven-twenty, the hour of the return
20986  of Lady Maynooth and her daughter.
20987  Desiring to say good-night, she attempted to enter her son's room.
20988  The door was locked on the inside, and no answer could be got to their
20989  cries and knocking.
20990  Help was obtained, and the door forced.
20991  The unfortunate young man was found lying near the table.
20992  His head had been horribly mutilated by an expanding revolver bullet, but
20993  no weapon of any sort was to be found in the room.
20994 \end_layout
20995
20996 \begin_layout End Multiple Columns
20997
20998 \end_layout
20999
21000 \begin_layout Standard
21001
21002 \lang english
21003 You can also use a section heading as the preface if you use a section command
21004  as TeX Code behind the first TeX Code.
21005  For example the command
21006 \end_layout
21007
21008 \begin_layout Standard
21009
21010 \series bold
21011 \lang english
21012
21013 \backslash
21014 subsection{subsection title}
21015 \end_layout
21016
21017 \begin_layout Standard
21018
21019 \lang english
21020 creates a subsection.
21021  In this example the preface is a subsubsection:
21022 \end_layout
21023
21024 \begin_layout Begin Multiple Columns
21025
21026 \lang english
21027 2
21028 \begin_inset ERT
21029 status collapsed
21030
21031 \begin_layout Plain Layout
21032
21033 }[
21034 \end_layout
21035
21036 \end_inset
21037
21038
21039 \begin_inset ERT
21040 status collapsed
21041
21042 \begin_layout Plain Layout
21043
21044
21045 \backslash
21046 subsubsection{
21047 \end_layout
21048
21049 \end_inset
21050
21051 This is a subsubsection heading as a preface
21052 \begin_inset ERT
21053 status collapsed
21054
21055 \begin_layout Plain Layout
21056
21057 }
21058 \end_layout
21059
21060 \end_inset
21061
21062
21063 \begin_inset ERT
21064 status collapsed
21065
21066 \begin_layout Plain Layout
21067
21068 ]{
21069 \end_layout
21070
21071 \end_inset
21072
21073
21074 \end_layout
21075
21076 \begin_layout Standard
21077
21078 \size small
21079 \lang english
21080 A minute examination of the circumstances served only to make the case more
21081  complex.
21082  In the first place, no reason could be given why the young man should have
21083  fastened the door upon the inside.
21084  There was the possibility that the murderer had done this, and had afterwards
21085  escaped by the window.
21086  The drop was at least twenty feet, however, and a bed of crocuses in full
21087  bloom lay beneath.
21088  Neither the flowers nor the earth showed any sign of having been disturbed,
21089  nor were there any marks upon the narrow strip of grass which separated
21090  the house from the road.
21091  Apparently, therefore, it was the young man himself who had fastened the
21092  door.
21093  But how did he come by his death? No one could have climbed up to the window
21094  without leaving traces.
21095  Suppose a man had fired through the window, he would indeed be a remarkable
21096  shot who could with a revolver inflict so deadly a wound.
21097  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
21098  a hundred yards of the house.
21099  No one had heard a shot.
21100 \end_layout
21101
21102 \begin_layout End Multiple Columns
21103
21104 \end_layout
21105
21106 \begin_layout Standard
21107
21108 \lang english
21109 If there is less vertical space left on the page at the beginning of the
21110  multiple columns than needed for 6
21111 \begin_inset space ~
21112 \end_inset
21113
21114 text lines, a page break will be inserted before the multiple columns.
21115  Depending on the number of lines of the preface text, you might want to
21116  change this value.
21117  It is determined by inserting the command
21118 \end_layout
21119
21120 \begin_layout Standard
21121
21122 \series bold
21123 \lang english
21124 ][number
21125 \backslash
21126 baselineskip
21127 \end_layout
21128
21129 \begin_layout Standard
21130
21131 \lang english
21132 as TeX Code behind the preface definition but before the final 
21133 \series bold
21134 ]{
21135 \series default
21136  command.
21137  
21138 \emph on
21139 number
21140 \emph default
21141  is hereby the number of text lines.
21142  In this example the space is set to 7
21143 \begin_inset space ~
21144 \end_inset
21145
21146 text lines:
21147 \end_layout
21148
21149 \begin_layout Begin Multiple Columns
21150
21151 \lang english
21152 2
21153 \begin_inset ERT
21154 status collapsed
21155
21156 \begin_layout Plain Layout
21157
21158 }[
21159 \end_layout
21160
21161 \end_inset
21162
21163
21164 \begin_inset ERT
21165 status collapsed
21166
21167 \begin_layout Plain Layout
21168
21169
21170 \backslash
21171 subsubsection{
21172 \end_layout
21173
21174 \end_inset
21175
21176 This is the sectioning command
21177 \begin_inset Newline newline
21178 \end_inset
21179
21180 as a preface and
21181 \begin_inset Newline newline
21182 \end_inset
21183
21184 with multiple text lines
21185 \begin_inset ERT
21186 status collapsed
21187
21188 \begin_layout Plain Layout
21189
21190 }
21191 \end_layout
21192
21193 \end_inset
21194
21195
21196 \begin_inset ERT
21197 status collapsed
21198
21199 \begin_layout Plain Layout
21200
21201 ][7
21202 \backslash
21203 baselineskip
21204 \end_layout
21205
21206 \end_inset
21207
21208
21209 \begin_inset ERT
21210 status collapsed
21211
21212 \begin_layout Plain Layout
21213
21214 ]{
21215 \end_layout
21216
21217 \end_inset
21218
21219
21220 \end_layout
21221
21222 \begin_layout Standard
21223
21224 \size small
21225 \lang english
21226 On the evening of the crime, he returned from the club exactly at ten.
21227  His mother and sister were out spending the evening with a relation.
21228  The servant deposed that she heard him enter the front room on the second
21229  floor, generally used as his sitting-room.
21230  She had lit a fire there, and as it smoked she had opened the window.
21231  No sound was heard from the room until eleven-twenty, the hour of the return
21232  of Lady Maynooth and her daughter.
21233  Desiring to say good-night, she attempted to enter her son's room.
21234  The door was locked on the inside, and no answer could be got to their
21235  cries and knocking.
21236  Help was obtained, and the door forced.
21237  The unfortunate young man was found lying near the table.
21238  His head had been horribly mutilated by an expanding revolver bullet, but
21239  no weapon of any sort was to be found in the room.
21240 \end_layout
21241
21242 \begin_layout End Multiple Columns
21243
21244 \end_layout
21245
21246 \begin_layout Subsubsection
21247
21248 \lang english
21249 Surrounding Space
21250 \end_layout
21251
21252 \begin_layout Standard
21253
21254 \lang english
21255 The amount of space before and after multiple columns can be changed by
21256  changing the length 
21257 \series bold
21258
21259 \backslash
21260 multicolsep
21261 \series default
21262 .
21263  For example the command
21264 \end_layout
21265
21266 \begin_layout Standard
21267
21268 \series bold
21269 \lang english
21270
21271 \backslash
21272 setlength{
21273 \backslash
21274 multicolsep}{3cm}
21275 \end_layout
21276
21277 \begin_layout Standard
21278
21279 \lang english
21280 in TeX Code changes its value to 3
21281 \begin_inset space \thinspace{}
21282 \end_inset
21283
21284 cm.
21285  The change must be made before the multiple columns' start.
21286  The predefined value is 13
21287 \begin_inset space \thinspace{}
21288 \end_inset
21289
21290 pt.
21291 \end_layout
21292
21293 \begin_layout Standard
21294
21295 \lang english
21296 For this example 
21297 \series bold
21298
21299 \backslash
21300 multicolsep
21301 \series default
21302  was set to 2.5
21303 \begin_inset space \thinspace{}
21304 \end_inset
21305
21306 cm:
21307 \end_layout
21308
21309 \begin_layout Standard
21310
21311 \lang english
21312 \begin_inset ERT
21313 status open
21314
21315 \begin_layout Plain Layout
21316
21317
21318 \backslash
21319 setlength{
21320 \backslash
21321 multicolsep}{2.5cm}
21322 \end_layout
21323
21324 \end_inset
21325
21326
21327 \end_layout
21328
21329 \begin_layout Begin Multiple Columns
21330
21331 \lang english
21332 2
21333 \end_layout
21334
21335 \begin_layout Standard
21336
21337 \size small
21338 \lang english
21339 All day I turned these facts over in my mind, endeavouring to hit upon some
21340  theory which could reconcile them all, and to find that line of least resistanc
21341 e which my poor friend had declared to be the starting-point of every investigat
21342 ion.
21343  I confess that I made little progress.
21344  In the evening I strolled across the Park, and found myself about six o'clock
21345  at the Oxford Street end of Park Lane.
21346  A group of loafers upon the pavements, all staring up at a particular window,
21347  directed me to the house which I had come to see.
21348  A tall, thin man with coloured glasses, whom I strongly suspected of being
21349  a plain-clothes detective, was pointing out some theory of his own, while
21350  the others crowded round to listen to what he said.
21351  I got as near him as I could, but his observations seemed to me to be absurd,
21352  so I withdrew again in some disgust.
21353  As I did so I struck against an elderly, deformed man, who had been behind
21354  me, and I knocked down several books which he was carrying.
21355 \end_layout
21356
21357 \begin_layout End Multiple Columns
21358
21359 \end_layout
21360
21361 \begin_layout Standard
21362
21363 \lang english
21364 \begin_inset Note Greyedout
21365 status open
21366
21367 \begin_layout Plain Layout
21368
21369 \series bold
21370 \lang english
21371 Note:
21372 \series default
21373  The values you set with 
21374 \series bold
21375
21376 \backslash
21377 setlength
21378 \series default
21379  will be used for all following multiple columns until to change them again.
21380 \end_layout
21381
21382 \end_inset
21383
21384
21385 \end_layout
21386
21387 \begin_layout Standard
21388
21389 \lang english
21390 \begin_inset ERT
21391 status collapsed
21392
21393 \begin_layout Plain Layout
21394
21395
21396 \backslash
21397 setlength{
21398 \backslash
21399 multicolsep}{13pt}
21400 \end_layout
21401
21402 \end_inset
21403
21404
21405 \begin_inset Note Note
21406 status collapsed
21407
21408 \begin_layout Plain Layout
21409
21410 \lang english
21411 go back to the default
21412 \end_layout
21413
21414 \end_inset
21415
21416
21417 \end_layout
21418
21419 \begin_layout Subsubsection
21420
21421 \lang english
21422 Column Separation
21423 \end_layout
21424
21425 \begin_layout Standard
21426
21427 \lang english
21428 The width of the columns is automatically calculated, but you can modify
21429  the space between the columns.
21430  This is done by changing the length 
21431 \series bold
21432
21433 \backslash
21434 columnsep
21435 \series default
21436 .
21437  Its predefined value is 10
21438 \begin_inset space \thinspace{}
21439 \end_inset
21440
21441 pt.
21442  Here is an example where 
21443 \series bold
21444
21445 \backslash
21446 columnsep
21447 \series default
21448  is set to 3
21449 \begin_inset space \thinspace{}
21450 \end_inset
21451
21452 cm:
21453 \end_layout
21454
21455 \begin_layout Standard
21456
21457 \lang english
21458 \begin_inset ERT
21459 status open
21460
21461 \begin_layout Plain Layout
21462
21463
21464 \backslash
21465 setlength{
21466 \backslash
21467 columnsep}{3cm}
21468 \end_layout
21469
21470 \end_inset
21471
21472
21473 \end_layout
21474
21475 \begin_layout Begin Multiple Columns
21476
21477 \lang english
21478 2
21479 \end_layout
21480
21481 \begin_layout Standard
21482
21483 \size small
21484 \lang english
21485 My observations of No.
21486 \begin_inset space \space{}
21487 \end_inset
21488
21489 427 Park Lane did little to clear up the problem in which I was interested.
21490  The house was separated from the street by a low wall and railing, the
21491  whole not more than five feet high.
21492  It was perfectly easy, therefore, for anyone to get into the garden, but
21493  the window was entirely inaccessible, since there was no water pipe or
21494  anything which could help the most active man to climb it.
21495  More puzzled than ever, I retraced my steps to Kensington.
21496  I had not been in my study five minutes when the maid entered to say that
21497  a person desired to see me.
21498  To my astonishment it was none other than my strange old book collector,
21499  his sharp, wizened face peering out from a frame of white hair, and his
21500  precious volumes, a dozen of them at least, wedged under his right arm.
21501 \end_layout
21502
21503 \begin_layout End Multiple Columns
21504
21505 \end_layout
21506
21507 \begin_layout Standard
21508
21509 \lang english
21510 \begin_inset ERT
21511 status collapsed
21512
21513 \begin_layout Plain Layout
21514
21515
21516 \backslash
21517 setlength{
21518 \backslash
21519 columnsep}{10pt}
21520 \end_layout
21521
21522 \end_inset
21523
21524
21525 \begin_inset Note Note
21526 status collapsed
21527
21528 \begin_layout Plain Layout
21529
21530 \lang english
21531 go back to the default
21532 \end_layout
21533
21534 \end_inset
21535
21536
21537 \end_layout
21538
21539 \begin_layout Subsubsection
21540
21541 \lang english
21542 Vertical Lines
21543 \end_layout
21544
21545 \begin_layout Standard
21546
21547 \lang english
21548 Between the columns a rule with a width of the length 
21549 \series bold
21550
21551 \backslash
21552 columnseprule
21553 \series default
21554  is placed.
21555  If this rule width is set to 0
21556 \begin_inset space \thinspace{}
21557 \end_inset
21558
21559 pt (this is the default), the rule is suppressed.
21560  In the following example, the line separating the columns is 2
21561 \begin_inset space \thinspace{}
21562 \end_inset
21563
21564 pt wide.
21565 \end_layout
21566
21567 \begin_layout Standard
21568
21569 \lang english
21570 \begin_inset ERT
21571 status open
21572
21573 \begin_layout Plain Layout
21574
21575
21576 \backslash
21577 setlength{
21578 \backslash
21579 columnseprule}{2pt}
21580 \end_layout
21581
21582 \end_inset
21583
21584
21585 \end_layout
21586
21587 \begin_layout Begin Multiple Columns
21588
21589 \lang english
21590 2
21591 \end_layout
21592
21593 \begin_layout Standard
21594
21595 \size small
21596 \lang english
21597 \begin_inset Quotes eld
21598 \end_inset
21599
21600 You're surprised to see me, sir,
21601 \begin_inset Quotes erd
21602 \end_inset
21603
21604  said he, in a strange, croaking voice.
21605 \end_layout
21606
21607 \begin_layout Standard
21608
21609 \size small
21610 \lang english
21611 I acknowledged that I was.
21612 \end_layout
21613
21614 \begin_layout Standard
21615
21616 \size small
21617 \lang english
21618 \begin_inset Quotes eld
21619 \end_inset
21620
21621 Well, I've a conscience, sir, and when I chanced to see you go into this
21622  house, as I came hobbling after you, I thought to myself, I'll just step
21623  in and see that kind gentleman, and tell him that if I was a bit gruff
21624  in my manner there was not any harm meant, and that I am much obliged to
21625  him for picking up my books.
21626 \begin_inset Quotes erd
21627 \end_inset
21628
21629
21630 \end_layout
21631
21632 \begin_layout Standard
21633
21634 \size small
21635 \lang english
21636 \begin_inset Quotes eld
21637 \end_inset
21638
21639 You make too much of a trifle,
21640 \begin_inset Quotes erd
21641 \end_inset
21642
21643  said I.
21644  
21645 \begin_inset Quotes eld
21646 \end_inset
21647
21648 May I ask how you knew who I was?
21649 \begin_inset Quotes erd
21650 \end_inset
21651
21652
21653 \end_layout
21654
21655 \begin_layout Standard
21656
21657 \size small
21658 \lang english
21659 \begin_inset Quotes eld
21660 \end_inset
21661
21662 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
21663  you'll find my little bookshop at the corner of Church Street, and very
21664  happy to see you, I am sure.
21665  Maybe you collect yourself, sir.
21666  Here's 
21667 \noun on
21668 British
21669 \begin_inset space ~
21670 \end_inset
21671
21672 Birds
21673 \noun default
21674 , and 
21675 \noun on
21676 Catullus
21677 \noun default
21678 , and 
21679 \noun on
21680 The Holy War
21681 \noun default
21682 --a bargain, every one of them.
21683  With five volumes you could just fill that gap on that second shelf.
21684  It looks untidy, does it not, sir?
21685 \begin_inset Quotes erd
21686 \end_inset
21687
21688
21689 \end_layout
21690
21691 \begin_layout End Multiple Columns
21692
21693 \end_layout
21694
21695 \begin_layout Standard
21696
21697 \lang english
21698 \begin_inset ERT
21699 status collapsed
21700
21701 \begin_layout Plain Layout
21702
21703
21704 \backslash
21705 setlength{
21706 \backslash
21707 columnseprule}{0pt}
21708 \end_layout
21709
21710 \end_inset
21711
21712
21713 \begin_inset Note Note
21714 status collapsed
21715
21716 \begin_layout Plain Layout
21717
21718 \lang english
21719 go back to the default
21720 \end_layout
21721
21722 \end_inset
21723
21724
21725 \end_layout
21726
21727 \begin_layout Standard
21728 \begin_inset Newpage newpage
21729 \end_inset
21730
21731
21732 \end_layout
21733
21734 \begin_layout Section
21735 標準的でない形の段落
21736 \end_layout
21737
21738 \begin_layout Standard
21739 \noindent
21740
21741 \lang english
21742 LaTeX as well as any other text processor uses by default rectangular paragraphs.
21743  For special cases like for example posters, invitation cards or poems you
21744  can modify the paragraph shape to one of your choice.
21745  This can be done by using the LaTeX-package 
21746 \series bold
21747 shapepar
21748 \series default
21749  which is loaded by using in the document settings the module 
21750 \family sans
21751 Custom paragraph shapes
21752 \family default
21753 .
21754 \end_layout
21755
21756 \begin_layout Subsection
21757
21758 \lang english
21759 Predefined shapes
21760 \end_layout
21761
21762 \begin_layout Standard
21763
21764 \series bold
21765 \lang english
21766 shapepar
21767 \series default
21768  provides the following shapes:
21769 \end_layout
21770
21771 \begin_layout Standard
21772
21773 \lang english
21774 \begin_inset Tabular
21775 <lyxtabular version="3" rows="13" columns="3">
21776 <features rotate="0" booktabs="true" islongtable="true" longtabularalignment="center">
21777 <column alignment="center" valignment="middle" width="16col%">
21778 <column alignment="center" valignment="middle" width="40col%">
21779 <column alignment="center" valignment="middle" width="35col%">
21780 <row endhead="true">
21781 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21782 \begin_inset Text
21783
21784 \begin_layout Plain Layout
21785
21786 \lang english
21787 Name
21788 \end_layout
21789
21790 \end_inset
21791 </cell>
21792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21793 \begin_inset Text
21794
21795 \begin_layout Plain Layout
21796
21797 \lang english
21798 Description
21799 \end_layout
21800
21801 \end_inset
21802 </cell>
21803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21804 \begin_inset Text
21805
21806 \begin_layout Plain Layout
21807
21808 \lang english
21809 Annotation
21810 \end_layout
21811
21812 \end_inset
21813 </cell>
21814 </row>
21815 <row>
21816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21817 \begin_inset Text
21818
21819 \begin_layout Plain Layout
21820
21821 \lang english
21822 CDlabel
21823 \end_layout
21824
21825 \end_inset
21826 </cell>
21827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21828 \begin_inset Text
21829
21830 \begin_layout Plain Layout
21831
21832 \lang english
21833 Circle with circular hole (in the size of a CD/DVD)
21834 \end_layout
21835
21836 \end_inset
21837 </cell>
21838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21839 \begin_inset Text
21840
21841 \begin_layout Plain Layout
21842
21843 \lang english
21844 Cannot be scaled, take care there is not too much text
21845 \end_layout
21846
21847 \end_inset
21848 </cell>
21849 </row>
21850 <row>
21851 <cell alignment="center" valignment="top" topline="true" usebox="none">
21852 \begin_inset Text
21853
21854 \begin_layout Plain Layout
21855
21856 \lang english
21857 Circle
21858 \end_layout
21859
21860 \end_inset
21861 </cell>
21862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21863 \begin_inset Text
21864
21865 \begin_layout Plain Layout
21866
21867 \lang english
21868 Circle
21869 \end_layout
21870
21871 \end_inset
21872 </cell>
21873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21874 \begin_inset Text
21875
21876 \begin_layout Plain Layout
21877
21878 \lang english
21879 Fragile, calculation might fail
21880 \end_layout
21881
21882 \end_inset
21883 </cell>
21884 </row>
21885 <row>
21886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21887 \begin_inset Text
21888
21889 \begin_layout Plain Layout
21890
21891 \lang english
21892 Diamond
21893 \end_layout
21894
21895 \end_inset
21896 </cell>
21897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21898 \begin_inset Text
21899
21900 \begin_layout Plain Layout
21901
21902 \lang english
21903 Rhomboid (symbolizing a 
21904 \begin_inset Quotes eld
21905 \end_inset
21906
21907 diamond
21908 \begin_inset Quotes erd
21909 \end_inset
21910
21911 )
21912 \end_layout
21913
21914 \end_inset
21915 </cell>
21916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21917 \begin_inset Text
21918
21919 \begin_layout Plain Layout
21920
21921 \lang english
21922 -
21923 \end_layout
21924
21925 \end_inset
21926 </cell>
21927 </row>
21928 <row>
21929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21930 \begin_inset Text
21931
21932 \begin_layout Plain Layout
21933
21934 \lang english
21935 Heart
21936 \end_layout
21937
21938 \end_inset
21939 </cell>
21940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21941 \begin_inset Text
21942
21943 \begin_layout Plain Layout
21944
21945 \lang english
21946 Heart-like shape
21947 \end_layout
21948
21949 \end_inset
21950 </cell>
21951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21952 \begin_inset Text
21953
21954 \begin_layout Plain Layout
21955
21956 \lang english
21957 -
21958 \end_layout
21959
21960 \end_inset
21961 </cell>
21962 </row>
21963 <row>
21964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21965 \begin_inset Text
21966
21967 \begin_layout Plain Layout
21968
21969 \lang english
21970 Hexagon
21971 \end_layout
21972
21973 \end_inset
21974 </cell>
21975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21976 \begin_inset Text
21977
21978 \begin_layout Plain Layout
21979
21980 \lang english
21981 Hexagon
21982 \end_layout
21983
21984 \end_inset
21985 </cell>
21986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21987 \begin_inset Text
21988
21989 \begin_layout Plain Layout
21990
21991 \lang english
21992 -
21993 \end_layout
21994
21995 \end_inset
21996 </cell>
21997 </row>
21998 <row>
21999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22000 \begin_inset Text
22001
22002 \begin_layout Plain Layout
22003
22004 \lang english
22005 Nut
22006 \end_layout
22007
22008 \end_inset
22009 </cell>
22010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22011 \begin_inset Text
22012
22013 \begin_layout Plain Layout
22014
22015 \lang english
22016 Nut for bolt (hexagon with circular hole)
22017 \end_layout
22018
22019 \end_inset
22020 </cell>
22021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22022 \begin_inset Text
22023
22024 \begin_layout Plain Layout
22025
22026 \lang english
22027 -
22028 \end_layout
22029
22030 \end_inset
22031 </cell>
22032 </row>
22033 <row>
22034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22035 \begin_inset Text
22036
22037 \begin_layout Plain Layout
22038
22039 \lang english
22040 Square
22041 \end_layout
22042
22043 \end_inset
22044 </cell>
22045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22046 \begin_inset Text
22047
22048 \begin_layout Plain Layout
22049
22050 \lang english
22051 Square
22052 \end_layout
22053
22054 \end_inset
22055 </cell>
22056 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22057 \begin_inset Text
22058
22059 \begin_layout Plain Layout
22060
22061 \lang english
22062 -
22063 \end_layout
22064
22065 \end_inset
22066 </cell>
22067 </row>
22068 <row>
22069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22070 \begin_inset Text
22071
22072 \begin_layout Plain Layout
22073
22074 \lang english
22075 Star
22076 \end_layout
22077
22078 \end_inset
22079 </cell>
22080 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22081 \begin_inset Text
22082
22083 \begin_layout Plain Layout
22084
22085 \lang english
22086 Five-point star
22087 \end_layout
22088
22089 \end_inset
22090 </cell>
22091 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22092 \begin_inset Text
22093
22094 \begin_layout Plain Layout
22095
22096 \lang english
22097 -
22098 \end_layout
22099
22100 \end_inset
22101 </cell>
22102 </row>
22103 <row>
22104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22105 \begin_inset Text
22106
22107 \begin_layout Plain Layout
22108
22109 \lang english
22110 Candle
22111 \end_layout
22112
22113 \end_inset
22114 </cell>
22115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22116 \begin_inset Text
22117
22118 \begin_layout Plain Layout
22119
22120 \lang english
22121 Burning candle
22122 \end_layout
22123
22124 \end_inset
22125 </cell>
22126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22127 \begin_inset Text
22128
22129 \begin_layout Plain Layout
22130
22131 \lang english
22132 -
22133 \end_layout
22134
22135 \end_inset
22136 </cell>
22137 </row>
22138 <row>
22139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22140 \begin_inset Text
22141
22142 \begin_layout Plain Layout
22143
22144 \lang english
22145 Drop down/up
22146 \end_layout
22147
22148 \end_inset
22149 </cell>
22150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22151 \begin_inset Text
22152
22153 \begin_layout Plain Layout
22154
22155 \lang english
22156 Normal/reversed rain drop
22157 \end_layout
22158
22159 \end_inset
22160 </cell>
22161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22162 \begin_inset Text
22163
22164 \begin_layout Plain Layout
22165
22166 \lang english
22167 Fragile, calculation might fail
22168 \end_layout
22169
22170 \end_inset
22171 </cell>
22172 </row>
22173 <row>
22174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22175 \begin_inset Text
22176
22177 \begin_layout Plain Layout
22178
22179 \lang english
22180 TeX
22181 \end_layout
22182
22183 \end_inset
22184 </cell>
22185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22186 \begin_inset Text
22187
22188 \begin_layout Plain Layout
22189
22190 \lang english
22191 The TeX logo
22192 \end_layout
22193
22194 \end_inset
22195 </cell>
22196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22197 \begin_inset Text
22198
22199 \begin_layout Plain Layout
22200
22201 \lang english
22202 -
22203 \end_layout
22204
22205 \end_inset
22206 </cell>
22207 </row>
22208 <row>
22209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22210 \begin_inset Text
22211
22212 \begin_layout Plain Layout
22213
22214 \lang english
22215 Triangle up/down/
22216 \begin_inset Newline newline
22217 \end_inset
22218
22219 left/right
22220 \end_layout
22221
22222 \end_inset
22223 </cell>
22224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22225 \begin_inset Text
22226
22227 \begin_layout Plain Layout
22228
22229 \lang english
22230 Triangles in different orientations
22231 \end_layout
22232
22233 \end_inset
22234 </cell>
22235 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22236 \begin_inset Text
22237
22238 \begin_layout Plain Layout
22239
22240 \lang english
22241 -
22242 \end_layout
22243
22244 \end_inset
22245 </cell>
22246 </row>
22247 </lyxtabular>
22248
22249 \end_inset
22250
22251
22252 \end_layout
22253
22254 \begin_layout Standard
22255
22256 \lang english
22257 To use a shape for your paragraph, simply select it in LyX's pull-down box
22258  for environments in the toolbar.
22259 \end_layout
22260
22261 \begin_layout Standard
22262 \begin_inset Newpage newpage
22263 \end_inset
22264
22265
22266 \end_layout
22267
22268 \begin_layout Standard
22269
22270 \lang english
22271 Here is an example paragraph in the shape of a nut:
22272 \end_layout
22273
22274 \begin_layout Standard
22275 \begin_inset VSpace bigskip
22276 \end_inset
22277
22278
22279 \end_layout
22280
22281 \begin_layout Nut
22282
22283 \lang latin
22284 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22285  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22286  voluptua.
22287  At vero eos et accusam et justo duo dolores et ea rebum.
22288  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
22289  sit amet.
22290  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22291  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22292  voluptua.
22293 \end_layout
22294
22295 \begin_layout Standard
22296 \begin_inset VSpace bigskip
22297 \end_inset
22298
22299
22300 \end_layout
22301
22302 \begin_layout Standard
22303
22304 \lang english
22305 \begin_inset Note Greyedout
22306 status open
22307
22308 \begin_layout Plain Layout
22309
22310 \series bold
22311 \lang english
22312 Note
22313 \series default
22314 : shapepar paragraphs cannot run over a page break.
22315 \end_layout
22316
22317 \end_inset
22318
22319
22320 \end_layout
22321
22322 \begin_layout Standard
22323 \begin_inset VSpace bigskip
22324 \end_inset
22325
22326
22327 \end_layout
22328
22329 \begin_layout Standard
22330
22331 \series bold
22332 \lang english
22333 shapepar
22334 \series default
22335  takes care that the shape will always be preserved, no matter how much
22336  text is in the paragraph.
22337  Therefore the paragraph size changes with the amount of contained text.
22338  This can lead to paragraph sizes exceeding the page margins.
22339  To demonstrate the size scaling, here is the same example paragraph but
22340  with twice as much text:
22341 \end_layout
22342
22343 \begin_layout Standard
22344 \begin_inset Newpage newpage
22345 \end_inset
22346
22347
22348 \end_layout
22349
22350 \begin_layout Nut
22351
22352 \lang latin
22353 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22354  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22355  voluptua.
22356  At vero eos et accusam et justo duo dolores et ea rebum.
22357  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
22358  sit amet.
22359  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22360  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22361  voluptua.
22362  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22363  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22364  voluptua.
22365  At vero eos et accusam et justo duo dolores et ea rebum.
22366  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
22367  sit amet.
22368  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22369  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22370  voluptua.
22371 \end_layout
22372
22373 \begin_layout Standard
22374 \begin_inset VSpace bigskip
22375 \end_inset
22376
22377
22378 \end_layout
22379
22380 \begin_layout Standard
22381
22382 \lang english
22383 An exception is the shape 
22384 \family sans
22385 CDlabel
22386 \family default
22387 .
22388  It cannot be scaled because it must fit the size of a CD/DVD.
22389  Therefore the amount of text that fits into the shape is limited.
22390 \begin_inset Newline newline
22391 \end_inset
22392
22393 The 
22394 \family sans
22395 drop
22396 \family default
22397  shapes and the 
22398 \family sans
22399 circle
22400 \family default
22401  shape are fragile, meaning that the calculation of their size can fail,
22402  depending on the amount of text.
22403  You will then get the LaTeX error 
22404 \begin_inset Quotes eld
22405 \end_inset
22406
22407 Arithmetic overflow
22408 \begin_inset Quotes erd
22409 \end_inset
22410
22411 .
22412  In this case one can try to remove or add some text; if nothing works one
22413  has to use another shape.
22414 \end_layout
22415
22416 \begin_layout Standard
22417 \begin_inset VSpace bigskip
22418 \end_inset
22419
22420
22421 \end_layout
22422
22423 \begin_layout Standard
22424
22425 \lang english
22426 For shapes with tips you will maybe see that LaTeX's hyphenation routine
22427  fails for text in the tips.
22428  Therefore it is often necessary to add hyphenation points 
22429 \family sans
22430 (
22431 \begin_inset Info
22432 type  "shortcut"
22433 arg   "specialchar-insert hyphenation"
22434 \end_inset
22435
22436
22437 \family default
22438 ) to the corresponding text parts.
22439 \end_layout
22440
22441 \begin_layout Standard
22442 \begin_inset VSpace bigskip
22443 \end_inset
22444
22445
22446 \end_layout
22447
22448 \begin_layout Standard
22449
22450 \lang english
22451 Shapepar paragraphs are always placed on the page that their left border
22452  touches the left page margin.
22453  You can therefore not use the paragraph dialog to align such paragraphs.
22454  A solution is to put the paragraph into a minipage or parbox and align
22455  the box.
22456  The problem is hereby to find the right width for the box.
22457  Because if it is too wide and you center the box, the paragraph is not
22458  centered too because it sticks at the left side of the box.
22459  So you might have to play a bit with the width until it fits.
22460  Here are two triangular paragraphs, the first one is not aligned, the second
22461  one is centered:
22462 \end_layout
22463
22464 \begin_layout Standard
22465 \begin_inset Newpage newpage
22466 \end_inset
22467
22468
22469 \end_layout
22470
22471 \begin_layout Triangle up
22472
22473 \lang latin
22474 Lo\SpecialChar \-
22475 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22476  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22477  voluptua.
22478  At vero eos et accusam et justo duo dolores et ea rebum.
22479  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
22480  sit amet.
22481 \end_layout
22482
22483 \begin_layout Standard
22484 \begin_inset VSpace bigskip
22485 \end_inset
22486
22487
22488 \end_layout
22489
22490 \begin_layout Standard
22491 \align center
22492 \begin_inset Box Frameless
22493 position "t"
22494 hor_pos "c"
22495 has_inner_box 1
22496 inner_pos "t"
22497 use_parbox 1
22498 use_makebox 0
22499 width "42col%"
22500 special "none"
22501 height "1in"
22502 height_special "totalheight"
22503 status open
22504
22505 \begin_layout Triangle up
22506
22507 \lang latin
22508 Lo\SpecialChar \-
22509 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22510  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22511  voluptua.
22512  At vero eos et accusam et justo duo dolores et ea rebum.
22513  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
22514  sit amet.
22515 \end_layout
22516
22517 \end_inset
22518
22519
22520 \end_layout
22521
22522 \begin_layout Subsection
22523
22524 \lang english
22525 Custom shapes
22526 \end_layout
22527
22528 \begin_layout Standard
22529
22530 \lang english
22531 You can define any shape you want.
22532  Doing this manually is a lot of work because every coordinate must be specified.
22533  But there is a way to let the computer calculate the coordinates:
22534 \end_layout
22535
22536 \begin_layout Enumerate
22537
22538 \lang english
22539 Install the program 
22540 \lang japanese
22541
22542 \begin_inset CommandInset href
22543 LatexCommand href
22544 name "Jpgfdraw"
22545 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
22546
22547 \end_inset
22548
22549 .
22550 \end_layout
22551
22552 \begin_layout Enumerate
22553
22554 \lang english
22555 In 
22556 \family sans
22557 Jpgfdraw
22558 \family default
22559  go to the menu 
22560 \family sans
22561 Te
22562 \begin_inset ERT
22563 status collapsed
22564
22565 \begin_layout Plain Layout
22566
22567 {}
22568 \end_layout
22569
22570 \end_inset
22571
22572 X/LaT
22573 \begin_inset ERT
22574 status collapsed
22575
22576 \begin_layout Plain Layout
22577
22578 {}
22579 \end_layout
22580
22581 \end_inset
22582
22583 eX\SpecialChar \menuseparator
22584 Settings\SpecialChar \menuseparator
22585 Set Normal Size
22586 \family default
22587  and select the font size you are using in your document.
22588  For example this document uses the size 12
22589 \begin_inset space \thinspace{}
22590 \end_inset
22591
22592 pt.
22593 \end_layout
22594
22595 \begin_layout Enumerate
22596
22597 \lang english
22598 Draw a shape.
22599 \end_layout
22600
22601 \begin_layout Enumerate
22602
22603 \lang english
22604 Use the menu 
22605 \family sans
22606 Te
22607 \begin_inset ERT
22608 status collapsed
22609
22610 \begin_layout Plain Layout
22611
22612 {}
22613 \end_layout
22614
22615 \end_inset
22616
22617 X/LaT
22618 \begin_inset ERT
22619 status collapsed
22620
22621 \begin_layout Plain Layout
22622
22623 {}
22624 \end_layout
22625
22626 \end_inset
22627
22628 eX\SpecialChar \menuseparator
22629 Shapepar
22630 \family default
22631  to export the shape to coordinates.
22632  In the appearing dialog use either the outline of your shape for the coordinate
22633 s or the path itself.
22634 \begin_inset Foot
22635 status collapsed
22636
22637 \begin_layout Plain Layout
22638
22639 \lang english
22640 For more information see 
22641 \begin_inset CommandInset href
22642 LatexCommand href
22643 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
22644
22645 \end_inset
22646
22647
22648 \end_layout
22649
22650 \end_inset
22651
22652
22653 \end_layout
22654
22655 \begin_layout Standard
22656
22657 \lang english
22658 The coordinates are written into a TeX-file.
22659  To use it for your LyX document
22660 \end_layout
22661
22662 \begin_layout Enumerate
22663
22664 \lang english
22665 Place the cursor before the first character of your paragraph (or into a
22666  new empty one).
22667 \end_layout
22668
22669 \begin_layout Enumerate
22670
22671 \lang english
22672 Open in LyX the menu 
22673 \family sans
22674 Insert\SpecialChar \menuseparator
22675 File\SpecialChar \menuseparator
22676 Child
22677 \begin_inset space ~
22678 \end_inset
22679
22680 Document
22681 \family default
22682 , select the file and use 
22683 \family sans
22684 Input
22685 \family default
22686  as 
22687 \family sans
22688 Include Type.
22689 \end_layout
22690
22691 \begin_layout Standard
22692 \begin_inset VSpace defskip
22693 \end_inset
22694
22695
22696 \end_layout
22697
22698 \begin_layout Standard
22699
22700 \lang english
22701 \begin_inset Note Greyedout
22702 status open
22703
22704 \begin_layout Plain Layout
22705
22706 \series bold
22707 \lang english
22708 Note
22709 \series default
22710 : The changed shape only applies to the current paragraph; everything is
22711  reset to normal for the next paragraph.
22712  Therefore the shape definition file must be input into every paragraph
22713  with the desired shape.
22714 \end_layout
22715
22716 \end_inset
22717
22718
22719 \end_layout
22720
22721 \begin_layout Standard
22722 \begin_inset VSpace bigskip
22723 \end_inset
22724
22725
22726 \end_layout
22727
22728 \begin_layout Standard
22729
22730 \lang english
22731 Here is an example:
22732 \end_layout
22733
22734 \begin_layout Standard
22735 \begin_inset VSpace bigskip
22736 \end_inset
22737
22738
22739 \end_layout
22740
22741 \begin_layout Standard
22742 \begin_inset CommandInset include
22743 LatexCommand input
22744 filename "../SpecialParagraphShape.tex"
22745
22746 \end_inset
22747
22748
22749 \lang latin
22750 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22751  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22752  voluptua.
22753  At vero eos et accusam et justo duo dolores et ea rebum.
22754  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
22755  sit amet.
22756  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22757  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22758  voluptua.
22759 \end_layout
22760
22761 \begin_layout Standard
22762
22763 \lang english
22764 \begin_inset VSpace bigskip
22765 \end_inset
22766
22767
22768 \end_layout
22769
22770 \begin_layout Standard
22771
22772 \series bold
22773 \lang english
22774 A tip:
22775 \series default
22776  to draw complexer shapes in 
22777 \family sans
22778 Jpgfdraw
22779 \family default
22780  you can draw the shape in a program of your choice and import the resulting
22781  image to 
22782 \family sans
22783 Jpgfdraw
22784 \family default
22785 .
22786  Then you only need to draw a line or spline along the outline of the image.
22787 \end_layout
22788
22789 \begin_layout Standard
22790
22791 \lang english
22792 \begin_inset VSpace bigskip
22793 \end_inset
22794
22795
22796 \end_layout
22797
22798 \begin_layout Standard
22799
22800 \lang english
22801 The module 
22802 \family sans
22803 Custom paragraph shapes
22804 \family default
22805  also provides the two commands 
22806 \family sans
22807 shapepar
22808 \family default
22809  and 
22810 \family sans
22811 Shapepar
22812 \family default
22813  which can be used to define custom shapes coordinate by coordinate.
22814 \begin_inset Foot
22815 status collapsed
22816
22817 \begin_layout Plain Layout
22818
22819 \lang english
22820 These commands are internally used for all shapes described here.
22821 \end_layout
22822
22823 \end_inset
22824
22825  For information how these styles are used and about further customization
22826  possibilities, have a look at the documentation of the package 
22827 \series bold
22828 shapepar
22829 \series default
22830
22831 \lang japanese
22832
22833 \begin_inset CommandInset citation
22834 LatexCommand cite
22835 key "shapepar"
22836
22837 \end_inset
22838
22839 .
22840 \end_layout
22841
22842 \begin_layout Bibliography
22843 \begin_inset CommandInset bibitem
22844 LatexCommand bibitem
22845 key "multicol"
22846
22847 \end_inset
22848
22849 LaTeXパッケージ
22850 \begin_inset CommandInset href
22851 LatexCommand href
22852 name "multicol"
22853 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
22854
22855 \end_inset
22856
22857 の取扱説明書
22858 \end_layout
22859
22860 \begin_layout Bibliography
22861 \begin_inset CommandInset bibitem
22862 LatexCommand bibitem
22863 key "shapepar"
22864
22865 \end_inset
22866
22867 LaTeXパッケージ
22868 \begin_inset CommandInset href
22869 LatexCommand href
22870 name "shapepar"
22871 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
22872
22873 \end_inset
22874
22875 の取扱説明書
22876 \end_layout
22877
22878 \end_body
22879 \end_document