]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
Update the link to CMCDDE in our documents
[lyx.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 503
3 \begin_document
4 \begin_header
5 \origin unavailable
6 \textclass scrbook
7 \begin_preamble
8 % DO NOT ALTER THIS PREAMBLE!!!
9 %
10 % This preamble is designed to ensure that the manual prints
11 % out as advertised. If you mess with this preamble,
12 % parts of the manual may not print out as expected.  If you
13 % have problems LaTeXing this file, please contact 
14 % the documentation team
15 % email: lyx-docs@lists.lyx.org
16
17 \IfFileExists{pxjahyper.sty}
18 {\usepackage{pxjahyper}}
19
20 % if pdflatex is used
21 \usepackage{ifpdf}
22 \ifpdf
23
24  % set fonts for nicer pdf view
25  \IfFileExists{lmodern.sty}
26   {\usepackage{lmodern}}{}
27
28 \fi % end if pdflatex is used
29
30 % the pages of the TOC are numbered roman
31 % and a PDF-bookmark for the TOC is added
32 \pagenumbering{roman}
33 \let\myTOC\tableofcontents
34 \renewcommand{\tableofcontents}{%
35  \pdfbookmark[1]{\contentsname}{}
36  \myTOC
37  \cleardoublepage
38  \pagenumbering{arabic}}
39
40 % extra space for tables
41 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
42
43 \usepackage{t1enc}
44 \end_preamble
45 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
46 \use_default_options false
47 \begin_modules
48 logicalmkup
49 theorems-ams
50 theorems-ams-extended
51 multicol
52 shapepar
53 \end_modules
54 \maintain_unincluded_children false
55 \begin_local_layout
56 Format 57
57 InsetLayout             Flex:MenuItem
58 LyxType         charstyle
59 LabelString           menu
60 LatexType             command
61 LatexName             menuitem
62 Font
63 Family              Sans
64 EndFont
65 Preamble
66 \newcommand*{\menuitem}[1]{{\sffamily #1}}
67 EndPreamble
68 ResetsFont true
69 End
70 InsetLayout             Flex:Ruby
71 LyxType         charstyle
72 LatexType               command
73 LatexName               ruby
74 BgColor         none
75 LabelString             "ルビ"
76 Decoration              Conglomerate
77 Argument post:1
78 LabelString     "ルビ文"
79 MenuString      "ルビ文(S)|S"
80 Decoration      Conglomerate
81 Font
82 Size            tiny
83 EndFont
84 LabelFont
85 Size            tiny
86 EndFont
87 Mandatory       1
88 EndArgument
89 Preamble
90 \IfFileExists{okumacro.sty}
91 {\usepackage{okumacro}}
92 {\newcommand{\ruby}[2]{#2}}
93 EndPreamble
94 ResetsFont true
95 End
96 \end_local_layout
97 \language japanese
98 \language_package default
99 \inputencoding auto
100 \fontencoding global
101 \font_roman "default" "default"
102 \font_sans "default" "default"
103 \font_typewriter "default" "default"
104 \font_math "auto" "auto"
105 \font_default_family default
106 \use_non_tex_fonts false
107 \font_sc false
108 \font_osf false
109 \font_sf_scale 100 100
110 \font_tt_scale 100 100
111 \graphics default
112 \default_output_format default
113 \output_sync 0
114 \bibtex_command default
115 \index_command default
116 \paperfontsize 12
117 \spacing single
118 \use_hyperref true
119 \pdf_title "LyX's Additional Features manual"
120 \pdf_author "LyX Team"
121 \pdf_subject "LyX's additional features documentation"
122 \pdf_keywords "LyX, Documentation, Additional"
123 \pdf_bookmarks false
124 \pdf_bookmarksnumbered true
125 \pdf_bookmarksopen false
126 \pdf_bookmarksopenlevel 1
127 \pdf_breaklinks false
128 \pdf_pdfborder false
129 \pdf_colorlinks true
130 \pdf_backref false
131 \pdf_pdfusetitle false
132 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
133 \papersize default
134 \use_geometry false
135 \use_package amsmath 1
136 \use_package amssymb 1
137 \use_package cancel 0
138 \use_package esint 0
139 \use_package mathdots 1
140 \use_package mathtools 0
141 \use_package mhchem 1
142 \use_package stackrel 0
143 \use_package stmaryrd 0
144 \use_package undertilde 0
145 \cite_engine basic
146 \cite_engine_type default
147 \biblio_style plain
148 \use_bibtopic false
149 \use_indices false
150 \paperorientation portrait
151 \suppress_date false
152 \justification true
153 \use_refstyle 0
154 \notefontcolor #0000ff
155 \index 索引
156 \shortcut idx
157 \color #008000
158 \end_index
159 \secnumdepth 3
160 \tocdepth 3
161 \paragraph_separation indent
162 \paragraph_indentation default
163 \quotes_language english
164 \papercolumns 1
165 \papersides 2
166 \paperpagestyle headings
167 \tracking_changes false
168 \output_changes false
169 \html_math_output 0
170 \html_css_as_file 0
171 \html_be_strict true
172 \end_header
173
174 \begin_body
175
176 \begin_layout Title
177 \SpecialChar LyX
178 の高度な機能
179 \begin_inset Newline newline
180 \end_inset
181
182
183 \size large
184 第2.2.x版
185 \end_layout
186
187 \begin_layout Author
188 \SpecialChar LyX
189 プロジェクトチーム
190 \begin_inset Foot
191 status collapsed
192
193 \begin_layout Plain Layout
194 このファイルは主にRichard Heckによって管理されています。コメントをされたい場合や誤りを発見された場合には、\SpecialChar LyX
195 文書化メーリングリスト
196 \begin_inset Flex Code
197 status open
198
199 \begin_layout Plain Layout
200 \noindent
201
202 \family typewriter
203 <lyx-docs@lists.lyx.org>
204 \end_layout
205
206 \end_inset
207
208 に英文にてお知らせ下さい。この文書の翻訳は、当初人見光太郎氏が行った貢献に基づいています。
209 \end_layout
210
211 \end_inset
212
213  
214 \end_layout
215
216 \begin_layout Standard
217 \begin_inset CommandInset toc
218 LatexCommand tableofcontents
219
220 \end_inset
221
222
223 \end_layout
224
225 \begin_layout Chapter
226 はじめに
227 \end_layout
228
229 \begin_layout Standard
230 いまお読みの取扱説明書『
231 \emph on
232 \SpecialChar LyX
233 拡張機能篇
234 \emph default
235 』は、基本的には『
236 \emph on
237 ユーザーの手引き
238 \emph default
239 』の第二部です。これらの文書を別部とした理由は、単純に『
240 \emph on
241 ユーザーの手引き
242 \emph default
243 』がすでに大部となっていることと、『
244 \emph on
245 ユーザーの手引き
246 \emph default
247 』が、ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです。一方で、\SpecialChar LyX
248 プロジェクトチームは、\SpecialChar LyX
249 を各設定ファイルと外部パッケージによって拡張
250 可能な状態にしておくことを長期的な目標にしています。つまり、ある\SpecialChar LaTeX
251 パッケージをサポートしたい場合に、\SpecialChar LyX
252 自身に変更を加えることなく、当該パッケージ用のレイアウトファイ
253 ル(ないしモジュール)を作成すればいいようにしているのです。すでにこのような形で、いくつもの新機能がユーザーによって追加されています。この取扱説明書は、そのよう
254 な形での貢献を文書化する冊子として位置付けられています。
255 \end_layout
256
257 \begin_layout Standard
258 この取扱説明書では、ファックスのサポート・バージョン管理・SGMLサポートのような、正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
259 しています。さらに、\SpecialChar LaTeX
260 の強力な機能を直接使って文書を美しく仕上げるための、\SpecialChar LaTeX
261 ツールやテクニックを述べた章も収録しています。つきつめれば、\SpecialChar LyX
262 とはあくまでWYSIWYMた
263 ることを企図しているため、\SpecialChar LaTeX
264 の全機能の一部へのインタフェースは用意するものの、すべてを用意することはないでしょう。
265 \end_layout
266
267 \begin_layout Standard
268 もし、まだ『
269 \emph on
270 はじめの一歩
271 \emph default
272 』をお読みでなかったら、この取扱説明書から読みはじめるのは誤りです。『
273 \emph on
274 はじめの一歩
275 \emph default
276 』には、全取扱説明書に共通の表記法と書式が説明されていますので、まずそれからお読みください。さらに、この取扱説明書を読もうとする前に、『
277 \emph on
278 ユーザーの手引き
279 \emph default
280 』をよくお読みになって、\SpecialChar LyX
281 の全基本機能を習得してください。
282 \end_layout
283
284 \begin_layout Standard
285 この取扱説明書の取り上げられている話題は、\SpecialChar LyX
286 が\SpecialChar LaTeX
287 にどう関わっているかに強く関係していますので、まず次章では、\SpecialChar LyX
288 の内部動作がどうなっているか、LyXに希望する\SpecialChar LaTeX
289 コードを正
290 確に生成させるにはどうしたらいいかを収録しています。本章は、あきらかに熟練\SpecialChar LyX
291 ユーザー向けの章となっています。
292 \end_layout
293
294 \begin_layout Chapter
295 \SpecialChar LyX
296 と\SpecialChar LaTeX
297
298 \end_layout
299
300 \begin_layout Section
301 \SpecialChar LyX
302 は\SpecialChar LaTeX
303 をどう使っているか
304 \end_layout
305
306 \begin_layout Standard
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 は、\SpecialChar TeX
317 熟練者と\SpecialChar LaTeX
318 に興味のある方向けの章です。ここでは、\SpecialChar LyX
319 と\SpecialChar LaTeX
320 が、印刷可能な出力を生成するのに、どのように協働しているのかを説明します。全取扱説明書中で本章だけは、\SpecialChar LaTeX
321 のこと
322 を多少なりともご存知であることを前提とします。
323 \end_layout
324
325 \begin_layout Standard
326
327 \family roman
328 \series medium
329 \shape up
330 \size normal
331 \emph off
332 \bar no
333 \noun off
334 \color none
335 かつて\SpecialChar LyX
336 は、「\SpecialChar LaTeX
337
338 \family default
339 \series default
340 \shape default
341 \size default
342 \emph default
343 \bar default
344 \noun default
345 \color inherit
346 WYSIWYM
347 \family roman
348 \series medium
349 \shape up
350 \size normal
351 \emph off
352 \bar no
353 \noun off
354 \color none
355 なフロントエンド」と呼ばれていましたが、いまではこれは正しくありません。\SpecialChar LaTeX
356 のフロントエンドは、いくつも出回っています
357 \begin_inset Foot
358 status collapsed
359
360 \begin_layout Plain Layout
361
362 \family roman
363 \series medium
364 \shape up
365 \size normal
366 \emph off
367 \bar no
368 \noun off
369 \color none
370 有名なものとしては、Linux上の\SpecialChar TeX
371 makerとkile、OSX上の\SpecialChar TeX
372 shopなどがあります。もちろんviとemacsの\SpecialChar LaTeX
373 モードも含まれます。
374 \end_layout
375
376 \end_inset
377
378 。これらは、基本的に\SpecialChar LaTeX
379 を走らせる機能を有し、編集中のファイルのエラーを表示する機能を持ったテキストエディタです。\SpecialChar LyX
380 も、エディタであり、\SpecialChar LaTeX
381 を走らせる機能を有し、ファイル
382 中のエラーを指摘しますが、それ以上にもっともっと多くのことをしてくれます。
383 \family default
384 \series default
385 \shape default
386 \size default
387 \emph default
388 \bar default
389 \noun default
390 \color inherit
391 ひとつには、
392 \family roman
393 \series medium
394 \shape up
395 \size normal
396 \emph off
397 \bar no
398 \noun off
399 \color none
400 \SpecialChar LyX
401 を効果的に使うのに、\SpecialChar LaTeX
402 の知識が必要とされないことが挙げられます。また\SpecialChar LyX
403 は、それ自身、いくつかの拡張を\SpecialChar LaTeX
404 に加えています。時間のあるときにでも、いちど以下の手順を試してみ
405 てください。まず
406 \family sans
407 \series default
408 \shape default
409 \size default
410 \emph default
411 \bar default
412 \noun default
413 \color inherit
414
415 \begin_inset Flex MenuItem
416 status collapsed
417
418 \begin_layout Plain Layout
419
420 \family sans
421 ファイル
422 \end_layout
423
424 \end_inset
425
426
427 \family roman
428 \series medium
429 \shape up
430 \size normal
431 \emph off
432 \bar no
433 \noun off
434 \color none
435 メニューから
436 \family sans
437 \series default
438 \shape default
439 \size default
440 \emph default
441 \bar default
442 \noun default
443 \color inherit
444
445 \begin_inset Flex MenuItem
446 status collapsed
447
448 \begin_layout Plain Layout
449
450 \family sans
451 エクスポート\SpecialChar menuseparator
452 \SpecialChar LaTeX
453
454 \end_layout
455
456 \end_inset
457
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 (あるいは
468 \family sans
469 \series default
470 \shape default
471 \size default
472 \emph default
473 \bar default
474 \noun default
475 \color inherit
476
477 \begin_inset Flex MenuItem
478 status collapsed
479
480 \begin_layout Plain Layout
481
482 \family sans
483 表示\SpecialChar menuseparator
484 ソースを閲覧
485 \end_layout
486
487 \end_inset
488
489
490 \family roman
491 \series medium
492 \shape up
493 \size normal
494 \emph off
495 \bar no
496 \noun off
497 \color none
498 )を選択し、そこから出力される
499 \begin_inset Flex Code
500 status collapsed
501
502 \begin_layout Plain Layout
503
504 \family typewriter
505 .tex
506 \end_layout
507
508 \end_inset
509
510 ファイルのプリアンブルをご覧ください。\SpecialChar LyX
511 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
512 \family default
513 \series default
514 \shape default
515 \size default
516 \emph default
517 \bar default
518 \noun default
519 \color inherit
520 。これらのマクロは、文書中で使用する機能に応じて、自動的に定義されます。
521 \end_layout
522
523 \begin_layout Standard
524
525 \family roman
526 \series medium
527 \shape up
528 \size normal
529 \emph off
530 \bar no
531 \noun off
532 \color none
533 自動的に\SpecialChar LaTeX
534 を実行するコマンドが、以下のようにいくつかあります。
535 \end_layout
536
537 \begin_layout Itemize
538 \begin_inset Flex MenuItem
539 status collapsed
540
541 \begin_layout Plain Layout
542 表示\SpecialChar menuseparator
543
544 \emph on
545 書式
546 \end_layout
547
548 \end_inset
549
550
551 \end_layout
552
553 \begin_layout Itemize
554
555 \family sans
556 \begin_inset Flex MenuItem
557 status collapsed
558
559 \begin_layout Plain Layout
560
561 \bar no
562 表示\SpecialChar menuseparator
563 更新\SpecialChar menuseparator
564
565 \emph on
566 書式
567 \end_layout
568
569 \end_inset
570
571
572 \end_layout
573
574 \begin_layout Itemize
575
576 \family sans
577 \begin_inset Flex MenuItem
578 status collapsed
579
580 \begin_layout Plain Layout
581 ファイル\SpecialChar menuseparator
582 印刷
583 \end_layout
584
585 \end_inset
586
587
588 \end_layout
589
590 \begin_layout Itemize
591
592 \family sans
593 \begin_inset Flex MenuItem
594 status collapsed
595
596 \begin_layout Plain Layout
597 ファイル\SpecialChar menuseparator
598 ファックス
599 \end_layout
600
601 \end_inset
602
603
604 \end_layout
605
606 \begin_layout Standard
607
608 \family roman
609 \series medium
610 \shape up
611 \size normal
612 \emph off
613 \bar no
614 \noun off
615 \color none
616 これらは、最後に\SpecialChar LaTeX
617 を実行してからファイルに変更が加えられた場合のみ、\SpecialChar LaTeX
618 を実行します。
619 \end_layout
620
621 \begin_layout Standard
622
623 \family roman
624 \series medium
625 \shape up
626 \size normal
627 \emph off
628 \bar no
629 \noun off
630 \color none
631 \SpecialChar LyX
632 が編集中のファイルを\SpecialChar LaTeX
633 にかけるとき、\SpecialChar LyX
634 は以下の段階をふみます。
635 \end_layout
636
637 \begin_layout Enumerate
638
639 \family roman
640 \series medium
641 \shape up
642 \size normal
643 \emph off
644 \bar no
645 \noun off
646 \color none
647 文書を\SpecialChar LaTeX
648 に変換し、ファイルの拡張子を
649 \begin_inset Flex Code
650 status collapsed
651
652 \begin_layout Plain Layout
653
654 \family roman
655 \series medium
656 \shape up
657 \size normal
658 \emph off
659 \bar no
660 \noun off
661 \color none
662 .lyx
663 \end_layout
664
665 \end_inset
666
667 から
668 \begin_inset Flex Code
669 status collapsed
670
671 \begin_layout Plain Layout
672
673 \family roman
674 \series medium
675 \shape up
676 \size normal
677 \emph off
678 \bar no
679 \noun off
680 \color none
681 .tex
682 \end_layout
683
684 \end_inset
685
686 に変えて保存。
687 \end_layout
688
689 \begin_layout Enumerate
690
691 \family roman
692 \series medium
693 \shape up
694 \size normal
695 \emph off
696 \bar no
697 \noun off
698 \color none
699 この
700 \begin_inset Flex Code
701 status collapsed
702
703 \begin_layout Plain Layout
704
705 \family roman
706 \series medium
707 \shape up
708 \size normal
709 \emph off
710 \bar no
711 \noun off
712 \color none
713 .tex
714 \end_layout
715
716 \end_inset
717
718 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
719 を実行し、\SpecialChar LaTeX
720 ファイルをコンパイルするのに必要な他のコマンド(
721 \begin_inset Flex Code
722 status collapsed
723
724 \begin_layout Plain Layout
725
726 \family roman
727 \series medium
728 \shape up
729 \size normal
730 \emph off
731 \bar no
732 \noun off
733 \color none
734 bibtex
735 \end_layout
736
737 \end_inset
738
739
740 \begin_inset Flex Code
741 status collapsed
742
743 \begin_layout Plain Layout
744
745 \family roman
746 \series medium
747 \shape up
748 \size normal
749 \emph off
750 \bar no
751 \noun off
752 \color none
753 makeindex
754 \end_layout
755
756 \end_inset
757
758 など)を実行。。
759 \end_layout
760
761 \begin_layout Enumerate
762
763 \family roman
764 \series medium
765 \shape up
766 \size normal
767 \emph off
768 \bar no
769 \noun off
770 \color none
771 もしエラーがあれば、エラーログを表示。
772 \end_layout
773
774 \begin_layout Standard
775
776 \family roman
777 \series medium
778 \shape up
779 \size normal
780 \emph off
781 \bar no
782 \noun off
783 \color none
784 \SpecialChar LaTeX
785
786 \family sans
787 \series default
788 \shape default
789 \size default
790 \emph default
791 \bar default
792 \noun default
793 \color inherit
794
795 \begin_inset Flex MenuItem
796 status collapsed
797
798 \begin_layout Plain Layout
799
800 \family sans
801 表示\SpecialChar menuseparator
802 DVI
803 \end_layout
804
805 \end_inset
806
807
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 を使用して実行した場合には、\SpecialChar LyX
817 はこの後、DVIビューアを実行してDVIファイルを表示します。
818 \begin_inset Flex MenuItem
819 status collapsed
820
821 \begin_layout Plain Layout
822
823 \family roman
824 \series medium
825 \shape up
826 \size normal
827 \emph off
828 \bar no
829 \noun off
830 \color none
831 表示\SpecialChar menuseparator
832 PostScript
833 \end_layout
834
835 \end_inset
836
837 を使用した場合には、\SpecialChar LyX
838 はさらに以下の段階をふみます。
839 \end_layout
840
841 \begin_layout Itemize
842
843 \family roman
844 \series medium
845 \shape up
846 \size normal
847 \emph off
848 \bar no
849 \noun off
850 \color none
851 \begin_inset Flex Code
852 status collapsed
853
854 \begin_layout Plain Layout
855
856 \family typewriter
857 dvips
858 \end_layout
859
860 \end_inset
861
862 を実行して、
863 \family default
864 \series default
865 \shape default
866 \size default
867 \emph default
868 \bar default
869 \noun default
870 \color inherit
871 DVI
872 \family roman
873 \series medium
874 \shape up
875 \size normal
876 \emph off
877 \bar no
878 \noun off
879 \color none
880 ファイルをPostScript®
881 \family default
882 \series default
883 \shape default
884 \size default
885 \emph default
886 \bar default
887 \noun default
888 \color inherit
889 に変換。
890 \end_layout
891
892 \begin_layout Itemize
893
894 \family roman
895 \series medium
896 \shape up
897 \size normal
898 \emph off
899 \bar no
900 \noun off
901 \color none
902 \begin_inset Flex Code
903 status collapsed
904
905 \begin_layout Plain Layout
906
907 \family typewriter
908 ghostview
909 \end_layout
910
911 \end_inset
912
913 などのPostScript®ビューアを実行して、PostScript®
914 \family default
915 \series default
916 \shape default
917 \size default
918 \emph default
919 \bar default
920 \noun default
921 \color inherit
922 ファイルを表示。
923 \end_layout
924
925 \begin_layout Standard
926 \SpecialChar LyX
927 は、他の書式を表示したりエクスポートしたりする際にも、同様のことを行います。
928 \end_layout
929
930 \begin_layout Section
931 \SpecialChar LaTeX
932 ファイルを\SpecialChar LyX
933 に読み込む
934 \end_layout
935
936 \begin_layout Standard
937 \SpecialChar LyX
938
939 \family sans
940
941 \begin_inset Flex MenuItem
942 status collapsed
943
944 \begin_layout Plain Layout
945
946 \family sans
947 ファイル\SpecialChar menuseparator
948 インポート\SpecialChar menuseparator
949 \SpecialChar LaTeX
950
951 \end_layout
952
953 \end_inset
954
955
956 \family roman
957 \series medium
958 \shape up
959 \size normal
960 \emph off
961 \bar no
962 \noun off
963 \color none
964 コマンドを使用すると、\SpecialChar LaTeX
965 ファイルを
966 \family default
967 \series default
968 \shape default
969 \size default
970 \emph default
971 \bar default
972 \noun default
973  
974 \family roman
975 \series medium
976 \shape up
977 \size normal
978 \emph off
979 \bar no
980 \noun off
981 \SpecialChar LyX
982 にインポートすることができます。このコマンドは、
983 \family typewriter
984 \series default
985 \shape default
986 \size default
987 \emph default
988 \bar default
989 \noun default
990 \color inherit
991
992 \begin_inset Flex Code
993 status collapsed
994
995 \begin_layout Plain Layout
996
997 \family typewriter
998 tex2lyx
999 \end_layout
1000
1001 \end_inset
1002
1003
1004 \family roman
1005 \series medium
1006 \shape up
1007 \size normal
1008 \emph off
1009 \bar no
1010 \noun off
1011 \color none
1012 というプログラムを呼び出し、
1013 \family typewriter
1014 \series default
1015 \shape default
1016 \size default
1017 \emph default
1018 \bar default
1019 \noun default
1020 \color inherit
1021
1022 \begin_inset Flex Code
1023 status collapsed
1024
1025 \begin_layout Plain Layout
1026
1027 \family typewriter
1028 foo.tex
1029 \end_layout
1030
1031 \end_inset
1032
1033
1034 \family default
1035 などというファイルから
1036 \begin_inset Flex Code
1037 status collapsed
1038
1039 \begin_layout Plain Layout
1040
1041 \family typewriter
1042 foo.lyx
1043 \end_layout
1044
1045 \end_inset
1046
1047 を生成します。\SpecialChar LyX
1048 は、この変換したファイルを開きます
1049 \begin_inset Foot
1050 status collapsed
1051
1052 \begin_layout Plain Layout
1053 \begin_inset Flex Code
1054 status collapsed
1055
1056 \begin_layout Plain Layout
1057 tex2lyx
1058 \end_layout
1059
1060 \end_inset
1061
1062 は、もちろんコマンドラインから実行することもできます。
1063 \end_layout
1064
1065 \end_inset
1066
1067
1068 \end_layout
1069
1070 \begin_layout Standard
1071
1072 \family typewriter
1073 \begin_inset Flex Code
1074 status collapsed
1075
1076 \begin_layout Plain Layout
1077
1078 \family typewriter
1079 tex2lyx
1080 \end_layout
1081
1082 \end_inset
1083
1084
1085 \family roman
1086 \series medium
1087 \shape up
1088 \size normal
1089 \emph off
1090 \bar no
1091 \noun off
1092 \color none
1093 は、文法的に正しい\SpecialChar LaTeX
1094 ファイルのほとんどを変換することができますが、すべてを変換できるわけではありません。
1095 \family typewriter
1096 \series default
1097 \shape default
1098 \size default
1099 \emph default
1100 \bar default
1101 \noun default
1102 \color inherit
1103
1104 \begin_inset Flex Code
1105 status collapsed
1106
1107 \begin_layout Plain Layout
1108
1109 \family typewriter
1110 tex2lyx
1111 \end_layout
1112
1113 \end_inset
1114
1115
1116 \family roman
1117 \series medium
1118 \shape up
1119 \size normal
1120 \emph off
1121 \bar no
1122 \noun off
1123 \color none
1124 は、理解不能な部分は\SpecialChar TeX
1125 コードボックスの形で残しますので、ファイルを
1126 \family typewriter
1127 \series default
1128 \shape default
1129 \size default
1130 \emph default
1131 \bar default
1132 \noun default
1133 \color inherit
1134
1135 \begin_inset Flex Code
1136 status collapsed
1137
1138 \begin_layout Plain Layout
1139
1140 \family typewriter
1141 tex2lyx
1142 \end_layout
1143
1144 \end_inset
1145
1146
1147 \family roman
1148 \series medium
1149 \shape up
1150 \size normal
1151 \emph off
1152 \bar no
1153 \noun off
1154 \color none
1155 で変換したのち、\SpecialChar TeX
1156 コードボックスを探して、手動で正しく編集してください。
1157 \end_layout
1158
1159 \begin_layout Standard
1160
1161 \family roman
1162 \series medium
1163 \shape up
1164 \size normal
1165 \emph off
1166 \bar no
1167 \noun off
1168 \color none
1169 \SpecialChar TeX
1170 コードボックスがなにかご存じなければ、次節をお読みください。
1171 \end_layout
1172
1173 \begin_layout Section
1174 \SpecialChar LaTeX
1175 コードを挿入する
1176 \begin_inset CommandInset label
1177 LatexCommand label
1178 name "sec:LaTeXコードを挿入する"
1179
1180 \end_inset
1181
1182
1183 \end_layout
1184
1185 \begin_layout Standard
1186
1187 \family roman
1188 \series medium
1189 \shape up
1190 \size normal
1191 \emph off
1192 \bar no
1193 \noun off
1194 \color none
1195 どの\SpecialChar LyX
1196 文書にもつねに\SpecialChar TeX
1197 コードを挿入することが可能であるというきわめて単純な理由によって、\SpecialChar LaTeX
1198 にできることは、つねに\SpecialChar LyX
1199 でも行うことができます。一方、\SpecialChar LyX
1200 は、すべての\SpecialChar LaTeX
1201 構成物を\SpecialChar LyX
1202 内に
1203 表示できるわけではなく、将来的にもそうならないでしょう。かりに\SpecialChar LaTeX
1204 コマンドを\SpecialChar LyX
1205 文書に挿入する必要が出てきた場合には、
1206 \begin_inset Flex Code
1207 status collapsed
1208
1209 \begin_layout Plain Layout
1210
1211 \family roman
1212 \series medium
1213 \shape up
1214 \size normal
1215 \emph off
1216 \bar no
1217 \noun off
1218 \color none
1219 \SpecialChar TeX
1220 コード
1221 \end_layout
1222
1223 \end_inset
1224
1225 ボックスを使用してください。これは、
1226 \family sans
1227 \series default
1228 \shape default
1229 \size default
1230 \emph default
1231 \bar default
1232 \noun default
1233 \color inherit
1234
1235 \begin_inset Flex MenuItem
1236 status collapsed
1237
1238 \begin_layout Plain Layout
1239
1240 \family sans
1241 挿入\SpecialChar menuseparator
1242 \SpecialChar TeX
1243 コード
1244 \end_layout
1245
1246 \end_inset
1247
1248
1249 \family roman
1250 \series medium
1251 \shape up
1252 \size normal
1253 \emph off
1254 \bar no
1255 \noun off
1256 \color none
1257 若しくは
1258 \family default
1259 \series default
1260 \shape default
1261 \size default
1262 \emph default
1263 \bar default
1264 \noun default
1265 \color inherit
1266
1267 \begin_inset Flex Ruby
1268 status collapsed
1269
1270 \begin_layout Plain Layout
1271
1272 \family roman
1273 \series medium
1274 \shape up
1275 \size normal
1276 \emph off
1277 \bar no
1278 \noun off
1279 \color none
1280 捷径
1281 \family default
1282 \series default
1283 \shape default
1284 \size default
1285 \emph default
1286 \bar default
1287 \noun default
1288 \color inherit
1289
1290 \begin_inset Argument post:1
1291 status collapsed
1292
1293 \begin_layout Plain Layout
1294 ショートカット
1295 \end_layout
1296
1297 \end_inset
1298
1299
1300 \end_layout
1301
1302 \end_inset
1303
1304
1305 \begin_inset Flex Ruby
1306 status collapsed
1307
1308 \begin_layout Plain Layout
1309
1310 \family roman
1311 \series medium
1312 \shape up
1313 \size normal
1314 \emph off
1315 \bar no
1316 \noun off
1317 \color none
1318
1319 \begin_inset Argument post:1
1320 status collapsed
1321
1322 \begin_layout Plain Layout
1323 キー
1324 \end_layout
1325
1326 \end_inset
1327
1328
1329 \end_layout
1330
1331 \end_inset
1332
1333
1334 \begin_inset Info
1335 type  "shortcut"
1336 arg   "ert-insert"
1337 \end_inset
1338
1339
1340 \family roman
1341 \series medium
1342 \shape up
1343 \size normal
1344 \emph off
1345 \bar no
1346 \noun off
1347 \color none
1348 で、文書中に挿入することができます。
1349 \end_layout
1350
1351 \begin_layout Standard
1352 以下は、\SpecialChar LaTeX
1353 コマンドを\SpecialChar LyX
1354 文書中に挿入する例です。コードは以下のようになっているとしましょう。
1355 \end_layout
1356
1357 \begin_layout LyX-Code
1358
1359 \backslash
1360 begin{tabular}{ll}
1361 \begin_inset Newline newline
1362 \end_inset
1363
1364
1365 \backslash
1366 begin{minipage}{5cm}
1367 \begin_inset Newline newline
1368 \end_inset
1369
1370 これは、ミニページ環境の例です。
1371 \begin_inset Newline newline
1372 \end_inset
1373
1374 これには、
1375 \begin_inset Newline newline
1376 \end_inset
1377
1378 (フロートでない)図表を
1379 \begin_inset Newline newline
1380 \end_inset
1381
1382 含め、ほとんど何でも
1383 \begin_inset Newline newline
1384 \end_inset
1385
1386 入れることができます。 
1387 \begin_inset Newline newline
1388 \end_inset
1389
1390
1391 \backslash
1392 end{minipage}
1393 \begin_inset Newline newline
1394 \end_inset
1395
1396 &
1397 \begin_inset Newline newline
1398 \end_inset
1399
1400
1401 \backslash
1402 begin{minipage}{5cm}
1403 \begin_inset Newline newline
1404 \end_inset
1405
1406
1407 \backslash
1408 begin{verbatim}
1409 \begin_inset Newline newline
1410 \end_inset
1411
1412
1413 \backslash
1414 begin{minipage}{5cm}
1415 \begin_inset Newline newline
1416 \end_inset
1417
1418 これは...
1419  
1420 \begin_inset Newline newline
1421 \end_inset
1422
1423
1424 \backslash
1425 end{minipage}
1426 \begin_inset Newline newline
1427 \end_inset
1428
1429
1430 \backslash
1431 end{verbatim}
1432 \begin_inset Newline newline
1433 \end_inset
1434
1435
1436 \backslash
1437 end{minipage}
1438 \begin_inset Newline newline
1439 \end_inset
1440
1441
1442 \backslash
1443 end{tabular}
1444 \end_layout
1445
1446 \begin_layout LyX-Code
1447
1448 \end_layout
1449
1450 \begin_layout Standard
1451 上記のテキストを含んだ
1452 \begin_inset Flex Code
1453 status collapsed
1454
1455 \begin_layout Plain Layout
1456 \SpecialChar TeX
1457 コード
1458 \end_layout
1459
1460 \end_inset
1461
1462 ボックスが、この段落の直後にあります。この取扱説明書を\SpecialChar LyX
1463 上でご覧になっていれば、\SpecialChar TeX
1464 コード差込枠のみが見えるはずです。印刷した取扱説明書をご覧であれば、実際の結果が見
1465 れるはずです。
1466 \end_layout
1467
1468 \begin_layout Standard
1469 \begin_inset VSpace bigskip
1470 \end_inset
1471
1472
1473 \begin_inset ERT
1474 status open
1475
1476 \begin_layout Plain Layout
1477
1478
1479 \backslash
1480 begin{tabular}{ll}
1481 \end_layout
1482
1483 \begin_layout Plain Layout
1484
1485
1486 \backslash
1487 begin{minipage}{5cm}
1488 \end_layout
1489
1490 \begin_layout Plain Layout
1491
1492 これは、ミニページ環境の例です。これには、(フロートでない)図表を含め、ほとんど何でも入れることができます。 
1493 \backslash
1494 end{minipage}
1495 \end_layout
1496
1497 \begin_layout Plain Layout
1498
1499 &
1500 \end_layout
1501
1502 \begin_layout Plain Layout
1503
1504
1505 \backslash
1506 begin{minipage}{5cm}
1507 \end_layout
1508
1509 \begin_layout Plain Layout
1510
1511
1512 \backslash
1513 begin{verbatim}
1514 \end_layout
1515
1516 \begin_layout Plain Layout
1517
1518
1519 \backslash
1520 begin{minipage}{5cm}
1521 \end_layout
1522
1523 \begin_layout Plain Layout
1524
1525 これは...
1526  
1527 \backslash
1528 end{minipage}
1529 \end_layout
1530
1531 \begin_layout Plain Layout
1532
1533
1534 \backslash
1535 end{verbatim}
1536 \end_layout
1537
1538 \begin_layout Plain Layout
1539
1540
1541 \backslash
1542 end{minipage}
1543 \end_layout
1544
1545 \begin_layout Plain Layout
1546
1547
1548 \backslash
1549 end{tabular}
1550 \end_layout
1551
1552 \end_inset
1553
1554
1555 \begin_inset VSpace bigskip
1556 \end_inset
1557
1558
1559 \end_layout
1560
1561 \begin_layout Standard
1562
1563 \family roman
1564 \series medium
1565 \shape up
1566 \size normal
1567 \emph off
1568 \bar no
1569 \noun off
1570 \color none
1571 \SpecialChar TeX
1572 コードを使用する方法に加えて、複雑な\SpecialChar LaTeX
1573 コードを含む部分を別ファイルとして作成しておき、そのファイルをインクルードするのに
1574 \begin_inset Flex MenuItem
1575 status collapsed
1576
1577 \begin_layout Plain Layout
1578
1579 \family roman
1580 \series medium
1581 \shape up
1582 \size normal
1583 \emph off
1584 \bar no
1585 \noun off
1586 \color none
1587 挿入\SpecialChar menuseparator
1588 ファイル\SpecialChar menuseparator
1589 子文書
1590 \end_layout
1591
1592 \end_inset
1593
1594 を使用する方法もあります(取り込みの型として
1595 \begin_inset Flex Code
1596 status collapsed
1597
1598 \begin_layout Plain Layout
1599
1600 \family roman
1601 \series medium
1602 \shape up
1603 \size normal
1604 \emph off
1605 \bar no
1606 \noun off
1607 \color none
1608 Input
1609 \end_layout
1610
1611 \end_inset
1612
1613 を選択しなくてはなりません)。この方法をとる場合には、.texファイルが正しく動作することが
1614 \family default
1615 \series default
1616 \shape default
1617 \size default
1618 \emph on
1619 \bar default
1620 \noun default
1621 \color inherit
1622 確認できている
1623 \family roman
1624 \series medium
1625 \shape up
1626 \size normal
1627 \emph off
1628 \bar no
1629 \noun off
1630 \color none
1631 場合のみに限った方がよいでしょう。さもないと、\SpecialChar LaTeX
1632 エラーを追跡するたいへんな作業を行わなくてはならなくなります。
1633 \end_layout
1634
1635 \begin_layout Standard
1636
1637 \family roman
1638 \series medium
1639 \shape up
1640 \size normal
1641 \emph off
1642 \bar no
1643 \noun off
1644 \color none
1645 最後に、いくつか強調しておくべきことがあります。
1646 \end_layout
1647
1648 \begin_layout Itemize
1649
1650 \family roman
1651 \series medium
1652 \shape up
1653 \size normal
1654 \emph off
1655 \bar no
1656 \noun off
1657 \color none
1658 \SpecialChar LyX
1659 は、あなたの\SpecialChar LaTeX
1660 コードが正しいかどうかを
1661 \family default
1662 \series default
1663 \shape default
1664 \size default
1665 \emph on
1666 \bar default
1667 \noun default
1668 \color inherit
1669 チェックしません
1670 \family roman
1671 \series medium
1672 \shape up
1673 \size normal
1674 \emph off
1675 \bar no
1676 \noun off
1677 \color none
1678
1679 \end_layout
1680
1681 \begin_layout Itemize
1682
1683 \family roman
1684 \series medium
1685 \shape up
1686 \size normal
1687 \emph off
1688 \bar no
1689 \noun off
1690 \color none
1691 車輪の再発明をしないようにご注意ください。
1692 \end_layout
1693
1694 \begin_layout Standard
1695
1696 \family roman
1697 \series medium
1698 \shape up
1699 \size normal
1700 \emph off
1701 \bar no
1702 \noun off
1703 \color none
1704 二番目の点に関して、\SpecialChar LyX
1705 はひじょうにたくさんの機能を装備しており、その数は増えつづけています。ご自身で\SpecialChar LaTeX
1706 コードを書かなくてはならないと思い込む前に、LyXがこれこれの
1707 機能をもっていないことを、取扱説明書で確実に確かめてください。さらに世の中には、封筒のラベルから美しい複数ページにわたる表を作るものまで、ありとあらゆることを行
1708 う膨大な数の\SpecialChar LaTeX
1709 パッケージが存在します。
1710 \family default
1711 \series default
1712 \shape default
1713 \size default
1714 \emph default
1715 \bar default
1716 \noun default
1717 \color inherit
1718 詳細については、
1719 \begin_inset CommandInset href
1720 LatexCommand href
1721 name "CTAN"
1722 target "http://www.ctan.org/"
1723
1724 \end_inset
1725
1726
1727 \family roman
1728 \series medium
1729 \shape up
1730 \size normal
1731 \emph off
1732 \bar no
1733 \noun off
1734 \color none
1735 と第
1736 \begin_inset CommandInset ref
1737 LatexCommand ref
1738 reference "chap:Special-features"
1739
1740 \end_inset
1741
1742 節をご覧ください。
1743 \end_layout
1744
1745 \begin_layout Standard
1746
1747 \family roman
1748 \series medium
1749 \shape up
1750 \size normal
1751 \emph off
1752 \bar no
1753 \noun off
1754 \color none
1755 もし、文書中で例外的に手の込んだことをなさりたければ、かならず良い\SpecialChar LaTeX
1756 関連書籍を参考とするようにしてください。『
1757 \family default
1758 \series default
1759 \shape default
1760 \size default
1761 \emph on
1762 \bar default
1763 \noun default
1764 \color inherit
1765 ユーザーの手引き
1766 \family roman
1767 \series medium
1768 \shape up
1769 \size normal
1770 \emph off
1771 \bar no
1772 \noun off
1773 \color none
1774 』の書誌情報に多くの\SpecialChar LaTeX
1775 関連書籍が引用されています。
1776 \end_layout
1777
1778 \begin_layout Section
1779 \SpecialChar LyX
1780 と\SpecialChar LaTeX
1781 プリアンブル
1782 \end_layout
1783
1784 \begin_layout Subsection
1785 \SpecialChar LaTeX
1786 プリアンブルについて
1787 \end_layout
1788
1789 \begin_layout Standard
1790
1791 \family roman
1792 \series medium
1793 \shape up
1794 \size normal
1795 \emph off
1796 \bar no
1797 \noun off
1798 \color none
1799 すでに\SpecialChar LaTeX
1800 についてご存知であれば、ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう。もしご存じなければ、以下の説明で大まかな理解は得られるは
1801 ずです。詳しくは\SpecialChar LaTeX
1802 関連書籍をご参照ください。いずれにしても、以下で\SpecialChar LyX
1803 文書の\SpecialChar LaTeX
1804 プリアンブルで何ができるか、または何をする必要がないか説明をしますので、以下の各要点はお読
1805 みになった方が良いでしょう。
1806 \end_layout
1807
1808 \begin_layout Standard
1809
1810 \family roman
1811 \series medium
1812 \shape up
1813 \size normal
1814 \emph off
1815 \bar no
1816 \noun off
1817 \color none
1818 \SpecialChar LaTeX
1819 プリアンブルは、\SpecialChar LaTeX
1820 文書のいちばん始め、本文の
1821 \family default
1822 \series default
1823 \shape default
1824 \size default
1825 \emph on
1826 \bar default
1827 \noun default
1828 \color inherit
1829
1830 \family roman
1831 \series medium
1832 \shape up
1833 \size normal
1834 \emph off
1835 \bar no
1836 \noun off
1837 \color none
1838 の部分に来ます。ここでは以下のことを行います。
1839 \end_layout
1840
1841 \begin_layout Itemize
1842
1843 \family roman
1844 \series medium
1845 \shape up
1846 \size normal
1847 \emph off
1848 \bar no
1849 \noun off
1850 \color none
1851 文書クラス(ドキュメントクラス)の宣言。
1852 \begin_inset Newline newline
1853 \end_inset
1854
1855 これは\SpecialChar LyX
1856 がすでに行ってくれています。もしあなたが熟達した\SpecialChar LaTeX
1857 使いであり、自作の文書クラスを使いたい場合には、取扱説明書『
1858 \family default
1859 \series default
1860 \shape default
1861 \size default
1862 \emph on
1863 \bar default
1864 \noun default
1865 \color inherit
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 』をご覧になれば、\SpecialChar LyX
1876 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります。
1877 \end_layout
1878
1879 \begin_layout Itemize
1880
1881 \family roman
1882 \series medium
1883 \shape up
1884 \size normal
1885 \emph off
1886 \bar no
1887 \noun off
1888 \color none
1889 パッケージ使用の宣言。
1890 \begin_inset Newline newline
1891 \end_inset
1892
1893 \SpecialChar LaTeX
1894 パッケージは、パッケージがプリアンブルで宣言された場合のみ、文書中で利用可能となる、追加コマンド群を提供します。パッケージをインクルードすると、特別なコマンドが
1895 提供されることに加え、文書に変更を加えることができます。例えば
1896 \family typewriter
1897 \series default
1898 \shape default
1899 \size default
1900 \emph default
1901 \bar default
1902 \noun default
1903 \color inherit
1904
1905 \family roman
1906 \series medium
1907 \shape up
1908 \size normal
1909 \emph off
1910 \bar no
1911 \noun off
1912 \color none
1913
1914 \begin_inset Flex Code
1915 status collapsed
1916
1917 \begin_layout Plain Layout
1918
1919 \family typewriter
1920 indentfirst
1921 \end_layout
1922
1923 \end_inset
1924
1925 パッケージは、すべての段落の最初の行を字下げします。他にも、ラベルや宛名書き、余白設定等の様々なパッケージがあります。
1926 \end_layout
1927
1928 \begin_layout Itemize
1929
1930 \family roman
1931 \series medium
1932 \shape up
1933 \size normal
1934 \emph off
1935 \bar no
1936 \noun off
1937 \color none
1938 カウンタ・変数・長さ・幅の設定。
1939 \begin_inset Newline newline
1940 \end_inset
1941
1942 \SpecialChar LaTeX
1943 のカウンタと変数の中には、プリアンブルでグローバルに
1944 \family default
1945 \series default
1946 \shape default
1947 \size default
1948 \emph default
1949 \bar default
1950 \noun default
1951 \color inherit
1952 設定
1953 \emph on
1954 しないかぎり
1955 \family roman
1956 \series medium
1957 \shape up
1958 \size normal
1959 \emph off
1960 \bar no
1961 \noun off
1962 \color none
1963 、望んだ効果を持たないものがあります。(文書中で設定したり再設定したりすることのできる変数もあります。)余白は、プリアンブルで設定しなくてはならない変数の代表例
1964 です。他には、箇条書きに付けるラベル書式が挙げられます。じつは、この設定は文書中どこでもできるのですが、プリアンブルでいちどだけ設定するのが望ましい方法です。
1965 \end_layout
1966
1967 \begin_layout Itemize
1968
1969 \family roman
1970 \series medium
1971 \shape up
1972 \size normal
1973 \emph off
1974 \bar no
1975 \noun off
1976 \color none
1977 ユーザー定義コマンドの宣言(
1978 \begin_inset Flex Code
1979 status collapsed
1980
1981 \begin_layout Plain Layout
1982
1983 \family roman
1984 \series medium
1985 \shape up
1986 \size normal
1987 \emph off
1988 \bar no
1989 \noun off
1990 \color none
1991
1992 \backslash
1993 newcommand
1994 \end_layout
1995
1996 \end_inset
1997
1998 または
1999 \begin_inset Flex Code
2000 status collapsed
2001
2002 \begin_layout Plain Layout
2003
2004 \family roman
2005 \series medium
2006 \shape up
2007 \size normal
2008 \emph off
2009 \bar no
2010 \noun off
2011 \color none
2012
2013 \backslash
2014 renewcommand
2015 \end_layout
2016
2017 \end_inset
2018
2019 を使用)。
2020 \begin_inset Newline newline
2021 \end_inset
2022
2023 ユーザー定義コマンドは、文書中で頻出する\SpecialChar LaTeX
2024 コマンドの短縮形です。このようなコマンドを宣言するには、プリアンブルが適した場所ですが、どこで宣言することも
2025 \family default
2026 \series default
2027 \shape default
2028 \size default
2029 \emph on
2030 \bar default
2031 \noun default
2032 \color inherit
2033 可能
2034 \family roman
2035 \series medium
2036 \shape up
2037 \size normal
2038 \emph off
2039 \bar no
2040 \noun off
2041 \color none
2042 です(もちろんコマンドが初めて使用される場所よりも前です)。あまりないことではありますが、お使いの文書中に生の\SpecialChar LaTeX
2043 コードがあふれている場合には便利でしょう。
2044 \end_layout
2045
2046 \begin_layout Standard
2047
2048 \family roman
2049 \series medium
2050 \shape up
2051 \size normal
2052 \emph off
2053 \bar no
2054 \noun off
2055 \color none
2056 \SpecialChar LyX
2057 は、その生成する
2058 \begin_inset Flex Code
2059 status collapsed
2060
2061 \begin_layout Plain Layout
2062
2063 \family roman
2064 \series medium
2065 \shape up
2066 \size normal
2067 \emph off
2068 \bar no
2069 \noun off
2070 \color none
2071 .tex
2072 \end_layout
2073
2074 \end_inset
2075
2076 ファイルのプリアンブルに、それ自身の定義を追加します。これによって、\SpecialChar LyX
2077 の生成する\SpecialChar LaTeX
2078 ファイルの可搬性を高めています。
2079 \end_layout
2080
2081 \begin_layout Subsection
2082 プリアンブルの変更
2083 \end_layout
2084
2085 \begin_layout Standard
2086
2087 \family roman
2088 \series medium
2089 \shape up
2090 \size normal
2091 \emph off
2092 \bar no
2093 \noun off
2094 \color none
2095 \SpecialChar LyX
2096 が\SpecialChar LaTeX
2097 ファイルのプリアンブルに追加するコマンドは、つねに同じです。これは、\SpecialChar LyX
2098 自体にパッチを当てないかぎり変更できないようになっています。しかしながら、
2099 \begin_inset Flex MenuItem
2100 status collapsed
2101
2102 \begin_layout Plain Layout
2103
2104 \family roman
2105 \series medium
2106 \shape up
2107 \size normal
2108 \emph off
2109 \bar no
2110 \noun off
2111 \color none
2112 文書\SpecialChar menuseparator
2113 設定
2114 \end_layout
2115
2116 \end_inset
2117
2118 ダイアログの
2119 \begin_inset Flex MenuItem
2120 status collapsed
2121
2122 \begin_layout Plain Layout
2123
2124 \family roman
2125 \series medium
2126 \shape up
2127 \size normal
2128 \emph off
2129 \bar no
2130 \noun off
2131 \color none
2132 \SpecialChar LaTeX
2133 プリアンブル
2134 \end_layout
2135
2136 \end_inset
2137
2138 の項から、プリアンブルに追加をすることはできます。\SpecialChar LyX
2139 は、
2140 \family sans
2141 \series default
2142 \shape default
2143 \size default
2144 \emph default
2145 \bar default
2146 \noun default
2147 \color inherit
2148
2149 \begin_inset Flex MenuItem
2150 status collapsed
2151
2152 \begin_layout Plain Layout
2153
2154 \family sans
2155 プリアンブル
2156 \end_layout
2157
2158 \end_inset
2159
2160
2161 \family roman
2162 \series medium
2163 \shape up
2164 \size normal
2165 \emph off
2166 \bar no
2167 \noun off
2168 \color none
2169 ダイアログ内のすべてのものを、\SpecialChar LyX
2170 埋込みのプリアンブルに付け加えます。ご自身の宣言をプリアンブルに追加する前に、あなたがしようとしていることを\SpecialChar LyX
2171 がすでにサポートしてい
2172 ないかどうか確認してください(車輪の再発明をしないように、とはすでに申しあげたことです)。
2173 \family default
2174 \series default
2175 \shape default
2176 \size default
2177 \emph default
2178 \bar default
2179 \noun default
2180 \color inherit
2181 また、
2182 \emph on
2183 プリアンブルコードが正しいことを確認してください。
2184 \emph default
2185 \SpecialChar LyX
2186 は、プリアンブルをチェックしません。
2187 \family roman
2188 \series medium
2189 \shape up
2190 \size normal
2191 \emph off
2192 \bar no
2193 \noun off
2194 \color none
2195 もしエラーがあれば、「
2196 \begin_inset Flex Code
2197 status collapsed
2198
2199 \begin_layout Plain Layout
2200
2201 \family roman
2202 \series medium
2203 \shape up
2204 \size normal
2205 \emph off
2206 \bar no
2207 \noun off
2208 \color none
2209 Missing 
2210 \backslash
2211 begin{document}
2212 \end_layout
2213
2214 \end_inset
2215
2216 」といったエラーが出ることでしょう。このようなエラーが出たときは、プリアンブルを再確認してください。
2217 \end_layout
2218
2219 \begin_layout Subsection
2220
2221 \end_layout
2222
2223 \begin_layout Standard
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 以下は、プリアンブルに追加できるものとその効果を示す例です。
2234 \end_layout
2235
2236 \begin_layout Subsubsection
2237 例1:オフセット
2238 \end_layout
2239
2240 \begin_layout Standard
2241
2242 \family roman
2243 \series medium
2244 \shape up
2245 \size normal
2246 \emph off
2247 \bar no
2248 \noun off
2249 \color none
2250 \SpecialChar LaTeX
2251 には
2252 \family default
2253 \series default
2254 \shape default
2255 \size default
2256 \emph default
2257 \bar default
2258 \noun default
2259 \color inherit
2260
2261 \family roman
2262 \series medium
2263 \shape up
2264 \size normal
2265 \emph off
2266 \bar no
2267 \noun off
2268 \color none
2269
2270 \begin_inset Flex Code
2271 status collapsed
2272
2273 \begin_layout Plain Layout
2274
2275 \family typewriter
2276
2277 \backslash
2278 hoffset
2279 \end_layout
2280
2281 \end_inset
2282
2283
2284 \family typewriter
2285 \series default
2286 \shape default
2287 \size default
2288 \emph default
2289 \bar default
2290 \noun default
2291 \color inherit
2292
2293 \begin_inset Flex Code
2294 status collapsed
2295
2296 \begin_layout Plain Layout
2297
2298 \family typewriter
2299
2300 \backslash
2301 voffset
2302 \end_layout
2303
2304 \end_inset
2305
2306
2307 \family roman
2308 \series medium
2309 \shape up
2310 \size normal
2311 \emph off
2312 \bar no
2313 \noun off
2314 \color none
2315 というページ位置を制御する2つの変数があります。その機能は名前から明らかなとおりです。これらの変数は、ラベルを印刷するときなどに便利です。往々にして、印刷用紙の
2316 寸法とそのうち実際に印字可能な範囲は同じではありません。ここに
2317 \begin_inset Flex Code
2318 status collapsed
2319
2320 \begin_layout Plain Layout
2321
2322 \family typewriter
2323
2324 \backslash
2325 hoffset
2326 \end_layout
2327
2328 \end_inset
2329
2330
2331 \family typewriter
2332 \series default
2333 \shape default
2334 \size default
2335 \emph default
2336 \bar default
2337 \noun default
2338 \color inherit
2339
2340 \begin_inset Flex Code
2341 status collapsed
2342
2343 \begin_layout Plain Layout
2344
2345 \family typewriter
2346
2347 \backslash
2348 voffset
2349 \end_layout
2350
2351 \end_inset
2352
2353
2354 \family default
2355 が役立つわけです。
2356 \end_layout
2357
2358 \begin_layout Standard
2359
2360 \family roman
2361 \series medium
2362 \shape up
2363 \size normal
2364 \emph off
2365 \bar no
2366 \noun off
2367 \color none
2368 \begin_inset Flex Code
2369 status collapsed
2370
2371 \begin_layout Plain Layout
2372
2373 \family typewriter
2374
2375 \backslash
2376 hoffset
2377 \end_layout
2378
2379 \end_inset
2380
2381
2382 \family typewriter
2383 \series default
2384 \shape default
2385 \size default
2386 \emph default
2387 \bar default
2388 \noun default
2389 \color inherit
2390
2391 \begin_inset Flex Code
2392 status collapsed
2393
2394 \begin_layout Plain Layout
2395
2396 \family typewriter
2397
2398 \backslash
2399 voffset
2400 \end_layout
2401
2402 \end_inset
2403
2404
2405 \family roman
2406 \series medium
2407 \shape up
2408 \size normal
2409 \emph off
2410 \bar no
2411 \noun off
2412 \color none
2413 の既定値はともに0ポイント、つまりページをシフトしません。残念ながら、DVIドライバによってはつねにページをシフトすることがあるようです。我々には、どうしてその
2414 ようなことをするのか、そしてシスアドがどうしてそれを修正しないのか理解できませんが、もし個人的に管理できないシステムで\SpecialChar LyX
2415 を使用していて、シスアドがお馬鹿さんである
2416 場合には、
2417 \begin_inset Flex Code
2418 status collapsed
2419
2420 \begin_layout Plain Layout
2421
2422 \family typewriter
2423
2424 \backslash
2425 hoffset
2426 \end_layout
2427
2428 \end_inset
2429
2430
2431 \family typewriter
2432 \series default
2433 \shape default
2434 \size default
2435 \emph default
2436 \bar default
2437 \noun default
2438 \color inherit
2439
2440 \begin_inset Flex Code
2441 status collapsed
2442
2443 \begin_layout Plain Layout
2444
2445 \family typewriter
2446
2447 \backslash
2448 voffset
2449 \end_layout
2450
2451 \end_inset
2452
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 が役に立ちます。かりに、上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう。その場合は、以下をプリアンブルに追加するとよいでしょう。
2463 \end_layout
2464
2465 \begin_layout LyX-Code
2466
2467 \backslash
2468 setlength{
2469 \backslash
2470 hoffset}{-0.5 in}
2471 \end_layout
2472
2473 \begin_layout LyX-Code
2474
2475 \backslash
2476 setlength{
2477 \backslash
2478 voffset}{-0.5 in}
2479 \end_layout
2480
2481 \begin_layout Standard
2482
2483 \family roman
2484 \series medium
2485 \shape up
2486 \size normal
2487 \emph off
2488 \bar no
2489 \noun off
2490 \color none
2491 これで余白が修正されます。
2492 \end_layout
2493
2494 \begin_layout Subsubsection
2495 例2:ラベル
2496 \end_layout
2497
2498 \begin_layout Standard
2499
2500 \family roman
2501 \series medium
2502 \shape up
2503 \size normal
2504 \emph off
2505 \bar no
2506 \noun off
2507 \color none
2508 いま、たくさんの宛名ラベルを印刷をしたいものとしましょう。ラベルシートを印刷するために便利な
2509 \begin_inset Flex Code
2510 status collapsed
2511
2512 \begin_layout Plain Layout
2513
2514 \family typewriter
2515 labels.sty
2516 \end_layout
2517
2518 \end_inset
2519
2520 という\SpecialChar LaTeX
2521 パッケージが、お近くのCTANアーカイブで入手可能です。お使いのシステムには、既定ではこのパッケージは導入されていないかもしれません。ご自身でお確かめくだ
2522 さい。また、このパッケージの取扱説明書を読まれたいかもしれませんが、それもご自身にお任せします。これは使用例ですので、このパッケージをどう使うかの例だけお見せす
2523 ることにします。
2524 \end_layout
2525
2526 \begin_layout Standard
2527
2528 \family roman
2529 \series medium
2530 \shape up
2531 \size normal
2532 \emph off
2533 \bar no
2534 \noun off
2535 \color none
2536 まず、
2537 \begin_inset Flex Code
2538 status collapsed
2539
2540 \begin_layout Plain Layout
2541
2542 \family sans
2543 article
2544 \end_layout
2545
2546 \end_inset
2547
2548 文書クラスを使用していることをご確認ください。次に、以下のような設定をプリアンブルに追加しなければなりません。
2549 \end_layout
2550
2551 \begin_layout LyX-Code
2552
2553 \backslash
2554 usepackage{labels}
2555 \end_layout
2556
2557 \begin_layout LyX-Code
2558
2559 \backslash
2560 LabelCols=3
2561 \end_layout
2562
2563 \begin_layout LyX-Code
2564
2565 \backslash
2566 LabelRows=7
2567 \end_layout
2568
2569 \begin_layout LyX-Code
2570
2571 \backslash
2572 LeftBorder=8mm
2573 \end_layout
2574
2575 \begin_layout LyX-Code
2576
2577 \backslash
2578 RightBorder=8mm
2579 \end_layout
2580
2581 \begin_layout LyX-Code
2582
2583 \backslash
2584 TopBorder=9mm
2585 \end_layout
2586
2587 \begin_layout LyX-Code
2588
2589 \backslash
2590 BottomBorder=2mm
2591 \end_layout
2592
2593 \begin_layout Standard
2594
2595 \family roman
2596 \series medium
2597 \shape up
2598 \size normal
2599 \emph off
2600 \bar no
2601 \noun off
2602 \color none
2603 これは
2604 \family default
2605 \series default
2606 \shape default
2607 \size default
2608 \emph default
2609 \bar default
2610 \noun default
2611 \color inherit
2612 Avery®ラベルシートのストック5360
2613 \family roman
2614 \series medium
2615 \shape up
2616 \size normal
2617 \emph off
2618 \bar no
2619 \noun off
2620 \color none
2621 番を使用する場合の設定です。これで、各宛名を
2622 \begin_inset Flex Code
2623 status collapsed
2624
2625 \begin_layout Plain Layout
2626
2627 \family typewriter
2628
2629 \backslash
2630 begin{labels}
2631 \end_layout
2632
2633 \end_inset
2634
2635
2636 \family typewriter
2637 \series default
2638 \shape default
2639 \size default
2640 \emph default
2641 \bar default
2642 \noun default
2643 \color inherit
2644
2645 \begin_inset Flex Code
2646 status collapsed
2647
2648 \begin_layout Plain Layout
2649
2650 \family typewriter
2651
2652 \backslash
2653 end{labels}
2654 \end_layout
2655
2656 \end_inset
2657
2658
2659 \family roman
2660 \series medium
2661 \shape up
2662 \size normal
2663 \emph off
2664 \bar no
2665 \noun off
2666 \color none
2667 で囲めば、宛名ラベルの印刷をすることができます。本機能およびその他の機能に関しては、
2668 \begin_inset Flex Code
2669 status collapsed
2670
2671 \begin_layout Plain Layout
2672
2673 \family typewriter
2674 labels.sty
2675 \end_layout
2676
2677 \end_inset
2678
2679 の取扱説明書に説明されています。
2680 \end_layout
2681
2682 \begin_layout Standard
2683
2684 \family roman
2685 \series medium
2686 \shape up
2687 \size normal
2688 \emph off
2689 \bar no
2690 \noun off
2691 \color none
2692 そのうち誰かが、このパッケージを直接サポートする\SpecialChar LyX
2693 レイアウトファイルを作ってくれるかもしれません。その誰かはあなたかもしれません。
2694 \end_layout
2695
2696 \begin_layout Subsubsection
2697 例3: 段落の字下げ
2698 \end_layout
2699
2700 \begin_layout Standard
2701
2702 \family roman
2703 \series medium
2704 \shape up
2705 \size normal
2706 \emph off
2707 \bar no
2708 \noun off
2709 \color none
2710 アメリカ人は
2711 \family default
2712 \series default
2713 \shape default
2714 \size default
2715 \emph default
2716 \bar default
2717 \noun default
2718 \color inherit
2719
2720 \emph on
2721 すべての
2722 \family roman
2723 \series medium
2724 \shape up
2725 \size normal
2726 \emph off
2727 \bar no
2728 \noun off
2729 \color none
2730 段落の最初の行を字下げするように教育されています。そのために彼らの他の変な習慣と同じく、いつものようにすべての段落の最初の行を下げるまで、アメリカ人はごちゃごち
2731 ゃと文句を言いつづけるのです
2732 \family default
2733 \series default
2734 \shape default
2735 \size default
2736 \emph default
2737 \bar default
2738 \noun default
2739 \color inherit
2740 。(これはユーモアです。(ほんと?)
2741 \emph on
2742 ユーモアですってば
2743 \emph default
2744 。)
2745 \end_layout
2746
2747 \begin_layout Standard
2748
2749 \family roman
2750 \series medium
2751 \shape up
2752 \size normal
2753 \emph off
2754 \bar no
2755 \noun off
2756 \color none
2757 もちろん、これは標準的な組版ルールではありません。書籍では、典型的には、他の段落のあとにくる段落
2758 \family default
2759 \series default
2760 \shape default
2761 \size default
2762 \emph on
2763 \bar default
2764 \noun default
2765 \color inherit
2766 のみ
2767 \family roman
2768 \series medium
2769 \shape up
2770 \size normal
2771 \emph off
2772 \bar no
2773 \noun off
2774 \color none
2775 字下げを行ないます。一行めを字下げをするそもそもの目的は、隣接する段落から区別するためです。したがって、図のあとや節の最初の段落など、先行する段落がない場合には
2776 、字下げをする必要はないのです。
2777 \end_layout
2778
2779 \begin_layout Standard
2780
2781 \family roman
2782 \series medium
2783 \shape up
2784 \size normal
2785 \emph off
2786 \bar no
2787 \noun off
2788 \color none
2789 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!)、そのような小難しいことはかまわずに、いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2790 ルに次の行を加えて下さい。
2791 \end_layout
2792
2793 \begin_layout LyX-Code
2794
2795 \backslash
2796 usepackage{indentfirst}
2797 \end_layout
2798
2799 \begin_layout Standard
2800
2801 \family roman
2802 \series medium
2803 \shape up
2804 \size normal
2805 \emph off
2806 \bar no
2807 \noun off
2808 \color none
2809 もしお使いの\SpecialChar TeX
2810 頒布版が脳死状態でなければ、このパッケージが入っているはずなので、建国の父たちが意図したように、すべての段落が字下げされます。
2811 \end_layout
2812
2813 \begin_layout Subsubsection
2814 例4:この文書
2815 \end_layout
2816
2817 \begin_layout Standard
2818
2819 \family roman
2820 \series medium
2821 \shape up
2822 \size normal
2823 \emph off
2824 \bar no
2825 \noun off
2826 \color none
2827 この文書のプリアンブルを見てみると、どのような高度な設定ができるか、おおまかな理解が得られるでしょう。また第
2828 \family default
2829 \series default
2830 \shape default
2831 \size default
2832 \emph default
2833 \bar default
2834 \noun default
2835 \color inherit
2836
2837 \begin_inset CommandInset ref
2838 LatexCommand ref
2839 reference "chap:Special-features"
2840
2841 \end_inset
2842
2843
2844 \family roman
2845 \series medium
2846 \shape up
2847 \size normal
2848 \emph off
2849 \bar no
2850 \noun off
2851 \color none
2852 章には、他の例や、\SpecialChar LaTeX
2853 の各種の「汚い技」があります。
2854 \end_layout
2855
2856 \begin_layout Section
2857 \SpecialChar LyX
2858 および\SpecialChar LaTeX
2859 のエラー
2860 \end_layout
2861
2862 \begin_layout Standard
2863
2864 \family roman
2865 \series medium
2866 \shape up
2867 \size normal
2868 \emph off
2869 \bar no
2870 \noun off
2871 \color none
2872 \SpecialChar LyX
2873 が\SpecialChar LaTeX
2874 を呼び出す際、\SpecialChar LyX
2875 は\SpecialChar LaTeX
2876 に、かりにエラーがあったとしても楽観的に無視して先に進むように指示します。その後\SpecialChar LyX
2877 は、\SpecialChar LaTeX
2878 の実行ログファイルを事後処理用に使います。ログファイルを分
2879 析したのち、\SpecialChar LyX
2880 はエラーを一覧表示するダイアログを表示します。エラーのうちどれかをクリックすると、\SpecialChar LyX
2881 ファイル中、そのエラーの発生した場所に表示を移動します
2882 \begin_inset Foot
2883 status collapsed
2884
2885 \begin_layout Plain Layout
2886
2887 \family roman
2888 \series medium
2889 \shape up
2890 \size normal
2891 \emph off
2892 \bar no
2893 \noun off
2894 \color none
2895 正確にいうと、通常は、です。ログファイルの分析は難しい仕事ですので、\SpecialChar LyX
2896 はつねに正しい行に連れて行ってくれるとは限りません。ときには、\SpecialChar LaTeX
2897 がある行にエラーがあると報告し
2898 たとしても、実際のエラーはそれよりも前であることもあります。これは、プログラムで閉じ括弧を忘れたときに似ていなくもありません。エラーは表示されますが、実際にエラ
2899 ーのある場所よりも後ろでエラーが報告されるのです。
2900 \end_layout
2901
2902 \end_inset
2903
2904
2905 \family default
2906 \series default
2907 \shape default
2908 \size default
2909 \emph default
2910 \bar default
2911 \noun default
2912 \color inherit
2913
2914 \end_layout
2915
2916 \begin_layout Standard
2917
2918 \family roman
2919 \series medium
2920 \shape up
2921 \size normal
2922 \emph off
2923 \bar no
2924 \noun off
2925 \color none
2926 人によっては、ログファイルを直接ご覧になりたいかもしれません。これは、
2927 \begin_inset Flex MenuItem
2928 status collapsed
2929
2930 \begin_layout Plain Layout
2931
2932 \family roman
2933 \series medium
2934 \shape up
2935 \size normal
2936 \emph off
2937 \bar no
2938 \noun off
2939 \color none
2940 文書\SpecialChar menuseparator
2941 \SpecialChar LaTeX
2942 ログ
2943 \end_layout
2944
2945 \end_inset
2946
2947 で見ることができます。エラーメッセージや警告には、よく見かけるものがいくつかありますので、それらをここに収録しておきます。ここにないエラーや警告に関しては、La\SpecialChar TeX
2948
2949 関連の良書を参照してください。
2950 \end_layout
2951
2952 \begin_layout Itemize
2953
2954 \family typewriter
2955 \begin_inset Flex Code
2956 status collapsed
2957
2958 \begin_layout Plain Layout
2959
2960 \family typewriter
2961 LaTe
2962 \begin_inset ERT
2963 status collapsed
2964
2965 \begin_layout Plain Layout
2966
2967 {}
2968 \end_layout
2969
2970 \end_inset
2971
2972 X Warning
2973 \end_layout
2974
2975 \end_inset
2976
2977
2978 \family roman
2979 \series medium
2980 \shape up
2981 \size normal
2982 \emph off
2983 \bar no
2984 \noun off
2985 \color none
2986
2987 \begin_inset Newline newline
2988 \end_inset
2989
2990 これで始まるメッセージは、\SpecialChar LaTeX
2991 コード自体を「デバッグ」するための警告メッセージです。相互参照や書誌情報を追加したり変更した場合に、もう一度\SpecialChar LaTeX
2992 を実行する必要があることを
2993 知らせるために、このようなメッセージが表示されます。このメッセージは、だいたいにおいて無視しても大丈夫です。
2994 \end_layout
2995
2996 \begin_layout Itemize
2997
2998 \family typewriter
2999 \begin_inset Flex Code
3000 status collapsed
3001
3002 \begin_layout Plain Layout
3003
3004 \family typewriter
3005 LaTe
3006 \begin_inset ERT
3007 status collapsed
3008
3009 \begin_layout Plain Layout
3010
3011 {}
3012 \end_layout
3013
3014 \end_inset
3015
3016 X Font Warning
3017 \end_layout
3018
3019 \end_inset
3020
3021
3022 \family roman
3023 \series medium
3024 \shape up
3025 \size normal
3026 \emph off
3027 \bar no
3028 \noun off
3029 \color none
3030
3031 \begin_inset Newline newline
3032 \end_inset
3033
3034 \SpecialChar LaTeX
3035 がフォントを見つけられなかったと言う警告メッセージです。多くの場合、このメッセージの後に、\SpecialChar LaTeX
3036 が使用した代替フォントに関する情報が続きます。これも無視して構いません
3037
3038 \end_layout
3039
3040 \begin_layout Itemize
3041
3042 \family roman
3043 \series medium
3044 \shape up
3045 \size normal
3046 \emph off
3047 \bar no
3048 \noun off
3049 \color none
3050 \begin_inset Flex Code
3051 status collapsed
3052
3053 \begin_layout Plain Layout
3054
3055 \family typewriter
3056 Overfull 
3057 \backslash
3058 hbox
3059 \end_layout
3060
3061 \end_inset
3062
3063
3064 \begin_inset Newline newline
3065 \end_inset
3066
3067 \SpecialChar LaTeX
3068 は、
3069 \family default
3070 \series default
3071 \shape default
3072 \size default
3073 \emph on
3074 \bar default
3075 \noun default
3076 \color inherit
3077 ほぼどんなときでも
3078 \family roman
3079 \series medium
3080 \shape up
3081 \size normal
3082 \emph off
3083 \bar no
3084 \noun off
3085 \color none
3086 この警告を吐き出します。これは、一行が長すぎて右余白にはみ出してしまったという警告ですが、ほとんどの場合、最終出力を見ても判別できないくらい(せいぜい1ポイント
3087 か2ポイント)です。あるいは1文字か2文字右余白に出ているくらいです。\SpecialChar LaTeX
3088 は、どんな文書を書いても、少なくとも一つはこのメッセージを出すようです。
3089 \begin_inset Newline newline
3090 \end_inset
3091
3092 このメッセージは無視しても大丈夫です。何か行が長すぎるような問題があれば、目で見ればわかります。出力を目で確認してください
3093 \begin_inset Foot
3094 status collapsed
3095
3096 \begin_layout Plain Layout
3097 あるいは、
3098 \begin_inset Flex MenuItem
3099 status collapsed
3100
3101 \begin_layout Plain Layout
3102 文書\SpecialChar menuseparator
3103 設定
3104 \end_layout
3105
3106 \end_inset
3107
3108 で「draft」オプションを指定する方法もあります。こうすると、\SpecialChar LaTeX
3109 は、overfullの発生した行の余白に黒い四角を描画します。
3110 \end_layout
3111
3112 \end_inset
3113
3114
3115 \end_layout
3116
3117 \begin_layout Itemize
3118
3119 \family typewriter
3120 \begin_inset Flex Code
3121 status collapsed
3122
3123 \begin_layout Plain Layout
3124
3125 \family typewriter
3126 Underfull 
3127 \backslash
3128 hbox
3129 \end_layout
3130
3131 \end_inset
3132
3133
3134 \begin_inset Newline newline
3135 \end_inset
3136
3137
3138 \family roman
3139 \series medium
3140 \shape up
3141 \size normal
3142 \emph off
3143 \bar no
3144 \noun off
3145 \color none
3146 これは上の警告と違ってあまり出てきません。なぜだかは分かりませんが、\SpecialChar LaTeX
3147 は1行を短めにする印字するよりは、長めにする方が好きなようです。
3148 \end_layout
3149
3150 \begin_layout Itemize
3151 \begin_inset Flex Code
3152 status collapsed
3153
3154 \begin_layout Plain Layout
3155
3156 \family typewriter
3157 Overfull 
3158 \backslash
3159 vbox
3160 \end_layout
3161
3162 \end_inset
3163
3164
3165 \family typewriter
3166
3167 \begin_inset Flex Code
3168 status collapsed
3169
3170 \begin_layout Plain Layout
3171
3172 \family typewriter
3173 Underfull 
3174 \backslash
3175 vbox
3176 \end_layout
3177
3178 \end_inset
3179
3180
3181 \family default
3182
3183 \begin_inset Newline newline
3184 \end_inset
3185
3186
3187 \family roman
3188 \series medium
3189 \shape up
3190 \size normal
3191 \emph off
3192 \bar no
3193 \noun off
3194 \color none
3195 ページ区切りに問題があったという警告です。この場合も、出力を目で確認してください。何か問題があれば、見てすぐわかります。
3196 \end_layout
3197
3198 \begin_layout Itemize
3199
3200 \family typewriter
3201 \begin_inset Flex Code
3202 status collapsed
3203
3204 \begin_layout Plain Layout
3205
3206 \family typewriter
3207 LaTe
3208 \begin_inset ERT
3209 status collapsed
3210
3211 \begin_layout Plain Layout
3212
3213 {}
3214 \end_layout
3215
3216 \end_inset
3217
3218 X Error: File 
3219 \begin_inset Quotes els
3220 \end_inset
3221
3222 Xxxx
3223 \begin_inset Quotes ers
3224 \end_inset
3225
3226  not found
3227 \end_layout
3228
3229 \end_inset
3230
3231
3232 \family roman
3233 \series medium
3234 \shape up
3235 \size normal
3236 \emph off
3237 \bar no
3238 \noun off
3239 \color none
3240
3241 \begin_inset Newline newline
3242 \end_inset
3243
3244 ファイル「Xxxx」が、システムに導入されていません。これは通常、文書が必要としている\SpecialChar LaTeX
3245 パッケージに、導入済でないものがある場合に現れます。プリアンブルに変更を加
3246 えておらず、
3247 \begin_inset Flex Code
3248 status collapsed
3249
3250 \begin_layout Plain Layout
3251
3252 \family typewriter
3253
3254 \backslash
3255 usepackage{}
3256 \end_layout
3257
3258 \end_inset
3259
3260 コマンドも使用していないとすれば、\SpecialChar LyX
3261 が読み込もうしているパッケージに存在しないものがあるということです。
3262 \family default
3263 \series default
3264 \shape default
3265 \size default
3266 \emph default
3267 \bar default
3268 \noun default
3269 \color inherit
3270
3271 \begin_inset Flex MenuItem
3272 status collapsed
3273
3274 \begin_layout Plain Layout
3275 ヘルプ\SpecialChar menuseparator
3276 \SpecialChar LaTeX
3277 の設定
3278 \end_layout
3279
3280 \end_inset
3281
3282
3283 \family roman
3284 \series medium
3285 \shape up
3286 \size normal
3287 \emph off
3288 \bar no
3289 \noun off
3290 \color none
3291 を使用して、\SpecialChar LyX
3292 が認識しているパッケージの一覧を得てください。このファイルは、(
3293 \begin_inset Flex MenuItem
3294 status collapsed
3295
3296 \begin_layout Plain Layout
3297
3298 \family roman
3299 \series medium
3300 \shape up
3301 \size normal
3302 \emph off
3303 \bar no
3304 \noun off
3305 \color none
3306 ツール\SpecialChar menuseparator
3307 再設定
3308 \end_layout
3309
3310 \end_inset
3311
3312 を使用して)\SpecialChar LyX
3313 の再設定を行うたびに更新され、どのパッケージが検出されたか、それらのパッケージが何をするものかを表示します。
3314 \begin_inset Newline newline
3315 \end_inset
3316
3317
3318 \family sans
3319 \series default
3320 \shape default
3321 \size default
3322 \emph default
3323 \bar default
3324 \noun default
3325 \color inherit
3326
3327 \begin_inset Flex Code
3328 status collapsed
3329
3330 \begin_layout Plain Layout
3331
3332 \family sans
3333
3334 \backslash
3335 usepackage{}
3336 \end_layout
3337
3338 \end_inset
3339
3340
3341 \family roman
3342 \series medium
3343 \shape up
3344 \size normal
3345 \emph off
3346 \bar no
3347 \noun off
3348 \color none
3349 コマンドを使っていて、肝心のパッケージが導入されていない場合には、ご自身で導入する必要があります。
3350 \end_layout
3351
3352 \begin_layout Itemize
3353
3354 \family typewriter
3355 \begin_inset Flex Code
3356 status collapsed
3357
3358 \begin_layout Plain Layout
3359
3360 \family typewriter
3361 LaTe
3362 \begin_inset ERT
3363 status collapsed
3364
3365 \begin_layout Plain Layout
3366
3367 {}
3368 \end_layout
3369
3370 \end_inset
3371
3372 X Error: Unknown option
3373 \end_layout
3374
3375 \end_inset
3376
3377
3378 \family roman
3379 \series medium
3380 \shape up
3381 \size normal
3382 \emph off
3383 \bar no
3384 \noun off
3385 \color none
3386
3387 \begin_inset Newline newline
3388 \end_inset
3389
3390 このように始まるエラーメッセージは、パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです。パッケージの取扱説明書をご確認くだ
3391 さい。
3392 \end_layout
3393
3394 \begin_layout Itemize
3395
3396 \family typewriter
3397 \begin_inset Flex Code
3398 status collapsed
3399
3400 \begin_layout Plain Layout
3401
3402 \family typewriter
3403 Undefined control sequence
3404 \end_layout
3405
3406 \end_inset
3407
3408
3409 \family roman
3410 \series medium
3411 \shape up
3412 \size normal
3413 \emph off
3414 \bar no
3415 \noun off
3416 \color none
3417
3418 \begin_inset Newline newline
3419 \end_inset
3420
3421 お使いの文書に\SpecialChar LaTeX
3422 コードを挿入した際、打ち間違いをしてしまうと、このようなメッセージが表示されます。あるいは、パッケージを読み込ませるのを忘れたのかもしれません。い
3423 ずれにしても、このメッセージは、あなたが未定義のコマンドを使用したことを示しています。
3424 \end_layout
3425
3426 \begin_layout Standard
3427
3428 \family roman
3429 \series medium
3430 \shape up
3431 \size normal
3432 \emph off
3433 \bar no
3434 \noun off
3435 \color none
3436 これ以外にも、エラーメッセージや警告メッセージがあります。一般に、読んで意味がすぐにわかるものは、\SpecialChar LaTeX
3437 のメッセージです。何を言っているのかさっぱりわからないものもあ
3438 りますが、通常これらは、\SpecialChar TeX
3439 のメッセージであり、それが何を意味しているのか、どのように解読すればいいのか、
3440 \family default
3441 \series default
3442 \shape default
3443 \size default
3444 \emph on
3445 \bar default
3446 \noun default
3447 \color inherit
3448 まったく
3449 \family roman
3450 \series medium
3451 \shape up
3452 \size normal
3453 \emph off
3454 \bar no
3455 \noun off
3456 \color none
3457 手がかりがありません。誰もわからないのです。
3458 \end_layout
3459
3460 \begin_layout Standard
3461
3462 \family roman
3463 \series medium
3464 \shape up
3465 \size normal
3466 \emph off
3467 \bar no
3468 \noun off
3469 \color none
3470 エラーメッセージが表示された場合は、つねに以下のチェックリストにしたがった方がよいでしょう。
3471 \end_layout
3472
3473 \begin_layout Enumerate
3474
3475 \family roman
3476 \series medium
3477 \shape up
3478 \size normal
3479 \emph off
3480 \bar no
3481 \noun off
3482 \color none
3483 ご自分で挿入した\SpecialChar LaTeX
3484 コードに打ち間違いがないかどうか確かめる。
3485 \end_layout
3486
3487 \begin_layout Enumerate
3488
3489 \family roman
3490 \series medium
3491 \shape up
3492 \size normal
3493 \emph off
3494 \bar no
3495 \noun off
3496 \color none
3497 打ち間違いがなければ、コマンドを正しく使ったかどうか確かめる。
3498 \end_layout
3499
3500 \begin_layout Enumerate
3501
3502 \family roman
3503 \series medium
3504 \shape up
3505 \size normal
3506 \emph off
3507 \bar no
3508 \noun off
3509 \color none
3510 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3511 \begin_inset Flex Code
3512 status collapsed
3513
3514 \begin_layout Plain Layout
3515
3516 \family roman
3517 \series medium
3518 \shape up
3519 \size normal
3520 \emph off
3521 \bar no
3522 \noun off
3523 \color none
3524 Missing 
3525 \backslash
3526 begin{document}
3527 \end_layout
3528
3529 \end_inset
3530
3531 が表示されているならば—、プリアンブルにエラーがあることを意味します。プリアンブルのデバックを行ってください。
3532 \end_layout
3533
3534 \begin_layout Enumerate
3535
3536 \family roman
3537 \series medium
3538 \shape up
3539 \size normal
3540 \emph off
3541 \bar no
3542 \noun off
3543 \color none
3544 プリアンブルに何も追加せず、文書に\SpecialChar LaTeX
3545 コードをまったく挿入しなかった場合には、\SpecialChar LaTeX
3546 頒布版自体をまず疑ってください。導入されていないパッケージを探しだして、導入してくださ
3547 い。
3548 \end_layout
3549
3550 \begin_layout Enumerate
3551
3552 \family roman
3553 \series medium
3554 \shape up
3555 \size normal
3556 \emph off
3557 \bar no
3558 \noun off
3559 \color none
3560 導入されていないパッケージはなかったものとしましょう。\SpecialChar LyX
3561 を微調整するオプションを使用していますか。特に、手動で
3562 \begin_inset Flex Code
3563 status collapsed
3564
3565 \begin_layout Plain Layout
3566
3567 \family sans
3568 Protected
3569 \begin_inset space ~
3570 \end_inset
3571
3572 Blank
3573 \end_layout
3574
3575 \end_inset
3576
3577
3578 \begin_inset Flex Code
3579 status collapsed
3580
3581 \begin_layout Plain Layout
3582
3583 \family sans
3584 Linebreak
3585 \end_layout
3586
3587 \end_inset
3588
3589
3590 \family sans
3591 \series default
3592 \shape default
3593 \size default
3594 \emph default
3595 \bar default
3596 \noun default
3597 \color inherit
3598
3599 \begin_inset Flex Code
3600 status collapsed
3601
3602 \begin_layout Plain Layout
3603
3604 \family sans
3605 Pagebreak
3606 \end_layout
3607
3608 \end_inset
3609
3610
3611 \family roman
3612 \series medium
3613 \shape up
3614 \size normal
3615 \emph off
3616 \bar no
3617 \noun off
3618 \color none
3619 などをたくさん挿入するなど、微調整オプションを
3620 \family default
3621 \series default
3622 \shape default
3623 \size default
3624 \emph on
3625 \bar default
3626 \noun default
3627 \color inherit
3628 悪用
3629 \family roman
3630 \series medium
3631 \shape up
3632 \size normal
3633 \emph off
3634 \bar no
3635 \noun off
3636 \color none
3637 していませんか。適切な段落環境を使用する代わりに、これらを使用してその場をしのごうとしていませんか。
3638 \end_layout
3639
3640 \begin_layout Enumerate
3641
3642 \family roman
3643 \series medium
3644 \shape up
3645 \size normal
3646 \emph off
3647 \bar no
3648 \noun off
3649 \color none
3650 微調整オプションはまったく使用しておらず、規則に乗っ取って作業していたものとしましょう。何か曲芸のようなことをしようとはしていませんか。数式や表中で、たとえば表
3651 のセルに図を入れるなど、おかしなことをしようとしていませんか。
3652 \end_layout
3653
3654 \begin_layout Enumerate
3655 \SpecialChar LaTeX
3656 が改行位置を見つけられないほど長い一節がありませんか。既定では、改行するために単語間に空白をたくさん追加することを、\SpecialChar LaTeX
3657 はかなり嫌います。可能であれば、問題が生じな
3658 いように段落を修正するのが望ましいでしょう。
3659 \end_layout
3660
3661 \begin_layout Enumerate
3662
3663 \family roman
3664 \series medium
3665 \shape up
3666 \size normal
3667 \emph off
3668 \bar no
3669 \noun off
3670 \color none
3671 入れ子の階層を深くしすぎていませんか。\SpecialChar LyX
3672 は、(今のところ)環境の入れ子の階層が制限内にあるかチェックしません。かりに、環境を17段の入れ子にしたりしていたら、それ
3673 が原因です(\SpecialChar LaTeX
3674 の上限は5段です)。
3675 \end_layout
3676
3677 \begin_layout Enumerate
3678
3679 \family roman
3680 \series medium
3681 \shape up
3682 \size normal
3683 \emph off
3684 \bar no
3685 \noun off
3686 \color none
3687 エラーメッセージは発生しないけれども、出力がひどいものとしましょう。図表が幅が広すぎたり長すぎてページに収まらない場合には、
3688 \family default
3689 \series default
3690 \shape default
3691 \size default
3692 \bar default
3693 \color inherit
3694
3695 \begin_inset Separator parbreak
3696 \end_inset
3697
3698
3699 \end_layout
3700
3701 \begin_deeper
3702 \begin_layout Enumerate
3703
3704 \family roman
3705 \series medium
3706 \shape up
3707 \size normal
3708 \emph off
3709 \bar no
3710 \noun off
3711 \color none
3712 図がページに合うように大きさを変える、
3713 \end_layout
3714
3715 \begin_layout Enumerate
3716
3717 \family roman
3718 \series medium
3719 \shape up
3720 \size normal
3721 \emph off
3722 \bar no
3723 \noun off
3724 \color none
3725 表がページに合うように削る、
3726 \end_layout
3727
3728 \begin_layout Standard
3729
3730 \family roman
3731 \series medium
3732 \shape up
3733 \size normal
3734 \emph off
3735 \bar no
3736 \noun off
3737 \color none
3738 などの手段を採る必要があります。
3739 \end_layout
3740
3741 \end_deeper
3742 \begin_layout Enumerate
3743 他に出力におかしいところがあり、曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば、何がおかしいのか確定的なことは言えません。
3744 \end_layout
3745
3746 \begin_layout Standard
3747
3748 \family roman
3749 \series medium
3750 \shape up
3751 \size normal
3752 \emph off
3753 \bar no
3754 \noun off
3755 \color none
3756 これらすべてが役に立たないとすれば、
3757 \family default
3758 \series default
3759 \shape default
3760 \size default
3761 \emph on
3762 \bar default
3763 \noun default
3764 \color inherit
3765 ひょっとしたら
3766 \family roman
3767 \series medium
3768 \shape up
3769 \size normal
3770 \emph off
3771 \bar no
3772 \noun off
3773 \color none
3774 \SpecialChar LyX
3775 のバグを発見したのかもしれません‥‥。
3776 \end_layout
3777
3778 \begin_layout Chapter
3779 補完ツール
3780 \end_layout
3781
3782 \begin_layout Section
3783 Bib\SpecialChar TeX
3784 による書誌情報のカスタマイズ
3785 \end_layout
3786
3787 \begin_layout Standard
3788 Bib\SpecialChar TeX
3789 の基本的な使用法は、『
3790 \emph on
3791 ユーザーの手引き
3792 \emph default
3793 』の「
3794 \emph on
3795 文献データベース(Bib\SpecialChar TeX
3796 )
3797 \emph default
3798 」の節に説明があります。以下の各小節では、\SpecialChar LyX
3799 でサポートされている書誌情報の特別な機能について説明することとします。
3800 \end_layout
3801
3802 \begin_layout Subsection
3803 他の引用様式
3804 \end_layout
3805
3806 \begin_layout Standard
3807 標準のBib\SpecialChar TeX
3808 は、引用された著作を参照するのに、([12]のように)数字を使用します。しかし、多くの科学分野で、これとは異なる引用様式が用いられています。もっとも
3809 よく見られるのは、著者-出版年様式(例:Knuth 1984a)です。\SpecialChar LyX
3810 は、この様式を提供する2つのパッケージ
3811 \begin_inset Flex Code
3812 status collapsed
3813
3814 \begin_layout Plain Layout
3815 natbib
3816 \end_layout
3817
3818 \end_inset
3819
3820
3821 \begin_inset Flex Code
3822 status collapsed
3823
3824 \begin_layout Plain Layout
3825 jurabib
3826 \end_layout
3827
3828 \end_inset
3829
3830 をサポートしています。これらのパッケージには、それぞれ長所短所がありますが、ここでは詳細に立ち入る紙幅がありません。単純な著者-出版年様式(あるいは著者-番号)
3831 様式が欲しい場合や、無数にある
3832 \begin_inset Flex Code
3833 status collapsed
3834
3835 \begin_layout Plain Layout
3836 natbib
3837 \end_layout
3838
3839 \end_inset
3840
3841 用スタイルファイルのうちどれかを使用したい場合には、定評のある
3842 \begin_inset Flex Code
3843 status collapsed
3844
3845 \begin_layout Plain Layout
3846 natbib
3847 \end_layout
3848
3849 \end_inset
3850
3851 パッケージがおそらくよい選択でしょう。短縮タイトルによる参照や
3852 \emph on
3853 ibid.
3854 \emph default
3855 など、特別な機能が必要な場合には、
3856 \begin_inset Flex Code
3857 status collapsed
3858
3859 \begin_layout Plain Layout
3860 jurabib
3861 \end_layout
3862
3863 \end_inset
3864
3865 パッケージの利用を考えるとよいかもしれません。
3866 \end_layout
3867
3868 \begin_layout Standard
3869 \SpecialChar LyX
3870 での両パッケージの取扱い方は、ほぼ同じです。
3871 \begin_inset Flex MenuItem
3872 status collapsed
3873
3874 \begin_layout Plain Layout
3875 文書\SpecialChar menuseparator
3876 設定
3877 \end_layout
3878
3879 \end_inset
3880
3881 メニューを開き、
3882 \begin_inset Flex MenuItem
3883 status collapsed
3884
3885 \begin_layout Plain Layout
3886 書誌情報
3887 \end_layout
3888
3889 \end_inset
3890
3891 項目から
3892 \begin_inset Flex MenuItem
3893 status collapsed
3894
3895 \begin_layout Plain Layout
3896 Natbib
3897 \end_layout
3898
3899 \end_inset
3900
3901 オプションか
3902 \begin_inset Flex MenuItem
3903 status collapsed
3904
3905 \begin_layout Plain Layout
3906 Jurabib
3907 \end_layout
3908
3909 \end_inset
3910
3911 オプションを選択してください。これらのパッケージによって、引用ダイアログに機能が追加され、参照の様式が選択できるようになります(「Knuth 1984」、「Kn
3912 uth (1984)」、「Knuth, 1984」、「1984」など)。両パッケージは、専用にデザインされたスタイルファイルを必要とすることに注意してください。
3913 両者ともそれ自身のスタイルファイルを同梱していますが、他にもたくさんの追加スタイルファイルがありますし、
3914 \begin_inset Flex Code
3915 status collapsed
3916
3917 \begin_layout Plain Layout
3918 natbib
3919 \end_layout
3920
3921 \end_inset
3922
3923 に至っては、対話的なスタイルファイルビルダーさえ存在します
3924 \begin_inset Foot
3925 status collapsed
3926
3927 \begin_layout Plain Layout
3928 \begin_inset Flex URL
3929 status open
3930
3931 \begin_layout Plain Layout
3932
3933 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3934 \end_layout
3935
3936 \end_inset
3937
3938 をご参照ください。
3939 \end_layout
3940
3941 \end_inset
3942
3943
3944 \end_layout
3945
3946 \begin_layout Subsection
3947 節分けされた書誌情報
3948 \end_layout
3949
3950 \begin_layout Standard
3951 場合によっては、書誌情報をいくつかの節に分ける必要があることがあります。たとえば、あなたが歴史家であるとすれば、出典と学術文献を分ける機能は、おそらく「必需品」
3952 でさえあります。残念ながら、Bib\SpecialChar TeX
3953 自身ではこのようなことができません。しかし、適切な\SpecialChar LaTeX
3954 パッケージの助けを借りると、Bib\SpecialChar TeX
3955 をこのような必要性を満たすように拡張するこ
3956 とができます。
3957 \end_layout
3958
3959 \begin_layout Standard
3960 \SpecialChar LyX
3961 は、このようなパッケージの一つである
3962 \begin_inset Flex Code
3963 status collapsed
3964
3965 \begin_layout Plain Layout
3966 bibtopic
3967 \end_layout
3968
3969 \end_inset
3970
3971
3972 \begin_inset Foot
3973 status collapsed
3974
3975 \begin_layout Plain Layout
3976 \begin_inset Flex URL
3977 status open
3978
3979 \begin_layout Plain Layout
3980
3981 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3982 \end_layout
3983
3984 \end_inset
3985
3986 から入手可能です。
3987 \end_layout
3988
3989 \end_inset
3990
3991 をそのままでサポートします。このパッケージの長所は、(
3992 \begin_inset Flex Code
3993 status collapsed
3994
3995 \begin_layout Plain Layout
3996 multibib
3997 \end_layout
3998
3999 \end_inset
4000
4001 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです。そのかわりに、書誌情報の違う節には、その節向けの項目を収録した別の文献データ
4002 ベースを用意する必要があります。たとえば、書誌情報を「出典」の節と「学術文献」の節に分けたい場合には、それぞれの文献データベース、たとえば
4003 \begin_inset Flex Code
4004 status collapsed
4005
4006 \begin_layout Plain Layout
4007 souces.bib
4008 \end_layout
4009
4010 \end_inset
4011
4012
4013 \begin_inset Flex Code
4014 status collapsed
4015
4016 \begin_layout Plain Layout
4017 scientific.bib
4018 \end_layout
4019
4020 \end_inset
4021
4022 とを作成する必要があります。
4023 \end_layout
4024
4025 \begin_layout Standard
4026 \begin_inset Flex MenuItem
4027 status collapsed
4028
4029 \begin_layout Plain Layout
4030 文書\SpecialChar menuseparator
4031 設定
4032 \end_layout
4033
4034 \end_inset
4035
4036 を開いて
4037 \begin_inset Flex MenuItem
4038 status collapsed
4039
4040 \begin_layout Plain Layout
4041 書誌情報
4042 \end_layout
4043
4044 \end_inset
4045
4046 の下の
4047 \begin_inset Flex MenuItem
4048 status collapsed
4049
4050 \begin_layout Plain Layout
4051 節分けされた書誌情報
4052 \end_layout
4053
4054 \end_inset
4055
4056 をチェックしてください。すると、書誌情報の各節に一つずつ、複数の書誌情報を挿入することができます。上記の例では、Bib\SpecialChar TeX
4057 書誌情報
4058 \begin_inset Flex Code
4059 status collapsed
4060
4061 \begin_layout Plain Layout
4062 sources.bib
4063 \end_layout
4064
4065 \end_inset
4066
4067 と二つめの文献データベース
4068 \begin_inset Flex Code
4069 status collapsed
4070
4071 \begin_layout Plain Layout
4072 scientific.bib
4073 \end_layout
4074
4075 \end_inset
4076
4077 を挿入します。各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です。くわえて、書誌情報の節に、指定したデータベースの「引用されたすべての参照」を載せる
4078 (これが既定です)か、「引用されなかったすべての参照」を載せるか、あるいは「すべての参照」を載せるかを選択することができます。これは、もし書誌情報を「本文に引用
4079 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に、便利でありましょう。各節の見出しは、通常の節や小節として入れることができ
4080 ます。
4081 \begin_inset Flex Code
4082 status collapsed
4083
4084 \begin_layout Plain Layout
4085 bibtopic
4086 \end_layout
4087
4088 \end_inset
4089
4090 は、書誌情報用の見出しを取り除いてしまいますので、手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください)。
4091 \end_layout
4092
4093 \begin_layout Subsection
4094 複数の書誌情報
4095 \end_layout
4096
4097 \begin_layout Standard
4098 文書の節ごとあるいは章ごとの書誌情報など、複数の書誌情報はBib\SpecialChar TeX
4099 自身ではサポートされていません。しかしながら、もし若干の
4100 \begin_inset Flex Code
4101 status collapsed
4102
4103 \begin_layout Plain Layout
4104 \SpecialChar TeX
4105 コード
4106 \end_layout
4107
4108 \end_inset
4109
4110 (第
4111 \begin_inset CommandInset ref
4112 LatexCommand ref
4113 reference "sec:LaTeXコードを挿入する"
4114
4115 \end_inset
4116
4117 節を参照)を利用することを厭わなければ、\SpecialChar LyX
4118 で節分けされた書誌情報を作るのに使用されている(前節を参照)
4119 \begin_inset Flex Code
4120 status collapsed
4121
4122 \begin_layout Plain Layout
4123 bibtopic
4124 \end_layout
4125
4126 \end_inset
4127
4128 パッケージが、この課題を解決する簡単な方法を提供します
4129 \begin_inset Foot
4130 status collapsed
4131
4132 \begin_layout Plain Layout
4133 ほかに、
4134 \begin_inset Flex Code
4135 status collapsed
4136
4137 \begin_layout Plain Layout
4138 chapterbib
4139 \end_layout
4140
4141 \end_inset
4142
4143
4144 \begin_inset Flex Code
4145 status collapsed
4146
4147 \begin_layout Plain Layout
4148 bibunits
4149 \end_layout
4150
4151 \end_inset
4152
4153 パッケージを利用する方法もあります。
4154 \end_layout
4155
4156 \end_inset
4157
4158
4159 \end_layout
4160
4161 \begin_layout Standard
4162 まず
4163 \begin_inset Flex MenuItem
4164 status collapsed
4165
4166 \begin_layout Plain Layout
4167 文書\SpecialChar menuseparator
4168 設定
4169 \end_layout
4170
4171 \end_inset
4172
4173 に行って
4174 \begin_inset Flex MenuItem
4175 status collapsed
4176
4177 \begin_layout Plain Layout
4178 書誌情報
4179 \end_layout
4180
4181 \end_inset
4182
4183 の下の
4184 \begin_inset Flex MenuItem
4185 status collapsed
4186
4187 \begin_layout Plain Layout
4188 節分けされた書誌情報
4189 \end_layout
4190
4191 \end_inset
4192
4193 を有効にしてください。つぎに文書中において、書誌情報(Bib\SpecialChar TeX
4194 書誌情報本体を含む)の入った節を
4195 \begin_inset Flex Code
4196 status collapsed
4197
4198 \begin_layout Plain Layout
4199
4200 \backslash
4201 begin{btUnit}
4202 \end_layout
4203
4204 \end_inset
4205
4206
4207 \begin_inset Flex Code
4208 status collapsed
4209
4210 \begin_layout Plain Layout
4211
4212 \backslash
4213 end{btUnit}
4214 \end_layout
4215
4216 \end_inset
4217
4218 のあいだにはさまなくてはなりません(これらのコマンドは\SpecialChar TeX
4219 コードとして挿入する必要があります)。書誌情報には、現在位置の
4220 \begin_inset Flex Code
4221 status collapsed
4222
4223 \begin_layout Plain Layout
4224 btUnit
4225 \end_layout
4226
4227 \end_inset
4228
4229 において引用されたすべての参照が含まれることになります。
4230 \series bold
4231 (註)
4232 \series default
4233 この方法を用いる場合には、すべての参照はいずれかの
4234 \begin_inset Flex Code
4235 status collapsed
4236
4237 \begin_layout Plain Layout
4238 btUnit
4239 \end_layout
4240
4241 \end_inset
4242
4243 内部になくてはなりません。また、
4244 \begin_inset Flex Code
4245 status collapsed
4246
4247 \begin_layout Plain Layout
4248 btUnit
4249 \end_layout
4250
4251 \end_inset
4252
4253 は入れ子構造にすることができません。
4254 \end_layout
4255
4256 \begin_layout Section
4257 複合文書
4258 \end_layout
4259
4260 \begin_layout Subsection
4261 一般的な操作
4262 \end_layout
4263
4264 \begin_layout Standard
4265 たくさんの節を含んだ大きなファイルで作業をする場合、文書をいくつかのファイルに分割した方が往々にして便利ですし、場合によっては、表部分にはしょっちゅう変更が加え
4266 られるけれども、その前の文章はつねに同じであるようなケースもあるでしょう。このような場合には、複合文書を利用することを、まずご検討ください。たとえば、科学論文は
4267 通常、導入部・所見・結果・議論・結論の五つの節から成ります。これら各節を別々の\SpecialChar LyX
4268 ファイルにして、タイトル・著者・概要・書誌情報等と、これら五つのインクルード
4269 \begin_inset Foot
4270 status collapsed
4271
4272 \begin_layout Plain Layout
4273
4274 \series bold
4275 (訳註)
4276 \series default
4277 「取り込む」の意です。原語「include」に対する訳語として、プログラミング用語の「インクルードする」以外に適語がないので、ここではプログラミング用語をそのま
4278 ま使用します。
4279 \end_layout
4280
4281 \end_inset
4282
4283 ファイルを持つ、もう一つ別の「マスター」ファイルを作成するようにすることができます。これらの各ファイルは、単にマスターファイルにインクルードされるだけでなく、単
4284 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4285 ファイルであるように注意することが重要です。しかも、これらの各ファイルは、同じ文書クラスでなくてはなりません。a
4286 rticleクラスとbookクラスを混在させるようなことはなさらないでください。\SpecialChar LaTeX
4287 ファイルをインクルードすることもできますが、このファイルにはプリアンブルがあって
4288 はなりません(
4289 \begin_inset Flex Code
4290 status collapsed
4291
4292 \begin_layout Plain Layout
4293
4294 \backslash
4295 begin{document}
4296 \end_layout
4297
4298 \end_inset
4299
4300 行とその前のすべて、および
4301 \begin_inset Flex Code
4302 status collapsed
4303
4304 \begin_layout Plain Layout
4305
4306 \backslash
4307 end{document}行
4308 \end_layout
4309
4310 \end_inset
4311
4312 は削除しておかなければなりません)。さもないと、DVIファイルを作成する際にエラーが発生するでしょう。
4313 \end_layout
4314
4315 \begin_layout Standard
4316 \SpecialChar LyX
4317 では、
4318 \family sans
4319 挿入\SpecialChar menuseparator
4320 ファイル\SpecialChar menuseparator
4321 子文書
4322 \family default
4323 で簡単にファイルをインクルードすることができます。このメニューを選んでクリックすると、カーソルの現在位置に小さな枠が挿入されます。この枠をクリックすると、ダイア
4324 ログが現れるので、そこでインクルードするファイルとインクルード方法を選択することができます。
4325 \end_layout
4326
4327 \begin_layout Standard
4328 ファイル選択ボックスは、いまや自明でしょう。インクルード方法には、「include」・「input」・「verbatim」の三つがあります。「include」と
4329 「input」の違いは、正確には\SpecialChar LaTeX
4330 の達人にしか意味のないものですが、ほとんどの人にとって意味のある違いといえば、「include」されたファイルは新規頁から組版さ
4331 れるのに対し、「input」されたファイルは現在のページから組版される点です。
4332 \end_layout
4333
4334 \begin_layout Standard
4335 一般に、マスターファイルは、組版前に完全な\SpecialChar LaTeX
4336 ファイルに変換されますが、インクルードされるファイルは、プリアンブル情報をまったく持たない\SpecialChar LaTeX
4337 ファイルに変換されます。
4338 \end_layout
4339
4340 \begin_layout Standard
4341 「verbatim」インクルードファイルでは、ファイルの内容がそのまま(つまり「
4342 \begin_inset Flex Code
4343 status collapsed
4344
4345 \begin_layout Plain Layout
4346 verbatim
4347 \end_layout
4348
4349 \end_inset
4350
4351 」モードで)固定幅タイプライタフォントで組版されます。通常、このファイルの空白は、通常の\SpecialChar LyX
4352 での空白の取扱いとは違って、連続した複数の空白がそのまま出力されるものの
4353 、単なる見えない空白です。ただし、
4354 \family sans
4355
4356 \begin_inset Flex MenuItem
4357 status collapsed
4358
4359 \begin_layout Plain Layout
4360
4361 \family sans
4362 出力の空白に印付けをする
4363 \end_layout
4364
4365 \end_inset
4366
4367
4368 \family default
4369 チェックボックスを有効にすると、空白が存在することを明確にするために空白の印が出力されます。
4370 \end_layout
4371
4372 \begin_layout Subsection
4373 ファイル間の相互参照
4374 \end_layout
4375
4376 \begin_layout Standard
4377 \begin_inset Box Shadowbox
4378 position "t"
4379 hor_pos "c"
4380 has_inner_box 1
4381 inner_pos "t"
4382 use_parbox 0
4383 use_makebox 0
4384 width "100col%"
4385 special "none"
4386 height "1in"
4387 height_special "totalheight"
4388 thickness "0.4pt"
4389 separation "3pt"
4390 shadowsize "4pt"
4391 framecolor "black"
4392 backgroundcolor "none"
4393 status open
4394
4395 \begin_layout Plain Layout
4396 この節の内容は、すでに古くなっています。既定のマスター文書についてと、マスターが開いているときに子文書をどう開くかについて記述する必要があります。[[要修正]]
4397 \end_layout
4398
4399 \end_inset
4400
4401
4402 \end_layout
4403
4404 \begin_layout Standard
4405 異なるファイル間に相互参照を設定することも可能です。まず、すべての関係するファイルを開いてください。例として、2つのファイルを扱う場合を考え、各ファイルをA・B
4406 と呼びます。BがAにインクルードされるファイルだとします。Aにラベルを入れて、Bで参照したいとしましょう。文書Bで相互参照ダイアログを開いて、使用する「バッファ
4407 」を選んでください。
4408 \end_layout
4409
4410 \begin_layout Subsection
4411 すべての子文書での書誌情報
4412 \end_layout
4413
4414 \begin_layout Standard
4415 \begin_inset Box Shadowbox
4416 position "t"
4417 hor_pos "c"
4418 has_inner_box 1
4419 inner_pos "t"
4420 use_parbox 0
4421 use_makebox 0
4422 width "100col%"
4423 special "none"
4424 height "1in"
4425 height_special "totalheight"
4426 thickness "0.4pt"
4427 separation "3pt"
4428 shadowsize "4pt"
4429 framecolor "black"
4430 backgroundcolor "none"
4431 status open
4432
4433 \begin_layout Plain Layout
4434 この節も更新が必要です。この点に関する内容がwikiにあるので、それをここにコピーすることも可か。
4435 \end_layout
4436
4437 \end_inset
4438
4439
4440 \end_layout
4441
4442 \begin_layout Standard
4443 すべての子文書の全文献項目を含んだ書誌情報一覧をコピーし、それをコメントに変更してください。このようにすることで、\SpecialChar LyX
4444 は.bibファイルを見つけることができ、書誌情報
4445 一覧を見えるようにせずとも簡単に参照を挿入することができるようになります。
4446 \end_layout
4447
4448 \begin_layout Standard
4449 書誌情報一覧がコメントにあるために、\SpecialChar LaTeX
4450 はそれを使用しないので、参照は[1]のようには表示されないで[?]のように表示されます。ひとつの解決法として、コメントをイン
4451 クルードする\SpecialChar LaTeX
4452 パッケージの
4453 \begin_inset Flex Code
4454 status collapsed
4455
4456 \begin_layout Plain Layout
4457 comment
4458 \end_layout
4459
4460 \end_inset
4461
4462 を使用して、ファイルを別々に処理する方法があります。そのためには、すべての子文書のプリアンブルに以下を書き加えてください。
4463 \end_layout
4464
4465 \begin_layout LyX-Code
4466
4467 \backslash
4468 usepackage{comment}
4469 \end_layout
4470
4471 \begin_layout LyX-Code
4472
4473 \backslash
4474 includecomment{comment}
4475 \end_layout
4476
4477 \begin_layout Standard
4478 \begin_inset Flex URL
4479 status collapsed
4480
4481 \begin_layout Plain Layout
4482
4483 http://wiki.lyx.org/FAQ/Unsorted#toc31
4484 \end_layout
4485
4486 \end_inset
4487
4488 も参照してください。
4489 \end_layout
4490
4491 \begin_layout Section
4492 \SpecialChar LyX
4493 書庫
4494 \end_layout
4495
4496 \begin_layout Standard
4497 しばしばユーザーは、出版社に送ったり、共著者とやりとりするために、\SpecialChar LyX
4498 ファイルを、その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります。\SpecialChar LyX
4499
4500  2.0には、この過程を自動化するPythonスクリプト(
4501 \begin_inset Flex Code
4502 status collapsed
4503
4504 \begin_layout Plain Layout
4505 lyxpak.py
4506 \end_layout
4507
4508 \end_inset
4509
4510 )が含まれています。これを使うには、
4511 \begin_inset Flex Code
4512 status collapsed
4513
4514 \begin_layout Plain Layout
4515 zipfile
4516 \end_layout
4517
4518 \end_inset
4519
4520  pythonモジュールまたは
4521 \begin_inset Flex Code
4522 status collapsed
4523
4524 \begin_layout Plain Layout
4525 tarfile
4526 \end_layout
4527
4528 \end_inset
4529
4530  pythonモジュールが、システムに導入済みであることが必要です。既定設定では、Unix系システムでは、
4531 \begin_inset Flex Code
4532 status collapsed
4533
4534 \begin_layout Plain Layout
4535 gzip
4536 \end_layout
4537
4538 \end_inset
4539
4540 圧縮
4541 \begin_inset Flex Code
4542 status collapsed
4543
4544 \begin_layout Plain Layout
4545 tar
4546 \end_layout
4547
4548 \end_inset
4549
4550 ファイル形式が優先され、Windowsでは
4551 \begin_inset Flex Code
4552 status collapsed
4553
4554 \begin_layout Plain Layout
4555 zip
4556 \end_layout
4557
4558 \end_inset
4559
4560 形式が優先されます。
4561 \end_layout
4562
4563 \begin_layout Standard
4564 \SpecialChar LyX
4565 の環境構成時には、「\SpecialChar LyX
4566 書庫」を書き出すことができるようにスクリプトが準備され、
4567 \begin_inset Flex MenuItem
4568 status collapsed
4569
4570 \begin_layout Plain Layout
4571 ファイル\SpecialChar menuseparator
4572 書き出し
4573 \end_layout
4574
4575 \end_inset
4576
4577 の下で利用可能となります。
4578 \end_layout
4579
4580 \begin_layout Standard
4581 \begin_inset Flex MenuItem
4582 status collapsed
4583
4584 \begin_layout Plain Layout
4585 ツール\SpecialChar menuseparator
4586 設定\SpecialChar menuseparator
4587 ファイル処理\SpecialChar menuseparator
4588 変換子
4589 \end_layout
4590
4591 \end_inset
4592
4593
4594 \begin_inset Flex MenuItem
4595 status collapsed
4596
4597 \begin_layout Plain Layout
4598 \SpecialChar LyX
4599 \SpecialChar menuseparator
4600 \SpecialChar LyX
4601 書庫
4602 \end_layout
4603
4604 \end_inset
4605
4606 変換子に、
4607 \begin_inset Flex Code
4608 status collapsed
4609
4610 \begin_layout Plain Layout
4611 -t
4612 \end_layout
4613
4614 \end_inset
4615
4616 スイッチや
4617 \begin_inset Flex Code
4618 status collapsed
4619
4620 \begin_layout Plain Layout
4621 -z
4622 \end_layout
4623
4624 \end_inset
4625
4626 スイッチを加えることで、プラットホームとは独立に、
4627 \begin_inset Flex Code
4628 status collapsed
4629
4630 \begin_layout Plain Layout
4631 tar
4632 \end_layout
4633
4634 \end_inset
4635
4636 形式や
4637 \begin_inset Flex Code
4638 status collapsed
4639
4640 \begin_layout Plain Layout
4641 zip
4642 \end_layout
4643
4644 \end_inset
4645
4646 形式を強制することができます(スイッチは、スクリプト名の前ではなく、後ろに加えてください)。
4647 \end_layout
4648
4649 \begin_layout Section
4650 装飾的なヘッダ・フッタ
4651 \end_layout
4652
4653 \begin_layout Standard
4654 既定のページレイアウトは、どちらかといえば素っ気ないものです。
4655 \begin_inset Flex Code
4656 status collapsed
4657
4658 \begin_layout Plain Layout
4659 article
4660 \end_layout
4661
4662 \end_inset
4663
4664 文書クラスの場合には、ページの下の真ん中にページ番号がつくだけです。この取扱説明書はKOMA-scriptのbookクラスなので、すこしは凝ってますが、ほんとう
4665 に着飾るには、『
4666 \emph on
4667 ユーザーの手引き
4668 \emph default
4669 』に述べられているように、文書ページスタイルを「装飾的(fancy)」に設定する必要があります。この節では、望んだとおりの効果を得るために、\SpecialChar LaTeX
4670 プリアンブルに挿入す
4671 る必要のある\SpecialChar LaTeX
4672 コードについて解説します。
4673 \end_layout
4674
4675 \begin_layout Standard
4676 ページへッダは、「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています。フッタも同様に3つのフィールド
4677 に分類されています。これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
4678 コマンドには、
4679 \family typewriter
4680
4681 \begin_inset Flex Code
4682 status collapsed
4683
4684 \begin_layout Plain Layout
4685
4686 \family typewriter
4687
4688 \backslash
4689 lhead
4690 \end_layout
4691
4692 \end_inset
4693
4694
4695 \family default
4696
4697 \family typewriter
4698
4699 \begin_inset Flex Code
4700 status collapsed
4701
4702 \begin_layout Plain Layout
4703
4704 \family typewriter
4705
4706 \backslash
4707 chead
4708 \end_layout
4709
4710 \end_inset
4711
4712
4713 \family default
4714
4715 \family typewriter
4716
4717 \begin_inset Flex Code
4718 status collapsed
4719
4720 \begin_layout Plain Layout
4721
4722 \family typewriter
4723
4724 \backslash
4725 rhead
4726 \end_layout
4727
4728 \end_inset
4729
4730
4731 \family default
4732
4733 \begin_inset Flex Code
4734 status collapsed
4735
4736 \begin_layout Plain Layout
4737
4738 \backslash
4739 lfoot
4740 \end_layout
4741
4742 \end_inset
4743
4744 などがあります。かりに、各ページの左上端に自分の名前を入れたいものとしましょう。次のようなコマンドをプリアンブルに入れるだけです。
4745 \end_layout
4746
4747 \begin_layout Standard
4748
4749 \family typewriter
4750
4751 \backslash
4752 lhead{物書 はじめ}
4753 \end_layout
4754
4755 \begin_layout Standard
4756 これで自分の名前が左上に現れます。フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には、空の引数を持つコマンドを入
4757 れるだけです。すなわち、
4758 \end_layout
4759
4760 \begin_layout Standard
4761
4762 \family typewriter
4763
4764 \backslash
4765 cfoot{}
4766 \begin_inset Newline newline
4767 \end_inset
4768
4769
4770 \family default
4771 とします。
4772 \end_layout
4773
4774 \begin_layout Standard
4775 もっと美しくしてみましょう。節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ、ページ番号を(4ページのように)右上に、自分の名前を左下に、日
4776 付を右下に入れます。以下のコマンドをプリアンブルに入れます。
4777 \end_layout
4778
4779 \begin_layout Standard
4780
4781 \family typewriter
4782
4783 \backslash
4784 lhead{第
4785 \backslash
4786 thesection 節}
4787 \end_layout
4788
4789 \begin_layout Standard
4790
4791 \family typewriter
4792
4793 \backslash
4794 chead{}
4795 \end_layout
4796
4797 \begin_layout Standard
4798
4799 \family typewriter
4800
4801 \backslash
4802 rhead{
4803 \backslash
4804 thepage ページ}
4805 \end_layout
4806
4807 \begin_layout Standard
4808
4809 \family typewriter
4810
4811 \backslash
4812 lfoot{物書 はじめ}
4813 \end_layout
4814
4815 \begin_layout Standard
4816
4817 \family typewriter
4818
4819 \backslash
4820 cfoot{}
4821 \end_layout
4822
4823 \begin_layout Standard
4824
4825 \family typewriter
4826
4827 \backslash
4828 rfoot{
4829 \backslash
4830 today}
4831 \end_layout
4832
4833 \begin_layout Standard
4834 コマンド
4835 \family typewriter
4836
4837 \begin_inset Flex Code
4838 status collapsed
4839
4840 \begin_layout Plain Layout
4841
4842 \family typewriter
4843
4844 \backslash
4845 thesecti
4846 \family default
4847 o
4848 \family typewriter
4849 n
4850 \end_layout
4851
4852 \end_inset
4853
4854
4855 \family default
4856
4857 \begin_inset Flex Code
4858 status collapsed
4859
4860 \begin_layout Plain Layout
4861
4862 \family typewriter
4863
4864 \backslash
4865 thepa
4866 \family default
4867 ge
4868 \end_layout
4869
4870 \end_inset
4871
4872 は、それぞれ\SpecialChar LaTeX
4873 の節カウンタおよびページカウンタを取得するもので、これによって現在の節番号とページ番号を印字します。
4874 \begin_inset Flex Code
4875 status collapsed
4876
4877 \begin_layout Plain Layout
4878
4879 \family typewriter
4880
4881 \backslash
4882 tod
4883 \family default
4884 ay
4885 \end_layout
4886
4887 \end_inset
4888
4889 は、今日の日付を印字するものです。
4890 \end_layout
4891
4892 \begin_layout Standard
4893 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます。もし罫線が必要なければ、太さを0にしてください。ヘッダ罫線は、既定では0.4ptの太さであり、
4894 フッタ罫線は0ptです。太さを変更するには、
4895 \family typewriter
4896
4897 \begin_inset Flex Code
4898 status collapsed
4899
4900 \begin_layout Plain Layout
4901
4902 \family typewriter
4903
4904 \backslash
4905 renewcommand{
4906 \backslash
4907 headrulewidth}{0.4pt}
4908 \end_layout
4909
4910 \end_inset
4911
4912
4913 \family default
4914
4915 \family typewriter
4916
4917 \begin_inset Flex Code
4918 status collapsed
4919
4920 \begin_layout Plain Layout
4921
4922 \family typewriter
4923
4924 \backslash
4925 renewcommand{
4926 \backslash
4927 footrulewidth}{0.4pt}
4928 \end_layout
4929
4930 \end_inset
4931
4932
4933 \family default
4934 のようなコマンドを使用してください。
4935 \end_layout
4936
4937 \begin_layout Standard
4938 \begin_inset Flex Code
4939 status collapsed
4940
4941 \begin_layout Plain Layout
4942
4943 \family typewriter
4944
4945 \backslash
4946 thispagestyle{empty}
4947 \end_layout
4948
4949 \end_inset
4950
4951
4952 \begin_inset Flex Code
4953 status collapsed
4954
4955 \begin_layout Plain Layout
4956
4957 \family typewriter
4958
4959 \backslash
4960 thispagestyle{plain}
4961 \end_layout
4962
4963 \end_inset
4964
4965
4966 \begin_inset Flex Code
4967 status collapsed
4968
4969 \begin_layout Plain Layout
4970
4971 \family typewriter
4972
4973 \backslash
4974 thispagestyle{fancy}
4975 \end_layout
4976
4977 \end_inset
4978
4979 のようなコマンドを使えば、各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます。設定を変更したいページに、これらのコマンドを\SpecialChar TeX
4980 コードとして
4981 挿入してください。実は、タイトルページは、その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず、既定でプレーン
4982 (plain)になるように設定されているのです。
4983 \end_layout
4984
4985 \begin_layout Standard
4986 奇数ページの左上だけに何かを挿入するなど、もっと複雑なコマンドもあるのですが、詳しい解説は
4987 \begin_inset Flex Code
4988 status collapsed
4989
4990 \begin_layout Plain Layout
4991
4992 \family typewriter
4993 fancyhdr
4994 \end_layout
4995
4996 \end_inset
4997
4998 パッケージの取扱説明書をご参照ください(
4999 \begin_inset Flex Code
5000 status collapsed
5001
5002 \begin_layout Plain Layout
5003 fancyhdr.dvi
5004 \end_layout
5005
5006 \end_inset
5007
5008 を探してください)。
5009 \end_layout
5010
5011 \begin_layout Standard
5012 最後の例として、へッダやフッタに画像を挿入できることを取り上げましょう。会社のロゴをページ左上に入れたいものとします。たとえば、
5013 \end_layout
5014
5015 \begin_layout Standard
5016
5017 \family typewriter
5018
5019 \backslash
5020 lhead{
5021 \backslash
5022 resizebox{1in}{!}{
5023 \backslash
5024 includegraphics{logo.eps}}}
5025 \end_layout
5026
5027 \begin_layout Standard
5028 \noindent
5029 とすれば、これを実現できます(文書中に他に画像を挿入していない場合には、
5030 \begin_inset Newline newline
5031 \end_inset
5032
5033
5034 \begin_inset Flex Code
5035 status collapsed
5036
5037 \begin_layout Plain Layout
5038 \noindent
5039
5040 \family typewriter
5041
5042 \backslash
5043 usepackage{graphics}
5044 \end_layout
5045
5046 \end_inset
5047
5048 をプリアンブルに宣言する必要があります)。
5049 \end_layout
5050
5051 \begin_layout Section
5052 箇条書き(記号)ブリットの指定
5053 \begin_inset CommandInset label
5054 LatexCommand label
5055 name "sec:ブリット"
5056
5057 \end_inset
5058
5059
5060 \end_layout
5061
5062 \begin_layout Standard
5063
5064 \noun on
5065 Allan Rae文
5066 \end_layout
5067
5068 \begin_layout Subsection
5069 はじめに
5070 \end_layout
5071
5072 \begin_layout Standard
5073 \SpecialChar LyX
5074 には、ブリットの形が216個準備されていて、簡単なダイアログから呼び出すことができます。このダイアログを使えば、箇条書き(記号)の各階層で使うブリットの形を変更
5075 することができます。この設定は文書全体に共通なので、段落ごとに別のブリットを指定することはできません
5076 \begin_inset Foot
5077 status collapsed
5078
5079 \begin_layout Plain Layout
5080 正確には可能ですが、手動で行う必要があります。
5081 \end_layout
5082
5083 \end_inset
5084
5085
5086 \end_layout
5087
5088 \begin_layout Subsection
5089 外見
5090 \end_layout
5091
5092 \begin_layout Standard
5093 メニュー項目の
5094 \begin_inset Flex MenuItem
5095 status collapsed
5096
5097 \begin_layout Plain Layout
5098 文書\SpecialChar menuseparator
5099 設定
5100 \end_layout
5101
5102 \end_inset
5103
5104 を選択してダイアログを開き、
5105 \begin_inset Flex MenuItem
5106 status collapsed
5107
5108 \begin_layout Plain Layout
5109 ブリット
5110 \end_layout
5111
5112 \end_inset
5113
5114 タブを選択してください。
5115 \end_layout
5116
5117 \begin_layout Standard
5118 このダイアログは、ブリット形の一覧表を提示します。
5119 \begin_inset Flex MenuItem
5120 status collapsed
5121
5122 \begin_layout Plain Layout
5123 フォント
5124 \end_layout
5125
5126 \end_inset
5127
5128 と書いてあるドロップダウンメニューで、6つの各ブリット形パネルを切り替えることができます。また、一覧表左の
5129 \begin_inset Flex MenuItem
5130 status collapsed
5131
5132 \begin_layout Plain Layout
5133 階層
5134 \end_layout
5135
5136 \end_inset
5137
5138 パネルは、変更したい階層を選択するものです。
5139 \begin_inset Flex MenuItem
5140 status collapsed
5141
5142 \begin_layout Plain Layout
5143 任意のブリット
5144 \end_layout
5145
5146 \end_inset
5147
5148 では、指定したい\SpecialChar LaTeX
5149 表現を入力することができます。任意のブリットを指定した場合には、そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5150 プリアンブルで指定する必要があります。
5151 \end_layout
5152
5153 \begin_layout Standard
5154 6つのパネルは、それぞれが必要とするパッケージによって分類されています。下記は、フォント名と\SpecialChar LaTeX
5155 パッケージの対応表です。
5156 \begin_inset Separator parbreak
5157 \end_inset
5158
5159
5160 \end_layout
5161
5162 \begin_layout Standard
5163 \align center
5164 \begin_inset Tabular
5165 <lyxtabular version="3" rows="7" columns="2">
5166 <features tabularvalignment="middle">
5167 <column alignment="center" valignment="top" width="0pt">
5168 <column alignment="center" valignment="top" width="0pt">
5169 <row>
5170 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5171 \begin_inset Text
5172
5173 \begin_layout Plain Layout
5174 フォント
5175 \end_layout
5176
5177 \end_inset
5178 </cell>
5179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5180 \begin_inset Text
5181
5182 \begin_layout Plain Layout
5183
5184 \family roman
5185 \series medium
5186 \shape up
5187 \size normal
5188 \emph off
5189 \bar no
5190 \noun off
5191 \color none
5192 必要とするパッケージ
5193 \end_layout
5194
5195 \end_inset
5196 </cell>
5197 </row>
5198 <row>
5199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5200 \begin_inset Text
5201
5202 \begin_layout Plain Layout
5203
5204 \family sans
5205 標準
5206 \end_layout
5207
5208 \end_inset
5209 </cell>
5210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5211 \begin_inset Text
5212
5213 \begin_layout Plain Layout
5214
5215 \series medium
5216 \shape up
5217 \size normal
5218 \emph off
5219 \bar no
5220 \noun off
5221 \color none
5222 \SpecialChar LaTeX
5223
5224 \family roman
5225 本体
5226 \end_layout
5227
5228 \end_inset
5229 </cell>
5230 </row>
5231 <row>
5232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5233 \begin_inset Text
5234
5235 \begin_layout Plain Layout
5236
5237 \family sans
5238 \series medium
5239 \shape up
5240 \size normal
5241 \emph off
5242 \bar no
5243 \noun off
5244 \color none
5245 数式
5246 \end_layout
5247
5248 \end_inset
5249 </cell>
5250 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5251 \begin_inset Text
5252
5253 \begin_layout Plain Layout
5254
5255 \family typewriter
5256 \series medium
5257 \shape up
5258 \size normal
5259 \emph off
5260 \bar no
5261 \noun off
5262 \color none
5263 amssymb.sty
5264 \end_layout
5265
5266 \end_inset
5267 </cell>
5268 </row>
5269 <row>
5270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5271 \begin_inset Text
5272
5273 \begin_layout Plain Layout
5274
5275 \family sans
5276 \series medium
5277 \shape up
5278 \size normal
5279 \emph off
5280 \bar no
5281 \noun off
5282 \color none
5283 絵文字1
5284 \end_layout
5285
5286 \end_inset
5287 </cell>
5288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5289 \begin_inset Text
5290
5291 \begin_layout Plain Layout
5292
5293 \family typewriter
5294 \series medium
5295 \shape up
5296 \size normal
5297 \emph off
5298 \bar no
5299 \noun off
5300 \color none
5301 pifont.sty
5302 \end_layout
5303
5304 \end_inset
5305 </cell>
5306 </row>
5307 <row>
5308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5309 \begin_inset Text
5310
5311 \begin_layout Plain Layout
5312
5313 \family sans
5314 \series medium
5315 \shape up
5316 \size normal
5317 \emph off
5318 \bar no
5319 \noun off
5320 \color none
5321 絵文字2
5322 \end_layout
5323
5324 \end_inset
5325 </cell>
5326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5327 \begin_inset Text
5328
5329 \begin_layout Plain Layout
5330
5331 \family typewriter
5332 \series medium
5333 \shape up
5334 \size normal
5335 \emph off
5336 \bar no
5337 \noun off
5338 \color none
5339 pifont.sty
5340 \end_layout
5341
5342 \end_inset
5343 </cell>
5344 </row>
5345 <row>
5346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5347 \begin_inset Text
5348
5349 \begin_layout Plain Layout
5350
5351 \family sans
5352 \series medium
5353 \shape up
5354 \size normal
5355 \emph off
5356 \bar no
5357 \noun off
5358 \color none
5359 絵文字3
5360 \end_layout
5361
5362 \end_inset
5363 </cell>
5364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5365 \begin_inset Text
5366
5367 \begin_layout Plain Layout
5368
5369 \family typewriter
5370 \series medium
5371 \shape up
5372 \size normal
5373 \emph off
5374 \bar no
5375 \noun off
5376 \color none
5377 pifont.sty
5378 \end_layout
5379
5380 \end_inset
5381 </cell>
5382 </row>
5383 <row>
5384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5385 \begin_inset Text
5386
5387 \begin_layout Plain Layout
5388
5389 \family sans
5390 \series medium
5391 \shape up
5392 \size normal
5393 \emph off
5394 \bar no
5395 \noun off
5396 \color none
5397 絵文字4
5398 \end_layout
5399
5400 \end_inset
5401 </cell>
5402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5403 \begin_inset Text
5404
5405 \begin_layout Plain Layout
5406
5407 \family typewriter
5408 \series medium
5409 \shape up
5410 \size normal
5411 \emph off
5412 \bar no
5413 \noun off
5414 \color none
5415 pifont.sty
5416 \end_layout
5417
5418 \end_inset
5419 </cell>
5420 </row>
5421 </lyxtabular>
5422
5423 \end_inset
5424
5425
5426 \end_layout
5427
5428 \begin_layout Standard
5429 \SpecialChar LyX
5430 は、ユーザーが導入されていないパッケージのブリットを使用したとしても、警告を発しません。ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5431 エラーが出るようならば、
5432 パッケージが導入されていない可能性が大です
5433 \begin_inset Foot
5434 status collapsed
5435
5436 \begin_layout Plain Layout
5437 \SpecialChar LyX
5438 が、パッケージがなくてもブリットを使用することを許すのは、編集をここで行ったとしても、別のところへエクスポートする可能性があるからです。
5439 \end_layout
5440
5441 \end_inset
5442
5443
5444 \end_layout
5445
5446 \begin_layout Subsection
5447 使用法
5448 \end_layout
5449
5450 \begin_layout Standard
5451 変更したいブリット階層を選んで、ブリット形と寸法を選択してください。何らかの変更を加えたとしても、\SpecialChar LyX
5452 上には反映されませんが、文書の表示を行えば確認されます。
5453 \end_layout
5454
5455 \begin_layout Standard
5456 ブリット形は、適切な階層のブリットボタンをマウスで右クリックすれば、簡単に既定値に初期化することができます
5457 \begin_inset Foot
5458 status collapsed
5459
5460 \begin_layout Plain Layout
5461 もし
5462 \emph on
5463 本当に
5464 \emph default
5465 段落ごとに異なるブリットの形を使いたいならば、\SpecialChar TeX
5466 コードを使って少し手を汚す必要があります。この場合も、ブリット選択ダイアログを使えば、さまざまな形のLaTeXコー
5467 ドを確認することができるので手助けとなるでしょう。任意に設定した段落をつくるには、以下のような選択肢があります。
5468 \end_layout
5469
5470 \begin_layout Plain Layout
5471 \begin_inset ERT
5472 status open
5473
5474 \begin_layout Plain Layout
5475
5476
5477 \backslash
5478 let
5479 \backslash
5480 savelabelitemi=
5481 \backslash
5482 labelitemi
5483 \end_layout
5484
5485 \end_inset
5486
5487
5488 \end_layout
5489
5490 \begin_layout Plain Layout
5491 \begin_inset ERT
5492 status open
5493
5494 \begin_layout Plain Layout
5495
5496
5497 \backslash
5498 renewcommand
5499 \backslash
5500 labelitemi[0]{
5501 \backslash
5502 small
5503 \backslash
5504 (
5505 \backslash
5506 sharp
5507 \backslash
5508 )}
5509 \end_layout
5510
5511 \end_inset
5512
5513
5514 \end_layout
5515
5516 \begin_layout Itemize
5517 特定の階層の新しいブリット形を指定するには、\SpecialChar LaTeX
5518 コマンド
5519 \begin_inset Flex Code
5520 status collapsed
5521
5522 \begin_layout Plain Layout
5523
5524 \family typewriter
5525
5526 \backslash
5527 renewcommand{}{}
5528 \end_layout
5529
5530 \end_inset
5531
5532 を使用します。あとで現在のブリット形に戻すことができるように、現在のブリット形を保存しておく必要もあります。ここで使っている箇条書きでは、第1階層のブリットを変
5533 更するために、以下の\SpecialChar LaTeX
5534 コードが使用されています。
5535 \begin_inset Separator parbreak
5536 \end_inset
5537
5538
5539 \end_layout
5540
5541 \begin_deeper
5542 \begin_layout LyX-Code
5543
5544 \family typewriter
5545
5546 \backslash
5547 let
5548 \backslash
5549 savelabelitemi=
5550 \backslash
5551 labelitemi
5552 \end_layout
5553
5554 \begin_layout LyX-Code
5555
5556 \family typewriter
5557
5558 \backslash
5559 renewcommand
5560 \backslash
5561 labelitemi[0]{
5562 \backslash
5563 small
5564 \backslash
5565 (
5566 \backslash
5567 sharp
5568 \backslash
5569 )}
5570 \end_layout
5571
5572 \end_deeper
5573 \begin_layout Itemize
5574 箇条書き(記号)の階層は、
5575 \begin_inset Flex Code
5576 status collapsed
5577
5578 \begin_layout Plain Layout
5579
5580 \backslash
5581 labelitem
5582 \end_layout
5583
5584 \end_inset
5585
5586 コマンドの一部にローマ数字で指定されていることに注意してください。
5587 \end_layout
5588
5589 \begin_layout Itemize
5590 \begin_inset ERT
5591 status open
5592
5593 \begin_layout Plain Layout
5594
5595 [
5596 \backslash
5597 (
5598 \backslash
5599 star
5600 \backslash
5601 )]
5602 \end_layout
5603
5604 \end_inset
5605
5606 各項目のブリットを指定するには、角括弧で囲んだブリット形を、行頭に
5607 \begin_inset Flex Code
5608 status collapsed
5609
5610 \begin_layout Plain Layout
5611 \SpecialChar TeX
5612 コード
5613 \end_layout
5614
5615 \end_inset
5616
5617 として挿入してください。たとえば、この項目の行頭には
5618 \family typewriter
5619
5620 \begin_inset Flex Code
5621 status collapsed
5622
5623 \begin_layout Plain Layout
5624
5625 \family typewriter
5626 [
5627 \backslash
5628 (
5629 \backslash
5630 star
5631 \backslash
5632 )]
5633 \end_layout
5634
5635 \end_inset
5636
5637
5638 \family default
5639 が指定されています。
5640 \end_layout
5641
5642 \begin_layout Plain Layout
5643 \begin_inset ERT
5644 status open
5645
5646 \begin_layout Plain Layout
5647
5648
5649 \backslash
5650 renewcommand
5651 \backslash
5652 labelitemi[0]{
5653 \backslash
5654 savelabelitemi}
5655 \end_layout
5656
5657 \end_inset
5658
5659
5660 \end_layout
5661
5662 \begin_layout Plain Layout
5663 文書全体で使用するブリット形が有効であるようにするために、labelitemを元の設定に戻す必要があります。そのためには、以下のようにします。
5664 \end_layout
5665
5666 \begin_layout LyX-Code
5667
5668 \family typewriter
5669
5670 \backslash
5671 renewcommand
5672 \backslash
5673 labelitemi[0]{
5674 \backslash
5675 savelabelitemi}
5676 \end_layout
5677
5678 \end_inset
5679
5680
5681 \end_layout
5682
5683 \begin_layout Chapter
5684 \SpecialChar LyX
5685 とインターネット網
5686 \end_layout
5687
5688 \begin_layout Standard
5689 \SpecialChar LyX
5690 は、これまでも長い間、HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました。しかしながら、第2.0版以前では、HTMLへの書き出し
5691 は、常に外部変換子を用いることで実現されていました
5692 \begin_inset Foot
5693 status collapsed
5694
5695 \begin_layout Plain Layout
5696 \SpecialChar LyX
5697 で外部変換子を使うことについての詳細は、取扱説明書『
5698 \emph on
5699 カスタマイズ篇
5700 \emph default
5701 』の「
5702 \emph on
5703 変換子
5704 \emph default
5705 」の節をご覧ください。
5706 \end_layout
5707
5708 \end_inset
5709
5710 。これらは2つのグループに大別できます。1つは、
5711 \begin_inset Flex Code
5712 status collapsed
5713
5714 \begin_layout Plain Layout
5715 htlatex
5716 \end_layout
5717
5718 \end_inset
5719
5720
5721 \begin_inset Flex Code
5722 status collapsed
5723
5724 \begin_layout Plain Layout
5725 html2latex
5726 \end_layout
5727
5728 \end_inset
5729
5730
5731 \begin_inset Flex Code
5732 status collapsed
5733
5734 \begin_layout Plain Layout
5735 plastex
5736 \end_layout
5737
5738 \end_inset
5739
5740 のように、\SpecialChar LaTeX
5741 を中間形式として用い、その\SpecialChar LaTeX
5742 を生成するのに\SpecialChar LyX
5743 を用いるもの。2つめは、
5744 \begin_inset Flex Code
5745 status collapsed
5746
5747 \begin_layout Plain Layout
5748 e\SpecialChar LyX
5749 er
5750 \end_layout
5751
5752 \end_inset
5753
5754 のように、直接\SpecialChar LyX
5755 ファイルに働きかける変換子です。これらは、それぞれに長所・短所を有しています。
5756 \end_layout
5757
5758 \begin_layout Standard
5759 \SpecialChar LaTeX
5760 ベースの変換子は、原則として、\SpecialChar LaTeX
5761 が書きだす文書についてのすべてを知っているという長所があります。この種の変換子は、例えば、特定のコードのくだりが、\SpecialChar LyX
5762 によって生成され
5763 たのか、\SpecialChar TeX
5764 コードで書かれたのかについては気にしません。これらの変換子は、
5765 \begin_inset Flex Code
5766 status collapsed
5767
5768 \begin_layout Plain Layout
5769 aux
5770 \end_layout
5771
5772 \end_inset
5773
5774 ファイルやカウンタや参照を取り扱うことができ、Bib\SpecialChar TeX
5775 が生成する
5776 \begin_inset Flex Code
5777 status collapsed
5778
5779 \begin_layout Plain Layout
5780 bbl
5781 \end_layout
5782
5783 \end_inset
5784
5785 ファイルも利用することがよくあります。一方で、\SpecialChar LaTeX
5786 は解析の非常に難しい言語であり—\SpecialChar TeX
5787 自身だけが\SpecialChar TeX
5788 を理解することができると言われたりすることがあります—、\SpecialChar LaTeX
5789 ベースの変換子は
5790 、非常に簡単な文法に見えるものでさえ飲み込めず、複雑なものになると全く歯が立たないこともあります。例えば、この現行を書いている時点では、取扱説明書『
5791 \emph on
5792 埋込オブジェクト篇
5793 \emph default
5794 』は、他の変換子では書き出しができるのに、
5795 \begin_inset Flex Code
5796 status collapsed
5797
5798 \begin_layout Plain Layout
5799 htlatex
5800 \end_layout
5801
5802 \end_inset
5803
5804 では行うことができません。他には、数式をどう取り扱うかという問題があります。これらの変換子の典型的なものは、数式を小さな画像に変換して、HTML文書からこれらの
5805 画像へのリンクを張ります。これらの画像は、実は\SpecialChar LaTeX
5806 によって生成されているので、正確です。しかしながら、これらはうまく伸縮できないので、実際の文書の中で表現されるよう
5807 に—フォント寸が凡そ正しくなるように—見せようとすると、大変な苦労を伴います。
5808 \end_layout
5809
5810 \begin_layout Standard
5811 Alex Fernandezの
5812 \begin_inset Flex Code
5813 status collapsed
5814
5815 \begin_layout Plain Layout
5816 e\SpecialChar LyX
5817 er
5818 \end_layout
5819
5820 \end_inset
5821
5822  (
5823 \begin_inset CommandInset href
5824 LatexCommand href
5825 name "http://elyxer.nongnu.org/"
5826 target "http://elyxer.nongnu.org/"
5827
5828 \end_inset
5829
5830 )は、これらの問題の一部を解決します。特に、これは数式を画像に変換するのではなく、HTMLとCSSを組み合わせて数式を生成するので、生成される数式は完璧な大きさ
5831 に伸縮されて表示されます。しかしながら、ちょっとだけ複雑な数式でさえ、
5832 \begin_inset Flex Code
5833 status collapsed
5834
5835 \begin_layout Plain Layout
5836 htlatex
5837 \end_layout
5838
5839 \end_inset
5840
5841 よりも質が落ちます。これはHTMLの限界を示しています
5842 \begin_inset Foot
5843 status collapsed
5844
5845 \begin_layout Plain Layout
5846 とはいえ、
5847 \begin_inset Flex Code
5848 status collapsed
5849
5850 \begin_layout Plain Layout
5851 e\SpecialChar LyX
5852 er
5853 \end_layout
5854
5855 \end_inset
5856
5857 では、数式用にjsMathとMathJaxを使用することもできます。ただし、この設定はグローバルにしか設定することができず、バックエンドで実行させるサーバへのア
5858 クセスが利用できる必要があります。
5859 \end_layout
5860
5861 \end_inset
5862
5863 。さらに重要なことは(少なくとも第1.1.1版においては)、
5864 \begin_inset Flex Code
5865 status collapsed
5866
5867 \begin_layout Plain Layout
5868 e\SpecialChar LyX
5869 er
5870 \end_layout
5871
5872 \end_inset
5873
5874 は数式マクロを一部しかサポートしておらず、ユーザ定義の段落様式や文字様式をサポートしていません。これらの制約によって、\SpecialChar LyX
5875 ユーザが生成する文書の多くにとっては、
5876 \begin_inset Flex Code
5877 status collapsed
5878
5879 \begin_layout Plain Layout
5880 e\SpecialChar LyX
5881 er
5882 \end_layout
5883
5884 \end_inset
5885
5886 は不向きなものになっています。もちろん、原理的に、これらの問題を解決することもできたのですが、\SpecialChar LyX
5887 開発陣は別の方法を採ることとし、\SpecialChar LyX
5888 が\SpecialChar LaTeX
5889 やDocBook、平文を書き出す
5890 ことができるのと同様に、\SpecialChar LyX
5891 自身にXHTMLを書きだす能力を身につけさせることとしたのです。
5892 \end_layout
5893
5894 \begin_layout Standard
5895 この原稿執筆時点では、XHTML出力は開発途上であり、おそらく「実験的」機能として解されるべきでしょう
5896 \begin_inset Foot
5897 status collapsed
5898
5899 \begin_layout Plain Layout
5900 \SpecialChar LyX
5901 ソースツリーもしくは
5902 \begin_inset CommandInset href
5903 LatexCommand href
5904 name "オンラインでのアクセス"
5905 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
5906
5907 \end_inset
5908
5909 にある
5910 \begin_inset Flex Code
5911 status collapsed
5912
5913 \begin_layout Plain Layout
5914 development/HTML.notes
5915 \end_layout
5916
5917 \end_inset
5918
5919 ファイルには、通常、XHTML出力の現状についての最新の情報が収録されています。
5920 \begin_inset CommandInset href
5921 LatexCommand href
5922 name "バグ追跡ページ"
5923 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"
5924
5925 \end_inset
5926
5927 にあるXHTML関連バグ一覧も参照のこと。
5928 \end_layout
5929
5930 \end_inset
5931
5932 。それでもこのアプローチは、他の2つの方法よりも、潜在的な利点がいくつもあるので、開発陣はこの方法を選択したのです。
5933 \end_layout
5934
5935 \begin_layout Standard
5936 これらの利点は、主に、XHTML出力ルーチンが\SpecialChar LyX
5937 の一部となっているため、\SpecialChar LyX
5938 が出力する文書について\SpecialChar LyX
5939 が関知しているところのものは、すべて知り得るというところから来ていま
5940
5941 \begin_inset Foot
5942 status collapsed
5943
5944 \begin_layout Plain Layout
5945 他には、これらのルーチンが\SpecialChar LyX
5946 内部にあるため、\SpecialChar LyX
5947 ファイル形式や既存の差込枠の文法に変更があっても、影響を受けずに済むという利点もあります。
5948 \end_layout
5949
5950 \end_inset
5951
5952 。つまり、XHTML出力ルーチンは、(文書構造に表示されるような形での)目次や、それぞれの段落様式に関連付けられたカウンタや、ユーザ定義の様式についても知ってい
5953 るのです。XHTML出力ルーチンは、国際化について\SpecialChar LyX
5954 が関知しているものも知っているので、ちょうどその時に有効になっている言語に依存して、「Chapter
5955  1」と出力されたり、「Kapitel 1」と出力されたりするのです。
5956 \end_layout
5957
5958 \begin_layout Standard
5959 汎く一般的に、出力ルーチンは、\SpecialChar LyX
5960 が文書レイアウトについて関知しているものは知っており、したがって、文書が画面上にどのように描画されるかも知っています。文書をXHT
5961 MLに出力するときには、この情報を利用します。特に、\SpecialChar LyX
5962 は、文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
5963 \emph on
5964 自動的に
5965 \emph default
5966 生成します。もし節見出しが、\SpecialChar LyX
5967 中でサンセリフ体かつボールド体であるとすると、(既定では)ウェブブラウザに表示した時にも、サンセリフでボールドになります。これは、節
5968 のような定義済み様式だけでなく、ユーザ定義のものも含めて、すべての様式でそうです。実際、XHTML出力ルーチンは、ユーザ定義の段落・文字様式と、\SpecialChar LyX
5969 自身の定義済み様
5970 式とを区別しません。どちらの場合も、\SpecialChar LyX
5971 が様式について関知しているところのものは、全てレイアウトファイルに含まれています。これは、脚注のような定義済み差込枠や、各種
5972 ユーザ設定差込枠でもそうです。
5973 \end_layout
5974
5975 \begin_layout Standard
5976 結果として、XHTML出力は、レイアウトファイルやモジュールを通して、\SpecialChar LaTeX
5977 出力と全く同じように、ユーザが設定したり拡張したりすることができるのです。詳細については、
5978 取扱説明書『
5979 \emph on
5980 カスタマイズ篇
5981 \emph default
5982 』の第5章をごらんください。
5983 \end_layout
5984
5985 \begin_layout Standard
5986 本章の残りでは、XHTML出力についての、さらに詳細な情報について取り扱い、その制約や、制約の回避の仕方を取り扱います。
5987 \end_layout
5988
5989 \begin_layout Section
5990 XHTMLにおける数式出力
5991 \end_layout
5992
5993 \begin_layout Standard
5994 \SpecialChar LyX
5995 では、数式描画に4つの方法を選択できます。以下に示すように、それぞれに利点と欠点があります。
5996 \end_layout
5997
5998 \begin_layout Itemize
5999 MathML
6000 \begin_inset Newline newline
6001 \end_inset
6002
6003 MathMLは、ウェブ上で数学を用いるために、特にデザインされたXMLの一方言であり、これをサポートするブラウザ上では、通常、特に美しい表現が得られます。欠点は
6004 、すべてのブラウザがMathMLをサポートしているわけではないという事と、FirefoxのようなGeckoベースのブラウザでも、サポートが完璧ではないという事で
6005 す。
6006 \begin_inset Newline newline
6007 \end_inset
6008
6009 例えば、数式が
6010 \begin_inset Flex Code
6011 status collapsed
6012
6013 \begin_layout Plain Layout
6014 xymatrix
6015 \end_layout
6016
6017 \end_inset
6018
6019 パッケージを使用していたり、\SpecialChar TeX
6020 コードを使用しているなどで、もし\SpecialChar LyX
6021 が数式をMathMLとして描画できないとすると、\SpecialChar LyX
6022 は数式を代わりに画像として出力します。
6023  
6024 \end_layout
6025
6026 \begin_layout Itemize
6027 HTML
6028 \begin_inset Newline newline
6029 \end_inset
6030
6031 前述のとおり、
6032 \begin_inset Flex Code
6033 status collapsed
6034
6035 \begin_layout Plain Layout
6036 elyxer
6037 \end_layout
6038
6039 \end_inset
6040
6041 は、数式をCSSで装飾したHTMLとして出力します
6042 \begin_inset Foot
6043 status collapsed
6044
6045 \begin_layout Plain Layout
6046 \SpecialChar LyX
6047 は、
6048 \begin_inset Flex Code
6049 status collapsed
6050
6051 \begin_layout Plain Layout
6052 elyxer
6053 \end_layout
6054
6055 \end_inset
6056
6057 からのHTML出力のために、CSSの一部を拝借しています。
6058 \end_layout
6059
6060 \end_inset
6061
6062 。簡単な数式では、これは非常にうまく行きますが、少し複雑な数式になると、
6063 \begin_inset Flex Code
6064 status collapsed
6065
6066 \begin_layout Plain Layout
6067 elyxer
6068 \end_layout
6069
6070 \end_inset
6071
6072 は歯が立たなくなります。それでも、この方法は非常に広くサポートされているという利点があり、かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう。
6073 \begin_inset Newline newline
6074 \end_inset
6075
6076 例えば、数式が
6077 \begin_inset Flex Code
6078 status collapsed
6079
6080 \begin_layout Plain Layout
6081 xymatrix
6082 \end_layout
6083
6084 \end_inset
6085
6086 パッケージを使用していたり、\SpecialChar TeX
6087 コードを使用しているなどで、もし\SpecialChar LyX
6088 が数式をHTMLとして描画できないとすると、\SpecialChar LyX
6089 は数式を代わりに画像として出力します。
6090  
6091 \end_layout
6092
6093 \begin_layout Itemize
6094 画像
6095 \begin_inset Newline newline
6096 \end_inset
6097
6098
6099 \begin_inset Flex Code
6100 status collapsed
6101
6102 \begin_layout Plain Layout
6103 htlatex
6104 \end_layout
6105
6106 \end_inset
6107
6108 のように、\SpecialChar LyX
6109 は数式を画像としても出力できます。この画像は、実は、自動プレビューで使用されているものと全く同じです
6110 \begin_inset Foot
6111 status collapsed
6112
6113 \begin_layout Plain Layout
6114 ただし、画像を出力に使うために、自動プレビューを入にしておく必要は
6115 \emph on
6116 ありません
6117 \emph default
6118
6119 \end_layout
6120
6121 \end_inset
6122
6123 。この方法の利点は、画像が他ならぬ\SpecialChar LaTeX
6124 によって生成されているので、非常に正確であることです。欠点は、前述したとおり、画像がビットマップなので、伸縮が全くうまく行かな
6125 かったり、コピーが出来なかったりといったことがあります(執筆時点においては、数式の付番にも問題があります。
6126 \begin_inset CommandInset href
6127 LatexCommand href
6128 name "バグ 6894"
6129 target "http://www.lyx.org/trac/ticket/6894"
6130
6131 \end_inset
6132
6133 を参照のこと。)。
6134 \begin_inset Newline newline
6135 \end_inset
6136
6137 画像の寸法は、
6138 \begin_inset Flex MenuItem
6139 status collapsed
6140
6141 \begin_layout Plain Layout
6142 文書\SpecialChar menuseparator
6143 設定\SpecialChar menuseparator
6144 出力
6145 \end_layout
6146
6147 \end_inset
6148
6149 の「数式画像の伸縮」パラメータを変更することで制御できます
6150 \begin_inset Foot
6151 status collapsed
6152
6153 \begin_layout Plain Layout
6154 必要な方のために述べておくと、これは、画像の解像度をdpi (1インチあたりドット数)で制御するためのもので、75dpiを基準としています。
6155 \end_layout
6156
6157 \end_inset
6158
6159
6160 \begin_inset Newline newline
6161 \end_inset
6162
6163 もし\SpecialChar LyX
6164 が、何らかの理由によって数式の画像を生成できない(例えば、必要な\SpecialChar LaTeX
6165 パッケージが導入済みでないなど)ときは、回避策として、生の\SpecialChar LaTeX
6166 を出力します。
6167 \end_layout
6168
6169 \begin_layout Itemize
6170 \SpecialChar LaTeX
6171
6172 \begin_inset Newline newline
6173 \end_inset
6174
6175 最後に、\SpecialChar LyX
6176 は、数式を\SpecialChar LaTeX
6177 としても出力することができます。この方法は、最終手段としての出力方法である一方で、HTML文書に埋め込まれた\SpecialChar LaTeX
6178 を描画するのにJavaScript
6179 を使用する、
6180 \begin_inset CommandInset href
6181 LatexCommand href
6182 name "jsMath"
6183 target "http://www.math.union.edu/~dpvc/jsMath/"
6184
6185 \end_inset
6186
6187 のようなツールとともに使用することもできます。\SpecialChar LyX
6188 は、jsMathで必要とされているのと同じように、\SpecialChar LaTeX
6189 部分を、
6190 \begin_inset Flex Code
6191 status collapsed
6192
6193 \begin_layout Plain Layout
6194 span
6195 \end_layout
6196
6197 \end_inset
6198
6199 (行内数式用)または
6200 \begin_inset Flex Code
6201 status collapsed
6202
6203 \begin_layout Plain Layout
6204 div
6205 \end_layout
6206
6207 \end_inset
6208
6209 (別行立て数式用)に
6210 \begin_inset Flex Code
6211 status collapsed
6212
6213 \begin_layout Plain Layout
6214 class='math'
6215 \end_layout
6216
6217 \end_inset
6218
6219 を指定したもので、包んで出力します。
6220 \end_layout
6221
6222 \begin_layout Standard
6223 これらの出力方法のいずれかを
6224 \begin_inset Flex MenuItem
6225 status collapsed
6226
6227 \begin_layout Plain Layout
6228 文書\SpecialChar menuseparator
6229 設定\SpecialChar menuseparator
6230 出力
6231 \end_layout
6232
6233 \end_inset
6234
6235 で選択しなくてはなりません。既定では、\SpecialChar LyX
6236 はMathMLで出力を行います。これは、文書全体に適用される設定となります。
6237 \end_layout
6238
6239 \begin_layout Standard
6240 最後に、\SpecialChar LyX
6241 では、例えば、MathMLではあまりうまく出力されないような差込枠に対して、別の出力方法を選択できる選択肢が用意されています
6242 \begin_inset Foot
6243 status collapsed
6244
6245 \begin_layout Plain Layout
6246 その他にも、\SpecialChar LyX
6247 は、差込枠に\SpecialChar TeX
6248 コードが含まれていると画像出力に回帰するので、数式中に
6249 \begin_inset Formula $a=b\relax$
6250 \end_inset
6251
6252 のような無害な\SpecialChar TeX
6253 コードを挿入することによって、画像出力を強制することができます。
6254 \end_layout
6255
6256 \end_inset
6257
6258
6259 \end_layout
6260
6261 \begin_layout Section
6262 書誌情報と引用
6263 \end_layout
6264
6265 \begin_layout Standard
6266 XHTML出力は、書誌情報と引用を完全にサポートしています。
6267 \end_layout
6268
6269 \begin_layout Standard
6270 引用ラベルは、\SpecialChar LyX
6271 画面上のラベルを生成するのと同じ機構で生成されているので、出力中のラベルは、\SpecialChar LyX
6272 中の外見と同質またはそれよりも上質な仕上がりとなっています。連番引用を
6273 使用している場合には、\SpecialChar LyX
6274 は、画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく、[1]や[17]などの連番ラベルを出力します。著者-出版年
6275 形式の引用を使用している場合で、同じ著者-出版年の組み合わせが複数ある場合、\SpecialChar LyX
6276 は、Bib\SpecialChar TeX
6277 が行うように出版年に小文字を付します。ラベルは、書誌情報項目とともに印字さ
6278 れます。現在のところ、角括弧を丸括弧に変更するなど、ラベルの外見を変更する手段はありませんのでご注意ください。
6279 \end_layout
6280
6281 \begin_layout Standard
6282 書誌情報出力は、引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので、XHTML出力は、引用ダイアログで特定の文献項目を表示させた時のものに
6283 非常によく似ています。整形の仕方は、レイアウトファイルや望ましくはモジュールでカスタマイズすることができます。詳細については、取扱説明書『カスタマイズ篇』をご覧
6284 ください。
6285 \end_layout
6286
6287 \begin_layout Standard
6288 現在のところ、主だった瑕疵は、相互参照された情報が、関連した項目の全てに印字されてしまうことです。つまり、以下のような表示が為されます。
6289 \end_layout
6290
6291 \begin_layout Quote
6292 Jason Stanley, 
6293 \begin_inset Quotes eld
6294 \end_inset
6295
6296 Context and Logical Form
6297 \begin_inset Quotes erd
6298 \end_inset
6299
6300 , in 
6301 \emph on
6302 Language in Context: Selected Essays
6303 \emph default
6304  (Oxford: Oxford University Press, 2007), pp.
6305  30–68.
6306 \end_layout
6307
6308 \begin_layout Quote
6309 Jason Stanley, 
6310 \begin_inset Quotes eld
6311 \end_inset
6312
6313 Semantics in Context
6314 \begin_inset Quotes erd
6315 \end_inset
6316
6317 , in 
6318 \emph on
6319 Language in Context: Selected Essays
6320 \emph default
6321  (Oxford: Oxford University Press, 2007), pp.
6322  201–30.
6323 \end_layout
6324
6325 \begin_layout Standard
6326 これは、遠くないうちに修正されるでしょう。
6327 \end_layout
6328
6329 \begin_layout Standard
6330 現在のところ、節ごとの書誌情報出力はサポートされていません。複数の書誌情報がある場合には、\SpecialChar LyX
6331 は同じ情報を繰り返し出力してしまいます。
6332 \end_layout
6333
6334 \begin_layout Section
6335 索引
6336 \end_layout
6337
6338 \begin_layout Standard
6339 \SpecialChar LyX
6340 は、索引をXHTMLとして書きだすことができますが、現在のところ、若干の制約があります。
6341 \end_layout
6342
6343 \begin_layout Standard
6344 索引の書き出しは、
6345 \emph on
6346 ユーザーの手引き
6347 \emph default
6348 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが、信頼性が保てます
6349 \begin_inset Foot
6350 status collapsed
6351
6352 \begin_layout Plain Layout
6353 ここでの主な問題は、これらの操作の際に、\SpecialChar LyX
6354 自身は何もしていないという点です。つまり、生の\SpecialChar LaTeX
6355 で入力しなくてはならないようなものをそのまま入力しているのです。
6356 \end_layout
6357
6358 \end_inset
6359
6360 。当該節の小節見出しに沿って、それらがどう処理されるかを説明しましょう。
6361 \end_layout
6362
6363 \begin_layout Itemize
6364 索引項目のグループ化(下層項目): \SpecialChar LyX
6365 はこれらをサポートしようと努めていますが、項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません。これは、そうしな
6366 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです。
6367 \end_layout
6368
6369 \begin_layout Itemize
6370 ページ範囲: ページ範囲については、XHTMLでは意味がないので、全くサポートされません。その代わりに、引用項目のはじめと終わりの頁それぞれに、2つの索引項目が
6371 得られるだけです。
6372 \end_layout
6373
6374 \begin_layout Itemize
6375 相互参照: 相互参照のサポートはありません。\SpecialChar LyX
6376 が「|see\SpecialChar ldots
6377 」という下だりを持つ項目を検出すると、その部分はただ無視されて、残りの部分が通常の索引項目だとみなされま
6378 す。
6379 \end_layout
6380
6381 \begin_layout Itemize
6382 索引項目の整序: \SpecialChar LyX
6383 は整序順の変更をサポートします。\SpecialChar LyX
6384 は、最初に検出した「@」の前の部分を取り出して、それを整序に用い、最初の「@」の後の部分を実際の項目として取り
6385 出します。現在のところ、\SpecialChar LyX
6386 はエスケープされた「@」を取り扱わないので、電子メールアドレスを索引に使わないでください。
6387 \end_layout
6388
6389 \begin_layout Itemize
6390 索引項目のレイアウト: 項目は、テキスト様式ダイアログを使うなり、\SpecialChar LyX
6391 内で使用可能な方法を用いることで、索引項目を成形することができます。「項目|textbf」のよ
6392 うな文法はサポートされません。\SpecialChar LyX
6393 は、項目内にパイプ記号「|」を検出すると、パイプ記号とその後に続くものすべてを削除してしまいます。
6394 \end_layout
6395
6396 \begin_layout Itemize
6397 複数の索引: 複数の索引はサポートされていません。すべての項目は、ひとつの大きな索引として印字されます。索引が何度も印字されることを防ぐため、中心となる索引だけ
6398 を印字しますので、その索引は必ず置くようにしてください。
6399 \end_layout
6400
6401 \begin_layout Section
6402 記号一覧および用語集
6403 \end_layout
6404
6405 \begin_layout Standard
6406 現在のところ、用語集のサポートはありません。この機能の追加は、比較的容易だと思われますので、あなたの貢献をお待ちしております。
6407 \end_layout
6408
6409 \begin_layout Chapter
6410 \SpecialChar LyX
6411 サーバー
6412 \begin_inset CommandInset label
6413 LatexCommand label
6414 name "chap:LyXサーバー"
6415
6416 \end_inset
6417
6418
6419 \end_layout
6420
6421 \begin_layout Section
6422 はじめに
6423 \end_layout
6424
6425 \begin_layout Standard
6426 「\SpecialChar LyX
6427 サーバー」を使用すると、他のプログラムが、\SpecialChar LyX
6428 と通信したり、\SpecialChar LyX
6429 コマンドを実行させたり、\SpecialChar LyX
6430 の内部状態に関する情報を取得したりすることができるようになります。これは熟練し
6431 たユーザー向けの機能ですが、便利なはずです。たとえば、\SpecialChar LyX
6432 サーバーに書き込むことによって、JabRefのような書誌情報管理ソフトが、LyXに文献引用を「押し込む」こ
6433 とが可能となります。
6434 \end_layout
6435
6436 \begin_layout Section
6437 \SpecialChar LyX
6438 サーバーを開始するには
6439 \end_layout
6440
6441 \begin_layout Standard
6442 \SpecialChar LyX
6443 サーバーは、名前をつけたパイプの対を利用することで機能します。パイプは、通常
6444 \begin_inset Flex Code
6445 status collapsed
6446
6447 \begin_layout Plain Layout
6448 UserDir
6449 \end_layout
6450
6451 \end_inset
6452
6453 の下に作られ(Windowsを除く。Windowsでは、名前を付けた
6454 \emph on
6455 ローカルの
6456 \emph default
6457 パイプは
6458 \begin_inset Flex Code
6459 status collapsed
6460
6461 \begin_layout Plain Layout
6462
6463 \backslash
6464
6465 \backslash
6466 .
6467 \backslash
6468 pipe
6469 \end_layout
6470
6471 \end_inset
6472
6473 に特別なオブジェクトとして置かれます)、「
6474 \begin_inset Flex Code
6475 status collapsed
6476
6477 \begin_layout Plain Layout
6478 .lyxpipe.in
6479 \end_layout
6480
6481 \end_inset
6482
6483 」および「
6484 \begin_inset Flex Code
6485 status collapsed
6486
6487 \begin_layout Plain Layout
6488 .lyxpipe.out
6489 \end_layout
6490
6491 \end_inset
6492
6493 」という名前がついています。外部プログラムは、
6494 \begin_inset Flex Code
6495 status collapsed
6496
6497 \begin_layout Plain Layout
6498 .lyxpipe.in
6499 \end_layout
6500
6501 \end_inset
6502
6503 に書き込みを行い、戻りデータを
6504 \begin_inset Flex Code
6505 status collapsed
6506
6507 \begin_layout Plain Layout
6508 .lyxpipe.out
6509 \end_layout
6510
6511 \end_inset
6512
6513 から読み出します。パイプ名の語幹は、
6514 \begin_inset Flex MenuItem
6515 status collapsed
6516
6517 \begin_layout Plain Layout
6518 ツール\SpecialChar menuseparator
6519 設定
6520 \end_layout
6521
6522 \end_inset
6523
6524 から、たとえば「
6525 \begin_inset Flex Code
6526 status collapsed
6527
6528 \begin_layout Plain Layout
6529 /home/myhome/lyxpipe
6530 \end_layout
6531
6532 \end_inset
6533
6534 」あるいはWindowsでは「
6535 \begin_inset Flex Code
6536 status collapsed
6537
6538 \begin_layout Plain Layout
6539
6540 \backslash
6541
6542 \backslash
6543 .
6544 \backslash
6545 pipe
6546 \backslash
6547 lyxpipe
6548 \end_layout
6549
6550 \end_inset
6551
6552 」などに設定することができます
6553 \lang english
6554 (where any working path instead of lyxpipe can be used, for example 
6555 \begin_inset Flex Code
6556 status collapsed
6557
6558 \begin_layout Plain Layout
6559
6560 \lang english
6561 "
6562 \backslash
6563
6564 \backslash
6565 .
6566 \backslash
6567 pipe
6568 \backslash
6569 my
6570 \backslash
6571 lyx
6572 \backslash
6573 pipe"
6574 \end_layout
6575
6576 \end_inset
6577
6578  would also work)
6579 \lang japanese
6580 。サーバーを開始するためには、これを
6581 \emph on
6582 手動で設定しなくてはなりません
6583 \emph default
6584
6585 \end_layout
6586
6587 \begin_layout Standard
6588 \SpecialChar LyX
6589 は、パイプを生成するに際して、「
6590 \begin_inset Flex Code
6591 status collapsed
6592
6593 \begin_layout Plain Layout
6594 .in
6595 \end_layout
6596
6597 \end_inset
6598
6599 」および「
6600 \begin_inset Flex Code
6601 status collapsed
6602
6603 \begin_layout Plain Layout
6604 .out
6605 \end_layout
6606
6607 \end_inset
6608
6609 」を付け加えます。パイプがすでに存在していれば、\SpecialChar LyX
6610 は他の\SpecialChar LyX
6611 プロセスがすでに実行中であると判断して、サーバーを開始しません。POSIX(Unix型)システムでは、なん
6612 らかの理由で、\SpecialChar LyX
6613 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると、\SpecialChar LyX
6614 はこれを削除しようとします。何らかの理由でこれが失敗した場合、手動でパイ
6615 プを削除したのちに、\SpecialChar LyX
6616 を再起動する必要があります。Windowsでは、プログラムが終了したりクラッシュしたりすると、OSがパイプを削除するので、「古い」パイプが残
6617 ることはありません。
6618 \end_layout
6619
6620 \begin_layout Standard
6621 サーバーを使用する\SpecialChar LyX
6622 プロセスを複数起動するには、それぞれのプロセスに、別のユーザーディレクトリを使用させたり、別々の
6623 \begin_inset Flex Code
6624 status collapsed
6625
6626 \begin_layout Plain Layout
6627 preferences
6628 \end_layout
6629
6630 \end_inset
6631
6632 ファイルを使用させるなど、別々の設定を使用する必要があります。
6633 \end_layout
6634
6635 \begin_layout Standard
6636 クライアントプログラムを開発しようとされているのであれば、\SpecialChar LyX
6637 サーバーからのデバッグ情報を有効にすると便利かもしれません。そのためには、Lyxを
6638 \begin_inset Flex Code
6639 status collapsed
6640
6641 \begin_layout Plain Layout
6642 lyx -dbg lyxserver
6643 \end_layout
6644
6645 \end_inset
6646
6647 として起動してください。
6648 \end_layout
6649
6650 \begin_layout Standard
6651 C++言語で書かれた完全なサンプルクライアントが、ソース頒布版の
6652 \begin_inset Newline newline
6653 \end_inset
6654
6655
6656 \begin_inset Flex Code
6657 status collapsed
6658
6659 \begin_layout Plain Layout
6660 development/lyxserver/server_monitor.cpp
6661 \end_layout
6662
6663 \end_inset
6664
6665 にあります。
6666 \end_layout
6667
6668 \begin_layout Standard
6669 もう一つの便利なツールとして、
6670 \begin_inset Flex Code
6671 status collapsed
6672
6673 \begin_layout Plain Layout
6674 src/client/lyxclient
6675 \end_layout
6676
6677 \end_inset
6678
6679 にあるコマンドラインベースのクライアントがあります。
6680 \end_layout
6681
6682 \begin_layout Section
6683 通常の通信
6684 \end_layout
6685
6686 \begin_layout Standard
6687 \SpecialChar LyX
6688 コールを発行するには、クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません。この行は、以下の書式を持ちます。
6689 \end_layout
6690
6691 \begin_layout Quote
6692 LYXCMD:
6693 \emph on
6694 クライアント名
6695 \emph default
6696 :
6697 \emph on
6698 関数
6699 \emph default
6700 :
6701 \emph on
6702 引数
6703 \end_layout
6704
6705 \begin_layout Description
6706 クライアント名 は、クライアントが自由に選べる名前です。これが用いられるのは、クライアントが他の要求クライアントから結果を見分けることができるように、\SpecialChar LyX
6707 が返答をす
6708 る際、クライアント名をエコーするときだけです。
6709 \end_layout
6710
6711 \begin_layout Description
6712 関数 は、\SpecialChar LyX
6713 に実行させたい関数です。これは、ミニバッファで使用するコマンドと同じです。
6714 \end_layout
6715
6716 \begin_layout Description
6717 引数 は、一部の関数のみに効力を持つオプションの引数です(たとえば、「自己挿入」LFUNは、現在のカーソル位置に引数を文章として挿入します)。
6718 \end_layout
6719
6720 \begin_layout Standard
6721 \SpecialChar LyX
6722 からの返答は、出力パイプに送り出され、
6723 \end_layout
6724
6725 \begin_layout Quote
6726 INFO:
6727 \emph on
6728 クライアント名
6729 \emph default
6730 :
6731 \emph on
6732 関数
6733 \emph default
6734 :
6735 \emph on
6736 データ
6737 \end_layout
6738
6739 \begin_layout Standard
6740 の書式をしています。ここで
6741 \emph on
6742 クライアント名
6743 \emph default
6744
6745 \emph on
6746 関数
6747 \emph default
6748 は、コマンド要求からそのままエコーされますが、
6749 \emph on
6750 データ
6751 \emph default
6752 はコマンド実行の結果に依存した、多少なりとも有用な情報です。「font-state」のような一部のコマンドは、\SpecialChar LyX
6753 の内部状態に関する情報を返しますが、空のデータ応答
6754 を返すものもあります。空のデータ返答は、コマンド実行が無事終わったことを意味します。
6755 \end_layout
6756
6757 \begin_layout Standard
6758 エラーが発生した場合の\SpecialChar LyX
6759 の返答は
6760 \end_layout
6761
6762 \begin_layout Quote
6763 ERROR:
6764 \emph on
6765 クライアント名
6766 \emph default
6767 :
6768 \emph on
6769 関数
6770 \emph default
6771 :
6772 \emph on
6773 エラーメッセージ
6774 \end_layout
6775
6776 \begin_layout Standard
6777 の書式をしており、
6778 \emph on
6779 エラーメッセージ
6780 \emph default
6781 には、なぜコマンドが失敗したかの説明が入っているはずです。
6782 \end_layout
6783
6784 \begin_layout Standard
6785 (例)
6786 \end_layout
6787
6788 \begin_layout LyX-Code
6789 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6790 \begin_inset Newline newline
6791 \end_inset
6792
6793 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6794 \begin_inset Newline newline
6795 \end_inset
6796
6797 read a <~/.lyxpipe.out
6798 \begin_inset Newline newline
6799 \end_inset
6800
6801 echo $a
6802 \end_layout
6803
6804 \begin_layout Section
6805 通知
6806 \end_layout
6807
6808 \begin_layout Standard
6809 \SpecialChar LyX
6810 は、発生しているイベントを、非同期的にクライアントに通知することができます。いまのところ、ユーザーがある
6811 \begin_inset Flex Ruby
6812 status collapsed
6813
6814 \begin_layout Plain Layout
6815
6816 \begin_inset Argument post:1
6817 status collapsed
6818
6819 \begin_layout Plain Layout
6820 キー
6821 \end_layout
6822
6823 \end_inset
6824
6825
6826 \end_layout
6827
6828 \end_inset
6829
6830 列を関数「notify」に割り当てているときのみ、\SpecialChar LyX
6831 はこの通知を行います。\SpecialChar LyX
6832 が送る文字列の書式は
6833 \end_layout
6834
6835 \begin_layout Quote
6836 \begin_inset Flex Code
6837 status collapsed
6838
6839 \begin_layout Plain Layout
6840 NOTIFY:
6841 \end_layout
6842
6843 \end_inset
6844
6845
6846 \emph on
6847 鍵列
6848 \end_layout
6849
6850 \begin_layout Standard
6851 となっていて、
6852 \emph on
6853 鍵列
6854 \emph default
6855 は、ユーザーが実際に打鍵した鍵列の印字表現になります。
6856 \end_layout
6857
6858 \begin_layout Standard
6859 この機構は、\SpecialChar LyX
6860 のコマンド群を拡張してマクロを実装するのに使用することができます。なんらかの鍵列を「notify」に割り当ててください。それから出力パイプで待機する
6861 クライアントを起動し、鍵列に応じたコマンドを読み込み、一つないし複数の\SpecialChar LyX
6862 コマンドを発行する\SpecialChar LyX
6863 要求と\SpecialChar LyX
6864 コールを使用する関数を開始するのです。
6865 \end_layout
6866
6867 \begin_layout Section
6868 単純な\SpecialChar LyX
6869 サーバープロトコル
6870 \end_layout
6871
6872 \begin_layout Standard
6873 \SpecialChar LyX
6874 は、セッション管理に使用することができる単純なプロトコルを実装しています。メッセージは、すべて
6875 \end_layout
6876
6877 \begin_layout Quote
6878 LYXSRV:
6879 \emph on
6880 クライアント名
6881 \emph default
6882 :
6883 \emph on
6884 プロトコルメッセージ
6885 \end_layout
6886
6887 \begin_layout Standard
6888 の書式をしており、
6889 \emph on
6890 プロトコルメッセージ
6891 \emph default
6892 は「hello」ないし「bye」です。クライアントから「hello」を受け取ると、\SpecialChar LyX
6893 はメッセージを聴いていることをクライアントに伝えるために返答をし、\SpecialChar LyX
6894 が終了するこ
6895 とをクライアントに伝えるのには、\SpecialChar LyX
6896 が「bye」を送信します。
6897 \end_layout
6898
6899 \begin_layout Section
6900 DVIとPDFの遡及検索
6901 \end_layout
6902
6903 \begin_layout Standard
6904 DVI/PDFビューア
6905 \begin_inset Foot
6906 status collapsed
6907
6908 \begin_layout Plain Layout
6909 PDFの遡及検索機能を提供しているビューアには、KDE/Linux上のOkularと
6910 \lang english
6911 Qpdfview on Unix
6912 \lang japanese
6913 とMac OS X上のSkim、Windows上のSumatraPDFがあります。
6914 \end_layout
6915
6916 \end_inset
6917
6918 には、遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります。これを使えば、DVI/PDF出力の
6919 特定の場所をクリックすることによって、\SpecialChar LyX
6920 の文書中で対応する行にカーソルを移動させることができます。これを実現するためには、ビューアは\SpecialChar LyX
6921 と情報交換を行う必要があります
6922 。これは、命名パイプ(
6923 \emph on
6924 lyxpipe
6925 \emph default
6926 )を使用するか、\SpecialChar LyX
6927 が作業ディレクトリに生成するUNIXドメインソケット(
6928 \emph on
6929 lyxsocket
6930 \emph default
6931 )を使用する(これは
6932 \begin_inset Flex Code
6933 status collapsed
6934
6935 \begin_layout Plain Layout
6936 lyxclient
6937 \end_layout
6938
6939 \end_inset
6940
6941 プログラムが\SpecialChar LyX
6942 と通信するのに使用している方法です)ことで、\SpecialChar LyX
6943 サーバを経由して実現することができます。場合によっては、ビューアと\SpecialChar LyX
6944 を橋渡しする補助スクリプトを必要とする
6945 ことがあるかもしれませんが、それ以外は、ビューアは\SpecialChar LyX
6946 と直接通信することができます。これは、選んだビューアと基本ソフトに依存します。また、必要とされるビューアの設定
6947 法と遡及検索が実際に行われる方法とにも依存します。したがって、下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします。その前に、DVI/PDF出力
6948 で遡及検索を有効にするためには、一般に何が必要とされるかを説明します。
6949 \end_layout
6950
6951 \begin_layout Subsection
6952 \begin_inset CommandInset label
6953 LatexCommand label
6954 name "subsec:遡及検索"
6955
6956 \end_inset
6957
6958 自動有効化
6959 \end_layout
6960
6961 \begin_layout Standard
6962 \begin_inset Flex MenuItem
6963 status collapsed
6964
6965 \begin_layout Plain Layout
6966 文書\SpecialChar menuseparator
6967 設定\SpecialChar menuseparator
6968 出力
6969 \end_layout
6970
6971 \end_inset
6972
6973 メニューで
6974 \begin_inset Flex MenuItem
6975 status collapsed
6976
6977 \begin_layout Plain Layout
6978 出力と同期
6979 \end_layout
6980
6981 \end_inset
6982
6983 オプションを有効にすれば、ほとんどの場合、\SpecialChar LyX
6984 がすべてをうまくこなしてくれます。その場合、\SpecialChar LyX
6985 は、自動的に、必要なSync\SpecialChar TeX
6986 マクロ(PDFの場合)や、srcltxパッケー
6987 ジ(DVIの場合)を挿入してくれます。このオプションは、
6988 \begin_inset Flex MenuItem
6989 status collapsed
6990
6991 \begin_layout Plain Layout
6992 表示/更新
6993 \end_layout
6994
6995 \end_inset
6996
6997 ツールバーからも容易にアクセスすることができます。
6998 \end_layout
6999
7000 \begin_layout Standard
7001 もし、これとは別の設定が必要な場合には、
7002 \begin_inset Flex MenuItem
7003 status collapsed
7004
7005 \begin_layout Plain Layout
7006 文書\SpecialChar menuseparator
7007 設定\SpecialChar menuseparator
7008 出力\SpecialChar menuseparator
7009 出力と同期
7010 \end_layout
7011
7012 \end_inset
7013
7014 の直下にあるドロップダウンボックスから、自製マクロを選択ないし入力することができます。
7015 \end_layout
7016
7017 \begin_layout Standard
7018 方式として
7019 \begin_inset Flex Code
7020 status collapsed
7021
7022 \begin_layout Plain Layout
7023
7024 \backslash
7025 synctex=1
7026 \end_layout
7027
7028 \end_inset
7029
7030 を用いると、gzip圧縮が有効となることに注意してください。使用しているビューアがgzip圧縮をサポートしていない場合には、代わりに
7031 \begin_inset Flex Code
7032 status collapsed
7033
7034 \begin_layout Plain Layout
7035
7036 \backslash
7037 synctex=-1
7038 \end_layout
7039
7040 \end_inset
7041
7042 を指定してください。
7043 \end_layout
7044
7045 \begin_layout Standard
7046 また、
7047 \begin_inset Flex Code
7048 status collapsed
7049
7050 \begin_layout Plain Layout
7051 srcltx
7052 \end_layout
7053
7054 \end_inset
7055
7056 パッケージや
7057 \begin_inset Flex Code
7058 status collapsed
7059
7060 \begin_layout Plain Layout
7061 src-specials
7062 \end_layout
7063
7064 \end_inset
7065
7066 を取り込むと、組版上、不具合が生じることがあるのでご注意ください。したがって、
7067 \begin_inset Flex Code
7068 status collapsed
7069
7070 \begin_layout Plain Layout
7071 srcltx
7072 \end_layout
7073
7074 \end_inset
7075
7076 パッケージや
7077 \begin_inset Flex Code
7078 status collapsed
7079
7080 \begin_layout Plain Layout
7081 src-specials
7082 \end_layout
7083
7084 \end_inset
7085
7086 を使用している場合には、最終版を組版する際には、出力同期を無効にするべきです。
7087 \end_layout
7088
7089 \begin_layout Standard
7090 自動設定でカバーされている範囲よりも、さらに特殊なものが必要な場合には、出力同期を手動で設定する仕方を述べた次節をお読みください。自動設定で事足りる場合には、自
7091 動設定・手動設定ともに必要となるビューア上の設定を述べた、第
7092 \begin_inset CommandInset ref
7093 LatexCommand ref
7094 reference "subsec:特定のビューアを設定して使うには"
7095
7096 \end_inset
7097
7098 節に進むことができます。
7099 \end_layout
7100
7101 \begin_layout Subsection
7102 手動有効化
7103 \end_layout
7104
7105 \begin_layout Standard
7106 \SpecialChar LaTeX
7107 は、遡及検索のために複数の方法を提供しています。ある方法は
7108 \begin_inset Flex Code
7109 status collapsed
7110
7111 \begin_layout Plain Layout
7112 latex/pdflatex
7113 \end_layout
7114
7115 \end_inset
7116
7117 プログラムに組み込まれており、他の方法は外部パッケージとして提供されています。どちらを選択するかは、お使いの\SpecialChar LaTeX
7118 頒布版が既に特定の方法を提供しているか(組み込みによ
7119 る方法は比較的新しいものです)と、お使いのビューアがそれに対応しているかに依存します。使用可能な方法を以下に述べます。
7120 \end_layout
7121
7122 \begin_layout Subsubsection*
7123 src-special経由のDVI組み込み検索(DVIのみ)
7124 \end_layout
7125
7126 \begin_layout Standard
7127 この方法は、DVIファイルに遡及検索に必要な情報を追加するものです。これは、かなり前の\SpecialChar LaTeX
7128 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7129 頒布版はすべて対応しています)、安定
7130 して動作します。これを有効にするには、
7131 \begin_inset Flex MenuItem
7132 status collapsed
7133
7134 \begin_layout Plain Layout
7135 設定\SpecialChar menuseparator
7136 ファイル処理\SpecialChar menuseparator
7137 変換子
7138 \end_layout
7139
7140 \end_inset
7141
7142
7143 \begin_inset Flex MenuItem
7144 status collapsed
7145
7146 \begin_layout Plain Layout
7147 LaTeX (plain)->DVI
7148 \end_layout
7149
7150 \end_inset
7151
7152 ないし
7153 \begin_inset Flex MenuItem
7154 status collapsed
7155
7156 \begin_layout Plain Layout
7157 LaTeX (plain)->DraftDVI
7158 \end_layout
7159
7160 \end_inset
7161
7162 変換子を
7163 \begin_inset Flex Code
7164 status collapsed
7165
7166 \begin_layout Plain Layout
7167 latex -src-specials $$i
7168 \end_layout
7169
7170 \end_inset
7171
7172 に変更します。もしこれが動作しないときは、お使いの\SpecialChar LaTeX
7173 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります)。
7174 \end_layout
7175
7176 \begin_layout Subsubsection*
7177 外部パッケージ(PDFSyncおよびsrcltx)
7178 \end_layout
7179
7180 \begin_layout Standard
7181
7182 \emph on
7183 pdfsync
7184 \emph default
7185 および
7186 \emph on
7187 srcltx
7188 \emph default
7189 パッケージは、PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します。これを有効にするには、\SpecialChar LyX
7190 プリアンブルで以下のようにパッケージを読み込んで
7191 ください。
7192 \end_layout
7193
7194 \begin_layout Itemize
7195 PDFの遡及検索には
7196 \begin_inset Flex Code
7197 status collapsed
7198
7199 \begin_layout Plain Layout
7200
7201 \backslash
7202 usepackage{pdfsync}
7203 \end_layout
7204
7205 \end_inset
7206
7207
7208 \end_layout
7209
7210 \begin_layout Itemize
7211 DVIの遡及検索には
7212 \begin_inset Flex Code
7213 status collapsed
7214
7215 \begin_layout Plain Layout
7216
7217 \backslash
7218 usepackage[active]{srcltx}
7219 \end_layout
7220
7221 \end_inset
7222
7223
7224 \end_layout
7225
7226 \begin_layout Standard
7227 と書きます。DVIとPDFの両方の遡及検索を実行できるようにするためには、プリアンブルに以下の行を挿入する方法があります。
7228 \end_layout
7229
7230 \begin_layout LyX-Code
7231
7232 \backslash
7233 usepackage{ifpdf}
7234 \begin_inset Newline newline
7235 \end_inset
7236
7237
7238 \backslash
7239 ifpdf
7240 \begin_inset Newline newline
7241 \end_inset
7242
7243   
7244 \backslash
7245 usepackage{pdfsync}
7246 \begin_inset Newline newline
7247 \end_inset
7248
7249
7250 \backslash
7251 else
7252 \begin_inset Newline newline
7253 \end_inset
7254
7255   
7256 \backslash
7257 usepackage[active]{srcltx}
7258 \begin_inset Newline newline
7259 \end_inset
7260
7261
7262 \backslash
7263 fi
7264 \end_layout
7265
7266 \begin_layout Standard
7267 このようにすれば、DVIでもPDF(pdflatex)でも正しいパッケージを使いながら、ファイルを閲覧することができます。
7268 \end_layout
7269
7270 \begin_layout Standard
7271 なお、PDFSyncは、文書の出力レイアウトに干渉する可能性があるので注意してください。したがって、仕上がり文書ではPDFSyncを無効にすることをお勧めします
7272
7273 \end_layout
7274
7275 \begin_layout Subsubsection*
7276 Sync\SpecialChar TeX
7277 を使った組み込み遡及検索(DVIおよびPDF)
7278 \end_layout
7279
7280 \begin_layout Standard
7281 \begin_inset Flex Code
7282 status collapsed
7283
7284 \begin_layout Plain Layout
7285 (pdf)latex
7286 \end_layout
7287
7288 \end_inset
7289
7290 の最近のバージョンは、PDFおよびDVI両方の遡及検索を組み込みでサポートしています。このいわゆる
7291 \emph on
7292 Sync\SpecialChar TeX
7293
7294 \emph default
7295 機能は、主に、PDFSyncパッケージをpdftexプログラムへ統合したことと、それをsrc-specialsアプローチへ取り込んだことの成果です。これを使用す
7296 るためには、少なくとも\SpecialChar TeX
7297 Live 2008か最近のMik\SpecialChar TeX
7298 頒布版が必要です。また、既にSync\SpecialChar TeX
7299 サポートを提供しているPDFビューアは少ししかありません(
7300 \lang english
7301 Okular and Qpdfview on Unix, 
7302 \lang japanese
7303 Mac上のSkimとWindows上のSumatraPDF)。
7304 \end_layout
7305
7306 \begin_layout Standard
7307 DVI出力でSync\SpecialChar TeX
7308 を有効にするには、
7309 \begin_inset Flex MenuItem
7310 status collapsed
7311
7312 \begin_layout Plain Layout
7313 設定\SpecialChar menuseparator
7314 ファイル処理\SpecialChar menuseparator
7315 変換子
7316 \end_layout
7317
7318 \end_inset
7319
7320
7321 \begin_inset Flex MenuItem
7322 status collapsed
7323
7324 \begin_layout Plain Layout
7325 LaTeX (plain)->DVI
7326 \end_layout
7327
7328 \end_inset
7329
7330 ないし
7331 \begin_inset Flex MenuItem
7332 status collapsed
7333
7334 \begin_layout Plain Layout
7335 LaTeX (plain)->DraftDVI
7336 \end_layout
7337
7338 \end_inset
7339
7340 変換子を
7341 \begin_inset Flex Code
7342 status collapsed
7343
7344 \begin_layout Plain Layout
7345 latex -synctex=1 $$i
7346 \end_layout
7347
7348 \end_inset
7349
7350 に変更します。PDF出力用には、
7351 \begin_inset Flex MenuItem
7352 status collapsed
7353
7354 \begin_layout Plain Layout
7355 LaTeX (pdflatex)->PDF (pdflatex)
7356 \end_layout
7357
7358 \end_inset
7359
7360 変換子を
7361 \begin_inset Flex Code
7362 status collapsed
7363
7364 \begin_layout Plain Layout
7365 pdflatex -synctex=1 $$i
7366 \end_layout
7367
7368 \end_inset
7369
7370 に変更してください。また、ビューアをSync\SpecialChar TeX
7371 で使うのに設定を行う必要があるかどうか、お使いのビューアの取扱説明書をご確認ください。
7372 \begin_inset Foot
7373 status collapsed
7374
7375 \begin_layout Plain Layout
7376 \begin_inset Flex Code
7377 status collapsed
7378
7379 \begin_layout Plain Layout
7380 -synctex=1
7381 \end_layout
7382
7383 \end_inset
7384
7385 オプションは、gzip圧縮を有効にします。お使いのビューアがgzip圧縮をサポートしていない場合には、代わりに
7386 \begin_inset Flex Code
7387 status collapsed
7388
7389 \begin_layout Plain Layout
7390 -synctex=-1
7391 \end_layout
7392
7393 \end_inset
7394
7395 を使用してください。
7396 \end_layout
7397
7398 \end_inset
7399
7400
7401 \end_layout
7402
7403 \begin_layout Subsection
7404 特定のビューアを設定して使うには
7405 \begin_inset CommandInset label
7406 LatexCommand label
7407 name "subsec:特定のビューアを設定して使うには"
7408
7409 \end_inset
7410
7411
7412 \end_layout
7413
7414 \begin_layout Subsubsection*
7415 Xdvi(全プラットフォーム)
7416 \end_layout
7417
7418 \begin_layout Standard
7419 \SpecialChar LyX
7420 は、
7421 \begin_inset Flex Code
7422 status collapsed
7423
7424 \begin_layout Plain Layout
7425 lyxclient
7426 \end_layout
7427
7428 \end_inset
7429
7430 プログラムを自動的に使うのに必要なフックを、既に提供しているので、
7431 \begin_inset Flex Code
7432 status collapsed
7433
7434 \begin_layout Plain Layout
7435 xdvi
7436 \end_layout
7437
7438 \end_inset
7439
7440 を使用する場合には、DVI遡及検索を実行するのに他にするべきことはありません。使用中の文書を上記で述べたように設定するだけです(遡及検索は、Ctrl-クリックか
7441 、Mac OS X上ではAlt-クリックで始動します)。
7442 \end_layout
7443
7444 \begin_layout Standard
7445 しかし、何らかの理由で、\SpecialChar LyX
7446 と通信するのにソケットではなく命名パイプを使用したい場合には、
7447 \begin_inset Flex MenuItem
7448 status collapsed
7449
7450 \begin_layout Plain Layout
7451 設定\SpecialChar menuseparator
7452 ファイル処理\SpecialChar menuseparator
7453 ファイル書式
7454 \end_layout
7455
7456 \end_inset
7457
7458 のDVIビューアを
7459 \lang english
7460
7461 \begin_inset Foot
7462 status collapsed
7463
7464 \begin_layout Plain Layout
7465
7466 \lang english
7467 On Mac OSX you have to use 
7468 \begin_inset Flex Code
7469 status collapsed
7470
7471 \begin_layout Plain Layout
7472
7473 \lang english
7474 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7475 \end_layout
7476
7477 \end_inset
7478
7479
7480 \end_layout
7481
7482 \end_inset
7483
7484
7485 \lang japanese
7486
7487 \begin_inset Flex Code
7488 status collapsed
7489
7490 \begin_layout Plain Layout
7491 xdvi -editor "lyxeditor.sh %f %l"
7492 \end_layout
7493
7494 \end_inset
7495
7496 (
7497 \begin_inset Flex Code
7498 status collapsed
7499
7500 \begin_layout Plain Layout
7501 lyxeditor.sh
7502 \end_layout
7503
7504 \end_inset
7505
7506 は適切なスクリプト名)に変更してください。たとえば、最低限のシェルスクリプトは
7507 \end_layout
7508
7509 \begin_layout LyX-Code
7510 #!/bin/sh
7511 \begin_inset Newline newline
7512 \end_inset
7513
7514 LYXPIPE="/path/to/lyxpipe"
7515 \begin_inset Newline newline
7516 \end_inset
7517
7518 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7519 \begin_inset Newline newline
7520 \end_inset
7521
7522 echo "$COMMAND" > "${LYXPIPE}".in || exit
7523 \begin_inset Newline newline
7524 \end_inset
7525
7526 read TMP < "${LYXPIPE}".out || exit
7527 \end_layout
7528
7529 \begin_layout Standard
7530 のようになります。ここで
7531 \begin_inset Flex Code
7532 status collapsed
7533
7534 \begin_layout Plain Layout
7535 /path/to/lyxpipe
7536 \end_layout
7537
7538 \end_inset
7539
7540 は、
7541 \begin_inset Flex MenuItem
7542 status collapsed
7543
7544 \begin_layout Plain Layout
7545 設定\SpecialChar menuseparator
7546 パス
7547 \end_layout
7548
7549 \end_inset
7550
7551 で指定したLyXServerパイプのパスを指定してください。
7552 \begin_inset Foot
7553 status collapsed
7554
7555 \begin_layout Plain Layout
7556 ソース頒布版の
7557 \begin_inset Flex Code
7558 status collapsed
7559
7560 \begin_layout Plain Layout
7561 development/tools
7562 \end_layout
7563
7564 \end_inset
7565
7566 フォルダには、ユーザが設定した
7567 \emph on
7568 lyxpipe
7569 \emph default
7570 を探し出す
7571 \begin_inset Flex Code
7572 status collapsed
7573
7574 \begin_layout Plain Layout
7575 lyxeditor
7576 \end_layout
7577
7578 \end_inset
7579
7580 スクリプトがあります。
7581 \end_layout
7582
7583 \end_inset
7584
7585
7586 \end_layout
7587
7588 \begin_layout Subsubsection*
7589 MacDviX(Mac OS X)
7590 \end_layout
7591
7592 \begin_layout Standard
7593 \begin_inset Flex Code
7594 status collapsed
7595
7596 \begin_layout Plain Layout
7597 /Applications/MacDviX_Folder/calleditor.script
7598 \end_layout
7599
7600 \end_inset
7601
7602 の終わりに
7603 \end_layout
7604
7605 \begin_layout LyX-Code
7606 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7607 \begin_inset Newline newline
7608 \end_inset
7609
7610 exit 1
7611 \end_layout
7612
7613 \begin_layout Standard
7614 という行を付け加えてください。Applicationsフォルダ以外の場所に\SpecialChar LyX
7615 を導入した場合には、それに従って上記の行を修正してください。
7616 \end_layout
7617
7618 \begin_layout Standard
7619 遡及検索は、Alt-クリック(OPTION-クリック)で始動します。
7620 \end_layout
7621
7622 \begin_layout Subsubsection*
7623 Skim(Mac OS X)
7624 \end_layout
7625
7626 \begin_layout Standard
7627 \begin_inset Flex MenuItem
7628 status collapsed
7629
7630 \begin_layout Plain Layout
7631 設定\SpecialChar menuseparator
7632 ファイル処理\SpecialChar menuseparator
7633 ファイル書式\SpecialChar menuseparator
7634 PDF (pdflatex)
7635 \end_layout
7636
7637 \end_inset
7638
7639 のビューア設定に
7640 \begin_inset Flex Code
7641 status collapsed
7642
7643 \begin_layout Plain Layout
7644 open -a Skim.app $$i
7645 \end_layout
7646
7647 \end_inset
7648
7649 と入力し、
7650 \begin_inset Flex MenuItem
7651 status collapsed
7652
7653 \begin_layout Plain Layout
7654 Skim\SpecialChar menuseparator
7655 設定\SpecialChar menuseparator
7656 Sync
7657 \end_layout
7658
7659 \end_inset
7660
7661 でLyXを選択してください。
7662 \end_layout
7663
7664 \begin_layout Standard
7665 遡及検索は、COMMAND-SHIFT-クリックで始動します。
7666 \end_layout
7667
7668 \begin_layout Subsubsection*
7669 Okular (KDE)
7670 \end_layout
7671
7672 \begin_layout Standard
7673 \begin_inset Flex MenuItem
7674 status collapsed
7675
7676 \begin_layout Plain Layout
7677 設定\SpecialChar menuseparator
7678 Okularを設定\SpecialChar ldots
7679 \SpecialChar menuseparator
7680 編集
7681 \end_layout
7682
7683 \end_inset
7684
7685 で「カスタムテキストエディタ」を選択し、コマンドに
7686 \begin_inset Flex Code
7687 status collapsed
7688
7689 \begin_layout Plain Layout
7690 lyxclient -g %f %l
7691 \end_layout
7692
7693 \end_inset
7694
7695 を加えてください。
7696 \end_layout
7697
7698 \begin_layout Standard
7699 遡及検索は、SHIFT-クリックで始動します。
7700 \end_layout
7701
7702 \begin_layout Subsubsection*
7703
7704 \lang english
7705 Qpdfview (Unix)
7706 \end_layout
7707
7708 \begin_layout Standard
7709
7710 \lang english
7711 Qpdfview supports Sync\SpecialChar TeX
7712  since version 0.3.5.
7713  Go to 
7714 \begin_inset Flex MenuItem
7715 status collapsed
7716
7717 \begin_layout Plain Layout
7718
7719 \lang english
7720 Edit\SpecialChar menuseparator
7721 Settings\SpecialChar menuseparator
7722 Behavior
7723 \end_layout
7724
7725 \end_inset
7726
7727 , click on the input field of the 
7728 \begin_inset Quotes eld
7729 \end_inset
7730
7731 Source editor
7732 \begin_inset Quotes erd
7733 \end_inset
7734
7735  item and add the command 
7736 \begin_inset Flex Code
7737 status collapsed
7738
7739 \begin_layout Plain Layout
7740
7741 \lang english
7742 lyxclient -g %1 %2
7743 \end_layout
7744
7745 \end_inset
7746
7747 .
7748 \end_layout
7749
7750 \begin_layout Standard
7751
7752 \lang english
7753 Reverse search is triggered by double-click.
7754 \end_layout
7755
7756 \begin_layout Subsubsection*
7757 YAP(Windows)
7758 \end_layout
7759
7760 \begin_layout Standard
7761 yapを起動し、
7762 \begin_inset Flex MenuItem
7763 status collapsed
7764
7765 \begin_layout Plain Layout
7766 View\SpecialChar menuseparator
7767 Options
7768 \end_layout
7769
7770 \end_inset
7771
7772 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar ldots
7773 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7774
7775  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar ldots
7776 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7777 \begin_inset Flex Code
7778 status collapsed
7779
7780 \begin_layout Plain Layout
7781 lyxeditor.bat
7782 \end_layout
7783
7784 \end_inset
7785
7786 (以下参照)のあるディレクトリを見つけます。
7787 \begin_inset Flex Code
7788 status collapsed
7789
7790 \begin_layout Plain Layout
7791 lyxeditor.bat
7792 \end_layout
7793
7794 \end_inset
7795
7796 を選択してプログラムの引数を
7797 \begin_inset Flex Code
7798 status collapsed
7799
7800 \begin_layout Plain Layout
7801 %f %l
7802 \end_layout
7803
7804 \end_inset
7805
7806 と指定してください。
7807 \begin_inset Flex Code
7808 status collapsed
7809
7810 \begin_layout Plain Layout
7811 lyxeditor.bat
7812 \end_layout
7813
7814 \end_inset
7815
7816 は、
7817 \emph on
7818 lyxpipe
7819 \emph default
7820 を通じて\SpecialChar LyX
7821 と通信するためのラッパとして使用され、以下のようになっています。
7822 \end_layout
7823
7824 \begin_layout LyX-Code
7825 @echo off
7826 \begin_inset Newline newline
7827 \end_inset
7828
7829 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7830 \backslash
7831
7832 \backslash
7833 .
7834 \backslash
7835 pipe
7836 \backslash
7837 lyxpipe.in
7838 \begin_inset Newline newline
7839 \end_inset
7840
7841 type 
7842 \backslash
7843
7844 \backslash
7845 .
7846 \backslash
7847 pipe
7848 \backslash
7849 lyxpipe.out
7850 \end_layout
7851
7852 \begin_layout Standard
7853 \SpecialChar LyX
7854 で指定した\SpecialChar LyX
7855 Serverパイプパスが、
7856 \begin_inset Flex Code
7857 status collapsed
7858
7859 \begin_layout Plain Layout
7860
7861 \backslash
7862
7863 \backslash
7864 .
7865 \backslash
7866 pipe
7867 \backslash
7868 lyxpipe
7869 \end_layout
7870
7871 \end_inset
7872
7873 となっていることを確認するか、
7874 \begin_inset Flex Code
7875 status collapsed
7876
7877 \begin_layout Plain Layout
7878 lyxeditor.bat
7879 \end_layout
7880
7881 \end_inset
7882
7883 ラッパの方を適切に修正してください。
7884 \end_layout
7885
7886 \begin_layout Standard
7887 yapでは、遡及検索はダブルクリックで始動します。
7888 \end_layout
7889
7890 \begin_layout Subsubsection*
7891 SumatraPDF(Windows)
7892 \end_layout
7893
7894 \begin_layout Standard
7895 SumatraPDFを遡及検索で使用するためには、
7896 \begin_inset Flex MenuItem
7897 status collapsed
7898
7899 \begin_layout Plain Layout
7900 設定\SpecialChar menuseparator
7901 ファイル処理\SpecialChar menuseparator
7902 ファイル書式\SpecialChar menuseparator
7903 PDF (pdflatex)
7904 \end_layout
7905
7906 \end_inset
7907
7908 のビューア設定で
7909 \begin_inset Flex Code
7910 status collapsed
7911
7912 \begin_layout Plain Layout
7913 SumatraPDF -inverse-search 
7914 \begin_inset Quotes eld
7915 \end_inset
7916
7917 lyxeditor.bat %f %l
7918 \begin_inset Quotes erd
7919 \end_inset
7920
7921
7922 \end_layout
7923
7924 \end_inset
7925
7926 (
7927 \begin_inset Flex Code
7928 status collapsed
7929
7930 \begin_layout Plain Layout
7931 lyxeditor.bat
7932 \end_layout
7933
7934 \end_inset
7935
7936 は上記のラッパ)と入力してください。SumatraPDF.exeがコマンドPATHにない場合、フルファイル名を使用してください。
7937 \end_layout
7938
7939 \begin_layout Standard
7940 遡及検索はダブルクリックで始動します。
7941 \end_layout
7942
7943 \begin_layout Subsubsection*
7944 YAP(Cygwin)
7945 \end_layout
7946
7947 \begin_layout Standard
7948 まずはじめに、yapがWindows環境での既定のDVIビューアになっていることを確認してから、yapを起動し、
7949 \begin_inset Flex MenuItem
7950 status collapsed
7951
7952 \begin_layout Plain Layout
7953 View\SpecialChar menuseparator
7954 Options
7955 \end_layout
7956
7957 \end_inset
7958
7959 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar ldots
7960 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7961
7962  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar ldots
7963 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7964 \begin_inset Flex Code
7965 status collapsed
7966
7967 \begin_layout Plain Layout
7968 lyxeditor.exe
7969 \end_layout
7970
7971 \end_inset
7972
7973 プログラム(これは、Cygwinでは既定で\SpecialChar LyX
7974 実行ファイルとともに導入されます)のあるディレクトリを見つけます。
7975 \begin_inset Flex Code
7976 status collapsed
7977
7978 \begin_layout Plain Layout
7979 lyxeditor.exe
7980 \end_layout
7981
7982 \end_inset
7983
7984 を選択してプログラムの引数を
7985 \begin_inset Flex Code
7986 status collapsed
7987
7988 \begin_layout Plain Layout
7989 -g %f %l
7990 \end_layout
7991
7992 \end_inset
7993
7994 と指定してください。これによって、\SpecialChar LyX
7995 との通信に
7996 \emph on
7997 lyxsocket
7998 \emph default
7999 が使用されるようになります。何らかの理由で
8000 \emph on
8001 lyxpipe
8002 \emph default
8003 を使用したい場合には、
8004 \begin_inset Flex Code
8005 status collapsed
8006
8007 \begin_layout Plain Layout
8008 -g
8009 \end_layout
8010
8011 \end_inset
8012
8013 オプションを削除して、\SpecialChar LyX
8014 設定で\SpecialChar LyX
8015 Serverパイプパスを指定することを忘れないでください。
8016 \end_layout
8017
8018 \begin_layout Standard
8019 yapでは、遡及検索はダブルクリックで始動します。
8020 \end_layout
8021
8022 \begin_layout Subsubsection*
8023 SumatraPDF(Cygwin)
8024 \end_layout
8025
8026 \begin_layout Standard
8027 SumatraPDFを遡及検索で使用するためには、
8028 \begin_inset Flex MenuItem
8029 status collapsed
8030
8031 \begin_layout Plain Layout
8032 設定\SpecialChar menuseparator
8033 ファイル処理\SpecialChar menuseparator
8034 ファイル書式\SpecialChar menuseparator
8035 PDF (pdflatex)
8036 \end_layout
8037
8038 \end_inset
8039
8040 のビューア設定で
8041 \begin_inset Flex Code
8042 status collapsed
8043
8044 \begin_layout Plain Layout
8045 SumatraPDF.sh
8046 \end_layout
8047
8048 \end_inset
8049
8050 と入力してください。ここで
8051 \begin_inset Flex Code
8052 status collapsed
8053
8054 \begin_layout Plain Layout
8055 SumatraPDF.sh
8056 \end_layout
8057
8058 \end_inset
8059
8060 は以下のようなスクリプトです(お使いのコマンドパスに置きます。
8061 \begin_inset Flex Code
8062 status collapsed
8063
8064 \begin_layout Plain Layout
8065 /usr/local/bin
8066 \end_layout
8067
8068 \end_inset
8069
8070 がもっとも良い選択肢でしょう)。
8071 \end_layout
8072
8073 \begin_layout LyX-Code
8074 #!/bin/bash
8075 \begin_inset Newline newline
8076 \end_inset
8077
8078 cd $(dirname $1)
8079 \begin_inset Newline newline
8080 \end_inset
8081
8082 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8083 \end_layout
8084
8085 \begin_layout Standard
8086 SumatraPDFは、Windowsネイティブのアプリケーションであり、\SpecialChar LyX
8087 のCygwin版が使用するPOSIXパスを理解しないので、このラッパスクリプトが必要と
8088 なります。SumatraPDF.exeがお使いのコマンドパスにない場合は、上記のスクリプトでPOSIXのフルパスを使用してください。
8089 \begin_inset Flex Code
8090 status collapsed
8091
8092 \begin_layout Plain Layout
8093 -g
8094 \end_layout
8095
8096 \end_inset
8097
8098
8099 \emph on
8100 lyxsocket
8101 \emph default
8102 経由の通信を有効にします。ここでも、
8103 \emph on
8104 lyxpipe
8105 \emph default
8106 を使用したい場合には、
8107 \begin_inset Flex Code
8108 status collapsed
8109
8110 \begin_layout Plain Layout
8111 -g
8112 \end_layout
8113
8114 \end_inset
8115
8116 オプションを削除して、\SpecialChar LyX
8117 設定で\SpecialChar LyX
8118 Serverパイプパスを指定することを忘れないでください。
8119 \end_layout
8120
8121 \begin_layout Standard
8122 遡及検索はダブルクリックで始動します。
8123 \end_layout
8124
8125 \begin_layout Section
8126 順検索
8127 \end_layout
8128
8129 \begin_layout Standard
8130 順検索とは、名前が示すとおり、いわば遡及検索の「逆」を意味します。すなわち、\SpecialChar LyX
8131 内部から、ビューアに特定の箇所を表示させることを可能にします。(以下に説明するように
8132 )もし順検索の準備ができていれば、カーソルを\SpecialChar LyX
8133 文書の好きなところに置いて、
8134 \begin_inset Flex MenuItem
8135 status collapsed
8136
8137 \begin_layout Plain Layout
8138 移動\SpecialChar menuseparator
8139 順検索
8140 \end_layout
8141
8142 \end_inset
8143
8144 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8145 \begin_inset Flex MenuItem
8146 status collapsed
8147
8148 \begin_layout Plain Layout
8149 順検索
8150 \end_layout
8151
8152 \end_inset
8153
8154 を選択してもよい)、ビューアも同じ箇所に移動します。もちろん、使用しているビューアが、この機能をサポートしていなくてはなりません。
8155 \end_layout
8156
8157 \begin_layout Standard
8158 順検索を有効にするためには、生成されたPDF/DVI出力ファイルに、\SpecialChar TeX
8159 ソースに関する情報を追加する必要があります。これは、第
8160 \begin_inset CommandInset ref
8161 LatexCommand ref
8162 reference "subsec:遡及検索"
8163
8164 \end_inset
8165
8166 節に述べられている方法で実行することができます。
8167 \end_layout
8168
8169 \begin_layout Standard
8170 次に、
8171 \begin_inset Flex MenuItem
8172 status collapsed
8173
8174 \begin_layout Plain Layout
8175 ツール\SpecialChar menuseparator
8176 設定\SpecialChar menuseparator
8177 出力\SpecialChar menuseparator
8178 一般
8179 \end_layout
8180
8181 \end_inset
8182
8183 で自分の使うビューアを利用するように、\SpecialChar LyX
8184 を設定する必要があります。いくつかのビューアについては、試験済みの設定が前もって準備されており、ドロップダウンリストから選
8185 択することができます。これらの設定の何れも意にそぐわない場合には、ご自身で適切な設定を見つけ出して入力しなくてはなりません。定義文法は、以下の変数を使用します。
8186 \end_layout
8187
8188 \begin_layout Itemize
8189 \begin_inset Flex Code
8190 status collapsed
8191
8192 \begin_layout Plain Layout
8193 $$n
8194 \end_layout
8195
8196 \end_inset
8197
8198 :行番号
8199 \end_layout
8200
8201 \begin_layout Itemize
8202 \begin_inset Flex Code
8203 status collapsed
8204
8205 \begin_layout Plain Layout
8206 $$t
8207 \end_layout
8208
8209 \end_inset
8210
8211 :書き出された(一時).texファイル名(パスを除く)
8212 \end_layout
8213
8214 \begin_layout Itemize
8215 \begin_inset Flex Code
8216 status collapsed
8217
8218 \begin_layout Plain Layout
8219 $$f
8220 \end_layout
8221
8222 \end_inset
8223
8224 :書き出された(一時).texファイル名(パスを含む)
8225 \end_layout
8226
8227 \begin_layout Itemize
8228 \begin_inset Flex Code
8229 status collapsed
8230
8231 \begin_layout Plain Layout
8232 $$o
8233 \end_layout
8234
8235 \end_inset
8236
8237 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して、dviあるいはpdf)。
8238 \end_layout
8239
8240 \begin_layout Standard
8241 yap・xdvi・okular
8242 \begin_inset Foot
8243 status collapsed
8244
8245 \begin_layout Plain Layout
8246 \begin_inset Flex MenuItem
8247 status collapsed
8248
8249 \begin_layout Plain Layout
8250 ツール\SpecialChar menuseparator
8251 設定\SpecialChar menuseparator
8252 ファイル処理\SpecialChar menuseparator
8253 ファイル形式
8254 \end_layout
8255
8256 \end_inset
8257
8258
8259 \begin_inset Flex Code
8260 status collapsed
8261
8262 \begin_layout Plain Layout
8263 okular –unique
8264 \end_layout
8265
8266 \end_inset
8267
8268 と設定すると良いかもしれません。
8269 \end_layout
8270
8271 \end_inset
8272
8273 ・qpdfview・Sumatra PDFなど、一部のビューアでしか、完全な順検索機能は提供されていないことに注意してください
8274 \lang english
8275
8276 \begin_inset Foot
8277 status collapsed
8278
8279 \begin_layout Plain Layout
8280
8281 \lang english
8282 SumatraPDF can also use DDE commands through the external program CMCDDE
8283  — downloadable from 
8284 \begin_inset CommandInset href
8285 LatexCommand href
8286 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8287
8288 \end_inset
8289
8290
8291 \end_layout
8292
8293 \end_inset
8294
8295
8296 \lang japanese
8297 。広く使われているPDFビューアの多く(特にAdobe Reader)は、順検索を全く提供していませんが、他の一部のビューア(たとえばEvinceやxpdf)で
8298 は、少なくとも、文書を読み込み直したり、ファイルの特定ページに移動することはできますので、少なくとも「近く」には移動することができます。この後者の機能は、syn
8299 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください)。
8300 \end_layout
8301
8302 \begin_layout Standard
8303 順検索は、DVI出力とPDF出力の双方で動作します。\SpecialChar LyX
8304 は、過去にあなたが使用したプレビュー形式をチェックして(つまり、一時ディレクトリにどちらの形式が存在するかを
8305 チェックして)、その形式に適切な設定を選択します。
8306 \end_layout
8307
8308 \begin_layout Chapter
8309 特別な文書クラス
8310 \end_layout
8311
8312 \begin_layout Section
8313 A&Aの論文
8314 \end_layout
8315
8316 \begin_layout Standard
8317
8318 \noun on
8319 Peter Sütterlin文
8320 \end_layout
8321
8322 \begin_layout Subsection
8323 はじめに
8324 \end_layout
8325
8326 \begin_layout Standard
8327 この節では、文書クラス
8328 \family typewriter
8329 aa.cls
8330 \family default
8331 第5.01版を使用して科学雑誌
8332 \emph on
8333 Astronomy and Astrophysics
8334 \emph default
8335 (『天文学と宇宙物理学』: 
8336 \begin_inset Flex URL
8337 status collapsed
8338
8339 \begin_layout Plain Layout
8340
8341 http://www.edpsciences.fr/aa/
8342 \end_layout
8343
8344 \end_inset
8345
8346 )に投稿する論文を執筆するための\SpecialChar LyX
8347 の使用法を説明します。このパッケージは、FTPサイト
8348 \begin_inset Separator parbreak
8349 \end_inset
8350
8351
8352 \end_layout
8353
8354 \begin_layout Standard
8355 \align center
8356 \begin_inset VSpace medskip
8357 \end_inset
8358
8359
8360 \begin_inset Flex URL
8361 status collapsed
8362
8363 \begin_layout Plain Layout
8364
8365 ftp://ftp.edpsciences.org/pub/aa/readme.html
8366 \end_layout
8367
8368 \end_inset
8369
8370
8371 \begin_inset VSpace medskip
8372 \end_inset
8373
8374
8375 \end_layout
8376
8377 \begin_layout Standard
8378 \noindent
8379 からダウンロードすることができます。
8380 \end_layout
8381
8382 \begin_layout Standard
8383 このパッケージには取扱説明書がついていますが、本節は、本来の取扱説明書の代わりとなることを意図したものではなく、あなたの論文を正しい様式に整えるための小さな案内
8384 書であるに過ぎません。
8385 \end_layout
8386
8387 \begin_layout Standard
8388 この学術誌の出版元は、2001年1月1日以降、Springer社からEDP Science社に変更されていることにご注意ください。この出版社の変更によって、th
8389 esaurusコマンドの廃止など、スタイルファイルに若干の変更が加わっています。\SpecialChar LyX
8390 のaaクラスは、スタイルファイルの最新版(第5.01版)をサポートしています。もし
8391 古い版が装備されている場合には、更新してください。互換性のために、古い(第4版)レイアウトは、
8392 \family sans
8393 article (A&A V4)
8394 \family default
8395 として残してあります。
8396 \family typewriter
8397 $\SpecialChar LyX
8398 Dir/layouts/aapaper.layout
8399 \family default
8400 のコメントをご参照ください。
8401 \end_layout
8402
8403 \begin_layout Subsection
8404 最初の一歩
8405 \end_layout
8406
8407 \begin_layout Standard
8408 \SpecialChar LyX
8409 とともに頒布されている例示用のひな型を土台として、書き始めることをお勧めします。ひな型を使用しない場合には、以下の設定にしてください。
8410 \end_layout
8411
8412 \begin_layout Itemize
8413
8414 \family sans
8415 文書\SpecialChar menuseparator
8416 設定
8417 \family default
8418 ダイアログで
8419 \family sans
8420 article (A&A)
8421 \family default
8422 を選択してください(まぁ、これは自明ですね)。
8423 \end_layout
8424
8425 \begin_layout Itemize
8426
8427 \family sans
8428 ページレイアウト
8429 \family default
8430 オプションは変更しないで、既定値のままに設定しておいてください。全体のレイアウトはマクロが行うので、何も変更してはいけません。
8431 \end_layout
8432
8433 \begin_layout Subsection
8434 へッダ部
8435 \end_layout
8436
8437 \begin_layout Standard
8438 最初に入力すべきものは、へッダ情報です。ヘッダ情報には、以下の7つの項目があり、いくつかは必須ではありません。
8439 \end_layout
8440
8441 \begin_layout Itemize
8442
8443 \family sans
8444 タイトル
8445 \family default
8446 :[必須]
8447 \end_layout
8448
8449 \begin_layout Itemize
8450
8451 \family sans
8452 サブタイトル
8453 \family default
8454 :[非必須]
8455 \end_layout
8456
8457 \begin_layout Itemize
8458
8459 \family sans
8460 著者
8461 \family default
8462 :[必須]
8463 \end_layout
8464
8465 \begin_layout Itemize
8466
8467 \family sans
8468 住所
8469 \family default
8470 :[必須]
8471 \end_layout
8472
8473 \begin_layout Itemize
8474
8475 \family sans
8476 抜き刷り
8477 \family default
8478 :[非必須]著者が複数いる場合、抜き刷りの送付を依頼するのに連絡すべき人を記す。
8479 \end_layout
8480
8481 \begin_layout Itemize
8482
8483 \family sans
8484 メール
8485 \family default
8486 :[非必須]連絡用の電子メールアドレス。
8487 \end_layout
8488
8489 \begin_layout Itemize
8490
8491 \family sans
8492 日付
8493 \family default
8494 :[必須]推奨されるフォーマットは、
8495 \family typewriter
8496 Received: <日付>; Accepted <日付>
8497 \family default
8498 です。
8499 \end_layout
8500
8501 \begin_layout Standard
8502
8503 \family typewriter
8504
8505 \backslash
8506 maketitle
8507 \family default
8508 コマンドは、へッダが終了した場所に、\SpecialChar LyX
8509 が自動的に入れてくれるので、手動で挿入する必要はありません。各項目の順序は関係ありませんが、見た目のためと、実際の文書のレイ
8510 アウトに合わせるために、上記の順序を維持しておくと良いでしょう。
8511 \end_layout
8512
8513 \begin_layout Standard
8514 現住所の付記などのために、へッダ部に脚注を挿入したい場合には、
8515 \family sans
8516 挿入\SpecialChar menuseparator
8517 脚注
8518 \family default
8519 を使用して標準の脚注を挿入してください。この場合には、\SpecialChar LyX
8520 は自動的に
8521 \family typewriter
8522
8523 \backslash
8524 thanks{}
8525 \family default
8526 を使用します。
8527 \end_layout
8528
8529 \begin_layout Standard
8530 これらのトピックの他に、このマクロは、\SpecialChar LyX
8531 が対応していない、以下の3つの\SpecialChar LaTeX
8532 コマンドを使用します。
8533 \end_layout
8534
8535 \begin_layout Itemize
8536 複数の著者名あるいは所属名を区切るための
8537 \family typewriter
8538
8539 \backslash
8540 and
8541 \end_layout
8542
8543 \begin_layout Itemize
8544 著者と所属の対応付けをするための
8545 \family typewriter
8546
8547 \backslash
8548 inst{<番号>}
8549 \family default
8550 。所属は、
8551 \family sans
8552 住所
8553 \family default
8554 フィールドに現れる順に番号が付けられるので、各著者に番号マーカーを置く必要があります。
8555 \end_layout
8556
8557 \begin_layout Itemize
8558
8559 \family typewriter
8560
8561 \backslash
8562 email{アドレス}
8563 \family default
8564 は、至急連絡用に電子メールアドレスを付記します。
8565 \end_layout
8566
8567 \begin_layout Standard
8568 いずれの場合にも、\SpecialChar LyX
8569 中に対応したコマンドを入力し、\SpecialChar LaTeX
8570 コードとしてマークしてください。
8571 \begin_inset Flex Code
8572 status collapsed
8573
8574 \begin_layout Plain Layout
8575 $\SpecialChar LyX
8576 Dir/examples
8577 \end_layout
8578
8579 \end_inset
8580
8581 にある用例を参照してください。
8582 \end_layout
8583
8584 \begin_layout Subsection
8585 概要
8586 \end_layout
8587
8588 \begin_layout Standard
8589 概要は、へッダ部の直後に置きます。第5版から、概要は環境からコマンドに変更され、一段落に限るという制限が加えられました。さらに、ここにはキーワードを含む項目を入
8590 れなくてはなりません。これは、まだ\SpecialChar LyX
8591 では実装されていないため、\SpecialChar LaTeX
8592 コマンド
8593 \family typewriter
8594
8595 \backslash
8596 keywords{}
8597 \family default
8598 を手動で入力し、\SpecialChar LaTeX
8599 コードとしてマークする必要があります。用例にある論文を参照してください。
8600 \end_layout
8601
8602 \begin_layout Subsection
8603 サポートされる環境
8604 \end_layout
8605
8606 \begin_layout Standard
8607 A&A論文用レイアウトでは、文章を構造化するために、以下の環境がサポートされています。
8608 \end_layout
8609
8610 \begin_layout Itemize
8611
8612 \family sans
8613 標準
8614 \end_layout
8615
8616 \begin_layout Itemize
8617
8618 \family sans
8619
8620 \end_layout
8621
8622 \begin_layout Itemize
8623
8624 \family sans
8625 小節
8626 \end_layout
8627
8628 \begin_layout Itemize
8629
8630 \family sans
8631 小々節
8632 \end_layout
8633
8634 \begin_layout Itemize
8635
8636 \family sans
8637 箇条書き(記号)
8638 \end_layout
8639
8640 \begin_layout Itemize
8641
8642 \family sans
8643 箇条書き(連番)
8644 \end_layout
8645
8646 \begin_layout Itemize
8647
8648 \family sans
8649 箇条書き(記述)
8650 \end_layout
8651
8652 \begin_layout Itemize
8653
8654 \family sans
8655 キャプション
8656 \end_layout
8657
8658 \begin_layout Itemize
8659
8660 \family sans
8661 概要
8662 \end_layout
8663
8664 \begin_layout Itemize
8665
8666 \family sans
8667 謝辞(Acknowledgment)
8668 \end_layout
8669
8670 \begin_layout Itemize
8671
8672 \family sans
8673 書誌情報
8674 \end_layout
8675
8676 \begin_layout Itemize
8677
8678 \family sans
8679 \SpecialChar LaTeX
8680
8681 \end_layout
8682
8683 \begin_layout Subsection
8684 \SpecialChar LyX
8685 でサポートされていないコマンド
8686 \end_layout
8687
8688 \begin_layout Standard
8689 \SpecialChar LyX
8690
8691 \family sans
8692 article (A&A)
8693 \family default
8694 レイアウトでは、まだサポートされていないコマンドがあります。そのうちいくつかは既に紹介しましたが、網羅するために、以下にすべて列挙しておきます。
8695 \end_layout
8696
8697 \begin_layout Itemize
8698
8699 \family typewriter
8700
8701 \backslash
8702 and
8703 \end_layout
8704
8705 \begin_layout Itemize
8706
8707 \family typewriter
8708
8709 \backslash
8710 email
8711 \end_layout
8712
8713 \begin_layout Itemize
8714
8715 \family typewriter
8716
8717 \backslash
8718 appendix
8719 \end_layout
8720
8721 \begin_layout Itemize
8722
8723 \family typewriter
8724
8725 \backslash
8726 authorrunning
8727 \end_layout
8728
8729 \begin_layout Itemize
8730
8731 \family typewriter
8732
8733 \backslash
8734 inst{}
8735 \end_layout
8736
8737 \begin_layout Itemize
8738
8739 \family typewriter
8740
8741 \backslash
8742 keywords{}
8743 \end_layout
8744
8745 \begin_layout Itemize
8746
8747 \family typewriter
8748
8749 \backslash
8750 object{}
8751 \end_layout
8752
8753 \begin_layout Itemize
8754
8755 \family typewriter
8756
8757 \backslash
8758 titlerunning{}
8759 \end_layout
8760
8761 \begin_layout Standard
8762 これらのコマンドのいずれかを使いたい場合には、自分で入力する必要があります。
8763 \series bold
8764 これを\SpecialChar LaTeX
8765 コマンドとしてマークすることを忘れないで下さい。
8766 \end_layout
8767
8768 \begin_layout Subsection
8769 図フロートおよび表フロート
8770 \end_layout
8771
8772 \begin_layout Standard
8773 \SpecialChar LyX
8774 は、必要なフロート環境
8775 \family sans
8776 figure
8777 \family default
8778
8779 \family sans
8780 figure*
8781 \family default
8782
8783 \family sans
8784 table
8785 \family default
8786
8787 \family sans
8788 table*
8789 \family default
8790 をサポートしていますので、ここでは詳しい説明はしません。
8791 \emph on
8792 ユーザーの手引き
8793 \emph default
8794 をご覧ください。ただ、表は左揃えにしなくてはならないことに注意して下さい。そうするためには、表を選択して、
8795 \family sans
8796 編集\SpecialChar menuseparator
8797 段落設定
8798 \family default
8799 で配置を変更してください。
8800 \end_layout
8801
8802 \begin_layout Standard
8803 一つだけ、特別なものがあります。それは、図横にキャプションを配置する図です。この図を作成するには、以下のようにしなくてはなりません。
8804 \end_layout
8805
8806 \begin_layout Enumerate
8807
8808 \family sans
8809 挿入\SpecialChar menuseparator
8810 フロート\SpecialChar menuseparator
8811
8812 \family default
8813 を使って、幅広の図フロートを作成します。それから、図フロートのラベルを右クリックして
8814 \begin_inset Flex MenuItem
8815 status collapsed
8816
8817 \begin_layout Plain Layout
8818 設定\SpecialChar ldots
8819
8820 \end_layout
8821
8822 \end_inset
8823
8824 を選択し、それで開かれる
8825 \family sans
8826 フロートの設定
8827 \family default
8828 ダイアログで
8829 \family sans
8830 段をまたぐ
8831 \family default
8832 を有効にして、
8833 \family sans
8834 OK
8835 \family default
8836 ボタンを押します。
8837 \end_layout
8838
8839 \begin_layout Enumerate
8840 キャプション文を入力します。
8841 \end_layout
8842
8843 \begin_layout Enumerate
8844 キャプションの前にカーソルを移動し、
8845 \family sans
8846 Return
8847 \family default
8848 を押して、カーソルをキャプションの上に移動します。
8849 \end_layout
8850
8851 \begin_layout Enumerate
8852 図を挿入します。
8853 \end_layout
8854
8855 \begin_layout Enumerate
8856 カーソルを図の後ろに置いて、
8857 \family sans
8858 挿入\SpecialChar menuseparator
8859 整形
8860 \bar under
8861 \SpecialChar menuseparator
8862
8863 \bar default
8864 水平方向の空白
8865 \family default
8866 を選択して
8867 \family sans
8868 水平方向の空白の設定
8869 \family default
8870 ダイアログを開き、
8871 \family sans
8872 空白
8873 \family default
8874 ドロップダウンから
8875 \family sans
8876 水平フィル
8877 \family default
8878 を選択して、水平フィルを挿入します。
8879 \end_layout
8880
8881 \begin_layout Enumerate
8882
8883 \family sans
8884 挿入\SpecialChar menuseparator
8885 \SpecialChar TeX
8886 コード
8887 \family default
8888 を選択して、\SpecialChar TeX
8889 差込枠を挿入します。
8890 \end_layout
8891
8892 \begin_layout Enumerate
8893 \SpecialChar TeX
8894 差込枠中に
8895 \family typewriter
8896
8897 \backslash
8898 parbox[b]{55mm}{
8899 \family default
8900 と入力します。
8901 \series bold
8902 ここでは波括弧を閉じないでください。
8903 \end_layout
8904
8905 \begin_layout Enumerate
8906 カーソルをキャプション文の後ろに移動し、
8907 \family sans
8908 挿入\SpecialChar menuseparator
8909 \SpecialChar TeX
8910 コード
8911 \family default
8912 を選択して、別の\SpecialChar TeX
8913 差込枠を挿入し、その中に閉じ括弧を入力します 。
8914 \end_layout
8915
8916 \begin_layout Standard
8917 例示用論文中の図もご参照ください。
8918 \end_layout
8919
8920 \begin_layout Subsection
8921 Refereeレイアウト
8922 \end_layout
8923
8924 \begin_layout Standard
8925 投稿用には、論文を特別なダブルスペースレイアウトに整形しなくてはなりません。このためには、文書クラスに
8926 \family typewriter
8927 referee
8928 \family default
8929 オプションを与える必要があります。これは、
8930 \family sans
8931 文書\SpecialChar menuseparator
8932 設定
8933 \family default
8934 ダイアログの
8935 \family sans
8936 任意設定
8937 \family default
8938 クラスオプションフィールドを使って行うことができます。この欄に
8939 \family typewriter
8940 referee
8941 \family default
8942 と云う文字列を入力してください。
8943 \end_layout
8944
8945 \begin_layout Subsection
8946 例示用論文
8947 \end_layout
8948
8949 \begin_layout Standard
8950
8951 \family sans
8952 Examples
8953 \family default
8954 ディレクトリには、\SpecialChar LyX
8955 で書かれた例示用論文が収録されています。これは、元のマクロパッケージの例示用論文を\SpecialChar LyX
8956 用に直したものです。これはヒントを得るために使用したり、元の
8957  \SpecialChar LaTeX
8958 コードと\SpecialChar LyX
8959 での書き方の比較に使ったりしてください。
8960 \end_layout
8961
8962 \begin_layout Section
8963 AAS\SpecialChar TeX
8964
8965 \end_layout
8966
8967 \begin_layout Standard
8968
8969 \noun on
8970 Mike Ressler
8971 \noun default
8972
8973 \end_layout
8974
8975 \begin_layout Subsection
8976 はじめに
8977 \end_layout
8978
8979 \begin_layout Standard
8980 AAS\SpecialChar TeX
8981 は、American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
8982 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
8983  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために、同学会が作成したマクロ集です。\SpecialChar LyX
8984
8985 、これらの文書を生成する上で、なかでも数式・引用・画像処理能力において、優れたツールであることが認識されています。\SpecialChar LyX
8986 は、同マクロ第5.0版以降を必要としており、でき
8987 ればここで説明されている第5.2版以降が望まれます。第5.0版未満の版は、\SpecialChar LaTeX
8988 2.09で使用するよう企図されているため、根本的に\SpecialChar LyX
8989 とは互換性がありません。AAS\SpecialChar TeX
8990 パッケージは
8991 、以下のAAS\SpecialChar TeX
8992 ウェブサイトからダウンロードできるでしょう。
8993 \begin_inset Separator parbreak
8994 \end_inset
8995
8996
8997 \end_layout
8998
8999 \begin_layout Standard
9000 \align center
9001 \begin_inset VSpace medskip
9002 \end_inset
9003
9004
9005 \begin_inset Flex URL
9006 status collapsed
9007
9008 \begin_layout Plain Layout
9009
9010 http://www.journals.uchicago.edu/AAS/AASTeX
9011 \end_layout
9012
9013 \end_inset
9014
9015
9016 \begin_inset VSpace medskip
9017 \end_inset
9018
9019
9020 \end_layout
9021
9022 \begin_layout Standard
9023 パッケージ中には、完備したユーザーの手引きが収録されていますので、\SpecialChar LyX
9024 で論文を書き始める前に、その中身を完全に理解しておく必要があります。\SpecialChar LyX
9025 は、AASTeXの全コマン
9026 ドを理解する必然性をなくすものではなく、すべてを手入力する苦労を減らすだけです。仕上がりの\SpecialChar LaTeX
9027 文書が、論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9028 いることを確認するのは、あなたの責任です。
9029 \end_layout
9030
9031 \begin_layout Subsection
9032 新しい論文を書き始める
9033 \end_layout
9034
9035 \begin_layout Standard
9036 論文を書き始めるには、AAS\SpecialChar TeX
9037 ひな型ファイルを土台に始めることを強くお勧めします。
9038 \begin_inset Flex MenuItem
9039 status collapsed
9040
9041 \begin_layout Plain Layout
9042 ファイル\SpecialChar menuseparator
9043 新規(ひな型使用)
9044 \end_layout
9045
9046 \end_inset
9047
9048 をクリックして、新しいファイル名を入力し、ひな型
9049 \family typewriter
9050 aastex.lyx
9051 \family default
9052 を選んでください。これには、論文原稿のほとんどに共通して使われるフィールドが書き込まれています。書き込まれている文字列(括弧
9053 \family typewriter
9054 <>
9055 \family default
9056 を含む)を正しい情報で上書きしてください。AAS\SpecialChar TeX
9057 コマンド・AAS\SpecialChar TeX
9058 環境の多くは、\SpecialChar LyX
9059 中で直接実行することができますが、特に
9060 \family typewriter
9061
9062 \backslash
9063 altaffilmark
9064 \family default
9065
9066 \family typewriter
9067
9068 \backslash
9069 altaffiltext
9070 \family default
9071 のようにできないものもあります。この二つのコマンドは、ひな型ファイルを開いたとき、赤色に表示されているのですぐ目に入ることでしょう。このようなコマンドは、直接L
9072 a\SpecialChar TeX
9073 コードを入力して、それを\SpecialChar TeX
9074 コードとしてマークしなければなりません。このようなコマンドは、\SpecialChar TeX
9075 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます。A
9076 AS\SpecialChar TeX
9077 文書に必要とされる \SpecialChar TeX
9078 コードを最小にするよう努力はしていますが、まだ望まれるほどにはなっていません。
9079 \end_layout
9080
9081 \begin_layout Subsection
9082 論文を書き終わったら
9083 \end_layout
9084
9085 \begin_layout Standard
9086 論文を満足する水準で書き終え、プレビューや印刷が正しく為されているとしても、まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています。
9087 \end_layout
9088
9089 \begin_layout Enumerate
9090 論文を \SpecialChar LaTeX
9091 ファイルとして書き出します(
9092 \family sans
9093 ファイル\SpecialChar menuseparator
9094 書き出し\SpecialChar menuseparator
9095 LateX
9096 \family default
9097 )。
9098 \end_layout
9099
9100 \begin_layout Enumerate
9101 出力した
9102 \family typewriter
9103 .tex
9104 \family default
9105 ファイルを好きなエディタで編集します。
9106 \begin_inset Separator parbreak
9107 \end_inset
9108
9109
9110 \end_layout
9111
9112 \begin_deeper
9113 \begin_layout Enumerate
9114
9115 \family typewriter
9116
9117 \backslash
9118 documentclass
9119 \family default
9120 コマンドよりも前のコメント行を削除します。
9121 \end_layout
9122
9123 \begin_layout Enumerate
9124
9125 \family typewriter
9126
9127 \backslash
9128 usepackage...{fontenc}
9129 \family default
9130 という行があれば(通常は
9131 \family typewriter
9132
9133 \backslash
9134 documentclass
9135 \family default
9136 の直後にあります)削除します。また、
9137 \family typewriter
9138
9139 \backslash
9140 secnumdepth
9141 \family default
9142 行があれば、これも削除します。
9143 \end_layout
9144
9145 \begin_layout Enumerate
9146 \SpecialChar LaTeX
9147 プリアンブル中に意図的に置いたコマンド(
9148 \family typewriter
9149 .tex
9150 \family default
9151 ファイル中、「User specified \SpecialChar LaTeX
9152  commands」というコメントの直後にあります)を除いて、
9153 \family typewriter
9154
9155 \backslash
9156 makeatletter
9157 \family default
9158
9159 \family typewriter
9160
9161 \backslash
9162 makeatother
9163 \family default
9164 の間のもの(これらのコマンドを含む)をすべて削除します。
9165 \end_layout
9166
9167 \end_deeper
9168 \begin_layout Enumerate
9169 編集後のファイルを \SpecialChar LaTeX
9170 にかけて、正しく処理されることを確認します。
9171 \end_layout
9172
9173 \begin_layout Enumerate
9174 学術誌の要求事項を再読して、ファイル名と書式が正しいことを確認します。
9175 \end_layout
9176
9177 \begin_layout Enumerate
9178 投稿してください。
9179 \end_layout
9180
9181 \begin_layout Subsection
9182 特定のコマンドに関するコメント
9183 \end_layout
9184
9185 \begin_layout Standard
9186 AAS\SpecialChar TeX
9187 ユーザーの手引き(
9188 \family typewriter
9189 aasguide.tex
9190 \family default
9191 )に、各AAS\SpecialChar TeX
9192 コマンドの詳しい説明があるので、ここでは、各コマンドの使用法の詳細な説明は行いません。そこで、ここではユーザーの手引きに現れるとおりに一覧を列挙し
9193 て、必要なところだけコメントを加えることにしましょう。
9194 \end_layout
9195
9196 \begin_layout Subsubsection
9197 期待通りに動作するもの
9198 \end_layout
9199
9200 \begin_layout Standard
9201 これらは期待通りに動作するので、ここでは列挙するだけにして、コマンドの説明されている節を挙げておきます。
9202 \family typewriter
9203
9204 \backslash
9205 documentclass
9206 \family default
9207  (2.1.1)・
9208 \family typewriter
9209
9210 \backslash
9211 begin{document}
9212 \family default
9213  (2.2)・
9214 \family typewriter
9215
9216 \backslash
9217 title
9218 \family default
9219  (2.3)・
9220 \family typewriter
9221
9222 \backslash
9223 author
9224 \family default
9225  (2.3)・
9226 \family typewriter
9227
9228 \backslash
9229 affil
9230 \family default
9231  (2.3)・
9232 \family typewriter
9233
9234 \backslash
9235 abstract
9236 \family default
9237  (2.4)・
9238 \family typewriter
9239
9240 \backslash
9241 keywords
9242 \family default
9243  (2.5)・
9244 \family typewriter
9245
9246 \backslash
9247 section
9248 \family default
9249  (2.7)・
9250 \family typewriter
9251
9252 \backslash
9253 subsection
9254 \family default
9255  (2.7)・
9256 \family typewriter
9257
9258 \backslash
9259 subsubsection
9260 \family default
9261  (2.7)・
9262 \family typewriter
9263
9264 \backslash
9265 paragraph
9266 \family default
9267  (2.7)・
9268 \family typewriter
9269
9270 \backslash
9271 facility
9272 \family default
9273  (2.10)・
9274 \family typewriter
9275
9276 \backslash
9277 begin{displaymath}
9278 \family default
9279  (2.12)・
9280 \family typewriter
9281
9282 \backslash
9283 begin{equation}
9284 \family default
9285  (2.12)・
9286 \family typewriter
9287
9288 \backslash
9289 begin{eqnarray}
9290 \family default
9291  (2.12)・
9292 \family typewriter
9293
9294 \backslash
9295 begin{mathletters}
9296 \family default
9297  (2.12)・
9298 \family typewriter
9299
9300 \backslash
9301 begin{thebibliography}
9302 \family default
9303  (2.13.1)・
9304 \family typewriter
9305
9306 \backslash
9307 bibitem
9308 \family default
9309  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9310 \family typewriter
9311
9312 \backslash
9313 begin{table}
9314 \family default
9315  (2.15.4)・
9316 \family typewriter
9317
9318 \backslash
9319 begin{tabular}
9320 \family default
9321  (2.15.4)・
9322 \family typewriter
9323
9324 \backslash
9325 caption
9326 \family default
9327  (2.15.4)・
9328 \family typewriter
9329
9330 \backslash
9331 label
9332 \family default
9333  (他にもあるが特に2.15.4)・
9334 \family typewriter
9335
9336 \backslash
9337 tablerefs
9338 \family default
9339  (2.15.5)・
9340 \family typewriter
9341
9342 \backslash
9343 tablecomments
9344 \family default
9345  (2.15.5)・
9346 \family typewriter
9347
9348 \backslash
9349 url
9350 \family default
9351  (2.17.4)・
9352 \family typewriter
9353
9354 \backslash
9355 end{document}
9356 \family default
9357  (2.18)。
9358 \end_layout
9359
9360 \begin_layout Standard
9361 以下のスタイルオプションも正しく動作します。
9362 \family typewriter
9363 longabstract
9364 \family default
9365  (2.4)・
9366 \family typewriter
9367 preprint
9368 \family default
9369  (3.2.1)・
9370 \family typewriter
9371 preprint2
9372 \family default
9373  (3.2.2)・
9374 \family typewriter
9375 eqsecnum
9376 \family default
9377  (3.3)・
9378 \family typewriter
9379 flushrt
9380 \family default
9381  (3.4)。これらは、
9382 \begin_inset Flex MenuItem
9383 status collapsed
9384
9385 \begin_layout Plain Layout
9386 文書\SpecialChar menuseparator
9387 設定
9388 \end_layout
9389
9390 \end_inset
9391
9392 にある、
9393 \family sans
9394 クラスオプション
9395 \family default
9396
9397 \family sans
9398 任意設定
9399 \family default
9400 ボックスに入力してください。
9401 \end_layout
9402
9403 \begin_layout Subsubsection
9404 動作するが、若干説明が必要なもの
9405 \end_layout
9406
9407 \begin_layout Standard
9408 以下のコマンドは動作しますが、若干の説明が必要です。
9409 \end_layout
9410
9411 \begin_layout Itemize
9412 以下の項目は、学術誌の編集者向けに取ってあるものですが、どうしても必要ならば、\SpecialChar LaTeX
9413 プリアンブルに入れることができます。
9414 \family typewriter
9415
9416 \backslash
9417 received
9418 \family default
9419
9420 \family typewriter
9421
9422 \backslash
9423 revised
9424 \family default
9425
9426 \family typewriter
9427
9428 \backslash
9429 accepted
9430 \family default
9431
9432 \family typewriter
9433
9434 \backslash
9435 ccc
9436 \family default
9437
9438 \family typewriter
9439 cpright
9440 \family default
9441 (すべて 2.1.3)。
9442 \end_layout
9443
9444 \begin_layout Itemize
9445 以下の項目は、\SpecialChar LaTeX
9446 のプリアンブルに置くことができるもので、これらは、ひな型ファイルには、空の引数と共に含まれています。
9447 \family typewriter
9448
9449 \backslash
9450 slugcomment
9451 \family default
9452 (2.1.4)・
9453 \family typewriter
9454
9455 \backslash
9456 shorttitle
9457 \family default
9458 (2.1.5)・
9459 \family typewriter
9460
9461 \backslash
9462 shortauthors
9463 \family default
9464 (2.1.5)。
9465 \end_layout
9466
9467 \begin_layout Itemize
9468
9469 \family typewriter
9470
9471 \backslash
9472 email
9473 \family default
9474 (2.3)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、\SpecialChar TeX
9475 コードを使用してください。
9476 \end_layout
9477
9478 \begin_layout Itemize
9479
9480 \family typewriter
9481
9482 \backslash
9483 and
9484 \family default
9485 (2.3)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9486 \end_layout
9487
9488 \begin_layout Itemize
9489
9490 \family typewriter
9491
9492 \backslash
9493 notetoeditor
9494 \family default
9495 (2.6)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、\SpecialChar TeX
9496 コードを使用してください。
9497 \end_layout
9498
9499 \begin_layout Itemize
9500
9501 \family typewriter
9502
9503 \backslash
9504 placetable
9505 \family default
9506 (2.8)―相互参照用タグを挿入することはできません。手動でタグ名を入力する必要があります。
9507 \end_layout
9508
9509 \begin_layout Itemize
9510
9511 \family typewriter
9512
9513 \backslash
9514 placefigure
9515 \family default
9516 (2.8)—
9517 \family typewriter
9518
9519 \backslash
9520 placetable
9521 \family default
9522 と同様。
9523 \end_layout
9524
9525 \begin_layout Itemize
9526
9527 \family typewriter
9528
9529 \backslash
9530 acknowledgements
9531 \family default
9532 (2.9)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9533 \end_layout
9534
9535 \begin_layout Itemize
9536
9537 \family typewriter
9538
9539 \backslash
9540 appendix
9541 \family default
9542 (2.11)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9543 \end_layout
9544
9545 \begin_layout Itemize
9546
9547 \family typewriter
9548
9549 \backslash
9550 figcaption
9551 \family default
9552 (2.14.2)―文章のはじめにカーソルを置いて
9553 \begin_inset Flex MenuItem
9554 status collapsed
9555
9556 \begin_layout Plain Layout
9557 挿入\SpecialChar menuseparator
9558 短縮タイトル
9559 \end_layout
9560
9561 \end_inset
9562
9563 を選択すれば、非必須のファイル名引数を挿入することができます。「短縮タイトル」とありますが、
9564 \family typewriter
9565
9566 \backslash
9567 figcaption
9568 \family default
9569 が必要とする型の非必須引数を挿入します。望むらくはいつの日か改名されることでしょう。
9570 \end_layout
9571
9572 \begin_layout Itemize
9573
9574 \family typewriter
9575
9576 \backslash
9577 objectname
9578 \family default
9579 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
9580 \family typewriter
9581
9582 \backslash
9583 figcaption
9584 \family default
9585 と同様。
9586 \end_layout
9587
9588 \begin_layout Itemize
9589
9590 \family typewriter
9591
9592 \backslash
9593 dataset
9594 \family default
9595 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
9596 \family typewriter
9597
9598 \backslash
9599 figcaption
9600 \family default
9601 と同様。
9602 \end_layout
9603
9604 \begin_layout Subsubsection
9605 実装されていないため、\SpecialChar TeX
9606 コードを使用するもの
9607 \end_layout
9608
9609 \begin_layout Standard
9610
9611 \family typewriter
9612
9613 \backslash
9614 altaffilmark
9615 \family default
9616 (2.3)・
9617 \family typewriter
9618
9619 \backslash
9620 altaffiltext
9621 \family default
9622 (2.3)・
9623 \family typewriter
9624
9625 \backslash
9626 eqnum
9627 \family default
9628 (2.12)・
9629 \family typewriter
9630
9631 \backslash
9632 setcounter{equation}
9633 \family default
9634 (2.12)・学術誌名略語(2.12.4)・
9635 \family typewriter
9636
9637 \backslash
9638 figurenum
9639 \family default
9640 (2.14.1)・
9641 \family typewriter
9642
9643 \backslash
9644 epsscale
9645 \family default
9646 (2.14.1)・
9647 \family typewriter
9648
9649 \backslash
9650 plotone
9651 \family default
9652 (2.14.1)・
9653 \family typewriter
9654
9655 \backslash
9656 plottwo
9657 \family default
9658 (2.14.1)・
9659 \family typewriter
9660
9661 \backslash
9662 tablenum
9663 \family default
9664 (2.15.4)・
9665 \family typewriter
9666
9667 \backslash
9668 tableline
9669 \family default
9670 (2.15.4:入れたい場所の後ろに、左側セルの最初の要素として挿入する。表中では、\SpecialChar LyX
9671 の方法は使わないでください)・
9672 \family typewriter
9673
9674 \backslash
9675 tablenotemark
9676 \family default
9677 (2.15.5)・
9678 \family typewriter
9679
9680 \backslash
9681 tablenotetext
9682 \family default
9683 (2.15.5)・補遺(2.17)の大半(
9684 \family typewriter
9685
9686 \backslash
9687 objectname
9688 \family default
9689
9690 \family typewriter
9691
9692 \backslash
9693 dataset
9694 \family default
9695
9696 \family typewriter
9697
9698 \backslash
9699 url
9700 \family default
9701
9702 \family typewriter
9703
9704 \backslash
9705 email
9706 \family default
9707 を除く。上記参照)・
9708 \family typewriter
9709
9710 \backslash
9711 singlespace
9712 \family default
9713 (3.1)・
9714 \family typewriter
9715
9716 \backslash
9717 doublespace
9718 \family default
9719 (3.1)・
9720 \family typewriter
9721
9722 \backslash
9723 onecolumn
9724 \family default
9725 (3.2)・
9726 \family typewriter
9727
9728 \backslash
9729 twocolumn
9730 \family default
9731 (3.2)
9732 \end_layout
9733
9734 \begin_layout Subsubsection
9735 実装できないもの
9736 \end_layout
9737
9738 \begin_layout Standard
9739 references(2.12.3)環境とdeluxetable(2.14)環境は、少なくとも意味のあるような形で実装することができないので、無視してください。もし、
9740 絶対に、どうしても、deluxetableを使う必要があるならば、テキストエディタで別ファイルとして編集し、
9741 \begin_inset Flex MenuItem
9742 status collapsed
9743
9744 \begin_layout Plain Layout
9745 挿入\SpecialChar menuseparator
9746 ファイル
9747 \begin_inset Formula $\text{\textipa{}}$
9748 \end_inset
9749
9750 \SpecialChar menuseparator
9751 子文書
9752 \end_layout
9753
9754 \end_inset
9755
9756 を使用して、\SpecialChar LyX
9757 ファイルに読み込むことを推奨します。この実例は、
9758 \family typewriter
9759 aas_sample.lyx
9760 \family default
9761 ファイルをご参照ください。
9762 \end_layout
9763
9764 \begin_layout Subsection
9765 FAQとヒントと技とその他の考察
9766 \end_layout
9767
9768 \begin_layout Subsubsection
9769 \SpecialChar LyX
9770 をAAS\SpecialChar TeX
9771 と協調させる
9772 \end_layout
9773
9774 \begin_layout Standard
9775 \SpecialChar LyX
9776 に、新しいレイアウトと文書クラスを認識させるには若干コツが要ります。もしうまく行かなかったら、次のようにしてみてください。
9777 \end_layout
9778
9779 \begin_layout Enumerate
9780 \SpecialChar LaTeX
9781 が、AAS\SpecialChar TeX
9782 を検出できることを確認してください。AAS\SpecialChar TeX
9783 頒布版に含まれる
9784 \family typewriter
9785 sample.tex
9786 \family default
9787 (あるいは
9788 \family typewriter
9789 table.tex
9790 \family default
9791 でも可)を、\SpecialChar LaTeX
9792 やAAS\SpecialChar TeX
9793 とまったく関係のないディレクトリにコピーして、
9794 \family typewriter
9795 sample.tex
9796 \family default
9797 を\SpecialChar LaTeX
9798 にかけてください。
9799 \end_layout
9800
9801 \begin_layout Enumerate
9802
9803 \family typewriter
9804 aastex.layout
9805 \family default
9806 が、\SpecialChar LyX
9807
9808 \family typewriter
9809 layouts
9810 \family default
9811 フォルダにあることを確認してください。
9812 \end_layout
9813
9814 \begin_layout Enumerate
9815 \SpecialChar LyX
9816 中から
9817 \family sans
9818 ツール\SpecialChar menuseparator
9819 環境構成
9820 \family default
9821 を再度実行し、\SpecialChar LyX
9822 を再起動してください。
9823 \end_layout
9824
9825 \begin_layout Enumerate
9826 ひな型ではなく、通常の新規ファイルを開いてください。AAS\SpecialChar TeX
9827 が、
9828 \family sans
9829 文書\SpecialChar menuseparator
9830 設定
9831 \family default
9832 のクラス一覧に表示されていますか?
9833 \end_layout
9834
9835 \begin_layout Standard
9836 既存のAAS\SpecialChar TeX
9837 文書を処理する際に、AAS\SpecialChar TeX
9838 レイアウトを見つけられないとか、「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
9839 れば、正しい導入が行われていません。
9840 \end_layout
9841
9842 \begin_layout Subsubsection
9843 表を処理する際の\SpecialChar LaTeX
9844 エラー
9845 \end_layout
9846
9847 \begin_layout Standard
9848 既定では、\SpecialChar LyX
9849 は、表のキャプションやタイトルを中央揃えにしようと試みます。これはAAS\SpecialChar TeX
9850 と悪い相互干渉を発生させるようですので、キャプションやタイトルのどこかをクリッ
9851 クして、
9852 \family sans
9853 編集\SpecialChar menuseparator
9854 段落設定
9855 \family default
9856 を選択し、
9857 \family sans
9858 配置
9859 \family default
9860
9861 \family sans
9862 両端揃え
9863 \family default
9864 に設定してください。私のところではこれで解決しました。
9865 \end_layout
9866
9867 \begin_layout Subsubsection
9868 書誌情報
9869 \end_layout
9870
9871 \begin_layout Standard
9872 若干の注意があります。(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです。書誌情報を入力する際には、最後の著者と、著作年を入れる括弧の間にスペ
9873 ースを
9874 \emph on
9875 入れない
9876 \emph default
9877 ようにしてください。たとえば、
9878 \family typewriter
9879 Ressler(1992)
9880 \family default
9881 はいいですが、
9882 \family typewriter
9883 Ressler (1992)
9884 \family default
9885 ではだめです。(2)書誌情報の入力の仕方は、必ずしも自明ではありません。もっとも簡単な方法は、文書の最後に、最初の書誌情報をまず書き込み、それを
9886 \family sans
9887 書誌情報
9888 \family default
9889 環境としてマークすることです。すると、入力したものの前に、小さな灰色のボックスが現れます。このボックスをクリックして、残りの情報を入力してください。新しい書誌情
9890 報を追加するには、既存の書誌情報の後ろでリターンを押します。すると、新しいボックスの付いた新規行が出てくるので、後は同様にしてください。
9891 \end_layout
9892
9893 \begin_layout Subsubsection
9894 EPSファイルの読み込み
9895 \end_layout
9896
9897 \begin_layout Standard
9898 AAS\SpecialChar TeX
9899 には、自前の図関連コマンド(たとえば
9900 \family typewriter
9901
9902 \backslash
9903 plotone
9904 \family default
9905 )がありますが、私は(既定のgraphicxを使った)\SpecialChar LaTeX
9906 の標準図コマンドの方がずっと好きです。望めば、図フロートボックスに、\SpecialChar TeX
9907 コードで
9908 \family typewriter
9909
9910 \backslash
9911 plotone
9912 \family default
9913 等のコマンドを挿入することはできますが、私には正しいレイアウトを得ることができた試しがありません。標準の画像コマンドを使えば、\SpecialChar LyX
9914 は、
9915 \family typewriter
9916
9917 \backslash
9918 usepackage{graphics}
9919 \family default
9920 コマンドを\SpecialChar LaTeX
9921 プリアンブルに挿入し、図を\SpecialChar LaTeX2e
9922 の標準的な方法で取り扱って、文章の中にちりばめます。現在、ApJは、ちょうどこのようにして作成した図を受け入れていますが、A
9923 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません。
9924 \end_layout
9925
9926 \begin_layout Subsubsection
9927 可能だったが、実装しなかったもの
9928 \end_layout
9929
9930 \begin_layout Standard
9931 「素敵な」ものの中には、実装することも可能だったけれども、あえて実装しなかったものがあります。たとえば、紙の原稿ではダブルスペースであったとしても、\SpecialChar LyX
9932 ウィンドウ中
9933 で、文章をダブルスペースにする意味はないと考えました。また、preprint様式とpreprint2様式を、独立したレイアウトにすることもしませんでした。いずれ
9934 にしても、執筆時間のほとんどを、平の原稿モードで使うのがほとんどですから、これらの機能でディスクスペースを消費しないことにしました。
9935 \end_layout
9936
9937 \begin_layout Subsection
9938 最後に
9939 \end_layout
9940
9941 \begin_layout Standard
9942 これまでに進んできた道のりは、長い人も短い人もいることでしょう。私には、ApJとAJに発表した論文がありますが、その努力の98
9943 \begin_inset space \thinspace{}
9944 \end_inset
9945
9946 %は\SpecialChar LyX
9947 上で為されました。残りの2
9948 \begin_inset space \thinspace{}
9949 \end_inset
9950
9951 %が、\SpecialChar LaTeX
9952 での後処理と若干の後片付けです。投稿の過程では何のトラブルもなく、これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう。ですから、がんばっ
9953 て発表してください!
9954 \end_layout
9955
9956 \begin_layout Section
9957 AMS \SpecialChar LaTeX
9958
9959 \end_layout
9960
9961 \begin_layout Standard
9962
9963 \noun on
9964 David Johnson
9965 \noun default
9966 文 
9967 \noun on
9968 Richard Heck
9969 \noun default
9970 改訂
9971 \begin_inset VSpace bigskip
9972 \end_inset
9973
9974
9975 \end_layout
9976
9977 \begin_layout Standard
9978 AMS \SpecialChar LaTeX
9979 レイアウトは、American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです。レイアウトは、特定
9980 の学術誌向けに仕立てられてはいませんが、簡単にそうすることができます。各学術誌毎の指示については、AMSの説明書をご参照ください(通常は、\SpecialChar TeX
9981 出力中の一行を変更する
9982 必要があるだけです)。AMSの説明書は、ウェブWeb上の
9983 \begin_inset Flex URL
9984 status open
9985
9986 \begin_layout Plain Layout
9987
9988 http://www.ams.org
9989 \end_layout
9990
9991 \end_inset
9992
9993 か、FTPで
9994 \begin_inset Flex URL
9995 status open
9996
9997 \begin_layout Plain Layout
9998
9999 ftp://ftp.ams.org/pub/tex/amslatex/
10000 \end_layout
10001
10002 \end_inset
10003
10004 から入手することができます。これらのレイアウトは、数学的な文章を書くのであれば、どんなときでも適切かつ有用であるはずです。
10005 \end_layout
10006
10007 \begin_layout Standard
10008 基本となるAMS \SpecialChar LaTeX
10009 レイアウトには、以下の二つがあります。
10010 \end_layout
10011
10012 \begin_layout Itemize
10013 amsart:標準のAMS article書式。
10014 \end_layout
10015
10016 \begin_layout Itemize
10017 amsbook:標準のAMS book(実際はモノグラフ)書式。
10018 \end_layout
10019
10020 \begin_layout Standard
10021 これらのレイアウトには、それ自身では、AMSクラスを使用するのに必要最低限のものしか含まれていません。特に、定理や補題などを設定するのに使用される「theore
10022 m」環境は、何一つ含まれていません。これらは、代わりに
10023 \begin_inset Flex Code
10024 status collapsed
10025
10026 \begin_layout Plain Layout
10027 定理(AMS)
10028 \end_layout
10029
10030 \end_inset
10031
10032 モジュールに収録されており、AMSクラスのいずれかを選択すると、このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ、別
10033 のものに変えたいときは取り除くこともできます)。少し使用頻度の低いものとしては、
10034 \begin_inset Flex Code
10035 status collapsed
10036
10037 \begin_layout Plain Layout
10038 定理(AMS拡張)
10039 \end_layout
10040
10041 \end_inset
10042
10043 モジュールがあり、これは手動で読み込む必要があります。
10044 \end_layout
10045
10046 \begin_layout Standard
10047 既定では、定理類は、文書を通して連番が振られますが、これは
10048 \begin_inset Flex Code
10049 status collapsed
10050
10051 \begin_layout Plain Layout
10052 定理(節毎連番)
10053 \end_layout
10054
10055 \end_inset
10056
10057 モジュールを読み込めば変更することができ、
10058 \begin_inset Flex Code
10059 status collapsed
10060
10061 \begin_layout Plain Layout
10062 book (AMS)
10063 \end_layout
10064
10065 \end_inset
10066
10067 を使用している場合には
10068 \begin_inset Flex Code
10069 status collapsed
10070
10071 \begin_layout Plain Layout
10072 定理(章毎連番)
10073 \end_layout
10074
10075 \end_inset
10076
10077 を用いても変更することができます。これらを用いると、出力は
10078 \begin_inset Formula $n.m$
10079 \end_inset
10080
10081 のようになり、最初の数字は節番号(または章番号)、次の数字はそれまで同節内(章内)に現れた出力の全数を表します。大半の環境は、連番なしでも用いることができます。
10082 連番なしのものは、環境名の後ろにアスタリスクを付けたもので表されます。連番なしの出力
10083 \emph on
10084 のみ
10085 \emph default
10086 が欲しい場合には、
10087 \begin_inset Flex Code
10088 status collapsed
10089
10090 \begin_layout Plain Layout
10091 定理(連番なし)
10092 \end_layout
10093
10094 \end_inset
10095
10096 モジュールを用います。
10097 \end_layout
10098
10099 \begin_layout Standard
10100 これらのモジュールは、AMSクラスで使用する
10101 \emph on
10102 必要はない
10103 \emph default
10104 ことに注意してください。
10105 \begin_inset Flex Code
10106 status collapsed
10107
10108 \begin_layout Plain Layout
10109 定理(AMS)
10110 \end_layout
10111
10112 \end_inset
10113
10114 モジュールや上述の他のモジュールは、他のクラス、たとえば
10115 \begin_inset Flex Code
10116 status collapsed
10117
10118 \begin_layout Plain Layout
10119 article
10120 \end_layout
10121
10122 \end_inset
10123
10124
10125 \begin_inset Flex Code
10126 status collapsed
10127
10128 \begin_layout Plain Layout
10129 report
10130 \end_layout
10131
10132 \end_inset
10133
10134
10135 \begin_inset Flex Code
10136 status collapsed
10137
10138 \begin_layout Plain Layout
10139 book (KOMA-script)
10140 \end_layout
10141
10142 \end_inset
10143
10144 などで問題なく使用することができます。
10145 \end_layout
10146
10147 \begin_layout Subsection
10148 これらのレイアウトが提供するもの
10149 \end_layout
10150
10151 \begin_layout Standard
10152 これらのレイアウトが提供している環境を列挙すると、長い一覧となります。AMS-\SpecialChar LaTeX
10153 では、実のところ、「theorem」環境の派生型を際限なく定義していくことが可能で
10154 す。しかし、AMSは、\SpecialChar LyX
10155 で利用可能になっている環境のみを使用することを推奨しています。
10156 \end_layout
10157
10158 \begin_layout Standard
10159 \begin_inset Flex Code
10160 status collapsed
10161
10162 \begin_layout Plain Layout
10163 article (AMS)
10164 \end_layout
10165
10166 \end_inset
10167
10168
10169 \begin_inset Flex Code
10170 status collapsed
10171
10172 \begin_layout Plain Layout
10173 book (AMS)
10174 \end_layout
10175
10176 \end_inset
10177
10178 には、——
10179 \begin_inset space ~
10180 \end_inset
10181
10182
10183 \begin_inset Flex Noun
10184 status collapsed
10185
10186 \begin_layout Plain Layout
10187
10188 \end_layout
10189
10190 \end_inset
10191
10192
10193 \begin_inset Flex Noun
10194 status collapsed
10195
10196 \begin_layout Plain Layout
10197 書誌情報
10198 \end_layout
10199
10200 \end_inset
10201
10202
10203 \begin_inset Flex Noun
10204 status collapsed
10205
10206 \begin_layout Plain Layout
10207 タイトル
10208 \end_layout
10209
10210 \end_inset
10211
10212
10213 \begin_inset Flex Noun
10214 status collapsed
10215
10216 \begin_layout Plain Layout
10217 著者
10218 \end_layout
10219
10220 \end_inset
10221
10222
10223 \begin_inset Flex Noun
10224 status collapsed
10225
10226 \begin_layout Plain Layout
10227 日付
10228 \end_layout
10229
10230 \end_inset
10231
10232 のような標準環境の他に
10233 \begin_inset space ~
10234 \end_inset
10235
10236 ——
10237 \begin_inset space ~
10238 \end_inset
10239
10240 以下の環境があります。
10241 \end_layout
10242
10243 \begin_layout Description
10244 住所 これは著者の恒久的な住所です。
10245 \end_layout
10246
10247 \begin_layout Description
10248 現在の住所 住所と別に指定されているときには、著者の投稿時の仮初めの住所です。
10249 \end_layout
10250
10251 \begin_layout Description
10252 電子メール 著者の電子メールアドレス
10253 \end_layout
10254
10255 \begin_layout Description
10256 URL 著者のウェブアドレス。任意。
10257 \end_layout
10258
10259 \begin_layout Description
10260 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ。
10261 \end_layout
10262
10263 \begin_layout Description
10264 分野分類 
10265 \emph on
10266 Mathematical Reviews
10267 \emph default
10268 に説明が公表されているAMS Subject Classificationsの分類番号を指します。上述したAMSのウェブサイトでも、オンラインで見ることができま
10269 す。
10270 \end_layout
10271
10272 \begin_layout Description
10273 謝辞
10274 \end_layout
10275
10276 \begin_layout Description
10277 献呈
10278 \end_layout
10279
10280 \begin_layout Description
10281 翻訳者
10282 \end_layout
10283
10284 \begin_layout Standard
10285 以下の環境は、
10286 \begin_inset Flex Code
10287 status collapsed
10288
10289 \begin_layout Plain Layout
10290 定理
10291 \end_layout
10292
10293 \end_inset
10294
10295 モジュールと
10296 \begin_inset Flex Code
10297 status collapsed
10298
10299 \begin_layout Plain Layout
10300 定理(AMS)
10301 \end_layout
10302
10303 \end_inset
10304
10305 モジュールの両方で提供され、後者の場合には、星付き(連番なし)版と星なし(連番)版の両方が提供されます。
10306 \begin_inset Flex Code
10307 status collapsed
10308
10309 \begin_layout Plain Layout
10310 定理(連番なし)
10311 \end_layout
10312
10313 \end_inset
10314
10315 モジュールでは、同環境の星付き版だけが提供されます。
10316 \end_layout
10317
10318 \begin_layout Theorem
10319 これは、通常、得られた主要な結果を叙述するのに使用されます。
10320 \end_layout
10321
10322 \begin_layout Corollary*
10323 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います。これも主要な結果であることがあります。
10324 \end_layout
10325
10326 \begin_layout Lemma
10327 他の叙述を証明するために必要とされる、比較的小さな結果です。
10328 \end_layout
10329
10330 \begin_layout Proposition
10331 議論されている一般的な理論に(希望的には)何かを付け加えるような、主要ではない結果です。
10332 \end_layout
10333
10334 \begin_layout Conjecture
10335 正当化を与えずに述べられた叙述で、著者には証明法がわからないけれども、正しいと(少なくとも著者にとっては)思われるものです。
10336 \end_layout
10337
10338 \begin_layout Definition*
10339 これは自明でしょう。この環境のフォントは、前述の環境とは異なるフォントが使用されます。
10340 \end_layout
10341
10342 \begin_layout Problem
10343 これが何を指すかは必ずしも特定されていません。ご自分で解明してください。
10344 \end_layout
10345
10346 \begin_layout Exercise*
10347 この環境の説明を記述せよ。
10348 \end_layout
10349
10350 \begin_layout Note
10351 この環境もtheorem型、通常は重要性の低い所見に用いられます。
10352 \end_layout
10353
10354 \begin_layout Claim*
10355 より大きな結果の証明を与える途中で、しばしば用いられます。
10356 \end_layout
10357
10358 \begin_layout Case
10359 一般的に、これらはある条件の特定の場合を取り上げて、長い議論を区切るのに用いられます。
10360 \end_layout
10361
10362 \begin_layout Case
10363 ケースの連番の枠組みは、それ自身で独立していて、他の連番の叙述とは区別されます。
10364 \end_layout
10365
10366 \begin_layout Proof
10367 この環境の最後には、証了記号(通常は四角ですがスタイルによって変わります)が置かれます。この環境の中に別の環境を入れたい——たとえばケース環境など——場合で、証
10368 了記号は証明環境の終わりにのみ現れるようにしたい場合には、他の環境は証明環境の中に入れ子にしなくてはなりません。入れ子に関する情報については、
10369 \emph on
10370 ユーザーの手引き
10371 \emph default
10372
10373 \emph on
10374 環境を入れ子にする
10375 \emph default
10376 の節をご覧ください。
10377 \end_layout
10378
10379 \begin_layout Standard
10380 そして、以下は
10381 \begin_inset Flex Code
10382 status collapsed
10383
10384 \begin_layout Plain Layout
10385 定理(AMS拡張)
10386 \end_layout
10387
10388 \end_inset
10389
10390 で提供されるものです。
10391 \end_layout
10392
10393 \begin_layout Criterion*
10394 必要とされる条件です。
10395 \end_layout
10396
10397 \begin_layout Algorithm*
10398 使用する一般的手順です。
10399 \end_layout
10400
10401 \begin_layout Axiom*
10402 議論されている系内部で真と仮定される性質や命題です。
10403 \end_layout
10404
10405 \begin_layout Condition*
10406 議論の現在の文脈で仮定されている条件を述べるのに、よく用いられます。
10407 \end_layout
10408
10409 \begin_layout Note*
10410 注記と同様です。
10411 \end_layout
10412
10413 \begin_layout Notation*
10414 表記法の説明に用いられます。
10415 \end_layout
10416
10417 \begin_layout Summary
10418 本当に説明する必要がありますか?
10419 \end_layout
10420
10421 \begin_layout Acknowledgement*
10422 謝辞(acknowledgement)です。
10423 \end_layout
10424
10425 \begin_layout Conclusion*
10426 長い議論の終わりに時々用いられます。
10427 \end_layout
10428
10429 \begin_layout Fact
10430 命題と同様の用いられ方をしますが、だいたい長くないものに使われるようです。
10431 \end_layout
10432
10433 \begin_layout Standard
10434 さらに、AMSクラスは、AMS \SpecialChar LaTeX
10435 パッケージとAMSフォントパッケージを自動的に提供します。これらの環境を使用するためには、お使いのシステム上で利用可能となってい
10436 る必要があります。
10437 \end_layout
10438
10439 \begin_layout Section
10440 AGU各誌(
10441 \family sans
10442 aguplus)
10443 \end_layout
10444
10445 \begin_layout Standard
10446
10447 \noun on
10448 Martin Vermeer
10449 \noun default
10450
10451 \end_layout
10452
10453 \begin_layout Subsection
10454 概要
10455 \end_layout
10456
10457 \begin_layout Standard
10458 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです。AGU発行のクラスファイルおよび
10459 AGUplusの両方(これらは
10460 \begin_inset Flex URL
10461 status collapsed
10462
10463 \begin_layout Plain Layout
10464
10465 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10466 \end_layout
10467
10468 \end_inset
10469
10470 にあります)が導入されていることが必要です。
10471 \end_layout
10472
10473 \begin_layout Subsection
10474 新しいスタイル
10475 \end_layout
10476
10477 \begin_layout Standard
10478
10479 \family sans
10480 段落
10481 \family default
10482 および
10483 \family sans
10484 段落*
10485 \family default
10486 は、定義し直されています。\SpecialChar LyX
10487 の画面では、依然として
10488 \family sans
10489 段落
10490 \family default
10491
10492 \family sans
10493 段落*
10494 \family default
10495 と表示されますが、AGUクラスにおける\SpecialChar LaTeX
10496 の対応物は、
10497 \family sans
10498 Subsubsubsection
10499 \family default
10500
10501 \family sans
10502 Subsubsubsection*
10503 \family default
10504 です。
10505 \end_layout
10506
10507 \begin_layout Standard
10508 新しく定義されたスタイルには、
10509 \family sans
10510 左ヘッダ
10511 \family default
10512
10513 \family sans
10514 右ヘッダ
10515 \family default
10516
10517 \family sans
10518 受理日
10519 \family default
10520
10521 \family sans
10522 改訂
10523 \family default
10524
10525 \family sans
10526 採択日
10527 \family default
10528
10529 \family sans
10530 CCC
10531 \family default
10532
10533 \family sans
10534 論文ID
10535 \family default
10536
10537 \family sans
10538 著者住所
10539 \family default
10540
10541 \family sans
10542 廃棄用コメント
10543 \family default
10544 があります。これらは、ほとんど草稿用属性で、AGUクラス説明書で説明されています。
10545 \end_layout
10546
10547 \begin_layout Standard
10548 おそらく、これはまだ恐ろしく不完全です。
10549 \end_layout
10550
10551 \begin_layout Subsection
10552 新しいフロート
10553 \end_layout
10554
10555 \begin_layout Standard
10556
10557 \family sans
10558 平面表(Planotable
10559 \family default
10560 )と
10561 \family sans
10562 挿絵
10563 \family default
10564 (Plate)が新しいフロートです。また、
10565 \family sans
10566 表キャプション
10567 \family default
10568 も付け加えられています。
10569 \end_layout
10570
10571 \begin_layout Subsection
10572 サポートされている学術誌
10573 \end_layout
10574
10575 \begin_layout Itemize
10576
10577 \emph on
10578 Journal of Geophysical Research
10579 \emph default
10580
10581 \family typewriter
10582 jgrga.layout
10583 \family default
10584  — Martin Vermeer
10585 \end_layout
10586
10587 \begin_layout Standard
10588 ここにあなたの作ったものを加えてください。難しくはありません。
10589 \family typewriter
10590 jgrga.layout
10591 \family default
10592 と 
10593 \family typewriter
10594 aguplus.inc
10595 \family default
10596 を用例として見てください。
10597 \end_layout
10598
10599 \begin_layout Subsection
10600 バグと注意すべきこと
10601 \end_layout
10602
10603 \begin_layout Standard
10604 新しいレイアウトを使うためには、新規文書の作成時に以下の手順を行う必要があります。
10605 \end_layout
10606
10607 \begin_layout Enumerate
10608
10609 \emph on
10610 babelを無効にしてください。
10611 \emph default
10612 これは、
10613 \family sans
10614 ツール\SpecialChar menuseparator
10615 設定
10616 \family default
10617 メニュー項目で行うことができます(AGUの論文は常に英語ですよね。ですから他の言語は
10618 \emph on
10619 選ばないで下さい
10620 \emph default
10621 )。
10622 \end_layout
10623
10624 \begin_layout Enumerate
10625 使用文書の追加オプションフィールドに
10626 \family typewriter
10627 jgrga
10628 \family default
10629 と入力してください(すみません、これはバグです)。
10630 \end_layout
10631
10632 \begin_layout Enumerate
10633 Bib\SpecialChar TeX
10634 差込枠の2番目のフィールドに
10635 \family sans
10636 agu
10637 \family default
10638 と入力して、書誌情報のスタイルに
10639 \family typewriter
10640 agu.bst
10641 \family default
10642 を使用していることを確認してください。標準スタイルはうまく動作しません。
10643 \end_layout
10644
10645 \begin_layout Section
10646 Broadway
10647 \end_layout
10648
10649 \begin_layout Standard
10650
10651 \noun on
10652 Garst Reese
10653 \noun default
10654
10655 \end_layout
10656
10657 \begin_layout Subsection
10658 はじめに
10659 \end_layout
10660
10661 \begin_layout Standard
10662 Broadwayは演劇を書くためのものです。書式はHollywoodよりも装飾的で、それほど標準化されていません。この書式はワークショップに向いているでしょう。
10663 \end_layout
10664
10665 \begin_layout Subsection
10666 特別な問題
10667 \end_layout
10668
10669 \begin_layout Standard
10670 Hollywoodと同様です。
10671 \end_layout
10672
10673 \begin_layout Subsection
10674 特別の機能
10675 \end_layout
10676
10677 \begin_layout Standard
10678
10679 \family sans
10680 話者
10681 \family default
10682 の名前をラベルとして挿入し、名前を挿入する際には、このラベルを相互参照してください。相互参照ダイアログには、登場人物の現在の配役が表示されます。
10683 \end_layout
10684
10685 \begin_layout Subsection
10686 用紙寸法と余白
10687 \end_layout
10688
10689 \begin_layout Standard
10690 USレター寸法で、余白は左1.6インチ、右0.75インチ、上0.5インチ、下0.75インチです。
10691 \end_layout
10692
10693 \begin_layout Subsection
10694 環境
10695 \end_layout
10696
10697 \begin_layout Standard
10698 以下の環境を使うことができます。右に記してある
10699 \begin_inset Flex Ruby
10700 status collapsed
10701
10702 \begin_layout Plain Layout
10703
10704 \begin_inset Argument post:1
10705 status collapsed
10706
10707 \begin_layout Plain Layout
10708 キー
10709 \end_layout
10710
10711 \end_inset
10712
10713
10714 \end_layout
10715
10716 \end_inset
10717
10718 割当ては、broadway.bindを使った場合のものです。
10719 \end_layout
10720
10721 \begin_layout Itemize
10722
10723 \family sans
10724 標準
10725 \begin_inset Newline newline
10726 \end_inset
10727
10728
10729 \family default
10730 これは使わなくていいはずですが、他の環境が当てはまらない場合のためにここに挙げておきます。
10731 \end_layout
10732
10733 \begin_layout Itemize
10734
10735 \family sans
10736 ト書き
10737 \begin_inset space \hfill{}
10738 \end_inset
10739
10740 M-z n
10741 \begin_inset Newline newline
10742 \end_inset
10743
10744
10745 \family default
10746 舞台設定と動作の説明に用います。最初に話者名をすべて大文字で書いておきます。
10747 \end_layout
10748
10749 \begin_layout Itemize
10750
10751 \family sans
10752
10753 \begin_inset space \hfill{}
10754 \end_inset
10755
10756 M-z a
10757 \begin_inset Newline newline
10758 \end_inset
10759
10760
10761 \family default
10762 自動的に連番が振られます。連番は、画面上ではアラビア数字ですが、出力ではローマ数字です。
10763 \end_layout
10764
10765 \begin_layout Itemize
10766
10767 \family sans
10768 幕*
10769 \begin_inset space \hfill{}
10770 \end_inset
10771
10772 M-z S at
10773 \begin_inset Newline newline
10774 \end_inset
10775
10776
10777 \family default
10778 幕の副題です。単に中央揃えの文になります。
10779 \end_layout
10780
10781 \begin_layout Itemize
10782
10783 \family sans
10784 場面
10785 \begin_inset space \hfill{}
10786 \end_inset
10787
10788 M-z S-S
10789 \begin_inset Newline newline
10790 \end_inset
10791
10792
10793 \family default
10794 自動的に連番は振られませんので、手動で番号を付けてください。これは私がどうすればいいか分からなかったためです。
10795 \end_layout
10796
10797 \begin_layout Itemize
10798
10799 \family sans
10800 幕開きに:
10801 \begin_inset space \hfill{}
10802 \end_inset
10803
10804 M-z S-R
10805 \begin_inset Newline newline
10806 \end_inset
10807
10808
10809 \family default
10810 ト書きの特殊な場合で、カーテンが上がるときの舞台設定と動作を説明します。
10811 \end_layout
10812
10813 \begin_layout Itemize
10814
10815 \family sans
10816 話者
10817 \begin_inset space \hfill{}
10818 \end_inset
10819
10820 M-z s
10821 \begin_inset Newline newline
10822 \end_inset
10823
10824
10825 \family default
10826 話者(役者)の配役です。すべて大文字で中央揃えに置かれます。
10827 \end_layout
10828
10829 \begin_layout Itemize
10830
10831 \family sans
10832 括弧付き
10833 \begin_inset space \hfill{}
10834 \end_inset
10835
10836 M-z p
10837 \begin_inset Newline newline
10838 \end_inset
10839
10840
10841 \family default
10842 話者への指示です。括弧は自動的に挿入されます。画面上には左括弧(のみが表示されますが、印字出力には両方の括弧が表示されます。この環境は、
10843 \family sans
10844 対話
10845 \family default
10846 の中だけで使用されます。 
10847 \end_layout
10848
10849 \begin_layout Itemize
10850
10851 \family sans
10852 対話
10853 \begin_inset space \hfill{}
10854 \end_inset
10855
10856 M-z d
10857 \begin_inset Newline newline
10858 \end_inset
10859
10860
10861 \family default
10862 話者の言う内容。
10863 \end_layout
10864
10865 \begin_layout Itemize
10866
10867 \family sans
10868 幕切れ
10869 \begin_inset space \hfill{}
10870 \end_inset
10871
10872 M-z S-C
10873 \begin_inset Newline newline
10874 \end_inset
10875
10876
10877 \family default
10878 幕が降ります。
10879 \end_layout
10880
10881 \begin_layout Itemize
10882
10883 \family sans
10884 タイトル
10885 \begin_inset space \hfill{}
10886 \end_inset
10887
10888 M-z S-T
10889 \end_layout
10890
10891 \begin_layout Itemize
10892
10893 \family sans
10894 著者
10895 \begin_inset space \hfill{}
10896 \end_inset
10897
10898 M-z S-A
10899 \end_layout
10900
10901 \begin_layout Itemize
10902
10903 \family sans
10904 右寄せ住所
10905 \begin_inset space \hfill{}
10906 \end_inset
10907
10908 M-z r
10909 \end_layout
10910
10911 \begin_layout Section
10912 Dinbrief
10913 \end_layout
10914
10915 \begin_layout Standard
10916 文書クラス
10917 \family sans
10918 dinbrief
10919 \family default
10920 は、ドイツの慣習に則った書簡の組版を行うのに用いられます。ひな型ファイルが
10921 \family typewriter
10922 .../lyx/share/templates
10923 \family default
10924 にあるので、それを土台として使用してください。
10925 \end_layout
10926
10927 \begin_layout Section
10928 EGS各誌
10929 \family sans
10930 (egs)
10931 \end_layout
10932
10933 \begin_layout Standard
10934
10935 \noun on
10936 Martin Vermeer
10937 \noun default
10938
10939 \end_layout
10940
10941 \begin_layout Subsection
10942 概要
10943 \end_layout
10944
10945 \begin_layout Standard
10946 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです。必要とされる
10947 \family typewriter
10948 egs.cls
10949 \family default
10950 は、EGSのウェブサイト
10951 \begin_inset Flex URL
10952 status collapsed
10953
10954 \begin_layout Plain Layout
10955
10956 http://www.copernicus.org/
10957 \end_layout
10958
10959 \end_inset
10960
10961 からダウンロードできます。
10962 \end_layout
10963
10964 \begin_layout Subsection
10965 新しいスタイル
10966 \end_layout
10967
10968 \begin_layout Standard
10969 新しいスタイルとして、
10970 \family sans
10971 右寄せ住所
10972 \family default
10973
10974 \family sans
10975 \SpecialChar LaTeX
10976 タイトル
10977 \family default
10978
10979 \family sans
10980 所属
10981 \family default
10982
10983 \family sans
10984 学術誌名
10985 \family default
10986
10987 \family sans
10988 原稿番号
10989 \family default
10990
10991 \family sans
10992 筆頭著者
10993 \family default
10994
10995 \family sans
10996 受理日
10997 \family default
10998
10999 \family sans
11000 採択日
11001 \family default
11002
11003 \family sans
11004 オフセット
11005 \family default
11006 があります。現在のレイアウトファイルは、残念ながらほとんどモジュール化されておらず、さまざまな
11007 \family typewriter
11008 std*.inc
11009 \family default
11010 ファイルを読み込む形に変えた方が便利になると思われます。
11011 \end_layout
11012
11013 \begin_layout Section
11014 Elsevier各誌
11015 \end_layout
11016
11017 \begin_layout Standard
11018 \SpecialChar LyX
11019 ひな型ファイルの
11020 \family typewriter
11021 elsarticle.lyx
11022 \family default
11023 を参照してください。必要な情報は全てそこにあります。
11024 \end_layout
11025
11026 \begin_layout Section
11027 Foils (別名Foil\SpecialChar TeX
11028 )
11029 \begin_inset CommandInset label
11030 LatexCommand label
11031 name "sec:foiltex"
11032
11033 \end_inset
11034
11035
11036 \end_layout
11037
11038 \begin_layout Standard
11039
11040 \noun on
11041 Allan Rae
11042 \noun default
11043
11044 \end_layout
11045
11046 \begin_layout Subsection
11047 はじめに
11048 \end_layout
11049
11050 \begin_layout Standard
11051 本節では、プレゼンテーション用のスライドを作るための、\SpecialChar LyX
11052 の使用法を解説します。スライドを作ることのできる文書クラスには、slides・Foil\SpecialChar TeX
11053 ・seminar・b
11054 eamer・powerdotといったクラスがありますが、本節では、そのうちslidesの解説を行います。
11055 \end_layout
11056
11057 \begin_layout Standard
11058 誤解のないように、わかりやすく明確に、もう一度言っておきます。
11059 \end_layout
11060
11061 \begin_layout Standard
11062 \begin_inset VSpace bigskip
11063 \end_inset
11064
11065
11066 \end_layout
11067
11068 \begin_layout Standard
11069 \align center
11070
11071 \size large
11072 本節は「
11073 \family sans
11074 presentation (FoilT
11075 \size default
11076
11077 \begin_inset ERT
11078 status collapsed
11079
11080 \begin_layout Plain Layout
11081
11082 {}
11083 \end_layout
11084
11085 \end_inset
11086
11087
11088 \size large
11089 eX)
11090 \family default
11091 」クラス
11092 \emph on
11093 のみの
11094 \emph default
11095 解説を行います。
11096 \end_layout
11097
11098 \begin_layout Standard
11099 \begin_inset VSpace bigskip
11100 \end_inset
11101
11102
11103 \end_layout
11104
11105 \begin_layout Standard
11106
11107 \family sans
11108 transparencies (slides)
11109 \family default
11110 」の解説をお探しであれば、第
11111 \begin_inset CommandInset ref
11112 LatexCommand ref
11113 reference "sec:slitex"
11114
11115 \end_inset
11116
11117 節をご覧ください。お使いのコンピュータに
11118 \family sans
11119 foils
11120 \family default
11121 クラス(
11122 \family sans
11123 presentation (FoilT
11124 \begin_inset ERT
11125 status collapsed
11126
11127 \begin_layout Plain Layout
11128
11129 {}
11130 \end_layout
11131
11132 \end_inset
11133
11134 eX)
11135 \family default
11136 )が導入されていなければ、
11137 \family sans
11138 foils
11139 \family default
11140 ほど良くはありませんが、おそらく
11141 \family sans
11142 slides
11143 \family default
11144 クラスを使わざるをえないでしょう。
11145 \end_layout
11146
11147 \begin_layout Standard
11148
11149 \family sans
11150 foils
11151 \family default
11152 クラスは、\SpecialChar LaTeX2e
11153 の一部として含まれている\SpecialChar LaTeX
11154 クラスファイル
11155 \family sans
11156 foils.cls
11157 \family default
11158 の第2.1版とともに使われるように設計されています。
11159 \end_layout
11160
11161 \begin_layout Subsection
11162 最初の一歩
11163 \end_layout
11164
11165 \begin_layout Standard
11166 いうまでもなく、この文書クラスを使うには、
11167 \family sans
11168 文書\SpecialChar menuseparator
11169 設定\SpecialChar menuseparator
11170 文書クラス
11171 \family default
11172 メニューの
11173 \family sans
11174 文書クラス
11175 \family default
11176 ドロップダウンで「
11177 \family sans
11178 presentation (FoilT
11179 \begin_inset ERT
11180 status collapsed
11181
11182 \begin_layout Plain Layout
11183
11184 {}
11185 \end_layout
11186
11187 \end_inset
11188
11189 eX)
11190 \family default
11191 」を選択する必要があります。また、
11192 \family sans
11193 文書設定
11194 \family default
11195 ダイアログ中には、以下のように、このクラスに特有の設定がいくつかあることを知っておかなくてはなりません。
11196 \end_layout
11197
11198 \begin_layout Itemize
11199
11200 \family sans
11201 文書設定
11202 \family default
11203 ダイアログ中の、
11204 \family sans
11205 両面文書
11206 \family default
11207 オプションと
11208 \family sans
11209 二段組文書
11210 \family default
11211 オプションは変更しないでください。これらは 
11212 \family sans
11213 foils
11214 \family default
11215 クラスでは無視されます。
11216 \end_layout
11217
11218 \begin_layout Itemize
11219 既定のフォント寸法は20ptであり、17pt・25pt・30ptを選択することも可能です。
11220 \end_layout
11221
11222 \begin_layout Itemize
11223 既定のフォントは
11224 \family sans
11225 sans
11226 \family default
11227  
11228 \family sans
11229 serif
11230 \family default
11231 ですが、数式ではすべて、通常のローマン体が使用されます。
11232 \end_layout
11233
11234 \begin_layout Itemize
11235 Foil\SpecialChar TeX
11236 は、35
11237 \begin_inset space \thinspace{}
11238 \end_inset
11239
11240 mmスライド用の特殊寸法の他、A4とレター大の用紙寸法をサポートします。A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません。
11241 \end_layout
11242
11243 \begin_layout Itemize
11244
11245 \family sans
11246 フロートの配置
11247 \family default
11248 の設定は無視されますので、わざわざ変更する必要はありません。フロートはすべて、本文中で定義された位置に表示されます。
11249 \end_layout
11250
11251 \begin_layout Itemize
11252 このクラスの
11253 \family sans
11254 ページレイアウト
11255 \family default
11256 の設定は、若干異なった挙動を示します。Foil\SpecialChar TeX
11257 では、ユーザ定義のロゴをはじめ、フッタとへッダに広範な設定ができます。詳細については第
11258 \begin_inset CommandInset ref
11259 LatexCommand ref
11260 reference "sec:foilfoot"
11261
11262 \end_inset
11263
11264 節をご覧ください。タイトルページは、文書中の他のページとは異なった取扱がなされ、ページ番号は
11265 \emph on
11266 つねに
11267 \emph default
11268 付けられず、(ロゴが定義されていれば)ロゴは、
11269 \emph on
11270 つねに
11271 \emph default
11272 ページ下部中央に表示されます。使用できるページ様式とその挙動は、以下の通りです。
11273 \begin_inset Separator parbreak
11274 \end_inset
11275
11276
11277 \end_layout
11278
11279 \begin_deeper
11280 \begin_layout Labeling
11281 \labelwidthstring MMMMMMM
11282
11283 \family sans
11284 \series bold
11285 empty
11286 \family default
11287 \series default
11288  最終出力には、ページ番号をはじめ、へッダ・フッタが出力されません(もちろん脚注は除きます)。
11289 \end_layout
11290
11291 \begin_layout Labeling
11292 \labelwidthstring MMMMMMM
11293
11294 \family sans
11295 \series bold
11296 plain
11297 \family default
11298 \series default
11299  最終出力には、ページ番号がページ下部の中央に出力されますが、他のへッダ・フッタは出力されません(脚注除く)。
11300 \end_layout
11301
11302 \begin_layout Labeling
11303 \labelwidthstring MMMMMMM
11304
11305 \series bold
11306 foilheadings
11307 \series default
11308  ページ番号が右下隅に出力されます。追記したへッダ・フッタも出力されます。これが既定値です。
11309 \end_layout
11310
11311 \begin_layout Labeling
11312 \labelwidthstring MMMMMMM
11313
11314 \series bold
11315 fancy
11316 \series default
11317  これは
11318 \family sans
11319 fancyheadings
11320 \family default
11321 パッケージを使えるようにします。ただし、Foil\SpecialChar TeX
11322 パッケージの作者は、ページレイアウトが崩れる可能性があるので、これを使用することは勧めないと言及しています。
11323 \end_layout
11324
11325 \end_deeper
11326 \begin_layout Subsubsection
11327 任意設定クラスオプション
11328 \end_layout
11329
11330 \begin_layout Standard
11331 以下のオプションは
11332 \family sans
11333 文書設定
11334 \family default
11335 ダイアログの任意設定クラスオプションボックスで使うことができます。
11336 \end_layout
11337
11338 \begin_layout Labeling
11339 \labelwidthstring MMMMMMx
11340
11341 \series bold
11342 35mmSlide
11343 \series default
11344  これは、ページレイアウトを縦7.33インチ横11インチに設定します。これは35
11345 \begin_inset space \space{}
11346 \end_inset
11347
11348 mmスライドの縦横比にほぼ等しく、このメディアを作る作業が若干易しくなります。
11349 \end_layout
11350
11351 \begin_layout Labeling
11352 \labelwidthstring MMMMMMx
11353
11354 \series bold
11355 headrule
11356 \series default
11357  タイトルページを除くすべてのページのへッダの下に罫線を入れます。
11358 \end_layout
11359
11360 \begin_layout Labeling
11361 \labelwidthstring MMMMMMx
11362
11363 \series bold
11364 footrule
11365 \series default
11366  タイトルページを除くすべてのページのフッタの上に罫線を入れます。
11367 \end_layout
11368
11369 \begin_layout Labeling
11370 \labelwidthstring MMMMMMx
11371
11372 \series bold
11373 dvips
11374 \series default
11375  これは、新規
11376 \family sans
11377 foils
11378 \family default
11379 文書を作成する度に自動的に設定されます。このオプションは、横向きに設定されたページを回転させるのに、dvipsドライバを使うようFoil\SpecialChar TeX
11380 に指示します。
11381 \end_layout
11382
11383 \begin_layout Labeling
11384 \labelwidthstring MMMMMMx
11385
11386 \series bold
11387 landscape
11388 \series default
11389  このオプションは、用紙寸法を横向きページ大に変更するだけで、回転は行いません。したがって、このオプションを使う場合は、各ページを回転させる外部プログラムを使用
11390 する、プリンタに用紙を横向きに給紙する必要があります。また、このオプションは、
11391 \family sans
11392 Foilhead
11393 \family default
11394 環境と
11395 \family sans
11396 Rotatefoilhead
11397 \family default
11398 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します)。
11399 \end_layout
11400
11401 \begin_layout Labeling
11402 \labelwidthstring MMMMMMx
11403
11404 \series bold
11405 leqno
11406 \series default
11407  数式番号を左側に付けます。
11408 \end_layout
11409
11410 \begin_layout Labeling
11411 \labelwidthstring MMMMMMx
11412
11413 \series bold
11414 fleqn
11415 \series default
11416  数式を左揃えにします。
11417 \end_layout
11418
11419 \begin_layout Subsection
11420 サポートされる環境
11421 \end_layout
11422
11423 \begin_layout Standard
11424 他のクラスで標準的にサポートされている環境は、
11425 \family sans
11426 foils
11427 \family default
11428 クラスでもサポートされています。それ以外に、Foil\SpecialChar TeX
11429 が提供している環境と、\SpecialChar LyX
11430 が付け加えた環境があります。以下の環境は、他のクラスと共通の環境です。
11431 \end_layout
11432
11433 \begin_layout Standard
11434
11435 \family sans
11436 \begin_inset Flex Multiple Columns
11437 status open
11438
11439 \begin_layout Itemize
11440
11441 \family sans
11442 標準
11443 \end_layout
11444
11445 \begin_layout Itemize
11446
11447 \family sans
11448 箇条書き(記号)
11449 \end_layout
11450
11451 \begin_layout Itemize
11452
11453 \family sans
11454 箇条書き(連番)
11455 \end_layout
11456
11457 \begin_layout Itemize
11458
11459 \family sans
11460 箇条書き(記述)
11461 \end_layout
11462
11463 \begin_layout Itemize
11464
11465 \family sans
11466 箇条書き(リスト)
11467 \end_layout
11468
11469 \begin_layout Itemize
11470
11471 \family sans
11472 \SpecialChar LyX
11473 コード
11474 \end_layout
11475
11476 \begin_layout Itemize
11477
11478 \family sans
11479 詩句
11480 \end_layout
11481
11482 \begin_layout Itemize
11483
11484 \family sans
11485 引用(字下げあり)
11486 \end_layout
11487
11488 \begin_layout Itemize
11489
11490 \family sans
11491 引用(字下げなし)
11492 \end_layout
11493
11494 \begin_layout Itemize
11495
11496 \family sans
11497 タイトル
11498 \end_layout
11499
11500 \begin_layout Itemize
11501
11502 \family sans
11503 著者
11504 \end_layout
11505
11506 \begin_layout Itemize
11507
11508 \family sans
11509 日付
11510 \end_layout
11511
11512 \begin_layout Itemize
11513
11514 \family sans
11515 概要
11516 \end_layout
11517
11518 \begin_layout Itemize
11519
11520 \family sans
11521 書誌情報
11522 \end_layout
11523
11524 \begin_layout Itemize
11525
11526 \family sans
11527 住所
11528 \end_layout
11529
11530 \begin_layout Itemize
11531
11532 \family sans
11533 右寄せ住所
11534 \end_layout
11535
11536 \begin_layout Itemize
11537
11538 \family sans
11539 キャプション
11540 \end_layout
11541
11542 \begin_layout Itemize
11543
11544 \family sans
11545 コメント
11546 \end_layout
11547
11548 \end_inset
11549
11550
11551 \end_layout
11552
11553 \begin_layout Standard
11554 つまり、節区切りを除けば、主な環境のすべてです。一枚のスライドは、基本的にタイトルと本文を備えた自己完結した節なので、
11555 \family sans
11556 Foil
11557 \family default
11558 \SpecialChar TeX
11559 は新しいスライドを始める以下のようなコマンドを備えています。
11560 \end_layout
11561
11562 \begin_layout Itemize
11563
11564 \family sans
11565 スライドタイトル(Foilhead)
11566 \end_layout
11567
11568 \begin_layout Itemize
11569
11570 \family sans
11571 横置きスライドタイトル(Rotatefoilhead)
11572 \end_layout
11573
11574 \begin_layout Standard
11575 \SpecialChar LyX
11576 は、以下のような、これらを若干修正した環境も用意しています。
11577 \end_layout
11578
11579 \begin_layout Itemize
11580
11581 \family sans
11582 スライドタイトル(小)(ShortFoilhead)
11583 \end_layout
11584
11585 \begin_layout Itemize
11586
11587 \family sans
11588 横置きスライドタイトル(小)(ShortRotatefoilhead)
11589 \end_layout
11590
11591 \begin_layout Standard
11592 これらの違いは次節で説明します。
11593 \end_layout
11594
11595 \begin_layout Standard
11596 スライドは、アイデアを説明したり、新しい定理を説明したりするのにしばしば使われるので、
11597 \family sans
11598 Foil
11599 \family default
11600 \SpecialChar TeX
11601 はそれらを説明するのに便利な環境を幅広く用意しています。
11602 \end_layout
11603
11604 \begin_layout Standard
11605
11606 \family sans
11607 \begin_inset Flex Multiple Columns
11608 status open
11609
11610 \begin_layout Itemize
11611
11612 \family sans
11613 定理
11614 \end_layout
11615
11616 \begin_layout Itemize
11617
11618 \family sans
11619 補題
11620 \end_layout
11621
11622 \begin_layout Itemize
11623
11624 \family sans
11625
11626 \end_layout
11627
11628 \begin_layout Itemize
11629
11630 \family sans
11631 命題
11632 \end_layout
11633
11634 \begin_layout Itemize
11635
11636 \family sans
11637 定義
11638 \end_layout
11639
11640 \begin_layout Itemize
11641
11642 \family sans
11643 証明
11644 \end_layout
11645
11646 \begin_layout Itemize
11647
11648 \family sans
11649 定理*
11650 \end_layout
11651
11652 \begin_layout Itemize
11653
11654 \family sans
11655 補題*
11656 \end_layout
11657
11658 \begin_layout Itemize
11659
11660 \family sans
11661 系*
11662 \end_layout
11663
11664 \begin_layout Itemize
11665
11666 \family sans
11667 命題*
11668 \end_layout
11669
11670 \begin_layout Itemize
11671
11672 \family sans
11673 定義*
11674 \end_layout
11675
11676 \end_inset
11677
11678
11679 \end_layout
11680
11681 \begin_layout Standard
11682 星付き版は連番が振られず、星なし版は連番が振られます。他に、\SpecialChar LyX
11683 で追加された以下の2つの箇条書き環境があります。
11684 \end_layout
11685
11686 \begin_layout Itemize
11687
11688 \family sans
11689 箇条書き(チック)
11690 \end_layout
11691
11692 \begin_layout Itemize
11693
11694 \family sans
11695 箇条書き(クロス)
11696 \end_layout
11697
11698 \begin_layout Standard
11699 Foil\SpecialChar TeX
11700 には、強力なヘッダ機能とフッタ機能があり、これらはプリアンブルで設定するのが最良ですが、文章中のどこでも設定することができます。もし文書中でこれらの設定
11701 を変更したい場合には、スライドの一番上、foilheadの直後で行うのが良いでしょう。
11702 \end_layout
11703
11704 \begin_layout Standard
11705 この目的のためには、以下のコマンドスタイルがあります(
11706 \shape smallcaps
11707 Martin Vermeer)。
11708 \end_layout
11709
11710 \begin_layout Standard
11711 \begin_inset Flex Multiple Columns
11712 status open
11713
11714 \begin_layout Itemize
11715
11716 \family sans
11717 グラフィックスロゴ
11718 \end_layout
11719
11720 \begin_layout Itemize
11721
11722 \family sans
11723 配布制限
11724 \end_layout
11725
11726 \begin_layout Itemize
11727
11728 \family sans
11729 右フッタ
11730 \end_layout
11731
11732 \begin_layout Itemize
11733
11734 \family sans
11735 右ヘッダ
11736 \end_layout
11737
11738 \begin_layout Itemize
11739
11740 \family sans
11741 左ヘッダ
11742 \family default
11743
11744 \begin_inset Separator parbreak
11745 \end_inset
11746
11747
11748 \end_layout
11749
11750 \begin_deeper
11751 \begin_layout Plain Layout
11752 \begin_inset space ~
11753 \end_inset
11754
11755
11756 \end_layout
11757
11758 \end_deeper
11759 \end_inset
11760
11761
11762 \end_layout
11763
11764 \begin_layout Standard
11765 Foil\SpecialChar TeX
11766 が提供しているコマンドで、\SpecialChar LyX
11767 が直接サポートしていないコマンドもありますが、これらの説明と使い方については、第
11768 \begin_inset CommandInset ref
11769 LatexCommand ref
11770 reference "sec:unsuppfoils"
11771
11772 \end_inset
11773
11774 節で行います。
11775 \end_layout
11776
11777 \begin_layout Subsection
11778 スライドの組を作る
11779 \end_layout
11780
11781 \begin_layout Standard
11782 この節は、様々な環境を使ってスライドの組を作る方法を簡単に紹介します。スライド組の例をご覧になりたい場合は、\SpecialChar LyX
11783
11784 \family typewriter
11785 examples
11786 \family default
11787 フォルダにある
11788 \family typewriter
11789 Foils.lyx
11790 \family default
11791 ファイルをご覧ください。
11792 \end_layout
11793
11794 \begin_layout Subsubsection
11795 タイトルページを作る
11796 \end_layout
11797
11798 \begin_layout Standard
11799
11800 \family sans
11801 タイトル
11802 \family default
11803
11804 \family sans
11805 著者
11806 \family default
11807
11808 \family sans
11809 日付
11810 \family default
11811
11812 \family sans
11813 概要
11814 \family default
11815 環境のある他のクラスとは異なり、
11816 \family sans
11817 foils
11818 \family default
11819 は独立したページにタイトルを作成します。
11820 \family sans
11821 日付
11822 \family default
11823 環境を使用しなかった場合には、\SpecialChar LaTeX
11824 は(出力を生成し直したときにはいつも)その時点の日付を挿入します。
11825 \end_layout
11826
11827 \begin_layout Subsubsection
11828 新しいスライドを開始する
11829 \end_layout
11830
11831 \begin_layout Standard
11832 前述のように、新しいスライドを開始するには、4つの方法があります。縦向きのスライドを開始するには、
11833 \family sans
11834 スライドタイトル(Foilhead)
11835 \family default
11836
11837 \family sans
11838 スライドタイトル(小)(ShortFoilhead)
11839 \family default
11840 を使用します。両環境の違いは、スライドタイトル(foilhead)とスライド本文の間の余白の違いです。
11841 \end_layout
11842
11843 \begin_layout Standard
11844 横向きのスライドは、
11845 \family sans
11846 横向きスライドタイトル(Rotatefoilhead)
11847 \family default
11848 か横向きスライドタイトル(小)(
11849 \family sans
11850 ShortRotatefoilhead)
11851 \family default
11852 環境を使用して生成します。ここでも両環境の違いは、タイトルと本文の間の余白のみです。どちらの場合も、(小)と記された版は、タイトルと本文の間の余白が、0.5インチ
11853 (約1.27cm)小さくなります。
11854 \end_layout
11855
11856 \begin_layout Standard
11857 横向きのスライドをサポートする際、一つ問題となるのは、スライドを回転させようと思うと、PostScript出力を生成するのに
11858 \family typewriter
11859 dvips
11860 \family default
11861 ドライバを使用することを要求してしまうことです。もしスライドをプリンタに横に給紙することができれば、
11862 \family typewriter
11863 dvips
11864 \family default
11865 ドライバを持っていなくても、横向きのスライドをつくることができます ;-)
11866 \end_layout
11867
11868 \begin_layout Subsubsection
11869 定理・補題・証明など
11870 \end_layout
11871
11872 \begin_layout Standard
11873 \SpecialChar LyX
11874 中の小さなバグによって、これらの環境の同じ型をお互いに直接続けて置くことはできません。これらは何かによって分離されなくてはなりません。仮に二つ続けて置いても、2
11875 つの環境をマージしたかのように、前の環境が延長されるだけです。この問題を回避するにはどうすればよいのでしょうか。最も簡単な方法は、二つの環境の間に何か文章を置く
11876 か、あるいは二つの間に「
11877 \family typewriter
11878 %
11879 \family default
11880 」だけから成る\SpecialChar LaTeX
11881 環境を置くことです。これによって、\SpecialChar LyX
11882 は2つの別々の環境を生成するように強制され、正しい\SpecialChar LaTeX
11883 出力を得ることができます。\SpecialChar LyX
11884 頒布版に含まれる用例ファイルに例があ
11885 ります。この問題は、二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください。
11886 \end_layout
11887
11888 \begin_layout Subsubsection
11889 箇条書き
11890 \end_layout
11891
11892 \begin_layout Standard
11893 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて、二つの新しい様式を使用することができます。ここでは、その新しい様式のみを説明することにします。
11894 他の箇条書き環境について詳しく知りたい場合には、
11895 \emph on
11896 ユーザーの手引き
11897 \emph default
11898 をご覧ください。記号による箇条書きを使用したい場合には、上記第
11899 \begin_inset CommandInset ref
11900 LatexCommand ref
11901 reference "sec:ブリット"
11902
11903 \end_inset
11904
11905 節の
11906 \family sans
11907 箇条書き(記号)ブリットの指定
11908 \family default
11909 の節も、読まれることが望ましいでしょう。
11910 \end_layout
11911
11912 \begin_layout Standard
11913
11914 \family sans
11915 箇条書き(チック)
11916 \family default
11917
11918 \family sans
11919 箇条書き(クロス)
11920 \family default
11921 の二つの新しい様式は、チェック印や
11922 \begin_inset Formula $\times$
11923 \end_inset
11924
11925 印を箇条書きのラベルに使用する専用の環境を提供することで、予定一覧や正誤一覧を作りやすくするように設計されたものです。これらの箇条書きは、
11926 \family sans
11927 箇条書き(記号)
11928 \family default
11929 の派生型を専用に用意したものに過ぎません。ただし、これらは、
11930 \family typewriter
11931 psnfss
11932 \family default
11933 パッケージが導入済であることを要求します。
11934 \end_layout
11935
11936 \begin_layout Subsubsection
11937 図と表
11938 \end_layout
11939
11940 \begin_layout Standard
11941 Foil\SpecialChar TeX
11942 では、図表フロートは、本文中の挿入箇所にこれらが正確に表示されるように再定義されており、ページの上部やユーザー指定場所に押しのけたりはしないようになって
11943 います。たとえフロート配置の設定に変更を加えたとしても、単に無視されます。
11944 \end_layout
11945
11946 \begin_layout Subsubsection
11947 ページヘッダおよびページフッタ
11948 \begin_inset CommandInset label
11949 LatexCommand label
11950 name "sec:foilfoot"
11951
11952 \end_inset
11953
11954
11955 \end_layout
11956
11957 \begin_layout Standard
11958
11959 \family sans
11960 グラフィックスロゴ
11961 \family default
11962
11963 \family sans
11964 配布制限
11965 \family default
11966 の二つは、左フッタ文を制御するものです。前者は、グラフィックスのロゴをスライドに入れるためのもので、既定値は「-Typeset by 
11967 \family sans
11968 Foil
11969 \family default
11970 \SpecialChar TeX
11971 -」となっています。後者は、「機密事項」などのように、聴衆に秘密区分を提示することを意図しています。既定値では、何も設定されていません。
11972 \end_layout
11973
11974 \begin_layout Standard
11975 スライドの残り三隅には、
11976 \family sans
11977 右フッタ
11978 \family default
11979 (既定ではページ番号)・
11980 \family sans
11981 右ヘッダ
11982 \family default
11983 (右上)・
11984 \family sans
11985 左ヘッダ
11986 \family default
11987 (左上)を使って文字を入れることができます。
11988 \end_layout
11989
11990 \begin_layout Subsection
11991 サポートされない 
11992 \family sans
11993 Foil
11994 \family default
11995 \SpecialChar TeX
11996 機能
11997 \begin_inset CommandInset label
11998 LatexCommand label
11999 name "sec:unsuppfoils"
12000
12001 \end_inset
12002
12003
12004 \end_layout
12005
12006 \begin_layout Standard
12007 以下で言及されているコマンドは、
12008 \family sans
12009 \SpecialChar LaTeX
12010
12011 \family default
12012 環境内で設定されるか、他の環境中の
12013 \family sans
12014 \SpecialChar TeX
12015 コード
12016 \family default
12017 として設定される必要があります。
12018 \end_layout
12019
12020 \begin_layout Subsubsection
12021 長さ
12022 \end_layout
12023
12024 \begin_layout Standard
12025 長さは、すべて
12026 \family typewriter
12027
12028 \backslash
12029 setlength{
12030 \family default
12031 \emph on
12032 長さ名
12033 \family typewriter
12034 \emph default
12035 }{
12036 \family default
12037 \emph on
12038 新規長さ
12039 \family typewriter
12040 \emph default
12041 }
12042 \family default
12043 コマンドで調節されます。ここで
12044 \emph on
12045 長さ名
12046 \emph default
12047 は、変更したい長さに付けられている名前で置き換え、
12048 \emph on
12049 新規長さ
12050 \emph default
12051 は、その長さの値で置き換えます。長さはすべて、インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か、
12052 \family typewriter
12053
12054 \backslash
12055 textwidth
12056 \family default
12057 のように文書比あるいはフォント基準の長さで指定する必要があります。
12058 \end_layout
12059
12060 \begin_layout Standard
12061
12062 \family typewriter
12063
12064 \backslash
12065 foilheadskip
12066 \family default
12067 で指定される長さを調節することによって、スライドタイトルとスライド本文の間の余白を変更することができます。たとえば、スライドタイトルをすべて0.5
12068 \begin_inset space \space{}
12069 \end_inset
12070
12071 inだけスライド本文に近づけるには、プリアンブルに
12072 \family typewriter
12073
12074 \backslash
12075 setlength{
12076 \backslash
12077 foilheadskip}{-0.5in}
12078 \family default
12079 と書き込みます。
12080 \end_layout
12081
12082 \begin_layout Standard
12083 フロート周囲の余白は、以下の長さを設定することで調整することができます。
12084 \end_layout
12085
12086 \begin_layout Labeling
12087 \labelwidthstring MMMMMMMMMMM
12088
12089 \family typewriter
12090
12091 \backslash
12092 abovefloatskip
12093 \family default
12094  本文とフロート上辺との間隔
12095 \end_layout
12096
12097 \begin_layout Labeling
12098 \labelwidthstring MMMMMMMMMMM
12099
12100 \family typewriter
12101
12102 \backslash
12103 abovecaptionskip
12104 \family default
12105  フロートとキャプションとの間隔
12106 \end_layout
12107
12108 \begin_layout Labeling
12109 \labelwidthstring MMMMMMMMMMM
12110
12111 \family typewriter
12112
12113 \backslash
12114 belowcaptionskip
12115 \family default
12116  キャプションとそれに続く本文との間隔
12117 \end_layout
12118
12119 \begin_layout Labeling
12120 \labelwidthstring MMMMMMMMMMM
12121
12122 \family typewriter
12123
12124 \backslash
12125 captionwidth
12126 \family default
12127  この長さを調整することでキャプションを、周囲の本文より短くすることができます。
12128 \family typewriter
12129
12130 \backslash
12131 textwidth
12132 \family default
12133 に対する相対的な長さで調整するのが最も良いでしょう。
12134 \end_layout
12135
12136 \begin_layout Standard
12137 以下のようなタイトルページ関連の長さもあり、タイトルが長い場合や、著者が複数いる場合に使うと便利かもしれません。
12138 \end_layout
12139
12140 \begin_layout Labeling
12141 \labelwidthstring MMMMMMMMMMM
12142
12143 \family typewriter
12144
12145 \backslash
12146 abovetitleskip
12147 \family default
12148  へッダとタイトルとの間隔
12149 \end_layout
12150
12151 \begin_layout Labeling
12152 \labelwidthstring MMMMMMMMMMM
12153
12154 \family typewriter
12155
12156 \backslash
12157 titleauthorskip
12158 \family default
12159  
12160 \family sans
12161 タイトル
12162 \family default
12163 環境と
12164 \family sans
12165 著者
12166 \family default
12167 環境との間隔
12168 \end_layout
12169
12170 \begin_layout Labeling
12171 \labelwidthstring MMMMMMMMMMM
12172
12173 \family typewriter
12174
12175 \backslash
12176 authorauthorskip
12177 \family default
12178  著者が複数いる場合の
12179 \family sans
12180 著者
12181 \family default
12182 行の間隔
12183 \end_layout
12184
12185 \begin_layout Labeling
12186 \labelwidthstring MMMMMMMMMMM
12187
12188 \family typewriter
12189
12190 \backslash
12191 authordateskip
12192 \family default
12193  
12194 \family sans
12195 著者
12196 \family default
12197
12198 \family sans
12199 日付
12200 \family default
12201 との間隔
12202 \end_layout
12203
12204 \begin_layout Labeling
12205 \labelwidthstring MMMMMMMMMMM
12206
12207 \family typewriter
12208
12209 \backslash
12210 dateabstractskip
12211 \family default
12212  
12213 \family sans
12214 日付
12215 \family default
12216
12217 \family sans
12218 概要
12219 \family default
12220 との間隔
12221 \end_layout
12222
12223 \begin_layout Standard
12224 最後に紹介する長さ関連コマンドは、箇条書き環境すべてに使用できるものです。
12225 \family typewriter
12226
12227 \backslash
12228 zerolistvertdimens
12229 \family default
12230 を箇条書き環境の内側に置くと、項目間の垂直余白がすべて取り除かれます。これは長さではなくコマンドなので、上述のもののように
12231 \family typewriter
12232
12233 \backslash
12234 setlength
12235 \family default
12236 を使う必要がないことに注意してください。
12237 \end_layout
12238
12239 \begin_layout Subsubsection
12240 へッダとフッタ
12241 \end_layout
12242
12243 \begin_layout Standard
12244
12245 \family typewriter
12246
12247 \backslash
12248 LogoOn
12249 \family default
12250 および
12251 \family typewriter
12252
12253 \backslash
12254 LogoOff
12255 \family default
12256 は、
12257 \family typewriter
12258 MyLogo
12259 \family default
12260 で定義したロゴを特定のページに入れるかどうかを制御します。
12261 \family typewriter
12262
12263 \backslash
12264 LogoOff
12265 \family default
12266 をプリアンブルに入れると、全スライドからロゴが取り除かれます。特定のスライドにのみロゴを付けたくない場合は、当該ページのスライドタイトルの直後に直接
12267 \family typewriter
12268
12269 \backslash
12270 LogoOff
12271 \family default
12272 を置き、次のスライドタイトルの直後に直接
12273 \family typewriter
12274
12275 \backslash
12276 LogoOn
12277 \family default
12278 を置いてください。
12279 \end_layout
12280
12281 \begin_layout Standard
12282
12283 \family sans
12284 文書レイアウト
12285 \family default
12286 ダイアログで
12287 \family sans
12288 fancy
12289 \family default
12290 ページ様式を使用することを選択した場合には、横置きページのヘッダとフッタが回転後も正しく配置されるように、プリアンブルに
12291 \family typewriter
12292
12293 \backslash
12294 let
12295 \backslash
12296 headwidth
12297 \backslash
12298 textwidth
12299 \family default
12300 を加える必要があるでしょう。これは、
12301 \family sans
12302 fancyheadings
12303 \family default
12304 パッケージが提供するページレイアウトと
12305 \family sans
12306 foils
12307 \family default
12308 クラスの提供するページレイアウトの間に衝突が発生するためです。
12309 \end_layout
12310
12311 \begin_layout Section
12312 Hollywood(Hollywoodスペック・スクリプト)
12313 \end_layout
12314
12315 \begin_layout Standard
12316
12317 \noun on
12318 Garst Reese
12319 \noun default
12320
12321 \end_layout
12322
12323 \begin_layout Subsection
12324 はじめに
12325 \end_layout
12326
12327 \begin_layout Standard
12328 脚本を正しい書式で書くことは、ハリウッドにおける「通過儀礼」です。ハリウッドの脚本は、読み手が内容に集中できるようにし、俳優にとっても読みやすくかつ親しみやすい
12329 ように設計されています。脚本の1ページは、映画の1分でなければならず、銀幕上で見えたり聞こえたりしないものは、脚本に混入してはなりません。また、全体を通してCo
12330 urier 12
12331 \begin_inset space \space{}
12332 \end_inset
12333
12334 ptフォントを使わなければならず、イタリック体は用いてはいけません。
12335 \end_layout
12336
12337 \begin_layout Subsection
12338 特別な問題
12339 \end_layout
12340
12341 \begin_layout Standard
12342 話者の行は、文の途中で改行することは
12343 \emph on
12344 決して
12345 \emph default
12346 あってはなりません。もし話者行の塊が、次頁にまたがる場合には、
12347 \family sans
12348 話者
12349 \family default
12350 名を再度書き、その後に(Cont'd)と加えます。
12351 \end_layout
12352
12353 \begin_layout Subsection
12354 特別な機能
12355 \end_layout
12356
12357 \begin_layout Standard
12358
12359 \family sans
12360 話者
12361 \family default
12362 名はラベルとして挿入し、話者名を挿入するには、そのラベルを相互参照してください。相互参照ダイアログは、登場人物の現在の配役を表示することになります。これは、ト書
12363 きに話者名を挿入するのにも使用することができます。
12364 \end_layout
12365
12366 \begin_layout Subsection
12367 用紙寸法と余白
12368 \end_layout
12369
12370 \begin_layout Standard
12371 USレター寸法で、左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです。
12372 \end_layout
12373
12374 \begin_layout Subsection
12375 環境
12376 \end_layout
12377
12378 \begin_layout Standard
12379 以下の環境が利用可能です。右に示されている
12380 \begin_inset Flex Ruby
12381 status collapsed
12382
12383 \begin_layout Plain Layout
12384
12385 \begin_inset Argument post:1
12386 status collapsed
12387
12388 \begin_layout Plain Layout
12389 キー
12390 \end_layout
12391
12392 \end_inset
12393
12394
12395 \end_layout
12396
12397 \end_inset
12398
12399 割当てを使用するには、hollywood.bindを使用してください。
12400 \end_layout
12401
12402 \begin_layout Itemize
12403
12404 \family sans
12405 一般
12406 \begin_inset Newline newline
12407 \end_inset
12408
12409
12410 \family default
12411 他の環境が動作しない場合に使用しますが、これを使うことは避けるようにしてください。
12412 \end_layout
12413
12414 \begin_layout Itemize
12415 フェイドイン:
12416 \begin_inset space \hfill{}
12417 \end_inset
12418
12419
12420 \family sans
12421 M-z S-I
12422 \family default
12423
12424 \begin_inset Newline newline
12425 \end_inset
12426
12427 通常、この後には「Sallyは目を覚ますと」のように続きます。
12428 \end_layout
12429
12430 \begin_layout Itemize
12431
12432 \family sans
12433 屋内:
12434 \begin_inset space \hfill{}
12435 \end_inset
12436
12437 M-z i
12438 \begin_inset Newline newline
12439 \end_inset
12440
12441
12442 \family default
12443 新しい屋内(INTERIOR)カメラの設定を指定します。この後には、かならずDAYやNIGHTなどを指定して、必要な照明を定義します。この行はすべて大文字で書き
12444 ます。
12445 \end_layout
12446
12447 \begin_layout Itemize
12448
12449 \family sans
12450 屋外:
12451 \begin_inset space \hfill{}
12452 \end_inset
12453
12454 M-z e
12455 \begin_inset Newline newline
12456 \end_inset
12457
12458
12459 \family default
12460 屋外(EXTERIOR)カメラの設定を指定します。この行はすべて大文字で書きます。
12461 \end_layout
12462
12463 \begin_layout Itemize
12464
12465 \family sans
12466 話者
12467 \begin_inset space \hfill{}
12468 \end_inset
12469
12470 M-z s
12471 \begin_inset Newline newline
12472 \end_inset
12473
12474
12475 \family default
12476 話す役。
12477 \end_layout
12478
12479 \begin_layout Itemize
12480
12481 \family sans
12482 括弧付き
12483 \begin_inset space \hfill{}
12484 \end_inset
12485
12486 M-z p
12487 \begin_inset Newline newline
12488 \end_inset
12489
12490 話者
12491 \family default
12492 への指示。自動的に括弧()が挿入されますが、\SpecialChar LyX
12493 上で表示されるのは、左括弧( のみです。印刷出力には右括弧も表示されます。
12494 \end_layout
12495
12496 \begin_layout Itemize
12497
12498 \family sans
12499 対話
12500 \begin_inset space \hfill{}
12501 \end_inset
12502
12503 M-z d
12504 \begin_inset Newline newline
12505 \end_inset
12506
12507 話者
12508 \family default
12509 が話す内容。
12510 \end_layout
12511
12512 \begin_layout Itemize
12513
12514 \family sans
12515 画面遷移
12516 \begin_inset space \hfill{}
12517 \end_inset
12518
12519 M-z t
12520 \begin_inset Newline newline
12521 \end_inset
12522
12523
12524 \family default
12525 カメラの動きの指示。例:CUT TO:。
12526 \end_layout
12527
12528 \begin_layout Itemize
12529
12530 \family sans
12531 フェイドアウト:
12532 \begin_inset space \hfill{}
12533 \end_inset
12534
12535 M-z S-I
12536 \end_layout
12537
12538 \begin_layout Itemize
12539
12540 \family sans
12541 著者
12542 \begin_inset space \hfill{}
12543 \end_inset
12544
12545 M-z S-A
12546 \end_layout
12547
12548 \begin_layout Itemize
12549
12550 \family sans
12551 タイトル
12552 \begin_inset space \hfill{}
12553 \end_inset
12554
12555 M-z S-T
12556 \end_layout
12557
12558 \begin_layout Itemize
12559
12560 \family sans
12561 右寄せ住所
12562 \begin_inset space \hfill{}
12563 \end_inset
12564
12565 M-z r
12566 \end_layout
12567
12568 \begin_layout Subsection
12569 脚本で使われる特別な用語
12570 \end_layout
12571
12572 \begin_layout Itemize
12573 (O.S) — off screen
12574 \end_layout
12575
12576 \begin_layout Itemize
12577 (V.0) — voice over
12578 \end_layout
12579
12580 \begin_layout Itemize
12581 b.g.
12582  — background
12583 \end_layout
12584
12585 \begin_layout Itemize
12586 C.U.
12587  — close-up
12588 \end_layout
12589
12590 \begin_layout Itemize
12591 PAN — camera movement
12592 \end_layout
12593
12594 \begin_layout Itemize
12595 INSERT — cut to close-up of
12596 \end_layout
12597
12598 \begin_layout Section
12599 ijmpcおよびijmpd
12600 \end_layout
12601
12602 \begin_layout Standard
12603
12604 \noun on
12605 Panayotis Papasotiriou
12606 \noun default
12607
12608 \end_layout
12609
12610 \begin_layout Subsection
12611 概観
12612 \end_layout
12613
12614 \begin_layout Standard
12615 ijpmcパッケージは、
12616 \emph on
12617 International Journal of Modern Physics C
12618 \emph default
12619 への電子投稿を可能にするためのマクロ集です。同様に、ijpmdパッケージは、
12620 \emph on
12621 International Journal of Modern Physics D
12622 \emph default
12623 へ投稿する現行を作成するためのものです。両誌ともWorld Scientific社の刊行です。対応する文書クラス名は、それぞれ
12624 \family typewriter
12625 ws-ijmpc.cls
12626 \family default
12627 および
12628 \family typewriter
12629 ws-ijmpd.cls
12630 \family default
12631 です。これらのファイルは、著者のための指針とともに、
12632 \begin_inset Flex URL
12633 status collapsed
12634
12635 \begin_layout Plain Layout
12636
12637 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12638 \end_layout
12639
12640 \end_inset
12641
12642 および
12643 \begin_inset Flex URL
12644 status collapsed
12645
12646 \begin_layout Plain Layout
12647
12648 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12649 \end_layout
12650
12651 \end_inset
12652
12653 の各サイトからダウンロードすることができます。両パッケージは、標準「article」パッケージの修正版であり、両者は(一部を除き)ほぼ同一です。\SpecialChar LyX
12654 は、これらのパッ
12655 ケージのほとんどの機能をサポートしています。私は両誌へ投稿する論文を\SpecialChar LyX
12656 で書き上げましたが、何らの問題も生じませんでした。
12657 \end_layout
12658
12659 \begin_layout Subsection
12660 論文を書く
12661 \end_layout
12662
12663 \begin_layout Standard
12664 通常と同じく、論文を書く上で最も易しい方法は、ひな型を使って書き始めることです。
12665 \family sans
12666 ファイル\SpecialChar menuseparator
12667 新規(ひな型使用)
12668 \family default
12669 をクリックして、ひな型
12670 \family typewriter
12671 ijmpc.lyx
12672 \family default
12673 もしくは
12674 \family typewriter
12675 ijmpd.lyx
12676 \family default
12677 を選択してください。すると、原稿で良く使用されるフィールドを含んだ、ほぼ空の文書ができますので、既存のフィールド(鍵括弧
12678 \family typewriter
12679 <>
12680 \family default
12681 を含む)を正しい情報で置き換えてください。以下の各点にご留意ください。
12682 \end_layout
12683
12684 \begin_layout Enumerate
12685 両パッケージでは、フォント寸法や文書のページ様式を変更することが禁じられているので、\SpecialChar LyX
12686 中でこれらを変更することはできません。
12687 \end_layout
12688
12689 \begin_layout Enumerate
12690 文書言語は変更してはいけません。論文をプレビューする前に、babelパッケージが使用されていないことを確認してください。これは、
12691 \family sans
12692 ツール\SpecialChar menuseparator
12693 設定
12694 \family default
12695 をクリックして、
12696 \family sans
12697 言語オプション
12698 \family default
12699 タブを選択し、言語設定で
12700 \family sans
12701 Babelを使う
12702 \family default
12703 チェックボックスを無効にしてから、
12704 \family sans
12705 適用
12706 \family default
12707 をクリックすれば、設定することができます(この変更を固定するなら
12708 \family sans
12709 保存
12710 \family default
12711 を押してください)。
12712 \end_layout
12713
12714 \begin_layout Enumerate
12715 キーワードを定義するに際しては、「キーワード」様式を用いなくてはなりません。
12716 \end_layout
12717
12718 \begin_layout Enumerate
12719 ijmpcパッケージが提供する「分類コード」様式は、PACS番号のような分類コードを定義するのに使用することができます。この機能は、ijmpdパッケージではサポ
12720 ートされていませんので、ご注意ください。
12721 \end_layout
12722
12723 \begin_layout Enumerate
12724 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12725 きます。これらの使い方は、大凡自明でしょう。\SpecialChar LyX
12726 は、これらの環境をすべてサポートし、それぞれについて、適切なラベルと文字様式および連番スキームを使用します。
12727 \end_layout
12728
12729 \begin_layout Enumerate
12730 両パッケージは、単純な引用を使用しますので、natbibパッケージは使用してはなりません。\SpecialChar LyX
12731 中では、引用参照は通常通り表示されますが、出力では上付き文字として表示
12732 されます。引用に通常の本文を使用したい場合には、「See Ref.
12733 \begin_inset space \space{}
12734 \end_inset
12735
12736
12737 \family typewriter
12738
12739 \backslash
12740 refcite{
12741 \family default
12742
12743 \begin_inset Flex Ruby
12744 status collapsed
12745
12746 \begin_layout Plain Layout
12747
12748 \family typewriter
12749
12750 \family default
12751
12752 \begin_inset Argument post:1
12753 status collapsed
12754
12755 \begin_layout Plain Layout
12756 キー
12757 \end_layout
12758
12759 \end_inset
12760
12761
12762 \end_layout
12763
12764 \end_inset
12765
12766
12767 \family typewriter
12768 }
12769 \family default
12770 」のように
12771 \family typewriter
12772 refcite
12773 \family default
12774 コマンドを使用してください。
12775 \end_layout
12776
12777 \begin_layout Enumerate
12778 両パッケージには、「謝辞」環境がありません。謝辞を置くには、「節*」環境を使用してください。
12779 \end_layout
12780
12781 \begin_layout Enumerate
12782 付録は、論文中、謝辞の
12783 \emph on
12784
12785 \emph default
12786 かつ書誌情報の
12787 \emph on
12788
12789 \emph default
12790 であれば、入れることができます。\SpecialChar LyX
12791 上では、「付録領域」という特別な環境があり、これを使って付録の開始位置を指定することができます。この環境は空のままにしておかなく
12792 てはなりません。この環境は、\SpecialChar LaTeX
12793 コマンドを書き出すだけで、実際に出力は行いません。\SpecialChar LyX
12794 上では、青字で「Appendix」という単語が表示され、この箇所より後の節はすべて
12795 付録であることを明示します。「付録領域」は、最初の付録の前に
12796 \emph on
12797 なくてはならない
12798 \emph default
12799 ことに注意してください。さもなくば、出力中において、付録はすべて通常の節として連番が振られてしまいます。
12800 \end_layout
12801
12802 \begin_layout Enumerate
12803 ijmpcおよびijmpdパッケージは、表キャプションを実装するのに
12804 \family typewriter
12805 tbl
12806 \family default
12807 コマンドを使用します。そのため、\SpecialChar LyX
12808 が作成した表は正しく印字されますが、そのキャプションは無視されます。しかし、\SpecialChar TeX
12809 コードを少し使えば、この問題を回避して、キャプション
12810 を望み通り印字することができるようになります。そうするには、表フロートを通常通り作成して、キャプションを削除し、代わりに\SpecialChar TeX
12811 コードで
12812 \family typewriter
12813
12814 \backslash
12815 tbl{表キャプション}{
12816 \family default
12817 (ママ)と入れます。そこに表の内容を入れて、直後を\SpecialChar TeX
12818 コード
12819 \family typewriter
12820 }
12821 \family default
12822 で閉じてください。このからくりがどのように実装されているかを見るには、ひな型ファイルに入っている表の例を精査してみてください。別の方法としては、表キャプションが
12823 欲しい場合に、表フロート全体を
12824 \family typewriter
12825 .tex
12826 \family default
12827 ファイルに収め、このファイルを\SpecialChar LyX
12828 文書に取り込んでください(
12829 \family sans
12830 挿入\SpecialChar menuseparator
12831 ファイル\SpecialChar menuseparator
12832 子文書
12833 \family default
12834 )。表フロートの作り方についての詳細は、各パッケージに含まれている
12835 \family typewriter
12836 ws-ijmpc.tex
12837 \family default
12838 または
12839 \family typewriter
12840 ws-ijmpd.tex
12841 \family default
12842 ファイルをご覧ください。
12843 \end_layout
12844
12845 \begin_layout Subsection
12846 原稿を投稿するための準備
12847 \end_layout
12848
12849 \begin_layout Standard
12850 論文を投稿する前には、\SpecialChar LyX
12851 文書を\SpecialChar LaTeX
12852 ファイルに書き出し(
12853 \family sans
12854 ファイル\SpecialChar menuseparator
12855 書き出し\SpecialChar menuseparator
12856 \SpecialChar LaTeX
12857
12858 \family default
12859 )
12860 \begin_inset Foot
12861 status open
12862
12863 \begin_layout Plain Layout
12864 実は、\SpecialChar LaTeX
12865  (plain)とpdflatexとの間で選択ができます。論文を準備するのにpdflatexを使用しようとするのであれば、取り込んである画像がPDF形式に
12866 変換され、pdflatexで使用できるように、pdflatexオプションを指定しなくてはなりません。
12867 \end_layout
12868
12869 \end_inset
12870
12871 、その
12872 \family typewriter
12873 .tex
12874 \family default
12875 ファイルに以下の変更を加える必要があります。
12876 \end_layout
12877
12878 \begin_layout Enumerate
12879
12880 \family typewriter
12881
12882 \backslash
12883 documentclass
12884 \family default
12885 コマンドより前にあるコメント行を削除する。
12886 \end_layout
12887
12888 \begin_layout Enumerate
12889 自身で明示的に\SpecialChar LaTeX
12890 プリアンブルに置いたコマンドを除き、
12891 \family typewriter
12892
12893 \backslash
12894 makeatletter
12895 \family default
12896 コマンドと
12897 \family typewriter
12898
12899 \backslash
12900 makeatother
12901 \family default
12902 コマンドの間にあるものをすべて削除する。
12903 \end_layout
12904
12905 \begin_layout Standard
12906 こうして修正を加えた
12907 \family typewriter
12908 .tex
12909 \family default
12910 ファイルを保存し、必要な回数\SpecialChar LaTeX
12911 で処理してください。それによって得られた
12912 \family typewriter
12913 .dvi
12914 \family default
12915 文書も確認された方がよろしいでしょう。
12916 \end_layout
12917
12918 \begin_layout Subsection
12919 \SpecialChar TeX
12920 コードの使用
12921 \end_layout
12922
12923 \begin_layout Standard
12924 \SpecialChar TeX
12925 コードを使用するのは、2つのコマンドに限られ、これらは文書の最初に置かれなくてはなりません。論文をひな型
12926 \family typewriter
12927 ijmpc.lyx
12928 \family default
12929 または
12930 \family typewriter
12931 ijmpd.lyx
12932 \family default
12933 を使用して書き始めた場合には、これら必要な\SpecialChar TeX
12934 コードは、すでに書き込まれています。通常、これらを削除する必要はありません。2つのうち1番めの\SpecialChar TeX
12935 コードのみが、奇数ページ
12936 および偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために、修正する必要があります。この\SpecialChar TeX
12937 コードは、
12938 \family typewriter
12939
12940 \backslash
12941 markboth{著者名}{論文の短縮タイトル}
12942 \family default
12943 という形である必要があります。
12944 \end_layout
12945
12946 \begin_layout Section
12947 iopart
12948 \end_layout
12949
12950 \begin_layout Standard
12951
12952 \noun on
12953 Uwe Stöhr
12954 \noun default
12955
12956 \end_layout
12957
12958 \begin_layout Subsection
12959 概要
12960 \end_layout
12961
12962 \begin_layout Standard
12963 iopartパッケージは、Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12964 す。iopartクラスを使用した論文作成方法の著者用説明書は、ウェブサイト
12965 \begin_inset Flex URL
12966 status collapsed
12967
12968 \begin_layout Plain Layout
12969
12970 ftp://ftp.iop.org/pub/journals/latex2e
12971 \end_layout
12972
12973 \end_inset
12974
12975 からiopartパッケージとともにダウンロード可能です。
12976 \end_layout
12977
12978 \begin_layout Subsection
12979 論文を書く
12980 \end_layout
12981
12982 \begin_layout Standard
12983 論文を書くもっとも簡単な方法は、\SpecialChar LyX
12984 の用例ファイルフォルダにある
12985 \emph on
12986 IOP-article.lyx
12987 \emph default
12988 を土台にすることです。このファイルを開き、新しい名前で保存して、書き始めてください。この用例ファイルは、特定の環境の使用法についても説明しています。もっとも重要
12989 な助言として、以下の点にご注意ください。
12990 \end_layout
12991
12992 \begin_layout Itemize
12993 文書がPDF・PS・DVIにコンパイルできるようにするためには、文書設定の
12994 \family sans
12995 数式オプション
12996 \family default
12997 で、二つの
12998 \family sans
12999 AMS mathパッケージを使う
13000 \family default
13001 関連オプションが有効になっていないことを確認してください!
13002 \end_layout
13003
13004 \begin_layout Itemize
13005 タイトル環境の選択如何によって、論文の種類が定義されます。種類毎に以下の環境をタイトルに使用してください。
13006 \begin_inset Separator parbreak
13007 \end_inset
13008
13009
13010 \end_layout
13011
13012 \begin_deeper
13013 \begin_layout Itemize
13014 論文用には
13015 \family sans
13016 タイトル
13017 \end_layout
13018
13019 \begin_layout Itemize
13020 Review用には
13021 \family sans
13022 Review
13023 \end_layout
13024
13025 \begin_layout Itemize
13026 Topical review用には
13027 \family sans
13028 Topical
13029 \end_layout
13030
13031 \begin_layout Itemize
13032 Comment用には
13033 \family sans
13034 Comment
13035 \end_layout
13036
13037 \begin_layout Itemize
13038 Note用には
13039 \family sans
13040 注釈
13041 \end_layout
13042
13043 \begin_layout Itemize
13044 論文用には
13045 \family sans
13046 Paper
13047 \family default
13048 (タイトルと同じ)
13049 \end_layout
13050
13051 \begin_layout Itemize
13052 Preliminary communication用には
13053 \family sans
13054 Prelim
13055 \end_layout
13056
13057 \begin_layout Itemize
13058 Rapid communication用には
13059 \family sans
13060 Rapid
13061 \end_layout
13062
13063 \begin_layout Itemize
13064 編集者へのLetterには
13065 \family sans
13066 書簡
13067 \end_layout
13068
13069 \end_deeper
13070 \begin_layout Itemize
13071
13072 \family sans
13073 書簡
13074 \family default
13075 以外のタイトル環境には、すべて短縮タイトルをつけることもできます。
13076 \end_layout
13077
13078 \begin_layout Itemize
13079 \SpecialChar LyX
13080 では直接にサポートされていませんが、一般的なタイトル環境として
13081 \family sans
13082 Article
13083 \family default
13084 があります。執筆する文書が、他のタイトル型にそぐわない場合には、\SpecialChar TeX
13085 コードでこれを指定することができます。
13086 \end_layout
13087
13088 \begin_layout Standard
13089 特別な表や数式組版に関するヒントなど、詳しい情報については、IOP著者用ガイドラインを参照してください。
13090 \end_layout
13091
13092 \begin_layout Section
13093 Kluwer
13094 \end_layout
13095
13096 \begin_layout Standard
13097
13098 \noun on
13099 Panayotis Papasotiriou
13100 \noun default
13101
13102 \end_layout
13103
13104 \begin_layout Subsection
13105 概要
13106 \end_layout
13107
13108 \begin_layout Standard
13109 Kluwerパッケージは、Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために、同社が作成したマクロ集です。同社
13110 の発行誌のうち、(少なくとも私の専門内で)もっともよく知られているものは、
13111 \emph on
13112 Astrophysics and Space Science
13113 \emph default
13114 (『宇宙物理学と宇宙科学』)と
13115 \emph on
13116 Solar Physics
13117 \emph default
13118 (『太陽系物理学』)ですが、他にも多くの学術誌があります(
13119 \begin_inset Flex URL
13120 status collapsed
13121
13122 \begin_layout Plain Layout
13123
13124 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13125 \end_layout
13126
13127 \end_inset
13128
13129 に全覧があります)。Kluwerパッケージは、
13130 \begin_inset Flex URL
13131 status collapsed
13132
13133 \begin_layout Plain Layout
13134
13135 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13136 \end_layout
13137
13138 \end_inset
13139
13140 からダウンロードできます。完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です)。
13141 \end_layout
13142
13143 \begin_layout Standard
13144 \SpecialChar LyX
13145 は、このパッケージの機能の多くをサポートしていますが、すべてではありません。しかし、\SpecialChar TeX
13146 コードを必要とするのは、パッケージ中のいくつかの「変わった」コマンドだけにな
13147 りました(
13148 \begin_inset CommandInset ref
13149 LatexCommand ref
13150 reference "subsec:kluwer_peculiarities"
13151
13152 \end_inset
13153
13154 参照)。最近、私は\SpecialChar LyX
13155 を使って書いた論文を
13156 \emph on
13157 Astrophysics and Space Science
13158 \emph default
13159 に投稿しましたが、何らの問題も発生しませんでした。
13160 \end_layout
13161
13162 \begin_layout Subsection
13163 論文を書く
13164 \end_layout
13165
13166 \begin_layout Standard
13167 論文を書き始めるには、ひな型ファイルKluwerを使うのが最も簡単です。
13168 \family sans
13169 ファイル\SpecialChar menuseparator
13170 新規(ひな型使用)
13171 \family default
13172 をクリックし、ひな型
13173 \family typewriter
13174 kluwer.lyx
13175 \family default
13176 を選択してください。これは、原稿に通常必要となる各フィールドと、それらの使用法が短く書かれただけの、(ほとんど)何も書かれていない文書です。他のテンプレートと同
13177 様に、既存の文章を(括弧
13178 \family typewriter
13179 <>
13180 \family default
13181 を含む)正しい情報で上書きしてください。
13182 \end_layout
13183
13184 \begin_layout Subsection
13185 投稿の準備
13186 \end_layout
13187
13188 \begin_layout Standard
13189 AAS\SpecialChar TeX
13190 パッケージと同様、論文を投稿する前に、以下のような「後処理」を行う必要があります。
13191 \end_layout
13192
13193 \begin_layout Enumerate
13194
13195 \family sans
13196 ファイル\SpecialChar menuseparator
13197 書き出し\SpecialChar menuseparator
13198 LateX
13199 \family default
13200 をクリックして、論文を\SpecialChar LaTeX
13201 ファイルに書き出す。
13202 \end_layout
13203
13204 \begin_layout Enumerate
13205 生成された
13206 \family typewriter
13207 .tex
13208 \family default
13209 ファイルに、テキストエディタを使用して、以下のような変更を加える。
13210 \begin_inset Separator parbreak
13211 \end_inset
13212
13213
13214 \end_layout
13215
13216 \begin_deeper
13217 \begin_layout Enumerate
13218
13219 \family typewriter
13220
13221 \backslash
13222 documentclass
13223 \family default
13224 コマンドより前にあるコメント行を削除する。
13225 \end_layout
13226
13227 \begin_layout Enumerate
13228 意図的に\SpecialChar LaTeX
13229 プリアンブルに加えたコマンドを除き、
13230 \family typewriter
13231
13232 \backslash
13233 makeatletter
13234 \family default
13235 から 
13236 \family typewriter
13237
13238 \backslash
13239 makeatother
13240 \family default
13241 の間にあるものを、これらのコマンドも含め、すべて削除する。
13242 \end_layout
13243
13244 \begin_layout Standard
13245 変更した
13246 \family typewriter
13247 .tex
13248 \family default
13249 ファイルを保存する。
13250 \end_layout
13251
13252 \end_deeper
13253 \begin_layout Enumerate
13254 この
13255 \family typewriter
13256 .tex
13257 \family default
13258 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13259 にかける。
13260 \end_layout
13261
13262 \begin_layout Enumerate
13263 生成された
13264 \family typewriter
13265 .dvi
13266 \family default
13267 ファイルを
13268 \family sans
13269 xdvi
13270 \family default
13271 などを使って開き、問題がないか確認する(間違いをしていない限り問題ないはずです)。
13272 \end_layout
13273
13274 \begin_layout Subsection
13275 Kluwerパッケージの「風変わり」な特徴
13276 \begin_inset CommandInset label
13277 LatexCommand label
13278 name "subsec:kluwer_peculiarities"
13279
13280 \end_inset
13281
13282
13283 \end_layout
13284
13285 \begin_layout Standard
13286 Kluwerパッケージには、以下のような「風変わりな」特徴があります。
13287 \end_layout
13288
13289 \begin_layout Enumerate
13290 複数の論文を1つの\SpecialChar LaTeX
13291 ファイルへ入れることができます
13292 \begin_inset Foot
13293 status collapsed
13294
13295 \begin_layout Plain Layout
13296 わざわざこんなことをする必要はないでしょう。
13297 \end_layout
13298
13299 \end_inset
13300
13301 。各論文は、「article」環境で囲まなくてはなりません。残念ながら、1つの論文だけを書く場合でも、この環境を省略することはできません。つまり、各論文は
13302 \family typewriter
13303
13304 \backslash
13305 begin{article}
13306 \family default
13307 で始まり、
13308 \family typewriter
13309
13310 \backslash
13311 end{article}
13312 \family default
13313 で終わります。この環境を\SpecialChar LyX
13314 に実装することも可能でしたが、醜い上に初心者を混乱させる可能性があるので、実装することはしませんでした。したがって、これらの命令(
13315 \family typewriter
13316
13317 \backslash
13318 begin{article}
13319 \family default
13320
13321 \family typewriter
13322
13323 \backslash
13324 end{article}
13325 \family default
13326 )は、直接本文中に入力して、\SpecialChar LaTeX
13327 コード(「\SpecialChar TeX
13328 コード」のことです)としてマークする必要があります。
13329 \end_layout
13330
13331 \begin_layout Enumerate
13332 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は、「opening」とよばれる環境に入れなくて
13333 はなりません。これは\SpecialChar LyX
13334 では実装されていませんので、タイトルやサブタイトルなどは、2つの\SpecialChar TeX
13335 コード行(
13336 \family typewriter
13337
13338 \backslash
13339 begin{opening}
13340 \family default
13341 および
13342 \family typewriter
13343
13344 \backslash
13345 end{opening}
13346 \family default
13347 )の間に入れる必要があります。
13348 \end_layout
13349
13350 \begin_layout Enumerate
13351 ユーザーの手引きによれば、書誌情報の各項目のラベルは、
13352 \family typewriter
13353
13354 \begin_inset Newline newline
13355 \end_inset
13356
13357
13358 \backslash
13359 protect
13360 \backslash
13361 citeauthoryear{
13362 \family default
13363 \emph on
13364 著者名
13365 \family typewriter
13366 \emph default
13367 }{
13368 \family default
13369 \emph on
13370
13371 \family typewriter
13372 \emph default
13373 }
13374 \family default
13375  と書く必要があります。
13376 \end_layout
13377
13378 \begin_layout Standard
13379 ひな型
13380 \family typewriter
13381 kluwer.lyx
13382 \family default
13383 は、これらの風変わりな点がすべて考慮されています。このひな型を使用して、論文を新たに書きはじめる場合には、特別なことを行う必要はありません。以下の点にのみ留意し
13384 てください。
13385 \end_layout
13386
13387 \begin_layout Enumerate
13388 ひな型にある\SpecialChar TeX
13389 コードを削除しないでください。
13390 \end_layout
13391
13392 \begin_layout Enumerate
13393 新しい書誌情報項目を入力する場合には、ひな型に例示されている書誌情報項目をコピーして、必要に応じて修正してください。
13394 \end_layout
13395
13396 \begin_layout Section
13397 Koma-Script
13398 \end_layout
13399
13400 \begin_layout Standard
13401
13402 \noun on
13403 Bernd Rellermeyer
13404 \noun default
13405
13406 \end_layout
13407
13408 \begin_layout Subsection
13409 概要
13410 \end_layout
13411
13412 \begin_layout Standard
13413 \SpecialChar LyX
13414 の文書クラス
13415 \emph on
13416 article (koma-script)
13417 \emph default
13418
13419 \emph on
13420 report (koma-script)
13421 \emph default
13422
13423 \emph on
13424 book
13425 \emph default
13426  
13427 \emph on
13428 (koma-script)
13429 \emph default
13430
13431 \emph on
13432 letter
13433 \emph default
13434  
13435 \emph on
13436 (koma-script)
13437 \emph default
13438 は、それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13439 文書クラス
13440 \family typewriter
13441 scrartcl.cls
13442 \family default
13443
13444 \family typewriter
13445 scrreprt.cls
13446 \family default
13447
13448 \family typewriter
13449 scrbook.cls
13450 \family default
13451
13452 \family typewriter
13453 scrlettr.cls
13454 \family default
13455 に対応しています。これらは、標準文書クラス
13456 \family typewriter
13457 article.cls
13458 \family default
13459
13460 \family typewriter
13461 report.cls
13462 \family default
13463
13464 \family typewriter
13465 book.cls
13466 \family default
13467
13468 \family typewriter
13469 letter.cls
13470 \family default
13471 の代替物であり、これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します。
13472 \end_layout
13473
13474 \begin_layout Itemize
13475 標準文字寸法は、
13476 \emph on
13477 article (koma-script)
13478 \emph default
13479
13480 \emph on
13481 report (koma-script)
13482 \emph default
13483
13484 \emph on
13485 book (koma-script)
13486 \emph default
13487 で11pt、
13488 \emph on
13489 letter (koma-script)
13490 \emph default
13491 で12ptです。
13492 \end_layout
13493
13494 \begin_layout Itemize
13495 見出しや箇条書き(記述)環境のラベル、および
13496 \emph on
13497 letter (koma-script)
13498 \emph default
13499 文書クラスの要素の多くでは、ボールド体サンセリフフォントが使われます
13500 \begin_inset Foot
13501 status collapsed
13502
13503 \begin_layout Plain Layout
13504 ボールド体サンセリフフォントには、古いcmフォントと新しいecフォントの間に大きな違いがあり、特に見出しの表示の違いが際立ちます。比較すると、ecボールドサンセ
13505 リフフォントの方が、少し細く見えます。ecフォントを使用する際に「通常の」外観が欲しい場合には、
13506 \shape smallcaps
13507 Walter Schmidt
13508 \shape default
13509 作の\SpecialChar LaTeX
13510 パッケージ
13511 \family typewriter
13512 cmsd.sty
13513 \family default
13514 が役立ちます。
13515 \end_layout
13516
13517 \end_inset
13518
13519 。章見出しの連番は、節見出しの連番と同様に行われ、別行立てで「 Chapter\SpecialChar ldots
13520 」という行がつきません。さらに、多くのオプションによって、見出しの外観を修正するこ
13521 とができます(\SpecialChar LyX
13522 では、
13523 \family sans
13524 文書\SpecialChar menuseparator
13525 設定
13526 \family default
13527 ダイアログの
13528 \family sans
13529 クラスオプション
13530 \family default
13531 フィールドで指定します)。これらのオプションの独語での詳細な説明が、Koma-Scriptの取扱説明書
13532 \emph on
13533 scrguide
13534 \emph default
13535 にあります。
13536 \end_layout
13537
13538 \begin_layout Itemize
13539 Koma-Script文書クラスで、印字部分をデザインする主な方法は、
13540 \family sans
13541 BCOR
13542 \family default
13543 オプションまたは
13544 \family sans
13545 DIV
13546 \family default
13547 オプションを使う方法です(\SpecialChar LyX
13548 では、
13549 \family sans
13550 文書\SpecialChar menuseparator
13551 設定
13552 \family default
13553 ダイアログの
13554 \family sans
13555 クラスオプション
13556 \family default
13557 フィールドで指定します)。これらのオプションは
13558 \family sans
13559 文書\SpecialChar menuseparator
13560 設定
13561 \family default
13562 ダイアログのオプションと同様に、ページ余白を明示的に変更することができます。これらとその他印字領域オプションのドイツ語での詳細な説明が、Koma-Script取
13563 扱説明書
13564 \emph on
13565 scrguide
13566 \emph default
13567 にあります。
13568 \end_layout
13569
13570 \begin_layout Itemize
13571 Koma-Scriptファミリーの\SpecialChar LaTeX
13572 文書クラスには、多くの追加コマンドが定義されています。それらのうち、\SpecialChar LyX
13573 で意味を持つものは、対応する段落環境として実装されています
13574
13575 \end_layout
13576
13577 \begin_layout Standard
13578 Koma-Scriptファミリーの\SpecialChar LaTeX
13579 文書クラスに関する独語の詳細な説明が、Koma-Script取扱説明書
13580 \emph on
13581 scrguide
13582 \emph default
13583 にあります
13584 \begin_inset Foot
13585 status collapsed
13586
13587 \begin_layout Plain Layout
13588 英語翻訳版の
13589 \emph on
13590 screnggu
13591 \emph default
13592 もありますが、完訳ではありません。
13593 \end_layout
13594
13595 \end_inset
13596
13597 。以下の各節では、\SpecialChar LyX
13598 に関係する側面のみ説明致します。
13599 \end_layout
13600
13601 \begin_layout Subsection
13602 article (koma-script)・report (koma-script)・book (koma-script)
13603 \end_layout
13604
13605 \begin_layout Standard
13606 文書クラス
13607 \emph on
13608 article (koma-script)
13609 \emph default
13610
13611 \emph on
13612 report (koma-script)
13613 \emph default
13614
13615 \emph on
13616 book
13617 \emph default
13618  
13619 \emph on
13620 (koma-script)
13621 \emph default
13622 は、それぞれレイアウトファイル
13623 \family typewriter
13624 scrartcl.layout
13625 \family default
13626
13627 \family typewriter
13628 scrreprt.layou
13629 \family default
13630 t・
13631 \family typewriter
13632 crbook.layout
13633 \family default
13634 によって実装されています。これらは、対応する標準文書クラス
13635 \emph on
13636 article
13637 \emph default
13638
13639 \emph on
13640 report
13641 \emph default
13642
13643 \emph on
13644 book
13645 \emph default
13646 の段落環境を、若干の修正を加えた上ですべて含んでいますが、\SpecialChar LyX
13647 固有の
13648 \family sans
13649 箇条書き(一覧)
13650 \family default
13651 環境は例外であり、同じ機能を持つ新しい
13652 \family sans
13653 ラベリング
13654 \family default
13655 環境で置き換えられています。この
13656 \family sans
13657 ラベリング
13658 \family default
13659 環境以外にも、新しい段落環境が多く追加されています。これらは、
13660 \emph on
13661 letter (koma-script)
13662 \emph default
13663 には含まれていないのでご注意ください。
13664 \end_layout
13665
13666 \begin_layout Itemize
13667
13668 \family sans
13669 部(addpart)
13670 \family default
13671
13672 \family sans
13673 章(addchap)
13674 \family default
13675
13676 \family sans
13677 節(addsec)
13678 \family default
13679 :これらは、それぞれ
13680 \family sans
13681 部*
13682 \family default
13683
13684 \family sans
13685 章*
13686 \family default
13687
13688 \family sans
13689 節*
13690 \family default
13691 と同等の働きをしますが、加えて目次に項目が表示されるようになります。
13692 \family sans
13693 部(addpart)
13694 \family default
13695
13696 \family sans
13697 章(addchap)
13698 \family default
13699 は、
13700 \emph on
13701 article (koma-script)
13702 \emph default
13703 には収録されていません。
13704 \end_layout
13705
13706 \begin_layout Itemize
13707
13708 \family sans
13709 章(addchap*)
13710 \family default
13711
13712 \family sans
13713 節(addsec*)
13714 \family default
13715 :これらは、
13716 \family sans
13717 章(addchap
13718 \family default
13719 )と
13720 \family sans
13721 節(addsec)
13722 \family default
13723 とまったく同等に動作しますが、加えてランニングへッダを取り除きます。
13724 \family sans
13725 章(addchap*)
13726 \family default
13727 は、 
13728 \emph on
13729 article (koma-script)
13730 \emph default
13731 には収録されていません
13732 \begin_inset Foot
13733 status collapsed
13734
13735 \begin_layout Plain Layout
13736
13737 \emph on
13738 book (koma-script)
13739 \emph default
13740
13741 \emph on
13742 report (koma-script)
13743 \emph default
13744 には、
13745 \family typewriter
13746
13747 \backslash
13748 addpart*
13749 \family default
13750 コマンドもありますが、これは
13751 \family sans
13752 Part*
13753 \family default
13754 と同一なので、\SpecialChar LyX
13755 では実装されていません。
13756 \end_layout
13757
13758 \end_inset
13759
13760
13761 \end_layout
13762
13763 \begin_layout Itemize
13764
13765 \family sans
13766 小見出し(minisec)
13767 \family default
13768 :これは文書構造に現れない形で、続く段落の直上に標準文字寸法の見出しを付けます。
13769 \end_layout
13770
13771 \begin_layout Itemize
13772
13773 \family sans
13774 上部キャプション
13775 \family default
13776
13777 \family sans
13778 下部キャプション
13779 \family default
13780 は、ある要素の上部ないし下部にキャプションを配置する際、位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば、表キャプションは、つ
13781 ねに表の上に置くべきでしょう)。また、クラスオプション
13782 \family typewriter
13783 tablecaptionsabove
13784 \family default
13785 を用いれば、キャプションを指定すると、表には
13786 \family sans
13787 上部キャプション
13788 \family default
13789 が、図には
13790 \family sans
13791 下部キャプション
13792 \family default
13793 が適用されるようになります。これを使用するためには、Koma-Script第2.8q版以上が必要です。
13794 \end_layout
13795
13796 \begin_layout Itemize
13797
13798 \family sans
13799 格言(dictum)
13800 \family default
13801 :これは、章頭などに警句を置くのに用いることができます。オプション引数(
13802 \family sans
13803 挿入\SpecialChar menuseparator
13804 短縮タイトル
13805 \family default
13806 )を用いれば、格言の作者を入れることができます。格言と作者の間は、線で区切られます。これを使用するためには、Koma-Script第2.8q版以上が必要です。
13807 \family sans
13808 格言(dictum)
13809 \family default
13810 は、
13811 \emph on
13812 article (koma-script)
13813 \emph default
13814 には収録されていません。
13815 \end_layout
13816
13817 \begin_layout Standard
13818 以下の各環境は、標準の
13819 \family sans
13820 タイトル
13821 \family default
13822
13823 \family sans
13824 著者
13825 \family default
13826
13827 \family sans
13828 日付
13829 \family default
13830 とともに文書のタイトル領域を形成します。これらは、最初の「通常の」段落よりも前に置かれる必要があります
13831 \begin_inset Foot
13832 status collapsed
13833
13834 \begin_layout Plain Layout
13835 つまり、対応する\SpecialChar LaTeX
13836 コマンドが
13837 \family typewriter
13838
13839 \backslash
13840 maketitle
13841 \family default
13842 コマンドよりも前に現れなくてはなりません。
13843 \end_layout
13844
13845 \end_inset
13846
13847 。これらの環境が2度以上使用された場合には、後に使用されたものが前のものを上書きします。つまり最後に使用したもののみが有効になります。しかしながら、
13848 \family sans
13849 タイトル
13850 \family default
13851
13852 \family sans
13853 著者
13854 \family default
13855
13856 \family sans
13857 日付
13858 \family default
13859 のような異なる環境の順序を変更しても、生成された文書には何の効果も生じません。
13860 \end_layout
13861
13862 \begin_layout Itemize
13863
13864 \family sans
13865 主題
13866 \family default
13867 :通常のタイトル部(
13868 \family sans
13869 タイトル
13870 \family default
13871
13872 \family sans
13873 著者
13874 \family default
13875
13876 \family sans
13877 日付
13878 \family default
13879 )の上に、文書の主題用の中央揃えの段落を生成します。
13880 \end_layout
13881
13882 \begin_layout Itemize
13883
13884 \family sans
13885 出版社
13886 \family default
13887 :通常のタイトル部(
13888 \family sans
13889 タイトル
13890 \family default
13891
13892 \family sans
13893 著者
13894 \family default
13895
13896 \family sans
13897 日付
13898 \family default
13899 )の下に、出版社名用の中央揃えの段落を生成します。
13900 \end_layout
13901
13902 \begin_layout Itemize
13903
13904 \family sans
13905 献呈
13906 \family default
13907
13908 \emph on
13909 report (koma-script)
13910 \emph default
13911
13912 \emph on
13913 book (koma-script)
13914 \emph default
13915 では、タイトル頁の次に、献辞用の中央揃えの段落を独立した頁として生成します。
13916 \emph on
13917 article (koma-script)
13918 \emph default
13919 の場合は、通常のタイトル部(
13920 \family sans
13921 タイトル
13922 \family default
13923
13924 \family sans
13925 著者
13926 \family default
13927
13928 \family sans
13929 日付
13930 \family default
13931 )の下に献辞用の中央揃えの段落を生成します。
13932 \end_layout
13933
13934 \begin_layout Itemize
13935
13936 \family sans
13937 タイトル頭書き
13938 \family default
13939 :通常のタイトル部(
13940 \family sans
13941 タイトル
13942 \family default
13943
13944 \family sans
13945 著者
13946 \family default
13947
13948 \family sans
13949 日付
13950 \family default
13951 )の上に、文書頭書き用の左揃えの段落を生成します。
13952 \end_layout
13953
13954 \begin_layout Itemize
13955
13956 \family sans
13957 扉裏上部
13958 \family default
13959
13960 \emph on
13961 report (koma-script)
13962 \emph default
13963 や 
13964 \emph on
13965 book (koma-script)
13966 \emph default
13967 の両面印刷において、扉裏上部に左揃え段落を生成します。片面印刷や、
13968 \emph on
13969 article (koma-script)
13970 \emph default
13971 では何の効果も生じません。
13972 \end_layout
13973
13974 \begin_layout Itemize
13975
13976 \family sans
13977 扉裏下部
13978 \family default
13979
13980 \emph on
13981 report (koma-script)
13982 \emph default
13983 や 
13984 \emph on
13985 book (koma-script)
13986 \emph default
13987 の両面印刷において、扉裏下部に左揃え段落を生成します。片面印刷や、
13988 \emph on
13989 article (koma-script)
13990 \emph default
13991 では何の効果も生じません。
13992 \end_layout
13993
13994 \begin_layout Itemize
13995
13996 \family sans
13997 追加タイトル
13998 \family default
13999 :実際の文書の前に、整形を行わない段落から成る、特殊な「汚い」ページを生成します。
14000 \end_layout
14001
14002 \begin_layout Standard
14003 文書クラス
14004 \emph on
14005 article (koma-script)
14006 \emph default
14007
14008 \emph on
14009 report (koma-script)
14010 \emph default
14011
14012 \emph on
14013 book (koma-script)
14014 \emph default
14015 の 各レイアウトファイルは、
14016 \family typewriter
14017 scrmacros.inc
14018 \family default
14019 ファイルを読み込みます。このファイルは、ユーザ環境を定義する場所として想定されています。s
14020 \family typewriter
14021 crmacros.inc
14022 \family default
14023 を、個人用レイアウトディレクトリにコピーして編集してください!
14024 \end_layout
14025
14026 \begin_layout Subsection
14027 letter (koma-script)
14028 \end_layout
14029
14030 \begin_layout Standard
14031 \noindent
14032 文書クラス
14033 \emph on
14034 letter (koma-script)
14035 \emph default
14036 は、レイアウトファイル 
14037 \family typewriter
14038 scrlettr.layout
14039 \family default
14040 で実装されています。このレイアウトファイルには、対応する標準文書クラス
14041 \emph on
14042 letter
14043 \emph default
14044 の全段落環境が、部分的に変更を加えた形で収録されていますが、\SpecialChar LyX
14045 固有環境の
14046 \family sans
14047 \SpecialChar LyX
14048 コード
14049 \family default
14050
14051 \family sans
14052 コメント
14053 \family default
14054
14055 \family sans
14056 箇条書き(一覧
14057 \family default
14058 )は、新しく
14059 \family sans
14060 ラベリング
14061 \family default
14062 環境に置き換えられています。それ以外にも、標準文書クラスとは異なり、標準環境の
14063 \family sans
14064 \SpecialChar LaTeX
14065
14066 \family default
14067
14068 \family sans
14069 引用(字下げあり)
14070 \family default
14071
14072 \family sans
14073 引用(字下げなし)
14074 \family default
14075
14076 \family sans
14077 詩句
14078 \family default
14079 が収録されています。さらに、新しいletter固有環境がたくさん追加されています。
14080 \end_layout
14081
14082 \begin_layout Standard
14083 この文書クラスで作成した書簡の外観は、様々な\SpecialChar LaTeX
14084 コマンドを\SpecialChar LaTeX
14085 プリアンブルに置くことで制御することができます
14086 \begin_inset Foot
14087 status collapsed
14088
14089 \begin_layout Plain Layout
14090 例えば、名前と住所の入った書簡ヘッダの標準的外観は、きわめて頑固です。「普通の」へッダは、プリアンブル中に以下のようなコマンドを入れることで生成することができま
14091 す。
14092 \end_layout
14093
14094 \begin_layout LyX-Code
14095
14096 \backslash
14097 firsthead{
14098 \backslash
14099 parbox[b]{
14100 \backslash
14101 textwidth}
14102 \end_layout
14103
14104 \begin_layout LyX-Code
14105   {
14106 \backslash
14107 ignorespaces 
14108 \backslash
14109 fromname
14110 \backslash
14111
14112 \backslash
14113  
14114 \backslash
14115 ignorespaces 
14116 \backslash
14117 fromaddress}} 
14118 \end_layout
14119
14120 \begin_layout LyX-Code
14121
14122 \backslash
14123 nexthead{
14124 \backslash
14125 parbox[b]{
14126 \backslash
14127 textwidth}
14128 \end_layout
14129
14130 \begin_layout LyX-Code
14131   {
14132 \backslash
14133 ignorespaces 
14134 \backslash
14135 fromname 
14136 \backslash
14137 hfill 
14138 \backslash
14139 ignorespaces 
14140 \backslash
14141 pagename
14142 \backslash
14143
14144 \end_layout
14145
14146 \begin_layout LyX-Code
14147
14148 \backslash
14149 thepage}}
14150 \end_layout
14151
14152 \end_inset
14153
14154 。これらの\SpecialChar LaTeX
14155 コマンドのドイツ語での詳細な説明は、Koma-Scriptの取扱説明書
14156 \emph on
14157 scrguide
14158 \emph default
14159 にあります。この方法で、書簡の著者は、個人用書簡レイアウトを作ることができます。
14160 \end_layout
14161
14162 \begin_layout Standard
14163
14164 \family sans
14165 書簡
14166 \family default
14167 環境および
14168 \family sans
14169 頭語
14170 \family default
14171 環境は、書簡の冒頭部を定義するもので、すべての書簡で使用しなくてはなりません。\SpecialChar LyX
14172 文書クラスでは、これらの環境を強調するために、左余白にそれぞれ
14173 \shape italic
14174 L
14175 \shape default
14176
14177 \shape italic
14178 O
14179 \shape default
14180 という文字が表示されます。同一ファイル中には、複数の書簡を書くことができます。
14181 \family sans
14182 頭語
14183 \family default
14184 環境は、同じ受取人への書簡を新しく書き出すものであり、
14185 \family sans
14186 書簡
14187 \family default
14188 環境は、新しい受取人を生成するものです。
14189 \family sans
14190 結語
14191 \family default
14192
14193 \family sans
14194 PS
14195 \family default
14196
14197 \family sans
14198 CC
14199 \family default
14200
14201 \family sans
14202 Encl
14203 \family default
14204 は、通常の段落環境なので、同一の書簡中でも何度も使用することができます。
14205 \end_layout
14206
14207 \begin_layout Itemize
14208
14209 \family sans
14210 書簡
14211 \family default
14212 :受取人のための段落をつくり、暗黙に書簡の開始を定義します。
14213 \end_layout
14214
14215 \begin_layout Itemize
14216
14217 \family sans
14218 頭語
14219 \family default
14220 :敬称のための段落をつくり、暗黙に新しい書簡を開始します。
14221 \end_layout
14222
14223 \begin_layout Itemize
14224
14225 \family sans
14226 結語
14227 \family default
14228 :結語のための段落をつくります。
14229 \end_layout
14230
14231 \begin_layout Itemize
14232
14233 \family sans
14234 PS
14235 \family default
14236 :追伸のための段落をつくります。
14237 \end_layout
14238
14239 \begin_layout Itemize
14240
14241 \family sans
14242 CC
14243 \family default
14244 :同報一覧のための段落をつくります。
14245 \end_layout
14246
14247 \begin_layout Itemize
14248
14249 \family sans
14250 Encl
14251 \family default
14252 :同封物のための段落をつくります。
14253 \end_layout
14254
14255 \begin_layout Standard
14256
14257 \family sans
14258 名前
14259 \family default
14260
14261 \family sans
14262 署名
14263 \family default
14264
14265 \family sans
14266 住所
14267 \family default
14268
14269 \family sans
14270 電話
14271 \family default
14272
14273 \family sans
14274 場所(Place
14275 \family default
14276 )・
14277 \family sans
14278 返送先住所
14279 \family default
14280
14281 \family sans
14282 配送手段(Specialmail)
14283 \family default
14284
14285 \family sans
14286 場所
14287 \family default
14288
14289 \family sans
14290 タイトル
14291 \family default
14292
14293 \family sans
14294 主題
14295 \family default
14296 は、情報入力を促すラベルの付いた入力環境で、文書クラスが適切な処理を行います
14297 \begin_inset Foot
14298 status collapsed
14299
14300 \begin_layout Plain Layout
14301 上述の
14302 \family sans
14303 書簡
14304 \family default
14305
14306 \family sans
14307 頭語
14308 \family default
14309 が、これらのような入力環境でないのは、矛盾しているように感じられるかもしれません。しかしながら、これら2つの環境は特別の意味を持っているために、これらは左余白に
14310 一文字をマークした通常の段落環境として実装しました。さらに、
14311 \family sans
14312 頭語
14313 \family default
14314 環境と
14315 \family sans
14316 結語
14317 \family default
14318 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです。
14319 \end_layout
14320
14321 \end_inset
14322
14323 。これらの環境は、対応する
14324 \family sans
14325 頭語
14326 \family default
14327 環境の前に置く必要があります。
14328 \end_layout
14329
14330 \begin_layout Standard
14331 生成された書簡の実際の外観は、特定の環境の使い方だけではなく、他の要素にも依存するため、これらの環境をWYSIWYGとして実装することには、あまり意味がありませ
14332 ん。たとえば、
14333 \family sans
14334 署名
14335 \family default
14336 環境で入力した署名は、標準的な挙動では、同じ書簡に
14337 \family sans
14338 結語
14339 \family default
14340 環境も使用されているときのみ、書簡の出力に現れます。
14341 \family sans
14342 電話
14343 \family default
14344 環境に入力された値は、標準的な挙動では、書簡の出力には全く表示されません。書簡のヘッダを自由にデザインできることは、前出の脚注で示してあります。
14345 \end_layout
14346
14347 \begin_layout Standard
14348 入力環境は、空の段落として使うことができます。これは、たとえば
14349 \family sans
14350 署名
14351 \family default
14352 環境の場合に有効です。
14353 \family sans
14354 署名
14355 \family default
14356 環境を全く使用しない場合は、標準的な挙動では、
14357 \family sans
14358 名前
14359 \family default
14360 環境の値が署名として使用されますが、空の
14361 \family sans
14362 署名
14363 \family default
14364 環境を作成しておくと、署名の値は無定義となりません。
14365 \end_layout
14366
14367 \begin_layout Standard
14368 入力環境を使用すると、個人データ(名前や住所など)が既に入力された入力環境と、後から入力するデータの入力環境を備えた、書簡のひな型を作成することができます。
14369 \end_layout
14370
14371 \begin_layout Itemize
14372
14373 \family sans
14374 名前
14375 \family default
14376 :送り主の名前。標準的な挙動では、書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます。
14377 \end_layout
14378
14379 \begin_layout Itemize
14380
14381 \family sans
14382 署名
14383 \family default
14384 :送り主の署名。標準的な挙動では、
14385 \family sans
14386 結語
14387 \family default
14388 環境の下に表示されます。
14389 \family sans
14390 署名
14391 \family default
14392 環境を使用しないと、代わりに
14393 \family sans
14394 名前
14395 \family default
14396 環境の値が表示されます。
14397 \end_layout
14398
14399 \begin_layout Itemize
14400
14401 \family sans
14402 住所
14403 \family default
14404 :送り主の住所。標準的な挙動では、書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます。
14405 \end_layout
14406
14407 \begin_layout Itemize
14408
14409 \family sans
14410 電話
14411 \family default
14412 :送り主の電話番号。標準的な挙動では、\SpecialChar LaTeX
14413 変数
14414 \family typewriter
14415
14416 \backslash
14417 telephonenum
14418 \family default
14419 を設定するだけです。
14420 \end_layout
14421
14422 \begin_layout Itemize
14423
14424 \family sans
14425 場所(Place)
14426 \family default
14427 :書簡を書いた場所。
14428 \end_layout
14429
14430 \begin_layout Itemize
14431
14432 \family sans
14433 日付
14434 \family default
14435 :書簡を書いた日付。
14436 \family sans
14437 場所(Place)
14438 \family default
14439
14440 \family sans
14441 日付
14442 \family default
14443 は、標準的な挙動では、受取人フィールドの下に、単一の右揃え行として場所と日付を生成します。空の
14444 \family sans
14445 日付
14446 \family default
14447 環境を作成しておくと、
14448 \family sans
14449 場所(Place)
14450 \family default
14451 の値如何に関わらず、場所も日付も表示されません。
14452 \family sans
14453 日付
14454 \family default
14455 環境を使用しない場合には、書簡を出力した日付が使用されます。
14456 \end_layout
14457
14458 \begin_layout Itemize
14459
14460 \family sans
14461 返送先住所
14462 \family default
14463 :送り主の返送先住所。標準的な挙動では、受取人の上に小文字のサンセリフ体フォントで表示されます。
14464 \end_layout
14465
14466 \begin_layout Itemize
14467
14468 \family sans
14469 特別便
14470 \family default
14471 :特別便の情報。標準的な挙動では、受取人フィールドの上かつ返送先住所の下に、下線付きで表示されます。
14472 \end_layout
14473
14474 \begin_layout Itemize
14475
14476 \family sans
14477 場所
14478 \family default
14479 :追加情報。標準的な挙動では、受取人フィールドの下の右側に表示されます。
14480 \end_layout
14481
14482 \begin_layout Itemize
14483
14484 \family sans
14485 タイトル
14486 \family default
14487 :書簡の題名。標準的な挙動では、主題の上に大きなボールド体サンセリフフォントで表示されます。
14488 \end_layout
14489
14490 \begin_layout Itemize
14491
14492 \family sans
14493 主題
14494 \family default
14495 :書簡の主題。標準的な挙動では、
14496 \family sans
14497 頭語
14498 \family default
14499 環境の上にボールド体で表示されます。
14500 \end_layout
14501
14502 \begin_layout Standard
14503
14504 \family sans
14505 Yourref・Yourmail・Myref・顧客・インボイス
14506 \family default
14507 といった環境は、
14508 \family sans
14509 タイトル
14510 \family default
14511 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14512 ィールド行を持つ、ビジネス書簡を作成します。日付フィールドには、
14513 \family sans
14514 日付
14515 \family default
14516 環境の値が使用されます。しかしながら、これらの「ビジネス書簡環境」の一つを使用した場合には、
14517 \family sans
14518 場所(Place)
14519 \family default
14520 の値は書簡には表示されなくなり、\SpecialChar LaTeX
14521 変数
14522 \family typewriter
14523
14524 \backslash
14525 fromplace
14526 \family default
14527 が設定させるだけになります。通常時に、受取人フィールドの下に右揃えで出力される場所と日付の出力は、抑制されます。これらのビジネス環境は、ラベル付きの入力環境とし
14528 て実装されており、対応する
14529 \family sans
14530 頭語
14531 \family default
14532 環境よりも前に置く必要があります。
14533 \end_layout
14534
14535 \begin_layout Itemize
14536
14537 \family sans
14538 Yourref
14539 \family default
14540 : Your ref.
14541 \end_layout
14542
14543 \begin_layout Itemize
14544
14545 \family sans
14546 Yourmail
14547 \family default
14548 : Your letter of.
14549 \end_layout
14550
14551 \begin_layout Itemize
14552
14553 \family sans
14554 Myref
14555 \family default
14556 : Our ref.
14557 \end_layout
14558
14559 \begin_layout Itemize
14560
14561 \family sans
14562 Customer
14563 \family default
14564 : Customer no.
14565 \end_layout
14566
14567 \begin_layout Itemize
14568
14569 \family sans
14570 Invoice
14571 \family default
14572 : Invoice no.
14573 \end_layout
14574
14575 \begin_layout Subsection
14576 新しいletterクラス:letter (koma-script v.2)
14577 \end_layout
14578
14579 \begin_layout Standard
14580 by 
14581 \noun on
14582 Jürgen Spitzmüller
14583 \begin_inset VSpace medskip
14584 \end_inset
14585
14586
14587 \end_layout
14588
14589 \begin_layout Standard
14590 \noindent
14591 Koma-Script第2.8版では、新しいletterクラス
14592 \family typewriter
14593 scrlttr2
14594 \family default
14595 が導入されたため、
14596 \family typewriter
14597 scrlettr
14598 \family default
14599 は廃止されてサポート対象外となりました。これは—\SpecialChar LaTeX
14600 側で—全く新しいインターフェイスを持っており、旧クラスとは互換性がありません。したがって、\SpecialChar LyX
14601 は両者をサポートしてい
14602 ますが、新しい方のクラスを使用することを推奨します。
14603 \end_layout
14604
14605 \begin_layout Standard
14606 このクラスは、
14607 \emph on
14608 letter (koma-script)
14609 \emph default
14610 と同一の機能に加えて、新しい機能をいくつかサポートしています。基本となる項目は、
14611 \family sans
14612 住所
14613 \family default
14614 (受取人の住所、旧レイアウトの
14615 \family sans
14616 書簡
14617 \family default
14618 と同じ)・
14619 \family sans
14620 頭語
14621 \family default
14622
14623 \family sans
14624 結語
14625 \family default
14626 です。
14627 \family sans
14628 次の住所
14629 \family default
14630 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます)。新しく付け加えられた項目は、送り主の
14631 \family sans
14632 電子メール
14633 \family default
14634
14635 \family sans
14636 URL
14637 \family default
14638
14639 \family sans
14640 ファックス
14641 \family default
14642
14643 \family sans
14644 銀行
14645 \family default
14646 、およびヘッダに(
14647 \family sans
14648 挿入\SpecialChar menuseparator
14649
14650 \family default
14651 で)
14652 \family sans
14653 ロゴ
14654 \family default
14655 を入れることができるようになった点です。
14656 \end_layout
14657
14658 \begin_layout Standard
14659 しかしながら、もっとも大きな改善は、書簡のレイアウトを、ほとんどどんなニーズにも合わせて設定できるようになった点でしょう。これはプリアンブルか、クラスオプション
14660 として読み込まれる特別なスタイルファイル(「レタークラスオプション」、拡張子
14661 \family typewriter
14662 *.lco
14663 \family default
14664 )によって設定することができます
14665 \begin_inset Foot
14666 status collapsed
14667
14668 \begin_layout Plain Layout
14669 KOMAパッケージには、既定の
14670 \family typewriter
14671 *.lco
14672 \family default
14673 ファイルがいくつか収録されています。たとえば、ドイツの組版規則に則った
14674 \family typewriter
14675 DIN.lco
14676 \family default
14677 や、旧
14678 \family typewriter
14679 scrlettr
14680 \family default
14681 クラスの既定レイアウトを提供する
14682 \family typewriter
14683 KOMAold.lco
14684 \family default
14685 などです。たとえば後者は、
14686 \family sans
14687 文書\SpecialChar menuseparator
14688 設定\SpecialChar menuseparator
14689 文書クラス\SpecialChar menuseparator
14690 クラスオプション
14691 \family default
14692 フィールドにクラスオプション
14693 \family typewriter
14694 KOMAold
14695 \family default
14696 を加えることで読み込むことができます。
14697 \end_layout
14698
14699 \end_inset
14700
14701 。用例としては、\SpecialChar LyX
14702 に収録されているひな型
14703 \emph on
14704 koma-letter2
14705 \emph default
14706 をご覧ください。詳細な解説は、Koma-Script取扱説明書(
14707 \emph on
14708 scrguide
14709 \emph default
14710 )にあります。
14711 \end_layout
14712
14713 \begin_layout Subsection
14714 問題点
14715 \end_layout
14716
14717 \begin_layout Standard
14718 Koma-Script文書クラスを\SpecialChar LyX
14719 上に表示する上で、\SpecialChar LyX
14720 の内部処理が若干の問題を生じめます。
14721 \end_layout
14722
14723 \begin_layout Itemize
14724
14725 \family sans
14726
14727 \family default
14728 環境の章番号は、章見出しと同じ行ではなく、その上に表示されます。これは、レイアウトファイル中の
14729 \family sans
14730 Counter_Chapter
14731 \family default
14732 ラベル型に対する\SpecialChar LyX
14733 の内部処理が原因です。
14734 \end_layout
14735
14736 \begin_layout Itemize
14737
14738 \family sans
14739 章(addchap)
14740 \family default
14741
14742 \family sans
14743 節(addsec)
14744 \family default
14745 環境の見出しは、「本当の」\SpecialChar LaTeX
14746 の目次には追加されますが、\SpecialChar LyX
14747 の目次(
14748 \family sans
14749 移動
14750 \family default
14751 メニュー)には追加されません。
14752 \end_layout
14753
14754 \begin_layout Itemize
14755
14756 \emph on
14757 letter
14758 \emph default
14759 文書クラスでの段落は、垂直スペースによる段落区切りで表示され、字下げはされません。これが標準的な挙動となっていて、特別な\SpecialChar LaTeX
14760 コマンドは必要ありません。しかし、
14761 \family sans
14762 文書\SpecialChar menuseparator
14763 設定
14764 \family default
14765 ダイアログでは、対応するラジオボタンは
14766 \family sans
14767 字下げ
14768 \family default
14769 に設定されています。
14770 \family sans
14771 垂直スペース
14772 \family default
14773 は、隙間を空けるために、文書に\SpecialChar LaTeX
14774 コマンドをつねに追加するようになっていますが、この文書クラスの場合には、そのような挙動が望まれないためです。
14775 \end_layout
14776
14777 \begin_layout Section
14778 Memoir
14779 \end_layout
14780
14781 \begin_layout Standard
14782
14783 \noun on
14784 Jürgen Spitzmüller
14785 \noun default
14786
14787 \end_layout
14788
14789 \begin_layout Subsection
14790 概観
14791 \end_layout
14792
14793 \begin_layout Standard
14794 Memoirは、非常に強力で、着実に改良が加えられている文書クラスであり、フィクションとノンフィクションの文学作品用に設計されています。その目的は、ユーザーに、
14795 文書の組版に関して最大限の裁量を得させることにあります。Memoirは、標準bookクラスに基づいていますが、articleクラスをエミュレートすることもできま
14796 す(以下参照)。
14797 \end_layout
14798
14799 \begin_layout Standard
14800 Memoir開発者であるPeter Wilsonは、\SpecialChar LaTeX
14801 の世界での、多くの便利なパッケージの作者として知られていますが、それらのほとんどは、Memoirに統合されま
14802 した。このため、章のデザインや、目次や付録などのレイアウトを、はるかに簡単に行うことができます。しかしながら、\SpecialChar LyX
14803 は、これらすべての素晴らしい機能をネイティブでサポ
14804 ートしているわけではありません。これらのうちいくつかは、将来のリリースで追加されるかもしれませんが
14805 \begin_inset Foot
14806 status collapsed
14807
14808 \begin_layout Plain Layout
14809 もし提案があれば、ぜひ
14810 \begin_inset Flex URL
14811 status collapsed
14812
14813 \begin_layout Plain Layout
14814
14815 lyx-devel@lists.lyx.org
14816 \end_layout
14817
14818 \end_inset
14819
14820 までお送り下さい。
14821 \end_layout
14822
14823 \end_inset
14824
14825 、\SpecialChar LyX
14826 のフレームワークが持つ制約のために、おそらく決して追加されることのないと考えられるものも多数あります。もちろん、ネイティブな\SpecialChar LaTeX
14827 コマンド(\SpecialChar TeX
14828 コード
14829 \begin_inset Foot
14830 status collapsed
14831
14832 \begin_layout Plain Layout
14833 【参考】詳細は、第
14834 \begin_inset CommandInset ref
14835 LatexCommand ref
14836 reference "sec:LaTeXコードを挿入する"
14837
14838 \end_inset
14839
14840 節参照。
14841 \end_layout
14842
14843 \end_inset
14844
14845 )の助けを借りれば、全機能を使用できます。この節では、\SpecialChar LyX
14846 がネイティブにサポートしている機能についてのみ、列挙するものとします。詳細な説明(および他の機能)について
14847 は、Memoirクラスの詳しい取扱説明書
14848 \begin_inset Foot
14849 status collapsed
14850
14851 \begin_layout Plain Layout
14852 【参考】
14853 \begin_inset Flex URL
14854 status collapsed
14855
14856 \begin_layout Plain Layout
14857
14858 CTAN:/macros/latex/memoir/memman.pdf
14859 \end_layout
14860
14861 \end_inset
14862
14863
14864 \end_layout
14865
14866 \end_inset
14867
14868 をご覧になることをお勧めします。この取扱説明書は、本クラスのユーザーの手引きであるのみに留まらず、良い組版に関する包括的な解説であり、それ自身が良い組版の傑出し
14869 た用例となっています。
14870 \end_layout
14871
14872 \begin_layout Subsection
14873 基本的な機能と制約
14874 \end_layout
14875
14876 \begin_layout Standard
14877 Memoirは、基本的に、標準bookクラスの全機能をサポートしています。しかしながら、以下に示すような若干の違いがあります。
14878 \end_layout
14879
14880 \begin_layout Description
14881 フォント寸法: Memoirでは、9・10・11・12・14・17と、より広い範囲のフォント寸法が使用可能です。
14882 \end_layout
14883
14884 \begin_layout Description
14885 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため、\SpecialChar LaTeX
14886 が混乱させられます
14887 )、fancyページ様式は使用できません。その代わり、Memoirには、多くの独自のページ様式が付属してきます(
14888 \family sans
14889 文書\SpecialChar menuseparator
14890 設定\SpecialChar menuseparator
14891 ページレイアウト
14892 \family default
14893 参照)。これらを章題ページに使用したい場合には、コマンド
14894 \family typewriter
14895
14896 \backslash
14897 chapterstyle
14898 \family default
14899 を、本文またはプリアンブルに記述する必要があります(例えば、
14900 \family typewriter
14901
14902 \backslash
14903 chapterstyle{companion}
14904 \family default
14905 など)。
14906 \end_layout
14907
14908 \begin_layout Description
14909 節分け: 標準クラスでは、節分けコマンド(章・節・小節等)は、非必須引数を一つ取ることができます。これを用いて、目次やヘッダ用に別のタイトルを指定することができ
14910 ます(たとえば、タイトルが長すぎる場合などに用います)。\SpecialChar LyX
14911 では、章や節の始めで
14912 \family sans
14913 挿入\SpecialChar menuseparator
14914 短縮タイトル
14915 \family default
14916 を使えば、これを指定することができます。一方、Memoirでは、第2の非必須引数を取ることができ、目次用のタイトルとヘッダ用のタイトルの指定を分離しています。こ
14917 れを使えば、本文用と目次用とヘッダ用のタイトルの3種類を指定することができます。この機能を使用したい場合には、2つの非必須引数を入力して、最初のものに目次用、次
14918 のものにヘッダ用短縮タイトルを入れてください。
14919 \end_layout
14920
14921 \begin_layout Description
14922 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では、目次と図一覧および表一覧は、自動的に新規頁に置かれます。Memoirは、これとは別の方針を採り
14923 ます。改頁を行いたい場合は、手動で頁区切りを入れなくてはなりません。
14924 \end_layout
14925
14926 \begin_layout Description
14927 タイトル頁: 理由は不明ですが、Memoirはタイトルページに丁付けを行います(標準クラスでは、タイトルページは「empty」様式)。タイトル頁に丁付けを行いた
14928 くない場合には、プリアンブルに
14929 \family typewriter
14930
14931 \backslash
14932 aliaspagestyle{title}{empty}
14933 \family default
14934 と入力してください。
14935 \end_layout
14936
14937 \begin_layout Description
14938 Article: クラスオプション
14939 \emph on
14940 article
14941 \emph default
14942 を用いる(
14943 \family sans
14944 文書\SpecialChar menuseparator
14945 設定\SpecialChar menuseparator
14946 クラスオプション
14947 \family default
14948 で入力)と、article様式をエミュレートできます。すなわち、(脚注・図・表等の)カウンタは、章毎にリセットされず、次の章は頁を改めず(ただし、「本物の」ar
14949 ticleクラスとは違って、頁を改めることも可)、部はbookクラスと同様に、独立の頁を使用します。
14950 \end_layout
14951
14952 \begin_layout Description
14953 Oldfontcommands: \SpecialChar LaTeX
14954 旧2.09版で使用されていた旧いフォントコマンド(
14955 \family typewriter
14956
14957 \backslash
14958 rm
14959 \family default
14960
14961 \family typewriter
14962
14963 \backslash
14964 it
14965 \family default
14966 など)は、Memoirにおいては、既定では使用することができません。Memoirがこれらのコマンドを検知すると、エラーを発して\SpecialChar LaTeX
14967 を停止させます。しかし、クラスオプ
14968 ション
14969 \emph on
14970 oldfontcommands
14971 \emph default
14972 を指定すると、これらのコマンドが容認され、エラーの代わりに警告を発するのみとなります(これによって、少なくとも\SpecialChar LaTeX
14973 は停止しなくなります)。まだ、多くのパッケージと、
14974 就中多くのBib\SpecialChar TeX
14975 スタイルファイルが、これらのコマンドを使用しているので、我々はこのオプションを既定で使うこととしました。
14976 \end_layout
14977
14978 \begin_layout Subsection
14979 追加された機能
14980 \end_layout
14981
14982 \begin_layout Standard
14983 \SpecialChar LyX
14984 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう。詳しくはMemoirの取扱説明書
14985 \begin_inset Foot
14986 status collapsed
14987
14988 \begin_layout Plain Layout
14989 \begin_inset Flex URL
14990 status collapsed
14991
14992 \begin_layout Plain Layout
14993
14994 CTAN:/macros/latex/memoir/memman.pdf
14995 \end_layout
14996
14997 \end_inset
14998
14999
15000 \end_layout
15001
15002 \end_inset
15003
15004 を見てください。
15005 \end_layout
15006
15007 \begin_layout Description
15008 概要: 概要が、追加された機能として扱われているのを不思議に思われるかもしれませんが、bookクラスとしては追加された機能なのです。通常bookクラスには概要は
15009 ないのですが、memoirにはあります。これは、どこでも何回でも自由に使うことができます。
15010 \end_layout
15011
15012 \begin_layout Description
15013 章要約: この古い組版様式はご覧になったことがあるかも知れません。章の内容が、見出しの下と目次に要約されているものです(たとえば、「我らが英雄がトロヤに到着する
15014 。彼は友人を失うが、新たな友人を得る。」など)。章要約(chapterprecis)はこれを行います。したがって、章要約は章の下でのみ意味を持ちます。
15015 \end_layout
15016
15017 \begin_layout Description
15018 題辞: 題辞(epigraph)は章頭の、気の利いた標語やモットーです。題辞環境は、そのような標語を組む洗練された方法を提供します。標語本体(本文)とその著者(
15019 出典)は、短い線で区切られます。この環境には二つの引数(本文と出典)が必要なので、ここでも\SpecialChar LyX
15020 を少しだます必要があります。ここでは、2つの引数の間に、
15021 \emph on
15022 <標語>
15023 \family typewriter
15024 \emph default
15025 }{
15026 \family default
15027 \emph on
15028 <標語の著者>
15029 \emph default
15030 のように、(\SpecialChar TeX
15031 モードで)波括弧を入れなくてはなりません。
15032 \end_layout
15033
15034 \begin_layout Description
15035 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが、\SpecialChar LyX
15036 は、そのうちいくつかしかサポートしていません。詩題はその一つです
15037 。これは詩用の中央揃えタイトルで、目次にも表示されます(詩句が詩の標準環境です。Memoirには、詩句の拡張版もありますが、これらを使うためには\SpecialChar TeX
15038 コードを使用しな
15039 くてはなりません。これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが、\SpecialChar LyX
15040 ではそれができないためです)。
15041 \end_layout
15042
15043 \begin_layout Description
15044 詩題*: 目次に現れない他は詩題と同じです。
15045 \end_layout
15046
15047 \begin_layout Section
15048 Article (mwart)・book (mwbk)・report (mwrep)
15049 \begin_inset Argument status
15050 status collapsed
15051
15052 \begin_layout Plain Layout
15053 The 
15054 \family typewriter
15055 mw
15056 \family default
15057  Classes
15058 \end_layout
15059
15060 \end_inset
15061
15062
15063 \end_layout
15064
15065 \begin_layout Standard
15066
15067 \noun on
15068 Tomasz Luczak
15069 \noun default
15070
15071 \end_layout
15072
15073 \begin_layout Standard
15074 \SpecialChar LyX
15075 文書クラス
15076 \emph on
15077 article (mwart)
15078 \emph default
15079
15080 \emph on
15081 report (mwrep)・book
15082 \emph default
15083  
15084 \emph on
15085 (mwbk)
15086 \emph default
15087 は、それぞれ\SpecialChar LaTeX
15088 文書クラス
15089 \family typewriter
15090 mwart.cls
15091 \family default
15092
15093 \family typewriter
15094 mwrep.cls
15095 \family default
15096
15097 \family typewriter
15098 mwbk.cls
15099 \family default
15100 に対応しています。これらは、標準の
15101 \family typewriter
15102 article.cls
15103 \family default
15104
15105 \family typewriter
15106 report.cls
15107 \family default
15108
15109 \family typewriter
15110 book.cls
15111 \family default
15112 を代替するものであり、多くの点で、ポーランド語の組版慣習によく適合しています。
15113 \end_layout
15114
15115 \begin_layout Standard
15116 基本的な違いは、次の点です。
15117 \end_layout
15118
15119 \begin_layout Itemize
15120 付番のない見出し(
15121 \family sans
15122 節*
15123 \family default
15124 などの星付き)も目次に加えられます。
15125 \end_layout
15126
15127 \begin_layout Itemize
15128 以下のページスタイルの追加
15129 \begin_inset Separator parbreak
15130 \end_inset
15131
15132
15133 \end_layout
15134
15135 \begin_deeper
15136 \begin_layout Description
15137 uheadings 分離線付きヘッダ
15138 \end_layout
15139
15140 \begin_layout Description
15141 myheadings 
15142 \family typewriter
15143
15144 \backslash
15145 markright
15146 \family default
15147 コマンドおよび
15148 \family typewriter
15149
15150 \backslash
15151 markboth
15152 \family default
15153 コマンドで設定するカスタムヘッダ
15154 \end_layout
15155
15156 \begin_layout Description
15157 myuheadings 分離線付きカスタムヘッダ
15158 \end_layout
15159
15160 \begin_layout Description
15161 outer ページの外側にページ番号
15162 \end_layout
15163
15164 \end_deeper
15165 \begin_layout Itemize
15166 オプション
15167 \begin_inset Separator parbreak
15168 \end_inset
15169
15170
15171 \end_layout
15172
15173 \begin_deeper
15174 \begin_layout Description
15175 rmheadings セリフ体見出し — 既定
15176 \end_layout
15177
15178 \begin_layout Description
15179 sfheadings サンセリフ体見出し
15180 \end_layout
15181
15182 \begin_layout Description
15183 authortitle タイトルページは、著者名・タイトルの順で配置 — 既定
15184 \end_layout
15185
15186 \begin_layout Description
15187 titleauthor タイトルページは、タイトル・著者名の順で配置
15188 \end_layout
15189
15190 \begin_layout Description
15191 withmarginpar ページ上に余白のための場所を確保
15192 \end_layout
15193
15194 \end_deeper
15195 \begin_layout Section
15196 Paper
15197 \end_layout
15198
15199 \begin_layout Standard
15200
15201 \family sans
15202 paper
15203 \family default
15204 文書クラスは標準
15205 \family sans
15206 article
15207 \family default
15208 クラスの代替となるものです。これは
15209 \family sans
15210 同様の
15211 \family default
15212 機能を提供しますが、サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません。
15213 \end_layout
15214
15215 \begin_layout Section
15216 Rev\SpecialChar TeX
15217 4
15218 \end_layout
15219
15220 \begin_layout Standard
15221 by 
15222 \noun on
15223 Amir Karger
15224 \end_layout
15225
15226 \begin_layout Standard
15227 \begin_inset VSpace bigskip
15228 \end_inset
15229
15230
15231 \end_layout
15232
15233 \begin_layout Standard
15234 \noindent
15235
15236 \family sans
15237 Revtex
15238 \begin_inset space ~
15239 \end_inset
15240
15241 4
15242 \family default
15243 テキストクラスは、アメリカ物理学会のRev\SpecialChar TeX
15244  4.0(1999年5月の
15245 \begin_inset Formula $\beta$
15246 \end_inset
15247
15248 リリース)クラスで動作します。
15249 \end_layout
15250
15251 \begin_layout Standard
15252 \SpecialChar LyX
15253 には、Rev\SpecialChar TeX
15254  3.1で動作する
15255 \family sans
15256 Revtex
15257 \family default
15258 テキストクラスもあります。しかしながら、第3.1版は\SpecialChar LaTeX
15259  2.09で動作するものであり、基本的に時代遅れなものになっています。\SpecialChar LyX
15260 は\SpecialChar LaTeX2e
15261 を必要とすることから、第3.1版は\SpecialChar LyX
15262 とうまく
15263 協調しないことを意味しますが、動作するようには調整してあります。Rev\SpecialChar TeX
15264  4.0は、\SpecialChar LaTeX2e
15265 で素直に動作するようにデザインされているので、\SpecialChar LyX
15266
15267 \family sans
15268 Rev\SpecialChar TeX
15269
15270 \begin_inset space ~
15271 \end_inset
15272
15273 4
15274 \family default
15275 テキストクラスの組で使用するのは、たいへん簡単です。
15276 \end_layout
15277
15278 \begin_layout Standard
15279 この取扱説明書は、Rev\SpecialChar TeX
15280  4.0の説明書の
15281 \emph on
15282 補完
15283 \emph default
15284 として使用されることを前提としています。したがって、ここではRev\SpecialChar TeX
15285 固有マクロの説明はせず、必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15286 します。
15287 \end_layout
15288
15289 \begin_layout Subsection
15290 導入
15291 \end_layout
15292
15293 \begin_layout Standard
15294 Rev\SpecialChar TeX
15295  4パッケージのREADMEファイルにあるとおり、ともかくRev\SpecialChar TeX
15296  4を導入しなくてはなりません。パッケージは、The Rev\SpecialChar TeX
15297  4 Web
15298  Site 
15299 \begin_inset Flex URL
15300 status collapsed
15301
15302 \begin_layout Plain Layout
15303
15304 http://publish.aps.org/revtex4/
15305 \end_layout
15306
15307 \end_inset
15308
15309 から入手することができます。これを\SpecialChar LaTeX
15310 が検出することのできる場所に導入してください。それから、適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15311 ィレクトリ)で簡単なRev\SpecialChar TeX
15312  4文書を \SpecialChar LaTeX
15313 でコンパイルできるかどうか確認してください。この後、\SpecialChar LyX
15314 を環境構成すると、クラスファイルを検出し、Rev\SpecialChar TeX
15315 4テキストクラスが使用
15316 できるようになるはずです。
15317 \end_layout
15318
15319 \begin_layout Standard
15320 使い始めるには、
15321 \family typewriter
15322 tex2lyx
15323 \family default
15324 を使ってRev\SpecialChar TeX
15325  4文書を読み込むか、またはひな型ディレクトリにある
15326 \family sans
15327 Revtex
15328 \begin_inset space ~
15329 \end_inset
15330
15331 4
15332 \family default
15333 のひな型を使うのが、おそらく一番簡単な方法でしょう。
15334 \end_layout
15335
15336 \begin_layout Subsection
15337 プリアンブルに関すること
15338 \end_layout
15339
15340 \begin_layout Standard
15341
15342 \family typewriter
15343
15344 \backslash
15345 documentclass
15346 \family default
15347 に与える「preprint」や「aps」のような非必須引数は、他のクラス同様、
15348 \family sans
15349 文書\SpecialChar menuseparator
15350 設定\SpecialChar menuseparator
15351 文書クラス
15352 \family default
15353
15354 \family sans
15355 クラスオプション
15356 \family default
15357 フィールドに入れます。Rev\SpecialChar TeX
15358 では、少なくとも一つの非必須引数が必要なことに注意してください。
15359 \end_layout
15360
15361 \begin_layout Standard
15362
15363 \family typewriter
15364
15365 \backslash
15366 draft
15367 \family default
15368 など他のプリアンブルは、他のクラス同様、
15369 \family sans
15370 文書\SpecialChar menuseparator
15371 設定\SpecialChar menuseparator
15372 \SpecialChar LaTeX
15373 プリアンブル
15374 \family default
15375 に入れてください。
15376 \end_layout
15377
15378 \begin_layout Subsection
15379 レイアウト
15380 \end_layout
15381
15382 \begin_layout Standard
15383 レイアウトは、基本的にRev\SpecialChar TeX
15384 4.0のコマンドに対応しています。たとえば、Emailレイアウトは、
15385 \family typewriter
15386
15387 \backslash
15388 email{}
15389 \family default
15390 に対応しています。(少なくともRev\SpecialChar TeX
15391  4.0 Beta現在では)
15392 \family sans
15393 住所
15394 \family default
15395
15396 \family sans
15397 所属
15398 \family default
15399 はまったく同じものなので、両方を使う必要はありません
15400 \begin_inset Foot
15401 status collapsed
15402
15403 \begin_layout Plain Layout
15404 ついでながら、
15405 \family typewriter
15406 tex2lyx
15407 \family default
15408 は両方とも対応しているので、
15409 \family typewriter
15410
15411 \backslash
15412 address
15413 \family default
15414
15415 \family typewriter
15416
15417 \backslash
15418 affiliation
15419 \family default
15420 のどちらも翻訳することができます。
15421 \end_layout
15422
15423 \end_inset
15424
15425
15426 \end_layout
15427
15428 \begin_layout Subsection
15429 重要な注意
15430 \end_layout
15431
15432 \begin_layout Standard
15433 Rev\SpecialChar TeX
15434  4には、バグを引き起こしがちなために、気をつけなくてはならない特殊な面がいくつかあるため、\SpecialChar LyX
15435 ではさらに気をつけなくてはなりません。
15436 \end_layout
15437
15438 \begin_layout Standard
15439 Rev\SpecialChar TeX
15440 では、
15441 \family typewriter
15442
15443 \backslash
15444 thanks
15445 \family default
15446 コマンドは、
15447 \family typewriter
15448
15449 \backslash
15450 author
15451 \family default
15452 コマンドの
15453 \emph on
15454 外側
15455 \emph default
15456 に来なくてはなりません。\SpecialChar LyX
15457 では、独立した
15458 \family sans
15459 感謝
15460 \family default
15461 レイアウトがこの働きをします。直接
15462 \family sans
15463 、著者
15464 \family default
15465 レイアウトに脚注を付けてしまうと、おかしなことが起こる可能性があります。詳細については、Rev\SpecialChar TeX
15466  4の取扱説明書をご覧ください。
15467 \end_layout
15468
15469 \begin_layout Standard
15470 また、
15471 \family sans
15472 著者電子メール
15473 \family default
15474
15475 \family sans
15476 著者URL・感謝(thanks)
15477 \family default
15478 レイアウトは、
15479 \family sans
15480 著者
15481 \family default
15482 レイアウトと
15483 \family sans
15484 住所(
15485 \family default
15486 または同等の
15487 \family sans
15488 所属
15489 \family default
15490 )レイアウトの間に置かなければなりません。
15491 \family sans
15492 感謝(thanks)
15493 \family default
15494
15495 \family sans
15496 住所
15497 \family default
15498 の後に置いてしまうと、\SpecialChar LaTeX
15499 はコンパイルに失敗します。
15500 \end_layout
15501
15502 \begin_layout Subsection
15503 問題点
15504 \end_layout
15505
15506 \begin_layout Standard
15507 このレイアウトの主な問題点は、電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません。例
15508 えば、節レイアウトも非必須引数を使用することができません)。これは、たとえばページヘッダにヘッダ用タイトルを設定したい場合などには、ファイルを\SpecialChar LaTeX
15509 ファイルに変換した
15510 後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません)、テキストエディタを使って\SpecialChar LaTeX
15511 ファイルを編集し、非必須引数を書き加えなくてはならないということで
15512 す。これらのレイアウトがないと、
15513 \family typewriter
15514
15515 \backslash
15516 altaffiliation
15517 \family default
15518 (またそれと同等な
15519 \family typewriter
15520
15521 \backslash
15522 altaddress
15523 \family default
15524 )は使えませんので、対応するレイアウトは存在せず、手動で書き加える必要があります
15525 \begin_inset Foot
15526 status collapsed
15527
15528 \begin_layout Plain Layout
15529
15530 \emph on
15531 JMarcからの註:
15532 \emph default
15533  実は、\SpecialChar LyX
15534  1.3.0 では非必須引数を一部サポートしているのですが、このレイアウトは、まだこの機能を使うようにはアップデートされていないのです。
15535 \end_layout
15536
15537 \end_inset
15538
15539
15540 \end_layout
15541
15542 \begin_layout Section
15543 Springer学術誌(
15544 \family sans
15545 svjour)
15546 \end_layout
15547
15548 \begin_layout Standard
15549
15550 \noun on
15551 Martin Vermeer
15552 \noun default
15553
15554 \end_layout
15555
15556 \begin_layout Subsection
15557 説明
15558 \end_layout
15559
15560 \begin_layout Standard
15561 これは、Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです。
15562 \begin_inset Flex URL
15563 status collapsed
15564
15565 \begin_layout Plain Layout
15566
15567 http://www.springer.de/author/tex/help-journals.html
15568 \end_layout
15569
15570 \end_inset
15571
15572 に必要なクラスファイル(\SpecialChar LaTeX2e
15573 用になりました)とそれに対応する学術誌の一覧があります。このレイアウトはモジュール式になっています。つまり、全ジャーナル共通部分は
15574 \family typewriter
15575 svjour.inc
15576 \family default
15577 に実装されており、各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15578 \family typewriter
15579 svjog.layout
15580 \family default
15581 など)から取り込むことができます。
15582 \end_layout
15583
15584 \begin_layout Standard
15585 このことは、上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには、
15586 \family typewriter
15587 svjog.layout
15588 \family default
15589 に書かれている指示に従って、自作の
15590 \family typewriter
15591 sv
15592 \family default
15593 <学術誌名>
15594 \family typewriter
15595 .layout
15596 \family default
15597 を書くだけで良いことを意味します。
15598 \end_layout
15599
15600 \begin_layout Standard
15601 このレイアウトは、Journal of Geodesyに対してのみ、充分な試験が為されています。
15602 \family typewriter
15603 svjour
15604 \family default
15605
15606 \family typewriter
15607 svjog
15608 \family default
15609 は、標準\SpecialChar LyX
15610 頒布版に収録済みです。関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し、\SpecialChar LaTeX
15611 を再設定した後(teTeXの場合は、必
15612 要に応じてroot権限で
15613 \family typewriter
15614 texhash
15615 \family default
15616 を実行します)、\SpecialChar LyX
15617 を環境構成すれば、動作するはずです。
15618 \end_layout
15619
15620 \begin_layout Subsection
15621 新スタイル
15622 \end_layout
15623
15624 \begin_layout Standard
15625 多くの定理環境 — 
15626 \family sans
15627 主張
15628 \family default
15629
15630 \family sans
15631 推論
15632 \family default
15633 ・\SpecialChar ldots
15634
15635 \family sans
15636 定理
15637 \family default
15638
15639 \end_layout
15640
15641 \begin_layout Standard
15642
15643 \family sans
15644 ヘッドノート
15645 \family default
15646
15647 \family sans
15648 献呈
15649 \family default
15650
15651 \family sans
15652 サブタイトル・ヘッダ用\SpecialChar LaTeX
15653 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15654 ement)
15655 \family default
15656 。詳しくは Springerのクラスファイルの説明書を読んでください。
15657 \end_layout
15658
15659 \begin_layout Subsection
15660 サポートしているジャーナル
15661 \end_layout
15662
15663 \begin_layout Itemize
15664
15665 \emph on
15666 Journal of Geodesy
15667 \emph default
15668
15669 \family typewriter
15670 svjog.layout
15671 \family default
15672  — Martin Vermeer
15673 \end_layout
15674
15675 \begin_layout Itemize
15676
15677 \emph on
15678 Probability Theory and Related Fields
15679 \emph default
15680
15681 \family typewriter
15682 svprobth.layout
15683 \family default
15684  — Jean-Marc Lasgouttes
15685 \end_layout
15686
15687 \begin_layout Standard
15688 あなた自身のレイアウトファイルをつくってください。難しくはありません。
15689 \end_layout
15690
15691 \begin_layout Subsection
15692 Credits
15693 \end_layout
15694
15695 \begin_layout Standard
15696 これらのファイルは、以前の 
15697 \family typewriter
15698 ejour2.layout
15699 \family default
15700 をもとにしています。
15701 \family typewriter
15702 ejour2.layout
15703 \family default
15704 は Springerの\SpecialChar LaTeX
15705  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです。これらのファイルはすでにありません。Jean-Marc
15706  Lasgouttesのおかげで \SpecialChar LyX
15707 のレイアウトファイルのメカニズムをよりよく理解することができました。
15708 \end_layout
15709
15710 \begin_layout Subsection
15711 バグ
15712 \end_layout
15713
15714 \begin_layout Standard
15715 多分あります。以前の 
15716 \family typewriter
15717 ejour2
15718 \family default
15719 よりは少なくなっているとは思いますが。
15720 \end_layout
15721
15722 \begin_layout Standard
15723 制限事項:定理環境の環境の番号は表示されません。#が表示されるだけです。
15724 \end_layout
15725
15726 \begin_layout Section
15727 Slides (別名
15728 \noun on
15729 Sli\SpecialChar TeX
15730
15731 \noun default
15732 )
15733 \begin_inset Foot
15734 status collapsed
15735
15736 \begin_layout Plain Layout
15737 (訳註)この節の内容は、全般的に古くなっています。
15738 \end_layout
15739
15740 \end_inset
15741
15742
15743 \begin_inset CommandInset label
15744 LatexCommand label
15745 name "sec:slitex"
15746
15747 \end_inset
15748
15749
15750 \end_layout
15751
15752 \begin_layout Standard
15753
15754 \noun on
15755 John Weiss
15756 \noun default
15757
15758 \end_layout
15759
15760 \begin_layout Subsection
15761 はじめに
15762 \end_layout
15763
15764 \begin_layout Standard
15765 本節では、オーバーへッドプロジェクタ用のスライドをつくるのに、\SpecialChar LyX
15766 をどのように使えばよいかを説明します。これを行う文書クラスには、既定のslideクラスと
15767 \family sans
15768 Foil\SpecialChar TeX
15769
15770 \family default
15771 スライドクラスの2つがあります。本節は前者について説明を行います。
15772 \end_layout
15773
15774 \begin_layout Standard
15775 誤解のないように、正しく明確に、もう一度言っておきます。
15776 \end_layout
15777
15778 \begin_layout Standard
15779 \begin_inset VSpace bigskip
15780 \end_inset
15781
15782
15783 \end_layout
15784
15785 \begin_layout Standard
15786 \align center
15787
15788 \size large
15789 本節は文書クラス
15790 \begin_inset Quotes eld
15791 \end_inset
15792
15793
15794 \family sans
15795 transparencies (slides)
15796 \family default
15797
15798 \begin_inset Quotes erd
15799 \end_inset
15800
15801
15802 \emph on
15803 のみ
15804 \emph default
15805 を説明しています。
15806 \end_layout
15807
15808 \begin_layout Standard
15809 \begin_inset VSpace bigskip
15810 \end_inset
15811
15812
15813 \end_layout
15814
15815 \begin_layout Standard
15816
15817 \family sans
15818 「slides (Foil\SpecialChar TeX
15819 )
15820 \family default
15821 」の説明をお探しならば、第
15822 \begin_inset CommandInset ref
15823 LatexCommand ref
15824 reference "sec:foiltex"
15825
15826 \end_inset
15827
15828 節をご覧ください。
15829 \family sans
15830 foils
15831 \family default
15832 クラス「
15833 \family sans
15834 slides (Foil\SpecialChar TeX
15835 )
15836 \family default
15837 」は、実際、本節で説明している既定
15838 \family sans
15839 slides
15840 \family default
15841 クラスよりも良いようです
15842 \begin_inset Foot
15843 status collapsed
15844
15845 \begin_layout Plain Layout
15846 \SpecialChar ldots
15847
15848 \family sans
15849 Foil\SpecialChar TeX
15850
15851 \family default
15852 の支持者からは聞いています。けれども私は使ったことがないので、本当かどうか確かめようがありません。
15853 \end_layout
15854
15855 \end_inset
15856
15857
15858 \end_layout
15859
15860 \begin_layout Standard
15861 このクラスは、旧SLI\SpecialChar TeX
15862 パッケージを\SpecialChar LaTeX2e
15863 用に改良したものです。\SpecialChar LaTeX2e
15864 頒布版すべてが、このクラス(以下では単に「
15865 \family sans
15866 slides
15867 \family default
15868 」と述べることにします)を含んでいるので、あなたもお持ちのはずです。前述の
15869 \family sans
15870 foils
15871 \family default
15872 のように、同じくオーバーへッドプロジェクタ用のスライドを生成しながら、このクラスよりも良い仕事をするクラスもあります。しかしながら、オーバーレイを生成するなど、
15873 他のクラスにはできないが
15874 \family sans
15875 slides
15876 \family default
15877 ならばできることもあります。詳しくは以下をお読みください。
15878 \end_layout
15879
15880 \begin_layout Subsection
15881 使い始めるには
15882 \begin_inset CommandInset label
15883 LatexCommand label
15884 name "sec:slidesetup"
15885
15886 \end_inset
15887
15888
15889 \end_layout
15890
15891 \begin_layout Standard
15892 当然ながら、この文書クラスを使用するには、
15893 \family sans
15894 文書\SpecialChar menuseparator
15895 設定
15896 \family default
15897 ダイアログのクラスリストから「
15898 \family sans
15899 transparencies (slides)
15900 \family default
15901 」を選択しなくてはなりません。このクラスについて、以下のように、特に知っておいた方が良いことがいくつかあります。
15902 \end_layout
15903
15904 \begin_layout Itemize
15905
15906 \family sans
15907 用紙方向
15908 \family default
15909
15910 \family sans
15911 二段組文書
15912 \family default
15913 の各オプションは、あえて変更する必要はありません。これらのオプションは、
15914 \family sans
15915 slides
15916 \family default
15917 クラスではサポートされていないので、効果がありません。
15918 \end_layout
15919
15920 \begin_layout Itemize
15921
15922 \family sans
15923 ヘディング様式
15924 \family default
15925 オプションは、このクラスでは少し異なった振る舞いをします。各選択肢とその機能は、以下の通りです。
15926 \begin_inset Separator parbreak
15927 \end_inset
15928
15929
15930 \end_layout
15931
15932 \begin_deeper
15933 \begin_layout Description
15934 プレーン(plain) 最終出力の右下隅にページ番号が付きます。
15935 \end_layout
15936
15937 \begin_layout Description
15938 設定(headings)
15939 \family sans
15940  プレーン(plain)
15941 \family default
15942 と同様ですが、それ以外にあなたが指定したタイムマーカーをすべて出力します。これが既定値です。
15943 \end_layout
15944
15945 \begin_layout Description
15946 空 最終出力には、ページ番号もタイムマーカーも位置揃えマーカーも出力されません。
15947 \end_layout
15948
15949 \end_deeper
15950 \begin_layout Itemize
15951
15952 \family sans
15953 slides
15954 \family default
15955 クラスには、もう一つ
15956 \family typewriter
15957 clock
15958 \family default
15959 というオプションがあります。これを使用するには、
15960 \family sans
15961 クラスオプション
15962 \family default
15963 に「
15964 \family typewriter
15965 clock
15966 \family default
15967 」と入力してください。
15968 \begin_inset Separator parbreak
15969 \end_inset
15970
15971
15972 \end_layout
15973
15974 \begin_deeper
15975 \begin_layout Standard
15976 このオプションを使うと、
15977 \family sans
15978 注釈
15979 \family default
15980 にタイムマーカーを加えることができます。詳細は、第
15981 \begin_inset CommandInset ref
15982 LatexCommand ref
15983 reference "sec:スライド注釈"
15984
15985 \end_inset
15986
15987 節をご覧ください。
15988 \end_layout
15989
15990 \end_deeper
15991 \begin_layout Standard
15992
15993 \family sans
15994 slides
15995 \family default
15996 クラスを用いた文書を自動的にセットアップするには、ひな型ファイル「
15997 \family typewriter
15998 slides.lyx
15999 \family default
16000 」を使用することもできます(新規ファイルを開く際に
16001 \family sans
16002 ファイル\SpecialChar menuseparator
16003 新規(ひな型使用)
16004 \family default
16005 を使用してください)。ひな型ファイルには、このクラスが使用する特別な段落環境の用例も含まれています。これらについては、以下で説明します。
16006 \end_layout
16007
16008 \begin_layout Subsection
16009 段落環境
16010 \end_layout
16011
16012 \begin_layout Subsubsection
16013
16014 \family sans
16015 サポートされている環境
16016 \end_layout
16017
16018 \begin_layout Standard
16019 新しく
16020 \family sans
16021 slides
16022 \family default
16023 文書を開いたときにまず気付くのは、フォント寸法とフォント族の違いでしょう。ここでは、
16024 \family sans
16025 サンセリフ体
16026 \family default
16027 フォントの
16028 \family sans
16029 極大
16030 \family default
16031 寸法が用いられており、出力でもこのフォントが使用されます。これは、現在スライドを作成中であることの「目印」だと考えてください。出力スライドは大きなフォントを使用
16032 するため、書ける場所は少なくなります。もちろん、既定の大きな画面フォントはWYSIWYGではなく、スライドであることの目印に過ぎません。
16033 \end_layout
16034
16035 \begin_layout Standard
16036 次に気付くのは、(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう。通常見かける環境の多くがなくなって、代わりに5つの新しい環境が入ってい
16037 ます。これは、
16038 \family sans
16039 slides
16040 \family default
16041 クラスが、標準段落環境のうち以下のものしかサポートしていないためです。
16042 \end_layout
16043
16044 \begin_layout Itemize
16045
16046 \family sans
16047 標準
16048 \end_layout
16049
16050 \begin_layout Itemize
16051
16052 \family sans
16053 箇条書き(記号)
16054 \end_layout
16055
16056 \begin_layout Itemize
16057
16058 \family sans
16059 箇条書き(連番)
16060 \end_layout
16061
16062 \begin_layout Itemize
16063
16064 \family sans
16065 箇条書き(記述)
16066 \end_layout
16067
16068 \begin_layout Itemize
16069
16070 \family sans
16071 箇条書き(一覧)
16072 \end_layout
16073
16074 \begin_layout Itemize
16075
16076 \family sans
16077 引用(字下げあり)
16078 \end_layout
16079
16080 \begin_layout Itemize
16081
16082 \family sans
16083 引用(字下げなし)
16084 \end_layout
16085
16086 \begin_layout Itemize
16087
16088 \family sans
16089 詩句
16090 \end_layout
16091
16092 \begin_layout Itemize
16093
16094 \family sans
16095 キャプション
16096 \end_layout
16097
16098 \begin_layout Itemize
16099
16100 \family sans
16101 \SpecialChar LyX
16102 コード
16103 \end_layout
16104
16105 \begin_layout Itemize
16106
16107 \family sans
16108 コメント
16109 \end_layout
16110
16111 \begin_layout Standard
16112 これ以外の標準的な環境、例えば節見出し用の環境などは
16113 \family sans
16114 slides
16115 \family default
16116 クラスでは使えません。
16117 \end_layout
16118
16119 \begin_layout Standard
16120 一方、以下の新しい環境があります。
16121 \end_layout
16122
16123 \begin_layout Itemize
16124
16125 \family sans
16126 スライド
16127 \end_layout
16128
16129 \begin_layout Itemize
16130
16131 \family sans
16132 オーバーレイ
16133 \end_layout
16134
16135 \begin_layout Itemize
16136
16137 \family sans
16138 注釈
16139 \end_layout
16140
16141 \begin_layout Itemize
16142
16143 \family sans
16144 不可視文
16145 \end_layout
16146
16147 \begin_layout Itemize
16148
16149 \family sans
16150 可視文
16151 \end_layout
16152
16153 \begin_layout Standard
16154 これら5つの環境は、\SpecialChar LyX
16155 の「機能」のために使い方に癖があります。ご存じのように、\SpecialChar LyX
16156 では、空の段落環境に他の環境を入れることができません。それ自体は素晴らしいデザインな
16157 のですが、これは、スライドを平文以外では書き始めることができないことを意味します。これを取り扱うためには、ちょっとした「\SpecialChar LaTeX
16158 マジック」が必要になります。
16159 \end_layout
16160
16161 \begin_layout Subsubsection
16162 新環境の癖
16163 \begin_inset CommandInset label
16164 LatexCommand label
16165 name "sec:スライドの癖"
16166
16167 \end_inset
16168
16169
16170 \end_layout
16171
16172 \begin_layout Standard
16173 5つの新しい環境にはすべて、\SpecialChar LyX
16174 現行版の制約に由来する癖があります。いま述べたように、\SpecialChar LyX
16175 では、環境を別の環境で開始することが禁止されています。これを回避するために、
16176 \family sans
16177 スライド
16178 \family default
16179 環境は『
16180 \emph on
16181 ユーザーの手引き
16182 \emph default
16183 』で述べられているような段落環境ではなくなっています。
16184 \end_layout
16185
16186 \begin_layout Standard
16187
16188 \family sans
16189 スライド
16190 \family default
16191
16192 \family sans
16193 オーバーレイ
16194 \family default
16195
16196 \family sans
16197 注釈
16198 \family default
16199 は「疑似環境」だとお考えください。これらは節見出しや「
16200 \family sans
16201 キャプション
16202 \family default
16203 」のように見えますが、実際には(必要なら前段落を終了して)新しい段落環境を開始します。同様に、
16204 \family sans
16205 不可視文
16206 \family default
16207
16208 \family sans
16209 可視文
16210 \family default
16211 も「疑似コマンド」とお考えください。この2つは特定のアクションを行います。
16212 \end_layout
16213
16214 \begin_layout Standard
16215
16216 \family sans
16217 スライド
16218 \family default
16219
16220 \family sans
16221 オーバーレイ
16222 \family default
16223
16224 \family sans
16225 注釈
16226 \family default
16227
16228 \family sans
16229 不可視文
16230 \family default
16231
16232 \family sans
16233 可視文
16234 \family default
16235 の5環境に共通しているのは、長めのラベルを持つことです。このラベルに続く文章—通常は段落環境の内容になるはずですが—は、
16236 \family sans
16237 スライド
16238 \family default
16239
16240 \family sans
16241 オーバーレイ
16242 \family default
16243
16244 \family sans
16245 注釈
16246 \family default
16247
16248 \family sans
16249 不可視文
16250 \family default
16251
16252 \family sans
16253 可視文
16254 \family default
16255 では、まったく意味がなく、\SpecialChar LyX
16256 はこの部分を完全に無視します。これらの5つの環境の内容は、完全に空のままにしておいて構いません。
16257 \end_layout
16258
16259 \begin_layout Standard
16260 長めのラベルの後に文章を入れる
16261 \emph on
16262 必要は
16263 \emph default
16264 まったく
16265 \emph on
16266 ない
16267 \emph default
16268 とはいえ、何か書いておきたいこともあるかもしれません。たとえば、スライドの内容に関する短い説明などがそうでしょう。この場合、いつもどおり説明用のコメントを入力し
16269
16270 \family sans
16271 Return
16272 \family default
16273 を押してください。
16274 \end_layout
16275
16276 \begin_layout Standard
16277 一方、説明文を入れたくない場合には、\SpecialChar LyX
16278 の制約に直面します。自然が真空を憎むように、\SpecialChar LyX
16279 では、古い環境に何かを置くまでは、その中に新しい環境を入れることができません。そ
16280 こで以下のようにしてください。
16281 \end_layout
16282
16283 \begin_layout Itemize
16284 新しい
16285 \family sans
16286 スライド
16287 \family default
16288
16289 \family sans
16290 オーバーレイ
16291 \family default
16292
16293 \family sans
16294 注釈
16295 \family default
16296
16297 \family sans
16298 不可視文
16299 \family default
16300
16301 \family sans
16302 可視文
16303 \family default
16304
16305 \emph on
16306 中に入れる
16307 \emph default
16308 文章を入力してください。
16309 \end_layout
16310
16311 \begin_layout Itemize
16312 段落の先頭に移動します。
16313 \end_layout
16314
16315 \begin_layout Itemize
16316 次に
16317 \family sans
16318 Return
16319 \family default
16320 を押します。
16321 \end_layout
16322
16323 \begin_layout Itemize
16324 最後に、この新しい空の段落を
16325 \family sans
16326 スライド
16327 \family default
16328
16329 \family sans
16330 オーバーレイ
16331 \family default
16332
16333 \family sans
16334 注釈
16335 \family default
16336
16337 \family sans
16338 不可視文
16339 \family default
16340
16341 \family sans
16342 可視文
16343 \family default
16344 に変更します。
16345 \end_layout
16346
16347 \begin_layout Standard
16348 将来の\SpecialChar LyX
16349 では、このような癖が解決されることを祈っています\SpecialChar ldots
16350
16351 \begin_inset Foot
16352 status collapsed
16353
16354 \begin_layout Plain Layout
16355 (訳註)ここの記述は古くなっています。
16356 \end_layout
16357
16358 \end_inset
16359
16360
16361 \end_layout
16362
16363 \begin_layout Subsection
16364
16365 \family sans
16366 スライド
16367 \family default
16368
16369 \family sans
16370 オーバーレイ
16371 \family default
16372
16373 \family sans
16374 注釈で発表用のスライドを作る
16375 \end_layout
16376
16377 \begin_layout Subsubsection
16378
16379 \family sans
16380 スライド
16381 \family default
16382 環境を使う
16383 \end_layout
16384
16385 \begin_layout Standard
16386 もし本節が、実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば、大いにがっかりされるかもしれません。当然ながら、プレゼンテーション用の資
16387 料を準備するうえで
16388 \family sans
16389 slides
16390 \family default
16391 クラスを役立てる方法を詳しく説明はしますが、内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16392 の哲学です)。
16393 \end_layout
16394
16395 \begin_layout Standard
16396
16397 \family sans
16398 スライド
16399 \family default
16400 環境を選択すれば(方法は第
16401 \begin_inset CommandInset ref
16402 LatexCommand ref
16403 reference "sec:スライドの癖"
16404
16405 \end_inset
16406
16407 節参照のこと)、\SpecialChar LyX
16408 は新規スライドを開始します。この環境ないし「疑似環境」のラベルは、鮮やかな青で「新規スライド:」と表示されます。この環境の後のテキスト環境や段落
16409 環境は、すべて新規スライドに入ります。簡単ですよね。
16410 \end_layout
16411
16412 \begin_layout Standard
16413 Slidesは、おそらく\SpecialChar LyX
16414 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16415 \family sans
16416 段落レイアウト
16417 \family default
16418 ダイアログで指定できます)。実際、一つのスライドの内容を入力し終わったら、改頁したくなるはずです。仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16419 、入りきらない部分は、次の新規スライドにまわされます。しかしながら、入りきらない部分のスライドにはページ番号が付きませんので、こうするのはお勧めしません。その上
16420 、一枚に収まらないスライドでは、
16421 \family sans
16422 オーバーレイ
16423 \family default
16424 を使用すると干渉する恐れがあります。
16425 \end_layout
16426
16427 \begin_layout Standard
16428
16429 \family sans
16430 オーバーレイ
16431 \family default
16432 環境と
16433 \family sans
16434 注釈
16435 \family default
16436 環境も、
16437 \family sans
16438 スライド
16439 \family default
16440 環境と同様の動作を示します。これらは、青の代わりに鮮やかなマゼンタで、それぞれ「
16441 \noun on
16442 新規オーバーレイ
16443 \noun default
16444 :」ないし「
16445 \noun on
16446 新規注釈:
16447 \noun default
16448 」というラベルを表示します。ラベルのフォントも、3つの環境でそれぞれ異なるものが使用されます。
16449 \end_layout
16450
16451 \begin_layout Standard
16452
16453 \family sans
16454 スライド
16455 \family default
16456 と同様に、
16457 \family sans
16458 オーバーレイ
16459 \family default
16460
16461 \family sans
16462 注釈
16463 \family default
16464 の内容が、一つのスライドないしページに物理的に収まりきらない場合には、余分は新規スライドに回されます。この場合には、
16465 \family sans
16466 注釈
16467 \family default
16468
16469 \family sans
16470 オーバーレイ
16471 \family default
16472 の本来の目的が達せられなくなりますので、ここでもこのような状態は避けるべきでしょう。
16473 \end_layout
16474
16475 \begin_layout Subsubsection
16476
16477 \family sans
16478 スライドでオーバーレイを使用する
16479 \end_layout
16480
16481 \begin_layout Standard
16482
16483 \family sans
16484 オーバーレイ
16485 \family default
16486 の背後にある考え方は、別のスライドの上にスライドを載せようとするものです。メインの
16487 \family sans
16488 スライド
16489 \family default
16490 に図があるとき、関連した文章を表示する前に、図について議論を進めたいと思うことがあるかもしれません。これを行うひとつの方法は、
16491 \family sans
16492 スライド
16493 \family default
16494 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが、この方法は、たとえばグラフを他のグラフに重ねたい場合などには、うまく行きません。この場合には、二つ
16495 のグラフを揃えるために、重ねる二つのスライドを、喋りながら手探りで揃えなくてはなりません。これらのような場合には、
16496 \family sans
16497 オーバーレイ
16498 \family default
16499 環境を使えば、もっと楽になります。
16500 \end_layout
16501
16502 \begin_layout Standard
16503
16504 \family sans
16505 オーバーレイ
16506 \family default
16507 は、「親」
16508 \family sans
16509 スライド
16510 \family default
16511 のページ番号を引継ぎ、その後に「
16512 \family typewriter
16513 -a
16514 \family default
16515 」を付け加えます
16516 \begin_inset Foot
16517 status collapsed
16518
16519 \begin_layout Plain Layout
16520 想像できるように、複数のオーバーレイがあれば、「
16521 \family typewriter
16522 -a
16523 \family default
16524 」「
16525 \family typewriter
16526 -b
16527 \family default
16528 」「
16529 \family typewriter
16530 -c
16531 \family default
16532 」などが親スライドのページ番号に付け加えられます。
16533 \end_layout
16534
16535 \end_inset
16536
16537 。当然のことながら、
16538 \family sans
16539 スライド
16540 \family default
16541
16542 \family sans
16543 オーバーレイ
16544 \family default
16545 の内容は両方とも、1枚のスライドに物理的に収まるようになっていなければなりません。
16546 \family sans
16547 オーバーレイ
16548 \family default
16549
16550 \family sans
16551 スライド
16552 \family default
16553 の「一部」であると考えるのがよいでしょう。\SpecialChar LyX
16554 では、
16555 \family sans
16556 オーバーレイ
16557 \family default
16558 のラベルを
16559 \family sans
16560 スライド
16561 \family default
16562 のラベルよりも下げることで、このことを視覚的に表しています。また、印刷可能な出力を生成すると、
16563 \family sans
16564 オーバーレイ
16565 \family default
16566 と親
16567 \family sans
16568 スライド
16569 \family default
16570 両方の四隅に、揃えマーカーがあることに気づかれるはずです。これは、2枚のスライドを物理的に重ね合わせるための補助となるものです。
16571 \end_layout
16572
16573 \begin_layout Standard
16574 2つのスライドをオーバーレイさせる際の大きな問題は、2枚のスライドの内容を揃えることです。2枚目のスライドのグラフには、どれだけの余白を残しておくべきなのでしょ
16575 うか?さらにややこしく、2枚目のスライドにグラフと文章を入れたいときに、その間に割り込んでしまうような文章がメインスライドにある場合には、どうでしょうか?正しい
16576 寸法の垂直スペースを挿入してみることもできるでしょう。しかし、もっと良い方法として、
16577 \family sans
16578 不可視文
16579 \family default
16580
16581 \family sans
16582 可視文
16583 \family default
16584 を使用する方法があります。
16585 \end_layout
16586
16587 \begin_layout Standard
16588 これらの名前が意味するとおり、
16589 \family sans
16590 不可視文
16591 \family default
16592
16593 \family sans
16594 可視文
16595 \family default
16596 は、それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です。しかしながら、第
16597 \begin_inset CommandInset ref
16598 LatexCommand ref
16599 reference "sec:スライドの癖"
16600
16601 \end_inset
16602
16603 節で述べたように、この2つの環境の
16604 \emph on
16605
16606 \emph default
16607 には何も置くことができません。
16608 \family sans
16609 不可視文
16610 \family default
16611 を作成すると、「<以下不可視文>」と書かれた水色のラベルが、ページに中央揃えで表示されます。このラベルに続く段落は、それが置かれるべき
16612 \family sans
16613 スライド
16614 \family default
16615 (あるいは
16616 \family sans
16617 オーバーレイ
16618 \family default
16619 ;どちらでも同じことです)部分に、代わりに空白の部分が置かれます。
16620 \end_layout
16621
16622 \begin_layout Standard
16623
16624 \family sans
16625 可視文
16626 \family default
16627 の場合には、中央揃えのラベルは、鮮やかな緑の「<以下可視文>」となります。このラベル以降の段落は、通常通りの挙動を示します。新規の
16628 \family sans
16629 スライド
16630 \family default
16631
16632 \family sans
16633 オーバーレイ
16634 \family default
16635
16636 \family sans
16637 注釈
16638 \family default
16639 を開始すると、
16640 \family sans
16641 不可視文
16642 \family default
16643 は自動的に終了されることに注意してください。したがって、
16644 \family sans
16645 スライド
16646 \family default
16647 の終わりでは、
16648 \family sans
16649 可視文
16650 \family default
16651 を使用する必要はありません。
16652 \end_layout
16653
16654 \begin_layout Standard
16655 ここまでで、
16656 \family sans
16657 スライド
16658 \family default
16659
16660 \family sans
16661 オーバーレイ
16662 \family default
16663 上で
16664 \family sans
16665 不可視文
16666 \family default
16667
16668 \family sans
16669 可視文
16670 \family default
16671 を適切に使用して、スライドをオーバーレイさせる方法が明らかになったことと思います。
16672 \end_layout
16673
16674 \begin_layout Enumerate
16675 メインのスライドか
16676 \family sans
16677 オーバーレイ
16678 \family default
16679 かに関わらず、スライド上に現れるすべてを含んだ
16680 \family sans
16681 スライド
16682 \family default
16683 を作成します。
16684 \end_layout
16685
16686 \begin_layout Enumerate
16687
16688 \family sans
16689 オーバーレイ
16690 \family default
16691 のみに表示するすべての図や段落の前に、
16692 \family sans
16693 不可視文
16694 \family default
16695 環境を挿入し、必要ならば、
16696 \family sans
16697 オーバーレイ
16698 \family default
16699 のみの文章の後に
16700 \family sans
16701 可視文
16702 \family default
16703 環境を挿入します。
16704 \end_layout
16705
16706 \begin_layout Enumerate
16707
16708 \family sans
16709 スライド
16710 \family default
16711 の直後から、
16712 \family sans
16713 オーバーレイ
16714 \family default
16715 を開始します。
16716 \end_layout
16717
16718 \begin_layout Enumerate
16719 この
16720 \family sans
16721 スライド
16722 \family default
16723 の内容を
16724 \family sans
16725 オーバーレイ
16726 \family default
16727 にコピーします。
16728 \end_layout
16729
16730 \begin_layout Enumerate
16731
16732 \family sans
16733 オーバーレイ
16734 \family default
16735 内部の
16736 \family sans
16737 不可視文
16738 \family default
16739 行をすべて
16740 \family sans
16741 不可視文
16742 \family default
16743 に変更し、
16744 \family sans
16745 可視文
16746 \family default
16747
16748 \family sans
16749 不可視文
16750 \family default
16751 に変更します。
16752 \end_layout
16753
16754 \begin_layout Standard
16755 これだけです。これで
16756 \family sans
16757 オーバーレイ
16758 \family default
16759 ができあがりました。
16760 \end_layout
16761
16762 \begin_layout Standard
16763 \SpecialChar LyX
16764  
16765 \family sans
16766 slides
16767 \family default
16768 クラスをデザインする上で、ひとつ残された問題があります。段落途中の文章を不可視にしたり、不可視段落の途中の文章を再度可視にしたりすることはできないのです。これを
16769 実現するためには、\SpecialChar LaTeX
16770 コードを埋め込む必要があります
16771 \begin_inset Foot
16772 status collapsed
16773
16774 \begin_layout Plain Layout
16775 このコマンドは、
16776 \end_layout
16777
16778 \begin_layout Itemize
16779
16780 \family typewriter
16781 {
16782 \backslash
16783 invisible \SpecialChar ldots
16784  }
16785 \end_layout
16786
16787 \begin_layout Itemize
16788
16789 \family typewriter
16790 {
16791 \backslash
16792 visible \SpecialChar ldots
16793  }
16794 \end_layout
16795
16796 \begin_layout Plain Layout
16797 \SpecialChar ldots
16798 のような形となり、\SpecialChar TeX
16799 としてマークする必要があります。「可視性」を変更したい文章は、波括弧のあいだ(そして
16800 \family typewriter
16801
16802 \backslash
16803 invisible
16804 \family default
16805 ないし
16806 \family typewriter
16807
16808 \backslash
16809 visible
16810 \family default
16811 コマンドの後ろ)に入れます。\SpecialChar TeX
16812 としてマークする方法がわからない場合は、
16813 \emph on
16814 ユーザーの手引き
16815 \emph default
16816 をご参照ください。
16817 \end_layout
16818
16819 \end_inset
16820
16821
16822 \end_layout
16823
16824 \begin_layout Subsubsection
16825
16826 \family sans
16827 スライドで注釈を使う
16828 \family default
16829
16830 \begin_inset CommandInset label
16831 LatexCommand label
16832 name "sec:スライド注釈"
16833
16834 \end_inset
16835
16836
16837 \end_layout
16838
16839 \begin_layout Standard
16840
16841 \family sans
16842 オーバーレイ
16843 \family default
16844 と同様、
16845 \family sans
16846 注釈
16847 \family default
16848 も「親」
16849 \family sans
16850 スライド
16851 \family default
16852 に関連付けられています。ここでも\SpecialChar LyX
16853
16854 \family sans
16855 スライド
16856 \family default
16857 クラスは視覚的な効果を与えています。
16858 \family sans
16859 注釈
16860 \family default
16861 のラベルは
16862 \family sans
16863 スライド
16864 \family default
16865 よりも短く(オーバーレイのラベルよりも長いですが)、
16866 \family sans
16867 オーバーレイ
16868 \family default
16869 のラベルと同様、派手な赤紫色です。加えて、印刷した
16870 \family sans
16871 注釈
16872 \family default
16873 には、「親」スライドのページ番号に「
16874 \family typewriter
16875 -
16876 \family default
16877 1」「
16878 \family typewriter
16879 -
16880 \family default
16881 2」「
16882 \family typewriter
16883 -
16884 \family default
16885 3」等を付けたページ番号が付けられます。1つの
16886 \family sans
16887 スライド
16888 \family default
16889 には、複数の
16890 \family sans
16891 注釈
16892 \family default
16893 を関連付けることができるので、
16894 \family sans
16895 スライド
16896 \family default
16897
16898 \family sans
16899 オーバーレイ
16900 \family default
16901 と同じように、長い注釈は、1枚の紙に収まるように分割したいと思われるに違いありません。
16902 \end_layout
16903
16904 \begin_layout Standard
16905
16906 \family sans
16907 注釈
16908 \family default
16909 の目的は明らかです。
16910 \family sans
16911 スライド
16912 \family default
16913 に関して付け加えたいことを書き留めておくことです。特定の
16914 \family sans
16915 スライド
16916 \family default
16917 についての覚書として使うこともできます。後者の場合には、タイムマーカを利用したいこともあるかもしれません。現在のところ、\SpecialChar LyX
16918
16919 \family sans
16920 スライド
16921 \family default
16922 クラスは、
16923 \noun on
16924 Sli
16925 \noun default
16926 \SpecialChar TeX
16927 の機能であるタイムマーカを「ネイティブには」サポートしていません。したがって、\SpecialChar LaTeX
16928 コードを使用することに頼らなくてはなりません。
16929 \end_layout
16930
16931 \begin_layout Standard
16932 タイムマーカを使用するには、クラスオプション「
16933 \family typewriter
16934 clock
16935 \family default
16936 」を追加指定する必要があります(第
16937 \begin_inset CommandInset ref
16938 LatexCommand ref
16939 reference "sec:slidesetup"
16940
16941 \end_inset
16942
16943 節参照)。このオプションはタイムマーカ機能を有効にして、生成したすべての
16944 \family sans
16945 注釈
16946 \family default
16947 の左下にタイムマーカを表示します。タイムマーカに表示するものを設定するには、\SpecialChar LaTeX
16948 コマンド「
16949 \family typewriter
16950
16951 \backslash
16952 settime{}
16953 \family default
16954 」および「
16955 \family typewriter
16956
16957 \backslash
16958 addtime{}
16959 \family default
16960 」を使用します。両コマンドは、秒で測った時間を引数にとります。「
16961 \family typewriter
16962
16963 \backslash
16964 settime{}
16965 \family default
16966 」は、タイムマーカを特定の時間に設定し、「
16967 \family typewriter
16968
16969 \backslash
16970 addtime{}
16971 \family default
16972 」は、タイムマーカを指定した分だけ進めます。このようにタイムマーカと
16973 \family sans
16974 注釈
16975 \family default
16976 を用いれば、特定の
16977 \family sans
16978 スライド
16979 \family default
16980 にどれだけの時間をかけるのか忘れないでいられます。
16981 \end_layout
16982
16983 \begin_layout Standard
16984 最後に、説明しておくべき機能がもう一つあります。当然ながら、
16985 \family sans
16986 スライド
16987 \family default
16988
16989 \family sans
16990 オーバーレイ
16991 \family default
16992 はすべてスライドに、
16993 \family sans
16994 注釈
16995 \family default
16996 はすべて普通の紙に印刷したいはずです。しかしながら、
16997 \family sans
16998 注釈
16999 \family default
17000 は関連付けられた親スライドの直後に
17001 \emph on
17002 来なくてはなりません
17003 \emph default
17004 。ユーザーはどうしたら良いのでしょうか。
17005 \end_layout
17006
17007 \begin_layout Standard
17008 幸いなことに、どれを印刷するか選択することを可能にする\SpecialChar LaTeX
17009 コマンドが、2種類あります。どちらも文書のプリアンブルに記述されなくてはなりません。コマンド「
17010 \family typewriter
17011
17012 \backslash
17013 onlyslides{
17014 \backslash
17015 slides}
17016 \family default
17017 」は、出力に
17018 \family sans
17019 スライド
17020 \family default
17021
17022 \family sans
17023 オーバーレイ
17024 \family default
17025 のみが含まれるようにするものです。同様に、「
17026 \family typewriter
17027
17028 \backslash
17029 onlynotes{
17030 \backslash
17031 notes}
17032 \family default
17033 」は
17034 \family sans
17035 注釈
17036 \family default
17037 以外の出力をすべて抑制します。私のアドバイスとしては、両コマンドをプリアンブルに書いておいて、最初は両方ともコメントアウトしておくと良いでしょう。そうすれば、執
17038 筆時にはプレゼンテーション全体をプレビューすることができます。いったん書き終えたならば、二つのうち一方のコメントを外して、印刷したい方を選ぶことができます。私な
17039 らば、まず
17040 \family typewriter
17041
17042 \backslash
17043 onlyslides{
17044 \backslash
17045 slides}
17046 \family default
17047 のコメントを外して、現ファイル名に「*
17048 \family typewriter
17049 -slides
17050 \family default
17051 」を付けた新たなファイルに出力を行ない、今度はこの行をふたたびコメントアウトするとともに、「
17052 \family typewriter
17053
17054 \backslash
17055 onlynotes{
17056 \backslash
17057 notes
17058 \family default
17059 }」のコメントを外して、これを「
17060 \family typewriter
17061 *-notes.ps
17062 \family default
17063 」というファイルに出力します。そうすれば、必要に応じて、スライドまたは通常の紙をプリンタにセットし、一方のファイルをプリンタに送ればよいのです。
17064 \end_layout
17065
17066 \begin_layout Standard
17067
17068 \family typewriter
17069
17070 \backslash
17071 onlyslides{}
17072 \family default
17073 」および「
17074 \family typewriter
17075
17076 \backslash
17077 onlynotes{}
17078 \family default
17079 」コマンドには、他の引数を与えることもできます。詳しくは、\SpecialChar LaTeX
17080 の良書をご覧ください。
17081 \end_layout
17082
17083 \begin_layout Subsection
17084
17085 \family sans
17086 slides
17087 \family default
17088 クラスのひな型ファイル
17089 \end_layout
17090
17091 \begin_layout Standard
17092
17093 \family sans
17094 slides
17095 \family default
17096 クラス用のひな型ファイルとして「
17097 \family typewriter
17098 slides.lyx
17099 \family default
17100 」が提供されています。これを使用するには、新しいプレゼンテーションを作り始める際に、
17101 \family sans
17102 ファイル\SpecialChar menuseparator
17103 新規(ひな型使用)
17104 \family default
17105 メニューを選択してください。すると新規ファイルには、
17106 \family sans
17107 スライド
17108 \family default
17109
17110 \family sans
17111 オーバーレイ
17112 \family default
17113
17114 \family sans
17115 注釈
17116 \family default
17117 の組が、例として含まれており、
17118 \family sans
17119 スライド
17120 \family default
17121
17122 \family sans
17123 オーバーレイ
17124 \family default
17125 には、さらに
17126 \family sans
17127 不可視文
17128 \family default
17129
17130 \family sans
17131 可視文
17132 \family default
17133 の使用例も含まれています。また、プリアンブルには、次のように書き込まれています。
17134 \end_layout
17135
17136 \begin_layout LyX-Code
17137 % Uncomment to print out only slides and overlays
17138 \end_layout
17139
17140 \begin_layout LyX-Code
17141 %
17142 \end_layout
17143
17144 \begin_layout LyX-Code
17145 %
17146 \backslash
17147 onlyslides{
17148 \backslash
17149 slides}
17150 \begin_inset Newline newline
17151 \end_inset
17152
17153  
17154 \end_layout
17155
17156 \begin_layout LyX-Code
17157 % Uncomment to print out only notes
17158 \end_layout
17159
17160 \begin_layout LyX-Code
17161 %
17162 \end_layout
17163
17164 \begin_layout LyX-Code
17165 %
17166 \backslash
17167 onlynotes{
17168 \backslash
17169 notes}
17170 \end_layout
17171
17172 \begin_layout Standard
17173 最後に、私はこの文書クラスを、\SpecialChar LaTeX2e
17174 の組み込みクラスである「
17175 \noun on
17176 Sli\SpecialChar TeX
17177
17178 \noun default
17179 エミュレーション」クラスをサポートする目的で作成しました。私も\SpecialChar LyX
17180 チームの他のメンバーも、この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17181 ありません。これは単に、ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです。プレゼンテーションを作成するためには、
17182 \family sans
17183 Foils
17184 \family default
17185 クラス(第
17186 \begin_inset CommandInset ref
17187 LatexCommand ref
17188 reference "sec:foiltex"
17189
17190 \end_inset
17191
17192 節参照)や「
17193 \family typewriter
17194 seminar
17195 \family default
17196 」パッケージ(一部の\SpecialChar TeX
17197 頒布版に含まれています)のように、他の\SpecialChar LaTeX2e
17198 クラスも存在します。私はこれらについては知らないのですが、他にどのようなことができるのか試してみてくだ
17199 さい。
17200 \end_layout
17201
17202 \begin_layout Chapter
17203 ソフトウェアを追加する必要がある \SpecialChar LyX
17204 機能
17205 \end_layout
17206
17207 \begin_layout Section
17208 \SpecialChar TeX
17209 のチェック
17210 \end_layout
17211
17212 \begin_layout Standard
17213
17214 \noun on
17215 Asger Alstrup
17216 \noun default
17217
17218 \end_layout
17219
17220 \begin_layout Subsection
17221 はじめに
17222 \end_layout
17223
17224 \begin_layout Standard
17225
17226 \family typewriter
17227 chktex
17228 \family default
17229 プログラムが導入されていると
17230 \begin_inset Foot
17231 status collapsed
17232
17233 \begin_layout Plain Layout
17234 \SpecialChar LaTeX
17235 頒布版としてMiK\SpecialChar TeX
17236 を使用している場合には、
17237 \family typewriter
17238 chktex
17239 \family default
17240 はまだ利用可能ではありません。
17241 \end_layout
17242
17243 \end_inset
17244
17245
17246 \family sans
17247 ツール
17248 \family default
17249 メニューの下に、
17250 \family sans
17251 \SpecialChar TeX
17252 構文チェック
17253 \family default
17254 という項目が表示されます。
17255 \family typewriter
17256 chktex
17257 \family default
17258 は、CTAN
17259 \begin_inset Newline newline
17260 \end_inset
17261
17262
17263 \begin_inset CommandInset href
17264 LatexCommand href
17265 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17266
17267 \end_inset
17268
17269 から入手することができます。
17270 \end_layout
17271
17272 \begin_layout Standard
17273
17274 \family sans
17275 Chk\SpecialChar TeX
17276
17277 \family default
17278 パッケージは、\SpecialChar LaTeX
17279 の構成物には直感的でないものもあり、すぐ忘れてしまいがちであるのに不満を感じた
17280 \begin_inset Flex Noun
17281 status collapsed
17282
17283 \begin_layout Plain Layout
17284 Jens T.
17285  Berger Thielemann
17286 \end_layout
17287
17288 \end_inset
17289
17290 が書いたプログラムです。このプログラムは、\SpecialChar LaTeX
17291 ファイルを走査して、ファイルの整合性をチェックし、犯しがちな誤りを見つけ出します。別の技術用語では、LaTeXにおける
17292 \family typewriter
17293 lint
17294 \family default
17295 であるとも言えます。
17296 \end_layout
17297
17298 \begin_layout Standard
17299 さて、\SpecialChar LyX
17300 はつねに正しい\SpecialChar LaTeX
17301 ファイルを生成するはずなのに、文法チェッカーは\SpecialChar LyX
17302 で何をするというのでしょうか。答えは簡単です。
17303 \family typewriter
17304 lint
17305 \family default
17306 がC言語プログラムの
17307 \emph on
17308 文法
17309 \emph default
17310 をチェックするだけでなく、打ち間違いによる
17311 \emph on
17312 意味上の
17313 \emph default
17314 チェックも行うように、
17315 \family sans
17316 Chk\SpecialChar TeX
17317
17318 \family default
17319 は、文法エラーの他に犯しがちな
17320 \emph on
17321 写植上の
17322 \emph default
17323 誤りも検出してくれるからです。
17324 \family sans
17325 Chk\SpecialChar TeX
17326
17327 \family default
17328 は、以下のような誤りを検出することができます。
17329 \end_layout
17330
17331 \begin_layout Itemize
17332 省略記号の検出:
17333 \begin_inset Newline newline
17334 \end_inset
17335
17336 ...ではなく\SpecialChar ldots
17337 を使わなくてはなりません
17338 \end_layout
17339
17340 \begin_layout Itemize
17341 括弧の前後にスペースを置かない:
17342 \begin_inset Newline newline
17343 \end_inset
17344
17345 ( wrong spacing ):誤った空白
17346 \end_layout
17347
17348 \begin_layout Itemize
17349 よく使われる省略形の後ろは通常スペースにする:
17350 \begin_inset Newline newline
17351 \end_inset
17352
17353 e.
17354 \begin_inset space \thinspace{}
17355 \end_inset
17356
17357 g.
17358 \begin_inset space \space{}
17359 \end_inset
17360
17361 is too wide spacing.:広すぎる空白
17362 \end_layout
17363
17364 \begin_layout Itemize
17365 直前の文章が大文字で終わっているときに、文末スペースに直す:
17366 \begin_inset Newline newline
17367 \end_inset
17368
17369 This is a TEST.
17370  And this is wrong spacing.:誤った空白
17371 \end_layout
17372
17373 \begin_layout Itemize
17374 ラベルや類似コマンドの前のスペース:
17375 \begin_inset Newline newline
17376 \end_inset
17377
17378 ラベルが別のページに行ってしまわないように、ラベルは文章に接していなくてはなりません。 
17379 \begin_inset CommandInset label
17380 LatexCommand label
17381 name "sec:chktex"
17382
17383 \end_inset
17384
17385  
17386 \begin_inset Foot
17387 status collapsed
17388
17389 \begin_layout Plain Layout
17390 この脚注は、正しくないページに行ってしまう恐れがあります。
17391 \end_layout
17392
17393 \end_inset
17394
17395  このラベルは離れすぎです。
17396 \end_layout
17397
17398 \begin_layout Itemize
17399 参照の前にハードスペースではなくスペース:
17400 \begin_inset Newline newline
17401 \end_inset
17402
17403 運が悪ければ、参照文字列と参照番号のあいだでちょうど改行されてしまい、残念な結果となります。第
17404 \begin_inset CommandInset ref
17405 LatexCommand ref
17406 reference "sec:chktex"
17407
17408 \end_inset
17409
17410 節をご覧ください。
17411 \end_layout
17412
17413 \begin_layout Itemize
17414 数字のあいだで
17415 \begin_inset Formula $\times$
17416 \end_inset
17417
17418 ではなく「x」が使われている:
17419 \begin_inset Newline newline
17420 \end_inset
17421
17422 2x2は、
17423 \begin_inset Formula $2\times2$
17424 \end_inset
17425
17426 よりも安っぽく見えます。
17427 \end_layout
17428
17429 \begin_layout Standard
17430 などなど\SpecialChar ldots
17431
17432 \family sans
17433 Chk\SpecialChar TeX
17434
17435 \family default
17436 は、印刷する前に文書を「仕上げる」上で、たいへん価値のあるツールです。必須のスペルチェックを終えた直後、組版の微調整をする前には、これを実行するべきです。
17437 \end_layout
17438
17439 \begin_layout Subsection
17440 使いかた
17441 \end_layout
17442
17443 \begin_layout Standard
17444 このプログラムを導入したならば、使うのは
17445 \family sans
17446 ツール\SpecialChar menuseparator
17447 \SpecialChar TeX
17448 構文チェック
17449 \family default
17450 を選択するだけなので簡単です。こうすると、\SpecialChar LyX
17451 は使用中の文書の\SpecialChar LaTeX
17452 ファイルを生成して、
17453 \family sans
17454 Chk\SpecialChar TeX
17455
17456 \family default
17457 を起動し、当該ファイルを検査しますが、
17458 \family sans
17459 Chk\SpecialChar TeX
17460
17461 \family default
17462 から警告があった場合には、それを含んだ「エラーボックス」を\SpecialChar LyX
17463 中に挿入します。警告は、誤りのある箇所のそばに置かれるので、メニュー項目の
17464 \family sans
17465 移動\SpecialChar menuseparator
17466 エラー
17467 \family default
17468 を選択するか、既定の
17469 \family typewriter
17470 cua
17471 \family default
17472
17473 \begin_inset Flex Ruby
17474 status collapsed
17475
17476 \begin_layout Plain Layout
17477
17478 \begin_inset Argument post:1
17479 status collapsed
17480
17481 \begin_layout Plain Layout
17482 キー
17483 \end_layout
17484
17485 \end_inset
17486
17487
17488 \end_layout
17489
17490 \end_inset
17491
17492 設定ファイルならば
17493 \begin_inset Flex Ruby
17494 status collapsed
17495
17496 \begin_layout Plain Layout
17497
17498 \family roman
17499 \series medium
17500 \shape up
17501 \size normal
17502 \emph off
17503 \bar no
17504 \noun off
17505 \color none
17506 捷径
17507 \family default
17508 \series default
17509 \shape default
17510 \size default
17511 \emph default
17512 \bar default
17513 \noun default
17514 \color inherit
17515
17516 \begin_inset Argument post:1
17517 status collapsed
17518
17519 \begin_layout Plain Layout
17520 ショートカット
17521 \end_layout
17522
17523 \end_inset
17524
17525
17526 \end_layout
17527
17528 \end_inset
17529
17530
17531 \family sans
17532 C-g
17533 \family default
17534 を押せば、簡単に警告の箇所を見出すことができます。エラーボックスを開けるには、マウスでボックスをクリックするか、
17535 \family typewriter
17536 cua
17537 \family default
17538 鍵設定の場合には捷径鍵
17539 \family sans
17540 C-i
17541 \family default
17542
17543 \family typewriter
17544 emacs
17545 \family default
17546 鍵設定の場合は捷径鍵
17547 \family sans
17548 C-o
17549 \family default
17550 を押します。警告を読み、それが誤りを示していれば修正します。警告が何を意味しているか理解しにくい場合には、無視しても問題はありません。画面上の文書と、
17551 \family sans
17552 Chk\SpecialChar TeX
17553
17554 \family default
17555 を起動する際に行なわれる実際の技術的な操作のあいだには、隠された層があり、この隔たりのせいで、一部の警告が不可解なものになったり、明らかに馬鹿げたものになる場合
17556 があるのです。
17557 \end_layout
17558
17559 \begin_layout Standard
17560 本文書自体、この機能を確認する良い材料になりますので、実行してみてください。すると、かなりの量の警告が出るはずです。これはコンピュータが敏感すぎるせいですので、
17561 警告のほとんどは実際には警告に値しません。
17562 \end_layout
17563
17564 \begin_layout Subsection
17565 微調整のしかた
17566 \end_layout
17567
17568 \begin_layout Standard
17569 場合によっては、
17570 \family sans
17571 Chk\SpecialChar TeX
17572
17573 \family default
17574 は、あなたが望むよりも煩すぎると思うかもしれません。そのような場合には、必要と思うまで
17575 \family sans
17576 Chk\SpecialChar TeX
17577
17578 \family default
17579 を無効にするか、あなたにもう少し合うように
17580 \family sans
17581 Chk\SpecialChar TeX
17582
17583 \family default
17584 を調整することができます。
17585 \end_layout
17586
17587 \begin_layout Standard
17588
17589 \family sans
17590 Chk\SpecialChar TeX
17591
17592 \family default
17593 は調整や拡張がひじょうに柔軟なのですが、\SpecialChar LyX
17594 における
17595 \family sans
17596 Chk\SpecialChar TeX
17597
17598 \family default
17599 関連の問題が、それですべて解決すると思うべきではありません。\SpecialChar LyX
17600 は、
17601 \family sans
17602 Chk\SpecialChar TeX
17603
17604 \family default
17605 出力
17606 \begin_inset Foot
17607 status collapsed
17608
17609 \begin_layout Plain Layout
17610
17611 \family sans
17612 chktex
17613 \family default
17614 の実際の出力は、
17615 \family sans
17616 chktex
17617 \family default
17618 を実行した直後に
17619 \family sans
17620 文書\SpecialChar menuseparator
17621 \SpecialChar LaTeX
17622 ログ
17623 \family default
17624 を使えば見ることができます。
17625 \end_layout
17626
17627 \end_inset
17628
17629 から得た行番号と内部構造を一致させるため、やや特殊な\SpecialChar LaTeX
17630 ファイルを生成しなくてはならないので、警告の一部は正しく表示されていないように見えるでしょう。これに対処する
17631 ためには、以下の2つの方法があります。
17632 \end_layout
17633
17634 \begin_layout Itemize
17635
17636 \family sans
17637 \begin_inset Flex MenuItem
17638 status collapsed
17639
17640 \begin_layout Plain Layout
17641
17642 \family sans
17643 ツール\SpecialChar menuseparator
17644 設定\SpecialChar menuseparator
17645 出力\SpecialChar menuseparator
17646 \SpecialChar LaTeX
17647 \SpecialChar menuseparator
17648 Check\SpecialChar TeX
17649 コマンド
17650 \end_layout
17651
17652 \end_inset
17653
17654
17655 \family default
17656 中の
17657 \family sans
17658 Chk\SpecialChar TeX
17659
17660 \family default
17661 起動コマンドラインを調整するか、グローバルな
17662 \family sans
17663 Chk\SpecialChar TeX
17664
17665 \family default
17666 の設定ファイル(通常は
17667 \begin_inset Flex Code
17668 status collapsed
17669
17670 \begin_layout Plain Layout
17671 chktexrc
17672 \end_layout
17673
17674 \end_inset
17675
17676 ファイル)を調整します。コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください。
17677 \end_layout
17678
17679 \begin_layout Itemize
17680
17681 \family sans
17682 ファイル\SpecialChar menuseparator
17683 書き出し\SpecialChar menuseparator
17684 \SpecialChar LaTeX
17685
17686 \family default
17687 を使って文書を\SpecialChar LaTeX
17688 ファイルに変換し、そのファイルに対して
17689 \family typewriter
17690 chktex
17691 \family default
17692 を手動で実行します。このようにすると、\SpecialChar LyX
17693 文書中の対応箇所を見つけるのがやや面倒ですが、少し我慢すれば見つけることができます。
17694 \end_layout
17695
17696 \begin_layout Standard
17697 以下は、
17698 \family sans
17699 設定
17700 \family default
17701 で有効化・無効化できる警告メッセージです。警告を無効にするには
17702 \family typewriter
17703 -n#
17704 \family default
17705 、有効にするには
17706 \family typewriter
17707 -w#
17708 \family default
17709 を用います。イタリック表示の項目は、既定で無効となっています。既定値は "
17710 \family typewriter
17711 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17712 \family default
17713 "です。
17714 \end_layout
17715
17716 \begin_layout Standard
17717 \SpecialChar LyX
17718 は、
17719 \family typewriter
17720 chktex
17721 \family default
17722 と通信するために、他のコマンドラインパラメータを特定の方法で使用しているため、メッセージを有効化・無効化する以外のオプションを使うべきではありません。
17723 \end_layout
17724
17725 \begin_layout Enumerate
17726
17727 \size small
17728 \emph on
17729 Command terminated with space.
17730 \end_layout
17731
17732 \begin_layout Enumerate
17733
17734 \size small
17735 Non-breaking space (
17736 \begin_inset Quotes eld
17737 \end_inset
17738
17739
17740 \family typewriter
17741 ~
17742 \family default
17743
17744 \begin_inset Quotes erd
17745 \end_inset
17746
17747 ) should have been used.
17748 \end_layout
17749
17750 \begin_layout Enumerate
17751
17752 \size small
17753 \emph on
17754 You should enclose the previous parenthesis with 
17755 \begin_inset Quotes eld
17756 \end_inset
17757
17758
17759 \family typewriter
17760 {}
17761 \family default
17762
17763 \begin_inset Quotes erd
17764 \end_inset
17765
17766 .
17767 \end_layout
17768
17769 \begin_layout Enumerate
17770
17771 \size small
17772 Italic correction (
17773 \begin_inset Quotes eld
17774 \end_inset
17775
17776
17777 \family typewriter
17778
17779 \backslash
17780 /
17781 \family default
17782
17783 \begin_inset Quotes erd
17784 \end_inset
17785
17786 ) found in non-italic buffer.
17787 \end_layout
17788
17789 \begin_layout Enumerate
17790
17791 \size small
17792 Italic correction (
17793 \begin_inset Quotes eld
17794 \end_inset
17795
17796
17797 \family typewriter
17798
17799 \backslash
17800 /
17801 \family default
17802
17803 \begin_inset Quotes erd
17804 \end_inset
17805
17806 ) found more than once.
17807 \end_layout
17808
17809 \begin_layout Enumerate
17810
17811 \size small
17812 \emph on
17813 No italic correction (
17814 \begin_inset Quotes eld
17815 \end_inset
17816
17817
17818 \family typewriter
17819
17820 \backslash
17821 /
17822 \family default
17823
17824 \begin_inset Quotes erd
17825 \end_inset
17826
17827 ) found.
17828 \end_layout
17829
17830 \begin_layout Enumerate
17831
17832 \size small
17833 Accent command 
17834 \begin_inset Quotes eld
17835 \end_inset
17836
17837
17838 \family typewriter
17839 cmd
17840 \family default
17841
17842 \begin_inset Quotes erd
17843 \end_inset
17844
17845  needs use of 
17846 \begin_inset Quotes eld
17847 \end_inset
17848
17849
17850 \family typewriter
17851 cmd
17852 \family default
17853
17854 \begin_inset Quotes erd
17855 \end_inset
17856
17857 .
17858 \end_layout
17859
17860 \begin_layout Enumerate
17861
17862 \size small
17863 Wrong length of dash may have been used.
17864 \end_layout
17865
17866 \begin_layout Enumerate
17867
17868 \size small
17869 \emph on
17870 \begin_inset Quotes eld
17871 \end_inset
17872
17873
17874 \family typewriter
17875 %s
17876 \family default
17877
17878 \begin_inset Quotes erd
17879 \end_inset
17880
17881  expected, found 
17882 \begin_inset Quotes eld
17883 \end_inset
17884
17885
17886 \family typewriter
17887 %s
17888 \family default
17889
17890 \begin_inset Quotes erd
17891 \end_inset
17892
17893 .
17894 \end_layout
17895
17896 \begin_layout Enumerate
17897
17898 \size small
17899 Solo 
17900 \begin_inset Quotes eld
17901 \end_inset
17902
17903
17904 \family typewriter
17905 %s
17906 \family default
17907
17908 \begin_inset Quotes erd
17909 \end_inset
17910
17911  found.
17912 \end_layout
17913
17914 \begin_layout Enumerate
17915
17916 \size small
17917 You should use 
17918 \begin_inset Quotes eld
17919 \end_inset
17920
17921
17922 \family typewriter
17923 %s
17924 \family default
17925
17926 \begin_inset Quotes erd
17927 \end_inset
17928
17929  to achieve an ellipsis.
17930 \end_layout
17931
17932 \begin_layout Enumerate
17933
17934 \size small
17935 Inter-word spacing (
17936 \begin_inset Quotes eld
17937 \end_inset
17938
17939
17940 \family typewriter
17941
17942 \backslash
17943
17944 \family default
17945  
17946 \begin_inset Quotes eld
17947 \end_inset
17948
17949 ) should perhaps be used.
17950 \end_layout
17951
17952 \begin_layout Enumerate
17953
17954 \size small
17955 Inter-sentence spacing (
17956 \begin_inset Quotes eld
17957 \end_inset
17958
17959
17960 \family typewriter
17961
17962 \backslash
17963 @
17964 \family default
17965
17966 \begin_inset Quotes erd
17967 \end_inset
17968
17969 ) should perhaps be used.
17970 \end_layout
17971
17972 \begin_layout Enumerate
17973
17974 \size small
17975 Could not find argument for command.
17976 \end_layout
17977
17978 \begin_layout Enumerate
17979
17980 \size small
17981 No match found for 
17982 \begin_inset Quotes eld
17983 \end_inset
17984
17985
17986 \family typewriter
17987 %s
17988 \family default
17989
17990 \begin_inset Quotes erd
17991 \end_inset
17992
17993 .
17994 \end_layout
17995
17996 \begin_layout Enumerate
17997
17998 \size small
17999 Math mode still on at end of \SpecialChar LaTeX
18000  file.
18001 \end_layout
18002
18003 \begin_layout Enumerate
18004
18005 \size small
18006 Number of 
18007 \begin_inset Quotes eld
18008 \end_inset
18009
18010
18011 \family typewriter
18012 char
18013 \family default
18014
18015 \begin_inset Quotes erd
18016 \end_inset
18017
18018  doesn't match the number of 
18019 \begin_inset Quotes eld
18020 \end_inset
18021
18022
18023 \family typewriter
18024 char
18025 \family default
18026
18027 \begin_inset Quotes erd
18028 \end_inset
18029
18030 .
18031 \end_layout
18032
18033 \begin_layout Enumerate
18034
18035 \size small
18036 You should use either 
18037 \family typewriter
18038
18039 \begin_inset Quotes eld
18040 \end_inset
18041
18042
18043 \family default
18044  or 
18045 \family typewriter
18046
18047 \begin_inset Quotes erd
18048 \end_inset
18049
18050
18051 \family default
18052  as an alternative to 
18053 \begin_inset Quotes eld
18054 \end_inset
18055
18056
18057 \family typewriter
18058 "
18059 \family default
18060
18061 \begin_inset Quotes erd
18062 \end_inset
18063
18064 .
18065 \end_layout
18066
18067 \begin_layout Enumerate
18068
18069 \size small
18070 You should use "
18071 \family typewriter
18072 '
18073 \family default
18074 " (ASCII 39) instead of "" (ASCII 180).
18075 \end_layout
18076
18077 \begin_layout Enumerate
18078
18079 \size small
18080 User-specified pattern found.
18081 \end_layout
18082
18083 \begin_layout Enumerate
18084
18085 \size small
18086 This command might not be intended.
18087 \end_layout
18088
18089 \begin_layout Enumerate
18090
18091 \size small
18092 \emph on
18093 Comment displayed.
18094 \end_layout
18095
18096 \begin_layout Enumerate
18097
18098 \size small
18099 Either 
18100 \family typewriter
18101 ''
18102 \backslash
18103 ,'
18104 \family default
18105  or 
18106 \family typewriter
18107 '
18108 \backslash
18109 ,''
18110 \family default
18111  will look better.
18112 \end_layout
18113
18114 \begin_layout Enumerate
18115
18116 \size small
18117 Delete this space to maintain correct page references.
18118 \end_layout
18119
18120 \begin_layout Enumerate
18121
18122 \size small
18123 \emph on
18124 You might wish to put this between a pair of 
18125 \begin_inset Quotes eld
18126 \end_inset
18127
18128
18129 \family typewriter
18130 {}
18131 \family default
18132
18133 \begin_inset Quotes erd
18134 \end_inset
18135
18136 .
18137 \end_layout
18138
18139 \begin_layout Enumerate
18140
18141 \size small
18142 You ought to remove spaces in front of punctuation.
18143 \end_layout
18144
18145 \begin_layout Enumerate
18146
18147 \size small
18148 Could not execute \SpecialChar LaTeX
18149  command.
18150 \end_layout
18151
18152 \begin_layout Enumerate
18153
18154 \size small
18155 Don't use 
18156 \family typewriter
18157
18158 \backslash
18159 /
18160 \family default
18161  in front of small punctuation.
18162 \end_layout
18163
18164 \begin_layout Enumerate
18165
18166 \family typewriter
18167 \size small
18168 $
18169 \backslash
18170 times$
18171 \family default
18172  may look prettier here.
18173 \end_layout
18174
18175 \begin_layout Enumerate
18176
18177 \size small
18178 \emph on
18179 Multiple spaces detected in output.
18180 \end_layout
18181
18182 \begin_layout Enumerate
18183
18184 \size small
18185 This text may be ignored.
18186 \end_layout
18187
18188 \begin_layout Enumerate
18189
18190 \size small
18191 Use 
18192 \family typewriter
18193
18194 \begin_inset Quotes eld
18195 \end_inset
18196
18197
18198 \family default
18199  to begin quotation, not 
18200 \family typewriter
18201 '
18202 \family default
18203 .
18204 \end_layout
18205
18206 \begin_layout Enumerate
18207
18208 \size small
18209 Use 
18210 \family typewriter
18211 '
18212 \family default
18213  to end quotation, not 
18214 \family typewriter
18215
18216 \begin_inset Quotes eld
18217 \end_inset
18218
18219
18220 \family default
18221 .
18222 \end_layout
18223
18224 \begin_layout Enumerate
18225
18226 \size small
18227 Don't mix quotes.
18228 \end_layout
18229
18230 \begin_layout Enumerate
18231
18232 \size small
18233 You should perhaps use 
18234 \begin_inset Quotes eld
18235 \end_inset
18236
18237
18238 \family typewriter
18239 cmd
18240 \family default
18241
18242 \begin_inset Quotes erd
18243 \end_inset
18244
18245  instead.
18246 \end_layout
18247
18248 \begin_layout Enumerate
18249
18250 \size small
18251 You should put a space in front of/after parenthesis.
18252 \end_layout
18253
18254 \begin_layout Enumerate
18255
18256 \size small
18257 You should avoid spaces in front of/after parenthesis.
18258 \end_layout
18259
18260 \begin_layout Enumerate
18261
18262 \size small
18263 \emph on
18264 You should not use punctuation in front of/after quotes.
18265 \end_layout
18266
18267 \begin_layout Enumerate
18268
18269 \size small
18270 Double space found.
18271 \end_layout
18272
18273 \begin_layout Enumerate
18274
18275 \size small
18276 You should put punctuation outside inner/inside display math mode.
18277 \end_layout
18278
18279 \begin_layout Enumerate
18280
18281 \size small
18282 You ought to not use primitive \SpecialChar TeX
18283  in \SpecialChar LaTeX
18284  code.
18285 \end_layout
18286
18287 \begin_layout Enumerate
18288
18289 \size small
18290 You should remove spaces in front of 
18291 \begin_inset Quotes eld
18292 \end_inset
18293
18294
18295 \family typewriter
18296 %s
18297 \family default
18298
18299 \begin_inset Quotes erd
18300 \end_inset
18301
18302
18303 \end_layout
18304
18305 \begin_layout Enumerate
18306
18307 \size small
18308 \begin_inset Quotes eld
18309 \end_inset
18310
18311
18312 \family typewriter
18313 %s
18314 \family default
18315
18316 \begin_inset Quotes erd
18317 \end_inset
18318
18319  is normally not followed by 
18320 \begin_inset Quotes eld
18321 \end_inset
18322
18323
18324 \family typewriter
18325 %c
18326 \family default
18327
18328 \begin_inset Quotes erd
18329 \end_inset
18330
18331 .
18332 \end_layout
18333
18334 \begin_layout Standard
18335 \SpecialChar LyX
18336 の将来の版では、このツール(およびその縮小版
18337 \family typewriter
18338 lacheck
18339 \family default
18340 )の力を最大限引き出すように、より完備したインターフェイスを提供できればと考えています。しかし、現状でも十分に役立つものとなっています。ある程度長さがある既存文
18341 書に使用してみていただければ、きっと驚かれることでしょう。
18342 \end_layout
18343
18344 \begin_layout Section
18345 \SpecialChar LyX
18346 でのバージョン管理
18347 \end_layout
18348
18349 \begin_layout Standard
18350
18351 \noun on
18352 Lars Bullik Bjønnes
18353 \noun default
18354 および
18355 \noun on
18356 Pavel Sanda
18357 \noun default
18358
18359 \end_layout
18360
18361 \begin_layout Subsection
18362 はじめに
18363 \end_layout
18364
18365 \begin_layout Standard
18366 \SpecialChar LyX
18367 は、今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています。もしもっと洗練されたことを行いたい場合には、ターミナル上から手動で行う必要
18368 があります。
18369 \end_layout
18370
18371 \begin_layout Standard
18372 また、CVSのサポートは、subversionのサポートほど良くないので、CVSよりもSVNを使うことをお勧めします。Subversionを学び始めるには、SV
18373 N Book
18374 \begin_inset Foot
18375 status collapsed
18376
18377 \begin_layout Plain Layout
18378 \begin_inset CommandInset href
18379 LatexCommand href
18380 target "http://svnbook.red-bean.com/"
18381
18382 \end_inset
18383
18384
18385 \end_layout
18386
18387 \end_inset
18388
18389 が良いでしょう。RCSの場合は、「rsintro」をお読みください(これはmanファイルです。
18390 \family typewriter
18391 man rcsintro
18392 \family default
18393 で読めます)。このファイルは、RCSの基本機能のすべてを説明しています。特に、RCSディレクトリに関するコメントと、マスターRCSファイル(
18394 \family typewriter
18395 ,v
18396 \family default
18397 で終わるファイルです)の概念に注意を払ってください。
18398 \end_layout
18399
18400 \begin_layout Standard
18401 \SpecialChar LyX
18402 で実際にバージョン管理機能を使い始める前に、RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません。\SpecialChar LyX
18403 で\SpecialChar LyX
18404 への実装においては、GNU
18405  RCSまたはCVS/SVNパッケージの最新版を仮定しています。旧版への保証はありません。ログメッセージのほとんどは、現在のところ操作後には表示されません。確認
18406 したい場合には、メッセージ面で確かめてください。バージョン管理を常用するユーザーには、VCツールバーが便利でしょう。これは
18407 \family sans
18408 表示\SpecialChar menuseparator
18409 ツールバー\SpecialChar menuseparator
18410 バージョン管理
18411 \family default
18412 で有効にできます。
18413 \end_layout
18414
18415 \begin_layout Standard
18416 自製の外部コマンドを導入したい場合には、\SpecialChar LyX
18417 関数説明書のvcコマンドを確認してください。
18418 \end_layout
18419
18420 \begin_layout Standard
18421
18422 \lang english
18423 It is strongly recommended to store documents in uncompressed format if
18424  using version control (uncheck 
18425 \family sans
18426 Document\SpecialChar menuseparator
18427 Compressed
18428 \family default
18429  if it is checked): Uncompressed LyX documents are text files and therefore
18430  for merging two different versions by version control systems.
18431  Compressed LyX documents are binary files, which cannot be merged by version
18432  control systems.
18433 \lang japanese
18434
18435 \begin_inset space \space{}
18436 \end_inset
18437
18438
18439 \end_layout
18440
18441 \begin_layout Subsection
18442 \SpecialChar LyX
18443 におけるRCSコマンド
18444 \end_layout
18445
18446 \begin_layout Standard
18447 以下の節では\SpecialChar LyX
18448 でサポートされているRCSコマンドを説明します。それらのコマンドは
18449 \family sans
18450 ファイル\SpecialChar menuseparator
18451 バージョン管理
18452 \family default
18453 のサブメニューにあります。\SpecialChar LyX
18454 は、RCS 5.7/5.8に対して試験されています。
18455 \end_layout
18456
18457 \begin_layout Subsubsection
18458
18459 \family sans
18460 登録
18461 \end_layout
18462
18463 \begin_layout Standard
18464 文書がバージョン管理の下にない場合には、これがメニューにあらわれる唯一の項目です。文書がバージョン管理下にあれば、項目
18465 \family sans
18466 登録
18467 \family default
18468 は不可視になります。
18469 \end_layout
18470
18471 \begin_layout Standard
18472 このコマンドは、文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合)。すると対話的に、文書の最初の説明を入力するように尋ねられます。すると文
18473 書は読み込み専用モードになるので、変更を加えるためには
18474 \family sans
18475 チェックアウトして編集
18476 \family default
18477 を実行する必要があります。バージョン管理下にある文書は、ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます。
18478 \end_layout
18479
18480 \begin_layout Standard
18481 実行されるRCSコマンドは:
18482 \family typewriter
18483
18484 \begin_inset Newline newline
18485 \end_inset
18486
18487 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18488 \end_layout
18489
18490 \begin_layout Standard
18491 スイッチについて知りたい場合は、
18492 \family typewriter
18493 man ci
18494 \family default
18495 を読んでください。
18496 \end_layout
18497
18498 \begin_layout Subsubsection
18499
18500 \family sans
18501 変更をチェックインする
18502 \end_layout
18503
18504 \begin_layout Standard
18505 ファイルの編集が終わると、その変更をチェックインします。このとき、変更についての説明文を求められます。これは履歴ログに記録されます。バージョン番号は繰り上がり、
18506 変更がマスターRCSファイルに適用され、文書がアンロックされて読み込み専用モードになります。
18507 \end_layout
18508
18509 \begin_layout Standard
18510 RCSコマンド:
18511 \family typewriter
18512 ci -q -u -m"<説明文>" <ファイル名>
18513 \end_layout
18514
18515 \begin_layout Subsubsection
18516
18517 \family sans
18518 チェックアウトして編集
18519 \end_layout
18520
18521 \begin_layout Standard
18522 これは、文書をロックして編集できるようにします。そしてあなただけが文書を読み書きできるようにします。通常は、しばらくの間、文書を編集し、それが終わると変更をチェ
18523 ックインします。あなたがファイルをロックしたことを反映して、ステータスラインが変わります。
18524 \end_layout
18525
18526 \begin_layout Standard
18527 RCSコマンド:
18528 \family typewriter
18529 co -q -l <ファイル名>
18530 \end_layout
18531
18532 \begin_layout Subsubsection
18533
18534 \family sans
18535 リポジトリのバージョンに戻す
18536 \end_layout
18537
18538 \begin_layout Standard
18539 これは、最終チェックイン以降、文書に加えられた変更をすべて破棄します。変更が破棄される前に、警告が発せられます。
18540 \end_layout
18541
18542 \begin_layout Standard
18543 RCSコマンド:
18544 \family typewriter
18545 co -f -u<バージョン> <ファイル名>
18546 \end_layout
18547
18548 \begin_layout Subsubsection
18549
18550 \family sans
18551 コピー
18552 \end_layout
18553
18554 \begin_layout Standard
18555 これは、現行文書のコピーを生成します。RCSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18556 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18557 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18558 \family sans
18559 ファイル\SpecialChar menuseparator
18560 名前をつけて保存\SpecialChar ldots
18561
18562 \family default
18563 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18564 \end_layout
18565
18566 \begin_layout Labeling
18567 \labelwidthstring 00.00.0000
18568 RCSコマンド:
18569 \begin_inset Flex Code
18570 status collapsed
18571
18572 \begin_layout Plain Layout
18573 "ファイル名"
18574 \end_layout
18575
18576 \end_inset
18577
18578
18579 \family typewriter
18580 "新ファイル名"
18581 \family default
18582 にコピーする場合
18583 \end_layout
18584
18585 \begin_layout Labeling
18586 \labelwidthstring 00.00.0000
18587 \begin_inset Flex Code
18588 status collapsed
18589
18590 \begin_layout Plain Layout
18591 ci -q -u -i "<新ファイル名>"
18592 \end_layout
18593
18594 \end_inset
18595
18596
18597 \end_layout
18598
18599 \begin_layout Subsubsection
18600
18601 \family sans
18602 最後のチェックインを取り消す
18603 \end_layout
18604
18605 \begin_layout Standard
18606 これは、最後のチェックインがあたかも為されなかったかのようにします。\SpecialChar LyX
18607 に読み込まれた文書に変更は加えられませんが、マスターRCSファイルから最後のバージョンが削除
18608 されます。
18609 \end_layout
18610
18611 \begin_layout Standard
18612 RCSコマンド:
18613 \family typewriter
18614 rcs -o<バージョン> <ファイル名>
18615 \end_layout
18616
18617 \begin_layout Subsubsection
18618
18619 \family sans
18620 履歴を表示
18621 \end_layout
18622
18623 \begin_layout Standard
18624 RCS文書の完全な履歴を表示します。ブラウザ中に、
18625 \family typewriter
18626 rlog <ファイル名>
18627 \family default
18628 の出力が表示されます。詳細は
18629 \family typewriter
18630 man rlog
18631 \family default
18632 をご覧ください。
18633 \end_layout
18634
18635 \begin_layout Subsubsection
18636 改訂情報
18637 \end_layout
18638
18639 \begin_layout Standard
18640 \SpecialChar LyX
18641 は、RCSバージョン番号情報(のみ)をサポートしています。詳細については、
18642 \begin_inset CommandInset ref
18643 LatexCommand ref
18644 reference "subsec:VCS改訂情報"
18645
18646 \end_inset
18647
18648 を参照。
18649 \end_layout
18650
18651 \begin_layout Subsection
18652 \SpecialChar LyX
18653 におけるCVSコマンド
18654 \end_layout
18655
18656 \begin_layout Standard
18657 \SpecialChar LyX
18658 は、現在CVSを一部サポートしています。そのコマンドは、
18659 \family sans
18660 ファイル\SpecialChar menuseparator
18661 バージョン管理
18662 \family default
18663 サブメニューにあります。バージョン管理システムSVNの方が強力なので、可能ならばCVSではなく、SVNを使用してください。
18664 \end_layout
18665
18666 \begin_layout Subsubsection
18667 CVSの一般的な利用法
18668 \end_layout
18669
18670 \begin_layout Standard
18671 CVSを初めて使いたい場合には、外部ツールを使用して自分のレポジトリを作成し、作業コピーをチェックアウトする必要があります。クライアント=サーバーモデルを使用し
18672 ている場合には、最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません。
18673 \end_layout
18674
18675 \begin_layout Standard
18676 改訂管理下にある文書のレポジトリを他人も利用している場合に、同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します。標準的なCVSレポジトリは、ファイル
18677 ロッキング機構を有しません。これは驚くべきことかもしれませんが、コンフリクトは、文書の同じ箇所の特定の内容について、人々が意見を異にしている場合にのみ発生します
18678 。したがって、共著者同士がコンスタントにコミュニケーションを交わしていれば、このようなコンフリクトは滅多に発生しません。もしコミュニケーションがなければ、いずれ
18679 にしても根本的な問題があるわけです。それにもかかわらず、いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます。この場合、最初にチェックアウトした際に
18680 、全ファイルの作業コピーは読み込み専用にされ、ユーザーは、作業コピーを書き込み可能にする特別なコマンドを使用した後、編集を開始することになります。変更をチェック
18681 インすると、作業コピーは読み込み専用状態に戻ります。\SpecialChar LyX
18682 で予備付きチェックアウトを利用したい場合には、
18683 \begin_inset Flex Code
18684 status collapsed
18685
18686 \begin_layout Plain Layout
18687 .cvsrc
18688 \end_layout
18689
18690 \end_inset
18691
18692 ファイルを編集して、
18693 \begin_inset Flex Code
18694 status collapsed
18695
18696 \begin_layout Plain Layout
18697 cvs -r
18698 \end_layout
18699
18700 \end_inset
18701
18702 という行を書き加える必要があります。この方法の利点は、文書のうち、書き込み可能コピーを誰が使用しているかを見ることができることです。ただし、一人のユーザーだけが
18703 コピーを書き込み可能にしているとは限りません。
18704 \end_layout
18705
18706 \begin_layout Standard
18707 \SpecialChar LyX
18708 は、あなたが予備付きチェックアウトを使用しているか、予備なしチェックアウトを利用しているか、推測しようと試みます。使用中の作業コピーが読み込み専用になっているか
18709 、あるいはそれが書き込み可能であって、CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には、予備付きチェックアウトを使用しているものと仮定
18710 し、そうでない場合には予備なしチェックアウトを使用しているものと仮定します。予備付きチェックアウトが検出された場合には、作業コピーが読み込み専用の場合に書き込み
18711 可能にするためには、
18712 \begin_inset Flex MenuItem
18713 status collapsed
18714
18715 \begin_layout Plain Layout
18716 チェックアウト
18717 \end_layout
18718
18719 \end_inset
18720
18721 メニューを使用しなくてはなりません。その後、
18722 \begin_inset Flex MenuItem
18723 status collapsed
18724
18725 \begin_layout Plain Layout
18726 チェックイン
18727 \end_layout
18728
18729 \end_inset
18730
18731 メニューが利用可能になるので、自分が加えた変更をリポジトリに移した後、作業コピーを再び読み込み専用にする際には、これを使用します。
18732 \end_layout
18733
18734 \begin_layout Standard
18735 CVSの詳細な情報は、
18736 \begin_inset Flex URL
18737 status collapsed
18738
18739 \begin_layout Plain Layout
18740
18741 http://www.nongnu.org/cvs
18742 \end_layout
18743
18744 \end_inset
18745
18746
18747 \begin_inset Flex URL
18748 status collapsed
18749
18750 \begin_layout Plain Layout
18751
18752 http://ximbiot.com/cvs
18753 \end_layout
18754
18755 \end_inset
18756
18757 にあります。
18758 \end_layout
18759
18760 \begin_layout Standard
18761 以下に言及するサブコマンドとスイッチを理解するには、
18762 \family typewriter
18763 man cvs
18764 \family default
18765 をお読みください。
18766 \end_layout
18767
18768 \begin_layout Subsubsection
18769 登録
18770 \end_layout
18771
18772 \begin_layout Standard
18773 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
18774 \family sans
18775 登録
18776 \family default
18777 項目は表示されません。
18778 \end_layout
18779
18780 \begin_layout Standard
18781 本コマンドは、既に文書ディレクトリをCVS管理下に置いている場合に
18782 \series bold
18783 \emph on
18784 のみ
18785 \series default
18786 \emph default
18787 (すなわち
18788 \begin_inset Flex Code
18789 status collapsed
18790
18791 \begin_layout Plain Layout
18792 CVS/Entries
18793 \end_layout
18794
18795 \end_inset
18796
18797 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、外部ツールを使用して、アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18798 を意味します(このステップを忘れてしまうと、\SpecialChar LyX
18799 は文書をRCSに登録します)。
18800 \end_layout
18801
18802 \begin_layout Standard
18803 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだチェックインされたわけではないことに注意してください。
18804 \end_layout
18805
18806 \begin_layout Standard
18807 実行されるCVSコマンドは、
18808 \family typewriter
18809 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18810 \family default
18811  です。
18812 \end_layout
18813
18814 \begin_layout Standard
18815 上記および他のすべてのCVSコマンドにおける
18816 \family typewriter
18817 "<ファイル名>"
18818 \family default
18819 は、「カレント作業ディレクトリをファイルの場所に移動し、パスコンポーネントを除いたファイル名を引数として使用する」という意味になります。
18820 \end_layout
18821
18822 \begin_layout Subsubsection
18823 変更のチェックイン
18824 \end_layout
18825
18826 \begin_layout Standard
18827 ファイルの編集を終えたら、変更をコミットします。このとき、文書に変更が加えられていれば、変更の説明文を入れるよう促されます。その後、変更がレポジトリに書き込まれ
18828 ます。文書を変更せず、予備付きチェックアウトが検出された場合、
18829 \begin_inset Flex MenuItem
18830 status collapsed
18831
18832 \begin_layout Plain Layout
18833 チェックアウト
18834 \end_layout
18835
18836 \end_inset
18837
18838 で作られた予備は取り消されます。
18839 \end_layout
18840
18841 \begin_layout Labeling
18842 \labelwidthstring 00.00.0000
18843 CVSコマンド: 
18844 \begin_inset space ~
18845 \end_inset
18846
18847
18848 \begin_inset Newline newline
18849 \end_inset
18850
18851
18852 \begin_inset Flex Code
18853 status collapsed
18854
18855 \begin_layout Plain Layout
18856 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18857 \end_layout
18858
18859 \end_inset
18860
18861 あるいは
18862 \begin_inset Newline newline
18863 \end_inset
18864
18865
18866 \begin_inset Flex Code
18867 status collapsed
18868
18869 \begin_layout Plain Layout
18870 cvs -q unedit "<ファイル名>"
18871 \end_layout
18872
18873 \end_inset
18874
18875
18876 \end_layout
18877
18878 \begin_layout Subsubsection
18879 変更のチェックアウト
18880 \end_layout
18881
18882 \begin_layout Standard
18883 レポジトリを他人と共有している場合、他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります。
18884 \end_layout
18885
18886 \begin_layout Standard
18887 CVSコマンド:
18888 \family typewriter
18889 cvs -q update "<ファイル名>"
18890 \end_layout
18891
18892 \begin_layout Standard
18893 読み込み専用チェックアウトが検出された場合、作業コピーを書き込み可能にし予備を作成します。
18894 \end_layout
18895
18896 \begin_layout Standard
18897 CVSコマンド:
18898 \family typewriter
18899 cvs -q edit "<ファイル名>"
18900 \end_layout
18901
18902 \begin_layout Subsubsection
18903 レポジトリ版に戻す
18904 \end_layout
18905
18906 \begin_layout Standard
18907 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVS更新コマンド
18908 が実行されます。
18909 \end_layout
18910
18911 \begin_layout Standard
18912 CVSコマンド:
18913 \family typewriter
18914 cvs -q update "<ファイル名>"
18915 \end_layout
18916
18917 \begin_layout Standard
18918 予備付きチェックアウトが検出され、作業コピーに変更がない場合、予備のみが取り消されます。
18919 \end_layout
18920
18921 \begin_layout Standard
18922 CVSコマンド:
18923 \family typewriter
18924 cvs -q unedit "<ファイル名>"
18925 \end_layout
18926
18927 \begin_layout Subsubsection
18928
18929 \family sans
18930 コピー
18931 \end_layout
18932
18933 \begin_layout Standard
18934 これは、現行文書のコピーを生成します。CVSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18935 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18936 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18937 \family sans
18938 ファイル\SpecialChar menuseparator
18939 名前をつけて保存\SpecialChar ldots
18940
18941 \family default
18942 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18943 \end_layout
18944
18945 \begin_layout Labeling
18946 \labelwidthstring 00.00.0000
18947 CVSコマンド:
18948 \end_layout
18949
18950 \begin_layout Labeling
18951 \labelwidthstring 00.00.0000
18952 \begin_inset Flex Code
18953 status collapsed
18954
18955 \begin_layout Plain Layout
18956 "ファイル名"
18957 \end_layout
18958
18959 \end_inset
18960
18961
18962 \begin_inset Flex Code
18963 status collapsed
18964
18965 \begin_layout Plain Layout
18966 "新ファイル名"
18967 \end_layout
18968
18969 \end_inset
18970
18971 にコピーする場合
18972 \end_layout
18973
18974 \begin_layout Labeling
18975 \labelwidthstring 00.00.0000
18976 \begin_inset Flex Code
18977 status collapsed
18978
18979 \begin_layout Plain Layout
18980 cvs -q add "<新ファイル名>"
18981 \end_layout
18982
18983 \end_inset
18984
18985
18986 \end_layout
18987
18988 \begin_layout Subsubsection
18989 ファイル名変更
18990 \end_layout
18991
18992 \begin_layout Standard
18993 これは、現行文書のファイル名を変更します。CVSは、ファイル名変更操作を自前ではサポートしませんので、バージョン履歴には保存されず、名称変更後のファイルは、新規
18994 ファイルとして追加されます。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され
18995 、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パ
18996 スは、(
18997 \family sans
18998 ファイル\SpecialChar menuseparator
18999 名前をつけて保存\SpecialChar ldots
19000
19001 \family default
19002 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
19003 \end_layout
19004
19005 \begin_layout Labeling
19006 \labelwidthstring 00.00.0000
19007 CVSコマンド:
19008 \end_layout
19009
19010 \begin_layout Labeling
19011 \labelwidthstring 00.00.0000
19012 \begin_inset Flex Code
19013 status collapsed
19014
19015 \begin_layout Plain Layout
19016 "ファイル名"
19017 \end_layout
19018
19019 \end_inset
19020
19021
19022 \begin_inset Flex Code
19023 status collapsed
19024
19025 \begin_layout Plain Layout
19026 "新ファイル名"
19027 \end_layout
19028
19029 \end_inset
19030
19031 に変更する場合
19032 \end_layout
19033
19034 \begin_layout Labeling
19035 \labelwidthstring 00.00.0000
19036 \begin_inset Flex Code
19037 status collapsed
19038
19039 \begin_layout Plain Layout
19040 cvs -q add "<新ファイル名>"
19041 \end_layout
19042
19043 \end_inset
19044
19045
19046 \end_layout
19047
19048 \begin_layout Labeling
19049 \labelwidthstring 00.00.0000
19050 \begin_inset Flex Code
19051 status collapsed
19052
19053 \begin_layout Plain Layout
19054 cvs -q remove "<ファイル名>"
19055 \end_layout
19056
19057 \end_inset
19058
19059
19060 \end_layout
19061
19062 \begin_layout Subsubsection
19063 ローカルディレクトリチェックアウトのレポジトリからの更新
19064 \end_layout
19065
19066 \begin_layout Standard
19067 子文書や図を含んだり、外部
19068 \begin_inset Flex Code
19069 status collapsed
19070
19071 \begin_layout Plain Layout
19072 .tex
19073 \end_layout
19074
19075 \end_inset
19076
19077 ファイルを取り込むなど、文書が複雑になるにつれ、バージョン管理の利用は複雑になります。\SpecialChar LyX
19078 は、文書が存在するツリー全体の更新をサポートします。これは、CVSの使用法
19079 について詳しい知識のない人々や、レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に、特に便利です。ファイル構造は、すべての外部ファイル
19080 が、文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります。いずれにしても、複合文書を新しいディレクトリを建てて収容するのは、望ましい習
19081 慣です。
19082 \end_layout
19083
19084 \begin_layout Standard
19085 コマンド
19086 \begin_inset Flex Code
19087 status collapsed
19088
19089 \begin_layout Plain Layout
19090 レポジトリを使ってローカル辞書を更新
19091 \end_layout
19092
19093 \end_inset
19094
19095 は、ディレクトリ全体を更新します。ローカルの変更が検出された場合には、更新を開始する前にユーザーに警告が発せられます。マージコンフリクトが発生した場合には、コン
19096 フリクトを起こしている部分の新旧バージョンが、両方とも最終文書に置かれますので、マージの結果を見直し、修正する必要があります。コンフリクトは、
19097 \begin_inset Flex Code
19098 status collapsed
19099
19100 \begin_layout Plain Layout
19101 <<<<<<<
19102 \end_layout
19103
19104 \end_inset
19105
19106
19107 \begin_inset Flex Code
19108 status collapsed
19109
19110 \begin_layout Plain Layout
19111 >>>>>>>
19112 \end_layout
19113
19114 \end_inset
19115
19116 の対に囲まれ、
19117 \begin_inset Flex Code
19118 status collapsed
19119
19120 \begin_layout Plain Layout
19121 =======
19122 \end_layout
19123
19124 \end_inset
19125
19126 で区切られて表示されます。最初の部分は、文書名に続いて、更新操作前のバージョンが置かれています。第2の部分は、
19127 \begin_inset Flex Code
19128 status collapsed
19129
19130 \begin_layout Plain Layout
19131 >
19132 \end_layout
19133
19134 \end_inset
19135
19136 記号列の後にバージョン番号に続いて、レポジトリ版が置かれます。
19137 \end_layout
19138
19139 \begin_layout Labeling
19140 \labelwidthstring 00.00.0000
19141 CVSコマンド: 
19142 \begin_inset space ~
19143 \end_inset
19144
19145
19146 \begin_inset Newline newline
19147 \end_inset
19148
19149
19150 \begin_inset Flex Code
19151 status collapsed
19152
19153 \begin_layout Plain Layout
19154 cd $path; cvs diff "."
19155 \end_layout
19156
19157 \end_inset
19158
19159 (変更が検出された場合には知らせる)
19160 \begin_inset Newline newline
19161 \end_inset
19162
19163
19164 \begin_inset Flex Code
19165 status collapsed
19166
19167 \begin_layout Plain Layout
19168 cd $path; cvs -q update "."
19169 \end_layout
19170
19171 \end_inset
19172
19173
19174 \end_layout
19175
19176 \begin_layout Standard
19177 ここで
19178 \begin_inset Flex Code
19179 status collapsed
19180
19181 \begin_layout Plain Layout
19182 $path
19183 \end_layout
19184
19185 \end_inset
19186
19187 は文書パスを表します。
19188 \end_layout
19189
19190 \begin_layout Subsubsection
19191 履歴を表示
19192 \end_layout
19193
19194 \begin_layout Standard
19195 これは、CVS文書の全履歴を表示します。
19196 \begin_inset Flex Code
19197 status collapsed
19198
19199 \begin_layout Plain Layout
19200 cvs log 
19201 \begin_inset Quotes eld
19202 \end_inset
19203
19204 <ファイル名>
19205 \begin_inset Quotes erd
19206 \end_inset
19207
19208
19209 \end_layout
19210
19211 \end_inset
19212
19213 の出力がブラウザに表示されます。
19214 \end_layout
19215
19216 \begin_layout Subsubsection
19217 改訂情報
19218 \end_layout
19219
19220 \begin_layout Standard
19221 \SpecialChar LyX
19222 は、CVS版数・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
19223 \family typewriter
19224 cvs log -r <ファイル名>
19225 \family default
19226 によって抽出されます。詳細については、第
19227 \begin_inset CommandInset ref
19228 LatexCommand ref
19229 reference "subsec:VCS改訂情報"
19230
19231 \end_inset
19232
19233 節を参照してください。
19234 \end_layout
19235
19236 \begin_layout Subsection
19237 \SpecialChar LyX
19238 におけるSVNコマンド
19239 \end_layout
19240
19241 \begin_layout Standard
19242 \SpecialChar LyX
19243 は、現在SVNを一部サポートしています。そのコマンドは、
19244 \begin_inset Flex MenuItem
19245 status collapsed
19246
19247 \begin_layout Plain Layout
19248 ファイル\SpecialChar menuseparator
19249 バージョン管理
19250 \end_layout
19251
19252 \end_inset
19253
19254 メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。\SpecialChar LyX
19255 は、SVN
19256  1.5および1.6に対して試験されています。
19257 \end_layout
19258
19259 \begin_layout Subsubsection
19260 登録
19261 \end_layout
19262
19263 \begin_layout Standard
19264 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
19265 \family sans
19266 登録
19267 \family default
19268 項目は表示されません。
19269 \end_layout
19270
19271 \begin_layout Standard
19272 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
19273 \emph on
19274 のみ
19275 \emph default
19276 (すなわち
19277 \begin_inset Flex Code
19278 status collapsed
19279
19280 \begin_layout Plain Layout
19281 .svn/entries
19282 \end_layout
19283
19284 \end_inset
19285
19286 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
19287 \end_layout
19288
19289 \begin_layout Standard
19290 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
19291 \end_layout
19292
19293 \begin_layout Standard
19294 実行されるSVNコマンドは、
19295 \begin_inset Flex Code
19296 status collapsed
19297
19298 \begin_layout Plain Layout
19299 svn add -q 
19300 \begin_inset Quotes eld
19301 \end_inset
19302
19303 <ファイル名>
19304 \begin_inset Quotes erd
19305 \end_inset
19306
19307
19308 \end_layout
19309
19310 \end_inset
19311
19312 です。
19313 \end_layout
19314
19315 \begin_layout Standard
19316 スイッチの説明は
19317 \begin_inset Flex Code
19318 status collapsed
19319
19320 \begin_layout Plain Layout
19321 man svn
19322 \end_layout
19323
19324 \end_inset
19325
19326 をお読みください。
19327 \end_layout
19328
19329 \begin_layout Subsubsection
19330 変更をチェックイン
19331 \end_layout
19332
19333 \begin_layout Standard
19334 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
19335 \end_layout
19336
19337 \begin_layout Standard
19338 SVNコマンド
19339 \begin_inset Foot
19340 status collapsed
19341
19342 \begin_layout Plain Layout
19343 ロックが有効になっていない場合です。第
19344 \begin_inset CommandInset ref
19345 LatexCommand ref
19346 reference "subsec:SVNファイルロック"
19347
19348 \end_inset
19349
19350 節をご覧ください。
19351 \end_layout
19352
19353 \end_inset
19354
19355
19356 \begin_inset Flex Code
19357 status collapsed
19358
19359 \begin_layout Plain Layout
19360 svn commit -q -m
19361 \begin_inset Quotes erd
19362 \end_inset
19363
19364 <入力した説明文>
19365 \begin_inset Quotes erd
19366 \end_inset
19367
19368  
19369 \begin_inset Quotes eld
19370 \end_inset
19371
19372 <ファイル名>
19373 \begin_inset Quotes erd
19374 \end_inset
19375
19376
19377 \end_layout
19378
19379 \end_inset
19380
19381
19382 \end_layout
19383
19384 \begin_layout Subsubsection
19385 チェックアウトして編集
19386 \end_layout
19387
19388 \begin_layout Standard
19389 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
19390 しておくようにしてください。
19391 \end_layout
19392
19393 \begin_layout Standard
19394 SVNコマンド
19395 \begin_inset Foot
19396 status collapsed
19397
19398 \begin_layout Plain Layout
19399 同上。
19400 \end_layout
19401
19402 \end_inset
19403
19404
19405 \begin_inset Flex Code
19406 status collapsed
19407
19408 \begin_layout Plain Layout
19409 svn update –non-interactive 
19410 \begin_inset Quotes eld
19411 \end_inset
19412
19413 <ファイル名>
19414 \begin_inset Quotes erd
19415 \end_inset
19416
19417
19418 \end_layout
19419
19420 \end_inset
19421
19422
19423 \end_layout
19424
19425 \begin_layout Subsubsection
19426 リポジトリ版に戻す
19427 \end_layout
19428
19429 \begin_layout Standard
19430 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
19431 \end_layout
19432
19433 \begin_layout Standard
19434 SVNコマンド:
19435 \begin_inset Flex Code
19436 status collapsed
19437
19438 \begin_layout Plain Layout
19439 svn revert -q 
19440 \begin_inset Quotes eld
19441 \end_inset
19442
19443 <ファイル名>
19444 \begin_inset Quotes erd
19445 \end_inset
19446
19447
19448 \end_layout
19449
19450 \end_inset
19451
19452
19453 \end_layout
19454
19455 \begin_layout Subsubsection
19456
19457 \family sans
19458 コピー
19459 \end_layout
19460
19461 \begin_layout Standard
19462 これは、現行文書のコピーを生成します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するよ
19463 うに促され、その後、新コピーがローカルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19464 ァイルの相対パスは、(
19465 \family sans
19466 ファイル\SpecialChar menuseparator
19467 名前をつけて保存\SpecialChar ldots
19468
19469 \family default
19470 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
19471 \end_layout
19472
19473 \begin_layout Labeling
19474 \labelwidthstring 00.00.0000
19475 SVNコマンド:
19476 \end_layout
19477
19478 \begin_layout Labeling
19479 \labelwidthstring 00.00.0000
19480 \begin_inset Flex Code
19481 status collapsed
19482
19483 \begin_layout Plain Layout
19484 svn copy -q "<ファイル名>" "<新ファイル名>"
19485 \end_layout
19486
19487 \end_inset
19488
19489
19490 \end_layout
19491
19492 \begin_layout Labeling
19493 \labelwidthstring 00.00.0000
19494 \begin_inset Flex Code
19495 status collapsed
19496
19497 \begin_layout Plain Layout
19498 svn commit
19499 \end_layout
19500
19501 \end_inset
19502
19503
19504 \end_layout
19505
19506 \begin_layout Subsubsection
19507 ファイル名変更
19508 \end_layout
19509
19510 \begin_layout Standard
19511 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
19512 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19513 ァイルの相対パスは、(
19514 \family sans
19515 ファイル\SpecialChar menuseparator
19516 名前をつけて保存\SpecialChar ldots
19517
19518 \family default
19519 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
19520 \end_layout
19521
19522 \begin_layout Labeling
19523 \labelwidthstring 00.00.0000
19524 SVNコマンド:
19525 \end_layout
19526
19527 \begin_layout Labeling
19528 \labelwidthstring 00.00.0000
19529 \begin_inset Flex Code
19530 status collapsed
19531
19532 \begin_layout Plain Layout
19533 svn move -q add "<ファイル名>" "<新ファイル名>"
19534 \end_layout
19535
19536 \end_inset
19537
19538
19539 \end_layout
19540
19541 \begin_layout Labeling
19542 \labelwidthstring 00.00.0000
19543 \begin_inset Flex Code
19544 status collapsed
19545
19546 \begin_layout Plain Layout
19547 svn commit
19548 \end_layout
19549
19550 \end_inset
19551
19552
19553 \end_layout
19554
19555 \begin_layout Subsubsection
19556 \begin_inset CommandInset label
19557 LatexCommand label
19558 name "subsec:レポジトリからSVN同期"
19559
19560 \end_inset
19561
19562 レポジトリを使ったローカルディレクトリの同期
19563 \begin_inset Foot
19564 status collapsed
19565
19566 \begin_layout Plain Layout
19567 このコマンドは、subversion 
19568 \begin_inset Formula $\geqq1.5$
19569 \end_inset
19570
19571 でのみ動作することに注意してください。
19572 \end_layout
19573
19574 \end_inset
19575
19576
19577 \end_layout
19578
19579 \begin_layout Standard
19580 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
19581 \begin_inset Flex Code
19582 status collapsed
19583
19584 \begin_layout Plain Layout
19585 .tex
19586 \end_layout
19587
19588 \end_inset
19589
19590 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこで\SpecialChar LyX
19591 は、文書のおいてあるツリー全体の更新をサポートします
19592 \begin_inset Foot
19593 status collapsed
19594
19595 \begin_layout Plain Layout
19596 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
19597 \end_layout
19598
19599 \end_inset
19600
19601 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
19602
19603 \end_layout
19604
19605 \begin_layout Standard
19606 \begin_inset Flex Code
19607 status collapsed
19608
19609 \begin_layout Plain Layout
19610 ローカル辞書をレポジトリを使って更新
19611 \end_layout
19612
19613 \end_inset
19614
19615 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
19616 場合には、更新が開始される前にユーザに警告が与えられます。
19617 \end_layout
19618
19619 \begin_layout Labeling
19620 \labelwidthstring 00.00.0000
19621 SVNコマンド: 
19622 \begin_inset space ~
19623 \end_inset
19624
19625
19626 \begin_inset Newline newline
19627 \end_inset
19628
19629
19630 \begin_inset Flex Code
19631 status collapsed
19632
19633 \begin_layout Plain Layout
19634 svn diff $path(変更が発見された場合には通知します)
19635 \begin_inset Newline newline
19636 \end_inset
19637
19638 svn update –accept mine-full $path
19639 \end_layout
19640
19641 \end_inset
19642
19643
19644 \end_layout
19645
19646 \begin_layout Standard
19647 ここで
19648 \begin_inset Flex Code
19649 status collapsed
19650
19651 \begin_layout Plain Layout
19652 $path
19653 \end_layout
19654
19655 \end_inset
19656
19657 は文書のパスを示します。
19658 \end_layout
19659
19660 \begin_layout Subsubsection
19661 履歴を表示
19662 \end_layout
19663
19664 \begin_layout Standard
19665 これは、SVN文書の全履歴を表示します。
19666 \begin_inset Flex Code
19667 status collapsed
19668
19669 \begin_layout Plain Layout
19670 svn log 
19671 \begin_inset Quotes eld
19672 \end_inset
19673
19674 <ファイル名>
19675 \begin_inset Quotes erd
19676 \end_inset
19677
19678
19679 \end_layout
19680
19681 \end_inset
19682
19683 の出力がブラウザに表示されます。
19684 \end_layout
19685
19686 \begin_layout Subsubsection
19687 ファイルロック
19688 \begin_inset CommandInset label
19689 LatexCommand label
19690 name "subsec:SVNファイルロック"
19691
19692 \end_inset
19693
19694
19695 \end_layout
19696
19697 \begin_layout Standard
19698 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
19699 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19700 するための、何らかのロック機構を導入することが考えられます。
19701 \end_layout
19702
19703 \begin_layout Standard
19704 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
19705 \begin_inset Flex Code
19706 status collapsed
19707
19708 \begin_layout Plain Layout
19709 svn:needs-lock
19710 \end_layout
19711
19712 \end_inset
19713
19714 svnファイル特性に依拠した書き込み権限の自動設定(第
19715 \begin_inset CommandInset ref
19716 LatexCommand ref
19717 reference "subsec:自動ロック特性"
19718
19719 \end_inset
19720
19721 節を参照)です
19722 \begin_inset Foot
19723 status open
19724
19725 \begin_layout Plain Layout
19726 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19727 \end_layout
19728
19729 \end_inset
19730
19731 。ある文書について、この特性が検出されたときには、\SpecialChar LyX
19732 は自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19733 り替わります。これは特に、\SpecialChar LyX
19734 でのファイルの使われ方に以下の二つのモードがあることを意味します。
19735 \end_layout
19736
19737 \begin_layout Itemize
19738 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
19739 \emph on
19740 チェックアウト
19741 \emph default
19742 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
19743 \end_layout
19744
19745 \begin_layout Itemize
19746 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
19747 \emph on
19748 チェックイン
19749 \emph default
19750 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
19751 \begin_inset Foot
19752 status collapsed
19753
19754 \begin_layout Plain Layout
19755 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
19756 \end_layout
19757
19758 \end_inset
19759
19760 、書き込みロックの解放のみが行われます。
19761 \end_layout
19762
19763 \begin_layout Standard
19764 SVNコマンド:
19765 \end_layout
19766
19767 \begin_layout Labeling
19768 \labelwidthstring 00.00.0000
19769 チェックイン: 
19770 \begin_inset Flex Code
19771 status collapsed
19772
19773 \begin_layout Plain Layout
19774 svn commit -q -m
19775 \begin_inset Quotes erd
19776 \end_inset
19777
19778 <説明>
19779 \begin_inset Quotes erd
19780 \end_inset
19781
19782  
19783 \begin_inset Quotes eld
19784 \end_inset
19785
19786 <ファイル名>
19787 \begin_inset Quotes erd
19788 \end_inset
19789
19790
19791 \end_layout
19792
19793 \end_inset
19794
19795
19796 \begin_inset Newline newline
19797 \end_inset
19798
19799
19800 \begin_inset Flex Code
19801 status collapsed
19802
19803 \begin_layout Plain Layout
19804 svn unlock 
19805 \begin_inset Quotes eld
19806 \end_inset
19807
19808 <ファイル名>
19809 \begin_inset Quotes erd
19810 \end_inset
19811
19812
19813 \end_layout
19814
19815 \end_inset
19816
19817
19818 \end_layout
19819
19820 \begin_layout Labeling
19821 \labelwidthstring 00.00.0000
19822 チェックアウト: 
19823 \begin_inset Flex Code
19824 status collapsed
19825
19826 \begin_layout Plain Layout
19827 svn update 
19828 \begin_inset Quotes eld
19829 \end_inset
19830
19831 <ファイル名>
19832 \begin_inset Quotes erd
19833 \end_inset
19834
19835
19836 \end_layout
19837
19838 \end_inset
19839
19840
19841 \begin_inset Newline newline
19842 \end_inset
19843
19844
19845 \begin_inset Flex Code
19846 status collapsed
19847
19848 \begin_layout Plain Layout
19849 svn unlock 
19850 \begin_inset Quotes eld
19851 \end_inset
19852
19853 <ファイル名>
19854 \begin_inset Quotes erd
19855 \end_inset
19856
19857
19858 \end_layout
19859
19860 \end_inset
19861
19862
19863 \end_layout
19864
19865 \begin_layout Subsubsection
19866 自動ロック特性
19867 \begin_inset CommandInset label
19868 LatexCommand label
19869 name "subsec:自動ロック特性"
19870
19871 \end_inset
19872
19873
19874 \end_layout
19875
19876 \begin_layout Standard
19877 上述したような
19878 \begin_inset Flex Code
19879 status collapsed
19880
19881 \begin_layout Plain Layout
19882 .lyx
19883 \end_layout
19884
19885 \end_inset
19886
19887 ファイルに対する書き込み権限の自動設定は、
19888 \begin_inset Flex MenuItem
19889 status collapsed
19890
19891 \begin_layout Plain Layout
19892 ファイル\SpecialChar menuseparator
19893 バージョン管理\SpecialChar menuseparator
19894 ロック特性を使用
19895 \end_layout
19896
19897 \end_inset
19898
19899 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
19900 \end_layout
19901
19902 \begin_layout Standard
19903 SVNコマンド:
19904 \end_layout
19905
19906 \begin_layout Labeling
19907 \labelwidthstring 00.00.0000
19908 チェックイン: 
19909 \begin_inset Flex Code
19910 status collapsed
19911
19912 \begin_layout Plain Layout
19913 svn propset svn:needs-lock ON 
19914 \begin_inset Quotes eld
19915 \end_inset
19916
19917 <ファイル名>
19918 \begin_inset Quotes erd
19919 \end_inset
19920
19921
19922 \end_layout
19923
19924 \end_inset
19925
19926
19927 \end_layout
19928
19929 \begin_layout Labeling
19930 \labelwidthstring 00.00.0000
19931 チェックアウト: 
19932 \begin_inset Flex Code
19933 status collapsed
19934
19935 \begin_layout Plain Layout
19936 svn propdel svn:needs-lock 
19937 \begin_inset Quotes eld
19938 \end_inset
19939
19940 <ファイル名>
19941 \begin_inset Quotes erd
19942 \end_inset
19943
19944
19945 \end_layout
19946
19947 \end_inset
19948
19949
19950 \end_layout
19951
19952 \begin_layout Subsubsection
19953 \begin_inset CommandInset label
19954 LatexCommand label
19955 name "subsec:VCS改訂情報"
19956
19957 \end_inset
19958
19959 文書の改訂情報
19960 \end_layout
19961
19962 \begin_layout Standard
19963 文書中で改訂情報を有効化するにはいくつかの方法があります。
19964 \end_layout
19965
19966 \begin_layout Itemize
19967 \SpecialChar LyX
19968 による直接サポート
19969 \begin_inset Separator parbreak
19970 \end_inset
19971
19972
19973 \end_layout
19974
19975 \begin_deeper
19976 \begin_layout Itemize
19977 ツリー改訂情報(
19978 \begin_inset Flex Code
19979 status collapsed
19980
19981 \begin_layout Plain Layout
19982 vcs-tree-revision
19983 \end_layout
19984
19985 \end_inset
19986
19987 )。
19988 \begin_inset Flex Code
19989 status collapsed
19990
19991 \begin_layout Plain Layout
19992 svnversion
19993 \end_layout
19994
19995 \end_inset
19996
19997 コマンドの出力を返します。下記の表が、結果の読み方のヒントを与えるでしょう。
19998 \end_layout
19999
20000 \begin_layout Standard
20001 \align center
20002 \begin_inset Tabular
20003 <lyxtabular version="3" rows="6" columns="2">
20004 <features tabularvalignment="middle">
20005 <column alignment="center" valignment="top">
20006 <column alignment="center" valignment="top">
20007 <row>
20008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20009 \begin_inset Text
20010
20011 \begin_layout Plain Layout
20012 出力
20013 \end_layout
20014
20015 \end_inset
20016 </cell>
20017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20018 \begin_inset Text
20019
20020 \begin_layout Plain Layout
20021 意味
20022 \end_layout
20023
20024 \end_inset
20025 </cell>
20026 </row>
20027 <row>
20028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20029 \begin_inset Text
20030
20031 \begin_layout Plain Layout
20032 4123:4168
20033 \end_layout
20034
20035 \end_inset
20036 </cell>
20037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20038 \begin_inset Text
20039
20040 \begin_layout Plain Layout
20041 改訂版の混合した作業コピー
20042 \end_layout
20043
20044 \end_inset
20045 </cell>
20046 </row>
20047 <row>
20048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20049 \begin_inset Text
20050
20051 \begin_layout Plain Layout
20052 4168M
20053 \end_layout
20054
20055 \end_inset
20056 </cell>
20057 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20058 \begin_inset Text
20059
20060 \begin_layout Plain Layout
20061 修正された作業コピー
20062 \end_layout
20063
20064 \end_inset
20065 </cell>
20066 </row>
20067 <row>
20068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20069 \begin_inset Text
20070
20071 \begin_layout Plain Layout
20072 4123S
20073 \end_layout
20074
20075 \end_inset
20076 </cell>
20077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20078 \begin_inset Text
20079
20080 \begin_layout Plain Layout
20081 スイッチされた作業コピー
20082 \end_layout
20083
20084 \end_inset
20085 </cell>
20086 </row>
20087 <row>
20088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20089 \begin_inset Text
20090
20091 \begin_layout Plain Layout
20092 4123P
20093 \end_layout
20094
20095 \end_inset
20096 </cell>
20097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20098 \begin_inset Text
20099
20100 \begin_layout Plain Layout
20101 チェックアウト頻度が低かったことによる不完全な作業コピー
20102 \end_layout
20103
20104 \end_inset
20105 </cell>
20106 </row>
20107 <row>
20108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20109 \begin_inset Text
20110
20111 \begin_layout Plain Layout
20112 4123:4168MS
20113 \end_layout
20114
20115 \end_inset
20116 </cell>
20117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20118 \begin_inset Text
20119
20120 \begin_layout Plain Layout
20121 改訂版が混合し、修正され、スイッチされた作業コピー
20122 \end_layout
20123
20124 \end_inset
20125 </cell>
20126 </row>
20127 </lyxtabular>
20128
20129 \end_inset
20130
20131
20132 \end_layout
20133
20134 \begin_layout Itemize
20135 ファイル改訂情報。
20136 \begin_inset Flex Code
20137 status collapsed
20138
20139 \begin_layout Plain Layout
20140 svn
20141 \begin_inset space ~
20142 \end_inset
20143
20144 info
20145 \begin_inset space ~
20146 \end_inset
20147
20148 –xml
20149 \begin_inset space ~
20150 \end_inset
20151
20152 file.lyx
20153 \end_layout
20154
20155 \end_inset
20156
20157 の出力を解析したものが返されます。サポートされるフラグは
20158 \begin_inset Separator parbreak
20159 \end_inset
20160
20161
20162 \end_layout
20163
20164 \begin_deeper
20165 \begin_layout Itemize
20166 最終コミットのバージョン番号(
20167 \begin_inset Flex Code
20168 status collapsed
20169
20170 \begin_layout Plain Layout
20171 vcs-revision
20172 \end_layout
20173
20174 \end_inset
20175
20176 )
20177 \end_layout
20178
20179 \begin_layout Itemize
20180 最終コミットの著者(
20181 \begin_inset Flex Code
20182 status collapsed
20183
20184 \begin_layout Plain Layout
20185 vcs-author
20186 \end_layout
20187
20188 \end_inset
20189
20190 )
20191 \end_layout
20192
20193 \begin_layout Itemize
20194 最終コミットの日付(
20195 \begin_inset Flex Code
20196 status collapsed
20197
20198 \begin_layout Plain Layout
20199 vcs-date
20200 \end_layout
20201
20202 \end_inset
20203
20204 )
20205 \end_layout
20206
20207 \begin_layout Itemize
20208 最終コミットの時間(
20209 \begin_inset Flex Code
20210 status collapsed
20211
20212 \begin_layout Plain Layout
20213 vcs-time
20214 \end_layout
20215
20216 \end_inset
20217
20218 )
20219 \end_layout
20220
20221 \end_deeper
20222 \begin_layout Standard
20223 これらの情報は、情報差込枠で得ることができます(例:
20224 \begin_inset Flex Code
20225 status collapsed
20226
20227 \begin_layout Plain Layout
20228 info-insert buffer vcs-date
20229 \end_layout
20230
20231 \end_inset
20232
20233 )。これらの情報は、ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20234 \begin_inset Flex Code
20235 status collapsed
20236
20237 \begin_layout Plain Layout
20238 .svn
20239 \end_layout
20240
20241 \end_inset
20242
20243 ディレクトリがあるときのみ)利用可能です。
20244 \end_layout
20245
20246 \end_deeper
20247 \begin_layout Itemize
20248 もう一つの—ハッカー的な—方法は、SVNキーワードを使用する方法です
20249 \begin_inset Foot
20250 status collapsed
20251
20252 \begin_layout Plain Layout
20253 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20254 \end_layout
20255
20256 \end_inset
20257
20258 。簡単に言えば、ファイルキーワード特性を設定して(例:
20259 \family sans
20260 svn propset svn:keywords 'Rev' file.lyx
20261 \family default
20262 )、文書中にキーワード\SpecialChar TeX
20263 コード
20264 \begin_inset Foot
20265 status collapsed
20266
20267 \begin_layout Plain Layout
20268 これは、\SpecialChar LyX
20269 がキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
20270 \end_layout
20271
20272 \end_inset
20273
20274 タグ(例:
20275 \begin_inset ERT
20276 status open
20277
20278 \begin_layout Plain Layout
20279
20280 $Rev$
20281 \end_layout
20282
20283 \end_inset
20284
20285 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
20286 \begin_inset ERT
20287 status open
20288
20289 \begin_layout Plain Layout
20290
20291 $Rev: 59 $
20292 \end_layout
20293
20294 \end_inset
20295
20296 )。このアプローチにはいくつか問題があります。第一に、\SpecialChar TeX
20297 の世界では「$」文字は数式を表すのに使われるので、\SpecialChar LyX
20298 中の
20299 \begin_inset Formula $Rev$
20300 \end_inset
20301
20302 という数式表現が、すべて
20303 \begin_inset Formula $Rev:59$
20304 \end_inset
20305
20306 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
20307 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
20308 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、\SpecialChar LyX
20309 がこれを直接サポートすることは、難しそうです。
20310 \end_layout
20311
20312 \begin_layout Subsection
20313 SVNとWindows環境
20314 \end_layout
20315
20316 \begin_layout Quote
20317 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。—P.
20318  A.
20319  ルービン
20320 \end_layout
20321
20322 \begin_layout Subsubsection
20323 準備
20324 \end_layout
20325
20326 \begin_layout Standard
20327 \SpecialChar LyX
20328 を導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クライアン
20329 トプログラムのWindows用インストーラは
20330 \begin_inset CommandInset href
20331 LatexCommand href
20332 name "CollabNet"
20333 target "http://www.collab.net/nonav/downloads/subversion/"
20334
20335 \end_inset
20336
20337 にあります。ユーザは
20338 \begin_inset CommandInset href
20339 LatexCommand href
20340 name "TortoiseSVN"
20341 target "http://tortoisesvn.tigris.org/"
20342
20343 \end_inset
20344
20345 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。\SpecialChar LyX
20346 外部で行う操
20347 作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、\SpecialChar LyX
20348 自身が使用するクライアントプログラムの代わりとは成りませんので
20349 、注意してください。
20350 \end_layout
20351
20352 \begin_layout Subsubsection
20353 文書をSubversion管理下に置くには
20354 \end_layout
20355
20356 \begin_layout Standard
20357 \SpecialChar LyX
20358 文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロジェク
20359 トに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下にない
20360 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、\SpecialChar LyX
20361 の外部で行います
20362 。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、DOSプロン
20363 プトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。レポジトリは
20364 既に存在し、新規プロジェクトを
20365 \begin_inset Flex Code
20366 status collapsed
20367
20368 \begin_layout Plain Layout
20369 C:
20370 \backslash
20371 new project
20372 \end_layout
20373
20374 \end_inset
20375
20376 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
20377 \begin_inset Flex Code
20378 status collapsed
20379
20380 \begin_layout Plain Layout
20381 svn –help
20382 \end_layout
20383
20384 \end_inset
20385
20386 を実行してください。
20387 \end_layout
20388
20389 \begin_layout Enumerate
20390 Windows Explorerで
20391 \begin_inset Flex Code
20392 status collapsed
20393
20394 \begin_layout Plain Layout
20395 C:
20396 \backslash
20397 new project
20398 \end_layout
20399
20400 \end_inset
20401
20402 を見つけ出して右クリックし、
20403 \begin_inset Flex MenuItem
20404 status collapsed
20405
20406 \begin_layout Plain Layout
20407 TortoiseSVN\SpecialChar menuseparator
20408 Repo-browser
20409 \end_layout
20410
20411 \end_inset
20412
20413 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
20414 \end_layout
20415
20416 \begin_layout Enumerate
20417 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
20418 \begin_inset Flex MenuItem
20419 status collapsed
20420
20421 \begin_layout Plain Layout
20422 Create folder\SpecialChar ldots
20423
20424 \end_layout
20425
20426 \end_inset
20427
20428 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
20429 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
20430 \end_layout
20431
20432 \begin_layout Enumerate
20433 再度
20434 \begin_inset Flex Code
20435 status collapsed
20436
20437 \begin_layout Plain Layout
20438 C:
20439 \backslash
20440 new project
20441 \end_layout
20442
20443 \end_inset
20444
20445 を右クリックし、今度は
20446 \begin_inset Flex MenuItem
20447 status collapsed
20448
20449 \begin_layout Plain Layout
20450 SVN Checkout\SpecialChar ldots
20451
20452 \end_layout
20453
20454 \end_inset
20455
20456 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
20457 \begin_inset Flex Code
20458 status collapsed
20459
20460 \begin_layout Plain Layout
20461 C:
20462 \backslash
20463 new project
20464 \end_layout
20465
20466 \end_inset
20467
20468 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
20469 \begin_inset Flex Code
20470 status collapsed
20471
20472 \begin_layout Plain Layout
20473 C:
20474 \backslash
20475 new project
20476 \end_layout
20477
20478 \end_inset
20479
20480 の下に
20481 \begin_inset Flex Code
20482 status collapsed
20483
20484 \begin_layout Plain Layout
20485 .svn
20486 \end_layout
20487
20488 \end_inset
20489
20490 ディレクトリが作成されます。
20491 \end_layout
20492
20493 \begin_layout Enumerate
20494 \SpecialChar LyX
20495 で文書を新規作成するか開くかして、
20496 \begin_inset Flex MenuItem
20497 status collapsed
20498
20499 \begin_layout Plain Layout
20500 ファイル\SpecialChar menuseparator
20501 バージョン管理\SpecialChar menuseparator
20502 登録
20503 \end_layout
20504
20505 \end_inset
20506
20507 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
20508 \end_layout
20509
20510 \begin_layout Standard
20511 爾後、
20512 \begin_inset Flex MenuItem
20513 status collapsed
20514
20515 \begin_layout Plain Layout
20516 ファイル\SpecialChar menuseparator
20517 バージョン管理
20518 \end_layout
20519
20520 \end_inset
20521
20522 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
20523 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
20524 \end_layout
20525
20526 \begin_layout Subsubsection
20527 Windows下でSVNと共にSSHトンネルを使うには
20528 \end_layout
20529
20530 \begin_layout Standard
20531 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
20532 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
20533 ることを覚悟しておいてください。
20534 \end_layout
20535
20536 \begin_layout Enumerate
20537 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
20538 \begin_inset Flex Code
20539 status collapsed
20540
20541 \begin_layout Plain Layout
20542 svn –version
20543 \end_layout
20544
20545 \end_inset
20546
20547 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
20548 \end_layout
20549
20550 \begin_layout Enumerate
20551 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
20552 \begin_inset Foot
20553 status open
20554
20555 \begin_layout Plain Layout
20556 \begin_inset Flex URL
20557 status collapsed
20558
20559 \begin_layout Plain Layout
20560
20561 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20562 \end_layout
20563
20564 \end_inset
20565
20566
20567 \end_layout
20568
20569 \end_inset
20570
20571 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
20572 護などを加えない
20573 \begin_inset Flex Ruby
20574 status collapsed
20575
20576 \begin_layout Plain Layout
20577
20578 \begin_inset Argument post:1
20579 status collapsed
20580
20581 \begin_layout Plain Layout
20582 キー
20583 \end_layout
20584
20585 \end_inset
20586
20587
20588 \end_layout
20589
20590 \end_inset
20591
20592 のみを使用することとします。
20593 \begin_inset Separator parbreak
20594 \end_inset
20595
20596
20597 \end_layout
20598
20599 \begin_deeper
20600 \begin_layout Enumerate
20601 \begin_inset Flex Code
20602 status collapsed
20603
20604 \begin_layout Plain Layout
20605 puttygen
20606 \end_layout
20607
20608 \end_inset
20609
20610 を使って鍵を生成します。.ppkプライベート鍵ファイルを保存し、パブリック鍵ファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブリック
20611 鍵の書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized_key
20612 s file:」編集フィールドから、直接サーバの
20613 \begin_inset Flex Code
20614 status collapsed
20615
20616 \begin_layout Plain Layout
20617 ~/.ssh/authorized_keys
20618 \end_layout
20619
20620 \end_inset
20621
20622 または
20623 \begin_inset Flex Code
20624 status collapsed
20625
20626 \begin_layout Plain Layout
20627 authorized_keys2
20628 \end_layout
20629
20630 \end_inset
20631
20632 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
20633 \end_layout
20634
20635 \begin_layout Enumerate
20636 Puttyのplinkを入手してください。SVNのconfigファイル
20637 \begin_inset Foot
20638 status collapsed
20639
20640 \begin_layout Plain Layout
20641 正確なパスはWindowsのバージョンに依りますが、通常は
20642 \begin_inset Flex Code
20643 status collapsed
20644
20645 \begin_layout Plain Layout
20646 c:
20647 \backslash
20648 Documents and Settings
20649 \backslash
20650 user
20651 \backslash
20652 Application Data
20653 \backslash
20654 Subversion
20655 \backslash
20656 config
20657 \end_layout
20658
20659 \end_inset
20660
20661
20662 \begin_inset Flex Code
20663 status collapsed
20664
20665 \begin_layout Plain Layout
20666 AppData
20667 \backslash
20668 Roaming
20669 \backslash
20670 Subversion
20671 \end_layout
20672
20673 \end_inset
20674
20675 辺りにあります。
20676 \end_layout
20677
20678 \end_inset
20679
20680 中の
20681 \begin_inset Flex Code
20682 status collapsed
20683
20684 \begin_layout Plain Layout
20685 [tunnels]
20686 \end_layout
20687
20688 \end_inset
20689
20690 セクションにsshコマンドを設定してください。例:
20691 \begin_inset Flex Code
20692 status collapsed
20693
20694 \begin_layout Plain Layout
20695 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20696 \end_layout
20697
20698 \end_inset
20699
20700
20701 \begin_inset Foot
20702 status collapsed
20703
20704 \begin_layout Plain Layout
20705 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
20706 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
20707 \end_layout
20708
20709 \end_inset
20710
20711
20712 \end_layout
20713
20714 \end_deeper
20715 \begin_layout Enumerate
20716 SVNアーカイブをチェックアウトしてください。例:
20717 \begin_inset Newline newline
20718 \end_inset
20719
20720
20721 \begin_inset Flex Code
20722 status collapsed
20723
20724 \begin_layout Plain Layout
20725 svn co svn+ssh://user@server/repository_path
20726 \end_layout
20727
20728 \end_inset
20729
20730
20731 \end_layout
20732
20733 \begin_layout Subsubsection
20734 行末変換
20735 \end_layout
20736
20737 \begin_layout Standard
20738 共著者同士がLinuxとWindowsを混在させているとき、\SpecialChar LyX
20739 は.lyxファイル中で異なった行末記号を使用することになります。これは、\SpecialChar LyX
20740 の機能に関する限り問題になりま
20741 せんが、コミット差分は巨大になり、マージではコンフリクトを引き起こしがちです。幸いにして、SVNは、.lyxファイルを
20742 \begin_inset Flex Code
20743 status collapsed
20744
20745 \begin_layout Plain Layout
20746 native
20747 \end_layout
20748
20749 \end_inset
20750
20751 モードに切り替える際
20752 \begin_inset Foot
20753 status collapsed
20754
20755 \begin_layout Plain Layout
20756 手短には
20757 \begin_inset Flex Code
20758 status collapsed
20759
20760 \begin_layout Plain Layout
20761 svn propset svn:eol-style native FILE_NAME
20762 \end_layout
20763
20764 \end_inset
20765
20766
20767 \end_layout
20768
20769 \end_inset
20770
20771 、CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20772 \begin_inset Foot
20773 status collapsed
20774
20775 \begin_layout Plain Layout
20776 \begin_inset Flex URL
20777 status collapsed
20778
20779 \begin_layout Plain Layout
20780
20781 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20782 \end_layout
20783
20784 \end_inset
20785
20786
20787 \end_layout
20788
20789 \end_inset
20790
20791
20792 \end_layout
20793
20794 \begin_layout Subsection
20795 \SpecialChar LyX
20796 におけるGITコマンド
20797 \end_layout
20798
20799 \begin_layout Standard
20800 \SpecialChar LyX
20801 で、最小限のGITコマンドがサポートされるようになりました。これらのコマンドは、
20802 \family sans
20803 ファイル\SpecialChar menuseparator
20804 バージョン管理
20805 \family default
20806 にあります。リポジトリのアクセスに、パスワード保護されたsshを使用している場合には、ターミナルウィンドウでの操作をするように促されます。\SpecialChar LyX
20807 は、GIT
20808  1.7に対して試験を行っています。
20809 \end_layout
20810
20811 \begin_layout Standard
20812 GITと他のバージョン管理システムとの大きな相違点は、GITの配布形態にあります。伝統的なバージョン管理システムでは、リポジトリをホストする、中心となるサーバー
20813 があります。ユーザーは変更点をサーバーにコミットし、他のユーザーが行った更新分をサーバーから受け取ります。一方、GITでは、ユーザーは、ローカルのリポジトリにコ
20814 ミットを行います。ローカルリポジトリは、GITコマンドの
20815 \begin_inset Flex Code
20816 status open
20817
20818 \begin_layout Plain Layout
20819 pull
20820 \end_layout
20821
20822 \end_inset
20823
20824 または
20825 \begin_inset Flex Code
20826 status open
20827
20828 \begin_layout Plain Layout
20829 push
20830 \end_layout
20831
20832 \end_inset
20833
20834 を使って、1つ以上のリモートリポジトリと同期されます。\SpecialChar LyX
20835 は、リモートのGITリポジトリとは、一切関わりません。CVSやSVNの集権的リポジトリに対して行うのと同じ
20836 ことを、ローカルのリポジトリに対してのみ行います。リモートのGITリポジトリを使用している場合には、お好みのGITクライアントを使用して、
20837 \begin_inset Flex Code
20838 status open
20839
20840 \begin_layout Plain Layout
20841 pull
20842 \end_layout
20843
20844 \end_inset
20845
20846 または
20847 \begin_inset Flex Code
20848 status open
20849
20850 \begin_layout Plain Layout
20851 push
20852 \end_layout
20853
20854 \end_inset
20855
20856 の操作を行う必要があります。
20857 \end_layout
20858
20859 \begin_layout Subsubsection
20860 登録
20861 \end_layout
20862
20863 \begin_layout Standard
20864 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
20865 \family sans
20866 登録
20867 \family default
20868 項目は表示されません。
20869 \end_layout
20870
20871 \begin_layout Standard
20872 本コマンドは、既に文書のあるディレクトリをGIT管理下に置いている場合に
20873 \emph on
20874 のみ
20875 \emph default
20876 (すなわち
20877 \begin_inset Flex Code
20878 status collapsed
20879
20880 \begin_layout Plain Layout
20881 .git/index
20882 \end_layout
20883
20884 \end_inset
20885
20886 ファイルが存在する場合にのみ)、お使いの文書をGITに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
20887 \end_layout
20888
20889 \begin_layout Standard
20890 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
20891 \end_layout
20892
20893 \begin_layout Standard
20894 実行されるGITコマンドは、
20895 \begin_inset Flex Code
20896 status collapsed
20897
20898 \begin_layout Plain Layout
20899 git add "<ファイル名>"
20900 \end_layout
20901
20902 \end_inset
20903
20904 です。
20905 \end_layout
20906
20907 \begin_layout Standard
20908 スイッチの説明は
20909 \begin_inset Flex Code
20910 status collapsed
20911
20912 \begin_layout Plain Layout
20913 man git
20914 \end_layout
20915
20916 \end_inset
20917
20918 をお読みください。
20919 \end_layout
20920
20921 \begin_layout Subsubsection
20922 変更をチェックイン
20923 \end_layout
20924
20925 \begin_layout Standard
20926 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
20927 \end_layout
20928
20929 \begin_layout Standard
20930 GITコマンド:
20931 \begin_inset Flex Code
20932 status collapsed
20933
20934 \begin_layout Plain Layout
20935 git commit -q -m
20936 \begin_inset Quotes erd
20937 \end_inset
20938
20939 <入力した説明文>
20940 \begin_inset Quotes erd
20941 \end_inset
20942
20943  "<ファイル名>"
20944 \end_layout
20945
20946 \end_inset
20947
20948
20949 \end_layout
20950
20951 \begin_layout Subsubsection
20952 リポジトリ版に戻す
20953 \end_layout
20954
20955 \begin_layout Standard
20956 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
20957 \end_layout
20958
20959 \begin_layout Standard
20960 GITコマンド:
20961 \begin_inset Flex Code
20962 status collapsed
20963
20964 \begin_layout Plain Layout
20965 git checkout -q 
20966 \begin_inset Quotes eld
20967 \end_inset
20968
20969 <ファイル名>
20970 \begin_inset Quotes erd
20971 \end_inset
20972
20973
20974 \end_layout
20975
20976 \end_inset
20977
20978
20979 \end_layout
20980
20981 \begin_layout Subsubsection
20982 ファイル名変更
20983 \end_layout
20984
20985 \begin_layout Standard
20986 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
20987 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
20988 ァイルの相対パスは、(
20989 \family sans
20990 ファイル\SpecialChar menuseparator
20991 名前をつけて保存\SpecialChar ldots
20992
20993 \family default
20994 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
20995 \end_layout
20996
20997 \begin_layout Labeling
20998 \labelwidthstring 00.00.0000
20999 GITコマンド:
21000 \end_layout
21001
21002 \begin_layout Labeling
21003 \labelwidthstring 00.00.0000
21004 \begin_inset Flex Code
21005 status collapsed
21006
21007 \begin_layout Plain Layout
21008 git mv "<ファイル名>" "<新ファイル名>"
21009 \end_layout
21010
21011 \end_inset
21012
21013
21014 \end_layout
21015
21016 \begin_layout Labeling
21017 \labelwidthstring 00.00.0000
21018 \begin_inset Flex Code
21019 status collapsed
21020
21021 \begin_layout Plain Layout
21022 git commit
21023 \end_layout
21024
21025 \end_inset
21026
21027
21028 \end_layout
21029
21030 \begin_layout Subsubsection
21031 履歴を表示
21032 \end_layout
21033
21034 \begin_layout Standard
21035 これは、GIT文書の全履歴を表示します。
21036 \begin_inset Flex Code
21037 status collapsed
21038
21039 \begin_layout Plain Layout
21040 git log 
21041 \begin_inset Quotes eld
21042 \end_inset
21043
21044 <ファイル名>
21045 \begin_inset Quotes erd
21046 \end_inset
21047
21048
21049 \end_layout
21050
21051 \end_inset
21052
21053 の出力がブラウザに表示されます。
21054 \end_layout
21055
21056 \begin_layout Subsubsection
21057 改訂情報
21058 \end_layout
21059
21060 \begin_layout Standard
21061 \SpecialChar LyX
21062 は、ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
21063 \family typewriter
21064 git log -n 1 --pretty=format:%H%n%an%n%ai
21065 \family default
21066 によって抽出されます。ツリーバージョン情報は、
21067 \family typewriter
21068 git describe --abbrev --dirty --long
21069 \family default
21070 で取得されます。詳細については、第
21071 \begin_inset CommandInset ref
21072 LatexCommand ref
21073 reference "subsec:VCS改訂情報"
21074
21075 \end_inset
21076
21077 節を参照してください。
21078 \end_layout
21079
21080 \begin_layout Subsection
21081 さらなる調整
21082 \end_layout
21083
21084 \begin_layout Standard
21085 vcコマンド機構が最近になって付け加えられたおかげで、\SpecialChar LyX
21086 のパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
21087 \end_layout
21088
21089 \begin_layout Standard
21090 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
21091 \end_layout
21092
21093 \begin_layout Description
21094 コミット: 
21095 \begin_inset Flex Code
21096 status collapsed
21097
21098 \begin_layout Plain Layout
21099 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21100 \end_layout
21101
21102 \end_inset
21103
21104
21105 \end_layout
21106
21107 \begin_layout Description
21108 元に戻す: 
21109 \begin_inset Flex Code
21110 status collapsed
21111
21112 \begin_layout Plain Layout
21113 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21114 \end_layout
21115
21116 \end_inset
21117
21118
21119 \end_layout
21120
21121 \begin_layout Subsection
21122 バージョン管理と文書比較
21123 \end_layout
21124
21125 \begin_layout Standard
21126 バージョン管理は、通常
21127 \begin_inset Flex Code
21128 status collapsed
21129
21130 \begin_layout Plain Layout
21131 diff
21132 \end_layout
21133
21134 \end_inset
21135
21136 ダンプを生成することによって、改訂版の間の変更点を検査するのが、典型的な使用法です。これは平文ファイルには有効なのですが、複雑な構造を持つ\SpecialChar LyX
21137 ファイルの場合には、あ
21138 まり便利ではありません。そこで、\SpecialChar LyX
21139 は独自の文書比較機能を提供しています。この機能を呼び出すには2つの方法があります。1つは、\SpecialChar LyX
21140
21141 \begin_inset Flex Code
21142 status collapsed
21143
21144 \begin_layout Plain Layout
21145 VC_COMPARE
21146 \end_layout
21147
21148 \end_inset
21149
21150 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21151 関数説明書を参照)、もう1つは
21152 \begin_inset Flex MenuItem
21153 status collapsed
21154
21155 \begin_layout Plain Layout
21156 旧改訂と比較\SpecialChar ldots
21157
21158 \end_layout
21159
21160 \end_inset
21161
21162 メニューないしアイコンを使用する方法です。当該文書のうち、任意の2つの改訂版を比較することもできますし、編集中の現行版を古い改訂版と比較することもできます(この
21163 とき改訂版遡及数「
21164 \begin_inset Flex MenuItem
21165 status collapsed
21166
21167 \begin_layout Plain Layout
21168 0
21169 \end_layout
21170
21171 \end_inset
21172
21173 」は、編集中のファイルと最後にコミットした改訂版との比較を意味します)。
21174 \end_layout
21175
21176 \begin_layout Standard
21177 この機能は、SVNとRCSでサポートされていますが、RCSは、より複雑なバージョン付けスキームを持っているため、制約があります。ダイアログ中で改訂版を指定する際
21178 の数字は、つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」)。現在のところ、改訂のGIT表記はサポートされておらず、HEAD~
21179 Xの形で表記されるXステップ前の改訂版を、編集中文書と比較することのみが可能です。
21180 \end_layout
21181
21182 \begin_layout Section
21183 文芸プログラミング
21184 \end_layout
21185
21186 \begin_layout Standard
21187
21188 \noun on
21189 Kayvan Sylvan
21190 \noun default
21191 (kayvan@sylvan.com)改訂 
21192 \noun on
21193 Edmar Wienskoski Jr.
21194 \noun default
21195 (edmar-w-jr@technologist.com)原文
21196 \end_layout
21197
21198 \begin_layout Subsection
21199 はじめに
21200 \end_layout
21201
21202 \begin_layout Standard
21203 この節の主な目的は、文芸的プログラミング(literate programming)のために、\SpecialChar LyX
21204 をどう使えばよいかをお見せすることです。ここでは、あなたがこのプロ
21205 グラミング技術をよくご存じで、「tangling」や「weaving」の意味するところを知っているものとして説明します。そうでない場合には、以下の各節にあるウェ
21206 ブリンクをたどってください。そこには、かつての開発の歴史から最新のツールチップまで、たくさんの良質なドキュメンテーションがあります。
21207 \end_layout
21208
21209 \begin_layout Standard
21210 また、あなたが、\SpecialChar LyX
21211 の設定を変更することを厭わない程度まで\SpecialChar LyX
21212 に習熟しており、Xリソースファイルにも親しんでいることを前提にしています。そうでない場合は、あなたの必要と
21213 するトピックを扱っている、\SpecialChar LyX
21214 の他の説明書で調べてください。
21215 \end_layout
21216
21217 \begin_layout Subsection
21218 文芸プログラミング
21219 \end_layout
21220
21221 \begin_layout Standard
21222 以下は、文芸プログラミング FAQからの抜粋です。
21223 \end_layout
21224
21225 \begin_layout Quotation
21226 文芸プログラミングは、人間が読むのに適した形でのドキュメンテーションとソースの組合わせです。実際、文芸的プログラムは楽しい読み物であるべきであり、さらには参加し
21227 たいとさえ思わせるべきなのです!(ボブ、ごめん。言わずにはいれなかった。)一般的に、文芸プログラムは、ソースとドキュメンテーションを同一ファイル上に結合したもの
21228 です。そして、文芸プログラミングツールは、ファイルを解析して、読むことのできるドキュメンテーションか、あるいはコンパイル可能なソースを生成します。文芸プログラミ
21229 ングのWEBスタイルは、D.
21230 \begin_inset space \thinspace{}
21231 \end_inset
21232
21233 E.
21234  Knuthが、\SpecialChar TeX
21235 組版ソフトウエアを開発中に作り出したものです。
21236 \end_layout
21237
21238 \begin_layout Standard
21239 他のエキスパートの発言です。
21240 \end_layout
21241
21242 \begin_layout Quotation
21243
21244 \emph on
21245 文芸プログラミングは、冗長なコメント付けと何が違いますか?
21246 \end_layout
21247
21248 \begin_layout Quotation
21249 3つの際立った特徴があります。重要な順に列挙すれば、
21250 \begin_inset Separator parbreak
21251 \end_inset
21252
21253
21254 \end_layout
21255
21256 \begin_deeper
21257 \begin_layout Itemize
21258 推敲の順序が柔軟
21259 \end_layout
21260
21261 \begin_layout Itemize
21262 ブラウジングの自動サポート
21263 \end_layout
21264
21265 \begin_layout Itemize
21266 特に図式と数式を含んだドキュメンテーションの組版
21267 \end_layout
21268
21269 \end_deeper
21270 \begin_layout Quotation
21271 などがあります。
21272 \end_layout
21273
21274 \begin_layout Standard
21275 あなたの興味に火を付けたところで書誌情報を見てみましょう。
21276 \end_layout
21277
21278 \begin_layout Subsubsection
21279 書誌情報
21280 \end_layout
21281
21282 \begin_layout Standard
21283 完全な文芸プログラミング FAQは
21284 \end_layout
21285
21286 \begin_layout Quote
21287 Literate Programming FAQ 
21288 \begin_inset Flex URL
21289 status collapsed
21290
21291 \begin_layout Plain Layout
21292
21293 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21294 \end_layout
21295
21296 \end_inset
21297
21298
21299 \end_layout
21300
21301 \begin_layout Standard
21302 にあります。
21303 \end_layout
21304
21305 \begin_layout Standard
21306 このFAQには、23(二十三です!)の文芸プログラミング用ツールが列挙されています。一部のツールは、特定のプログラミング言語用に特化したものですが、一般的な対象
21307 を持つものもあります。私は自分で使うのに、いくつかの理由から
21308 \noun on
21309 Noweb
21310 \noun default
21311 を選びました。
21312 \end_layout
21313
21314 \begin_layout Itemize
21315 説明文書を\SpecialChar LaTeX
21316 でもHTMLでも出力できる。
21317 \end_layout
21318
21319 \begin_layout Itemize
21320 開放的なアーキテクチャに持っているので、新しいフィルタをプラグインとして加えたり、自分が必要な特別な処理を実行することが容易である。
21321 \end_layout
21322
21323 \begin_layout Itemize
21324 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです)。
21325 \end_layout
21326
21327 \begin_layout Itemize
21328 無料である。
21329 \end_layout
21330
21331 \begin_layout Standard
21332 Nowebのウェブページは
21333 \end_layout
21334
21335 \begin_layout Quote
21336 Nowebホームページ 
21337 \begin_inset Flex URL
21338 status collapsed
21339
21340 \begin_layout Plain Layout
21341
21342 http://www.cs.virginia.edu/~nr/noweb/
21343 \end_layout
21344
21345 \end_inset
21346
21347
21348 \end_layout
21349
21350 \begin_layout Standard
21351 にあります。ここから始めれば、たくさんの興味深いリンクや、文芸プログラミングの用例にたどり着くことができます。
21352 \end_layout
21353
21354 \begin_layout Subsection
21355 \SpecialChar LyX
21356 とNowebを使った文芸プログラミング
21357 \end_layout
21358
21359 \begin_layout Standard
21360 \SpecialChar LyX
21361 における文芸プログラミングのサポートは、\SpecialChar LyX
21362 の汎用変換機構を使用して実現しています。このサポートは「Noweb非依存」的な方法で提供されているので、LyXの設定を変
21363 更するだけで、自分の好きな他の文芸プログラミングツールを使って、この新しい\SpecialChar LyX
21364 の機能を利用することができます。
21365 \end_layout
21366
21367 \begin_layout Subsubsection
21368 ドキュメントとコードの生成(weavingおよびtangling)
21369 \end_layout
21370
21371 \begin_layout Paragraph
21372 nowebモジュールの使用
21373 \end_layout
21374
21375 \begin_layout Standard
21376 Nowebと\SpecialChar LyX
21377 の導入に成功したならば、新規文書を開いたときにはいつも、文書クラスを選択した後、
21378 \family sans
21379 文書\SpecialChar menuseparator
21380 設定
21381 \family default
21382 メニューで「noweb」モジュールを追加するようにしてください。Nowebが正しく導入されていれば、「モジュール」リンクをクリックした際、利用可能リストに「no
21383 web」モジュールが表示され、文書に追加できるようになっています。
21384 \end_layout
21385
21386 \begin_layout Paragraph
21387 コードの入力
21388 \end_layout
21389
21390 \begin_layout Standard
21391 \SpecialChar LyX
21392 では、
21393 \begin_inset Flex Noun
21394 status collapsed
21395
21396 \begin_layout Plain Layout
21397 Chunk
21398 \end_layout
21399
21400 \end_inset
21401
21402 という名前のレイアウトを使えば、コードを入力することができます。Nowebは次のようにchunks を区切ります。
21403 \end_layout
21404
21405 \begin_layout LyX-Code
21406 <<My code>>=
21407 \end_layout
21408
21409 \begin_layout LyX-Code
21410   code
21411 \end_layout
21412
21413 \begin_layout LyX-Code
21414   more code
21415 \end_layout
21416
21417 \begin_layout LyX-Code
21418   even more code
21419 \end_layout
21420
21421 \begin_layout LyX-Code
21422   @
21423 \end_layout
21424
21425 \begin_layout Standard
21426 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまり、\SpecialChar LyX
21427 は、この間に書かれたものを特別に解釈することは決してあってはなりません。
21428 これも
21429 \begin_inset Flex Noun
21430 status collapsed
21431
21432 \begin_layout Plain Layout
21433 Chunk
21434 \end_layout
21435
21436 \end_inset
21437
21438 によって取り扱われ、通常の段落のように見えますが、自由に空白を入れることができます。
21439 \end_layout
21440
21441 \begin_layout Standard
21442 特殊な注釈として、chunk内でNowebの「%def」を使えば、Nowebのidentifierの相互参照に項目を加えることができます。次の例を見てください。
21443 \end_layout
21444
21445 \begin_layout LyX-Code
21446 <<My chunk>>=
21447 \end_layout
21448
21449 \begin_layout LyX-Code
21450 def some_function(args):
21451 \end_layout
21452
21453 \begin_layout LyX-Code
21454    "This is the doc string for this function."
21455 \end_layout
21456
21457 \begin_layout LyX-Code
21458    print "My args: ", args
21459 \end_layout
21460
21461 \begin_layout LyX-Code
21462 @ %def some_function
21463 \end_layout
21464
21465 \begin_layout Standard
21466 これをどのように使って、その結果相互参照がどうなるかは
21467 \emph on
21468 LIBDIR/examples/listerrors.lyx
21469 \emph default
21470 の中の文芸pythonプログラムを見るとよくわかります。
21471 \end_layout
21472
21473 \begin_layout Paragraph
21474 説明文書の生成
21475 \end_layout
21476
21477 \begin_layout Standard
21478 この時点で、適切な文書クラスを持ち、いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです。これをどうやって印刷したらいいのでしょう。答えは
21479 簡単で、通常の文書で行うように
21480 \family sans
21481 文書\SpecialChar menuseparator
21482 表示
21483 \family default
21484 等を選ぶだけです。特別な手続きは必要ありません。
21485 \end_layout
21486
21487 \begin_layout Standard
21488 理解を助けるために、\SpecialChar LyX
21489 の内部で何が起っているかを説明しておきましょう。
21490 \end_layout
21491
21492 \begin_layout Enumerate
21493
21494 \family sans
21495 文書\SpecialChar menuseparator
21496 更新
21497 \family default
21498 が選択されると、\SpecialChar LaTeX
21499 ファイルがつくられます。
21500 \begin_inset Separator parbreak
21501 \end_inset
21502
21503
21504 \end_layout
21505
21506 \begin_deeper
21507 \begin_layout Standard
21508 文書が文芸プログラミング用のクラスであった場合には、拡張子に(
21509 \begin_inset Flex MenuItem
21510 status collapsed
21511
21512 \begin_layout Plain Layout
21513 設定
21514 \end_layout
21515
21516 \end_inset
21517
21518 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
21519 \end_layout
21520
21521 \end_deeper
21522 \begin_layout Enumerate
21523 違いがファイル名だけなのに注意してください。\SpecialChar LyX
21524 による特別な処理は必要ありません。
21525 \begin_inset Flex Noun
21526 status collapsed
21527
21528 \begin_layout Plain Layout
21529 Chunk
21530 \end_layout
21531
21532 \end_inset
21533
21534 環境でコードを入力するのだけがポイントです。
21535 \end_layout
21536
21537 \begin_layout Enumerate
21538 文書が何らかの文芸プログラムクラスなら、\SpecialChar LyX
21539 は、\SpecialChar LyX
21540 からNowebへの内部変換子を用い、それからNowebから\SpecialChar LaTeX
21541 への変換子
21542 \begin_inset Foot
21543 status collapsed
21544
21545 \begin_layout Plain Layout
21546 これらの変換子は、
21547 \family sans
21548 ツール\SpecialChar menuseparator
21549 設定
21550 \family default
21551 パネルの変換子タブに定義されています。変換子の一般的な情報については、取扱説明書『
21552 \emph on
21553 カスタマイズ篇
21554 \emph default
21555 』の「
21556 \emph on
21557 変換子
21558 \emph default
21559 」の節をご覧ください。
21560 \end_layout
21561
21562 \end_inset
21563
21564 を使って\SpecialChar LaTeX
21565 ファイルを生成します。
21566 \begin_inset Separator parbreak
21567 \end_inset
21568
21569
21570 \end_layout
21571
21572 \begin_deeper
21573 \begin_layout Standard
21574 それ以外の場合はこのステップを飛ばします。
21575 \end_layout
21576
21577 \end_deeper
21578 \begin_layout Enumerate
21579 最後に\SpecialChar LaTeX
21580 が実行され、通常の文書と同じ後処理が行われます。
21581 \end_layout
21582
21583 \begin_layout Standard
21584 様々な変換子が実行するコマンドを変更すれば、簡単に、特定の「文芸プログラムツール」から変更することができます。
21585 \end_layout
21586
21587 \begin_layout Paragraph
21588 コードの生成
21589 \end_layout
21590
21591 \begin_layout Standard
21592 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様に\SpecialChar LaTeX
21593 ファイルが生成されます。それから\SpecialChar LyX
21594
21595 \family typewriter
21596 Noweb->Program
21597 \family default
21598 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
21599 \end_layout
21600
21601 \begin_layout Enumerate
21602 変換プログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマットへ
21603 変換します)。
21604 \end_layout
21605
21606 \begin_layout Enumerate
21607 エラーログ解析子。これはエラーメッセージを\SpecialChar LyX
21608 が理解できる形へ書き直します。これによって、\SpecialChar LyX
21609 はファイルバッファの正しい位置へエラーボックスを配置することができます。
21610 \end_layout
21611
21612 \begin_layout Standard
21613 冒頭部、「変換子」設定は
21614 \begin_inset Newline newline
21615 \end_inset
21616
21617
21618 \begin_inset Quotes eld
21619 \end_inset
21620
21621
21622 \family typewriter
21623 build-script $$i $$r
21624 \family default
21625
21626 \begin_inset Quotes erd
21627 \end_inset
21628
21629
21630 \begin_inset Newline newline
21631 \end_inset
21632
21633 と指定します。これは基本的に、\SpecialChar LyX
21634
21635 \begin_inset Quotes erd
21636 \end_inset
21637
21638
21639 \family typewriter
21640 build-script
21641 \family default
21642
21643 \begin_inset Quotes erd
21644 \end_inset
21645
21646 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21647 の一時ファイル用のディレクトリにつくられる)、Nowebファイルの名前と元の\SpecialChar LyX
21648 ファイルのディレクトリパスを使って呼び出すこ
21649 とを意味しています。
21650 \end_layout
21651
21652 \begin_layout Standard
21653 以下に「build-script」の一例を書いておきます。パスが通っているディレクトリに置いて使います。
21654 \end_layout
21655
21656 \begin_layout Standard
21657 \begin_inset VSpace defskip
21658 \end_inset
21659
21660
21661 \begin_inset Newpage pagebreak
21662 \end_inset
21663
21664
21665 \end_layout
21666
21667 \begin_layout Standard
21668
21669 \family sans
21670 #!/bin/sh
21671 \end_layout
21672
21673 \begin_layout Standard
21674
21675 \family sans
21676 #
21677 \end_layout
21678
21679 \begin_layout Standard
21680
21681 \family sans
21682 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21683 \end_layout
21684
21685 \begin_layout Standard
21686 \begin_inset VSpace defskip
21687 \end_inset
21688
21689
21690 \end_layout
21691
21692 \begin_layout Standard
21693 変換子設定の次の部分は「フラグ」で、これは
21694 \begin_inset Quotes erd
21695 \end_inset
21696
21697
21698 \family typewriter
21699 parselog=$$s/scripts/listerrors
21700 \family default
21701
21702 \begin_inset Quotes erd
21703 \end_inset
21704
21705 に設定されます。
21706 \begin_inset Newline newline
21707 \end_inset
21708
21709 これは、
21710 \begin_inset Quotes erd
21711 \end_inset
21712
21713 build-script
21714 \begin_inset Quotes erd
21715 \end_inset
21716
21717 プロセスが生成したエラーを
21718 \begin_inset Quotes erd
21719 \end_inset
21720
21721 listerrors
21722 \begin_inset Quotes erd
21723 \end_inset
21724
21725 プログラムを介して処理するものです。
21726 \end_layout
21727
21728 \begin_layout Standard
21729 ビルドは、通常\SpecialChar LyX
21730 の一時ディレクトリで行われるので、変換によって生成されたファイルはそのディレクトリに置かれます。\SpecialChar LyX
21731 は、主要ファイルとみなされるものをコピーして取り出
21732 しますが、
21733 \family typewriter
21734 Noweb→プログラム
21735 \family default
21736 変換は複数のファイルを生成することがあるので、\SpecialChar LyX
21737 を閉じる際に大半が削除される可能性があります。これが、NOWEB_OUTPUT_DIR環境変数を渡して、build
21738 -script chunkが生成したファイルをその場所に置かれるようにする理由です。
21739 \end_layout
21740
21741 \begin_layout Paragraph
21742 文章中でのプログラムの構築操作の説明
21743 \end_layout
21744
21745 \begin_layout Standard
21746 \SpecialChar LyX
21747 とNowebの統合の最後の部分は、
21748 \begin_inset Quotes eld
21749 \end_inset
21750
21751 build-script
21752 \begin_inset Quotes erd
21753 \end_inset
21754
21755  chunkです。一般に、あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
21756 iptでは、chunkを見つけるのにnotangleコマンドを使い、shを使って起動します。
21757 \end_layout
21758
21759 \begin_layout Standard
21760 以下に典型的なchunkがどのようなものかを書いておきます。
21761 \end_layout
21762
21763 \begin_layout LyX-Code
21764 <<build-script>>=
21765 \begin_inset Newline newline
21766 \end_inset
21767
21768
21769 \end_layout
21770
21771 \begin_layout LyX-Code
21772 #!/bin/sh
21773 \begin_inset Newline newline
21774 \end_inset
21775
21776
21777 \begin_inset Newline newline
21778 \end_inset
21779
21780 if [ -z "${NOWEB_SOURCE}" ]
21781 \begin_inset Newline newline
21782 \end_inset
21783
21784 then
21785 \end_layout
21786
21787 \begin_layout LyX-Code
21788 NOWEB_SOURCE=myfile.nw
21789 \begin_inset Newline newline
21790 \end_inset
21791
21792 fi
21793 \begin_inset Newline newline
21794 \end_inset
21795
21796 [...
21797  code to extract files ...
21798  use NOWEB_OUTPUT_DIR here ...]
21799 \begin_inset Newline newline
21800 \end_inset
21801
21802 [...
21803  code to compile files ...]
21804 \begin_inset Newline newline
21805 \end_inset
21806
21807 @
21808 \end_layout
21809
21810 \begin_layout Standard
21811
21812 \emph on
21813 LIBDIR/examples/listerrors.lyx
21814 \emph default
21815
21816 \emph on
21817 LIBDIR/examples/Literate.lyx
21818 \emph default
21819 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
21820 ってもらうための例です。また、
21821 \emph on
21822 LIBDIR/examples/noweb2lyx.lyx
21823 \emph default
21824 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、\SpecialChar LyX
21825 の文芸プログラミングのサポートがプログラム言語に依存しない
21826 ことを示しています。
21827 \end_layout
21828
21829 \begin_layout Subsubsection
21830 \SpecialChar LyX
21831 の設定
21832 \end_layout
21833
21834 \begin_layout Standard
21835 すべての文芸プログラムのための設定は、
21836 \family sans
21837 ツール\SpecialChar menuseparator
21838 設定
21839 \family default
21840 パネルの「ファイル処理」タブですることができます。重要な部分を見ておきましょう。
21841 \end_layout
21842
21843 \begin_layout Description
21844 「NoWeb」形式 ファイル形式タブで設定します。ここで、Noweb特有の設定を行います。
21845 \family sans
21846 GUI名
21847 \family default
21848
21849 \family typewriter
21850 NoWeb
21851 \family default
21852 に、拡張子を
21853 \family typewriter
21854 .nw
21855 \family default
21856 に設定してください。これによって、\SpecialChar LyX
21857 に変換プロセスの第一段階でつくられるファイルに
21858 \family typewriter
21859 .nw
21860 \family default
21861 という拡張子をつけることを指示します。
21862 \end_layout
21863
21864 \begin_layout Description
21865 プログラム形式 これは、変換の終着点を示すためだけの、空の形式です(これがあることで、変換子を作ることができます)。
21866 \end_layout
21867
21868 \begin_layout Description
21869
21870 \family sans
21871 NoWeb
21872 \family default
21873 ->
21874 \family sans
21875 \SpecialChar LaTeX
21876
21877 \family default
21878  この変換子は、文芸的文書の「weaving」を行います。Nowebの場合、「
21879 \family typewriter
21880 noweave -delay -index $$i > $$o
21881 \family default
21882 」に設定されます。
21883 \end_layout
21884
21885 \begin_layout Description
21886
21887 \family sans
21888 NoWeb
21889 \family default
21890 ->
21891 \family sans
21892 Program
21893 \family default
21894  これは「tangling」を行います。上述のように、変換子は「
21895 \family typewriter
21896 build-script $$i $$r
21897 \family default
21898 」、フラグは「
21899 \family typewriter
21900 parselog=$$s/scripts/listerrors
21901 \family default
21902 」となります。
21903 \end_layout
21904
21905 \begin_layout Subsubsection
21906 デバッグ機能拡張
21907 \end_layout
21908
21909 \begin_layout Standard
21910 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21911 サーバに実装されました。
21912 \end_layout
21913
21914 \begin_layout Standard
21915 ddd/gdbでデバッグしているとき、一つの
21916 \begin_inset Flex Ruby
21917 status collapsed
21918
21919 \begin_layout Plain Layout
21920
21921 \begin_inset Argument post:1
21922 status collapsed
21923
21924 \begin_layout Plain Layout
21925 キー
21926 \end_layout
21927
21928 \end_inset
21929
21930
21931 \end_layout
21932
21933 \end_inset
21934
21935 ストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-Vになっています。この設定はdddで
21936 \begin_inset Flex MenuItem
21937 status collapsed
21938
21939 \begin_layout Plain Layout
21940 ツール\SpecialChar menuseparator
21941 設定\SpecialChar menuseparator
21942 ファイル書式
21943 \end_layout
21944
21945 \end_inset
21946
21947 ウインドウを表示して、
21948 \begin_inset Flex MenuItem
21949 status collapsed
21950
21951 \begin_layout Plain Layout
21952 編集プログラム
21953 \end_layout
21954
21955 \end_inset
21956
21957 エントリを変えると変えることができます。
21958 \end_layout
21959
21960 \begin_layout Standard
21961 新しい\SpecialChar LyX
21962 サーバの関数と、このdddの機能を使うために
21963 \begin_inset Flex MenuItem
21964 status collapsed
21965
21966 \begin_layout Plain Layout
21967 編集プログラム
21968 \end_layout
21969
21970 \end_inset
21971
21972 を次のように設定してください。
21973 \end_layout
21974
21975 \begin_layout Standard
21976 \begin_inset VSpace defskip
21977 \end_inset
21978
21979
21980 \end_layout
21981
21982 \begin_layout Standard
21983
21984 \family sans
21985 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21986 \end_layout
21987
21988 \begin_layout Standard
21989 \begin_inset VSpace defskip
21990 \end_inset
21991
21992
21993 \end_layout
21994
21995 \begin_layout Standard
21996 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21997 サーバに情報を送り、\SpecialChar LyX
21998
21999 は同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります。
22000 \end_layout
22001
22002 \begin_layout Standard
22003 この機能が動くには\SpecialChar LyX
22004 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
22005 サーバーは使えないようになっています)。\SpecialChar LyX
22006 サーバを使えるようにするには、
22007 \family sans
22008
22009 \begin_inset Flex MenuItem
22010 status collapsed
22011
22012 \begin_layout Plain Layout
22013
22014 \family sans
22015 設定
22016 \end_layout
22017
22018 \end_inset
22019
22020
22021 \family default
22022 (
22023 \family sans
22024
22025 \begin_inset Flex MenuItem
22026 status collapsed
22027
22028 \begin_layout Plain Layout
22029
22030 \family sans
22031 パス
22032 \end_layout
22033
22034 \end_inset
22035
22036
22037 \family default
22038 タブ)の
22039 \family sans
22040
22041 \begin_inset Flex MenuItem
22042 status collapsed
22043
22044 \begin_layout Plain Layout
22045
22046 \family sans
22047 \SpecialChar LyX
22048 サーバーパイプ
22049 \family default
22050
22051 \end_layout
22052
22053 \end_inset
22054
22055
22056 \family default
22057
22058 \begin_inset Quotes eld
22059 \end_inset
22060
22061
22062 \family typewriter
22063 /home/<your-home-directory>/.lyx/lyxpipe
22064 \family default
22065
22066 \begin_inset Quotes erd
22067 \end_inset
22068
22069  のようにパスを指定してください。
22070 \end_layout
22071
22072 \begin_layout Standard
22073 詳しくは第
22074 \begin_inset CommandInset ref
22075 LatexCommand ref
22076 reference "chap:LyXサーバー"
22077
22078 \end_inset
22079
22080 章を読んでください。
22081 \end_layout
22082
22083 \begin_layout Subsubsection
22084 ツールバー拡張
22085 \end_layout
22086
22087 \begin_layout Standard
22088 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
22089 \family sans
22090 標準
22091 \family default
22092 ・節・
22093 \family sans
22094 \SpecialChar LaTeX
22095
22096 \family default
22097
22098 \family sans
22099 \SpecialChar LyX
22100 コード
22101 \family default
22102
22103 \family sans
22104 Chunk
22105 \family default
22106 環境用のボタンを用意しています。最後の一つはファイルメニュー項目の「Build Program」への
22107 \begin_inset Flex Ruby
22108 status collapsed
22109
22110 \begin_layout Plain Layout
22111
22112 \family roman
22113 \series medium
22114 \shape up
22115 \size normal
22116 \emph off
22117 \bar no
22118 \noun off
22119 \color none
22120 捷径
22121 \family default
22122 \series default
22123 \shape default
22124 \size default
22125 \emph default
22126 \bar default
22127 \noun default
22128 \color inherit
22129
22130 \begin_inset Argument post:1
22131 status collapsed
22132
22133 \begin_layout Plain Layout
22134 ショートカット
22135 \end_layout
22136
22137 \end_inset
22138
22139
22140 \end_layout
22141
22142 \end_inset
22143
22144 です。
22145 \end_layout
22146
22147 \begin_layout Standard
22148 \SpecialChar LyX
22149 はツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
22150 \begin_inset Flex MenuItem
22151 status collapsed
22152
22153 \begin_layout Plain Layout
22154 文書\SpecialChar menuseparator
22155 更新\SpecialChar menuseparator
22156 DVI
22157 \end_layout
22158
22159 \end_inset
22160
22161
22162 \begin_inset Flex MenuItem
22163 status collapsed
22164
22165 \begin_layout Plain Layout
22166 文書\SpecialChar menuseparator
22167 表示\SpecialChar menuseparator
22168 DVI
22169 \end_layout
22170
22171 \end_inset
22172
22173 を組み合わせたものになっています。
22174 \end_layout
22175
22176 \begin_layout LyX-Code
22177 Toolbar
22178 \end_layout
22179
22180 \begin_layout LyX-Code
22181   Layouts
22182 \end_layout
22183
22184 \begin_layout LyX-Code
22185   Icon "layout Standard"
22186 \end_layout
22187
22188 \begin_layout LyX-Code
22189   Icon "layout Section"
22190 \end_layout
22191
22192 \begin_layout LyX-Code
22193   Icon "layout \SpecialChar LaTeX
22194 "
22195 \end_layout
22196
22197 \begin_layout LyX-Code
22198   Icon "layout \SpecialChar LyX
22199 -Code"
22200 \end_layout
22201
22202 \begin_layout LyX-Code
22203   Icon "layout Chunk"
22204 \end_layout
22205
22206 \begin_layout LyX-Code
22207   Separator
22208 \end_layout
22209
22210 \begin_layout LyX-Code
22211   Icon "buffer-view"
22212 \end_layout
22213
22214 \begin_layout LyX-Code
22215   Icon "buffer-typeset"
22216 \end_layout
22217
22218 \begin_layout LyX-Code
22219   Icon "build-program"
22220 \end_layout
22221
22222 \begin_layout LyX-Code
22223   Separator
22224 \end_layout
22225
22226 \begin_layout LyX-Code
22227 .
22228 \end_layout
22229
22230 \begin_layout LyX-Code
22231 .
22232 \end_layout
22233
22234 \begin_layout LyX-Code
22235 .
22236 \end_layout
22237
22238 \begin_layout LyX-Code
22239 End
22240 \end_layout
22241
22242 \begin_layout Subsubsection
22243 色の変更
22244 \end_layout
22245
22246 \begin_layout Standard
22247 \SpecialChar LyX
22248 ではいくつもの色を
22249 \begin_inset Flex MenuItem
22250 status collapsed
22251
22252 \begin_layout Plain Layout
22253 設定
22254 \end_layout
22255
22256 \end_inset
22257
22258 で変えることができます。人々が困りがちなのは、\SpecialChar LaTeX
22259 フォント色でしょう。これは、既定では赤になっていますが、chunkは\SpecialChar LaTeX
22260 フォントを使うことになっていて、文芸プログラミ
22261 ング文書には多くのchunkが現れるために、すべて赤で見ていると疲れてしまうかもしれません。これは、
22262 \begin_inset Flex MenuItem
22263 status collapsed
22264
22265 \begin_layout Plain Layout
22266 操作性\SpecialChar menuseparator
22267
22268 \end_layout
22269
22270 \end_inset
22271
22272 タブで変更することができます。
22273 \end_layout
22274
22275 \begin_layout Standard
22276 もう一つは、改行文字が画面に表示されていることでしょう。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少
22277 し違う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
22278 \end_layout
22279
22280 \begin_layout Subsection
22281 \SpecialChar LyX
22282 とknitr/Sweave
22283 \end_layout
22284
22285 \begin_layout Standard
22286 knitrとSweaveへのサポートについては、用例ファイル
22287 \emph on
22288 knitr.lyx
22289 \emph default
22290 とSweave取扱説明書(
22291 \family sans
22292 ヘルプ\SpecialChar menuseparator
22293 用途別説明書
22294 \family default
22295 メニュー)に説明があります。
22296 \end_layout
22297
22298 \begin_layout Chapter
22299 特殊機能
22300 \begin_inset CommandInset label
22301 LatexCommand label
22302 name "chap:Special-features"
22303
22304 \end_inset
22305
22306
22307 \end_layout
22308
22309 \begin_layout Standard
22310 \SpecialChar LyX
22311 では、\SpecialChar LaTeX
22312 で可能なことは何でも出来ます。すべての\SpecialChar LaTeX
22313 の機能を直接サポートできるわけではありませんが、どんな場合でも\SpecialChar TeX
22314 コードを使用することはできます。本章は、ユーザの興味が
22315 有りそうな特別な機能について、若干取り上げます。図表やフロート、ボックス、注釈に関する特別な機能については、取扱説明書『
22316 \emph on
22317 埋込オブジェクト篇
22318 \emph default
22319 』をご参照ください。
22320 \end_layout
22321
22322 \begin_layout Section
22323 多段組
22324 \end_layout
22325
22326 \begin_layout Standard
22327 この機能は、文書設定の
22328 \family sans
22329 本文レイアウト
22330 \family default
22331 にある
22332 \family sans
22333 二段組文書
22334 \family default
22335 とは別の機能です。文書全体に二段組を行いたい場合には、
22336 \family sans
22337 二段組文書
22338 \family default
22339 オプションを利用することをお勧めします。その他の場合には、本機能をご使用ください。
22340 \end_layout
22341
22342 \begin_layout Standard
22343 文書中で多段組を行うには、\SpecialChar LaTeX
22344 パッケージ
22345 \series bold
22346 multicol
22347 \series default
22348
22349 \begin_inset Index idx
22350 status collapsed
22351
22352 \begin_layout Plain Layout
22353 \SpecialChar LaTeX
22354 ぱっけーじ @ \SpecialChar LaTeX
22355 パッケージ ! multicol
22356 \end_layout
22357
22358 \end_inset
22359
22360 を導入した上で、(
22361 \family sans
22362 文書\SpecialChar menuseparator
22363 設定\SpecialChar menuseparator
22364 モジュール
22365 \family default
22366 メニューから)
22367 \family sans
22368 多段組
22369 \family default
22370 モジュールを読み込んでください。
22371 \end_layout
22372
22373 \begin_layout Standard
22374 多段組中の脚注は、ページ下部に置かれ、各段の下ごとには置かれません。各段においては、フロートに
22375 \family sans
22376 段をまたぐ
22377 \family default
22378 オプションを使用する必要があるほかは、通常通りの使用をすることができます。
22379 \end_layout
22380
22381 \begin_layout Subsection
22382 基本
22383 \end_layout
22384
22385 \begin_layout Standard
22386 文章中で二段組を使用したい場合には、段組を始める場所で
22387 \family sans
22388 挿入\SpecialChar menuseparator
22389 任意設定差込枠\SpecialChar menuseparator
22390 多段組
22391 \family default
22392 メニューを使用して、多段組差込枠を挿入してください。二段組で印字されるべき文章は、全てこの差込枠の中に書いてください。
22393 \end_layout
22394
22395 \begin_layout Standard
22396 下記はその用例です。
22397 \end_layout
22398
22399 \begin_layout Standard
22400 \noindent
22401 \begin_inset Flex Multiple Columns
22402 status open
22403
22404 \begin_layout Plain Layout
22405 \noindent
22406
22407 \series bold
22408 \size small
22409 The Adventure of the Empty House
22410 \series default
22411
22412 \begin_inset Newline newline
22413 \end_inset
22414
22415 by Sir Arthur Conan Doyle
22416 \end_layout
22417
22418 \begin_layout Plain Layout
22419
22420 \size small
22421 It was in the spring of the year 1894 that all London was interested, and
22422  the fashionable world dismayed, by the murder of the Honourable Ronald
22423  Adair under most unusual and inexplicable circumstances.
22424  The public has already learned those particulars of the crime which came
22425  out in the police investigation, but a good deal was suppressed upon that
22426  occasion, since the case for the prosecution was so overwhelmingly strong
22427  that it was not necessary to bring forward all the facts.
22428  Only now, at the end of nearly ten years, am I allowed to supply those
22429  missing links which make up the whole of that remarkable chain.
22430  The crime was of interest in itself, but that interest was as nothing to
22431  me compared to the inconceivable sequel, which afforded me the greatest
22432  shock and surprise of any event in my adventurous life.
22433  Even now, after this long interval, I find myself thrilling as I think
22434  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22435 ty which utterly submerged my mind.
22436  Let me say to that public, which has shown some interest in those glimpses
22437  which I have occasionally given them of the thoughts and actions of a very
22438  remarkable man, that they are not to blame me if I have not shared my knowledge
22439  with them, for I should have considered it my first duty to do so, had
22440  I not been barred by a positive prohibition from his own lips, which was
22441  only withdrawn upon the third of last month.
22442 \end_layout
22443
22444 \end_inset
22445
22446
22447 \end_layout
22448
22449 \begin_layout Standard
22450 三段以上にするには、カーソルを多段組差込枠の内部において、挿入\SpecialChar menuseparator
22451 段数メニューを使用してください。この差込枠の中に、欲しい段数を書き入れます(三段組の場合には「3」
22452 と書きます)。
22453 \begin_inset Newline newline
22454 \end_inset
22455
22456 下記は三段組の例です。
22457 \end_layout
22458
22459 \begin_layout Standard
22460 \begin_inset Flex Multiple Columns
22461 status open
22462
22463 \begin_layout Plain Layout
22464
22465 \size footnotesize
22466 \begin_inset Argument 1
22467 status open
22468
22469 \begin_layout Plain Layout
22470 3
22471 \end_layout
22472
22473 \end_inset
22474
22475 It can be imagined that my close intimacy with Sherlock Holmes had interested
22476  me deeply in crime, and that after his disappearance I never failed to
22477  read with care the various problems which came before the public.
22478  And I even attempted, more than once, for my own private satisfaction,
22479  to employ his methods in their solution, though with indifferent success.
22480  There was none, however, which appealed to me like this tragedy of Ronald
22481  Adair.
22482  As I read the evidence at the inquest, which led up to a verdict of willful
22483  murder against some person or persons unknown, I realized more clearly
22484  than I had ever done the loss which the community had sustained by the
22485  death of Sherlock Holmes.
22486  There were points about this strange business which would, I was sure,
22487  have specially appealed to him, and the efforts of the police would have
22488  been supplemented, or more probably anticipated, by the trained observation
22489  and the alert mind of the first criminal agent in Europe.
22490  All day, as I drove upon my round, I turned over the case in my mind and
22491  found no explanation which appeared to me to be adequate.
22492  At the risk of telling a twice-told tale, I will recapitulate the facts
22493  as they were known to the public at the conclusion of the inquest.
22494 \end_layout
22495
22496 \end_inset
22497
22498
22499 \end_layout
22500
22501 \begin_layout Standard
22502 お望みならば10段組まで組むことができますが、文書の読者にとっては、あまり気持ちのいいものではないでしょう。
22503 \end_layout
22504
22505 \begin_layout Standard
22506 \begin_inset Newpage newpage
22507 \end_inset
22508
22509
22510 \end_layout
22511
22512 \begin_layout Subsection
22513 段組中の段組
22514 \end_layout
22515
22516 \begin_layout Standard
22517 また、段中に段を組むこともできます。
22518 \end_layout
22519
22520 \begin_layout Standard
22521 \begin_inset Flex Multiple Columns
22522 status open
22523
22524 \begin_layout Plain Layout
22525
22526 \size footnotesize
22527 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22528  at that time governor of one of the Australian colonies.
22529  Adair's mother had returned from Australia to undergo the operation for
22530  cataract, and she, her son Ronald, and her daughter Hilda were living together
22531  at 427 Park Lane.
22532 \end_layout
22533
22534 \begin_layout Plain Layout
22535 \begin_inset Flex Multiple Columns
22536 status open
22537
22538 \begin_layout Plain Layout
22539
22540 \size footnotesize
22541 The youth moved in the best society–had, so far as was known, no enemies
22542  and no particular vices.
22543  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22544  had been broken off by mutual consent some months before, and there was
22545  no sign that it had left any very profound feeling behind it.
22546  For the rest {sic} the man's life moved in a narrow and conventional circle,
22547  for his habits were quiet and his nature unemotional.
22548  Yet it was upon this easy-going young aristocrat that death came, in most
22549  strange and unexpected form, between the hours of ten and eleven-twenty
22550  on the night of March 30, 1894.
22551 \end_layout
22552
22553 \end_inset
22554
22555
22556 \end_layout
22557
22558 \begin_layout Plain Layout
22559
22560 \size footnotesize
22561 Ronald Adair was fond of cards–playing continually, but never for such stakes
22562  as would hurt him.
22563  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22564  It was shown that, after dinner on the day of his death, he had played
22565  a rubber of whist at the latter club.
22566  He had also played there in the afternoon.
22567
22568 \size default
22569  
22570 \size footnotesize
22571 The evidence of those who had played with him– Mr.
22572  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22573  and that there was a fairly equal fall of the cards.
22574  Adair might have lost five pounds, but not more.
22575  His fortune was a considerable one, and such a loss could not in any way
22576  affect him.
22577  He had played nearly every day at one club or other, but he was a cautious
22578  player, and usually rose a winner.
22579  It came out in evidence that, in partnership with Colonel Moran, he had
22580  actually won as much as four hundred and twenty pounds in a sitting, some
22581  weeks before, from Godfrey Milner and Lord Balmoral.
22582  So much for his recent history as it came out at the inquest.
22583 \end_layout
22584
22585 \end_inset
22586
22587
22588 \end_layout
22589
22590 \begin_layout Subsection
22591 応用例
22592 \end_layout
22593
22594 \begin_layout Standard
22595 本節の用例は、多段組のさらに特別な機能を示すためのものです。
22596 \end_layout
22597
22598 \begin_layout Standard
22599 多段組機能についてさらに知りたい場合には、\SpecialChar LaTeX
22600 パッケージ
22601 \series bold
22602 multicol
22603 \series default
22604
22605 \begin_inset CommandInset citation
22606 LatexCommand cite
22607 key "multicol"
22608
22609 \end_inset
22610
22611 の取扱説明書をご覧ください。
22612 \end_layout
22613
22614 \begin_layout Subsubsection
22615 序文
22616 \end_layout
22617
22618 \begin_layout Standard
22619 多段組に序文を追記するには、カーソルを多段組差込枠内部に置き、
22620 \family sans
22621 挿入\SpecialChar menuseparator
22622 序文
22623 \family default
22624 メニューを使用してください。序文は、この差込枠内に書いてください。
22625 \begin_inset Newline newline
22626 \end_inset
22627
22628 序文のある文章の例を掲げます。
22629 \end_layout
22630
22631 \begin_layout Standard
22632 \begin_inset VSpace bigskip
22633 \end_inset
22634
22635
22636 \end_layout
22637
22638 \begin_layout Standard
22639 \begin_inset Flex Multiple Columns
22640 status open
22641
22642 \begin_layout Plain Layout
22643 \begin_inset Argument 2
22644 status open
22645
22646 \begin_layout Plain Layout
22647 And the story continues and continues and continues and continues\SpecialChar ldots
22648
22649 \end_layout
22650
22651 \end_inset
22652
22653
22654 \size small
22655 On the evening of the crime, he returned from the club exactly at ten.
22656  His mother and sister were out spending the evening with a relation.
22657  The servant deposed that she heard him enter the front room on the second
22658  floor, generally used as his sitting-room.
22659  She had lit a fire there, and as it smoked she had opened the window.
22660  No sound was heard from the room until eleven-twenty, the hour of the return
22661  of Lady Maynooth and her daughter.
22662  Desiring to say good-night, she attempted to enter her son's room.
22663  The door was locked on the inside, and no answer could be got to their
22664  cries and knocking.
22665  Help was obtained, and the door forced.
22666  The unfortunate young man was found lying near the table.
22667  His head had been horribly mutilated by an expanding revolver bullet, but
22668  no weapon of any sort was to be found in the room.
22669 \end_layout
22670
22671 \end_inset
22672
22673
22674 \end_layout
22675
22676 \begin_layout Standard
22677 最初の\SpecialChar TeX
22678 コードの後に、節宣言コマンドを\SpecialChar TeX
22679 コードとして使用すれば、節見出しを前書きとして使用することができます。例えば、
22680 \end_layout
22681
22682 \begin_layout Standard
22683
22684 \series bold
22685
22686 \backslash
22687 subsection{小節見出し}
22688 \end_layout
22689
22690 \begin_layout Standard
22691 というコマンドは、小節を生成します。以下の例では、前書きが小々節になっています。
22692 \end_layout
22693
22694 \begin_layout Standard
22695 \begin_inset Flex Multiple Columns
22696 status open
22697
22698 \begin_layout Plain Layout
22699 \begin_inset Argument 2
22700 status open
22701
22702 \begin_layout Plain Layout
22703 \begin_inset ERT
22704 status collapsed
22705
22706 \begin_layout Plain Layout
22707
22708
22709 \backslash
22710 subsubsection{
22711 \end_layout
22712
22713 \end_inset
22714
22715 これは序文の小々節見出しです
22716 \begin_inset ERT
22717 status collapsed
22718
22719 \begin_layout Plain Layout
22720
22721 }
22722 \end_layout
22723
22724 \end_inset
22725
22726
22727 \end_layout
22728
22729 \end_inset
22730
22731
22732 \size small
22733 A minute examination of the circumstances served only to make the case more
22734  complex.
22735  In the first place, no reason could be given why the young man should have
22736  fastened the door upon the inside.
22737  There was the possibility that the murderer had done this, and had afterwards
22738  escaped by the window.
22739  The drop was at least twenty feet, however, and a bed of crocuses in full
22740  bloom lay beneath.
22741  Neither the flowers nor the earth showed any sign of having been disturbed,
22742  nor were there any marks upon the narrow strip of grass which separated
22743  the house from the road.
22744  Apparently, therefore, it was the young man himself who had fastened the
22745  door.
22746  But how did he come by his death? No one could have climbed up to the window
22747  without leaving traces.
22748  Suppose a man had fired through the window, he would indeed be a remarkable
22749  shot who could with a revolver inflict so deadly a wound.
22750  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22751  a hundred yards of the house.
22752  No one had heard a shot.
22753 \end_layout
22754
22755 \end_inset
22756
22757
22758 \end_layout
22759
22760 \begin_layout Standard
22761 多段組を開始する部分に、必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合、多段組の前に改行が挿入されます。前書きの行数如何では、この必
22762 要行数を変更したいかもしれません。これは、カーソルを多段組差込枠内部の(もしあれば)序文の後に置き、
22763 \family sans
22764 挿入\SpecialChar menuseparator
22765 改頁前の余白
22766 \family default
22767 メニューを使用することで設定できます。この差込枠に、余白の大きさを「5cm」などと書き込んでください。
22768 \end_layout
22769
22770 \begin_layout Standard
22771 以下の例では、「7
22772 \backslash
22773 baselineskip」を用いて、必要行数を7行に指定しています(コマンド
22774 \series bold
22775
22776 \backslash
22777 baselineskip
22778 \series default
22779 は\SpecialChar TeX
22780 コードとして入力する必要があります)。
22781 \end_layout
22782
22783 \begin_layout Standard
22784 \begin_inset Flex Multiple Columns
22785 status open
22786
22787 \begin_layout Plain Layout
22788 \begin_inset Argument 3
22789 status open
22790
22791 \begin_layout Plain Layout
22792 7
22793 \begin_inset ERT
22794 status collapsed
22795
22796 \begin_layout Plain Layout
22797
22798
22799 \backslash
22800 baselineskip
22801 \end_layout
22802
22803 \end_inset
22804
22805
22806 \end_layout
22807
22808 \end_inset
22809
22810
22811 \size small
22812 On the evening of the crime, he returned from the club exactly at ten.
22813  His mother and sister were out spending the evening with a relation.
22814  The servant deposed that she heard him enter the front room on the second
22815  floor, generally used as his sitting-room.
22816  She had lit a fire there, and as it smoked she had opened the window.
22817  No sound was heard from the room until eleven-twenty, the hour of the return
22818  of Lady Maynooth and her daughter.
22819  Desiring to say good-night, she attempted to enter her son's room.
22820  The door was locked on the inside, and no answer could be got to their
22821  cries and knocking.
22822  Help was obtained, and the door forced.
22823  The unfortunate young man was found lying near the table.
22824  His head had been horribly mutilated by an expanding revolver bullet, but
22825  no weapon of any sort was to be found in the room.
22826 \end_layout
22827
22828 \end_inset
22829
22830
22831 \end_layout
22832
22833 \begin_layout Subsubsection
22834 周囲の余白
22835 \end_layout
22836
22837 \begin_layout Standard
22838 多段組の前後の余白は、長さ
22839 \series bold
22840
22841 \backslash
22842 multicolsep
22843 \series default
22844 を変えることで変更することができます。例えば、\SpecialChar TeX
22845 コードで書かれたコマンド
22846 \end_layout
22847
22848 \begin_layout Standard
22849
22850 \series bold
22851
22852 \backslash
22853 setlength{
22854 \backslash
22855 multicolsep}{3cm}
22856 \end_layout
22857
22858 \begin_layout Standard
22859 は、その値を3
22860 \begin_inset space \thinspace{}
22861 \end_inset
22862
22863 cmに変更します。この変更は、多段組が始まる前に指定しなくてはなりません。既定値は13
22864 \begin_inset space \thinspace{}
22865 \end_inset
22866
22867 ptです。
22868 \end_layout
22869
22870 \begin_layout Standard
22871 以下の例では、
22872 \series bold
22873
22874 \backslash
22875 multicolsep
22876 \series default
22877 は2.5
22878 \begin_inset space \thinspace{}
22879 \end_inset
22880
22881 cmに指定されています。
22882 \end_layout
22883
22884 \begin_layout Standard
22885 \begin_inset ERT
22886 status open
22887
22888 \begin_layout Plain Layout
22889
22890
22891 \backslash
22892 setlength{
22893 \backslash
22894 multicolsep}{2.5cm}
22895 \end_layout
22896
22897 \end_inset
22898
22899
22900 \end_layout
22901
22902 \begin_layout Standard
22903 \begin_inset Flex Multiple Columns
22904 status open
22905
22906 \begin_layout Plain Layout
22907
22908 \size small
22909 All day I turned these facts over in my mind, endeavouring to hit upon some
22910  theory which could reconcile them all, and to find that line of least resistanc
22911 e which my poor friend had declared to be the starting-point of every investigat
22912 ion.
22913  I confess that I made little progress.
22914  In the evening I strolled across the Park, and found myself about six o'clock
22915  at the Oxford Street end of Park Lane.
22916  A group of loafers upon the pavements, all staring up at a particular window,
22917  directed me to the house which I had come to see.
22918  A tall, thin man with coloured glasses, whom I strongly suspected of being
22919  a plain-clothes detective, was pointing out some theory of his own, while
22920  the others crowded round to listen to what he said.
22921  I got as near him as I could, but his observations seemed to me to be absurd,
22922  so I withdrew again in some disgust.
22923  As I did so I struck against an elderly, deformed man, who had been behind
22924  me, and I knocked down several books which he was carrying.
22925 \end_layout
22926
22927 \end_inset
22928
22929
22930 \end_layout
22931
22932 \begin_layout Standard
22933 \begin_inset Note Greyedout
22934 status open
22935
22936 \begin_layout Plain Layout
22937
22938 \series bold
22939 【註】
22940 \backslash
22941 setlength
22942 \series default
22943 で指定した値は、再度変更されるまでは、以降のすべての多段組で使用されます。
22944 \end_layout
22945
22946 \end_inset
22947
22948
22949 \end_layout
22950
22951 \begin_layout Standard
22952 \begin_inset ERT
22953 status collapsed
22954
22955 \begin_layout Plain Layout
22956
22957
22958 \backslash
22959 setlength{
22960 \backslash
22961 multicolsep}{13pt}
22962 \end_layout
22963
22964 \end_inset
22965
22966
22967 \begin_inset Note Note
22968 status collapsed
22969
22970 \begin_layout Plain Layout
22971
22972 \lang english
22973 go back to the default
22974 \end_layout
22975
22976 \end_inset
22977
22978
22979 \end_layout
22980
22981 \begin_layout Standard
22982 \begin_inset Newpage newpage
22983 \end_inset
22984
22985
22986 \end_layout
22987
22988 \begin_layout Subsubsection
22989 改段
22990 \end_layout
22991
22992 \begin_layout Standard
22993 改段は、文章中の階段を行いたい位置に、\SpecialChar TeX
22994 コードで、コマンド
22995 \series bold
22996
22997 \backslash
22998 columnbreak{}
22999 \series default
23000 を挿入すれば、強制的に行うことができます。ただし、多くの場合、文章中に空白が挿入されることに注意してください。
23001 \begin_inset Newline newline
23002 \end_inset
23003
23004 以下が用例です。
23005 \end_layout
23006
23007 \begin_layout Standard
23008 \begin_inset Flex Multiple Columns
23009 status open
23010
23011 \begin_layout Plain Layout
23012
23013 \size small
23014 \begin_inset Quotes eld
23015 \end_inset
23016
23017 You're surprised to see me, sir,
23018 \begin_inset Quotes erd
23019 \end_inset
23020
23021  said he, in a strange, croaking voice.
23022 \end_layout
23023
23024 \begin_layout Plain Layout
23025
23026 \size small
23027 I acknowledged that I was.
23028 \end_layout
23029
23030 \begin_layout Plain Layout
23031
23032 \size small
23033 \begin_inset Quotes eld
23034 \end_inset
23035
23036 Well, I've a conscience, sir, and when I chanced to see you go into this
23037  house, as I came hobbling after you, I thought to myself, I'll just step
23038  in and see that kind gentleman, and tell him that if I was a bit gruff
23039  in my manner there was not any harm meant, and that I am much obliged to
23040  him for picking up my books.
23041 \begin_inset Quotes erd
23042 \end_inset
23043
23044
23045 \end_layout
23046
23047 \begin_layout Plain Layout
23048
23049 \size small
23050 \begin_inset Quotes eld
23051 \end_inset
23052
23053 You make too much of a trifle,
23054 \begin_inset Quotes erd
23055 \end_inset
23056
23057  said I.
23058  
23059 \begin_inset Quotes eld
23060 \end_inset
23061
23062 May I ask how you knew who I was?
23063 \begin_inset Quotes erd
23064 \end_inset
23065
23066  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
23067 \begin_inset ERT
23068 status collapsed
23069
23070 \begin_layout Plain Layout
23071
23072
23073 \backslash
23074 columnbreak{}
23075 \end_layout
23076
23077 \end_inset
23078
23079
23080 \end_layout
23081
23082 \begin_layout Plain Layout
23083
23084 \size small
23085 \begin_inset Quotes eld
23086 \end_inset
23087
23088 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23089  you'll find my little bookshop at the corner of Church Street, and very
23090  happy to see you, I am sure.
23091  Maybe you collect yourself, sir.
23092  Here's 
23093 \noun on
23094 British
23095 \begin_inset space ~
23096 \end_inset
23097
23098 Birds
23099 \noun default
23100 , and 
23101 \noun on
23102 Catullus
23103 \noun default
23104 , and 
23105 \noun on
23106 The Holy War
23107 \noun default
23108 –a bargain, every one of them.
23109  With five volumes you could just fill that gap on that second shelf.
23110  It looks untidy, does it not, sir?
23111 \begin_inset Quotes erd
23112 \end_inset
23113
23114
23115 \end_layout
23116
23117 \end_inset
23118
23119
23120 \end_layout
23121
23122 \begin_layout Subsubsection
23123 段間隔
23124 \end_layout
23125
23126 \begin_layout Standard
23127 段幅は自動的に計算されますが、段の間の余白は指定することができます。これは、長さ
23128 \series bold
23129
23130 \backslash
23131 columnsep
23132 \series default
23133 を変更することで実現できます。既定値は10
23134 \begin_inset space \thinspace{}
23135 \end_inset
23136
23137 ptです。以下は
23138 \series bold
23139
23140 \backslash
23141 columnsep
23142 \series default
23143 を3
23144 \begin_inset space \thinspace{}
23145 \end_inset
23146
23147 cmに設定した例です。
23148 \end_layout
23149
23150 \begin_layout Standard
23151 \begin_inset ERT
23152 status open
23153
23154 \begin_layout Plain Layout
23155
23156
23157 \backslash
23158 setlength{
23159 \backslash
23160 columnsep}{3cm}
23161 \end_layout
23162
23163 \end_inset
23164
23165
23166 \end_layout
23167
23168 \begin_layout Standard
23169 \begin_inset Flex Multiple Columns
23170 status open
23171
23172 \begin_layout Plain Layout
23173
23174 \size small
23175 My observations of No.
23176 \begin_inset space \space{}
23177 \end_inset
23178
23179 427 Park Lane did little to clear up the problem in which I was interested.
23180  The house was separated from the street by a low wall and railing, the
23181  whole not more than five feet high.
23182  It was perfectly easy, therefore, for anyone to get into the garden, but
23183  the window was entirely inaccessible, since there was no water pipe or
23184  anything which could help the most active man to climb it.
23185  More puzzled than ever, I retraced my steps to Kensington.
23186  I had not been in my study five minutes when the maid entered to say that
23187  a person desired to see me.
23188  To my astonishment it was none other than my strange old book collector,
23189  his sharp, wizened face peering out from a frame of white hair, and his
23190  precious volumes, a dozen of them at least, wedged under his right arm.
23191 \end_layout
23192
23193 \end_inset
23194
23195
23196 \end_layout
23197
23198 \begin_layout Standard
23199 \begin_inset ERT
23200 status collapsed
23201
23202 \begin_layout Plain Layout
23203
23204
23205 \backslash
23206 setlength{
23207 \backslash
23208 columnsep}{10pt}
23209 \end_layout
23210
23211 \end_inset
23212
23213
23214 \begin_inset Note Note
23215 status collapsed
23216
23217 \begin_layout Plain Layout
23218
23219 \lang english
23220 go back to the default
23221 \end_layout
23222
23223 \end_inset
23224
23225
23226 \end_layout
23227
23228 \begin_layout Subsubsection
23229 垂直線
23230 \end_layout
23231
23232 \begin_layout Standard
23233 段間には、長さ
23234 \series bold
23235
23236 \backslash
23237 columnseprule
23238 \series default
23239 の幅を持つ罫線が描かれます。罫線幅を0
23240 \begin_inset space \thinspace{}
23241 \end_inset
23242
23243 ptにすると(これが既定値です)、罫線は出力されません。以下の例では、段を分かつ線は2
23244 \begin_inset space \thinspace{}
23245 \end_inset
23246
23247 pt幅に設定されています。
23248 \end_layout
23249
23250 \begin_layout Standard
23251 \begin_inset ERT
23252 status open
23253
23254 \begin_layout Plain Layout
23255
23256
23257 \backslash
23258 setlength{
23259 \backslash
23260 columnseprule}{2pt}
23261 \end_layout
23262
23263 \end_inset
23264
23265
23266 \end_layout
23267
23268 \begin_layout Standard
23269 \begin_inset Flex Multiple Columns
23270 status open
23271
23272 \begin_layout Plain Layout
23273
23274 \size small
23275 \begin_inset Quotes eld
23276 \end_inset
23277
23278 You're surprised to see me, sir,
23279 \begin_inset Quotes erd
23280 \end_inset
23281
23282  said he, in a strange, croaking voice.
23283 \end_layout
23284
23285 \begin_layout Plain Layout
23286
23287 \size small
23288 I acknowledged that I was.
23289 \end_layout
23290
23291 \begin_layout Plain Layout
23292
23293 \size small
23294 \begin_inset Quotes eld
23295 \end_inset
23296
23297 Well, I've a conscience, sir, and when I chanced to see you go into this
23298  house, as I came hobbling after you, I thought to myself, I'll just step
23299  in and see that kind gentleman, and tell him that if I was a bit gruff
23300  in my manner there was not any harm meant, and that I am much obliged to
23301  him for picking up my books.
23302 \begin_inset Quotes erd
23303 \end_inset
23304
23305
23306 \end_layout
23307
23308 \begin_layout Plain Layout
23309
23310 \size small
23311 \begin_inset Quotes eld
23312 \end_inset
23313
23314 You make too much of a trifle,
23315 \begin_inset Quotes erd
23316 \end_inset
23317
23318  said I.
23319  
23320 \begin_inset Quotes eld
23321 \end_inset
23322
23323 May I ask how you knew who I was?
23324 \begin_inset Quotes erd
23325 \end_inset
23326
23327
23328 \end_layout
23329
23330 \begin_layout Plain Layout
23331
23332 \size small
23333 \begin_inset Quotes eld
23334 \end_inset
23335
23336 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23337  you'll find my little bookshop at the corner of Church Street, and very
23338  happy to see you, I am sure.
23339  Maybe you collect yourself, sir.
23340  Here's 
23341 \noun on
23342 British
23343 \begin_inset space ~
23344 \end_inset
23345
23346 Birds
23347 \noun default
23348 , and 
23349 \noun on
23350 Catullus
23351 \noun default
23352 , and 
23353 \noun on
23354 The Holy War
23355 \noun default
23356 –a bargain, every one of them.
23357  With five volumes you could just fill that gap on that second shelf.
23358  It looks untidy, does it not, sir?
23359 \begin_inset Quotes erd
23360 \end_inset
23361
23362
23363 \end_layout
23364
23365 \end_inset
23366
23367
23368 \end_layout
23369
23370 \begin_layout Standard
23371 \begin_inset VSpace defskip
23372 \end_inset
23373
23374
23375 \end_layout
23376
23377 \begin_layout Standard
23378 罫線は、コマンド
23379 \series bold
23380
23381 \backslash
23382 columnseprulecolor
23383 \series default
23384 を再定義すれば、着色することができます。これは、多段組差込枠の前に\SpecialChar TeX
23385 コードで以下のコマンドを挿入すれば、実現できます。
23386 \begin_inset Newline newline
23387 \end_inset
23388
23389
23390 \series bold
23391
23392 \backslash
23393 renewcommand{
23394 \backslash
23395 columnseprulecolor}{
23396 \backslash
23397 color{red}}
23398 \series default
23399
23400 \begin_inset Newline newline
23401 \end_inset
23402
23403 このコマンド中の
23404 \series bold
23405 red
23406 \series default
23407 をお好みの色に変更してください。既定色とユーザー定義色の全てを使用することができます。既定色とユーザー定義色についての詳細な情報は、取扱説明書『
23408 \emph on
23409 埋込オブジェクト篇
23410 \emph default
23411 』の「
23412 \emph on
23413 色付き表
23414 \emph default
23415 」の節をご覧ください。既定色に戻すには、以下のコマンドを挿入してください。
23416 \begin_inset Newline newline
23417 \end_inset
23418
23419
23420 \series bold
23421
23422 \backslash
23423 renewcommand{
23424 \backslash
23425 columnseprulecolor}{
23426 \backslash
23427 normalcolor}
23428 \series default
23429
23430 \begin_inset Newline newline
23431 \end_inset
23432
23433 以下は、シアン色の罫線と1
23434 \begin_inset space \thinspace{}
23435 \end_inset
23436
23437 cmの段間隔を持つ例です。
23438 \end_layout
23439
23440 \begin_layout Standard
23441 \begin_inset ERT
23442 status open
23443
23444 \begin_layout Plain Layout
23445
23446
23447 \backslash
23448 setlength{
23449 \backslash
23450 columnsep}{1cm}
23451 \end_layout
23452
23453 \begin_layout Plain Layout
23454
23455
23456 \backslash
23457 renewcommand{
23458 \backslash
23459 columnseprulecolor}{
23460 \backslash
23461 color{cyan}}
23462 \end_layout
23463
23464 \end_inset
23465
23466
23467 \end_layout
23468
23469 \begin_layout Standard
23470 \begin_inset Flex Multiple Columns
23471 status open
23472
23473 \begin_layout Plain Layout
23474
23475 \size small
23476 \begin_inset Quotes eld
23477 \end_inset
23478
23479 You're surprised to see me, sir,
23480 \begin_inset Quotes erd
23481 \end_inset
23482
23483  said he, in a strange, croaking voice.
23484 \end_layout
23485
23486 \begin_layout Plain Layout
23487
23488 \size small
23489 I acknowledged that I was.
23490 \end_layout
23491
23492 \begin_layout Plain Layout
23493
23494 \size small
23495 \begin_inset Quotes eld
23496 \end_inset
23497
23498 Well, I've a conscience, sir, and when I chanced to see you go into this
23499  house, as I came hobbling after you, I thought to myself, I'll just step
23500  in and see that kind gentleman, and tell him that if I was a bit gruff
23501  in my manner there was not any harm meant, and that I am much obliged to
23502  him for picking up my books.
23503 \begin_inset Quotes erd
23504 \end_inset
23505
23506
23507 \end_layout
23508
23509 \begin_layout Plain Layout
23510
23511 \size small
23512 \begin_inset Quotes eld
23513 \end_inset
23514
23515 You make too much of a trifle,
23516 \begin_inset Quotes erd
23517 \end_inset
23518
23519  said I.
23520  
23521 \begin_inset Quotes eld
23522 \end_inset
23523
23524 May I ask how you knew who I was?
23525 \begin_inset Quotes erd
23526 \end_inset
23527
23528
23529 \end_layout
23530
23531 \begin_layout Plain Layout
23532
23533 \size small
23534 \begin_inset Quotes eld
23535 \end_inset
23536
23537 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23538  you'll find my little bookshop at the corner of Church Street, and very
23539  happy to see you, I am sure.
23540  Maybe you collect yourself, sir.
23541  Here's 
23542 \noun on
23543 British
23544 \begin_inset space ~
23545 \end_inset
23546
23547 Birds
23548 \noun default
23549 , and 
23550 \noun on
23551 Catullus
23552 \noun default
23553 , and 
23554 \noun on
23555 The Holy War
23556 \noun default
23557 –a bargain, every one of them.
23558  With five volumes you could just fill that gap on that second shelf.
23559  It looks untidy, does it not, sir?
23560 \begin_inset Quotes erd
23561 \end_inset
23562
23563
23564 \end_layout
23565
23566 \end_inset
23567
23568
23569 \end_layout
23570
23571 \begin_layout Standard
23572 \begin_inset ERT
23573 status collapsed
23574
23575 \begin_layout Plain Layout
23576
23577
23578 \backslash
23579 setlength{
23580 \backslash
23581 columnseprule}{0pt}
23582 \end_layout
23583
23584 \begin_layout Plain Layout
23585
23586
23587 \backslash
23588 renewcommand{
23589 \backslash
23590 columnseprulecolor}{
23591 \backslash
23592 normalcolor}
23593 \end_layout
23594
23595 \end_inset
23596
23597
23598 \begin_inset Note Note
23599 status collapsed
23600
23601 \begin_layout Plain Layout
23602
23603 \lang english
23604 go back to the default
23605 \end_layout
23606
23607 \end_inset
23608
23609
23610 \end_layout
23611
23612 \begin_layout Standard
23613 \begin_inset Newpage newpage
23614 \end_inset
23615
23616
23617 \end_layout
23618
23619 \begin_layout Section
23620 標準的でない形の段落
23621 \end_layout
23622
23623 \begin_layout Standard
23624 \noindent
23625 \SpecialChar LaTeX
23626 は、他のテキストプロセッサと同様に、既定で長方形の段落を使用します。しかし、例えば、ポスターや招待状、詩などの特殊な場合には、段落の形を好きなように変えることが
23627 できます。これは、文書設定で
23628 \family sans
23629 任意設定の段落形
23630 \family default
23631 モジュールを読み込んで、\SpecialChar LaTeX
23632 パッケージ
23633 \series bold
23634 shapepar
23635 \series default
23636 を使用させるようにすれば、実現できます。
23637 \end_layout
23638
23639 \begin_layout Subsection
23640 既定の形
23641 \end_layout
23642
23643 \begin_layout Standard
23644
23645 \series bold
23646 shapepar
23647 \series default
23648 は、以下の形を提供しています。
23649 \end_layout
23650
23651 \begin_layout Standard
23652 \begin_inset Tabular
23653 <lyxtabular version="3" rows="13" columns="3">
23654 <features booktabs="true" islongtable="true" longtabularalignment="center">
23655 <column alignment="center" valignment="middle" width="16col%">
23656 <column alignment="center" valignment="middle" width="40col%">
23657 <column alignment="center" valignment="middle" width="35col%">
23658 <row endhead="true">
23659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23660 \begin_inset Text
23661
23662 \begin_layout Plain Layout
23663 名称
23664 \end_layout
23665
23666 \end_inset
23667 </cell>
23668 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23669 \begin_inset Text
23670
23671 \begin_layout Plain Layout
23672 説明
23673 \end_layout
23674
23675 \end_inset
23676 </cell>
23677 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23678 \begin_inset Text
23679
23680 \begin_layout Plain Layout
23681 備考
23682 \end_layout
23683
23684 \end_inset
23685 </cell>
23686 </row>
23687 <row>
23688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23689 \begin_inset Text
23690
23691 \begin_layout Plain Layout
23692 CDlabel
23693 \end_layout
23694
23695 \end_inset
23696 </cell>
23697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23698 \begin_inset Text
23699
23700 \begin_layout Plain Layout
23701 丸い穴の開いたドーナツ型(CD/DVD大)
23702 \end_layout
23703
23704 \end_inset
23705 </cell>
23706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23707 \begin_inset Text
23708
23709 \begin_layout Plain Layout
23710 伸縮不可。多くの文字を入れられないことに注意。
23711 \end_layout
23712
23713 \end_inset
23714 </cell>
23715 </row>
23716 <row>
23717 <cell alignment="center" valignment="top" topline="true" usebox="none">
23718 \begin_inset Text
23719
23720 \begin_layout Plain Layout
23721 Circle
23722 \end_layout
23723
23724 \end_inset
23725 </cell>
23726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23727 \begin_inset Text
23728
23729 \begin_layout Plain Layout
23730
23731 \end_layout
23732
23733 \end_inset
23734 </cell>
23735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23736 \begin_inset Text
23737
23738 \begin_layout Plain Layout
23739 脆弱。計算に失敗することも。
23740 \end_layout
23741
23742 \end_inset
23743 </cell>
23744 </row>
23745 <row>
23746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23747 \begin_inset Text
23748
23749 \begin_layout Plain Layout
23750 Diamond
23751 \end_layout
23752
23753 \end_inset
23754 </cell>
23755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23756 \begin_inset Text
23757
23758 \begin_layout Plain Layout
23759 菱形(シンボル的に
23760 \begin_inset Quotes eld
23761 \end_inset
23762
23763 diamond
23764 \begin_inset Quotes erd
23765 \end_inset
23766
23767 と表記)
23768 \end_layout
23769
23770 \end_inset
23771 </cell>
23772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23773 \begin_inset Text
23774
23775 \begin_layout Plain Layout
23776 -
23777 \end_layout
23778
23779 \end_inset
23780 </cell>
23781 </row>
23782 <row>
23783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23784 \begin_inset Text
23785
23786 \begin_layout Plain Layout
23787 Heart
23788 \end_layout
23789
23790 \end_inset
23791 </cell>
23792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23793 \begin_inset Text
23794
23795 \begin_layout Plain Layout
23796 ハート型
23797 \end_layout
23798
23799 \end_inset
23800 </cell>
23801 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23802 \begin_inset Text
23803
23804 \begin_layout Plain Layout
23805 -
23806 \end_layout
23807
23808 \end_inset
23809 </cell>
23810 </row>
23811 <row>
23812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23813 \begin_inset Text
23814
23815 \begin_layout Plain Layout
23816 Hexagon
23817 \end_layout
23818
23819 \end_inset
23820 </cell>
23821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23822 \begin_inset Text
23823
23824 \begin_layout Plain Layout
23825 六角形
23826 \end_layout
23827
23828 \end_inset
23829 </cell>
23830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23831 \begin_inset Text
23832
23833 \begin_layout Plain Layout
23834 -
23835 \end_layout
23836
23837 \end_inset
23838 </cell>
23839 </row>
23840 <row>
23841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23842 \begin_inset Text
23843
23844 \begin_layout Plain Layout
23845 Nut
23846 \end_layout
23847
23848 \end_inset
23849 </cell>
23850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23851 \begin_inset Text
23852
23853 \begin_layout Plain Layout
23854 ナット型(丸い穴の開いた六角形)
23855 \end_layout
23856
23857 \end_inset
23858 </cell>
23859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23860 \begin_inset Text
23861
23862 \begin_layout Plain Layout
23863 -
23864 \end_layout
23865
23866 \end_inset
23867 </cell>
23868 </row>
23869 <row>
23870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23871 \begin_inset Text
23872
23873 \begin_layout Plain Layout
23874 Square
23875 \end_layout
23876
23877 \end_inset
23878 </cell>
23879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23880 \begin_inset Text
23881
23882 \begin_layout Plain Layout
23883 正方形
23884 \end_layout
23885
23886 \end_inset
23887 </cell>
23888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23889 \begin_inset Text
23890
23891 \begin_layout Plain Layout
23892 -
23893 \end_layout
23894
23895 \end_inset
23896 </cell>
23897 </row>
23898 <row>
23899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23900 \begin_inset Text
23901
23902 \begin_layout Plain Layout
23903 Star
23904 \end_layout
23905
23906 \end_inset
23907 </cell>
23908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23909 \begin_inset Text
23910
23911 \begin_layout Plain Layout
23912 五芒星
23913 \end_layout
23914
23915 \end_inset
23916 </cell>
23917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23918 \begin_inset Text
23919
23920 \begin_layout Plain Layout
23921 -
23922 \end_layout
23923
23924 \end_inset
23925 </cell>
23926 </row>
23927 <row>
23928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23929 \begin_inset Text
23930
23931 \begin_layout Plain Layout
23932 Candle
23933 \end_layout
23934
23935 \end_inset
23936 </cell>
23937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23938 \begin_inset Text
23939
23940 \begin_layout Plain Layout
23941 燃えるろうそく
23942 \end_layout
23943
23944 \end_inset
23945 </cell>
23946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23947 \begin_inset Text
23948
23949 \begin_layout Plain Layout
23950 -
23951 \end_layout
23952
23953 \end_inset
23954 </cell>
23955 </row>
23956 <row>
23957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23958 \begin_inset Text
23959
23960 \begin_layout Plain Layout
23961 Drop down/up
23962 \end_layout
23963
23964 \end_inset
23965 </cell>
23966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23967 \begin_inset Text
23968
23969 \begin_layout Plain Layout
23970 雫型/逆雫型
23971 \end_layout
23972
23973 \end_inset
23974 </cell>
23975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23976 \begin_inset Text
23977
23978 \begin_layout Plain Layout
23979 脆弱。計算に失敗することも。
23980 \end_layout
23981
23982 \end_inset
23983 </cell>
23984 </row>
23985 <row>
23986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23987 \begin_inset Text
23988
23989 \begin_layout Plain Layout
23990 \SpecialChar TeX
23991
23992 \end_layout
23993
23994 \end_inset
23995 </cell>
23996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23997 \begin_inset Text
23998
23999 \begin_layout Plain Layout
24000 \SpecialChar TeX
24001 ロゴ
24002 \end_layout
24003
24004 \end_inset
24005 </cell>
24006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24007 \begin_inset Text
24008
24009 \begin_layout Plain Layout
24010 -
24011 \end_layout
24012
24013 \end_inset
24014 </cell>
24015 </row>
24016 <row>
24017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24018 \begin_inset Text
24019
24020 \begin_layout Plain Layout
24021 Triangle up/down/
24022 \begin_inset Newline newline
24023 \end_inset
24024
24025 left/right
24026 \end_layout
24027
24028 \end_inset
24029 </cell>
24030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24031 \begin_inset Text
24032
24033 \begin_layout Plain Layout
24034 各方向の三角形
24035 \end_layout
24036
24037 \end_inset
24038 </cell>
24039 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24040 \begin_inset Text
24041
24042 \begin_layout Plain Layout
24043 -
24044 \end_layout
24045
24046 \end_inset
24047 </cell>
24048 </row>
24049 </lyxtabular>
24050
24051 \end_inset
24052
24053
24054 \end_layout
24055
24056 \begin_layout Standard
24057 段落に形を適用するには、\SpecialChar LyX
24058 ツールバー中の環境プルダウンボックスから形を選んでください。
24059 \end_layout
24060
24061 \begin_layout Standard
24062 \begin_inset Newpage newpage
24063 \end_inset
24064
24065
24066 \end_layout
24067
24068 \begin_layout Standard
24069 以下は、ナット型の段落の例です。
24070 \end_layout
24071
24072 \begin_layout Standard
24073 \begin_inset VSpace bigskip
24074 \end_inset
24075
24076
24077 \end_layout
24078
24079 \begin_layout Nut
24080
24081 \lang latin
24082 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24083  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24084  voluptua.
24085  At vero eos et accusam et justo duo dolores et ea rebum.
24086  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24087  sit amet.
24088  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24089  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24090  voluptua.
24091 \end_layout
24092
24093 \begin_layout Standard
24094 \begin_inset VSpace bigskip
24095 \end_inset
24096
24097
24098 \end_layout
24099
24100 \begin_layout Standard
24101 \begin_inset Note Greyedout
24102 status open
24103
24104 \begin_layout Plain Layout
24105
24106 \series bold
24107 【註】
24108 \series default
24109 shapepar段落は改頁にまたがることはできません。
24110 \end_layout
24111
24112 \end_inset
24113
24114
24115 \end_layout
24116
24117 \begin_layout Standard
24118 \begin_inset VSpace bigskip
24119 \end_inset
24120
24121
24122 \end_layout
24123
24124 \begin_layout Standard
24125
24126 \series bold
24127 shapepar
24128 \series default
24129 は、段落中にどれだけ文章が含まれようとも、常に形を維持しようとします。したがって、段落の大きさは、含まれている文章量によって変化しますので、段落の大きさがページ
24130 余白にはみ出してしまうことがあります。寸法が伸縮することを示すために、文章量を二倍にした例を見てみましょう。
24131 \end_layout
24132
24133 \begin_layout Standard
24134 \begin_inset Newpage newpage
24135 \end_inset
24136
24137
24138 \end_layout
24139
24140 \begin_layout Nut
24141
24142 \lang latin
24143 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24144  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24145  voluptua.
24146  At vero eos et accusam et justo duo dolores et ea rebum.
24147  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24148  sit amet.
24149  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24150  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24151  voluptua.
24152  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24153  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24154  voluptua.
24155  At vero eos et accusam et justo duo dolores et ea rebum.
24156  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24157  sit amet.
24158  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24159  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24160  voluptua.
24161 \end_layout
24162
24163 \begin_layout Standard
24164 \begin_inset VSpace bigskip
24165 \end_inset
24166
24167
24168 \end_layout
24169
24170 \begin_layout Standard
24171 ただし、
24172 \family sans
24173 CDlabel
24174 \family default
24175 形は例外です。これは、CD/DVDの寸法に収まらなくてはならないので、伸縮しません。したがって、形に収まる文章量は限られています。
24176 \begin_inset Newline newline
24177 \end_inset
24178
24179
24180 \family sans
24181 drop
24182 \family default
24183 形と
24184 \family sans
24185 circle
24186 \family default
24187 形は脆弱で、文章量によっては寸法計算が失敗する可能性があります。この場合、
24188 \begin_inset Quotes eld
24189 \end_inset
24190
24191 Arithmetic overflow
24192 \begin_inset Quotes erd
24193 \end_inset
24194
24195 という\SpecialChar LaTeX
24196 エラーが発生します。この時は、文章の一部を追加したり削除したりするか、どれもうまくいかなければ別の形を使用してください。
24197 \end_layout
24198
24199 \begin_layout Standard
24200 \begin_inset VSpace bigskip
24201 \end_inset
24202
24203
24204 \end_layout
24205
24206 \begin_layout Standard
24207 先端のある形では、先端部の文字列で、\SpecialChar LaTeX
24208 のハイフネーションルーチンが失敗することがあります。したがって、この部分の文章には、ハイフネーション位置
24209 \family sans
24210 (
24211 \begin_inset Info
24212 type  "shortcut"
24213 arg   "specialchar-insert hyphenation"
24214 \end_inset
24215
24216
24217 \family default
24218 )を指定することが往々にして必要になります。
24219 \end_layout
24220
24221 \begin_layout Standard
24222 \begin_inset VSpace bigskip
24223 \end_inset
24224
24225
24226 \end_layout
24227
24228 \begin_layout Standard
24229 Shapepar段落は、常に中央揃えか、左の縁が左ページ余白に接するように配置されます。したがって、これらの段落を揃えるのに段落ダイアログを使用することはできま
24230 せん。解決方法としては、段落をミニページかparboxの中において、このボックスを揃えることです。ここでの問題は、ボックスの正しい幅を見出すことです。もしボック
24231 スの幅が広すぎれば、ボックスを中央揃えにしたとしても、ボックスの左側が付いてしまうので中央揃えになりません。そこで、正しい幅を見出すまでは、若干試行錯誤しなくて
24232 はならないかもしれません。以下は、二つのハート形の段落です。一つ目は揃え指定がなく、二つ目は右揃えにしてあります。
24233 \end_layout
24234
24235 \begin_layout Standard
24236 \begin_inset Newpage newpage
24237 \end_inset
24238
24239
24240 \end_layout
24241
24242 \begin_layout Heart
24243 \noindent
24244
24245 \lang latin
24246 Lo\SpecialChar softhyphen
24247 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24248  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24249  voluptua.
24250  At vero eos et accusam et justo duo dolores et ea rebum.
24251  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24252  sit amet.
24253 \end_layout
24254
24255 \begin_layout Standard
24256 \begin_inset VSpace bigskip
24257 \end_inset
24258
24259
24260 \end_layout
24261
24262 \begin_layout Standard
24263 \noindent
24264 \align right
24265 \begin_inset Box Frameless
24266 position "t"
24267 hor_pos "c"
24268 has_inner_box 1
24269 inner_pos "t"
24270 use_parbox 1
24271 use_makebox 0
24272 width "42col%"
24273 special "none"
24274 height "1in"
24275 height_special "totalheight"
24276 thickness "0.4pt"
24277 separation "3pt"
24278 shadowsize "4pt"
24279 framecolor "black"
24280 backgroundcolor "none"
24281 status open
24282
24283 \begin_layout Heart
24284 \noindent
24285
24286 \lang latin
24287 Lo\SpecialChar softhyphen
24288 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24289  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24290  voluptua.
24291  At vero eos et accusam et justo duo dolores et ea rebum.
24292  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24293  sit amet.
24294 \end_layout
24295
24296 \end_inset
24297
24298
24299 \end_layout
24300
24301 \begin_layout Subsection
24302 任意の形
24303 \end_layout
24304
24305 \begin_layout Standard
24306 ユーザーは、どのような形であれ、定義することができます。これを手動で行うのは、全ての座標を指定しなくてはならないので、かなりの労力を必要とします。しかし、以下の
24307 ように、コンピューターに座標を計算させる方法もあります。
24308 \end_layout
24309
24310 \begin_layout Enumerate
24311 プログラム
24312 \begin_inset CommandInset href
24313 LatexCommand href
24314 name "Jpgfdraw"
24315 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24316
24317 \end_inset
24318
24319 を導入します。
24320 \end_layout
24321
24322 \begin_layout Enumerate
24323
24324 \family sans
24325 Jpgfdraw
24326 \family default
24327 内で、メニュー
24328 \family sans
24329 Te
24330 \begin_inset ERT
24331 status collapsed
24332
24333 \begin_layout Plain Layout
24334
24335 {}
24336 \end_layout
24337
24338 \end_inset
24339
24340 X/LaT
24341 \begin_inset ERT
24342 status collapsed
24343
24344 \begin_layout Plain Layout
24345
24346 {}
24347 \end_layout
24348
24349 \end_inset
24350
24351 eX\SpecialChar menuseparator
24352 Settings\SpecialChar menuseparator
24353 Set Normal Size
24354 \family default
24355 で文書中で使用しているフォント寸を選択します。例えば、この文書は12
24356 \begin_inset space \thinspace{}
24357 \end_inset
24358
24359 pt寸を使用しています。
24360 \end_layout
24361
24362 \begin_layout Enumerate
24363 形を描きます。
24364 \end_layout
24365
24366 \begin_layout Enumerate
24367 メニュー
24368 \family sans
24369 Te
24370 \begin_inset ERT
24371 status collapsed
24372
24373 \begin_layout Plain Layout
24374
24375 {}
24376 \end_layout
24377
24378 \end_inset
24379
24380 X/LaT
24381 \begin_inset ERT
24382 status collapsed
24383
24384 \begin_layout Plain Layout
24385
24386 {}
24387 \end_layout
24388
24389 \end_inset
24390
24391 eX\SpecialChar menuseparator
24392 Shapepar
24393 \family default
24394 を使用して、形の座標をエクスポートします。現れるダイアログで、形の外枠を座標に使うか、パス自体を使うかを指定します。
24395 \begin_inset Foot
24396 status collapsed
24397
24398 \begin_layout Plain Layout
24399 詳細については、
24400 \begin_inset CommandInset href
24401 LatexCommand href
24402 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24403
24404 \end_inset
24405
24406 を参照してください。
24407 \end_layout
24408
24409 \end_inset
24410
24411
24412 \end_layout
24413
24414 \begin_layout Standard
24415 座標は\SpecialChar TeX
24416 ファイルに書き込まれます。これを\SpecialChar LyX
24417 文書で使用するには、
24418 \end_layout
24419
24420 \begin_layout Enumerate
24421 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます。
24422 \end_layout
24423
24424 \begin_layout Enumerate
24425 \SpecialChar LyX
24426
24427 \family sans
24428 挿入\SpecialChar menuseparator
24429 ファイル\SpecialChar menuseparator
24430 子文書
24431 \family default
24432 メニューでファイルを選択し、
24433 \family sans
24434 取り込みの型
24435 \family default
24436 として
24437 \family sans
24438 Input
24439 \family default
24440 を選択してください。
24441 \end_layout
24442
24443 \begin_layout Standard
24444 \begin_inset VSpace defskip
24445 \end_inset
24446
24447
24448 \end_layout
24449
24450 \begin_layout Standard
24451 \begin_inset Note Greyedout
24452 status open
24453
24454 \begin_layout Plain Layout
24455
24456 \series bold
24457 【註】
24458 \series default
24459 変更した形は、現在の段落にのみ適用されます。次の段落では全て通常に戻ります。したがって、段落定義ファイルは、形を変えたい段落全てで読み込まれなくてはなりません。
24460 \end_layout
24461
24462 \end_inset
24463
24464
24465 \end_layout
24466
24467 \begin_layout Standard
24468 \begin_inset VSpace bigskip
24469 \end_inset
24470
24471
24472 \end_layout
24473
24474 \begin_layout Standard
24475 以下の用例をご覧ください。
24476 \end_layout
24477
24478 \begin_layout Standard
24479 \begin_inset VSpace bigskip
24480 \end_inset
24481
24482
24483 \end_layout
24484
24485 \begin_layout Standard
24486 \begin_inset CommandInset include
24487 LatexCommand input
24488 filename "../SpecialParagraphShape.tex"
24489
24490 \end_inset
24491
24492
24493 \lang latin
24494 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24495  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24496  voluptua.
24497  At vero eos et accusam et justo duo dolores et ea rebum.
24498  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24499  sit amet.
24500  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24501  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24502  voluptua.
24503 \end_layout
24504
24505 \begin_layout Standard
24506 \begin_inset VSpace bigskip
24507 \end_inset
24508
24509
24510 \end_layout
24511
24512 \begin_layout Standard
24513
24514 \series bold
24515 【ヒント】
24516 \family sans
24517 \series default
24518 Jpgfdraw
24519 \family default
24520 で複雑な形を描く場合、まず形を好きなプログラムで描き、出来上がった画像を
24521 \family sans
24522 Jpgfdraw
24523 \family default
24524 に読み込む方法があります。この場合、画像の外枠に沿って、直線またはスプラインを描くだけですみます。
24525 \end_layout
24526
24527 \begin_layout Standard
24528 \begin_inset VSpace bigskip
24529 \end_inset
24530
24531
24532 \end_layout
24533
24534 \begin_layout Standard
24535
24536 \family sans
24537 任意の段落形
24538 \family default
24539 モジュールは、
24540 \family sans
24541 shapepar
24542 \family default
24543
24544 \family sans
24545 Shapepar
24546 \family default
24547 の二つのコマンドも提供していて、任意の形を座標毎に定義するのに使用することができます。
24548 \begin_inset Foot
24549 status collapsed
24550
24551 \begin_layout Plain Layout
24552 これらのコマンドは、上述の全ての形で内部的に使用されています。
24553 \end_layout
24554
24555 \end_inset
24556
24557 これらのスタイルがどのように使われていて、どのような設定ができるのかについての詳しい情報は、
24558 \series bold
24559 shapepar
24560 \series default
24561 パッケージの取扱説明書
24562 \begin_inset CommandInset citation
24563 LatexCommand cite
24564 key "shapepar"
24565
24566 \end_inset
24567
24568 をご覧ください。
24569 \end_layout
24570
24571 \begin_layout Bibliography
24572 \begin_inset CommandInset bibitem
24573 LatexCommand bibitem
24574 key "multicol"
24575
24576 \end_inset
24577
24578 \SpecialChar LaTeX
24579 パッケージ
24580 \begin_inset CommandInset href
24581 LatexCommand href
24582 name "multicol"
24583 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24584
24585 \end_inset
24586
24587 の取扱説明書
24588 \end_layout
24589
24590 \begin_layout Bibliography
24591 \begin_inset CommandInset bibitem
24592 LatexCommand bibitem
24593 key "shapepar"
24594
24595 \end_inset
24596
24597 \SpecialChar LaTeX
24598 パッケージ
24599 \begin_inset CommandInset href
24600 LatexCommand href
24601 name "shapepar"
24602 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
24603
24604 \end_inset
24605
24606 の取扱説明書
24607 \end_layout
24608
24609 \end_body
24610 \end_document