]> git.lyx.org Git - features.git/blob - lib/doc/ja/Additional.lyx
Additional.lyx: remove sloppypar
[features.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 "ftp://ftp2.commence.com/pub/freebies/"
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 \end_layout
18434
18435 \begin_layout Subsection
18436 \SpecialChar LyX
18437 におけるRCSコマンド
18438 \end_layout
18439
18440 \begin_layout Standard
18441 以下の節では\SpecialChar LyX
18442 でサポートされているRCSコマンドを説明します。それらのコマンドは
18443 \family sans
18444 ファイル\SpecialChar menuseparator
18445 バージョン管理
18446 \family default
18447 のサブメニューにあります。\SpecialChar LyX
18448 は、RCS 5.7/5.8に対して試験されています。
18449 \end_layout
18450
18451 \begin_layout Subsubsection
18452
18453 \family sans
18454 登録
18455 \end_layout
18456
18457 \begin_layout Standard
18458 文書がバージョン管理の下にない場合には、これがメニューにあらわれる唯一の項目です。文書がバージョン管理下にあれば、項目
18459 \family sans
18460 登録
18461 \family default
18462 は不可視になります。
18463 \end_layout
18464
18465 \begin_layout Standard
18466 このコマンドは、文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合)。すると対話的に、文書の最初の説明を入力するように尋ねられます。すると文
18467 書は読み込み専用モードになるので、変更を加えるためには
18468 \family sans
18469 チェックアウトして編集
18470 \family default
18471 を実行する必要があります。バージョン管理下にある文書は、ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます。
18472 \end_layout
18473
18474 \begin_layout Standard
18475 実行されるRCSコマンドは:
18476 \family typewriter
18477
18478 \begin_inset Newline newline
18479 \end_inset
18480
18481 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18482 \end_layout
18483
18484 \begin_layout Standard
18485 スイッチについて知りたい場合は、
18486 \family typewriter
18487 man ci
18488 \family default
18489 を読んでください。
18490 \end_layout
18491
18492 \begin_layout Subsubsection
18493
18494 \family sans
18495 変更をチェックインする
18496 \end_layout
18497
18498 \begin_layout Standard
18499 ファイルの編集が終わると、その変更をチェックインします。このとき、変更についての説明文を求められます。これは履歴ログに記録されます。バージョン番号は繰り上がり、
18500 変更がマスターRCSファイルに適用され、文書がアンロックされて読み込み専用モードになります。
18501 \end_layout
18502
18503 \begin_layout Standard
18504 RCSコマンド:
18505 \family typewriter
18506 ci -q -u -m"<説明文>" <ファイル名>
18507 \end_layout
18508
18509 \begin_layout Subsubsection
18510
18511 \family sans
18512 チェックアウトして編集
18513 \end_layout
18514
18515 \begin_layout Standard
18516 これは、文書をロックして編集できるようにします。そしてあなただけが文書を読み書きできるようにします。通常は、しばらくの間、文書を編集し、それが終わると変更をチェ
18517 ックインします。あなたがファイルをロックしたことを反映して、ステータスラインが変わります。
18518 \end_layout
18519
18520 \begin_layout Standard
18521 RCSコマンド:
18522 \family typewriter
18523 co -q -l <ファイル名>
18524 \end_layout
18525
18526 \begin_layout Subsubsection
18527
18528 \family sans
18529 リポジトリのバージョンに戻す
18530 \end_layout
18531
18532 \begin_layout Standard
18533 これは、最終チェックイン以降、文書に加えられた変更をすべて破棄します。変更が破棄される前に、警告が発せられます。
18534 \end_layout
18535
18536 \begin_layout Standard
18537 RCSコマンド:
18538 \family typewriter
18539 co -f -u<バージョン> <ファイル名>
18540 \end_layout
18541
18542 \begin_layout Subsubsection
18543
18544 \family sans
18545 コピー
18546 \end_layout
18547
18548 \begin_layout Standard
18549 これは、現行文書のコピーを生成します。RCSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18550 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18551 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18552 \family sans
18553 ファイル\SpecialChar menuseparator
18554 名前をつけて保存\SpecialChar ldots
18555
18556 \family default
18557 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18558 \end_layout
18559
18560 \begin_layout Labeling
18561 \labelwidthstring 00.00.0000
18562 RCSコマンド:
18563 \begin_inset Flex Code
18564 status collapsed
18565
18566 \begin_layout Plain Layout
18567 "ファイル名"
18568 \end_layout
18569
18570 \end_inset
18571
18572
18573 \family typewriter
18574 "新ファイル名"
18575 \family default
18576 にコピーする場合
18577 \end_layout
18578
18579 \begin_layout Labeling
18580 \labelwidthstring 00.00.0000
18581 \begin_inset Flex Code
18582 status collapsed
18583
18584 \begin_layout Plain Layout
18585 ci -q -u -i "<新ファイル名>"
18586 \end_layout
18587
18588 \end_inset
18589
18590
18591 \end_layout
18592
18593 \begin_layout Subsubsection
18594
18595 \family sans
18596 最後のチェックインを取り消す
18597 \end_layout
18598
18599 \begin_layout Standard
18600 これは、最後のチェックインがあたかも為されなかったかのようにします。\SpecialChar LyX
18601 に読み込まれた文書に変更は加えられませんが、マスターRCSファイルから最後のバージョンが削除
18602 されます。
18603 \end_layout
18604
18605 \begin_layout Standard
18606 RCSコマンド:
18607 \family typewriter
18608 rcs -o<バージョン> <ファイル名>
18609 \end_layout
18610
18611 \begin_layout Subsubsection
18612
18613 \family sans
18614 履歴を表示
18615 \end_layout
18616
18617 \begin_layout Standard
18618 RCS文書の完全な履歴を表示します。ブラウザ中に、
18619 \family typewriter
18620 rlog <ファイル名>
18621 \family default
18622 の出力が表示されます。詳細は
18623 \family typewriter
18624 man rlog
18625 \family default
18626 をご覧ください。
18627 \end_layout
18628
18629 \begin_layout Subsubsection
18630 改訂情報
18631 \end_layout
18632
18633 \begin_layout Standard
18634 \SpecialChar LyX
18635 は、RCSバージョン番号情報(のみ)をサポートしています。詳細については、
18636 \begin_inset CommandInset ref
18637 LatexCommand ref
18638 reference "subsec:VCS改訂情報"
18639
18640 \end_inset
18641
18642 を参照。
18643 \end_layout
18644
18645 \begin_layout Subsection
18646 \SpecialChar LyX
18647 におけるCVSコマンド
18648 \end_layout
18649
18650 \begin_layout Standard
18651 \SpecialChar LyX
18652 は、現在CVSを一部サポートしています。そのコマンドは、
18653 \family sans
18654 ファイル\SpecialChar menuseparator
18655 バージョン管理
18656 \family default
18657 サブメニューにあります。バージョン管理システムSVNの方が強力なので、可能ならばCVSではなく、SVNを使用してください。
18658 \end_layout
18659
18660 \begin_layout Subsubsection
18661 CVSの一般的な利用法
18662 \end_layout
18663
18664 \begin_layout Standard
18665 CVSを初めて使いたい場合には、外部ツールを使用して自分のレポジトリを作成し、作業コピーをチェックアウトする必要があります。クライアント=サーバーモデルを使用し
18666 ている場合には、最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません。
18667 \end_layout
18668
18669 \begin_layout Standard
18670 改訂管理下にある文書のレポジトリを他人も利用している場合に、同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します。標準的なCVSレポジトリは、ファイル
18671 ロッキング機構を有しません。これは驚くべきことかもしれませんが、コンフリクトは、文書の同じ箇所の特定の内容について、人々が意見を異にしている場合にのみ発生します
18672 。したがって、共著者同士がコンスタントにコミュニケーションを交わしていれば、このようなコンフリクトは滅多に発生しません。もしコミュニケーションがなければ、いずれ
18673 にしても根本的な問題があるわけです。それにもかかわらず、いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます。この場合、最初にチェックアウトした際に
18674 、全ファイルの作業コピーは読み込み専用にされ、ユーザーは、作業コピーを書き込み可能にする特別なコマンドを使用した後、編集を開始することになります。変更をチェック
18675 インすると、作業コピーは読み込み専用状態に戻ります。\SpecialChar LyX
18676 で予備付きチェックアウトを利用したい場合には、
18677 \begin_inset Flex Code
18678 status collapsed
18679
18680 \begin_layout Plain Layout
18681 .cvsrc
18682 \end_layout
18683
18684 \end_inset
18685
18686 ファイルを編集して、
18687 \begin_inset Flex Code
18688 status collapsed
18689
18690 \begin_layout Plain Layout
18691 cvs -r
18692 \end_layout
18693
18694 \end_inset
18695
18696 という行を書き加える必要があります。この方法の利点は、文書のうち、書き込み可能コピーを誰が使用しているかを見ることができることです。ただし、一人のユーザーだけが
18697 コピーを書き込み可能にしているとは限りません。
18698 \end_layout
18699
18700 \begin_layout Standard
18701 \SpecialChar LyX
18702 は、あなたが予備付きチェックアウトを使用しているか、予備なしチェックアウトを利用しているか、推測しようと試みます。使用中の作業コピーが読み込み専用になっているか
18703 、あるいはそれが書き込み可能であって、CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には、予備付きチェックアウトを使用しているものと仮定
18704 し、そうでない場合には予備なしチェックアウトを使用しているものと仮定します。予備付きチェックアウトが検出された場合には、作業コピーが読み込み専用の場合に書き込み
18705 可能にするためには、
18706 \begin_inset Flex MenuItem
18707 status collapsed
18708
18709 \begin_layout Plain Layout
18710 チェックアウト
18711 \end_layout
18712
18713 \end_inset
18714
18715 メニューを使用しなくてはなりません。その後、
18716 \begin_inset Flex MenuItem
18717 status collapsed
18718
18719 \begin_layout Plain Layout
18720 チェックイン
18721 \end_layout
18722
18723 \end_inset
18724
18725 メニューが利用可能になるので、自分が加えた変更をリポジトリに移した後、作業コピーを再び読み込み専用にする際には、これを使用します。
18726 \end_layout
18727
18728 \begin_layout Standard
18729 CVSの詳細な情報は、
18730 \begin_inset Flex URL
18731 status collapsed
18732
18733 \begin_layout Plain Layout
18734
18735 http://www.nongnu.org/cvs
18736 \end_layout
18737
18738 \end_inset
18739
18740
18741 \begin_inset Flex URL
18742 status collapsed
18743
18744 \begin_layout Plain Layout
18745
18746 http://ximbiot.com/cvs
18747 \end_layout
18748
18749 \end_inset
18750
18751 にあります。
18752 \end_layout
18753
18754 \begin_layout Standard
18755 以下に言及するサブコマンドとスイッチを理解するには、
18756 \family typewriter
18757 man cvs
18758 \family default
18759 をお読みください。
18760 \end_layout
18761
18762 \begin_layout Subsubsection
18763 登録
18764 \end_layout
18765
18766 \begin_layout Standard
18767 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
18768 \family sans
18769 登録
18770 \family default
18771 項目は表示されません。
18772 \end_layout
18773
18774 \begin_layout Standard
18775 本コマンドは、既に文書ディレクトリをCVS管理下に置いている場合に
18776 \series bold
18777 \emph on
18778 のみ
18779 \series default
18780 \emph default
18781 (すなわち
18782 \begin_inset Flex Code
18783 status collapsed
18784
18785 \begin_layout Plain Layout
18786 CVS/Entries
18787 \end_layout
18788
18789 \end_inset
18790
18791 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、外部ツールを使用して、アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18792 を意味します(このステップを忘れてしまうと、\SpecialChar LyX
18793 は文書をRCSに登録します)。
18794 \end_layout
18795
18796 \begin_layout Standard
18797 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだチェックインされたわけではないことに注意してください。
18798 \end_layout
18799
18800 \begin_layout Standard
18801 実行されるCVSコマンドは、
18802 \family typewriter
18803 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18804 \family default
18805  です。
18806 \end_layout
18807
18808 \begin_layout Standard
18809 上記および他のすべてのCVSコマンドにおける
18810 \family typewriter
18811 "<ファイル名>"
18812 \family default
18813 は、「カレント作業ディレクトリをファイルの場所に移動し、パスコンポーネントを除いたファイル名を引数として使用する」という意味になります。
18814 \end_layout
18815
18816 \begin_layout Subsubsection
18817 変更のチェックイン
18818 \end_layout
18819
18820 \begin_layout Standard
18821 ファイルの編集を終えたら、変更をコミットします。このとき、文書に変更が加えられていれば、変更の説明文を入れるよう促されます。その後、変更がレポジトリに書き込まれ
18822 ます。文書を変更せず、予備付きチェックアウトが検出された場合、
18823 \begin_inset Flex MenuItem
18824 status collapsed
18825
18826 \begin_layout Plain Layout
18827 チェックアウト
18828 \end_layout
18829
18830 \end_inset
18831
18832 で作られた予備は取り消されます。
18833 \end_layout
18834
18835 \begin_layout Labeling
18836 \labelwidthstring 00.00.0000
18837 CVSコマンド: 
18838 \begin_inset space ~
18839 \end_inset
18840
18841
18842 \begin_inset Newline newline
18843 \end_inset
18844
18845
18846 \begin_inset Flex Code
18847 status collapsed
18848
18849 \begin_layout Plain Layout
18850 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18851 \end_layout
18852
18853 \end_inset
18854
18855 あるいは
18856 \begin_inset Newline newline
18857 \end_inset
18858
18859
18860 \begin_inset Flex Code
18861 status collapsed
18862
18863 \begin_layout Plain Layout
18864 cvs -q unedit "<ファイル名>"
18865 \end_layout
18866
18867 \end_inset
18868
18869
18870 \end_layout
18871
18872 \begin_layout Subsubsection
18873 変更のチェックアウト
18874 \end_layout
18875
18876 \begin_layout Standard
18877 レポジトリを他人と共有している場合、他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります。
18878 \end_layout
18879
18880 \begin_layout Standard
18881 CVSコマンド:
18882 \family typewriter
18883 cvs -q update "<ファイル名>"
18884 \end_layout
18885
18886 \begin_layout Standard
18887 読み込み専用チェックアウトが検出された場合、作業コピーを書き込み可能にし予備を作成します。
18888 \end_layout
18889
18890 \begin_layout Standard
18891 CVSコマンド:
18892 \family typewriter
18893 cvs -q edit "<ファイル名>"
18894 \end_layout
18895
18896 \begin_layout Subsubsection
18897 レポジトリ版に戻す
18898 \end_layout
18899
18900 \begin_layout Standard
18901 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVS更新コマンド
18902 が実行されます。
18903 \end_layout
18904
18905 \begin_layout Standard
18906 CVSコマンド:
18907 \family typewriter
18908 cvs -q update "<ファイル名>"
18909 \end_layout
18910
18911 \begin_layout Standard
18912 予備付きチェックアウトが検出され、作業コピーに変更がない場合、予備のみが取り消されます。
18913 \end_layout
18914
18915 \begin_layout Standard
18916 CVSコマンド:
18917 \family typewriter
18918 cvs -q unedit "<ファイル名>"
18919 \end_layout
18920
18921 \begin_layout Subsubsection
18922
18923 \family sans
18924 コピー
18925 \end_layout
18926
18927 \begin_layout Standard
18928 これは、現行文書のコピーを生成します。CVSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18929 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18930 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18931 \family sans
18932 ファイル\SpecialChar menuseparator
18933 名前をつけて保存\SpecialChar ldots
18934
18935 \family default
18936 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18937 \end_layout
18938
18939 \begin_layout Labeling
18940 \labelwidthstring 00.00.0000
18941 CVSコマンド:
18942 \end_layout
18943
18944 \begin_layout Labeling
18945 \labelwidthstring 00.00.0000
18946 \begin_inset Flex Code
18947 status collapsed
18948
18949 \begin_layout Plain Layout
18950 "ファイル名"
18951 \end_layout
18952
18953 \end_inset
18954
18955
18956 \begin_inset Flex Code
18957 status collapsed
18958
18959 \begin_layout Plain Layout
18960 "新ファイル名"
18961 \end_layout
18962
18963 \end_inset
18964
18965 にコピーする場合
18966 \end_layout
18967
18968 \begin_layout Labeling
18969 \labelwidthstring 00.00.0000
18970 \begin_inset Flex Code
18971 status collapsed
18972
18973 \begin_layout Plain Layout
18974 cvs -q add "<新ファイル名>"
18975 \end_layout
18976
18977 \end_inset
18978
18979
18980 \end_layout
18981
18982 \begin_layout Subsubsection
18983 ファイル名変更
18984 \end_layout
18985
18986 \begin_layout Standard
18987 これは、現行文書のファイル名を変更します。CVSは、ファイル名変更操作を自前ではサポートしませんので、バージョン履歴には保存されず、名称変更後のファイルは、新規
18988 ファイルとして追加されます。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され
18989 、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パ
18990 スは、(
18991 \family sans
18992 ファイル\SpecialChar menuseparator
18993 名前をつけて保存\SpecialChar ldots
18994
18995 \family default
18996 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
18997 \end_layout
18998
18999 \begin_layout Labeling
19000 \labelwidthstring 00.00.0000
19001 CVSコマンド:
19002 \end_layout
19003
19004 \begin_layout Labeling
19005 \labelwidthstring 00.00.0000
19006 \begin_inset Flex Code
19007 status collapsed
19008
19009 \begin_layout Plain Layout
19010 "ファイル名"
19011 \end_layout
19012
19013 \end_inset
19014
19015
19016 \begin_inset Flex Code
19017 status collapsed
19018
19019 \begin_layout Plain Layout
19020 "新ファイル名"
19021 \end_layout
19022
19023 \end_inset
19024
19025 に変更する場合
19026 \end_layout
19027
19028 \begin_layout Labeling
19029 \labelwidthstring 00.00.0000
19030 \begin_inset Flex Code
19031 status collapsed
19032
19033 \begin_layout Plain Layout
19034 cvs -q add "<新ファイル名>"
19035 \end_layout
19036
19037 \end_inset
19038
19039
19040 \end_layout
19041
19042 \begin_layout Labeling
19043 \labelwidthstring 00.00.0000
19044 \begin_inset Flex Code
19045 status collapsed
19046
19047 \begin_layout Plain Layout
19048 cvs -q remove "<ファイル名>"
19049 \end_layout
19050
19051 \end_inset
19052
19053
19054 \end_layout
19055
19056 \begin_layout Subsubsection
19057 ローカルディレクトリチェックアウトのレポジトリからの更新
19058 \end_layout
19059
19060 \begin_layout Standard
19061 子文書や図を含んだり、外部
19062 \begin_inset Flex Code
19063 status collapsed
19064
19065 \begin_layout Plain Layout
19066 .tex
19067 \end_layout
19068
19069 \end_inset
19070
19071 ファイルを取り込むなど、文書が複雑になるにつれ、バージョン管理の利用は複雑になります。\SpecialChar LyX
19072 は、文書が存在するツリー全体の更新をサポートします。これは、CVSの使用法
19073 について詳しい知識のない人々や、レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に、特に便利です。ファイル構造は、すべての外部ファイル
19074 が、文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります。いずれにしても、複合文書を新しいディレクトリを建てて収容するのは、望ましい習
19075 慣です。
19076 \end_layout
19077
19078 \begin_layout Standard
19079 コマンド
19080 \begin_inset Flex Code
19081 status collapsed
19082
19083 \begin_layout Plain Layout
19084 レポジトリを使ってローカル辞書を更新
19085 \end_layout
19086
19087 \end_inset
19088
19089 は、ディレクトリ全体を更新します。ローカルの変更が検出された場合には、更新を開始する前にユーザーに警告が発せられます。マージコンフリクトが発生した場合には、コン
19090 フリクトを起こしている部分の新旧バージョンが、両方とも最終文書に置かれますので、マージの結果を見直し、修正する必要があります。コンフリクトは、
19091 \begin_inset Flex Code
19092 status collapsed
19093
19094 \begin_layout Plain Layout
19095 <<<<<<<
19096 \end_layout
19097
19098 \end_inset
19099
19100
19101 \begin_inset Flex Code
19102 status collapsed
19103
19104 \begin_layout Plain Layout
19105 >>>>>>>
19106 \end_layout
19107
19108 \end_inset
19109
19110 の対に囲まれ、
19111 \begin_inset Flex Code
19112 status collapsed
19113
19114 \begin_layout Plain Layout
19115 =======
19116 \end_layout
19117
19118 \end_inset
19119
19120 で区切られて表示されます。最初の部分は、文書名に続いて、更新操作前のバージョンが置かれています。第2の部分は、
19121 \begin_inset Flex Code
19122 status collapsed
19123
19124 \begin_layout Plain Layout
19125 >
19126 \end_layout
19127
19128 \end_inset
19129
19130 記号列の後にバージョン番号に続いて、レポジトリ版が置かれます。
19131 \end_layout
19132
19133 \begin_layout Labeling
19134 \labelwidthstring 00.00.0000
19135 CVSコマンド: 
19136 \begin_inset space ~
19137 \end_inset
19138
19139
19140 \begin_inset Newline newline
19141 \end_inset
19142
19143
19144 \begin_inset Flex Code
19145 status collapsed
19146
19147 \begin_layout Plain Layout
19148 cd $path; cvs diff "."
19149 \end_layout
19150
19151 \end_inset
19152
19153 (変更が検出された場合には知らせる)
19154 \begin_inset Newline newline
19155 \end_inset
19156
19157
19158 \begin_inset Flex Code
19159 status collapsed
19160
19161 \begin_layout Plain Layout
19162 cd $path; cvs -q update "."
19163 \end_layout
19164
19165 \end_inset
19166
19167
19168 \end_layout
19169
19170 \begin_layout Standard
19171 ここで
19172 \begin_inset Flex Code
19173 status collapsed
19174
19175 \begin_layout Plain Layout
19176 $path
19177 \end_layout
19178
19179 \end_inset
19180
19181 は文書パスを表します。
19182 \end_layout
19183
19184 \begin_layout Subsubsection
19185 履歴を表示
19186 \end_layout
19187
19188 \begin_layout Standard
19189 これは、CVS文書の全履歴を表示します。
19190 \begin_inset Flex Code
19191 status collapsed
19192
19193 \begin_layout Plain Layout
19194 cvs log 
19195 \begin_inset Quotes eld
19196 \end_inset
19197
19198 <ファイル名>
19199 \begin_inset Quotes erd
19200 \end_inset
19201
19202
19203 \end_layout
19204
19205 \end_inset
19206
19207 の出力がブラウザに表示されます。
19208 \end_layout
19209
19210 \begin_layout Subsubsection
19211 改訂情報
19212 \end_layout
19213
19214 \begin_layout Standard
19215 \SpecialChar LyX
19216 は、CVS版数・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
19217 \family typewriter
19218 cvs log -r <ファイル名>
19219 \family default
19220 によって抽出されます。詳細については、第
19221 \begin_inset CommandInset ref
19222 LatexCommand ref
19223 reference "subsec:VCS改訂情報"
19224
19225 \end_inset
19226
19227 節を参照してください。
19228 \end_layout
19229
19230 \begin_layout Subsection
19231 \SpecialChar LyX
19232 におけるSVNコマンド
19233 \end_layout
19234
19235 \begin_layout Standard
19236 \SpecialChar LyX
19237 は、現在SVNを一部サポートしています。そのコマンドは、
19238 \begin_inset Flex MenuItem
19239 status collapsed
19240
19241 \begin_layout Plain Layout
19242 ファイル\SpecialChar menuseparator
19243 バージョン管理
19244 \end_layout
19245
19246 \end_inset
19247
19248 メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。\SpecialChar LyX
19249 は、SVN
19250  1.5および1.6に対して試験されています。
19251 \end_layout
19252
19253 \begin_layout Subsubsection
19254 登録
19255 \end_layout
19256
19257 \begin_layout Standard
19258 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
19259 \family sans
19260 登録
19261 \family default
19262 項目は表示されません。
19263 \end_layout
19264
19265 \begin_layout Standard
19266 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
19267 \emph on
19268 のみ
19269 \emph default
19270 (すなわち
19271 \begin_inset Flex Code
19272 status collapsed
19273
19274 \begin_layout Plain Layout
19275 .svn/entries
19276 \end_layout
19277
19278 \end_inset
19279
19280 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
19281 \end_layout
19282
19283 \begin_layout Standard
19284 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
19285 \end_layout
19286
19287 \begin_layout Standard
19288 実行されるSVNコマンドは、
19289 \begin_inset Flex Code
19290 status collapsed
19291
19292 \begin_layout Plain Layout
19293 svn add -q 
19294 \begin_inset Quotes eld
19295 \end_inset
19296
19297 <ファイル名>
19298 \begin_inset Quotes erd
19299 \end_inset
19300
19301
19302 \end_layout
19303
19304 \end_inset
19305
19306 です。
19307 \end_layout
19308
19309 \begin_layout Standard
19310 スイッチの説明は
19311 \begin_inset Flex Code
19312 status collapsed
19313
19314 \begin_layout Plain Layout
19315 man svn
19316 \end_layout
19317
19318 \end_inset
19319
19320 をお読みください。
19321 \end_layout
19322
19323 \begin_layout Subsubsection
19324 変更をチェックイン
19325 \end_layout
19326
19327 \begin_layout Standard
19328 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
19329 \end_layout
19330
19331 \begin_layout Standard
19332 SVNコマンド
19333 \begin_inset Foot
19334 status collapsed
19335
19336 \begin_layout Plain Layout
19337 ロックが有効になっていない場合です。第
19338 \begin_inset CommandInset ref
19339 LatexCommand ref
19340 reference "subsec:SVNファイルロック"
19341
19342 \end_inset
19343
19344 節をご覧ください。
19345 \end_layout
19346
19347 \end_inset
19348
19349
19350 \begin_inset Flex Code
19351 status collapsed
19352
19353 \begin_layout Plain Layout
19354 svn commit -q -m
19355 \begin_inset Quotes erd
19356 \end_inset
19357
19358 <入力した説明文>
19359 \begin_inset Quotes erd
19360 \end_inset
19361
19362  
19363 \begin_inset Quotes eld
19364 \end_inset
19365
19366 <ファイル名>
19367 \begin_inset Quotes erd
19368 \end_inset
19369
19370
19371 \end_layout
19372
19373 \end_inset
19374
19375
19376 \end_layout
19377
19378 \begin_layout Subsubsection
19379 チェックアウトして編集
19380 \end_layout
19381
19382 \begin_layout Standard
19383 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
19384 しておくようにしてください。
19385 \end_layout
19386
19387 \begin_layout Standard
19388 SVNコマンド
19389 \begin_inset Foot
19390 status collapsed
19391
19392 \begin_layout Plain Layout
19393 同上。
19394 \end_layout
19395
19396 \end_inset
19397
19398
19399 \begin_inset Flex Code
19400 status collapsed
19401
19402 \begin_layout Plain Layout
19403 svn update –non-interactive 
19404 \begin_inset Quotes eld
19405 \end_inset
19406
19407 <ファイル名>
19408 \begin_inset Quotes erd
19409 \end_inset
19410
19411
19412 \end_layout
19413
19414 \end_inset
19415
19416
19417 \end_layout
19418
19419 \begin_layout Subsubsection
19420 リポジトリ版に戻す
19421 \end_layout
19422
19423 \begin_layout Standard
19424 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
19425 \end_layout
19426
19427 \begin_layout Standard
19428 SVNコマンド:
19429 \begin_inset Flex Code
19430 status collapsed
19431
19432 \begin_layout Plain Layout
19433 svn revert -q 
19434 \begin_inset Quotes eld
19435 \end_inset
19436
19437 <ファイル名>
19438 \begin_inset Quotes erd
19439 \end_inset
19440
19441
19442 \end_layout
19443
19444 \end_inset
19445
19446
19447 \end_layout
19448
19449 \begin_layout Subsubsection
19450
19451 \family sans
19452 コピー
19453 \end_layout
19454
19455 \begin_layout Standard
19456 これは、現行文書のコピーを生成します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するよ
19457 うに促され、その後、新コピーがローカルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19458 ァイルの相対パスは、(
19459 \family sans
19460 ファイル\SpecialChar menuseparator
19461 名前をつけて保存\SpecialChar ldots
19462
19463 \family default
19464 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
19465 \end_layout
19466
19467 \begin_layout Labeling
19468 \labelwidthstring 00.00.0000
19469 SVNコマンド:
19470 \end_layout
19471
19472 \begin_layout Labeling
19473 \labelwidthstring 00.00.0000
19474 \begin_inset Flex Code
19475 status collapsed
19476
19477 \begin_layout Plain Layout
19478 svn copy -q "<ファイル名>" "<新ファイル名>"
19479 \end_layout
19480
19481 \end_inset
19482
19483
19484 \end_layout
19485
19486 \begin_layout Labeling
19487 \labelwidthstring 00.00.0000
19488 \begin_inset Flex Code
19489 status collapsed
19490
19491 \begin_layout Plain Layout
19492 svn commit
19493 \end_layout
19494
19495 \end_inset
19496
19497
19498 \end_layout
19499
19500 \begin_layout Subsubsection
19501 ファイル名変更
19502 \end_layout
19503
19504 \begin_layout Standard
19505 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
19506 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19507 ァイルの相対パスは、(
19508 \family sans
19509 ファイル\SpecialChar menuseparator
19510 名前をつけて保存\SpecialChar ldots
19511
19512 \family default
19513 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
19514 \end_layout
19515
19516 \begin_layout Labeling
19517 \labelwidthstring 00.00.0000
19518 SVNコマンド:
19519 \end_layout
19520
19521 \begin_layout Labeling
19522 \labelwidthstring 00.00.0000
19523 \begin_inset Flex Code
19524 status collapsed
19525
19526 \begin_layout Plain Layout
19527 svn move -q add "<ファイル名>" "<新ファイル名>"
19528 \end_layout
19529
19530 \end_inset
19531
19532
19533 \end_layout
19534
19535 \begin_layout Labeling
19536 \labelwidthstring 00.00.0000
19537 \begin_inset Flex Code
19538 status collapsed
19539
19540 \begin_layout Plain Layout
19541 svn commit
19542 \end_layout
19543
19544 \end_inset
19545
19546
19547 \end_layout
19548
19549 \begin_layout Subsubsection
19550 \begin_inset CommandInset label
19551 LatexCommand label
19552 name "subsec:レポジトリからSVN同期"
19553
19554 \end_inset
19555
19556 レポジトリを使ったローカルディレクトリの同期
19557 \begin_inset Foot
19558 status collapsed
19559
19560 \begin_layout Plain Layout
19561 このコマンドは、subversion 
19562 \begin_inset Formula $\geqq1.5$
19563 \end_inset
19564
19565 でのみ動作することに注意してください。
19566 \end_layout
19567
19568 \end_inset
19569
19570
19571 \end_layout
19572
19573 \begin_layout Standard
19574 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
19575 \begin_inset Flex Code
19576 status collapsed
19577
19578 \begin_layout Plain Layout
19579 .tex
19580 \end_layout
19581
19582 \end_inset
19583
19584 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこで\SpecialChar LyX
19585 は、文書のおいてあるツリー全体の更新をサポートします
19586 \begin_inset Foot
19587 status collapsed
19588
19589 \begin_layout Plain Layout
19590 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
19591 \end_layout
19592
19593 \end_inset
19594
19595 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
19596
19597 \end_layout
19598
19599 \begin_layout Standard
19600 \begin_inset Flex Code
19601 status collapsed
19602
19603 \begin_layout Plain Layout
19604 ローカル辞書をレポジトリを使って更新
19605 \end_layout
19606
19607 \end_inset
19608
19609 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
19610 場合には、更新が開始される前にユーザに警告が与えられます。
19611 \end_layout
19612
19613 \begin_layout Labeling
19614 \labelwidthstring 00.00.0000
19615 SVNコマンド: 
19616 \begin_inset space ~
19617 \end_inset
19618
19619
19620 \begin_inset Newline newline
19621 \end_inset
19622
19623
19624 \begin_inset Flex Code
19625 status collapsed
19626
19627 \begin_layout Plain Layout
19628 svn diff $path(変更が発見された場合には通知します)
19629 \begin_inset Newline newline
19630 \end_inset
19631
19632 svn update –accept mine-full $path
19633 \end_layout
19634
19635 \end_inset
19636
19637
19638 \end_layout
19639
19640 \begin_layout Standard
19641 ここで
19642 \begin_inset Flex Code
19643 status collapsed
19644
19645 \begin_layout Plain Layout
19646 $path
19647 \end_layout
19648
19649 \end_inset
19650
19651 は文書のパスを示します。
19652 \end_layout
19653
19654 \begin_layout Subsubsection
19655 履歴を表示
19656 \end_layout
19657
19658 \begin_layout Standard
19659 これは、SVN文書の全履歴を表示します。
19660 \begin_inset Flex Code
19661 status collapsed
19662
19663 \begin_layout Plain Layout
19664 svn log 
19665 \begin_inset Quotes eld
19666 \end_inset
19667
19668 <ファイル名>
19669 \begin_inset Quotes erd
19670 \end_inset
19671
19672
19673 \end_layout
19674
19675 \end_inset
19676
19677 の出力がブラウザに表示されます。
19678 \end_layout
19679
19680 \begin_layout Subsubsection
19681 ファイルロック
19682 \begin_inset CommandInset label
19683 LatexCommand label
19684 name "subsec:SVNファイルロック"
19685
19686 \end_inset
19687
19688
19689 \end_layout
19690
19691 \begin_layout Standard
19692 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
19693 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19694 するための、何らかのロック機構を導入することが考えられます。
19695 \end_layout
19696
19697 \begin_layout Standard
19698 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
19699 \begin_inset Flex Code
19700 status collapsed
19701
19702 \begin_layout Plain Layout
19703 svn:needs-lock
19704 \end_layout
19705
19706 \end_inset
19707
19708 svnファイル特性に依拠した書き込み権限の自動設定(第
19709 \begin_inset CommandInset ref
19710 LatexCommand ref
19711 reference "subsec:自動ロック特性"
19712
19713 \end_inset
19714
19715 節を参照)です
19716 \begin_inset Foot
19717 status open
19718
19719 \begin_layout Plain Layout
19720 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19721 \end_layout
19722
19723 \end_inset
19724
19725 。ある文書について、この特性が検出されたときには、\SpecialChar LyX
19726 は自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19727 り替わります。これは特に、\SpecialChar LyX
19728 でのファイルの使われ方に以下の二つのモードがあることを意味します。
19729 \end_layout
19730
19731 \begin_layout Itemize
19732 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
19733 \emph on
19734 チェックアウト
19735 \emph default
19736 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
19737 \end_layout
19738
19739 \begin_layout Itemize
19740 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
19741 \emph on
19742 チェックイン
19743 \emph default
19744 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
19745 \begin_inset Foot
19746 status collapsed
19747
19748 \begin_layout Plain Layout
19749 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
19750 \end_layout
19751
19752 \end_inset
19753
19754 、書き込みロックの解放のみが行われます。
19755 \end_layout
19756
19757 \begin_layout Standard
19758 SVNコマンド:
19759 \end_layout
19760
19761 \begin_layout Labeling
19762 \labelwidthstring 00.00.0000
19763 チェックイン: 
19764 \begin_inset Flex Code
19765 status collapsed
19766
19767 \begin_layout Plain Layout
19768 svn commit -q -m
19769 \begin_inset Quotes erd
19770 \end_inset
19771
19772 <説明>
19773 \begin_inset Quotes erd
19774 \end_inset
19775
19776  
19777 \begin_inset Quotes eld
19778 \end_inset
19779
19780 <ファイル名>
19781 \begin_inset Quotes erd
19782 \end_inset
19783
19784
19785 \end_layout
19786
19787 \end_inset
19788
19789
19790 \begin_inset Newline newline
19791 \end_inset
19792
19793
19794 \begin_inset Flex Code
19795 status collapsed
19796
19797 \begin_layout Plain Layout
19798 svn unlock 
19799 \begin_inset Quotes eld
19800 \end_inset
19801
19802 <ファイル名>
19803 \begin_inset Quotes erd
19804 \end_inset
19805
19806
19807 \end_layout
19808
19809 \end_inset
19810
19811
19812 \end_layout
19813
19814 \begin_layout Labeling
19815 \labelwidthstring 00.00.0000
19816 チェックアウト: 
19817 \begin_inset Flex Code
19818 status collapsed
19819
19820 \begin_layout Plain Layout
19821 svn update 
19822 \begin_inset Quotes eld
19823 \end_inset
19824
19825 <ファイル名>
19826 \begin_inset Quotes erd
19827 \end_inset
19828
19829
19830 \end_layout
19831
19832 \end_inset
19833
19834
19835 \begin_inset Newline newline
19836 \end_inset
19837
19838
19839 \begin_inset Flex Code
19840 status collapsed
19841
19842 \begin_layout Plain Layout
19843 svn unlock 
19844 \begin_inset Quotes eld
19845 \end_inset
19846
19847 <ファイル名>
19848 \begin_inset Quotes erd
19849 \end_inset
19850
19851
19852 \end_layout
19853
19854 \end_inset
19855
19856
19857 \end_layout
19858
19859 \begin_layout Subsubsection
19860 自動ロック特性
19861 \begin_inset CommandInset label
19862 LatexCommand label
19863 name "subsec:自動ロック特性"
19864
19865 \end_inset
19866
19867
19868 \end_layout
19869
19870 \begin_layout Standard
19871 上述したような
19872 \begin_inset Flex Code
19873 status collapsed
19874
19875 \begin_layout Plain Layout
19876 .lyx
19877 \end_layout
19878
19879 \end_inset
19880
19881 ファイルに対する書き込み権限の自動設定は、
19882 \begin_inset Flex MenuItem
19883 status collapsed
19884
19885 \begin_layout Plain Layout
19886 ファイル\SpecialChar menuseparator
19887 バージョン管理\SpecialChar menuseparator
19888 ロック特性を使用
19889 \end_layout
19890
19891 \end_inset
19892
19893 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
19894 \end_layout
19895
19896 \begin_layout Standard
19897 SVNコマンド:
19898 \end_layout
19899
19900 \begin_layout Labeling
19901 \labelwidthstring 00.00.0000
19902 チェックイン: 
19903 \begin_inset Flex Code
19904 status collapsed
19905
19906 \begin_layout Plain Layout
19907 svn propset svn:needs-lock ON 
19908 \begin_inset Quotes eld
19909 \end_inset
19910
19911 <ファイル名>
19912 \begin_inset Quotes erd
19913 \end_inset
19914
19915
19916 \end_layout
19917
19918 \end_inset
19919
19920
19921 \end_layout
19922
19923 \begin_layout Labeling
19924 \labelwidthstring 00.00.0000
19925 チェックアウト: 
19926 \begin_inset Flex Code
19927 status collapsed
19928
19929 \begin_layout Plain Layout
19930 svn propdel svn:needs-lock 
19931 \begin_inset Quotes eld
19932 \end_inset
19933
19934 <ファイル名>
19935 \begin_inset Quotes erd
19936 \end_inset
19937
19938
19939 \end_layout
19940
19941 \end_inset
19942
19943
19944 \end_layout
19945
19946 \begin_layout Subsubsection
19947 \begin_inset CommandInset label
19948 LatexCommand label
19949 name "subsec:VCS改訂情報"
19950
19951 \end_inset
19952
19953 文書の改訂情報
19954 \end_layout
19955
19956 \begin_layout Standard
19957 文書中で改訂情報を有効化するにはいくつかの方法があります。
19958 \end_layout
19959
19960 \begin_layout Itemize
19961 \SpecialChar LyX
19962 による直接サポート
19963 \begin_inset Separator parbreak
19964 \end_inset
19965
19966
19967 \end_layout
19968
19969 \begin_deeper
19970 \begin_layout Itemize
19971 ツリー改訂情報(
19972 \begin_inset Flex Code
19973 status collapsed
19974
19975 \begin_layout Plain Layout
19976 vcs-tree-revision
19977 \end_layout
19978
19979 \end_inset
19980
19981 )。
19982 \begin_inset Flex Code
19983 status collapsed
19984
19985 \begin_layout Plain Layout
19986 svnversion
19987 \end_layout
19988
19989 \end_inset
19990
19991 コマンドの出力を返します。下記の表が、結果の読み方のヒントを与えるでしょう。
19992 \end_layout
19993
19994 \begin_layout Standard
19995 \align center
19996 \begin_inset Tabular
19997 <lyxtabular version="3" rows="6" columns="2">
19998 <features tabularvalignment="middle">
19999 <column alignment="center" valignment="top">
20000 <column alignment="center" valignment="top">
20001 <row>
20002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20003 \begin_inset Text
20004
20005 \begin_layout Plain Layout
20006 出力
20007 \end_layout
20008
20009 \end_inset
20010 </cell>
20011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20012 \begin_inset Text
20013
20014 \begin_layout Plain Layout
20015 意味
20016 \end_layout
20017
20018 \end_inset
20019 </cell>
20020 </row>
20021 <row>
20022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20023 \begin_inset Text
20024
20025 \begin_layout Plain Layout
20026 4123:4168
20027 \end_layout
20028
20029 \end_inset
20030 </cell>
20031 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20032 \begin_inset Text
20033
20034 \begin_layout Plain Layout
20035 改訂版の混合した作業コピー
20036 \end_layout
20037
20038 \end_inset
20039 </cell>
20040 </row>
20041 <row>
20042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20043 \begin_inset Text
20044
20045 \begin_layout Plain Layout
20046 4168M
20047 \end_layout
20048
20049 \end_inset
20050 </cell>
20051 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20052 \begin_inset Text
20053
20054 \begin_layout Plain Layout
20055 修正された作業コピー
20056 \end_layout
20057
20058 \end_inset
20059 </cell>
20060 </row>
20061 <row>
20062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20063 \begin_inset Text
20064
20065 \begin_layout Plain Layout
20066 4123S
20067 \end_layout
20068
20069 \end_inset
20070 </cell>
20071 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20072 \begin_inset Text
20073
20074 \begin_layout Plain Layout
20075 スイッチされた作業コピー
20076 \end_layout
20077
20078 \end_inset
20079 </cell>
20080 </row>
20081 <row>
20082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20083 \begin_inset Text
20084
20085 \begin_layout Plain Layout
20086 4123P
20087 \end_layout
20088
20089 \end_inset
20090 </cell>
20091 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20092 \begin_inset Text
20093
20094 \begin_layout Plain Layout
20095 チェックアウト頻度が低かったことによる不完全な作業コピー
20096 \end_layout
20097
20098 \end_inset
20099 </cell>
20100 </row>
20101 <row>
20102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20103 \begin_inset Text
20104
20105 \begin_layout Plain Layout
20106 4123:4168MS
20107 \end_layout
20108
20109 \end_inset
20110 </cell>
20111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20112 \begin_inset Text
20113
20114 \begin_layout Plain Layout
20115 改訂版が混合し、修正され、スイッチされた作業コピー
20116 \end_layout
20117
20118 \end_inset
20119 </cell>
20120 </row>
20121 </lyxtabular>
20122
20123 \end_inset
20124
20125
20126 \end_layout
20127
20128 \begin_layout Itemize
20129 ファイル改訂情報。
20130 \begin_inset Flex Code
20131 status collapsed
20132
20133 \begin_layout Plain Layout
20134 svn
20135 \begin_inset space ~
20136 \end_inset
20137
20138 info
20139 \begin_inset space ~
20140 \end_inset
20141
20142 –xml
20143 \begin_inset space ~
20144 \end_inset
20145
20146 file.lyx
20147 \end_layout
20148
20149 \end_inset
20150
20151 の出力を解析したものが返されます。サポートされるフラグは
20152 \begin_inset Separator parbreak
20153 \end_inset
20154
20155
20156 \end_layout
20157
20158 \begin_deeper
20159 \begin_layout Itemize
20160 最終コミットのバージョン番号(
20161 \begin_inset Flex Code
20162 status collapsed
20163
20164 \begin_layout Plain Layout
20165 vcs-revision
20166 \end_layout
20167
20168 \end_inset
20169
20170 )
20171 \end_layout
20172
20173 \begin_layout Itemize
20174 最終コミットの著者(
20175 \begin_inset Flex Code
20176 status collapsed
20177
20178 \begin_layout Plain Layout
20179 vcs-author
20180 \end_layout
20181
20182 \end_inset
20183
20184 )
20185 \end_layout
20186
20187 \begin_layout Itemize
20188 最終コミットの日付(
20189 \begin_inset Flex Code
20190 status collapsed
20191
20192 \begin_layout Plain Layout
20193 vcs-date
20194 \end_layout
20195
20196 \end_inset
20197
20198 )
20199 \end_layout
20200
20201 \begin_layout Itemize
20202 最終コミットの時間(
20203 \begin_inset Flex Code
20204 status collapsed
20205
20206 \begin_layout Plain Layout
20207 vcs-time
20208 \end_layout
20209
20210 \end_inset
20211
20212 )
20213 \end_layout
20214
20215 \end_deeper
20216 \begin_layout Standard
20217 これらの情報は、情報差込枠で得ることができます(例:
20218 \begin_inset Flex Code
20219 status collapsed
20220
20221 \begin_layout Plain Layout
20222 info-insert buffer vcs-date
20223 \end_layout
20224
20225 \end_inset
20226
20227 )。これらの情報は、ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20228 \begin_inset Flex Code
20229 status collapsed
20230
20231 \begin_layout Plain Layout
20232 .svn
20233 \end_layout
20234
20235 \end_inset
20236
20237 ディレクトリがあるときのみ)利用可能です。
20238 \end_layout
20239
20240 \end_deeper
20241 \begin_layout Itemize
20242 もう一つの—ハッカー的な—方法は、SVNキーワードを使用する方法です
20243 \begin_inset Foot
20244 status collapsed
20245
20246 \begin_layout Plain Layout
20247 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20248 \end_layout
20249
20250 \end_inset
20251
20252 。簡単に言えば、ファイルキーワード特性を設定して(例:
20253 \family sans
20254 svn propset svn:keywords 'Rev' file.lyx
20255 \family default
20256 )、文書中にキーワード\SpecialChar TeX
20257 コード
20258 \begin_inset Foot
20259 status collapsed
20260
20261 \begin_layout Plain Layout
20262 これは、\SpecialChar LyX
20263 がキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
20264 \end_layout
20265
20266 \end_inset
20267
20268 タグ(例:
20269 \begin_inset ERT
20270 status open
20271
20272 \begin_layout Plain Layout
20273
20274 $Rev$
20275 \end_layout
20276
20277 \end_inset
20278
20279 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
20280 \begin_inset ERT
20281 status open
20282
20283 \begin_layout Plain Layout
20284
20285 $Rev: 59 $
20286 \end_layout
20287
20288 \end_inset
20289
20290 )。このアプローチにはいくつか問題があります。第一に、\SpecialChar TeX
20291 の世界では「$」文字は数式を表すのに使われるので、\SpecialChar LyX
20292 中の
20293 \begin_inset Formula $Rev$
20294 \end_inset
20295
20296 という数式表現が、すべて
20297 \begin_inset Formula $Rev:59$
20298 \end_inset
20299
20300 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
20301 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
20302 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、\SpecialChar LyX
20303 がこれを直接サポートすることは、難しそうです。
20304 \end_layout
20305
20306 \begin_layout Subsection
20307 SVNとWindows環境
20308 \end_layout
20309
20310 \begin_layout Quote
20311 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。—P.
20312  A.
20313  ルービン
20314 \end_layout
20315
20316 \begin_layout Subsubsection
20317 準備
20318 \end_layout
20319
20320 \begin_layout Standard
20321 \SpecialChar LyX
20322 を導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クライアン
20323 トプログラムのWindows用インストーラは
20324 \begin_inset CommandInset href
20325 LatexCommand href
20326 name "CollabNet"
20327 target "http://www.collab.net/nonav/downloads/subversion/"
20328
20329 \end_inset
20330
20331 にあります。ユーザは
20332 \begin_inset CommandInset href
20333 LatexCommand href
20334 name "TortoiseSVN"
20335 target "http://tortoisesvn.tigris.org/"
20336
20337 \end_inset
20338
20339 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。\SpecialChar LyX
20340 外部で行う操
20341 作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、\SpecialChar LyX
20342 自身が使用するクライアントプログラムの代わりとは成りませんので
20343 、注意してください。
20344 \end_layout
20345
20346 \begin_layout Subsubsection
20347 文書をSubversion管理下に置くには
20348 \end_layout
20349
20350 \begin_layout Standard
20351 \SpecialChar LyX
20352 文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロジェク
20353 トに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下にない
20354 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、\SpecialChar LyX
20355 の外部で行います
20356 。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、DOSプロン
20357 プトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。レポジトリは
20358 既に存在し、新規プロジェクトを
20359 \begin_inset Flex Code
20360 status collapsed
20361
20362 \begin_layout Plain Layout
20363 C:
20364 \backslash
20365 new project
20366 \end_layout
20367
20368 \end_inset
20369
20370 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
20371 \begin_inset Flex Code
20372 status collapsed
20373
20374 \begin_layout Plain Layout
20375 svn –help
20376 \end_layout
20377
20378 \end_inset
20379
20380 を実行してください。
20381 \end_layout
20382
20383 \begin_layout Enumerate
20384 Windows Explorerで
20385 \begin_inset Flex Code
20386 status collapsed
20387
20388 \begin_layout Plain Layout
20389 C:
20390 \backslash
20391 new project
20392 \end_layout
20393
20394 \end_inset
20395
20396 を見つけ出して右クリックし、
20397 \begin_inset Flex MenuItem
20398 status collapsed
20399
20400 \begin_layout Plain Layout
20401 TortoiseSVN\SpecialChar menuseparator
20402 Repo-browser
20403 \end_layout
20404
20405 \end_inset
20406
20407 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
20408 \end_layout
20409
20410 \begin_layout Enumerate
20411 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
20412 \begin_inset Flex MenuItem
20413 status collapsed
20414
20415 \begin_layout Plain Layout
20416 Create folder\SpecialChar ldots
20417
20418 \end_layout
20419
20420 \end_inset
20421
20422 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
20423 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
20424 \end_layout
20425
20426 \begin_layout Enumerate
20427 再度
20428 \begin_inset Flex Code
20429 status collapsed
20430
20431 \begin_layout Plain Layout
20432 C:
20433 \backslash
20434 new project
20435 \end_layout
20436
20437 \end_inset
20438
20439 を右クリックし、今度は
20440 \begin_inset Flex MenuItem
20441 status collapsed
20442
20443 \begin_layout Plain Layout
20444 SVN Checkout\SpecialChar ldots
20445
20446 \end_layout
20447
20448 \end_inset
20449
20450 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
20451 \begin_inset Flex Code
20452 status collapsed
20453
20454 \begin_layout Plain Layout
20455 C:
20456 \backslash
20457 new project
20458 \end_layout
20459
20460 \end_inset
20461
20462 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
20463 \begin_inset Flex Code
20464 status collapsed
20465
20466 \begin_layout Plain Layout
20467 C:
20468 \backslash
20469 new project
20470 \end_layout
20471
20472 \end_inset
20473
20474 の下に
20475 \begin_inset Flex Code
20476 status collapsed
20477
20478 \begin_layout Plain Layout
20479 .svn
20480 \end_layout
20481
20482 \end_inset
20483
20484 ディレクトリが作成されます。
20485 \end_layout
20486
20487 \begin_layout Enumerate
20488 \SpecialChar LyX
20489 で文書を新規作成するか開くかして、
20490 \begin_inset Flex MenuItem
20491 status collapsed
20492
20493 \begin_layout Plain Layout
20494 ファイル\SpecialChar menuseparator
20495 バージョン管理\SpecialChar menuseparator
20496 登録
20497 \end_layout
20498
20499 \end_inset
20500
20501 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
20502 \end_layout
20503
20504 \begin_layout Standard
20505 爾後、
20506 \begin_inset Flex MenuItem
20507 status collapsed
20508
20509 \begin_layout Plain Layout
20510 ファイル\SpecialChar menuseparator
20511 バージョン管理
20512 \end_layout
20513
20514 \end_inset
20515
20516 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
20517 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
20518 \end_layout
20519
20520 \begin_layout Subsubsection
20521 Windows下でSVNと共にSSHトンネルを使うには
20522 \end_layout
20523
20524 \begin_layout Standard
20525 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
20526 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
20527 ることを覚悟しておいてください。
20528 \end_layout
20529
20530 \begin_layout Enumerate
20531 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
20532 \begin_inset Flex Code
20533 status collapsed
20534
20535 \begin_layout Plain Layout
20536 svn –version
20537 \end_layout
20538
20539 \end_inset
20540
20541 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
20542 \end_layout
20543
20544 \begin_layout Enumerate
20545 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
20546 \begin_inset Foot
20547 status open
20548
20549 \begin_layout Plain Layout
20550 \begin_inset Flex URL
20551 status collapsed
20552
20553 \begin_layout Plain Layout
20554
20555 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20556 \end_layout
20557
20558 \end_inset
20559
20560
20561 \end_layout
20562
20563 \end_inset
20564
20565 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
20566 護などを加えない
20567 \begin_inset Flex Ruby
20568 status collapsed
20569
20570 \begin_layout Plain Layout
20571
20572 \begin_inset Argument post:1
20573 status collapsed
20574
20575 \begin_layout Plain Layout
20576 キー
20577 \end_layout
20578
20579 \end_inset
20580
20581
20582 \end_layout
20583
20584 \end_inset
20585
20586 のみを使用することとします。
20587 \begin_inset Separator parbreak
20588 \end_inset
20589
20590
20591 \end_layout
20592
20593 \begin_deeper
20594 \begin_layout Enumerate
20595 \begin_inset Flex Code
20596 status collapsed
20597
20598 \begin_layout Plain Layout
20599 puttygen
20600 \end_layout
20601
20602 \end_inset
20603
20604 を使って鍵を生成します。.ppkプライベート鍵ファイルを保存し、パブリック鍵ファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブリック
20605 鍵の書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized_key
20606 s file:」編集フィールドから、直接サーバの
20607 \begin_inset Flex Code
20608 status collapsed
20609
20610 \begin_layout Plain Layout
20611 ~/.ssh/authorized_keys
20612 \end_layout
20613
20614 \end_inset
20615
20616 または
20617 \begin_inset Flex Code
20618 status collapsed
20619
20620 \begin_layout Plain Layout
20621 authorized_keys2
20622 \end_layout
20623
20624 \end_inset
20625
20626 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
20627 \end_layout
20628
20629 \begin_layout Enumerate
20630 Puttyのplinkを入手してください。SVNのconfigファイル
20631 \begin_inset Foot
20632 status collapsed
20633
20634 \begin_layout Plain Layout
20635 正確なパスはWindowsのバージョンに依りますが、通常は
20636 \begin_inset Flex Code
20637 status collapsed
20638
20639 \begin_layout Plain Layout
20640 c:
20641 \backslash
20642 Documents and Settings
20643 \backslash
20644 user
20645 \backslash
20646 Application Data
20647 \backslash
20648 Subversion
20649 \backslash
20650 config
20651 \end_layout
20652
20653 \end_inset
20654
20655
20656 \begin_inset Flex Code
20657 status collapsed
20658
20659 \begin_layout Plain Layout
20660 AppData
20661 \backslash
20662 Roaming
20663 \backslash
20664 Subversion
20665 \end_layout
20666
20667 \end_inset
20668
20669 辺りにあります。
20670 \end_layout
20671
20672 \end_inset
20673
20674 中の
20675 \begin_inset Flex Code
20676 status collapsed
20677
20678 \begin_layout Plain Layout
20679 [tunnels]
20680 \end_layout
20681
20682 \end_inset
20683
20684 セクションにsshコマンドを設定してください。例:
20685 \begin_inset Flex Code
20686 status collapsed
20687
20688 \begin_layout Plain Layout
20689 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20690 \end_layout
20691
20692 \end_inset
20693
20694
20695 \begin_inset Foot
20696 status collapsed
20697
20698 \begin_layout Plain Layout
20699 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
20700 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
20701 \end_layout
20702
20703 \end_inset
20704
20705
20706 \end_layout
20707
20708 \end_deeper
20709 \begin_layout Enumerate
20710 SVNアーカイブをチェックアウトしてください。例:
20711 \begin_inset Newline newline
20712 \end_inset
20713
20714
20715 \begin_inset Flex Code
20716 status collapsed
20717
20718 \begin_layout Plain Layout
20719 svn co svn+ssh://user@server/repository_path
20720 \end_layout
20721
20722 \end_inset
20723
20724
20725 \end_layout
20726
20727 \begin_layout Subsubsection
20728 行末変換
20729 \end_layout
20730
20731 \begin_layout Standard
20732 共著者同士がLinuxとWindowsを混在させているとき、\SpecialChar LyX
20733 は.lyxファイル中で異なった行末記号を使用することになります。これは、\SpecialChar LyX
20734 の機能に関する限り問題になりま
20735 せんが、コミット差分は巨大になり、マージではコンフリクトを引き起こしがちです。幸いにして、SVNは、.lyxファイルを
20736 \begin_inset Flex Code
20737 status collapsed
20738
20739 \begin_layout Plain Layout
20740 native
20741 \end_layout
20742
20743 \end_inset
20744
20745 モードに切り替える際
20746 \begin_inset Foot
20747 status collapsed
20748
20749 \begin_layout Plain Layout
20750 手短には
20751 \begin_inset Flex Code
20752 status collapsed
20753
20754 \begin_layout Plain Layout
20755 svn propset svn:eol-style native FILE_NAME
20756 \end_layout
20757
20758 \end_inset
20759
20760
20761 \end_layout
20762
20763 \end_inset
20764
20765 、CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20766 \begin_inset Foot
20767 status collapsed
20768
20769 \begin_layout Plain Layout
20770 \begin_inset Flex URL
20771 status collapsed
20772
20773 \begin_layout Plain Layout
20774
20775 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20776 \end_layout
20777
20778 \end_inset
20779
20780
20781 \end_layout
20782
20783 \end_inset
20784
20785
20786 \end_layout
20787
20788 \begin_layout Subsection
20789 \SpecialChar LyX
20790 におけるGITコマンド
20791 \end_layout
20792
20793 \begin_layout Standard
20794 \SpecialChar LyX
20795 で、最小限のGITコマンドがサポートされるようになりました。これらのコマンドは、
20796 \family sans
20797 ファイル\SpecialChar menuseparator
20798 バージョン管理
20799 \family default
20800 にあります。リポジトリのアクセスに、パスワード保護されたsshを使用している場合には、ターミナルウィンドウでの操作をするように促されます。\SpecialChar LyX
20801 は、GIT
20802  1.7に対して試験を行っています。
20803 \end_layout
20804
20805 \begin_layout Standard
20806 GITと他のバージョン管理システムとの大きな相違点は、GITの配布形態にあります。伝統的なバージョン管理システムでは、リポジトリをホストする、中心となるサーバー
20807 があります。ユーザーは変更点をサーバーにコミットし、他のユーザーが行った更新分をサーバーから受け取ります。一方、GITでは、ユーザーは、ローカルのリポジトリにコ
20808 ミットを行います。ローカルリポジトリは、GITコマンドの
20809 \begin_inset Flex Code
20810 status open
20811
20812 \begin_layout Plain Layout
20813 pull
20814 \end_layout
20815
20816 \end_inset
20817
20818 または
20819 \begin_inset Flex Code
20820 status open
20821
20822 \begin_layout Plain Layout
20823 push
20824 \end_layout
20825
20826 \end_inset
20827
20828 を使って、1つ以上のリモートリポジトリと同期されます。\SpecialChar LyX
20829 は、リモートのGITリポジトリとは、一切関わりません。CVSやSVNの集権的リポジトリに対して行うのと同じ
20830 ことを、ローカルのリポジトリに対してのみ行います。リモートのGITリポジトリを使用している場合には、お好みのGITクライアントを使用して、
20831 \begin_inset Flex Code
20832 status open
20833
20834 \begin_layout Plain Layout
20835 pull
20836 \end_layout
20837
20838 \end_inset
20839
20840 または
20841 \begin_inset Flex Code
20842 status open
20843
20844 \begin_layout Plain Layout
20845 push
20846 \end_layout
20847
20848 \end_inset
20849
20850 の操作を行う必要があります。
20851 \end_layout
20852
20853 \begin_layout Subsubsection
20854 登録
20855 \end_layout
20856
20857 \begin_layout Standard
20858 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
20859 \family sans
20860 登録
20861 \family default
20862 項目は表示されません。
20863 \end_layout
20864
20865 \begin_layout Standard
20866 本コマンドは、既に文書のあるディレクトリをGIT管理下に置いている場合に
20867 \emph on
20868 のみ
20869 \emph default
20870 (すなわち
20871 \begin_inset Flex Code
20872 status collapsed
20873
20874 \begin_layout Plain Layout
20875 .git/index
20876 \end_layout
20877
20878 \end_inset
20879
20880 ファイルが存在する場合にのみ)、お使いの文書をGITに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
20881 \end_layout
20882
20883 \begin_layout Standard
20884 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
20885 \end_layout
20886
20887 \begin_layout Standard
20888 実行されるGITコマンドは、
20889 \begin_inset Flex Code
20890 status collapsed
20891
20892 \begin_layout Plain Layout
20893 git add "<ファイル名>"
20894 \end_layout
20895
20896 \end_inset
20897
20898 です。
20899 \end_layout
20900
20901 \begin_layout Standard
20902 スイッチの説明は
20903 \begin_inset Flex Code
20904 status collapsed
20905
20906 \begin_layout Plain Layout
20907 man git
20908 \end_layout
20909
20910 \end_inset
20911
20912 をお読みください。
20913 \end_layout
20914
20915 \begin_layout Subsubsection
20916 変更をチェックイン
20917 \end_layout
20918
20919 \begin_layout Standard
20920 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
20921 \end_layout
20922
20923 \begin_layout Standard
20924 GITコマンド:
20925 \begin_inset Flex Code
20926 status collapsed
20927
20928 \begin_layout Plain Layout
20929 git commit -q -m
20930 \begin_inset Quotes erd
20931 \end_inset
20932
20933 <入力した説明文>
20934 \begin_inset Quotes erd
20935 \end_inset
20936
20937  "<ファイル名>"
20938 \end_layout
20939
20940 \end_inset
20941
20942
20943 \end_layout
20944
20945 \begin_layout Subsubsection
20946 リポジトリ版に戻す
20947 \end_layout
20948
20949 \begin_layout Standard
20950 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
20951 \end_layout
20952
20953 \begin_layout Standard
20954 GITコマンド:
20955 \begin_inset Flex Code
20956 status collapsed
20957
20958 \begin_layout Plain Layout
20959 git checkout -q 
20960 \begin_inset Quotes eld
20961 \end_inset
20962
20963 <ファイル名>
20964 \begin_inset Quotes erd
20965 \end_inset
20966
20967
20968 \end_layout
20969
20970 \end_inset
20971
20972
20973 \end_layout
20974
20975 \begin_layout Subsubsection
20976 ファイル名変更
20977 \end_layout
20978
20979 \begin_layout Standard
20980 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
20981 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
20982 ァイルの相対パスは、(
20983 \family sans
20984 ファイル\SpecialChar menuseparator
20985 名前をつけて保存\SpecialChar ldots
20986
20987 \family default
20988 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
20989 \end_layout
20990
20991 \begin_layout Labeling
20992 \labelwidthstring 00.00.0000
20993 GITコマンド:
20994 \end_layout
20995
20996 \begin_layout Labeling
20997 \labelwidthstring 00.00.0000
20998 \begin_inset Flex Code
20999 status collapsed
21000
21001 \begin_layout Plain Layout
21002 git mv "<ファイル名>" "<新ファイル名>"
21003 \end_layout
21004
21005 \end_inset
21006
21007
21008 \end_layout
21009
21010 \begin_layout Labeling
21011 \labelwidthstring 00.00.0000
21012 \begin_inset Flex Code
21013 status collapsed
21014
21015 \begin_layout Plain Layout
21016 git commit
21017 \end_layout
21018
21019 \end_inset
21020
21021
21022 \end_layout
21023
21024 \begin_layout Subsubsection
21025 履歴を表示
21026 \end_layout
21027
21028 \begin_layout Standard
21029 これは、GIT文書の全履歴を表示します。
21030 \begin_inset Flex Code
21031 status collapsed
21032
21033 \begin_layout Plain Layout
21034 git log 
21035 \begin_inset Quotes eld
21036 \end_inset
21037
21038 <ファイル名>
21039 \begin_inset Quotes erd
21040 \end_inset
21041
21042
21043 \end_layout
21044
21045 \end_inset
21046
21047 の出力がブラウザに表示されます。
21048 \end_layout
21049
21050 \begin_layout Subsubsection
21051 改訂情報
21052 \end_layout
21053
21054 \begin_layout Standard
21055 \SpecialChar LyX
21056 は、ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
21057 \family typewriter
21058 git log -n 1 --pretty=format:%H%n%an%n%ai
21059 \family default
21060 によって抽出されます。ツリーバージョン情報は、
21061 \family typewriter
21062 git describe --abbrev --dirty --long
21063 \family default
21064 で取得されます。詳細については、第
21065 \begin_inset CommandInset ref
21066 LatexCommand ref
21067 reference "subsec:VCS改訂情報"
21068
21069 \end_inset
21070
21071 節を参照してください。
21072 \end_layout
21073
21074 \begin_layout Subsection
21075 さらなる調整
21076 \end_layout
21077
21078 \begin_layout Standard
21079 vcコマンド機構が最近になって付け加えられたおかげで、\SpecialChar LyX
21080 のパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
21081 \end_layout
21082
21083 \begin_layout Standard
21084 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
21085 \end_layout
21086
21087 \begin_layout Description
21088 コミット: 
21089 \begin_inset Flex Code
21090 status collapsed
21091
21092 \begin_layout Plain Layout
21093 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21094 \end_layout
21095
21096 \end_inset
21097
21098
21099 \end_layout
21100
21101 \begin_layout Description
21102 元に戻す: 
21103 \begin_inset Flex Code
21104 status collapsed
21105
21106 \begin_layout Plain Layout
21107 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21108 \end_layout
21109
21110 \end_inset
21111
21112
21113 \end_layout
21114
21115 \begin_layout Subsection
21116 バージョン管理と文書比較
21117 \end_layout
21118
21119 \begin_layout Standard
21120 バージョン管理は、通常
21121 \begin_inset Flex Code
21122 status collapsed
21123
21124 \begin_layout Plain Layout
21125 diff
21126 \end_layout
21127
21128 \end_inset
21129
21130 ダンプを生成することによって、改訂版の間の変更点を検査するのが、典型的な使用法です。これは平文ファイルには有効なのですが、複雑な構造を持つ\SpecialChar LyX
21131 ファイルの場合には、あ
21132 まり便利ではありません。そこで、\SpecialChar LyX
21133 は独自の文書比較機能を提供しています。この機能を呼び出すには2つの方法があります。1つは、\SpecialChar LyX
21134
21135 \begin_inset Flex Code
21136 status collapsed
21137
21138 \begin_layout Plain Layout
21139 VC_COMPARE
21140 \end_layout
21141
21142 \end_inset
21143
21144 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21145 関数説明書を参照)、もう1つは
21146 \begin_inset Flex MenuItem
21147 status collapsed
21148
21149 \begin_layout Plain Layout
21150 旧改訂と比較\SpecialChar ldots
21151
21152 \end_layout
21153
21154 \end_inset
21155
21156 メニューないしアイコンを使用する方法です。当該文書のうち、任意の2つの改訂版を比較することもできますし、編集中の現行版を古い改訂版と比較することもできます(この
21157 とき改訂版遡及数「
21158 \begin_inset Flex MenuItem
21159 status collapsed
21160
21161 \begin_layout Plain Layout
21162 0
21163 \end_layout
21164
21165 \end_inset
21166
21167 」は、編集中のファイルと最後にコミットした改訂版との比較を意味します)。
21168 \end_layout
21169
21170 \begin_layout Standard
21171 この機能は、SVNとRCSでサポートされていますが、RCSは、より複雑なバージョン付けスキームを持っているため、制約があります。ダイアログ中で改訂版を指定する際
21172 の数字は、つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」)。現在のところ、改訂のGIT表記はサポートされておらず、HEAD~
21173 Xの形で表記されるXステップ前の改訂版を、編集中文書と比較することのみが可能です。
21174 \end_layout
21175
21176 \begin_layout Section
21177 文芸プログラミング
21178 \end_layout
21179
21180 \begin_layout Standard
21181
21182 \noun on
21183 Kayvan Sylvan
21184 \noun default
21185 (kayvan@sylvan.com)改訂 
21186 \noun on
21187 Edmar Wienskoski Jr.
21188 \noun default
21189 (edmar-w-jr@technologist.com)原文
21190 \end_layout
21191
21192 \begin_layout Subsection
21193 はじめに
21194 \end_layout
21195
21196 \begin_layout Standard
21197 この節の主な目的は、文芸的プログラミング(literate programming)のために、\SpecialChar LyX
21198 をどう使えばよいかをお見せすることです。ここでは、あなたがこのプロ
21199 グラミング技術をよくご存じで、「tangling」や「weaving」の意味するところを知っているものとして説明します。そうでない場合には、以下の各節にあるウェ
21200 ブリンクをたどってください。そこには、かつての開発の歴史から最新のツールチップまで、たくさんの良質なドキュメンテーションがあります。
21201 \end_layout
21202
21203 \begin_layout Standard
21204 また、あなたが、\SpecialChar LyX
21205 の設定を変更することを厭わない程度まで\SpecialChar LyX
21206 に習熟しており、Xリソースファイルにも親しんでいることを前提にしています。そうでない場合は、あなたの必要と
21207 するトピックを扱っている、\SpecialChar LyX
21208 の他の説明書で調べてください。
21209 \end_layout
21210
21211 \begin_layout Subsection
21212 文芸プログラミング
21213 \end_layout
21214
21215 \begin_layout Standard
21216 以下は、文芸プログラミング FAQからの抜粋です。
21217 \end_layout
21218
21219 \begin_layout Quotation
21220 文芸プログラミングは、人間が読むのに適した形でのドキュメンテーションとソースの組合わせです。実際、文芸的プログラムは楽しい読み物であるべきであり、さらには参加し
21221 たいとさえ思わせるべきなのです!(ボブ、ごめん。言わずにはいれなかった。)一般的に、文芸プログラムは、ソースとドキュメンテーションを同一ファイル上に結合したもの
21222 です。そして、文芸プログラミングツールは、ファイルを解析して、読むことのできるドキュメンテーションか、あるいはコンパイル可能なソースを生成します。文芸プログラミ
21223 ングのWEBスタイルは、D.
21224 \begin_inset space \thinspace{}
21225 \end_inset
21226
21227 E.
21228  Knuthが、\SpecialChar TeX
21229 組版ソフトウエアを開発中に作り出したものです。
21230 \end_layout
21231
21232 \begin_layout Standard
21233 他のエキスパートの発言です。
21234 \end_layout
21235
21236 \begin_layout Quotation
21237
21238 \emph on
21239 文芸プログラミングは、冗長なコメント付けと何が違いますか?
21240 \end_layout
21241
21242 \begin_layout Quotation
21243 3つの際立った特徴があります。重要な順に列挙すれば、
21244 \begin_inset Separator parbreak
21245 \end_inset
21246
21247
21248 \end_layout
21249
21250 \begin_deeper
21251 \begin_layout Itemize
21252 推敲の順序が柔軟
21253 \end_layout
21254
21255 \begin_layout Itemize
21256 ブラウジングの自動サポート
21257 \end_layout
21258
21259 \begin_layout Itemize
21260 特に図式と数式を含んだドキュメンテーションの組版
21261 \end_layout
21262
21263 \end_deeper
21264 \begin_layout Quotation
21265 などがあります。
21266 \end_layout
21267
21268 \begin_layout Standard
21269 あなたの興味に火を付けたところで書誌情報を見てみましょう。
21270 \end_layout
21271
21272 \begin_layout Subsubsection
21273 書誌情報
21274 \end_layout
21275
21276 \begin_layout Standard
21277 完全な文芸プログラミング FAQは
21278 \end_layout
21279
21280 \begin_layout Quote
21281 Literate Programming FAQ 
21282 \begin_inset Flex URL
21283 status collapsed
21284
21285 \begin_layout Plain Layout
21286
21287 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21288 \end_layout
21289
21290 \end_inset
21291
21292
21293 \end_layout
21294
21295 \begin_layout Standard
21296 にあります。
21297 \end_layout
21298
21299 \begin_layout Standard
21300 このFAQには、23(二十三です!)の文芸プログラミング用ツールが列挙されています。一部のツールは、特定のプログラミング言語用に特化したものですが、一般的な対象
21301 を持つものもあります。私は自分で使うのに、いくつかの理由から
21302 \noun on
21303 Noweb
21304 \noun default
21305 を選びました。
21306 \end_layout
21307
21308 \begin_layout Itemize
21309 説明文書を\SpecialChar LaTeX
21310 でもHTMLでも出力できる。
21311 \end_layout
21312
21313 \begin_layout Itemize
21314 開放的なアーキテクチャに持っているので、新しいフィルタをプラグインとして加えたり、自分が必要な特別な処理を実行することが容易である。
21315 \end_layout
21316
21317 \begin_layout Itemize
21318 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです)。
21319 \end_layout
21320
21321 \begin_layout Itemize
21322 無料である。
21323 \end_layout
21324
21325 \begin_layout Standard
21326 Nowebのウェブページは
21327 \end_layout
21328
21329 \begin_layout Quote
21330 Nowebホームページ 
21331 \begin_inset Flex URL
21332 status collapsed
21333
21334 \begin_layout Plain Layout
21335
21336 http://www.cs.virginia.edu/~nr/noweb/
21337 \end_layout
21338
21339 \end_inset
21340
21341
21342 \end_layout
21343
21344 \begin_layout Standard
21345 にあります。ここから始めれば、たくさんの興味深いリンクや、文芸プログラミングの用例にたどり着くことができます。
21346 \end_layout
21347
21348 \begin_layout Subsection
21349 \SpecialChar LyX
21350 とNowebを使った文芸プログラミング
21351 \end_layout
21352
21353 \begin_layout Standard
21354 \SpecialChar LyX
21355 における文芸プログラミングのサポートは、\SpecialChar LyX
21356 の汎用変換機構を使用して実現しています。このサポートは「Noweb非依存」的な方法で提供されているので、LyXの設定を変
21357 更するだけで、自分の好きな他の文芸プログラミングツールを使って、この新しい\SpecialChar LyX
21358 の機能を利用することができます。
21359 \end_layout
21360
21361 \begin_layout Subsubsection
21362 ドキュメントとコードの生成(weavingおよびtangling)
21363 \end_layout
21364
21365 \begin_layout Paragraph
21366 nowebモジュールの使用
21367 \end_layout
21368
21369 \begin_layout Standard
21370 Nowebと\SpecialChar LyX
21371 の導入に成功したならば、新規文書を開いたときにはいつも、文書クラスを選択した後、
21372 \family sans
21373 文書\SpecialChar menuseparator
21374 設定
21375 \family default
21376 メニューで「noweb」モジュールを追加するようにしてください。Nowebが正しく導入されていれば、「モジュール」リンクをクリックした際、利用可能リストに「no
21377 web」モジュールが表示され、文書に追加できるようになっています。
21378 \end_layout
21379
21380 \begin_layout Paragraph
21381 コードの入力
21382 \end_layout
21383
21384 \begin_layout Standard
21385 \SpecialChar LyX
21386 では、
21387 \begin_inset Flex Noun
21388 status collapsed
21389
21390 \begin_layout Plain Layout
21391 Chunk
21392 \end_layout
21393
21394 \end_inset
21395
21396 という名前のレイアウトを使えば、コードを入力することができます。Nowebは次のようにchunks を区切ります。
21397 \end_layout
21398
21399 \begin_layout LyX-Code
21400 <<My code>>=
21401 \end_layout
21402
21403 \begin_layout LyX-Code
21404   code
21405 \end_layout
21406
21407 \begin_layout LyX-Code
21408   more code
21409 \end_layout
21410
21411 \begin_layout LyX-Code
21412   even more code
21413 \end_layout
21414
21415 \begin_layout LyX-Code
21416   @
21417 \end_layout
21418
21419 \begin_layout Standard
21420 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまり、\SpecialChar LyX
21421 は、この間に書かれたものを特別に解釈することは決してあってはなりません。
21422 これも
21423 \begin_inset Flex Noun
21424 status collapsed
21425
21426 \begin_layout Plain Layout
21427 Chunk
21428 \end_layout
21429
21430 \end_inset
21431
21432 によって取り扱われ、通常の段落のように見えますが、自由に空白を入れることができます。
21433 \end_layout
21434
21435 \begin_layout Standard
21436 特殊な注釈として、chunk内でNowebの「%def」を使えば、Nowebのidentifierの相互参照に項目を加えることができます。次の例を見てください。
21437 \end_layout
21438
21439 \begin_layout LyX-Code
21440 <<My chunk>>=
21441 \end_layout
21442
21443 \begin_layout LyX-Code
21444 def some_function(args):
21445 \end_layout
21446
21447 \begin_layout LyX-Code
21448    "This is the doc string for this function."
21449 \end_layout
21450
21451 \begin_layout LyX-Code
21452    print "My args: ", args
21453 \end_layout
21454
21455 \begin_layout LyX-Code
21456 @ %def some_function
21457 \end_layout
21458
21459 \begin_layout Standard
21460 これをどのように使って、その結果相互参照がどうなるかは
21461 \emph on
21462 LIBDIR/examples/listerrors.lyx
21463 \emph default
21464 の中の文芸pythonプログラムを見るとよくわかります。
21465 \end_layout
21466
21467 \begin_layout Paragraph
21468 説明文書の生成
21469 \end_layout
21470
21471 \begin_layout Standard
21472 この時点で、適切な文書クラスを持ち、いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです。これをどうやって印刷したらいいのでしょう。答えは
21473 簡単で、通常の文書で行うように
21474 \family sans
21475 文書\SpecialChar menuseparator
21476 表示
21477 \family default
21478 等を選ぶだけです。特別な手続きは必要ありません。
21479 \end_layout
21480
21481 \begin_layout Standard
21482 理解を助けるために、\SpecialChar LyX
21483 の内部で何が起っているかを説明しておきましょう。
21484 \end_layout
21485
21486 \begin_layout Enumerate
21487
21488 \family sans
21489 文書\SpecialChar menuseparator
21490 更新
21491 \family default
21492 が選択されると、\SpecialChar LaTeX
21493 ファイルがつくられます。
21494 \begin_inset Separator parbreak
21495 \end_inset
21496
21497
21498 \end_layout
21499
21500 \begin_deeper
21501 \begin_layout Standard
21502 文書が文芸プログラミング用のクラスであった場合には、拡張子に(
21503 \begin_inset Flex MenuItem
21504 status collapsed
21505
21506 \begin_layout Plain Layout
21507 設定
21508 \end_layout
21509
21510 \end_inset
21511
21512 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
21513 \end_layout
21514
21515 \end_deeper
21516 \begin_layout Enumerate
21517 違いがファイル名だけなのに注意してください。\SpecialChar LyX
21518 による特別な処理は必要ありません。
21519 \begin_inset Flex Noun
21520 status collapsed
21521
21522 \begin_layout Plain Layout
21523 Chunk
21524 \end_layout
21525
21526 \end_inset
21527
21528 環境でコードを入力するのだけがポイントです。
21529 \end_layout
21530
21531 \begin_layout Enumerate
21532 文書が何らかの文芸プログラムクラスなら、\SpecialChar LyX
21533 は、\SpecialChar LyX
21534 からNowebへの内部変換子を用い、それからNowebから\SpecialChar LaTeX
21535 への変換子
21536 \begin_inset Foot
21537 status collapsed
21538
21539 \begin_layout Plain Layout
21540 これらの変換子は、
21541 \family sans
21542 ツール\SpecialChar menuseparator
21543 設定
21544 \family default
21545 パネルの変換子タブに定義されています。変換子の一般的な情報については、取扱説明書『
21546 \emph on
21547 カスタマイズ篇
21548 \emph default
21549 』の「
21550 \emph on
21551 変換子
21552 \emph default
21553 」の節をご覧ください。
21554 \end_layout
21555
21556 \end_inset
21557
21558 を使って\SpecialChar LaTeX
21559 ファイルを生成します。
21560 \begin_inset Separator parbreak
21561 \end_inset
21562
21563
21564 \end_layout
21565
21566 \begin_deeper
21567 \begin_layout Standard
21568 それ以外の場合はこのステップを飛ばします。
21569 \end_layout
21570
21571 \end_deeper
21572 \begin_layout Enumerate
21573 最後に\SpecialChar LaTeX
21574 が実行され、通常の文書と同じ後処理が行われます。
21575 \end_layout
21576
21577 \begin_layout Standard
21578 様々な変換子が実行するコマンドを変更すれば、簡単に、特定の「文芸プログラムツール」から変更することができます。
21579 \end_layout
21580
21581 \begin_layout Paragraph
21582 コードの生成
21583 \end_layout
21584
21585 \begin_layout Standard
21586 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様に\SpecialChar LaTeX
21587 ファイルが生成されます。それから\SpecialChar LyX
21588
21589 \family typewriter
21590 Noweb->Program
21591 \family default
21592 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
21593 \end_layout
21594
21595 \begin_layout Enumerate
21596 変換プログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマットへ
21597 変換します)。
21598 \end_layout
21599
21600 \begin_layout Enumerate
21601 エラーログ解析子。これはエラーメッセージを\SpecialChar LyX
21602 が理解できる形へ書き直します。これによって、\SpecialChar LyX
21603 はファイルバッファの正しい位置へエラーボックスを配置することができます。
21604 \end_layout
21605
21606 \begin_layout Standard
21607 冒頭部、「変換子」設定は
21608 \begin_inset Newline newline
21609 \end_inset
21610
21611
21612 \begin_inset Quotes eld
21613 \end_inset
21614
21615
21616 \family typewriter
21617 build-script $$i $$r
21618 \family default
21619
21620 \begin_inset Quotes erd
21621 \end_inset
21622
21623
21624 \begin_inset Newline newline
21625 \end_inset
21626
21627 と指定します。これは基本的に、\SpecialChar LyX
21628
21629 \begin_inset Quotes erd
21630 \end_inset
21631
21632
21633 \family typewriter
21634 build-script
21635 \family default
21636
21637 \begin_inset Quotes erd
21638 \end_inset
21639
21640 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21641 の一時ファイル用のディレクトリにつくられる)、Nowebファイルの名前と元の\SpecialChar LyX
21642 ファイルのディレクトリパスを使って呼び出すこ
21643 とを意味しています。
21644 \end_layout
21645
21646 \begin_layout Standard
21647 以下に「build-script」の一例を書いておきます。パスが通っているディレクトリに置いて使います。
21648 \end_layout
21649
21650 \begin_layout Standard
21651 \begin_inset VSpace defskip
21652 \end_inset
21653
21654
21655 \begin_inset Newpage pagebreak
21656 \end_inset
21657
21658
21659 \end_layout
21660
21661 \begin_layout Standard
21662
21663 \family sans
21664 #!/bin/sh
21665 \end_layout
21666
21667 \begin_layout Standard
21668
21669 \family sans
21670 #
21671 \end_layout
21672
21673 \begin_layout Standard
21674
21675 \family sans
21676 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21677 \end_layout
21678
21679 \begin_layout Standard
21680 \begin_inset VSpace defskip
21681 \end_inset
21682
21683
21684 \end_layout
21685
21686 \begin_layout Standard
21687 変換子設定の次の部分は「フラグ」で、これは
21688 \begin_inset Quotes erd
21689 \end_inset
21690
21691
21692 \family typewriter
21693 parselog=$$s/scripts/listerrors
21694 \family default
21695
21696 \begin_inset Quotes erd
21697 \end_inset
21698
21699 に設定されます。
21700 \begin_inset Newline newline
21701 \end_inset
21702
21703 これは、
21704 \begin_inset Quotes erd
21705 \end_inset
21706
21707 build-script
21708 \begin_inset Quotes erd
21709 \end_inset
21710
21711 プロセスが生成したエラーを
21712 \begin_inset Quotes erd
21713 \end_inset
21714
21715 listerrors
21716 \begin_inset Quotes erd
21717 \end_inset
21718
21719 プログラムを介して処理するものです。
21720 \end_layout
21721
21722 \begin_layout Standard
21723 ビルドは、通常\SpecialChar LyX
21724 の一時ディレクトリで行われるので、変換によって生成されたファイルはそのディレクトリに置かれます。\SpecialChar LyX
21725 は、主要ファイルとみなされるものをコピーして取り出
21726 しますが、
21727 \family typewriter
21728 Noweb→プログラム
21729 \family default
21730 変換は複数のファイルを生成することがあるので、\SpecialChar LyX
21731 を閉じる際に大半が削除される可能性があります。これが、NOWEB_OUTPUT_DIR環境変数を渡して、build
21732 -script chunkが生成したファイルをその場所に置かれるようにする理由です。
21733 \end_layout
21734
21735 \begin_layout Paragraph
21736 文章中でのプログラムの構築操作の説明
21737 \end_layout
21738
21739 \begin_layout Standard
21740 \SpecialChar LyX
21741 とNowebの統合の最後の部分は、
21742 \begin_inset Quotes eld
21743 \end_inset
21744
21745 build-script
21746 \begin_inset Quotes erd
21747 \end_inset
21748
21749  chunkです。一般に、あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
21750 iptでは、chunkを見つけるのにnotangleコマンドを使い、shを使って起動します。
21751 \end_layout
21752
21753 \begin_layout Standard
21754 以下に典型的なchunkがどのようなものかを書いておきます。
21755 \end_layout
21756
21757 \begin_layout LyX-Code
21758 <<build-script>>=
21759 \begin_inset Newline newline
21760 \end_inset
21761
21762
21763 \end_layout
21764
21765 \begin_layout LyX-Code
21766 #!/bin/sh
21767 \begin_inset Newline newline
21768 \end_inset
21769
21770
21771 \begin_inset Newline newline
21772 \end_inset
21773
21774 if [ -z "${NOWEB_SOURCE}" ]
21775 \begin_inset Newline newline
21776 \end_inset
21777
21778 then
21779 \end_layout
21780
21781 \begin_layout LyX-Code
21782 NOWEB_SOURCE=myfile.nw
21783 \begin_inset Newline newline
21784 \end_inset
21785
21786 fi
21787 \begin_inset Newline newline
21788 \end_inset
21789
21790 [...
21791  code to extract files ...
21792  use NOWEB_OUTPUT_DIR here ...]
21793 \begin_inset Newline newline
21794 \end_inset
21795
21796 [...
21797  code to compile files ...]
21798 \begin_inset Newline newline
21799 \end_inset
21800
21801 @
21802 \end_layout
21803
21804 \begin_layout Standard
21805
21806 \emph on
21807 LIBDIR/examples/listerrors.lyx
21808 \emph default
21809
21810 \emph on
21811 LIBDIR/examples/Literate.lyx
21812 \emph default
21813 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
21814 ってもらうための例です。また、
21815 \emph on
21816 LIBDIR/examples/noweb2lyx.lyx
21817 \emph default
21818 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、\SpecialChar LyX
21819 の文芸プログラミングのサポートがプログラム言語に依存しない
21820 ことを示しています。
21821 \end_layout
21822
21823 \begin_layout Subsubsection
21824 \SpecialChar LyX
21825 の設定
21826 \end_layout
21827
21828 \begin_layout Standard
21829 すべての文芸プログラムのための設定は、
21830 \family sans
21831 ツール\SpecialChar menuseparator
21832 設定
21833 \family default
21834 パネルの「ファイル処理」タブですることができます。重要な部分を見ておきましょう。
21835 \end_layout
21836
21837 \begin_layout Description
21838 「NoWeb」形式 ファイル形式タブで設定します。ここで、Noweb特有の設定を行います。
21839 \family sans
21840 GUI名
21841 \family default
21842
21843 \family typewriter
21844 NoWeb
21845 \family default
21846 に、拡張子を
21847 \family typewriter
21848 .nw
21849 \family default
21850 に設定してください。これによって、\SpecialChar LyX
21851 に変換プロセスの第一段階でつくられるファイルに
21852 \family typewriter
21853 .nw
21854 \family default
21855 という拡張子をつけることを指示します。
21856 \end_layout
21857
21858 \begin_layout Description
21859 プログラム形式 これは、変換の終着点を示すためだけの、空の形式です(これがあることで、変換子を作ることができます)。
21860 \end_layout
21861
21862 \begin_layout Description
21863
21864 \family sans
21865 NoWeb
21866 \family default
21867 ->
21868 \family sans
21869 \SpecialChar LaTeX
21870
21871 \family default
21872  この変換子は、文芸的文書の「weaving」を行います。Nowebの場合、「
21873 \family typewriter
21874 noweave -delay -index $$i > $$o
21875 \family default
21876 」に設定されます。
21877 \end_layout
21878
21879 \begin_layout Description
21880
21881 \family sans
21882 NoWeb
21883 \family default
21884 ->
21885 \family sans
21886 Program
21887 \family default
21888  これは「tangling」を行います。上述のように、変換子は「
21889 \family typewriter
21890 build-script $$i $$r
21891 \family default
21892 」、フラグは「
21893 \family typewriter
21894 parselog=$$s/scripts/listerrors
21895 \family default
21896 」となります。
21897 \end_layout
21898
21899 \begin_layout Subsubsection
21900 デバッグ機能拡張
21901 \end_layout
21902
21903 \begin_layout Standard
21904 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21905 サーバに実装されました。
21906 \end_layout
21907
21908 \begin_layout Standard
21909 ddd/gdbでデバッグしているとき、一つの
21910 \begin_inset Flex Ruby
21911 status collapsed
21912
21913 \begin_layout Plain Layout
21914
21915 \begin_inset Argument post:1
21916 status collapsed
21917
21918 \begin_layout Plain Layout
21919 キー
21920 \end_layout
21921
21922 \end_inset
21923
21924
21925 \end_layout
21926
21927 \end_inset
21928
21929 ストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-Vになっています。この設定はdddで
21930 \begin_inset Flex MenuItem
21931 status collapsed
21932
21933 \begin_layout Plain Layout
21934 ツール\SpecialChar menuseparator
21935 設定\SpecialChar menuseparator
21936 ファイル書式
21937 \end_layout
21938
21939 \end_inset
21940
21941 ウインドウを表示して、
21942 \begin_inset Flex MenuItem
21943 status collapsed
21944
21945 \begin_layout Plain Layout
21946 編集プログラム
21947 \end_layout
21948
21949 \end_inset
21950
21951 エントリを変えると変えることができます。
21952 \end_layout
21953
21954 \begin_layout Standard
21955 新しい\SpecialChar LyX
21956 サーバの関数と、このdddの機能を使うために
21957 \begin_inset Flex MenuItem
21958 status collapsed
21959
21960 \begin_layout Plain Layout
21961 編集プログラム
21962 \end_layout
21963
21964 \end_inset
21965
21966 を次のように設定してください。
21967 \end_layout
21968
21969 \begin_layout Standard
21970 \begin_inset VSpace defskip
21971 \end_inset
21972
21973
21974 \end_layout
21975
21976 \begin_layout Standard
21977
21978 \family sans
21979 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21980 \end_layout
21981
21982 \begin_layout Standard
21983 \begin_inset VSpace defskip
21984 \end_inset
21985
21986
21987 \end_layout
21988
21989 \begin_layout Standard
21990 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21991 サーバに情報を送り、\SpecialChar LyX
21992
21993 は同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります。
21994 \end_layout
21995
21996 \begin_layout Standard
21997 この機能が動くには\SpecialChar LyX
21998 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
21999 サーバーは使えないようになっています)。\SpecialChar LyX
22000 サーバを使えるようにするには、
22001 \family sans
22002
22003 \begin_inset Flex MenuItem
22004 status collapsed
22005
22006 \begin_layout Plain Layout
22007
22008 \family sans
22009 設定
22010 \end_layout
22011
22012 \end_inset
22013
22014
22015 \family default
22016 (
22017 \family sans
22018
22019 \begin_inset Flex MenuItem
22020 status collapsed
22021
22022 \begin_layout Plain Layout
22023
22024 \family sans
22025 パス
22026 \end_layout
22027
22028 \end_inset
22029
22030
22031 \family default
22032 タブ)の
22033 \family sans
22034
22035 \begin_inset Flex MenuItem
22036 status collapsed
22037
22038 \begin_layout Plain Layout
22039
22040 \family sans
22041 \SpecialChar LyX
22042 サーバーパイプ
22043 \family default
22044
22045 \end_layout
22046
22047 \end_inset
22048
22049
22050 \family default
22051
22052 \begin_inset Quotes eld
22053 \end_inset
22054
22055
22056 \family typewriter
22057 /home/<your-home-directory>/.lyx/lyxpipe
22058 \family default
22059
22060 \begin_inset Quotes erd
22061 \end_inset
22062
22063  のようにパスを指定してください。
22064 \end_layout
22065
22066 \begin_layout Standard
22067 詳しくは第
22068 \begin_inset CommandInset ref
22069 LatexCommand ref
22070 reference "chap:LyXサーバー"
22071
22072 \end_inset
22073
22074 章を読んでください。
22075 \end_layout
22076
22077 \begin_layout Subsubsection
22078 ツールバー拡張
22079 \end_layout
22080
22081 \begin_layout Standard
22082 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
22083 \family sans
22084 標準
22085 \family default
22086 ・節・
22087 \family sans
22088 \SpecialChar LaTeX
22089
22090 \family default
22091
22092 \family sans
22093 \SpecialChar LyX
22094 コード
22095 \family default
22096
22097 \family sans
22098 Chunk
22099 \family default
22100 環境用のボタンを用意しています。最後の一つはファイルメニュー項目の「Build Program」への
22101 \begin_inset Flex Ruby
22102 status collapsed
22103
22104 \begin_layout Plain Layout
22105
22106 \family roman
22107 \series medium
22108 \shape up
22109 \size normal
22110 \emph off
22111 \bar no
22112 \noun off
22113 \color none
22114 捷径
22115 \family default
22116 \series default
22117 \shape default
22118 \size default
22119 \emph default
22120 \bar default
22121 \noun default
22122 \color inherit
22123
22124 \begin_inset Argument post:1
22125 status collapsed
22126
22127 \begin_layout Plain Layout
22128 ショートカット
22129 \end_layout
22130
22131 \end_inset
22132
22133
22134 \end_layout
22135
22136 \end_inset
22137
22138 です。
22139 \end_layout
22140
22141 \begin_layout Standard
22142 \SpecialChar LyX
22143 はツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
22144 \begin_inset Flex MenuItem
22145 status collapsed
22146
22147 \begin_layout Plain Layout
22148 文書\SpecialChar menuseparator
22149 更新\SpecialChar menuseparator
22150 DVI
22151 \end_layout
22152
22153 \end_inset
22154
22155
22156 \begin_inset Flex MenuItem
22157 status collapsed
22158
22159 \begin_layout Plain Layout
22160 文書\SpecialChar menuseparator
22161 表示\SpecialChar menuseparator
22162 DVI
22163 \end_layout
22164
22165 \end_inset
22166
22167 を組み合わせたものになっています。
22168 \end_layout
22169
22170 \begin_layout LyX-Code
22171 Toolbar
22172 \end_layout
22173
22174 \begin_layout LyX-Code
22175   Layouts
22176 \end_layout
22177
22178 \begin_layout LyX-Code
22179   Icon "layout Standard"
22180 \end_layout
22181
22182 \begin_layout LyX-Code
22183   Icon "layout Section"
22184 \end_layout
22185
22186 \begin_layout LyX-Code
22187   Icon "layout \SpecialChar LaTeX
22188 "
22189 \end_layout
22190
22191 \begin_layout LyX-Code
22192   Icon "layout \SpecialChar LyX
22193 -Code"
22194 \end_layout
22195
22196 \begin_layout LyX-Code
22197   Icon "layout Chunk"
22198 \end_layout
22199
22200 \begin_layout LyX-Code
22201   Separator
22202 \end_layout
22203
22204 \begin_layout LyX-Code
22205   Icon "buffer-view"
22206 \end_layout
22207
22208 \begin_layout LyX-Code
22209   Icon "buffer-typeset"
22210 \end_layout
22211
22212 \begin_layout LyX-Code
22213   Icon "build-program"
22214 \end_layout
22215
22216 \begin_layout LyX-Code
22217   Separator
22218 \end_layout
22219
22220 \begin_layout LyX-Code
22221 .
22222 \end_layout
22223
22224 \begin_layout LyX-Code
22225 .
22226 \end_layout
22227
22228 \begin_layout LyX-Code
22229 .
22230 \end_layout
22231
22232 \begin_layout LyX-Code
22233 End
22234 \end_layout
22235
22236 \begin_layout Subsubsection
22237 色の変更
22238 \end_layout
22239
22240 \begin_layout Standard
22241 \SpecialChar LyX
22242 ではいくつもの色を
22243 \begin_inset Flex MenuItem
22244 status collapsed
22245
22246 \begin_layout Plain Layout
22247 設定
22248 \end_layout
22249
22250 \end_inset
22251
22252 で変えることができます。人々が困りがちなのは、\SpecialChar LaTeX
22253 フォント色でしょう。これは、既定では赤になっていますが、chunkは\SpecialChar LaTeX
22254 フォントを使うことになっていて、文芸プログラミ
22255 ング文書には多くのchunkが現れるために、すべて赤で見ていると疲れてしまうかもしれません。これは、
22256 \begin_inset Flex MenuItem
22257 status collapsed
22258
22259 \begin_layout Plain Layout
22260 操作性\SpecialChar menuseparator
22261
22262 \end_layout
22263
22264 \end_inset
22265
22266 タブで変更することができます。
22267 \end_layout
22268
22269 \begin_layout Standard
22270 もう一つは、改行文字が画面に表示されていることでしょう。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少
22271 し違う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
22272 \end_layout
22273
22274 \begin_layout Subsection
22275 \SpecialChar LyX
22276 とknitr/Sweave
22277 \end_layout
22278
22279 \begin_layout Standard
22280 knitrとSweaveへのサポートについては、用例ファイル
22281 \emph on
22282 knitr.lyx
22283 \emph default
22284 とSweave取扱説明書(
22285 \family sans
22286 ヘルプ\SpecialChar menuseparator
22287 用途別説明書
22288 \family default
22289 メニュー)に説明があります。
22290 \end_layout
22291
22292 \begin_layout Chapter
22293 特殊機能
22294 \begin_inset CommandInset label
22295 LatexCommand label
22296 name "chap:Special-features"
22297
22298 \end_inset
22299
22300
22301 \end_layout
22302
22303 \begin_layout Standard
22304 \SpecialChar LyX
22305 では、\SpecialChar LaTeX
22306 で可能なことは何でも出来ます。すべての\SpecialChar LaTeX
22307 の機能を直接サポートできるわけではありませんが、どんな場合でも\SpecialChar TeX
22308 コードを使用することはできます。本章は、ユーザの興味が
22309 有りそうな特別な機能について、若干取り上げます。図表やフロート、ボックス、注釈に関する特別な機能については、取扱説明書『
22310 \emph on
22311 埋込オブジェクト篇
22312 \emph default
22313 』をご参照ください。
22314 \end_layout
22315
22316 \begin_layout Section
22317 多段組
22318 \end_layout
22319
22320 \begin_layout Standard
22321 この機能は、文書設定の
22322 \family sans
22323 本文レイアウト
22324 \family default
22325 にある
22326 \family sans
22327 二段組文書
22328 \family default
22329 とは別の機能です。文書全体に二段組を行いたい場合には、
22330 \family sans
22331 二段組文書
22332 \family default
22333 オプションを利用することをお勧めします。その他の場合には、本機能をご使用ください。
22334 \end_layout
22335
22336 \begin_layout Standard
22337 文書中で多段組を行うには、\SpecialChar LaTeX
22338 パッケージ
22339 \series bold
22340 multicol
22341 \series default
22342
22343 \begin_inset Index idx
22344 status collapsed
22345
22346 \begin_layout Plain Layout
22347 \SpecialChar LaTeX
22348 ぱっけーじ @ \SpecialChar LaTeX
22349 パッケージ ! multicol
22350 \end_layout
22351
22352 \end_inset
22353
22354 を導入した上で、(
22355 \family sans
22356 文書\SpecialChar menuseparator
22357 設定\SpecialChar menuseparator
22358 モジュール
22359 \family default
22360 メニューから)
22361 \family sans
22362 多段組
22363 \family default
22364 モジュールを読み込んでください。
22365 \end_layout
22366
22367 \begin_layout Standard
22368 多段組中の脚注は、ページ下部に置かれ、各段の下ごとには置かれません。各段においては、フロートに
22369 \family sans
22370 段をまたぐ
22371 \family default
22372 オプションを使用する必要があるほかは、通常通りの使用をすることができます。
22373 \end_layout
22374
22375 \begin_layout Subsection
22376 基本
22377 \end_layout
22378
22379 \begin_layout Standard
22380 文章中で二段組を使用したい場合には、段組を始める場所で
22381 \family sans
22382 挿入\SpecialChar menuseparator
22383 任意設定差込枠\SpecialChar menuseparator
22384 多段組
22385 \family default
22386 メニューを使用して、多段組差込枠を挿入してください。二段組で印字されるべき文章は、全てこの差込枠の中に書いてください。
22387 \end_layout
22388
22389 \begin_layout Standard
22390 下記はその用例です。
22391 \end_layout
22392
22393 \begin_layout Standard
22394 \noindent
22395 \begin_inset Flex Multiple Columns
22396 status open
22397
22398 \begin_layout Plain Layout
22399 \noindent
22400
22401 \series bold
22402 \size small
22403 The Adventure of the Empty House
22404 \series default
22405
22406 \begin_inset Newline newline
22407 \end_inset
22408
22409 by Sir Arthur Conan Doyle
22410 \end_layout
22411
22412 \begin_layout Plain Layout
22413
22414 \size small
22415 It was in the spring of the year 1894 that all London was interested, and
22416  the fashionable world dismayed, by the murder of the Honourable Ronald
22417  Adair under most unusual and inexplicable circumstances.
22418  The public has already learned those particulars of the crime which came
22419  out in the police investigation, but a good deal was suppressed upon that
22420  occasion, since the case for the prosecution was so overwhelmingly strong
22421  that it was not necessary to bring forward all the facts.
22422  Only now, at the end of nearly ten years, am I allowed to supply those
22423  missing links which make up the whole of that remarkable chain.
22424  The crime was of interest in itself, but that interest was as nothing to
22425  me compared to the inconceivable sequel, which afforded me the greatest
22426  shock and surprise of any event in my adventurous life.
22427  Even now, after this long interval, I find myself thrilling as I think
22428  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22429 ty which utterly submerged my mind.
22430  Let me say to that public, which has shown some interest in those glimpses
22431  which I have occasionally given them of the thoughts and actions of a very
22432  remarkable man, that they are not to blame me if I have not shared my knowledge
22433  with them, for I should have considered it my first duty to do so, had
22434  I not been barred by a positive prohibition from his own lips, which was
22435  only withdrawn upon the third of last month.
22436 \end_layout
22437
22438 \end_inset
22439
22440
22441 \end_layout
22442
22443 \begin_layout Standard
22444 三段以上にするには、カーソルを多段組差込枠の内部において、挿入\SpecialChar menuseparator
22445 段数メニューを使用してください。この差込枠の中に、欲しい段数を書き入れます(三段組の場合には「3」
22446 と書きます)。
22447 \begin_inset Newline newline
22448 \end_inset
22449
22450 下記は三段組の例です。
22451 \end_layout
22452
22453 \begin_layout Standard
22454 \begin_inset Flex Multiple Columns
22455 status open
22456
22457 \begin_layout Plain Layout
22458
22459 \size footnotesize
22460 \begin_inset Argument 1
22461 status open
22462
22463 \begin_layout Plain Layout
22464 3
22465 \end_layout
22466
22467 \end_inset
22468
22469 It can be imagined that my close intimacy with Sherlock Holmes had interested
22470  me deeply in crime, and that after his disappearance I never failed to
22471  read with care the various problems which came before the public.
22472  And I even attempted, more than once, for my own private satisfaction,
22473  to employ his methods in their solution, though with indifferent success.
22474  There was none, however, which appealed to me like this tragedy of Ronald
22475  Adair.
22476  As I read the evidence at the inquest, which led up to a verdict of willful
22477  murder against some person or persons unknown, I realized more clearly
22478  than I had ever done the loss which the community had sustained by the
22479  death of Sherlock Holmes.
22480  There were points about this strange business which would, I was sure,
22481  have specially appealed to him, and the efforts of the police would have
22482  been supplemented, or more probably anticipated, by the trained observation
22483  and the alert mind of the first criminal agent in Europe.
22484  All day, as I drove upon my round, I turned over the case in my mind and
22485  found no explanation which appeared to me to be adequate.
22486  At the risk of telling a twice-told tale, I will recapitulate the facts
22487  as they were known to the public at the conclusion of the inquest.
22488 \end_layout
22489
22490 \end_inset
22491
22492
22493 \end_layout
22494
22495 \begin_layout Standard
22496 お望みならば10段組まで組むことができますが、文書の読者にとっては、あまり気持ちのいいものではないでしょう。
22497 \end_layout
22498
22499 \begin_layout Standard
22500 \begin_inset Newpage newpage
22501 \end_inset
22502
22503
22504 \end_layout
22505
22506 \begin_layout Subsection
22507 段組中の段組
22508 \end_layout
22509
22510 \begin_layout Standard
22511 また、段中に段を組むこともできます。
22512 \end_layout
22513
22514 \begin_layout Standard
22515 \begin_inset Flex Multiple Columns
22516 status open
22517
22518 \begin_layout Plain Layout
22519
22520 \size footnotesize
22521 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22522  at that time governor of one of the Australian colonies.
22523  Adair's mother had returned from Australia to undergo the operation for
22524  cataract, and she, her son Ronald, and her daughter Hilda were living together
22525  at 427 Park Lane.
22526 \end_layout
22527
22528 \begin_layout Plain Layout
22529 \begin_inset Flex Multiple Columns
22530 status open
22531
22532 \begin_layout Plain Layout
22533
22534 \size footnotesize
22535 The youth moved in the best society–had, so far as was known, no enemies
22536  and no particular vices.
22537  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22538  had been broken off by mutual consent some months before, and there was
22539  no sign that it had left any very profound feeling behind it.
22540  For the rest {sic} the man's life moved in a narrow and conventional circle,
22541  for his habits were quiet and his nature unemotional.
22542  Yet it was upon this easy-going young aristocrat that death came, in most
22543  strange and unexpected form, between the hours of ten and eleven-twenty
22544  on the night of March 30, 1894.
22545 \end_layout
22546
22547 \end_inset
22548
22549
22550 \end_layout
22551
22552 \begin_layout Plain Layout
22553
22554 \size footnotesize
22555 Ronald Adair was fond of cards–playing continually, but never for such stakes
22556  as would hurt him.
22557  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22558  It was shown that, after dinner on the day of his death, he had played
22559  a rubber of whist at the latter club.
22560  He had also played there in the afternoon.
22561
22562 \size default
22563  
22564 \size footnotesize
22565 The evidence of those who had played with him– Mr.
22566  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22567  and that there was a fairly equal fall of the cards.
22568  Adair might have lost five pounds, but not more.
22569  His fortune was a considerable one, and such a loss could not in any way
22570  affect him.
22571  He had played nearly every day at one club or other, but he was a cautious
22572  player, and usually rose a winner.
22573  It came out in evidence that, in partnership with Colonel Moran, he had
22574  actually won as much as four hundred and twenty pounds in a sitting, some
22575  weeks before, from Godfrey Milner and Lord Balmoral.
22576  So much for his recent history as it came out at the inquest.
22577 \end_layout
22578
22579 \end_inset
22580
22581
22582 \end_layout
22583
22584 \begin_layout Subsection
22585 応用例
22586 \end_layout
22587
22588 \begin_layout Standard
22589 本節の用例は、多段組のさらに特別な機能を示すためのものです。
22590 \end_layout
22591
22592 \begin_layout Standard
22593 多段組機能についてさらに知りたい場合には、\SpecialChar LaTeX
22594 パッケージ
22595 \series bold
22596 multicol
22597 \series default
22598
22599 \begin_inset CommandInset citation
22600 LatexCommand cite
22601 key "multicol"
22602
22603 \end_inset
22604
22605 の取扱説明書をご覧ください。
22606 \end_layout
22607
22608 \begin_layout Subsubsection
22609 序文
22610 \end_layout
22611
22612 \begin_layout Standard
22613 多段組に序文を追記するには、カーソルを多段組差込枠内部に置き、
22614 \family sans
22615 挿入\SpecialChar menuseparator
22616 序文
22617 \family default
22618 メニューを使用してください。序文は、この差込枠内に書いてください。
22619 \begin_inset Newline newline
22620 \end_inset
22621
22622 序文のある文章の例を掲げます。
22623 \end_layout
22624
22625 \begin_layout Standard
22626 \begin_inset VSpace bigskip
22627 \end_inset
22628
22629
22630 \end_layout
22631
22632 \begin_layout Standard
22633 \begin_inset Flex Multiple Columns
22634 status open
22635
22636 \begin_layout Plain Layout
22637 \begin_inset Argument 2
22638 status open
22639
22640 \begin_layout Plain Layout
22641 And the story continues and continues and continues and continues\SpecialChar ldots
22642
22643 \end_layout
22644
22645 \end_inset
22646
22647
22648 \size small
22649 On the evening of the crime, he returned from the club exactly at ten.
22650  His mother and sister were out spending the evening with a relation.
22651  The servant deposed that she heard him enter the front room on the second
22652  floor, generally used as his sitting-room.
22653  She had lit a fire there, and as it smoked she had opened the window.
22654  No sound was heard from the room until eleven-twenty, the hour of the return
22655  of Lady Maynooth and her daughter.
22656  Desiring to say good-night, she attempted to enter her son's room.
22657  The door was locked on the inside, and no answer could be got to their
22658  cries and knocking.
22659  Help was obtained, and the door forced.
22660  The unfortunate young man was found lying near the table.
22661  His head had been horribly mutilated by an expanding revolver bullet, but
22662  no weapon of any sort was to be found in the room.
22663 \end_layout
22664
22665 \end_inset
22666
22667
22668 \end_layout
22669
22670 \begin_layout Standard
22671 最初の\SpecialChar TeX
22672 コードの後に、節宣言コマンドを\SpecialChar TeX
22673 コードとして使用すれば、節見出しを前書きとして使用することができます。例えば、
22674 \end_layout
22675
22676 \begin_layout Standard
22677
22678 \series bold
22679
22680 \backslash
22681 subsection{小節見出し}
22682 \end_layout
22683
22684 \begin_layout Standard
22685 というコマンドは、小節を生成します。以下の例では、前書きが小々節になっています。
22686 \end_layout
22687
22688 \begin_layout Standard
22689 \begin_inset Flex Multiple Columns
22690 status open
22691
22692 \begin_layout Plain Layout
22693 \begin_inset Argument 2
22694 status open
22695
22696 \begin_layout Plain Layout
22697 \begin_inset ERT
22698 status collapsed
22699
22700 \begin_layout Plain Layout
22701
22702
22703 \backslash
22704 subsubsection{
22705 \end_layout
22706
22707 \end_inset
22708
22709 これは序文の小々節見出しです
22710 \begin_inset ERT
22711 status collapsed
22712
22713 \begin_layout Plain Layout
22714
22715 }
22716 \end_layout
22717
22718 \end_inset
22719
22720
22721 \end_layout
22722
22723 \end_inset
22724
22725
22726 \size small
22727 A minute examination of the circumstances served only to make the case more
22728  complex.
22729  In the first place, no reason could be given why the young man should have
22730  fastened the door upon the inside.
22731  There was the possibility that the murderer had done this, and had afterwards
22732  escaped by the window.
22733  The drop was at least twenty feet, however, and a bed of crocuses in full
22734  bloom lay beneath.
22735  Neither the flowers nor the earth showed any sign of having been disturbed,
22736  nor were there any marks upon the narrow strip of grass which separated
22737  the house from the road.
22738  Apparently, therefore, it was the young man himself who had fastened the
22739  door.
22740  But how did he come by his death? No one could have climbed up to the window
22741  without leaving traces.
22742  Suppose a man had fired through the window, he would indeed be a remarkable
22743  shot who could with a revolver inflict so deadly a wound.
22744  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22745  a hundred yards of the house.
22746  No one had heard a shot.
22747 \end_layout
22748
22749 \end_inset
22750
22751
22752 \end_layout
22753
22754 \begin_layout Standard
22755 多段組を開始する部分に、必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合、多段組の前に改行が挿入されます。前書きの行数如何では、この必
22756 要行数を変更したいかもしれません。これは、カーソルを多段組差込枠内部の(もしあれば)序文の後に置き、
22757 \family sans
22758 挿入\SpecialChar menuseparator
22759 改頁前の余白
22760 \family default
22761 メニューを使用することで設定できます。この差込枠に、余白の大きさを「5cm」などと書き込んでください。
22762 \end_layout
22763
22764 \begin_layout Standard
22765 以下の例では、「7
22766 \backslash
22767 baselineskip」を用いて、必要行数を7行に指定しています(コマンド
22768 \series bold
22769
22770 \backslash
22771 baselineskip
22772 \series default
22773 は\SpecialChar TeX
22774 コードとして入力する必要があります)。
22775 \end_layout
22776
22777 \begin_layout Standard
22778 \begin_inset Flex Multiple Columns
22779 status open
22780
22781 \begin_layout Plain Layout
22782 \begin_inset Argument 3
22783 status open
22784
22785 \begin_layout Plain Layout
22786 7
22787 \begin_inset ERT
22788 status collapsed
22789
22790 \begin_layout Plain Layout
22791
22792
22793 \backslash
22794 baselineskip
22795 \end_layout
22796
22797 \end_inset
22798
22799
22800 \end_layout
22801
22802 \end_inset
22803
22804
22805 \size small
22806 On the evening of the crime, he returned from the club exactly at ten.
22807  His mother and sister were out spending the evening with a relation.
22808  The servant deposed that she heard him enter the front room on the second
22809  floor, generally used as his sitting-room.
22810  She had lit a fire there, and as it smoked she had opened the window.
22811  No sound was heard from the room until eleven-twenty, the hour of the return
22812  of Lady Maynooth and her daughter.
22813  Desiring to say good-night, she attempted to enter her son's room.
22814  The door was locked on the inside, and no answer could be got to their
22815  cries and knocking.
22816  Help was obtained, and the door forced.
22817  The unfortunate young man was found lying near the table.
22818  His head had been horribly mutilated by an expanding revolver bullet, but
22819  no weapon of any sort was to be found in the room.
22820 \end_layout
22821
22822 \end_inset
22823
22824
22825 \end_layout
22826
22827 \begin_layout Subsubsection
22828 周囲の余白
22829 \end_layout
22830
22831 \begin_layout Standard
22832 多段組の前後の余白は、長さ
22833 \series bold
22834
22835 \backslash
22836 multicolsep
22837 \series default
22838 を変えることで変更することができます。例えば、\SpecialChar TeX
22839 コードで書かれたコマンド
22840 \end_layout
22841
22842 \begin_layout Standard
22843
22844 \series bold
22845
22846 \backslash
22847 setlength{
22848 \backslash
22849 multicolsep}{3cm}
22850 \end_layout
22851
22852 \begin_layout Standard
22853 は、その値を3
22854 \begin_inset space \thinspace{}
22855 \end_inset
22856
22857 cmに変更します。この変更は、多段組が始まる前に指定しなくてはなりません。既定値は13
22858 \begin_inset space \thinspace{}
22859 \end_inset
22860
22861 ptです。
22862 \end_layout
22863
22864 \begin_layout Standard
22865 以下の例では、
22866 \series bold
22867
22868 \backslash
22869 multicolsep
22870 \series default
22871 は2.5
22872 \begin_inset space \thinspace{}
22873 \end_inset
22874
22875 cmに指定されています。
22876 \end_layout
22877
22878 \begin_layout Standard
22879 \begin_inset ERT
22880 status open
22881
22882 \begin_layout Plain Layout
22883
22884
22885 \backslash
22886 setlength{
22887 \backslash
22888 multicolsep}{2.5cm}
22889 \end_layout
22890
22891 \end_inset
22892
22893
22894 \end_layout
22895
22896 \begin_layout Standard
22897 \begin_inset Flex Multiple Columns
22898 status open
22899
22900 \begin_layout Plain Layout
22901
22902 \size small
22903 All day I turned these facts over in my mind, endeavouring to hit upon some
22904  theory which could reconcile them all, and to find that line of least resistanc
22905 e which my poor friend had declared to be the starting-point of every investigat
22906 ion.
22907  I confess that I made little progress.
22908  In the evening I strolled across the Park, and found myself about six o'clock
22909  at the Oxford Street end of Park Lane.
22910  A group of loafers upon the pavements, all staring up at a particular window,
22911  directed me to the house which I had come to see.
22912  A tall, thin man with coloured glasses, whom I strongly suspected of being
22913  a plain-clothes detective, was pointing out some theory of his own, while
22914  the others crowded round to listen to what he said.
22915  I got as near him as I could, but his observations seemed to me to be absurd,
22916  so I withdrew again in some disgust.
22917  As I did so I struck against an elderly, deformed man, who had been behind
22918  me, and I knocked down several books which he was carrying.
22919 \end_layout
22920
22921 \end_inset
22922
22923
22924 \end_layout
22925
22926 \begin_layout Standard
22927 \begin_inset Note Greyedout
22928 status open
22929
22930 \begin_layout Plain Layout
22931
22932 \series bold
22933 【註】
22934 \backslash
22935 setlength
22936 \series default
22937 で指定した値は、再度変更されるまでは、以降のすべての多段組で使用されます。
22938 \end_layout
22939
22940 \end_inset
22941
22942
22943 \end_layout
22944
22945 \begin_layout Standard
22946 \begin_inset ERT
22947 status collapsed
22948
22949 \begin_layout Plain Layout
22950
22951
22952 \backslash
22953 setlength{
22954 \backslash
22955 multicolsep}{13pt}
22956 \end_layout
22957
22958 \end_inset
22959
22960
22961 \begin_inset Note Note
22962 status collapsed
22963
22964 \begin_layout Plain Layout
22965
22966 \lang english
22967 go back to the default
22968 \end_layout
22969
22970 \end_inset
22971
22972
22973 \end_layout
22974
22975 \begin_layout Standard
22976 \begin_inset Newpage newpage
22977 \end_inset
22978
22979
22980 \end_layout
22981
22982 \begin_layout Subsubsection
22983 改段
22984 \end_layout
22985
22986 \begin_layout Standard
22987 改段は、文章中の階段を行いたい位置に、\SpecialChar TeX
22988 コードで、コマンド
22989 \series bold
22990
22991 \backslash
22992 columnbreak{}
22993 \series default
22994 を挿入すれば、強制的に行うことができます。ただし、多くの場合、文章中に空白が挿入されることに注意してください。
22995 \begin_inset Newline newline
22996 \end_inset
22997
22998 以下が用例です。
22999 \end_layout
23000
23001 \begin_layout Standard
23002 \begin_inset Flex Multiple Columns
23003 status open
23004
23005 \begin_layout Plain Layout
23006
23007 \size small
23008 \begin_inset Quotes eld
23009 \end_inset
23010
23011 You're surprised to see me, sir,
23012 \begin_inset Quotes erd
23013 \end_inset
23014
23015  said he, in a strange, croaking voice.
23016 \end_layout
23017
23018 \begin_layout Plain Layout
23019
23020 \size small
23021 I acknowledged that I was.
23022 \end_layout
23023
23024 \begin_layout Plain Layout
23025
23026 \size small
23027 \begin_inset Quotes eld
23028 \end_inset
23029
23030 Well, I've a conscience, sir, and when I chanced to see you go into this
23031  house, as I came hobbling after you, I thought to myself, I'll just step
23032  in and see that kind gentleman, and tell him that if I was a bit gruff
23033  in my manner there was not any harm meant, and that I am much obliged to
23034  him for picking up my books.
23035 \begin_inset Quotes erd
23036 \end_inset
23037
23038
23039 \end_layout
23040
23041 \begin_layout Plain Layout
23042
23043 \size small
23044 \begin_inset Quotes eld
23045 \end_inset
23046
23047 You make too much of a trifle,
23048 \begin_inset Quotes erd
23049 \end_inset
23050
23051  said I.
23052  
23053 \begin_inset Quotes eld
23054 \end_inset
23055
23056 May I ask how you knew who I was?
23057 \begin_inset Quotes erd
23058 \end_inset
23059
23060  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
23061 \begin_inset ERT
23062 status collapsed
23063
23064 \begin_layout Plain Layout
23065
23066
23067 \backslash
23068 columnbreak{}
23069 \end_layout
23070
23071 \end_inset
23072
23073
23074 \end_layout
23075
23076 \begin_layout Plain Layout
23077
23078 \size small
23079 \begin_inset Quotes eld
23080 \end_inset
23081
23082 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23083  you'll find my little bookshop at the corner of Church Street, and very
23084  happy to see you, I am sure.
23085  Maybe you collect yourself, sir.
23086  Here's 
23087 \noun on
23088 British
23089 \begin_inset space ~
23090 \end_inset
23091
23092 Birds
23093 \noun default
23094 , and 
23095 \noun on
23096 Catullus
23097 \noun default
23098 , and 
23099 \noun on
23100 The Holy War
23101 \noun default
23102 –a bargain, every one of them.
23103  With five volumes you could just fill that gap on that second shelf.
23104  It looks untidy, does it not, sir?
23105 \begin_inset Quotes erd
23106 \end_inset
23107
23108
23109 \end_layout
23110
23111 \end_inset
23112
23113
23114 \end_layout
23115
23116 \begin_layout Subsubsection
23117 段間隔
23118 \end_layout
23119
23120 \begin_layout Standard
23121 段幅は自動的に計算されますが、段の間の余白は指定することができます。これは、長さ
23122 \series bold
23123
23124 \backslash
23125 columnsep
23126 \series default
23127 を変更することで実現できます。既定値は10
23128 \begin_inset space \thinspace{}
23129 \end_inset
23130
23131 ptです。以下は
23132 \series bold
23133
23134 \backslash
23135 columnsep
23136 \series default
23137 を3
23138 \begin_inset space \thinspace{}
23139 \end_inset
23140
23141 cmに設定した例です。
23142 \end_layout
23143
23144 \begin_layout Standard
23145 \begin_inset ERT
23146 status open
23147
23148 \begin_layout Plain Layout
23149
23150
23151 \backslash
23152 setlength{
23153 \backslash
23154 columnsep}{3cm}
23155 \end_layout
23156
23157 \end_inset
23158
23159
23160 \end_layout
23161
23162 \begin_layout Standard
23163 \begin_inset Flex Multiple Columns
23164 status open
23165
23166 \begin_layout Plain Layout
23167
23168 \size small
23169 My observations of No.
23170 \begin_inset space \space{}
23171 \end_inset
23172
23173 427 Park Lane did little to clear up the problem in which I was interested.
23174  The house was separated from the street by a low wall and railing, the
23175  whole not more than five feet high.
23176  It was perfectly easy, therefore, for anyone to get into the garden, but
23177  the window was entirely inaccessible, since there was no water pipe or
23178  anything which could help the most active man to climb it.
23179  More puzzled than ever, I retraced my steps to Kensington.
23180  I had not been in my study five minutes when the maid entered to say that
23181  a person desired to see me.
23182  To my astonishment it was none other than my strange old book collector,
23183  his sharp, wizened face peering out from a frame of white hair, and his
23184  precious volumes, a dozen of them at least, wedged under his right arm.
23185 \end_layout
23186
23187 \end_inset
23188
23189
23190 \end_layout
23191
23192 \begin_layout Standard
23193 \begin_inset ERT
23194 status collapsed
23195
23196 \begin_layout Plain Layout
23197
23198
23199 \backslash
23200 setlength{
23201 \backslash
23202 columnsep}{10pt}
23203 \end_layout
23204
23205 \end_inset
23206
23207
23208 \begin_inset Note Note
23209 status collapsed
23210
23211 \begin_layout Plain Layout
23212
23213 \lang english
23214 go back to the default
23215 \end_layout
23216
23217 \end_inset
23218
23219
23220 \end_layout
23221
23222 \begin_layout Subsubsection
23223 垂直線
23224 \end_layout
23225
23226 \begin_layout Standard
23227 段間には、長さ
23228 \series bold
23229
23230 \backslash
23231 columnseprule
23232 \series default
23233 の幅を持つ罫線が描かれます。罫線幅を0
23234 \begin_inset space \thinspace{}
23235 \end_inset
23236
23237 ptにすると(これが既定値です)、罫線は出力されません。以下の例では、段を分かつ線は2
23238 \begin_inset space \thinspace{}
23239 \end_inset
23240
23241 pt幅に設定されています。
23242 \end_layout
23243
23244 \begin_layout Standard
23245 \begin_inset ERT
23246 status open
23247
23248 \begin_layout Plain Layout
23249
23250
23251 \backslash
23252 setlength{
23253 \backslash
23254 columnseprule}{2pt}
23255 \end_layout
23256
23257 \end_inset
23258
23259
23260 \end_layout
23261
23262 \begin_layout Standard
23263 \begin_inset Flex Multiple Columns
23264 status open
23265
23266 \begin_layout Plain Layout
23267
23268 \size small
23269 \begin_inset Quotes eld
23270 \end_inset
23271
23272 You're surprised to see me, sir,
23273 \begin_inset Quotes erd
23274 \end_inset
23275
23276  said he, in a strange, croaking voice.
23277 \end_layout
23278
23279 \begin_layout Plain Layout
23280
23281 \size small
23282 I acknowledged that I was.
23283 \end_layout
23284
23285 \begin_layout Plain Layout
23286
23287 \size small
23288 \begin_inset Quotes eld
23289 \end_inset
23290
23291 Well, I've a conscience, sir, and when I chanced to see you go into this
23292  house, as I came hobbling after you, I thought to myself, I'll just step
23293  in and see that kind gentleman, and tell him that if I was a bit gruff
23294  in my manner there was not any harm meant, and that I am much obliged to
23295  him for picking up my books.
23296 \begin_inset Quotes erd
23297 \end_inset
23298
23299
23300 \end_layout
23301
23302 \begin_layout Plain Layout
23303
23304 \size small
23305 \begin_inset Quotes eld
23306 \end_inset
23307
23308 You make too much of a trifle,
23309 \begin_inset Quotes erd
23310 \end_inset
23311
23312  said I.
23313  
23314 \begin_inset Quotes eld
23315 \end_inset
23316
23317 May I ask how you knew who I was?
23318 \begin_inset Quotes erd
23319 \end_inset
23320
23321
23322 \end_layout
23323
23324 \begin_layout Plain Layout
23325
23326 \size small
23327 \begin_inset Quotes eld
23328 \end_inset
23329
23330 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23331  you'll find my little bookshop at the corner of Church Street, and very
23332  happy to see you, I am sure.
23333  Maybe you collect yourself, sir.
23334  Here's 
23335 \noun on
23336 British
23337 \begin_inset space ~
23338 \end_inset
23339
23340 Birds
23341 \noun default
23342 , and 
23343 \noun on
23344 Catullus
23345 \noun default
23346 , and 
23347 \noun on
23348 The Holy War
23349 \noun default
23350 –a bargain, every one of them.
23351  With five volumes you could just fill that gap on that second shelf.
23352  It looks untidy, does it not, sir?
23353 \begin_inset Quotes erd
23354 \end_inset
23355
23356
23357 \end_layout
23358
23359 \end_inset
23360
23361
23362 \end_layout
23363
23364 \begin_layout Standard
23365 \begin_inset VSpace defskip
23366 \end_inset
23367
23368
23369 \end_layout
23370
23371 \begin_layout Standard
23372 罫線は、コマンド
23373 \series bold
23374
23375 \backslash
23376 columnseprulecolor
23377 \series default
23378 を再定義すれば、着色することができます。これは、多段組差込枠の前に\SpecialChar TeX
23379 コードで以下のコマンドを挿入すれば、実現できます。
23380 \begin_inset Newline newline
23381 \end_inset
23382
23383
23384 \series bold
23385
23386 \backslash
23387 renewcommand{
23388 \backslash
23389 columnseprulecolor}{
23390 \backslash
23391 color{red}}
23392 \series default
23393
23394 \begin_inset Newline newline
23395 \end_inset
23396
23397 このコマンド中の
23398 \series bold
23399 red
23400 \series default
23401 をお好みの色に変更してください。既定色とユーザー定義色の全てを使用することができます。既定色とユーザー定義色についての詳細な情報は、取扱説明書『
23402 \emph on
23403 埋込オブジェクト篇
23404 \emph default
23405 』の「
23406 \emph on
23407 色付き表
23408 \emph default
23409 」の節をご覧ください。既定色に戻すには、以下のコマンドを挿入してください。
23410 \begin_inset Newline newline
23411 \end_inset
23412
23413
23414 \series bold
23415
23416 \backslash
23417 renewcommand{
23418 \backslash
23419 columnseprulecolor}{
23420 \backslash
23421 normalcolor}
23422 \series default
23423
23424 \begin_inset Newline newline
23425 \end_inset
23426
23427 以下は、シアン色の罫線と1
23428 \begin_inset space \thinspace{}
23429 \end_inset
23430
23431 cmの段間隔を持つ例です。
23432 \end_layout
23433
23434 \begin_layout Standard
23435 \begin_inset ERT
23436 status open
23437
23438 \begin_layout Plain Layout
23439
23440
23441 \backslash
23442 setlength{
23443 \backslash
23444 columnsep}{1cm}
23445 \end_layout
23446
23447 \begin_layout Plain Layout
23448
23449
23450 \backslash
23451 renewcommand{
23452 \backslash
23453 columnseprulecolor}{
23454 \backslash
23455 color{cyan}}
23456 \end_layout
23457
23458 \end_inset
23459
23460
23461 \end_layout
23462
23463 \begin_layout Standard
23464 \begin_inset Flex Multiple Columns
23465 status open
23466
23467 \begin_layout Plain Layout
23468
23469 \size small
23470 \begin_inset Quotes eld
23471 \end_inset
23472
23473 You're surprised to see me, sir,
23474 \begin_inset Quotes erd
23475 \end_inset
23476
23477  said he, in a strange, croaking voice.
23478 \end_layout
23479
23480 \begin_layout Plain Layout
23481
23482 \size small
23483 I acknowledged that I was.
23484 \end_layout
23485
23486 \begin_layout Plain Layout
23487
23488 \size small
23489 \begin_inset Quotes eld
23490 \end_inset
23491
23492 Well, I've a conscience, sir, and when I chanced to see you go into this
23493  house, as I came hobbling after you, I thought to myself, I'll just step
23494  in and see that kind gentleman, and tell him that if I was a bit gruff
23495  in my manner there was not any harm meant, and that I am much obliged to
23496  him for picking up my books.
23497 \begin_inset Quotes erd
23498 \end_inset
23499
23500
23501 \end_layout
23502
23503 \begin_layout Plain Layout
23504
23505 \size small
23506 \begin_inset Quotes eld
23507 \end_inset
23508
23509 You make too much of a trifle,
23510 \begin_inset Quotes erd
23511 \end_inset
23512
23513  said I.
23514  
23515 \begin_inset Quotes eld
23516 \end_inset
23517
23518 May I ask how you knew who I was?
23519 \begin_inset Quotes erd
23520 \end_inset
23521
23522
23523 \end_layout
23524
23525 \begin_layout Plain Layout
23526
23527 \size small
23528 \begin_inset Quotes eld
23529 \end_inset
23530
23531 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23532  you'll find my little bookshop at the corner of Church Street, and very
23533  happy to see you, I am sure.
23534  Maybe you collect yourself, sir.
23535  Here's 
23536 \noun on
23537 British
23538 \begin_inset space ~
23539 \end_inset
23540
23541 Birds
23542 \noun default
23543 , and 
23544 \noun on
23545 Catullus
23546 \noun default
23547 , and 
23548 \noun on
23549 The Holy War
23550 \noun default
23551 –a bargain, every one of them.
23552  With five volumes you could just fill that gap on that second shelf.
23553  It looks untidy, does it not, sir?
23554 \begin_inset Quotes erd
23555 \end_inset
23556
23557
23558 \end_layout
23559
23560 \end_inset
23561
23562
23563 \end_layout
23564
23565 \begin_layout Standard
23566 \begin_inset ERT
23567 status collapsed
23568
23569 \begin_layout Plain Layout
23570
23571
23572 \backslash
23573 setlength{
23574 \backslash
23575 columnseprule}{0pt}
23576 \end_layout
23577
23578 \begin_layout Plain Layout
23579
23580
23581 \backslash
23582 renewcommand{
23583 \backslash
23584 columnseprulecolor}{
23585 \backslash
23586 normalcolor}
23587 \end_layout
23588
23589 \end_inset
23590
23591
23592 \begin_inset Note Note
23593 status collapsed
23594
23595 \begin_layout Plain Layout
23596
23597 \lang english
23598 go back to the default
23599 \end_layout
23600
23601 \end_inset
23602
23603
23604 \end_layout
23605
23606 \begin_layout Standard
23607 \begin_inset Newpage newpage
23608 \end_inset
23609
23610
23611 \end_layout
23612
23613 \begin_layout Section
23614 標準的でない形の段落
23615 \end_layout
23616
23617 \begin_layout Standard
23618 \noindent
23619 \SpecialChar LaTeX
23620 は、他のテキストプロセッサと同様に、既定で長方形の段落を使用します。しかし、例えば、ポスターや招待状、詩などの特殊な場合には、段落の形を好きなように変えることが
23621 できます。これは、文書設定で
23622 \family sans
23623 任意設定の段落形
23624 \family default
23625 モジュールを読み込んで、\SpecialChar LaTeX
23626 パッケージ
23627 \series bold
23628 shapepar
23629 \series default
23630 を使用させるようにすれば、実現できます。
23631 \end_layout
23632
23633 \begin_layout Subsection
23634 既定の形
23635 \end_layout
23636
23637 \begin_layout Standard
23638
23639 \series bold
23640 shapepar
23641 \series default
23642 は、以下の形を提供しています。
23643 \end_layout
23644
23645 \begin_layout Standard
23646 \begin_inset Tabular
23647 <lyxtabular version="3" rows="13" columns="3">
23648 <features booktabs="true" islongtable="true" longtabularalignment="center">
23649 <column alignment="center" valignment="middle" width="16col%">
23650 <column alignment="center" valignment="middle" width="40col%">
23651 <column alignment="center" valignment="middle" width="35col%">
23652 <row endhead="true">
23653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23654 \begin_inset Text
23655
23656 \begin_layout Plain Layout
23657 名称
23658 \end_layout
23659
23660 \end_inset
23661 </cell>
23662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23663 \begin_inset Text
23664
23665 \begin_layout Plain Layout
23666 説明
23667 \end_layout
23668
23669 \end_inset
23670 </cell>
23671 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23672 \begin_inset Text
23673
23674 \begin_layout Plain Layout
23675 備考
23676 \end_layout
23677
23678 \end_inset
23679 </cell>
23680 </row>
23681 <row>
23682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23683 \begin_inset Text
23684
23685 \begin_layout Plain Layout
23686 CDlabel
23687 \end_layout
23688
23689 \end_inset
23690 </cell>
23691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23692 \begin_inset Text
23693
23694 \begin_layout Plain Layout
23695 丸い穴の開いたドーナツ型(CD/DVD大)
23696 \end_layout
23697
23698 \end_inset
23699 </cell>
23700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23701 \begin_inset Text
23702
23703 \begin_layout Plain Layout
23704 伸縮不可。多くの文字を入れられないことに注意。
23705 \end_layout
23706
23707 \end_inset
23708 </cell>
23709 </row>
23710 <row>
23711 <cell alignment="center" valignment="top" topline="true" usebox="none">
23712 \begin_inset Text
23713
23714 \begin_layout Plain Layout
23715 Circle
23716 \end_layout
23717
23718 \end_inset
23719 </cell>
23720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23721 \begin_inset Text
23722
23723 \begin_layout Plain Layout
23724
23725 \end_layout
23726
23727 \end_inset
23728 </cell>
23729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23730 \begin_inset Text
23731
23732 \begin_layout Plain Layout
23733 脆弱。計算に失敗することも。
23734 \end_layout
23735
23736 \end_inset
23737 </cell>
23738 </row>
23739 <row>
23740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23741 \begin_inset Text
23742
23743 \begin_layout Plain Layout
23744 Diamond
23745 \end_layout
23746
23747 \end_inset
23748 </cell>
23749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23750 \begin_inset Text
23751
23752 \begin_layout Plain Layout
23753 菱形(シンボル的に
23754 \begin_inset Quotes eld
23755 \end_inset
23756
23757 diamond
23758 \begin_inset Quotes erd
23759 \end_inset
23760
23761 と表記)
23762 \end_layout
23763
23764 \end_inset
23765 </cell>
23766 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23767 \begin_inset Text
23768
23769 \begin_layout Plain Layout
23770 -
23771 \end_layout
23772
23773 \end_inset
23774 </cell>
23775 </row>
23776 <row>
23777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23778 \begin_inset Text
23779
23780 \begin_layout Plain Layout
23781 Heart
23782 \end_layout
23783
23784 \end_inset
23785 </cell>
23786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23787 \begin_inset Text
23788
23789 \begin_layout Plain Layout
23790 ハート型
23791 \end_layout
23792
23793 \end_inset
23794 </cell>
23795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23796 \begin_inset Text
23797
23798 \begin_layout Plain Layout
23799 -
23800 \end_layout
23801
23802 \end_inset
23803 </cell>
23804 </row>
23805 <row>
23806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23807 \begin_inset Text
23808
23809 \begin_layout Plain Layout
23810 Hexagon
23811 \end_layout
23812
23813 \end_inset
23814 </cell>
23815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23816 \begin_inset Text
23817
23818 \begin_layout Plain Layout
23819 六角形
23820 \end_layout
23821
23822 \end_inset
23823 </cell>
23824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23825 \begin_inset Text
23826
23827 \begin_layout Plain Layout
23828 -
23829 \end_layout
23830
23831 \end_inset
23832 </cell>
23833 </row>
23834 <row>
23835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23836 \begin_inset Text
23837
23838 \begin_layout Plain Layout
23839 Nut
23840 \end_layout
23841
23842 \end_inset
23843 </cell>
23844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23845 \begin_inset Text
23846
23847 \begin_layout Plain Layout
23848 ナット型(丸い穴の開いた六角形)
23849 \end_layout
23850
23851 \end_inset
23852 </cell>
23853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23854 \begin_inset Text
23855
23856 \begin_layout Plain Layout
23857 -
23858 \end_layout
23859
23860 \end_inset
23861 </cell>
23862 </row>
23863 <row>
23864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23865 \begin_inset Text
23866
23867 \begin_layout Plain Layout
23868 Square
23869 \end_layout
23870
23871 \end_inset
23872 </cell>
23873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23874 \begin_inset Text
23875
23876 \begin_layout Plain Layout
23877 正方形
23878 \end_layout
23879
23880 \end_inset
23881 </cell>
23882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23883 \begin_inset Text
23884
23885 \begin_layout Plain Layout
23886 -
23887 \end_layout
23888
23889 \end_inset
23890 </cell>
23891 </row>
23892 <row>
23893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23894 \begin_inset Text
23895
23896 \begin_layout Plain Layout
23897 Star
23898 \end_layout
23899
23900 \end_inset
23901 </cell>
23902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23903 \begin_inset Text
23904
23905 \begin_layout Plain Layout
23906 五芒星
23907 \end_layout
23908
23909 \end_inset
23910 </cell>
23911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23912 \begin_inset Text
23913
23914 \begin_layout Plain Layout
23915 -
23916 \end_layout
23917
23918 \end_inset
23919 </cell>
23920 </row>
23921 <row>
23922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23923 \begin_inset Text
23924
23925 \begin_layout Plain Layout
23926 Candle
23927 \end_layout
23928
23929 \end_inset
23930 </cell>
23931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23932 \begin_inset Text
23933
23934 \begin_layout Plain Layout
23935 燃えるろうそく
23936 \end_layout
23937
23938 \end_inset
23939 </cell>
23940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23941 \begin_inset Text
23942
23943 \begin_layout Plain Layout
23944 -
23945 \end_layout
23946
23947 \end_inset
23948 </cell>
23949 </row>
23950 <row>
23951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23952 \begin_inset Text
23953
23954 \begin_layout Plain Layout
23955 Drop down/up
23956 \end_layout
23957
23958 \end_inset
23959 </cell>
23960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23961 \begin_inset Text
23962
23963 \begin_layout Plain Layout
23964 雫型/逆雫型
23965 \end_layout
23966
23967 \end_inset
23968 </cell>
23969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23970 \begin_inset Text
23971
23972 \begin_layout Plain Layout
23973 脆弱。計算に失敗することも。
23974 \end_layout
23975
23976 \end_inset
23977 </cell>
23978 </row>
23979 <row>
23980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23981 \begin_inset Text
23982
23983 \begin_layout Plain Layout
23984 \SpecialChar TeX
23985
23986 \end_layout
23987
23988 \end_inset
23989 </cell>
23990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23991 \begin_inset Text
23992
23993 \begin_layout Plain Layout
23994 \SpecialChar TeX
23995 ロゴ
23996 \end_layout
23997
23998 \end_inset
23999 </cell>
24000 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24001 \begin_inset Text
24002
24003 \begin_layout Plain Layout
24004 -
24005 \end_layout
24006
24007 \end_inset
24008 </cell>
24009 </row>
24010 <row>
24011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24012 \begin_inset Text
24013
24014 \begin_layout Plain Layout
24015 Triangle up/down/
24016 \begin_inset Newline newline
24017 \end_inset
24018
24019 left/right
24020 \end_layout
24021
24022 \end_inset
24023 </cell>
24024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24025 \begin_inset Text
24026
24027 \begin_layout Plain Layout
24028 各方向の三角形
24029 \end_layout
24030
24031 \end_inset
24032 </cell>
24033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24034 \begin_inset Text
24035
24036 \begin_layout Plain Layout
24037 -
24038 \end_layout
24039
24040 \end_inset
24041 </cell>
24042 </row>
24043 </lyxtabular>
24044
24045 \end_inset
24046
24047
24048 \end_layout
24049
24050 \begin_layout Standard
24051 段落に形を適用するには、\SpecialChar LyX
24052 ツールバー中の環境プルダウンボックスから形を選んでください。
24053 \end_layout
24054
24055 \begin_layout Standard
24056 \begin_inset Newpage newpage
24057 \end_inset
24058
24059
24060 \end_layout
24061
24062 \begin_layout Standard
24063 以下は、ナット型の段落の例です。
24064 \end_layout
24065
24066 \begin_layout Standard
24067 \begin_inset VSpace bigskip
24068 \end_inset
24069
24070
24071 \end_layout
24072
24073 \begin_layout Nut
24074
24075 \lang latin
24076 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24077  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24078  voluptua.
24079  At vero eos et accusam et justo duo dolores et ea rebum.
24080  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24081  sit amet.
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 \end_layout
24086
24087 \begin_layout Standard
24088 \begin_inset VSpace bigskip
24089 \end_inset
24090
24091
24092 \end_layout
24093
24094 \begin_layout Standard
24095 \begin_inset Note Greyedout
24096 status open
24097
24098 \begin_layout Plain Layout
24099
24100 \series bold
24101 【註】
24102 \series default
24103 shapepar段落は改頁にまたがることはできません。
24104 \end_layout
24105
24106 \end_inset
24107
24108
24109 \end_layout
24110
24111 \begin_layout Standard
24112 \begin_inset VSpace bigskip
24113 \end_inset
24114
24115
24116 \end_layout
24117
24118 \begin_layout Standard
24119
24120 \series bold
24121 shapepar
24122 \series default
24123 は、段落中にどれだけ文章が含まれようとも、常に形を維持しようとします。したがって、段落の大きさは、含まれている文章量によって変化しますので、段落の大きさがページ
24124 余白にはみ出してしまうことがあります。寸法が伸縮することを示すために、文章量を二倍にした例を見てみましょう。
24125 \end_layout
24126
24127 \begin_layout Standard
24128 \begin_inset Newpage newpage
24129 \end_inset
24130
24131
24132 \end_layout
24133
24134 \begin_layout Nut
24135
24136 \lang latin
24137 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24138  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24139  voluptua.
24140  At vero eos et accusam et justo duo dolores et ea rebum.
24141  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24142  sit amet.
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  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24147  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24148  voluptua.
24149  At vero eos et accusam et justo duo dolores et ea rebum.
24150  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24151  sit amet.
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 \end_layout
24156
24157 \begin_layout Standard
24158 \begin_inset VSpace bigskip
24159 \end_inset
24160
24161
24162 \end_layout
24163
24164 \begin_layout Standard
24165 ただし、
24166 \family sans
24167 CDlabel
24168 \family default
24169 形は例外です。これは、CD/DVDの寸法に収まらなくてはならないので、伸縮しません。したがって、形に収まる文章量は限られています。
24170 \begin_inset Newline newline
24171 \end_inset
24172
24173
24174 \family sans
24175 drop
24176 \family default
24177 形と
24178 \family sans
24179 circle
24180 \family default
24181 形は脆弱で、文章量によっては寸法計算が失敗する可能性があります。この場合、
24182 \begin_inset Quotes eld
24183 \end_inset
24184
24185 Arithmetic overflow
24186 \begin_inset Quotes erd
24187 \end_inset
24188
24189 という\SpecialChar LaTeX
24190 エラーが発生します。この時は、文章の一部を追加したり削除したりするか、どれもうまくいかなければ別の形を使用してください。
24191 \end_layout
24192
24193 \begin_layout Standard
24194 \begin_inset VSpace bigskip
24195 \end_inset
24196
24197
24198 \end_layout
24199
24200 \begin_layout Standard
24201 先端のある形では、先端部の文字列で、\SpecialChar LaTeX
24202 のハイフネーションルーチンが失敗することがあります。したがって、この部分の文章には、ハイフネーション位置
24203 \family sans
24204 (
24205 \begin_inset Info
24206 type  "shortcut"
24207 arg   "specialchar-insert hyphenation"
24208 \end_inset
24209
24210
24211 \family default
24212 )を指定することが往々にして必要になります。
24213 \end_layout
24214
24215 \begin_layout Standard
24216 \begin_inset VSpace bigskip
24217 \end_inset
24218
24219
24220 \end_layout
24221
24222 \begin_layout Standard
24223 Shapepar段落は、常に中央揃えか、左の縁が左ページ余白に接するように配置されます。したがって、これらの段落を揃えるのに段落ダイアログを使用することはできま
24224 せん。解決方法としては、段落をミニページかparboxの中において、このボックスを揃えることです。ここでの問題は、ボックスの正しい幅を見出すことです。もしボック
24225 スの幅が広すぎれば、ボックスを中央揃えにしたとしても、ボックスの左側が付いてしまうので中央揃えになりません。そこで、正しい幅を見出すまでは、若干試行錯誤しなくて
24226 はならないかもしれません。以下は、二つのハート形の段落です。一つ目は揃え指定がなく、二つ目は右揃えにしてあります。
24227 \end_layout
24228
24229 \begin_layout Standard
24230 \begin_inset Newpage newpage
24231 \end_inset
24232
24233
24234 \end_layout
24235
24236 \begin_layout Heart
24237 \noindent
24238
24239 \lang latin
24240 Lo\SpecialChar softhyphen
24241 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24242  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24243  voluptua.
24244  At vero eos et accusam et justo duo dolores et ea rebum.
24245  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24246  sit amet.
24247 \end_layout
24248
24249 \begin_layout Standard
24250 \begin_inset VSpace bigskip
24251 \end_inset
24252
24253
24254 \end_layout
24255
24256 \begin_layout Standard
24257 \noindent
24258 \align right
24259 \begin_inset Box Frameless
24260 position "t"
24261 hor_pos "c"
24262 has_inner_box 1
24263 inner_pos "t"
24264 use_parbox 1
24265 use_makebox 0
24266 width "42col%"
24267 special "none"
24268 height "1in"
24269 height_special "totalheight"
24270 thickness "0.4pt"
24271 separation "3pt"
24272 shadowsize "4pt"
24273 framecolor "black"
24274 backgroundcolor "none"
24275 status open
24276
24277 \begin_layout Heart
24278 \noindent
24279
24280 \lang latin
24281 Lo\SpecialChar softhyphen
24282 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24283  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24284  voluptua.
24285  At vero eos et accusam et justo duo dolores et ea rebum.
24286  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24287  sit amet.
24288 \end_layout
24289
24290 \end_inset
24291
24292
24293 \end_layout
24294
24295 \begin_layout Subsection
24296 任意の形
24297 \end_layout
24298
24299 \begin_layout Standard
24300 ユーザーは、どのような形であれ、定義することができます。これを手動で行うのは、全ての座標を指定しなくてはならないので、かなりの労力を必要とします。しかし、以下の
24301 ように、コンピューターに座標を計算させる方法もあります。
24302 \end_layout
24303
24304 \begin_layout Enumerate
24305 プログラム
24306 \begin_inset CommandInset href
24307 LatexCommand href
24308 name "Jpgfdraw"
24309 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24310
24311 \end_inset
24312
24313 を導入します。
24314 \end_layout
24315
24316 \begin_layout Enumerate
24317
24318 \family sans
24319 Jpgfdraw
24320 \family default
24321 内で、メニュー
24322 \family sans
24323 Te
24324 \begin_inset ERT
24325 status collapsed
24326
24327 \begin_layout Plain Layout
24328
24329 {}
24330 \end_layout
24331
24332 \end_inset
24333
24334 X/LaT
24335 \begin_inset ERT
24336 status collapsed
24337
24338 \begin_layout Plain Layout
24339
24340 {}
24341 \end_layout
24342
24343 \end_inset
24344
24345 eX\SpecialChar menuseparator
24346 Settings\SpecialChar menuseparator
24347 Set Normal Size
24348 \family default
24349 で文書中で使用しているフォント寸を選択します。例えば、この文書は12
24350 \begin_inset space \thinspace{}
24351 \end_inset
24352
24353 pt寸を使用しています。
24354 \end_layout
24355
24356 \begin_layout Enumerate
24357 形を描きます。
24358 \end_layout
24359
24360 \begin_layout Enumerate
24361 メニュー
24362 \family sans
24363 Te
24364 \begin_inset ERT
24365 status collapsed
24366
24367 \begin_layout Plain Layout
24368
24369 {}
24370 \end_layout
24371
24372 \end_inset
24373
24374 X/LaT
24375 \begin_inset ERT
24376 status collapsed
24377
24378 \begin_layout Plain Layout
24379
24380 {}
24381 \end_layout
24382
24383 \end_inset
24384
24385 eX\SpecialChar menuseparator
24386 Shapepar
24387 \family default
24388 を使用して、形の座標をエクスポートします。現れるダイアログで、形の外枠を座標に使うか、パス自体を使うかを指定します。
24389 \begin_inset Foot
24390 status collapsed
24391
24392 \begin_layout Plain Layout
24393 詳細については、
24394 \begin_inset CommandInset href
24395 LatexCommand href
24396 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24397
24398 \end_inset
24399
24400 を参照してください。
24401 \end_layout
24402
24403 \end_inset
24404
24405
24406 \end_layout
24407
24408 \begin_layout Standard
24409 座標は\SpecialChar TeX
24410 ファイルに書き込まれます。これを\SpecialChar LyX
24411 文書で使用するには、
24412 \end_layout
24413
24414 \begin_layout Enumerate
24415 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます。
24416 \end_layout
24417
24418 \begin_layout Enumerate
24419 \SpecialChar LyX
24420
24421 \family sans
24422 挿入\SpecialChar menuseparator
24423 ファイル\SpecialChar menuseparator
24424 子文書
24425 \family default
24426 メニューでファイルを選択し、
24427 \family sans
24428 取り込みの型
24429 \family default
24430 として
24431 \family sans
24432 Input
24433 \family default
24434 を選択してください。
24435 \end_layout
24436
24437 \begin_layout Standard
24438 \begin_inset VSpace defskip
24439 \end_inset
24440
24441
24442 \end_layout
24443
24444 \begin_layout Standard
24445 \begin_inset Note Greyedout
24446 status open
24447
24448 \begin_layout Plain Layout
24449
24450 \series bold
24451 【註】
24452 \series default
24453 変更した形は、現在の段落にのみ適用されます。次の段落では全て通常に戻ります。したがって、段落定義ファイルは、形を変えたい段落全てで読み込まれなくてはなりません。
24454 \end_layout
24455
24456 \end_inset
24457
24458
24459 \end_layout
24460
24461 \begin_layout Standard
24462 \begin_inset VSpace bigskip
24463 \end_inset
24464
24465
24466 \end_layout
24467
24468 \begin_layout Standard
24469 以下の用例をご覧ください。
24470 \end_layout
24471
24472 \begin_layout Standard
24473 \begin_inset VSpace bigskip
24474 \end_inset
24475
24476
24477 \end_layout
24478
24479 \begin_layout Standard
24480 \begin_inset CommandInset include
24481 LatexCommand input
24482 filename "../SpecialParagraphShape.tex"
24483
24484 \end_inset
24485
24486
24487 \lang latin
24488 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24489  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24490  voluptua.
24491  At vero eos et accusam et justo duo dolores et ea rebum.
24492  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24493  sit amet.
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 \end_layout
24498
24499 \begin_layout Standard
24500 \begin_inset VSpace bigskip
24501 \end_inset
24502
24503
24504 \end_layout
24505
24506 \begin_layout Standard
24507
24508 \series bold
24509 【ヒント】
24510 \family sans
24511 \series default
24512 Jpgfdraw
24513 \family default
24514 で複雑な形を描く場合、まず形を好きなプログラムで描き、出来上がった画像を
24515 \family sans
24516 Jpgfdraw
24517 \family default
24518 に読み込む方法があります。この場合、画像の外枠に沿って、直線またはスプラインを描くだけですみます。
24519 \end_layout
24520
24521 \begin_layout Standard
24522 \begin_inset VSpace bigskip
24523 \end_inset
24524
24525
24526 \end_layout
24527
24528 \begin_layout Standard
24529
24530 \family sans
24531 任意の段落形
24532 \family default
24533 モジュールは、
24534 \family sans
24535 shapepar
24536 \family default
24537
24538 \family sans
24539 Shapepar
24540 \family default
24541 の二つのコマンドも提供していて、任意の形を座標毎に定義するのに使用することができます。
24542 \begin_inset Foot
24543 status collapsed
24544
24545 \begin_layout Plain Layout
24546 これらのコマンドは、上述の全ての形で内部的に使用されています。
24547 \end_layout
24548
24549 \end_inset
24550
24551 これらのスタイルがどのように使われていて、どのような設定ができるのかについての詳しい情報は、
24552 \series bold
24553 shapepar
24554 \series default
24555 パッケージの取扱説明書
24556 \begin_inset CommandInset citation
24557 LatexCommand cite
24558 key "shapepar"
24559
24560 \end_inset
24561
24562 をご覧ください。
24563 \end_layout
24564
24565 \begin_layout Bibliography
24566 \begin_inset CommandInset bibitem
24567 LatexCommand bibitem
24568 key "multicol"
24569
24570 \end_inset
24571
24572 \SpecialChar LaTeX
24573 パッケージ
24574 \begin_inset CommandInset href
24575 LatexCommand href
24576 name "multicol"
24577 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24578
24579 \end_inset
24580
24581 の取扱説明書
24582 \end_layout
24583
24584 \begin_layout Bibliography
24585 \begin_inset CommandInset bibitem
24586 LatexCommand bibitem
24587 key "shapepar"
24588
24589 \end_inset
24590
24591 \SpecialChar LaTeX
24592 パッケージ
24593 \begin_inset CommandInset href
24594 LatexCommand href
24595 name "shapepar"
24596 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
24597
24598 \end_inset
24599
24600 の取扱説明書
24601 \end_layout
24602
24603 \end_body
24604 \end_document