]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
Change default of Japanese docs to dvipdfm(x)
[lyx.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.1 created this file. For more info see http://www.lyx.org/
2 \lyxformat 474
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-platex
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 pdf3
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 cancel 0
110 \use_package esint 0
111 \use_package mathdots 1
112 \use_package mathtools 0
113 \use_package mhchem 1
114 \use_package stackrel 0
115 \use_package stmaryrd 0
116 \use_package undertilde 0
117 \cite_engine basic
118 \cite_engine_type default
119 \biblio_style plain
120 \use_bibtopic false
121 \use_indices false
122 \paperorientation portrait
123 \suppress_date false
124 \justification true
125 \use_refstyle 0
126 \notefontcolor #0000ff
127 \index 索引
128 \shortcut idx
129 \color #008000
130 \end_index
131 \secnumdepth 3
132 \tocdepth 3
133 \paragraph_separation indent
134 \paragraph_indentation default
135 \quotes_language english
136 \papercolumns 1
137 \papersides 2
138 \paperpagestyle headings
139 \tracking_changes false
140 \output_changes false
141 \html_math_output 0
142 \html_css_as_file 0
143 \html_be_strict true
144 \end_header
145
146 \begin_body
147
148 \begin_layout Title
149 LyXの高度な機能
150 \begin_inset Newline newline
151 \end_inset
152
153
154 \begin_inset Newline newline
155 \end_inset
156
157
158 \size large
159 Version 2.0.x
160 \end_layout
161
162 \begin_layout Author
163 LyXプロジェクトチーム
164 \begin_inset Foot
165 status collapsed
166
167 \begin_layout Plain Layout
168 このファイルは主にRichard Heckによって管理されています。コメントをされたい場合や誤りを発見された場合には、LyX文書化メーリングリスト
169 \begin_inset Flex Code
170 status open
171
172 \begin_layout Plain Layout
173 \noindent
174
175 \family typewriter
176 <lyx-docs@lists.lyx.org>
177 \end_layout
178
179 \end_inset
180
181 に英文にてお知らせ下さい。この文書の翻訳は、当初人見光太郎氏が行った貢献に基づいています。
182 \end_layout
183
184 \end_inset
185
186  
187 \end_layout
188
189 \begin_layout Standard
190 \begin_inset CommandInset toc
191 LatexCommand tableofcontents
192
193 \end_inset
194
195
196 \end_layout
197
198 \begin_layout Chapter
199 はじめに
200 \end_layout
201
202 \begin_layout Standard
203 いまお読みの取扱説明書『
204 \emph on
205 LyX拡張機能篇
206 \emph default
207 』は、基本的には『
208 \emph on
209 ユーザーの手引き
210 \emph default
211 』の第二部です。この文書を別部とした理由は、単純に『
212 \emph on
213 ユーザーの手引き
214 \emph default
215 』がすでに大部となっていることと、『
216 \emph on
217 ユーザーの手引き
218 \emph default
219 』が、ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです。一方で、LyXプロジェクトチームは、LyXを各設定ファイルと外部パッケージ
220 によって拡張可能な状態にしておくことを長期的な目標にしています。つまり、あるLaTeXパッケージをサポートしたい場合に、LyX自身に変更を加えることなく、当該パ
221 ッケージ用のレイアウトファイル(ないしモジュール)を作成すればいいようにしているのです。すでにこのような形で、いくつもの新機能がユーザーによって追加されています
222 。この取扱説明書は、そのような形での貢献を文書化する冊子として位置付けられています。
223 \end_layout
224
225 \begin_layout Standard
226 この取扱説明書では、ファックスのサポート・バージョン管理・SGMLサポートのような、正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
227 しています。さらに、LaTeXの強力な機能を直接使って文書を美しく仕上げるための、LaTeXツールやテクニックを述べた章も収録しています。つきつめれば、LyXと
228 はあくまでWYSIWYMたることを企図しているため、LaTeXの全機能の一部へのインタフェースは用意するものの、すべてを用意することはないでしょう。
229 \end_layout
230
231 \begin_layout Standard
232 もし、まだ『
233 \emph on
234 はじめの一歩
235 \emph default
236 』をお読みでなかったら、この取扱説明書から読みはじめるのは誤りです。『
237 \emph on
238 はじめの一歩
239 \emph default
240 』には、全取扱説明書に共通の表記法と書式が説明されていますので、まずそれからお読みください。さらに、この取扱説明書を読もうとする前に、『
241 \emph on
242 ユーザーの手引き
243 \emph default
244 』をよくお読みになって、LyXの全基本機能を習得してください。
245 \end_layout
246
247 \begin_layout Standard
248 この取扱説明書の取り上げられている話題は、LyXがLaTeXにどう関わっているかに強く関係していますので、まず次章では、LyXの内部動作がどうなっているか、Ly
249 Xに希望するLaTeXコードを正確に生成させるにはどうしたらいいかを収録しています。本章は、あきらかに熟練LyXユーザー向けの章となっています。
250 \end_layout
251
252 \begin_layout Chapter
253 LyXとLaTeX
254 \end_layout
255
256 \begin_layout Section
257 LyXはLaTeXをどう使っているか
258 \end_layout
259
260 \begin_layout Standard
261 本章
262 \family roman
263 \series medium
264 \shape up
265 \size normal
266 \emph off
267 \bar no
268 \noun off
269 \color none
270 は、TeX熟練者とLaTeXに興味のある方向けの章です。ここでは、LyXとLaTeXが、印刷可能な出力を生成するのに、どのように協働しているのかを説明します。全
271 取扱説明書中で本章だけは、LaTeXのことを多少なりともご存知であることを前提とします。
272 \end_layout
273
274 \begin_layout Standard
275
276 \family roman
277 \series medium
278 \shape up
279 \size normal
280 \emph off
281 \bar no
282 \noun off
283 \color none
284 かつてLyXは、「LaTeXの
285 \family default
286 \series default
287 \shape default
288 \size default
289 \emph default
290 \bar default
291 \noun default
292 \color inherit
293 WYSIWYM
294 \family roman
295 \series medium
296 \shape up
297 \size normal
298 \emph off
299 \bar no
300 \noun off
301 \color none
302 なフロントエンド」と呼ばれていましたが、いまではこれは正しくありません。LaTeXのフロントエンドは、いくつも出回っています
303 \begin_inset Foot
304 status collapsed
305
306 \begin_layout Plain Layout
307
308 \family roman
309 \series medium
310 \shape up
311 \size normal
312 \emph off
313 \bar no
314 \noun off
315 \color none
316 有名なものとしては、Linux上のTeXmakerとkile、OSX上のTeXshopなどがあります。もちろんviとemacsのLaTeXモードも含まれます。
317 \end_layout
318
319 \end_inset
320
321 。これらは、基本的にLaTeXを走らせる機能を有し、編集中のファイルのエラーを表示する機能を持ったテキストエディタです。LyXも、エディタであり、LaTeXを走
322 らせる機能を有し、ファイル中のエラーを指摘しますが、それ以上にもっともっと多くのことをしてくれます。
323 \family default
324 \series default
325 \shape default
326 \size default
327 \emph default
328 \bar default
329 \noun default
330 \color inherit
331 ひとつには、
332 \family roman
333 \series medium
334 \shape up
335 \size normal
336 \emph off
337 \bar no
338 \noun off
339 \color none
340 LyXを効果的に使うのに、LaTeXの知識が必要とされないことが挙げられます。またLyXは、それ自身、いくつかの拡張をLaTeXに加えています。時間のあるときに
341 でも、いちど以下の手順を試してみてください。まず
342 \family sans
343 \series default
344 \shape default
345 \size default
346 \emph default
347 \bar default
348 \noun default
349 \color inherit
350
351 \begin_inset Flex MenuItem
352 status collapsed
353
354 \begin_layout Plain Layout
355
356 \family sans
357 ファイル
358 \end_layout
359
360 \end_inset
361
362
363 \family roman
364 \series medium
365 \shape up
366 \size normal
367 \emph off
368 \bar no
369 \noun off
370 \color none
371 メニューから
372 \family sans
373 \series default
374 \shape default
375 \size default
376 \emph default
377 \bar default
378 \noun default
379 \color inherit
380
381 \begin_inset Flex MenuItem
382 status collapsed
383
384 \begin_layout Plain Layout
385
386 \family sans
387 エクスポート\SpecialChar \menuseparator
388 LaTeX
389 \end_layout
390
391 \end_inset
392
393
394 \family roman
395 \series medium
396 \shape up
397 \size normal
398 \emph off
399 \bar no
400 \noun off
401 \color none
402 (あるいは
403 \family sans
404 \series default
405 \shape default
406 \size default
407 \emph default
408 \bar default
409 \noun default
410 \color inherit
411
412 \begin_inset Flex MenuItem
413 status collapsed
414
415 \begin_layout Plain Layout
416
417 \family sans
418 表示\SpecialChar \menuseparator
419 ソースを閲覧
420 \end_layout
421
422 \end_inset
423
424
425 \family roman
426 \series medium
427 \shape up
428 \size normal
429 \emph off
430 \bar no
431 \noun off
432 \color none
433 )を選択し、そこから出力される
434 \begin_inset Flex Code
435 status collapsed
436
437 \begin_layout Plain Layout
438
439 \family typewriter
440 .tex
441 \end_layout
442
443 \end_inset
444
445 ファイルのプリアンブルをご覧ください。LyXによって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
446 \family default
447 \series default
448 \shape default
449 \size default
450 \emph default
451 \bar default
452 \noun default
453 \color inherit
454 。これらのマクロは、文書中で使用する機能に応じて、自動的に定義されます。
455 \end_layout
456
457 \begin_layout Standard
458
459 \family roman
460 \series medium
461 \shape up
462 \size normal
463 \emph off
464 \bar no
465 \noun off
466 \color none
467 自動的にLaTeXを実行するコマンドが、以下のようにいくつかあります。
468 \end_layout
469
470 \begin_layout Itemize
471 \begin_inset Flex MenuItem
472 status collapsed
473
474 \begin_layout Plain Layout
475
476 \bar under
477 表示\SpecialChar \menuseparator
478
479 \emph on
480 書式
481 \end_layout
482
483 \end_inset
484
485
486 \end_layout
487
488 \begin_layout Itemize
489
490 \family sans
491 \begin_inset Flex MenuItem
492 status collapsed
493
494 \begin_layout Plain Layout
495
496 \bar under
497 表示\SpecialChar \menuseparator
498 更新\SpecialChar \menuseparator
499
500 \emph on
501 書式
502 \end_layout
503
504 \end_inset
505
506
507 \end_layout
508
509 \begin_layout Itemize
510
511 \family sans
512 \begin_inset Flex MenuItem
513 status collapsed
514
515 \begin_layout Plain Layout
516
517 \bar under
518 ファイル
519 \bar default
520 \SpecialChar \menuseparator
521
522 \bar under
523 印刷
524 \end_layout
525
526 \end_inset
527
528
529 \end_layout
530
531 \begin_layout Itemize
532
533 \family sans
534 \begin_inset Flex MenuItem
535 status collapsed
536
537 \begin_layout Plain Layout
538
539 \bar under
540 ファイル
541 \bar default
542 \SpecialChar \menuseparator
543
544 \bar under
545 ファックス
546 \end_layout
547
548 \end_inset
549
550
551 \end_layout
552
553 \begin_layout Standard
554
555 \family roman
556 \series medium
557 \shape up
558 \size normal
559 \emph off
560 \bar no
561 \noun off
562 \color none
563 これらは、最後にLaTeXを実行してからファイルに変更が加えられた場合のみ、LaTeXを実行します。
564 \end_layout
565
566 \begin_layout Standard
567
568 \family roman
569 \series medium
570 \shape up
571 \size normal
572 \emph off
573 \bar no
574 \noun off
575 \color none
576 LyXが編集中のファイルをLaTeXにかけるとき、LyXは以下の段階をふみます。
577 \end_layout
578
579 \begin_layout Enumerate
580
581 \family roman
582 \series medium
583 \shape up
584 \size normal
585 \emph off
586 \bar no
587 \noun off
588 \color none
589 文書をLaTeXに変換し、ファイルの拡張子を
590 \begin_inset Flex Code
591 status collapsed
592
593 \begin_layout Plain Layout
594
595 \family roman
596 \series medium
597 \shape up
598 \size normal
599 \emph off
600 \bar no
601 \noun off
602 \color none
603 .lyx
604 \end_layout
605
606 \end_inset
607
608 から
609 \begin_inset Flex Code
610 status collapsed
611
612 \begin_layout Plain Layout
613
614 \family roman
615 \series medium
616 \shape up
617 \size normal
618 \emph off
619 \bar no
620 \noun off
621 \color none
622 .tex
623 \end_layout
624
625 \end_inset
626
627 に変えて保存。
628 \end_layout
629
630 \begin_layout Enumerate
631
632 \family roman
633 \series medium
634 \shape up
635 \size normal
636 \emph off
637 \bar no
638 \noun off
639 \color none
640 この
641 \begin_inset Flex Code
642 status collapsed
643
644 \begin_layout Plain Layout
645
646 \family roman
647 \series medium
648 \shape up
649 \size normal
650 \emph off
651 \bar no
652 \noun off
653 \color none
654 .tex
655 \end_layout
656
657 \end_inset
658
659 ファイルに対して(必要に応じて複数回)LaTeXを実行し、LaTeXファイルをコンパイルするのに必要な他のコマンド(
660 \begin_inset Flex Code
661 status collapsed
662
663 \begin_layout Plain Layout
664
665 \family roman
666 \series medium
667 \shape up
668 \size normal
669 \emph off
670 \bar no
671 \noun off
672 \color none
673 bibtex
674 \end_layout
675
676 \end_inset
677
678
679 \begin_inset Flex Code
680 status collapsed
681
682 \begin_layout Plain Layout
683
684 \family roman
685 \series medium
686 \shape up
687 \size normal
688 \emph off
689 \bar no
690 \noun off
691 \color none
692 makeindex
693 \end_layout
694
695 \end_inset
696
697 など)を実行。。
698 \end_layout
699
700 \begin_layout Enumerate
701
702 \family roman
703 \series medium
704 \shape up
705 \size normal
706 \emph off
707 \bar no
708 \noun off
709 \color none
710 もしエラーがあれば、エラーログを表示。
711 \end_layout
712
713 \begin_layout Standard
714
715 \family roman
716 \series medium
717 \shape up
718 \size normal
719 \emph off
720 \bar no
721 \noun off
722 \color none
723 LaTeXを
724 \family sans
725 \series default
726 \shape default
727 \size default
728 \emph default
729 \bar default
730 \noun default
731 \color inherit
732
733 \begin_inset Flex MenuItem
734 status collapsed
735
736 \begin_layout Plain Layout
737
738 \family sans
739 表示\SpecialChar \menuseparator
740 DVI
741 \end_layout
742
743 \end_inset
744
745
746 \family roman
747 \series medium
748 \shape up
749 \size normal
750 \emph off
751 \bar no
752 \noun off
753 \color none
754 を使用して実行した場合には、LyXはこの後、DVIビューアを実行してDVIファイルを表示します。
755 \begin_inset Flex MenuItem
756 status collapsed
757
758 \begin_layout Plain Layout
759
760 \family roman
761 \series medium
762 \shape up
763 \size normal
764 \emph off
765 \bar no
766 \noun off
767 \color none
768 表示\SpecialChar \menuseparator
769 PostScript
770 \end_layout
771
772 \end_inset
773
774 を使用した場合には、LyXはさらに以下の段階をふみます。
775 \end_layout
776
777 \begin_layout Itemize
778
779 \family roman
780 \series medium
781 \shape up
782 \size normal
783 \emph off
784 \bar no
785 \noun off
786 \color none
787 \begin_inset Flex Code
788 status collapsed
789
790 \begin_layout Plain Layout
791
792 \family typewriter
793 dvips
794 \end_layout
795
796 \end_inset
797
798 を実行して、
799 \family default
800 \series default
801 \shape default
802 \size default
803 \emph default
804 \bar default
805 \noun default
806 \color inherit
807 DVI
808 \family roman
809 \series medium
810 \shape up
811 \size normal
812 \emph off
813 \bar no
814 \noun off
815 \color none
816 ファイルをPostScript®
817 \family default
818 \series default
819 \shape default
820 \size default
821 \emph default
822 \bar default
823 \noun default
824 \color inherit
825 に変換。
826 \end_layout
827
828 \begin_layout Itemize
829
830 \family roman
831 \series medium
832 \shape up
833 \size normal
834 \emph off
835 \bar no
836 \noun off
837 \color none
838 \begin_inset Flex Code
839 status collapsed
840
841 \begin_layout Plain Layout
842
843 \family typewriter
844 ghostview
845 \end_layout
846
847 \end_inset
848
849 などのPostScript®ビューアを実行して、PostScript®
850 \family default
851 \series default
852 \shape default
853 \size default
854 \emph default
855 \bar default
856 \noun default
857 \color inherit
858 ファイルを表示。
859 \end_layout
860
861 \begin_layout Standard
862 LyXは、他の書式を表示したりエクスポートしたりする際にも、同様のことを行います。
863 \end_layout
864
865 \begin_layout Section
866 LaTeXファイルをLyXに読み込む
867 \end_layout
868
869 \begin_layout Standard
870 LyXで
871 \family sans
872
873 \begin_inset Flex MenuItem
874 status collapsed
875
876 \begin_layout Plain Layout
877
878 \family sans
879 ファイル\SpecialChar \menuseparator
880 インポート\SpecialChar \menuseparator
881 LaTeX
882 \end_layout
883
884 \end_inset
885
886
887 \family roman
888 \series medium
889 \shape up
890 \size normal
891 \emph off
892 \bar no
893 \noun off
894 \color none
895 コマンドを使用すると、LaTeXファイルを
896 \family default
897 \series default
898 \shape default
899 \size default
900 \emph default
901 \bar default
902 \noun default
903  
904 \family roman
905 \series medium
906 \shape up
907 \size normal
908 \emph off
909 \bar no
910 \noun off
911 LyXにインポートすることができます。このコマンドは、
912 \family typewriter
913 \series default
914 \shape default
915 \size default
916 \emph default
917 \bar default
918 \noun default
919 \color inherit
920
921 \begin_inset Flex Code
922 status collapsed
923
924 \begin_layout Plain Layout
925
926 \family typewriter
927 tex2lyx
928 \end_layout
929
930 \end_inset
931
932
933 \family roman
934 \series medium
935 \shape up
936 \size normal
937 \emph off
938 \bar no
939 \noun off
940 \color none
941 というプログラムを呼び出し、
942 \family typewriter
943 \series default
944 \shape default
945 \size default
946 \emph default
947 \bar default
948 \noun default
949 \color inherit
950
951 \begin_inset Flex Code
952 status collapsed
953
954 \begin_layout Plain Layout
955
956 \family typewriter
957 foo.tex
958 \end_layout
959
960 \end_inset
961
962
963 \family default
964 などというファイルから
965 \begin_inset Flex Code
966 status collapsed
967
968 \begin_layout Plain Layout
969
970 \family typewriter
971 foo.lyx
972 \end_layout
973
974 \end_inset
975
976 を生成します。LyXは、この変換したファイルを開きます
977 \begin_inset Foot
978 status collapsed
979
980 \begin_layout Plain Layout
981 \begin_inset Flex Code
982 status collapsed
983
984 \begin_layout Plain Layout
985 tex2lyx
986 \end_layout
987
988 \end_inset
989
990 は、もちろんコマンドラインから実行することもできます。
991 \end_layout
992
993 \end_inset
994
995
996 \end_layout
997
998 \begin_layout Standard
999
1000 \family typewriter
1001 \begin_inset Flex Code
1002 status collapsed
1003
1004 \begin_layout Plain Layout
1005
1006 \family typewriter
1007 tex2lyx
1008 \end_layout
1009
1010 \end_inset
1011
1012
1013 \family roman
1014 \series medium
1015 \shape up
1016 \size normal
1017 \emph off
1018 \bar no
1019 \noun off
1020 \color none
1021 は、文法的に正しいLaTeXファイルのほとんどを変換することができますが、すべてを変換できるわけではありません。
1022 \family typewriter
1023 \series default
1024 \shape default
1025 \size default
1026 \emph default
1027 \bar default
1028 \noun default
1029 \color inherit
1030
1031 \begin_inset Flex Code
1032 status collapsed
1033
1034 \begin_layout Plain Layout
1035
1036 \family typewriter
1037 tex2lyx
1038 \end_layout
1039
1040 \end_inset
1041
1042
1043 \family roman
1044 \series medium
1045 \shape up
1046 \size normal
1047 \emph off
1048 \bar no
1049 \noun off
1050 \color none
1051 は、理解不能な部分はTeXコードボックスの形で残しますので、ファイルを
1052 \family typewriter
1053 \series default
1054 \shape default
1055 \size default
1056 \emph default
1057 \bar default
1058 \noun default
1059 \color inherit
1060
1061 \begin_inset Flex Code
1062 status collapsed
1063
1064 \begin_layout Plain Layout
1065
1066 \family typewriter
1067 tex2lyx
1068 \end_layout
1069
1070 \end_inset
1071
1072
1073 \family roman
1074 \series medium
1075 \shape up
1076 \size normal
1077 \emph off
1078 \bar no
1079 \noun off
1080 \color none
1081 で変換したのち、TeXコードボックスを探して、手動で正しく編集してください。
1082 \end_layout
1083
1084 \begin_layout Standard
1085
1086 \family roman
1087 \series medium
1088 \shape up
1089 \size normal
1090 \emph off
1091 \bar no
1092 \noun off
1093 \color none
1094 TeXコードボックスがなにかご存じなければ、次節をお読みください。
1095 \end_layout
1096
1097 \begin_layout Section
1098 LaTeXコードを挿入する
1099 \begin_inset CommandInset label
1100 LatexCommand label
1101 name "sec:LaTeXコードを挿入する"
1102
1103 \end_inset
1104
1105
1106 \end_layout
1107
1108 \begin_layout Standard
1109
1110 \family roman
1111 \series medium
1112 \shape up
1113 \size normal
1114 \emph off
1115 \bar no
1116 \noun off
1117 \color none
1118 どのLyX文書にもつねにTeXコードを挿入することが可能であるというきわめて単純な理由によって、LaTeXにできることは、つねにLyXでも行うことができます。一
1119 方、LyXは、すべてのLaTeX構成物をLyX内に表示できるわけではなく、将来的にもそうならないでしょう。かりにLaTeXコマンドをLyX文書に挿入する必要が出
1120 てきた場合には、
1121 \begin_inset Flex Code
1122 status collapsed
1123
1124 \begin_layout Plain Layout
1125
1126 \family roman
1127 \series medium
1128 \shape up
1129 \size normal
1130 \emph off
1131 \bar no
1132 \noun off
1133 \color none
1134 TeXコード
1135 \end_layout
1136
1137 \end_inset
1138
1139 ボックスを使用してください。これは、
1140 \family sans
1141 \series default
1142 \shape default
1143 \size default
1144 \emph default
1145 \bar default
1146 \noun default
1147 \color inherit
1148
1149 \begin_inset Flex MenuItem
1150 status collapsed
1151
1152 \begin_layout Plain Layout
1153
1154 \family sans
1155 挿入\SpecialChar \menuseparator
1156 TeXコード
1157 \end_layout
1158
1159 \end_inset
1160
1161
1162 \family roman
1163 \series medium
1164 \shape up
1165 \size normal
1166 \emph off
1167 \bar no
1168 \noun off
1169 \color none
1170 から、文書中に挿入することができます。
1171 \end_layout
1172
1173 \begin_layout Standard
1174 以下は、LaTeXコマンドをLyX文書中に挿入する例です。コードは以下のようになっているとしましょう。
1175 \end_layout
1176
1177 \begin_layout LyX-Code
1178
1179 \backslash
1180 begin{tabular}{ll}
1181 \begin_inset Newline newline
1182 \end_inset
1183
1184
1185 \backslash
1186 begin{minipage}{5cm}
1187 \begin_inset Newline newline
1188 \end_inset
1189
1190 これは、ミニページ環境の例です。
1191 \begin_inset Newline newline
1192 \end_inset
1193
1194 これには、
1195 \begin_inset Newline newline
1196 \end_inset
1197
1198 (フロートでない)図表を
1199 \begin_inset Newline newline
1200 \end_inset
1201
1202 含め、ほとんど何でも
1203 \begin_inset Newline newline
1204 \end_inset
1205
1206 入れることができます。 
1207 \begin_inset Newline newline
1208 \end_inset
1209
1210
1211 \backslash
1212 end{minipage}
1213 \begin_inset Newline newline
1214 \end_inset
1215
1216 &
1217 \begin_inset Newline newline
1218 \end_inset
1219
1220
1221 \backslash
1222 begin{minipage}{5cm}
1223 \begin_inset Newline newline
1224 \end_inset
1225
1226
1227 \backslash
1228 begin{verbatim}
1229 \begin_inset Newline newline
1230 \end_inset
1231
1232
1233 \backslash
1234 begin{minipage}{5cm}
1235 \begin_inset Newline newline
1236 \end_inset
1237
1238 これ...
1239  
1240 \begin_inset Newline newline
1241 \end_inset
1242
1243
1244 \backslash
1245 end{minipage}
1246 \begin_inset Newline newline
1247 \end_inset
1248
1249
1250 \backslash
1251 end{verbatim}
1252 \begin_inset Newline newline
1253 \end_inset
1254
1255
1256 \backslash
1257 end{minipage}
1258 \begin_inset Newline newline
1259 \end_inset
1260
1261
1262 \backslash
1263 end{tabular}
1264 \end_layout
1265
1266 \begin_layout LyX-Code
1267
1268 \end_layout
1269
1270 \begin_layout Standard
1271 上記のテキストを含んだ
1272 \begin_inset Flex Code
1273 status collapsed
1274
1275 \begin_layout Plain Layout
1276 TeXコード
1277 \end_layout
1278
1279 \end_inset
1280
1281 ボックスが、この段落の直後にあります。この取扱説明書をLyX上でご覧になっていれば、TeXコード差込枠のみが見えるはずです。印刷した取扱説明書をご覧であれば、実
1282 際の結果が見れるはずです。
1283 \end_layout
1284
1285 \begin_layout Standard
1286 \begin_inset ERT
1287 status collapsed
1288
1289 \begin_layout Plain Layout
1290
1291
1292 \backslash
1293 begin{tabular}{ll}
1294 \end_layout
1295
1296 \begin_layout Plain Layout
1297
1298
1299 \backslash
1300 begin{minipage}{5cm}
1301 \end_layout
1302
1303 \begin_layout Plain Layout
1304
1305 これは、ミニページ環境の例です。これには、(フロートでない)図表を含め、ほとんど何でも入れることができます。 
1306 \backslash
1307 end{minipage}
1308 \end_layout
1309
1310 \begin_layout Plain Layout
1311
1312 &
1313 \end_layout
1314
1315 \begin_layout Plain Layout
1316
1317
1318 \backslash
1319 begin{minipage}{5cm}
1320 \end_layout
1321
1322 \begin_layout Plain Layout
1323
1324
1325 \backslash
1326 begin{verbatim}
1327 \end_layout
1328
1329 \begin_layout Plain Layout
1330
1331
1332 \backslash
1333 begin{minipage}{5cm}
1334 \end_layout
1335
1336 \begin_layout Plain Layout
1337
1338 これ...
1339  
1340 \backslash
1341 end{minipage}
1342 \end_layout
1343
1344 \begin_layout Plain Layout
1345
1346
1347 \backslash
1348 end{verbatim}
1349 \end_layout
1350
1351 \begin_layout Plain Layout
1352
1353
1354 \backslash
1355 end{minipage}
1356 \end_layout
1357
1358 \begin_layout Plain Layout
1359
1360
1361 \backslash
1362 end{tabular}
1363 \end_layout
1364
1365 \end_inset
1366
1367
1368 \end_layout
1369
1370 \begin_layout Standard
1371
1372 \family roman
1373 \series medium
1374 \shape up
1375 \size normal
1376 \emph off
1377 \bar no
1378 \noun off
1379 \color none
1380 TeXコードを使用する方法に加えて、複雑なLaTeXコードを含む部分を別ファイルとして作成しておき、そのファイルをインクルードするのに
1381 \begin_inset Flex MenuItem
1382 status collapsed
1383
1384 \begin_layout Plain Layout
1385
1386 \family roman
1387 \series medium
1388 \shape up
1389 \size normal
1390 \emph off
1391 \bar no
1392 \noun off
1393 \color none
1394 挿入\SpecialChar \menuseparator
1395 ファイル\SpecialChar \menuseparator
1396 子文書
1397 \end_layout
1398
1399 \end_inset
1400
1401 を使用する方法もあります(取り込みの型として
1402 \begin_inset Flex Code
1403 status collapsed
1404
1405 \begin_layout Plain Layout
1406
1407 \family roman
1408 \series medium
1409 \shape up
1410 \size normal
1411 \emph off
1412 \bar no
1413 \noun off
1414 \color none
1415 Input
1416 \end_layout
1417
1418 \end_inset
1419
1420 を選択しなくてはなりません)。この方法をとる場合には、.texファイルが正しく動作することが
1421 \family default
1422 \series default
1423 \shape default
1424 \size default
1425 \emph on
1426 \bar default
1427 \noun default
1428 \color inherit
1429 確認できている
1430 \family roman
1431 \series medium
1432 \shape up
1433 \size normal
1434 \emph off
1435 \bar no
1436 \noun off
1437 \color none
1438 場合のみに限った方がよいでしょう。さもないと、LaTeXエラーを追跡するたいへんな作業を行わなくてはならなくなります。
1439 \end_layout
1440
1441 \begin_layout Standard
1442
1443 \family roman
1444 \series medium
1445 \shape up
1446 \size normal
1447 \emph off
1448 \bar no
1449 \noun off
1450 \color none
1451 最後に、いくつか強調しておくべきことがあります。
1452 \end_layout
1453
1454 \begin_layout Itemize
1455
1456 \family roman
1457 \series medium
1458 \shape up
1459 \size normal
1460 \emph off
1461 \bar no
1462 \noun off
1463 \color none
1464 LyXは、あなたのLaTeXコードが正しいかどうかを
1465 \family default
1466 \series default
1467 \shape default
1468 \size default
1469 \emph on
1470 \bar default
1471 \noun default
1472 \color inherit
1473 チェックしません
1474 \family roman
1475 \series medium
1476 \shape up
1477 \size normal
1478 \emph off
1479 \bar no
1480 \noun off
1481 \color none
1482
1483 \end_layout
1484
1485 \begin_layout Itemize
1486
1487 \family roman
1488 \series medium
1489 \shape up
1490 \size normal
1491 \emph off
1492 \bar no
1493 \noun off
1494 \color none
1495 車輪の再発明をしないようにご注意ください。
1496 \end_layout
1497
1498 \begin_layout Standard
1499
1500 \family roman
1501 \series medium
1502 \shape up
1503 \size normal
1504 \emph off
1505 \bar no
1506 \noun off
1507 \color none
1508 二番目の点に関して、LyXはひじょうにたくさんの機能を装備しており、その数は増えつづけています。ご自身でLaTeXコードを書かなくてはならないと思い込む前に、L
1509 yXがこれこれの機能をもっていないことを、取扱説明書で確実に確かめてください。さらに世の中には、封筒のラベルから美しい複数ページにわたる表を作るものまで、ありと
1510 あらゆることを行う膨大な数のLaTeXパッケージが存在します。
1511 \family default
1512 \series default
1513 \shape default
1514 \size default
1515 \emph default
1516 \bar default
1517 \noun default
1518 \color inherit
1519 詳細については、
1520 \begin_inset CommandInset href
1521 LatexCommand href
1522 name "CTAN"
1523 target "http://www.ctan.org/"
1524
1525 \end_inset
1526
1527
1528 \family roman
1529 \series medium
1530 \shape up
1531 \size normal
1532 \emph off
1533 \bar no
1534 \noun off
1535 \color none
1536 と第
1537 \begin_inset CommandInset ref
1538 LatexCommand ref
1539 reference "chap:Special-features"
1540
1541 \end_inset
1542
1543 節をご覧ください。
1544 \end_layout
1545
1546 \begin_layout Standard
1547
1548 \family roman
1549 \series medium
1550 \shape up
1551 \size normal
1552 \emph off
1553 \bar no
1554 \noun off
1555 \color none
1556 もし、文書中で例外的に手の込んだことをなさりたければ、かならず良いLaTeX関連書籍を参考とするようにしてください。『
1557 \family default
1558 \series default
1559 \shape default
1560 \size default
1561 \emph on
1562 \bar default
1563 \noun default
1564 \color inherit
1565 ユーザーの手引き
1566 \family roman
1567 \series medium
1568 \shape up
1569 \size normal
1570 \emph off
1571 \bar no
1572 \noun off
1573 \color none
1574 』の参考文献に多くのLaTeX関連書籍が引用されています。
1575 \end_layout
1576
1577 \begin_layout Section
1578 LyXとLaTeXプリアンブル
1579 \end_layout
1580
1581 \begin_layout Subsection
1582 LaTeXプリアンブルについて
1583 \end_layout
1584
1585 \begin_layout Standard
1586
1587 \family roman
1588 \series medium
1589 \shape up
1590 \size normal
1591 \emph off
1592 \bar no
1593 \noun off
1594 \color none
1595 すでにLaTeXについてご存知であれば、ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう。もしご存じなければ、以下の説明で大まかな理解は
1596 得られるはずです。詳しくはLaTeX関連書籍をご参照ください。いずれにしても、以下でLyX文書のLaTeXプリアンブルで何ができるか、または何をする必要がないか
1597 説明をしますので、以下の各要点はお読みになった方が良いでしょう。
1598 \end_layout
1599
1600 \begin_layout Standard
1601
1602 \family roman
1603 \series medium
1604 \shape up
1605 \size normal
1606 \emph off
1607 \bar no
1608 \noun off
1609 \color none
1610 LaTeXプリアンブルは、LaTeX文書のいちばん始め、本文の
1611 \family default
1612 \series default
1613 \shape default
1614 \size default
1615 \emph on
1616 \bar default
1617 \noun default
1618 \color inherit
1619
1620 \family roman
1621 \series medium
1622 \shape up
1623 \size normal
1624 \emph off
1625 \bar no
1626 \noun off
1627 \color none
1628 の部分に来ます。ここでは以下のことを行います。
1629 \end_layout
1630
1631 \begin_layout Itemize
1632
1633 \family roman
1634 \series medium
1635 \shape up
1636 \size normal
1637 \emph off
1638 \bar no
1639 \noun off
1640 \color none
1641 文書クラス(ドキュメントクラス)の宣言。
1642 \begin_inset Newline newline
1643 \end_inset
1644
1645 これはLyXがすでに行ってくれています。もしあなたが熟達したLaTeX使いであり、自作の文書クラスを使いたい場合には、取扱説明書『
1646 \family default
1647 \series default
1648 \shape default
1649 \size default
1650 \emph on
1651 \bar default
1652 \noun default
1653 \color inherit
1654 カスタマイズ篇
1655 \family roman
1656 \series medium
1657 \shape up
1658 \size normal
1659 \emph off
1660 \bar no
1661 \noun off
1662 \color none
1663 』をご覧になれば、LyXに自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります。
1664 \end_layout
1665
1666 \begin_layout Itemize
1667
1668 \family roman
1669 \series medium
1670 \shape up
1671 \size normal
1672 \emph off
1673 \bar no
1674 \noun off
1675 \color none
1676 パッケージ使用の宣言。
1677 \begin_inset Newline newline
1678 \end_inset
1679
1680 LaTeXパッケージは、パッケージがプリアンブルで宣言された場合のみ、文書中で利用可能となる、追加コマンド群を提供します。例えば
1681 \family typewriter
1682 \series default
1683 \shape default
1684 \size default
1685 \emph default
1686 \bar default
1687 \noun default
1688 \color inherit
1689
1690 \family roman
1691 \series medium
1692 \shape up
1693 \size normal
1694 \emph off
1695 \bar no
1696 \noun off
1697 \color none
1698
1699 \begin_inset Flex Code
1700 status collapsed
1701
1702 \begin_layout Plain Layout
1703
1704 \family typewriter
1705 indentfirst
1706 \end_layout
1707
1708 \end_inset
1709
1710 パッケージは、すべての段落の最初の行を字下げします。他にも、ラベルや宛名書き、余白設定等の様々なパッケージがあります。
1711 \end_layout
1712
1713 \begin_layout Itemize
1714
1715 \family roman
1716 \series medium
1717 \shape up
1718 \size normal
1719 \emph off
1720 \bar no
1721 \noun off
1722 \color none
1723 カウンタ・変数・長さ・幅の設定。
1724 \begin_inset Newline newline
1725 \end_inset
1726
1727 LaTeXのカウンタと変数の中には、プリアンブルでグローバルに
1728 \family default
1729 \series default
1730 \shape default
1731 \size default
1732 \emph default
1733 \bar default
1734 \noun default
1735 \color inherit
1736 設定
1737 \emph on
1738 しないかぎり
1739 \family roman
1740 \series medium
1741 \shape up
1742 \size normal
1743 \emph off
1744 \bar no
1745 \noun off
1746 \color none
1747 、望んだ効果を持たないものがあります。(文書中で設定したり再設定したりすることのできる変数もあります。)余白は、プリアンブルで設定しなくてはならない変数の代表例
1748 です。他には、箇条書きに付けるラベル書式が挙げられます。じつは、この設定は文書中どこでもできるのですが、プリアンブルでいちどだけ設定するのが望ましい方法です。
1749 \end_layout
1750
1751 \begin_layout Itemize
1752
1753 \family roman
1754 \series medium
1755 \shape up
1756 \size normal
1757 \emph off
1758 \bar no
1759 \noun off
1760 \color none
1761 ユーザー定義コマンドの宣言(
1762 \begin_inset Flex Code
1763 status collapsed
1764
1765 \begin_layout Plain Layout
1766
1767 \family roman
1768 \series medium
1769 \shape up
1770 \size normal
1771 \emph off
1772 \bar no
1773 \noun off
1774 \color none
1775
1776 \backslash
1777 newcommand
1778 \end_layout
1779
1780 \end_inset
1781
1782 または
1783 \begin_inset Flex Code
1784 status collapsed
1785
1786 \begin_layout Plain Layout
1787
1788 \family roman
1789 \series medium
1790 \shape up
1791 \size normal
1792 \emph off
1793 \bar no
1794 \noun off
1795 \color none
1796
1797 \backslash
1798 renewcommand
1799 \end_layout
1800
1801 \end_inset
1802
1803 を使用)。
1804 \begin_inset Newline newline
1805 \end_inset
1806
1807 ユーザー定義コマンドは、文書中で頻出するLaTeXコマンドの短縮形です。このようなコマンドを宣言するには、プリアンブルが適した場所ですが、どこで宣言することも
1808 \family default
1809 \series default
1810 \shape default
1811 \size default
1812 \emph on
1813 \bar default
1814 \noun default
1815 \color inherit
1816 可能
1817 \family roman
1818 \series medium
1819 \shape up
1820 \size normal
1821 \emph off
1822 \bar no
1823 \noun off
1824 \color none
1825 です(もちろんコマンドが初めて使用される場所よりも前です)。あまりないことではありますが、お使いの文書中に生のLaTeXコードがあふれている場合には便利でしょう
1826
1827 \end_layout
1828
1829 \begin_layout Standard
1830
1831 \family roman
1832 \series medium
1833 \shape up
1834 \size normal
1835 \emph off
1836 \bar no
1837 \noun off
1838 \color none
1839 LyXは、その生成する
1840 \begin_inset Flex Code
1841 status collapsed
1842
1843 \begin_layout Plain Layout
1844
1845 \family roman
1846 \series medium
1847 \shape up
1848 \size normal
1849 \emph off
1850 \bar no
1851 \noun off
1852 \color none
1853 .tex
1854 \end_layout
1855
1856 \end_inset
1857
1858 ファイルのプリアンブルに、それ自身の定義を追加します。これによって、LyXの生成するLaTeXファイルの可搬性を高めています。
1859 \end_layout
1860
1861 \begin_layout Subsection
1862 プリアンブルの変更
1863 \end_layout
1864
1865 \begin_layout Standard
1866
1867 \family roman
1868 \series medium
1869 \shape up
1870 \size normal
1871 \emph off
1872 \bar no
1873 \noun off
1874 \color none
1875 LyXがLaTeXファイルのプリアンブルに追加するコマンドは、つねに同じです。これは、LyX自体にパッチを当てないかぎり変更できないようになっています。しかしな
1876 がら、
1877 \begin_inset Flex MenuItem
1878 status collapsed
1879
1880 \begin_layout Plain Layout
1881
1882 \family roman
1883 \series medium
1884 \shape up
1885 \size normal
1886 \emph off
1887 \bar no
1888 \noun off
1889 \color none
1890 文書\SpecialChar \menuseparator
1891 設定
1892 \end_layout
1893
1894 \end_inset
1895
1896 ダイアログの
1897 \begin_inset Flex MenuItem
1898 status collapsed
1899
1900 \begin_layout Plain Layout
1901
1902 \family roman
1903 \series medium
1904 \shape up
1905 \size normal
1906 \emph off
1907 \bar no
1908 \noun off
1909 \color none
1910 LaTeXプリアンブル
1911 \end_layout
1912
1913 \end_inset
1914
1915 の項から、プリアンブルに追加をすることはできます。LyXは、
1916 \family sans
1917 \series default
1918 \shape default
1919 \size default
1920 \emph default
1921 \bar default
1922 \noun default
1923 \color inherit
1924
1925 \begin_inset Flex MenuItem
1926 status collapsed
1927
1928 \begin_layout Plain Layout
1929
1930 \family sans
1931 プリアンブル
1932 \end_layout
1933
1934 \end_inset
1935
1936
1937 \family roman
1938 \series medium
1939 \shape up
1940 \size normal
1941 \emph off
1942 \bar no
1943 \noun off
1944 \color none
1945 ダイアログ内のすべてのものを、LyX埋込みのプリアンブルに付け加えます。ご自身の宣言をプリアンブルに追加する前に、あなたがしようとしていることをLyXがすでにサ
1946 ポートしていないかどうか確認してください(車輪の再発明をしないように、とはすでに申しあげたことです)。
1947 \family default
1948 \series default
1949 \shape default
1950 \size default
1951 \emph default
1952 \bar default
1953 \noun default
1954 \color inherit
1955 また、
1956 \emph on
1957 プリアンブルコードが正しいことを確認してください。
1958 \emph default
1959 LyXは、プリアンブルをチェックしません。
1960 \family roman
1961 \series medium
1962 \shape up
1963 \size normal
1964 \emph off
1965 \bar no
1966 \noun off
1967 \color none
1968 もしエラーがあれば、「
1969 \begin_inset Flex Code
1970 status collapsed
1971
1972 \begin_layout Plain Layout
1973
1974 \family roman
1975 \series medium
1976 \shape up
1977 \size normal
1978 \emph off
1979 \bar no
1980 \noun off
1981 \color none
1982 Missing 
1983 \backslash
1984 begin{document}
1985 \end_layout
1986
1987 \end_inset
1988
1989 」といったエラーが出ることでしょう。このようなエラーが出たときは、プリアンブルを再確認してください。
1990 \end_layout
1991
1992 \begin_layout Subsection
1993
1994 \end_layout
1995
1996 \begin_layout Standard
1997
1998 \family roman
1999 \series medium
2000 \shape up
2001 \size normal
2002 \emph off
2003 \bar no
2004 \noun off
2005 \color none
2006 以下は、プリアンブルに追加できるものとその効果を示す例です。
2007 \end_layout
2008
2009 \begin_layout Subsubsection
2010 例1:オフセット
2011 \end_layout
2012
2013 \begin_layout Standard
2014
2015 \family roman
2016 \series medium
2017 \shape up
2018 \size normal
2019 \emph off
2020 \bar no
2021 \noun off
2022 \color none
2023 LaTeXには
2024 \family default
2025 \series default
2026 \shape default
2027 \size default
2028 \emph default
2029 \bar default
2030 \noun default
2031 \color inherit
2032
2033 \family roman
2034 \series medium
2035 \shape up
2036 \size normal
2037 \emph off
2038 \bar no
2039 \noun off
2040 \color none
2041
2042 \begin_inset Flex Code
2043 status collapsed
2044
2045 \begin_layout Plain Layout
2046
2047 \family typewriter
2048
2049 \backslash
2050 hoffset
2051 \end_layout
2052
2053 \end_inset
2054
2055
2056 \family typewriter
2057 \series default
2058 \shape default
2059 \size default
2060 \emph default
2061 \bar default
2062 \noun default
2063 \color inherit
2064
2065 \begin_inset Flex Code
2066 status collapsed
2067
2068 \begin_layout Plain Layout
2069
2070 \family typewriter
2071
2072 \backslash
2073 voffset
2074 \end_layout
2075
2076 \end_inset
2077
2078
2079 \family roman
2080 \series medium
2081 \shape up
2082 \size normal
2083 \emph off
2084 \bar no
2085 \noun off
2086 \color none
2087 というページ位置を制御する2つの変数があります。その機能は名前から明らかなとおりです。これらの変数は、ラベルを印刷するときなどに便利です。往々にして、印刷用紙の
2088 寸法とそのうち実際に印字可能な範囲は同じではありません。ここに
2089 \begin_inset Flex Code
2090 status collapsed
2091
2092 \begin_layout Plain Layout
2093
2094 \family typewriter
2095
2096 \backslash
2097 hoffset
2098 \end_layout
2099
2100 \end_inset
2101
2102
2103 \family typewriter
2104 \series default
2105 \shape default
2106 \size default
2107 \emph default
2108 \bar default
2109 \noun default
2110 \color inherit
2111
2112 \begin_inset Flex Code
2113 status collapsed
2114
2115 \begin_layout Plain Layout
2116
2117 \family typewriter
2118
2119 \backslash
2120 voffset
2121 \end_layout
2122
2123 \end_inset
2124
2125
2126 \family default
2127 が役立つわけです。
2128 \end_layout
2129
2130 \begin_layout Standard
2131
2132 \family roman
2133 \series medium
2134 \shape up
2135 \size normal
2136 \emph off
2137 \bar no
2138 \noun off
2139 \color none
2140 \begin_inset Flex Code
2141 status collapsed
2142
2143 \begin_layout Plain Layout
2144
2145 \family typewriter
2146
2147 \backslash
2148 hoffset
2149 \end_layout
2150
2151 \end_inset
2152
2153
2154 \family typewriter
2155 \series default
2156 \shape default
2157 \size default
2158 \emph default
2159 \bar default
2160 \noun default
2161 \color inherit
2162
2163 \begin_inset Flex Code
2164 status collapsed
2165
2166 \begin_layout Plain Layout
2167
2168 \family typewriter
2169
2170 \backslash
2171 voffset
2172 \end_layout
2173
2174 \end_inset
2175
2176
2177 \family roman
2178 \series medium
2179 \shape up
2180 \size normal
2181 \emph off
2182 \bar no
2183 \noun off
2184 \color none
2185 の既定値はともに0ポイント、つまりページをシフトしません。残念ながら、DVIドライバによってはつねにページをシフトすることがあるようです。我々には、どうしてその
2186 ようなことをするのか、そしてシスアドがどうしてそれを修正しないのか理解できませんが、もし個人的に管理できないシステムでLyXを使用していて、シスアドがお馬鹿さん
2187 である場合には、
2188 \begin_inset Flex Code
2189 status collapsed
2190
2191 \begin_layout Plain Layout
2192
2193 \family typewriter
2194
2195 \backslash
2196 hoffset
2197 \end_layout
2198
2199 \end_inset
2200
2201
2202 \family typewriter
2203 \series default
2204 \shape default
2205 \size default
2206 \emph default
2207 \bar default
2208 \noun default
2209 \color inherit
2210
2211 \begin_inset Flex Code
2212 status collapsed
2213
2214 \begin_layout Plain Layout
2215
2216 \family typewriter
2217
2218 \backslash
2219 voffset
2220 \end_layout
2221
2222 \end_inset
2223
2224
2225 \family roman
2226 \series medium
2227 \shape up
2228 \size normal
2229 \emph off
2230 \bar no
2231 \noun off
2232 \color none
2233 が役に立ちます。かりに、上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう。その場合は、以下をプリアンブルに追加するとよいでしょう。
2234 \end_layout
2235
2236 \begin_layout LyX-Code
2237
2238 \backslash
2239 setlength{
2240 \backslash
2241 hoffset}{-0.5 in}
2242 \end_layout
2243
2244 \begin_layout LyX-Code
2245
2246 \backslash
2247 setlength{
2248 \backslash
2249 voffset}{-0.5 in}
2250 \end_layout
2251
2252 \begin_layout Standard
2253
2254 \family roman
2255 \series medium
2256 \shape up
2257 \size normal
2258 \emph off
2259 \bar no
2260 \noun off
2261 \color none
2262 これで余白が修正されます。
2263 \end_layout
2264
2265 \begin_layout Subsubsection
2266 例2:ラベル
2267 \end_layout
2268
2269 \begin_layout Standard
2270
2271 \family roman
2272 \series medium
2273 \shape up
2274 \size normal
2275 \emph off
2276 \bar no
2277 \noun off
2278 \color none
2279 いま、たくさんの宛名ラベルを印刷をしたいものとしましょう。ラベルシートを印刷するために便利な
2280 \begin_inset Flex Code
2281 status collapsed
2282
2283 \begin_layout Plain Layout
2284
2285 \family typewriter
2286 labels.sty
2287 \end_layout
2288
2289 \end_inset
2290
2291 というLaTeXパッケージが、お近くのCTANアーカイブで入手可能です。お使いのシステムには、既定ではこのパッケージは導入されていないかもしれません。ご自身でお
2292 確かめください。また、このパッケージの取扱説明書を読まれたいかもしれませんが、それもご自身にお任せします。これは使用例ですので、このパッケージをどう使うかの例だ
2293 けお見せすることにします。
2294 \end_layout
2295
2296 \begin_layout Standard
2297
2298 \family roman
2299 \series medium
2300 \shape up
2301 \size normal
2302 \emph off
2303 \bar no
2304 \noun off
2305 \color none
2306 まず、
2307 \begin_inset Flex Code
2308 status collapsed
2309
2310 \begin_layout Plain Layout
2311
2312 \family sans
2313 article
2314 \end_layout
2315
2316 \end_inset
2317
2318 文書クラスを使用していることをご確認ください。次に、以下のような設定をプリアンブルに追加しなければなりません。
2319 \end_layout
2320
2321 \begin_layout LyX-Code
2322
2323 \backslash
2324 usepackage{labels}
2325 \end_layout
2326
2327 \begin_layout LyX-Code
2328
2329 \backslash
2330 LabelCols=3
2331 \end_layout
2332
2333 \begin_layout LyX-Code
2334
2335 \backslash
2336 LabelRows=7
2337 \end_layout
2338
2339 \begin_layout LyX-Code
2340
2341 \backslash
2342 LeftBorder=8mm
2343 \end_layout
2344
2345 \begin_layout LyX-Code
2346
2347 \backslash
2348 RightBorder=8mm
2349 \end_layout
2350
2351 \begin_layout LyX-Code
2352
2353 \backslash
2354 TopBorder=9mm
2355 \end_layout
2356
2357 \begin_layout LyX-Code
2358
2359 \backslash
2360 BottomBorder=2mm
2361 \end_layout
2362
2363 \begin_layout Standard
2364
2365 \family roman
2366 \series medium
2367 \shape up
2368 \size normal
2369 \emph off
2370 \bar no
2371 \noun off
2372 \color none
2373 これは
2374 \family default
2375 \series default
2376 \shape default
2377 \size default
2378 \emph default
2379 \bar default
2380 \noun default
2381 \color inherit
2382 Avery®ラベルシートのストック5360
2383 \family roman
2384 \series medium
2385 \shape up
2386 \size normal
2387 \emph off
2388 \bar no
2389 \noun off
2390 \color none
2391 番を使用する場合の設定です。これで、各宛名を
2392 \begin_inset Flex Code
2393 status collapsed
2394
2395 \begin_layout Plain Layout
2396
2397 \family typewriter
2398
2399 \backslash
2400 begin{labels}
2401 \end_layout
2402
2403 \end_inset
2404
2405
2406 \family typewriter
2407 \series default
2408 \shape default
2409 \size default
2410 \emph default
2411 \bar default
2412 \noun default
2413 \color inherit
2414
2415 \begin_inset Flex Code
2416 status collapsed
2417
2418 \begin_layout Plain Layout
2419
2420 \family typewriter
2421
2422 \backslash
2423 end{labels}
2424 \end_layout
2425
2426 \end_inset
2427
2428
2429 \family roman
2430 \series medium
2431 \shape up
2432 \size normal
2433 \emph off
2434 \bar no
2435 \noun off
2436 \color none
2437 で囲めば、宛名ラベルの印刷をすることができます。本機能およびその他の機能に関しては、
2438 \begin_inset Flex Code
2439 status collapsed
2440
2441 \begin_layout Plain Layout
2442
2443 \family typewriter
2444 labels.sty
2445 \end_layout
2446
2447 \end_inset
2448
2449 の取扱説明書に説明されています。
2450 \end_layout
2451
2452 \begin_layout Standard
2453
2454 \family roman
2455 \series medium
2456 \shape up
2457 \size normal
2458 \emph off
2459 \bar no
2460 \noun off
2461 \color none
2462 そのうち誰かが、このパッケージを直接サポートするLyXレイアウトファイルを作ってくれるかもしれません。その誰かはあなたかもしれません。
2463 \end_layout
2464
2465 \begin_layout Subsubsection
2466 例3: 段落の字下げ
2467 \end_layout
2468
2469 \begin_layout Standard
2470
2471 \family roman
2472 \series medium
2473 \shape up
2474 \size normal
2475 \emph off
2476 \bar no
2477 \noun off
2478 \color none
2479 アメリカ人は
2480 \family default
2481 \series default
2482 \shape default
2483 \size default
2484 \emph default
2485 \bar default
2486 \noun default
2487 \color inherit
2488
2489 \emph on
2490 すべての
2491 \family roman
2492 \series medium
2493 \shape up
2494 \size normal
2495 \emph off
2496 \bar no
2497 \noun off
2498 \color none
2499 段落の最初の行を字下げするように教育されています。そのために彼らの他の変な習慣と同じく、いつものようにすべての段落の最初の行を下げるまで、アメリカ人はごちゃごち
2500 ゃと文句を言いつづけるのです
2501 \family default
2502 \series default
2503 \shape default
2504 \size default
2505 \emph default
2506 \bar default
2507 \noun default
2508 \color inherit
2509 。(これはユーモアです。(ほんと?)
2510 \emph on
2511 ユーモアですってば
2512 \emph default
2513 。)
2514 \end_layout
2515
2516 \begin_layout Standard
2517
2518 \family roman
2519 \series medium
2520 \shape up
2521 \size normal
2522 \emph off
2523 \bar no
2524 \noun off
2525 \color none
2526 もちろん、これは標準的な組版ルールではありません。書籍では、典型的には、他の段落のあとにくる段落
2527 \family default
2528 \series default
2529 \shape default
2530 \size default
2531 \emph on
2532 \bar default
2533 \noun default
2534 \color inherit
2535 のみ
2536 \family roman
2537 \series medium
2538 \shape up
2539 \size normal
2540 \emph off
2541 \bar no
2542 \noun off
2543 \color none
2544 字下げを行ないます。一行めを字下げをするそもそもの目的は、隣接する段落から区別するためです。したがって、図のあとや節の最初の段落など、先行する段落がない場合には
2545 、字下げをする必要はないのです。
2546 \end_layout
2547
2548 \begin_layout Standard
2549
2550 \family roman
2551 \series medium
2552 \shape up
2553 \size normal
2554 \emph off
2555 \bar no
2556 \noun off
2557 \color none
2558 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!)、そのような小難しいことはかまわずに、いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2559 ルに次の行を加えて下さい。
2560 \end_layout
2561
2562 \begin_layout LyX-Code
2563
2564 \backslash
2565 usepackage{indentfirst}
2566 \end_layout
2567
2568 \begin_layout Standard
2569
2570 \family roman
2571 \series medium
2572 \shape up
2573 \size normal
2574 \emph off
2575 \bar no
2576 \noun off
2577 \color none
2578 もしお使いのTeX頒布版が脳死状態でなければ、このパッケージが入っているはずなので、建国の父たちが意図したように、すべての段落が字下げされます。
2579 \end_layout
2580
2581 \begin_layout Subsubsection
2582 例4:この文書
2583 \end_layout
2584
2585 \begin_layout Standard
2586
2587 \family roman
2588 \series medium
2589 \shape up
2590 \size normal
2591 \emph off
2592 \bar no
2593 \noun off
2594 \color none
2595 この文書のプリアンブルを見てみると、どのような高度な設定ができるか、おおまかな理解が得られるでしょう。また第
2596 \family default
2597 \series default
2598 \shape default
2599 \size default
2600 \emph default
2601 \bar default
2602 \noun default
2603 \color inherit
2604
2605 \begin_inset CommandInset ref
2606 LatexCommand ref
2607 reference "chap:Special-features"
2608
2609 \end_inset
2610
2611
2612 \family roman
2613 \series medium
2614 \shape up
2615 \size normal
2616 \emph off
2617 \bar no
2618 \noun off
2619 \color none
2620 章には、他の例や、LaTeXの各種の「汚い技」があります。
2621 \end_layout
2622
2623 \begin_layout Section
2624 LyXおよびLaTeXのエラー
2625 \end_layout
2626
2627 \begin_layout Standard
2628
2629 \family roman
2630 \series medium
2631 \shape up
2632 \size normal
2633 \emph off
2634 \bar no
2635 \noun off
2636 \color none
2637 LyXがLaTeXを呼び出す際、LyXはLaTeXに、かりにエラーがあったとしても楽観的に無視して先に進むように指示します。その後LyXは、LaTeXの実行ログ
2638 ファイルを事後処理用に使います。ログファイルを分析したのち、LyXはエラーを一覧表示するダイアログを表示します。エラーのうちどれかをクリックすると、LyXファイ
2639 ル中、そのエラーの発生した場所に表示を移動します
2640 \begin_inset Foot
2641 status collapsed
2642
2643 \begin_layout Plain Layout
2644
2645 \family roman
2646 \series medium
2647 \shape up
2648 \size normal
2649 \emph off
2650 \bar no
2651 \noun off
2652 \color none
2653 正確にいうと、通常は、です。ログファイルの分析は難しい仕事ですので、LyXはつねに正しい行に連れて行ってくれるとは限りません。ときには、LaTeXがある行にエラ
2654 ーがあると報告したとしても、実際のエラーはそれよりも前であることもあります。これは、プログラムで閉じ括弧を忘れたときに似ていなくもありません。エラーは表示されま
2655 すが、実際にエラーのある場所よりも後ろでエラーが報告されるのです。
2656 \end_layout
2657
2658 \end_inset
2659
2660
2661 \family default
2662 \series default
2663 \shape default
2664 \size default
2665 \emph default
2666 \bar default
2667 \noun default
2668 \color inherit
2669
2670 \end_layout
2671
2672 \begin_layout Standard
2673
2674 \family roman
2675 \series medium
2676 \shape up
2677 \size normal
2678 \emph off
2679 \bar no
2680 \noun off
2681 \color none
2682 人によっては、ログファイルを直接ご覧になりたいかもしれません。これは、
2683 \begin_inset Flex MenuItem
2684 status collapsed
2685
2686 \begin_layout Plain Layout
2687
2688 \family roman
2689 \series medium
2690 \shape up
2691 \size normal
2692 \emph off
2693 \bar no
2694 \noun off
2695 \color none
2696 文書\SpecialChar \menuseparator
2697 LaTeXログ
2698 \end_layout
2699
2700 \end_inset
2701
2702 で見ることができます。エラーメッセージや警告には、よく見かけるものがいくつかありますので、それらをここに収録しておきます。ここにないエラーや警告に関しては、La
2703 TeX関連の良書を参照してください。
2704 \end_layout
2705
2706 \begin_layout Itemize
2707
2708 \family typewriter
2709 \begin_inset Flex Code
2710 status collapsed
2711
2712 \begin_layout Plain Layout
2713
2714 \family typewriter
2715 LaTeX Warning
2716 \end_layout
2717
2718 \end_inset
2719
2720
2721 \family roman
2722 \series medium
2723 \shape up
2724 \size normal
2725 \emph off
2726 \bar no
2727 \noun off
2728 \color none
2729
2730 \begin_inset Newline newline
2731 \end_inset
2732
2733 これで始まるメッセージは、LaTeXコード自体を「デバッグ」するための警告メッセージです。相互参照や参考文献を追加したり変更した場合に、もう一度LaTeXを実行
2734 する必要があることを知らせるために、このようなメッセージが表示されます。このメッセージは、だいたいにおいて無視しても大丈夫です。
2735 \end_layout
2736
2737 \begin_layout Itemize
2738
2739 \family typewriter
2740 \begin_inset Flex Code
2741 status collapsed
2742
2743 \begin_layout Plain Layout
2744
2745 \family typewriter
2746 LaTeX Font Warning
2747 \end_layout
2748
2749 \end_inset
2750
2751
2752 \family roman
2753 \series medium
2754 \shape up
2755 \size normal
2756 \emph off
2757 \bar no
2758 \noun off
2759 \color none
2760
2761 \begin_inset Newline newline
2762 \end_inset
2763
2764 LaTeXがフォントを見つけられなかったと言う警告メッセージです。多くの場合、このメッセージの後に、LaTeXが使用した代替フォントに関する情報が続きます。これ
2765 も無視して構いません。
2766 \end_layout
2767
2768 \begin_layout Itemize
2769
2770 \family roman
2771 \series medium
2772 \shape up
2773 \size normal
2774 \emph off
2775 \bar no
2776 \noun off
2777 \color none
2778 \begin_inset Flex Code
2779 status collapsed
2780
2781 \begin_layout Plain Layout
2782
2783 \family typewriter
2784 Overfull 
2785 \backslash
2786 hbox
2787 \end_layout
2788
2789 \end_inset
2790
2791
2792 \begin_inset Newline newline
2793 \end_inset
2794
2795 LaTeXは、
2796 \family default
2797 \series default
2798 \shape default
2799 \size default
2800 \emph on
2801 \bar default
2802 \noun default
2803 \color inherit
2804 ほぼどんなときでも
2805 \family roman
2806 \series medium
2807 \shape up
2808 \size normal
2809 \emph off
2810 \bar no
2811 \noun off
2812 \color none
2813 この警告を吐き出します。これは、一行が長すぎて右余白にはみ出してしまったという警告ですが、ほとんどの場合、最終出力を見ても判別できないくらい(せいぜい1ポイント
2814 か2ポイント)です。あるいは1文字か2文字右余白に出ているくらいです。LaTeXは、どんな文書を書いても、少なくとも一つはこのメッセージを出すようです。
2815 \begin_inset Newline newline
2816 \end_inset
2817
2818 このメッセージは無視しても大丈夫です。何か行が長すぎるような問題があれば、目で見ればわかります。出力を目で確認してください
2819 \begin_inset Foot
2820 status collapsed
2821
2822 \begin_layout Plain Layout
2823 あるいは、
2824 \begin_inset Flex MenuItem
2825 status collapsed
2826
2827 \begin_layout Plain Layout
2828 文書\SpecialChar \menuseparator
2829 設定
2830 \end_layout
2831
2832 \end_inset
2833
2834 で「draft」オプションを指定する方法もあります。こうすると、LaTeXは、overfullの発生した行の余白に黒い四角を描画します。
2835 \end_layout
2836
2837 \end_inset
2838
2839
2840 \end_layout
2841
2842 \begin_layout Itemize
2843
2844 \family typewriter
2845 \begin_inset Flex Code
2846 status collapsed
2847
2848 \begin_layout Plain Layout
2849
2850 \family typewriter
2851 Underfull 
2852 \backslash
2853 hbox
2854 \end_layout
2855
2856 \end_inset
2857
2858
2859 \begin_inset Newline newline
2860 \end_inset
2861
2862
2863 \family roman
2864 \series medium
2865 \shape up
2866 \size normal
2867 \emph off
2868 \bar no
2869 \noun off
2870 \color none
2871 これは上の警告と違ってあまり出てきません。なぜだかは分かりませんが、LaTeXは1行を短めにする印字するよりは、長めにする方が好きなようです。
2872 \end_layout
2873
2874 \begin_layout Itemize
2875 \begin_inset Flex Code
2876 status collapsed
2877
2878 \begin_layout Plain Layout
2879
2880 \family typewriter
2881 Overfull 
2882 \backslash
2883 vbox
2884 \end_layout
2885
2886 \end_inset
2887
2888
2889 \family typewriter
2890
2891 \begin_inset Flex Code
2892 status collapsed
2893
2894 \begin_layout Plain Layout
2895
2896 \family typewriter
2897 Underfull 
2898 \backslash
2899 vbox
2900 \end_layout
2901
2902 \end_inset
2903
2904
2905 \family default
2906
2907 \begin_inset Newline newline
2908 \end_inset
2909
2910
2911 \family roman
2912 \series medium
2913 \shape up
2914 \size normal
2915 \emph off
2916 \bar no
2917 \noun off
2918 \color none
2919 ページ区切りに問題があったという警告です。この場合も、出力を目で確認してください。何か問題があれば、見てすぐわかります。
2920 \end_layout
2921
2922 \begin_layout Itemize
2923
2924 \family typewriter
2925 \begin_inset Flex Code
2926 status collapsed
2927
2928 \begin_layout Plain Layout
2929
2930 \family typewriter
2931 LaTeX Error: File 
2932 \begin_inset Quotes els
2933 \end_inset
2934
2935 Xxxx
2936 \begin_inset Quotes ers
2937 \end_inset
2938
2939  not found
2940 \end_layout
2941
2942 \end_inset
2943
2944
2945 \family roman
2946 \series medium
2947 \shape up
2948 \size normal
2949 \emph off
2950 \bar no
2951 \noun off
2952 \color none
2953
2954 \begin_inset Newline newline
2955 \end_inset
2956
2957 ファイル「Xxxx」が、システムに導入されていません。これは通常、文書が必要としているLaTeXパッケージに、導入済でないものがある場合に現れます。プリアンブル
2958 に変更を加えておらず、
2959 \begin_inset Flex Code
2960 status collapsed
2961
2962 \begin_layout Plain Layout
2963
2964 \family typewriter
2965
2966 \backslash
2967 usepackage{}
2968 \end_layout
2969
2970 \end_inset
2971
2972 コマンドも使用していないとすれば、LyXが読み込もうしているパッケージに存在しないものがあるということです。
2973 \family default
2974 \series default
2975 \shape default
2976 \size default
2977 \emph default
2978 \bar default
2979 \noun default
2980 \color inherit
2981
2982 \begin_inset Flex MenuItem
2983 status collapsed
2984
2985 \begin_layout Plain Layout
2986 ヘルプ\SpecialChar \menuseparator
2987 LaTeXの設定
2988 \end_layout
2989
2990 \end_inset
2991
2992
2993 \family roman
2994 \series medium
2995 \shape up
2996 \size normal
2997 \emph off
2998 \bar no
2999 \noun off
3000 \color none
3001 を使用して、LyXが認識しているパッケージの一覧を得てください。このファイルは、(
3002 \begin_inset Flex MenuItem
3003 status collapsed
3004
3005 \begin_layout Plain Layout
3006
3007 \family roman
3008 \series medium
3009 \shape up
3010 \size normal
3011 \emph off
3012 \bar no
3013 \noun off
3014 \color none
3015 ツール\SpecialChar \menuseparator
3016 再設定
3017 \end_layout
3018
3019 \end_inset
3020
3021 を使用して)LyXの再設定を行うたびに更新され、どのパッケージが検出されたか、それらのパッケージが何をするものかを表示します。
3022 \begin_inset Newline newline
3023 \end_inset
3024
3025
3026 \family sans
3027 \series default
3028 \shape default
3029 \size default
3030 \emph default
3031 \bar default
3032 \noun default
3033 \color inherit
3034
3035 \begin_inset Flex Code
3036 status collapsed
3037
3038 \begin_layout Plain Layout
3039
3040 \family sans
3041
3042 \backslash
3043 usepackage{}
3044 \end_layout
3045
3046 \end_inset
3047
3048
3049 \family roman
3050 \series medium
3051 \shape up
3052 \size normal
3053 \emph off
3054 \bar no
3055 \noun off
3056 \color none
3057 コマンドを使っていて、肝心のパッケージが導入されていない場合には、ご自身で導入する必要があります。
3058 \end_layout
3059
3060 \begin_layout Itemize
3061
3062 \family typewriter
3063 \begin_inset Flex Code
3064 status collapsed
3065
3066 \begin_layout Plain Layout
3067
3068 \family typewriter
3069 LaTeX Error: Unknown option
3070 \end_layout
3071
3072 \end_inset
3073
3074
3075 \family roman
3076 \series medium
3077 \shape up
3078 \size normal
3079 \emph off
3080 \bar no
3081 \noun off
3082 \color none
3083
3084 \begin_inset Newline newline
3085 \end_inset
3086
3087 このように始まるエラーメッセージは、パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです。パッケージの取扱説明書をご確認くだ
3088 さい。
3089 \end_layout
3090
3091 \begin_layout Itemize
3092
3093 \family typewriter
3094 \begin_inset Flex Code
3095 status collapsed
3096
3097 \begin_layout Plain Layout
3098
3099 \family typewriter
3100 Undefined control sequence
3101 \end_layout
3102
3103 \end_inset
3104
3105
3106 \family roman
3107 \series medium
3108 \shape up
3109 \size normal
3110 \emph off
3111 \bar no
3112 \noun off
3113 \color none
3114
3115 \begin_inset Newline newline
3116 \end_inset
3117
3118 お使いの文書にLaTeXコードを挿入した際、打ち間違いをしてしまうと、このようなメッセージが表示されます。あるいは、パッケージを読み込ませるのを忘れたのかもしれ
3119 ません。いずれにしても、このメッセージは、あなたが未定義のコマンドを使用したことを示しています。
3120 \end_layout
3121
3122 \begin_layout Standard
3123
3124 \family roman
3125 \series medium
3126 \shape up
3127 \size normal
3128 \emph off
3129 \bar no
3130 \noun off
3131 \color none
3132 これ以外にも、エラーメッセージや警告メッセージがあります。一般に、読んで意味がすぐにわかるものは、LaTeXのメッセージです。何を言っているのかさっぱりわからな
3133 いものもありますが、通常これらは、TeXのメッセージであり、それが何を意味しているのか、どのように解読すればいいのか、
3134 \family default
3135 \series default
3136 \shape default
3137 \size default
3138 \emph on
3139 \bar default
3140 \noun default
3141 \color inherit
3142 まったく
3143 \family roman
3144 \series medium
3145 \shape up
3146 \size normal
3147 \emph off
3148 \bar no
3149 \noun off
3150 \color none
3151 手がかりがありません。誰もわからないのです。
3152 \end_layout
3153
3154 \begin_layout Standard
3155
3156 \family roman
3157 \series medium
3158 \shape up
3159 \size normal
3160 \emph off
3161 \bar no
3162 \noun off
3163 \color none
3164 エラーメッセージが表示された場合は、つねに以下のチェックリストにしたがった方がよいでしょう。
3165 \end_layout
3166
3167 \begin_layout Enumerate
3168
3169 \family roman
3170 \series medium
3171 \shape up
3172 \size normal
3173 \emph off
3174 \bar no
3175 \noun off
3176 \color none
3177 ご自分で挿入したLaTeXコードに打ち間違いがないかどうか確かめる。
3178 \end_layout
3179
3180 \begin_layout Enumerate
3181
3182 \family roman
3183 \series medium
3184 \shape up
3185 \size normal
3186 \emph off
3187 \bar no
3188 \noun off
3189 \color none
3190 打ち間違いがなければ、コマンドを正しく使ったかどうか確かめる。
3191 \end_layout
3192
3193 \begin_layout Enumerate
3194
3195 \family roman
3196 \series medium
3197 \shape up
3198 \size normal
3199 \emph off
3200 \bar no
3201 \noun off
3202 \color none
3203 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には---特に
3204 \begin_inset Flex Code
3205 status collapsed
3206
3207 \begin_layout Plain Layout
3208
3209 \family roman
3210 \series medium
3211 \shape up
3212 \size normal
3213 \emph off
3214 \bar no
3215 \noun off
3216 \color none
3217 Missing 
3218 \backslash
3219 begin{document}
3220 \end_layout
3221
3222 \end_inset
3223
3224 が表示されているならば---、プリアンブルにエラーがあることを意味します。プリアンブルのデバックを行ってください。
3225 \end_layout
3226
3227 \begin_layout Enumerate
3228
3229 \family roman
3230 \series medium
3231 \shape up
3232 \size normal
3233 \emph off
3234 \bar no
3235 \noun off
3236 \color none
3237 プリアンブルに何も追加せず、文書にLaTeXコードをまったく挿入しなかった場合には、LaTeX頒布版自体をまず疑ってください。導入されていないパッケージを探しだ
3238 して、導入してください。
3239 \end_layout
3240
3241 \begin_layout Enumerate
3242
3243 \family roman
3244 \series medium
3245 \shape up
3246 \size normal
3247 \emph off
3248 \bar no
3249 \noun off
3250 \color none
3251 導入されていないパッケージはなかったものとしましょう。LyXを微調整するオプションを使用していますか。特に、手動で
3252 \begin_inset Flex Code
3253 status collapsed
3254
3255 \begin_layout Plain Layout
3256
3257 \family sans
3258 Protected
3259 \begin_inset space ~
3260 \end_inset
3261
3262 Blank
3263 \end_layout
3264
3265 \end_inset
3266
3267
3268 \begin_inset Flex Code
3269 status collapsed
3270
3271 \begin_layout Plain Layout
3272
3273 \family sans
3274 Linebreak
3275 \end_layout
3276
3277 \end_inset
3278
3279
3280 \family sans
3281 \series default
3282 \shape default
3283 \size default
3284 \emph default
3285 \bar default
3286 \noun default
3287 \color inherit
3288
3289 \begin_inset Flex Code
3290 status collapsed
3291
3292 \begin_layout Plain Layout
3293
3294 \family sans
3295 Pagebreak
3296 \end_layout
3297
3298 \end_inset
3299
3300
3301 \family roman
3302 \series medium
3303 \shape up
3304 \size normal
3305 \emph off
3306 \bar no
3307 \noun off
3308 \color none
3309 などをたくさん挿入するなど、微調整オプションを
3310 \family default
3311 \series default
3312 \shape default
3313 \size default
3314 \emph on
3315 \bar default
3316 \noun default
3317 \color inherit
3318 悪用
3319 \family roman
3320 \series medium
3321 \shape up
3322 \size normal
3323 \emph off
3324 \bar no
3325 \noun off
3326 \color none
3327 していませんか。適切な段落環境を使用する代わりに、これらを使用してその場をしのごうとしていませんか。
3328 \end_layout
3329
3330 \begin_layout Enumerate
3331
3332 \family roman
3333 \series medium
3334 \shape up
3335 \size normal
3336 \emph off
3337 \bar no
3338 \noun off
3339 \color none
3340 微調整オプションはまったく使用しておらず、規則に乗っ取って作業していたものとしましょう。何か曲芸のようなことをしようとはしていませんか。数式や表中で、たとえば表
3341 のセルに図を入れるなど、おかしなことをしようとしていませんか。
3342 \end_layout
3343
3344 \begin_layout Enumerate
3345 LaTeXが改行位置を見つけられないほど長い一節がありませんか。既定では、改行するために単語間に空白をたくさん追加することを、LaTeXはかなり嫌います。可能で
3346 あれば、問題が生じないように段落を修正するのが望ましいでしょう。それが難しければ、LaTeXが改行しやすく(sloppy)なるように、その部分を
3347 \family typewriter
3348
3349 \begin_inset Flex Code
3350 status collapsed
3351
3352 \begin_layout Plain Layout
3353
3354 \family typewriter
3355
3356 \backslash
3357 sloppypar
3358 \end_layout
3359
3360 \end_inset
3361
3362
3363 \family default
3364 で囲んでください。
3365 \end_layout
3366
3367 \begin_layout Enumerate
3368
3369 \family roman
3370 \series medium
3371 \shape up
3372 \size normal
3373 \emph off
3374 \bar no
3375 \noun off
3376 \color none
3377 入れ子の階層を深くしすぎていませんか。LyXは、(今のところ)環境の入れ子の階層が制限内にあるかチェックしません。かりに、環境を17段の入れ子にしたりしていたら
3378 、それが原因です(LaTeXの上限は5段です)。
3379 \end_layout
3380
3381 \begin_layout Enumerate
3382
3383 \family roman
3384 \series medium
3385 \shape up
3386 \size normal
3387 \emph off
3388 \bar no
3389 \noun off
3390 \color none
3391 エラーメッセージは発生しないけれども、出力がひどいものとしましょう。図表が幅が広すぎたり長すぎてページに収まらない場合には、
3392 \end_layout
3393
3394 \begin_deeper
3395 \begin_layout Enumerate
3396
3397 \family roman
3398 \series medium
3399 \shape up
3400 \size normal
3401 \emph off
3402 \bar no
3403 \noun off
3404 \color none
3405 図がページに合うように大きさを変える、
3406 \end_layout
3407
3408 \begin_layout Enumerate
3409
3410 \family roman
3411 \series medium
3412 \shape up
3413 \size normal
3414 \emph off
3415 \bar no
3416 \noun off
3417 \color none
3418 表がページに合うように削る、
3419 \end_layout
3420
3421 \begin_layout Standard
3422
3423 \family roman
3424 \series medium
3425 \shape up
3426 \size normal
3427 \emph off
3428 \bar no
3429 \noun off
3430 \color none
3431 などの手段を採る必要があります。
3432 \end_layout
3433
3434 \end_deeper
3435 \begin_layout Enumerate
3436 他に出力におかしいところがあり、曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば、何がおかしいのか確定的なことは言えません。
3437 \end_layout
3438
3439 \begin_layout Standard
3440
3441 \family roman
3442 \series medium
3443 \shape up
3444 \size normal
3445 \emph off
3446 \bar no
3447 \noun off
3448 \color none
3449 これらすべてが役に立たないとすれば、
3450 \family default
3451 \series default
3452 \shape default
3453 \size default
3454 \emph on
3455 \bar default
3456 \noun default
3457 \color inherit
3458 ひょっとしたら
3459 \family roman
3460 \series medium
3461 \shape up
3462 \size normal
3463 \emph off
3464 \bar no
3465 \noun off
3466 \color none
3467 LyXのバグを発見したのかもしれません‥‥。
3468 \end_layout
3469
3470 \begin_layout Chapter
3471 補完ツール
3472 \end_layout
3473
3474 \begin_layout Section
3475 BibTeXによる参照文献のカスタマイズ
3476 \end_layout
3477
3478 \begin_layout Standard
3479 BibTeXの基本的な使用法は、『
3480 \emph on
3481 ユーザーの手引き
3482 \emph default
3483 』の
3484 \emph on
3485 参考文献データベース(BibTeX)
3486 \emph default
3487 の節に説明があります。以下の各小節では、LyXでサポートされている参考文献の特別な機能について説明することとします。
3488 \end_layout
3489
3490 \begin_layout Subsection
3491 他の引用様式
3492 \end_layout
3493
3494 \begin_layout Standard
3495 標準のBibTeXは、引用された著作を参照するのに、([12]のように)数字を使用します。しかし、多くの科学分野で、これとは異なる引用様式が用いられています。も
3496 っともよく見られるのは、著者-出版年様式(例:Knuth 1984a)です。LyXは、この様式を提供する2つのパッケージ
3497 \begin_inset Flex Code
3498 status collapsed
3499
3500 \begin_layout Plain Layout
3501 natbib
3502 \end_layout
3503
3504 \end_inset
3505
3506
3507 \begin_inset Flex Code
3508 status collapsed
3509
3510 \begin_layout Plain Layout
3511 jurabib
3512 \end_layout
3513
3514 \end_inset
3515
3516 をサポートしています。これらのパッケージには、それぞれ長所短所がありますが、ここでは詳細に立ち入る紙幅がありません。単純な著者-出版年様式(あるいは著者-番号)
3517 様式が欲しい場合や、無数にある
3518 \begin_inset Flex Code
3519 status collapsed
3520
3521 \begin_layout Plain Layout
3522 natbib
3523 \end_layout
3524
3525 \end_inset
3526
3527 用スタイルファイルのうちどれかを使用したい場合には、定評のある
3528 \begin_inset Flex Code
3529 status collapsed
3530
3531 \begin_layout Plain Layout
3532 natbib
3533 \end_layout
3534
3535 \end_inset
3536
3537 パッケージがおそらくよい選択でしょう。短縮タイトルによる参照や
3538 \emph on
3539 ibid.
3540 \emph default
3541 など、特別な機能が必要な場合には、
3542 \begin_inset Flex Code
3543 status collapsed
3544
3545 \begin_layout Plain Layout
3546 jurabib
3547 \end_layout
3548
3549 \end_inset
3550
3551 パッケージの利用を考えるとよいかもしれません。
3552 \end_layout
3553
3554 \begin_layout Standard
3555 LyXでの両パッケージの取扱い方は、ほぼ同じです。
3556 \begin_inset Flex MenuItem
3557 status collapsed
3558
3559 \begin_layout Plain Layout
3560 文書\SpecialChar \menuseparator
3561 設定
3562 \end_layout
3563
3564 \end_inset
3565
3566 メニューを開き、
3567 \begin_inset Flex MenuItem
3568 status collapsed
3569
3570 \begin_layout Plain Layout
3571 参考文献
3572 \end_layout
3573
3574 \end_inset
3575
3576 項目から
3577 \begin_inset Flex MenuItem
3578 status collapsed
3579
3580 \begin_layout Plain Layout
3581 Natbib
3582 \end_layout
3583
3584 \end_inset
3585
3586 オプションか
3587 \begin_inset Flex MenuItem
3588 status collapsed
3589
3590 \begin_layout Plain Layout
3591 Jurabib
3592 \end_layout
3593
3594 \end_inset
3595
3596 オプションを選択してください。これらのパッケージによって、引用ダイアログに機能が追加され、参照の様式が選択できるようになります(「Knuth 1984」、「Kn
3597 uth (1984)」、「Knuth, 1984」、「1984」など)。両パッケージは、専用にデザインされたスタイルファイルを必要とすることに注意してください。
3598 両者ともそれ自身のスタイルファイルを同梱していますが、他にもたくさんの追加スタイルファイルがありますし、
3599 \begin_inset Flex Code
3600 status collapsed
3601
3602 \begin_layout Plain Layout
3603 natbib
3604 \end_layout
3605
3606 \end_inset
3607
3608 に至っては、対話的なスタイルファイルビルダーさえ存在します
3609 \begin_inset Foot
3610 status collapsed
3611
3612 \begin_layout Plain Layout
3613 \begin_inset Flex URL
3614 status open
3615
3616 \begin_layout Plain Layout
3617
3618 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3619 \end_layout
3620
3621 \end_inset
3622
3623 をご参照ください。
3624 \end_layout
3625
3626 \end_inset
3627
3628
3629 \end_layout
3630
3631 \begin_layout Subsection
3632 節分けされた参考文献
3633 \end_layout
3634
3635 \begin_layout Standard
3636 場合によっては、参考文献をいくつかの節に分ける必要があることがあります。たとえば、あなたが歴史家であるとすれば、出典と学術文献を分ける機能は、おそらく「必需品」
3637 でさえあります。残念ながら、BibTeX自身ではこのようなことができません。しかし、適切なLaTeXパッケージの助けを借りると、BibTeXをこのような必要性を
3638 満たすように拡張することができます。
3639 \end_layout
3640
3641 \begin_layout Standard
3642 LyXは、このようなパッケージの一つである
3643 \begin_inset Flex Code
3644 status collapsed
3645
3646 \begin_layout Plain Layout
3647 bibtopic
3648 \end_layout
3649
3650 \end_inset
3651
3652
3653 \begin_inset Foot
3654 status collapsed
3655
3656 \begin_layout Plain Layout
3657 \begin_inset Flex URL
3658 status open
3659
3660 \begin_layout Plain Layout
3661
3662 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3663 \end_layout
3664
3665 \end_inset
3666
3667 から入手可能です。
3668 \end_layout
3669
3670 \end_inset
3671
3672 をそのままでサポートします。このパッケージの長所は、(
3673 \begin_inset Flex Code
3674 status collapsed
3675
3676 \begin_layout Plain Layout
3677 multibib
3678 \end_layout
3679
3680 \end_inset
3681
3682 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです。そのかわりに、参考文献の違う節には、その節向けの項目を収録した別の参考文献デ
3683 ータベースを用意する必要があります。たとえば、参考文献を「出典」の節と「学術文献」の節に分けたい場合には、それぞれの参考文献データベース、たとえば
3684 \begin_inset Flex Code
3685 status collapsed
3686
3687 \begin_layout Plain Layout
3688 souces.bib
3689 \end_layout
3690
3691 \end_inset
3692
3693
3694 \begin_inset Flex Code
3695 status collapsed
3696
3697 \begin_layout Plain Layout
3698 scientific.bib
3699 \end_layout
3700
3701 \end_inset
3702
3703 とを作成する必要があります。
3704 \end_layout
3705
3706 \begin_layout Standard
3707 \begin_inset Flex MenuItem
3708 status collapsed
3709
3710 \begin_layout Plain Layout
3711 文書\SpecialChar \menuseparator
3712 設定
3713 \end_layout
3714
3715 \end_inset
3716
3717 を開いて
3718 \begin_inset Flex MenuItem
3719 status collapsed
3720
3721 \begin_layout Plain Layout
3722 参考文献
3723 \end_layout
3724
3725 \end_inset
3726
3727 の下の
3728 \begin_inset Flex MenuItem
3729 status collapsed
3730
3731 \begin_layout Plain Layout
3732 節分けされた参考文献
3733 \end_layout
3734
3735 \end_inset
3736
3737 をチェックしてください。すると、参考文献の各節に一つずつ、複数の参考文献を挿入することができます。上記の例では、BibTeX参考文献
3738 \begin_inset Flex Code
3739 status collapsed
3740
3741 \begin_layout Plain Layout
3742 sources.bib
3743 \end_layout
3744
3745 \end_inset
3746
3747 と二つめの参考文献データベース
3748 \begin_inset Flex Code
3749 status collapsed
3750
3751 \begin_layout Plain Layout
3752 scientific.bib
3753 \end_layout
3754
3755 \end_inset
3756
3757 を挿入します。各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です。くわえて、参考文献の節に、指定したデータベースの「引用されたすべての参照」を載せる
3758 (これが既定です)か、「引用されなかったすべての参照」を載せるか、あるいは「すべての参照」を載せるかを選択することができます。これは、もし参考文献を「本文に引用
3759 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に、便利でありましょう。各節の見出しは、通常の節や小節として入れることができ
3760 ます。
3761 \begin_inset Flex Code
3762 status collapsed
3763
3764 \begin_layout Plain Layout
3765 bibtopic
3766 \end_layout
3767
3768 \end_inset
3769
3770 は、参考文献用の見出しを取り除いてしまいますので、手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください)。
3771 \end_layout
3772
3773 \begin_layout Subsection
3774 複数の参考文献
3775 \end_layout
3776
3777 \begin_layout Standard
3778 文書の節ごとあるいは章ごとの参考文献など、複数の参考文献はBibTeX自身ではサポートされていません。しかしながら、もし若干の
3779 \begin_inset Flex Code
3780 status collapsed
3781
3782 \begin_layout Plain Layout
3783 TeXコード
3784 \end_layout
3785
3786 \end_inset
3787
3788 (第
3789 \begin_inset CommandInset ref
3790 LatexCommand ref
3791 reference "sec:LaTeXコードを挿入する"
3792
3793 \end_inset
3794
3795 節を参照)を利用することを厭わなければ、LyXで節分けされた参考文献を作るのに使用されている(前節を参照)
3796 \begin_inset Flex Code
3797 status collapsed
3798
3799 \begin_layout Plain Layout
3800 bibtopic
3801 \end_layout
3802
3803 \end_inset
3804
3805 パッケージが、この課題を解決する簡単な方法を提供します
3806 \begin_inset Foot
3807 status collapsed
3808
3809 \begin_layout Plain Layout
3810 ほかに、
3811 \begin_inset Flex Code
3812 status collapsed
3813
3814 \begin_layout Plain Layout
3815 chapterbib
3816 \end_layout
3817
3818 \end_inset
3819
3820
3821 \begin_inset Flex Code
3822 status collapsed
3823
3824 \begin_layout Plain Layout
3825 bibunits
3826 \end_layout
3827
3828 \end_inset
3829
3830 パッケージを利用する方法もあります。
3831 \end_layout
3832
3833 \end_inset
3834
3835
3836 \end_layout
3837
3838 \begin_layout Standard
3839 まず
3840 \begin_inset Flex MenuItem
3841 status collapsed
3842
3843 \begin_layout Plain Layout
3844 文書\SpecialChar \menuseparator
3845 設定
3846 \end_layout
3847
3848 \end_inset
3849
3850 に行って
3851 \begin_inset Flex MenuItem
3852 status collapsed
3853
3854 \begin_layout Plain Layout
3855 参考文献
3856 \end_layout
3857
3858 \end_inset
3859
3860 の下の
3861 \begin_inset Flex MenuItem
3862 status collapsed
3863
3864 \begin_layout Plain Layout
3865 節分けされた参考文献
3866 \end_layout
3867
3868 \end_inset
3869
3870 を有効にしてください。つぎに文書中において、参考文献(BibTeX参考文献本体を含む)の入った節を
3871 \begin_inset Flex Code
3872 status collapsed
3873
3874 \begin_layout Plain Layout
3875
3876 \backslash
3877 begin{btUnit}
3878 \end_layout
3879
3880 \end_inset
3881
3882
3883 \begin_inset Flex Code
3884 status collapsed
3885
3886 \begin_layout Plain Layout
3887
3888 \backslash
3889 end{btUnit}
3890 \end_layout
3891
3892 \end_inset
3893
3894 のあいだにはさまなくてはなりません(これらのコマンドはTeXコードとして挿入する必要があります)。参考文献には、現在位置の
3895 \begin_inset Flex Code
3896 status collapsed
3897
3898 \begin_layout Plain Layout
3899 btUnit
3900 \end_layout
3901
3902 \end_inset
3903
3904 において引用されたすべての参照が含まれることになります。
3905 \series bold
3906 (註)
3907 \series default
3908 この方法を用いる場合には、すべての参照はいずれかの
3909 \begin_inset Flex Code
3910 status collapsed
3911
3912 \begin_layout Plain Layout
3913 btUnit
3914 \end_layout
3915
3916 \end_inset
3917
3918 内部になくてはなりません。また、
3919 \begin_inset Flex Code
3920 status collapsed
3921
3922 \begin_layout Plain Layout
3923 btUnit
3924 \end_layout
3925
3926 \end_inset
3927
3928 は入れ子構造にすることができません。
3929 \end_layout
3930
3931 \begin_layout Section
3932 複合文書
3933 \end_layout
3934
3935 \begin_layout Subsection
3936 一般的な操作
3937 \end_layout
3938
3939 \begin_layout Standard
3940 たくさんの節を含んだ大きなファイルで作業をする場合、文書をいくつかのファイルに分割した方が往々にして便利ですし、場合によっては、表部分にはしょっちゅう変更が加え
3941 られるけれども、その前の文章はつねに同じであるようなケースもあるでしょう。このような場合には、複合文書を利用することを、まずご検討ください。たとえば、科学論文は
3942 通常、導入部・所見・結果・議論・結論の五つの節から成ります。これら各節を別々のLyXファイルにして、タイトル・著者・概要・参考文献等と、これら五つのインクルード
3943 \begin_inset Foot
3944 status collapsed
3945
3946 \begin_layout Plain Layout
3947
3948 \series bold
3949 (訳註)
3950 \series default
3951 「取り込む」の意です。原語「include」に対する訳語として、プログラミング用語の「インクルードする」以外に適語がないので、ここではプログラミング用語をそのま
3952 ま使用します。
3953 \end_layout
3954
3955 \end_inset
3956
3957 ファイルを持つ、もう一つ別の「マスター」ファイルを作成するようにすることができます。これらの各ファイルは、単にマスターファイルにインクルードされるだけでなく、単
3958 独でも出力したり印刷したりすることのできる完全なLyXファイルであるように注意することが重要です。しかも、これらの各ファイルは、同じ文書クラスでなくてはなりませ
3959 ん。articleクラスとbookクラスを混在させるようなことはなさらないでください。LaTeXファイルをインクルードすることもできますが、このファイルにはプリ
3960 アンブルがあってはなりません(
3961 \family typewriter
3962
3963 \backslash
3964 begin{document}
3965 \family default
3966 行とその前のすべて、および
3967 \family typewriter
3968
3969 \backslash
3970 end{documen
3971 \family default
3972 t}行は削除しておかなければなりません)。さもないと、DVIファイルを作成する際にエラーが発生するでしょう。
3973 \end_layout
3974
3975 \begin_layout Standard
3976 LyXでは、
3977 \family sans
3978 挿入\SpecialChar \menuseparator
3979 ファイル\SpecialChar \menuseparator
3980 子文書
3981 \family default
3982 で簡単にファイルをインクルードすることができます。このメニューを選んでクリックすると、カーソルの現在位置に小さな枠が挿入されます。この枠をクリックすると、ダイア
3983 ログが現れるので、そこでインクルードするファイルとインクルード方法を選択することができます。
3984 \end_layout
3985
3986 \begin_layout Standard
3987 ファイル選択ボックスは、いまや自明でしょう。インクルード方法には、「include」・「input」・「verbatim」の三つがあります。「include」と
3988 「input」の違いは、正確にはLaTeXの達人にしか意味のないものですが、ほとんどの人にとって意味のある違いといえば、「include」されたファイルは新規頁
3989 から組版されるのに対し、「input」されたファイルは現在のページから組版される点です。
3990 \end_layout
3991
3992 \begin_layout Standard
3993 一般に、マスターファイルは、組版前に完全なLaTeXファイルに変換されますが、インクルードされるファイルは、プリアンブル情報をまったく持たないLaTeXファイル
3994 に変換されます。
3995 \end_layout
3996
3997 \begin_layout Standard
3998 「verbatim」インクルードファイルでは、ファイルの内容がそのまま(つまり「
3999 \begin_inset Flex Code
4000 status collapsed
4001
4002 \begin_layout Plain Layout
4003 verbatim
4004 \end_layout
4005
4006 \end_inset
4007
4008 」モードで)固定幅タイプライタフォントで組版されます。通常、このファイルの空白は、通常のLyXでの空白の取扱いとは違って、連続した複数の空白がそのまま出力される
4009 ものの、単なる見えない空白です。ただし、
4010 \family sans
4011
4012 \begin_inset Flex MenuItem
4013 status collapsed
4014
4015 \begin_layout Plain Layout
4016
4017 \family sans
4018 出力の空白に印付けをする
4019 \end_layout
4020
4021 \end_inset
4022
4023
4024 \family default
4025 チェックボックスを有効にすると、空白が存在することを明確にするために空白の印が出力されます。
4026 \end_layout
4027
4028 \begin_layout Subsection
4029 ファイル間の相互参照
4030 \end_layout
4031
4032 \begin_layout Standard
4033 \begin_inset Box Shadowbox
4034 position "t"
4035 hor_pos "c"
4036 has_inner_box 1
4037 inner_pos "t"
4038 use_parbox 0
4039 use_makebox 0
4040 width "100col%"
4041 special "none"
4042 height "1in"
4043 height_special "totalheight"
4044 status open
4045
4046 \begin_layout Plain Layout
4047 この節の内容は、すでに古くなっています。既定のマスター文書についてと、マスターが開いているときに子文書をどう開くかについて記述する必要があります。[[要修正]]
4048 \end_layout
4049
4050 \end_inset
4051
4052
4053 \end_layout
4054
4055 \begin_layout Standard
4056 異なるファイル間に相互参照を設定することも可能です。まず、すべての関係するファイルを開いてください。例として、2つのファイルを扱う場合を考え、各ファイルをA・B
4057 と呼びます。BがAにインクルードされるファイルだとします。Aにラベルを入れて、Bで参照したいとしましょう。文書Bで相互参照ダイアログを開いて、使用する「バッファ
4058 」を選んでください。
4059 \end_layout
4060
4061 \begin_layout Subsection
4062 すべての子文書での参考文献
4063 \end_layout
4064
4065 \begin_layout Standard
4066 \begin_inset Box Shadowbox
4067 position "t"
4068 hor_pos "c"
4069 has_inner_box 1
4070 inner_pos "t"
4071 use_parbox 0
4072 use_makebox 0
4073 width "100col%"
4074 special "none"
4075 height "1in"
4076 height_special "totalheight"
4077 status open
4078
4079 \begin_layout Plain Layout
4080 この節も更新が必要です。この点に関する内容がwikiにあるので、それをここにコピーすることも可か。
4081 \end_layout
4082
4083 \end_inset
4084
4085
4086 \end_layout
4087
4088 \begin_layout Standard
4089 すべての子文書の全文献項目を含んだ参考文献一覧をコピーし、それをコメントに変更してください。このようにすることで、LyXは.bibファイルを見つけることができ、参
4090 考文献一覧を見えるようにせずとも簡単に参照を挿入することができるようになります。
4091 \end_layout
4092
4093 \begin_layout Standard
4094 参考文献一覧がコメントにあるために、LaTeXはそれを使用しないので、参照は[1]のようには表示されないで[?]のように表示されます。ひとつの解決法として、コメ
4095 ントをインクルードするLaTeXパッケージの
4096 \begin_inset Flex Code
4097 status collapsed
4098
4099 \begin_layout Plain Layout
4100 comment
4101 \end_layout
4102
4103 \end_inset
4104
4105 を使用して、ファイルを別々に処理する方法があります。そのためには、すべての子文書のプリアンブルに以下を書き加えてください。
4106 \end_layout
4107
4108 \begin_layout LyX-Code
4109
4110 \backslash
4111 usepackage{comment}
4112 \end_layout
4113
4114 \begin_layout LyX-Code
4115
4116 \backslash
4117 includecomment{comment}
4118 \end_layout
4119
4120 \begin_layout Standard
4121 \begin_inset Flex URL
4122 status collapsed
4123
4124 \begin_layout Plain Layout
4125
4126 http://wiki.lyx.org/FAQ/Unsorted#toc31
4127 \end_layout
4128
4129 \end_inset
4130
4131 も参照してください。
4132 \end_layout
4133
4134 \begin_layout Section
4135 装飾的なヘッダ・フッタ
4136 \end_layout
4137
4138 \begin_layout Standard
4139 既定のページレイアウトは、どちらかといえば素っ気ないものです。
4140 \begin_inset Flex Code
4141 status collapsed
4142
4143 \begin_layout Plain Layout
4144 article
4145 \end_layout
4146
4147 \end_inset
4148
4149 文書クラスの場合には、ページの下の真ん中にページ番号がつくだけです。この取扱説明書はKOMA-scriptのbookクラスなので、すこしは凝ってますが、ほんとう
4150 に着飾るには、『
4151 \emph on
4152 ユーザーの手引き
4153 \emph default
4154 』に述べられているように、文書ページスタイルを「装飾的(fancy)」に設定する必要があります。この節では、望んだとおりの効果を得るために、LaTeXプリアンブ
4155 ルに挿入する必要のあるLaTeXコードについて解説します。
4156 \end_layout
4157
4158 \begin_layout Standard
4159 ページへッダは、「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています。フッタも同様に3つのフィールド
4160 に分類されています。これらのフィールドをもっとも簡単に設定するLaTeXコマンドには、
4161 \family typewriter
4162
4163 \begin_inset Flex Code
4164 status collapsed
4165
4166 \begin_layout Plain Layout
4167
4168 \family typewriter
4169
4170 \backslash
4171 lhead
4172 \end_layout
4173
4174 \end_inset
4175
4176
4177 \family default
4178
4179 \family typewriter
4180
4181 \begin_inset Flex Code
4182 status collapsed
4183
4184 \begin_layout Plain Layout
4185
4186 \family typewriter
4187
4188 \backslash
4189 chead
4190 \end_layout
4191
4192 \end_inset
4193
4194
4195 \family default
4196
4197 \family typewriter
4198
4199 \begin_inset Flex Code
4200 status collapsed
4201
4202 \begin_layout Plain Layout
4203
4204 \family typewriter
4205
4206 \backslash
4207 rhead
4208 \end_layout
4209
4210 \end_inset
4211
4212
4213 \family default
4214
4215 \begin_inset Flex Code
4216 status collapsed
4217
4218 \begin_layout Plain Layout
4219
4220 \backslash
4221 lfoot
4222 \end_layout
4223
4224 \end_inset
4225
4226 などがあります。かりに、各ページの左上端に自分の名前を入れたいものとしましょう。次のようなコマンドをプリアンブルに入れるだけです。
4227 \end_layout
4228
4229 \begin_layout Standard
4230
4231 \family typewriter
4232
4233 \backslash
4234 lhead{物書 はじめ}
4235 \end_layout
4236
4237 \begin_layout Standard
4238 これで自分の名前が左上に現れます。フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には、空の引数を持つコマンドを入
4239 れるだけです。すなわち、
4240 \end_layout
4241
4242 \begin_layout Standard
4243
4244 \family typewriter
4245
4246 \backslash
4247 cfoot{}
4248 \begin_inset Newline newline
4249 \end_inset
4250
4251
4252 \family default
4253 とします。
4254 \end_layout
4255
4256 \begin_layout Standard
4257 もっと美しくしてみましょう。節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ、ページ番号を(4ページのように)右上に、自分の名前を左下に、日
4258 付を右下に入れます。以下のコマンドをプリアンブルに入れます。
4259 \end_layout
4260
4261 \begin_layout Standard
4262
4263 \family typewriter
4264
4265 \backslash
4266 lhead{第
4267 \backslash
4268 thesection 節}
4269 \end_layout
4270
4271 \begin_layout Standard
4272
4273 \family typewriter
4274
4275 \backslash
4276 chead{}
4277 \end_layout
4278
4279 \begin_layout Standard
4280
4281 \family typewriter
4282
4283 \backslash
4284 rhead{
4285 \backslash
4286 thepage ページ}
4287 \end_layout
4288
4289 \begin_layout Standard
4290
4291 \family typewriter
4292
4293 \backslash
4294 lfoot{物書 はじめ}
4295 \end_layout
4296
4297 \begin_layout Standard
4298
4299 \family typewriter
4300
4301 \backslash
4302 cfoot{}
4303 \end_layout
4304
4305 \begin_layout Standard
4306
4307 \family typewriter
4308
4309 \backslash
4310 rfoot{
4311 \backslash
4312 today}
4313 \end_layout
4314
4315 \begin_layout Standard
4316 コマンド
4317 \family typewriter
4318
4319 \begin_inset Flex Code
4320 status collapsed
4321
4322 \begin_layout Plain Layout
4323
4324 \family typewriter
4325
4326 \backslash
4327 thesecti
4328 \family default
4329 o
4330 \family typewriter
4331 n
4332 \end_layout
4333
4334 \end_inset
4335
4336
4337 \family default
4338
4339 \begin_inset Flex Code
4340 status collapsed
4341
4342 \begin_layout Plain Layout
4343
4344 \family typewriter
4345
4346 \backslash
4347 thepa
4348 \family default
4349 ge
4350 \end_layout
4351
4352 \end_inset
4353
4354 は、それぞれLaTeXの節カウンタおよびページカウンタを取得するもので、これによって現在の節番号とページ番号を印字します。
4355 \begin_inset Flex Code
4356 status collapsed
4357
4358 \begin_layout Plain Layout
4359
4360 \family typewriter
4361
4362 \backslash
4363 tod
4364 \family default
4365 ay
4366 \end_layout
4367
4368 \end_inset
4369
4370 は、今日の日付を印字するものです。
4371 \end_layout
4372
4373 \begin_layout Standard
4374 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます。もし罫線が必要なければ、太さを0にしてください。ヘッダ罫線は、既定では0.4ptの太さであり、
4375 フッタ罫線は0ptです。太さを変更するには、
4376 \family typewriter
4377
4378 \begin_inset Flex Code
4379 status collapsed
4380
4381 \begin_layout Plain Layout
4382
4383 \family typewriter
4384
4385 \backslash
4386 renewcommand{
4387 \backslash
4388 headrulewidth}{0.4pt}
4389 \end_layout
4390
4391 \end_inset
4392
4393
4394 \family default
4395
4396 \family typewriter
4397
4398 \begin_inset Flex Code
4399 status collapsed
4400
4401 \begin_layout Plain Layout
4402
4403 \family typewriter
4404
4405 \backslash
4406 renewcommand{
4407 \backslash
4408 footrulewidth}{0.4pt}
4409 \end_layout
4410
4411 \end_inset
4412
4413
4414 \family default
4415 のようなコマンドを使用してください。
4416 \end_layout
4417
4418 \begin_layout Standard
4419 \begin_inset Flex Code
4420 status collapsed
4421
4422 \begin_layout Plain Layout
4423
4424 \family typewriter
4425
4426 \backslash
4427 thispagestyle{empty}
4428 \end_layout
4429
4430 \end_inset
4431
4432
4433 \begin_inset Flex Code
4434 status collapsed
4435
4436 \begin_layout Plain Layout
4437
4438 \family typewriter
4439
4440 \backslash
4441 thispagestyle{plain}
4442 \end_layout
4443
4444 \end_inset
4445
4446
4447 \begin_inset Flex Code
4448 status collapsed
4449
4450 \begin_layout Plain Layout
4451
4452 \family typewriter
4453
4454 \backslash
4455 thispagestyle{fancy}
4456 \end_layout
4457
4458 \end_inset
4459
4460 のようなコマンドを使えば、各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます。設定を変更したいページに、これらのコマンドをTeXコード
4461 として挿入してください。実は、タイトルページは、その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず、既定でプ
4462 レーン(plain)になるように設定されているのです。
4463 \end_layout
4464
4465 \begin_layout Standard
4466 奇数ページの左上だけに何かを挿入するなど、もっと複雑なコマンドもあるのですが、詳しい解説は
4467 \begin_inset Flex Code
4468 status collapsed
4469
4470 \begin_layout Plain Layout
4471
4472 \family typewriter
4473 fancyhdr
4474 \end_layout
4475
4476 \end_inset
4477
4478 パッケージの取扱説明書をご参照ください(
4479 \begin_inset Flex Code
4480 status collapsed
4481
4482 \begin_layout Plain Layout
4483 fancyhdr.dvi
4484 \end_layout
4485
4486 \end_inset
4487
4488 を探してください)。
4489 \end_layout
4490
4491 \begin_layout Standard
4492 最後の例として、へッダやフッタに画像を挿入できることを取り上げましょう。会社のロゴをページ左上に入れたいものとします。たとえば、
4493 \end_layout
4494
4495 \begin_layout Standard
4496
4497 \family typewriter
4498
4499 \backslash
4500 lhead{
4501 \backslash
4502 resizebox{1in}{!}{
4503 \backslash
4504 includegraphics{logo.eps}}}
4505 \end_layout
4506
4507 \begin_layout Standard
4508 \noindent
4509 とすれば、これを実現できます(文書中に他に画像を挿入していない場合には、
4510 \begin_inset Newline newline
4511 \end_inset
4512
4513
4514 \begin_inset Flex Code
4515 status collapsed
4516
4517 \begin_layout Plain Layout
4518 \noindent
4519
4520 \family typewriter
4521
4522 \backslash
4523 usepackage{graphics}
4524 \end_layout
4525
4526 \end_inset
4527
4528 をプリアンブルに宣言する必要があります)。
4529 \end_layout
4530
4531 \begin_layout Section
4532 箇条書き(記号)ブリットの指定
4533 \begin_inset CommandInset label
4534 LatexCommand label
4535 name "sec:ブリット"
4536
4537 \end_inset
4538
4539
4540 \end_layout
4541
4542 \begin_layout Standard
4543
4544 \noun on
4545 Allan Rae文
4546 \end_layout
4547
4548 \begin_layout Subsection
4549 はじめに
4550 \end_layout
4551
4552 \begin_layout Standard
4553 LyXには、ブリットの形が216個準備されていて、簡単なダイアログから呼び出すことができます。このダイアログを使えば、箇条書き(記号)の各階層で使うブリットの形
4554 を変更することができます。この設定は文書全体に共通なので、段落ごとに別のブリットを指定することはできません
4555 \begin_inset Foot
4556 status collapsed
4557
4558 \begin_layout Plain Layout
4559 正確には可能ですが、手動で行う必要があります。
4560 \end_layout
4561
4562 \end_inset
4563
4564
4565 \end_layout
4566
4567 \begin_layout Subsection
4568 インタフェース
4569 \end_layout
4570
4571 \begin_layout Standard
4572 メニュー項目の
4573 \begin_inset Flex MenuItem
4574 status collapsed
4575
4576 \begin_layout Plain Layout
4577 文書\SpecialChar \menuseparator
4578 設定
4579 \end_layout
4580
4581 \end_inset
4582
4583 を選択してダイアログを開き、
4584 \begin_inset Flex MenuItem
4585 status collapsed
4586
4587 \begin_layout Plain Layout
4588 ブリット
4589 \end_layout
4590
4591 \end_inset
4592
4593 タブを選択してください。
4594 \end_layout
4595
4596 \begin_layout Standard
4597 そのダイアログに、ブリットの形の一覧表があります。
4598 \begin_inset Flex MenuItem
4599 status collapsed
4600
4601 \begin_layout Plain Layout
4602 フォント
4603 \end_layout
4604
4605 \end_inset
4606
4607 と書いてあるドロップダウンメニューで、6つの各ブリット形パネルを切り替えることができます。また、一覧表左の
4608 \begin_inset Flex MenuItem
4609 status collapsed
4610
4611 \begin_layout Plain Layout
4612 階層
4613 \end_layout
4614
4615 \end_inset
4616
4617 パネルは、変更したい階層を選択するものです。
4618 \begin_inset Flex MenuItem
4619 status collapsed
4620
4621 \begin_layout Plain Layout
4622 任意のブリット
4623 \end_layout
4624
4625 \end_inset
4626
4627 では、指定したいLaTeX表現を入力することができます。任意のブリットを指定した場合には、そのコマンドが必要とするパッケージをLaTeXプリアンブルで指定する必
4628 要があります。
4629 \end_layout
4630
4631 \begin_layout Standard
4632 6つのパネルは、それぞれが必要とするパッケージによって分類されています。下記は、フォント名とLaTeXパッケージの対応表です。
4633 \end_layout
4634
4635 \begin_layout Standard
4636 \align center
4637 \begin_inset Tabular
4638 <lyxtabular version="3" rows="7" columns="2">
4639 <features rotate="0" tabularvalignment="middle">
4640 <column alignment="center" valignment="top" width="0pt">
4641 <column alignment="center" valignment="top" width="0pt">
4642 <row>
4643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4644 \begin_inset Text
4645
4646 \begin_layout Plain Layout
4647 フォント
4648 \end_layout
4649
4650 \end_inset
4651 </cell>
4652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4653 \begin_inset Text
4654
4655 \begin_layout Plain Layout
4656
4657 \family roman
4658 \series medium
4659 \shape up
4660 \size normal
4661 \emph off
4662 \bar no
4663 \noun off
4664 \color none
4665 必要とするパッケージ
4666 \end_layout
4667
4668 \end_inset
4669 </cell>
4670 </row>
4671 <row>
4672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4673 \begin_inset Text
4674
4675 \begin_layout Plain Layout
4676
4677 \family sans
4678 標準
4679 \end_layout
4680
4681 \end_inset
4682 </cell>
4683 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4684 \begin_inset Text
4685
4686 \begin_layout Plain Layout
4687
4688 \series medium
4689 \shape up
4690 \size normal
4691 \emph off
4692 \bar no
4693 \noun off
4694 \color none
4695 LaTeX
4696 \family roman
4697 本体
4698 \end_layout
4699
4700 \end_inset
4701 </cell>
4702 </row>
4703 <row>
4704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4705 \begin_inset Text
4706
4707 \begin_layout Plain Layout
4708
4709 \family sans
4710 \series medium
4711 \shape up
4712 \size normal
4713 \emph off
4714 \bar no
4715 \noun off
4716 \color none
4717 数式
4718 \end_layout
4719
4720 \end_inset
4721 </cell>
4722 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4723 \begin_inset Text
4724
4725 \begin_layout Plain Layout
4726
4727 \family typewriter
4728 \series medium
4729 \shape up
4730 \size normal
4731 \emph off
4732 \bar no
4733 \noun off
4734 \color none
4735 amssymb.sty
4736 \end_layout
4737
4738 \end_inset
4739 </cell>
4740 </row>
4741 <row>
4742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4743 \begin_inset Text
4744
4745 \begin_layout Plain Layout
4746
4747 \family sans
4748 \series medium
4749 \shape up
4750 \size normal
4751 \emph off
4752 \bar no
4753 \noun off
4754 \color none
4755 絵文字1
4756 \end_layout
4757
4758 \end_inset
4759 </cell>
4760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4761 \begin_inset Text
4762
4763 \begin_layout Plain Layout
4764
4765 \family typewriter
4766 \series medium
4767 \shape up
4768 \size normal
4769 \emph off
4770 \bar no
4771 \noun off
4772 \color none
4773 pifont.sty
4774 \end_layout
4775
4776 \end_inset
4777 </cell>
4778 </row>
4779 <row>
4780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4781 \begin_inset Text
4782
4783 \begin_layout Plain Layout
4784
4785 \family sans
4786 \series medium
4787 \shape up
4788 \size normal
4789 \emph off
4790 \bar no
4791 \noun off
4792 \color none
4793 絵文字2
4794 \end_layout
4795
4796 \end_inset
4797 </cell>
4798 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4799 \begin_inset Text
4800
4801 \begin_layout Plain Layout
4802
4803 \family typewriter
4804 \series medium
4805 \shape up
4806 \size normal
4807 \emph off
4808 \bar no
4809 \noun off
4810 \color none
4811 pifont.sty
4812 \end_layout
4813
4814 \end_inset
4815 </cell>
4816 </row>
4817 <row>
4818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4819 \begin_inset Text
4820
4821 \begin_layout Plain Layout
4822
4823 \family sans
4824 \series medium
4825 \shape up
4826 \size normal
4827 \emph off
4828 \bar no
4829 \noun off
4830 \color none
4831 絵文字3
4832 \end_layout
4833
4834 \end_inset
4835 </cell>
4836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4837 \begin_inset Text
4838
4839 \begin_layout Plain Layout
4840
4841 \family typewriter
4842 \series medium
4843 \shape up
4844 \size normal
4845 \emph off
4846 \bar no
4847 \noun off
4848 \color none
4849 pifont.sty
4850 \end_layout
4851
4852 \end_inset
4853 </cell>
4854 </row>
4855 <row>
4856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4857 \begin_inset Text
4858
4859 \begin_layout Plain Layout
4860
4861 \family sans
4862 \series medium
4863 \shape up
4864 \size normal
4865 \emph off
4866 \bar no
4867 \noun off
4868 \color none
4869 絵文字4
4870 \end_layout
4871
4872 \end_inset
4873 </cell>
4874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4875 \begin_inset Text
4876
4877 \begin_layout Plain Layout
4878
4879 \family typewriter
4880 \series medium
4881 \shape up
4882 \size normal
4883 \emph off
4884 \bar no
4885 \noun off
4886 \color none
4887 pifont.sty
4888 \end_layout
4889
4890 \end_inset
4891 </cell>
4892 </row>
4893 </lyxtabular>
4894
4895 \end_inset
4896
4897
4898 \end_layout
4899
4900 \begin_layout Standard
4901 LyXは、ユーザーが導入されていないパッケージのブリットを使用したとしても、警告を発しません。ファイルを閲覧したり印刷したりしようとしたときにLaTeXエラーが
4902 出るようならば、パッケージが導入されていない可能性が大です
4903 \begin_inset Foot
4904 status collapsed
4905
4906 \begin_layout Plain Layout
4907 LyXが、パッケージがなくてもブリットを使用することを許すのは、編集をここで行ったとしても、別のところへエクスポートする可能性があるからです。
4908 \end_layout
4909
4910 \end_inset
4911
4912
4913 \end_layout
4914
4915 \begin_layout Subsection
4916 使用法
4917 \end_layout
4918
4919 \begin_layout Standard
4920 変更したいブリット階層を選んで、ブリットの形と大きさを選んでください。何らかの変更を加えたとしても、LyX上には反映されませんが、文書の表示を行えば確認されます
4921 \begin_inset Foot
4922 status collapsed
4923
4924 \begin_layout Plain Layout
4925 もし
4926 \emph on
4927 本当に
4928 \emph default
4929 段落ごとに異なるブリットの形を使いたいならば、TeXコードを使って少し手を汚す必要があります。この場合も、ブリット選択ダイアログを使えば、さまざまな形のLaTe
4930 Xコードを確認することができるので手助けとなるでしょう。任意に設定した段落をつくるには、以下のような選択肢があります。
4931 \end_layout
4932
4933 \begin_layout Plain Layout
4934 \begin_inset ERT
4935 status open
4936
4937 \begin_layout Plain Layout
4938
4939
4940 \backslash
4941 let
4942 \backslash
4943 savelabelitemi=
4944 \backslash
4945 labelitemi
4946 \end_layout
4947
4948 \end_inset
4949
4950
4951 \end_layout
4952
4953 \begin_layout Plain Layout
4954 \begin_inset ERT
4955 status open
4956
4957 \begin_layout Plain Layout
4958
4959
4960 \backslash
4961 renewcommand
4962 \backslash
4963 labelitemi[0]{
4964 \backslash
4965 small
4966 \backslash
4967 (
4968 \backslash
4969 sharp
4970 \backslash
4971 )}
4972 \end_layout
4973
4974 \end_inset
4975
4976
4977 \end_layout
4978
4979 \begin_layout Itemize
4980 特定の階層の新しいブリット形を指定するには、LaTeXコマンド
4981 \begin_inset Flex Code
4982 status collapsed
4983
4984 \begin_layout Plain Layout
4985
4986 \family typewriter
4987
4988 \backslash
4989 renewcommand{}{}
4990 \end_layout
4991
4992 \end_inset
4993
4994 を使用します。あとで現在のブリット形に戻すことができるように、現在のブリット形を保存しておく必要もあります。ここで使っている箇条書きでは、第1階層のブリットを変
4995 更するために、以下のLaTeXコードが使用されています。
4996 \end_layout
4997
4998 \begin_deeper
4999 \begin_layout LyX-Code
5000
5001 \family typewriter
5002
5003 \backslash
5004 let
5005 \backslash
5006 savelabelitemi=
5007 \backslash
5008 labelitemi
5009 \end_layout
5010
5011 \begin_layout LyX-Code
5012
5013 \family typewriter
5014
5015 \backslash
5016 renewcommand
5017 \backslash
5018 labelitemi[0]{
5019 \backslash
5020 small
5021 \backslash
5022 (
5023 \backslash
5024 sharp
5025 \backslash
5026 )}
5027 \end_layout
5028
5029 \end_deeper
5030 \begin_layout Itemize
5031 箇条書き(記号)の階層は、
5032 \begin_inset Flex Code
5033 status collapsed
5034
5035 \begin_layout Plain Layout
5036
5037 \backslash
5038 labelitem
5039 \end_layout
5040
5041 \end_inset
5042
5043 コマンドの一部にローマ数字で指定されていることに注意してください。
5044 \end_layout
5045
5046 \begin_layout Itemize
5047 \begin_inset ERT
5048 status open
5049
5050 \begin_layout Plain Layout
5051
5052 [
5053 \backslash
5054 (
5055 \backslash
5056 star
5057 \backslash
5058 )]
5059 \end_layout
5060
5061 \end_inset
5062
5063 各項目のブリットを指定するには、角括弧で囲んだブリット形を、行頭に
5064 \begin_inset Flex Code
5065 status collapsed
5066
5067 \begin_layout Plain Layout
5068 TeXコード
5069 \end_layout
5070
5071 \end_inset
5072
5073 として挿入してください。たとえば、この項目の行頭には
5074 \family typewriter
5075
5076 \begin_inset Flex Code
5077 status collapsed
5078
5079 \begin_layout Plain Layout
5080
5081 \family typewriter
5082 [
5083 \backslash
5084 (
5085 \backslash
5086 star
5087 \backslash
5088 )]
5089 \end_layout
5090
5091 \end_inset
5092
5093
5094 \family default
5095 が指定されています。
5096 \end_layout
5097
5098 \begin_layout Plain Layout
5099 \begin_inset ERT
5100 status open
5101
5102 \begin_layout Plain Layout
5103
5104
5105 \backslash
5106 renewcommand
5107 \backslash
5108 labelitemi[0]{
5109 \backslash
5110 savelabelitemi}
5111 \end_layout
5112
5113 \end_inset
5114
5115
5116 \end_layout
5117
5118 \begin_layout Plain Layout
5119 文書全体で使用するブリット形が有効であるようにするために、labelitemを元の設定に戻す必要があります。そのためには、以下のようにします。
5120 \end_layout
5121
5122 \begin_layout LyX-Code
5123
5124 \family typewriter
5125
5126 \backslash
5127 renewcommand
5128 \backslash
5129 labelitemi[0]{
5130 \backslash
5131 savelabelitemi}
5132 \end_layout
5133
5134 \end_inset
5135
5136
5137 \end_layout
5138
5139 \begin_layout Chapter
5140 LyXとインターネット網
5141 \end_layout
5142
5143 \begin_layout Standard
5144 LyX has long supported the export of documents to various web-friendly formats,
5145  such as HTML.
5146  Before verson 2.0, however, HTML export was always accomplished by the use
5147  of external converters.
5148 \begin_inset Foot
5149 status collapsed
5150
5151 \begin_layout Plain Layout
5152 For details on the use of external converters with LyX, see the 
5153 \emph on
5154 Converters
5155 \emph default
5156  section of the Customization manual.
5157 \end_layout
5158
5159 \end_inset
5160
5161  These fall into two large groups: there are converters that use LaTeX as
5162  an intermediate format, such as 
5163 \begin_inset Flex Code
5164 status collapsed
5165
5166 \begin_layout Plain Layout
5167
5168 \lang english
5169 htlatex
5170 \end_layout
5171
5172 \end_inset
5173
5174
5175 \begin_inset Flex Code
5176 status collapsed
5177
5178 \begin_layout Plain Layout
5179
5180 \lang english
5181 html2latex
5182 \end_layout
5183
5184 \end_inset
5185
5186 , and 
5187 \begin_inset Flex Code
5188 status collapsed
5189
5190 \begin_layout Plain Layout
5191
5192 \lang english
5193 plastex
5194 \end_layout
5195
5196 \end_inset
5197
5198 , relying upon LyX to produce the LaTeX; and there is a converter that works
5199  directly on LyX files, 
5200 \begin_inset Flex Code
5201 status collapsed
5202
5203 \begin_layout Plain Layout
5204
5205 \lang english
5206 eLyXer
5207 \end_layout
5208
5209 \end_inset
5210
5211 .
5212  All of these have different advantages and disadvantages.
5213  
5214 \end_layout
5215
5216 \begin_layout Standard
5217 The LaTeX-based converters have the advantage that, in principle, they know
5218  everything about the exported document that LaTeX does.
5219  Such converters do not care, for example, if a certain block of code was
5220  produced by LyX or was Evil Red Text.
5221  These converters know about 
5222 \begin_inset Flex Code
5223 status collapsed
5224
5225 \begin_layout Plain Layout
5226
5227 \lang english
5228 aux
5229 \end_layout
5230
5231 \end_inset
5232
5233  files, counters, and references, and can often make use of the 
5234 \begin_inset Flex Code
5235 status collapsed
5236
5237 \begin_layout Plain Layout
5238
5239 \lang english
5240 bbl
5241 \end_layout
5242
5243 \end_inset
5244
5245  files generated by BibTeX.
5246  On the other hand, LaTeX is a very hard language to parse---it is sometimes
5247  said that only TeX itself understands TeX---and LaTeX-based converters
5248  will often choke on what seem to be quite simple constructs; complex ones
5249  can throw them completely, and as of this writing, for example, the 
5250 \emph on
5251 Embedded Objects
5252 \emph default
5253  manual will not export with 
5254 \begin_inset Flex Code
5255 status collapsed
5256
5257 \begin_layout Plain Layout
5258
5259 \lang english
5260 htlatex
5261 \end_layout
5262
5263 \end_inset
5264
5265 , though the others will.
5266  The other issue concerns how math is handled.
5267  These converters typically convert the formulae into little pictures that
5268  are then linked from the HTML document.
5269  Since these are actually generated by LaTeX, they are accurate.
5270  But they do not scale well, and just getting them to look as if they are
5271  actually meant to be in your document---so that the font sizes seem to
5272  be roughly the same---can be a challenge.
5273 \end_layout
5274
5275 \begin_layout Standard
5276 Alex Fernandez's 
5277 \begin_inset Flex Code
5278 status collapsed
5279
5280 \begin_layout Plain Layout
5281
5282 \lang english
5283 eLyXer
5284 \end_layout
5285
5286 \end_inset
5287
5288  (
5289 \begin_inset CommandInset href
5290 LatexCommand href
5291 name "http://elyxer.nongnu.org/"
5292 target "http://elyxer.nongnu.org/"
5293
5294 \end_inset
5295
5296 ) solves some of these problems.
5297  In particular, the formulae it produces scale perfectly, since it renders
5298  math using a combination of HTML and CSS rather than converting the formulae
5299  to images.
5300  But even moderately complex formula are rendered less well than with 
5301 \begin_inset Flex Code
5302 status collapsed
5303
5304 \begin_layout Plain Layout
5305
5306 \lang english
5307 htlatex
5308 \end_layout
5309
5310 \end_inset
5311
5312 ; this reflects the limitations of HTML.
5313 \begin_inset Foot
5314 status collapsed
5315
5316 \begin_layout Plain Layout
5317 That said, 
5318 \begin_inset Flex Code
5319 status collapsed
5320
5321 \begin_layout Plain Layout
5322
5323 \lang english
5324 eLyXer
5325 \end_layout
5326
5327 \end_inset
5328
5329  can also use jsMath and MathJax for equations, but this setting is only
5330  available globally and requires one to have access to a server that runs
5331  the backend.
5332 \end_layout
5333
5334 \end_inset
5335
5336  More importantly (as of version 1.1.1, at least), 
5337 \begin_inset Flex Code
5338 status collapsed
5339
5340 \begin_layout Plain Layout
5341
5342 \lang english
5343 eLyXer
5344 \end_layout
5345
5346 \end_inset
5347
5348  has limited support for math macros and no support for user-defined paragraph
5349  or character styles.
5350  These limitations make 
5351 \begin_inset Flex Code
5352 status collapsed
5353
5354 \begin_layout Plain Layout
5355
5356 \lang english
5357 eLyXer
5358 \end_layout
5359
5360 \end_inset
5361
5362  unsuitable for many of the documents LyX users produce.
5363  In principle, of course, these problems could be solved, but the LyX developers
5364  have decided to follow a different path and have made LyX itself capable
5365  of writing XHTML, just as it is capable of writing LaTeX, DocBook, and
5366  plaintext.
5367 \end_layout
5368
5369 \begin_layout Standard
5370 As of this writing, XHTML output remains under development and should probably
5371  be regarded as 
5372 \begin_inset Quotes eld
5373 \end_inset
5374
5375 experimental
5376 \begin_inset Quotes erd
5377 \end_inset
5378
5379 .
5380 \begin_inset Foot
5381 status collapsed
5382
5383 \begin_layout Plain Layout
5384 The file 
5385 \begin_inset Flex Code
5386 status collapsed
5387
5388 \begin_layout Plain Layout
5389
5390 \lang english
5391 development/HTML.notes
5392 \end_layout
5393
5394 \end_inset
5395
5396 , which can be found in the LyX source tree or 
5397 \begin_inset CommandInset href
5398 LatexCommand href
5399 name "accessed online"
5400 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5401
5402 \end_inset
5403
5404 , usually contains up-to-date information about the state of XHTML output.
5405  See also the list of XHTML bugs on 
5406 \begin_inset CommandInset href
5407 LatexCommand href
5408 name "the bug tracker"
5409 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"
5410
5411 \end_inset
5412
5413 .
5414 \end_layout
5415
5416 \end_inset
5417
5418  Still, the developers have chosen this approach because it has several
5419  potential advantages over the other two.
5420 \end_layout
5421
5422 \begin_layout Standard
5423 These advantages are primarily due to the fact that the XHTML output routines,
5424  since they are part of LyX, know everything LyX knows about the document
5425  being exported.
5426 \begin_inset Foot
5427 status collapsed
5428
5429 \begin_layout Plain Layout
5430 Another advantage is that, since these routines are internal to LyX, they
5431  are immune to changes in LyX's file format, or to changes in the semantics
5432  of existing insets.
5433 \end_layout
5434
5435 \end_inset
5436
5437  So they know about the table of contents (as displayed in the outline),
5438  about the counters associated with different paragraph styles, and about
5439  user-defined styles.
5440  The XHTML output routines know what LyX knows about internationalization,
5441  too, so they will output 
5442 \begin_inset Quotes eld
5443 \end_inset
5444
5445 Chapter 1
5446 \begin_inset Quotes erd
5447 \end_inset
5448
5449  or 
5450 \begin_inset Quotes eld
5451 \end_inset
5452
5453 Kapitel 1
5454 \begin_inset Quotes erd
5455 \end_inset
5456
5457 , depending upon the language in effect at the time.
5458  
5459 \end_layout
5460
5461 \begin_layout Standard
5462 Quite generally, the output routines know what LyX knows about document
5463  layout, that is, about how the document is to be rendered on screen.
5464  We use this information when we output the document as XHTML.
5465  In particular, LyX 
5466 \emph on
5467 automatically
5468 \emph default
5469  generates CSS style information corresponding to the layout information
5470  it uses to render the document on screen: if section headings are supposed
5471  to be sans-serif and bold as seen in LyX, then (by default) they will be
5472  sans-serif and bold when viewed in a web browser, too.
5473  And this is true not just for pre-defined styles, like Section, but for
5474  any style, including user-defined styles.
5475  Indeed, the XHTML output routines make no distinction between user-defined
5476  paragraph and character styles and LyX's own pre-defined styles: in each
5477  case, everything LyX knows about the styles is contained in the layout
5478  files.
5479  And much the same is true as regards pre-defined textual insets, such as
5480  footnotes, and various custom insets.
5481  
5482 \end_layout
5483
5484 \begin_layout Standard
5485 The result is that XHTML output can be customized and extended in exactly
5486  the same way LaTeX output can be customized and extended: through layout
5487  files and modules.
5488  See chapter five of the 
5489 \emph on
5490 Customization 
5491 \emph default
5492 manual for the details.
5493 \end_layout
5494
5495 \begin_layout Standard
5496 The remainder of this chapter contains more detailed information on XHTML
5497  output, its limitations, and ways to work around those limitations.
5498 \end_layout
5499
5500 \begin_layout Section
5501 Math Output in XHTML
5502 \end_layout
5503
5504 \begin_layout Standard
5505 LyX offers four choices for how math is rendered.
5506  These have various advantages and disadvantages:
5507 \end_layout
5508
5509 \begin_layout Itemize
5510 MathML
5511 \begin_inset Newline newline
5512 \end_inset
5513
5514 MathML is a dialect of XML designed specifically for mathematics on the
5515  web, and it typically renders very well in browsers that support it.
5516  The disadvantage is that not all browsers support MathML, and support is
5517  not complete even in the Gecko-based browsers, such as Firefox.
5518 \begin_inset Newline newline
5519 \end_inset
5520
5521 If LyX is unable to render a formula as MathML---for example, if the formula
5522  uses the 
5523 \begin_inset Flex Code
5524 status collapsed
5525
5526 \begin_layout Plain Layout
5527
5528 \lang english
5529 xymatrix
5530 \end_layout
5531
5532 \end_inset
5533
5534  package or ERT---then it will instead output the formula as an image.
5535  
5536 \end_layout
5537
5538 \begin_layout Itemize
5539 HTML
5540 \begin_inset Newline newline
5541 \end_inset
5542
5543 As mentioned above, 
5544 \begin_inset Flex Code
5545 status collapsed
5546
5547 \begin_layout Plain Layout
5548
5549 \lang english
5550 elyxer
5551 \end_layout
5552
5553 \end_inset
5554
5555  outputs math as HTML, styled by CSS.
5556 \begin_inset Foot
5557 status collapsed
5558
5559 \begin_layout Plain Layout
5560 LyX has borrowed some of the CSS for its HTML output from 
5561 \begin_inset Flex Code
5562 status collapsed
5563
5564 \begin_layout Plain Layout
5565
5566 \lang english
5567 elyxer
5568 \end_layout
5569
5570 \end_inset
5571
5572 .
5573 \end_layout
5574
5575 \end_inset
5576
5577  For simple formulae, this can work quite well, though with more complicated
5578  formulae it tends to break down.
5579  Still, this method has the advantage that it is very widely supported and
5580  so it may be appropriate for documents that contain only a little, fairly
5581  simple math.
5582 \begin_inset Newline newline
5583 \end_inset
5584
5585 If Lyx is unable to render a formula as HTML---for example, if the formula
5586  uses the 
5587 \begin_inset Flex Code
5588 status collapsed
5589
5590 \begin_layout Plain Layout
5591
5592 \lang english
5593 xymatrix
5594 \end_layout
5595
5596 \end_inset
5597
5598  package or ERT---then it will instead output the formula as an image.
5599  
5600 \end_layout
5601
5602 \begin_layout Itemize
5603 Images
5604 \begin_inset Newline newline
5605 \end_inset
5606
5607 Like 
5608 \begin_inset Flex Code
5609 status collapsed
5610
5611 \begin_layout Plain Layout
5612
5613 \lang english
5614 htlatex
5615 \end_layout
5616
5617 \end_inset
5618
5619 , LyX will output formulae as images, the very same images, in fact, that
5620  are used for instant preview.
5621 \begin_inset Foot
5622 status collapsed
5623
5624 \begin_layout Plain Layout
5625 Instant preview does 
5626 \emph on
5627 not 
5628 \emph default
5629 have to be on for images to be output, however.
5630 \end_layout
5631
5632 \end_inset
5633
5634  The advantage to this method is that the images are simply generated by
5635  LaTeX, so they are very accurate.
5636  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5637  so they do not scale terribly well, and one cannot copy them, etc.
5638  (As of this writing, there are also problems about equation numbering.
5639  See 
5640 \begin_inset CommandInset href
5641 LatexCommand href
5642 name "bug 6894"
5643 target "http://www.lyx.org/trac/ticket/6894"
5644
5645 \end_inset
5646
5647 .)
5648 \begin_inset Newline newline
5649 \end_inset
5650
5651 The size of the images can be controlled by setting the 
5652 \begin_inset Quotes eld
5653 \end_inset
5654
5655 Math Images Scaling
5656 \begin_inset Quotes erd
5657 \end_inset
5658
5659  parameter under 
5660 \begin_inset Flex MenuItem
5661 status collapsed
5662
5663 \begin_layout Plain Layout
5664
5665 \lang english
5666 Document\SpecialChar \menuseparator
5667 Settings\SpecialChar \menuseparator
5668 Output
5669 \end_layout
5670
5671 \end_inset
5672
5673 .
5674 \begin_inset Foot
5675 status collapsed
5676
5677 \begin_layout Plain Layout
5678 For those who want to know, this controls the resolution of the image in
5679  dots per inch and is based upon a default of 75 dpi.
5680 \end_layout
5681
5682 \end_inset
5683
5684
5685 \begin_inset Newline newline
5686 \end_inset
5687
5688 If LyX for some reason fails to create an image for a formula (e.g., if a
5689  required LaTeX package is not installed), then it will fall back to outputing
5690  the raw LaTeX.
5691 \end_layout
5692
5693 \begin_layout Itemize
5694 LaTeX
5695 \begin_inset Newline newline
5696 \end_inset
5697
5698 Finally, LyX will happily output math as LaTeX.
5699  As well as being the output of last resort, this method can be used with
5700  such tools as 
5701 \begin_inset CommandInset href
5702 LatexCommand href
5703 name "jsMath"
5704 target "http://www.math.union.edu/~dpvc/jsMath/"
5705
5706 \end_inset
5707
5708 , which uses JavaScript to render LaTeX embedded in HTML documents.
5709  LyX wraps the LaTeX in either a 
5710 \begin_inset Flex Code
5711 status collapsed
5712
5713 \begin_layout Plain Layout
5714
5715 \lang english
5716 span
5717 \end_layout
5718
5719 \end_inset
5720
5721  (for inline formulas) or 
5722 \begin_inset Flex Code
5723 status collapsed
5724
5725 \begin_layout Plain Layout
5726
5727 \lang english
5728 div
5729 \end_layout
5730
5731 \end_inset
5732
5733  (for displayed formulas) with 
5734 \begin_inset Flex Code
5735 status collapsed
5736
5737 \begin_layout Plain Layout
5738
5739 \lang english
5740 class='math'
5741 \end_layout
5742
5743 \end_inset
5744
5745 , as is required for jsMath.
5746 \end_layout
5747
5748 \begin_layout Standard
5749 One of these output methods must be selected under 
5750 \begin_inset Flex MenuItem
5751 status collapsed
5752
5753 \begin_layout Plain Layout
5754
5755 \lang english
5756 Document\SpecialChar \menuseparator
5757 Settings\SpecialChar \menuseparator
5758 Output
5759 \end_layout
5760
5761 \end_inset
5762
5763 .
5764  By default, LyX outputs MathML.
5765  This is a document-wide setting, therefore.
5766 \end_layout
5767
5768 \begin_layout Standard
5769 Eventually, LyX will offer the user the option to select an alternate output
5770  method for a particular inset, say, one that isn't being rendered very
5771  well by MathML.
5772 \begin_inset Foot
5773 status collapsed
5774
5775 \begin_layout Plain Layout
5776 That said, since LyX falls back to images if the inset contains ERT, then
5777  one can force output as an image by putting some harmless ERT into the
5778  math, for example: 
5779 \begin_inset Formula $a=b\relax$
5780 \end_inset
5781
5782 .
5783 \end_layout
5784
5785 \end_inset
5786
5787
5788 \end_layout
5789
5790 \begin_layout Section
5791 Bibliography and Citations
5792 \end_layout
5793
5794 \begin_layout Standard
5795 XHTML output fully supports bibliographies and citations.
5796  
5797 \end_layout
5798
5799 \begin_layout Standard
5800 Citation labels are generated by the same machinery that generates LyX's
5801  on-screen labels, so the labels will look in the output much as they do
5802  in LyX, though better.
5803  If you are using numerical citations, then LyX will output numerical labels,
5804  such as [1] or [17], rather than simply showing the citation key in square
5805  brackets, as it does on-screen.
5806  If you are using author-year citations, then LyX will add lowercase letters
5807  to the years, just as BibTeX does, if it finds more than one citation for
5808  a given author-year combination.
5809  The labels will be printed with the bibliography entries.
5810  Note that there is, at present, no way to customize the appearance of the
5811  labels, for example, to choose between square brackets and parentheses.
5812 \end_layout
5813
5814 \begin_layout Standard
5815 Bibliography output is handled by the same machinery that handles the presentati
5816 on of reference information in the citation dialog, so you will see in the
5817  XHTML output pretty much what you would see if you were to look at a given
5818  entry in the citation dialog.
5819  The formatting can be customized in your layout file or, preferably, in
5820  a module.
5821  See the 
5822 \emph on
5823 Customization
5824 \emph default
5825  manual for the details.
5826 \end_layout
5827
5828 \begin_layout Standard
5829 The main defect at present is that cross-referenced information is printed
5830  with every entry with which it is associated.
5831  So you can see things like this:
5832 \end_layout
5833
5834 \begin_layout Quote
5835 Jason Stanley, 
5836 \begin_inset Quotes eld
5837 \end_inset
5838
5839 Context and Logical Form
5840 \begin_inset Quotes erd
5841 \end_inset
5842
5843 , in 
5844 \emph on
5845 Language in Context: Selected Essays
5846 \emph default
5847  (Oxford: Oxford University Press, 2007), pp.
5848  30--68.
5849 \end_layout
5850
5851 \begin_layout Quote
5852 Jason Stanley, 
5853 \begin_inset Quotes eld
5854 \end_inset
5855
5856 Semantics in Context
5857 \begin_inset Quotes erd
5858 \end_inset
5859
5860 , in 
5861 \emph on
5862 Language in Context: Selected Essays
5863 \emph default
5864  (Oxford: Oxford University Press, 2007), pp.
5865  201--30.
5866 \end_layout
5867
5868 \begin_layout Standard
5869 This should be fixed before long.
5870 \end_layout
5871
5872 \begin_layout Standard
5873 There is no support at present for sectioned bibliographies.
5874  If you have multiple bibliographies, then LyX will print the same bibliography
5875  over and over.
5876 \end_layout
5877
5878 \begin_layout Section
5879 Indexes
5880 \end_layout
5881
5882 \begin_layout Standard
5883 LyX will happily export indexes as XHTML, but with certain limitations at
5884  the moment.
5885 \end_layout
5886
5887 \begin_layout Standard
5888 Index export will be most reliable when you do not attempt to use the fancy
5889  constructs that are described in the section on indexes in the 
5890 \emph on
5891 User's Guide
5892 \emph default
5893 .
5894 \begin_inset Foot
5895 status collapsed
5896
5897 \begin_layout Plain Layout
5898 The main issue here is that LyX itself does not really handle these.
5899  It just lets you enter what you would have to enter in raw LaTeX.
5900 \end_layout
5901
5902 \end_inset
5903
5904  We'll describe how they are handled using the subsection headings from
5905  that section.
5906 \end_layout
5907
5908 \begin_layout Itemize
5909 Grouping Index Entries (aka, sub-entries): LyX makes an effort to support
5910  these, but the entries must be separated by 
5911 \begin_inset Quotes eld
5912 \end_inset
5913
5914  ! 
5915 \begin_inset Quotes erd
5916 \end_inset
5917
5918 , that is, there must be spaces around the exclamation point.
5919  This is because it is otherwise too difficult to check for escaped exclamation
5920  points, ones in math, and so forth.
5921 \end_layout
5922
5923 \begin_layout Itemize
5924 Page Ranges: There is no support at all for page ranges, since these make
5925  no sense with XHMTL.
5926  Instead, you will just get two index entries, one at either end.
5927 \end_layout
5928
5929 \begin_layout Itemize
5930 Cross-referencing: There is no support for cross-referencing.
5931  If LyX finds an entry containing the 
5932 \begin_inset Quotes eld
5933 \end_inset
5934
5935 |see\SpecialChar \ldots{}
5936
5937 \begin_inset Quotes erd
5938 \end_inset
5939
5940  construct, it is just dropped, and the rest is treated as an ordinary index
5941  entry.
5942 \end_layout
5943
5944 \begin_layout Itemize
5945 Index Entry Order: LyX does support attempts to fix the sorting order.
5946  It will take what is before the first `@' it finds and use that for sorting,
5947  taking what follows the first `@' to be the actual entry.
5948  At present, LyX does not check for escaped `@', so do not try to index
5949  email addresses.
5950 \end_layout
5951
5952 \begin_layout Itemize
5953 Index Entry Layout: You can format entries by using the text style dialog,
5954  or by using any other method available within LyX itself.
5955  There is no support for constructs like: 
5956 \begin_inset Quotes eld
5957 \end_inset
5958
5959 entry|textbf
5960 \begin_inset Quotes erd
5961 \end_inset
5962
5963 .
5964  Indeed, if LyX finds a pipe symbol, `|', in an entry, it will delete it
5965  and everything that follows it.
5966 \end_layout
5967
5968 \begin_layout Itemize
5969 Multiple Indexes: There is no support for multiple indexes.
5970  Rather, all index entries will be printed as one large index.
5971  To avoid our printing several versions of the index, we print only the
5972  main index, so make sure you have one.
5973 \end_layout
5974
5975 \begin_layout Section
5976 Nomenclature and Glossary
5977 \end_layout
5978
5979 \begin_layout Standard
5980 There is at present no support for glossaries.
5981  Adding it would be fairly trivial, and welcome.
5982 \end_layout
5983
5984 \begin_layout Chapter
5985 LyXサーバー
5986 \end_layout
5987
5988 \begin_layout Section
5989 はじめに
5990 \end_layout
5991
5992 \begin_layout Standard
5993 「LyXサーバー」を使用すると、他のプログラムが、LyXと通信したり、LyXコマンドを実行させたり、LyXの内部状態に関する情報を取得したりすることができるよう
5994 になります。これは熟練したユーザー向けの機能ですが、便利なはずです。たとえば、LyXサーバーに書き込むことによって、JabRefのような参考文献管理ソフトが、L
5995 yXに文献引用を「押し込む」ことが可能となります。
5996 \end_layout
5997
5998 \begin_layout Standard
5999 ただし、現在のところ、
6000 \emph on
6001 LyXサーバーはWindowsでは機能しない
6002 \emph default
6003 ことに注意してください
6004 \begin_inset Foot
6005 status collapsed
6006
6007 \begin_layout Plain Layout
6008 これが不可能でなければならない理由はありません。しかし、いまのところ、Windows向け開発者でこの機能を実装しようとする者がいないのです。
6009 \end_layout
6010
6011 \end_inset
6012
6013
6014 \end_layout
6015
6016 \begin_layout Section
6017 LyXサーバーを開始するには
6018 \end_layout
6019
6020 \begin_layout Standard
6021 LyXサーバーは、名前をつけたパイプの対を利用することで機能します。パイプは、通常
6022 \begin_inset Flex Code
6023 status collapsed
6024
6025 \begin_layout Plain Layout
6026 UserDir
6027 \end_layout
6028
6029 \end_inset
6030
6031 の下に作られ(Windowsを除く。Windowsでは、名前を付けた
6032 \emph on
6033 ローカルの
6034 \emph default
6035 パイプは
6036 \begin_inset Flex Code
6037 status collapsed
6038
6039 \begin_layout Plain Layout
6040
6041 \backslash
6042
6043 \backslash
6044 .
6045 \backslash
6046 pipe
6047 \end_layout
6048
6049 \end_inset
6050
6051 に特別なオブジェクトとして置かれます)、「
6052 \begin_inset Flex Code
6053 status collapsed
6054
6055 \begin_layout Plain Layout
6056 .lyxpipe.in
6057 \end_layout
6058
6059 \end_inset
6060
6061 」および「
6062 \begin_inset Flex Code
6063 status collapsed
6064
6065 \begin_layout Plain Layout
6066 .lyxpipe.out
6067 \end_layout
6068
6069 \end_inset
6070
6071 」という名前がついています。外部プログラムは、
6072 \begin_inset Flex Code
6073 status collapsed
6074
6075 \begin_layout Plain Layout
6076 .lyxpipe.in
6077 \end_layout
6078
6079 \end_inset
6080
6081 に書き込みを行い、戻りデータを
6082 \begin_inset Flex Code
6083 status collapsed
6084
6085 \begin_layout Plain Layout
6086 .lyxpipe.out
6087 \end_layout
6088
6089 \end_inset
6090
6091 から読み出します。パイプ名の語幹は、
6092 \begin_inset Flex MenuItem
6093 status collapsed
6094
6095 \begin_layout Plain Layout
6096 ツール\SpecialChar \menuseparator
6097 設定
6098 \end_layout
6099
6100 \end_inset
6101
6102 から、たとえば「
6103 \begin_inset Flex Code
6104 status collapsed
6105
6106 \begin_layout Plain Layout
6107 /home/myhome/lyxpipe
6108 \end_layout
6109
6110 \end_inset
6111
6112 」あるいはWindowsでは「
6113 \begin_inset Flex Code
6114 status collapsed
6115
6116 \begin_layout Plain Layout
6117
6118 \backslash
6119
6120 \backslash
6121 .
6122 \backslash
6123 pipe
6124 \backslash
6125 lyxpipe
6126 \end_layout
6127
6128 \end_inset
6129
6130 」などに設定することができます。サーバーを開始するためには、これを
6131 \emph on
6132 手動で設定しなくてはなりません
6133 \emph default
6134
6135 \end_layout
6136
6137 \begin_layout Standard
6138 LyXは、パイプを生成するに際して、「
6139 \begin_inset Flex Code
6140 status collapsed
6141
6142 \begin_layout Plain Layout
6143 .in
6144 \end_layout
6145
6146 \end_inset
6147
6148 」および「
6149 \begin_inset Flex Code
6150 status collapsed
6151
6152 \begin_layout Plain Layout
6153 .out
6154 \end_layout
6155
6156 \end_inset
6157
6158 」を付け加えます。パイプがすでに存在していれば、LyXは他のLyXプロセスがすでに実行中であると判断して、サーバーを開始しません。POSIX(Unix型)システ
6159 ムでは、なんらかの理由で、LyXが終了する際に使用されていない「古い」パイプが削除されずに残ったりすると、LyXはこれを削除しようとします。何らかの理由でこれが
6160 失敗した場合、手動でパイプを削除したのちに、LyXを再起動する必要があります。Windowsでは、プログラムが終了したりクラッシュしたりすると、OSがパイプを削
6161 除するので、「古い」パイプが残ることはありません。
6162 \end_layout
6163
6164 \begin_layout Standard
6165 サーバーを使用するLyXプロセスを複数起動するには、それぞれのプロセスに、別のユーザーディレクトリを使用させたり、別々の
6166 \begin_inset Flex Code
6167 status collapsed
6168
6169 \begin_layout Plain Layout
6170 preferences
6171 \end_layout
6172
6173 \end_inset
6174
6175 ファイルを使用させるなど、別々の設定を使用する必要があります。
6176 \end_layout
6177
6178 \begin_layout Standard
6179 クライアントプログラムを開発しようとされているのであれば、LyXサーバーからのデバッグ情報を有効にすると便利かもしれません。そのためには、Lyxを
6180 \begin_inset Flex Code
6181 status collapsed
6182
6183 \begin_layout Plain Layout
6184 lyx -dbg lyxserver
6185 \end_layout
6186
6187 \end_inset
6188
6189 として起動してください。
6190 \end_layout
6191
6192 \begin_layout Standard
6193 C言語で書かれた完全なサンプルクライアントが、ソース頒布版の
6194 \begin_inset Flex Code
6195 status collapsed
6196
6197 \begin_layout Plain Layout
6198 development/lyxserver/server_monitor.c
6199 \end_layout
6200
6201 \end_inset
6202
6203 にあります。
6204 \end_layout
6205
6206 \begin_layout Standard
6207 もう一つの便利なツールとして、
6208 \begin_inset Flex Code
6209 status collapsed
6210
6211 \begin_layout Plain Layout
6212 src/client/lyxclient
6213 \end_layout
6214
6215 \end_inset
6216
6217 にあるコマンドラインベースのクライアントがあります。
6218 \end_layout
6219
6220 \begin_layout Section
6221 通常の通信
6222 \end_layout
6223
6224 \begin_layout Standard
6225 LyXコールを発行するには、クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません。この行は、以下の書式を持ちます。
6226 \end_layout
6227
6228 \begin_layout Quote
6229 LYXCMD:
6230 \emph on
6231 クライアント名
6232 \emph default
6233 :
6234 \emph on
6235 関数
6236 \emph default
6237 :
6238 \emph on
6239 引数
6240 \end_layout
6241
6242 \begin_layout Description
6243 クライアント名 は、クライアントが自由に選べる名前です。これが用いられるのは、クライアントが他の要求クライアントから結果を見分けることができるように、LyXが返
6244 答をする際、クライアント名をエコーするときだけです。
6245 \end_layout
6246
6247 \begin_layout Description
6248 関数 は、LyXに実行させたい関数です。これは、ミニバッファで使用するコマンドと同じです。
6249 \end_layout
6250
6251 \begin_layout Description
6252 引数 は、一部の関数のみに効力を持つオプションの引数です(たとえば、「自己挿入」LFUNは、現在のカーソル位置に引数を文章として挿入します)。
6253 \end_layout
6254
6255 \begin_layout Standard
6256 LyXからの返答は、出力パイプに送り出され、
6257 \end_layout
6258
6259 \begin_layout Quote
6260 INFO:
6261 \emph on
6262 クライアント名
6263 \emph default
6264 :
6265 \emph on
6266 関数
6267 \emph default
6268 :
6269 \emph on
6270 データ
6271 \end_layout
6272
6273 \begin_layout Standard
6274 の書式をしています。ここで
6275 \emph on
6276 クライアント名
6277 \emph default
6278
6279 \emph on
6280 関数
6281 \emph default
6282 は、コマンド要求からそのままエコーされますが、
6283 \emph on
6284 データ
6285 \emph default
6286 はコマンド実行の結果に依存した、多少なりとも有用な情報です。「font-state」のような一部のコマンドは、LyXの内部状態に関する情報を返しますが、空のデー
6287 タ応答を返すものもあります。空のデータ返答は、コマンド実行が無事終わったことを意味します。
6288 \end_layout
6289
6290 \begin_layout Standard
6291 エラーが発生した場合のLyXの返答は
6292 \end_layout
6293
6294 \begin_layout Quote
6295 ERROR:
6296 \emph on
6297 クライアント名
6298 \emph default
6299 :
6300 \emph on
6301 関数
6302 \emph default
6303 :
6304 \emph on
6305 エラーメッセージ
6306 \end_layout
6307
6308 \begin_layout Standard
6309 の書式をしており、
6310 \emph on
6311 エラーメッセージ
6312 \emph default
6313 には、なぜコマンドが失敗したかの説明が入っているはずです。
6314 \end_layout
6315
6316 \begin_layout Standard
6317 (例)
6318 \end_layout
6319
6320 \begin_layout LyX-Code
6321 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6322 \begin_inset Newline newline
6323 \end_inset
6324
6325 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6326 \begin_inset Newline newline
6327 \end_inset
6328
6329 read a <~/.lyxpipe.out
6330 \begin_inset Newline newline
6331 \end_inset
6332
6333 echo $a
6334 \end_layout
6335
6336 \begin_layout Section
6337 通知
6338 \end_layout
6339
6340 \begin_layout Standard
6341 LyXは、発生しているイベントを、非同期的にクライアントに通知することができます。いまのところ、ユーザーがあるキー列を関数「notify」に割り当てているときの
6342 み、LyXはこの通知を行います。LyXが送る文字列の書式は
6343 \end_layout
6344
6345 \begin_layout Quote
6346 \begin_inset Flex Code
6347 status collapsed
6348
6349 \begin_layout Plain Layout
6350 NOTIFY:
6351 \end_layout
6352
6353 \end_inset
6354
6355
6356 \emph on
6357 キー列
6358 \end_layout
6359
6360 \begin_layout Standard
6361 となっていて、
6362 \emph on
6363 キー列
6364 \emph default
6365 は、ユーザーが実際に打鍵したキー列の印字表現になります。
6366 \end_layout
6367
6368 \begin_layout Standard
6369 この機構は、LyXのコマンド群を拡張してマクロを実装するのに使用することができます。なんらかのキー列を「notify」に割り当ててください。それから出力パイプで
6370 待機するクライアントを起動し、キー列に応じたコマンドを読み込み、一つないし複数のLyXコマンドを発行するLyX要求とLyXコールを使用する関数を開始するのです。
6371 \end_layout
6372
6373 \begin_layout Section
6374 単純なLyXサーバープロトコル
6375 \end_layout
6376
6377 \begin_layout Standard
6378 LyXは、セッション管理に使用することができる単純なプロトコルを実装しています。メッセージは、すべて
6379 \end_layout
6380
6381 \begin_layout Quote
6382 LYXSRV:
6383 \emph on
6384 クライアント名
6385 \emph default
6386 :
6387 \emph on
6388 プロトコルメッセージ
6389 \end_layout
6390
6391 \begin_layout Standard
6392 の書式をしており、
6393 \emph on
6394 プロトコルメッセージ
6395 \emph default
6396 は「hello」ないし「bye」です。クライアントから「hello」を受け取ると、LyXはメッセージを聴いていることをクライアントに伝えるために返答をし、LyX
6397 が終了することをクライアントに伝えるのには、LyXが「bye」を送信します。
6398 \end_layout
6399
6400 \begin_layout Section
6401 DVIとPDFの遡及検索
6402 \end_layout
6403
6404 \begin_layout Standard
6405 DVI/PDFビューア
6406 \begin_inset Foot
6407 status collapsed
6408
6409 \begin_layout Plain Layout
6410 PDFの遡及検索機能を提供しているビューアには、KDE/Linux上のOkularとMac OS X上のSkim、Windows上のSumatraPDFがありま
6411 す。
6412 \end_layout
6413
6414 \end_inset
6415
6416 には、遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります。これを使えば、DVI/PDF出力の
6417 特定の場所をクリックすることによって、LyXの文書中で対応する行にカーソルを移動させることができます。これを実現するためには、ビューアはLyXと情報交換を行う必
6418 要があります。これは、命名パイプ(
6419 \emph on
6420 lyxpipe
6421 \emph default
6422 )を使用するか、LyXが作業ディレクトリに生成するUNIXドメインソケット(
6423 \emph on
6424 lyxsocket
6425 \emph default
6426 )を使用する(これは
6427 \begin_inset Flex Code
6428 status collapsed
6429
6430 \begin_layout Plain Layout
6431 lyxclient
6432 \end_layout
6433
6434 \end_inset
6435
6436 プログラムがLyXと通信するのに使用している方法です)ことで、LyXサーバを経由して実現することができます。場合によっては、ビューアとLyXを橋渡しする補助スク
6437 リプトを必要とすることがあるかもしれませんが、それ以外は、ビューアはLyXと直接通信することができます。これは、選んだビューアと基本ソフトに依存します。また、必
6438 要とされるビューアの設定法と遡及検索が実際に行われる方法とにも依存します。したがって、下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします。その
6439 前に、DVI/PDF出力で遡及検索を有効にするためには、一般に何が必要とされるかを説明します。
6440 \end_layout
6441
6442 \begin_layout Subsection
6443 \begin_inset CommandInset label
6444 LatexCommand label
6445 name "sub:遡及検索"
6446
6447 \end_inset
6448
6449 自動有効化
6450 \end_layout
6451
6452 \begin_layout Standard
6453
6454 \lang english
6455 In most cases LyX will do the work for you by enabling the option 
6456 \begin_inset Flex MenuItem
6457 status collapsed
6458
6459 \begin_layout Plain Layout
6460
6461 \lang english
6462 Synchronize with Output
6463 \end_layout
6464
6465 \end_inset
6466
6467  in the menu 
6468 \begin_inset Flex MenuItem
6469 status collapsed
6470
6471 \begin_layout Plain Layout
6472
6473 \lang english
6474 Document\SpecialChar \menuseparator
6475 Settings\SpecialChar \menuseparator
6476 Output
6477 \end_layout
6478
6479 \end_inset
6480
6481 .
6482  In such a case LyX will automatically insert the necessary SyncTeX macro
6483  (for PDF) or load the srcltx package (for DVI) respectively.
6484  This option can be easily reached also on 
6485 \begin_inset Flex Code
6486 status collapsed
6487
6488 \begin_layout Plain Layout
6489
6490 \lang english
6491 View/Update
6492 \end_layout
6493
6494 \end_inset
6495
6496  Toolbar.
6497 \end_layout
6498
6499 \begin_layout Standard
6500
6501 \lang english
6502 If you need a different setting, you can select or input a custom macro
6503  from the drop down box just below 
6504 \begin_inset Flex MenuItem
6505 status collapsed
6506
6507 \begin_layout Plain Layout
6508
6509 \lang english
6510 Document\SpecialChar \menuseparator
6511 Settings\SpecialChar \menuseparator
6512 Output\SpecialChar \menuseparator
6513 Synchronize with Output
6514 \end_layout
6515
6516 \end_inset
6517
6518 .
6519 \end_layout
6520
6521 \begin_layout Standard
6522
6523 \lang english
6524 Note that the method 
6525 \begin_inset Flex Code
6526 status collapsed
6527
6528 \begin_layout Plain Layout
6529
6530 \lang english
6531
6532 \backslash
6533 synctex=1
6534 \end_layout
6535
6536 \end_inset
6537
6538  enables gzip compression.
6539  If your viewer does not support it, you should instead use 
6540 \begin_inset Flex Code
6541 status collapsed
6542
6543 \begin_layout Plain Layout
6544
6545 \lang english
6546
6547 \backslash
6548 synctex=-1
6549 \end_layout
6550
6551 \end_inset
6552
6553 .
6554 \end_layout
6555
6556 \begin_layout Standard
6557
6558 \lang english
6559 Please aöso note that including the 
6560 \begin_inset Flex Code
6561 status collapsed
6562
6563 \begin_layout Plain Layout
6564
6565 \lang english
6566 srcltx
6567 \end_layout
6568
6569 \end_inset
6570
6571  package or 
6572 \begin_inset Flex Code
6573 status collapsed
6574
6575 \begin_layout Plain Layout
6576
6577 \lang english
6578 src-specials
6579 \end_layout
6580
6581 \end_inset
6582
6583  sometimes has an undesired impact on the typesetting.
6584  Thus, you should switch output synchronization off for the final typesetting
6585  if you use the 
6586 \begin_inset Flex Code
6587 status collapsed
6588
6589 \begin_layout Plain Layout
6590
6591 \lang english
6592 srcltx
6593 \end_layout
6594
6595 \end_inset
6596
6597  package or 
6598 \begin_inset Flex Code
6599 status collapsed
6600
6601 \begin_layout Plain Layout
6602
6603 \lang english
6604 src-specials
6605 \end_layout
6606
6607 \end_inset
6608
6609 .
6610  
6611 \end_layout
6612
6613 \begin_layout Standard
6614
6615 \lang english
6616 In case you need some more special settings that are not covered by the
6617  automatic settings, read the next section about how to set up output synchroniz
6618 ation manually.
6619  If the automatic setup suits your needs, you can readily jump to section
6620 \begin_inset space ~
6621 \end_inset
6622
6623
6624 \lang japanese
6625
6626 \begin_inset CommandInset ref
6627 LatexCommand ref
6628 reference "sub:特定のビューアを設定して使うには"
6629
6630 \end_inset
6631
6632
6633 \lang english
6634 , where the necessary configuration steps in your viewer -- needed both
6635  with the automatic and the manual setup -- are described.
6636 \end_layout
6637
6638 \begin_layout Subsection
6639 手動有効化
6640 \end_layout
6641
6642 \begin_layout Standard
6643 LaTeXは、遡及検索のために複数の方法を提供しています。ある方法は
6644 \begin_inset Flex Code
6645 status collapsed
6646
6647 \begin_layout Plain Layout
6648 latex/pdflatex
6649 \end_layout
6650
6651 \end_inset
6652
6653 プログラムに組み込まれており、他の方法は外部パッケージとして提供されています。どちらを選択するかは、お使いのLaTeX頒布版が既に特定の方法を提供しているか(組
6654 み込みによる方法は比較的新しいものです)と、お使いのビューアがそれに対応しているかに依存します。使用可能な方法を以下に述べます。
6655 \end_layout
6656
6657 \begin_layout Subsubsection*
6658 src-special経由のDVI組み込み検索(DVIのみ)
6659 \end_layout
6660
6661 \begin_layout Standard
6662 この方法は、DVIファイルに遡及検索に必要な情報を追加するものです。これは、かなり前のLaTeXから利用可能となっており(比較的最近のLaTeX頒布版はすべて対
6663 応しています)、安定して動作します。これを有効にするには、
6664 \begin_inset Flex MenuItem
6665 status collapsed
6666
6667 \begin_layout Plain Layout
6668 設定\SpecialChar \menuseparator
6669 ファイル処理\SpecialChar \menuseparator
6670 変換子
6671 \end_layout
6672
6673 \end_inset
6674
6675
6676 \begin_inset Flex MenuItem
6677 status collapsed
6678
6679 \begin_layout Plain Layout
6680 LaT
6681 \begin_inset ERT
6682 status collapsed
6683
6684 \begin_layout Plain Layout
6685
6686 {}
6687 \end_layout
6688
6689 \end_inset
6690
6691 eX (plain)->DVI
6692 \end_layout
6693
6694 \end_inset
6695
6696 ないし
6697 \begin_inset Flex MenuItem
6698 status collapsed
6699
6700 \begin_layout Plain Layout
6701 LaT
6702 \begin_inset ERT
6703 status collapsed
6704
6705 \begin_layout Plain Layout
6706
6707 {}
6708 \end_layout
6709
6710 \end_inset
6711
6712 eX (plain)->DraftDVI
6713 \end_layout
6714
6715 \end_inset
6716
6717 変換子を
6718 \begin_inset Flex Code
6719 status collapsed
6720
6721 \begin_layout Plain Layout
6722 latex -src-specials $$i
6723 \end_layout
6724
6725 \end_inset
6726
6727 に変更します。もしこれが動作しないときは、お使いのLaTeXエンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあり
6728 ます)。
6729 \end_layout
6730
6731 \begin_layout Subsubsection*
6732 外部パッケージ(PDFSyncおよびsrcltx)
6733 \end_layout
6734
6735 \begin_layout Standard
6736
6737 \emph on
6738 pdfsync
6739 \emph default
6740 および
6741 \emph on
6742 srcltx
6743 \emph default
6744 パッケージは、PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します。これを有効にするには、LyXプリアンブルで以下のようにパッケージを読み
6745 込んでください。
6746 \end_layout
6747
6748 \begin_layout Itemize
6749 PDFの遡及検索には
6750 \begin_inset Flex Code
6751 status collapsed
6752
6753 \begin_layout Plain Layout
6754
6755 \backslash
6756 usepackage{pdfsync}
6757 \end_layout
6758
6759 \end_inset
6760
6761
6762 \end_layout
6763
6764 \begin_layout Itemize
6765 DVIの遡及検索には
6766 \begin_inset Flex Code
6767 status collapsed
6768
6769 \begin_layout Plain Layout
6770
6771 \backslash
6772 usepackage[active]{srcltx}
6773 \end_layout
6774
6775 \end_inset
6776
6777
6778 \end_layout
6779
6780 \begin_layout Standard
6781 と書きます。DVIとPDFの両方の遡及検索を実行できるようにするためには、プリアンブルに以下の行を挿入する方法があります。
6782 \end_layout
6783
6784 \begin_layout LyX-Code
6785
6786 \backslash
6787 usepackage{ifpdf}
6788 \begin_inset Newline newline
6789 \end_inset
6790
6791
6792 \backslash
6793 ifpdf
6794 \begin_inset Newline newline
6795 \end_inset
6796
6797   
6798 \backslash
6799 usepackage{pdfsync}
6800 \begin_inset Newline newline
6801 \end_inset
6802
6803
6804 \backslash
6805 else
6806 \begin_inset Newline newline
6807 \end_inset
6808
6809   
6810 \backslash
6811 usepackage[active]{srcltx}
6812 \begin_inset Newline newline
6813 \end_inset
6814
6815
6816 \backslash
6817 fi
6818 \end_layout
6819
6820 \begin_layout Standard
6821 このようにすれば、DVIでもPDF(pdflatex)でも正しいパッケージを使いながら、ファイルを閲覧することができます。
6822 \end_layout
6823
6824 \begin_layout Standard
6825 なお、PDFSyncは、文書の出力レイアウトに干渉する可能性があるので注意してください。したがって、仕上がり文書ではPDFSyncを無効にすることをお勧めします
6826
6827 \end_layout
6828
6829 \begin_layout Subsubsection*
6830 SyncTeXを使った組み込み遡及検索(DVIおよびPDF)
6831 \end_layout
6832
6833 \begin_layout Standard
6834 \begin_inset Flex Code
6835 status collapsed
6836
6837 \begin_layout Plain Layout
6838 (pdf)latex
6839 \end_layout
6840
6841 \end_inset
6842
6843 の最近のバージョンは、PDFおよびDVI両方の遡及検索を組み込みでサポートしています。このいわゆる
6844 \emph on
6845 SyncTeX
6846 \emph default
6847 機能は、主に、PDFSyncパッケージをpdftexプログラムへ統合したことと、それをsrc-specialsアプローチへ取り込んだことの成果です。これを使用す
6848 るためには、少なくともTeXLive 2008か最近のMikTeX頒布版が必要です。また、既にSyncTeXサポートを提供しているPDFビューアは少ししかありま
6849 せん(Mac上のSkimとWindows上のSumatraPDF)。
6850 \end_layout
6851
6852 \begin_layout Standard
6853 DVI出力でSyncTeXを有効にするには、
6854 \begin_inset Flex MenuItem
6855 status collapsed
6856
6857 \begin_layout Plain Layout
6858 設定\SpecialChar \menuseparator
6859 ファイル処理\SpecialChar \menuseparator
6860 変換子
6861 \end_layout
6862
6863 \end_inset
6864
6865
6866 \begin_inset Flex MenuItem
6867 status collapsed
6868
6869 \begin_layout Plain Layout
6870 LaT
6871 \begin_inset ERT
6872 status collapsed
6873
6874 \begin_layout Plain Layout
6875
6876 {}
6877 \end_layout
6878
6879 \end_inset
6880
6881 eX (plain)->DVI
6882 \end_layout
6883
6884 \end_inset
6885
6886 ないし
6887 \begin_inset Flex MenuItem
6888 status collapsed
6889
6890 \begin_layout Plain Layout
6891 LaT
6892 \begin_inset ERT
6893 status collapsed
6894
6895 \begin_layout Plain Layout
6896
6897 {}
6898 \end_layout
6899
6900 \end_inset
6901
6902 eX (plain)->DraftDVI
6903 \end_layout
6904
6905 \end_inset
6906
6907 変換子を
6908 \begin_inset Flex Code
6909 status collapsed
6910
6911 \begin_layout Plain Layout
6912 latex -synctex=1 $$i
6913 \end_layout
6914
6915 \end_inset
6916
6917 に変更します。PDF出力用には、
6918 \begin_inset Flex MenuItem
6919 status collapsed
6920
6921 \begin_layout Plain Layout
6922 LaT
6923 \begin_inset ERT
6924 status collapsed
6925
6926 \begin_layout Plain Layout
6927
6928 {}
6929 \end_layout
6930
6931 \end_inset
6932
6933 eX (pdflatex)->PDF (pdflatex)
6934 \end_layout
6935
6936 \end_inset
6937
6938 変換子を
6939 \begin_inset Flex Code
6940 status collapsed
6941
6942 \begin_layout Plain Layout
6943 pdflatex -synctex=1 $$i
6944 \end_layout
6945
6946 \end_inset
6947
6948 に変更してください。また、ビューアをSyncTeXで使うのに設定を行う必要があるかどうか、お使いのビューアの取扱説明書をご確認ください。
6949 \begin_inset Foot
6950 status collapsed
6951
6952 \begin_layout Plain Layout
6953 \begin_inset Flex Code
6954 status collapsed
6955
6956 \begin_layout Plain Layout
6957 -synctex=1
6958 \end_layout
6959
6960 \end_inset
6961
6962 オプションは、gzip圧縮を有効にします。お使いのビューアがgzip圧縮をサポートしていない場合には、代わりに
6963 \begin_inset Flex Code
6964 status collapsed
6965
6966 \begin_layout Plain Layout
6967 -synctex=-1
6968 \end_layout
6969
6970 \end_inset
6971
6972 を使用してください。
6973 \end_layout
6974
6975 \end_inset
6976
6977
6978 \end_layout
6979
6980 \begin_layout Subsection
6981 特定のビューアを設定して使うには
6982 \begin_inset CommandInset label
6983 LatexCommand label
6984 name "sub:特定のビューアを設定して使うには"
6985
6986 \end_inset
6987
6988
6989 \end_layout
6990
6991 \begin_layout Subsubsection*
6992 Xdvi(全プラットフォーム)
6993 \end_layout
6994
6995 \begin_layout Standard
6996 LyXは、
6997 \begin_inset Flex Code
6998 status collapsed
6999
7000 \begin_layout Plain Layout
7001 lyxclient
7002 \end_layout
7003
7004 \end_inset
7005
7006 プログラムを自動的に使うのに必要なフックを、既に提供しているので、
7007 \begin_inset Flex Code
7008 status collapsed
7009
7010 \begin_layout Plain Layout
7011 xdvi
7012 \end_layout
7013
7014 \end_inset
7015
7016 を使用する場合には、DVI遡及検索を実行するのに他にするべきことはありません。使用中の文書を上記で述べたように設定するだけです(遡及検索は、Ctrl-クリックか
7017 、Mac OS X上ではAlt-クリックで始動します)。
7018 \end_layout
7019
7020 \begin_layout Standard
7021 しかし、何らかの理由で、LyXと通信するのにソケットではなく命名パイプを使用したい場合には、
7022 \begin_inset Flex MenuItem
7023 status collapsed
7024
7025 \begin_layout Plain Layout
7026 設定\SpecialChar \menuseparator
7027 ファイル処理\SpecialChar \menuseparator
7028 ファイル書式
7029 \end_layout
7030
7031 \end_inset
7032
7033 のDVIビューアを
7034 \begin_inset Flex Code
7035 status collapsed
7036
7037 \begin_layout Plain Layout
7038 xdvi -editor 'lyxeditor.sh %f %l'
7039 \end_layout
7040
7041 \end_inset
7042
7043
7044 \begin_inset Flex Code
7045 status collapsed
7046
7047 \begin_layout Plain Layout
7048 lyxeditor.sh
7049 \end_layout
7050
7051 \end_inset
7052
7053 は適切なスクリプト名)に変更してください。たとえば、最低限のシェルスクリプトは
7054 \end_layout
7055
7056 \begin_layout LyX-Code
7057 #!/bin/sh
7058 \begin_inset Newline newline
7059 \end_inset
7060
7061 LYXPIPE="/path/to/lyxpipe"
7062 \begin_inset Newline newline
7063 \end_inset
7064
7065 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7066 \begin_inset Newline newline
7067 \end_inset
7068
7069 echo "$COMMAND" > "${LYXPIPE}".in || exit
7070 \begin_inset Newline newline
7071 \end_inset
7072
7073 read < "${LYXPIPE}".out || exit
7074 \end_layout
7075
7076 \begin_layout Standard
7077 のようになります。ここで
7078 \begin_inset Flex Code
7079 status collapsed
7080
7081 \begin_layout Plain Layout
7082 /path/to/lyxpipe
7083 \end_layout
7084
7085 \end_inset
7086
7087 は、
7088 \begin_inset Flex MenuItem
7089 status collapsed
7090
7091 \begin_layout Plain Layout
7092 設定\SpecialChar \menuseparator
7093 パス
7094 \end_layout
7095
7096 \end_inset
7097
7098 で指定したLy
7099 \begin_inset ERT
7100 status open
7101
7102 \begin_layout Plain Layout
7103
7104 {}
7105 \end_layout
7106
7107 \end_inset
7108
7109 XServerパイプのパスを指定してください
7110 \begin_inset Foot
7111 status collapsed
7112
7113 \begin_layout Plain Layout
7114 ソース頒布版の
7115 \begin_inset Flex Code
7116 status collapsed
7117
7118 \begin_layout Plain Layout
7119 development/tools
7120 \end_layout
7121
7122 \end_inset
7123
7124 フォルダには、ユーザが設定した
7125 \emph on
7126 lyxpipe
7127 \emph default
7128 を探し出す
7129 \begin_inset Flex Code
7130 status collapsed
7131
7132 \begin_layout Plain Layout
7133 lyxeditor
7134 \end_layout
7135
7136 \end_inset
7137
7138 スクリプトがあります。
7139 \end_layout
7140
7141 \end_inset
7142
7143
7144 \end_layout
7145
7146 \begin_layout Subsubsection*
7147 MacDviX(Mac OS X)
7148 \end_layout
7149
7150 \begin_layout Standard
7151 \begin_inset Flex Code
7152 status collapsed
7153
7154 \begin_layout Plain Layout
7155 /Applications/MacDviX_Folder/calleditor.script
7156 \end_layout
7157
7158 \end_inset
7159
7160 の終わりに
7161 \end_layout
7162
7163 \begin_layout LyX-Code
7164 /Applications/Ly
7165 \begin_inset ERT
7166 status collapsed
7167
7168 \begin_layout Plain Layout
7169
7170 {}
7171 \end_layout
7172
7173 \end_inset
7174
7175 X.app/Contents/MacOS/lyxeditor "$2" $1
7176 \begin_inset Newline newline
7177 \end_inset
7178
7179 exit 1
7180 \end_layout
7181
7182 \begin_layout Standard
7183 という行を付け加えてください。Applicationsフォルダ以外の場所にLyXを導入した場合には、それに従って上記の行を修正してください。
7184 \end_layout
7185
7186 \begin_layout Standard
7187 遡及検索は、Alt-クリック(OPTION-クリック)で始動します。
7188 \end_layout
7189
7190 \begin_layout Subsubsection*
7191 Skim(Mac OS X)
7192 \end_layout
7193
7194 \begin_layout Standard
7195 \begin_inset Flex MenuItem
7196 status collapsed
7197
7198 \begin_layout Plain Layout
7199 設定\SpecialChar \menuseparator
7200 ファイル処理\SpecialChar \menuseparator
7201 ファイル書式\SpecialChar \menuseparator
7202 PDF (pdflatex)
7203 \end_layout
7204
7205 \end_inset
7206
7207 のビューア設定に
7208 \begin_inset Flex Code
7209 status collapsed
7210
7211 \begin_layout Plain Layout
7212 open -a Skim.app $$i
7213 \end_layout
7214
7215 \end_inset
7216
7217 と入力し、
7218 \begin_inset Flex MenuItem
7219 status collapsed
7220
7221 \begin_layout Plain Layout
7222 Skim\SpecialChar \menuseparator
7223 設定\SpecialChar \menuseparator
7224 Sync
7225 \end_layout
7226
7227 \end_inset
7228
7229 でLy
7230 \begin_inset ERT
7231 status collapsed
7232
7233 \begin_layout Plain Layout
7234
7235 {}
7236 \end_layout
7237
7238 \end_inset
7239
7240 Xを選択してください。
7241 \end_layout
7242
7243 \begin_layout Standard
7244 遡及検索は、COMMAND-SHIFT-クリックで始動します。
7245 \end_layout
7246
7247 \begin_layout Subsubsection*
7248 Okular (KDE)
7249 \end_layout
7250
7251 \begin_layout Standard
7252 \begin_inset Flex MenuItem
7253 status collapsed
7254
7255 \begin_layout Plain Layout
7256 設定\SpecialChar \menuseparator
7257 Okularを設定\SpecialChar \ldots{}
7258 \SpecialChar \menuseparator
7259 編集
7260 \end_layout
7261
7262 \end_inset
7263
7264 で「カスタムテキストエディタ」を選択し、コマンドに
7265 \begin_inset Flex Code
7266 status collapsed
7267
7268 \begin_layout Plain Layout
7269 lyxclient -g %f %l
7270 \end_layout
7271
7272 \end_inset
7273
7274 を加えてください。
7275 \end_layout
7276
7277 \begin_layout Standard
7278 遡及検索は、SHIFT-クリックで始動します。
7279 \end_layout
7280
7281 \begin_layout Subsubsection*
7282 YAP(Windows)
7283 \end_layout
7284
7285 \begin_layout Standard
7286 yapを起動し、
7287 \begin_inset Flex MenuItem
7288 status collapsed
7289
7290 \begin_layout Plain Layout
7291 View\SpecialChar \menuseparator
7292 Options
7293 \end_layout
7294
7295 \end_inset
7296
7297 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
7298 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
7299  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
7300 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7301 \begin_inset Flex Code
7302 status collapsed
7303
7304 \begin_layout Plain Layout
7305 lyxeditor.bat
7306 \end_layout
7307
7308 \end_inset
7309
7310 (以下参照)のあるディレクトリを見つけます。
7311 \begin_inset Flex Code
7312 status collapsed
7313
7314 \begin_layout Plain Layout
7315 lyxeditor.bat
7316 \end_layout
7317
7318 \end_inset
7319
7320 を選択してプログラムの引数を
7321 \begin_inset Flex Code
7322 status collapsed
7323
7324 \begin_layout Plain Layout
7325 %f %l
7326 \end_layout
7327
7328 \end_inset
7329
7330 と指定してください。
7331 \begin_inset Flex Code
7332 status collapsed
7333
7334 \begin_layout Plain Layout
7335 lyxeditor.bat
7336 \end_layout
7337
7338 \end_inset
7339
7340 は、
7341 \emph on
7342 lyxpipe
7343 \emph default
7344 を通じてLyXと通信するためのラッパとして使用され、以下のようになっています。
7345 \end_layout
7346
7347 \begin_layout LyX-Code
7348 @echo off
7349 \begin_inset Newline newline
7350 \end_inset
7351
7352 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7353 \backslash
7354
7355 \backslash
7356 .
7357 \backslash
7358 pipe
7359 \backslash
7360 lyxpipe.in
7361 \begin_inset Newline newline
7362 \end_inset
7363
7364 type 
7365 \backslash
7366
7367 \backslash
7368 .
7369 \backslash
7370 pipe
7371 \backslash
7372 lyxpipe.out
7373 \end_layout
7374
7375 \begin_layout Standard
7376 LyXで指定したLyXServerパイプパスが、
7377 \begin_inset Flex Code
7378 status collapsed
7379
7380 \begin_layout Plain Layout
7381
7382 \backslash
7383
7384 \backslash
7385 .
7386 \backslash
7387 pipe
7388 \backslash
7389 lyxpipe
7390 \end_layout
7391
7392 \end_inset
7393
7394 となっていることを確認するか、
7395 \begin_inset Flex Code
7396 status collapsed
7397
7398 \begin_layout Plain Layout
7399 lyxeditor.bat
7400 \end_layout
7401
7402 \end_inset
7403
7404 ラッパの方を適切に修正してください。
7405 \end_layout
7406
7407 \begin_layout Standard
7408 yapでは、遡及検索はダブルクリックで始動します。
7409 \end_layout
7410
7411 \begin_layout Subsubsection*
7412 SumatraPDF(Windows)
7413 \end_layout
7414
7415 \begin_layout Standard
7416 SumatraPDFを遡及検索で使用するためには、
7417 \begin_inset Flex MenuItem
7418 status collapsed
7419
7420 \begin_layout Plain Layout
7421 設定\SpecialChar \menuseparator
7422 ファイル処理\SpecialChar \menuseparator
7423 ファイル書式\SpecialChar \menuseparator
7424 PDF (pdflatex)
7425 \end_layout
7426
7427 \end_inset
7428
7429 のビューア設定で
7430 \begin_inset Flex Code
7431 status collapsed
7432
7433 \begin_layout Plain Layout
7434 SumatraPDF -inverse-search 
7435 \begin_inset Quotes eld
7436 \end_inset
7437
7438 lyxeditor.bat %f %l
7439 \begin_inset Quotes erd
7440 \end_inset
7441
7442
7443 \end_layout
7444
7445 \end_inset
7446
7447
7448 \begin_inset Flex Code
7449 status collapsed
7450
7451 \begin_layout Plain Layout
7452 lyxeditor.bat
7453 \end_layout
7454
7455 \end_inset
7456
7457 は上記のラッパ)と入力してください。SumatraPDF.exeがコマンドPATHにない場合、フルファイル名を使用してください。
7458 \end_layout
7459
7460 \begin_layout Standard
7461 遡及検索はダブルクリックで始動します。
7462 \end_layout
7463
7464 \begin_layout Subsubsection*
7465 YAP(Cygwin)
7466 \end_layout
7467
7468 \begin_layout Standard
7469 まずはじめに、yapがWindows環境での既定のDVIビューアになっていることを確認してから、yapを起動し、
7470 \begin_inset Flex MenuItem
7471 status collapsed
7472
7473 \begin_layout Plain Layout
7474 View\SpecialChar \menuseparator
7475 Options
7476 \end_layout
7477
7478 \end_inset
7479
7480 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar \ldots{}
7481 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「LyX
7482  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar \ldots{}
7483 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7484 \begin_inset Flex Code
7485 status collapsed
7486
7487 \begin_layout Plain Layout
7488 lyxeditor.exe
7489 \end_layout
7490
7491 \end_inset
7492
7493 プログラム(これは、Cygwinでは既定でLyX実行ファイルとともに導入されます)のあるディレクトリを見つけます。
7494 \begin_inset Flex Code
7495 status collapsed
7496
7497 \begin_layout Plain Layout
7498 lyxeditor.exe
7499 \end_layout
7500
7501 \end_inset
7502
7503 を選択してプログラムの引数を
7504 \begin_inset Flex Code
7505 status collapsed
7506
7507 \begin_layout Plain Layout
7508 -g %f %l
7509 \end_layout
7510
7511 \end_inset
7512
7513 と指定してください。これによって、LyXとの通信に
7514 \emph on
7515 lyxsocket
7516 \emph default
7517 が使用されるようになります。何らかの理由で
7518 \emph on
7519 lyxpipe
7520 \emph default
7521 を使用したい場合には、
7522 \begin_inset Flex Code
7523 status collapsed
7524
7525 \begin_layout Plain Layout
7526 -g
7527 \end_layout
7528
7529 \end_inset
7530
7531 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
7532 \end_layout
7533
7534 \begin_layout Standard
7535 yapでは、遡及検索はダブルクリックで始動します。
7536 \end_layout
7537
7538 \begin_layout Subsubsection*
7539 SumatraPDF(Cygwin)
7540 \end_layout
7541
7542 \begin_layout Standard
7543 SumatraPDFを遡及検索で使用するためには、
7544 \begin_inset Flex MenuItem
7545 status collapsed
7546
7547 \begin_layout Plain Layout
7548 設定\SpecialChar \menuseparator
7549 ファイル処理\SpecialChar \menuseparator
7550 ファイル書式\SpecialChar \menuseparator
7551 PDF (pdflatex)
7552 \end_layout
7553
7554 \end_inset
7555
7556 のビューア設定で
7557 \begin_inset Flex Code
7558 status collapsed
7559
7560 \begin_layout Plain Layout
7561 SumatraPDF.sh
7562 \end_layout
7563
7564 \end_inset
7565
7566 と入力してください。ここで
7567 \begin_inset Flex Code
7568 status collapsed
7569
7570 \begin_layout Plain Layout
7571 SumatraPDF.sh
7572 \end_layout
7573
7574 \end_inset
7575
7576 は以下のようなスクリプトです(お使いのコマンドパスに置きます。
7577 \begin_inset Flex Code
7578 status collapsed
7579
7580 \begin_layout Plain Layout
7581 /usr/local/bin
7582 \end_layout
7583
7584 \end_inset
7585
7586 がもっとも良い選択肢でしょう)。
7587 \end_layout
7588
7589 \begin_layout LyX-Code
7590 #!/bin/bash
7591 \begin_inset Newline newline
7592 \end_inset
7593
7594 cd $(dirname $1)
7595 \begin_inset Newline newline
7596 \end_inset
7597
7598 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
7599 \end_layout
7600
7601 \begin_layout Standard
7602 SumatraPDFは、Windowsネイティブのアプリケーションであり、LyXのCygwin版が使用するPOSIXパスを理解しないので、このラッパスクリプトが
7603 必要となります。SumatraPDF.exeがお使いのコマンドパスにない場合は、上記のスクリプトでPOSIXのフルパスを使用してください。
7604 \begin_inset Flex Code
7605 status collapsed
7606
7607 \begin_layout Plain Layout
7608 -g
7609 \end_layout
7610
7611 \end_inset
7612
7613
7614 \emph on
7615 lyxsocket
7616 \emph default
7617 経由の通信を有効にします。ここでも、
7618 \emph on
7619 lyxpipe
7620 \emph default
7621 を使用したい場合には、
7622 \begin_inset Flex Code
7623 status collapsed
7624
7625 \begin_layout Plain Layout
7626 -g
7627 \end_layout
7628
7629 \end_inset
7630
7631 オプションを削除して、LyX設定でLyXServerパイプパスを指定することを忘れないでください。
7632 \end_layout
7633
7634 \begin_layout Standard
7635 遡及検索はダブルクリックで始動します。
7636 \end_layout
7637
7638 \begin_layout Section
7639 前方検索
7640 \end_layout
7641
7642 \begin_layout Standard
7643 前方検索を有効にするためには、生成されたPDF/DVI出力ファイルに、TeXソースに関する情報を追加する必要があります。これは、第
7644 \begin_inset CommandInset ref
7645 LatexCommand ref
7646 reference "sub:遡及検索"
7647
7648 \end_inset
7649
7650 節に述べられている方法で実行することができます。
7651 \end_layout
7652
7653 \begin_layout Standard
7654 次に、
7655 \begin_inset Flex MenuItem
7656 status collapsed
7657
7658 \begin_layout Plain Layout
7659 設定\SpecialChar \menuseparator
7660 出力\SpecialChar \menuseparator
7661 一般
7662 \end_layout
7663
7664 \end_inset
7665
7666 で自分の使うビューアを利用するように、LyXを設定する必要があります。ただし、yap・xdvi・okular・Sumatra PDFなど、一部のビューアしかこの
7667 操作は利用できません
7668 \begin_inset Foot
7669 status collapsed
7670
7671 \begin_layout Plain Layout
7672 Sumatraの場合には、http://www.istri.fr/zip/CMCDDE.zipからダウンロードできるCMCDDEが必要です。
7673 \end_layout
7674
7675 \end_inset
7676
7677 。Evinceやxpdfなどの他のビューアでは、少なくとも、ファイルの特定頁を読み込み直したり、指し示したりすることができますが、これらの場合にはsynctex
7678 の外部コールを使用することができます。設定ダイアログに用意されている用例をよく研究してください。設定中で置き換えられる値は以下の通りです。
7679 \begin_inset Flex Code
7680 status collapsed
7681
7682 \begin_layout Plain Layout
7683 $$n
7684 \end_layout
7685
7686 \end_inset
7687
7688 は行番号を指し、
7689 \begin_inset Flex Code
7690 status collapsed
7691
7692 \begin_layout Plain Layout
7693 $$t
7694 \end_layout
7695
7696 \end_inset
7697
7698 は書き出された一時.texファイル、
7699 \begin_inset Flex Code
7700 status collapsed
7701
7702 \begin_layout Plain Layout
7703 $$o
7704 \end_layout
7705
7706 \end_inset
7707
7708 は書き出された出力ファイルを指します(一時ディレクトリにどちらが存在するかに依存してdviあるいはpdf)。
7709 \end_layout
7710
7711 \begin_layout Standard
7712 閲覧時には、一時ディレクトリに.dviファイルがあるか.pdfファイルがあるか(特定の文書を閲覧するのにどの書式を使用したか)によって、適当なプレビュー書式をLyX
7713 が動的に選択します。
7714 \end_layout
7715
7716 \begin_layout Chapter
7717 特別な文書クラス
7718 \end_layout
7719
7720 \begin_layout Section
7721 A&Aの論文
7722 \end_layout
7723
7724 \begin_layout Standard
7725
7726 \noun on
7727 Peter Sütterlin文
7728 \end_layout
7729
7730 \begin_layout Subsection
7731 はじめに
7732 \end_layout
7733
7734 \begin_layout Standard
7735 この節では、文書クラス
7736 \family typewriter
7737 aa.cls
7738 \family default
7739 第5.01版を使用して科学雑誌
7740 \emph on
7741 Astronomy and Astrophysics
7742 \emph default
7743 (『天文学と宇宙物理学』:www.edpsciences.fr/aa/ 
7744 \begin_inset Flex URL
7745 status collapsed
7746
7747 \begin_layout Plain Layout
7748
7749 http://www.edpsciences.fr/aa/
7750 \end_layout
7751
7752 \end_inset
7753
7754 )に投稿する論文を執筆するためのLyXの使用法を説明します。このパッケージは、FTPサイト
7755 \end_layout
7756
7757 \begin_layout Standard
7758 \align center
7759 \begin_inset VSpace medskip
7760 \end_inset
7761
7762
7763 \begin_inset Flex URL
7764 status collapsed
7765
7766 \begin_layout Plain Layout
7767
7768 ftp://ftp.edpsciences.org/pub/aa/readme.html
7769 \end_layout
7770
7771 \end_inset
7772
7773
7774 \begin_inset VSpace medskip
7775 \end_inset
7776
7777
7778 \end_layout
7779
7780 \begin_layout Standard
7781 \noindent
7782 からダウンロードすることができます。
7783 \end_layout
7784
7785 \begin_layout Standard
7786 このパッケージには取扱説明書がついていますが、本節は、本来の取扱説明書の代わりとなることを意図したものではなく、あなたの論文を正しい様式に整えるための小さな案内
7787 書であるに過ぎません。
7788 \end_layout
7789
7790 \begin_layout Standard
7791 この学術誌の出版元は、2001年1月1日以降、Springer社からEDP Science社に変更されていることにご注意ください。この出版社の変更によって、th
7792 esaurusコマンドの廃止など、スタイルファイルに若干の変更が加わっています。LyXのaaクラスは、スタイルファイルの最新版(第5.01版)をサポートしています
7793 。もし古い版が装備されている場合には、更新してください。互換性のために、古い(第4版)レイアウトは、
7794 \family sans
7795 article (A&A V4)
7796 \family default
7797 として残してあります。
7798 \family typewriter
7799 $LyXDir/layouts/aapaper.layout
7800 \family default
7801 のコメントをご参照ください。
7802 \end_layout
7803
7804 \begin_layout Subsection
7805 最初の一歩
7806 \end_layout
7807
7808 \begin_layout Standard
7809 LyXとともに頒布されている例示用のひな型を土台として、書き始めることをお勧めします。ひな型を使用しない場合には、以下の設定にしてください。
7810 \end_layout
7811
7812 \begin_layout Itemize
7813
7814 \family sans
7815 文書\SpecialChar \menuseparator
7816 設定
7817 \family default
7818 ダイアログで
7819 \family sans
7820 article (A&A)
7821 \family default
7822 を選択してください(まぁ、これは自明ですね)。
7823 \end_layout
7824
7825 \begin_layout Itemize
7826
7827 \family sans
7828 ページレイアウト
7829 \family default
7830 オプションは変更しないで、既定値のままに設定しておいてください。全体のレイアウトはマクロが行うので、何も変更してはいけません。
7831 \end_layout
7832
7833 \begin_layout Subsection
7834 へッダ部
7835 \end_layout
7836
7837 \begin_layout Standard
7838 最初に入力すべきものは、へッダ情報です。ヘッダ情報には、以下の7つの項目があり、いくつかは必須ではありません。
7839 \end_layout
7840
7841 \begin_layout Itemize
7842
7843 \family sans
7844 タイトル
7845 \family default
7846 :[必須]
7847 \end_layout
7848
7849 \begin_layout Itemize
7850
7851 \family sans
7852 サブタイトル
7853 \family default
7854 :[非必須]
7855 \end_layout
7856
7857 \begin_layout Itemize
7858
7859 \family sans
7860 著者
7861 \family default
7862 :[必須]
7863 \end_layout
7864
7865 \begin_layout Itemize
7866
7867 \family sans
7868 住所
7869 \family default
7870 :[必須]
7871 \end_layout
7872
7873 \begin_layout Itemize
7874
7875 \family sans
7876 抜き刷り
7877 \family default
7878 :[非必須]著者が複数いる場合、抜き刷りの送付を依頼するのに連絡すべき人を記す。
7879 \end_layout
7880
7881 \begin_layout Itemize
7882
7883 \family sans
7884 メール
7885 \family default
7886 :[非必須]連絡用の電子メールアドレス。
7887 \end_layout
7888
7889 \begin_layout Itemize
7890
7891 \family sans
7892 日付
7893 \family default
7894 :[必須]推奨されるフォーマットは、
7895 \family typewriter
7896 Received: <日付>; Accepted <日付>
7897 \family default
7898 です。
7899 \end_layout
7900
7901 \begin_layout Standard
7902
7903 \family typewriter
7904
7905 \backslash
7906 maketitle
7907 \family default
7908 コマンドは、へッダが終了した場所に、LyXが自動的に入れてくれるので、手動で挿入する必要はありません。各項目の順序は関係ありませんが、見た目のためと、実際の文書
7909 のレイアウトに合わせるために、上記の順序を維持しておくと良いでしょう。
7910 \end_layout
7911
7912 \begin_layout Standard
7913 現住所の付記などのために、へッダ部に脚注を挿入したい場合には、
7914 \family sans
7915 挿入\SpecialChar \menuseparator
7916 脚注
7917 \family default
7918 を使用して標準の脚注を挿入してください。この場合には、LyXは自動的に
7919 \family typewriter
7920
7921 \backslash
7922 thanks{}
7923 \family default
7924 を使用します。
7925 \end_layout
7926
7927 \begin_layout Standard
7928 これらのトピックの他に、このマクロは、LyXが対応していない、以下の3つのLaTeXコマンドを使用します。
7929 \end_layout
7930
7931 \begin_layout Itemize
7932 複数の著者名あるいは所属名を区切るための
7933 \family typewriter
7934
7935 \backslash
7936 and
7937 \end_layout
7938
7939 \begin_layout Itemize
7940 著者と所属の対応付けをするための
7941 \family typewriter
7942
7943 \backslash
7944 inst{<番号>}
7945 \family default
7946 。所属は、
7947 \family sans
7948 住所
7949 \family default
7950 フィールドに現れる順に番号が付けられるので、各著者に番号マーカーを置く必要があります。
7951 \end_layout
7952
7953 \begin_layout Itemize
7954
7955 \family typewriter
7956
7957 \backslash
7958 email{アドレス}
7959 \family default
7960 は、至急連絡用に電子メールアドレスを付記します。
7961 \end_layout
7962
7963 \begin_layout Standard
7964 いずれの場合にも、LyX中に対応したコマンドを入力し、LaTeXコードとしてマークしてください。
7965 \begin_inset Flex Code
7966 status collapsed
7967
7968 \begin_layout Plain Layout
7969 $LyXDir/examples
7970 \end_layout
7971
7972 \end_inset
7973
7974 にある用例を参照してください。
7975 \end_layout
7976
7977 \begin_layout Subsection
7978 概要
7979 \end_layout
7980
7981 \begin_layout Standard
7982 概要は、へッダ部の直後に置きます。第5版から、概要は環境からコマンドに変更され、一段落に限るという制限が加えられました。さらに、ここにはキーワードを含む項目を入
7983 れなくてはなりません。これは、まだLyXでは実装されていないため、LaTeXコマンド
7984 \family typewriter
7985
7986 \backslash
7987 keywords{}
7988 \family default
7989 を手動で入力し、LaTeXコードとしてマークする必要があります。用例にある論文を参照してください。
7990 \end_layout
7991
7992 \begin_layout Subsection
7993 サポートされる環境
7994 \end_layout
7995
7996 \begin_layout Standard
7997 A&A論文用レイアウトでは、文章を構造化するために、以下の環境がサポートされています。
7998 \end_layout
7999
8000 \begin_layout Itemize
8001
8002 \family sans
8003 標準
8004 \end_layout
8005
8006 \begin_layout Itemize
8007
8008 \family sans
8009
8010 \end_layout
8011
8012 \begin_layout Itemize
8013
8014 \family sans
8015 小節
8016 \end_layout
8017
8018 \begin_layout Itemize
8019
8020 \family sans
8021 小々節
8022 \end_layout
8023
8024 \begin_layout Itemize
8025
8026 \family sans
8027 箇条書き(記号)
8028 \end_layout
8029
8030 \begin_layout Itemize
8031
8032 \family sans
8033 箇条書き(連番)
8034 \end_layout
8035
8036 \begin_layout Itemize
8037
8038 \family sans
8039 箇条書き(記述)
8040 \end_layout
8041
8042 \begin_layout Itemize
8043
8044 \family sans
8045 キャプション
8046 \end_layout
8047
8048 \begin_layout Itemize
8049
8050 \family sans
8051 概要
8052 \end_layout
8053
8054 \begin_layout Itemize
8055
8056 \family sans
8057 謝辞(Acknowledgment)
8058 \end_layout
8059
8060 \begin_layout Itemize
8061
8062 \family sans
8063 参考文献
8064 \end_layout
8065
8066 \begin_layout Itemize
8067
8068 \family sans
8069 LaTeX
8070 \end_layout
8071
8072 \begin_layout Subsection
8073 LyXでサポートされていないコマンド
8074 \end_layout
8075
8076 \begin_layout Standard
8077 LyXの
8078 \family sans
8079 article (A&A)
8080 \family default
8081 レイアウトでは、まだサポートされていないコマンドがあります。そのうちいくつかは既に紹介しましたが、網羅するために、以下にすべて列挙しておきます。
8082 \end_layout
8083
8084 \begin_layout Itemize
8085
8086 \family typewriter
8087
8088 \backslash
8089 and
8090 \end_layout
8091
8092 \begin_layout Itemize
8093
8094 \family typewriter
8095
8096 \backslash
8097 email
8098 \end_layout
8099
8100 \begin_layout Itemize
8101
8102 \family typewriter
8103
8104 \backslash
8105 appendix
8106 \end_layout
8107
8108 \begin_layout Itemize
8109
8110 \family typewriter
8111
8112 \backslash
8113 authorrunning
8114 \end_layout
8115
8116 \begin_layout Itemize
8117
8118 \family typewriter
8119
8120 \backslash
8121 inst{}
8122 \end_layout
8123
8124 \begin_layout Itemize
8125
8126 \family typewriter
8127
8128 \backslash
8129 keywords{}
8130 \end_layout
8131
8132 \begin_layout Itemize
8133
8134 \family typewriter
8135
8136 \backslash
8137 object{}
8138 \end_layout
8139
8140 \begin_layout Itemize
8141
8142 \family typewriter
8143
8144 \backslash
8145 titlerunning{}
8146 \end_layout
8147
8148 \begin_layout Standard
8149 これらのコマンドのいずれかを使いたい場合には、自分で入力する必要があります。
8150 \series bold
8151 これをLaTeXコマンドとしてマークすることを忘れないで下さい。
8152 \end_layout
8153
8154 \begin_layout Subsection
8155 図フロートおよび表フロート
8156 \end_layout
8157
8158 \begin_layout Standard
8159 LyXは、必要なフロート環境
8160 \family sans
8161 figure
8162 \family default
8163
8164 \family sans
8165 figure*
8166 \family default
8167
8168 \family sans
8169 table
8170 \family default
8171
8172 \family sans
8173 table*
8174 \family default
8175 をサポートしていますので、ここでは詳しい説明はしません。
8176 \emph on
8177 ユーザーの手引き
8178 \emph default
8179 をご覧ください。ただ、表は左揃えにしなくてはならないことに注意して下さい。そうするためには、表を選択して、
8180 \family sans
8181 編集\SpecialChar \menuseparator
8182 段落設定
8183 \family default
8184 で配置を変更してください。
8185 \end_layout
8186
8187 \begin_layout Standard
8188 一つだけ、特別なものがあります。それは、図横にキャプションを配置する図です。この図を作成するには、以下のようにしなくてはなりません。
8189 \end_layout
8190
8191 \begin_layout Enumerate
8192
8193 \family sans
8194 挿入\SpecialChar \menuseparator
8195 フロート\SpecialChar \menuseparator
8196
8197 \family default
8198 を使って、幅広の図フロートを作成します。それから、図フロートのラベルを右クリックして
8199 \begin_inset Flex MenuItem
8200 status collapsed
8201
8202 \begin_layout Plain Layout
8203 設定\SpecialChar \ldots{}
8204
8205 \end_layout
8206
8207 \end_inset
8208
8209 を選択し、それで開かれる
8210 \family sans
8211 フロートの設定
8212 \family default
8213 ダイアログで
8214 \family sans
8215 段をまたぐ
8216 \family default
8217 を有効にして、
8218 \family sans
8219 OK
8220 \family default
8221 ボタンを押します。
8222 \end_layout
8223
8224 \begin_layout Enumerate
8225 キャプション文を入力します。
8226 \end_layout
8227
8228 \begin_layout Enumerate
8229 キャプションの前にカーソルを移動し、
8230 \family sans
8231 Return
8232 \family default
8233 を押して、カーソルをキャプションの上に移動します。
8234 \end_layout
8235
8236 \begin_layout Enumerate
8237 図を挿入します。
8238 \end_layout
8239
8240 \begin_layout Enumerate
8241 カーソルを図の後ろに置いて、
8242 \family sans
8243 挿入\SpecialChar \menuseparator
8244 整形
8245 \bar under
8246 \SpecialChar \menuseparator
8247
8248 \bar default
8249 水平方向の空白
8250 \family default
8251 を選択して
8252 \family sans
8253 水平方向の空白の設定
8254 \family default
8255 ダイアログを開き、
8256 \family sans
8257 空白
8258 \family default
8259 ドロップダウンから
8260 \family sans
8261 水平フィル
8262 \family default
8263 を選択して、水平フィルを挿入します。
8264 \end_layout
8265
8266 \begin_layout Enumerate
8267
8268 \family sans
8269 挿入\SpecialChar \menuseparator
8270 TeXコード
8271 \family default
8272 を選択して、TeX差込枠を挿入します。
8273 \end_layout
8274
8275 \begin_layout Enumerate
8276 TeX差込枠中に
8277 \family typewriter
8278
8279 \backslash
8280 parbox[b]{55mm}{
8281 \family default
8282 と入力します。
8283 \series bold
8284 ここでは波括弧を閉じないでください。
8285 \end_layout
8286
8287 \begin_layout Enumerate
8288 カーソルをキャプション文の後ろに移動し、
8289 \family sans
8290 挿入\SpecialChar \menuseparator
8291 TeXコード
8292 \family default
8293 を選択して、別のTeX差込枠を挿入し、その中に閉じ括弧を入力します 。
8294 \end_layout
8295
8296 \begin_layout Standard
8297 例示用論文中の図もご参照ください。
8298 \end_layout
8299
8300 \begin_layout Subsection
8301 Refereeレイアウト
8302 \end_layout
8303
8304 \begin_layout Standard
8305 投稿用には、論文を特別なダブルスペースレイアウトに整形しなくてはなりません。このためには、文書クラスに
8306 \family typewriter
8307 referee
8308 \family default
8309 オプションを与える必要があります。これは、
8310 \family sans
8311 文書\SpecialChar \menuseparator
8312 設定
8313 \family default
8314 ダイアログの
8315 \family sans
8316 任意設定
8317 \family default
8318 クラスオプションフィールドを使って行うことができます。この欄に
8319 \family typewriter
8320 referee
8321 \family default
8322 と云う文字列を入力してください。
8323 \end_layout
8324
8325 \begin_layout Subsection
8326 例示用論文
8327 \end_layout
8328
8329 \begin_layout Standard
8330
8331 \family sans
8332 Examples
8333 \family default
8334 ディレクトリには、LyXで書かれた例示用論文が収録されています。これは、元のマクロパッケージの例示用論文をLyX用に直したものです。これはヒントを得るために使用
8335 したり、元の LaTeXコードとLyXでの書き方の比較に使ったりしてください。
8336 \end_layout
8337
8338 \begin_layout Section
8339 AASTeX
8340 \end_layout
8341
8342 \begin_layout Standard
8343
8344 \noun on
8345 Mike Ressler
8346 \noun default
8347
8348 \end_layout
8349
8350 \begin_layout Subsection
8351 はじめに
8352 \end_layout
8353
8354 \begin_layout Standard
8355 AASTeXは、American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑
8356 誌)同誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of
8357  the Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために、同学会が作成したマクロ集
8358 です。LyXは、これらの文書を生成する上で、なかでも数式・引用・画像処理能力において、優れたツールであることが認識されています。LyXは、同マクロ第5.0版以降を
8359 必要としており、できればここで説明されている第5.2版以降が望まれます。第5.0版未満の版は、LaTeX2.09で使用するよう企図されているため、根本的にLyXとは互
8360 換性がありません。AASTeXパッケージは、以下のAASTeXウェブサイトからダウンロードできるでしょう。
8361 \end_layout
8362
8363 \begin_layout Standard
8364 \align center
8365 \begin_inset VSpace medskip
8366 \end_inset
8367
8368
8369 \begin_inset Flex URL
8370 status collapsed
8371
8372 \begin_layout Plain Layout
8373
8374 http://www.journals.uchicago.edu/AAS/AASTeX
8375 \end_layout
8376
8377 \end_inset
8378
8379
8380 \begin_inset VSpace medskip
8381 \end_inset
8382
8383
8384 \end_layout
8385
8386 \begin_layout Standard
8387 パッケージ中には、完備したユーザーの手引きが収録されていますので、LyXで論文を書き始める前に、その中身を完全に理解しておく必要があります。LyXは、AASTe
8388 Xの全コマンドを理解する必然性をなくすものではなく、すべてを手入力する苦労を減らすだけです。仕上がりのLaTeX文書が、論文を投稿しようとしているジャーナルの要
8389 求事項に完全に合致していることを確認するのは、あなたの責任です。
8390 \end_layout
8391
8392 \begin_layout Subsection
8393 新しい論文を書き始める
8394 \end_layout
8395
8396 \begin_layout Standard
8397 論文を書き始めるには、AASTeXひな型ファイルを土台に始めることを強くお勧めします。
8398 \begin_inset Flex MenuItem
8399 status collapsed
8400
8401 \begin_layout Plain Layout
8402 ファイル\SpecialChar \menuseparator
8403 新規(ひな型使用)
8404 \end_layout
8405
8406 \end_inset
8407
8408 をクリックして、新しいファイル名を入力し、ひな型
8409 \family typewriter
8410 aastex.lyx
8411 \family default
8412 を選んでください。これには、論文原稿のほとんどに共通して使われるフィールドが書き込まれています。書き込まれている文字列(括弧
8413 \family typewriter
8414 <>
8415 \family default
8416 を含む)を正しい情報で上書きしてください。AASTeXコマンド・AASTeX環境の多くは、LyX中で直接実行することができますが、特に
8417 \family typewriter
8418
8419 \backslash
8420 altaffilmark
8421 \family default
8422
8423 \family typewriter
8424
8425 \backslash
8426 altaffiltext
8427 \family default
8428 のようにできないものもあります。この二つのコマンドは、ひな型ファイルを開いたとき、赤色に表示されているのですぐ目に入ることでしょう。このようなコマンドは、直接L
8429 aTeXコードを入力して、それをTeXコードとしてマークしなければなりません。このようなコマンドは、TeXコードあるいはEvil Red Text(邪悪な赤い文
8430 )と呼ばれます。AASTeX文書に必要とされる TeXコードを最小にするよう努力はしていますが、まだ望まれるほどにはなっていません。
8431 \end_layout
8432
8433 \begin_layout Subsection
8434 論文を書き終わったら
8435 \end_layout
8436
8437 \begin_layout Standard
8438 論文を満足する水準で書き終え、プレビューや印刷が正しく為されているとしても、まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています。
8439 \end_layout
8440
8441 \begin_layout Enumerate
8442 論文を LaTeXファイルとして書き出します(
8443 \family sans
8444 ファイル\SpecialChar \menuseparator
8445 書き出し\SpecialChar \menuseparator
8446 LateX
8447 \family default
8448 )。
8449 \end_layout
8450
8451 \begin_layout Enumerate
8452 出力した
8453 \family typewriter
8454 .tex
8455 \family default
8456 ファイルを好きなエディタで編集します。
8457 \end_layout
8458
8459 \begin_deeper
8460 \begin_layout Enumerate
8461
8462 \family typewriter
8463
8464 \backslash
8465 documentclass
8466 \family default
8467 コマンドよりも前のコメント行を削除します。
8468 \end_layout
8469
8470 \begin_layout Enumerate
8471
8472 \family typewriter
8473
8474 \backslash
8475 usepackage...{fontenc}
8476 \family default
8477 という行があれば(通常は
8478 \family typewriter
8479
8480 \backslash
8481 documentclass
8482 \family default
8483 の直後にあります)削除します。また、
8484 \family typewriter
8485
8486 \backslash
8487 secnumdepth
8488 \family default
8489 行があれば、これも削除します。
8490 \end_layout
8491
8492 \begin_layout Enumerate
8493 LaTeXプリアンブル中に意図的に置いたコマンド(
8494 \family typewriter
8495 .tex
8496 \family default
8497 ファイル中、「User specified LaTeX commands」というコメントの直後にあります)を除いて、
8498 \family typewriter
8499
8500 \backslash
8501 makeatletter
8502 \family default
8503
8504 \family typewriter
8505
8506 \backslash
8507 makeatother
8508 \family default
8509 の間のもの(これらのコマンドを含む)をすべて削除します。
8510 \end_layout
8511
8512 \end_deeper
8513 \begin_layout Enumerate
8514 編集後のファイルを LaTeXにかけて、正しく処理されることを確認します。
8515 \end_layout
8516
8517 \begin_layout Enumerate
8518 学術誌の要求事項を再読して、ファイル名と書式が正しいことを確認します。
8519 \end_layout
8520
8521 \begin_layout Enumerate
8522 投稿してください。
8523 \end_layout
8524
8525 \begin_layout Subsection
8526 特定のコマンドに関するコメント
8527 \end_layout
8528
8529 \begin_layout Standard
8530 AASTeXユーザーの手引き(
8531 \family typewriter
8532 aasguide.tex
8533 \family default
8534 )に、各AASTeXコマンドの詳しい説明があるので、ここでは、各コマンドの使用法の詳細な説明は行いません。そこで、ここではユーザーの手引きに現れるとおりに一覧を
8535 列挙して、必要なところだけコメントを加えることにしましょう。
8536 \end_layout
8537
8538 \begin_layout Subsubsection
8539 期待通りに動作するもの
8540 \end_layout
8541
8542 \begin_layout Standard
8543 これらは期待通りに動作するので、ここでは列挙するだけにして、コマンドの説明されている節を挙げておきます。
8544 \family typewriter
8545
8546 \backslash
8547 documentclass
8548 \family default
8549 (2.1.1)・
8550 \family typewriter
8551
8552 \backslash
8553 begin{document}
8554 \family default
8555 (2.2)・
8556 \family typewriter
8557
8558 \backslash
8559 title
8560 \family default
8561 (2.3)・
8562 \family typewriter
8563
8564 \backslash
8565 author
8566 \family default
8567 (2.3)・
8568 \family typewriter
8569
8570 \backslash
8571 affil
8572 \family default
8573 (2.3)・
8574 \family typewriter
8575
8576 \backslash
8577 abstract
8578 \family default
8579 (2.4)・
8580 \family typewriter
8581
8582 \backslash
8583 keywords
8584 \family default
8585 (2.5)・
8586 \family typewriter
8587
8588 \backslash
8589 section
8590 \family default
8591 (2.7)・
8592 \family typewriter
8593
8594 \backslash
8595 subsection
8596 \family default
8597 (2.7)・
8598 \family typewriter
8599
8600 \backslash
8601 subsubsection
8602 \family default
8603 (2.7)・
8604 \family typewriter
8605
8606 \backslash
8607 paragraph
8608 \family default
8609 (2.7)・
8610 \family typewriter
8611
8612 \backslash
8613 facility
8614 \family default
8615 (2.10)・
8616 \family typewriter
8617
8618 \backslash
8619 begin{displaymath}
8620 \family default
8621 (2.12)・
8622 \family typewriter
8623
8624 \backslash
8625 begin{equation}
8626 \family default
8627 (2.12)・
8628 \family typewriter
8629
8630 \backslash
8631 begin{eqnarray}
8632 \family default
8633 (2.12)・
8634 \family typewriter
8635
8636 \backslash
8637 begin{mathletters}
8638 \family default
8639 (2.12)・
8640 \family typewriter
8641
8642 \backslash
8643 begin{thebibliography}
8644 \family default
8645 (2.13.1)・
8646 \family typewriter
8647
8648 \backslash
8649 bibitem
8650 \family default
8651 (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
8652 \family typewriter
8653
8654 \backslash
8655 begin{table}
8656 \family default
8657 (2.15.4)・
8658 \family typewriter
8659
8660 \backslash
8661 begin{tabular}
8662 \family default
8663 (2.15.4)・
8664 \family typewriter
8665
8666 \backslash
8667 caption
8668 \family default
8669 (2.15.4)・
8670 \family typewriter
8671
8672 \backslash
8673 label
8674 \family default
8675 (他にもあるが特に2.15.4)・
8676 \family typewriter
8677
8678 \backslash
8679 tablerefs
8680 \family default
8681 (2.15.5)・
8682 \family typewriter
8683
8684 \backslash
8685 tablecomments
8686 \family default
8687 (2.15.5)・
8688 \family typewriter
8689
8690 \backslash
8691 url
8692 \family default
8693 (2.17.4)・
8694 \family typewriter
8695
8696 \backslash
8697 end{document}
8698 \family default
8699 (2.18)。
8700 \end_layout
8701
8702 \begin_layout Standard
8703 以下のスタイルオプションも正しく動作します。
8704 \family typewriter
8705 longabstract
8706 \family default
8707 (2.4)・
8708 \family typewriter
8709 preprint
8710 \family default
8711 (3.2.1)・
8712 \family typewriter
8713 preprint2
8714 \family default
8715 (3.2.2)・
8716 \family typewriter
8717 eqsecnum
8718 \family default
8719 (3.3)・
8720 \family typewriter
8721 flushrt
8722 \family default
8723 (3.4)。これらは、
8724 \begin_inset Flex MenuItem
8725 status collapsed
8726
8727 \begin_layout Plain Layout
8728 文書\SpecialChar \menuseparator
8729 設定
8730 \end_layout
8731
8732 \end_inset
8733
8734 にある、
8735 \family sans
8736 クラスオプション
8737 \family default
8738
8739 \family sans
8740 任意設定
8741 \family default
8742 ボックスに入力してください。
8743 \end_layout
8744
8745 \begin_layout Subsubsection
8746 動作するが、若干説明が必要なもの
8747 \end_layout
8748
8749 \begin_layout Standard
8750 以下のコマンドは動作しますが、若干の説明が必要です。
8751 \end_layout
8752
8753 \begin_layout Itemize
8754 以下の項目は、学術誌の編集者向けに取ってあるものですが、どうしても必要ならば、LaTeXプリアンブルに入れることができます。
8755 \family typewriter
8756
8757 \backslash
8758 received
8759 \family default
8760
8761 \family typewriter
8762
8763 \backslash
8764 revised
8765 \family default
8766
8767 \family typewriter
8768
8769 \backslash
8770 accepted
8771 \family default
8772
8773 \family typewriter
8774
8775 \backslash
8776 ccc
8777 \family default
8778
8779 \family typewriter
8780 cpright
8781 \family default
8782 (すべて 2.1.3)。
8783 \end_layout
8784
8785 \begin_layout Itemize
8786 以下の項目は、LaTeXのプリアンブルに置くことができるもので、これらは、ひな型ファイルには、空の引数と共に含まれています。
8787 \family typewriter
8788
8789 \backslash
8790 slugcomment
8791 \family default
8792 (2.1.4)・
8793 \family typewriter
8794
8795 \backslash
8796 shorttitle
8797 \family default
8798 (2.1.5)・
8799 \family typewriter
8800
8801 \backslash
8802 shortauthors
8803 \family default
8804 (2.1.5)。
8805 \end_layout
8806
8807 \begin_layout Itemize
8808
8809 \family typewriter
8810
8811 \backslash
8812 email
8813 \family default
8814 (2.3)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、TeXコードを使用してください。
8815 \end_layout
8816
8817 \begin_layout Itemize
8818
8819 \family typewriter
8820
8821 \backslash
8822 and
8823 \family default
8824 (2.3)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8825 \end_layout
8826
8827 \begin_layout Itemize
8828
8829 \family typewriter
8830
8831 \backslash
8832 notetoeditor
8833 \family default
8834 (2.6)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、TeXコードを使用してください。
8835 \end_layout
8836
8837 \begin_layout Itemize
8838
8839 \family typewriter
8840
8841 \backslash
8842 placetable
8843 \family default
8844 (2.8)―相互参照用タグを挿入することはできません。手動でタグ名を入力する必要があります。
8845 \end_layout
8846
8847 \begin_layout Itemize
8848
8849 \family typewriter
8850
8851 \backslash
8852 placefigure
8853 \family default
8854 (2.8)—
8855 \family typewriter
8856
8857 \backslash
8858 placetable
8859 \family default
8860 と同様。
8861 \end_layout
8862
8863 \begin_layout Itemize
8864
8865 \family typewriter
8866
8867 \backslash
8868 acknowledgements
8869 \family default
8870 (2.9)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8871 \end_layout
8872
8873 \begin_layout Itemize
8874
8875 \family typewriter
8876
8877 \backslash
8878 appendix
8879 \family default
8880 (2.11)―後ろに{}が付記されます。これはエラーの原因にはなりません。
8881 \end_layout
8882
8883 \begin_layout Itemize
8884
8885 \family typewriter
8886
8887 \backslash
8888 figcaption
8889 \family default
8890 (2.14.2)―文章のはじめにカーソルを置いて
8891 \begin_inset Flex MenuItem
8892 status collapsed
8893
8894 \begin_layout Plain Layout
8895 挿入\SpecialChar \menuseparator
8896 短縮タイトル
8897 \end_layout
8898
8899 \end_inset
8900
8901 を選択すれば、非必須のファイル名引数を挿入することができます。「短縮タイトル」とありますが、
8902 \family typewriter
8903
8904 \backslash
8905 figcaption
8906 \family default
8907 が必要とする型の非必須引数を挿入します。望むらくはいつの日か改名されることでしょう。
8908 \end_layout
8909
8910 \begin_layout Itemize
8911
8912 \family typewriter
8913
8914 \backslash
8915 objectname
8916 \family default
8917 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
8918 \family typewriter
8919
8920 \backslash
8921 figcaption
8922 \family default
8923 と同様。
8924 \end_layout
8925
8926 \begin_layout Itemize
8927
8928 \family typewriter
8929
8930 \backslash
8931 dataset
8932 \family default
8933 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
8934 \family typewriter
8935
8936 \backslash
8937 figcaption
8938 \family default
8939 と同様。
8940 \end_layout
8941
8942 \begin_layout Subsubsection
8943 実装されていないため、TeXコードを使用するもの
8944 \end_layout
8945
8946 \begin_layout Standard
8947
8948 \family typewriter
8949
8950 \backslash
8951 altaffilmark
8952 \family default
8953 (2.3)・
8954 \family typewriter
8955
8956 \backslash
8957 altaffiltext
8958 \family default
8959 (2.3)・
8960 \family typewriter
8961
8962 \backslash
8963 eqnum
8964 \family default
8965 (2.12)・
8966 \family typewriter
8967
8968 \backslash
8969 setcounter{equation}
8970 \family default
8971 (2.12)・学術誌名略語(2.12.4)・
8972 \family typewriter
8973
8974 \backslash
8975 figurenum
8976 \family default
8977 (2.14.1)・
8978 \family typewriter
8979
8980 \backslash
8981 epsscale
8982 \family default
8983 (2.14.1)・
8984 \family typewriter
8985
8986 \backslash
8987 plotone
8988 \family default
8989 (2.14.1)・
8990 \family typewriter
8991
8992 \backslash
8993 plottwo
8994 \family default
8995 (2.14.1)・
8996 \family typewriter
8997
8998 \backslash
8999 tablenum
9000 \family default
9001 (2.15.4)・
9002 \family typewriter
9003
9004 \backslash
9005 tableline
9006 \family default
9007 (2.15.4:入れたい場所の後ろに、左側セルの最初の要素として挿入する。表中では、LyXの方法は使わないでください)・
9008 \family typewriter
9009
9010 \backslash
9011 tablenotemark
9012 \family default
9013 (2.15.5)・
9014 \family typewriter
9015
9016 \backslash
9017 tablenotetext
9018 \family default
9019 (2.15.5)・補遺(2.17)の大半(
9020 \family typewriter
9021
9022 \backslash
9023 objectname
9024 \family default
9025
9026 \family typewriter
9027
9028 \backslash
9029 dataset
9030 \family default
9031
9032 \family typewriter
9033
9034 \backslash
9035 url
9036 \family default
9037
9038 \family typewriter
9039
9040 \backslash
9041 email
9042 \family default
9043 を除く。上記参照)・
9044 \family typewriter
9045
9046 \backslash
9047 singlespace
9048 \family default
9049 (3.1)・
9050 \family typewriter
9051
9052 \backslash
9053 doublespace
9054 \family default
9055 (3.1)・
9056 \family typewriter
9057
9058 \backslash
9059 onecolumn
9060 \family default
9061 (3.2)・
9062 \family typewriter
9063
9064 \backslash
9065 twocolumn
9066 \family default
9067 (3.2)
9068 \end_layout
9069
9070 \begin_layout Subsubsection
9071 実装できないもの
9072 \end_layout
9073
9074 \begin_layout Standard
9075 references(2.12.3)環境とdeluxetable(2.14)環境は、少なくとも意味のあるような形で実装することができないので、無視してください。もし、
9076 絶対に、どうしても、deluxetableを使う必要があるならば、テキストエディタで別ファイルとして編集し、
9077 \begin_inset Flex MenuItem
9078 status collapsed
9079
9080 \begin_layout Plain Layout
9081 挿入\SpecialChar \menuseparator
9082 ファイル
9083 \begin_inset Formula $\text{\textipa{}}$
9084 \end_inset
9085
9086 \SpecialChar \menuseparator
9087 子文書
9088 \end_layout
9089
9090 \end_inset
9091
9092 を使用して、LyXファイルに読み込むことを推奨します。この実例は、
9093 \family typewriter
9094 aas_sample.lyx
9095 \family default
9096 ファイルをご参照ください。
9097 \end_layout
9098
9099 \begin_layout Subsection
9100 FAQとヒントと技とその他の考察
9101 \end_layout
9102
9103 \begin_layout Subsubsection
9104 LyXをAASTeXと協調させる
9105 \end_layout
9106
9107 \begin_layout Standard
9108 LyXに、新しいレイアウトと文書クラスを認識させるには若干コツが要ります。もしうまく行かなかったら、次のようにしてみてください。
9109 \end_layout
9110
9111 \begin_layout Enumerate
9112 LaTeXが、AASTeXを検出できることを確認してください。AASTeX頒布版に含まれる
9113 \family typewriter
9114 sample.tex
9115 \family default
9116 (あるいは
9117 \family typewriter
9118 table.tex
9119 \family default
9120 でも可)を、LaTeXやAASTeXとまったく関係のないディレクトリにコピーして、
9121 \family typewriter
9122 sample.tex
9123 \family default
9124 をLaTeXにかけてください。
9125 \end_layout
9126
9127 \begin_layout Enumerate
9128
9129 \family typewriter
9130 aastex.layout
9131 \family default
9132 が、LyXの
9133 \family typewriter
9134 layouts
9135 \family default
9136 フォルダにあることを確認してください。
9137 \end_layout
9138
9139 \begin_layout Enumerate
9140 LyX中から
9141 \family sans
9142 ツール\SpecialChar \menuseparator
9143 再初期設定
9144 \family default
9145 を再度実行し、LyXを再起動してください。
9146 \end_layout
9147
9148 \begin_layout Enumerate
9149 ひな型ではなく、通常の新規ファイルを開いてください。AASTeXが、
9150 \family sans
9151 文書\SpecialChar \menuseparator
9152 設定
9153 \family default
9154 のクラス一覧に表示されていますか?
9155 \end_layout
9156
9157 \begin_layout Standard
9158 既存のAASTeX文書を処理する際に、AASTeXレイアウトを見つけられないとか、「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が
9159 出るようであれば、正しい導入が行われていません。
9160 \end_layout
9161
9162 \begin_layout Subsubsection
9163 表を処理する際のLaTeXエラー
9164 \end_layout
9165
9166 \begin_layout Standard
9167 既定では、LyXは、表のキャプションやタイトルを中央揃えにしようと試みます。これはAASTeXと悪い相互干渉を発生させるようですので、キャプションやタイトルのど
9168 こかをクリックして、
9169 \family sans
9170 編集\SpecialChar \menuseparator
9171 段落設定
9172 \family default
9173 を選択し、
9174 \family sans
9175 配置
9176 \family default
9177
9178 \family sans
9179 両端揃え
9180 \family default
9181 に設定してください。私のところではこれで解決しました。
9182 \end_layout
9183
9184 \begin_layout Subsubsection
9185 参考文献
9186 \end_layout
9187
9188 \begin_layout Standard
9189 若干の注意があります。(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです。書誌情報を入力する際には、最後の著者と、著作年を入れる括弧の間にスペ
9190 ースを
9191 \emph on
9192 入れない
9193 \emph default
9194 ようにしてください。たとえば、
9195 \family typewriter
9196 Ressler(1992)
9197 \family default
9198 はいいですが、
9199 \family typewriter
9200 Ressler (1992)
9201 \family default
9202 ではだめです。(2)書誌情報の入力の仕方は、必ずしも自明ではありません。もっとも簡単な方法は、文書の最後に、最初の書誌情報をまず書き込み、それを
9203 \family sans
9204 参考文献
9205 \family default
9206 環境としてマークすることです。すると、入力したものの前に、小さな灰色のボックスが現れます。このボックスをクリックして、残りの情報を入力してください。新しい参考文
9207 献を追加するには、既存の参考文献の後ろでリターンを押します。すると、新しいボックスの付いた新規行が出てくるので、後は同様にしてください。
9208 \end_layout
9209
9210 \begin_layout Subsubsection
9211 EPSファイルの読み込み
9212 \end_layout
9213
9214 \begin_layout Standard
9215 AASTeXには、自前の図関連コマンド(たとえば
9216 \family typewriter
9217
9218 \backslash
9219 plotone
9220 \family default
9221 )がありますが、私は(既定のgraphicxを使った)LaTeXの標準図コマンドの方がずっと好きです。望めば、図フロートボックスに、TeXコードで
9222 \family typewriter
9223
9224 \backslash
9225 plotone
9226 \family default
9227 等のコマンドを挿入することはできますが、私には正しいレイアウトを得ることができた試しがありません。標準の画像コマンドを使えば、LyXは、
9228 \family typewriter
9229
9230 \backslash
9231 usepackage{graphics}
9232 \family default
9233 コマンドをLaTeXプリアンブルに挿入し、図をLaTeX2eの標準的な方法で取り扱って、文章の中にちりばめます。現在、ApJは、ちょうどこのようにして作成した図
9234 を受け入れていますが、AJはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません。
9235 \end_layout
9236
9237 \begin_layout Subsubsection
9238 可能だったが、実装しなかったもの
9239 \end_layout
9240
9241 \begin_layout Standard
9242 「素敵な」ものの中には、実装することも可能だったけれども、あえて実装しなかったものがあります。たとえば、紙の原稿ではダブルスペースであったとしても、LyXウィン
9243 ドウ中で、文章をダブルスペースにする意味はないと考えました。また、preprint様式とpreprint2様式を、独立したレイアウトにすることもしませんでした。
9244 いずれにしても、執筆時間のほとんどを、平の原稿モードで使うのがほとんどですから、これらの機能でディスクスペースを消費しないことにしました。
9245 \end_layout
9246
9247 \begin_layout Subsection
9248 最後に
9249 \end_layout
9250
9251 \begin_layout Standard
9252 これまでに進んできた道のりは、長い人も短い人もいることでしょう。私には、ApJとAJに発表した論文がありますが、その努力の98%はLyX上で為されました。残りの
9253 2%が、LaTeXでの後処理と若干の後片付けです。投稿の過程では何のトラブルもなく、これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう。ですか
9254 ら、がんばって発表してください!
9255 \end_layout
9256
9257 \begin_layout Section
9258 AMS LaTeX
9259 \end_layout
9260
9261 \begin_layout Standard
9262
9263 \noun on
9264 David Johnson
9265 \noun default
9266 文 
9267 \noun on
9268 Richard Heck
9269 \noun default
9270 改訂
9271 \begin_inset VSpace bigskip
9272 \end_inset
9273
9274 AMS LaTeXレイアウトは、American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです。レイアウ
9275 トは、特定の学術誌向けに仕立てられてはいませんが、簡単にそうすることができます。各学術誌毎の指示については、AMSの説明書をご参照ください(通常は、TeX出力中
9276 の一行を変更する必要があるだけです)。AMSの説明書は、ウェブWeb上の
9277 \begin_inset Flex URL
9278 status open
9279
9280 \begin_layout Plain Layout
9281
9282 http://www.ams.org
9283 \end_layout
9284
9285 \end_inset
9286
9287 か、FTPで
9288 \begin_inset Flex URL
9289 status open
9290
9291 \begin_layout Plain Layout
9292
9293 ftp://ftp.ams.org/pub/tex/amslatex/
9294 \end_layout
9295
9296 \end_inset
9297
9298 から入手することができます。これらのレイアウトは、数学的な文章を書くのであれば、どんなときでも適切かつ有用であるはずです。
9299 \end_layout
9300
9301 \begin_layout Standard
9302 基本となるAMS LaTeXレイアウトには、以下の二つがあります。
9303 \end_layout
9304
9305 \begin_layout Itemize
9306 amsart:標準のAMS article書式。
9307 \end_layout
9308
9309 \begin_layout Itemize
9310 amsbook:標準のAMS book(実際はモノグラフ)書式。
9311 \end_layout
9312
9313 \begin_layout Standard
9314 これらのレイアウトには、それ自身では、AMSクラスを使用するのに必要最低限のものしか含まれていません。特に、定理や補題などを設定するのに使用される「theore
9315 m」環境は、何一つ含まれていません。これらは、代わりに
9316 \begin_inset Flex Code
9317 status collapsed
9318
9319 \begin_layout Plain Layout
9320 定理(AMS)
9321 \end_layout
9322
9323 \end_inset
9324
9325 モジュールに収録されており、AMSクラスのいずれかを選択すると、このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ、別
9326 のものに変えたいときは取り除くこともできます)。少し使用頻度の低いものとしては、
9327 \begin_inset Flex Code
9328 status collapsed
9329
9330 \begin_layout Plain Layout
9331 定理(AMS拡張)
9332 \end_layout
9333
9334 \end_inset
9335
9336 モジュールがあり、これは手動で読み込む必要があります。
9337 \end_layout
9338
9339 \begin_layout Standard
9340 既定では、定理類は、文書を通して連番が振られますが、これは
9341 \begin_inset Flex Code
9342 status collapsed
9343
9344 \begin_layout Plain Layout
9345 定理(節毎連番)
9346 \end_layout
9347
9348 \end_inset
9349
9350 モジュールを読み込めば変更することができ、
9351 \begin_inset Flex Code
9352 status collapsed
9353
9354 \begin_layout Plain Layout
9355 book (AMS)
9356 \end_layout
9357
9358 \end_inset
9359
9360 を使用している場合には
9361 \begin_inset Flex Code
9362 status collapsed
9363
9364 \begin_layout Plain Layout
9365 定理(章毎連番)
9366 \end_layout
9367
9368 \end_inset
9369
9370 を用いても変更することができます。これらを用いると、出力は
9371 \begin_inset Formula $n.m$
9372 \end_inset
9373
9374 のようになり、最初の数字は節番号(または章番号)、次の数字はそれまで同節内(章内)に現れた出力の全数を表します。大半の環境は、連番なしでも用いることができます。
9375 連番なしのものは、環境名の後ろにアスタリスクを付けたもので表されます。連番なしの出力
9376 \emph on
9377 のみ
9378 \emph default
9379 が欲しい場合には、
9380 \begin_inset Flex Code
9381 status collapsed
9382
9383 \begin_layout Plain Layout
9384 定理(連番なし)
9385 \end_layout
9386
9387 \end_inset
9388
9389 モジュールを用います。
9390 \end_layout
9391
9392 \begin_layout Standard
9393 これらのモジュールは、AMSクラスで使用する
9394 \emph on
9395 必要はない
9396 \emph default
9397 ことに注意してください。
9398 \begin_inset Flex Code
9399 status collapsed
9400
9401 \begin_layout Plain Layout
9402 定理(AMS)
9403 \end_layout
9404
9405 \end_inset
9406
9407 モジュールや上述の他のモジュールは、他のクラス、たとえば
9408 \begin_inset Flex Code
9409 status collapsed
9410
9411 \begin_layout Plain Layout
9412 article
9413 \end_layout
9414
9415 \end_inset
9416
9417
9418 \begin_inset Flex Code
9419 status collapsed
9420
9421 \begin_layout Plain Layout
9422 report
9423 \end_layout
9424
9425 \end_inset
9426
9427
9428 \begin_inset Flex Code
9429 status collapsed
9430
9431 \begin_layout Plain Layout
9432 book (KOMA-script)
9433 \end_layout
9434
9435 \end_inset
9436
9437 などで問題なく使用することができます。
9438 \end_layout
9439
9440 \begin_layout Subsection
9441 これらのレイアウトが提供するもの
9442 \end_layout
9443
9444 \begin_layout Standard
9445 これらのレイアウトが提供している環境を列挙すると、長い一覧となります。AMS-LaTeXでは、実のところ、「theorem」環境の派生型を際限なく定義していくこ
9446 とが可能です。しかし、AMSは、LyXで利用可能になっている環境のみを使用することを推奨しています。
9447 \end_layout
9448
9449 \begin_layout Standard
9450 \begin_inset Flex Code
9451 status collapsed
9452
9453 \begin_layout Plain Layout
9454 article (AMS)
9455 \end_layout
9456
9457 \end_inset
9458
9459
9460 \begin_inset Flex Code
9461 status collapsed
9462
9463 \begin_layout Plain Layout
9464 book (AMS)
9465 \end_layout
9466
9467 \end_inset
9468
9469 には、------
9470 \begin_inset space ~
9471 \end_inset
9472
9473
9474 \begin_inset Flex Noun
9475 status collapsed
9476
9477 \begin_layout Plain Layout
9478
9479 \end_layout
9480
9481 \end_inset
9482
9483
9484 \begin_inset Flex Noun
9485 status collapsed
9486
9487 \begin_layout Plain Layout
9488 参考文献
9489 \end_layout
9490
9491 \end_inset
9492
9493
9494 \begin_inset Flex Noun
9495 status collapsed
9496
9497 \begin_layout Plain Layout
9498 タイトル
9499 \end_layout
9500
9501 \end_inset
9502
9503
9504 \begin_inset Flex Noun
9505 status collapsed
9506
9507 \begin_layout Plain Layout
9508 著者
9509 \end_layout
9510
9511 \end_inset
9512
9513
9514 \begin_inset Flex Noun
9515 status collapsed
9516
9517 \begin_layout Plain Layout
9518 日付
9519 \end_layout
9520
9521 \end_inset
9522
9523 のような標準環境の他に
9524 \begin_inset space ~
9525 \end_inset
9526
9527 ------
9528 \begin_inset space ~
9529 \end_inset
9530
9531 以下の環境があります。
9532 \end_layout
9533
9534 \begin_layout Description
9535 住所 これは著者の恒久的な住所です。
9536 \end_layout
9537
9538 \begin_layout Description
9539 現在の住所 住所と別に指定されているときには、著者の投稿時の仮初めの住所です。
9540 \end_layout
9541
9542 \begin_layout Description
9543 電子メール 著者の電子メールアドレス
9544 \end_layout
9545
9546 \begin_layout Description
9547 URL 著者のウェブアドレス。任意。
9548 \end_layout
9549
9550 \begin_layout Description
9551 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ。
9552 \end_layout
9553
9554 \begin_layout Description
9555 分野分類 
9556 \emph on
9557 Mathematical Reviews
9558 \emph default
9559 に説明が公表されているAMS Subject Classificationsの分類番号を指します。上述したAMSのウェブサイトでも、オンラインで見ることができま
9560 す。
9561 \end_layout
9562
9563 \begin_layout Description
9564 謝辞
9565 \end_layout
9566
9567 \begin_layout Description
9568 献呈
9569 \end_layout
9570
9571 \begin_layout Description
9572 翻訳者
9573 \end_layout
9574
9575 \begin_layout Standard
9576 以下の環境は、
9577 \begin_inset Flex Code
9578 status collapsed
9579
9580 \begin_layout Plain Layout
9581 定理
9582 \end_layout
9583
9584 \end_inset
9585
9586 モジュールと
9587 \begin_inset Flex Code
9588 status collapsed
9589
9590 \begin_layout Plain Layout
9591 定理(AMS)
9592 \end_layout
9593
9594 \end_inset
9595
9596 モジュールの両方で提供され、後者の場合には、星付き(連番なし)版と星なし(連番)版の両方が提供されます。
9597 \begin_inset Flex Code
9598 status collapsed
9599
9600 \begin_layout Plain Layout
9601 定理(連番なし)
9602 \end_layout
9603
9604 \end_inset
9605
9606 モジュールでは、同環境の星付き版だけが提供されます。
9607 \end_layout
9608
9609 \begin_layout Theorem
9610 これは、通常、得られた主要な結果を叙述するのに使用されます。
9611 \end_layout
9612
9613 \begin_layout Corollary*
9614 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います。これも主要な結果であることがあります。
9615 \end_layout
9616
9617 \begin_layout Lemma
9618 他の叙述を証明するために必要とされる、比較的小さな結果です。
9619 \end_layout
9620
9621 \begin_layout Proposition
9622 議論されている一般的な理論に(希望的には)何かを付け加えるような、主要ではない結果です。
9623 \end_layout
9624
9625 \begin_layout Conjecture
9626 正当化を与えずに述べられた叙述で、著者には証明法がわからないけれども、正しいと(少なくとも著者にとっては)思われるものです。
9627 \end_layout
9628
9629 \begin_layout Definition*
9630 これは自明でしょう。この環境のフォントは、前述の環境とは異なるフォントが使用されます。
9631 \end_layout
9632
9633 \begin_layout Problem
9634 これが何を指すかは必ずしも特定されていません。ご自分で解明してください。
9635 \end_layout
9636
9637 \begin_layout Exercise*
9638 この環境の説明を記述せよ。
9639 \end_layout
9640
9641 \begin_layout Note
9642 この環境もtheorem型、通常は重要性の低い所見に用いられます。
9643 \end_layout
9644
9645 \begin_layout Claim*
9646 より大きな結果の証明を与える途中で、しばしば用いられます。
9647 \end_layout
9648
9649 \begin_layout Case
9650 一般的に、これらはある条件の特定の場合を取り上げて、長い議論を区切るのに用いられます。
9651 \end_layout
9652
9653 \begin_layout Case
9654 ケースの連番の枠組みは、それ自身で独立していて、他の連番の叙述とは区別されます。
9655 \end_layout
9656
9657 \begin_layout Proof
9658 この環境の最後には、証了記号(通常は四角ですがスタイルによって変わります)が置かれます。この環境の中に別の環境を入れたい------たとえばケース環境など---
9659 ---場合で、証了記号は証明環境の終わりにのみ現れるようにしたい場合には、他の環境は証明環境の中に入れ子にしなくてはなりません。入れ子に関する情報については、
9660 \emph on
9661 ユーザーの手引き
9662 \emph default
9663
9664 \emph on
9665 環境を入れ子にする
9666 \emph default
9667 の節をご覧ください。
9668 \end_layout
9669
9670 \begin_layout Standard
9671 そして、以下は
9672 \begin_inset Flex Code
9673 status collapsed
9674
9675 \begin_layout Plain Layout
9676 定理(AMS拡張)
9677 \end_layout
9678
9679 \end_inset
9680
9681 で提供されるものです。
9682 \end_layout
9683
9684 \begin_layout Criterion*
9685 必要とされる条件です。
9686 \end_layout
9687
9688 \begin_layout Algorithm*
9689 使用する一般的手順です。
9690 \end_layout
9691
9692 \begin_layout Axiom*
9693 議論されている系内部で真と仮定される性質や命題です。
9694 \end_layout
9695
9696 \begin_layout Condition*
9697 議論の現在の文脈で仮定されている条件を述べるのに、よく用いられます。
9698 \end_layout
9699
9700 \begin_layout Note*
9701 注記と同様です。
9702 \end_layout
9703
9704 \begin_layout Notation*
9705 表記法の説明に用いられます。
9706 \end_layout
9707
9708 \begin_layout Summary
9709 本当に説明する必要がありますか?
9710 \end_layout
9711
9712 \begin_layout Acknowledgement*
9713 謝辞(acknowledgement)です。
9714 \end_layout
9715
9716 \begin_layout Conclusion*
9717 長い議論の終わりに時々用いられます。
9718 \end_layout
9719
9720 \begin_layout Fact
9721 命題と同様の用いられ方をしますが、だいたい長くないものに使われるようです。
9722 \end_layout
9723
9724 \begin_layout Standard
9725 さらに、AMSクラスは、AMS LaTeXパッケージとAMSフォントパッケージを自動的に提供します。これらの環境を使用するためには、お使いのシステム上で利用可能
9726 となっている必要があります。
9727 \end_layout
9728
9729 \begin_layout Section
9730 AGU各誌(
9731 \family sans
9732 aguplus)
9733 \end_layout
9734
9735 \begin_layout Standard
9736
9737 \noun on
9738 Martin Vermeer
9739 \noun default
9740
9741 \end_layout
9742
9743 \begin_layout Subsection
9744 概要
9745 \end_layout
9746
9747 \begin_layout Standard
9748 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです。AGU発行のクラスファイルおよび
9749 AGUplusの両方(これらは
9750 \begin_inset Flex URL
9751 status collapsed
9752
9753 \begin_layout Plain Layout
9754
9755 ftp://ftp.agu.org/journals/latex/journals
9756 \end_layout
9757
9758 \end_inset
9759
9760 にあります)が導入されていることが必要です。
9761 \end_layout
9762
9763 \begin_layout Subsection
9764 新しいスタイル
9765 \end_layout
9766
9767 \begin_layout Standard
9768
9769 \family sans
9770 段落
9771 \family default
9772 および
9773 \family sans
9774 段落*
9775 \family default
9776 は、定義し直されています。LyXの画面では、依然として
9777 \family sans
9778 段落
9779 \family default
9780
9781 \family sans
9782 段落*
9783 \family default
9784 と表示されますが、AGUクラスにおけるLaTeXの対応物は、
9785 \family sans
9786 Subsubsubsection
9787 \family default
9788
9789 \family sans
9790 Subsubsubsection*
9791 \family default
9792 です。
9793 \end_layout
9794
9795 \begin_layout Standard
9796 新しく定義されたスタイルには、
9797 \family sans
9798 左ヘッダ
9799 \family default
9800
9801 \family sans
9802 右ヘッダ
9803 \family default
9804
9805 \family sans
9806 受理日
9807 \family default
9808
9809 \family sans
9810 改訂
9811 \family default
9812
9813 \family sans
9814 採択日
9815 \family default
9816
9817 \family sans
9818 CCC
9819 \family default
9820
9821 \family sans
9822 論文ID
9823 \family default
9824
9825 \family sans
9826 著者住所
9827 \family default
9828
9829 \family sans
9830 廃棄用コメント
9831 \family default
9832 があります。これらは、ほとんど草稿用属性で、AGUクラス説明書で説明されています。
9833 \end_layout
9834
9835 \begin_layout Standard
9836 おそらく、これはまだ恐ろしく不完全です。
9837 \end_layout
9838
9839 \begin_layout Subsection
9840 新しいフロート
9841 \end_layout
9842
9843 \begin_layout Standard
9844
9845 \family sans
9846 平面表(Planotable
9847 \family default
9848 )と
9849 \family sans
9850 挿絵
9851 \family default
9852 (Plate)が新しいフロートです。また、
9853 \family sans
9854 表キャプション
9855 \family default
9856 も付け加えられています。
9857 \end_layout
9858
9859 \begin_layout Subsection
9860 サポートされている学術誌
9861 \end_layout
9862
9863 \begin_layout Itemize
9864
9865 \emph on
9866 Journal of Geophysical Research
9867 \emph default
9868
9869 \family typewriter
9870 jgrga.layout
9871 \family default
9872  --- Martin Vermeer
9873 \end_layout
9874
9875 \begin_layout Standard
9876 ここにあなたの作ったものを加えてください。難しくはありません。
9877 \family typewriter
9878 jgrga.layout
9879 \family default
9880 と 
9881 \family typewriter
9882 aguplus.inc
9883 \family default
9884 を用例として見てください。
9885 \end_layout
9886
9887 \begin_layout Subsection
9888 バグと注意すべきこと
9889 \end_layout
9890
9891 \begin_layout Standard
9892 新しいレイアウトを使うためには、新規文書の作成時に以下の手順を行う必要があります。
9893 \end_layout
9894
9895 \begin_layout Enumerate
9896
9897 \emph on
9898 babelを無効にしてください。
9899 \emph default
9900 これは、
9901 \family sans
9902 ツール\SpecialChar \menuseparator
9903 設定
9904 \family default
9905 メニュー項目で行うことができます(AGUの論文は常に英語ですよね。ですから他の言語は
9906 \emph on
9907 選ばないで下さい
9908 \emph default
9909 )。
9910 \end_layout
9911
9912 \begin_layout Enumerate
9913 使用文書の追加オプションフィールドに
9914 \family typewriter
9915 jgrga
9916 \family default
9917 と入力してください(すみません、これはバグです)。
9918 \end_layout
9919
9920 \begin_layout Enumerate
9921 BibTeX差込枠の2番目のフィールドに
9922 \family sans
9923 agu
9924 \family default
9925 と入力して、参考文献のスタイルに
9926 \family typewriter
9927 agu.bst
9928 \family default
9929 を使用していることを確認してください。標準スタイルはうまく動作しません。
9930 \end_layout
9931
9932 \begin_layout Section
9933 Broadway
9934 \end_layout
9935
9936 \begin_layout Standard
9937
9938 \noun on
9939 Garst Reese
9940 \noun default
9941
9942 \end_layout
9943
9944 \begin_layout Subsection
9945 はじめに
9946 \end_layout
9947
9948 \begin_layout Standard
9949 Broadwayは演劇を書くためのものです。書式はHollywoodよりも装飾的で、それほど標準化されていません。この書式はワークショップに向いているでしょう。
9950 \end_layout
9951
9952 \begin_layout Subsection
9953 特別な問題
9954 \end_layout
9955
9956 \begin_layout Standard
9957 Hollywoodと同様です。
9958 \end_layout
9959
9960 \begin_layout Subsection
9961 特別の機能
9962 \end_layout
9963
9964 \begin_layout Standard
9965
9966 \family sans
9967 話者
9968 \family default
9969 の名前をラベルとして挿入し、名前を挿入する際には、このラベルを相互参照してください。相互参照ダイアログには、登場人物の現在の配役が表示されます。
9970 \end_layout
9971
9972 \begin_layout Subsection
9973 用紙寸法と余白
9974 \end_layout
9975
9976 \begin_layout Standard
9977 USレター寸法で、余白は左1.6インチ、右0.75インチ、上0.5インチ、下0.75インチです。
9978 \end_layout
9979
9980 \begin_layout Subsection
9981 環境
9982 \end_layout
9983
9984 \begin_layout Standard
9985 以下の環境を使うことができます。右に記してあるキー割当ては、broadway.bindを使った場合のものです。
9986 \end_layout
9987
9988 \begin_layout Itemize
9989
9990 \family sans
9991 標準
9992 \begin_inset Newline newline
9993 \end_inset
9994
9995
9996 \family default
9997 これは使わなくていいはずですが、他の環境が当てはまらない場合のためにここに挙げておきます。
9998 \end_layout
9999
10000 \begin_layout Itemize
10001
10002 \family sans
10003 ト書き
10004 \begin_inset space \hfill{}
10005 \end_inset
10006
10007 M-z n
10008 \begin_inset Newline newline
10009 \end_inset
10010
10011
10012 \family default
10013 舞台設定と動作の説明に用います。最初に話者名をすべて大文字で書いておきます。
10014 \end_layout
10015
10016 \begin_layout Itemize
10017
10018 \family sans
10019
10020 \begin_inset space \hfill{}
10021 \end_inset
10022
10023 M-z a
10024 \begin_inset Newline newline
10025 \end_inset
10026
10027
10028 \family default
10029 自動的に連番が振られます。連番は、画面上ではアラビア数字ですが、出力ではローマ数字です。
10030 \end_layout
10031
10032 \begin_layout Itemize
10033
10034 \family sans
10035 幕*
10036 \begin_inset space \hfill{}
10037 \end_inset
10038
10039 M-z S at
10040 \begin_inset Newline newline
10041 \end_inset
10042
10043
10044 \family default
10045 幕の副題です。単に中央揃えの文になります。
10046 \end_layout
10047
10048 \begin_layout Itemize
10049
10050 \family sans
10051 場面
10052 \begin_inset space \hfill{}
10053 \end_inset
10054
10055 M-z S-S
10056 \begin_inset Newline newline
10057 \end_inset
10058
10059
10060 \family default
10061 自動的に連番は振られませんので、手動で番号を付けてください。これは私がどうすればいいか分からなかったためです。
10062 \end_layout
10063
10064 \begin_layout Itemize
10065
10066 \family sans
10067 幕開きに:
10068 \begin_inset space \hfill{}
10069 \end_inset
10070
10071 M-z S-R
10072 \begin_inset Newline newline
10073 \end_inset
10074
10075
10076 \family default
10077 ト書きの特殊な場合で、カーテンが上がるときの舞台設定と動作を説明します。
10078 \end_layout
10079
10080 \begin_layout Itemize
10081
10082 \family sans
10083 話者
10084 \begin_inset space \hfill{}
10085 \end_inset
10086
10087 M-z s
10088 \begin_inset Newline newline
10089 \end_inset
10090
10091
10092 \family default
10093 話者(役者)の配役です。すべて大文字で中央揃えに置かれます。
10094 \end_layout
10095
10096 \begin_layout Itemize
10097
10098 \family sans
10099 括弧付き
10100 \begin_inset space \hfill{}
10101 \end_inset
10102
10103 M-z p
10104 \begin_inset Newline newline
10105 \end_inset
10106
10107
10108 \family default
10109 話者への指示です。括弧は自動的に挿入されます。画面上には左括弧(のみが表示されますが、印字出力には両方の括弧が表示されます。この環境は、
10110 \family sans
10111 対話
10112 \family default
10113 の中だけで使用されます。 
10114 \end_layout
10115
10116 \begin_layout Itemize
10117
10118 \family sans
10119 対話
10120 \begin_inset space \hfill{}
10121 \end_inset
10122
10123 M-z d
10124 \begin_inset Newline newline
10125 \end_inset
10126
10127
10128 \family default
10129 話者の言う内容。
10130 \end_layout
10131
10132 \begin_layout Itemize
10133
10134 \family sans
10135 幕切れ
10136 \begin_inset space \hfill{}
10137 \end_inset
10138
10139 M-z S-C
10140 \begin_inset Newline newline
10141 \end_inset
10142
10143
10144 \family default
10145 幕が降ります。
10146 \end_layout
10147
10148 \begin_layout Itemize
10149
10150 \family sans
10151 タイトル
10152 \begin_inset space \hfill{}
10153 \end_inset
10154
10155 M-z S-T
10156 \end_layout
10157
10158 \begin_layout Itemize
10159
10160 \family sans
10161 著者
10162 \begin_inset space \hfill{}
10163 \end_inset
10164
10165 M-z S-A
10166 \end_layout
10167
10168 \begin_layout Itemize
10169
10170 \family sans
10171 右寄せ住所
10172 \begin_inset space \hfill{}
10173 \end_inset
10174
10175 M-z r
10176 \end_layout
10177
10178 \begin_layout Section
10179 Dinbrief
10180 \end_layout
10181
10182 \begin_layout Standard
10183 文書クラス
10184 \family sans
10185 dinbrief
10186 \family default
10187 は、ドイツの慣習に則った書簡の組版を行うのに用いられます。ひな型ファイルが
10188 \family typewriter
10189 .../lyx/share/templates
10190 \family default
10191 にあるので、それを土台として使用してください。
10192 \end_layout
10193
10194 \begin_layout Section
10195 EGS各誌
10196 \family sans
10197 (egs)
10198 \end_layout
10199
10200 \begin_layout Standard
10201
10202 \noun on
10203 Martin Vermeer
10204 \noun default
10205
10206 \end_layout
10207
10208 \begin_layout Subsection
10209 概要
10210 \end_layout
10211
10212 \begin_layout Standard
10213 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです。必要とされる
10214 \family typewriter
10215 egs.cls
10216 \family default
10217 は、EGSのウェブサイト
10218 \begin_inset Flex URL
10219 status collapsed
10220
10221 \begin_layout Plain Layout
10222
10223 http://www.copernicus.org/
10224 \end_layout
10225
10226 \end_inset
10227
10228 からダウンロードできます。
10229 \end_layout
10230
10231 \begin_layout Subsection
10232 新しいスタイル
10233 \end_layout
10234
10235 \begin_layout Standard
10236 新しいスタイルとして、
10237 \family sans
10238 右寄せ住所
10239 \family default
10240
10241 \family sans
10242 LaTeXタイトル
10243 \family default
10244
10245 \family sans
10246 所属
10247 \family default
10248
10249 \family sans
10250 学術誌名
10251 \family default
10252
10253 \family sans
10254 原稿番号
10255 \family default
10256
10257 \family sans
10258 筆頭著者
10259 \family default
10260
10261 \family sans
10262 受理日
10263 \family default
10264
10265 \family sans
10266 採択日
10267 \family default
10268
10269 \family sans
10270 オフセット
10271 \family default
10272 があります。現在のレイアウトファイルは、残念ながらほとんどモジュール化されておらず、さまざまな
10273 \family typewriter
10274 std*.inc
10275 \family default
10276 ファイルを読み込む形に変えた方が便利になると思われます。
10277 \end_layout
10278
10279 \begin_layout Section
10280 Elsevier各誌
10281 \end_layout
10282
10283 \begin_layout Standard
10284
10285 \lang english
10286 See the LyX template file 
10287 \family typewriter
10288 elsarticle.lyx
10289 \family default
10290 .
10291  It contains all infos you need.
10292 \end_layout
10293
10294 \begin_layout Section
10295 Foils(別名FoilTeX)
10296 \begin_inset CommandInset label
10297 LatexCommand label
10298 name "sec:foiltex"
10299
10300 \end_inset
10301
10302
10303 \end_layout
10304
10305 \begin_layout Standard
10306
10307 \noun on
10308 Allan Rae
10309 \noun default
10310
10311 \end_layout
10312
10313 \begin_layout Subsection
10314 はじめに
10315 \end_layout
10316
10317 \begin_layout Standard
10318 本節では、プレゼンテーション用のスライドを作るための、LyXの使用法を解説します。スライドを作ることのできる文書クラスには、slides・FoilTeX・sem
10319 inar・beamer・powerdotといったクラスがありますが、本節では、そのうちslidesの解説を行います。
10320 \end_layout
10321
10322 \begin_layout Standard
10323 誤解のないように、わかりやすく明確に、もう一度言っておきます。
10324 \end_layout
10325
10326 \begin_layout Standard
10327 \begin_inset VSpace bigskip
10328 \end_inset
10329
10330
10331 \end_layout
10332
10333 \begin_layout Standard
10334 \align center
10335
10336 \size large
10337 本節は「
10338 \family sans
10339 presentation (FoilT
10340 \size default
10341
10342 \begin_inset ERT
10343 status collapsed
10344
10345 \begin_layout Plain Layout
10346
10347 {}
10348 \end_layout
10349
10350 \end_inset
10351
10352
10353 \size large
10354 eX)
10355 \family default
10356 」クラス
10357 \emph on
10358 のみの
10359 \emph default
10360 解説を行います。
10361 \end_layout
10362
10363 \begin_layout Standard
10364 \begin_inset VSpace bigskip
10365 \end_inset
10366
10367
10368 \end_layout
10369
10370 \begin_layout Standard
10371
10372 \family sans
10373 transparencies (slides)
10374 \family default
10375 」の解説をお探しであれば、第
10376 \begin_inset CommandInset ref
10377 LatexCommand ref
10378 reference "sec:slitex"
10379
10380 \end_inset
10381
10382 節をご覧ください。お使いのコンピュータに
10383 \family sans
10384 foils
10385 \family default
10386 クラス(
10387 \family sans
10388 presentation (FoilT
10389 \begin_inset ERT
10390 status collapsed
10391
10392 \begin_layout Plain Layout
10393
10394 {}
10395 \end_layout
10396
10397 \end_inset
10398
10399 eX)
10400 \family default
10401 )が導入されていなければ、
10402 \family sans
10403 foils
10404 \family default
10405 ほど良くはありませんが、おそらく
10406 \family sans
10407 slides
10408 \family default
10409 クラスを使わざるをえないでしょう。
10410 \end_layout
10411
10412 \begin_layout Standard
10413
10414 \family sans
10415 foils
10416 \family default
10417 クラスは、LaTeX2eの一部として含まれているLaTeXクラスファイル
10418 \family sans
10419 foils.cls
10420 \family default
10421 の第2.1版とともに使われるように設計されています。
10422 \end_layout
10423
10424 \begin_layout Subsection
10425 最初の一歩
10426 \end_layout
10427
10428 \begin_layout Standard
10429 いうまでもなく、この文書クラスを使うには、
10430 \family sans
10431 文書\SpecialChar \menuseparator
10432 設定\SpecialChar \menuseparator
10433 文書クラス
10434 \family default
10435 メニューの
10436 \family sans
10437 文書クラス
10438 \family default
10439 ドロップダウンで「
10440 \family sans
10441 presentation (FoilT
10442 \begin_inset ERT
10443 status collapsed
10444
10445 \begin_layout Plain Layout
10446
10447 {}
10448 \end_layout
10449
10450 \end_inset
10451
10452 eX)
10453 \family default
10454 」を選択する必要があります。また、
10455 \family sans
10456 文書設定
10457 \family default
10458 ダイアログ中には、以下のように、このクラスに特有の設定がいくつかあることを知っておかなくてはなりません。
10459 \end_layout
10460
10461 \begin_layout Itemize
10462
10463 \family sans
10464 文書設定
10465 \family default
10466 ダイアログ中の、
10467 \family sans
10468 両面文書
10469 \family default
10470 オプションと
10471 \family sans
10472 二段組文書
10473 \family default
10474 オプションは変更しないでください。これらは 
10475 \family sans
10476 foils
10477 \family default
10478 クラスでは無視されます。
10479 \end_layout
10480
10481 \begin_layout Itemize
10482 既定のフォント寸法は20ptであり、17pt・25pt・30ptを選択することも可能です。
10483 \end_layout
10484
10485 \begin_layout Itemize
10486 既定のフォントは
10487 \family sans
10488 sans
10489 \family default
10490  
10491 \family sans
10492 serif
10493 \family default
10494 ですが、数式ではすべて、通常のローマン体が使用されます。
10495 \end_layout
10496
10497 \begin_layout Itemize
10498 FoilTeXは、35
10499 \begin_inset space \thinspace{}
10500 \end_inset
10501
10502 mmスライド用の特殊寸法の他、A4とレター大の用紙寸法をサポートします。A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません。
10503 \end_layout
10504
10505 \begin_layout Itemize
10506
10507 \family sans
10508 フロートの配置
10509 \family default
10510 の設定は無視されますので、わざわざ変更する必要はありません。フロートはすべて、本文中で定義された位置に表示されます。
10511 \end_layout
10512
10513 \begin_layout Itemize
10514 このクラスの
10515 \family sans
10516 ページレイアウト
10517 \family default
10518 の設定は、若干異なった挙動を示します。FoilTeXでは、ユーザ定義のロゴをはじめ、フッタとへッダに広範な設定ができます。詳細については第
10519 \begin_inset CommandInset ref
10520 LatexCommand ref
10521 reference "sec:foilfoot"
10522
10523 \end_inset
10524
10525 節をご覧ください。タイトルページは、文書中の他のページとは異なった取扱がなされ、ページ番号は
10526 \emph on
10527 つねに
10528 \emph default
10529 付けられず、(ロゴが定義されていれば)ロゴは、
10530 \emph on
10531 つねに
10532 \emph default
10533 ページ下部中央に表示されます。使用できるページ様式とその挙動は、以下の通りです。
10534 \end_layout
10535
10536 \begin_deeper
10537 \begin_layout Labeling
10538 \labelwidthstring MMMMMMM
10539
10540 \family sans
10541 \series bold
10542 empty
10543 \family default
10544 \series default
10545  最終出力には、ページ番号をはじめ、へッダ・フッタが出力されません(もちろん脚注は除きます)。
10546 \end_layout
10547
10548 \begin_layout Labeling
10549 \labelwidthstring MMMMMMM
10550
10551 \family sans
10552 \series bold
10553 plain
10554 \family default
10555 \series default
10556  最終出力には、ページ番号がページ下部の中央に出力されますが、他のへッダ・フッタは出力されません(脚注除く)。
10557 \end_layout
10558
10559 \begin_layout Labeling
10560 \labelwidthstring MMMMMMM
10561
10562 \series bold
10563 foilheadings
10564 \series default
10565  ページ番号が右下隅に出力されます。追記したへッダ・フッタも出力されます。これが既定値です。
10566 \end_layout
10567
10568 \begin_layout Labeling
10569 \labelwidthstring MMMMMMM
10570
10571 \series bold
10572 fancy
10573 \series default
10574  これは
10575 \family sans
10576 fancyheadings
10577 \family default
10578 パッケージを使えるようにします。ただし、FoilTeXパッケージの作者は、ページレイアウトが崩れる可能性があるので、これを使用することは勧めないと言及しています
10579
10580 \end_layout
10581
10582 \end_deeper
10583 \begin_layout Subsubsection
10584 任意設定クラスオプション
10585 \end_layout
10586
10587 \begin_layout Standard
10588 以下のオプションは
10589 \family sans
10590 文書設定
10591 \family default
10592 ダイアログの任意設定クラスオプションボックスで使うことができます。
10593 \end_layout
10594
10595 \begin_layout Labeling
10596 \labelwidthstring MMMMMMx
10597
10598 \series bold
10599 35mmSlide
10600 \series default
10601  これは、ページレイアウトを縦7.33インチ横11インチに設定します。これは35
10602 \begin_inset space \space{}
10603 \end_inset
10604
10605 mmスライドの縦横比にほぼ等しく、このメディアを作る作業が若干易しくなります。
10606 \end_layout
10607
10608 \begin_layout Labeling
10609 \labelwidthstring MMMMMMx
10610
10611 \series bold
10612 headrule
10613 \series default
10614  タイトルページを除くすべてのページのへッダの下に罫線を入れます。
10615 \end_layout
10616
10617 \begin_layout Labeling
10618 \labelwidthstring MMMMMMx
10619
10620 \series bold
10621 footrule
10622 \series default
10623  タイトルページを除くすべてのページのフッタの上に罫線を入れます。
10624 \end_layout
10625
10626 \begin_layout Labeling
10627 \labelwidthstring MMMMMMx
10628
10629 \series bold
10630 dvips
10631 \series default
10632  これは、新規
10633 \family sans
10634 foils
10635 \family default
10636 文書を作成する度に自動的に設定されます。このオプションは、横向きに設定されたページを回転させるのに、dvipsドライバを使うようFoilTeXに指示します。
10637 \end_layout
10638
10639 \begin_layout Labeling
10640 \labelwidthstring MMMMMMx
10641
10642 \series bold
10643 landscape
10644 \series default
10645  このオプションは、用紙寸法を横向きページ大に変更するだけで、回転は行いません。したがって、このオプションを使う場合は、各ページを回転させる外部プログラムを使用
10646 する、プリンタに用紙を横向きに給紙する必要があります。また、このオプションは、
10647 \family sans
10648 Foilhead
10649 \family default
10650 環境と
10651 \family sans
10652 Rotatefoilhead
10653 \family default
10654 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します)。
10655 \end_layout
10656
10657 \begin_layout Labeling
10658 \labelwidthstring MMMMMMx
10659
10660 \series bold
10661 leqno
10662 \series default
10663  数式番号を左側に付けます。
10664 \end_layout
10665
10666 \begin_layout Labeling
10667 \labelwidthstring MMMMMMx
10668
10669 \series bold
10670 fleqn
10671 \series default
10672  数式を左揃えにします。
10673 \end_layout
10674
10675 \begin_layout Subsection
10676 サポートされる環境
10677 \end_layout
10678
10679 \begin_layout Standard
10680 他のクラスで標準的にサポートされている環境は、
10681 \family sans
10682 foils
10683 \family default
10684 クラスでもサポートされています。それ以外に、FoilTeXが提供している環境と、LyXが付け加えた環境があります。以下の環境は、他のクラスと共通の環境です。
10685 \end_layout
10686
10687 \begin_layout Standard
10688 \begin_inset ERT
10689 status open
10690
10691 \begin_layout Plain Layout
10692
10693
10694 \backslash
10695 begin{multicols}{2}
10696 \end_layout
10697
10698 \end_inset
10699
10700
10701 \end_layout
10702
10703 \begin_layout Itemize
10704
10705 \family sans
10706 標準
10707 \end_layout
10708
10709 \begin_layout Itemize
10710
10711 \family sans
10712 箇条書き(記号)
10713 \end_layout
10714
10715 \begin_layout Itemize
10716
10717 \family sans
10718 箇条書き(連番)
10719 \end_layout
10720
10721 \begin_layout Itemize
10722
10723 \family sans
10724 箇条書き(記述)
10725 \end_layout
10726
10727 \begin_layout Itemize
10728
10729 \family sans
10730 箇条書き(リスト)
10731 \end_layout
10732
10733 \begin_layout Itemize
10734
10735 \family sans
10736 LyXコード
10737 \end_layout
10738
10739 \begin_layout Itemize
10740
10741 \family sans
10742 詩句
10743 \end_layout
10744
10745 \begin_layout Itemize
10746
10747 \family sans
10748 引用(字下げあり)
10749 \end_layout
10750
10751 \begin_layout Itemize
10752
10753 \family sans
10754 引用(字下げなし)
10755 \end_layout
10756
10757 \begin_layout Itemize
10758
10759 \family sans
10760 タイトル
10761 \end_layout
10762
10763 \begin_layout Itemize
10764
10765 \family sans
10766 著者
10767 \end_layout
10768
10769 \begin_layout Itemize
10770
10771 \family sans
10772 日付
10773 \end_layout
10774
10775 \begin_layout Itemize
10776
10777 \family sans
10778 概要
10779 \end_layout
10780
10781 \begin_layout Itemize
10782
10783 \family sans
10784 参考文献
10785 \end_layout
10786
10787 \begin_layout Itemize
10788
10789 \family sans
10790 住所
10791 \end_layout
10792
10793 \begin_layout Itemize
10794
10795 \family sans
10796 右寄せ住所
10797 \end_layout
10798
10799 \begin_layout Itemize
10800
10801 \family sans
10802 キャプション
10803 \end_layout
10804
10805 \begin_layout Itemize
10806
10807 \family sans
10808 コメント
10809 \end_layout
10810
10811 \begin_layout Standard
10812 \begin_inset ERT
10813 status open
10814
10815 \begin_layout Plain Layout
10816
10817
10818 \backslash
10819 end{multicols}
10820 \end_layout
10821
10822 \end_inset
10823
10824
10825 \end_layout
10826
10827 \begin_layout Standard
10828 つまり、節区切りを除けば、主な環境のすべてです。一枚のスライドは、基本的にタイトルと本文を備えた自己完結した節なので、
10829 \family sans
10830 Foil
10831 \family default
10832 TeXは新しいスライドを始める以下のようなコマンドを備えています。
10833 \end_layout
10834
10835 \begin_layout Itemize
10836
10837 \family sans
10838 スライドタイトル(Foilhead)
10839 \end_layout
10840
10841 \begin_layout Itemize
10842
10843 \family sans
10844 横置きスライドタイトル(Rotatefoilhead)
10845 \end_layout
10846
10847 \begin_layout Standard
10848 LyXは、以下のような、これらを若干修正した環境も用意しています。
10849 \end_layout
10850
10851 \begin_layout Itemize
10852
10853 \family sans
10854 スライドタイトル(小)(ShortFoilhead)
10855 \end_layout
10856
10857 \begin_layout Itemize
10858
10859 \family sans
10860 横置きスライドタイトル(小)(ShortRotatefoilhead)
10861 \end_layout
10862
10863 \begin_layout Standard
10864 これらの違いは次節で説明します。
10865 \end_layout
10866
10867 \begin_layout Standard
10868 スライドは、アイデアを説明したり、新しい定理を説明したりするのにしばしば使われるので、
10869 \family sans
10870 Foil
10871 \family default
10872 TeXはそれらを説明するのに便利な環境を幅広く用意しています。
10873 \end_layout
10874
10875 \begin_layout Standard
10876 \begin_inset ERT
10877 status open
10878
10879 \begin_layout Plain Layout
10880
10881
10882 \backslash
10883 begin{multicols}{2}
10884 \end_layout
10885
10886 \end_inset
10887
10888
10889 \end_layout
10890
10891 \begin_layout Itemize
10892
10893 \family sans
10894 定理
10895 \end_layout
10896
10897 \begin_layout Itemize
10898
10899 \family sans
10900 補題
10901 \end_layout
10902
10903 \begin_layout Itemize
10904
10905 \family sans
10906
10907 \end_layout
10908
10909 \begin_layout Itemize
10910
10911 \family sans
10912 命題
10913 \end_layout
10914
10915 \begin_layout Itemize
10916
10917 \family sans
10918 定義
10919 \end_layout
10920
10921 \begin_layout Itemize
10922
10923 \family sans
10924 証明
10925 \end_layout
10926
10927 \begin_layout Itemize
10928
10929 \family sans
10930 定理*
10931 \end_layout
10932
10933 \begin_layout Itemize
10934
10935 \family sans
10936 補題*
10937 \end_layout
10938
10939 \begin_layout Itemize
10940
10941 \family sans
10942 系*
10943 \end_layout
10944
10945 \begin_layout Itemize
10946
10947 \family sans
10948 命題*
10949 \end_layout
10950
10951 \begin_layout Itemize
10952
10953 \family sans
10954 定義*
10955 \end_layout
10956
10957 \begin_layout Standard
10958 \begin_inset ERT
10959 status open
10960
10961 \begin_layout Plain Layout
10962
10963
10964 \backslash
10965 end{multicols}
10966 \end_layout
10967
10968 \end_inset
10969
10970
10971 \end_layout
10972
10973 \begin_layout Standard
10974 星付き版は連番が振られず、星なし版は連番が振られます。他に、LyXで追加された以下の2つの箇条書き環境があります。
10975 \end_layout
10976
10977 \begin_layout Itemize
10978
10979 \family sans
10980 箇条書き(チック)
10981 \end_layout
10982
10983 \begin_layout Itemize
10984
10985 \family sans
10986 箇条書き(クロス)
10987 \end_layout
10988
10989 \begin_layout Standard
10990 FoilTeXには、強力なヘッダ機能とフッタ機能があり、これらはプリアンブルで設定するのが最良ですが、文章中のどこでも設定することができます。もし文書中でこれら
10991 の設定を変更したい場合には、スライドの一番上、foilheadの直後で行うのが良いでしょう。
10992 \end_layout
10993
10994 \begin_layout Standard
10995 この目的のためには、以下のコマンドスタイルがあります(
10996 \shape smallcaps
10997 Martin Vermeer)。
10998 \end_layout
10999
11000 \begin_layout Standard
11001 \begin_inset ERT
11002 status open
11003
11004 \begin_layout Plain Layout
11005
11006
11007 \backslash
11008 begin{multicols}{2}
11009 \end_layout
11010
11011 \end_inset
11012
11013
11014 \end_layout
11015
11016 \begin_layout Itemize
11017
11018 \family sans
11019 グラフィックスロゴ
11020 \end_layout
11021
11022 \begin_layout Itemize
11023
11024 \family sans
11025 配布制限
11026 \end_layout
11027
11028 \begin_layout Itemize
11029
11030 \family sans
11031 右フッタ
11032 \end_layout
11033
11034 \begin_layout Itemize
11035
11036 \family sans
11037 右ヘッダ
11038 \end_layout
11039
11040 \begin_layout Itemize
11041
11042 \family sans
11043 左ヘッダ
11044 \end_layout
11045
11046 \begin_deeper
11047 \begin_layout Standard
11048 \begin_inset space ~
11049 \end_inset
11050
11051
11052 \end_layout
11053
11054 \end_deeper
11055 \begin_layout Standard
11056 \begin_inset ERT
11057 status open
11058
11059 \begin_layout Plain Layout
11060
11061
11062 \backslash
11063 end{multicols}
11064 \end_layout
11065
11066 \end_inset
11067
11068
11069 \end_layout
11070
11071 \begin_layout Standard
11072 FoilTeXが提供しているコマンドで、LyXが直接サポートしていないコマンドもありますが、これらの説明と使い方については、第
11073 \begin_inset CommandInset ref
11074 LatexCommand ref
11075 reference "sec:unsuppfoils"
11076
11077 \end_inset
11078
11079 節で行います。
11080 \end_layout
11081
11082 \begin_layout Subsection
11083 スライドの組を作る
11084 \end_layout
11085
11086 \begin_layout Standard
11087 この節は、様々な環境を使ってスライドの組を作る方法を簡単に紹介します。スライド組の例をご覧になりたい場合は、LyXの
11088 \family typewriter
11089 examples
11090 \family default
11091 フォルダにある
11092 \family typewriter
11093 Foils.lyx
11094 \family default
11095 ファイルをご覧ください。
11096 \end_layout
11097
11098 \begin_layout Subsubsection
11099 タイトルページを作る
11100 \end_layout
11101
11102 \begin_layout Standard
11103
11104 \family sans
11105 タイトル
11106 \family default
11107
11108 \family sans
11109 著者
11110 \family default
11111
11112 \family sans
11113 日付
11114 \family default
11115
11116 \family sans
11117 概要
11118 \family default
11119 環境のある他のクラスとは異なり、
11120 \family sans
11121 foils
11122 \family default
11123 は独立したページにタイトルを作成します。
11124 \family sans
11125 日付
11126 \family default
11127 環境を使用しなかった場合には、LaTeXは(出力を生成し直したときにはいつも)その時点の日付を挿入します。
11128 \end_layout
11129
11130 \begin_layout Subsubsection
11131 新しいスライドを開始する
11132 \end_layout
11133
11134 \begin_layout Standard
11135 前述のように、新しいスライドを開始するには、4つの方法があります。縦向きのスライドを開始するには、
11136 \family sans
11137 スライドタイトル(Foilhead)
11138 \family default
11139
11140 \family sans
11141 スライドタイトル(小)(ShortFoilhead)
11142 \family default
11143 を使用します。両環境の違いは、スライドタイトル(foilhead)とスライド本文の間の余白の違いです。
11144 \end_layout
11145
11146 \begin_layout Standard
11147 横向きのスライドは、
11148 \family sans
11149 横向きスライドタイトル(Rotatefoilhead)
11150 \family default
11151 か横向きスライドタイトル(小)(
11152 \family sans
11153 ShortRotatefoilhead)
11154 \family default
11155 環境を使用して生成します。ここでも両環境の違いは、タイトルと本文の間の余白のみです。どちらの場合も、(小)と記された版は、タイトルと本文の間の余白が、0.5インチ
11156 (約1.27cm)小さくなります。
11157 \end_layout
11158
11159 \begin_layout Standard
11160 横向きのスライドをサポートする際、一つ問題となるのは、スライドを回転させようと思うと、PostScript出力を生成するのに
11161 \family typewriter
11162 dvips
11163 \family default
11164 ドライバを使用することを要求してしまうことです。もしスライドをプリンタに横に給紙することができれば、
11165 \family typewriter
11166 dvips
11167 \family default
11168 ドライバを持っていなくても、横向きのスライドをつくることができます ;-)
11169 \end_layout
11170
11171 \begin_layout Subsubsection
11172 定理・補題・証明など
11173 \end_layout
11174
11175 \begin_layout Standard
11176 LyX中の小さなバグによって、これらの環境の同じ型をお互いに直接続けて置くことはできません。これらは何かによって分離されなくてはなりません。仮に二つ続けて置いて
11177 も、2つの環境をマージしたかのように、前の環境が延長されるだけです。この問題を回避するにはどうすればよいのでしょうか。最も簡単な方法は、二つの環境の間に何か文章
11178 を置くか、あるいは二つの間に「
11179 \family typewriter
11180 %
11181 \family default
11182 」だけから成るLaTeX環境を置くことです。これによって、LyXは2つの別々の環境を生成するように強制され、正しいLaTeX出力を得ることができます。LyX頒布
11183 版に含まれる用例ファイルに例があります。この問題は、二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください。
11184 \end_layout
11185
11186 \begin_layout Subsubsection
11187 箇条書き
11188 \end_layout
11189
11190 \begin_layout Standard
11191 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて、二つの新しい様式を使用することができます。ここでは、その新しい様式のみを説明することにします。
11192 他の箇条書き環境について詳しく知りたい場合には、
11193 \emph on
11194 ユーザーの手引き
11195 \emph default
11196 をご覧ください。記号による箇条書きを使用したい場合には、上記第
11197 \begin_inset CommandInset ref
11198 LatexCommand ref
11199 reference "sec:ブリット"
11200
11201 \end_inset
11202
11203 節の
11204 \family sans
11205 箇条書き(記号)ブリットの指定
11206 \family default
11207 の節も、読まれることが望ましいでしょう。
11208 \end_layout
11209
11210 \begin_layout Standard
11211
11212 \family sans
11213 箇条書き(チック)
11214 \family default
11215
11216 \family sans
11217 箇条書き(クロス)
11218 \family default
11219 の二つの新しい様式は、チェック印や×印を箇条書きのラベルに使用する専用の環境を提供することで、予定一覧や正誤一覧を作りやすくするように設計されたものです。これら
11220 の箇条書きは、
11221 \family sans
11222 箇条書き(記号)
11223 \family default
11224 の派生型を専用に用意したものに過ぎません。ただし、これらは、
11225 \family typewriter
11226 psnfss
11227 \family default
11228 パッケージが導入済であることを要求します。
11229 \end_layout
11230
11231 \begin_layout Subsubsection
11232 図と表
11233 \end_layout
11234
11235 \begin_layout Standard
11236 FoilTeXでは、図表フロートは、本文中の挿入箇所にこれらが正確に表示されるように再定義されており、ページの上部やユーザー指定場所に押しのけたりはしないように
11237 なっています。たとえフロート配置の設定に変更を加えたとしても、単に無視されます。
11238 \end_layout
11239
11240 \begin_layout Subsubsection
11241 ページヘッダおよびページフッタ
11242 \begin_inset CommandInset label
11243 LatexCommand label
11244 name "sec:foilfoot"
11245
11246 \end_inset
11247
11248
11249 \end_layout
11250
11251 \begin_layout Standard
11252
11253 \family sans
11254 グラフィックスロゴ
11255 \family default
11256
11257 \family sans
11258 配布制限
11259 \family default
11260 の二つは、左フッタ文を制御するものです。前者は、グラフィックスのロゴをスライドに入れるためのもので、既定値は「-Typeset by 
11261 \family sans
11262 Foil
11263 \family default
11264 TeX-」となっています。後者は、「機密事項」などのように、聴衆に秘密区分を提示することを意図しています。既定値では、何も設定されていません。
11265 \end_layout
11266
11267 \begin_layout Standard
11268 スライドの残り三隅には、
11269 \family sans
11270 右フッタ
11271 \family default
11272 (既定ではページ番号)・
11273 \family sans
11274 右ヘッダ
11275 \family default
11276 (右上)・
11277 \family sans
11278 左ヘッダ
11279 \family default
11280 (左上)を使って文字を入れることができます。
11281 \end_layout
11282
11283 \begin_layout Subsection
11284 サポートされない 
11285 \family sans
11286 Foil
11287 \family default
11288 TeX機能
11289 \begin_inset CommandInset label
11290 LatexCommand label
11291 name "sec:unsuppfoils"
11292
11293 \end_inset
11294
11295
11296 \end_layout
11297
11298 \begin_layout Standard
11299 以下で言及されているコマンドは、
11300 \family sans
11301 LaTeX
11302 \family default
11303 環境内で設定されるか、他の環境中の
11304 \family sans
11305 TeXコード
11306 \family default
11307 として設定される必要があります。
11308 \end_layout
11309
11310 \begin_layout Subsubsection
11311 長さ
11312 \end_layout
11313
11314 \begin_layout Standard
11315 長さは、すべて
11316 \family typewriter
11317
11318 \backslash
11319 setlength{
11320 \family default
11321 \emph on
11322 長さ名
11323 \family typewriter
11324 \emph default
11325 }{
11326 \family default
11327 \emph on
11328 新規長さ
11329 \family typewriter
11330 \emph default
11331 }
11332 \family default
11333 コマンドで調節されます。ここで
11334 \emph on
11335 長さ名
11336 \emph default
11337 は、変更したい長さに付けられている名前で置き換え、
11338 \emph on
11339 新規長さ
11340 \emph default
11341 は、その長さの値で置き換えます。長さはすべて、インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か、
11342 \family typewriter
11343
11344 \backslash
11345 textwidth
11346 \family default
11347 のように文書比あるいはフォント基準の長さで指定する必要があります。
11348 \end_layout
11349
11350 \begin_layout Standard
11351
11352 \family typewriter
11353
11354 \backslash
11355 foilheadskip
11356 \family default
11357 で指定される長さを調節することによって、スライドタイトルとスライド本文の間の余白を変更することができます。たとえば、スライドタイトルをすべて0.5
11358 \begin_inset space \space{}
11359 \end_inset
11360
11361 inだけスライド本文に近づけるには、プリアンブルに
11362 \family typewriter
11363
11364 \backslash
11365 setlength{
11366 \backslash
11367 foilheadskip}{-0.5in}
11368 \family default
11369 と書き込みます。
11370 \end_layout
11371
11372 \begin_layout Standard
11373 フロート周囲の余白は、以下の長さを設定することで調整することができます。
11374 \end_layout
11375
11376 \begin_layout Labeling
11377 \labelwidthstring MMMMMMMMMMM
11378
11379 \family typewriter
11380
11381 \backslash
11382 abovefloatskip
11383 \family default
11384  本文とフロート上辺との間隔
11385 \end_layout
11386
11387 \begin_layout Labeling
11388 \labelwidthstring MMMMMMMMMMM
11389
11390 \family typewriter
11391
11392 \backslash
11393 abovecaptionskip
11394 \family default
11395  フロートとキャプションとの間隔
11396 \end_layout
11397
11398 \begin_layout Labeling
11399 \labelwidthstring MMMMMMMMMMM
11400
11401 \family typewriter
11402
11403 \backslash
11404 belowcaptionskip
11405 \family default
11406  キャプションとそれに続く本文との間隔
11407 \end_layout
11408
11409 \begin_layout Labeling
11410 \labelwidthstring MMMMMMMMMMM
11411
11412 \family typewriter
11413
11414 \backslash
11415 captionwidth
11416 \family default
11417  この長さを調整することでキャプションを、周囲の本文より短くすることができます。
11418 \family typewriter
11419
11420 \backslash
11421 textwidth
11422 \family default
11423 に対する相対的な長さで調整するのが最も良いでしょう。
11424 \end_layout
11425
11426 \begin_layout Standard
11427 以下のようなタイトルページ関連の長さもあり、タイトルが長い場合や、著者が複数いる場合に使うと便利かもしれません。
11428 \end_layout
11429
11430 \begin_layout Labeling
11431 \labelwidthstring MMMMMMMMMMM
11432
11433 \family typewriter
11434
11435 \backslash
11436 abovetitleskip
11437 \family default
11438  へッダとタイトルとの間隔
11439 \end_layout
11440
11441 \begin_layout Labeling
11442 \labelwidthstring MMMMMMMMMMM
11443
11444 \family typewriter
11445
11446 \backslash
11447 titleauthorskip
11448 \family default
11449  
11450 \family sans
11451 タイトル
11452 \family default
11453 環境と
11454 \family sans
11455 著者
11456 \family default
11457 環境との間隔
11458 \end_layout
11459
11460 \begin_layout Labeling
11461 \labelwidthstring MMMMMMMMMMM
11462
11463 \family typewriter
11464
11465 \backslash
11466 authorauthorskip
11467 \family default
11468  著者が複数いる場合の
11469 \family sans
11470 著者
11471 \family default
11472 行の間隔
11473 \end_layout
11474
11475 \begin_layout Labeling
11476 \labelwidthstring MMMMMMMMMMM
11477
11478 \family typewriter
11479
11480 \backslash
11481 authordateskip
11482 \family default
11483  
11484 \family sans
11485 著者
11486 \family default
11487
11488 \family sans
11489 日付
11490 \family default
11491 との間隔
11492 \end_layout
11493
11494 \begin_layout Labeling
11495 \labelwidthstring MMMMMMMMMMM
11496
11497 \family typewriter
11498
11499 \backslash
11500 dateabstractskip
11501 \family default
11502  
11503 \family sans
11504 日付
11505 \family default
11506
11507 \family sans
11508 概要
11509 \family default
11510 との間隔
11511 \end_layout
11512
11513 \begin_layout Standard
11514 最後に紹介する長さ関連コマンドは、箇条書き環境すべてに使用できるものです。
11515 \family typewriter
11516
11517 \backslash
11518 zerolistvertdimens
11519 \family default
11520 を箇条書き環境の内側に置くと、項目間の垂直余白がすべて取り除かれます。これは長さではなくコマンドなので、上述のもののように
11521 \family typewriter
11522
11523 \backslash
11524 setlength
11525 \family default
11526 を使う必要がないことに注意してください。
11527 \end_layout
11528
11529 \begin_layout Subsubsection
11530 へッダとフッタ
11531 \end_layout
11532
11533 \begin_layout Standard
11534
11535 \family typewriter
11536
11537 \backslash
11538 LogoOn
11539 \family default
11540 および
11541 \family typewriter
11542
11543 \backslash
11544 LogoOff
11545 \family default
11546 は、
11547 \family typewriter
11548 MyLogo
11549 \family default
11550 で定義したロゴを特定のページに入れるかどうかを制御します。
11551 \family typewriter
11552
11553 \backslash
11554 LogoOff
11555 \family default
11556 をプリアンブルに入れると、全スライドからロゴが取り除かれます。特定のスライドにのみロゴを付けたくない場合は、当該ページのスライドタイトルの直後に直接
11557 \family typewriter
11558
11559 \backslash
11560 LogoOff
11561 \family default
11562 を置き、次のスライドタイトルの直後に直接
11563 \family typewriter
11564
11565 \backslash
11566 LogoOn
11567 \family default
11568 を置いてください。
11569 \end_layout
11570
11571 \begin_layout Standard
11572
11573 \family sans
11574 文書レイアウト
11575 \family default
11576 ダイアログで
11577 \family sans
11578 fancy
11579 \family default
11580 ページ様式を使用することを選択した場合には、横置きページのヘッダとフッタが回転後も正しく配置されるように、プリアンブルに
11581 \family typewriter
11582
11583 \backslash
11584 let
11585 \backslash
11586 headwidth
11587 \backslash
11588 textwidth
11589 \family default
11590 を加える必要があるでしょう。これは、
11591 \family sans
11592 fancyheadings
11593 \family default
11594 パッケージが提供するページレイアウトと
11595 \family sans
11596 foils
11597 \family default
11598 クラスの提供するページレイアウトの間に衝突が発生するためです。
11599 \end_layout
11600
11601 \begin_layout Section
11602 Hollywood(Hollywoodスペック・スクリプト)
11603 \end_layout
11604
11605 \begin_layout Standard
11606
11607 \noun on
11608 Garst Reese
11609 \noun default
11610
11611 \end_layout
11612
11613 \begin_layout Subsection
11614 はじめに
11615 \end_layout
11616
11617 \begin_layout Standard
11618 脚本を正しい書式で書くことは、ハリウッドにおける「通過儀礼」です。ハリウッドの脚本は、読み手が内容に集中できるようにし、俳優にとっても読みやすくかつ親しみやすい
11619 ように設計されています。脚本の1ページは、映画の1分でなければならず、銀幕上で見えたり聞こえたりしないものは、脚本に混入してはなりません。また、全体を通してCo
11620 urier 12
11621 \begin_inset space \space{}
11622 \end_inset
11623
11624 ptフォントを使わなければならず、イタリック体は用いてはいけません。
11625 \end_layout
11626
11627 \begin_layout Subsection
11628 特別な問題
11629 \end_layout
11630
11631 \begin_layout Standard
11632 話者の行は、文の途中で改行することは
11633 \emph on
11634 決して
11635 \emph default
11636 あってはなりません。もし話者行の塊が、次頁にまたがる場合には、
11637 \family sans
11638 話者
11639 \family default
11640 名を再度書き、その後に(Cont'd)と加えます。
11641 \end_layout
11642
11643 \begin_layout Subsection
11644 特別な機能
11645 \end_layout
11646
11647 \begin_layout Standard
11648
11649 \family sans
11650 話者
11651 \family default
11652 名はラベルとして挿入し、話者名を挿入するには、そのラベルを相互参照してください。相互参照ダイアログは、登場人物の現在の配役を表示することになります。これは、ト書
11653 きに話者名を挿入するのにも使用することができます。
11654 \end_layout
11655
11656 \begin_layout Subsection
11657 用紙寸法と余白
11658 \end_layout
11659
11660 \begin_layout Standard
11661 USレター寸法で、左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです。
11662 \end_layout
11663
11664 \begin_layout Subsection
11665 環境
11666 \end_layout
11667
11668 \begin_layout Standard
11669 以下の環境が利用可能です。右に示されているキー割当てを使用するには、hollywood.bindを使用してください。
11670 \end_layout
11671
11672 \begin_layout Itemize
11673
11674 \family sans
11675 一般
11676 \begin_inset Newline newline
11677 \end_inset
11678
11679
11680 \family default
11681 他の環境が動作しない場合に使用しますが、これを使うことは避けるようにしてください。
11682 \end_layout
11683
11684 \begin_layout Itemize
11685 フェイドイン:
11686 \begin_inset space \hfill{}
11687 \end_inset
11688
11689
11690 \family sans
11691 M-z S-I
11692 \family default
11693
11694 \begin_inset Newline newline
11695 \end_inset
11696
11697 通常、この後には「Sallyは目を覚ますと」のように続きます。
11698 \end_layout
11699
11700 \begin_layout Itemize
11701
11702 \family sans
11703 屋内:
11704 \begin_inset space \hfill{}
11705 \end_inset
11706
11707 M-z i
11708 \begin_inset Newline newline
11709 \end_inset
11710
11711
11712 \family default
11713 新しい屋内(INTERIOR)カメラの設定を指定します。この後には、かならずDAYやNIGHTなどを指定して、必要な照明を定義します。この行はすべて大文字で書き
11714 ます。
11715 \end_layout
11716
11717 \begin_layout Itemize
11718
11719 \family sans
11720 屋外:
11721 \begin_inset space \hfill{}
11722 \end_inset
11723
11724 M-z e
11725 \begin_inset Newline newline
11726 \end_inset
11727
11728
11729 \family default
11730 屋外(EXTERIOR)カメラの設定を指定します。この行はすべて大文字で書きます。
11731 \end_layout
11732
11733 \begin_layout Itemize
11734
11735 \family sans
11736 話者
11737 \begin_inset space \hfill{}
11738 \end_inset
11739
11740 M-z s
11741 \begin_inset Newline newline
11742 \end_inset
11743
11744
11745 \family default
11746 話す役。
11747 \end_layout
11748
11749 \begin_layout Itemize
11750
11751 \family sans
11752 括弧付き
11753 \begin_inset space \hfill{}
11754 \end_inset
11755
11756 M-z p
11757 \begin_inset Newline newline
11758 \end_inset
11759
11760 話者
11761 \family default
11762 への指示。自動的に括弧()が挿入されますが、LyX上で表示されるのは、左括弧( のみです。印刷出力には右括弧も表示されます。
11763 \end_layout
11764
11765 \begin_layout Itemize
11766
11767 \family sans
11768 対話
11769 \begin_inset space \hfill{}
11770 \end_inset
11771
11772 M-z d
11773 \begin_inset Newline newline
11774 \end_inset
11775
11776 話者
11777 \family default
11778 が話す内容。
11779 \end_layout
11780
11781 \begin_layout Itemize
11782
11783 \family sans
11784 画面遷移
11785 \begin_inset space \hfill{}
11786 \end_inset
11787
11788 M-z t
11789 \begin_inset Newline newline
11790 \end_inset
11791
11792
11793 \family default
11794 カメラの動きの指示。例:CUT TO:。
11795 \end_layout
11796
11797 \begin_layout Itemize
11798
11799 \family sans
11800 フェイドアウト:
11801 \begin_inset space \hfill{}
11802 \end_inset
11803
11804 M-z S-I
11805 \end_layout
11806
11807 \begin_layout Itemize
11808
11809 \family sans
11810 著者
11811 \begin_inset space \hfill{}
11812 \end_inset
11813
11814 M-z S-A
11815 \end_layout
11816
11817 \begin_layout Itemize
11818
11819 \family sans
11820 タイトル
11821 \begin_inset space \hfill{}
11822 \end_inset
11823
11824 M-z S-T
11825 \end_layout
11826
11827 \begin_layout Itemize
11828
11829 \family sans
11830 右寄せ住所
11831 \begin_inset space \hfill{}
11832 \end_inset
11833
11834 M-z r
11835 \end_layout
11836
11837 \begin_layout Subsection
11838 脚本で使われる特別な用語
11839 \end_layout
11840
11841 \begin_layout Itemize
11842 (O.S) — off screen
11843 \end_layout
11844
11845 \begin_layout Itemize
11846 (V.0) — voice over
11847 \end_layout
11848
11849 \begin_layout Itemize
11850 b.g.
11851  — background
11852 \end_layout
11853
11854 \begin_layout Itemize
11855 C.U.
11856  — close-up
11857 \end_layout
11858
11859 \begin_layout Itemize
11860 PAN — camera movement
11861 \end_layout
11862
11863 \begin_layout Itemize
11864 INSERT — cut to close-up of
11865 \end_layout
11866
11867 \begin_layout Section
11868 ijmpcおよびijmpd
11869 \end_layout
11870
11871 \begin_layout Standard
11872
11873 \noun on
11874 Panayotis Papasotiriou
11875 \noun default
11876
11877 \end_layout
11878
11879 \begin_layout Subsection
11880 概観
11881 \end_layout
11882
11883 \begin_layout Standard
11884 ijpmcパッケージは、
11885 \emph on
11886 International Journal of Modern Physics C
11887 \emph default
11888 への電子投稿を可能にするためのマクロ集です。同様に、ijpmdパッケージは、
11889 \emph on
11890 International Journal of Modern Physics D
11891 \emph default
11892 へ投稿する現行を作成するためのものです。両誌ともWorld Scientific社の刊行です。対応する文書クラス名は、それぞれ
11893 \family typewriter
11894 ws-ijmpc.cls
11895 \family default
11896 および
11897 \family typewriter
11898 ws-ijmpd.cls
11899 \family default
11900 です。これらのファイルは、著者のための指針とともに、
11901 \begin_inset Flex URL
11902 status collapsed
11903
11904 \begin_layout Plain Layout
11905
11906 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
11907 \end_layout
11908
11909 \end_inset
11910
11911 および
11912 \begin_inset Flex URL
11913 status collapsed
11914
11915 \begin_layout Plain Layout
11916
11917 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
11918 \end_layout
11919
11920 \end_inset
11921
11922 の各サイトからダウンロードすることができます。両パッケージは、標準「article」パッケージの修正版であり、両者は(一部を除き)ほぼ同一です。LyXは、これら
11923 のパッケージのほとんどの機能をサポートしています。私は両誌へ投稿する論文をLyXで書き上げましたが、何らの問題も生じませんでした。
11924 \end_layout
11925
11926 \begin_layout Subsection
11927 論文を書く
11928 \end_layout
11929
11930 \begin_layout Standard
11931 通常と同じく、論文を書く上で最も易しい方法は、ひな型を使って書き始めることです。
11932 \family sans
11933 ファイル\SpecialChar \menuseparator
11934 新規(ひな形使用)
11935 \family default
11936 をクリックして、ひな型
11937 \family typewriter
11938 ijmpc.lyx
11939 \family default
11940 もしくは
11941 \family typewriter
11942 ijmpd.lyx
11943 \family default
11944 を選択してください。すると、原稿で良く使用されるフィールドを含んだ、ほぼ空の文書ができますので、既存のフィールド(鍵括弧
11945 \family typewriter
11946 <>
11947 \family default
11948 を含む)を正しい情報で置き換えてください。以下の各点にご留意ください。
11949 \end_layout
11950
11951 \begin_layout Enumerate
11952 両パッケージでは、フォント寸法や文書のページ様式を変更することが禁じられているので、LyX中でこれらを変更することはできません。
11953 \end_layout
11954
11955 \begin_layout Enumerate
11956 文書言語は変更してはいけません。論文をプレビューする前に、babelパッケージが使用されていないことを確認してください。これは、
11957 \family sans
11958 ツール\SpecialChar \menuseparator
11959 設定
11960 \family default
11961 をクリックして、
11962 \family sans
11963 言語オプション
11964 \family default
11965 タブを選択し、言語設定で
11966 \family sans
11967 Babelを使う
11968 \family default
11969 チェックボックスを無効にしてから、
11970 \family sans
11971 適用
11972 \family default
11973 をクリックすれば、設定することができます(この変更を固定するなら
11974 \family sans
11975 保存
11976 \family default
11977 を押してください)。
11978 \end_layout
11979
11980 \begin_layout Enumerate
11981 キーワードを定義するに際しては、「キーワード」様式を用いなくてはなりません。
11982 \end_layout
11983
11984 \begin_layout Enumerate
11985 ijmpcパッケージが提供する「分類コード」様式は、PACS番号のような分類コードを定義するのに使用することができます。この機能は、ijmpdパッケージではサポ
11986 ートされていませんので、ご注意ください。
11987 \end_layout
11988
11989 \begin_layout Enumerate
11990 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
11991 きます。これらの使い方は、大凡自明でしょう。LyXは、これらの環境をすべてサポートし、それぞれについて、適切なラベルと文字様式および連番スキームを使用します。
11992 \end_layout
11993
11994 \begin_layout Enumerate
11995 両パッケージは、単純な引用を使用しますので、natbibパッケージは使用してはなりません。LyX中では、引用参照は通常通り表示されますが、出力では上付き文字とし
11996 て表示されます。引用に通常の本文を使用したい場合には、「See Ref.
11997 \begin_inset space \space{}
11998 \end_inset
11999
12000
12001 \family typewriter
12002
12003 \backslash
12004 refcite{キー}
12005 \family default
12006 」のように
12007 \family typewriter
12008 refcite
12009 \family default
12010 コマンドを使用してください。
12011 \end_layout
12012
12013 \begin_layout Enumerate
12014 両パッケージには、「謝辞」環境がありません。謝辞を置くには、「節*」環境を使用してください。
12015 \end_layout
12016
12017 \begin_layout Enumerate
12018 付録は、論文中、謝辞の
12019 \emph on
12020
12021 \emph default
12022 かつ参考文献の
12023 \emph on
12024
12025 \emph default
12026 であれば、入れることができます。LyX上では、「付録領域」という特別な環境があり、これを使って付録の開始位置を指定することができます。この環境は空のままにしてお
12027 かなくてはなりません。この環境は、LaTeXコマンドを書き出すだけで、実際に出力は行いません。LyX上では、青字で「Appendix」という単語が表示され、この
12028 箇所より後の節はすべて付録であることを明示します。「付録領域」は、最初の付録の前に
12029 \emph on
12030 なくてはならない
12031 \emph default
12032 ことに注意してください。さもなくば、出力中において、付録はすべて通常の節として連番が振られてしまいます。
12033 \end_layout
12034
12035 \begin_layout Enumerate
12036 ijmpcおよびijmpdパッケージは、表キャプションを実装するのに
12037 \family typewriter
12038 tbl
12039 \family default
12040 コマンドを使用します。そのため、LyXが作成した表は正しく印字されますが、そのキャプションは無視されます。しかし、TeXコードを少し使えば、この問題を回避して、
12041 キャプションを望み通り印字することができるようになります。そうするには、表フロートを通常通り作成して、キャプションを削除し、代わりにTeXコードで
12042 \family typewriter
12043
12044 \backslash
12045 tbl{表キャプション}{
12046 \family default
12047 (ママ)と入れます。そこに表の内容を入れて、直後をTeXコード
12048 \family typewriter
12049 }
12050 \family default
12051 で閉じてください。このからくりがどのように実装されているかを見るには、ひな型ファイルに入っている表の例を精査してみてください。別の方法としては、表キャプションが
12052 欲しい場合に、表フロート全体を
12053 \family typewriter
12054 .tex
12055 \family default
12056 ファイルに収め、このファイルをLyX文書に取り込んでください(
12057 \family sans
12058 挿入\SpecialChar \menuseparator
12059 ファイル\SpecialChar \menuseparator
12060 子文書
12061 \family default
12062 )。表フロートの作り方についての詳細は、各パッケージに含まれている
12063 \family typewriter
12064 ws-ijmpc.tex
12065 \family default
12066 または
12067 \family typewriter
12068 ws-ijmpd.tex
12069 \family default
12070 ファイルをご覧ください。
12071 \end_layout
12072
12073 \begin_layout Subsection
12074 原稿を投稿するための準備
12075 \end_layout
12076
12077 \begin_layout Standard
12078 論文を投稿する前には、LyX文書をLaTeXファイルに書き出し(
12079 \family sans
12080 ファイル\SpecialChar \menuseparator
12081 書き出し\SpecialChar \menuseparator
12082 LaTeX
12083 \family default
12084
12085 \begin_inset Foot
12086 status open
12087
12088 \begin_layout Plain Layout
12089 実は、LaTeX (plain)とpdflatexとの間で選択ができます。論文を準備するのにpdflatexを使用しようとするのであれば、取り込んである画像がP
12090 DF形式に変換され、pdflatexで使用できるように、pdflatexオプションを指定しなくてはなりません。
12091 \end_layout
12092
12093 \end_inset
12094
12095 、その
12096 \family typewriter
12097 .tex
12098 \family default
12099 ファイルに以下の変更を加える必要があります。
12100 \end_layout
12101
12102 \begin_layout Enumerate
12103
12104 \family typewriter
12105
12106 \backslash
12107 documentclass
12108 \family default
12109 コマンドより前にあるコメント行を削除する。
12110 \end_layout
12111
12112 \begin_layout Enumerate
12113 自身で明示的にLaTeXプリアンブルに置いたコマンドを除き、
12114 \family typewriter
12115
12116 \backslash
12117 makeatletter
12118 \family default
12119 コマンドと
12120 \family typewriter
12121
12122 \backslash
12123 makeatother
12124 \family default
12125 コマンドの間にあるものをすべて削除する。
12126 \end_layout
12127
12128 \begin_layout Standard
12129 こうして修正を加えた
12130 \family typewriter
12131 .tex
12132 \family default
12133 ファイルを保存し、必要な回数LaTeXで処理してください。それによって得られた
12134 \family typewriter
12135 .dvi
12136 \family default
12137 文書も確認された方がよろしいでしょう。
12138 \end_layout
12139
12140 \begin_layout Subsection
12141 TeXコードの使用
12142 \end_layout
12143
12144 \begin_layout Standard
12145 TeXコードを使用するのは、2つのコマンドに限られ、これらは文書の最初に置かれなくてはなりません。論文をひな型
12146 \family typewriter
12147 ijmpc.lyx
12148 \family default
12149 または
12150 \family typewriter
12151 ijmpd.lyx
12152 \family default
12153 を使用して書き始めた場合には、これら必要なTeXコードは、すでに書き込まれています。通常、これらを削除する必要はありません。2つのうち1番めのTeXコードのみが
12154 、奇数ページおよび偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために、修正する必要があります。このTeXコードは、
12155 \family typewriter
12156
12157 \backslash
12158 markboth{著者名}{論文の短縮タイトル}
12159 \family default
12160 という形である必要があります。
12161 \end_layout
12162
12163 \begin_layout Section
12164 iopart
12165 \end_layout
12166
12167 \begin_layout Standard
12168
12169 \noun on
12170 Uwe Stöhr
12171 \noun default
12172
12173 \end_layout
12174
12175 \begin_layout Subsection
12176 概要
12177 \end_layout
12178
12179 \begin_layout Standard
12180 iopartパッケージは、Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12181 す。iopartクラスを使用した論文作成方法の著者用説明書は、ウェブサイト
12182 \begin_inset Flex URL
12183 status collapsed
12184
12185 \begin_layout Plain Layout
12186
12187 ftp://ftp.iop.org/pub/journals/latex2e
12188 \end_layout
12189
12190 \end_inset
12191
12192 からiopartパッケージとともにダウンロード可能です。
12193 \end_layout
12194
12195 \begin_layout Subsection
12196 論文を書く
12197 \end_layout
12198
12199 \begin_layout Standard
12200 論文を書くもっとも簡単な方法は、LyXの用例ファイルフォルダにある
12201 \emph on
12202 IOP-article.lyx
12203 \emph default
12204 を土台にすることです。このファイルを開き、新しい名前で保存して、書き始めてください。この用例ファイルは、特定の環境の使用法についても説明しています。もっとも重要
12205 な助言として、以下の点にご注意ください。
12206 \end_layout
12207
12208 \begin_layout Itemize
12209 文書がPDF・PS・DVIにコンパイルできるようにするためには、文書設定の
12210 \family sans
12211 数式オプション
12212 \family default
12213 で、二つの
12214 \family sans
12215 AMS mathパッケージを使う
12216 \family default
12217 関連オプションが有効になっていないことを確認してください!
12218 \end_layout
12219
12220 \begin_layout Itemize
12221 タイトル環境の選択如何によって、論文の種類が定義されます。種類毎に以下の環境をタイトルに使用してください。
12222 \end_layout
12223
12224 \begin_deeper
12225 \begin_layout Itemize
12226 論文用には
12227 \family sans
12228 タイトル
12229 \end_layout
12230
12231 \begin_layout Itemize
12232 Review用には
12233 \family sans
12234 Review
12235 \end_layout
12236
12237 \begin_layout Itemize
12238 Topical review用には
12239 \family sans
12240 Topical
12241 \end_layout
12242
12243 \begin_layout Itemize
12244 Comment用には
12245 \family sans
12246 Comment
12247 \end_layout
12248
12249 \begin_layout Itemize
12250 Note用には
12251 \family sans
12252 注釈
12253 \end_layout
12254
12255 \begin_layout Itemize
12256 論文用には
12257 \family sans
12258 Paper
12259 \family default
12260 (タイトルと同じ)
12261 \end_layout
12262
12263 \begin_layout Itemize
12264 Preliminary communication用には
12265 \family sans
12266 Prelim
12267 \end_layout
12268
12269 \begin_layout Itemize
12270 Rapid communication用には
12271 \family sans
12272 Rapid
12273 \end_layout
12274
12275 \begin_layout Itemize
12276 編集者へのLetterには
12277 \family sans
12278 書簡
12279 \end_layout
12280
12281 \end_deeper
12282 \begin_layout Itemize
12283
12284 \family sans
12285 書簡
12286 \family default
12287 以外のタイトル環境には、すべて短縮タイトルをつけることもできます。
12288 \end_layout
12289
12290 \begin_layout Itemize
12291 LyXでは直接にサポートされていませんが、一般的なタイトル環境として
12292 \family sans
12293 Article
12294 \family default
12295 があります。執筆する文書が、他のタイトル型にそぐわない場合には、TeXコードでこれを指定することができます。
12296 \end_layout
12297
12298 \begin_layout Standard
12299 特別な表や数式組版に関するヒントなど、詳しい情報については、IOP著者用ガイドラインを参照してください。
12300 \end_layout
12301
12302 \begin_layout Section
12303 Kluwer
12304 \end_layout
12305
12306 \begin_layout Standard
12307
12308 \noun on
12309 Panayotis Papasotiriou
12310 \noun default
12311
12312 \end_layout
12313
12314 \begin_layout Subsection
12315 概要
12316 \end_layout
12317
12318 \begin_layout Standard
12319 Kluwerパッケージは、Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために、同社が作成したマクロ集です。同社
12320 の発行誌のうち、(少なくとも私の専門内で)もっともよく知られているものは、
12321 \emph on
12322 Astrophysics and Space Science
12323 \emph default
12324 (『宇宙物理学と宇宙科学』)と
12325 \emph on
12326 Solar Physics
12327 \emph default
12328 (『太陽系物理学』)ですが、他にも多くの学術誌があります(
12329 \begin_inset Flex URL
12330 status collapsed
12331
12332 \begin_layout Plain Layout
12333
12334 http://www.wkap.nl/jrnllist.htm/JRNLHOME
12335 \end_layout
12336
12337 \end_inset
12338
12339 に全覧があります)。Kluwerパッケージは、
12340 \begin_inset Flex URL
12341 status collapsed
12342
12343 \begin_layout Plain Layout
12344
12345 http://www.wkap.nl/kaphtml.htm/STYLEFILES
12346 \end_layout
12347
12348 \end_inset
12349
12350 からダウンロードできます。完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です)。
12351 \end_layout
12352
12353 \begin_layout Standard
12354 LyXは、このパッケージの機能の多くをサポートしていますが、すべてではありません。しかし、TeXコードを必要とするのは、パッケージ中のいくつかの「変わった」コマ
12355 ンドだけになりました(
12356 \begin_inset CommandInset ref
12357 LatexCommand ref
12358 reference "subsec:kluwer_peculiarities"
12359
12360 \end_inset
12361
12362 参照)。最近、私はLyXを使って書いた論文を
12363 \emph on
12364 Astrophysics and Space Science
12365 \emph default
12366 に投稿しましたが、何らの問題も発生しませんでした。
12367 \end_layout
12368
12369 \begin_layout Subsection
12370 論文を書く
12371 \end_layout
12372
12373 \begin_layout Standard
12374 論文を書き始めるには、ひな型ファイルKluwerを使うのが最も簡単です。
12375 \family sans
12376 ファイル\SpecialChar \menuseparator
12377 新規(ひな型使用)
12378 \family default
12379 をクリックし、ひな型
12380 \family typewriter
12381 kluwer.lyx
12382 \family default
12383 を選択してください。これは、原稿に通常必要となる各フィールドと、それらの使用法が短く書かれただけの、(ほとんど)何も書かれていない文書です。他のテンプレートと同
12384 様に、既存の文章を(括弧
12385 \family typewriter
12386 <>
12387 \family default
12388 を含む)正しい情報で上書きしてください。
12389 \end_layout
12390
12391 \begin_layout Subsection
12392 投稿の準備
12393 \end_layout
12394
12395 \begin_layout Standard
12396 AASTeXパッケージと同様、論文を投稿する前に、以下のような「後処理」を行う必要があります。
12397 \end_layout
12398
12399 \begin_layout Enumerate
12400
12401 \family sans
12402 ファイル\SpecialChar \menuseparator
12403 書き出し\SpecialChar \menuseparator
12404 LateX
12405 \family default
12406 をクリックして、論文をLaTeXファイルに書き出す。
12407 \end_layout
12408
12409 \begin_layout Enumerate
12410 生成された
12411 \family typewriter
12412 .tex
12413 \family default
12414 ファイルに、テキストエディタを使用して、以下のような変更を加える。
12415 \end_layout
12416
12417 \begin_deeper
12418 \begin_layout Enumerate
12419
12420 \family typewriter
12421
12422 \backslash
12423 documentclass
12424 \family default
12425 コマンドより前にあるコメント行を削除する。
12426 \end_layout
12427
12428 \begin_layout Enumerate
12429 意図的にLaTeXプリアンブルに加えたコマンドを除き、
12430 \family typewriter
12431
12432 \backslash
12433 makeatletter
12434 \family default
12435 から 
12436 \family typewriter
12437
12438 \backslash
12439 makeatother
12440 \family default
12441 の間にあるものを、これらのコマンドも含め、すべて削除する。
12442 \end_layout
12443
12444 \begin_layout Standard
12445 変更した
12446 \family typewriter
12447 .tex
12448 \family default
12449 ファイルを保存する。
12450 \end_layout
12451
12452 \end_deeper
12453 \begin_layout Enumerate
12454 この
12455 \family typewriter
12456 .tex
12457 \family default
12458 ファイルを必要な回数(通常3回以内)だけLaTeXにかける。
12459 \end_layout
12460
12461 \begin_layout Enumerate
12462 生成された
12463 \family typewriter
12464 .dvi
12465 \family default
12466 ファイルを
12467 \family sans
12468 xdvi
12469 \family default
12470 などを使って開き、問題がないか確認する(間違いをしていない限り問題ないはずです)。
12471 \end_layout
12472
12473 \begin_layout Subsection
12474 Kluwerパッケージの「風変わり」な特徴
12475 \begin_inset CommandInset label
12476 LatexCommand label
12477 name "subsec:kluwer_peculiarities"
12478
12479 \end_inset
12480
12481
12482 \end_layout
12483
12484 \begin_layout Standard
12485 Kluwerパッケージには、以下のような「風変わりな」特徴があります。
12486 \end_layout
12487
12488 \begin_layout Enumerate
12489 複数の論文を1つのLaTeXファイルへ入れることができます
12490 \begin_inset Foot
12491 status collapsed
12492
12493 \begin_layout Plain Layout
12494 わざわざこんなことをする必要はないでしょう。
12495 \end_layout
12496
12497 \end_inset
12498
12499 。各論文は、「article」環境で囲まなくてはなりません。残念ながら、1つの論文だけを書く場合でも、この環境を省略することはできません。つまり、各論文は
12500 \family typewriter
12501
12502 \backslash
12503 begin{article}
12504 \family default
12505 で始まり、
12506 \family typewriter
12507
12508 \backslash
12509 end{article}
12510 \family default
12511 で終わります。この環境をLyXに実装することも可能でしたが、醜い上に初心者を混乱させる可能性があるので、実装することはしませんでした。したがって、これらの命令(
12512 \family typewriter
12513
12514 \backslash
12515 begin{article}
12516 \family default
12517
12518 \family typewriter
12519
12520 \backslash
12521 end{article}
12522 \family default
12523 )は、直接本文中に入力して、LaTeXコード(「TeXコード」のことです)としてマークする必要があります。
12524 \end_layout
12525
12526 \begin_layout Enumerate
12527 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は、「opening」とよばれる環境に入れなくて
12528 はなりません。これはLyXでは実装されていませんので、タイトルやサブタイトルなどは、2つのTeXコード行(
12529 \family typewriter
12530
12531 \backslash
12532 begin{opening}
12533 \family default
12534 および
12535 \family typewriter
12536
12537 \backslash
12538 end{opening}
12539 \family default
12540 )の間に入れる必要があります。
12541 \end_layout
12542
12543 \begin_layout Enumerate
12544 ユーザーの手引きによれば、参考文献の各項目のラベルは、
12545 \family typewriter
12546
12547 \backslash
12548 protect
12549 \backslash
12550 citeauthoryear{
12551 \family default
12552 \emph on
12553 著者名
12554 \family typewriter
12555 \emph default
12556 }{
12557 \family default
12558 \emph on
12559
12560 \family typewriter
12561 \emph default
12562 }
12563 \family default
12564  と書く必要があります。
12565 \end_layout
12566
12567 \begin_layout Standard
12568 ひな型
12569 \family typewriter
12570 kluwer.lyx
12571 \family default
12572 は、これらの風変わりな点がすべて考慮されています。このひな型を使用して、論文を新たに書きはじめる場合には、特別なことを行う必要はありません。以下の点にのみ留意し
12573 てください。
12574 \end_layout
12575
12576 \begin_layout Enumerate
12577 ひな型にあるTeXコードを削除しないでください。
12578 \end_layout
12579
12580 \begin_layout Enumerate
12581 新しい参考文献項目を入力する場合には、ひな型に例示されている参考文献項目をコピーして、必要に応じて修正してください。
12582 \end_layout
12583
12584 \begin_layout Section
12585 Koma-Script
12586 \end_layout
12587
12588 \begin_layout Standard
12589
12590 \noun on
12591 Bernd Rellermeyer
12592 \noun default
12593
12594 \end_layout
12595
12596 \begin_layout Subsection
12597 概要
12598 \end_layout
12599
12600 \begin_layout Standard
12601 LyXの文書クラス
12602 \emph on
12603 article (koma-script)
12604 \emph default
12605
12606 \emph on
12607 report (koma-script)
12608 \emph default
12609
12610 \emph on
12611 book
12612 \emph default
12613  
12614 \emph on
12615 (koma-script)
12616 \emph default
12617
12618 \emph on
12619 letter
12620 \emph default
12621  
12622 \emph on
12623 (koma-script)
12624 \emph default
12625 は、それぞれKoma-ScriptファミリーのLaTeX文書クラス
12626 \family typewriter
12627 scrartcl.cls
12628 \family default
12629
12630 \family typewriter
12631 scrreprt.cls
12632 \family default
12633
12634 \family typewriter
12635 scrbook.cls
12636 \family default
12637
12638 \family typewriter
12639 scrlettr.cls
12640 \family default
12641 に対応しています。これらは、標準文書クラス
12642 \family typewriter
12643 article.cls
12644 \family default
12645
12646 \family typewriter
12647 report.cls
12648 \family default
12649
12650 \family typewriter
12651 book.cls
12652 \family default
12653
12654 \family typewriter
12655 letter.cls
12656 \family default
12657 の代替物であり、これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します。
12658 \end_layout
12659
12660 \begin_layout Itemize
12661 標準文字寸法は、
12662 \emph on
12663 article (koma-script)
12664 \emph default
12665
12666 \emph on
12667 report (koma-script)
12668 \emph default
12669
12670 \emph on
12671 book (koma-script)
12672 \emph default
12673 で11pt、
12674 \emph on
12675 letter (koma-script)
12676 \emph default
12677 で12ptです。
12678 \end_layout
12679
12680 \begin_layout Itemize
12681 見出しや箇条書き(記述)環境のラベル、および
12682 \emph on
12683 letter (koma-script)
12684 \emph default
12685 文書クラスの要素の多くでは、ボールド体サンセリフフォントが使われます
12686 \begin_inset Foot
12687 status collapsed
12688
12689 \begin_layout Plain Layout
12690 ボールド体サンセリフフォントには、古いcmフォントと新しいecフォントの間に大きな違いがあり、特に見出しの表示の違いが際立ちます。比較すると、ecボールドサンセ
12691 リフフォントの方が、少し細く見えます。ecフォントを使用する際に「通常の」外観が欲しい場合には、
12692 \shape smallcaps
12693 Walter Schmidt
12694 \shape default
12695 作のLaTeXパッケージ
12696 \family typewriter
12697 cmsd.sty
12698 \family default
12699 が役立ちます。
12700 \end_layout
12701
12702 \end_inset
12703
12704 。章見出しの連番は、節見出しの連番と同様に行われ、別行立てで「 Chapter\SpecialChar \ldots{}
12705 」という行がつきません。さらに、多くのオプションによって、見出しの外観を修正するこ
12706 とができます(LyXでは、
12707 \family sans
12708 文書\SpecialChar \menuseparator
12709 設定
12710 \family default
12711 ダイアログの
12712 \family sans
12713 クラスオプション
12714 \family default
12715 フィールドで指定します)。これらのオプションの独語での詳細な説明が、Koma-Scriptの取扱説明書
12716 \emph on
12717 scrguide
12718 \emph default
12719 にあります。
12720 \end_layout
12721
12722 \begin_layout Itemize
12723 Koma-Script文書クラスで、印字部分をデザインする主な方法は、
12724 \family sans
12725 BCOR
12726 \family default
12727 オプションまたは
12728 \family sans
12729 DIV
12730 \family default
12731 オプションを使う方法です(LyXでは、
12732 \family sans
12733 文書\SpecialChar \menuseparator
12734 設定
12735 \family default
12736 ダイアログの
12737 \family sans
12738 クラスオプション
12739 \family default
12740 フィールドで指定します)。これらのオプションは
12741 \family sans
12742 文書\SpecialChar \menuseparator
12743 設定
12744 \family default
12745 ダイアログのオプションと同様に、ページ余白を明示的に変更することができます。これらとその他印字領域オプションのドイツ語での詳細な説明が、Koma-Script取
12746 扱説明書
12747 \emph on
12748 scrguide
12749 \emph default
12750 にあります。
12751 \end_layout
12752
12753 \begin_layout Itemize
12754 Koma-ScriptファミリーのLaTeX文書クラスには、多くの追加コマンドが定義されています。それらのうち、LyXで意味を持つものは、対応する段落環境として
12755 実装されています。
12756 \end_layout
12757
12758 \begin_layout Standard
12759 Koma-ScriptファミリーのLaTeX文書クラスに関する独語の詳細な説明が、Koma-Script取扱説明書
12760 \emph on
12761 scrguide
12762 \emph default
12763 にあります
12764 \begin_inset Foot
12765 status collapsed
12766
12767 \begin_layout Plain Layout
12768 英語翻訳版の
12769 \emph on
12770 screnggu
12771 \emph default
12772 もありますが、完訳ではありません。
12773 \end_layout
12774
12775 \end_inset
12776
12777 。以下の各節では、LyXに関係する側面のみ説明致します。
12778 \end_layout
12779
12780 \begin_layout Subsection
12781 article (koma-script)・report (koma-script)・book (koma-script)
12782 \end_layout
12783
12784 \begin_layout Standard
12785 文書クラス
12786 \emph on
12787 article (koma-script)
12788 \emph default
12789
12790 \emph on
12791 report (koma-script)
12792 \emph default
12793
12794 \emph on
12795 book
12796 \emph default
12797  
12798 \emph on
12799 (koma-script)
12800 \emph default
12801 は、それぞれレイアウトファイル
12802 \family typewriter
12803 scrartcl.layout
12804 \family default
12805
12806 \family typewriter
12807 scrreprt.layou
12808 \family default
12809 t・
12810 \family typewriter
12811 crbook.layout
12812 \family default
12813 によって実装されています。これらは、対応する標準文書クラス
12814 \emph on
12815 article
12816 \emph default
12817
12818 \emph on
12819 report
12820 \emph default
12821
12822 \emph on
12823 book
12824 \emph default
12825 の段落環境を、若干の修正を加えた上ですべて含んでいますが、LyX固有の
12826 \family sans
12827 箇条書き(一覧)
12828 \family default
12829 環境は例外であり、同じ機能を持つ新しい
12830 \family sans
12831 ラベリング
12832 \family default
12833 環境で置き換えられています。この
12834 \family sans
12835 ラベリング
12836 \family default
12837 環境以外にも、新しい段落環境が多く追加されています。これらは、
12838 \emph on
12839 letter (koma-script)
12840 \emph default
12841 には含まれていないのでご注意ください。
12842 \end_layout
12843
12844 \begin_layout Itemize
12845
12846 \family sans
12847 部(addpart)
12848 \family default
12849
12850 \family sans
12851 章(addchap)
12852 \family default
12853
12854 \family sans
12855 節(addsec)
12856 \family default
12857 :これらは、それぞれ
12858 \family sans
12859 部*
12860 \family default
12861
12862 \family sans
12863 章*
12864 \family default
12865
12866 \family sans
12867 節*
12868 \family default
12869 と同等の働きをしますが、加えて目次に項目が表示されるようになります。
12870 \family sans
12871 部(addpart)
12872 \family default
12873
12874 \family sans
12875 章(addchap)
12876 \family default
12877 は、
12878 \emph on
12879 article (koma-script)
12880 \emph default
12881 には収録されていません。
12882 \end_layout
12883
12884 \begin_layout Itemize
12885
12886 \family sans
12887 章(addchap*)
12888 \family default
12889
12890 \family sans
12891 節(addsec*)
12892 \family default
12893 :これらは、
12894 \family sans
12895 章(addchap
12896 \family default
12897 )と
12898 \family sans
12899 節(addsec)
12900 \family default
12901 とまったく同等に動作しますが、加えてランニングへッダを取り除きます。
12902 \family sans
12903 章(addchap*)
12904 \family default
12905 は、 
12906 \emph on
12907 article (koma-script)
12908 \emph default
12909 には収録されていません
12910 \begin_inset Foot
12911 status collapsed
12912
12913 \begin_layout Plain Layout
12914
12915 \emph on
12916 book (koma-script)
12917 \emph default
12918
12919 \emph on
12920 report (koma-script)
12921 \emph default
12922 には、
12923 \family typewriter
12924
12925 \backslash
12926 addpart*
12927 \family default
12928 コマンドもありますが、これは
12929 \family sans
12930 Part*
12931 \family default
12932 と同一なので、LyXでは実装されていません。
12933 \end_layout
12934
12935 \end_inset
12936
12937
12938 \end_layout
12939
12940 \begin_layout Itemize
12941
12942 \family sans
12943 小見出し(minisec)
12944 \family default
12945 :これは文書構造に現れない形で、続く段落の直上に標準文字寸法の見出しを付けます。
12946 \end_layout
12947
12948 \begin_layout Itemize
12949
12950 \family sans
12951 上部キャプション
12952 \family default
12953
12954 \family sans
12955 下部キャプション
12956 \family default
12957 は、ある要素の上部ないし下部にキャプションを配置する際、位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば、表キャプションは、つ
12958 ねに表の上に置くべきでしょう)。また、クラスオプション
12959 \family typewriter
12960 tablecaptionsabove
12961 \family default
12962 を用いれば、キャプションを指定すると、表には
12963 \family sans
12964 上部キャプション
12965 \family default
12966 が、図には
12967 \family sans
12968 下部キャプション
12969 \family default
12970 が適用されるようになります。これを使用するためには、Koma-Script第2.8q版以上が必要です。
12971 \end_layout
12972
12973 \begin_layout Itemize
12974
12975 \family sans
12976 格言(dictum)
12977 \family default
12978 :これは、章頭などに警句を置くのに用いることができます。オプション引数(
12979 \family sans
12980 挿入\SpecialChar \menuseparator
12981 短縮タイトル
12982 \family default
12983 )を用いれば、格言の作者を入れることができます。格言と作者の間は、線で区切られます。これを使用するためには、Koma-Script第2.8q版以上が必要です。
12984 \family sans
12985 格言(dictum)
12986 \family default
12987 は、
12988 \emph on
12989 article (koma-script)
12990 \emph default
12991 には収録されていません。
12992 \end_layout
12993
12994 \begin_layout Standard
12995 以下の各環境は、標準の
12996 \family sans
12997 タイトル
12998 \family default
12999
13000 \family sans
13001 著者
13002 \family default
13003
13004 \family sans
13005 日付
13006 \family default
13007 とともに文書のタイトル領域を形成します。これらは、最初の「通常の」段落よりも前に置かれる必要があります
13008 \begin_inset Foot
13009 status collapsed
13010
13011 \begin_layout Plain Layout
13012 つまり、対応するLaTeXコマンドが
13013 \family typewriter
13014
13015 \backslash
13016 maketitle
13017 \family default
13018 コマンドよりも前に現れなくてはなりません。
13019 \end_layout
13020
13021 \end_inset
13022
13023 。これらの環境が2度以上使用された場合には、後に使用されたものが前のものを上書きします。つまり最後に使用したもののみが有効になります。しかしながら、
13024 \family sans
13025 タイトル
13026 \family default
13027
13028 \family sans
13029 著者
13030 \family default
13031
13032 \family sans
13033 日付
13034 \family default
13035 のような異なる環境の順序を変更しても、生成された文書には何の効果も生じません。
13036 \end_layout
13037
13038 \begin_layout Itemize
13039
13040 \family sans
13041 主題
13042 \family default
13043 :通常のタイトル部(
13044 \family sans
13045 タイトル
13046 \family default
13047
13048 \family sans
13049 著者
13050 \family default
13051
13052 \family sans
13053 日付
13054 \family default
13055 )の上に、文書の主題用の中央揃えの段落を生成します。
13056 \end_layout
13057
13058 \begin_layout Itemize
13059
13060 \family sans
13061 出版社
13062 \family default
13063 :通常のタイトル部(
13064 \family sans
13065 タイトル
13066 \family default
13067
13068 \family sans
13069 著者
13070 \family default
13071
13072 \family sans
13073 日付
13074 \family default
13075 )の下に、出版社名用の中央揃えの段落を生成します。
13076 \end_layout
13077
13078 \begin_layout Itemize
13079
13080 \family sans
13081 献呈
13082 \family default
13083
13084 \emph on
13085 report (koma-script)
13086 \emph default
13087
13088 \emph on
13089 book (koma-script)
13090 \emph default
13091 では、タイトル頁の次に、献辞用の中央揃えの段落を独立した頁として生成します。
13092 \emph on
13093 article (koma-script)
13094 \emph default
13095 の場合は、通常のタイトル部(
13096 \family sans
13097 タイトル
13098 \family default
13099
13100 \family sans
13101 著者
13102 \family default
13103
13104 \family sans
13105 日付
13106 \family default
13107 )の下に献辞用の中央揃えの段落を生成します。
13108 \end_layout
13109
13110 \begin_layout Itemize
13111
13112 \family sans
13113 タイトル頭書き
13114 \family default
13115 :通常のタイトル部(
13116 \family sans
13117 タイトル
13118 \family default
13119
13120 \family sans
13121 著者
13122 \family default
13123
13124 \family sans
13125 日付
13126 \family default
13127 )の上に、文書頭書き用の左揃えの段落を生成します。
13128 \end_layout
13129
13130 \begin_layout Itemize
13131
13132 \family sans
13133 扉裏上部
13134 \family default
13135
13136 \emph on
13137 report (koma-script)
13138 \emph default
13139 や 
13140 \emph on
13141 book (koma-script)
13142 \emph default
13143 の両面印刷において、扉裏上部に左揃え段落を生成します。片面印刷や、
13144 \emph on
13145 article (koma-script)
13146 \emph default
13147 では何の効果も生じません。
13148 \end_layout
13149
13150 \begin_layout Itemize
13151
13152 \family sans
13153 扉裏下部
13154 \family default
13155
13156 \emph on
13157 report (koma-script)
13158 \emph default
13159 や 
13160 \emph on
13161 book (koma-script)
13162 \emph default
13163 の両面印刷において、扉裏下部に左揃え段落を生成します。片面印刷や、
13164 \emph on
13165 article (koma-script)
13166 \emph default
13167 では何の効果も生じません。
13168 \end_layout
13169
13170 \begin_layout Itemize
13171
13172 \family sans
13173 追加タイトル
13174 \family default
13175 :実際の文書の前に、整形を行わない段落から成る、特殊な「汚い」ページを生成します。
13176 \end_layout
13177
13178 \begin_layout Standard
13179 文書クラス
13180 \emph on
13181 article (koma-script)
13182 \emph default
13183
13184 \emph on
13185 report (koma-script)
13186 \emph default
13187
13188 \emph on
13189 book (koma-script)
13190 \emph default
13191 の 各レイアウトファイルは、
13192 \family typewriter
13193 scrmacros.inc
13194 \family default
13195 ファイルを読み込みます。このファイルは、ユーザ環境を定義する場所として想定されています。s
13196 \family typewriter
13197 crmacros.inc
13198 \family default
13199 を、個人用レイアウトディレクトリにコピーして編集してください!
13200 \end_layout
13201
13202 \begin_layout Subsection
13203 letter (koma-script)
13204 \end_layout
13205
13206 \begin_layout Standard
13207 \noindent
13208 文書クラス
13209 \emph on
13210 letter (koma-script)
13211 \emph default
13212 は、レイアウトファイル 
13213 \family typewriter
13214 scrlettr.layout
13215 \family default
13216 で実装されています。このレイアウトファイルには、対応する標準文書クラス
13217 \emph on
13218 letter
13219 \emph default
13220 の全段落環境が、部分的に変更を加えた形で収録されていますが、LyX固有環境の
13221 \family sans
13222 LyXコード
13223 \family default
13224
13225 \family sans
13226 コメント
13227 \family default
13228
13229 \family sans
13230 箇条書き(一覧
13231 \family default
13232 )は、新しく
13233 \family sans
13234 ラベリング
13235 \family default
13236 環境に置き換えられています。それ以外にも、標準文書クラスとは異なり、標準環境の
13237 \family sans
13238 LaTeX
13239 \family default
13240
13241 \family sans
13242 引用(字下げあり)
13243 \family default
13244
13245 \family sans
13246 引用(字下げなし)
13247 \family default
13248
13249 \family sans
13250 詩句
13251 \family default
13252 が収録されています。さらに、新しいletter固有環境がたくさん追加されています。
13253 \end_layout
13254
13255 \begin_layout Standard
13256 この文書クラスで作成した書簡の外観は、様々なLaTeXコマンドをLaTeXプリアンブルに置くことで制御することができます
13257 \begin_inset Foot
13258 status collapsed
13259
13260 \begin_layout Plain Layout
13261 例えば、名前と住所の入った書簡ヘッダの標準的外観は、きわめて頑固です。「普通の」へッダは、プリアンブル中に以下のようなコマンドを入れることで生成することができま
13262 す。
13263 \end_layout
13264
13265 \begin_layout LyX-Code
13266
13267 \backslash
13268 firsthead{
13269 \backslash
13270 parbox[b]{
13271 \backslash
13272 textwidth}
13273 \end_layout
13274
13275 \begin_layout LyX-Code
13276   {
13277 \backslash
13278 ignorespaces 
13279 \backslash
13280 fromname
13281 \backslash
13282
13283 \backslash
13284  
13285 \backslash
13286 ignorespaces 
13287 \backslash
13288 fromaddress}} 
13289 \end_layout
13290
13291 \begin_layout LyX-Code
13292
13293 \backslash
13294 nexthead{
13295 \backslash
13296 parbox[b]{
13297 \backslash
13298 textwidth}
13299 \end_layout
13300
13301 \begin_layout LyX-Code
13302   {
13303 \backslash
13304 ignorespaces 
13305 \backslash
13306 fromname 
13307 \backslash
13308 hfill 
13309 \backslash
13310 ignorespaces 
13311 \backslash
13312 pagename
13313 \backslash
13314
13315 \end_layout
13316
13317 \begin_layout LyX-Code
13318
13319 \backslash
13320 thepage}}
13321 \end_layout
13322
13323 \end_inset
13324
13325 。これらのLaTeXコマンドのドイツ語での詳細な説明は、Koma-Scriptの取扱説明書
13326 \emph on
13327 scrguide
13328 \emph default
13329 にあります。この方法で、書簡の著者は、個人用書簡レイアウトを作ることができます。
13330 \end_layout
13331
13332 \begin_layout Standard
13333
13334 \family sans
13335 書簡
13336 \family default
13337 環境および
13338 \family sans
13339 頭語
13340 \family default
13341 環境は、書簡の冒頭部を定義するもので、すべての書簡で使用しなくてはなりません。LyX文書クラスでは、これらの環境を強調するために、左余白にそれぞれ
13342 \shape italic
13343 L
13344 \shape default
13345
13346 \shape italic
13347 O
13348 \shape default
13349 という文字が表示されます。同一ファイル中には、複数の書簡を書くことができます。
13350 \family sans
13351 頭語
13352 \family default
13353 環境は、同じ受取人への書簡を新しく書き出すものであり、
13354 \family sans
13355 書簡
13356 \family default
13357 環境は、新しい受取人を生成するものです。
13358 \family sans
13359 結語
13360 \family default
13361
13362 \family sans
13363 PS
13364 \family default
13365
13366 \family sans
13367 CC
13368 \family default
13369
13370 \family sans
13371 Encl
13372 \family default
13373 は、通常の段落環境なので、同一の書簡中でも何度も使用することができます。
13374 \end_layout
13375
13376 \begin_layout Itemize
13377
13378 \family sans
13379 書簡
13380 \family default
13381 :受取人のための段落をつくり、暗黙に書簡の開始を定義します。
13382 \end_layout
13383
13384 \begin_layout Itemize
13385
13386 \family sans
13387 頭語
13388 \family default
13389 :敬称のための段落をつくり、暗黙に新しい書簡を開始します。
13390 \end_layout
13391
13392 \begin_layout Itemize
13393
13394 \family sans
13395 結語
13396 \family default
13397 :結語のための段落をつくります。
13398 \end_layout
13399
13400 \begin_layout Itemize
13401
13402 \family sans
13403 PS
13404 \family default
13405 :追伸のための段落をつくります。
13406 \end_layout
13407
13408 \begin_layout Itemize
13409
13410 \family sans
13411 CC
13412 \family default
13413 :同報一覧のための段落をつくります。
13414 \end_layout
13415
13416 \begin_layout Itemize
13417
13418 \family sans
13419 Encl
13420 \family default
13421 :同封物のための段落をつくります。
13422 \end_layout
13423
13424 \begin_layout Standard
13425
13426 \family sans
13427 名前
13428 \family default
13429
13430 \family sans
13431 署名
13432 \family default
13433
13434 \family sans
13435 住所
13436 \family default
13437
13438 \family sans
13439 電話
13440 \family default
13441
13442 \family sans
13443 場所(Place
13444 \family default
13445 )・
13446 \family sans
13447 返送先住所
13448 \family default
13449
13450 \family sans
13451 配送手段(Specialmail)
13452 \family default
13453
13454 \family sans
13455 場所
13456 \family default
13457
13458 \family sans
13459 タイトル
13460 \family default
13461
13462 \family sans
13463 主題
13464 \family default
13465 は、情報入力を促すラベルの付いた入力環境で、文書クラスが適切な処理を行います
13466 \begin_inset Foot
13467 status collapsed
13468
13469 \begin_layout Plain Layout
13470 上述の
13471 \family sans
13472 書簡
13473 \family default
13474
13475 \family sans
13476 頭語
13477 \family default
13478 が、これらのような入力環境でないのは、矛盾しているように感じられるかもしれません。しかしながら、これら2つの環境は特別の意味を持っているために、これらは左余白に
13479 一文字をマークした通常の段落環境として実装しました。さらに、
13480 \family sans
13481 頭語
13482 \family default
13483 環境と
13484 \family sans
13485 結語
13486 \family default
13487 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです。
13488 \end_layout
13489
13490 \end_inset
13491
13492 。これらの環境は、対応する
13493 \family sans
13494 頭語
13495 \family default
13496 環境の前に置く必要があります。
13497 \end_layout
13498
13499 \begin_layout Standard
13500 生成された書簡の実際の外観は、特定の環境の使い方だけではなく、他の要素にも依存するため、これらの環境をWYSIWYGとして実装することには、あまり意味がありませ
13501 ん。たとえば、
13502 \family sans
13503 署名
13504 \family default
13505 環境で入力した署名は、標準的な挙動では、同じ書簡に
13506 \family sans
13507 結語
13508 \family default
13509 環境も使用されているときのみ、書簡の出力に現れます。
13510 \family sans
13511 電話
13512 \family default
13513 環境に入力された値は、標準的な挙動では、書簡の出力には全く表示されません。書簡のヘッダを自由にデザインできることは、前出の脚注で示してあります。
13514 \end_layout
13515
13516 \begin_layout Standard
13517 入力環境は、空の段落として使うことができます。これは、たとえば
13518 \family sans
13519 署名
13520 \family default
13521 環境の場合に有効です。
13522 \family sans
13523 署名
13524 \family default
13525 環境を全く使用しない場合は、標準的な挙動では、
13526 \family sans
13527 名前
13528 \family default
13529 環境の値が署名として使用されますが、空の
13530 \family sans
13531 署名
13532 \family default
13533 環境を作成しておくと、署名の値は無定義となりません。
13534 \end_layout
13535
13536 \begin_layout Standard
13537 入力環境を使用すると、個人データ(名前や住所など)が既に入力された入力環境と、後から入力するデータの入力環境を備えた、書簡のひな型を作成することができます。
13538 \end_layout
13539
13540 \begin_layout Itemize
13541
13542 \family sans
13543 名前
13544 \family default
13545 :送り主の名前。標準的な挙動では、書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます。
13546 \end_layout
13547
13548 \begin_layout Itemize
13549
13550 \family sans
13551 署名
13552 \family default
13553 :送り主の署名。標準的な挙動では、
13554 \family sans
13555 結語
13556 \family default
13557 環境の下に表示されます。
13558 \family sans
13559 署名
13560 \family default
13561 環境を使用しないと、代わりに
13562 \family sans
13563 名前
13564 \family default
13565 環境の値が表示されます。
13566 \end_layout
13567
13568 \begin_layout Itemize
13569
13570 \family sans
13571 住所
13572 \family default
13573 :送り主の住所。標準的な挙動では、書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます。
13574 \end_layout
13575
13576 \begin_layout Itemize
13577
13578 \family sans
13579 電話
13580 \family default
13581 :送り主の電話番号。標準的な挙動では、LaTeX変数
13582 \family typewriter
13583
13584 \backslash
13585 telephonenum
13586 \family default
13587 を設定するだけです。
13588 \end_layout
13589
13590 \begin_layout Itemize
13591
13592 \family sans
13593 場所(Place)
13594 \family default
13595 :書簡を書いた場所。
13596 \end_layout
13597
13598 \begin_layout Itemize
13599
13600 \family sans
13601 日付
13602 \family default
13603 :書簡を書いた日付。
13604 \family sans
13605 場所(Place)
13606 \family default
13607
13608 \family sans
13609 日付
13610 \family default
13611 は、標準的な挙動では、受取人フィールドの下に、単一の右揃え行として場所と日付を生成します。空の
13612 \family sans
13613 日付
13614 \family default
13615 環境を作成しておくと、
13616 \family sans
13617 場所(Place)
13618 \family default
13619 の値如何に関わらず、場所も日付も表示されません。
13620 \family sans
13621 日付
13622 \family default
13623 環境を使用しない場合には、書簡を出力した日付が使用されます。
13624 \end_layout
13625
13626 \begin_layout Itemize
13627
13628 \family sans
13629 返送先住所
13630 \family default
13631 :送り主の返送先住所。標準的な挙動では、受取人の上に小文字のサンセリフ体フォントで表示されます。
13632 \end_layout
13633
13634 \begin_layout Itemize
13635
13636 \family sans
13637 特別便
13638 \family default
13639 :特別便の情報。標準的な挙動では、受取人フィールドの上かつ返送先住所の下に、下線付きで表示されます。
13640 \end_layout
13641
13642 \begin_layout Itemize
13643
13644 \family sans
13645 場所
13646 \family default
13647 :追加情報。標準的な挙動では、受取人フィールドの下の右側に表示されます。
13648 \end_layout
13649
13650 \begin_layout Itemize
13651
13652 \family sans
13653 タイトル
13654 \family default
13655 :書簡の題名。標準的な挙動では、主題の上に大きなボールド体サンセリフフォントで表示されます。
13656 \end_layout
13657
13658 \begin_layout Itemize
13659
13660 \family sans
13661 主題
13662 \family default
13663 :書簡の主題。標準的な挙動では、
13664 \family sans
13665 頭語
13666 \family default
13667 環境の上にボールド体で表示されます。
13668 \end_layout
13669
13670 \begin_layout Standard
13671
13672 \family sans
13673 Yourref・Yourmail・Myref・顧客・インボイス
13674 \family default
13675 といった環境は、
13676 \family sans
13677 タイトル
13678 \family default
13679 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
13680 ィールド行を持つ、ビジネス書簡を作成します。日付フィールドには、
13681 \family sans
13682 日付
13683 \family default
13684 環境の値が使用されます。しかしながら、これらの「ビジネス書簡環境」の一つを使用した場合には、
13685 \family sans
13686 場所(Place)
13687 \family default
13688 の値は書簡には表示されなくなり、LaTeX変数
13689 \family typewriter
13690
13691 \backslash
13692 fromplace
13693 \family default
13694 が設定させるだけになります。通常時に、受取人フィールドの下に右揃えで出力される場所と日付の出力は、抑制されます。これらのビジネス環境は、ラベル付きの入力環境とし
13695 て実装されており、対応する
13696 \family sans
13697 頭語
13698 \family default
13699 環境よりも前に置く必要があります。
13700 \end_layout
13701
13702 \begin_layout Itemize
13703
13704 \family sans
13705 Yourref
13706 \family default
13707 : Your ref.
13708 \end_layout
13709
13710 \begin_layout Itemize
13711
13712 \family sans
13713 Yourmail
13714 \family default
13715 : Your letter of.
13716 \end_layout
13717
13718 \begin_layout Itemize
13719
13720 \family sans
13721 Myref
13722 \family default
13723 : Our ref.
13724 \end_layout
13725
13726 \begin_layout Itemize
13727
13728 \family sans
13729 Customer
13730 \family default
13731 : Customer no.
13732 \end_layout
13733
13734 \begin_layout Itemize
13735
13736 \family sans
13737 Invoice
13738 \family default
13739 : Invoice no.
13740 \end_layout
13741
13742 \begin_layout Subsection
13743 新しいletterクラス:letter (koma-script v.2)
13744 \end_layout
13745
13746 \begin_layout Standard
13747 by 
13748 \noun on
13749 Jürgen Spitzmüller
13750 \begin_inset VSpace medskip
13751 \end_inset
13752
13753
13754 \end_layout
13755
13756 \begin_layout Standard
13757 \noindent
13758 Koma-Script第2.8版では、新しいletterクラス
13759 \family typewriter
13760 scrlttr2
13761 \family default
13762 が導入されたため、
13763 \family typewriter
13764 scrlettr
13765 \family default
13766 は廃止されてサポート対象外となりました。これは—LaTeX側で—全く新しいインターフェイスを持っており、旧クラスとは互換性がありません。したがって、LyXは両者
13767 をサポートしていますが、新しい方のクラスを使用することを推奨します。
13768 \end_layout
13769
13770 \begin_layout Standard
13771 このクラスは、
13772 \emph on
13773 letter (koma-script)
13774 \emph default
13775 と同一の機能に加えて、新しい機能をいくつかサポートしています。基本となる項目は、
13776 \family sans
13777 住所
13778 \family default
13779 (受取人の住所、旧レイアウトの
13780 \family sans
13781 書簡
13782 \family default
13783 と同じ)・
13784 \family sans
13785 頭語
13786 \family default
13787
13788 \family sans
13789 結語
13790 \family default
13791 です。
13792 \family sans
13793 次の住所
13794 \family default
13795 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます)。新しく付け加えられた項目は、送り主の
13796 \family sans
13797 電子メール
13798 \family default
13799
13800 \family sans
13801 URL
13802 \family default
13803
13804 \family sans
13805 ファックス
13806 \family default
13807
13808 \family sans
13809 銀行
13810 \family default
13811 、およびヘッダに(
13812 \family sans
13813 挿入\SpecialChar \menuseparator
13814
13815 \family default
13816 で)
13817 \family sans
13818 ロゴ
13819 \family default
13820 を入れることができるようになった点です。
13821 \end_layout
13822
13823 \begin_layout Standard
13824 しかしながら、もっとも大きな改善は、書簡のレイアウトを、ほとんどどんなニーズにも合わせて設定できるようになった点でしょう。これはプリアンブルか、クラスオプション
13825 として読み込まれる特別なスタイルファイル(「レタークラスオプション」、拡張子
13826 \family typewriter
13827 *.lco
13828 \family default
13829 )によって設定することができます
13830 \begin_inset Foot
13831 status collapsed
13832
13833 \begin_layout Plain Layout
13834 KOMAパッケージには、既定の
13835 \family typewriter
13836 *.lco
13837 \family default
13838 ファイルがいくつか収録されています。たとえば、ドイツの組版規則に則った
13839 \family typewriter
13840 DIN.lco
13841 \family default
13842 や、旧
13843 \family typewriter
13844 scrlettr
13845 \family default
13846 クラスの既定レイアウトを提供する
13847 \family typewriter
13848 KOMAold.lco
13849 \family default
13850 などです。たとえば後者は、
13851 \family sans
13852 文書\SpecialChar \menuseparator
13853 設定\SpecialChar \menuseparator
13854 文書クラス\SpecialChar \menuseparator
13855 クラスオプション
13856 \family default
13857 フィールドにクラスオプション
13858 \family typewriter
13859 KOMAold
13860 \family default
13861 を加えることで読み込むことができます。
13862 \end_layout
13863
13864 \end_inset
13865
13866 。用例としては、LyXに収録されているひな型
13867 \emph on
13868 koma-letter2
13869 \emph default
13870 をご覧ください。詳細な解説は、Koma-Script取扱説明書(
13871 \emph on
13872 scrguide
13873 \emph default
13874 )にあります。
13875 \end_layout
13876
13877 \begin_layout Subsection
13878 問題点
13879 \end_layout
13880
13881 \begin_layout Standard
13882 Koma-Script文書クラスをLyX上に表示する上で、LyXの内部処理が若干の問題を生じめます。
13883 \end_layout
13884
13885 \begin_layout Itemize
13886
13887 \family sans
13888
13889 \family default
13890 環境の章番号は、章見出しと同じ行ではなく、その上に表示されます。これは、レイアウトファイル中の
13891 \family sans
13892 Counter_Chapter
13893 \family default
13894 ラベル型に対するLyXの内部処理が原因です。
13895 \end_layout
13896
13897 \begin_layout Itemize
13898
13899 \family sans
13900 章(addchap)
13901 \family default
13902
13903 \family sans
13904 節(addsec)
13905 \family default
13906 環境の見出しは、「本当の」LaTeXの目次には追加されますが、LyXの目次(
13907 \family sans
13908 移動
13909 \family default
13910 メニュー)には追加されません。
13911 \end_layout
13912
13913 \begin_layout Itemize
13914
13915 \emph on
13916 letter
13917 \emph default
13918 文書クラスでの段落は、垂直スペースによる段落区切りで表示され、字下げはされません。これが標準的な挙動となっていて、特別なLaTeXコマンドは必要ありません。しか
13919 し、
13920 \family sans
13921 文書\SpecialChar \menuseparator
13922 設定
13923 \family default
13924 ダイアログでは、対応するラジオボタンは
13925 \family sans
13926 字下げ
13927 \family default
13928 に設定されています。
13929 \family sans
13930 垂直スペース
13931 \family default
13932 は、隙間を空けるために、文書にLaTeXコマンドをつねに追加するようになっていますが、この文書クラスの場合には、そのような挙動が望まれないためです。
13933 \end_layout
13934
13935 \begin_layout Section
13936 Memoir
13937 \end_layout
13938
13939 \begin_layout Standard
13940
13941 \noun on
13942 Jürgen Spitzmüller
13943 \noun default
13944
13945 \end_layout
13946
13947 \begin_layout Subsection
13948 概観
13949 \end_layout
13950
13951 \begin_layout Standard
13952 Memoirは、非常に強力で、着実に改良が加えられている文書クラスであり、フィクションとノンフィクションの文学作品用に設計されています。その目的は、ユーザーに、
13953 文書の組版に関して最大限の裁量を得させることにあります。Memoirは、標準bookクラスに基づいていますが、articleクラスをエミュレートすることもできま
13954 す(以下参照)。
13955 \end_layout
13956
13957 \begin_layout Standard
13958 Memoir開発者であるPeter Wilsonは、LaTeXの世界での、多くの便利なパッケージの作者として知られていますが、それらのほとんどは、Memoirに
13959 統合されました。このため、章のデザインや、目次や付録などのレイアウトを、はるかに簡単に行うことができます。しかしながら、LyXは、これらすべての素晴らしい機能を
13960 ネイティブでサポートしているわけではありません。これらのうちいくつかは、将来のリリースで追加されるかもしれませんが
13961 \begin_inset Foot
13962 status collapsed
13963
13964 \begin_layout Plain Layout
13965 もし提案があれば、ぜひ
13966 \begin_inset Flex URL
13967 status collapsed
13968
13969 \begin_layout Plain Layout
13970
13971 lyx-devel@lists.lyx.org
13972 \end_layout
13973
13974 \end_inset
13975
13976 までお送り下さい。
13977 \end_layout
13978
13979 \end_inset
13980
13981 、LyXのフレームワークが持つ制約のために、おそらく決して追加されることのないと考えられるものも多数あります。もちろん、ネイティブなLaTeXコマンド(TeXコ
13982 ード
13983 \begin_inset Foot
13984 status collapsed
13985
13986 \begin_layout Plain Layout
13987 【参考】詳細は、第
13988 \begin_inset CommandInset ref
13989 LatexCommand ref
13990 reference "sec:LaTeXコードを挿入する"
13991
13992 \end_inset
13993
13994 節参照。
13995 \end_layout
13996
13997 \end_inset
13998
13999 )の助けを借りれば、全機能を使用できます。この節では、LyXがネイティブにサポートしている機能についてのみ、列挙するものとします。詳細な説明(および他の機能)に
14000 ついては、Memoirクラスの詳しい取扱説明書
14001 \begin_inset Foot
14002 status collapsed
14003
14004 \begin_layout Plain Layout
14005 【参考】
14006 \begin_inset Flex URL
14007 status collapsed
14008
14009 \begin_layout Plain Layout
14010
14011 CTAN:/macros/latex/memoir/memman.pdf
14012 \end_layout
14013
14014 \end_inset
14015
14016
14017 \end_layout
14018
14019 \end_inset
14020
14021 をご覧になることをお勧めします。この取扱説明書は、本クラスのユーザーの手引きであるのみに留まらず、良い組版に関する包括的な解説であり、それ自身が良い組版の傑出し
14022 た用例となっています。
14023 \end_layout
14024
14025 \begin_layout Subsection
14026 基本的な機能と制約
14027 \end_layout
14028
14029 \begin_layout Standard
14030 Memoirは、基本的に、標準bookクラスの全機能をサポートしています。しかしながら、以下に示すような若干の違いがあります。
14031 \end_layout
14032
14033 \begin_layout Description
14034 フォント寸法: Memoirでは、9・10・11・12・14・17と、より広い範囲のフォント寸法が使用可能です。
14035 \end_layout
14036
14037 \begin_layout Description
14038 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため、LaTeXが混乱さ
14039 せられます)、fancyページ様式は使用できません。その代わり、Memoirには、多くの独自のページ様式が付属してきます(
14040 \family sans
14041 文書\SpecialChar \menuseparator
14042 設定\SpecialChar \menuseparator
14043 ページレイアウト
14044 \family default
14045 参照)。これらを章題ページに使用したい場合には、コマンド
14046 \family typewriter
14047
14048 \backslash
14049 chapterstyle
14050 \family default
14051 を、本文またはプリアンブルに記述する必要があります(例えば、
14052 \family typewriter
14053
14054 \backslash
14055 chapterstyle{companion}
14056 \family default
14057 など)。
14058 \end_layout
14059
14060 \begin_layout Description
14061 節分け: 標準クラスでは、節分けコマンド(章・節・小節等)は、非必須引数を一つ取ることができます。これを用いて、目次やヘッダ用に別のタイトルを指定することができ
14062 ます(たとえば、タイトルが長すぎる場合などに用います)。LyXでは、章や節の始めで
14063 \family sans
14064 挿入\SpecialChar \menuseparator
14065 短縮タイトル
14066 \family default
14067 を使えば、これを指定することができます。一方、Memoirでは、第2の非必須引数を取ることができ、目次用のタイトルとヘッダ用のタイトルの指定を分離しています。こ
14068 れを使えば、本文用と目次用とヘッダ用のタイトルの3種類を指定することができます。この機能を使用したい場合には、2つの非必須引数を入力して、最初のものに目次用、次
14069 のものにヘッダ用短縮タイトルを入れてください。
14070 \end_layout
14071
14072 \begin_layout Description
14073 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では、目次と図一覧および表一覧は、自動的に新規頁に置かれます。Memoirは、これとは別の方針を採り
14074 ます。改頁を行いたい場合は、手動で頁区切りを入れなくてはなりません。
14075 \end_layout
14076
14077 \begin_layout Description
14078 タイトル頁: 理由は不明ですが、Memoirはタイトルページに丁付けを行います(標準クラスでは、タイトルページは「empty」様式、すなわち丁付けを行いません)
14079 。タイトル頁に丁付けを行いたくない場合には、プリアンブルに
14080 \family typewriter
14081
14082 \backslash
14083 aliaspagestyle{title}{empty}
14084 \family default
14085 と入力してください。
14086 \end_layout
14087
14088 \begin_layout Description
14089 Article: クラスオプション
14090 \emph on
14091 article
14092 \emph default
14093 を用いる(
14094 \family sans
14095 文書\SpecialChar \menuseparator
14096 設定\SpecialChar \menuseparator
14097 クラスオプション
14098 \family default
14099 で入力)と、article様式をエミュレートできます。すなわち、(脚注・図・表等の)カウンタは、章毎にリセットされず、次の章は頁を改めず(ただし、「本物の」ar
14100 ticleクラスとは違って、頁を改めることも可)、部はbookクラスと同様に、独立の頁を使用します。
14101 \end_layout
14102
14103 \begin_layout Description
14104 Oldfontcommands: LaTeX旧2.09版で使用されていた旧いフォントコマンド(
14105 \family typewriter
14106
14107 \backslash
14108 rm
14109 \family default
14110
14111 \family typewriter
14112
14113 \backslash
14114 it
14115 \family default
14116 など)は、Memoirにおいては、既定では使用することができません。Memoirがこれらのコマンドを検知すると、エラーを発してLaTeXを停止させます。しかし、
14117 クラスオプション
14118 \emph on
14119 oldfontcommands
14120 \emph default
14121 を指定すると、これらのコマンドが容認され、エラーの代わりに警告を発するのみとなります(これによって、少なくともLaTeXは停止しなくなります)。まだ、多くのパッ
14122 ケージと、就中多くのBibTeXスタイルファイルが、これらのコマンドを使用しているので、我々はこのオプションを既定で使うこととしました。
14123 \end_layout
14124
14125 \begin_layout Subsection
14126 追加された機能
14127 \end_layout
14128
14129 \begin_layout Standard
14130 LyXでサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう。詳しくはMemoirの取扱説明書
14131 \begin_inset Foot
14132 status collapsed
14133
14134 \begin_layout Plain Layout
14135 \begin_inset Flex URL
14136 status collapsed
14137
14138 \begin_layout Plain Layout
14139
14140 CTAN:/macros/latex/memoir/memman.pdf
14141 \end_layout
14142
14143 \end_inset
14144
14145
14146 \end_layout
14147
14148 \end_inset
14149
14150 を見てください。
14151 \end_layout
14152
14153 \begin_layout Description
14154 概要: 概要が、追加された機能として扱われているのを不思議に思われるかもしれませんが、bookクラスとしては追加された機能なのです。通常bookクラスには概要は
14155 ないのですが、memoirにはあります。これは、どこでも何回でも自由に使うことができます。
14156 \end_layout
14157
14158 \begin_layout Description
14159 章要約: この古い組版様式はご覧になったことがあるかも知れません。章の内容が、見出しの下と目次に要約されているものです(たとえば、「我らが英雄がトロヤに到着する
14160 。彼は友人を失うが、新たな友人を得る。」など)。章要約(chapterprecis)はこれを行います。したがって、章要約は章の下でのみ意味を持ちます。
14161 \end_layout
14162
14163 \begin_layout Description
14164 題辞: 題辞(epigraph)は章頭の、気の利いた標語やモットーです。題辞環境は、そのような標語を組む洗練された方法を提供します。標語本体(本文)とその著者(
14165 出典)は、短い線で区切られます。この環境には二つの引数(本文と出典)が必要なので、ここでもLyXを少しだます必要があります。ここでは、2つの引数の間に、
14166 \emph on
14167 <標語>
14168 \family typewriter
14169 \emph default
14170 }{
14171 \family default
14172 \emph on
14173 <標語の著者>
14174 \emph default
14175 のように、(TeXモードで)波括弧を入れなくてはなりません。
14176 \end_layout
14177
14178 \begin_layout Description
14179 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが、LyXは、そのうちいくつかしかサポートしていません。詩題はその一
14180 つです。これは詩用の中央揃えタイトルで、目次にも表示されます(詩句が詩の標準環境です。Memoirには、詩句の拡張版もありますが、これらを使うためにはTeXコー
14181 ドを使用しなくてはなりません。これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが、LyXではそれができないためです)。
14182 \end_layout
14183
14184 \begin_layout Description
14185 詩題*: 目次に現れない他は詩題と同じです。
14186 \end_layout
14187
14188 \begin_layout Section
14189 Article(mwart)・book(mwbk)・report(mwrep)
14190 \begin_inset Argument 1
14191 status collapsed
14192
14193 \begin_layout Plain Layout
14194
14195 \family typewriter
14196 mw
14197 \family default
14198 クラス
14199 \end_layout
14200
14201 \end_inset
14202
14203
14204 \end_layout
14205
14206 \begin_layout Standard
14207
14208 \noun on
14209 Tomasz Luczak
14210 \noun default
14211
14212 \end_layout
14213
14214 \begin_layout Standard
14215 LyX文書クラス
14216 \emph on
14217 article (mwart)
14218 \emph default
14219
14220 \emph on
14221 report (mwrep)・book
14222 \emph default
14223  
14224 \emph on
14225 (mwbk)
14226 \emph default
14227 は、それぞれLaTeX文書クラス
14228 \family typewriter
14229 mwart.cls
14230 \family default
14231
14232 \family typewriter
14233 mwrep.cls
14234 \family default
14235
14236 \family typewriter
14237 mwbk.cls
14238 \family default
14239 に対応しています。これらは、標準の
14240 \family typewriter
14241 article.cls
14242 \family default
14243
14244 \family typewriter
14245 report.cls
14246 \family default
14247
14248 \family typewriter
14249 book.cls
14250 \family default
14251 を代替するものであり、多くの点で、ポーランド語の組版慣習によく適合しています。
14252 \end_layout
14253
14254 \begin_layout Standard
14255 基本的な違いは、次の点です。
14256 \end_layout
14257
14258 \begin_layout Itemize
14259 付番のない見出し(
14260 \family sans
14261 節*
14262 \family default
14263 などの星付き)も目次に加えられます。
14264 \end_layout
14265
14266 \begin_layout Itemize
14267 以下のページスタイルの追加
14268 \end_layout
14269
14270 \begin_deeper
14271 \begin_layout Description
14272 uheadings 分離線付きヘッダ
14273 \end_layout
14274
14275 \begin_layout Description
14276 myheadings 
14277 \family typewriter
14278
14279 \backslash
14280 markright
14281 \family default
14282 コマンドおよび
14283 \family typewriter
14284
14285 \backslash
14286 markboth
14287 \family default
14288 コマンドで設定するカスタムヘッダ
14289 \end_layout
14290
14291 \begin_layout Description
14292 myuheadings 分離線付きカスタムヘッダ
14293 \end_layout
14294
14295 \begin_layout Description
14296 outer ページの外側にページ番号
14297 \end_layout
14298
14299 \end_deeper
14300 \begin_layout Itemize
14301 オプション
14302 \end_layout
14303
14304 \begin_deeper
14305 \begin_layout Description
14306 rmheadings セリフ体見出し --- 既定
14307 \end_layout
14308
14309 \begin_layout Description
14310 sfheadings サンセリフ体見出し
14311 \end_layout
14312
14313 \begin_layout Description
14314 authortitle タイトルページは、著者名・タイトルの順で配置 --- 既定
14315 \end_layout
14316
14317 \begin_layout Description
14318 titleauthor タイトルページは、タイトル・著者名の順で配置
14319 \end_layout
14320
14321 \begin_layout Description
14322 withmarginpar ページ上に余白のための場所を確保
14323 \end_layout
14324
14325 \end_deeper
14326 \begin_layout Section
14327 Paper
14328 \end_layout
14329
14330 \begin_layout Standard
14331
14332 \family sans
14333 paper
14334 \family default
14335 文書クラスは標準
14336 \family sans
14337 article
14338 \family default
14339 クラスの代替となるものです。これは
14340 \family sans
14341 同様の
14342 \family default
14343 機能を提供しますが、サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません。
14344 \end_layout
14345
14346 \begin_layout Section
14347 RevTeX4
14348 \end_layout
14349
14350 \begin_layout Standard
14351 by 
14352 \noun on
14353 Amir Karger
14354 \end_layout
14355
14356 \begin_layout Standard
14357 \begin_inset VSpace bigskip
14358 \end_inset
14359
14360
14361 \end_layout
14362
14363 \begin_layout Standard
14364 \noindent
14365
14366 \family sans
14367 Revtex
14368 \begin_inset space ~
14369 \end_inset
14370
14371 4
14372 \family default
14373 テキストクラスは、アメリカ物理学会のRevTeX 4.0(1999年5月の
14374 \begin_inset Formula $\beta$
14375 \end_inset
14376
14377 リリース)クラスで動作します。
14378 \end_layout
14379
14380 \begin_layout Standard
14381 LyXには、RevTeX 3.1で動作する
14382 \family sans
14383 Revtex
14384 \family default
14385 テキストクラスもあります。しかしながら、第3.1版はLaTeX 2.09で動作するものであり、基本的に時代遅れなものになっています。LyXはLaTeX2eを必要とす
14386 ることから、第3.1版はLyXとうまく協調しないことを意味しますが、動作するようには調整してあります。RevTeX 4.0は、LaTeX2eで素直に動作するようにデ
14387 ザインされているので、LyXと
14388 \family sans
14389 RevTeX
14390 \begin_inset space ~
14391 \end_inset
14392
14393 4
14394 \family default
14395 テキストクラスの組で使用するのは、たいへん簡単です。
14396 \end_layout
14397
14398 \begin_layout Standard
14399 この取扱説明書は、RevTeX 4.0の説明書の
14400 \emph on
14401 補完
14402 \emph default
14403 として使用されることを前提としています。したがって、ここではRevTeX固有マクロの説明はせず、必要な場合にはプリアンブルに何と書けば良いかを知っているものとし
14404 て説明します。
14405 \end_layout
14406
14407 \begin_layout Subsection
14408 導入
14409 \end_layout
14410
14411 \begin_layout Standard
14412 RevTeX 4パッケージのREADMEファイルにあるとおり、ともかくRevTeX 4を導入しなくてはなりません。パッケージは、The RevTeX
14413  4 Web Site 
14414 \begin_inset Flex URL
14415 status collapsed
14416
14417 \begin_layout Plain Layout
14418
14419 http://publish.aps.org/revtex4/
14420 \end_layout
14421
14422 \end_inset
14423
14424 から入手することができます。これをLaTeXが検出することのできる場所に導入してください。それから、適当に選んだディレクトリ(もといクラスファイルを導入したのと
14425 は異なるディレクトリ)で簡単なRevTeX 4文書を LaTeXでコンパイルできるかどうか確認してください。この後、LyXを再初期設定すると、クラスファイルを検
14426 出し、RevTeX4テキストクラスが使用できるようになるはずです。
14427 \end_layout
14428
14429 \begin_layout Standard
14430 使い始めるには、
14431 \family typewriter
14432 tex2lyx
14433 \family default
14434 を使ってRevTeX 4文書を読み込むか、またはひな型ディレクトリにある
14435 \family sans
14436 Revtex
14437 \begin_inset space ~
14438 \end_inset
14439
14440 4
14441 \family default
14442 のひな型を使うのが、おそらく一番簡単な方法でしょう。
14443 \end_layout
14444
14445 \begin_layout Subsection
14446 プリアンブルに関すること
14447 \end_layout
14448
14449 \begin_layout Standard
14450
14451 \family typewriter
14452
14453 \backslash
14454 documentclass
14455 \family default
14456 に与える「preprint」や「aps」のような非必須引数は、他のクラス同様、
14457 \family sans
14458 文書\SpecialChar \menuseparator
14459 設定\SpecialChar \menuseparator
14460 文書クラス
14461 \family default
14462
14463 \family sans
14464 クラスオプション
14465 \family default
14466 フィールドに入れます。RevTeXでは、少なくとも一つの非必須引数が必要なことに注意してください。
14467 \end_layout
14468
14469 \begin_layout Standard
14470
14471 \family typewriter
14472
14473 \backslash
14474 draft
14475 \family default
14476 など他のプリアンブルは、他のクラス同様、
14477 \family sans
14478 文書\SpecialChar \menuseparator
14479 設定\SpecialChar \menuseparator
14480 LaTeXプリアンブル
14481 \family default
14482 に入れてください。
14483 \end_layout
14484
14485 \begin_layout Subsection
14486 レイアウト
14487 \end_layout
14488
14489 \begin_layout Standard
14490 レイアウトは、基本的にRevTeX4.0のコマンドに対応しています。たとえば、Emailレイアウトは、
14491 \family typewriter
14492
14493 \backslash
14494 email{}
14495 \family default
14496 に対応しています。(少なくともRevTeX 4.0 Beta現在では)
14497 \family sans
14498 住所
14499 \family default
14500
14501 \family sans
14502 所属
14503 \family default
14504 はまったく同じものなので、両方を使う必要はありません
14505 \begin_inset Foot
14506 status collapsed
14507
14508 \begin_layout Plain Layout
14509 ついでながら、
14510 \family typewriter
14511 tex2lyx
14512 \family default
14513 は両方とも対応しているので、
14514 \family typewriter
14515
14516 \backslash
14517 address
14518 \family default
14519
14520 \family typewriter
14521
14522 \backslash
14523 affiliation
14524 \family default
14525 のどちらも翻訳することができます。
14526 \end_layout
14527
14528 \end_inset
14529
14530
14531 \end_layout
14532
14533 \begin_layout Subsection
14534 重要な注意
14535 \end_layout
14536
14537 \begin_layout Standard
14538 RevTeX 4には、バグを引き起こしがちなために、気をつけなくてはならない特殊な面がいくつかあるため、LyXではさらに気をつけなくてはなりません。
14539 \end_layout
14540
14541 \begin_layout Standard
14542 RevTeXでは、
14543 \family typewriter
14544
14545 \backslash
14546 thanks
14547 \family default
14548 コマンドは、
14549 \family typewriter
14550
14551 \backslash
14552 author
14553 \family default
14554 コマンドの
14555 \emph on
14556 外側
14557 \emph default
14558 に来なくてはなりません。LyXでは、独立した
14559 \family sans
14560 感謝
14561 \family default
14562 レイアウトがこの働きをします。直接
14563 \family sans
14564 、著者
14565 \family default
14566 レイアウトに脚注を付けてしまうと、おかしなことが起こる可能性があります。詳細については、RevTeX 4の取扱説明書をご覧ください。
14567 \end_layout
14568
14569 \begin_layout Standard
14570 また、
14571 \family sans
14572 著者電子メール
14573 \family default
14574
14575 \family sans
14576 著者URL・感謝(thanks)
14577 \family default
14578 レイアウトは、
14579 \family sans
14580 著者
14581 \family default
14582 レイアウトと
14583 \family sans
14584 住所(
14585 \family default
14586 または同等の
14587 \family sans
14588 所属
14589 \family default
14590 )レイアウトの間に置かなければなりません。
14591 \family sans
14592 感謝(thanks)
14593 \family default
14594
14595 \family sans
14596 住所
14597 \family default
14598 の後に置いてしまうと、LaTeXはコンパイルに失敗します。
14599 \end_layout
14600
14601 \begin_layout Subsection
14602 問題点
14603 \end_layout
14604
14605 \begin_layout Standard
14606 このレイアウトの主な問題点は、電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません。例
14607 えば、節レイアウトも非必須引数を使用することができません)。これは、たとえばページヘッダにヘッダ用タイトルを設定したい場合などには、ファイルをLaTeXファイル
14608 に変換した後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません)、テキストエディタを使ってLaTeXファイルを編集し、非必須引数を書き加えなくては
14609 ならないということです。これらのレイアウトがないと、
14610 \family typewriter
14611
14612 \backslash
14613 altaffiliation
14614 \family default
14615 (またそれと同等な
14616 \family typewriter
14617
14618 \backslash
14619 altaddress
14620 \family default
14621 )は使えませんので、対応するレイアウトは存在せず、手動で書き加える必要があります
14622 \begin_inset Foot
14623 status collapsed
14624
14625 \begin_layout Plain Layout
14626
14627 \emph on
14628 JMarcからの註:
14629 \emph default
14630  実は、LyX 1.3.0 では非必須引数を一部サポートしているのですが、このレイアウトは、まだこの機能を使うようにはアップデートされていないのです。
14631 \end_layout
14632
14633 \end_inset
14634
14635
14636 \end_layout
14637
14638 \begin_layout Section
14639 Springer学術誌(
14640 \family sans
14641 svjour)
14642 \end_layout
14643
14644 \begin_layout Standard
14645
14646 \noun on
14647 Martin Vermeer
14648 \noun default
14649
14650 \end_layout
14651
14652 \begin_layout Subsection
14653 説明
14654 \end_layout
14655
14656 \begin_layout Standard
14657 これは、Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです。
14658 \begin_inset Flex URL
14659 status collapsed
14660
14661 \begin_layout Plain Layout
14662
14663 http://www.springer.de/author/tex/help-journals.html
14664 \end_layout
14665
14666 \end_inset
14667
14668 に必要なクラスファイル(LaTeX2e用になりました)とそれに対応する学術誌の一覧があります。このレイアウトはモジュール式になっています。つまり、全ジャーナル共
14669 通部分は
14670 \family typewriter
14671 svjour.inc
14672 \family default
14673 に実装されており、各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
14674 \family typewriter
14675 svjog.layout
14676 \family default
14677 など)から取り込むことができます。
14678 \end_layout
14679
14680 \begin_layout Standard
14681 このことは、上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには、
14682 \family typewriter
14683 svjog.layout
14684 \family default
14685 に書かれている指示に従って、自作の
14686 \family typewriter
14687 sv
14688 \family default
14689 <学術誌名>
14690 \family typewriter
14691 .layout
14692 \family default
14693 を書くだけで良いことを意味します。
14694 \end_layout
14695
14696 \begin_layout Standard
14697 このレイアウトは、Journal of Geodesyに対してのみ、充分な試験が為されています。
14698 \family typewriter
14699 svjour
14700 \family default
14701
14702 \family typewriter
14703 svjog
14704 \family default
14705 は、標準LyX頒布版に収録済みです。関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し、LaTeXを再設定した後(teT
14706 eXの場合は、必要に応じてroot権限で
14707 \family typewriter
14708 texhash
14709 \family default
14710 を実行します)、LyXを再初期設定すれば、動作するはずです。
14711 \end_layout
14712
14713 \begin_layout Subsection
14714 新スタイル
14715 \end_layout
14716
14717 \begin_layout Standard
14718 多くの定理環境 --- 
14719 \family sans
14720 主張
14721 \family default
14722
14723 \family sans
14724 推論
14725 \family default
14726 ・\SpecialChar \ldots{}
14727
14728 \family sans
14729 定理
14730 \family default
14731
14732 \end_layout
14733
14734 \begin_layout Standard
14735
14736 \family sans
14737 ヘッドノート
14738 \family default
14739
14740 \family sans
14741 献呈
14742 \family default
14743
14744 \family sans
14745 サブタイトル・ヘッダ用LaTeXタイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(ackno
14746 wledgement)
14747 \family default
14748 。詳しくは Springerのクラスファイルの説明書を読んでください。
14749 \end_layout
14750
14751 \begin_layout Subsection
14752 サポートしているジャーナル
14753 \end_layout
14754
14755 \begin_layout Itemize
14756
14757 \emph on
14758 Journal of Geodesy
14759 \emph default
14760
14761 \family typewriter
14762 svjog.layout
14763 \family default
14764  --- Martin Vermeer
14765 \end_layout
14766
14767 \begin_layout Itemize
14768
14769 \emph on
14770 Probability Theory and Related Fields
14771 \emph default
14772
14773 \family typewriter
14774 svprobth.layout
14775 \family default
14776  --- Jean-Marc Lasgouttes
14777 \end_layout
14778
14779 \begin_layout Standard
14780 あなた自身のレイアウトファイルをつくってください。難しくはありません。
14781 \end_layout
14782
14783 \begin_layout Subsection
14784 Credits
14785 \end_layout
14786
14787 \begin_layout Standard
14788 これらのファイルは、以前の 
14789 \family typewriter
14790 ejour2.layout
14791 \family default
14792 をもとにしています。
14793 \family typewriter
14794 ejour2.layout
14795 \family default
14796 は SpringerのLaTeX 2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです。これらのファイルはすでにありません。Jean-Mar
14797 c Lasgouttesのおかげで LyXのレイアウトファイルのメカニズムをよりよく理解することができました。
14798 \end_layout
14799
14800 \begin_layout Subsection
14801 バグ
14802 \end_layout
14803
14804 \begin_layout Standard
14805 多分あります。以前の 
14806 \family typewriter
14807 ejour2
14808 \family default
14809 よりは少なくなっているとは思いますが。
14810 \end_layout
14811
14812 \begin_layout Standard
14813 制限事項:定理環境の環境の番号は表示されません。#が表示されるだけです。
14814 \end_layout
14815
14816 \begin_layout Section
14817 Slides(別名
14818 \noun on
14819 SliTeX
14820 \noun default
14821
14822 \begin_inset Foot
14823 status collapsed
14824
14825 \begin_layout Plain Layout
14826 (訳註)この節の内容は、全般的に古くなっています。
14827 \end_layout
14828
14829 \end_inset
14830
14831
14832 \begin_inset CommandInset label
14833 LatexCommand label
14834 name "sec:slitex"
14835
14836 \end_inset
14837
14838
14839 \end_layout
14840
14841 \begin_layout Standard
14842
14843 \noun on
14844 John Weiss
14845 \noun default
14846
14847 \end_layout
14848
14849 \begin_layout Subsection
14850 はじめに
14851 \end_layout
14852
14853 \begin_layout Standard
14854 本節では、オーバーへッドプロジェクタ用のスライドをつくるのに、LyXをどのように使えばよいかを説明します。これを行う文書クラスには、既定のslideクラスと
14855 \family sans
14856 FoilTeX
14857 \family default
14858 スライドクラスの2つがあります。本節は前者について説明を行います。
14859 \end_layout
14860
14861 \begin_layout Standard
14862 誤解のないように、正しく明確に、もう一度言っておきます。
14863 \end_layout
14864
14865 \begin_layout Standard
14866 \begin_inset VSpace bigskip
14867 \end_inset
14868
14869
14870 \end_layout
14871
14872 \begin_layout Standard
14873 \align center
14874
14875 \size large
14876 本節は文書クラス
14877 \begin_inset Quotes eld
14878 \end_inset
14879
14880
14881 \family sans
14882 transparencies (slides)
14883 \family default
14884
14885 \begin_inset Quotes erd
14886 \end_inset
14887
14888
14889 \emph on
14890 のみ
14891 \emph default
14892 を説明しています。
14893 \end_layout
14894
14895 \begin_layout Standard
14896 \begin_inset VSpace bigskip
14897 \end_inset
14898
14899
14900 \end_layout
14901
14902 \begin_layout Standard
14903
14904 \family sans
14905 「slides (FoilTeX)
14906 \family default
14907 」の説明をお探しならば、第
14908 \begin_inset CommandInset ref
14909 LatexCommand ref
14910 reference "sec:foiltex"
14911
14912 \end_inset
14913
14914 節をご覧ください。
14915 \family sans
14916 foils
14917 \family default
14918 クラス「
14919 \family sans
14920 slides (FoilTeX)
14921 \family default
14922 」は、実際、本節で説明している既定
14923 \family sans
14924 slides
14925 \family default
14926 クラスよりも良いようです
14927 \begin_inset Foot
14928 status collapsed
14929
14930 \begin_layout Plain Layout
14931 \SpecialChar \ldots{}
14932
14933 \family sans
14934 FoilTeX
14935 \family default
14936 の支持者からは聞いています。けれども私は使ったことがないので、本当かどうか確かめようがありません。
14937 \end_layout
14938
14939 \end_inset
14940
14941
14942 \end_layout
14943
14944 \begin_layout Standard
14945 このクラスは、旧SLITeXパッケージをLaTeX2e用に改良したものです。LaTeX2e頒布版すべてが、このクラス(以下では単に「
14946 \family sans
14947 slides
14948 \family default
14949 」と述べることにします)を含んでいるので、あなたもお持ちのはずです。前述の
14950 \family sans
14951 foils
14952 \family default
14953 のように、同じくオーバーへッドプロジェクタ用のスライドを生成しながら、このクラスよりも良い仕事をするクラスもあります。しかしながら、オーバーレイを生成するなど、
14954 他のクラスにはできないが
14955 \family sans
14956 slides
14957 \family default
14958 ならばできることもあります。詳しくは以下をお読みください。
14959 \end_layout
14960
14961 \begin_layout Subsection
14962 使い始めるには
14963 \begin_inset CommandInset label
14964 LatexCommand label
14965 name "sec:slidesetup"
14966
14967 \end_inset
14968
14969
14970 \end_layout
14971
14972 \begin_layout Standard
14973 当然ながら、この文書クラスを使用するには、
14974 \family sans
14975 文書\SpecialChar \menuseparator
14976 設定
14977 \family default
14978 ダイアログのクラスリストから「
14979 \family sans
14980 transparencies (slides)
14981 \family default
14982 」を選択しなくてはなりません。このクラスについて、以下のように、特に知っておいた方が良いことがいくつかあります。
14983 \end_layout
14984
14985 \begin_layout Itemize
14986
14987 \family sans
14988 用紙方向
14989 \family default
14990
14991 \family sans
14992 二段組文書
14993 \family default
14994 の各オプションは、あえて変更する必要はありません。これらのオプションは、
14995 \family sans
14996 slides
14997 \family default
14998 クラスではサポートされていないので、効果がありません。
14999 \end_layout
15000
15001 \begin_layout Itemize
15002
15003 \family sans
15004 ヘディング様式
15005 \family default
15006 オプションは、このクラスでは少し異なった振る舞いをします。各選択肢とその機能は、以下の通りです。
15007 \end_layout
15008
15009 \begin_deeper
15010 \begin_layout Description
15011 プレーン(plain) 最終出力の右下隅にページ番号が付きます。
15012 \end_layout
15013
15014 \begin_layout Description
15015 設定(headings)
15016 \family sans
15017  プレーン(plain)
15018 \family default
15019 と同様ですが、それ以外にあなたが指定したタイムマーカーをすべて出力します。これが既定値です。
15020 \end_layout
15021
15022 \begin_layout Description
15023 空 最終出力には、ページ番号もタイムマーカーも位置揃えマーカーも出力されません。
15024 \end_layout
15025
15026 \end_deeper
15027 \begin_layout Itemize
15028
15029 \family sans
15030 slides
15031 \family default
15032 クラスには、もう一つ
15033 \family typewriter
15034 clock
15035 \family default
15036 というオプションがあります。これを使用するには、
15037 \family sans
15038 クラスオプション
15039 \family default
15040 に「
15041 \family typewriter
15042 clock
15043 \family default
15044 」と入力してください。
15045 \end_layout
15046
15047 \begin_deeper
15048 \begin_layout Standard
15049 このオプションを使うと、
15050 \family sans
15051 注釈
15052 \family default
15053 にタイムマーカーを加えることができます。詳細は、第
15054 \begin_inset CommandInset ref
15055 LatexCommand ref
15056 reference "sec:スライド注釈"
15057
15058 \end_inset
15059
15060 節をご覧ください。
15061 \end_layout
15062
15063 \end_deeper
15064 \begin_layout Standard
15065
15066 \family sans
15067 slides
15068 \family default
15069 クラスを用いた文書を自動的にセットアップするには、ひな型ファイル「
15070 \family typewriter
15071 slides.lyx
15072 \family default
15073 」を使用することもできます(新規ファイルを開く際に
15074 \family sans
15075 ファイル\SpecialChar \menuseparator
15076 新規(ひな型使用)
15077 \family default
15078 を使用してください)。ひな型ファイルには、このクラスが使用する特別な段落環境の用例も含まれています。これらについては、以下で説明します。
15079 \end_layout
15080
15081 \begin_layout Subsection
15082 段落環境
15083 \end_layout
15084
15085 \begin_layout Subsubsection
15086
15087 \family sans
15088 サポートされている環境
15089 \end_layout
15090
15091 \begin_layout Standard
15092 新しく
15093 \family sans
15094 slides
15095 \family default
15096 文書を開いたときにまず気付くのは、フォント寸法とフォント族の違いでしょう。ここでは、
15097 \family sans
15098 サンセリフ体
15099 \family default
15100 フォントの
15101 \family sans
15102 極大
15103 \family default
15104 寸法が用いられており、出力でもこのフォントが使用されます。これは、現在スライドを作成中であることの「目印」だと考えてください。出力スライドは大きなフォントを使用
15105 するため、書ける場所は少なくなります。もちろん、既定の大きな画面フォントはWYSIWYGではなく、スライドであることの目印に過ぎません。
15106 \end_layout
15107
15108 \begin_layout Standard
15109 次に気付くのは、(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう。通常見かける環境の多くがなくなって、代わりに5つの新しい環境が入ってい
15110 ます。これは、
15111 \family sans
15112 slides
15113 \family default
15114 クラスが、標準段落環境のうち以下のものしかサポートしていないためです。
15115 \end_layout
15116
15117 \begin_layout Itemize
15118
15119 \family sans
15120 標準
15121 \end_layout
15122
15123 \begin_layout Itemize
15124
15125 \family sans
15126 箇条書き(記号)
15127 \end_layout
15128
15129 \begin_layout Itemize
15130
15131 \family sans
15132 箇条書き(連番)
15133 \end_layout
15134
15135 \begin_layout Itemize
15136
15137 \family sans
15138 箇条書き(記述)
15139 \end_layout
15140
15141 \begin_layout Itemize
15142
15143 \family sans
15144 箇条書き(一覧)
15145 \end_layout
15146
15147 \begin_layout Itemize
15148
15149 \family sans
15150 引用(字下げあり)
15151 \end_layout
15152
15153 \begin_layout Itemize
15154
15155 \family sans
15156 引用(字下げなし)
15157 \end_layout
15158
15159 \begin_layout Itemize
15160
15161 \family sans
15162 詩句
15163 \end_layout
15164
15165 \begin_layout Itemize
15166
15167 \family sans
15168 キャプション
15169 \end_layout
15170
15171 \begin_layout Itemize
15172
15173 \family sans
15174 LyXコード
15175 \end_layout
15176
15177 \begin_layout Itemize
15178
15179 \family sans
15180 コメント
15181 \end_layout
15182
15183 \begin_layout Standard
15184 これ以外の標準的な環境、例えば節見出し用の環境などは
15185 \family sans
15186 slides
15187 \family default
15188 クラスでは使えません。
15189 \end_layout
15190
15191 \begin_layout Standard
15192 一方、以下の新しい環境があります。
15193 \end_layout
15194
15195 \begin_layout Itemize
15196
15197 \family sans
15198 スライド
15199 \end_layout
15200
15201 \begin_layout Itemize
15202
15203 \family sans
15204 オーバーレイ
15205 \end_layout
15206
15207 \begin_layout Itemize
15208
15209 \family sans
15210 注釈
15211 \end_layout
15212
15213 \begin_layout Itemize
15214
15215 \family sans
15216 不可視文
15217 \end_layout
15218
15219 \begin_layout Itemize
15220
15221 \family sans
15222 可視文
15223 \end_layout
15224
15225 \begin_layout Standard
15226 これら5つの環境は、LyXの「機能」のために使い方に癖があります。ご存じのように、LyXでは、空の段落環境に他の環境を入れることができません。それ自体は素晴らし
15227 いデザインなのですが、これは、スライドを平文以外では書き始めることができないことを意味します。これを取り扱うためには、ちょっとした「LaTeXマジック」が必要に
15228 なります。
15229 \end_layout
15230
15231 \begin_layout Subsubsection
15232 新環境の癖
15233 \begin_inset CommandInset label
15234 LatexCommand label
15235 name "sec:スライドの癖"
15236
15237 \end_inset
15238
15239
15240 \end_layout
15241
15242 \begin_layout Standard
15243 5つの新しい環境にはすべて、LyX現行版の制約に由来する癖があります。いま述べたように、LyXでは、環境を別の環境で開始することが禁止されています。これを回避す
15244 るために、
15245 \family sans
15246 スライド
15247 \family default
15248 環境は『
15249 \emph on
15250 ユーザーの手引き
15251 \emph default
15252 』で述べられているような段落環境ではなくなっています。
15253 \end_layout
15254
15255 \begin_layout Standard
15256
15257 \family sans
15258 スライド
15259 \family default
15260
15261 \family sans
15262 オーバーレイ
15263 \family default
15264
15265 \family sans
15266 注釈
15267 \family default
15268 は「疑似環境」だとお考えください。これらは節見出しや「
15269 \family sans
15270 キャプション
15271 \family default
15272 」のように見えますが、実際には(必要なら前段落を終了して)新しい段落環境を開始します。同様に、
15273 \family sans
15274 不可視文
15275 \family default
15276
15277 \family sans
15278 可視文
15279 \family default
15280 も「疑似コマンド」とお考えください。この2つは特定のアクションを行います。
15281 \end_layout
15282
15283 \begin_layout Standard
15284
15285 \family sans
15286 スライド
15287 \family default
15288
15289 \family sans
15290 オーバーレイ
15291 \family default
15292
15293 \family sans
15294 注釈
15295 \family default
15296
15297 \family sans
15298 不可視文
15299 \family default
15300
15301 \family sans
15302 可視文
15303 \family default
15304 の5環境に共通しているのは、長めのラベルを持つことです。このラベルに続く文章—通常は段落環境の内容になるはずですが—は、
15305 \family sans
15306 スライド
15307 \family default
15308
15309 \family sans
15310 オーバーレイ
15311 \family default
15312
15313 \family sans
15314 注釈
15315 \family default
15316
15317 \family sans
15318 不可視文
15319 \family default
15320
15321 \family sans
15322 可視文
15323 \family default
15324 では、まったく意味がなく、LyXはこの部分を完全に無視します。これらの5つの環境の内容は、完全に空のままにしておいて構いません。
15325 \end_layout
15326
15327 \begin_layout Standard
15328 長めのラベルの後に文章を入れる
15329 \emph on
15330 必要は
15331 \emph default
15332 まったく
15333 \emph on
15334 ない
15335 \emph default
15336 とはいえ、何か書いておきたいこともあるかもしれません。たとえば、スライドの内容に関する短い説明などがそうでしょう。この場合、いつもどおり説明用のコメントを入力し
15337
15338 \family sans
15339 Return
15340 \family default
15341 を押してください。
15342 \end_layout
15343
15344 \begin_layout Standard
15345 一方、説明文を入れたくない場合には、LyXの制約に直面します。自然が真空を憎むように、LyXでは、古い環境に何かを置くまでは、その中に新しい環境を入れることがで
15346 きません。そこで以下のようにしてください。
15347 \end_layout
15348
15349 \begin_layout Itemize
15350 新しい
15351 \family sans
15352 スライド
15353 \family default
15354
15355 \family sans
15356 オーバーレイ
15357 \family default
15358
15359 \family sans
15360 注釈
15361 \family default
15362
15363 \family sans
15364 不可視文
15365 \family default
15366
15367 \family sans
15368 可視文
15369 \family default
15370
15371 \emph on
15372 中に入れる
15373 \emph default
15374 文章を入力してください。
15375 \end_layout
15376
15377 \begin_layout Itemize
15378 段落の先頭に移動します。
15379 \end_layout
15380
15381 \begin_layout Itemize
15382 次に
15383 \family sans
15384 Return
15385 \family default
15386 を押します。
15387 \end_layout
15388
15389 \begin_layout Itemize
15390 最後に、この新しい空の段落を
15391 \family sans
15392 スライド
15393 \family default
15394
15395 \family sans
15396 オーバーレイ
15397 \family default
15398
15399 \family sans
15400 注釈
15401 \family default
15402
15403 \family sans
15404 不可視文
15405 \family default
15406
15407 \family sans
15408 可視文
15409 \family default
15410 に変更します。
15411 \end_layout
15412
15413 \begin_layout Standard
15414 将来のLyXでは、このような癖が解決されることを祈っています\SpecialChar \ldots{}
15415
15416 \begin_inset Foot
15417 status collapsed
15418
15419 \begin_layout Plain Layout
15420 (訳註)ここの記述は古くなっています。
15421 \end_layout
15422
15423 \end_inset
15424
15425
15426 \end_layout
15427
15428 \begin_layout Subsection
15429
15430 \family sans
15431 スライド
15432 \family default
15433
15434 \family sans
15435 オーバーレイ
15436 \family default
15437
15438 \family sans
15439 注釈で発表用のスライドを作る
15440 \end_layout
15441
15442 \begin_layout Subsubsection
15443
15444 \family sans
15445 スライド
15446 \family default
15447 環境を使う
15448 \end_layout
15449
15450 \begin_layout Standard
15451 もし本節が、実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば、大いにがっかりされるかもしれません。当然ながら、プレゼンテーション用の資
15452 料を準備するうえで
15453 \family sans
15454 slides
15455 \family default
15456 クラスを役立てる方法を詳しく説明はしますが、内容をどうするかはあなた次第です(そしてこれもLyXの哲学です)。
15457 \end_layout
15458
15459 \begin_layout Standard
15460
15461 \family sans
15462 スライド
15463 \family default
15464 環境を選択すれば(方法は第
15465 \begin_inset CommandInset ref
15466 LatexCommand ref
15467 reference "sec:スライドの癖"
15468
15469 \end_inset
15470
15471 節参照のこと)、LyXは新規スライドを開始します。この環境ないし「疑似環境」のラベルは、鮮やかな青で「新規スライド:」と表示されます。この環境の後のテキスト環境
15472 や段落環境は、すべて新規スライドに入ります。簡単ですよね。
15473 \end_layout
15474
15475 \begin_layout Standard
15476 Slidesは、おそらくLyXの中で強制的に改頁をしなくてはならない唯一のクラスです(これは
15477 \family sans
15478 段落レイアウト
15479 \family default
15480 ダイアログで指定できます)。実際、一つのスライドの内容を入力し終わったら、改頁したくなるはずです。仮に一つのスライドに物理的に入りきらない文章を入力したとすると
15481 、入りきらない部分は、次の新規スライドにまわされます。しかしながら、入りきらない部分のスライドにはページ番号が付きませんので、こうするのはお勧めしません。その上
15482 、一枚に収まらないスライドでは、
15483 \family sans
15484 オーバーレイ
15485 \family default
15486 を使用すると干渉する恐れがあります。
15487 \end_layout
15488
15489 \begin_layout Standard
15490
15491 \family sans
15492 オーバーレイ
15493 \family default
15494 環境と
15495 \family sans
15496 注釈
15497 \family default
15498 環境も、
15499 \family sans
15500 スライド
15501 \family default
15502 環境と同様の動作を示します。これらは、青の代わりに鮮やかなマゼンタで、それぞれ「
15503 \noun on
15504 新規オーバーレイ
15505 \noun default
15506 :」ないし「
15507 \noun on
15508 新規注釈:
15509 \noun default
15510 」というラベルを表示します。ラベルのフォントも、3つの環境でそれぞれ異なるものが使用されます。
15511 \end_layout
15512
15513 \begin_layout Standard
15514
15515 \family sans
15516 スライド
15517 \family default
15518 と同様に、
15519 \family sans
15520 オーバーレイ
15521 \family default
15522
15523 \family sans
15524 注釈
15525 \family default
15526 の内容が、一つのスライドないしページに物理的に収まりきらない場合には、余分は新規スライドに回されます。この場合には、
15527 \family sans
15528 注釈
15529 \family default
15530
15531 \family sans
15532 オーバーレイ
15533 \family default
15534 の本来の目的が達せられなくなりますので、ここでもこのような状態は避けるべきでしょう。
15535 \end_layout
15536
15537 \begin_layout Subsubsection
15538
15539 \family sans
15540 スライドでオーバーレイを使用する
15541 \end_layout
15542
15543 \begin_layout Standard
15544
15545 \family sans
15546 オーバーレイ
15547 \family default
15548 の背後にある考え方は、別のスライドの上にスライドを載せようとするものです。メインの
15549 \family sans
15550 スライド
15551 \family default
15552 に図があるとき、関連した文章を表示する前に、図について議論を進めたいと思うことがあるかもしれません。これを行うひとつの方法は、
15553 \family sans
15554 スライド
15555 \family default
15556 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが、この方法は、たとえばグラフを他のグラフに重ねたい場合などには、うまく行きません。この場合には、二つ
15557 のグラフを揃えるために、重ねる二つのスライドを、喋りながら手探りで揃えなくてはなりません。これらのような場合には、
15558 \family sans
15559 オーバーレイ
15560 \family default
15561 環境を使えば、もっと楽になります。
15562 \end_layout
15563
15564 \begin_layout Standard
15565
15566 \family sans
15567 オーバーレイ
15568 \family default
15569 は、「親」
15570 \family sans
15571 スライド
15572 \family default
15573 のページ番号を引継ぎ、その後に「
15574 \family typewriter
15575 -a
15576 \family default
15577 」を付け加えます
15578 \begin_inset Foot
15579 status collapsed
15580
15581 \begin_layout Plain Layout
15582 想像できるように、複数のオーバーレイがあれば、「
15583 \family typewriter
15584 -a
15585 \family default
15586 」「
15587 \family typewriter
15588 -b
15589 \family default
15590 」「
15591 \family typewriter
15592 -c
15593 \family default
15594 」などが親スライドのページ番号に付け加えられます。
15595 \end_layout
15596
15597 \end_inset
15598
15599 。当然のことながら、
15600 \family sans
15601 スライド
15602 \family default
15603
15604 \family sans
15605 オーバーレイ
15606 \family default
15607 の内容は両方とも、1枚のスライドに物理的に収まるようになっていなければなりません。
15608 \family sans
15609 オーバーレイ
15610 \family default
15611
15612 \family sans
15613 スライド
15614 \family default
15615 の「一部」であると考えるのがよいでしょう。LyXでは、
15616 \family sans
15617 オーバーレイ
15618 \family default
15619 のラベルを
15620 \family sans
15621 スライド
15622 \family default
15623 のラベルよりも下げることで、このことを視覚的に表しています。また、印刷可能な出力を生成すると、
15624 \family sans
15625 オーバーレイ
15626 \family default
15627 と親
15628 \family sans
15629 スライド
15630 \family default
15631 両方の四隅に、揃えマーカーがあることに気づかれるはずです。これは、2枚のスライドを物理的に重ね合わせるための補助となるものです。
15632 \end_layout
15633
15634 \begin_layout Standard
15635 2つのスライドをオーバーレイさせる際の大きな問題は、2枚のスライドの内容を揃えることです。2枚目のスライドのグラフには、どれだけの余白を残しておくべきなのでしょ
15636 うか?さらにややこしく、2枚目のスライドにグラフと文章を入れたいときに、その間に割り込んでしまうような文章がメインスライドにある場合には、どうでしょうか?正しい
15637 寸法の垂直スペースを挿入してみることもできるでしょう。しかし、もっと良い方法として、
15638 \family sans
15639 不可視文
15640 \family default
15641
15642 \family sans
15643 可視文
15644 \family default
15645 を使用する方法があります。
15646 \end_layout
15647
15648 \begin_layout Standard
15649 これらの名前が意味するとおり、
15650 \family sans
15651 不可視文
15652 \family default
15653
15654 \family sans
15655 可視文
15656 \family default
15657 は、それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です。しかしながら、第
15658 \begin_inset CommandInset ref
15659 LatexCommand ref
15660 reference "sec:スライドの癖"
15661
15662 \end_inset
15663
15664 節で述べたように、この2つの環境の
15665 \emph on
15666
15667 \emph default
15668 には何も置くことができません。
15669 \family sans
15670 不可視文
15671 \family default
15672 を作成すると、「<以下不可視文>」と書かれた水色のラベルが、ページに中央揃えで表示されます。このラベルに続く段落は、それが置かれるべき
15673 \family sans
15674 スライド
15675 \family default
15676 (あるいは
15677 \family sans
15678 オーバーレイ
15679 \family default
15680 ;どちらでも同じことです)部分に、代わりに空白の部分が置かれます。
15681 \end_layout
15682
15683 \begin_layout Standard
15684
15685 \family sans
15686 可視文
15687 \family default
15688 の場合には、中央揃えのラベルは、鮮やかな緑の「<以下可視文>」となります。このラベル以降の段落は、通常通りの挙動を示します。新規の
15689 \family sans
15690 スライド
15691 \family default
15692
15693 \family sans
15694 オーバーレイ
15695 \family default
15696
15697 \family sans
15698 注釈
15699 \family default
15700 を開始すると、
15701 \family sans
15702 不可視文
15703 \family default
15704 は自動的に終了されることに注意してください。したがって、
15705 \family sans
15706 スライド
15707 \family default
15708 の終わりでは、
15709 \family sans
15710 可視文
15711 \family default
15712 を使用する必要はありません。
15713 \end_layout
15714
15715 \begin_layout Standard
15716 ここまでで、
15717 \family sans
15718 スライド
15719 \family default
15720
15721 \family sans
15722 オーバーレイ
15723 \family default
15724 上で
15725 \family sans
15726 不可視文
15727 \family default
15728
15729 \family sans
15730 可視文
15731 \family default
15732 を適切に使用して、スライドをオーバーレイさせる方法が明らかになったことと思います。
15733 \end_layout
15734
15735 \begin_layout Enumerate
15736 メインのスライドか
15737 \family sans
15738 オーバーレイ
15739 \family default
15740 かに関わらず、スライド上に現れるすべてを含んだ
15741 \family sans
15742 スライド
15743 \family default
15744 を作成します。
15745 \end_layout
15746
15747 \begin_layout Enumerate
15748
15749 \family sans
15750 オーバーレイ
15751 \family default
15752 のみに表示するすべての図や段落の前に、
15753 \family sans
15754 不可視文
15755 \family default
15756 環境を挿入し、必要ならば、
15757 \family sans
15758 オーバーレイ
15759 \family default
15760 のみの文章の後に
15761 \family sans
15762 可視文
15763 \family default
15764 環境を挿入します。
15765 \end_layout
15766
15767 \begin_layout Enumerate
15768
15769 \family sans
15770 スライド
15771 \family default
15772 の直後から、
15773 \family sans
15774 オーバーレイ
15775 \family default
15776 を開始します。
15777 \end_layout
15778
15779 \begin_layout Enumerate
15780 この
15781 \family sans
15782 スライド
15783 \family default
15784 の内容を
15785 \family sans
15786 オーバーレイ
15787 \family default
15788 にコピーします。
15789 \end_layout
15790
15791 \begin_layout Enumerate
15792
15793 \family sans
15794 オーバーレイ
15795 \family default
15796 内部の
15797 \family sans
15798 不可視文
15799 \family default
15800 行をすべて
15801 \family sans
15802 不可視文
15803 \family default
15804 に変更し、
15805 \family sans
15806 可視文
15807 \family default
15808
15809 \family sans
15810 不可視文
15811 \family default
15812 に変更します。
15813 \end_layout
15814
15815 \begin_layout Standard
15816 これだけです。これで
15817 \family sans
15818 オーバーレイ
15819 \family default
15820 ができあがりました。
15821 \end_layout
15822
15823 \begin_layout Standard
15824 LyX 
15825 \family sans
15826 slides
15827 \family default
15828 クラスをデザインする上で、ひとつ残された問題があります。段落途中の文章を不可視にしたり、不可視段落の途中の文章を再度可視にしたりすることはできないのです。これを
15829 実現するためには、LaTeXコードを埋め込む必要があります
15830 \begin_inset Foot
15831 status collapsed
15832
15833 \begin_layout Plain Layout
15834 このコマンドは、
15835 \end_layout
15836
15837 \begin_layout Itemize
15838
15839 \family typewriter
15840 {
15841 \backslash
15842 invisible \SpecialChar \ldots{}
15843  }
15844 \end_layout
15845
15846 \begin_layout Itemize
15847
15848 \family typewriter
15849 {
15850 \backslash
15851 visible \SpecialChar \ldots{}
15852  }
15853 \end_layout
15854
15855 \begin_layout Plain Layout
15856 \SpecialChar \ldots{}
15857 のような形となり、TeXとしてマークする必要があります。「可視性」を変更したい文章は、波括弧のあいだ(そして
15858 \family typewriter
15859
15860 \backslash
15861 invisible
15862 \family default
15863 ないし
15864 \family typewriter
15865
15866 \backslash
15867 visible
15868 \family default
15869 コマンドの後ろ)に入れます。TeXとしてマークする方法がわからない場合は、
15870 \emph on
15871 ユーザーの手引き
15872 \emph default
15873 をご参照ください。
15874 \end_layout
15875
15876 \end_inset
15877
15878
15879 \end_layout
15880
15881 \begin_layout Subsubsection
15882
15883 \family sans
15884 スライドで注釈を使う
15885 \family default
15886
15887 \begin_inset CommandInset label
15888 LatexCommand label
15889 name "sec:スライド注釈"
15890
15891 \end_inset
15892
15893
15894 \end_layout
15895
15896 \begin_layout Standard
15897
15898 \family sans
15899 オーバーレイ
15900 \family default
15901 と同様、
15902 \family sans
15903 注釈
15904 \family default
15905 も「親」
15906 \family sans
15907 スライド
15908 \family default
15909 に関連付けられています。ここでもLyX
15910 \family sans
15911 スライド
15912 \family default
15913 クラスは視覚的な効果を与えています。
15914 \family sans
15915 注釈
15916 \family default
15917 のラベルは
15918 \family sans
15919 スライド
15920 \family default
15921 よりも短く(オーバーレイのラベルよりも長いですが)、
15922 \family sans
15923 オーバーレイ
15924 \family default
15925 のラベルと同様、派手な赤紫色です。加えて、印刷した
15926 \family sans
15927 注釈
15928 \family default
15929 には、「親」スライドのページ番号に「
15930 \family typewriter
15931 -
15932 \family default
15933 1」「
15934 \family typewriter
15935 -
15936 \family default
15937 2」「
15938 \family typewriter
15939 -
15940 \family default
15941 3」等を付けたページ番号が付けられます。1つの
15942 \family sans
15943 スライド
15944 \family default
15945 には、複数の
15946 \family sans
15947 注釈
15948 \family default
15949 を関連付けることができるので、
15950 \family sans
15951 スライド
15952 \family default
15953
15954 \family sans
15955 オーバーレイ
15956 \family default
15957 と同じように、長い注釈は、1枚の紙に収まるように分割したいと思われるに違いありません。
15958 \end_layout
15959
15960 \begin_layout Standard
15961
15962 \family sans
15963 注釈
15964 \family default
15965 の目的は明らかです。
15966 \family sans
15967 スライド
15968 \family default
15969 に関して付け加えたいことを書き留めておくことです。特定の
15970 \family sans
15971 スライド
15972 \family default
15973 についての覚書として使うこともできます。後者の場合には、タイムマーカを利用したいこともあるかもしれません。現在のところ、LyXの
15974 \family sans
15975 スライド
15976 \family default
15977 クラスは、
15978 \noun on
15979 Sli
15980 \noun default
15981 TeXの機能であるタイムマーカを「ネイティブには」サポートしていません。したがって、LaTeXコードを使用することに頼らなくてはなりません。
15982 \end_layout
15983
15984 \begin_layout Standard
15985 タイムマーカを使用するには、クラスオプション「
15986 \family typewriter
15987 clock
15988 \family default
15989 」を追加指定する必要があります(第
15990 \begin_inset CommandInset ref
15991 LatexCommand ref
15992 reference "sec:slidesetup"
15993
15994 \end_inset
15995
15996 節参照)。このオプションはタイムマーカ機能を有効にして、生成したすべての
15997 \family sans
15998 注釈
15999 \family default
16000 の左下にタイムマーカを表示します。タイムマーカに表示するものを設定するには、LaTeXコマンド「
16001 \family typewriter
16002
16003 \backslash
16004 settime{}
16005 \family default
16006 」および「
16007 \family typewriter
16008
16009 \backslash
16010 addtime{}
16011 \family default
16012 」を使用します。両コマンドは、秒で測った時間を引数にとります。「
16013 \family typewriter
16014
16015 \backslash
16016 settime{}
16017 \family default
16018 」は、タイムマーカを特定の時間に設定し、「
16019 \family typewriter
16020
16021 \backslash
16022 addtime{}
16023 \family default
16024 」は、タイムマーカを指定した分だけ進めます。このようにタイムマーカと
16025 \family sans
16026 注釈
16027 \family default
16028 を用いれば、特定の
16029 \family sans
16030 スライド
16031 \family default
16032 にどれだけの時間をかけるのか忘れないでいられます。
16033 \end_layout
16034
16035 \begin_layout Standard
16036 最後に、説明しておくべき機能がもう一つあります。当然ながら、
16037 \family sans
16038 スライド
16039 \family default
16040
16041 \family sans
16042 オーバーレイ
16043 \family default
16044 はすべてスライドに、
16045 \family sans
16046 注釈
16047 \family default
16048 はすべて普通の紙に印刷したいはずです。しかしながら、
16049 \family sans
16050 注釈
16051 \family default
16052 は関連付けられた親スライドの直後に
16053 \emph on
16054 来なくてはなりません
16055 \emph default
16056 。ユーザーはどうしたら良いのでしょうか。
16057 \end_layout
16058
16059 \begin_layout Standard
16060 幸いなことに、どれを印刷するか選択することを可能にするLaTeXコマンドが、2種類あります。どちらも文書のプリアンブルに記述されなくてはなりません。コマンド「
16061 \family typewriter
16062
16063 \backslash
16064 onlyslides{
16065 \backslash
16066 slides}
16067 \family default
16068 」は、出力に
16069 \family sans
16070 スライド
16071 \family default
16072
16073 \family sans
16074 オーバーレイ
16075 \family default
16076 のみが含まれるようにするものです。同様に、「
16077 \family typewriter
16078
16079 \backslash
16080 onlynotes{
16081 \backslash
16082 notes}
16083 \family default
16084 」は
16085 \family sans
16086 注釈
16087 \family default
16088 以外の出力をすべて抑制します。私のアドバイスとしては、両コマンドをプリアンブルに書いておいて、最初は両方ともコメントアウトしておくと良いでしょう。そうすれば、執
16089 筆時にはプレゼンテーション全体をプレビューすることができます。いったん書き終えたならば、二つのうち一方のコメントを外して、印刷したい方を選ぶことができます。私な
16090 らば、まず
16091 \family typewriter
16092
16093 \backslash
16094 onlyslides{
16095 \backslash
16096 slides}
16097 \family default
16098 のコメントを外して、現ファイル名に「*
16099 \family typewriter
16100 -slides
16101 \family default
16102 」を付けた新たなファイルに出力を行ない、今度はこの行をふたたびコメントアウトするとともに、「
16103 \family typewriter
16104
16105 \backslash
16106 onlynotes{
16107 \backslash
16108 notes
16109 \family default
16110 }」のコメントを外して、これを「
16111 \family typewriter
16112 *-notes.ps
16113 \family default
16114 」というファイルに出力します。そうすれば、必要に応じて、スライドまたは通常の紙をプリンタにセットし、一方のファイルをプリンタに送ればよいのです。
16115 \end_layout
16116
16117 \begin_layout Standard
16118
16119 \family typewriter
16120
16121 \backslash
16122 onlyslides{}
16123 \family default
16124 」および「
16125 \family typewriter
16126
16127 \backslash
16128 onlynotes{}
16129 \family default
16130 」コマンドには、他の引数を与えることもできます。詳しくは、LaTeXの良書をご覧ください。
16131 \end_layout
16132
16133 \begin_layout Subsection
16134
16135 \family sans
16136 slides
16137 \family default
16138 クラスのひな型ファイル
16139 \end_layout
16140
16141 \begin_layout Standard
16142
16143 \family sans
16144 slides
16145 \family default
16146 クラス用のひな型ファイルとして「
16147 \family typewriter
16148 slides.lyx
16149 \family default
16150 」が提供されています。これを使用するには、新しいプレゼンテーションを作り始める際に、
16151 \family sans
16152 ファイル\SpecialChar \menuseparator
16153 新規(ひな型使用)
16154 \family default
16155 メニューを選択してください。すると新規ファイルには、
16156 \family sans
16157 スライド
16158 \family default
16159
16160 \family sans
16161 オーバーレイ
16162 \family default
16163
16164 \family sans
16165 注釈
16166 \family default
16167 の組が、例として含まれており、
16168 \family sans
16169 スライド
16170 \family default
16171
16172 \family sans
16173 オーバーレイ
16174 \family default
16175 には、さらに
16176 \family sans
16177 不可視文
16178 \family default
16179
16180 \family sans
16181 可視文
16182 \family default
16183 の使用例も含まれています。また、プリアンブルには、次のように書き込まれています。
16184 \end_layout
16185
16186 \begin_layout LyX-Code
16187 % Uncomment to print out only slides and overlays
16188 \end_layout
16189
16190 \begin_layout LyX-Code
16191 %
16192 \end_layout
16193
16194 \begin_layout LyX-Code
16195 %
16196 \backslash
16197 onlyslides{
16198 \backslash
16199 slides}
16200 \begin_inset Newline newline
16201 \end_inset
16202
16203  
16204 \end_layout
16205
16206 \begin_layout LyX-Code
16207 % Uncomment to print out only notes
16208 \end_layout
16209
16210 \begin_layout LyX-Code
16211 %
16212 \end_layout
16213
16214 \begin_layout LyX-Code
16215 %
16216 \backslash
16217 onlynotes{
16218 \backslash
16219 notes}
16220 \end_layout
16221
16222 \begin_layout Standard
16223 最後に、私はこの文書クラスを、LaTeX2eの組み込みクラスである「
16224 \noun on
16225 SliTeX
16226 \noun default
16227 エミュレーション」クラスをサポートする目的で作成しました。私もLyXチームの他のメンバーも、この組み込みスライドクラスを使用することに賛成したり反対したりするも
16228 のではありません。これは単に、ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです。プレゼンテーションを作成するためには、
16229 \family sans
16230 Foils
16231 \family default
16232 クラス(第
16233 \begin_inset CommandInset ref
16234 LatexCommand ref
16235 reference "sec:foiltex"
16236
16237 \end_inset
16238
16239 節参照)や「
16240 \family typewriter
16241 seminar
16242 \family default
16243 」パッケージ(一部のTeX頒布版に含まれています)のように、他のLaTeX2eクラスも存在します。私はこれらについては知らないのですが、他にどのようなことができ
16244 るのか試してみてください。
16245 \end_layout
16246
16247 \begin_layout Chapter
16248 ソフトウェアを追加する必要がある LyX機能
16249 \end_layout
16250
16251 \begin_layout Section
16252 TeXのチェック
16253 \end_layout
16254
16255 \begin_layout Standard
16256
16257 \noun on
16258 Asger Alstrup
16259 \noun default
16260
16261 \end_layout
16262
16263 \begin_layout Subsection
16264 はじめに
16265 \end_layout
16266
16267 \begin_layout Standard
16268
16269 \family typewriter
16270 chktex
16271 \family default
16272 プログラムが導入されていると
16273 \begin_inset Foot
16274 status collapsed
16275
16276 \begin_layout Plain Layout
16277 LaTeX頒布版としてMiKTeXを使用している場合には、
16278 \family typewriter
16279 chktex
16280 \family default
16281 はまだ利用可能ではありません。
16282 \end_layout
16283
16284 \end_inset
16285
16286
16287 \family sans
16288 ツール
16289 \family default
16290 メニューの下に、
16291 \family sans
16292 TeX構文チェック
16293 \family default
16294 という項目が表示されます。
16295 \family typewriter
16296 chktex
16297 \family default
16298 は、CTAN
16299 \begin_inset Newline newline
16300 \end_inset
16301
16302
16303 \begin_inset CommandInset href
16304 LatexCommand href
16305 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
16306
16307 \end_inset
16308
16309 から入手することができます。
16310 \end_layout
16311
16312 \begin_layout Standard
16313
16314 \family sans
16315 ChkTeX
16316 \family default
16317 パッケージは、LaTeXの構成物には直感的でないものもあり、すぐ忘れてしまいがちであるのに不満を感じた
16318 \begin_inset Flex Noun
16319 status collapsed
16320
16321 \begin_layout Plain Layout
16322 Jens T.
16323  Berger Thielemann
16324 \end_layout
16325
16326 \end_inset
16327
16328 が書いたプログラムです。このプログラムは、LaTeXファイルを走査して、ファイルの整合性をチェックし、犯しがちな誤りを見つけ出します。別の技術用語では、LaTe
16329 Xにおける
16330 \family typewriter
16331 lint
16332 \family default
16333 であるとも言えます。
16334 \end_layout
16335
16336 \begin_layout Standard
16337 さて、LyXはつねに正しいLaTeXファイルを生成するはずなのに、文法チェッカーはLyXで何をするというのでしょうか。答えは簡単です。
16338 \family typewriter
16339 lint
16340 \family default
16341 がC言語プログラムの
16342 \emph on
16343 文法
16344 \emph default
16345 をチェックするだけでなく、打ち間違いによる
16346 \emph on
16347 意味上の
16348 \emph default
16349 チェックも行うように、
16350 \family sans
16351 ChkTeX
16352 \family default
16353 は、文法エラーの他に犯しがちな
16354 \emph on
16355 写植上の
16356 \emph default
16357 誤りも検出してくれるからです。
16358 \family sans
16359 ChkTeX
16360 \family default
16361 は、以下のような誤りを検出することができます。
16362 \end_layout
16363
16364 \begin_layout Itemize
16365 省略記号の検出:
16366 \begin_inset Newline newline
16367 \end_inset
16368
16369 ...ではなく\SpecialChar \ldots{}
16370 を使わなくてはなりません
16371 \end_layout
16372
16373 \begin_layout Itemize
16374 括弧の前後にスペースを置かない:
16375 \begin_inset Newline newline
16376 \end_inset
16377
16378 ( wrong spacing ):誤った空白
16379 \end_layout
16380
16381 \begin_layout Itemize
16382 よく使われる省略形の後ろは通常スペースにする:
16383 \begin_inset Newline newline
16384 \end_inset
16385
16386 e.
16387 \begin_inset space \thinspace{}
16388 \end_inset
16389
16390 g.
16391 \begin_inset space \space{}
16392 \end_inset
16393
16394 is too wide spacing.:広すぎる空白
16395 \end_layout
16396
16397 \begin_layout Itemize
16398 直前の文章が大文字で終わっているときに、文末スペースに直す:
16399 \begin_inset Newline newline
16400 \end_inset
16401
16402 This is a TEST.
16403  And this is wrong spacing.:誤った空白
16404 \end_layout
16405
16406 \begin_layout Itemize
16407 ラベルや類似コマンドの前のスペース:
16408 \begin_inset Newline newline
16409 \end_inset
16410
16411 ラベルが別のページに行ってしまわないように、ラベルは文章に接していなくてはなりません。 
16412 \begin_inset CommandInset label
16413 LatexCommand label
16414 name "sec:chktex"
16415
16416 \end_inset
16417
16418  
16419 \begin_inset Foot
16420 status collapsed
16421
16422 \begin_layout Plain Layout
16423 この脚注は、正しくないページに行ってしまう恐れがあります。
16424 \end_layout
16425
16426 \end_inset
16427
16428  このラベルは離れすぎです。
16429 \end_layout
16430
16431 \begin_layout Itemize
16432 参照の前にハードスペースではなくスペース:
16433 \begin_inset Newline newline
16434 \end_inset
16435
16436 運が悪ければ、参照文字列と参照番号のあいだでちょうど改行されてしまい、残念な結果となります。第
16437 \begin_inset CommandInset ref
16438 LatexCommand ref
16439 reference "sec:chktex"
16440
16441 \end_inset
16442
16443 節をご覧ください。
16444 \end_layout
16445
16446 \begin_layout Itemize
16447 数字のあいだで
16448 \begin_inset Formula $\times$
16449 \end_inset
16450
16451 ではなく「x」が使われている:
16452 \begin_inset Newline newline
16453 \end_inset
16454
16455 2x2は、
16456 \begin_inset Formula $2\times2$
16457 \end_inset
16458
16459 よりも安っぽく見えます。
16460 \end_layout
16461
16462 \begin_layout Standard
16463 などなど\SpecialChar \ldots{}
16464
16465 \family sans
16466 ChkTeX
16467 \family default
16468 は、印刷する前に文書を「仕上げる」上で、たいへん価値のあるツールです。必須のスペルチェックを終えた直後、組版の微調整をする前には、これを実行するべきです。
16469 \end_layout
16470
16471 \begin_layout Subsection
16472 使いかた
16473 \end_layout
16474
16475 \begin_layout Standard
16476 このプログラムを導入したならば、使うのは
16477 \family sans
16478 ツール\SpecialChar \menuseparator
16479 TeX構文チェック
16480 \family default
16481 を選択するだけなので簡単です。こうすると、LyXは使用中の文書のLaTeXファイルを生成して、
16482 \family sans
16483 ChkTeX
16484 \family default
16485 を起動し、当該ファイルを検査しますが、
16486 \family sans
16487 ChkTeX
16488 \family default
16489 から警告があった場合には、それを含んだ「エラーボックス」をLyX中に挿入します。警告は、誤りのある箇所のそばに置かれるので、メニュー項目の
16490 \family sans
16491 移動\SpecialChar \menuseparator
16492 エラー
16493 \family default
16494 を選択するか、既定の
16495 \family typewriter
16496 cua
16497 \family default
16498 キー設定ファイルならば短絡キー
16499 \family sans
16500 C-g
16501 \family default
16502 を押せば、簡単に警告の箇所を見出すことができます。エラーボックスを開けるには、マウスでボックスをクリックするか、
16503 \family typewriter
16504 cua
16505 \family default
16506 キー設定の場合には短絡キー
16507 \family sans
16508 C-i
16509 \family default
16510
16511 \family typewriter
16512 emacs
16513 \family default
16514 キー設定の場合は短絡キー
16515 \family sans
16516 C-o
16517 \family default
16518 を押します。警告を読み、それが誤りを示していれば修正します。警告が何を意味しているか理解しにくい場合には、無視しても問題はありません。画面上の文書と、
16519 \family sans
16520 ChkTeX
16521 \family default
16522 を起動する際に行なわれる実際の技術的な操作のあいだには、隠された層があり、この隔たりのせいで、一部の警告が不可解なものになったり、明らかに馬鹿げたものになる場合
16523 があるのです。
16524 \end_layout
16525
16526 \begin_layout Standard
16527 本文書自体、この機能を確認する良い材料になりますので、実行してみてください。すると、かなりの量の警告が出るはずです。これはコンピュータが敏感すぎるせいですので、
16528 警告のほとんどは実際には警告に値しません。
16529 \end_layout
16530
16531 \begin_layout Subsection
16532 微調整のしかた
16533 \end_layout
16534
16535 \begin_layout Standard
16536 場合によっては、
16537 \family sans
16538 ChkTeX
16539 \family default
16540 は、あなたが望むよりも煩すぎると思うかもしれません。そのような場合には、必要と思うまで
16541 \family sans
16542 ChkTeX
16543 \family default
16544 を無効にするか、あなたにもう少し合うように
16545 \family sans
16546 ChkTeX
16547 \family default
16548 を調整することができます。
16549 \end_layout
16550
16551 \begin_layout Standard
16552
16553 \family sans
16554 ChkTeX
16555 \family default
16556 は調整や拡張がひじょうに柔軟なのですが、LyXにおける
16557 \family sans
16558 ChkTeX
16559 \family default
16560 関連の問題が、それですべて解決すると思うべきではありません。LyXは、
16561 \family sans
16562 ChkTeX
16563 \family default
16564 出力
16565 \begin_inset Foot
16566 status collapsed
16567
16568 \begin_layout Plain Layout
16569
16570 \family sans
16571 chktex
16572 \family default
16573 の実際の出力は、
16574 \family sans
16575 chktex
16576 \family default
16577 を実行した直後に
16578 \family sans
16579 文書\SpecialChar \menuseparator
16580 LaTeXログ
16581 \family default
16582 を使えば見ることができます。
16583 \end_layout
16584
16585 \end_inset
16586
16587 から得た行番号と内部構造を一致させるため、やや特殊なLaTeXファイルを生成しなくてはならないので、警告の一部は正しく表示されていないように見えるでしょう。これ
16588 に対処するためには、以下の2つの方法があります。
16589 \end_layout
16590
16591 \begin_layout Itemize
16592
16593 \family sans
16594 設定
16595 \family default
16596
16597 \family sans
16598 出力
16599 \family default
16600
16601 \family sans
16602 LaTeX
16603 \family default
16604 タブ)中の
16605 \family sans
16606 ChkTeX
16607 \family default
16608 起動コマンドラインを調整するか、グローバルな
16609 \family sans
16610 ChkTeX
16611 \family default
16612 の設定ファイル(通常は
16613 \begin_inset Flex Code
16614 status collapsed
16615
16616 \begin_layout Plain Layout
16617 chktexrc
16618 \end_layout
16619
16620 \end_inset
16621
16622 ファイル)を調整します。コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください。
16623 \end_layout
16624
16625 \begin_layout Itemize
16626
16627 \family sans
16628 ファイル\SpecialChar \menuseparator
16629 書き出し\SpecialChar \menuseparator
16630 LaTeX
16631 \family default
16632 を使って文書をLaTeXファイルに変換し、そのファイルに対して
16633 \family typewriter
16634 chktex
16635 \family default
16636 を手動で実行します。このようにすると、LyX文書中の対応箇所を見つけるのがやや面倒ですが、少し我慢すれば見つけることができます。
16637 \end_layout
16638
16639 \begin_layout Standard
16640 以下は、
16641 \family sans
16642 設定
16643 \family default
16644 で有効化・無効化できる警告メッセージです。警告を無効にするには
16645 \family typewriter
16646 -n#
16647 \family default
16648 、有効にするには
16649 \family typewriter
16650 -w#
16651 \family default
16652 を用います。イタリック表示の項目は、既定で無効となっています。既定値は "
16653 \family typewriter
16654 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
16655 \family default
16656 "です。
16657 \end_layout
16658
16659 \begin_layout Standard
16660 LyXは、
16661 \family typewriter
16662 chktex
16663 \family default
16664 と通信するために、他のコマンドラインパラメータを特定の方法で使用しているため、メッセージを有効化・無効化する以外のオプションを使うべきではありません。
16665 \end_layout
16666
16667 \begin_layout Enumerate
16668
16669 \size small
16670 \emph on
16671 Command terminated with space.
16672 \end_layout
16673
16674 \begin_layout Enumerate
16675
16676 \size small
16677 Non-breaking space (
16678 \begin_inset Quotes eld
16679 \end_inset
16680
16681
16682 \family typewriter
16683 ~
16684 \family default
16685
16686 \begin_inset Quotes erd
16687 \end_inset
16688
16689 ) should have been used.
16690 \end_layout
16691
16692 \begin_layout Enumerate
16693
16694 \size small
16695 \emph on
16696 You should enclose the previous parenthesis with 
16697 \begin_inset Quotes eld
16698 \end_inset
16699
16700
16701 \family typewriter
16702 {}
16703 \family default
16704
16705 \begin_inset Quotes erd
16706 \end_inset
16707
16708 .
16709 \end_layout
16710
16711 \begin_layout Enumerate
16712
16713 \size small
16714 Italic correction (
16715 \begin_inset Quotes eld
16716 \end_inset
16717
16718
16719 \family typewriter
16720
16721 \backslash
16722 /
16723 \family default
16724
16725 \begin_inset Quotes erd
16726 \end_inset
16727
16728 ) found in non-italic buffer.
16729 \end_layout
16730
16731 \begin_layout Enumerate
16732
16733 \size small
16734 Italic correction (
16735 \begin_inset Quotes eld
16736 \end_inset
16737
16738
16739 \family typewriter
16740
16741 \backslash
16742 /
16743 \family default
16744
16745 \begin_inset Quotes erd
16746 \end_inset
16747
16748 ) found more than once.
16749 \end_layout
16750
16751 \begin_layout Enumerate
16752
16753 \size small
16754 \emph on
16755 No italic correction (
16756 \begin_inset Quotes eld
16757 \end_inset
16758
16759
16760 \family typewriter
16761
16762 \backslash
16763 /
16764 \family default
16765
16766 \begin_inset Quotes erd
16767 \end_inset
16768
16769 ) found.
16770 \end_layout
16771
16772 \begin_layout Enumerate
16773
16774 \size small
16775 Accent command 
16776 \begin_inset Quotes eld
16777 \end_inset
16778
16779
16780 \family typewriter
16781 cmd
16782 \family default
16783
16784 \begin_inset Quotes erd
16785 \end_inset
16786
16787  needs use of 
16788 \begin_inset Quotes eld
16789 \end_inset
16790
16791
16792 \family typewriter
16793 cmd
16794 \family default
16795
16796 \begin_inset Quotes erd
16797 \end_inset
16798
16799 .
16800 \end_layout
16801
16802 \begin_layout Enumerate
16803
16804 \size small
16805 Wrong length of dash may have been used.
16806 \end_layout
16807
16808 \begin_layout Enumerate
16809
16810 \size small
16811 \emph on
16812 \begin_inset Quotes eld
16813 \end_inset
16814
16815
16816 \family typewriter
16817 %s
16818 \family default
16819
16820 \begin_inset Quotes erd
16821 \end_inset
16822
16823  expected, found 
16824 \begin_inset Quotes eld
16825 \end_inset
16826
16827
16828 \family typewriter
16829 %s
16830 \family default
16831
16832 \begin_inset Quotes erd
16833 \end_inset
16834
16835 .
16836 \end_layout
16837
16838 \begin_layout Enumerate
16839
16840 \size small
16841 Solo 
16842 \begin_inset Quotes eld
16843 \end_inset
16844
16845
16846 \family typewriter
16847 %s
16848 \family default
16849
16850 \begin_inset Quotes erd
16851 \end_inset
16852
16853  found.
16854 \end_layout
16855
16856 \begin_layout Enumerate
16857
16858 \size small
16859 You should use 
16860 \begin_inset Quotes eld
16861 \end_inset
16862
16863
16864 \family typewriter
16865 %s
16866 \family default
16867
16868 \begin_inset Quotes erd
16869 \end_inset
16870
16871  to achieve an ellipsis.
16872 \end_layout
16873
16874 \begin_layout Enumerate
16875
16876 \size small
16877 Inter-word spacing (
16878 \begin_inset Quotes eld
16879 \end_inset
16880
16881
16882 \family typewriter
16883
16884 \backslash
16885
16886 \family default
16887  
16888 \begin_inset Quotes eld
16889 \end_inset
16890
16891 ) should perhaps be used.
16892 \end_layout
16893
16894 \begin_layout Enumerate
16895
16896 \size small
16897 Inter-sentence spacing (
16898 \begin_inset Quotes eld
16899 \end_inset
16900
16901
16902 \family typewriter
16903
16904 \backslash
16905 @
16906 \family default
16907
16908 \begin_inset Quotes erd
16909 \end_inset
16910
16911 ) should perhaps be used.
16912 \end_layout
16913
16914 \begin_layout Enumerate
16915
16916 \size small
16917 Could not find argument for command.
16918 \end_layout
16919
16920 \begin_layout Enumerate
16921
16922 \size small
16923 No match found for 
16924 \begin_inset Quotes eld
16925 \end_inset
16926
16927
16928 \family typewriter
16929 %s
16930 \family default
16931
16932 \begin_inset Quotes erd
16933 \end_inset
16934
16935 .
16936 \end_layout
16937
16938 \begin_layout Enumerate
16939
16940 \size small
16941 Math mode still on at end of LaTeX file.
16942 \end_layout
16943
16944 \begin_layout Enumerate
16945
16946 \size small
16947 Number of 
16948 \begin_inset Quotes eld
16949 \end_inset
16950
16951
16952 \family typewriter
16953 char
16954 \family default
16955
16956 \begin_inset Quotes erd
16957 \end_inset
16958
16959  doesn't match the number of 
16960 \begin_inset Quotes eld
16961 \end_inset
16962
16963
16964 \family typewriter
16965 char
16966 \family default
16967
16968 \begin_inset Quotes erd
16969 \end_inset
16970
16971 .
16972 \end_layout
16973
16974 \begin_layout Enumerate
16975
16976 \size small
16977 You should use either 
16978 \family typewriter
16979
16980 \begin_inset Quotes eld
16981 \end_inset
16982
16983
16984 \family default
16985  or 
16986 \family typewriter
16987
16988 \begin_inset Quotes erd
16989 \end_inset
16990
16991
16992 \family default
16993  as an alternative to 
16994 \begin_inset Quotes eld
16995 \end_inset
16996
16997
16998 \family typewriter
16999 "
17000 \family default
17001
17002 \begin_inset Quotes erd
17003 \end_inset
17004
17005 .
17006 \end_layout
17007
17008 \begin_layout Enumerate
17009
17010 \size small
17011 You should use "
17012 \family typewriter
17013 '
17014 \family default
17015 " (ASCII 39) instead of "" (ASCII 180).
17016 \end_layout
17017
17018 \begin_layout Enumerate
17019
17020 \size small
17021 User-specified pattern found.
17022 \end_layout
17023
17024 \begin_layout Enumerate
17025
17026 \size small
17027 This command might not be intended.
17028 \end_layout
17029
17030 \begin_layout Enumerate
17031
17032 \size small
17033 \emph on
17034 Comment displayed.
17035 \end_layout
17036
17037 \begin_layout Enumerate
17038
17039 \size small
17040 Either 
17041 \family typewriter
17042 ''
17043 \backslash
17044 ,'
17045 \family default
17046  or 
17047 \family typewriter
17048 '
17049 \backslash
17050 ,''
17051 \family default
17052  will look better.
17053 \end_layout
17054
17055 \begin_layout Enumerate
17056
17057 \size small
17058 Delete this space to maintain correct page references.
17059 \end_layout
17060
17061 \begin_layout Enumerate
17062
17063 \size small
17064 \emph on
17065 You might wish to put this between a pair of 
17066 \begin_inset Quotes eld
17067 \end_inset
17068
17069
17070 \family typewriter
17071 {}
17072 \family default
17073
17074 \begin_inset Quotes erd
17075 \end_inset
17076
17077 .
17078 \end_layout
17079
17080 \begin_layout Enumerate
17081
17082 \size small
17083 You ought to remove spaces in front of punctuation.
17084 \end_layout
17085
17086 \begin_layout Enumerate
17087
17088 \size small
17089 Could not execute LaTeX command.
17090 \end_layout
17091
17092 \begin_layout Enumerate
17093
17094 \size small
17095 Don't use 
17096 \family typewriter
17097
17098 \backslash
17099 /
17100 \family default
17101  in front of small punctuation.
17102 \end_layout
17103
17104 \begin_layout Enumerate
17105
17106 \family typewriter
17107 \size small
17108 $
17109 \backslash
17110 times$
17111 \family default
17112  may look prettier here.
17113 \end_layout
17114
17115 \begin_layout Enumerate
17116
17117 \size small
17118 \emph on
17119 Multiple spaces detected in output.
17120 \end_layout
17121
17122 \begin_layout Enumerate
17123
17124 \size small
17125 This text may be ignored.
17126 \end_layout
17127
17128 \begin_layout Enumerate
17129
17130 \size small
17131 Use 
17132 \family typewriter
17133
17134 \begin_inset Quotes eld
17135 \end_inset
17136
17137
17138 \family default
17139  to begin quotation, not 
17140 \family typewriter
17141 '
17142 \family default
17143 .
17144 \end_layout
17145
17146 \begin_layout Enumerate
17147
17148 \size small
17149 Use 
17150 \family typewriter
17151 '
17152 \family default
17153  to end quotation, not 
17154 \family typewriter
17155
17156 \begin_inset Quotes eld
17157 \end_inset
17158
17159
17160 \family default
17161 .
17162 \end_layout
17163
17164 \begin_layout Enumerate
17165
17166 \size small
17167 Don't mix quotes.
17168 \end_layout
17169
17170 \begin_layout Enumerate
17171
17172 \size small
17173 You should perhaps use 
17174 \begin_inset Quotes eld
17175 \end_inset
17176
17177
17178 \family typewriter
17179 cmd
17180 \family default
17181
17182 \begin_inset Quotes erd
17183 \end_inset
17184
17185  instead.
17186 \end_layout
17187
17188 \begin_layout Enumerate
17189
17190 \size small
17191 You should put a space in front of/after parenthesis.
17192 \end_layout
17193
17194 \begin_layout Enumerate
17195
17196 \size small
17197 You should avoid spaces in front of/after parenthesis.
17198 \end_layout
17199
17200 \begin_layout Enumerate
17201
17202 \size small
17203 \emph on
17204 You should not use punctuation in front of/after quotes.
17205 \end_layout
17206
17207 \begin_layout Enumerate
17208
17209 \size small
17210 Double space found.
17211 \end_layout
17212
17213 \begin_layout Enumerate
17214
17215 \size small
17216 You should put punctuation outside inner/inside display math mode.
17217 \end_layout
17218
17219 \begin_layout Enumerate
17220
17221 \size small
17222 You ought to not use primitive TeX in LaTeX code.
17223 \end_layout
17224
17225 \begin_layout Enumerate
17226
17227 \size small
17228 You should remove spaces in front of 
17229 \begin_inset Quotes eld
17230 \end_inset
17231
17232
17233 \family typewriter
17234 %s
17235 \family default
17236
17237 \begin_inset Quotes erd
17238 \end_inset
17239
17240
17241 \end_layout
17242
17243 \begin_layout Enumerate
17244
17245 \size small
17246 \begin_inset Quotes eld
17247 \end_inset
17248
17249
17250 \family typewriter
17251 %s
17252 \family default
17253
17254 \begin_inset Quotes erd
17255 \end_inset
17256
17257  is normally not followed by 
17258 \begin_inset Quotes eld
17259 \end_inset
17260
17261
17262 \family typewriter
17263 %c
17264 \family default
17265
17266 \begin_inset Quotes erd
17267 \end_inset
17268
17269 .
17270 \end_layout
17271
17272 \begin_layout Standard
17273 LyXの将来の版では、このツール(およびその縮小版
17274 \family typewriter
17275 lacheck
17276 \family default
17277 )の力を最大限引き出すように、より完備したインターフェイスを提供できればと考えています。しかし、現状でも十分に役立つものとなっています。ある程度長さがある既存文
17278 書に使用してみていただければ、きっと驚かれることでしょう。
17279 \end_layout
17280
17281 \begin_layout Section
17282 LyXでのバージョン管理
17283 \end_layout
17284
17285 \begin_layout Standard
17286
17287 \noun on
17288 Lars Bullik Bjønnes
17289 \noun default
17290 および
17291 \noun on
17292 Pavel Sanda
17293 \noun default
17294
17295 \end_layout
17296
17297 \begin_layout Subsection
17298 はじめに
17299 \end_layout
17300
17301 \begin_layout Standard
17302 かつて私の友人が、LyXをグループプロジェクトに使おうとしましたが、当時のLyXには、バージョン管理機能やファイルロック機構が備わっていなかったために、採用を見
17303 合わせました。この事実は少々私をいらだたせ、(将来的にCVSやSCCSのサポートできる拡張性を含め)少なくともRCSのサポートをするべきだと考えたのです。いまや
17304 これは実現しました。LyXは、今ではもっとも基本的なRCS/CVS/SVNコマンドをサポートしています。もしもっと洗練されたことを行いたい場合には、ターミナル上
17305 から手動で行う必要があります。
17306 \end_layout
17307
17308 \begin_layout Standard
17309 LyXで実際にバージョン管理機能を使い始める前に、RCS/CVS/SVNの使用法に習熟しておかなくてはなりません。また、CVSのサポートは、subversion
17310 のサポートほど良くないので、CVSよりもSVNを使うことをお勧めします。Subversionを学び始めるには、SVN Book
17311 \begin_inset Foot
17312 status collapsed
17313
17314 \begin_layout Plain Layout
17315 \begin_inset CommandInset href
17316 LatexCommand href
17317 target "http://svnbook.red-bean.com/"
17318
17319 \end_inset
17320
17321
17322 \end_layout
17323
17324 \end_inset
17325
17326 が良いでしょう。RCSの場合は、「rsintro」をお読みください(これはmanファイルです。
17327 \family typewriter
17328 man rcsintro
17329 \family default
17330 で読めます)。このファイルは、RCSの基本機能のすべてを説明しています。特に、RCSディレクトリに関するコメントと、マスターRCSファイル(
17331 \family typewriter
17332 ,v
17333 \family default
17334 で終わるファイルです)の概念に注意を払ってください。
17335 \end_layout
17336
17337 \begin_layout Standard
17338 LyXへの実装においては、GNU RCSまたはCVS/SVNパッケージの最新版を仮定しています。旧版への保証はありません。ログメッセージのほとんどは、現在のとこ
17339 ろ操作後には表示されません。確認したい場合には、メッセージペインで確かめてください。
17340 \end_layout
17341
17342 \begin_layout Standard
17343 自製の外部コマンドを導入したい場合には、LyX関数説明書のvcコマンドを確認してください。
17344 \end_layout
17345
17346 \begin_layout Subsection
17347 LyXにおけるRCSコマンド
17348 \end_layout
17349
17350 \begin_layout Standard
17351 以下の節ではLyXでサポートされているRCSコマンドを説明します。それらのコマンドは
17352 \family sans
17353 ファイル\SpecialChar \menuseparator
17354 バージョン管理
17355 \family default
17356 のサブメニューにあります。LyXは、RCS 5.7に対して試験されています。
17357 \end_layout
17358
17359 \begin_layout Subsubsection
17360
17361 \family sans
17362 登録
17363 \end_layout
17364
17365 \begin_layout Standard
17366 文書がバージョン管理の下にない場合には、これがメニューにあらわれる唯一の項目です。文書がバージョン管理下にあれば、項目
17367 \family sans
17368 登録
17369 \family default
17370 は不可視になります。
17371 \end_layout
17372
17373 \begin_layout Standard
17374 このコマンドは、文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合)。すると対話的に、文書の最初の説明を入力するように尋ねられます。すると文
17375 書は読み込み専用モードになるので、変更を加えるためには
17376 \family sans
17377 チェックアウトして編集
17378 \family default
17379 を実行する必要があります。バージョン管理下にある文書は、ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます。
17380 \end_layout
17381
17382 \begin_layout Standard
17383 実行されるRCSコマンドは:
17384 \family typewriter
17385 ci -q -u -i -t-"<初期説明文>" <ファイル名>
17386 \end_layout
17387
17388 \begin_layout Standard
17389 スイッチについて知りたい場合は、
17390 \family typewriter
17391 man ci
17392 \family default
17393 を読んでください。
17394 \end_layout
17395
17396 \begin_layout Subsubsection
17397
17398 \family sans
17399 変更をチェックインする
17400 \end_layout
17401
17402 \begin_layout Standard
17403 ファイルの編集が終わると、その変更をチェックインします。このとき、変更についての説明文を求められます。これは履歴ログに記録されます。バージョン番号は繰り上がり、
17404 変更がマスターRCSファイルに適用され、文書がアンロックされて読み込み専用モードになります。
17405 \end_layout
17406
17407 \begin_layout Standard
17408 RCSコマンド:
17409 \family typewriter
17410 ci -q -u -m"<説明文>" <ファイル名>
17411 \end_layout
17412
17413 \begin_layout Subsubsection
17414
17415 \family sans
17416 チェックアウトして編集
17417 \end_layout
17418
17419 \begin_layout Standard
17420 これは、文書をロックして編集できるようにします。そしてあなただけが文書を読み書きできるようにします。通常は、しばらくの間、文書を編集し、それが終わると変更をチェ
17421 ックインします。あなたがファイルをロックしたことを反映して、ステータスラインが変わります。
17422 \end_layout
17423
17424 \begin_layout Standard
17425 RCSコマンド:
17426 \family typewriter
17427 co -q -l <ファイル名>
17428 \end_layout
17429
17430 \begin_layout Subsubsection
17431
17432 \family sans
17433 リポジトリのバージョンに戻す
17434 \end_layout
17435
17436 \begin_layout Standard
17437 これは、最終チェックイン以降、文書に加えられた変更をすべて破棄します。変更が破棄される前に、警告が発せられます。
17438 \end_layout
17439
17440 \begin_layout Standard
17441 RCSコマンド:
17442 \family typewriter
17443 co -f -u<バージョン> <ファイル名>
17444 \end_layout
17445
17446 \begin_layout Subsubsection
17447
17448 \family sans
17449 最後のチェックインを取り消す
17450 \end_layout
17451
17452 \begin_layout Standard
17453 これは、最後のチェックインがあたかも為されなかったかのようにします。LyXに読み込まれた文書に変更は加えられませんが、マスターRCSファイルから最後のバージョン
17454 が削除されます。
17455 \end_layout
17456
17457 \begin_layout Standard
17458 RCSコマンド:
17459 \family typewriter
17460 rcs -o<バージョン> <ファイル名>
17461 \end_layout
17462
17463 \begin_layout Subsubsection
17464
17465 \family sans
17466 履歴を表示
17467 \end_layout
17468
17469 \begin_layout Standard
17470 RCS文書の完全な履歴を表示します。ブラウザ中に、
17471 \family typewriter
17472 rlog <ファイル名>
17473 \family default
17474 の出力が表示されます。詳細は
17475 \family typewriter
17476 man rlog
17477 \family default
17478 をご覧ください。
17479 \end_layout
17480
17481 \begin_layout Subsubsection
17482 改訂情報
17483 \end_layout
17484
17485 \begin_layout Standard
17486 LyXは、RCSバージョン番号情報(のみ)をサポートしています。詳細については、
17487 \begin_inset CommandInset ref
17488 LatexCommand ref
17489 reference "sub:VCS改訂情報"
17490
17491 \end_inset
17492
17493 を参照。
17494 \end_layout
17495
17496 \begin_layout Subsection
17497 LyXにおけるCVSコマンド
17498 \end_layout
17499
17500 \begin_layout Standard
17501 LyXは、現在CVSを一部サポートしています。そのコマンドは、
17502 \family sans
17503 ファイル\SpecialChar \menuseparator
17504 バージョン管理
17505 \family default
17506 サブメニューにあります。バージョン管理システムSVNの方が強力なので、可能ならばCVSではなく、SVNを使用してください。
17507 \end_layout
17508
17509 \begin_layout Subsubsection
17510 CVSの一般的な利用法
17511 \end_layout
17512
17513 \begin_layout Standard
17514 CVSを初めて使いたい場合には、外部ツールを使用して自分のレポジトリを作成し、作業コピーをチェックアウトする必要があります。クライアント=サーバーモデルを使用し
17515 ている場合には、最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません。
17516 \end_layout
17517
17518 \begin_layout Standard
17519 改訂管理下にある文書のレポジトリを他人も利用している場合に、同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します。標準的なCVSレポジトリは、ファイル
17520 ロッキング機構を有しません。これは驚くべきことかもしれませんが、コンフリクトは、文書の同じ箇所の特定の内容について、人々が意見を異にしている場合にのみ発生します
17521 。したがって、共著者同士がコンスタントにコミュニケーションを交わしていれば、このようなコンフリクトは滅多に発生しません。もしコミュニケーションがなければ、いずれ
17522 にしても根本的な問題があるわけです。それにもかかわらず、いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます。この場合、最初にチェックアウトした際に
17523 、全ファイルの作業コピーは読み込み専用にされ、ユーザーは、作業コピーを書き込み可能にする特別なコマンドを使用した後、編集を開始することになります。変更をチェック
17524 インすると、作業コピーは読み込み専用状態に戻ります。LyXで予備付きチェックアウトを利用したい場合には、
17525 \begin_inset Flex Code
17526 status collapsed
17527
17528 \begin_layout Plain Layout
17529 .cvsrc
17530 \end_layout
17531
17532 \end_inset
17533
17534 ファイルを編集して、
17535 \begin_inset Flex Code
17536 status collapsed
17537
17538 \begin_layout Plain Layout
17539 cvs -r
17540 \end_layout
17541
17542 \end_inset
17543
17544 という行を書き加える必要があります。この方法の利点は、文書のうち、書き込み可能コピーを誰が使用しているかを見ることができることです。ただし、一人のユーザーだけが
17545 コピーを書き込み可能にしているとは限りません。
17546 \end_layout
17547
17548 \begin_layout Standard
17549 LyXは、あなたが予備付きチェックアウトを使用しているか、予備なしチェックアウトを利用しているか、推測しようと試みます。使用中の作業コピーが読み込み専用になって
17550 いるか、あるいはそれが書き込み可能であって、CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には、予備付きチェックアウトを使用しているもの
17551 と仮定し、そうでない場合には予備なしチェックアウトを使用しているものと仮定します。予備付きチェックアウトが検出された場合には、作業コピーが読み込み専用の場合に書
17552 き込み可能にするためには、
17553 \begin_inset Flex MenuItem
17554 status collapsed
17555
17556 \begin_layout Plain Layout
17557 チェックアウト
17558 \end_layout
17559
17560 \end_inset
17561
17562 メニューを使用しなくてはなりません。その後、
17563 \begin_inset Flex MenuItem
17564 status collapsed
17565
17566 \begin_layout Plain Layout
17567 チェックイン
17568 \end_layout
17569
17570 \end_inset
17571
17572 メニューが利用可能になるので、自分が加えた変更をリポジトリに移した後、作業コピーを再び読み込み専用にする際には、これを使用します。
17573 \end_layout
17574
17575 \begin_layout Standard
17576 CVSの詳細な情報は、
17577 \begin_inset Flex URL
17578 status collapsed
17579
17580 \begin_layout Plain Layout
17581
17582 http://www.nongnu.org/cvs
17583 \end_layout
17584
17585 \end_inset
17586
17587
17588 \begin_inset Flex URL
17589 status collapsed
17590
17591 \begin_layout Plain Layout
17592
17593 http://ximbiot.com/cvs
17594 \end_layout
17595
17596 \end_inset
17597
17598 にあります。
17599 \end_layout
17600
17601 \begin_layout Standard
17602 以下に言及するサブコマンドとスイッチを理解するには、
17603 \family typewriter
17604 man cvs
17605 \family default
17606 をお読みください。
17607 \end_layout
17608
17609 \begin_layout Subsubsection
17610 登録
17611 \end_layout
17612
17613 \begin_layout Standard
17614 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
17615 \family sans
17616 登録
17617 \family default
17618 項目は表示されません。
17619 \end_layout
17620
17621 \begin_layout Standard
17622 本コマンドは、既に文書ディレクトリをCVS管理下に置いている場合に
17623 \series bold
17624 \emph on
17625 のみ
17626 \series default
17627 \emph default
17628 (すなわち
17629 \begin_inset Flex Code
17630 status collapsed
17631
17632 \begin_layout Plain Layout
17633 CVS/Entries
17634 \end_layout
17635
17636 \end_inset
17637
17638 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、外部ツールを使用して、アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
17639 を意味します(このステップを忘れてしまうと、LyXは文書をRCSに登録します)。
17640 \end_layout
17641
17642 \begin_layout Standard
17643 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだチェックインされたわけではないことに注意してください。
17644 \end_layout
17645
17646 \begin_layout Standard
17647 実行されるCVSコマンドは、
17648 \family typewriter
17649 cvs -q add -m"<入力した説明文>" "<ファイル名>"
17650 \family default
17651  です。
17652 \end_layout
17653
17654 \begin_layout Standard
17655 上記および他のすべてのCVSコマンドにおける
17656 \family typewriter
17657 "<ファイル名>"
17658 \family default
17659 は、「カレント作業ディレクトリをファイルの場所に移動し、パスコンポーネントを除いたファイル名を引数として使用する」という意味になります。
17660 \end_layout
17661
17662 \begin_layout Subsubsection
17663 変更のチェックイン
17664 \end_layout
17665
17666 \begin_layout Standard
17667 ファイルの編集を終えたら、変更をコミットします。このとき、文書に変更が加えられていれば、変更の説明文を入れるよう促されます。その後、変更がレポジトリに書き込まれ
17668 ます。文書を変更せず、予備付きチェックアウトが検出された場合、
17669 \begin_inset Flex MenuItem
17670 status collapsed
17671
17672 \begin_layout Plain Layout
17673 チェックアウト
17674 \end_layout
17675
17676 \end_inset
17677
17678 で作られた予備は取り消されます。
17679 \end_layout
17680
17681 \begin_layout Labeling
17682 \labelwidthstring 00.00.0000
17683 CVSコマンド: 
17684 \begin_inset space ~
17685 \end_inset
17686
17687
17688 \begin_inset Newline newline
17689 \end_inset
17690
17691
17692 \begin_inset Flex Code
17693 status collapsed
17694
17695 \begin_layout Plain Layout
17696 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
17697 \end_layout
17698
17699 \end_inset
17700
17701 あるいは
17702 \begin_inset Newline newline
17703 \end_inset
17704
17705
17706 \begin_inset Flex Code
17707 status collapsed
17708
17709 \begin_layout Plain Layout
17710 cvs -q unedit "<ファイル名>"
17711 \end_layout
17712
17713 \end_inset
17714
17715
17716 \end_layout
17717
17718 \begin_layout Subsubsection
17719 変更のチェックアウト
17720 \end_layout
17721
17722 \begin_layout Standard
17723 レポジトリを他人と共有している場合、他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります。
17724 \end_layout
17725
17726 \begin_layout Standard
17727 CVSコマンド:
17728 \family typewriter
17729 cvs -q update "<ファイル名>"
17730 \end_layout
17731
17732 \begin_layout Standard
17733 読み込み専用チェックアウトが検出された場合、作業コピーを書き込み可能にし予備を作成します。
17734 \end_layout
17735
17736 \begin_layout Standard
17737 CVSコマンド:
17738 \family typewriter
17739 cvs -q edit "<ファイル名>"
17740 \end_layout
17741
17742 \begin_layout Subsubsection
17743 レポジトリのバージョンに戻す
17744 \end_layout
17745
17746 \begin_layout Standard
17747 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVS更新コマンド
17748 が実行されます。
17749 \end_layout
17750
17751 \begin_layout Standard
17752 CVSコマンド:
17753 \family typewriter
17754 cvs -q update "<ファイル名>"
17755 \end_layout
17756
17757 \begin_layout Standard
17758 予備付きチェックアウトが検出され、作業コピーに変更がない場合、予備のみが取り消されます。
17759 \end_layout
17760
17761 \begin_layout Standard
17762 CVSコマンド:
17763 \family typewriter
17764 cvs -q unedit "<ファイル名>"
17765 \end_layout
17766
17767 \begin_layout Subsubsection
17768 ローカルディレクトリチェックアウトのレポジトリからの更新
17769 \end_layout
17770
17771 \begin_layout Standard
17772 子文書や図を含んだり、外部
17773 \begin_inset Flex Code
17774 status collapsed
17775
17776 \begin_layout Plain Layout
17777 .tex
17778 \end_layout
17779
17780 \end_inset
17781
17782 ファイルを取り込むなど、文書が複雑になるにつれ、バージョン管理の利用は複雑になります。LyXは、文書が存在するツリー全体の更新をサポートします。これは、CVSの
17783 使用法について詳しい知識のない人々や、レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に、特に便利です。ファイル構造は、すべての外部フ
17784 ァイルが、文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります。いずれにしても、複合文書を新しいディレクトリを建てて収容するのは、望ま
17785 しい習慣です。
17786 \end_layout
17787
17788 \begin_layout Standard
17789 コマンド
17790 \begin_inset Flex Code
17791 status collapsed
17792
17793 \begin_layout Plain Layout
17794 レポジトリを使ってローカル辞書を更新
17795 \end_layout
17796
17797 \end_inset
17798
17799 は、ディレクトリ全体を更新します。ローカルの変更が検出された場合には、更新を開始する前にユーザーに警告が発せられます。マージコンフリクトが発生した場合には、コン
17800 フリクトを起こしている部分の新旧バージョンが、両方とも最終文書に置かれますので、マージの結果を見直し、修正する必要があります。コンフリクトは、
17801 \begin_inset Flex Code
17802 status collapsed
17803
17804 \begin_layout Plain Layout
17805 <<<<<<<
17806 \end_layout
17807
17808 \end_inset
17809
17810
17811 \begin_inset Flex Code
17812 status collapsed
17813
17814 \begin_layout Plain Layout
17815 >>>>>>>
17816 \end_layout
17817
17818 \end_inset
17819
17820 の対に囲まれ、
17821 \begin_inset Flex Code
17822 status collapsed
17823
17824 \begin_layout Plain Layout
17825 =======
17826 \end_layout
17827
17828 \end_inset
17829
17830 で区切られて表示されます。最初の部分は、文書名に続いて、更新操作前のバージョンが置かれています。第2の部分は、
17831 \begin_inset Flex Code
17832 status collapsed
17833
17834 \begin_layout Plain Layout
17835 >
17836 \end_layout
17837
17838 \end_inset
17839
17840 記号列の後にバージョン番号に続いて、レポジトリ版が置かれます。
17841 \end_layout
17842
17843 \begin_layout Labeling
17844 \labelwidthstring 00.00.0000
17845 CVSコマンド: 
17846 \begin_inset space ~
17847 \end_inset
17848
17849
17850 \begin_inset Newline newline
17851 \end_inset
17852
17853
17854 \begin_inset Flex Code
17855 status collapsed
17856
17857 \begin_layout Plain Layout
17858 cd $path; cvs diff "."
17859 \end_layout
17860
17861 \end_inset
17862
17863 (変更が検出された場合には知らせる)
17864 \begin_inset Newline newline
17865 \end_inset
17866
17867
17868 \begin_inset Flex Code
17869 status collapsed
17870
17871 \begin_layout Plain Layout
17872 cd $path; cvs -q update "."
17873 \end_layout
17874
17875 \end_inset
17876
17877
17878 \end_layout
17879
17880 \begin_layout Standard
17881 ここで
17882 \begin_inset Flex Code
17883 status collapsed
17884
17885 \begin_layout Plain Layout
17886 $path
17887 \end_layout
17888
17889 \end_inset
17890
17891 は文書パスを表します。
17892 \end_layout
17893
17894 \begin_layout Subsubsection
17895 履歴を表示
17896 \end_layout
17897
17898 \begin_layout Standard
17899 これは、CVS文書の全履歴を表示します。
17900 \begin_inset Flex Code
17901 status collapsed
17902
17903 \begin_layout Plain Layout
17904 cvs log 
17905 \begin_inset Quotes eld
17906 \end_inset
17907
17908 <ファイル名>
17909 \begin_inset Quotes erd
17910 \end_inset
17911
17912
17913 \end_layout
17914
17915 \end_inset
17916
17917 の出力がブラウザに表示されます。
17918 \end_layout
17919
17920 \begin_layout Subsection
17921 LyXにおけるSVNコマンド
17922 \end_layout
17923
17924 \begin_layout Standard
17925 LyXは、現在SVNを一部サポートしています。そのコマンドは、
17926 \begin_inset Flex MenuItem
17927 status collapsed
17928
17929 \begin_layout Plain Layout
17930 ファイル\SpecialChar \menuseparator
17931 バージョン管理
17932 \end_layout
17933
17934 \end_inset
17935
17936 メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。LyXは、SVN
17937  1.5および1.6に対して試験されています
17938 \begin_inset Foot
17939 status collapsed
17940
17941 \begin_layout Plain Layout
17942 ほとんどのコマンドは、1.4でも動作します。第
17943 \begin_inset CommandInset ref
17944 LatexCommand ref
17945 reference "sub:レポジトリからSVN同期"
17946
17947 \end_inset
17948
17949 節をご覧ください。
17950 \end_layout
17951
17952 \end_inset
17953
17954
17955 \end_layout
17956
17957 \begin_layout Subsubsection
17958 登録
17959 \end_layout
17960
17961 \begin_layout Standard
17962 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
17963 \family sans
17964 登録
17965 \family default
17966 項目は表示されません。
17967 \end_layout
17968
17969 \begin_layout Standard
17970 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
17971 \emph on
17972 のみ
17973 \emph default
17974 (すなわち
17975 \begin_inset Flex Code
17976 status collapsed
17977
17978 \begin_layout Plain Layout
17979 .svn/entries
17980 \end_layout
17981
17982 \end_inset
17983
17984 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
17985 \end_layout
17986
17987 \begin_layout Standard
17988 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
17989 \end_layout
17990
17991 \begin_layout Standard
17992 実行されるSVNコマンドは、
17993 \begin_inset Flex Code
17994 status collapsed
17995
17996 \begin_layout Plain Layout
17997 svn add -q 
17998 \begin_inset Quotes eld
17999 \end_inset
18000
18001 <ファイル名>
18002 \begin_inset Quotes erd
18003 \end_inset
18004
18005
18006 \end_layout
18007
18008 \end_inset
18009
18010 です。
18011 \end_layout
18012
18013 \begin_layout Standard
18014 スイッチの説明は
18015 \begin_inset Flex Code
18016 status collapsed
18017
18018 \begin_layout Plain Layout
18019 man svn
18020 \end_layout
18021
18022 \end_inset
18023
18024 をお読みください。
18025 \end_layout
18026
18027 \begin_layout Subsubsection
18028 変更をチェックイン
18029 \end_layout
18030
18031 \begin_layout Standard
18032 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
18033 \end_layout
18034
18035 \begin_layout Standard
18036 SVNコマンド
18037 \begin_inset Foot
18038 status collapsed
18039
18040 \begin_layout Plain Layout
18041 ロックが有効になっていない場合です。第
18042 \begin_inset CommandInset ref
18043 LatexCommand ref
18044 reference "sub:SVNファイルロック"
18045
18046 \end_inset
18047
18048 節をご覧ください。
18049 \end_layout
18050
18051 \end_inset
18052
18053
18054 \begin_inset Flex Code
18055 status collapsed
18056
18057 \begin_layout Plain Layout
18058 svn commit -q -m
18059 \begin_inset Quotes erd
18060 \end_inset
18061
18062 <入力した説明文>
18063 \begin_inset Quotes erd
18064 \end_inset
18065
18066  
18067 \begin_inset Quotes eld
18068 \end_inset
18069
18070 <ファイル名>
18071 \begin_inset Quotes erd
18072 \end_inset
18073
18074
18075 \end_layout
18076
18077 \end_inset
18078
18079
18080 \end_layout
18081
18082 \begin_layout Subsubsection
18083 チェックアウトして編集
18084 \end_layout
18085
18086 \begin_layout Standard
18087 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
18088 しておくようにしてください。
18089 \end_layout
18090
18091 \begin_layout Standard
18092 SVNコマンド
18093 \begin_inset Foot
18094 status collapsed
18095
18096 \begin_layout Plain Layout
18097 同上。
18098 \end_layout
18099
18100 \end_inset
18101
18102
18103 \begin_inset Flex Code
18104 status collapsed
18105
18106 \begin_layout Plain Layout
18107 svn update --non-interactive 
18108 \begin_inset Quotes eld
18109 \end_inset
18110
18111 <ファイル名>
18112 \begin_inset Quotes erd
18113 \end_inset
18114
18115
18116 \end_layout
18117
18118 \end_inset
18119
18120
18121 \end_layout
18122
18123 \begin_layout Subsubsection
18124 保存されたバージョンに戻す
18125 \end_layout
18126
18127 \begin_layout Standard
18128 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
18129 \end_layout
18130
18131 \begin_layout Standard
18132 SVNコマンド:
18133 \begin_inset Flex Code
18134 status collapsed
18135
18136 \begin_layout Plain Layout
18137 svn revert -q 
18138 \begin_inset Quotes eld
18139 \end_inset
18140
18141 <ファイル名>
18142 \begin_inset Quotes erd
18143 \end_inset
18144
18145
18146 \end_layout
18147
18148 \end_inset
18149
18150
18151 \end_layout
18152
18153 \begin_layout Subsubsection
18154 \begin_inset CommandInset label
18155 LatexCommand label
18156 name "sub:レポジトリからSVN同期"
18157
18158 \end_inset
18159
18160 レポジトリを使ったローカルディレクトリの同期
18161 \begin_inset Foot
18162 status collapsed
18163
18164 \begin_layout Plain Layout
18165 このコマンドは、subversion 
18166 \begin_inset Formula $\geqq1.5$
18167 \end_inset
18168
18169 でのみ動作することに注意してください。
18170 \end_layout
18171
18172 \end_inset
18173
18174
18175 \end_layout
18176
18177 \begin_layout Standard
18178 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
18179 \begin_inset Flex Code
18180 status collapsed
18181
18182 \begin_layout Plain Layout
18183 .tex
18184 \end_layout
18185
18186 \end_inset
18187
18188 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこでLyXは、文書のおいてあるツリー全体の更新をサポートします
18189 \begin_inset Foot
18190 status collapsed
18191
18192 \begin_layout Plain Layout
18193 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
18194 \end_layout
18195
18196 \end_inset
18197
18198 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
18199
18200 \end_layout
18201
18202 \begin_layout Standard
18203 \begin_inset Flex Code
18204 status collapsed
18205
18206 \begin_layout Plain Layout
18207 ローカル辞書をレポジトリを使って更新
18208 \end_layout
18209
18210 \end_inset
18211
18212 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
18213 場合には、更新が開始される前にユーザに警告が与えられます。
18214 \end_layout
18215
18216 \begin_layout Labeling
18217 \labelwidthstring 00.00.0000
18218 SVNコマンド: 
18219 \begin_inset space ~
18220 \end_inset
18221
18222
18223 \begin_inset Newline newline
18224 \end_inset
18225
18226
18227 \begin_inset Flex Code
18228 status collapsed
18229
18230 \begin_layout Plain Layout
18231 svn diff $path(変更が発見された場合には通知します)
18232 \begin_inset Newline newline
18233 \end_inset
18234
18235 svn update --accept mine-full $path
18236 \end_layout
18237
18238 \end_inset
18239
18240
18241 \end_layout
18242
18243 \begin_layout Standard
18244 ここで
18245 \begin_inset Flex Code
18246 status collapsed
18247
18248 \begin_layout Plain Layout
18249 $path
18250 \end_layout
18251
18252 \end_inset
18253
18254 は文書のパスを示します。
18255 \end_layout
18256
18257 \begin_layout Subsubsection
18258 履歴を表示
18259 \end_layout
18260
18261 \begin_layout Standard
18262 これは、SVN文書の全履歴を表示します。
18263 \begin_inset Flex Code
18264 status collapsed
18265
18266 \begin_layout Plain Layout
18267 svn log 
18268 \begin_inset Quotes eld
18269 \end_inset
18270
18271 <ファイル名>
18272 \begin_inset Quotes erd
18273 \end_inset
18274
18275
18276 \end_layout
18277
18278 \end_inset
18279
18280 の出力がブラウザに表示されます。
18281 \end_layout
18282
18283 \begin_layout Subsubsection
18284 ファイルロック
18285 \begin_inset CommandInset label
18286 LatexCommand label
18287 name "sub:SVNファイルロック"
18288
18289 \end_inset
18290
18291
18292 \end_layout
18293
18294 \begin_layout Standard
18295 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
18296 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
18297 するための、何らかのロック機構を導入することが考えられます。
18298 \end_layout
18299
18300 \begin_layout Standard
18301 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
18302 \begin_inset Flex Code
18303 status collapsed
18304
18305 \begin_layout Plain Layout
18306 svn:needs-lock
18307 \end_layout
18308
18309 \end_inset
18310
18311 svnファイル特性に依拠した書き込み権限の自動設定(第
18312 \begin_inset CommandInset ref
18313 LatexCommand ref
18314 reference "sub:自動ロック特性"
18315
18316 \end_inset
18317
18318 節を参照)です
18319 \begin_inset Foot
18320 status open
18321
18322 \begin_layout Plain Layout
18323 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
18324 \end_layout
18325
18326 \end_inset
18327
18328 。ある文書について、この特性が検出されたときには、LyXは自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組
18329 みに切り替わります。これは特に、LyXでのファイルの使われ方に以下の二つのモードがあることを意味します。
18330 \end_layout
18331
18332 \begin_layout Itemize
18333 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
18334 \emph on
18335 チェックアウト
18336 \emph default
18337 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
18338 \end_layout
18339
18340 \begin_layout Itemize
18341 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
18342 \emph on
18343 チェックイン
18344 \emph default
18345 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
18346 \begin_inset Foot
18347 status collapsed
18348
18349 \begin_layout Plain Layout
18350 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
18351 \end_layout
18352
18353 \end_inset
18354
18355 、書き込みロックの解放のみが行われます。
18356 \end_layout
18357
18358 \begin_layout Standard
18359 SVNコマンド:
18360 \end_layout
18361
18362 \begin_layout Labeling
18363 \labelwidthstring 00.00.0000
18364 チェックイン: 
18365 \begin_inset Flex Code
18366 status collapsed
18367
18368 \begin_layout Plain Layout
18369 svn commit -q -m
18370 \begin_inset Quotes erd
18371 \end_inset
18372
18373 <説明>
18374 \begin_inset Quotes erd
18375 \end_inset
18376
18377  
18378 \begin_inset Quotes eld
18379 \end_inset
18380
18381 <ファイル名>
18382 \begin_inset Quotes erd
18383 \end_inset
18384
18385
18386 \end_layout
18387
18388 \end_inset
18389
18390
18391 \begin_inset Newline newline
18392 \end_inset
18393
18394
18395 \begin_inset Flex Code
18396 status collapsed
18397
18398 \begin_layout Plain Layout
18399 svn unlock 
18400 \begin_inset Quotes eld
18401 \end_inset
18402
18403 <ファイル名>
18404 \begin_inset Quotes erd
18405 \end_inset
18406
18407
18408 \end_layout
18409
18410 \end_inset
18411
18412
18413 \end_layout
18414
18415 \begin_layout Labeling
18416 \labelwidthstring 00.00.0000
18417 チェックアウト: 
18418 \begin_inset Flex Code
18419 status collapsed
18420
18421 \begin_layout Plain Layout
18422 svn update 
18423 \begin_inset Quotes eld
18424 \end_inset
18425
18426 <ファイル名>
18427 \begin_inset Quotes erd
18428 \end_inset
18429
18430
18431 \end_layout
18432
18433 \end_inset
18434
18435
18436 \begin_inset Newline newline
18437 \end_inset
18438
18439
18440 \begin_inset Flex Code
18441 status collapsed
18442
18443 \begin_layout Plain Layout
18444 svn unlock 
18445 \begin_inset Quotes eld
18446 \end_inset
18447
18448 <ファイル名>
18449 \begin_inset Quotes erd
18450 \end_inset
18451
18452
18453 \end_layout
18454
18455 \end_inset
18456
18457
18458 \end_layout
18459
18460 \begin_layout Subsubsection
18461 自動ロック特性
18462 \begin_inset CommandInset label
18463 LatexCommand label
18464 name "sub:自動ロック特性"
18465
18466 \end_inset
18467
18468
18469 \end_layout
18470
18471 \begin_layout Standard
18472 上述したような
18473 \begin_inset Flex Code
18474 status collapsed
18475
18476 \begin_layout Plain Layout
18477 .lyx
18478 \end_layout
18479
18480 \end_inset
18481
18482 ファイルに対する書き込み権限の自動設定は、
18483 \begin_inset Flex MenuItem
18484 status collapsed
18485
18486 \begin_layout Plain Layout
18487 ファイル\SpecialChar \menuseparator
18488 バージョン管理\SpecialChar \menuseparator
18489 ロック特性を使用
18490 \end_layout
18491
18492 \end_inset
18493
18494 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
18495 \end_layout
18496
18497 \begin_layout Standard
18498 SVNコマンド:
18499 \end_layout
18500
18501 \begin_layout Labeling
18502 \labelwidthstring 00.00.0000
18503 チェックイン: 
18504 \begin_inset Flex Code
18505 status collapsed
18506
18507 \begin_layout Plain Layout
18508 svn propset svn:needs-lock ON 
18509 \begin_inset Quotes eld
18510 \end_inset
18511
18512 <ファイル名>
18513 \begin_inset Quotes erd
18514 \end_inset
18515
18516
18517 \end_layout
18518
18519 \end_inset
18520
18521
18522 \end_layout
18523
18524 \begin_layout Labeling
18525 \labelwidthstring 00.00.0000
18526 チェックアウト: 
18527 \begin_inset Flex Code
18528 status collapsed
18529
18530 \begin_layout Plain Layout
18531 svn propdel svn:needs-lock 
18532 \begin_inset Quotes eld
18533 \end_inset
18534
18535 <ファイル名>
18536 \begin_inset Quotes erd
18537 \end_inset
18538
18539
18540 \end_layout
18541
18542 \end_inset
18543
18544
18545 \end_layout
18546
18547 \begin_layout Subsubsection
18548 \begin_inset CommandInset label
18549 LatexCommand label
18550 name "sub:VCS改訂情報"
18551
18552 \end_inset
18553
18554 文書の改訂情報
18555 \end_layout
18556
18557 \begin_layout Standard
18558 文書中で改訂情報を有効化するにはいくつかの方法があります。
18559 \end_layout
18560
18561 \begin_layout Itemize
18562 LyXによる直接サポート
18563 \end_layout
18564
18565 \begin_deeper
18566 \begin_layout Itemize
18567 ツリー改訂情報(
18568 \begin_inset Flex Code
18569 status collapsed
18570
18571 \begin_layout Plain Layout
18572 vcs-tree-revision
18573 \end_layout
18574
18575 \end_inset
18576
18577 )。
18578 \begin_inset Flex Code
18579 status collapsed
18580
18581 \begin_layout Plain Layout
18582 svnversion
18583 \end_layout
18584
18585 \end_inset
18586
18587 コマンドの出力を返します。下記の表が、結果の読み方のヒントを与えるでしょう。
18588 \end_layout
18589
18590 \begin_layout Standard
18591 \align center
18592 \begin_inset Tabular
18593 <lyxtabular version="3" rows="6" columns="2">
18594 <features rotate="0" tabularvalignment="middle">
18595 <column alignment="center" valignment="top">
18596 <column alignment="center" valignment="top">
18597 <row>
18598 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18599 \begin_inset Text
18600
18601 \begin_layout Plain Layout
18602 出力
18603 \end_layout
18604
18605 \end_inset
18606 </cell>
18607 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18608 \begin_inset Text
18609
18610 \begin_layout Plain Layout
18611 意味
18612 \end_layout
18613
18614 \end_inset
18615 </cell>
18616 </row>
18617 <row>
18618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18619 \begin_inset Text
18620
18621 \begin_layout Plain Layout
18622 4123:4168
18623 \end_layout
18624
18625 \end_inset
18626 </cell>
18627 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18628 \begin_inset Text
18629
18630 \begin_layout Plain Layout
18631 改訂版の混合した作業コピー
18632 \end_layout
18633
18634 \end_inset
18635 </cell>
18636 </row>
18637 <row>
18638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18639 \begin_inset Text
18640
18641 \begin_layout Plain Layout
18642 4168M
18643 \end_layout
18644
18645 \end_inset
18646 </cell>
18647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18648 \begin_inset Text
18649
18650 \begin_layout Plain Layout
18651 修正された作業コピー
18652 \end_layout
18653
18654 \end_inset
18655 </cell>
18656 </row>
18657 <row>
18658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18659 \begin_inset Text
18660
18661 \begin_layout Plain Layout
18662 4123S
18663 \end_layout
18664
18665 \end_inset
18666 </cell>
18667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18668 \begin_inset Text
18669
18670 \begin_layout Plain Layout
18671 スイッチされた作業コピー
18672 \end_layout
18673
18674 \end_inset
18675 </cell>
18676 </row>
18677 <row>
18678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18679 \begin_inset Text
18680
18681 \begin_layout Plain Layout
18682 4123P
18683 \end_layout
18684
18685 \end_inset
18686 </cell>
18687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18688 \begin_inset Text
18689
18690 \begin_layout Plain Layout
18691 チェックアウト頻度が低かったことによる不完全な作業コピー
18692 \end_layout
18693
18694 \end_inset
18695 </cell>
18696 </row>
18697 <row>
18698 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18699 \begin_inset Text
18700
18701 \begin_layout Plain Layout
18702 4123:4168MS
18703 \end_layout
18704
18705 \end_inset
18706 </cell>
18707 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18708 \begin_inset Text
18709
18710 \begin_layout Plain Layout
18711 改訂版が混合し、修正され、スイッチされた作業コピー
18712 \end_layout
18713
18714 \end_inset
18715 </cell>
18716 </row>
18717 </lyxtabular>
18718
18719 \end_inset
18720
18721
18722 \end_layout
18723
18724 \begin_layout Itemize
18725 ファイル改訂情報。
18726 \begin_inset Flex Code
18727 status collapsed
18728
18729 \begin_layout Plain Layout
18730 svn
18731 \begin_inset space ~
18732 \end_inset
18733
18734 info
18735 \begin_inset space ~
18736 \end_inset
18737
18738 --xml
18739 \begin_inset space ~
18740 \end_inset
18741
18742 file.lyx
18743 \end_layout
18744
18745 \end_inset
18746
18747 の出力を解析したものが返されます。サポートされるフラグは
18748 \end_layout
18749
18750 \begin_deeper
18751 \begin_layout Itemize
18752 最終コミットのバージョン番号(
18753 \begin_inset Flex Code
18754 status collapsed
18755
18756 \begin_layout Plain Layout
18757 vcs-revision
18758 \end_layout
18759
18760 \end_inset
18761
18762
18763 \end_layout
18764
18765 \begin_layout Itemize
18766 最終コミットの著者(
18767 \begin_inset Flex Code
18768 status collapsed
18769
18770 \begin_layout Plain Layout
18771 vcs-author
18772 \end_layout
18773
18774 \end_inset
18775
18776
18777 \end_layout
18778
18779 \begin_layout Itemize
18780 最終コミットの日付(
18781 \begin_inset Flex Code
18782 status collapsed
18783
18784 \begin_layout Plain Layout
18785 vcs-date
18786 \end_layout
18787
18788 \end_inset
18789
18790
18791 \end_layout
18792
18793 \begin_layout Itemize
18794 最終コミットの時間(
18795 \begin_inset Flex Code
18796 status collapsed
18797
18798 \begin_layout Plain Layout
18799 vcs-time
18800 \end_layout
18801
18802 \end_inset
18803
18804
18805 \end_layout
18806
18807 \end_deeper
18808 \begin_layout Standard
18809 これらの情報は、情報差込枠で得ることができます(例:
18810 \begin_inset Flex Code
18811 status collapsed
18812
18813 \begin_layout Plain Layout
18814 info-insert buffer vcs-date
18815 \end_layout
18816
18817 \end_inset
18818
18819 )。これらの情報は、ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
18820 \begin_inset Flex Code
18821 status collapsed
18822
18823 \begin_layout Plain Layout
18824 .svn
18825 \end_layout
18826
18827 \end_inset
18828
18829 ディレクトリがあるときのみ)利用可能です。
18830 \end_layout
18831
18832 \end_deeper
18833 \begin_layout Itemize
18834 もう一つの---ハッカー的な---方法は、SVNキーワードを使用する方法です
18835 \begin_inset Foot
18836 status collapsed
18837
18838 \begin_layout Plain Layout
18839 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
18840 \end_layout
18841
18842 \end_inset
18843
18844 。簡単に言えば、ファイルキーワード特性を設定して(例:
18845 \family sans
18846 svn propset svn:keywords 'Rev' file.lyx
18847 \family default
18848 )、文書中にキーワードTeXコード
18849 \begin_inset Foot
18850 status collapsed
18851
18852 \begin_layout Plain Layout
18853 これは、LyXがキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
18854 \end_layout
18855
18856 \end_inset
18857
18858 タグ(例:
18859 \begin_inset ERT
18860 status open
18861
18862 \begin_layout Plain Layout
18863
18864 $Rev$
18865 \end_layout
18866
18867 \end_inset
18868
18869 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
18870 \begin_inset ERT
18871 status open
18872
18873 \begin_layout Plain Layout
18874
18875 $Rev: 59 $
18876 \end_layout
18877
18878 \end_inset
18879
18880 )。このアプローチにはいくつか問題があります。第一に、TeXの世界では「$」文字は数式を表すのに使われるので、LyX中の
18881 \begin_inset Formula $Rev$
18882 \end_inset
18883
18884 という数式表現が、すべて
18885 \begin_inset Formula $Rev:59$
18886 \end_inset
18887
18888 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
18889 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
18890 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、LyXがこれを直接サポートすることは、難しそうです。
18891 \end_layout
18892
18893 \begin_layout Subsection
18894 SVNとWindows環境
18895 \end_layout
18896
18897 \begin_layout Quote
18898 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。---P.
18899  A.
18900  ルービン
18901 \end_layout
18902
18903 \begin_layout Subsubsection
18904 準備
18905 \end_layout
18906
18907 \begin_layout Standard
18908 LyXを導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クラ
18909 イアントプログラムのWindows用インストーラは
18910 \begin_inset CommandInset href
18911 LatexCommand href
18912 name "CollabNet"
18913 target "http://www.collab.net/nonav/downloads/subversion/"
18914
18915 \end_inset
18916
18917 にあります。ユーザは
18918 \begin_inset CommandInset href
18919 LatexCommand href
18920 name "TortoiseSVN"
18921 target "http://tortoisesvn.tigris.org/"
18922
18923 \end_inset
18924
18925 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。LyX外部で
18926 行う操作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、LyX自身が使用するクライアントプログラムの代わりとは成
18927 りませんので、注意してください。
18928 \end_layout
18929
18930 \begin_layout Subsubsection
18931 文書をSubversion管理下に置くには
18932 \end_layout
18933
18934 \begin_layout Standard
18935 LyX文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロ
18936 ジェクトに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下
18937 にない場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、LyXの外
18938 部で行います。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、
18939 DOSプロンプトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。
18940 レポジトリは既に存在し、新規プロジェクトを
18941 \begin_inset Flex Code
18942 status collapsed
18943
18944 \begin_layout Plain Layout
18945 C:
18946 \backslash
18947 new project
18948 \end_layout
18949
18950 \end_inset
18951
18952 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
18953 \begin_inset Flex Code
18954 status collapsed
18955
18956 \begin_layout Plain Layout
18957 svn --help
18958 \end_layout
18959
18960 \end_inset
18961
18962 を実行してください。
18963 \end_layout
18964
18965 \begin_layout Enumerate
18966 Windows Explorerで
18967 \begin_inset Flex Code
18968 status collapsed
18969
18970 \begin_layout Plain Layout
18971 C:
18972 \backslash
18973 new project
18974 \end_layout
18975
18976 \end_inset
18977
18978 を見つけ出して右クリックし、
18979 \begin_inset Flex MenuItem
18980 status collapsed
18981
18982 \begin_layout Plain Layout
18983 TortoiseSVN\SpecialChar \menuseparator
18984 Repo-browser
18985 \end_layout
18986
18987 \end_inset
18988
18989 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
18990 \end_layout
18991
18992 \begin_layout Enumerate
18993 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
18994 \begin_inset Flex MenuItem
18995 status collapsed
18996
18997 \begin_layout Plain Layout
18998 Create folder\SpecialChar \ldots{}
18999
19000 \end_layout
19001
19002 \end_inset
19003
19004 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
19005 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
19006 \end_layout
19007
19008 \begin_layout Enumerate
19009 再度
19010 \begin_inset Flex Code
19011 status collapsed
19012
19013 \begin_layout Plain Layout
19014 C:
19015 \backslash
19016 new project
19017 \end_layout
19018
19019 \end_inset
19020
19021 を右クリックし、今度は
19022 \begin_inset Flex MenuItem
19023 status collapsed
19024
19025 \begin_layout Plain Layout
19026 SVN Checkout\SpecialChar \ldots{}
19027
19028 \end_layout
19029
19030 \end_inset
19031
19032 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
19033 \begin_inset Flex Code
19034 status collapsed
19035
19036 \begin_layout Plain Layout
19037 C:
19038 \backslash
19039 new project
19040 \end_layout
19041
19042 \end_inset
19043
19044 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
19045 \begin_inset Flex Code
19046 status collapsed
19047
19048 \begin_layout Plain Layout
19049 C:
19050 \backslash
19051 new project
19052 \end_layout
19053
19054 \end_inset
19055
19056 の下に
19057 \begin_inset Flex Code
19058 status collapsed
19059
19060 \begin_layout Plain Layout
19061 .svn
19062 \end_layout
19063
19064 \end_inset
19065
19066 ディレクトリが作成されます。
19067 \end_layout
19068
19069 \begin_layout Enumerate
19070 LyXで文書を新規作成するか開くかして、
19071 \begin_inset Flex MenuItem
19072 status collapsed
19073
19074 \begin_layout Plain Layout
19075 ファイル\SpecialChar \menuseparator
19076 バージョン管理\SpecialChar \menuseparator
19077 登録
19078 \end_layout
19079
19080 \end_inset
19081
19082 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
19083 \end_layout
19084
19085 \begin_layout Standard
19086 爾後、
19087 \begin_inset Flex MenuItem
19088 status collapsed
19089
19090 \begin_layout Plain Layout
19091 ファイル\SpecialChar \menuseparator
19092 バージョン管理
19093 \end_layout
19094
19095 \end_inset
19096
19097 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
19098 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
19099 \end_layout
19100
19101 \begin_layout Subsubsection
19102 Windows下でSVNと共にSSHトンネルを使うには
19103 \end_layout
19104
19105 \begin_layout Standard
19106 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
19107 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
19108 ることを覚悟しておいてください。
19109 \end_layout
19110
19111 \begin_layout Enumerate
19112 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
19113 \begin_inset Flex Code
19114 status collapsed
19115
19116 \begin_layout Plain Layout
19117 svn --version
19118 \end_layout
19119
19120 \end_inset
19121
19122 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
19123 \end_layout
19124
19125 \begin_layout Enumerate
19126 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
19127 \begin_inset Foot
19128 status open
19129
19130 \begin_layout Plain Layout
19131 \begin_inset Flex URL
19132 status collapsed
19133
19134 \begin_layout Plain Layout
19135
19136 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
19137 \end_layout
19138
19139 \end_inset
19140
19141
19142 \end_layout
19143
19144 \end_inset
19145
19146 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
19147 護などを加えないキーのみを使用することとします。
19148 \end_layout
19149
19150 \begin_deeper
19151 \begin_layout Enumerate
19152 \begin_inset Flex Code
19153 status collapsed
19154
19155 \begin_layout Plain Layout
19156 puttygen
19157 \end_layout
19158
19159 \end_inset
19160
19161 を使ってキーを生成します。.ppkプライベートキーファイルを保存し、パブリックキーファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブ
19162 リックキーの書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized
19163 _keys file:」編集フィールドから、直接サーバの
19164 \begin_inset Flex Code
19165 status collapsed
19166
19167 \begin_layout Plain Layout
19168 ~/.ssh/authorized_keys
19169 \end_layout
19170
19171 \end_inset
19172
19173 または
19174 \begin_inset Flex Code
19175 status collapsed
19176
19177 \begin_layout Plain Layout
19178 authorized_keys2
19179 \end_layout
19180
19181 \end_inset
19182
19183 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
19184 \end_layout
19185
19186 \begin_layout Enumerate
19187 Puttyのplinkを入手してください。SVNのconfigファイル
19188 \begin_inset Foot
19189 status collapsed
19190
19191 \begin_layout Plain Layout
19192 正確なパスはWindowsのバージョンに依りますが、通常は
19193 \begin_inset Flex Code
19194 status collapsed
19195
19196 \begin_layout Plain Layout
19197 c:
19198 \backslash
19199 Documents and Settings
19200 \backslash
19201 user
19202 \backslash
19203 Application Data
19204 \backslash
19205 Subversion
19206 \backslash
19207 config
19208 \end_layout
19209
19210 \end_inset
19211
19212
19213 \begin_inset Flex Code
19214 status collapsed
19215
19216 \begin_layout Plain Layout
19217 AppData
19218 \backslash
19219 Roaming
19220 \backslash
19221 Subversion
19222 \end_layout
19223
19224 \end_inset
19225
19226 辺りにあります。
19227 \end_layout
19228
19229 \end_inset
19230
19231 中の
19232 \begin_inset Flex Code
19233 status collapsed
19234
19235 \begin_layout Plain Layout
19236 [tunnels]
19237 \end_layout
19238
19239 \end_inset
19240
19241 セクションにsshコマンドを設定してください。例:
19242 \begin_inset Flex Code
19243 status collapsed
19244
19245 \begin_layout Plain Layout
19246 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
19247 \end_layout
19248
19249 \end_inset
19250
19251
19252 \begin_inset Foot
19253 status collapsed
19254
19255 \begin_layout Plain Layout
19256 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
19257 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
19258 \end_layout
19259
19260 \end_inset
19261
19262
19263 \end_layout
19264
19265 \end_deeper
19266 \begin_layout Enumerate
19267 SVNアーカイブをチェックアウトしてください。例:
19268 \begin_inset Newline newline
19269 \end_inset
19270
19271
19272 \begin_inset Flex Code
19273 status collapsed
19274
19275 \begin_layout Plain Layout
19276 svn co svn+ssh://user@server/repository_path
19277 \end_layout
19278
19279 \end_inset
19280
19281
19282 \end_layout
19283
19284 \begin_layout Subsubsection
19285 行末変換
19286 \end_layout
19287
19288 \begin_layout Standard
19289 共著者同士がLinuxとWindowsを混在させているとき、LyXは.lyxファイル中で異なった行末記号を使用することになります。これは、LyXの機能に関する限り
19290 問題になりませんが、コミット差分は巨大になり、マージではコンフリクトを引き起こしがちです。幸いにして、SVNは、.lyxファイルを
19291 \begin_inset Flex Code
19292 status collapsed
19293
19294 \begin_layout Plain Layout
19295 native
19296 \end_layout
19297
19298 \end_inset
19299
19300 モードに切り替える際
19301 \begin_inset Foot
19302 status collapsed
19303
19304 \begin_layout Plain Layout
19305 手短には
19306 \begin_inset Flex Code
19307 status collapsed
19308
19309 \begin_layout Plain Layout
19310 svn propset svn:eol-style native FILE_NAME
19311 \end_layout
19312
19313 \end_inset
19314
19315
19316 \end_layout
19317
19318 \end_inset
19319
19320 、CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
19321 \begin_inset Foot
19322 status collapsed
19323
19324 \begin_layout Plain Layout
19325 \begin_inset Flex URL
19326 status collapsed
19327
19328 \begin_layout Plain Layout
19329
19330 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
19331 \end_layout
19332
19333 \end_inset
19334
19335
19336 \end_layout
19337
19338 \end_inset
19339
19340
19341 \end_layout
19342
19343 \begin_layout Subsection
19344 さらなる調整
19345 \end_layout
19346
19347 \begin_layout Standard
19348 vcコマンド機構が最近になって付け加えられたおかげで、LyXのパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
19349 \end_layout
19350
19351 \begin_layout Standard
19352 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
19353 \end_layout
19354
19355 \begin_layout Description
19356 コミット: 
19357 \begin_inset Flex Code
19358 status collapsed
19359
19360 \begin_layout Plain Layout
19361 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
19362 \end_layout
19363
19364 \end_inset
19365
19366
19367 \end_layout
19368
19369 \begin_layout Description
19370 元に戻す: 
19371 \begin_inset Flex Code
19372 status collapsed
19373
19374 \begin_layout Plain Layout
19375 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
19376 \end_layout
19377
19378 \end_inset
19379
19380
19381 \end_layout
19382
19383 \begin_layout Subsection
19384 バージョン管理と文書比較
19385 \end_layout
19386
19387 \begin_layout Standard
19388 バージョン管理は、通常
19389 \begin_inset Flex Code
19390 status collapsed
19391
19392 \begin_layout Plain Layout
19393 diff
19394 \end_layout
19395
19396 \end_inset
19397
19398 ダンプを生成することによって、改訂版の間の変更点を検査するのが、典型的な使用法です。これは平文ファイルには有効なのですが、複雑な構造を持つLyXファイルの場合に
19399 は、あまり便利ではありません。そこで、LyXは独自の文書比較機能を提供しています。この機能を呼び出すには2つの方法があります。1つは、LyXの
19400 \begin_inset Flex Code
19401 status collapsed
19402
19403 \begin_layout Plain Layout
19404 VC_COMPARE
19405 \end_layout
19406
19407 \end_inset
19408
19409 関数を直接呼び出す方法であり(詳細はLyX関数説明書を参照)、もう1つは
19410 \begin_inset Flex MenuItem
19411 status collapsed
19412
19413 \begin_layout Plain Layout
19414 旧改訂と比較\SpecialChar \ldots{}
19415
19416 \end_layout
19417
19418 \end_inset
19419
19420 メニューないしアイコンを使用する方法です。当該文書のうち、任意の2つの改訂版を比較することもできますし、編集中の現行版を古い改訂版と比較することもできます(この
19421 とき改訂版遡及数「
19422 \begin_inset Flex MenuItem
19423 status collapsed
19424
19425 \begin_layout Plain Layout
19426 0
19427 \end_layout
19428
19429 \end_inset
19430
19431 」は、編集中のファイルと最後にコミットした改訂版との比較を意味します)。
19432 \end_layout
19433
19434 \begin_layout Standard
19435 この機能は、SVNとRCSでサポートされていますが、RCSは、より複雑なバージョン付けスキームを持っているため、制約があります。ダイアログ中で改訂版を指定する際
19436 の数字は、つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」)。
19437 \end_layout
19438
19439 \begin_layout Section
19440 文芸的プログラミング
19441 \end_layout
19442
19443 \begin_layout Standard
19444
19445 \noun on
19446 Kayvan Sylvan
19447 \noun default
19448 (kayvan@sylvan.com)改訂 
19449 \noun on
19450 Edmar Wienskoski Jr.
19451 \noun default
19452 (edmar-w-jr@technologist.com)原文
19453 \end_layout
19454
19455 \begin_layout Subsection
19456 はじめに
19457 \end_layout
19458
19459 \begin_layout Standard
19460 この節の主な目的は、文芸的プログラミング(literate programming)のために、LyXをどう使えばよいかをお見せすることです。ここでは、あなたがこ
19461 のプログラミング技術をよくご存じで、「tangling」や「weaving」の意味するところを知っているものとして説明します。そうでない場合には、以下の各節にあ
19462 るウェブリンクをたどってください。そこには、かつての開発の歴史から最新のツールチップまで、たくさんの良質なドキュメンテーションがあります。
19463 \end_layout
19464
19465 \begin_layout Standard
19466 また、あなたが、LyXの設定を変更することを厭わない程度までLyXに習熟しており、Xリソースファイルにも親しんでいることを前提にしています。そうでない場合は、あ
19467 なたの必要とするトピックを扱っている、LyXの他の説明書で調べてください。
19468 \end_layout
19469
19470 \begin_layout Subsection
19471 文芸的プログラミング
19472 \end_layout
19473
19474 \begin_layout Standard
19475 以下は、文芸的プログラミング FAQからの抜粋です。
19476 \end_layout
19477
19478 \begin_layout Quotation
19479 文芸的プログラミングは、人間が読むのに適した形でのドキュメンテーションとソースの組合わせです。実際、文芸的プログラムは楽しい読み物であるべきであり、さらには参加
19480 したいとさえ思わせるべきなのです!(ボブ、ごめん。言わずにはいれなかった。)一般的に、文芸的プログラムは、ソースとドキュメンテーションを同一ファイル上に結合した
19481 ものです。そして、文芸的プログラミングツールは、ファイルを解析して、読むことのできるドキュメンテーションか、あるいはコンパイル可能なソースを生成します。文芸的プ
19482 ログラミングのWEBスタイルは、D.
19483 \begin_inset space \thinspace{}
19484 \end_inset
19485
19486 E.
19487  Knuthが、TeX組版ソフトウエアを開発中に作り出したものです。
19488 \end_layout
19489
19490 \begin_layout Standard
19491 他のエキスパートの発言です。
19492 \end_layout
19493
19494 \begin_layout Quotation
19495
19496 \emph on
19497 文芸的プログラミングは、冗長なコメント付けと何が違いますか?
19498 \end_layout
19499
19500 \begin_layout Quotation
19501 3つの際立った特徴があります。重要な順に列挙すれば、
19502 \end_layout
19503
19504 \begin_deeper
19505 \begin_layout Itemize
19506 推敲の順序が柔軟
19507 \end_layout
19508
19509 \begin_layout Itemize
19510 ブラウジングの自動サポート
19511 \end_layout
19512
19513 \begin_layout Itemize
19514 特に図式と数式を含んだドキュメンテーションの組版
19515 \end_layout
19516
19517 \end_deeper
19518 \begin_layout Quotation
19519 などがあります。
19520 \end_layout
19521
19522 \begin_layout Standard
19523 あなたの興味に火を付けたところで参考文献を見てみましょう。
19524 \end_layout
19525
19526 \begin_layout Subsubsection
19527 参考文献
19528 \end_layout
19529
19530 \begin_layout Standard
19531 完全な文芸的プログラミング FAQは
19532 \end_layout
19533
19534 \begin_layout Quote
19535 Literate Programming FAQ 
19536 \begin_inset Flex URL
19537 status collapsed
19538
19539 \begin_layout Plain Layout
19540
19541 http://shelob.ce.ttu.edu/daves/lpfaq/faq.html
19542 \end_layout
19543
19544 \end_inset
19545
19546
19547 \end_layout
19548
19549 \begin_layout Standard
19550 にあります。
19551 \end_layout
19552
19553 \begin_layout Standard
19554 このFAQには、23(二十三です!)の文芸的プログラミング用ツールが列挙されています。一部のツールは、特定のプログラミング言語用に特化したものですが、一般的な対
19555 象を持つものもあります。私は自分で使うのに、いくつかの理由から
19556 \noun on
19557 Noweb
19558 \noun default
19559 を選びました。
19560 \end_layout
19561
19562 \begin_layout Itemize
19563 ドキュメンテーションをLaTeXでもHTMLでも出力できる。
19564 \end_layout
19565
19566 \begin_layout Itemize
19567 開放的なアーキテクチャに持っているので、新しいフィルタをプラグインとして加えたり、自分が必要な特別な処理を実行することが容易である。
19568 \end_layout
19569
19570 \begin_layout Itemize
19571 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです)。
19572 \end_layout
19573
19574 \begin_layout Itemize
19575 無料である。
19576 \end_layout
19577
19578 \begin_layout Standard
19579 Nowebのウェブページは
19580 \end_layout
19581
19582 \begin_layout Quote
19583 Nowebホームページ 
19584 \begin_inset Flex URL
19585 status collapsed
19586
19587 \begin_layout Plain Layout
19588
19589 http://www.cs.virginia.edu/~nr/noweb/
19590 \end_layout
19591
19592 \end_inset
19593
19594
19595 \end_layout
19596
19597 \begin_layout Standard
19598 にあります。ここから始めれば、たくさんの興味深いリンクや、文芸的プログラミングの用例にたどり着くことができます。
19599 \end_layout
19600
19601 \begin_layout Subsection
19602 LyXと文芸的プログラミング
19603 \end_layout
19604
19605 \begin_layout Standard
19606 LyXにおける文芸的プログラミングのサポートは、LyXの汎用変換機構を使用して実現しています。このサポートは「Noweb非依存」的な方法で提供されているので、L
19607 yXの設定を変更するだけで、自分の好きな他の文芸的プログラミングツールを使って、この新しいLyXの機能を利用することができます。
19608 \end_layout
19609
19610 \begin_layout Subsubsection
19611 ドキュメントとコードの生成(weavingおよびtangling)
19612 \end_layout
19613
19614 \begin_layout Paragraph
19615 文書クラスの選択
19616 \end_layout
19617
19618 \begin_layout Standard
19619 NowebとLyXの導入に成功すると、新規文書を開いたり、既存文書の文書クラスを変更しようとする際、以下の3つの新しい文書クラスが利用可能になっているはずです。
19620 \end_layout
19621
19622 \begin_layout Itemize
19623 Article (Noweb)
19624 \end_layout
19625
19626 \begin_layout Itemize
19627 Book (Noweb)
19628 \end_layout
19629
19630 \begin_layout Itemize
19631 Report (Noweb)
19632 \end_layout
19633
19634 \begin_layout Standard
19635 文芸的プログラミング文書を作成する場合には、これらのうち一つを選んでください。
19636 \end_layout
19637
19638 \begin_layout Standard
19639 文芸的プログラミング文書は、これら3つのクラスに限定されないことに注意してください。letterのような他のスタイルから新しいクラスを作成することもできますし、
19640 Article (AMS)のような他のクラスバリエーションと組み合わせて作成することもできます。既存のクラスではカバーできないような、特別なニーズがある場合には
19641 、LyX開発者用メーリングリスト(lyx-devel@lists.lyx.org)に連絡していただければ、新しい項目を加えるように調整するか、そのしかたをお教えしま
19642
19643 \begin_inset Foot
19644 status collapsed
19645
19646 \begin_layout Plain Layout
19647 これは非常に簡単です。これを行うには、4行から成るファイルを作成し、自動設定を実行するだけなのです。
19648 \end_layout
19649
19650 \end_inset
19651
19652 。また、Noweb以外の文芸的プログラミングツールを使用する場合にも、そのための新しい文書クラスをつくる必要があります。
19653 \end_layout
19654
19655 \begin_layout Paragraph
19656 コードの入力
19657 \end_layout
19658
19659 \begin_layout Standard
19660 LyXでは、
19661 \begin_inset Flex Noun
19662 status collapsed
19663
19664 \begin_layout Plain Layout
19665 Chunk
19666 \end_layout
19667
19668 \end_inset
19669
19670 という名前のレイアウトを使えば、コードを入力することができます。Nowebは次のようにchunks を区切ります。
19671 \end_layout
19672
19673 \begin_layout LyX-Code
19674 <<My code>>=
19675 \end_layout
19676
19677 \begin_layout LyX-Code
19678   code
19679 \end_layout
19680
19681 \begin_layout LyX-Code
19682   more code
19683 \end_layout
19684
19685 \begin_layout LyX-Code
19686   even more code
19687 \end_layout
19688
19689 \begin_layout LyX-Code
19690   @
19691 \end_layout
19692
19693 \begin_layout Standard
19694 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまりLyXはこの間に書かれたものへのどんな変更も禁止しなくてははなりません。こ
19695 れは
19696 \begin_inset Flex Noun
19697 status collapsed
19698
19699 \begin_layout Plain Layout
19700 Chunk
19701 \end_layout
19702
19703 \end_inset
19704
19705 と呼ぶ特別なレイアウトで扱われます。この環境は通常の段落のようですが、自由に空白を入れることができます。
19706 \end_layout
19707
19708 \begin_layout Standard
19709 また、chunkの中にNowebの%defを使うことができます。これを使うことでNowebのidentifierの相互参照に項目を加えることができます。次の例を
19710 見てください。
19711 \end_layout
19712
19713 \begin_layout LyX-Code
19714 <<My chunk>>=
19715 \end_layout
19716
19717 \begin_layout LyX-Code
19718 def some_function(args):
19719 \end_layout
19720
19721 \begin_layout LyX-Code
19722    "This is the doc string for this function."
19723 \end_layout
19724
19725 \begin_layout LyX-Code
19726    print "My args: ", args
19727 \end_layout
19728
19729 \begin_layout LyX-Code
19730 @ %def some_function
19731 \end_layout
19732
19733 \begin_layout Standard
19734 これをどのように使って、その結果相互参照がどうなるかは
19735 \emph on
19736 LIBDIR/examples/listerrors.lyx
19737 \emph default
19738 の中の文芸pythonプログラムを見るとよくわかります。
19739 \end_layout
19740
19741 \begin_layout Paragraph
19742 ドキュメンテーションの生成
19743 \end_layout
19744
19745 \begin_layout Standard
19746 新しい文章ファイルを正しい文書クラスでつくり、その中にコードとテキストも入れました。これをどうやって印刷したらいいのでしょう。簡単です。
19747 \begin_inset Flex MenuItem
19748 status collapsed
19749
19750 \begin_layout Plain Layout
19751 表示\SpecialChar \menuseparator
19752 DVI
19753 \end_layout
19754
19755 \end_inset
19756
19757 等を選ぶだけです。普通の文章の場合と同じで、特別なことは必要ありません。
19758 \end_layout
19759
19760 \begin_layout Standard
19761 LyXの内部で何が起っているかを説明しておきましょう。
19762 \end_layout
19763
19764 \begin_layout Enumerate
19765 \begin_inset Flex MenuItem
19766 status collapsed
19767
19768 \begin_layout Plain Layout
19769 表示\SpecialChar \menuseparator
19770 DVI
19771 \end_layout
19772
19773 \end_inset
19774
19775 が選ばれると、LaTeXファイルがつくられます。
19776 \end_layout
19777
19778 \begin_deeper
19779 \begin_layout Standard
19780 ドキュメントが文芸プログラミング用のクラスであった場合には、拡張子に(
19781 \begin_inset Flex MenuItem
19782 status collapsed
19783
19784 \begin_layout Plain Layout
19785 設定
19786 \end_layout
19787
19788 \end_inset
19789
19790 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
19791 \end_layout
19792
19793 \end_deeper
19794 \begin_layout Enumerate
19795 違いがファイル名だけなのに注意してください。LyXによる特別な処理は必要ありません。
19796 \begin_inset Flex Noun
19797 status collapsed
19798
19799 \begin_layout Plain Layout
19800 Chunk
19801 \end_layout
19802
19803 \end_inset
19804
19805 環境でコードを入力するのだけがポイントです。
19806 \end_layout
19807
19808 \begin_layout Enumerate
19809 ドキュメントが文芸プログラムクラスなら、LyXは内部のLyXからNowebのコンバータを使い、それからNowebからLaTeXのコンバータ
19810 \begin_inset Foot
19811 status collapsed
19812
19813 \begin_layout Plain Layout
19814 これらのコンバータは、
19815 \family sans
19816 \bar under
19817 E
19818 \bar default
19819 dit\SpecialChar \menuseparator
19820
19821 \bar under
19822 P
19823 \bar default
19824 references
19825 \family default
19826  パネルの Conversion タブで設定できます。
19827 \end_layout
19828
19829 \end_inset
19830
19831 を使ってLaTeXファイルを生成します。
19832 \end_layout
19833
19834 \begin_deeper
19835 \begin_layout Standard
19836 それ以外の場合はこのステップを飛ばします。
19837 \end_layout
19838
19839 \end_deeper
19840 \begin_layout Enumerate
19841 最後にLaTeXが実行され、普通の文章と同じ後処理が行われます。
19842 \end_layout
19843
19844 \begin_layout Standard
19845 様々なコンバータから走らせるコマンドを変えることによって、特定の文芸プログラム用のソフトウエアにしばられないようになっています。
19846 \end_layout
19847
19848 \begin_layout Paragraph
19849 コードの生成
19850 \end_layout
19851
19852 \begin_layout Standard
19853 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様にLaTeXファイルが生成されます。それからLyXは
19854 \family typewriter
19855 Noweb->Program
19856 \family default
19857 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
19858 \end_layout
19859
19860 \begin_layout Enumerate
19861 コンバータプログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマ
19862 ットへ変換します)。
19863 \end_layout
19864
19865 \begin_layout Enumerate
19866 エラーログパーサー。これはエラーメッセージをLyXが理解できる形へ書き直します。これによって、LyXはファイルバッファの正しい位置へエラーボックスを配置すること
19867 ができます。
19868 \end_layout
19869
19870 \begin_layout Standard
19871 はじめのパートのために、「変換子」設定で、
19872 \begin_inset Quotes eld
19873 \end_inset
19874
19875
19876 \family typewriter
19877 build-script$$i
19878 \family default
19879
19880 \begin_inset Quotes erd
19881 \end_inset
19882
19883 と指定します。これは基本的に、LyXが
19884 \family typewriter
19885 build-script
19886 \family default
19887 (プログラムかスクリプト名)を(一般にはLyXの一時ファイル用のディレクトリにつくられる)Nowebファイルの名前とともに起動することを意味しています。
19888 \end_layout
19889
19890 \begin_layout Standard
19891 以下にbuild-scriptの一例を書いておきます。パスが通っているディレクトリに置いて使います。
19892 \end_layout
19893
19894 \begin_layout Standard
19895 \begin_inset VSpace defskip
19896 \end_inset
19897
19898
19899 \end_layout
19900
19901 \begin_layout Standard
19902
19903 \family sans
19904 #!/bin/sh
19905 \end_layout
19906
19907 \begin_layout Standard
19908
19909 \family sans
19910 #
19911 \end_layout
19912
19913 \begin_layout Standard
19914
19915 \family sans
19916 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
19917 \end_layout
19918
19919 \begin_layout Standard
19920 \begin_inset VSpace defskip
19921 \end_inset
19922
19923
19924 \end_layout
19925
19926 \begin_layout Standard
19927
19928 \lang english
19929 The next part of the converter setting is the 
19930 \begin_inset Quotes eld
19931 \end_inset
19932
19933 Flags
19934 \begin_inset Quotes erd
19935 \end_inset
19936
19937  which is to be set to
19938 \begin_inset Newline newline
19939 \end_inset
19940
19941
19942 \begin_inset Quotes eld
19943 \end_inset
19944
19945
19946 \family typewriter
19947 parselog=$$s/scripts/listerrors
19948 \family default
19949
19950 \begin_inset Quotes erd
19951 \end_inset
19952
19953 .
19954 \begin_inset Newline newline
19955 \end_inset
19956
19957 This will run any errors that are generated by the 
19958 \begin_inset Quotes eld
19959 \end_inset
19960
19961 build-script
19962 \begin_inset Quotes erd
19963 \end_inset
19964
19965  process through the 
19966 \begin_inset Quotes eld
19967 \end_inset
19968
19969 listerrors
19970 \begin_inset Quotes erd
19971 \end_inset
19972
19973  program.
19974 \end_layout
19975
19976 \begin_layout Standard
19977
19978 \lang english
19979 The build will normally take place in LyX's temporary directory, so the
19980  files produced by the conversion will be in that directory.
19981  LyX will copy out what it regards as the `main' file, but the 
19982 \family typewriter
19983 Noweb->Program
19984 \family default
19985  conversion may produce several files, and so most of these would then be
19986  deleted when LyX was closed.
19987  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
19988  the build-script chunk can place the generated files in that location.
19989 \end_layout
19990
19991 \begin_layout Paragraph
19992 文章中でのプログラムの構築操作の説明
19993 \end_layout
19994
19995 \begin_layout Standard
19996 LyXとNowebの統合の最後の部分は、
19997 \begin_inset Quotes eld
19998 \end_inset
19999
20000 build-script
20001 \begin_inset Quotes erd
20002 \end_inset
20003
20004  chunkです。一般に、あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
20005 iptでは、chunkを見つけるのにnotangleコマンドを使い、shを使って起動します。
20006 \end_layout
20007
20008 \begin_layout Standard
20009 以下に典型的なschunkがどのようなものかを書いておきます。
20010 \end_layout
20011
20012 \begin_layout LyX-Code
20013 <<build-script>>=
20014 \end_layout
20015
20016 \begin_layout LyX-Code
20017 #!/bin/sh
20018 \begin_inset Newline newline
20019 \end_inset
20020
20021 if [ -z "${NOWEB_SOURCE}" ]
20022 \begin_inset Newline newline
20023 \end_inset
20024
20025 then
20026 \end_layout
20027
20028 \begin_layout LyX-Code
20029 NOWEB_SOURCE=myfile.nw
20030 \begin_inset Newline newline
20031 \end_inset
20032
20033 fi
20034 \begin_inset Newline newline
20035 \end_inset
20036
20037 [...
20038  code to extract files ...
20039  use NOWEB_OUTPUT_DIR here ...]
20040 \begin_inset Newline newline
20041 \end_inset
20042
20043 [...
20044  code to compile files ...]
20045 \begin_inset Newline newline
20046 \end_inset
20047
20048 @
20049 \end_layout
20050
20051 \begin_layout Standard
20052
20053 \emph on
20054 LIBDIR/examples/listerrors.lyx
20055 \emph default
20056
20057 \emph on
20058 LIBDIR/examples/Literate.lyx
20059 \emph default
20060 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
20061 ってもらうための例です。また、
20062 \emph on
20063 LIBDIR/examples/noweb2lyx.lyx
20064 \emph default
20065 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、LyXの文芸プログラミングのサポートがプログラム言語に依存
20066 しないことを示しています。
20067 \end_layout
20068
20069 \begin_layout Subsubsection
20070 LyXの設定
20071 \end_layout
20072
20073 \begin_layout Standard
20074 すべての文芸プログラムのための設定は、
20075 \begin_inset Flex MenuItem
20076 status collapsed
20077
20078 \begin_layout Plain Layout
20079 ツール\SpecialChar \menuseparator
20080 設定
20081 \end_layout
20082
20083 \end_inset
20084
20085 パネルの「変換子」タブですることができます。重要な部分を見ておきましょう。
20086 \end_layout
20087
20088 \begin_layout Description
20089 the
20090 \begin_inset space ~
20091 \end_inset
20092
20093
20094 \begin_inset Quotes eld
20095 \end_inset
20096
20097 literate
20098 \begin_inset Quotes erd
20099 \end_inset
20100
20101
20102 \begin_inset space ~
20103 \end_inset
20104
20105 format 書式タブで設定します。ここで、Noweb特有の設定を行います。
20106 \family sans
20107 GUI名
20108 \family default
20109
20110 \family typewriter
20111 NoWeb
20112 \family default
20113 に、拡張子を
20114 \family typewriter
20115 .nw
20116 \family default
20117 に設定してください。これによって、LyXに変換プロセスの第一段階でつくられるファイルに
20118 \family typewriter
20119 .nw
20120 \family default
20121 という拡張子をつけることを指示します。
20122 \end_layout
20123
20124 \begin_layout Description
20125 the
20126 \begin_inset space ~
20127 \end_inset
20128
20129
20130 \family sans
20131 Program
20132 \family default
20133
20134 \begin_inset space ~
20135 \end_inset
20136
20137 format これは空にしてください。この項目のただひとつの目的は変換の最終的なフォーマットを指定することです(これが設定されていると、このフォーマットからの変
20138 換を行えます)。
20139 \end_layout
20140
20141 \begin_layout Description
20142
20143 \family sans
20144 NoWeb
20145 \family default
20146 ->
20147 \family sans
20148 LaTeX
20149 \family default
20150  このコンバータは、weavingの段階を行います。Nowebの場合は、
20151 \begin_inset Quotes eld
20152 \end_inset
20153
20154
20155 \family typewriter
20156 noweave -delay -index $$i > $$o
20157 \family default
20158
20159 \begin_inset Quotes erd
20160 \end_inset
20161
20162 に設定してください。
20163 \end_layout
20164
20165 \begin_layout Description
20166
20167 \family sans
20168 NoWeb
20169 \family default
20170 ->
20171 \family sans
20172 Program
20173 \family default
20174  これは、tanglingを行います。以前に説明したように、
20175 \family typewriter
20176 build-script $$i
20177 \family default
20178  と設定して、Flagsに 
20179 \begin_inset Quotes eld
20180 \end_inset
20181
20182
20183 \family typewriter
20184 originaldir,parselog=listerrors
20185 \family default
20186
20187 \begin_inset Quotes erd
20188 \end_inset
20189
20190  を入れてください。
20191 \end_layout
20192
20193 \begin_layout Subsubsection
20194 デバッグ機能の拡張
20195 \end_layout
20196
20197 \begin_layout Standard
20198 ddd/gdbまたは他のデバッガで使えるserver-goto-file-rowという関数が新たにLyXサーバに実装されました。
20199 \end_layout
20200
20201 \begin_layout Standard
20202 ddd/gdbでデバッグしているとき、一つのキーストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-V
20203 になっています。この設定はdddで
20204 \begin_inset Flex MenuItem
20205 status collapsed
20206
20207 \begin_layout Plain Layout
20208 ツール\SpecialChar \menuseparator
20209 設定\SpecialChar \menuseparator
20210 ファイル書式
20211 \end_layout
20212
20213 \end_inset
20214
20215 ウインドウを表示して、
20216 \begin_inset Flex MenuItem
20217 status collapsed
20218
20219 \begin_layout Plain Layout
20220 編集プログラム
20221 \end_layout
20222
20223 \end_inset
20224
20225 エントリを変えると変えることができます。
20226 \end_layout
20227
20228 \begin_layout Standard
20229 新しいLyXサーバの関数と、このdddの機能を使うために
20230 \begin_inset Flex MenuItem
20231 status collapsed
20232
20233 \begin_layout Plain Layout
20234 編集プログラム
20235 \end_layout
20236
20237 \end_inset
20238
20239 を次のように設定してください。
20240 \end_layout
20241
20242 \begin_layout Standard
20243 \begin_inset VSpace defskip
20244 \end_inset
20245
20246
20247 \end_layout
20248
20249 \begin_layout Standard
20250
20251 \family sans
20252 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
20253 \end_layout
20254
20255 \begin_layout Standard
20256 \begin_inset VSpace defskip
20257 \end_inset
20258
20259
20260 \end_layout
20261
20262 \begin_layout Standard
20263 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddはLyXサーバに情報を
20264 送り、LyXは同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります
20265
20266 \end_layout
20267
20268 \begin_layout Standard
20269 この機能が動くにはLyXサーバが利用可能でなければなりません(既定ではLyXサーバーは使えないようになっています)。LyXサーバを使えるようにするには、
20270 \family sans
20271
20272 \begin_inset Flex MenuItem
20273 status collapsed
20274
20275 \begin_layout Plain Layout
20276
20277 \family sans
20278 設定
20279 \end_layout
20280
20281 \end_inset
20282
20283
20284 \family default
20285
20286 \family sans
20287
20288 \begin_inset Flex MenuItem
20289 status collapsed
20290
20291 \begin_layout Plain Layout
20292
20293 \family sans
20294 パス
20295 \end_layout
20296
20297 \end_inset
20298
20299
20300 \family default
20301 タブ)の
20302 \family sans
20303
20304 \begin_inset Flex MenuItem
20305 status collapsed
20306
20307 \begin_layout Plain Layout
20308
20309 \family sans
20310 LyXサーバーパイプ
20311 \family default
20312
20313 \end_layout
20314
20315 \end_inset
20316
20317
20318 \family default
20319
20320 \begin_inset Quotes eld
20321 \end_inset
20322
20323
20324 \family typewriter
20325 /home/<your-home-directory>/.lyx/lyxpipe
20326 \family default
20327
20328 \begin_inset Quotes erd
20329 \end_inset
20330
20331  のようにパスを指定してください。
20332 \end_layout
20333
20334 \begin_layout Standard
20335 詳しくは『
20336 \emph on
20337 取扱説明書カスタマイズ篇
20338 \emph default
20339 』のLyXサーバの説明を読んでください。
20340 \end_layout
20341
20342 \begin_layout Subsubsection
20343 ツールバーの拡張
20344 \end_layout
20345
20346 \begin_layout Standard
20347 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
20348 \family sans
20349 Standard
20350 \family default
20351
20352 \family sans
20353 Section
20354 \family default
20355
20356 \family sans
20357 LaTeX
20358 \family default
20359
20360 \family sans
20361 LyX-Code
20362 \family default
20363
20364 \family sans
20365 Chunk
20366 \family default
20367 環境用のボタンを用意しています。最後の一つはファイルメニューの Build Programエントリへのショートカットです。
20368 \end_layout
20369
20370 \begin_layout Standard
20371 LyXはツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
20372 \begin_inset Flex MenuItem
20373 status collapsed
20374
20375 \begin_layout Plain Layout
20376 表示\SpecialChar \menuseparator
20377 更新\SpecialChar \menuseparator
20378 DVI
20379 \end_layout
20380
20381 \end_inset
20382
20383
20384 \begin_inset Flex MenuItem
20385 status collapsed
20386
20387 \begin_layout Plain Layout
20388 表示\SpecialChar \menuseparator
20389 DVI
20390 \end_layout
20391
20392 \end_inset
20393
20394 を組み合わせたものになっています。
20395 \end_layout
20396
20397 \begin_layout LyX-Code
20398 Toolbar
20399 \end_layout
20400
20401 \begin_layout LyX-Code
20402   Layouts
20403 \end_layout
20404
20405 \begin_layout LyX-Code
20406   Icon "layout Standard"
20407 \end_layout
20408
20409 \begin_layout LyX-Code
20410   Icon "layout Section"
20411 \end_layout
20412
20413 \begin_layout LyX-Code
20414   Icon "layout LaTeX"
20415 \end_layout
20416
20417 \begin_layout LyX-Code
20418   Icon "layout LyX-Code"
20419 \end_layout
20420
20421 \begin_layout LyX-Code
20422   Icon "layout Chunk"
20423 \end_layout
20424
20425 \begin_layout LyX-Code
20426   Separator
20427 \end_layout
20428
20429 \begin_layout LyX-Code
20430   Icon "buffer-view"
20431 \end_layout
20432
20433 \begin_layout LyX-Code
20434   Icon "buffer-typeset"
20435 \end_layout
20436
20437 \begin_layout LyX-Code
20438   Icon "build-program"
20439 \end_layout
20440
20441 \begin_layout LyX-Code
20442   Separator
20443 \end_layout
20444
20445 \begin_layout LyX-Code
20446 .
20447 \end_layout
20448
20449 \begin_layout LyX-Code
20450 .
20451 \end_layout
20452
20453 \begin_layout LyX-Code
20454 .
20455 \end_layout
20456
20457 \begin_layout LyX-Code
20458 End
20459 \end_layout
20460
20461 \begin_layout Subsubsection
20462 色を変える
20463 \end_layout
20464
20465 \begin_layout Standard
20466 LyXではいくつもの色を
20467 \begin_inset Flex MenuItem
20468 status collapsed
20469
20470 \begin_layout Plain Layout
20471 設定
20472 \end_layout
20473
20474 \end_inset
20475
20476 で変えることができます。まず変えたいと思うのはLaTeXフォントカラーでしょう。既定では赤になっていますが、ChunkはLaTeXフォントを使い、文芸的プログラ
20477 ミングでは多くのChunkがあるためにそれらがすべて赤では疲れてしまいます。
20478 \begin_inset Flex MenuItem
20479 status collapsed
20480
20481 \begin_layout Plain Layout
20482 操作性\SpecialChar \menuseparator
20483
20484 \end_layout
20485
20486 \end_inset
20487
20488 タブでこの色を変えることができます。
20489 \end_layout
20490
20491 \begin_layout Standard
20492 次にすることは画面の改行文字を見えなくすることです。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少し違
20493 う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
20494 \end_layout
20495
20496 \begin_layout Subsection
20497
20498 \lang english
20499 LyX and knitr/Sweave
20500 \end_layout
20501
20502 \begin_layout Standard
20503
20504 \lang english
20505 Support for 
20506 \family sans
20507 knitr
20508 \family default
20509  and 
20510 \family sans
20511 Sweave
20512 \family default
20513  is documented in the 
20514 \emph on
20515 knitr.lyx
20516 \emph default
20517  example file and in the Sweave manual (menu 
20518 \family sans
20519 Help\SpecialChar \menuseparator
20520 Specific Manuals
20521 \family default
20522 ).
20523 \end_layout
20524
20525 \begin_layout Chapter
20526
20527 \lang english
20528 Special features
20529 \lang japanese
20530
20531 \begin_inset CommandInset label
20532 LatexCommand label
20533 name "chap:Special-features"
20534
20535 \end_inset
20536
20537
20538 \end_layout
20539
20540 \begin_layout Standard
20541
20542 \lang english
20543 You can do everything with LyX that you can do with LaTeX.
20544  However, LyX cannot support every LaTeX feature directly.
20545  But you can always use TeX Code.
20546  This chapter shows you some more special things you might want to use.
20547  For other special things you can do with figures, tables, floats, boxes
20548  and notes, have a look at the 
20549 \emph on
20550 EmbeddedObjects
20551 \emph default
20552  manual.
20553 \end_layout
20554
20555 \begin_layout Section
20556
20557 \lang english
20558 Multiple Text Columns
20559 \end_layout
20560
20561 \begin_layout Standard
20562
20563 \lang english
20564 This feature is independent of the option 
20565 \family sans
20566 Two-column document
20567 \family default
20568  in the document settings under 
20569 \family sans
20570 Text Layout
20571 \family default
20572 .
20573  If you want to have 2
20574 \begin_inset space ~
20575 \end_inset
20576
20577 columns for the whole document, it is recommended to use the 
20578 \family sans
20579 Two-column document
20580 \family default
20581  option.
20582  For all other cases use this feature.
20583 \end_layout
20584
20585 \begin_layout Standard
20586
20587 \lang english
20588 To use multiple text columns in your document, you have to load the module
20589  
20590 \family sans
20591 Multiple Columns
20592 \family default
20593  (menu 
20594 \family sans
20595 Document\SpecialChar \menuseparator
20596 Settings\SpecialChar \menuseparator
20597 Modules
20598 \family default
20599 ) and must have the LaTeX-package 
20600 \series bold
20601 multicol
20602 \series default
20603  installed.
20604 \end_layout
20605
20606 \begin_layout Standard
20607
20608 \lang english
20609 Footnotes within multiple columns will be placed at the bottom of the page
20610  and not under each column.
20611  Within the different columns you can use everything, with the limitation
20612  that for floats you need to use the float option 
20613 \family sans
20614 Span columns
20615 \family default
20616 .
20617 \end_layout
20618
20619 \begin_layout Subsection
20620
20621 \lang english
20622 Basics
20623 \end_layout
20624
20625 \begin_layout Standard
20626
20627 \lang english
20628 If you want to have 2
20629 \begin_inset space ~
20630 \end_inset
20631
20632 columns in your text, insert a multicolumn inset via the menu 
20633 \family sans
20634 Insert\SpecialChar \menuseparator
20635 Custom
20636 \begin_inset space ~
20637 \end_inset
20638
20639 Insets\SpecialChar \menuseparator
20640 Multiple
20641 \begin_inset space ~
20642 \end_inset
20643
20644 Columns
20645 \family default
20646  where the columns should start.
20647  Write all text that should be printed in 2
20648 \begin_inset space ~
20649 \end_inset
20650
20651 columns into this inset.
20652 \end_layout
20653
20654 \begin_layout Standard
20655
20656 \lang english
20657 Here is an example:
20658 \end_layout
20659
20660 \begin_layout Standard
20661 \noindent
20662
20663 \lang english
20664 \begin_inset Flex Multiple Columns
20665 status open
20666
20667 \begin_layout Plain Layout
20668 \noindent
20669
20670 \series bold
20671 \size small
20672 \lang english
20673 The Adventure of the Empty House
20674 \series default
20675
20676 \begin_inset Newline newline
20677 \end_inset
20678
20679 by Sir Arthur Conan Doyle
20680 \end_layout
20681
20682 \begin_layout Plain Layout
20683
20684 \size small
20685 \lang english
20686 It was in the spring of the year 1894 that all London was interested, and
20687  the fashionable world dismayed, by the murder of the Honourable Ronald
20688  Adair under most unusual and inexplicable circumstances.
20689  The public has already learned those particulars of the crime which came
20690  out in the police investigation, but a good deal was suppressed upon that
20691  occasion, since the case for the prosecution was so overwhelmingly strong
20692  that it was not necessary to bring forward all the facts.
20693  Only now, at the end of nearly ten years, am I allowed to supply those
20694  missing links which make up the whole of that remarkable chain.
20695  The crime was of interest in itself, but that interest was as nothing to
20696  me compared to the inconceivable sequel, which afforded me the greatest
20697  shock and surprise of any event in my adventurous life.
20698  Even now, after this long interval, I find myself thrilling as I think
20699  of it, and feeling once more that sudden flood of joy, amazement, and increduli
20700 ty which utterly submerged my mind.
20701  Let me say to that public, which has shown some interest in those glimpses
20702  which I have occasionally given them of the thoughts and actions of a very
20703  remarkable man, that they are not to blame me if I have not shared my knowledge
20704  with them, for I should have considered it my first duty to do so, had
20705  I not been barred by a positive prohibition from his own lips, which was
20706  only withdrawn upon the third of last month.
20707 \end_layout
20708
20709 \end_inset
20710
20711
20712 \end_layout
20713
20714 \begin_layout Standard
20715
20716 \lang english
20717 To get 3 or more columns, set the cursor into the multicolumn inset and
20718  use the menu 
20719 \family sans
20720 Insert\SpecialChar \menuseparator
20721 Number
20722 \begin_inset space ~
20723 \end_inset
20724
20725 of
20726 \begin_inset space ~
20727 \end_inset
20728
20729 Columns
20730 \family default
20731 .
20732  The number of the desired columns is written into that inset (for 3
20733 \begin_inset space ~
20734 \end_inset
20735
20736 columns write 
20737 \begin_inset Quotes eld
20738 \end_inset
20739
20740 3
20741 \begin_inset Quotes erd
20742 \end_inset
20743
20744 ).
20745 \begin_inset Newline newline
20746 \end_inset
20747
20748 Here is an example with 3
20749 \begin_inset space ~
20750 \end_inset
20751
20752 columns:
20753 \end_layout
20754
20755 \begin_layout Standard
20756
20757 \lang english
20758 \begin_inset Flex Multiple Columns
20759 status open
20760
20761 \begin_layout Plain Layout
20762
20763 \size footnotesize
20764 \lang english
20765 \begin_inset Argument 1
20766 status open
20767
20768 \begin_layout Plain Layout
20769
20770 \lang english
20771 3
20772 \end_layout
20773
20774 \end_inset
20775
20776 It can be imagined that my close intimacy with Sherlock Holmes had interested
20777  me deeply in crime, and that after his disappearance I never failed to
20778  read with care the various problems which came before the public.
20779  And I even attempted, more than once, for my own private satisfaction,
20780  to employ his methods in their solution, though with indifferent success.
20781  There was none, however, which appealed to me like this tragedy of Ronald
20782  Adair.
20783  As I read the evidence at the inquest, which led up to a verdict of willful
20784  murder against some person or persons unknown, I realized more clearly
20785  than I had ever done the loss which the community had sustained by the
20786  death of Sherlock Holmes.
20787  There were points about this strange business which would, I was sure,
20788  have specially appealed to him, and the efforts of the police would have
20789  been supplemented, or more probably anticipated, by the trained observation
20790  and the alert mind of the first criminal agent in Europe.
20791  All day, as I drove upon my round, I turned over the case in my mind and
20792  found no explanation which appeared to me to be adequate.
20793  At the risk of telling a twice-told tale, I will recapitulate the facts
20794  as they were known to the public at the conclusion of the inquest.
20795 \end_layout
20796
20797 \end_inset
20798
20799
20800 \end_layout
20801
20802 \begin_layout Standard
20803
20804 \lang english
20805 You can have up to 10
20806 \begin_inset space ~
20807 \end_inset
20808
20809 columns if you want to, but that might not be very pleasant for the readers
20810  of your document.
20811 \end_layout
20812
20813 \begin_layout Standard
20814
20815 \lang english
20816 \begin_inset Newpage newpage
20817 \end_inset
20818
20819
20820 \end_layout
20821
20822 \begin_layout Subsection
20823
20824 \lang english
20825 Columns inside Columns
20826 \end_layout
20827
20828 \begin_layout Standard
20829
20830 \lang english
20831 You can also have columns inside columns:
20832 \end_layout
20833
20834 \begin_layout Standard
20835
20836 \lang english
20837 \begin_inset Flex Multiple Columns
20838 status open
20839
20840 \begin_layout Plain Layout
20841
20842 \size footnotesize
20843 \lang english
20844 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
20845  at that time governor of one of the Australian colonies.
20846  Adair's mother had returned from Australia to undergo the operation for
20847  cataract, and she, her son Ronald, and her daughter Hilda were living together
20848  at 427 Park Lane.
20849 \end_layout
20850
20851 \begin_layout Plain Layout
20852
20853 \lang english
20854 \begin_inset Flex Multiple Columns
20855 status open
20856
20857 \begin_layout Plain Layout
20858
20859 \size footnotesize
20860 \lang english
20861 The youth moved in the best society–had, so far as was known, no enemies
20862  and no particular vices.
20863  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
20864  had been broken off by mutual consent some months before, and there was
20865  no sign that it had left any very profound feeling behind it.
20866  For the rest {sic} the man's life moved in a narrow and conventional circle,
20867  for his habits were quiet and his nature unemotional.
20868  Yet it was upon this easy-going young aristocrat that death came, in most
20869  strange and unexpected form, between the hours of ten and eleven-twenty
20870  on the night of March 30, 1894.
20871 \end_layout
20872
20873 \end_inset
20874
20875
20876 \end_layout
20877
20878 \begin_layout Plain Layout
20879
20880 \size footnotesize
20881 \lang english
20882 Ronald Adair was fond of cards–playing continually, but never for such stakes
20883  as would hurt him.
20884  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
20885  It was shown that, after dinner on the day of his death, he had played
20886  a rubber of whist at the latter club.
20887  He had also played there in the afternoon.
20888
20889 \size default
20890  
20891 \size footnotesize
20892 The evidence of those who had played with him– Mr.
20893  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
20894  and that there was a fairly equal fall of the cards.
20895  Adair might have lost five pounds, but not more.
20896  His fortune was a considerable one, and such a loss could not in any way
20897  affect him.
20898  He had played nearly every day at one club or other, but he was a cautious
20899  player, and usually rose a winner.
20900  It came out in evidence that, in partnership with Colonel Moran, he had
20901  actually won as much as four hundred and twenty pounds in a sitting, some
20902  weeks before, from Godfrey Milner and Lord Balmoral.
20903  So much for his recent history as it came out at the inquest.
20904 \end_layout
20905
20906 \end_inset
20907
20908
20909 \end_layout
20910
20911 \begin_layout Subsection
20912
20913 \lang english
20914 Advanced Examples
20915 \end_layout
20916
20917 \begin_layout Standard
20918
20919 \lang english
20920 The examples in this section show some more special features of multiple
20921  columns.
20922 \end_layout
20923
20924 \begin_layout Standard
20925
20926 \lang english
20927 For more features of multiple columns, have a look at the documentation
20928  of the LaTeX-package 
20929 \series bold
20930 multicol
20931 \series default
20932
20933 \begin_inset CommandInset citation
20934 LatexCommand cite
20935 key "multicol"
20936
20937 \end_inset
20938
20939 .
20940 \end_layout
20941
20942 \begin_layout Subsubsection
20943
20944 \lang english
20945 Preface
20946 \end_layout
20947
20948 \begin_layout Standard
20949
20950 \lang english
20951 To add a preface text for multiple columns, set the cursor into the mulitcolumn
20952  inset and use the menu 
20953 \family sans
20954 Insert\SpecialChar \menuseparator
20955 Preface
20956 \family default
20957 .
20958  Write your preface text into that inset.
20959 \begin_inset Newline newline
20960 \end_inset
20961
20962 This is an example with some preface text:
20963 \end_layout
20964
20965 \begin_layout Standard
20966
20967 \lang english
20968 \begin_inset VSpace bigskip
20969 \end_inset
20970
20971
20972 \end_layout
20973
20974 \begin_layout Standard
20975
20976 \lang english
20977 \begin_inset Flex Multiple Columns
20978 status open
20979
20980 \begin_layout Plain Layout
20981
20982 \lang english
20983 \begin_inset Argument 2
20984 status open
20985
20986 \begin_layout Plain Layout
20987
20988 \lang english
20989 And the story continues and continues and continues and continues\SpecialChar \ldots{}
20990
20991 \end_layout
20992
20993 \end_inset
20994
20995
20996 \size small
20997 On the evening of the crime, he returned from the club exactly at ten.
20998  His mother and sister were out spending the evening with a relation.
20999  The servant deposed that she heard him enter the front room on the second
21000  floor, generally used as his sitting-room.
21001  She had lit a fire there, and as it smoked she had opened the window.
21002  No sound was heard from the room until eleven-twenty, the hour of the return
21003  of Lady Maynooth and her daughter.
21004  Desiring to say good-night, she attempted to enter her son's room.
21005  The door was locked on the inside, and no answer could be got to their
21006  cries and knocking.
21007  Help was obtained, and the door forced.
21008  The unfortunate young man was found lying near the table.
21009  His head had been horribly mutilated by an expanding revolver bullet, but
21010  no weapon of any sort was to be found in the room.
21011 \end_layout
21012
21013 \end_inset
21014
21015
21016 \end_layout
21017
21018 \begin_layout Standard
21019
21020 \lang english
21021 You can also use a section heading as the preface if you use a section command
21022  as TeX Code.
21023  For example the command
21024 \end_layout
21025
21026 \begin_layout Standard
21027
21028 \series bold
21029 \lang english
21030
21031 \backslash
21032 subsection{subsection title}
21033 \end_layout
21034
21035 \begin_layout Standard
21036
21037 \lang english
21038 creates a subsection.
21039  In this example the preface is a subsubsection:
21040 \end_layout
21041
21042 \begin_layout Standard
21043
21044 \lang english
21045 \begin_inset Flex Multiple Columns
21046 status open
21047
21048 \begin_layout Plain Layout
21049
21050 \lang english
21051 \begin_inset Argument 2
21052 status open
21053
21054 \begin_layout Plain Layout
21055
21056 \lang english
21057 \begin_inset ERT
21058 status collapsed
21059
21060 \begin_layout Plain Layout
21061
21062
21063 \backslash
21064 subsubsection{
21065 \end_layout
21066
21067 \end_inset
21068
21069 This is a subsubsection heading as a preface
21070 \begin_inset ERT
21071 status collapsed
21072
21073 \begin_layout Plain Layout
21074
21075 }
21076 \end_layout
21077
21078 \end_inset
21079
21080
21081 \end_layout
21082
21083 \end_inset
21084
21085
21086 \size small
21087 A minute examination of the circumstances served only to make the case more
21088  complex.
21089  In the first place, no reason could be given why the young man should have
21090  fastened the door upon the inside.
21091  There was the possibility that the murderer had done this, and had afterwards
21092  escaped by the window.
21093  The drop was at least twenty feet, however, and a bed of crocuses in full
21094  bloom lay beneath.
21095  Neither the flowers nor the earth showed any sign of having been disturbed,
21096  nor were there any marks upon the narrow strip of grass which separated
21097  the house from the road.
21098  Apparently, therefore, it was the young man himself who had fastened the
21099  door.
21100  But how did he come by his death? No one could have climbed up to the window
21101  without leaving traces.
21102  Suppose a man had fired through the window, he would indeed be a remarkable
21103  shot who could with a revolver inflict so deadly a wound.
21104  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
21105  a hundred yards of the house.
21106  No one had heard a shot.
21107 \end_layout
21108
21109 \end_inset
21110
21111
21112 \end_layout
21113
21114 \begin_layout Standard
21115
21116 \lang english
21117 If there is less vertical space than 6
21118 \begin_inset space ~
21119 \end_inset
21120
21121 text lines is left on the page at the beginning of the multiple columns,
21122  a page break will be inserted before the multiple columns.
21123  Depending on the number of lines of the preface text, you might want to
21124  change this space.
21125  This is done by setting the cursor into the mulitcolumn inset behind the
21126  preface (if there is any) and using the menu 
21127 \family sans
21128 Insert\SpecialChar \menuseparator
21129 Space
21130 \begin_inset space ~
21131 \end_inset
21132
21133 Before
21134 \begin_inset space ~
21135 \end_inset
21136
21137 Page
21138 \begin_inset space ~
21139 \end_inset
21140
21141 Break
21142 \family default
21143 .
21144  Insert into that inset the amount of space like e.
21145 \begin_inset space \thinspace{}
21146 \end_inset
21147
21148 g.
21149 \begin_inset space \space{}
21150 \end_inset
21151
21152
21153 \begin_inset Quotes eld
21154 \end_inset
21155
21156 5cm
21157 \begin_inset Quotes erd
21158 \end_inset
21159
21160 .
21161 \begin_inset Newline newline
21162 \end_inset
21163
21164 In this example the space is set to 7
21165 \begin_inset space ~
21166 \end_inset
21167
21168 text lines by using 
21169 \begin_inset Quotes eld
21170 \end_inset
21171
21172 7
21173 \backslash
21174 baselineskip
21175 \begin_inset Quotes erd
21176 \end_inset
21177
21178  (where the command 
21179 \series bold
21180
21181 \backslash
21182 baselineskip
21183 \series default
21184  needs to be inserted as TeX code):
21185 \end_layout
21186
21187 \begin_layout Standard
21188
21189 \lang english
21190 \begin_inset Flex Multiple Columns
21191 status open
21192
21193 \begin_layout Plain Layout
21194
21195 \lang english
21196 \begin_inset Argument 3
21197 status open
21198
21199 \begin_layout Plain Layout
21200
21201 \lang english
21202 7
21203 \begin_inset ERT
21204 status collapsed
21205
21206 \begin_layout Plain Layout
21207
21208
21209 \backslash
21210 baselineskip
21211 \end_layout
21212
21213 \end_inset
21214
21215
21216 \end_layout
21217
21218 \end_inset
21219
21220
21221 \size small
21222 On the evening of the crime, he returned from the club exactly at ten.
21223  His mother and sister were out spending the evening with a relation.
21224  The servant deposed that she heard him enter the front room on the second
21225  floor, generally used as his sitting-room.
21226  She had lit a fire there, and as it smoked she had opened the window.
21227  No sound was heard from the room until eleven-twenty, the hour of the return
21228  of Lady Maynooth and her daughter.
21229  Desiring to say good-night, she attempted to enter her son's room.
21230  The door was locked on the inside, and no answer could be got to their
21231  cries and knocking.
21232  Help was obtained, and the door forced.
21233  The unfortunate young man was found lying near the table.
21234  His head had been horribly mutilated by an expanding revolver bullet, but
21235  no weapon of any sort was to be found in the room.
21236 \end_layout
21237
21238 \end_inset
21239
21240
21241 \end_layout
21242
21243 \begin_layout Subsubsection
21244
21245 \lang english
21246 Surrounding Space
21247 \end_layout
21248
21249 \begin_layout Standard
21250
21251 \lang english
21252 The amount of space before and after multiple columns can be changed by
21253  changing the length 
21254 \series bold
21255
21256 \backslash
21257 multicolsep
21258 \series default
21259 .
21260  For example the command
21261 \end_layout
21262
21263 \begin_layout Standard
21264
21265 \series bold
21266 \lang english
21267
21268 \backslash
21269 setlength{
21270 \backslash
21271 multicolsep}{3cm}
21272 \end_layout
21273
21274 \begin_layout Standard
21275
21276 \lang english
21277 in TeX Code changes its value to 3
21278 \begin_inset space \thinspace{}
21279 \end_inset
21280
21281 cm.
21282  The change must be made before the multiple columns' start.
21283  The predefined value is 13
21284 \begin_inset space \thinspace{}
21285 \end_inset
21286
21287 pt.
21288 \end_layout
21289
21290 \begin_layout Standard
21291
21292 \lang english
21293 For this example 
21294 \series bold
21295
21296 \backslash
21297 multicolsep
21298 \series default
21299  was set to 2.5
21300 \begin_inset space \thinspace{}
21301 \end_inset
21302
21303 cm:
21304 \end_layout
21305
21306 \begin_layout Standard
21307 \begin_inset ERT
21308 status open
21309
21310 \begin_layout Plain Layout
21311
21312
21313 \backslash
21314 setlength{
21315 \backslash
21316 multicolsep}{2.5cm}
21317 \end_layout
21318
21319 \end_inset
21320
21321
21322 \end_layout
21323
21324 \begin_layout Standard
21325
21326 \lang english
21327 \begin_inset Flex Multiple Columns
21328 status open
21329
21330 \begin_layout Plain Layout
21331
21332 \size small
21333 \lang english
21334 All day I turned these facts over in my mind, endeavouring to hit upon some
21335  theory which could reconcile them all, and to find that line of least resistanc
21336 e which my poor friend had declared to be the starting-point of every investigat
21337 ion.
21338  I confess that I made little progress.
21339  In the evening I strolled across the Park, and found myself about six o'clock
21340  at the Oxford Street end of Park Lane.
21341  A group of loafers upon the pavements, all staring up at a particular window,
21342  directed me to the house which I had come to see.
21343  A tall, thin man with coloured glasses, whom I strongly suspected of being
21344  a plain-clothes detective, was pointing out some theory of his own, while
21345  the others crowded round to listen to what he said.
21346  I got as near him as I could, but his observations seemed to me to be absurd,
21347  so I withdrew again in some disgust.
21348  As I did so I struck against an elderly, deformed man, who had been behind
21349  me, and I knocked down several books which he was carrying.
21350 \end_layout
21351
21352 \end_inset
21353
21354
21355 \end_layout
21356
21357 \begin_layout Standard
21358
21359 \lang english
21360 \begin_inset Note Greyedout
21361 status open
21362
21363 \begin_layout Plain Layout
21364
21365 \series bold
21366 \lang english
21367 Note:
21368 \series default
21369  The values you set with 
21370 \series bold
21371
21372 \backslash
21373 setlength
21374 \series default
21375  will be used for all following multiple columns until you change them again.
21376 \end_layout
21377
21378 \end_inset
21379
21380
21381 \end_layout
21382
21383 \begin_layout Standard
21384 \begin_inset ERT
21385 status collapsed
21386
21387 \begin_layout Plain Layout
21388
21389
21390 \backslash
21391 setlength{
21392 \backslash
21393 multicolsep}{13pt}
21394 \end_layout
21395
21396 \end_inset
21397
21398
21399 \lang english
21400
21401 \begin_inset Note Note
21402 status collapsed
21403
21404 \begin_layout Plain Layout
21405
21406 \lang english
21407 go back to the default
21408 \end_layout
21409
21410 \end_inset
21411
21412
21413 \end_layout
21414
21415 \begin_layout Standard
21416
21417 \lang english
21418 \begin_inset Newpage newpage
21419 \end_inset
21420
21421
21422 \end_layout
21423
21424 \begin_layout Subsubsection
21425
21426 \lang english
21427 Column Breaks
21428 \end_layout
21429
21430 \begin_layout Standard
21431
21432 \lang english
21433 A column break can be forced by inserting the command 
21434 \series bold
21435
21436 \backslash
21437 columnbreak{}
21438 \series default
21439  as TeX-Code to that position in the text where the column should be broken.
21440  Note that this leads in most cases to whitespace in the text.
21441 \begin_inset Newline newline
21442 \end_inset
21443
21444 Here is an example:
21445 \end_layout
21446
21447 \begin_layout Standard
21448
21449 \lang english
21450 \begin_inset Flex Multiple Columns
21451 status open
21452
21453 \begin_layout Plain Layout
21454
21455 \size small
21456 \lang english
21457 \begin_inset Quotes eld
21458 \end_inset
21459
21460 You're surprised to see me, sir,
21461 \begin_inset Quotes erd
21462 \end_inset
21463
21464  said he, in a strange, croaking voice.
21465 \end_layout
21466
21467 \begin_layout Plain Layout
21468
21469 \size small
21470 \lang english
21471 I acknowledged that I was.
21472 \end_layout
21473
21474 \begin_layout Plain Layout
21475
21476 \size small
21477 \lang english
21478 \begin_inset Quotes eld
21479 \end_inset
21480
21481 Well, I've a conscience, sir, and when I chanced to see you go into this
21482  house, as I came hobbling after you, I thought to myself, I'll just step
21483  in and see that kind gentleman, and tell him that if I was a bit gruff
21484  in my manner there was not any harm meant, and that I am much obliged to
21485  him for picking up my books.
21486 \begin_inset Quotes erd
21487 \end_inset
21488
21489
21490 \end_layout
21491
21492 \begin_layout Plain Layout
21493
21494 \size small
21495 \lang english
21496 \begin_inset Quotes eld
21497 \end_inset
21498
21499 You make too much of a trifle,
21500 \begin_inset Quotes erd
21501 \end_inset
21502
21503  said I.
21504  
21505 \begin_inset Quotes eld
21506 \end_inset
21507
21508 May I ask how you knew who I was?
21509 \begin_inset Quotes erd
21510 \end_inset
21511
21512  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
21513 \begin_inset ERT
21514 status collapsed
21515
21516 \begin_layout Plain Layout
21517
21518
21519 \backslash
21520 columnbreak{}
21521 \end_layout
21522
21523 \end_inset
21524
21525
21526 \end_layout
21527
21528 \begin_layout Plain Layout
21529
21530 \size small
21531 \lang english
21532 \begin_inset Quotes eld
21533 \end_inset
21534
21535 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
21536  you'll find my little bookshop at the corner of Church Street, and very
21537  happy to see you, I am sure.
21538  Maybe you collect yourself, sir.
21539  Here's 
21540 \noun on
21541 British
21542 \begin_inset space ~
21543 \end_inset
21544
21545 Birds
21546 \noun default
21547 , and 
21548 \noun on
21549 Catullus
21550 \noun default
21551 , and 
21552 \noun on
21553 The Holy War
21554 \noun default
21555 --a bargain, every one of them.
21556  With five volumes you could just fill that gap on that second shelf.
21557  It looks untidy, does it not, sir?
21558 \begin_inset Quotes erd
21559 \end_inset
21560
21561
21562 \end_layout
21563
21564 \end_inset
21565
21566
21567 \end_layout
21568
21569 \begin_layout Subsubsection
21570
21571 \lang english
21572 Column Separation
21573 \end_layout
21574
21575 \begin_layout Standard
21576
21577 \lang english
21578 The width of the columns is automatically calculated, but you can modify
21579  the space between the columns.
21580  This is done by changing the length 
21581 \series bold
21582
21583 \backslash
21584 columnsep
21585 \series default
21586 .
21587  Its predefined value is 10
21588 \begin_inset space \thinspace{}
21589 \end_inset
21590
21591 pt.
21592  Here is an example where 
21593 \series bold
21594
21595 \backslash
21596 columnsep
21597 \series default
21598  is set to 3
21599 \begin_inset space \thinspace{}
21600 \end_inset
21601
21602 cm:
21603 \end_layout
21604
21605 \begin_layout Standard
21606 \begin_inset ERT
21607 status open
21608
21609 \begin_layout Plain Layout
21610
21611
21612 \backslash
21613 setlength{
21614 \backslash
21615 columnsep}{3cm}
21616 \end_layout
21617
21618 \end_inset
21619
21620
21621 \end_layout
21622
21623 \begin_layout Standard
21624
21625 \lang english
21626 \begin_inset Flex Multiple Columns
21627 status open
21628
21629 \begin_layout Plain Layout
21630
21631 \size small
21632 \lang english
21633 My observations of No.
21634 \begin_inset space \space{}
21635 \end_inset
21636
21637 427 Park Lane did little to clear up the problem in which I was interested.
21638  The house was separated from the street by a low wall and railing, the
21639  whole not more than five feet high.
21640  It was perfectly easy, therefore, for anyone to get into the garden, but
21641  the window was entirely inaccessible, since there was no water pipe or
21642  anything which could help the most active man to climb it.
21643  More puzzled than ever, I retraced my steps to Kensington.
21644  I had not been in my study five minutes when the maid entered to say that
21645  a person desired to see me.
21646  To my astonishment it was none other than my strange old book collector,
21647  his sharp, wizened face peering out from a frame of white hair, and his
21648  precious volumes, a dozen of them at least, wedged under his right arm.
21649 \end_layout
21650
21651 \end_inset
21652
21653
21654 \end_layout
21655
21656 \begin_layout Standard
21657 \begin_inset ERT
21658 status collapsed
21659
21660 \begin_layout Plain Layout
21661
21662
21663 \backslash
21664 setlength{
21665 \backslash
21666 columnsep}{10pt}
21667 \end_layout
21668
21669 \end_inset
21670
21671
21672 \lang english
21673
21674 \begin_inset Note Note
21675 status collapsed
21676
21677 \begin_layout Plain Layout
21678
21679 \lang english
21680 go back to the default
21681 \end_layout
21682
21683 \end_inset
21684
21685
21686 \end_layout
21687
21688 \begin_layout Subsubsection
21689
21690 \lang english
21691 Vertical Lines
21692 \end_layout
21693
21694 \begin_layout Standard
21695
21696 \lang english
21697 Between the columns a rule with a width of the length 
21698 \series bold
21699
21700 \backslash
21701 columnseprule
21702 \series default
21703  is placed.
21704  If this rule width is set to 0
21705 \begin_inset space \thinspace{}
21706 \end_inset
21707
21708 pt (this is the default), the rule is suppressed.
21709  In the following example the line is 2
21710 \begin_inset space \thinspace{}
21711 \end_inset
21712
21713 pt wide:
21714 \end_layout
21715
21716 \begin_layout Standard
21717 \begin_inset ERT
21718 status open
21719
21720 \begin_layout Plain Layout
21721
21722
21723 \backslash
21724 setlength{
21725 \backslash
21726 columnseprule}{2pt}
21727 \end_layout
21728
21729 \end_inset
21730
21731
21732 \end_layout
21733
21734 \begin_layout Standard
21735
21736 \lang english
21737 \begin_inset Flex Multiple Columns
21738 status open
21739
21740 \begin_layout Plain Layout
21741
21742 \size small
21743 \lang english
21744 \begin_inset Quotes eld
21745 \end_inset
21746
21747 You're surprised to see me, sir,
21748 \begin_inset Quotes erd
21749 \end_inset
21750
21751  said he, in a strange, croaking voice.
21752 \end_layout
21753
21754 \begin_layout Plain Layout
21755
21756 \size small
21757 \lang english
21758 I acknowledged that I was.
21759 \end_layout
21760
21761 \begin_layout Plain Layout
21762
21763 \size small
21764 \lang english
21765 \begin_inset Quotes eld
21766 \end_inset
21767
21768 Well, I've a conscience, sir, and when I chanced to see you go into this
21769  house, as I came hobbling after you, I thought to myself, I'll just step
21770  in and see that kind gentleman, and tell him that if I was a bit gruff
21771  in my manner there was not any harm meant, and that I am much obliged to
21772  him for picking up my books.
21773 \begin_inset Quotes erd
21774 \end_inset
21775
21776
21777 \end_layout
21778
21779 \begin_layout Plain Layout
21780
21781 \size small
21782 \lang english
21783 \begin_inset Quotes eld
21784 \end_inset
21785
21786 You make too much of a trifle,
21787 \begin_inset Quotes erd
21788 \end_inset
21789
21790  said I.
21791  
21792 \begin_inset Quotes eld
21793 \end_inset
21794
21795 May I ask how you knew who I was?
21796 \begin_inset Quotes erd
21797 \end_inset
21798
21799
21800 \end_layout
21801
21802 \begin_layout Plain Layout
21803
21804 \size small
21805 \lang english
21806 \begin_inset Quotes eld
21807 \end_inset
21808
21809 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
21810  you'll find my little bookshop at the corner of Church Street, and very
21811  happy to see you, I am sure.
21812  Maybe you collect yourself, sir.
21813  Here's 
21814 \noun on
21815 British
21816 \begin_inset space ~
21817 \end_inset
21818
21819 Birds
21820 \noun default
21821 , and 
21822 \noun on
21823 Catullus
21824 \noun default
21825 , and 
21826 \noun on
21827 The Holy War
21828 \noun default
21829 --a bargain, every one of them.
21830  With five volumes you could just fill that gap on that second shelf.
21831  It looks untidy, does it not, sir?
21832 \begin_inset Quotes erd
21833 \end_inset
21834
21835
21836 \end_layout
21837
21838 \end_inset
21839
21840
21841 \end_layout
21842
21843 \begin_layout Standard
21844
21845 \lang english
21846 \begin_inset VSpace defskip
21847 \end_inset
21848
21849
21850 \end_layout
21851
21852 \begin_layout Standard
21853
21854 \lang english
21855 The rule can be colored by redefining the command 
21856 \series bold
21857
21858 \backslash
21859 columnseprulecolor
21860 \series default
21861 .
21862  This is done by inserting the command
21863 \begin_inset Newline newline
21864 \end_inset
21865
21866
21867 \series bold
21868
21869 \backslash
21870 renewcommand{
21871 \backslash
21872 columnseprulecolor}{
21873 \backslash
21874 color{red}}
21875 \series default
21876
21877 \begin_inset Newline newline
21878 \end_inset
21879
21880 as TeX-Code before the multicolumn inset.
21881  Replace 
21882 \series bold
21883 red
21884 \series default
21885  in this command by a color of your choice.
21886  You can use all pre- and self-defined colors.
21887  See the 
21888 \emph on
21889 EmbeddedObjects
21890 \emph default
21891  manual, section 
21892 \emph on
21893 Colored
21894 \begin_inset space ~
21895 \end_inset
21896
21897 Tables
21898 \emph default
21899  for more information about pre- and self-defined colors.
21900  To go back to the default color insert the command
21901 \begin_inset Newline newline
21902 \end_inset
21903
21904
21905 \series bold
21906
21907 \backslash
21908 renewcommand{
21909 \backslash
21910 columnseprulecolor}{
21911 \backslash
21912 normalcolor}
21913 \series default
21914
21915 \begin_inset Newline newline
21916 \end_inset
21917
21918 Here is the example with a cyan rule and 1
21919 \begin_inset space \thinspace{}
21920 \end_inset
21921
21922 cm column separation:
21923 \end_layout
21924
21925 \begin_layout Standard
21926
21927 \lang english
21928 \begin_inset ERT
21929 status open
21930
21931 \begin_layout Plain Layout
21932
21933
21934 \backslash
21935 setlength{
21936 \backslash
21937 columnsep}{1cm}
21938 \end_layout
21939
21940 \begin_layout Plain Layout
21941
21942
21943 \backslash
21944 renewcommand{
21945 \backslash
21946 columnseprulecolor}{
21947 \backslash
21948 color{cyan}}
21949 \end_layout
21950
21951 \end_inset
21952
21953
21954 \end_layout
21955
21956 \begin_layout Standard
21957
21958 \lang english
21959 \begin_inset Flex Multiple Columns
21960 status open
21961
21962 \begin_layout Plain Layout
21963
21964 \size small
21965 \lang english
21966 \begin_inset Quotes eld
21967 \end_inset
21968
21969 You're surprised to see me, sir,
21970 \begin_inset Quotes erd
21971 \end_inset
21972
21973  said he, in a strange, croaking voice.
21974 \end_layout
21975
21976 \begin_layout Plain Layout
21977
21978 \size small
21979 \lang english
21980 I acknowledged that I was.
21981 \end_layout
21982
21983 \begin_layout Plain Layout
21984
21985 \size small
21986 \lang english
21987 \begin_inset Quotes eld
21988 \end_inset
21989
21990 Well, I've a conscience, sir, and when I chanced to see you go into this
21991  house, as I came hobbling after you, I thought to myself, I'll just step
21992  in and see that kind gentleman, and tell him that if I was a bit gruff
21993  in my manner there was not any harm meant, and that I am much obliged to
21994  him for picking up my books.
21995 \begin_inset Quotes erd
21996 \end_inset
21997
21998
21999 \end_layout
22000
22001 \begin_layout Plain Layout
22002
22003 \size small
22004 \lang english
22005 \begin_inset Quotes eld
22006 \end_inset
22007
22008 You make too much of a trifle,
22009 \begin_inset Quotes erd
22010 \end_inset
22011
22012  said I.
22013  
22014 \begin_inset Quotes eld
22015 \end_inset
22016
22017 May I ask how you knew who I was?
22018 \begin_inset Quotes erd
22019 \end_inset
22020
22021
22022 \end_layout
22023
22024 \begin_layout Plain Layout
22025
22026 \size small
22027 \lang english
22028 \begin_inset Quotes eld
22029 \end_inset
22030
22031 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
22032  you'll find my little bookshop at the corner of Church Street, and very
22033  happy to see you, I am sure.
22034  Maybe you collect yourself, sir.
22035  Here's 
22036 \noun on
22037 British
22038 \begin_inset space ~
22039 \end_inset
22040
22041 Birds
22042 \noun default
22043 , and 
22044 \noun on
22045 Catullus
22046 \noun default
22047 , and 
22048 \noun on
22049 The Holy War
22050 \noun default
22051 --a bargain, every one of them.
22052  With five volumes you could just fill that gap on that second shelf.
22053  It looks untidy, does it not, sir?
22054 \begin_inset Quotes erd
22055 \end_inset
22056
22057
22058 \end_layout
22059
22060 \end_inset
22061
22062
22063 \end_layout
22064
22065 \begin_layout Standard
22066
22067 \lang english
22068 \begin_inset ERT
22069 status collapsed
22070
22071 \begin_layout Plain Layout
22072
22073
22074 \backslash
22075 setlength{
22076 \backslash
22077 columnseprule}{0pt}
22078 \end_layout
22079
22080 \begin_layout Plain Layout
22081
22082
22083 \backslash
22084 renewcommand{
22085 \backslash
22086 columnseprulecolor}{
22087 \backslash
22088 normalcolor}
22089 \end_layout
22090
22091 \end_inset
22092
22093
22094 \begin_inset Note Note
22095 status collapsed
22096
22097 \begin_layout Plain Layout
22098
22099 \lang english
22100 go back to the default
22101 \end_layout
22102
22103 \end_inset
22104
22105
22106 \end_layout
22107
22108 \begin_layout Standard
22109 \begin_inset Newpage newpage
22110 \end_inset
22111
22112
22113 \end_layout
22114
22115 \begin_layout Section
22116 標準的でない形の段落
22117 \end_layout
22118
22119 \begin_layout Standard
22120 \noindent
22121
22122 \lang english
22123 LaTeX as well as any other text processor uses by default rectangular paragraphs.
22124  For special cases like for example posters, invitation cards or poems you
22125  can modify the paragraph shape to one of your choice.
22126  This can be done by using the LaTeX-package 
22127 \series bold
22128 shapepar
22129 \series default
22130  which is loaded by using in the document settings the module 
22131 \family sans
22132 Custom paragraph shapes
22133 \family default
22134 .
22135 \end_layout
22136
22137 \begin_layout Subsection
22138
22139 \lang english
22140 Predefined shapes
22141 \end_layout
22142
22143 \begin_layout Standard
22144
22145 \series bold
22146 \lang english
22147 shapepar
22148 \series default
22149  provides the following shapes:
22150 \end_layout
22151
22152 \begin_layout Standard
22153
22154 \lang english
22155 \begin_inset Tabular
22156 <lyxtabular version="3" rows="13" columns="3">
22157 <features rotate="0" booktabs="true" islongtable="true" longtabularalignment="center">
22158 <column alignment="center" valignment="middle" width="16col%">
22159 <column alignment="center" valignment="middle" width="40col%">
22160 <column alignment="center" valignment="middle" width="35col%">
22161 <row endhead="true">
22162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22163 \begin_inset Text
22164
22165 \begin_layout Plain Layout
22166
22167 \lang english
22168 Name
22169 \end_layout
22170
22171 \end_inset
22172 </cell>
22173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22174 \begin_inset Text
22175
22176 \begin_layout Plain Layout
22177
22178 \lang english
22179 Description
22180 \end_layout
22181
22182 \end_inset
22183 </cell>
22184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22185 \begin_inset Text
22186
22187 \begin_layout Plain Layout
22188
22189 \lang english
22190 Annotation
22191 \end_layout
22192
22193 \end_inset
22194 </cell>
22195 </row>
22196 <row>
22197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22198 \begin_inset Text
22199
22200 \begin_layout Plain Layout
22201
22202 \lang english
22203 CDlabel
22204 \end_layout
22205
22206 \end_inset
22207 </cell>
22208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22209 \begin_inset Text
22210
22211 \begin_layout Plain Layout
22212
22213 \lang english
22214 Circle with circular hole (in the size of a CD/DVD)
22215 \end_layout
22216
22217 \end_inset
22218 </cell>
22219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22220 \begin_inset Text
22221
22222 \begin_layout Plain Layout
22223
22224 \lang english
22225 Cannot be scaled, take care there is not too much text
22226 \end_layout
22227
22228 \end_inset
22229 </cell>
22230 </row>
22231 <row>
22232 <cell alignment="center" valignment="top" topline="true" usebox="none">
22233 \begin_inset Text
22234
22235 \begin_layout Plain Layout
22236
22237 \lang english
22238 Circle
22239 \end_layout
22240
22241 \end_inset
22242 </cell>
22243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22244 \begin_inset Text
22245
22246 \begin_layout Plain Layout
22247
22248 \lang english
22249 Circle
22250 \end_layout
22251
22252 \end_inset
22253 </cell>
22254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22255 \begin_inset Text
22256
22257 \begin_layout Plain Layout
22258
22259 \lang english
22260 Fragile, calculation might fail
22261 \end_layout
22262
22263 \end_inset
22264 </cell>
22265 </row>
22266 <row>
22267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22268 \begin_inset Text
22269
22270 \begin_layout Plain Layout
22271
22272 \lang english
22273 Diamond
22274 \end_layout
22275
22276 \end_inset
22277 </cell>
22278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22279 \begin_inset Text
22280
22281 \begin_layout Plain Layout
22282
22283 \lang english
22284 Rhomboid (symbolizing a 
22285 \begin_inset Quotes eld
22286 \end_inset
22287
22288 diamond
22289 \begin_inset Quotes erd
22290 \end_inset
22291
22292 )
22293 \end_layout
22294
22295 \end_inset
22296 </cell>
22297 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22298 \begin_inset Text
22299
22300 \begin_layout Plain Layout
22301
22302 \lang english
22303 -
22304 \end_layout
22305
22306 \end_inset
22307 </cell>
22308 </row>
22309 <row>
22310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22311 \begin_inset Text
22312
22313 \begin_layout Plain Layout
22314
22315 \lang english
22316 Heart
22317 \end_layout
22318
22319 \end_inset
22320 </cell>
22321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22322 \begin_inset Text
22323
22324 \begin_layout Plain Layout
22325
22326 \lang english
22327 Heart-like shape
22328 \end_layout
22329
22330 \end_inset
22331 </cell>
22332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22333 \begin_inset Text
22334
22335 \begin_layout Plain Layout
22336
22337 \lang english
22338 -
22339 \end_layout
22340
22341 \end_inset
22342 </cell>
22343 </row>
22344 <row>
22345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22346 \begin_inset Text
22347
22348 \begin_layout Plain Layout
22349
22350 \lang english
22351 Hexagon
22352 \end_layout
22353
22354 \end_inset
22355 </cell>
22356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22357 \begin_inset Text
22358
22359 \begin_layout Plain Layout
22360
22361 \lang english
22362 Hexagon
22363 \end_layout
22364
22365 \end_inset
22366 </cell>
22367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22368 \begin_inset Text
22369
22370 \begin_layout Plain Layout
22371
22372 \lang english
22373 -
22374 \end_layout
22375
22376 \end_inset
22377 </cell>
22378 </row>
22379 <row>
22380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22381 \begin_inset Text
22382
22383 \begin_layout Plain Layout
22384
22385 \lang english
22386 Nut
22387 \end_layout
22388
22389 \end_inset
22390 </cell>
22391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22392 \begin_inset Text
22393
22394 \begin_layout Plain Layout
22395
22396 \lang english
22397 Nut for bolt (hexagon with circular hole)
22398 \end_layout
22399
22400 \end_inset
22401 </cell>
22402 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22403 \begin_inset Text
22404
22405 \begin_layout Plain Layout
22406
22407 \lang english
22408 -
22409 \end_layout
22410
22411 \end_inset
22412 </cell>
22413 </row>
22414 <row>
22415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22416 \begin_inset Text
22417
22418 \begin_layout Plain Layout
22419
22420 \lang english
22421 Square
22422 \end_layout
22423
22424 \end_inset
22425 </cell>
22426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22427 \begin_inset Text
22428
22429 \begin_layout Plain Layout
22430
22431 \lang english
22432 Square
22433 \end_layout
22434
22435 \end_inset
22436 </cell>
22437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22438 \begin_inset Text
22439
22440 \begin_layout Plain Layout
22441
22442 \lang english
22443 -
22444 \end_layout
22445
22446 \end_inset
22447 </cell>
22448 </row>
22449 <row>
22450 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22451 \begin_inset Text
22452
22453 \begin_layout Plain Layout
22454
22455 \lang english
22456 Star
22457 \end_layout
22458
22459 \end_inset
22460 </cell>
22461 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22462 \begin_inset Text
22463
22464 \begin_layout Plain Layout
22465
22466 \lang english
22467 Five-point star
22468 \end_layout
22469
22470 \end_inset
22471 </cell>
22472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22473 \begin_inset Text
22474
22475 \begin_layout Plain Layout
22476
22477 \lang english
22478 -
22479 \end_layout
22480
22481 \end_inset
22482 </cell>
22483 </row>
22484 <row>
22485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22486 \begin_inset Text
22487
22488 \begin_layout Plain Layout
22489
22490 \lang english
22491 Candle
22492 \end_layout
22493
22494 \end_inset
22495 </cell>
22496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22497 \begin_inset Text
22498
22499 \begin_layout Plain Layout
22500
22501 \lang english
22502 Burning candle
22503 \end_layout
22504
22505 \end_inset
22506 </cell>
22507 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22508 \begin_inset Text
22509
22510 \begin_layout Plain Layout
22511
22512 \lang english
22513 -
22514 \end_layout
22515
22516 \end_inset
22517 </cell>
22518 </row>
22519 <row>
22520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22521 \begin_inset Text
22522
22523 \begin_layout Plain Layout
22524
22525 \lang english
22526 Drop down/up
22527 \end_layout
22528
22529 \end_inset
22530 </cell>
22531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22532 \begin_inset Text
22533
22534 \begin_layout Plain Layout
22535
22536 \lang english
22537 Normal/reversed rain drop
22538 \end_layout
22539
22540 \end_inset
22541 </cell>
22542 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22543 \begin_inset Text
22544
22545 \begin_layout Plain Layout
22546
22547 \lang english
22548 Fragile, calculation might fail
22549 \end_layout
22550
22551 \end_inset
22552 </cell>
22553 </row>
22554 <row>
22555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22556 \begin_inset Text
22557
22558 \begin_layout Plain Layout
22559
22560 \lang english
22561 TeX
22562 \end_layout
22563
22564 \end_inset
22565 </cell>
22566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22567 \begin_inset Text
22568
22569 \begin_layout Plain Layout
22570
22571 \lang english
22572 The TeX logo
22573 \end_layout
22574
22575 \end_inset
22576 </cell>
22577 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22578 \begin_inset Text
22579
22580 \begin_layout Plain Layout
22581
22582 \lang english
22583 -
22584 \end_layout
22585
22586 \end_inset
22587 </cell>
22588 </row>
22589 <row>
22590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22591 \begin_inset Text
22592
22593 \begin_layout Plain Layout
22594
22595 \lang english
22596 Triangle up/down/
22597 \begin_inset Newline newline
22598 \end_inset
22599
22600 left/right
22601 \end_layout
22602
22603 \end_inset
22604 </cell>
22605 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22606 \begin_inset Text
22607
22608 \begin_layout Plain Layout
22609
22610 \lang english
22611 Triangles in different orientations
22612 \end_layout
22613
22614 \end_inset
22615 </cell>
22616 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22617 \begin_inset Text
22618
22619 \begin_layout Plain Layout
22620
22621 \lang english
22622 -
22623 \end_layout
22624
22625 \end_inset
22626 </cell>
22627 </row>
22628 </lyxtabular>
22629
22630 \end_inset
22631
22632
22633 \end_layout
22634
22635 \begin_layout Standard
22636
22637 \lang english
22638 To use a shape for your paragraph, simply select it in LyX's pull-down box
22639  for environments in the toolbar.
22640 \end_layout
22641
22642 \begin_layout Standard
22643 \begin_inset Newpage newpage
22644 \end_inset
22645
22646
22647 \end_layout
22648
22649 \begin_layout Standard
22650
22651 \lang english
22652 Here is an example paragraph in the shape of a nut:
22653 \end_layout
22654
22655 \begin_layout Standard
22656 \begin_inset VSpace bigskip
22657 \end_inset
22658
22659
22660 \end_layout
22661
22662 \begin_layout Nut
22663
22664 \lang latin
22665 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22666  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22667  voluptua.
22668  At vero eos et accusam et justo duo dolores et ea rebum.
22669  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
22670  sit amet.
22671  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22672  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22673  voluptua.
22674 \end_layout
22675
22676 \begin_layout Standard
22677 \begin_inset VSpace bigskip
22678 \end_inset
22679
22680
22681 \end_layout
22682
22683 \begin_layout Standard
22684
22685 \lang english
22686 \begin_inset Note Greyedout
22687 status open
22688
22689 \begin_layout Plain Layout
22690
22691 \series bold
22692 \lang english
22693 Note
22694 \series default
22695 : shapepar paragraphs cannot run over a page break.
22696 \end_layout
22697
22698 \end_inset
22699
22700
22701 \end_layout
22702
22703 \begin_layout Standard
22704 \begin_inset VSpace bigskip
22705 \end_inset
22706
22707
22708 \end_layout
22709
22710 \begin_layout Standard
22711
22712 \series bold
22713 \lang english
22714 shapepar
22715 \series default
22716  takes care that the shape will always be preserved, no matter how much
22717  text is in the paragraph.
22718  Therefore the paragraph size changes with the amount of contained text.
22719  This can lead to paragraph sizes exceeding the page margins.
22720  To demonstrate the size scaling, here is the same example paragraph but
22721  with twice as much text:
22722 \end_layout
22723
22724 \begin_layout Standard
22725 \begin_inset Newpage newpage
22726 \end_inset
22727
22728
22729 \end_layout
22730
22731 \begin_layout Nut
22732
22733 \lang latin
22734 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22735  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22736  voluptua.
22737  At vero eos et accusam et justo duo dolores et ea rebum.
22738  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
22739  sit amet.
22740  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22741  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22742  voluptua.
22743  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22744  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22745  voluptua.
22746  At vero eos et accusam et justo duo dolores et ea rebum.
22747  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
22748  sit amet.
22749  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22750  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22751  voluptua.
22752 \end_layout
22753
22754 \begin_layout Standard
22755 \begin_inset VSpace bigskip
22756 \end_inset
22757
22758
22759 \end_layout
22760
22761 \begin_layout Standard
22762
22763 \lang english
22764 An exception is the shape 
22765 \family sans
22766 CDlabel
22767 \family default
22768 .
22769  It cannot be scaled because it must fit the size of a CD/DVD.
22770  Therefore the amount of text that fits into the shape is limited.
22771 \begin_inset Newline newline
22772 \end_inset
22773
22774 The 
22775 \family sans
22776 drop
22777 \family default
22778  shapes and the 
22779 \family sans
22780 circle
22781 \family default
22782  shape are fragile, meaning that the calculation of their size can fail,
22783  depending on the amount of text.
22784  You will then get the LaTeX error 
22785 \begin_inset Quotes eld
22786 \end_inset
22787
22788 Arithmetic overflow
22789 \begin_inset Quotes erd
22790 \end_inset
22791
22792 .
22793  In this case one can try to remove or add some text; if nothing works one
22794  has to use another shape.
22795 \end_layout
22796
22797 \begin_layout Standard
22798 \begin_inset VSpace bigskip
22799 \end_inset
22800
22801
22802 \end_layout
22803
22804 \begin_layout Standard
22805
22806 \lang english
22807 For shapes with tips you will maybe see that LaTeX's hyphenation routine
22808  fails for text in the tips.
22809  Therefore it is often necessary to add hyphenation points 
22810 \family sans
22811 (
22812 \begin_inset Info
22813 type  "shortcut"
22814 arg   "specialchar-insert hyphenation"
22815 \end_inset
22816
22817
22818 \family default
22819 ) to the corresponding text parts.
22820 \end_layout
22821
22822 \begin_layout Standard
22823 \begin_inset VSpace bigskip
22824 \end_inset
22825
22826
22827 \end_layout
22828
22829 \begin_layout Standard
22830
22831 \lang english
22832 Shapepar paragraphs are either always centered or placed on the page so
22833  that their left border touches the left page margin.
22834  You can therefore not use the paragraph dialog to align such paragraphs.
22835  A solution is to put the paragraph into a minipage or parbox and align
22836  the box.
22837  The problem is hereby to find the right width for the box.
22838  Because if it is too wide and you center the box, the paragraph is not
22839  centered too because it sticks at the left side of the box.
22840  So you might have to play a bit with the width until it fits.
22841  Here are two heart-shaped paragraphs, the first one is not aligned, the
22842  second one is right-aligned:
22843 \end_layout
22844
22845 \begin_layout Standard
22846 \begin_inset Newpage newpage
22847 \end_inset
22848
22849
22850 \end_layout
22851
22852 \begin_layout Triangle up
22853 \noindent
22854
22855 \lang latin
22856 Lo\SpecialChar \-
22857 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22858  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22859  voluptua.
22860  At vero eos et accusam et justo duo dolores et ea rebum.
22861  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
22862  sit amet.
22863 \end_layout
22864
22865 \begin_layout Standard
22866 \begin_inset VSpace bigskip
22867 \end_inset
22868
22869
22870 \end_layout
22871
22872 \begin_layout Standard
22873 \noindent
22874 \align right
22875 \begin_inset Box Frameless
22876 position "t"
22877 hor_pos "c"
22878 has_inner_box 1
22879 inner_pos "t"
22880 use_parbox 1
22881 use_makebox 0
22882 width "42col%"
22883 special "none"
22884 height "1in"
22885 height_special "totalheight"
22886 status open
22887
22888 \begin_layout Triangle up
22889 \noindent
22890
22891 \lang latin
22892 Lo\SpecialChar \-
22893 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
22894  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22895  voluptua.
22896  At vero eos et accusam et justo duo dolores et ea rebum.
22897  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
22898  sit amet.
22899 \end_layout
22900
22901 \end_inset
22902
22903
22904 \end_layout
22905
22906 \begin_layout Subsection
22907
22908 \lang english
22909 Custom shapes
22910 \end_layout
22911
22912 \begin_layout Standard
22913
22914 \lang english
22915 You can define any shape you want.
22916  Doing this manually is a lot of work because every coordinate must be specified.
22917  But there is a way to let the computer calculate the coordinates:
22918 \end_layout
22919
22920 \begin_layout Enumerate
22921
22922 \lang english
22923 Install the program 
22924 \lang japanese
22925
22926 \begin_inset CommandInset href
22927 LatexCommand href
22928 name "Jpgfdraw"
22929 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
22930
22931 \end_inset
22932
22933 .
22934 \end_layout
22935
22936 \begin_layout Enumerate
22937
22938 \lang english
22939 In 
22940 \family sans
22941 Jpgfdraw
22942 \family default
22943  go to the menu 
22944 \family sans
22945 Te
22946 \begin_inset ERT
22947 status collapsed
22948
22949 \begin_layout Plain Layout
22950
22951 {}
22952 \end_layout
22953
22954 \end_inset
22955
22956 X/LaT
22957 \begin_inset ERT
22958 status collapsed
22959
22960 \begin_layout Plain Layout
22961
22962 {}
22963 \end_layout
22964
22965 \end_inset
22966
22967 eX\SpecialChar \menuseparator
22968 Settings\SpecialChar \menuseparator
22969 Set Normal Size
22970 \family default
22971  and select the font size you are using in your document.
22972  For example this document uses the size 12
22973 \begin_inset space \thinspace{}
22974 \end_inset
22975
22976 pt.
22977 \end_layout
22978
22979 \begin_layout Enumerate
22980
22981 \lang english
22982 Draw a shape.
22983 \end_layout
22984
22985 \begin_layout Enumerate
22986
22987 \lang english
22988 Use the menu 
22989 \family sans
22990 Te
22991 \begin_inset ERT
22992 status collapsed
22993
22994 \begin_layout Plain Layout
22995
22996 {}
22997 \end_layout
22998
22999 \end_inset
23000
23001 X/LaT
23002 \begin_inset ERT
23003 status collapsed
23004
23005 \begin_layout Plain Layout
23006
23007 {}
23008 \end_layout
23009
23010 \end_inset
23011
23012 eX\SpecialChar \menuseparator
23013 Shapepar
23014 \family default
23015  to export the shape to coordinates.
23016  In the appearing dialog use either the outline of your shape for the coordinate
23017 s or the path itself.
23018 \begin_inset Foot
23019 status collapsed
23020
23021 \begin_layout Plain Layout
23022
23023 \lang english
23024 For more information see 
23025 \begin_inset CommandInset href
23026 LatexCommand href
23027 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
23028
23029 \end_inset
23030
23031
23032 \end_layout
23033
23034 \end_inset
23035
23036
23037 \end_layout
23038
23039 \begin_layout Standard
23040
23041 \lang english
23042 The coordinates are written into a TeX-file.
23043  To use it for your LyX document
23044 \end_layout
23045
23046 \begin_layout Enumerate
23047
23048 \lang english
23049 Place the cursor before the first character of your paragraph (or into a
23050  new empty one).
23051 \end_layout
23052
23053 \begin_layout Enumerate
23054
23055 \lang english
23056 Open in LyX the menu 
23057 \family sans
23058 Insert\SpecialChar \menuseparator
23059 File\SpecialChar \menuseparator
23060 Child
23061 \begin_inset space ~
23062 \end_inset
23063
23064 Document
23065 \family default
23066 , select the file and use 
23067 \family sans
23068 Input
23069 \family default
23070  as 
23071 \family sans
23072 Include Type.
23073 \end_layout
23074
23075 \begin_layout Standard
23076 \begin_inset VSpace defskip
23077 \end_inset
23078
23079
23080 \end_layout
23081
23082 \begin_layout Standard
23083
23084 \lang english
23085 \begin_inset Note Greyedout
23086 status open
23087
23088 \begin_layout Plain Layout
23089
23090 \series bold
23091 \lang english
23092 Note
23093 \series default
23094 : The changed shape only applies to the current paragraph; everything is
23095  reset to normal for the next paragraph.
23096  Therefore the shape definition file must be input into every paragraph
23097  with the desired shape.
23098 \end_layout
23099
23100 \end_inset
23101
23102
23103 \end_layout
23104
23105 \begin_layout Standard
23106 \begin_inset VSpace bigskip
23107 \end_inset
23108
23109
23110 \end_layout
23111
23112 \begin_layout Standard
23113
23114 \lang english
23115 Here is an example:
23116 \end_layout
23117
23118 \begin_layout Standard
23119 \begin_inset VSpace bigskip
23120 \end_inset
23121
23122
23123 \end_layout
23124
23125 \begin_layout Standard
23126 \begin_inset CommandInset include
23127 LatexCommand input
23128 filename "../SpecialParagraphShape.tex"
23129
23130 \end_inset
23131
23132
23133 \lang latin
23134 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23135  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23136  voluptua.
23137  At vero eos et accusam et justo duo dolores et ea rebum.
23138  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
23139  sit amet.
23140  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23141  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23142  voluptua.
23143 \end_layout
23144
23145 \begin_layout Standard
23146
23147 \lang english
23148 \begin_inset VSpace bigskip
23149 \end_inset
23150
23151
23152 \end_layout
23153
23154 \begin_layout Standard
23155
23156 \series bold
23157 \lang english
23158 A tip:
23159 \series default
23160  to draw complexer shapes in 
23161 \family sans
23162 Jpgfdraw
23163 \family default
23164  you can draw the shape in a program of your choice and import the resulting
23165  image to 
23166 \family sans
23167 Jpgfdraw
23168 \family default
23169 .
23170  Then you only need to draw a line or spline along the outline of the image.
23171 \end_layout
23172
23173 \begin_layout Standard
23174
23175 \lang english
23176 \begin_inset VSpace bigskip
23177 \end_inset
23178
23179
23180 \end_layout
23181
23182 \begin_layout Standard
23183
23184 \lang english
23185 The module 
23186 \family sans
23187 Custom paragraph shapes
23188 \family default
23189  also provides the two commands 
23190 \family sans
23191 shapepar
23192 \family default
23193  and 
23194 \family sans
23195 Shapepar
23196 \family default
23197  which can be used to define custom shapes coordinate by coordinate.
23198 \begin_inset Foot
23199 status collapsed
23200
23201 \begin_layout Plain Layout
23202
23203 \lang english
23204 These commands are internally used for all shapes described here.
23205 \end_layout
23206
23207 \end_inset
23208
23209  For information how these styles are used and about further customization
23210  possibilities, have a look at the documentation of the package 
23211 \series bold
23212 shapepar
23213 \series default
23214
23215 \lang japanese
23216
23217 \begin_inset CommandInset citation
23218 LatexCommand cite
23219 key "shapepar"
23220
23221 \end_inset
23222
23223 .
23224 \end_layout
23225
23226 \begin_layout Bibliography
23227 \begin_inset CommandInset bibitem
23228 LatexCommand bibitem
23229 key "multicol"
23230
23231 \end_inset
23232
23233 LaTeXパッケージ
23234 \begin_inset CommandInset href
23235 LatexCommand href
23236 name "multicol"
23237 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
23238
23239 \end_inset
23240
23241 の取扱説明書
23242 \end_layout
23243
23244 \begin_layout Bibliography
23245 \begin_inset CommandInset bibitem
23246 LatexCommand bibitem
23247 key "shapepar"
23248
23249 \end_inset
23250
23251 LaTeXパッケージ
23252 \begin_inset CommandInset href
23253 LatexCommand href
23254 name "shapepar"
23255 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
23256
23257 \end_inset
23258
23259 の取扱説明書
23260 \end_layout
23261
23262 \end_body
23263 \end_document