]> git.lyx.org Git - features.git/blob - lib/doc/ja/Additional.lyx
Revert local layouts changes in ja/Additional.lyx.
[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 /systemlyxdir/doc/ja/
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 35
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 End
69 InsetLayout             Flex:Ruby
70 LyxType         charstyle
71 LatexType               command
72 LatexName               ruby
73 BgColor         none
74 LabelString             "ルビ"
75 Decoration              Conglomerate
76 Argument post:1
77 LabelString     "ルビ文"
78 MenuString      "ルビ文(S)|S"
79 Decoration      Conglomerate
80 Font
81 Size            tiny
82 EndFont
83 LabelFont
84 Size            tiny
85 EndFont
86 Mandatory       1
87 EndArgument
88 Preamble
89 \IfFileExists{okumacro.sty}
90 {\usepackage{okumacro}}
91 {\newcommand{\ruby}[2]{#2}}
92 EndPreamble
93 End
94 \end_local_layout
95 \language japanese
96 \language_package default
97 \inputencoding auto
98 \fontencoding global
99 \font_roman "default" "default"
100 \font_sans "default" "default"
101 \font_typewriter "default" "default"
102 \font_math "auto" "auto"
103 \font_default_family default
104 \use_non_tex_fonts false
105 \font_sc false
106 \font_osf false
107 \font_sf_scale 100 100
108 \font_tt_scale 100 100
109 \graphics default
110 \default_output_format default
111 \output_sync 0
112 \bibtex_command default
113 \index_command default
114 \paperfontsize 12
115 \spacing single
116 \use_hyperref true
117 \pdf_title "LyX's Additional Features manual"
118 \pdf_author "LyX Team"
119 \pdf_subject "LyX's additional features documentation"
120 \pdf_keywords "LyX, Documentation, Additional"
121 \pdf_bookmarks false
122 \pdf_bookmarksnumbered true
123 \pdf_bookmarksopen false
124 \pdf_bookmarksopenlevel 1
125 \pdf_breaklinks false
126 \pdf_pdfborder false
127 \pdf_colorlinks true
128 \pdf_backref false
129 \pdf_pdfusetitle false
130 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
131 \papersize default
132 \use_geometry false
133 \use_package amsmath 1
134 \use_package amssymb 1
135 \use_package cancel 0
136 \use_package esint 0
137 \use_package mathdots 1
138 \use_package mathtools 0
139 \use_package mhchem 1
140 \use_package stackrel 0
141 \use_package stmaryrd 0
142 \use_package undertilde 0
143 \cite_engine basic
144 \cite_engine_type default
145 \biblio_style plain
146 \use_bibtopic false
147 \use_indices false
148 \paperorientation portrait
149 \suppress_date false
150 \justification true
151 \use_refstyle 0
152 \notefontcolor #0000ff
153 \index 索引
154 \shortcut idx
155 \color #008000
156 \end_index
157 \secnumdepth 3
158 \tocdepth 3
159 \paragraph_separation indent
160 \paragraph_indentation default
161 \quotes_language english
162 \papercolumns 1
163 \papersides 2
164 \paperpagestyle headings
165 \tracking_changes false
166 \output_changes false
167 \html_math_output 0
168 \html_css_as_file 0
169 \html_be_strict true
170 \end_header
171
172 \begin_body
173
174 \begin_layout Title
175 \SpecialChar LyX
176 の高度な機能
177 \begin_inset Newline newline
178 \end_inset
179
180
181 \size large
182 第2.2.x版
183 \end_layout
184
185 \begin_layout Author
186 \SpecialChar LyX
187 プロジェクトチーム
188 \begin_inset Foot
189 status collapsed
190
191 \begin_layout Plain Layout
192 このファイルは主にRichard Heckによって管理されています。コメントをされたい場合や誤りを発見された場合には、\SpecialChar LyX
193 文書化メーリングリスト
194 \begin_inset Flex Code
195 status open
196
197 \begin_layout Plain Layout
198 \noindent
199
200 \family typewriter
201 <lyx-docs@lists.lyx.org>
202 \end_layout
203
204 \end_inset
205
206 に英文にてお知らせ下さい。この文書の翻訳は、当初人見光太郎氏が行った貢献に基づいています。
207 \end_layout
208
209 \end_inset
210
211  
212 \end_layout
213
214 \begin_layout Standard
215 \begin_inset CommandInset toc
216 LatexCommand tableofcontents
217
218 \end_inset
219
220
221 \end_layout
222
223 \begin_layout Chapter
224 はじめに
225 \end_layout
226
227 \begin_layout Standard
228 いまお読みの取扱説明書『
229 \emph on
230 \SpecialChar LyX
231 拡張機能篇
232 \emph default
233 』は、基本的には『
234 \emph on
235 ユーザーの手引き
236 \emph default
237 』の第二部です。これらの文書を別部とした理由は、単純に『
238 \emph on
239 ユーザーの手引き
240 \emph default
241 』がすでに大部となっていることと、『
242 \emph on
243 ユーザーの手引き
244 \emph default
245 』が、ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです。一方で、\SpecialChar LyX
246 プロジェクトチームは、\SpecialChar LyX
247 を各設定ファイルと外部パッケージによって拡張
248 可能な状態にしておくことを長期的な目標にしています。つまり、ある\SpecialChar LaTeX
249 パッケージをサポートしたい場合に、\SpecialChar LyX
250 自身に変更を加えることなく、当該パッケージ用のレイアウトファイ
251 ル(ないしモジュール)を作成すればいいようにしているのです。すでにこのような形で、いくつもの新機能がユーザーによって追加されています。この取扱説明書は、そのよう
252 な形での貢献を文書化する冊子として位置付けられています。
253 \end_layout
254
255 \begin_layout Standard
256 この取扱説明書では、ファックスのサポート・バージョン管理・SGMLサポートのような、正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
257 しています。さらに、\SpecialChar LaTeX
258 の強力な機能を直接使って文書を美しく仕上げるための、\SpecialChar LaTeX
259 ツールやテクニックを述べた章も収録しています。つきつめれば、\SpecialChar LyX
260 とはあくまでWYSIWYMた
261 ることを企図しているため、\SpecialChar LaTeX
262 の全機能の一部へのインタフェースは用意するものの、すべてを用意することはないでしょう。
263 \end_layout
264
265 \begin_layout Standard
266 もし、まだ『
267 \emph on
268 はじめの一歩
269 \emph default
270 』をお読みでなかったら、この取扱説明書から読みはじめるのは誤りです。『
271 \emph on
272 はじめの一歩
273 \emph default
274 』には、全取扱説明書に共通の表記法と書式が説明されていますので、まずそれからお読みください。さらに、この取扱説明書を読もうとする前に、『
275 \emph on
276 ユーザーの手引き
277 \emph default
278 』をよくお読みになって、\SpecialChar LyX
279 の全基本機能を習得してください。
280 \end_layout
281
282 \begin_layout Standard
283 この取扱説明書の取り上げられている話題は、\SpecialChar LyX
284 が\SpecialChar LaTeX
285 にどう関わっているかに強く関係していますので、まず次章では、\SpecialChar LyX
286 の内部動作がどうなっているか、LyXに希望する\SpecialChar LaTeX
287 コードを正
288 確に生成させるにはどうしたらいいかを収録しています。本章は、あきらかに熟練\SpecialChar LyX
289 ユーザー向けの章となっています。
290 \end_layout
291
292 \begin_layout Chapter
293 \SpecialChar LyX
294 と\SpecialChar LaTeX
295
296 \end_layout
297
298 \begin_layout Section
299 \SpecialChar LyX
300 は\SpecialChar LaTeX
301 をどう使っているか
302 \end_layout
303
304 \begin_layout Standard
305 本章
306 \family roman
307 \series medium
308 \shape up
309 \size normal
310 \emph off
311 \bar no
312 \noun off
313 \color none
314 は、\SpecialChar TeX
315 熟練者と\SpecialChar LaTeX
316 に興味のある方向けの章です。ここでは、\SpecialChar LyX
317 と\SpecialChar LaTeX
318 が、印刷可能な出力を生成するのに、どのように協働しているのかを説明します。全取扱説明書中で本章だけは、\SpecialChar LaTeX
319 のこと
320 を多少なりともご存知であることを前提とします。
321 \end_layout
322
323 \begin_layout Standard
324
325 \family roman
326 \series medium
327 \shape up
328 \size normal
329 \emph off
330 \bar no
331 \noun off
332 \color none
333 かつて\SpecialChar LyX
334 は、「\SpecialChar LaTeX
335
336 \family default
337 \series default
338 \shape default
339 \size default
340 \emph default
341 \bar default
342 \noun default
343 \color inherit
344 WYSIWYM
345 \family roman
346 \series medium
347 \shape up
348 \size normal
349 \emph off
350 \bar no
351 \noun off
352 \color none
353 なフロントエンド」と呼ばれていましたが、いまではこれは正しくありません。\SpecialChar LaTeX
354 のフロントエンドは、いくつも出回っています
355 \begin_inset Foot
356 status collapsed
357
358 \begin_layout Plain Layout
359
360 \family roman
361 \series medium
362 \shape up
363 \size normal
364 \emph off
365 \bar no
366 \noun off
367 \color none
368 有名なものとしては、Linux上の\SpecialChar TeX
369 makerとkile、OSX上の\SpecialChar TeX
370 shopなどがあります。もちろんviとemacsの\SpecialChar LaTeX
371 モードも含まれます。
372 \end_layout
373
374 \end_inset
375
376 。これらは、基本的に\SpecialChar LaTeX
377 を走らせる機能を有し、編集中のファイルのエラーを表示する機能を持ったテキストエディタです。\SpecialChar LyX
378 も、エディタであり、\SpecialChar LaTeX
379 を走らせる機能を有し、ファイル
380 中のエラーを指摘しますが、それ以上にもっともっと多くのことをしてくれます。
381 \family default
382 \series default
383 \shape default
384 \size default
385 \emph default
386 \bar default
387 \noun default
388 \color inherit
389 ひとつには、
390 \family roman
391 \series medium
392 \shape up
393 \size normal
394 \emph off
395 \bar no
396 \noun off
397 \color none
398 \SpecialChar LyX
399 を効果的に使うのに、\SpecialChar LaTeX
400 の知識が必要とされないことが挙げられます。また\SpecialChar LyX
401 は、それ自身、いくつかの拡張を\SpecialChar LaTeX
402 に加えています。時間のあるときにでも、いちど以下の手順を試してみ
403 てください。まず
404 \family sans
405 \series default
406 \shape default
407 \size default
408 \emph default
409 \bar default
410 \noun default
411 \color inherit
412
413 \begin_inset Flex MenuItem
414 status collapsed
415
416 \begin_layout Plain Layout
417
418 \family sans
419 ファイル
420 \end_layout
421
422 \end_inset
423
424
425 \family roman
426 \series medium
427 \shape up
428 \size normal
429 \emph off
430 \bar no
431 \noun off
432 \color none
433 メニューから
434 \family sans
435 \series default
436 \shape default
437 \size default
438 \emph default
439 \bar default
440 \noun default
441 \color inherit
442
443 \begin_inset Flex MenuItem
444 status collapsed
445
446 \begin_layout Plain Layout
447
448 \family sans
449 エクスポート\SpecialChar menuseparator
450 \SpecialChar LaTeX
451
452 \end_layout
453
454 \end_inset
455
456
457 \family roman
458 \series medium
459 \shape up
460 \size normal
461 \emph off
462 \bar no
463 \noun off
464 \color none
465 (あるいは
466 \family sans
467 \series default
468 \shape default
469 \size default
470 \emph default
471 \bar default
472 \noun default
473 \color inherit
474
475 \begin_inset Flex MenuItem
476 status collapsed
477
478 \begin_layout Plain Layout
479
480 \family sans
481 表示\SpecialChar menuseparator
482 ソースを閲覧
483 \end_layout
484
485 \end_inset
486
487
488 \family roman
489 \series medium
490 \shape up
491 \size normal
492 \emph off
493 \bar no
494 \noun off
495 \color none
496 )を選択し、そこから出力される
497 \begin_inset Flex Code
498 status collapsed
499
500 \begin_layout Plain Layout
501
502 \family typewriter
503 .tex
504 \end_layout
505
506 \end_inset
507
508 ファイルのプリアンブルをご覧ください。\SpecialChar LyX
509 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
510 \family default
511 \series default
512 \shape default
513 \size default
514 \emph default
515 \bar default
516 \noun default
517 \color inherit
518 。これらのマクロは、文書中で使用する機能に応じて、自動的に定義されます。
519 \end_layout
520
521 \begin_layout Standard
522
523 \family roman
524 \series medium
525 \shape up
526 \size normal
527 \emph off
528 \bar no
529 \noun off
530 \color none
531 自動的に\SpecialChar LaTeX
532 を実行するコマンドが、以下のようにいくつかあります。
533 \end_layout
534
535 \begin_layout Itemize
536 \begin_inset Flex MenuItem
537 status collapsed
538
539 \begin_layout Plain Layout
540 表示\SpecialChar menuseparator
541
542 \emph on
543 書式
544 \end_layout
545
546 \end_inset
547
548
549 \end_layout
550
551 \begin_layout Itemize
552
553 \family sans
554 \begin_inset Flex MenuItem
555 status collapsed
556
557 \begin_layout Plain Layout
558
559 \bar no
560 表示\SpecialChar menuseparator
561 更新\SpecialChar menuseparator
562
563 \emph on
564 書式
565 \end_layout
566
567 \end_inset
568
569
570 \end_layout
571
572 \begin_layout Itemize
573
574 \family sans
575 \begin_inset Flex MenuItem
576 status collapsed
577
578 \begin_layout Plain Layout
579 ファイル\SpecialChar menuseparator
580 印刷
581 \end_layout
582
583 \end_inset
584
585
586 \end_layout
587
588 \begin_layout Itemize
589
590 \family sans
591 \begin_inset Flex MenuItem
592 status collapsed
593
594 \begin_layout Plain Layout
595 ファイル\SpecialChar menuseparator
596 ファックス
597 \end_layout
598
599 \end_inset
600
601
602 \end_layout
603
604 \begin_layout Standard
605
606 \family roman
607 \series medium
608 \shape up
609 \size normal
610 \emph off
611 \bar no
612 \noun off
613 \color none
614 これらは、最後に\SpecialChar LaTeX
615 を実行してからファイルに変更が加えられた場合のみ、\SpecialChar LaTeX
616 を実行します。
617 \end_layout
618
619 \begin_layout Standard
620
621 \family roman
622 \series medium
623 \shape up
624 \size normal
625 \emph off
626 \bar no
627 \noun off
628 \color none
629 \SpecialChar LyX
630 が編集中のファイルを\SpecialChar LaTeX
631 にかけるとき、\SpecialChar LyX
632 は以下の段階をふみます。
633 \end_layout
634
635 \begin_layout Enumerate
636
637 \family roman
638 \series medium
639 \shape up
640 \size normal
641 \emph off
642 \bar no
643 \noun off
644 \color none
645 文書を\SpecialChar LaTeX
646 に変換し、ファイルの拡張子を
647 \begin_inset Flex Code
648 status collapsed
649
650 \begin_layout Plain Layout
651
652 \family roman
653 \series medium
654 \shape up
655 \size normal
656 \emph off
657 \bar no
658 \noun off
659 \color none
660 .lyx
661 \end_layout
662
663 \end_inset
664
665 から
666 \begin_inset Flex Code
667 status collapsed
668
669 \begin_layout Plain Layout
670
671 \family roman
672 \series medium
673 \shape up
674 \size normal
675 \emph off
676 \bar no
677 \noun off
678 \color none
679 .tex
680 \end_layout
681
682 \end_inset
683
684 に変えて保存。
685 \end_layout
686
687 \begin_layout Enumerate
688
689 \family roman
690 \series medium
691 \shape up
692 \size normal
693 \emph off
694 \bar no
695 \noun off
696 \color none
697 この
698 \begin_inset Flex Code
699 status collapsed
700
701 \begin_layout Plain Layout
702
703 \family roman
704 \series medium
705 \shape up
706 \size normal
707 \emph off
708 \bar no
709 \noun off
710 \color none
711 .tex
712 \end_layout
713
714 \end_inset
715
716 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
717 を実行し、\SpecialChar LaTeX
718 ファイルをコンパイルするのに必要な他のコマンド(
719 \begin_inset Flex Code
720 status collapsed
721
722 \begin_layout Plain Layout
723
724 \family roman
725 \series medium
726 \shape up
727 \size normal
728 \emph off
729 \bar no
730 \noun off
731 \color none
732 bibtex
733 \end_layout
734
735 \end_inset
736
737
738 \begin_inset Flex Code
739 status collapsed
740
741 \begin_layout Plain Layout
742
743 \family roman
744 \series medium
745 \shape up
746 \size normal
747 \emph off
748 \bar no
749 \noun off
750 \color none
751 makeindex
752 \end_layout
753
754 \end_inset
755
756 など)を実行。。
757 \end_layout
758
759 \begin_layout Enumerate
760
761 \family roman
762 \series medium
763 \shape up
764 \size normal
765 \emph off
766 \bar no
767 \noun off
768 \color none
769 もしエラーがあれば、エラーログを表示。
770 \end_layout
771
772 \begin_layout Standard
773
774 \family roman
775 \series medium
776 \shape up
777 \size normal
778 \emph off
779 \bar no
780 \noun off
781 \color none
782 \SpecialChar LaTeX
783
784 \family sans
785 \series default
786 \shape default
787 \size default
788 \emph default
789 \bar default
790 \noun default
791 \color inherit
792
793 \begin_inset Flex MenuItem
794 status collapsed
795
796 \begin_layout Plain Layout
797
798 \family sans
799 表示\SpecialChar menuseparator
800 DVI
801 \end_layout
802
803 \end_inset
804
805
806 \family roman
807 \series medium
808 \shape up
809 \size normal
810 \emph off
811 \bar no
812 \noun off
813 \color none
814 を使用して実行した場合には、\SpecialChar LyX
815 はこの後、DVIビューアを実行してDVIファイルを表示します。
816 \begin_inset Flex MenuItem
817 status collapsed
818
819 \begin_layout Plain Layout
820
821 \family roman
822 \series medium
823 \shape up
824 \size normal
825 \emph off
826 \bar no
827 \noun off
828 \color none
829 表示\SpecialChar menuseparator
830 PostScript
831 \end_layout
832
833 \end_inset
834
835 を使用した場合には、\SpecialChar LyX
836 はさらに以下の段階をふみます。
837 \end_layout
838
839 \begin_layout Itemize
840
841 \family roman
842 \series medium
843 \shape up
844 \size normal
845 \emph off
846 \bar no
847 \noun off
848 \color none
849 \begin_inset Flex Code
850 status collapsed
851
852 \begin_layout Plain Layout
853
854 \family typewriter
855 dvips
856 \end_layout
857
858 \end_inset
859
860 を実行して、
861 \family default
862 \series default
863 \shape default
864 \size default
865 \emph default
866 \bar default
867 \noun default
868 \color inherit
869 DVI
870 \family roman
871 \series medium
872 \shape up
873 \size normal
874 \emph off
875 \bar no
876 \noun off
877 \color none
878 ファイルをPostScript®
879 \family default
880 \series default
881 \shape default
882 \size default
883 \emph default
884 \bar default
885 \noun default
886 \color inherit
887 に変換。
888 \end_layout
889
890 \begin_layout Itemize
891
892 \family roman
893 \series medium
894 \shape up
895 \size normal
896 \emph off
897 \bar no
898 \noun off
899 \color none
900 \begin_inset Flex Code
901 status collapsed
902
903 \begin_layout Plain Layout
904
905 \family typewriter
906 ghostview
907 \end_layout
908
909 \end_inset
910
911 などのPostScript®ビューアを実行して、PostScript®
912 \family default
913 \series default
914 \shape default
915 \size default
916 \emph default
917 \bar default
918 \noun default
919 \color inherit
920 ファイルを表示。
921 \end_layout
922
923 \begin_layout Standard
924 \SpecialChar LyX
925 は、他の書式を表示したりエクスポートしたりする際にも、同様のことを行います。
926 \end_layout
927
928 \begin_layout Section
929 \SpecialChar LaTeX
930 ファイルを\SpecialChar LyX
931 に読み込む
932 \end_layout
933
934 \begin_layout Standard
935 \SpecialChar LyX
936
937 \family sans
938
939 \begin_inset Flex MenuItem
940 status collapsed
941
942 \begin_layout Plain Layout
943
944 \family sans
945 ファイル\SpecialChar menuseparator
946 インポート\SpecialChar menuseparator
947 \SpecialChar LaTeX
948
949 \end_layout
950
951 \end_inset
952
953
954 \family roman
955 \series medium
956 \shape up
957 \size normal
958 \emph off
959 \bar no
960 \noun off
961 \color none
962 コマンドを使用すると、\SpecialChar LaTeX
963 ファイルを
964 \family default
965 \series default
966 \shape default
967 \size default
968 \emph default
969 \bar default
970 \noun default
971  
972 \family roman
973 \series medium
974 \shape up
975 \size normal
976 \emph off
977 \bar no
978 \noun off
979 \SpecialChar LyX
980 にインポートすることができます。このコマンドは、
981 \family typewriter
982 \series default
983 \shape default
984 \size default
985 \emph default
986 \bar default
987 \noun default
988 \color inherit
989
990 \begin_inset Flex Code
991 status collapsed
992
993 \begin_layout Plain Layout
994
995 \family typewriter
996 tex2lyx
997 \end_layout
998
999 \end_inset
1000
1001
1002 \family roman
1003 \series medium
1004 \shape up
1005 \size normal
1006 \emph off
1007 \bar no
1008 \noun off
1009 \color none
1010 というプログラムを呼び出し、
1011 \family typewriter
1012 \series default
1013 \shape default
1014 \size default
1015 \emph default
1016 \bar default
1017 \noun default
1018 \color inherit
1019
1020 \begin_inset Flex Code
1021 status collapsed
1022
1023 \begin_layout Plain Layout
1024
1025 \family typewriter
1026 foo.tex
1027 \end_layout
1028
1029 \end_inset
1030
1031
1032 \family default
1033 などというファイルから
1034 \begin_inset Flex Code
1035 status collapsed
1036
1037 \begin_layout Plain Layout
1038
1039 \family typewriter
1040 foo.lyx
1041 \end_layout
1042
1043 \end_inset
1044
1045 を生成します。\SpecialChar LyX
1046 は、この変換したファイルを開きます
1047 \begin_inset Foot
1048 status collapsed
1049
1050 \begin_layout Plain Layout
1051 \begin_inset Flex Code
1052 status collapsed
1053
1054 \begin_layout Plain Layout
1055 tex2lyx
1056 \end_layout
1057
1058 \end_inset
1059
1060 は、もちろんコマンドラインから実行することもできます。
1061 \end_layout
1062
1063 \end_inset
1064
1065
1066 \end_layout
1067
1068 \begin_layout Standard
1069
1070 \family typewriter
1071 \begin_inset Flex Code
1072 status collapsed
1073
1074 \begin_layout Plain Layout
1075
1076 \family typewriter
1077 tex2lyx
1078 \end_layout
1079
1080 \end_inset
1081
1082
1083 \family roman
1084 \series medium
1085 \shape up
1086 \size normal
1087 \emph off
1088 \bar no
1089 \noun off
1090 \color none
1091 は、文法的に正しい\SpecialChar LaTeX
1092 ファイルのほとんどを変換することができますが、すべてを変換できるわけではありません。
1093 \family typewriter
1094 \series default
1095 \shape default
1096 \size default
1097 \emph default
1098 \bar default
1099 \noun default
1100 \color inherit
1101
1102 \begin_inset Flex Code
1103 status collapsed
1104
1105 \begin_layout Plain Layout
1106
1107 \family typewriter
1108 tex2lyx
1109 \end_layout
1110
1111 \end_inset
1112
1113
1114 \family roman
1115 \series medium
1116 \shape up
1117 \size normal
1118 \emph off
1119 \bar no
1120 \noun off
1121 \color none
1122 は、理解不能な部分は\SpecialChar TeX
1123 コードボックスの形で残しますので、ファイルを
1124 \family typewriter
1125 \series default
1126 \shape default
1127 \size default
1128 \emph default
1129 \bar default
1130 \noun default
1131 \color inherit
1132
1133 \begin_inset Flex Code
1134 status collapsed
1135
1136 \begin_layout Plain Layout
1137
1138 \family typewriter
1139 tex2lyx
1140 \end_layout
1141
1142 \end_inset
1143
1144
1145 \family roman
1146 \series medium
1147 \shape up
1148 \size normal
1149 \emph off
1150 \bar no
1151 \noun off
1152 \color none
1153 で変換したのち、\SpecialChar TeX
1154 コードボックスを探して、手動で正しく編集してください。
1155 \end_layout
1156
1157 \begin_layout Standard
1158
1159 \family roman
1160 \series medium
1161 \shape up
1162 \size normal
1163 \emph off
1164 \bar no
1165 \noun off
1166 \color none
1167 \SpecialChar TeX
1168 コードボックスがなにかご存じなければ、次節をお読みください。
1169 \end_layout
1170
1171 \begin_layout Section
1172 \SpecialChar LaTeX
1173 コードを挿入する
1174 \begin_inset CommandInset label
1175 LatexCommand label
1176 name "sec:LaTeXコードを挿入する"
1177
1178 \end_inset
1179
1180
1181 \end_layout
1182
1183 \begin_layout Standard
1184
1185 \family roman
1186 \series medium
1187 \shape up
1188 \size normal
1189 \emph off
1190 \bar no
1191 \noun off
1192 \color none
1193 どの\SpecialChar LyX
1194 文書にもつねに\SpecialChar TeX
1195 コードを挿入することが可能であるというきわめて単純な理由によって、\SpecialChar LaTeX
1196 にできることは、つねに\SpecialChar LyX
1197 でも行うことができます。一方、\SpecialChar LyX
1198 は、すべての\SpecialChar LaTeX
1199 構成物を\SpecialChar LyX
1200 内に
1201 表示できるわけではなく、将来的にもそうならないでしょう。かりに\SpecialChar LaTeX
1202 コマンドを\SpecialChar LyX
1203 文書に挿入する必要が出てきた場合には、
1204 \begin_inset Flex Code
1205 status collapsed
1206
1207 \begin_layout Plain Layout
1208
1209 \family roman
1210 \series medium
1211 \shape up
1212 \size normal
1213 \emph off
1214 \bar no
1215 \noun off
1216 \color none
1217 \SpecialChar TeX
1218 コード
1219 \end_layout
1220
1221 \end_inset
1222
1223 ボックスを使用してください。これは、
1224 \family sans
1225 \series default
1226 \shape default
1227 \size default
1228 \emph default
1229 \bar default
1230 \noun default
1231 \color inherit
1232
1233 \begin_inset Flex MenuItem
1234 status collapsed
1235
1236 \begin_layout Plain Layout
1237
1238 \family sans
1239 挿入\SpecialChar menuseparator
1240 \SpecialChar TeX
1241 コード
1242 \end_layout
1243
1244 \end_inset
1245
1246
1247 \family roman
1248 \series medium
1249 \shape up
1250 \size normal
1251 \emph off
1252 \bar no
1253 \noun off
1254 \color none
1255 若しくは
1256 \family default
1257 \series default
1258 \shape default
1259 \size default
1260 \emph default
1261 \bar default
1262 \noun default
1263 \color inherit
1264
1265 \begin_inset Flex Ruby
1266 status collapsed
1267
1268 \begin_layout Plain Layout
1269
1270 \family roman
1271 \series medium
1272 \shape up
1273 \size normal
1274 \emph off
1275 \bar no
1276 \noun off
1277 \color none
1278 捷径
1279 \family default
1280 \series default
1281 \shape default
1282 \size default
1283 \emph default
1284 \bar default
1285 \noun default
1286 \color inherit
1287
1288 \begin_inset Argument post:1
1289 status collapsed
1290
1291 \begin_layout Plain Layout
1292 ショートカット
1293 \end_layout
1294
1295 \end_inset
1296
1297
1298 \end_layout
1299
1300 \end_inset
1301
1302
1303 \begin_inset Flex Ruby
1304 status collapsed
1305
1306 \begin_layout Plain Layout
1307
1308 \family roman
1309 \series medium
1310 \shape up
1311 \size normal
1312 \emph off
1313 \bar no
1314 \noun off
1315 \color none
1316
1317 \begin_inset Argument post:1
1318 status collapsed
1319
1320 \begin_layout Plain Layout
1321 キー
1322 \end_layout
1323
1324 \end_inset
1325
1326
1327 \end_layout
1328
1329 \end_inset
1330
1331
1332 \begin_inset Info
1333 type  "shortcut"
1334 arg   "ert-insert"
1335 \end_inset
1336
1337
1338 \family roman
1339 \series medium
1340 \shape up
1341 \size normal
1342 \emph off
1343 \bar no
1344 \noun off
1345 \color none
1346 で、文書中に挿入することができます。
1347 \end_layout
1348
1349 \begin_layout Standard
1350 以下は、\SpecialChar LaTeX
1351 コマンドを\SpecialChar LyX
1352 文書中に挿入する例です。コードは以下のようになっているとしましょう。
1353 \end_layout
1354
1355 \begin_layout LyX-Code
1356
1357 \backslash
1358 begin{tabular}{ll}
1359 \begin_inset Newline newline
1360 \end_inset
1361
1362
1363 \backslash
1364 begin{minipage}{5cm}
1365 \begin_inset Newline newline
1366 \end_inset
1367
1368 これは、ミニページ環境の例です。
1369 \begin_inset Newline newline
1370 \end_inset
1371
1372 これには、
1373 \begin_inset Newline newline
1374 \end_inset
1375
1376 (フロートでない)図表を
1377 \begin_inset Newline newline
1378 \end_inset
1379
1380 含め、ほとんど何でも
1381 \begin_inset Newline newline
1382 \end_inset
1383
1384 入れることができます。 
1385 \begin_inset Newline newline
1386 \end_inset
1387
1388
1389 \backslash
1390 end{minipage}
1391 \begin_inset Newline newline
1392 \end_inset
1393
1394 &
1395 \begin_inset Newline newline
1396 \end_inset
1397
1398
1399 \backslash
1400 begin{minipage}{5cm}
1401 \begin_inset Newline newline
1402 \end_inset
1403
1404
1405 \backslash
1406 begin{verbatim}
1407 \begin_inset Newline newline
1408 \end_inset
1409
1410
1411 \backslash
1412 begin{minipage}{5cm}
1413 \begin_inset Newline newline
1414 \end_inset
1415
1416 これは...
1417  
1418 \begin_inset Newline newline
1419 \end_inset
1420
1421
1422 \backslash
1423 end{minipage}
1424 \begin_inset Newline newline
1425 \end_inset
1426
1427
1428 \backslash
1429 end{verbatim}
1430 \begin_inset Newline newline
1431 \end_inset
1432
1433
1434 \backslash
1435 end{minipage}
1436 \begin_inset Newline newline
1437 \end_inset
1438
1439
1440 \backslash
1441 end{tabular}
1442 \end_layout
1443
1444 \begin_layout LyX-Code
1445
1446 \end_layout
1447
1448 \begin_layout Standard
1449 上記のテキストを含んだ
1450 \begin_inset Flex Code
1451 status collapsed
1452
1453 \begin_layout Plain Layout
1454 \SpecialChar TeX
1455 コード
1456 \end_layout
1457
1458 \end_inset
1459
1460 ボックスが、この段落の直後にあります。この取扱説明書を\SpecialChar LyX
1461 上でご覧になっていれば、\SpecialChar TeX
1462 コード差込枠のみが見えるはずです。印刷した取扱説明書をご覧であれば、実際の結果が見
1463 れるはずです。
1464 \end_layout
1465
1466 \begin_layout Standard
1467 \begin_inset VSpace bigskip
1468 \end_inset
1469
1470
1471 \begin_inset ERT
1472 status open
1473
1474 \begin_layout Plain Layout
1475
1476
1477 \backslash
1478 begin{tabular}{ll}
1479 \end_layout
1480
1481 \begin_layout Plain Layout
1482
1483
1484 \backslash
1485 begin{minipage}{5cm}
1486 \end_layout
1487
1488 \begin_layout Plain Layout
1489
1490 これは、ミニページ環境の例です。これには、(フロートでない)図表を含め、ほとんど何でも入れることができます。 
1491 \backslash
1492 end{minipage}
1493 \end_layout
1494
1495 \begin_layout Plain Layout
1496
1497 &
1498 \end_layout
1499
1500 \begin_layout Plain Layout
1501
1502
1503 \backslash
1504 begin{minipage}{5cm}
1505 \end_layout
1506
1507 \begin_layout Plain Layout
1508
1509
1510 \backslash
1511 begin{verbatim}
1512 \end_layout
1513
1514 \begin_layout Plain Layout
1515
1516
1517 \backslash
1518 begin{minipage}{5cm}
1519 \end_layout
1520
1521 \begin_layout Plain Layout
1522
1523 これは...
1524  
1525 \backslash
1526 end{minipage}
1527 \end_layout
1528
1529 \begin_layout Plain Layout
1530
1531
1532 \backslash
1533 end{verbatim}
1534 \end_layout
1535
1536 \begin_layout Plain Layout
1537
1538
1539 \backslash
1540 end{minipage}
1541 \end_layout
1542
1543 \begin_layout Plain Layout
1544
1545
1546 \backslash
1547 end{tabular}
1548 \end_layout
1549
1550 \end_inset
1551
1552
1553 \begin_inset VSpace bigskip
1554 \end_inset
1555
1556
1557 \end_layout
1558
1559 \begin_layout Standard
1560
1561 \family roman
1562 \series medium
1563 \shape up
1564 \size normal
1565 \emph off
1566 \bar no
1567 \noun off
1568 \color none
1569 \SpecialChar TeX
1570 コードを使用する方法に加えて、複雑な\SpecialChar LaTeX
1571 コードを含む部分を別ファイルとして作成しておき、そのファイルをインクルードするのに
1572 \begin_inset Flex MenuItem
1573 status collapsed
1574
1575 \begin_layout Plain Layout
1576
1577 \family roman
1578 \series medium
1579 \shape up
1580 \size normal
1581 \emph off
1582 \bar no
1583 \noun off
1584 \color none
1585 挿入\SpecialChar menuseparator
1586 ファイル\SpecialChar menuseparator
1587 子文書
1588 \end_layout
1589
1590 \end_inset
1591
1592 を使用する方法もあります(取り込みの型として
1593 \begin_inset Flex Code
1594 status collapsed
1595
1596 \begin_layout Plain Layout
1597
1598 \family roman
1599 \series medium
1600 \shape up
1601 \size normal
1602 \emph off
1603 \bar no
1604 \noun off
1605 \color none
1606 Input
1607 \end_layout
1608
1609 \end_inset
1610
1611 を選択しなくてはなりません)。この方法をとる場合には、.texファイルが正しく動作することが
1612 \family default
1613 \series default
1614 \shape default
1615 \size default
1616 \emph on
1617 \bar default
1618 \noun default
1619 \color inherit
1620 確認できている
1621 \family roman
1622 \series medium
1623 \shape up
1624 \size normal
1625 \emph off
1626 \bar no
1627 \noun off
1628 \color none
1629 場合のみに限った方がよいでしょう。さもないと、\SpecialChar LaTeX
1630 エラーを追跡するたいへんな作業を行わなくてはならなくなります。
1631 \end_layout
1632
1633 \begin_layout Standard
1634
1635 \family roman
1636 \series medium
1637 \shape up
1638 \size normal
1639 \emph off
1640 \bar no
1641 \noun off
1642 \color none
1643 最後に、いくつか強調しておくべきことがあります。
1644 \end_layout
1645
1646 \begin_layout Itemize
1647
1648 \family roman
1649 \series medium
1650 \shape up
1651 \size normal
1652 \emph off
1653 \bar no
1654 \noun off
1655 \color none
1656 \SpecialChar LyX
1657 は、あなたの\SpecialChar LaTeX
1658 コードが正しいかどうかを
1659 \family default
1660 \series default
1661 \shape default
1662 \size default
1663 \emph on
1664 \bar default
1665 \noun default
1666 \color inherit
1667 チェックしません
1668 \family roman
1669 \series medium
1670 \shape up
1671 \size normal
1672 \emph off
1673 \bar no
1674 \noun off
1675 \color none
1676
1677 \end_layout
1678
1679 \begin_layout Itemize
1680
1681 \family roman
1682 \series medium
1683 \shape up
1684 \size normal
1685 \emph off
1686 \bar no
1687 \noun off
1688 \color none
1689 車輪の再発明をしないようにご注意ください。
1690 \end_layout
1691
1692 \begin_layout Standard
1693
1694 \family roman
1695 \series medium
1696 \shape up
1697 \size normal
1698 \emph off
1699 \bar no
1700 \noun off
1701 \color none
1702 二番目の点に関して、\SpecialChar LyX
1703 はひじょうにたくさんの機能を装備しており、その数は増えつづけています。ご自身で\SpecialChar LaTeX
1704 コードを書かなくてはならないと思い込む前に、LyXがこれこれの
1705 機能をもっていないことを、取扱説明書で確実に確かめてください。さらに世の中には、封筒のラベルから美しい複数ページにわたる表を作るものまで、ありとあらゆることを行
1706 う膨大な数の\SpecialChar LaTeX
1707 パッケージが存在します。
1708 \family default
1709 \series default
1710 \shape default
1711 \size default
1712 \emph default
1713 \bar default
1714 \noun default
1715 \color inherit
1716 詳細については、
1717 \begin_inset CommandInset href
1718 LatexCommand href
1719 name "CTAN"
1720 target "http://www.ctan.org/"
1721
1722 \end_inset
1723
1724
1725 \family roman
1726 \series medium
1727 \shape up
1728 \size normal
1729 \emph off
1730 \bar no
1731 \noun off
1732 \color none
1733 と第
1734 \begin_inset CommandInset ref
1735 LatexCommand ref
1736 reference "chap:Special-features"
1737
1738 \end_inset
1739
1740 節をご覧ください。
1741 \end_layout
1742
1743 \begin_layout Standard
1744
1745 \family roman
1746 \series medium
1747 \shape up
1748 \size normal
1749 \emph off
1750 \bar no
1751 \noun off
1752 \color none
1753 もし、文書中で例外的に手の込んだことをなさりたければ、かならず良い\SpecialChar LaTeX
1754 関連書籍を参考とするようにしてください。『
1755 \family default
1756 \series default
1757 \shape default
1758 \size default
1759 \emph on
1760 \bar default
1761 \noun default
1762 \color inherit
1763 ユーザーの手引き
1764 \family roman
1765 \series medium
1766 \shape up
1767 \size normal
1768 \emph off
1769 \bar no
1770 \noun off
1771 \color none
1772 』の書誌情報に多くの\SpecialChar LaTeX
1773 関連書籍が引用されています。
1774 \end_layout
1775
1776 \begin_layout Section
1777 \SpecialChar LyX
1778 と\SpecialChar LaTeX
1779 プリアンブル
1780 \end_layout
1781
1782 \begin_layout Subsection
1783 \SpecialChar LaTeX
1784 プリアンブルについて
1785 \end_layout
1786
1787 \begin_layout Standard
1788
1789 \family roman
1790 \series medium
1791 \shape up
1792 \size normal
1793 \emph off
1794 \bar no
1795 \noun off
1796 \color none
1797 すでに\SpecialChar LaTeX
1798 についてご存知であれば、ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう。もしご存じなければ、以下の説明で大まかな理解は得られるは
1799 ずです。詳しくは\SpecialChar LaTeX
1800 関連書籍をご参照ください。いずれにしても、以下で\SpecialChar LyX
1801 文書の\SpecialChar LaTeX
1802 プリアンブルで何ができるか、または何をする必要がないか説明をしますので、以下の各要点はお読
1803 みになった方が良いでしょう。
1804 \end_layout
1805
1806 \begin_layout Standard
1807
1808 \family roman
1809 \series medium
1810 \shape up
1811 \size normal
1812 \emph off
1813 \bar no
1814 \noun off
1815 \color none
1816 \SpecialChar LaTeX
1817 プリアンブルは、\SpecialChar LaTeX
1818 文書のいちばん始め、本文の
1819 \family default
1820 \series default
1821 \shape default
1822 \size default
1823 \emph on
1824 \bar default
1825 \noun default
1826 \color inherit
1827
1828 \family roman
1829 \series medium
1830 \shape up
1831 \size normal
1832 \emph off
1833 \bar no
1834 \noun off
1835 \color none
1836 の部分に来ます。ここでは以下のことを行います。
1837 \end_layout
1838
1839 \begin_layout Itemize
1840
1841 \family roman
1842 \series medium
1843 \shape up
1844 \size normal
1845 \emph off
1846 \bar no
1847 \noun off
1848 \color none
1849 文書クラス(ドキュメントクラス)の宣言。
1850 \begin_inset Newline newline
1851 \end_inset
1852
1853 これは\SpecialChar LyX
1854 がすでに行ってくれています。もしあなたが熟達した\SpecialChar LaTeX
1855 使いであり、自作の文書クラスを使いたい場合には、取扱説明書『
1856 \family default
1857 \series default
1858 \shape default
1859 \size default
1860 \emph on
1861 \bar default
1862 \noun default
1863 \color inherit
1864 カスタマイズ篇
1865 \family roman
1866 \series medium
1867 \shape up
1868 \size normal
1869 \emph off
1870 \bar no
1871 \noun off
1872 \color none
1873 』をご覧になれば、\SpecialChar LyX
1874 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります。
1875 \end_layout
1876
1877 \begin_layout Itemize
1878
1879 \family roman
1880 \series medium
1881 \shape up
1882 \size normal
1883 \emph off
1884 \bar no
1885 \noun off
1886 \color none
1887 パッケージ使用の宣言。
1888 \begin_inset Newline newline
1889 \end_inset
1890
1891 \SpecialChar LaTeX
1892 パッケージは、パッケージがプリアンブルで宣言された場合のみ、文書中で利用可能となる、追加コマンド群を提供します。パッケージをインクルードすると、特別なコマンドが
1893 提供されることに加え、文書に変更を加えることができます。例えば
1894 \family typewriter
1895 \series default
1896 \shape default
1897 \size default
1898 \emph default
1899 \bar default
1900 \noun default
1901 \color inherit
1902
1903 \family roman
1904 \series medium
1905 \shape up
1906 \size normal
1907 \emph off
1908 \bar no
1909 \noun off
1910 \color none
1911
1912 \begin_inset Flex Code
1913 status collapsed
1914
1915 \begin_layout Plain Layout
1916
1917 \family typewriter
1918 indentfirst
1919 \end_layout
1920
1921 \end_inset
1922
1923 パッケージは、すべての段落の最初の行を字下げします。他にも、ラベルや宛名書き、余白設定等の様々なパッケージがあります。
1924 \end_layout
1925
1926 \begin_layout Itemize
1927
1928 \family roman
1929 \series medium
1930 \shape up
1931 \size normal
1932 \emph off
1933 \bar no
1934 \noun off
1935 \color none
1936 カウンタ・変数・長さ・幅の設定。
1937 \begin_inset Newline newline
1938 \end_inset
1939
1940 \SpecialChar LaTeX
1941 のカウンタと変数の中には、プリアンブルでグローバルに
1942 \family default
1943 \series default
1944 \shape default
1945 \size default
1946 \emph default
1947 \bar default
1948 \noun default
1949 \color inherit
1950 設定
1951 \emph on
1952 しないかぎり
1953 \family roman
1954 \series medium
1955 \shape up
1956 \size normal
1957 \emph off
1958 \bar no
1959 \noun off
1960 \color none
1961 、望んだ効果を持たないものがあります。(文書中で設定したり再設定したりすることのできる変数もあります。)余白は、プリアンブルで設定しなくてはならない変数の代表例
1962 です。他には、箇条書きに付けるラベル書式が挙げられます。じつは、この設定は文書中どこでもできるのですが、プリアンブルでいちどだけ設定するのが望ましい方法です。
1963 \end_layout
1964
1965 \begin_layout Itemize
1966
1967 \family roman
1968 \series medium
1969 \shape up
1970 \size normal
1971 \emph off
1972 \bar no
1973 \noun off
1974 \color none
1975 ユーザー定義コマンドの宣言(
1976 \begin_inset Flex Code
1977 status collapsed
1978
1979 \begin_layout Plain Layout
1980
1981 \family roman
1982 \series medium
1983 \shape up
1984 \size normal
1985 \emph off
1986 \bar no
1987 \noun off
1988 \color none
1989
1990 \backslash
1991 newcommand
1992 \end_layout
1993
1994 \end_inset
1995
1996 または
1997 \begin_inset Flex Code
1998 status collapsed
1999
2000 \begin_layout Plain Layout
2001
2002 \family roman
2003 \series medium
2004 \shape up
2005 \size normal
2006 \emph off
2007 \bar no
2008 \noun off
2009 \color none
2010
2011 \backslash
2012 renewcommand
2013 \end_layout
2014
2015 \end_inset
2016
2017 を使用)。
2018 \begin_inset Newline newline
2019 \end_inset
2020
2021 ユーザー定義コマンドは、文書中で頻出する\SpecialChar LaTeX
2022 コマンドの短縮形です。このようなコマンドを宣言するには、プリアンブルが適した場所ですが、どこで宣言することも
2023 \family default
2024 \series default
2025 \shape default
2026 \size default
2027 \emph on
2028 \bar default
2029 \noun default
2030 \color inherit
2031 可能
2032 \family roman
2033 \series medium
2034 \shape up
2035 \size normal
2036 \emph off
2037 \bar no
2038 \noun off
2039 \color none
2040 です(もちろんコマンドが初めて使用される場所よりも前です)。あまりないことではありますが、お使いの文書中に生の\SpecialChar LaTeX
2041 コードがあふれている場合には便利でしょう。
2042 \end_layout
2043
2044 \begin_layout Standard
2045
2046 \family roman
2047 \series medium
2048 \shape up
2049 \size normal
2050 \emph off
2051 \bar no
2052 \noun off
2053 \color none
2054 \SpecialChar LyX
2055 は、その生成する
2056 \begin_inset Flex Code
2057 status collapsed
2058
2059 \begin_layout Plain Layout
2060
2061 \family roman
2062 \series medium
2063 \shape up
2064 \size normal
2065 \emph off
2066 \bar no
2067 \noun off
2068 \color none
2069 .tex
2070 \end_layout
2071
2072 \end_inset
2073
2074 ファイルのプリアンブルに、それ自身の定義を追加します。これによって、\SpecialChar LyX
2075 の生成する\SpecialChar LaTeX
2076 ファイルの可搬性を高めています。
2077 \end_layout
2078
2079 \begin_layout Subsection
2080 プリアンブルの変更
2081 \end_layout
2082
2083 \begin_layout Standard
2084
2085 \family roman
2086 \series medium
2087 \shape up
2088 \size normal
2089 \emph off
2090 \bar no
2091 \noun off
2092 \color none
2093 \SpecialChar LyX
2094 が\SpecialChar LaTeX
2095 ファイルのプリアンブルに追加するコマンドは、つねに同じです。これは、\SpecialChar LyX
2096 自体にパッチを当てないかぎり変更できないようになっています。しかしながら、
2097 \begin_inset Flex MenuItem
2098 status collapsed
2099
2100 \begin_layout Plain Layout
2101
2102 \family roman
2103 \series medium
2104 \shape up
2105 \size normal
2106 \emph off
2107 \bar no
2108 \noun off
2109 \color none
2110 文書\SpecialChar menuseparator
2111 設定
2112 \end_layout
2113
2114 \end_inset
2115
2116 ダイアログの
2117 \begin_inset Flex MenuItem
2118 status collapsed
2119
2120 \begin_layout Plain Layout
2121
2122 \family roman
2123 \series medium
2124 \shape up
2125 \size normal
2126 \emph off
2127 \bar no
2128 \noun off
2129 \color none
2130 \SpecialChar LaTeX
2131 プリアンブル
2132 \end_layout
2133
2134 \end_inset
2135
2136 の項から、プリアンブルに追加をすることはできます。\SpecialChar LyX
2137 は、
2138 \family sans
2139 \series default
2140 \shape default
2141 \size default
2142 \emph default
2143 \bar default
2144 \noun default
2145 \color inherit
2146
2147 \begin_inset Flex MenuItem
2148 status collapsed
2149
2150 \begin_layout Plain Layout
2151
2152 \family sans
2153 プリアンブル
2154 \end_layout
2155
2156 \end_inset
2157
2158
2159 \family roman
2160 \series medium
2161 \shape up
2162 \size normal
2163 \emph off
2164 \bar no
2165 \noun off
2166 \color none
2167 ダイアログ内のすべてのものを、\SpecialChar LyX
2168 埋込みのプリアンブルに付け加えます。ご自身の宣言をプリアンブルに追加する前に、あなたがしようとしていることを\SpecialChar LyX
2169 がすでにサポートしてい
2170 ないかどうか確認してください(車輪の再発明をしないように、とはすでに申しあげたことです)。
2171 \family default
2172 \series default
2173 \shape default
2174 \size default
2175 \emph default
2176 \bar default
2177 \noun default
2178 \color inherit
2179 また、
2180 \emph on
2181 プリアンブルコードが正しいことを確認してください。
2182 \emph default
2183 \SpecialChar LyX
2184 は、プリアンブルをチェックしません。
2185 \family roman
2186 \series medium
2187 \shape up
2188 \size normal
2189 \emph off
2190 \bar no
2191 \noun off
2192 \color none
2193 もしエラーがあれば、「
2194 \begin_inset Flex Code
2195 status collapsed
2196
2197 \begin_layout Plain Layout
2198
2199 \family roman
2200 \series medium
2201 \shape up
2202 \size normal
2203 \emph off
2204 \bar no
2205 \noun off
2206 \color none
2207 Missing 
2208 \backslash
2209 begin{document}
2210 \end_layout
2211
2212 \end_inset
2213
2214 」といったエラーが出ることでしょう。このようなエラーが出たときは、プリアンブルを再確認してください。
2215 \end_layout
2216
2217 \begin_layout Subsection
2218
2219 \end_layout
2220
2221 \begin_layout Standard
2222
2223 \family roman
2224 \series medium
2225 \shape up
2226 \size normal
2227 \emph off
2228 \bar no
2229 \noun off
2230 \color none
2231 以下は、プリアンブルに追加できるものとその効果を示す例です。
2232 \end_layout
2233
2234 \begin_layout Subsubsection
2235 例1:オフセット
2236 \end_layout
2237
2238 \begin_layout Standard
2239
2240 \family roman
2241 \series medium
2242 \shape up
2243 \size normal
2244 \emph off
2245 \bar no
2246 \noun off
2247 \color none
2248 \SpecialChar LaTeX
2249 には
2250 \family default
2251 \series default
2252 \shape default
2253 \size default
2254 \emph default
2255 \bar default
2256 \noun default
2257 \color inherit
2258
2259 \family roman
2260 \series medium
2261 \shape up
2262 \size normal
2263 \emph off
2264 \bar no
2265 \noun off
2266 \color none
2267
2268 \begin_inset Flex Code
2269 status collapsed
2270
2271 \begin_layout Plain Layout
2272
2273 \family typewriter
2274
2275 \backslash
2276 hoffset
2277 \end_layout
2278
2279 \end_inset
2280
2281
2282 \family typewriter
2283 \series default
2284 \shape default
2285 \size default
2286 \emph default
2287 \bar default
2288 \noun default
2289 \color inherit
2290
2291 \begin_inset Flex Code
2292 status collapsed
2293
2294 \begin_layout Plain Layout
2295
2296 \family typewriter
2297
2298 \backslash
2299 voffset
2300 \end_layout
2301
2302 \end_inset
2303
2304
2305 \family roman
2306 \series medium
2307 \shape up
2308 \size normal
2309 \emph off
2310 \bar no
2311 \noun off
2312 \color none
2313 というページ位置を制御する2つの変数があります。その機能は名前から明らかなとおりです。これらの変数は、ラベルを印刷するときなどに便利です。往々にして、印刷用紙の
2314 寸法とそのうち実際に印字可能な範囲は同じではありません。ここに
2315 \begin_inset Flex Code
2316 status collapsed
2317
2318 \begin_layout Plain Layout
2319
2320 \family typewriter
2321
2322 \backslash
2323 hoffset
2324 \end_layout
2325
2326 \end_inset
2327
2328
2329 \family typewriter
2330 \series default
2331 \shape default
2332 \size default
2333 \emph default
2334 \bar default
2335 \noun default
2336 \color inherit
2337
2338 \begin_inset Flex Code
2339 status collapsed
2340
2341 \begin_layout Plain Layout
2342
2343 \family typewriter
2344
2345 \backslash
2346 voffset
2347 \end_layout
2348
2349 \end_inset
2350
2351
2352 \family default
2353 が役立つわけです。
2354 \end_layout
2355
2356 \begin_layout Standard
2357
2358 \family roman
2359 \series medium
2360 \shape up
2361 \size normal
2362 \emph off
2363 \bar no
2364 \noun off
2365 \color none
2366 \begin_inset Flex Code
2367 status collapsed
2368
2369 \begin_layout Plain Layout
2370
2371 \family typewriter
2372
2373 \backslash
2374 hoffset
2375 \end_layout
2376
2377 \end_inset
2378
2379
2380 \family typewriter
2381 \series default
2382 \shape default
2383 \size default
2384 \emph default
2385 \bar default
2386 \noun default
2387 \color inherit
2388
2389 \begin_inset Flex Code
2390 status collapsed
2391
2392 \begin_layout Plain Layout
2393
2394 \family typewriter
2395
2396 \backslash
2397 voffset
2398 \end_layout
2399
2400 \end_inset
2401
2402
2403 \family roman
2404 \series medium
2405 \shape up
2406 \size normal
2407 \emph off
2408 \bar no
2409 \noun off
2410 \color none
2411 の既定値はともに0ポイント、つまりページをシフトしません。残念ながら、DVIドライバによってはつねにページをシフトすることがあるようです。我々には、どうしてその
2412 ようなことをするのか、そしてシスアドがどうしてそれを修正しないのか理解できませんが、もし個人的に管理できないシステムで\SpecialChar LyX
2413 を使用していて、シスアドがお馬鹿さんである
2414 場合には、
2415 \begin_inset Flex Code
2416 status collapsed
2417
2418 \begin_layout Plain Layout
2419
2420 \family typewriter
2421
2422 \backslash
2423 hoffset
2424 \end_layout
2425
2426 \end_inset
2427
2428
2429 \family typewriter
2430 \series default
2431 \shape default
2432 \size default
2433 \emph default
2434 \bar default
2435 \noun default
2436 \color inherit
2437
2438 \begin_inset Flex Code
2439 status collapsed
2440
2441 \begin_layout Plain Layout
2442
2443 \family typewriter
2444
2445 \backslash
2446 voffset
2447 \end_layout
2448
2449 \end_inset
2450
2451
2452 \family roman
2453 \series medium
2454 \shape up
2455 \size normal
2456 \emph off
2457 \bar no
2458 \noun off
2459 \color none
2460 が役に立ちます。かりに、上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう。その場合は、以下をプリアンブルに追加するとよいでしょう。
2461 \end_layout
2462
2463 \begin_layout LyX-Code
2464
2465 \backslash
2466 setlength{
2467 \backslash
2468 hoffset}{-0.5 in}
2469 \end_layout
2470
2471 \begin_layout LyX-Code
2472
2473 \backslash
2474 setlength{
2475 \backslash
2476 voffset}{-0.5 in}
2477 \end_layout
2478
2479 \begin_layout Standard
2480
2481 \family roman
2482 \series medium
2483 \shape up
2484 \size normal
2485 \emph off
2486 \bar no
2487 \noun off
2488 \color none
2489 これで余白が修正されます。
2490 \end_layout
2491
2492 \begin_layout Subsubsection
2493 例2:ラベル
2494 \end_layout
2495
2496 \begin_layout Standard
2497
2498 \family roman
2499 \series medium
2500 \shape up
2501 \size normal
2502 \emph off
2503 \bar no
2504 \noun off
2505 \color none
2506 いま、たくさんの宛名ラベルを印刷をしたいものとしましょう。ラベルシートを印刷するために便利な
2507 \begin_inset Flex Code
2508 status collapsed
2509
2510 \begin_layout Plain Layout
2511
2512 \family typewriter
2513 labels.sty
2514 \end_layout
2515
2516 \end_inset
2517
2518 という\SpecialChar LaTeX
2519 パッケージが、お近くのCTANアーカイブで入手可能です。お使いのシステムには、既定ではこのパッケージは導入されていないかもしれません。ご自身でお確かめくだ
2520 さい。また、このパッケージの取扱説明書を読まれたいかもしれませんが、それもご自身にお任せします。これは使用例ですので、このパッケージをどう使うかの例だけお見せす
2521 ることにします。
2522 \end_layout
2523
2524 \begin_layout Standard
2525
2526 \family roman
2527 \series medium
2528 \shape up
2529 \size normal
2530 \emph off
2531 \bar no
2532 \noun off
2533 \color none
2534 まず、
2535 \begin_inset Flex Code
2536 status collapsed
2537
2538 \begin_layout Plain Layout
2539
2540 \family sans
2541 article
2542 \end_layout
2543
2544 \end_inset
2545
2546 文書クラスを使用していることをご確認ください。次に、以下のような設定をプリアンブルに追加しなければなりません。
2547 \end_layout
2548
2549 \begin_layout LyX-Code
2550
2551 \backslash
2552 usepackage{labels}
2553 \end_layout
2554
2555 \begin_layout LyX-Code
2556
2557 \backslash
2558 LabelCols=3
2559 \end_layout
2560
2561 \begin_layout LyX-Code
2562
2563 \backslash
2564 LabelRows=7
2565 \end_layout
2566
2567 \begin_layout LyX-Code
2568
2569 \backslash
2570 LeftBorder=8mm
2571 \end_layout
2572
2573 \begin_layout LyX-Code
2574
2575 \backslash
2576 RightBorder=8mm
2577 \end_layout
2578
2579 \begin_layout LyX-Code
2580
2581 \backslash
2582 TopBorder=9mm
2583 \end_layout
2584
2585 \begin_layout LyX-Code
2586
2587 \backslash
2588 BottomBorder=2mm
2589 \end_layout
2590
2591 \begin_layout Standard
2592
2593 \family roman
2594 \series medium
2595 \shape up
2596 \size normal
2597 \emph off
2598 \bar no
2599 \noun off
2600 \color none
2601 これは
2602 \family default
2603 \series default
2604 \shape default
2605 \size default
2606 \emph default
2607 \bar default
2608 \noun default
2609 \color inherit
2610 Avery®ラベルシートのストック5360
2611 \family roman
2612 \series medium
2613 \shape up
2614 \size normal
2615 \emph off
2616 \bar no
2617 \noun off
2618 \color none
2619 番を使用する場合の設定です。これで、各宛名を
2620 \begin_inset Flex Code
2621 status collapsed
2622
2623 \begin_layout Plain Layout
2624
2625 \family typewriter
2626
2627 \backslash
2628 begin{labels}
2629 \end_layout
2630
2631 \end_inset
2632
2633
2634 \family typewriter
2635 \series default
2636 \shape default
2637 \size default
2638 \emph default
2639 \bar default
2640 \noun default
2641 \color inherit
2642
2643 \begin_inset Flex Code
2644 status collapsed
2645
2646 \begin_layout Plain Layout
2647
2648 \family typewriter
2649
2650 \backslash
2651 end{labels}
2652 \end_layout
2653
2654 \end_inset
2655
2656
2657 \family roman
2658 \series medium
2659 \shape up
2660 \size normal
2661 \emph off
2662 \bar no
2663 \noun off
2664 \color none
2665 で囲めば、宛名ラベルの印刷をすることができます。本機能およびその他の機能に関しては、
2666 \begin_inset Flex Code
2667 status collapsed
2668
2669 \begin_layout Plain Layout
2670
2671 \family typewriter
2672 labels.sty
2673 \end_layout
2674
2675 \end_inset
2676
2677 の取扱説明書に説明されています。
2678 \end_layout
2679
2680 \begin_layout Standard
2681
2682 \family roman
2683 \series medium
2684 \shape up
2685 \size normal
2686 \emph off
2687 \bar no
2688 \noun off
2689 \color none
2690 そのうち誰かが、このパッケージを直接サポートする\SpecialChar LyX
2691 レイアウトファイルを作ってくれるかもしれません。その誰かはあなたかもしれません。
2692 \end_layout
2693
2694 \begin_layout Subsubsection
2695 例3: 段落の字下げ
2696 \end_layout
2697
2698 \begin_layout Standard
2699
2700 \family roman
2701 \series medium
2702 \shape up
2703 \size normal
2704 \emph off
2705 \bar no
2706 \noun off
2707 \color none
2708 アメリカ人は
2709 \family default
2710 \series default
2711 \shape default
2712 \size default
2713 \emph default
2714 \bar default
2715 \noun default
2716 \color inherit
2717
2718 \emph on
2719 すべての
2720 \family roman
2721 \series medium
2722 \shape up
2723 \size normal
2724 \emph off
2725 \bar no
2726 \noun off
2727 \color none
2728 段落の最初の行を字下げするように教育されています。そのために彼らの他の変な習慣と同じく、いつものようにすべての段落の最初の行を下げるまで、アメリカ人はごちゃごち
2729 ゃと文句を言いつづけるのです
2730 \family default
2731 \series default
2732 \shape default
2733 \size default
2734 \emph default
2735 \bar default
2736 \noun default
2737 \color inherit
2738 。(これはユーモアです。(ほんと?)
2739 \emph on
2740 ユーモアですってば
2741 \emph default
2742 。)
2743 \end_layout
2744
2745 \begin_layout Standard
2746
2747 \family roman
2748 \series medium
2749 \shape up
2750 \size normal
2751 \emph off
2752 \bar no
2753 \noun off
2754 \color none
2755 もちろん、これは標準的な組版ルールではありません。書籍では、典型的には、他の段落のあとにくる段落
2756 \family default
2757 \series default
2758 \shape default
2759 \size default
2760 \emph on
2761 \bar default
2762 \noun default
2763 \color inherit
2764 のみ
2765 \family roman
2766 \series medium
2767 \shape up
2768 \size normal
2769 \emph off
2770 \bar no
2771 \noun off
2772 \color none
2773 字下げを行ないます。一行めを字下げをするそもそもの目的は、隣接する段落から区別するためです。したがって、図のあとや節の最初の段落など、先行する段落がない場合には
2774 、字下げをする必要はないのです。
2775 \end_layout
2776
2777 \begin_layout Standard
2778
2779 \family roman
2780 \series medium
2781 \shape up
2782 \size normal
2783 \emph off
2784 \bar no
2785 \noun off
2786 \color none
2787 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!)、そのような小難しいことはかまわずに、いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2788 ルに次の行を加えて下さい。
2789 \end_layout
2790
2791 \begin_layout LyX-Code
2792
2793 \backslash
2794 usepackage{indentfirst}
2795 \end_layout
2796
2797 \begin_layout Standard
2798
2799 \family roman
2800 \series medium
2801 \shape up
2802 \size normal
2803 \emph off
2804 \bar no
2805 \noun off
2806 \color none
2807 もしお使いの\SpecialChar TeX
2808 頒布版が脳死状態でなければ、このパッケージが入っているはずなので、建国の父たちが意図したように、すべての段落が字下げされます。
2809 \end_layout
2810
2811 \begin_layout Subsubsection
2812 例4:この文書
2813 \end_layout
2814
2815 \begin_layout Standard
2816
2817 \family roman
2818 \series medium
2819 \shape up
2820 \size normal
2821 \emph off
2822 \bar no
2823 \noun off
2824 \color none
2825 この文書のプリアンブルを見てみると、どのような高度な設定ができるか、おおまかな理解が得られるでしょう。また第
2826 \family default
2827 \series default
2828 \shape default
2829 \size default
2830 \emph default
2831 \bar default
2832 \noun default
2833 \color inherit
2834
2835 \begin_inset CommandInset ref
2836 LatexCommand ref
2837 reference "chap:Special-features"
2838
2839 \end_inset
2840
2841
2842 \family roman
2843 \series medium
2844 \shape up
2845 \size normal
2846 \emph off
2847 \bar no
2848 \noun off
2849 \color none
2850 章には、他の例や、\SpecialChar LaTeX
2851 の各種の「汚い技」があります。
2852 \end_layout
2853
2854 \begin_layout Section
2855 \SpecialChar LyX
2856 および\SpecialChar LaTeX
2857 のエラー
2858 \end_layout
2859
2860 \begin_layout Standard
2861
2862 \family roman
2863 \series medium
2864 \shape up
2865 \size normal
2866 \emph off
2867 \bar no
2868 \noun off
2869 \color none
2870 \SpecialChar LyX
2871 が\SpecialChar LaTeX
2872 を呼び出す際、\SpecialChar LyX
2873 は\SpecialChar LaTeX
2874 に、かりにエラーがあったとしても楽観的に無視して先に進むように指示します。その後\SpecialChar LyX
2875 は、\SpecialChar LaTeX
2876 の実行ログファイルを事後処理用に使います。ログファイルを分
2877 析したのち、\SpecialChar LyX
2878 はエラーを一覧表示するダイアログを表示します。エラーのうちどれかをクリックすると、\SpecialChar LyX
2879 ファイル中、そのエラーの発生した場所に表示を移動します
2880 \begin_inset Foot
2881 status collapsed
2882
2883 \begin_layout Plain Layout
2884
2885 \family roman
2886 \series medium
2887 \shape up
2888 \size normal
2889 \emph off
2890 \bar no
2891 \noun off
2892 \color none
2893 正確にいうと、通常は、です。ログファイルの分析は難しい仕事ですので、\SpecialChar LyX
2894 はつねに正しい行に連れて行ってくれるとは限りません。ときには、\SpecialChar LaTeX
2895 がある行にエラーがあると報告し
2896 たとしても、実際のエラーはそれよりも前であることもあります。これは、プログラムで閉じ括弧を忘れたときに似ていなくもありません。エラーは表示されますが、実際にエラ
2897 ーのある場所よりも後ろでエラーが報告されるのです。
2898 \end_layout
2899
2900 \end_inset
2901
2902
2903 \family default
2904 \series default
2905 \shape default
2906 \size default
2907 \emph default
2908 \bar default
2909 \noun default
2910 \color inherit
2911
2912 \end_layout
2913
2914 \begin_layout Standard
2915
2916 \family roman
2917 \series medium
2918 \shape up
2919 \size normal
2920 \emph off
2921 \bar no
2922 \noun off
2923 \color none
2924 人によっては、ログファイルを直接ご覧になりたいかもしれません。これは、
2925 \begin_inset Flex MenuItem
2926 status collapsed
2927
2928 \begin_layout Plain Layout
2929
2930 \family roman
2931 \series medium
2932 \shape up
2933 \size normal
2934 \emph off
2935 \bar no
2936 \noun off
2937 \color none
2938 文書\SpecialChar menuseparator
2939 \SpecialChar LaTeX
2940 ログ
2941 \end_layout
2942
2943 \end_inset
2944
2945 で見ることができます。エラーメッセージや警告には、よく見かけるものがいくつかありますので、それらをここに収録しておきます。ここにないエラーや警告に関しては、La\SpecialChar TeX
2946
2947 関連の良書を参照してください。
2948 \end_layout
2949
2950 \begin_layout Itemize
2951
2952 \family typewriter
2953 \begin_inset Flex Code
2954 status collapsed
2955
2956 \begin_layout Plain Layout
2957
2958 \family typewriter
2959 LaTe
2960 \begin_inset ERT
2961 status collapsed
2962
2963 \begin_layout Plain Layout
2964
2965 {}
2966 \end_layout
2967
2968 \end_inset
2969
2970 X Warning
2971 \end_layout
2972
2973 \end_inset
2974
2975
2976 \family roman
2977 \series medium
2978 \shape up
2979 \size normal
2980 \emph off
2981 \bar no
2982 \noun off
2983 \color none
2984
2985 \begin_inset Newline newline
2986 \end_inset
2987
2988 これで始まるメッセージは、\SpecialChar LaTeX
2989 コード自体を「デバッグ」するための警告メッセージです。相互参照や書誌情報を追加したり変更した場合に、もう一度\SpecialChar LaTeX
2990 を実行する必要があることを
2991 知らせるために、このようなメッセージが表示されます。このメッセージは、だいたいにおいて無視しても大丈夫です。
2992 \end_layout
2993
2994 \begin_layout Itemize
2995
2996 \family typewriter
2997 \begin_inset Flex Code
2998 status collapsed
2999
3000 \begin_layout Plain Layout
3001
3002 \family typewriter
3003 LaTe
3004 \begin_inset ERT
3005 status collapsed
3006
3007 \begin_layout Plain Layout
3008
3009 {}
3010 \end_layout
3011
3012 \end_inset
3013
3014 X Font Warning
3015 \end_layout
3016
3017 \end_inset
3018
3019
3020 \family roman
3021 \series medium
3022 \shape up
3023 \size normal
3024 \emph off
3025 \bar no
3026 \noun off
3027 \color none
3028
3029 \begin_inset Newline newline
3030 \end_inset
3031
3032 \SpecialChar LaTeX
3033 がフォントを見つけられなかったと言う警告メッセージです。多くの場合、このメッセージの後に、\SpecialChar LaTeX
3034 が使用した代替フォントに関する情報が続きます。これも無視して構いません
3035
3036 \end_layout
3037
3038 \begin_layout Itemize
3039
3040 \family roman
3041 \series medium
3042 \shape up
3043 \size normal
3044 \emph off
3045 \bar no
3046 \noun off
3047 \color none
3048 \begin_inset Flex Code
3049 status collapsed
3050
3051 \begin_layout Plain Layout
3052
3053 \family typewriter
3054 Overfull 
3055 \backslash
3056 hbox
3057 \end_layout
3058
3059 \end_inset
3060
3061
3062 \begin_inset Newline newline
3063 \end_inset
3064
3065 \SpecialChar LaTeX
3066 は、
3067 \family default
3068 \series default
3069 \shape default
3070 \size default
3071 \emph on
3072 \bar default
3073 \noun default
3074 \color inherit
3075 ほぼどんなときでも
3076 \family roman
3077 \series medium
3078 \shape up
3079 \size normal
3080 \emph off
3081 \bar no
3082 \noun off
3083 \color none
3084 この警告を吐き出します。これは、一行が長すぎて右余白にはみ出してしまったという警告ですが、ほとんどの場合、最終出力を見ても判別できないくらい(せいぜい1ポイント
3085 か2ポイント)です。あるいは1文字か2文字右余白に出ているくらいです。\SpecialChar LaTeX
3086 は、どんな文書を書いても、少なくとも一つはこのメッセージを出すようです。
3087 \begin_inset Newline newline
3088 \end_inset
3089
3090 このメッセージは無視しても大丈夫です。何か行が長すぎるような問題があれば、目で見ればわかります。出力を目で確認してください
3091 \begin_inset Foot
3092 status collapsed
3093
3094 \begin_layout Plain Layout
3095 あるいは、
3096 \begin_inset Flex MenuItem
3097 status collapsed
3098
3099 \begin_layout Plain Layout
3100 文書\SpecialChar menuseparator
3101 設定
3102 \end_layout
3103
3104 \end_inset
3105
3106 で「draft」オプションを指定する方法もあります。こうすると、\SpecialChar LaTeX
3107 は、overfullの発生した行の余白に黒い四角を描画します。
3108 \end_layout
3109
3110 \end_inset
3111
3112
3113 \end_layout
3114
3115 \begin_layout Itemize
3116
3117 \family typewriter
3118 \begin_inset Flex Code
3119 status collapsed
3120
3121 \begin_layout Plain Layout
3122
3123 \family typewriter
3124 Underfull 
3125 \backslash
3126 hbox
3127 \end_layout
3128
3129 \end_inset
3130
3131
3132 \begin_inset Newline newline
3133 \end_inset
3134
3135
3136 \family roman
3137 \series medium
3138 \shape up
3139 \size normal
3140 \emph off
3141 \bar no
3142 \noun off
3143 \color none
3144 これは上の警告と違ってあまり出てきません。なぜだかは分かりませんが、\SpecialChar LaTeX
3145 は1行を短めにする印字するよりは、長めにする方が好きなようです。
3146 \end_layout
3147
3148 \begin_layout Itemize
3149 \begin_inset Flex Code
3150 status collapsed
3151
3152 \begin_layout Plain Layout
3153
3154 \family typewriter
3155 Overfull 
3156 \backslash
3157 vbox
3158 \end_layout
3159
3160 \end_inset
3161
3162
3163 \family typewriter
3164
3165 \begin_inset Flex Code
3166 status collapsed
3167
3168 \begin_layout Plain Layout
3169
3170 \family typewriter
3171 Underfull 
3172 \backslash
3173 vbox
3174 \end_layout
3175
3176 \end_inset
3177
3178
3179 \family default
3180
3181 \begin_inset Newline newline
3182 \end_inset
3183
3184
3185 \family roman
3186 \series medium
3187 \shape up
3188 \size normal
3189 \emph off
3190 \bar no
3191 \noun off
3192 \color none
3193 ページ区切りに問題があったという警告です。この場合も、出力を目で確認してください。何か問題があれば、見てすぐわかります。
3194 \end_layout
3195
3196 \begin_layout Itemize
3197
3198 \family typewriter
3199 \begin_inset Flex Code
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203
3204 \family typewriter
3205 LaTe
3206 \begin_inset ERT
3207 status collapsed
3208
3209 \begin_layout Plain Layout
3210
3211 {}
3212 \end_layout
3213
3214 \end_inset
3215
3216 X Error: File 
3217 \begin_inset Quotes els
3218 \end_inset
3219
3220 Xxxx
3221 \begin_inset Quotes ers
3222 \end_inset
3223
3224  not found
3225 \end_layout
3226
3227 \end_inset
3228
3229
3230 \family roman
3231 \series medium
3232 \shape up
3233 \size normal
3234 \emph off
3235 \bar no
3236 \noun off
3237 \color none
3238
3239 \begin_inset Newline newline
3240 \end_inset
3241
3242 ファイル「Xxxx」が、システムに導入されていません。これは通常、文書が必要としている\SpecialChar LaTeX
3243 パッケージに、導入済でないものがある場合に現れます。プリアンブルに変更を加
3244 えておらず、
3245 \begin_inset Flex Code
3246 status collapsed
3247
3248 \begin_layout Plain Layout
3249
3250 \family typewriter
3251
3252 \backslash
3253 usepackage{}
3254 \end_layout
3255
3256 \end_inset
3257
3258 コマンドも使用していないとすれば、\SpecialChar LyX
3259 が読み込もうしているパッケージに存在しないものがあるということです。
3260 \family default
3261 \series default
3262 \shape default
3263 \size default
3264 \emph default
3265 \bar default
3266 \noun default
3267 \color inherit
3268
3269 \begin_inset Flex MenuItem
3270 status collapsed
3271
3272 \begin_layout Plain Layout
3273 ヘルプ\SpecialChar menuseparator
3274 \SpecialChar LaTeX
3275 の設定
3276 \end_layout
3277
3278 \end_inset
3279
3280
3281 \family roman
3282 \series medium
3283 \shape up
3284 \size normal
3285 \emph off
3286 \bar no
3287 \noun off
3288 \color none
3289 を使用して、\SpecialChar LyX
3290 が認識しているパッケージの一覧を得てください。このファイルは、(
3291 \begin_inset Flex MenuItem
3292 status collapsed
3293
3294 \begin_layout Plain Layout
3295
3296 \family roman
3297 \series medium
3298 \shape up
3299 \size normal
3300 \emph off
3301 \bar no
3302 \noun off
3303 \color none
3304 ツール\SpecialChar menuseparator
3305 再設定
3306 \end_layout
3307
3308 \end_inset
3309
3310 を使用して)\SpecialChar LyX
3311 の再設定を行うたびに更新され、どのパッケージが検出されたか、それらのパッケージが何をするものかを表示します。
3312 \begin_inset Newline newline
3313 \end_inset
3314
3315
3316 \family sans
3317 \series default
3318 \shape default
3319 \size default
3320 \emph default
3321 \bar default
3322 \noun default
3323 \color inherit
3324
3325 \begin_inset Flex Code
3326 status collapsed
3327
3328 \begin_layout Plain Layout
3329
3330 \family sans
3331
3332 \backslash
3333 usepackage{}
3334 \end_layout
3335
3336 \end_inset
3337
3338
3339 \family roman
3340 \series medium
3341 \shape up
3342 \size normal
3343 \emph off
3344 \bar no
3345 \noun off
3346 \color none
3347 コマンドを使っていて、肝心のパッケージが導入されていない場合には、ご自身で導入する必要があります。
3348 \end_layout
3349
3350 \begin_layout Itemize
3351
3352 \family typewriter
3353 \begin_inset Flex Code
3354 status collapsed
3355
3356 \begin_layout Plain Layout
3357
3358 \family typewriter
3359 LaTe
3360 \begin_inset ERT
3361 status collapsed
3362
3363 \begin_layout Plain Layout
3364
3365 {}
3366 \end_layout
3367
3368 \end_inset
3369
3370 X Error: Unknown option
3371 \end_layout
3372
3373 \end_inset
3374
3375
3376 \family roman
3377 \series medium
3378 \shape up
3379 \size normal
3380 \emph off
3381 \bar no
3382 \noun off
3383 \color none
3384
3385 \begin_inset Newline newline
3386 \end_inset
3387
3388 このように始まるエラーメッセージは、パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです。パッケージの取扱説明書をご確認くだ
3389 さい。
3390 \end_layout
3391
3392 \begin_layout Itemize
3393
3394 \family typewriter
3395 \begin_inset Flex Code
3396 status collapsed
3397
3398 \begin_layout Plain Layout
3399
3400 \family typewriter
3401 Undefined control sequence
3402 \end_layout
3403
3404 \end_inset
3405
3406
3407 \family roman
3408 \series medium
3409 \shape up
3410 \size normal
3411 \emph off
3412 \bar no
3413 \noun off
3414 \color none
3415
3416 \begin_inset Newline newline
3417 \end_inset
3418
3419 お使いの文書に\SpecialChar LaTeX
3420 コードを挿入した際、打ち間違いをしてしまうと、このようなメッセージが表示されます。あるいは、パッケージを読み込ませるのを忘れたのかもしれません。い
3421 ずれにしても、このメッセージは、あなたが未定義のコマンドを使用したことを示しています。
3422 \end_layout
3423
3424 \begin_layout Standard
3425
3426 \family roman
3427 \series medium
3428 \shape up
3429 \size normal
3430 \emph off
3431 \bar no
3432 \noun off
3433 \color none
3434 これ以外にも、エラーメッセージや警告メッセージがあります。一般に、読んで意味がすぐにわかるものは、\SpecialChar LaTeX
3435 のメッセージです。何を言っているのかさっぱりわからないものもあ
3436 りますが、通常これらは、\SpecialChar TeX
3437 のメッセージであり、それが何を意味しているのか、どのように解読すればいいのか、
3438 \family default
3439 \series default
3440 \shape default
3441 \size default
3442 \emph on
3443 \bar default
3444 \noun default
3445 \color inherit
3446 まったく
3447 \family roman
3448 \series medium
3449 \shape up
3450 \size normal
3451 \emph off
3452 \bar no
3453 \noun off
3454 \color none
3455 手がかりがありません。誰もわからないのです。
3456 \end_layout
3457
3458 \begin_layout Standard
3459
3460 \family roman
3461 \series medium
3462 \shape up
3463 \size normal
3464 \emph off
3465 \bar no
3466 \noun off
3467 \color none
3468 エラーメッセージが表示された場合は、つねに以下のチェックリストにしたがった方がよいでしょう。
3469 \end_layout
3470
3471 \begin_layout Enumerate
3472
3473 \family roman
3474 \series medium
3475 \shape up
3476 \size normal
3477 \emph off
3478 \bar no
3479 \noun off
3480 \color none
3481 ご自分で挿入した\SpecialChar LaTeX
3482 コードに打ち間違いがないかどうか確かめる。
3483 \end_layout
3484
3485 \begin_layout Enumerate
3486
3487 \family roman
3488 \series medium
3489 \shape up
3490 \size normal
3491 \emph off
3492 \bar no
3493 \noun off
3494 \color none
3495 打ち間違いがなければ、コマンドを正しく使ったかどうか確かめる。
3496 \end_layout
3497
3498 \begin_layout Enumerate
3499
3500 \family roman
3501 \series medium
3502 \shape up
3503 \size normal
3504 \emph off
3505 \bar no
3506 \noun off
3507 \color none
3508 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3509 \begin_inset Flex Code
3510 status collapsed
3511
3512 \begin_layout Plain Layout
3513
3514 \family roman
3515 \series medium
3516 \shape up
3517 \size normal
3518 \emph off
3519 \bar no
3520 \noun off
3521 \color none
3522 Missing 
3523 \backslash
3524 begin{document}
3525 \end_layout
3526
3527 \end_inset
3528
3529 が表示されているならば—、プリアンブルにエラーがあることを意味します。プリアンブルのデバックを行ってください。
3530 \end_layout
3531
3532 \begin_layout Enumerate
3533
3534 \family roman
3535 \series medium
3536 \shape up
3537 \size normal
3538 \emph off
3539 \bar no
3540 \noun off
3541 \color none
3542 プリアンブルに何も追加せず、文書に\SpecialChar LaTeX
3543 コードをまったく挿入しなかった場合には、\SpecialChar LaTeX
3544 頒布版自体をまず疑ってください。導入されていないパッケージを探しだして、導入してくださ
3545 い。
3546 \end_layout
3547
3548 \begin_layout Enumerate
3549
3550 \family roman
3551 \series medium
3552 \shape up
3553 \size normal
3554 \emph off
3555 \bar no
3556 \noun off
3557 \color none
3558 導入されていないパッケージはなかったものとしましょう。\SpecialChar LyX
3559 を微調整するオプションを使用していますか。特に、手動で
3560 \begin_inset Flex Code
3561 status collapsed
3562
3563 \begin_layout Plain Layout
3564
3565 \family sans
3566 Protected
3567 \begin_inset space ~
3568 \end_inset
3569
3570 Blank
3571 \end_layout
3572
3573 \end_inset
3574
3575
3576 \begin_inset Flex Code
3577 status collapsed
3578
3579 \begin_layout Plain Layout
3580
3581 \family sans
3582 Linebreak
3583 \end_layout
3584
3585 \end_inset
3586
3587
3588 \family sans
3589 \series default
3590 \shape default
3591 \size default
3592 \emph default
3593 \bar default
3594 \noun default
3595 \color inherit
3596
3597 \begin_inset Flex Code
3598 status collapsed
3599
3600 \begin_layout Plain Layout
3601
3602 \family sans
3603 Pagebreak
3604 \end_layout
3605
3606 \end_inset
3607
3608
3609 \family roman
3610 \series medium
3611 \shape up
3612 \size normal
3613 \emph off
3614 \bar no
3615 \noun off
3616 \color none
3617 などをたくさん挿入するなど、微調整オプションを
3618 \family default
3619 \series default
3620 \shape default
3621 \size default
3622 \emph on
3623 \bar default
3624 \noun default
3625 \color inherit
3626 悪用
3627 \family roman
3628 \series medium
3629 \shape up
3630 \size normal
3631 \emph off
3632 \bar no
3633 \noun off
3634 \color none
3635 していませんか。適切な段落環境を使用する代わりに、これらを使用してその場をしのごうとしていませんか。
3636 \end_layout
3637
3638 \begin_layout Enumerate
3639
3640 \family roman
3641 \series medium
3642 \shape up
3643 \size normal
3644 \emph off
3645 \bar no
3646 \noun off
3647 \color none
3648 微調整オプションはまったく使用しておらず、規則に乗っ取って作業していたものとしましょう。何か曲芸のようなことをしようとはしていませんか。数式や表中で、たとえば表
3649 のセルに図を入れるなど、おかしなことをしようとしていませんか。
3650 \end_layout
3651
3652 \begin_layout Enumerate
3653 \SpecialChar LaTeX
3654 が改行位置を見つけられないほど長い一節がありませんか。既定では、改行するために単語間に空白をたくさん追加することを、\SpecialChar LaTeX
3655 はかなり嫌います。可能であれば、問題が生じな
3656 いように段落を修正するのが望ましいでしょう。
3657 \end_layout
3658
3659 \begin_layout Enumerate
3660
3661 \family roman
3662 \series medium
3663 \shape up
3664 \size normal
3665 \emph off
3666 \bar no
3667 \noun off
3668 \color none
3669 入れ子の階層を深くしすぎていませんか。\SpecialChar LyX
3670 は、(今のところ)環境の入れ子の階層が制限内にあるかチェックしません。かりに、環境を17段の入れ子にしたりしていたら、それ
3671 が原因です(\SpecialChar LaTeX
3672 の上限は5段です)。
3673 \end_layout
3674
3675 \begin_layout Enumerate
3676
3677 \family roman
3678 \series medium
3679 \shape up
3680 \size normal
3681 \emph off
3682 \bar no
3683 \noun off
3684 \color none
3685 エラーメッセージは発生しないけれども、出力がひどいものとしましょう。図表が幅が広すぎたり長すぎてページに収まらない場合には、
3686 \family default
3687 \series default
3688 \shape default
3689 \size default
3690 \bar default
3691 \color inherit
3692
3693 \begin_inset Separator parbreak
3694 \end_inset
3695
3696
3697 \end_layout
3698
3699 \begin_deeper
3700 \begin_layout Enumerate
3701
3702 \family roman
3703 \series medium
3704 \shape up
3705 \size normal
3706 \emph off
3707 \bar no
3708 \noun off
3709 \color none
3710 図がページに合うように大きさを変える、
3711 \end_layout
3712
3713 \begin_layout Enumerate
3714
3715 \family roman
3716 \series medium
3717 \shape up
3718 \size normal
3719 \emph off
3720 \bar no
3721 \noun off
3722 \color none
3723 表がページに合うように削る、
3724 \end_layout
3725
3726 \begin_layout Standard
3727
3728 \family roman
3729 \series medium
3730 \shape up
3731 \size normal
3732 \emph off
3733 \bar no
3734 \noun off
3735 \color none
3736 などの手段を採る必要があります。
3737 \end_layout
3738
3739 \end_deeper
3740 \begin_layout Enumerate
3741 他に出力におかしいところがあり、曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば、何がおかしいのか確定的なことは言えません。
3742 \end_layout
3743
3744 \begin_layout Standard
3745
3746 \family roman
3747 \series medium
3748 \shape up
3749 \size normal
3750 \emph off
3751 \bar no
3752 \noun off
3753 \color none
3754 これらすべてが役に立たないとすれば、
3755 \family default
3756 \series default
3757 \shape default
3758 \size default
3759 \emph on
3760 \bar default
3761 \noun default
3762 \color inherit
3763 ひょっとしたら
3764 \family roman
3765 \series medium
3766 \shape up
3767 \size normal
3768 \emph off
3769 \bar no
3770 \noun off
3771 \color none
3772 \SpecialChar LyX
3773 のバグを発見したのかもしれません‥‥。
3774 \end_layout
3775
3776 \begin_layout Chapter
3777 補完ツール
3778 \end_layout
3779
3780 \begin_layout Section
3781 Bib\SpecialChar TeX
3782 による書誌情報のカスタマイズ
3783 \end_layout
3784
3785 \begin_layout Standard
3786 Bib\SpecialChar TeX
3787 の基本的な使用法は、『
3788 \emph on
3789 ユーザーの手引き
3790 \emph default
3791 』の「
3792 \emph on
3793 文献データベース(Bib\SpecialChar TeX
3794 )
3795 \emph default
3796 」の節に説明があります。以下の各小節では、\SpecialChar LyX
3797 でサポートされている書誌情報の特別な機能について説明することとします。
3798 \end_layout
3799
3800 \begin_layout Subsection
3801 他の引用様式
3802 \end_layout
3803
3804 \begin_layout Standard
3805 標準のBib\SpecialChar TeX
3806 は、引用された著作を参照するのに、([12]のように)数字を使用します。しかし、多くの科学分野で、これとは異なる引用様式が用いられています。もっとも
3807 よく見られるのは、著者-出版年様式(例:Knuth 1984a)です。\SpecialChar LyX
3808 は、この様式を提供する2つのパッケージ
3809 \begin_inset Flex Code
3810 status collapsed
3811
3812 \begin_layout Plain Layout
3813 natbib
3814 \end_layout
3815
3816 \end_inset
3817
3818
3819 \begin_inset Flex Code
3820 status collapsed
3821
3822 \begin_layout Plain Layout
3823 jurabib
3824 \end_layout
3825
3826 \end_inset
3827
3828 をサポートしています。これらのパッケージには、それぞれ長所短所がありますが、ここでは詳細に立ち入る紙幅がありません。単純な著者-出版年様式(あるいは著者-番号)
3829 様式が欲しい場合や、無数にある
3830 \begin_inset Flex Code
3831 status collapsed
3832
3833 \begin_layout Plain Layout
3834 natbib
3835 \end_layout
3836
3837 \end_inset
3838
3839 用スタイルファイルのうちどれかを使用したい場合には、定評のある
3840 \begin_inset Flex Code
3841 status collapsed
3842
3843 \begin_layout Plain Layout
3844 natbib
3845 \end_layout
3846
3847 \end_inset
3848
3849 パッケージがおそらくよい選択でしょう。短縮タイトルによる参照や
3850 \emph on
3851 ibid.
3852 \emph default
3853 など、特別な機能が必要な場合には、
3854 \begin_inset Flex Code
3855 status collapsed
3856
3857 \begin_layout Plain Layout
3858 jurabib
3859 \end_layout
3860
3861 \end_inset
3862
3863 パッケージの利用を考えるとよいかもしれません。
3864 \end_layout
3865
3866 \begin_layout Standard
3867 \SpecialChar LyX
3868 での両パッケージの取扱い方は、ほぼ同じです。
3869 \begin_inset Flex MenuItem
3870 status collapsed
3871
3872 \begin_layout Plain Layout
3873 文書\SpecialChar menuseparator
3874 設定
3875 \end_layout
3876
3877 \end_inset
3878
3879 メニューを開き、
3880 \begin_inset Flex MenuItem
3881 status collapsed
3882
3883 \begin_layout Plain Layout
3884 書誌情報
3885 \end_layout
3886
3887 \end_inset
3888
3889 項目から
3890 \begin_inset Flex MenuItem
3891 status collapsed
3892
3893 \begin_layout Plain Layout
3894 Natbib
3895 \end_layout
3896
3897 \end_inset
3898
3899 オプションか
3900 \begin_inset Flex MenuItem
3901 status collapsed
3902
3903 \begin_layout Plain Layout
3904 Jurabib
3905 \end_layout
3906
3907 \end_inset
3908
3909 オプションを選択してください。これらのパッケージによって、引用ダイアログに機能が追加され、参照の様式が選択できるようになります(「Knuth 1984」、「Kn
3910 uth (1984)」、「Knuth, 1984」、「1984」など)。両パッケージは、専用にデザインされたスタイルファイルを必要とすることに注意してください。
3911 両者ともそれ自身のスタイルファイルを同梱していますが、他にもたくさんの追加スタイルファイルがありますし、
3912 \begin_inset Flex Code
3913 status collapsed
3914
3915 \begin_layout Plain Layout
3916 natbib
3917 \end_layout
3918
3919 \end_inset
3920
3921 に至っては、対話的なスタイルファイルビルダーさえ存在します
3922 \begin_inset Foot
3923 status collapsed
3924
3925 \begin_layout Plain Layout
3926 \begin_inset Flex URL
3927 status open
3928
3929 \begin_layout Plain Layout
3930
3931 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3932 \end_layout
3933
3934 \end_inset
3935
3936 をご参照ください。
3937 \end_layout
3938
3939 \end_inset
3940
3941
3942 \end_layout
3943
3944 \begin_layout Subsection
3945 節分けされた書誌情報
3946 \end_layout
3947
3948 \begin_layout Standard
3949 場合によっては、書誌情報をいくつかの節に分ける必要があることがあります。たとえば、あなたが歴史家であるとすれば、出典と学術文献を分ける機能は、おそらく「必需品」
3950 でさえあります。残念ながら、Bib\SpecialChar TeX
3951 自身ではこのようなことができません。しかし、適切な\SpecialChar LaTeX
3952 パッケージの助けを借りると、Bib\SpecialChar TeX
3953 をこのような必要性を満たすように拡張するこ
3954 とができます。
3955 \end_layout
3956
3957 \begin_layout Standard
3958 \SpecialChar LyX
3959 は、このようなパッケージの一つである
3960 \begin_inset Flex Code
3961 status collapsed
3962
3963 \begin_layout Plain Layout
3964 bibtopic
3965 \end_layout
3966
3967 \end_inset
3968
3969
3970 \begin_inset Foot
3971 status collapsed
3972
3973 \begin_layout Plain Layout
3974 \begin_inset Flex URL
3975 status open
3976
3977 \begin_layout Plain Layout
3978
3979 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3980 \end_layout
3981
3982 \end_inset
3983
3984 から入手可能です。
3985 \end_layout
3986
3987 \end_inset
3988
3989 をそのままでサポートします。このパッケージの長所は、(
3990 \begin_inset Flex Code
3991 status collapsed
3992
3993 \begin_layout Plain Layout
3994 multibib
3995 \end_layout
3996
3997 \end_inset
3998
3999 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです。そのかわりに、書誌情報の違う節には、その節向けの項目を収録した別の文献データ
4000 ベースを用意する必要があります。たとえば、書誌情報を「出典」の節と「学術文献」の節に分けたい場合には、それぞれの文献データベース、たとえば
4001 \begin_inset Flex Code
4002 status collapsed
4003
4004 \begin_layout Plain Layout
4005 souces.bib
4006 \end_layout
4007
4008 \end_inset
4009
4010
4011 \begin_inset Flex Code
4012 status collapsed
4013
4014 \begin_layout Plain Layout
4015 scientific.bib
4016 \end_layout
4017
4018 \end_inset
4019
4020 とを作成する必要があります。
4021 \end_layout
4022
4023 \begin_layout Standard
4024 \begin_inset Flex MenuItem
4025 status collapsed
4026
4027 \begin_layout Plain Layout
4028 文書\SpecialChar menuseparator
4029 設定
4030 \end_layout
4031
4032 \end_inset
4033
4034 を開いて
4035 \begin_inset Flex MenuItem
4036 status collapsed
4037
4038 \begin_layout Plain Layout
4039 書誌情報
4040 \end_layout
4041
4042 \end_inset
4043
4044 の下の
4045 \begin_inset Flex MenuItem
4046 status collapsed
4047
4048 \begin_layout Plain Layout
4049 節分けされた書誌情報
4050 \end_layout
4051
4052 \end_inset
4053
4054 をチェックしてください。すると、書誌情報の各節に一つずつ、複数の書誌情報を挿入することができます。上記の例では、Bib\SpecialChar TeX
4055 書誌情報
4056 \begin_inset Flex Code
4057 status collapsed
4058
4059 \begin_layout Plain Layout
4060 sources.bib
4061 \end_layout
4062
4063 \end_inset
4064
4065 と二つめの文献データベース
4066 \begin_inset Flex Code
4067 status collapsed
4068
4069 \begin_layout Plain Layout
4070 scientific.bib
4071 \end_layout
4072
4073 \end_inset
4074
4075 を挿入します。各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です。くわえて、書誌情報の節に、指定したデータベースの「引用されたすべての参照」を載せる
4076 (これが既定です)か、「引用されなかったすべての参照」を載せるか、あるいは「すべての参照」を載せるかを選択することができます。これは、もし書誌情報を「本文に引用
4077 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に、便利でありましょう。各節の見出しは、通常の節や小節として入れることができ
4078 ます。
4079 \begin_inset Flex Code
4080 status collapsed
4081
4082 \begin_layout Plain Layout
4083 bibtopic
4084 \end_layout
4085
4086 \end_inset
4087
4088 は、書誌情報用の見出しを取り除いてしまいますので、手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください)。
4089 \end_layout
4090
4091 \begin_layout Subsection
4092 複数の書誌情報
4093 \end_layout
4094
4095 \begin_layout Standard
4096 文書の節ごとあるいは章ごとの書誌情報など、複数の書誌情報はBib\SpecialChar TeX
4097 自身ではサポートされていません。しかしながら、もし若干の
4098 \begin_inset Flex Code
4099 status collapsed
4100
4101 \begin_layout Plain Layout
4102 \SpecialChar TeX
4103 コード
4104 \end_layout
4105
4106 \end_inset
4107
4108 (第
4109 \begin_inset CommandInset ref
4110 LatexCommand ref
4111 reference "sec:LaTeXコードを挿入する"
4112
4113 \end_inset
4114
4115 節を参照)を利用することを厭わなければ、\SpecialChar LyX
4116 で節分けされた書誌情報を作るのに使用されている(前節を参照)
4117 \begin_inset Flex Code
4118 status collapsed
4119
4120 \begin_layout Plain Layout
4121 bibtopic
4122 \end_layout
4123
4124 \end_inset
4125
4126 パッケージが、この課題を解決する簡単な方法を提供します
4127 \begin_inset Foot
4128 status collapsed
4129
4130 \begin_layout Plain Layout
4131 ほかに、
4132 \begin_inset Flex Code
4133 status collapsed
4134
4135 \begin_layout Plain Layout
4136 chapterbib
4137 \end_layout
4138
4139 \end_inset
4140
4141
4142 \begin_inset Flex Code
4143 status collapsed
4144
4145 \begin_layout Plain Layout
4146 bibunits
4147 \end_layout
4148
4149 \end_inset
4150
4151 パッケージを利用する方法もあります。
4152 \end_layout
4153
4154 \end_inset
4155
4156
4157 \end_layout
4158
4159 \begin_layout Standard
4160 まず
4161 \begin_inset Flex MenuItem
4162 status collapsed
4163
4164 \begin_layout Plain Layout
4165 文書\SpecialChar menuseparator
4166 設定
4167 \end_layout
4168
4169 \end_inset
4170
4171 に行って
4172 \begin_inset Flex MenuItem
4173 status collapsed
4174
4175 \begin_layout Plain Layout
4176 書誌情報
4177 \end_layout
4178
4179 \end_inset
4180
4181 の下の
4182 \begin_inset Flex MenuItem
4183 status collapsed
4184
4185 \begin_layout Plain Layout
4186 節分けされた書誌情報
4187 \end_layout
4188
4189 \end_inset
4190
4191 を有効にしてください。つぎに文書中において、書誌情報(Bib\SpecialChar TeX
4192 書誌情報本体を含む)の入った節を
4193 \begin_inset Flex Code
4194 status collapsed
4195
4196 \begin_layout Plain Layout
4197
4198 \backslash
4199 begin{btUnit}
4200 \end_layout
4201
4202 \end_inset
4203
4204
4205 \begin_inset Flex Code
4206 status collapsed
4207
4208 \begin_layout Plain Layout
4209
4210 \backslash
4211 end{btUnit}
4212 \end_layout
4213
4214 \end_inset
4215
4216 のあいだにはさまなくてはなりません(これらのコマンドは\SpecialChar TeX
4217 コードとして挿入する必要があります)。書誌情報には、現在位置の
4218 \begin_inset Flex Code
4219 status collapsed
4220
4221 \begin_layout Plain Layout
4222 btUnit
4223 \end_layout
4224
4225 \end_inset
4226
4227 において引用されたすべての参照が含まれることになります。
4228 \series bold
4229 (註)
4230 \series default
4231 この方法を用いる場合には、すべての参照はいずれかの
4232 \begin_inset Flex Code
4233 status collapsed
4234
4235 \begin_layout Plain Layout
4236 btUnit
4237 \end_layout
4238
4239 \end_inset
4240
4241 内部になくてはなりません。また、
4242 \begin_inset Flex Code
4243 status collapsed
4244
4245 \begin_layout Plain Layout
4246 btUnit
4247 \end_layout
4248
4249 \end_inset
4250
4251 は入れ子構造にすることができません。
4252 \end_layout
4253
4254 \begin_layout Section
4255 複合文書
4256 \end_layout
4257
4258 \begin_layout Subsection
4259 一般的な操作
4260 \end_layout
4261
4262 \begin_layout Standard
4263 たくさんの節を含んだ大きなファイルで作業をする場合、文書をいくつかのファイルに分割した方が往々にして便利ですし、場合によっては、表部分にはしょっちゅう変更が加え
4264 られるけれども、その前の文章はつねに同じであるようなケースもあるでしょう。このような場合には、複合文書を利用することを、まずご検討ください。たとえば、科学論文は
4265 通常、導入部・所見・結果・議論・結論の五つの節から成ります。これら各節を別々の\SpecialChar LyX
4266 ファイルにして、タイトル・著者・概要・書誌情報等と、これら五つのインクルード
4267 \begin_inset Foot
4268 status collapsed
4269
4270 \begin_layout Plain Layout
4271
4272 \series bold
4273 (訳註)
4274 \series default
4275 「取り込む」の意です。原語「include」に対する訳語として、プログラミング用語の「インクルードする」以外に適語がないので、ここではプログラミング用語をそのま
4276 ま使用します。
4277 \end_layout
4278
4279 \end_inset
4280
4281 ファイルを持つ、もう一つ別の「マスター」ファイルを作成するようにすることができます。これらの各ファイルは、単にマスターファイルにインクルードされるだけでなく、単
4282 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4283 ファイルであるように注意することが重要です。しかも、これらの各ファイルは、同じ文書クラスでなくてはなりません。a
4284 rticleクラスとbookクラスを混在させるようなことはなさらないでください。\SpecialChar LaTeX
4285 ファイルをインクルードすることもできますが、このファイルにはプリアンブルがあって
4286 はなりません(
4287 \begin_inset Flex Code
4288 status collapsed
4289
4290 \begin_layout Plain Layout
4291
4292 \backslash
4293 begin{document}
4294 \end_layout
4295
4296 \end_inset
4297
4298 行とその前のすべて、および
4299 \begin_inset Flex Code
4300 status collapsed
4301
4302 \begin_layout Plain Layout
4303
4304 \backslash
4305 end{document}行
4306 \end_layout
4307
4308 \end_inset
4309
4310 は削除しておかなければなりません)。さもないと、DVIファイルを作成する際にエラーが発生するでしょう。
4311 \end_layout
4312
4313 \begin_layout Standard
4314 \SpecialChar LyX
4315 では、
4316 \family sans
4317 挿入\SpecialChar menuseparator
4318 ファイル\SpecialChar menuseparator
4319 子文書
4320 \family default
4321 で簡単にファイルをインクルードすることができます。このメニューを選んでクリックすると、カーソルの現在位置に小さな枠が挿入されます。この枠をクリックすると、ダイア
4322 ログが現れるので、そこでインクルードするファイルとインクルード方法を選択することができます。
4323 \end_layout
4324
4325 \begin_layout Standard
4326 ファイル選択ボックスは、いまや自明でしょう。インクルード方法には、「include」・「input」・「verbatim」の三つがあります。「include」と
4327 「input」の違いは、正確には\SpecialChar LaTeX
4328 の達人にしか意味のないものですが、ほとんどの人にとって意味のある違いといえば、「include」されたファイルは新規頁から組版さ
4329 れるのに対し、「input」されたファイルは現在のページから組版される点です。
4330 \end_layout
4331
4332 \begin_layout Standard
4333 一般に、マスターファイルは、組版前に完全な\SpecialChar LaTeX
4334 ファイルに変換されますが、インクルードされるファイルは、プリアンブル情報をまったく持たない\SpecialChar LaTeX
4335 ファイルに変換されます。
4336 \end_layout
4337
4338 \begin_layout Standard
4339 「verbatim」インクルードファイルでは、ファイルの内容がそのまま(つまり「
4340 \begin_inset Flex Code
4341 status collapsed
4342
4343 \begin_layout Plain Layout
4344 verbatim
4345 \end_layout
4346
4347 \end_inset
4348
4349 」モードで)固定幅タイプライタフォントで組版されます。通常、このファイルの空白は、通常の\SpecialChar LyX
4350 での空白の取扱いとは違って、連続した複数の空白がそのまま出力されるものの
4351 、単なる見えない空白です。ただし、
4352 \family sans
4353
4354 \begin_inset Flex MenuItem
4355 status collapsed
4356
4357 \begin_layout Plain Layout
4358
4359 \family sans
4360 出力の空白に印付けをする
4361 \end_layout
4362
4363 \end_inset
4364
4365
4366 \family default
4367 チェックボックスを有効にすると、空白が存在することを明確にするために空白の印が出力されます。
4368 \end_layout
4369
4370 \begin_layout Subsection
4371 ファイル間の相互参照
4372 \end_layout
4373
4374 \begin_layout Standard
4375 \begin_inset Box Shadowbox
4376 position "t"
4377 hor_pos "c"
4378 has_inner_box 1
4379 inner_pos "t"
4380 use_parbox 0
4381 use_makebox 0
4382 width "100col%"
4383 special "none"
4384 height "1in"
4385 height_special "totalheight"
4386 thickness "0.4pt"
4387 separation "3pt"
4388 shadowsize "4pt"
4389 framecolor "black"
4390 backgroundcolor "none"
4391 status open
4392
4393 \begin_layout Plain Layout
4394 この節の内容は、すでに古くなっています。既定のマスター文書についてと、マスターが開いているときに子文書をどう開くかについて記述する必要があります。[[要修正]]
4395 \end_layout
4396
4397 \end_inset
4398
4399
4400 \end_layout
4401
4402 \begin_layout Standard
4403 異なるファイル間に相互参照を設定することも可能です。まず、すべての関係するファイルを開いてください。例として、2つのファイルを扱う場合を考え、各ファイルをA・B
4404 と呼びます。BがAにインクルードされるファイルだとします。Aにラベルを入れて、Bで参照したいとしましょう。文書Bで相互参照ダイアログを開いて、使用する「バッファ
4405 」を選んでください。
4406 \end_layout
4407
4408 \begin_layout Subsection
4409 すべての子文書での書誌情報
4410 \end_layout
4411
4412 \begin_layout Standard
4413 \begin_inset Box Shadowbox
4414 position "t"
4415 hor_pos "c"
4416 has_inner_box 1
4417 inner_pos "t"
4418 use_parbox 0
4419 use_makebox 0
4420 width "100col%"
4421 special "none"
4422 height "1in"
4423 height_special "totalheight"
4424 thickness "0.4pt"
4425 separation "3pt"
4426 shadowsize "4pt"
4427 framecolor "black"
4428 backgroundcolor "none"
4429 status open
4430
4431 \begin_layout Plain Layout
4432 この節も更新が必要です。この点に関する内容がwikiにあるので、それをここにコピーすることも可か。
4433 \end_layout
4434
4435 \end_inset
4436
4437
4438 \end_layout
4439
4440 \begin_layout Standard
4441 すべての子文書の全文献項目を含んだ書誌情報一覧をコピーし、それをコメントに変更してください。このようにすることで、\SpecialChar LyX
4442 は.bibファイルを見つけることができ、書誌情報
4443 一覧を見えるようにせずとも簡単に参照を挿入することができるようになります。
4444 \end_layout
4445
4446 \begin_layout Standard
4447 書誌情報一覧がコメントにあるために、\SpecialChar LaTeX
4448 はそれを使用しないので、参照は[1]のようには表示されないで[?]のように表示されます。ひとつの解決法として、コメントをイン
4449 クルードする\SpecialChar LaTeX
4450 パッケージの
4451 \begin_inset Flex Code
4452 status collapsed
4453
4454 \begin_layout Plain Layout
4455 comment
4456 \end_layout
4457
4458 \end_inset
4459
4460 を使用して、ファイルを別々に処理する方法があります。そのためには、すべての子文書のプリアンブルに以下を書き加えてください。
4461 \end_layout
4462
4463 \begin_layout LyX-Code
4464
4465 \backslash
4466 usepackage{comment}
4467 \end_layout
4468
4469 \begin_layout LyX-Code
4470
4471 \backslash
4472 includecomment{comment}
4473 \end_layout
4474
4475 \begin_layout Standard
4476 \begin_inset Flex URL
4477 status collapsed
4478
4479 \begin_layout Plain Layout
4480
4481 http://wiki.lyx.org/FAQ/Unsorted#toc31
4482 \end_layout
4483
4484 \end_inset
4485
4486 も参照してください。
4487 \end_layout
4488
4489 \begin_layout Section
4490 \SpecialChar LyX
4491 書庫
4492 \end_layout
4493
4494 \begin_layout Standard
4495 しばしばユーザーは、出版社に送ったり、共著者とやりとりするために、\SpecialChar LyX
4496 ファイルを、その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります。\SpecialChar LyX
4497
4498  2.0には、この過程を自動化するPythonスクリプト(
4499 \begin_inset Flex Code
4500 status collapsed
4501
4502 \begin_layout Plain Layout
4503 lyxpak.py
4504 \end_layout
4505
4506 \end_inset
4507
4508 )が含まれています。これを使うには、
4509 \begin_inset Flex Code
4510 status collapsed
4511
4512 \begin_layout Plain Layout
4513 zipfile
4514 \end_layout
4515
4516 \end_inset
4517
4518  pythonモジュールまたは
4519 \begin_inset Flex Code
4520 status collapsed
4521
4522 \begin_layout Plain Layout
4523 tarfile
4524 \end_layout
4525
4526 \end_inset
4527
4528  pythonモジュールが、システムに導入済みであることが必要です。既定設定では、Unix系システムでは、
4529 \begin_inset Flex Code
4530 status collapsed
4531
4532 \begin_layout Plain Layout
4533 gzip
4534 \end_layout
4535
4536 \end_inset
4537
4538 圧縮
4539 \begin_inset Flex Code
4540 status collapsed
4541
4542 \begin_layout Plain Layout
4543 tar
4544 \end_layout
4545
4546 \end_inset
4547
4548 ファイル形式が優先され、Windowsでは
4549 \begin_inset Flex Code
4550 status collapsed
4551
4552 \begin_layout Plain Layout
4553 zip
4554 \end_layout
4555
4556 \end_inset
4557
4558 形式が優先されます。
4559 \end_layout
4560
4561 \begin_layout Standard
4562 \SpecialChar LyX
4563 の環境構成時には、「\SpecialChar LyX
4564 書庫」を書き出すことができるようにスクリプトが準備され、
4565 \begin_inset Flex MenuItem
4566 status collapsed
4567
4568 \begin_layout Plain Layout
4569 ファイル\SpecialChar menuseparator
4570 書き出し
4571 \end_layout
4572
4573 \end_inset
4574
4575 の下で利用可能となります。
4576 \end_layout
4577
4578 \begin_layout Standard
4579 \begin_inset Flex MenuItem
4580 status collapsed
4581
4582 \begin_layout Plain Layout
4583 ツール\SpecialChar menuseparator
4584 設定\SpecialChar menuseparator
4585 ファイル処理\SpecialChar menuseparator
4586 変換子
4587 \end_layout
4588
4589 \end_inset
4590
4591
4592 \begin_inset Flex MenuItem
4593 status collapsed
4594
4595 \begin_layout Plain Layout
4596 \SpecialChar LyX
4597 \SpecialChar menuseparator
4598 \SpecialChar LyX
4599 書庫
4600 \end_layout
4601
4602 \end_inset
4603
4604 変換子に、
4605 \begin_inset Flex Code
4606 status collapsed
4607
4608 \begin_layout Plain Layout
4609 -t
4610 \end_layout
4611
4612 \end_inset
4613
4614 スイッチや
4615 \begin_inset Flex Code
4616 status collapsed
4617
4618 \begin_layout Plain Layout
4619 -z
4620 \end_layout
4621
4622 \end_inset
4623
4624 スイッチを加えることで、プラットホームとは独立に、
4625 \begin_inset Flex Code
4626 status collapsed
4627
4628 \begin_layout Plain Layout
4629 tar
4630 \end_layout
4631
4632 \end_inset
4633
4634 形式や
4635 \begin_inset Flex Code
4636 status collapsed
4637
4638 \begin_layout Plain Layout
4639 zip
4640 \end_layout
4641
4642 \end_inset
4643
4644 形式を強制することができます(スイッチは、スクリプト名の前ではなく、後ろに加えてください)。
4645 \end_layout
4646
4647 \begin_layout Section
4648 装飾的なヘッダ・フッタ
4649 \end_layout
4650
4651 \begin_layout Standard
4652 既定のページレイアウトは、どちらかといえば素っ気ないものです。
4653 \begin_inset Flex Code
4654 status collapsed
4655
4656 \begin_layout Plain Layout
4657 article
4658 \end_layout
4659
4660 \end_inset
4661
4662 文書クラスの場合には、ページの下の真ん中にページ番号がつくだけです。この取扱説明書はKOMA-scriptのbookクラスなので、すこしは凝ってますが、ほんとう
4663 に着飾るには、『
4664 \emph on
4665 ユーザーの手引き
4666 \emph default
4667 』に述べられているように、文書ページスタイルを「装飾的(fancy)」に設定する必要があります。この節では、望んだとおりの効果を得るために、\SpecialChar LaTeX
4668 プリアンブルに挿入す
4669 る必要のある\SpecialChar LaTeX
4670 コードについて解説します。
4671 \end_layout
4672
4673 \begin_layout Standard
4674 ページへッダは、「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています。フッタも同様に3つのフィールド
4675 に分類されています。これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
4676 コマンドには、
4677 \family typewriter
4678
4679 \begin_inset Flex Code
4680 status collapsed
4681
4682 \begin_layout Plain Layout
4683
4684 \family typewriter
4685
4686 \backslash
4687 lhead
4688 \end_layout
4689
4690 \end_inset
4691
4692
4693 \family default
4694
4695 \family typewriter
4696
4697 \begin_inset Flex Code
4698 status collapsed
4699
4700 \begin_layout Plain Layout
4701
4702 \family typewriter
4703
4704 \backslash
4705 chead
4706 \end_layout
4707
4708 \end_inset
4709
4710
4711 \family default
4712
4713 \family typewriter
4714
4715 \begin_inset Flex Code
4716 status collapsed
4717
4718 \begin_layout Plain Layout
4719
4720 \family typewriter
4721
4722 \backslash
4723 rhead
4724 \end_layout
4725
4726 \end_inset
4727
4728
4729 \family default
4730
4731 \begin_inset Flex Code
4732 status collapsed
4733
4734 \begin_layout Plain Layout
4735
4736 \backslash
4737 lfoot
4738 \end_layout
4739
4740 \end_inset
4741
4742 などがあります。かりに、各ページの左上端に自分の名前を入れたいものとしましょう。次のようなコマンドをプリアンブルに入れるだけです。
4743 \end_layout
4744
4745 \begin_layout Standard
4746
4747 \family typewriter
4748
4749 \backslash
4750 lhead{物書 はじめ}
4751 \end_layout
4752
4753 \begin_layout Standard
4754 これで自分の名前が左上に現れます。フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には、空の引数を持つコマンドを入
4755 れるだけです。すなわち、
4756 \end_layout
4757
4758 \begin_layout Standard
4759
4760 \family typewriter
4761
4762 \backslash
4763 cfoot{}
4764 \begin_inset Newline newline
4765 \end_inset
4766
4767
4768 \family default
4769 とします。
4770 \end_layout
4771
4772 \begin_layout Standard
4773 もっと美しくしてみましょう。節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ、ページ番号を(4ページのように)右上に、自分の名前を左下に、日
4774 付を右下に入れます。以下のコマンドをプリアンブルに入れます。
4775 \end_layout
4776
4777 \begin_layout Standard
4778
4779 \family typewriter
4780
4781 \backslash
4782 lhead{第
4783 \backslash
4784 thesection 節}
4785 \end_layout
4786
4787 \begin_layout Standard
4788
4789 \family typewriter
4790
4791 \backslash
4792 chead{}
4793 \end_layout
4794
4795 \begin_layout Standard
4796
4797 \family typewriter
4798
4799 \backslash
4800 rhead{
4801 \backslash
4802 thepage ページ}
4803 \end_layout
4804
4805 \begin_layout Standard
4806
4807 \family typewriter
4808
4809 \backslash
4810 lfoot{物書 はじめ}
4811 \end_layout
4812
4813 \begin_layout Standard
4814
4815 \family typewriter
4816
4817 \backslash
4818 cfoot{}
4819 \end_layout
4820
4821 \begin_layout Standard
4822
4823 \family typewriter
4824
4825 \backslash
4826 rfoot{
4827 \backslash
4828 today}
4829 \end_layout
4830
4831 \begin_layout Standard
4832 コマンド
4833 \family typewriter
4834
4835 \begin_inset Flex Code
4836 status collapsed
4837
4838 \begin_layout Plain Layout
4839
4840 \family typewriter
4841
4842 \backslash
4843 thesecti
4844 \family default
4845 o
4846 \family typewriter
4847 n
4848 \end_layout
4849
4850 \end_inset
4851
4852
4853 \family default
4854
4855 \begin_inset Flex Code
4856 status collapsed
4857
4858 \begin_layout Plain Layout
4859
4860 \family typewriter
4861
4862 \backslash
4863 thepa
4864 \family default
4865 ge
4866 \end_layout
4867
4868 \end_inset
4869
4870 は、それぞれ\SpecialChar LaTeX
4871 の節カウンタおよびページカウンタを取得するもので、これによって現在の節番号とページ番号を印字します。
4872 \begin_inset Flex Code
4873 status collapsed
4874
4875 \begin_layout Plain Layout
4876
4877 \family typewriter
4878
4879 \backslash
4880 tod
4881 \family default
4882 ay
4883 \end_layout
4884
4885 \end_inset
4886
4887 は、今日の日付を印字するものです。
4888 \end_layout
4889
4890 \begin_layout Standard
4891 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます。もし罫線が必要なければ、太さを0にしてください。ヘッダ罫線は、既定では0.4ptの太さであり、
4892 フッタ罫線は0ptです。太さを変更するには、
4893 \family typewriter
4894
4895 \begin_inset Flex Code
4896 status collapsed
4897
4898 \begin_layout Plain Layout
4899
4900 \family typewriter
4901
4902 \backslash
4903 renewcommand{
4904 \backslash
4905 headrulewidth}{0.4pt}
4906 \end_layout
4907
4908 \end_inset
4909
4910
4911 \family default
4912
4913 \family typewriter
4914
4915 \begin_inset Flex Code
4916 status collapsed
4917
4918 \begin_layout Plain Layout
4919
4920 \family typewriter
4921
4922 \backslash
4923 renewcommand{
4924 \backslash
4925 footrulewidth}{0.4pt}
4926 \end_layout
4927
4928 \end_inset
4929
4930
4931 \family default
4932 のようなコマンドを使用してください。
4933 \end_layout
4934
4935 \begin_layout Standard
4936 \begin_inset Flex Code
4937 status collapsed
4938
4939 \begin_layout Plain Layout
4940
4941 \family typewriter
4942
4943 \backslash
4944 thispagestyle{empty}
4945 \end_layout
4946
4947 \end_inset
4948
4949
4950 \begin_inset Flex Code
4951 status collapsed
4952
4953 \begin_layout Plain Layout
4954
4955 \family typewriter
4956
4957 \backslash
4958 thispagestyle{plain}
4959 \end_layout
4960
4961 \end_inset
4962
4963
4964 \begin_inset Flex Code
4965 status collapsed
4966
4967 \begin_layout Plain Layout
4968
4969 \family typewriter
4970
4971 \backslash
4972 thispagestyle{fancy}
4973 \end_layout
4974
4975 \end_inset
4976
4977 のようなコマンドを使えば、各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます。設定を変更したいページに、これらのコマンドを\SpecialChar TeX
4978 コードとして
4979 挿入してください。実は、タイトルページは、その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず、既定でプレーン
4980 (plain)になるように設定されているのです。
4981 \end_layout
4982
4983 \begin_layout Standard
4984 奇数ページの左上だけに何かを挿入するなど、もっと複雑なコマンドもあるのですが、詳しい解説は
4985 \begin_inset Flex Code
4986 status collapsed
4987
4988 \begin_layout Plain Layout
4989
4990 \family typewriter
4991 fancyhdr
4992 \end_layout
4993
4994 \end_inset
4995
4996 パッケージの取扱説明書をご参照ください(
4997 \begin_inset Flex Code
4998 status collapsed
4999
5000 \begin_layout Plain Layout
5001 fancyhdr.dvi
5002 \end_layout
5003
5004 \end_inset
5005
5006 を探してください)。
5007 \end_layout
5008
5009 \begin_layout Standard
5010 最後の例として、へッダやフッタに画像を挿入できることを取り上げましょう。会社のロゴをページ左上に入れたいものとします。たとえば、
5011 \end_layout
5012
5013 \begin_layout Standard
5014
5015 \family typewriter
5016
5017 \backslash
5018 lhead{
5019 \backslash
5020 resizebox{1in}{!}{
5021 \backslash
5022 includegraphics{logo.eps}}}
5023 \end_layout
5024
5025 \begin_layout Standard
5026 \noindent
5027 とすれば、これを実現できます(文書中に他に画像を挿入していない場合には、
5028 \begin_inset Newline newline
5029 \end_inset
5030
5031
5032 \begin_inset Flex Code
5033 status collapsed
5034
5035 \begin_layout Plain Layout
5036 \noindent
5037
5038 \family typewriter
5039
5040 \backslash
5041 usepackage{graphics}
5042 \end_layout
5043
5044 \end_inset
5045
5046 をプリアンブルに宣言する必要があります)。
5047 \end_layout
5048
5049 \begin_layout Section
5050 箇条書き(記号)ブリットの指定
5051 \begin_inset CommandInset label
5052 LatexCommand label
5053 name "sec:ブリット"
5054
5055 \end_inset
5056
5057
5058 \end_layout
5059
5060 \begin_layout Standard
5061
5062 \noun on
5063 Allan Rae文
5064 \end_layout
5065
5066 \begin_layout Subsection
5067 はじめに
5068 \end_layout
5069
5070 \begin_layout Standard
5071 \SpecialChar LyX
5072 には、ブリットの形が216個準備されていて、簡単なダイアログから呼び出すことができます。このダイアログを使えば、箇条書き(記号)の各階層で使うブリットの形を変更
5073 することができます。この設定は文書全体に共通なので、段落ごとに別のブリットを指定することはできません
5074 \begin_inset Foot
5075 status collapsed
5076
5077 \begin_layout Plain Layout
5078 正確には可能ですが、手動で行う必要があります。
5079 \end_layout
5080
5081 \end_inset
5082
5083
5084 \end_layout
5085
5086 \begin_layout Subsection
5087 外見
5088 \end_layout
5089
5090 \begin_layout Standard
5091 メニュー項目の
5092 \begin_inset Flex MenuItem
5093 status collapsed
5094
5095 \begin_layout Plain Layout
5096 文書\SpecialChar menuseparator
5097 設定
5098 \end_layout
5099
5100 \end_inset
5101
5102 を選択してダイアログを開き、
5103 \begin_inset Flex MenuItem
5104 status collapsed
5105
5106 \begin_layout Plain Layout
5107 ブリット
5108 \end_layout
5109
5110 \end_inset
5111
5112 タブを選択してください。
5113 \end_layout
5114
5115 \begin_layout Standard
5116 このダイアログは、ブリット形の一覧表を提示します。
5117 \begin_inset Flex MenuItem
5118 status collapsed
5119
5120 \begin_layout Plain Layout
5121 フォント
5122 \end_layout
5123
5124 \end_inset
5125
5126 と書いてあるドロップダウンメニューで、6つの各ブリット形パネルを切り替えることができます。また、一覧表左の
5127 \begin_inset Flex MenuItem
5128 status collapsed
5129
5130 \begin_layout Plain Layout
5131 階層
5132 \end_layout
5133
5134 \end_inset
5135
5136 パネルは、変更したい階層を選択するものです。
5137 \begin_inset Flex MenuItem
5138 status collapsed
5139
5140 \begin_layout Plain Layout
5141 任意のブリット
5142 \end_layout
5143
5144 \end_inset
5145
5146 では、指定したい\SpecialChar LaTeX
5147 表現を入力することができます。任意のブリットを指定した場合には、そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5148 プリアンブルで指定する必要があります。
5149 \end_layout
5150
5151 \begin_layout Standard
5152 6つのパネルは、それぞれが必要とするパッケージによって分類されています。下記は、フォント名と\SpecialChar LaTeX
5153 パッケージの対応表です。
5154 \begin_inset Separator parbreak
5155 \end_inset
5156
5157
5158 \end_layout
5159
5160 \begin_layout Standard
5161 \align center
5162 \begin_inset Tabular
5163 <lyxtabular version="3" rows="7" columns="2">
5164 <features tabularvalignment="middle">
5165 <column alignment="center" valignment="top" width="0pt">
5166 <column alignment="center" valignment="top" width="0pt">
5167 <row>
5168 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5169 \begin_inset Text
5170
5171 \begin_layout Plain Layout
5172 フォント
5173 \end_layout
5174
5175 \end_inset
5176 </cell>
5177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5178 \begin_inset Text
5179
5180 \begin_layout Plain Layout
5181
5182 \family roman
5183 \series medium
5184 \shape up
5185 \size normal
5186 \emph off
5187 \bar no
5188 \noun off
5189 \color none
5190 必要とするパッケージ
5191 \end_layout
5192
5193 \end_inset
5194 </cell>
5195 </row>
5196 <row>
5197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5198 \begin_inset Text
5199
5200 \begin_layout Plain Layout
5201
5202 \family sans
5203 標準
5204 \end_layout
5205
5206 \end_inset
5207 </cell>
5208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5209 \begin_inset Text
5210
5211 \begin_layout Plain Layout
5212
5213 \series medium
5214 \shape up
5215 \size normal
5216 \emph off
5217 \bar no
5218 \noun off
5219 \color none
5220 \SpecialChar LaTeX
5221
5222 \family roman
5223 本体
5224 \end_layout
5225
5226 \end_inset
5227 </cell>
5228 </row>
5229 <row>
5230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5231 \begin_inset Text
5232
5233 \begin_layout Plain Layout
5234
5235 \family sans
5236 \series medium
5237 \shape up
5238 \size normal
5239 \emph off
5240 \bar no
5241 \noun off
5242 \color none
5243 数式
5244 \end_layout
5245
5246 \end_inset
5247 </cell>
5248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5249 \begin_inset Text
5250
5251 \begin_layout Plain Layout
5252
5253 \family typewriter
5254 \series medium
5255 \shape up
5256 \size normal
5257 \emph off
5258 \bar no
5259 \noun off
5260 \color none
5261 amssymb.sty
5262 \end_layout
5263
5264 \end_inset
5265 </cell>
5266 </row>
5267 <row>
5268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5269 \begin_inset Text
5270
5271 \begin_layout Plain Layout
5272
5273 \family sans
5274 \series medium
5275 \shape up
5276 \size normal
5277 \emph off
5278 \bar no
5279 \noun off
5280 \color none
5281 絵文字1
5282 \end_layout
5283
5284 \end_inset
5285 </cell>
5286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5287 \begin_inset Text
5288
5289 \begin_layout Plain Layout
5290
5291 \family typewriter
5292 \series medium
5293 \shape up
5294 \size normal
5295 \emph off
5296 \bar no
5297 \noun off
5298 \color none
5299 pifont.sty
5300 \end_layout
5301
5302 \end_inset
5303 </cell>
5304 </row>
5305 <row>
5306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5307 \begin_inset Text
5308
5309 \begin_layout Plain Layout
5310
5311 \family sans
5312 \series medium
5313 \shape up
5314 \size normal
5315 \emph off
5316 \bar no
5317 \noun off
5318 \color none
5319 絵文字2
5320 \end_layout
5321
5322 \end_inset
5323 </cell>
5324 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5325 \begin_inset Text
5326
5327 \begin_layout Plain Layout
5328
5329 \family typewriter
5330 \series medium
5331 \shape up
5332 \size normal
5333 \emph off
5334 \bar no
5335 \noun off
5336 \color none
5337 pifont.sty
5338 \end_layout
5339
5340 \end_inset
5341 </cell>
5342 </row>
5343 <row>
5344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5345 \begin_inset Text
5346
5347 \begin_layout Plain Layout
5348
5349 \family sans
5350 \series medium
5351 \shape up
5352 \size normal
5353 \emph off
5354 \bar no
5355 \noun off
5356 \color none
5357 絵文字3
5358 \end_layout
5359
5360 \end_inset
5361 </cell>
5362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5363 \begin_inset Text
5364
5365 \begin_layout Plain Layout
5366
5367 \family typewriter
5368 \series medium
5369 \shape up
5370 \size normal
5371 \emph off
5372 \bar no
5373 \noun off
5374 \color none
5375 pifont.sty
5376 \end_layout
5377
5378 \end_inset
5379 </cell>
5380 </row>
5381 <row>
5382 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5383 \begin_inset Text
5384
5385 \begin_layout Plain Layout
5386
5387 \family sans
5388 \series medium
5389 \shape up
5390 \size normal
5391 \emph off
5392 \bar no
5393 \noun off
5394 \color none
5395 絵文字4
5396 \end_layout
5397
5398 \end_inset
5399 </cell>
5400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5401 \begin_inset Text
5402
5403 \begin_layout Plain Layout
5404
5405 \family typewriter
5406 \series medium
5407 \shape up
5408 \size normal
5409 \emph off
5410 \bar no
5411 \noun off
5412 \color none
5413 pifont.sty
5414 \end_layout
5415
5416 \end_inset
5417 </cell>
5418 </row>
5419 </lyxtabular>
5420
5421 \end_inset
5422
5423
5424 \end_layout
5425
5426 \begin_layout Standard
5427 \SpecialChar LyX
5428 は、ユーザーが導入されていないパッケージのブリットを使用したとしても、警告を発しません。ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5429 エラーが出るようならば、
5430 パッケージが導入されていない可能性が大です
5431 \begin_inset Foot
5432 status collapsed
5433
5434 \begin_layout Plain Layout
5435 \SpecialChar LyX
5436 が、パッケージがなくてもブリットを使用することを許すのは、編集をここで行ったとしても、別のところへエクスポートする可能性があるからです。
5437 \end_layout
5438
5439 \end_inset
5440
5441
5442 \end_layout
5443
5444 \begin_layout Subsection
5445 使用法
5446 \end_layout
5447
5448 \begin_layout Standard
5449 変更したいブリット階層を選んで、ブリット形と寸法を選択してください。何らかの変更を加えたとしても、\SpecialChar LyX
5450 上には反映されませんが、文書の表示を行えば確認されます。
5451 \end_layout
5452
5453 \begin_layout Standard
5454 ブリット形は、適切な階層のブリットボタンをマウスで右クリックすれば、簡単に既定値に初期化することができます
5455 \begin_inset Foot
5456 status collapsed
5457
5458 \begin_layout Plain Layout
5459 もし
5460 \emph on
5461 本当に
5462 \emph default
5463 段落ごとに異なるブリットの形を使いたいならば、\SpecialChar TeX
5464 コードを使って少し手を汚す必要があります。この場合も、ブリット選択ダイアログを使えば、さまざまな形のLaTeXコー
5465 ドを確認することができるので手助けとなるでしょう。任意に設定した段落をつくるには、以下のような選択肢があります。
5466 \end_layout
5467
5468 \begin_layout Plain Layout
5469 \begin_inset ERT
5470 status open
5471
5472 \begin_layout Plain Layout
5473
5474
5475 \backslash
5476 let
5477 \backslash
5478 savelabelitemi=
5479 \backslash
5480 labelitemi
5481 \end_layout
5482
5483 \end_inset
5484
5485
5486 \end_layout
5487
5488 \begin_layout Plain Layout
5489 \begin_inset ERT
5490 status open
5491
5492 \begin_layout Plain Layout
5493
5494
5495 \backslash
5496 renewcommand
5497 \backslash
5498 labelitemi[0]{
5499 \backslash
5500 small
5501 \backslash
5502 (
5503 \backslash
5504 sharp
5505 \backslash
5506 )}
5507 \end_layout
5508
5509 \end_inset
5510
5511
5512 \end_layout
5513
5514 \begin_layout Itemize
5515 特定の階層の新しいブリット形を指定するには、\SpecialChar LaTeX
5516 コマンド
5517 \begin_inset Flex Code
5518 status collapsed
5519
5520 \begin_layout Plain Layout
5521
5522 \family typewriter
5523
5524 \backslash
5525 renewcommand{}{}
5526 \end_layout
5527
5528 \end_inset
5529
5530 を使用します。あとで現在のブリット形に戻すことができるように、現在のブリット形を保存しておく必要もあります。ここで使っている箇条書きでは、第1階層のブリットを変
5531 更するために、以下の\SpecialChar LaTeX
5532 コードが使用されています。
5533 \begin_inset Separator parbreak
5534 \end_inset
5535
5536
5537 \end_layout
5538
5539 \begin_deeper
5540 \begin_layout LyX-Code
5541
5542 \family typewriter
5543
5544 \backslash
5545 let
5546 \backslash
5547 savelabelitemi=
5548 \backslash
5549 labelitemi
5550 \end_layout
5551
5552 \begin_layout LyX-Code
5553
5554 \family typewriter
5555
5556 \backslash
5557 renewcommand
5558 \backslash
5559 labelitemi[0]{
5560 \backslash
5561 small
5562 \backslash
5563 (
5564 \backslash
5565 sharp
5566 \backslash
5567 )}
5568 \end_layout
5569
5570 \end_deeper
5571 \begin_layout Itemize
5572 箇条書き(記号)の階層は、
5573 \begin_inset Flex Code
5574 status collapsed
5575
5576 \begin_layout Plain Layout
5577
5578 \backslash
5579 labelitem
5580 \end_layout
5581
5582 \end_inset
5583
5584 コマンドの一部にローマ数字で指定されていることに注意してください。
5585 \end_layout
5586
5587 \begin_layout Itemize
5588 \begin_inset ERT
5589 status open
5590
5591 \begin_layout Plain Layout
5592
5593 [
5594 \backslash
5595 (
5596 \backslash
5597 star
5598 \backslash
5599 )]
5600 \end_layout
5601
5602 \end_inset
5603
5604 各項目のブリットを指定するには、角括弧で囲んだブリット形を、行頭に
5605 \begin_inset Flex Code
5606 status collapsed
5607
5608 \begin_layout Plain Layout
5609 \SpecialChar TeX
5610 コード
5611 \end_layout
5612
5613 \end_inset
5614
5615 として挿入してください。たとえば、この項目の行頭には
5616 \family typewriter
5617
5618 \begin_inset Flex Code
5619 status collapsed
5620
5621 \begin_layout Plain Layout
5622
5623 \family typewriter
5624 [
5625 \backslash
5626 (
5627 \backslash
5628 star
5629 \backslash
5630 )]
5631 \end_layout
5632
5633 \end_inset
5634
5635
5636 \family default
5637 が指定されています。
5638 \end_layout
5639
5640 \begin_layout Plain Layout
5641 \begin_inset ERT
5642 status open
5643
5644 \begin_layout Plain Layout
5645
5646
5647 \backslash
5648 renewcommand
5649 \backslash
5650 labelitemi[0]{
5651 \backslash
5652 savelabelitemi}
5653 \end_layout
5654
5655 \end_inset
5656
5657
5658 \end_layout
5659
5660 \begin_layout Plain Layout
5661 文書全体で使用するブリット形が有効であるようにするために、labelitemを元の設定に戻す必要があります。そのためには、以下のようにします。
5662 \end_layout
5663
5664 \begin_layout LyX-Code
5665
5666 \family typewriter
5667
5668 \backslash
5669 renewcommand
5670 \backslash
5671 labelitemi[0]{
5672 \backslash
5673 savelabelitemi}
5674 \end_layout
5675
5676 \end_inset
5677
5678
5679 \end_layout
5680
5681 \begin_layout Chapter
5682 \SpecialChar LyX
5683 とインターネット網
5684 \end_layout
5685
5686 \begin_layout Standard
5687 \SpecialChar LyX
5688 は、これまでも長い間、HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました。しかしながら、第2.0版以前では、HTMLへの書き出し
5689 は、常に外部変換子を用いることで実現されていました
5690 \begin_inset Foot
5691 status collapsed
5692
5693 \begin_layout Plain Layout
5694 \SpecialChar LyX
5695 で外部変換子を使うことについての詳細は、取扱説明書『
5696 \emph on
5697 カスタマイズ篇
5698 \emph default
5699 』の「
5700 \emph on
5701 変換子
5702 \emph default
5703 」の節をご覧ください。
5704 \end_layout
5705
5706 \end_inset
5707
5708 。これらは2つのグループに大別できます。1つは、
5709 \begin_inset Flex Code
5710 status collapsed
5711
5712 \begin_layout Plain Layout
5713 htlatex
5714 \end_layout
5715
5716 \end_inset
5717
5718
5719 \begin_inset Flex Code
5720 status collapsed
5721
5722 \begin_layout Plain Layout
5723 html2latex
5724 \end_layout
5725
5726 \end_inset
5727
5728
5729 \begin_inset Flex Code
5730 status collapsed
5731
5732 \begin_layout Plain Layout
5733 plastex
5734 \end_layout
5735
5736 \end_inset
5737
5738 のように、\SpecialChar LaTeX
5739 を中間形式として用い、その\SpecialChar LaTeX
5740 を生成するのに\SpecialChar LyX
5741 を用いるもの。2つめは、
5742 \begin_inset Flex Code
5743 status collapsed
5744
5745 \begin_layout Plain Layout
5746 e\SpecialChar LyX
5747 er
5748 \end_layout
5749
5750 \end_inset
5751
5752 のように、直接\SpecialChar LyX
5753 ファイルに働きかける変換子です。これらは、それぞれに長所・短所を有しています。
5754 \end_layout
5755
5756 \begin_layout Standard
5757 \SpecialChar LaTeX
5758 ベースの変換子は、原則として、\SpecialChar LaTeX
5759 が書きだす文書についてのすべてを知っているという長所があります。この種の変換子は、例えば、特定のコードのくだりが、\SpecialChar LyX
5760 によって生成され
5761 たのか、\SpecialChar TeX
5762 コードで書かれたのかについては気にしません。これらの変換子は、
5763 \begin_inset Flex Code
5764 status collapsed
5765
5766 \begin_layout Plain Layout
5767 aux
5768 \end_layout
5769
5770 \end_inset
5771
5772 ファイルやカウンタや参照を取り扱うことができ、Bib\SpecialChar TeX
5773 が生成する
5774 \begin_inset Flex Code
5775 status collapsed
5776
5777 \begin_layout Plain Layout
5778 bbl
5779 \end_layout
5780
5781 \end_inset
5782
5783 ファイルも利用することがよくあります。一方で、\SpecialChar LaTeX
5784 は解析の非常に難しい言語であり—\SpecialChar TeX
5785 自身だけが\SpecialChar TeX
5786 を理解することができると言われたりすることがあります—、\SpecialChar LaTeX
5787 ベースの変換子は
5788 、非常に簡単な文法に見えるものでさえ飲み込めず、複雑なものになると全く歯が立たないこともあります。例えば、この現行を書いている時点では、取扱説明書『
5789 \emph on
5790 埋込オブジェクト篇
5791 \emph default
5792 』は、他の変換子では書き出しができるのに、
5793 \begin_inset Flex Code
5794 status collapsed
5795
5796 \begin_layout Plain Layout
5797 htlatex
5798 \end_layout
5799
5800 \end_inset
5801
5802 では行うことができません。他には、数式をどう取り扱うかという問題があります。これらの変換子の典型的なものは、数式を小さな画像に変換して、HTML文書からこれらの
5803 画像へのリンクを張ります。これらの画像は、実は\SpecialChar LaTeX
5804 によって生成されているので、正確です。しかしながら、これらはうまく伸縮できないので、実際の文書の中で表現されるよう
5805 に—フォント寸が凡そ正しくなるように—見せようとすると、大変な苦労を伴います。
5806 \end_layout
5807
5808 \begin_layout Standard
5809 Alex Fernandezの
5810 \begin_inset Flex Code
5811 status collapsed
5812
5813 \begin_layout Plain Layout
5814 e\SpecialChar LyX
5815 er
5816 \end_layout
5817
5818 \end_inset
5819
5820  (
5821 \begin_inset CommandInset href
5822 LatexCommand href
5823 name "http://elyxer.nongnu.org/"
5824 target "http://elyxer.nongnu.org/"
5825
5826 \end_inset
5827
5828 )は、これらの問題の一部を解決します。特に、これは数式を画像に変換するのではなく、HTMLとCSSを組み合わせて数式を生成するので、生成される数式は完璧な大きさ
5829 に伸縮されて表示されます。しかしながら、ちょっとだけ複雑な数式でさえ、
5830 \begin_inset Flex Code
5831 status collapsed
5832
5833 \begin_layout Plain Layout
5834 htlatex
5835 \end_layout
5836
5837 \end_inset
5838
5839 よりも質が落ちます。これはHTMLの限界を示しています
5840 \begin_inset Foot
5841 status collapsed
5842
5843 \begin_layout Plain Layout
5844 とはいえ、
5845 \begin_inset Flex Code
5846 status collapsed
5847
5848 \begin_layout Plain Layout
5849 e\SpecialChar LyX
5850 er
5851 \end_layout
5852
5853 \end_inset
5854
5855 では、数式用にjsMathとMathJaxを使用することもできます。ただし、この設定はグローバルにしか設定することができず、バックエンドで実行させるサーバへのア
5856 クセスが利用できる必要があります。
5857 \end_layout
5858
5859 \end_inset
5860
5861 。さらに重要なことは(少なくとも第1.1.1版においては)、
5862 \begin_inset Flex Code
5863 status collapsed
5864
5865 \begin_layout Plain Layout
5866 e\SpecialChar LyX
5867 er
5868 \end_layout
5869
5870 \end_inset
5871
5872 は数式マクロを一部しかサポートしておらず、ユーザ定義の段落様式や文字様式をサポートしていません。これらの制約によって、\SpecialChar LyX
5873 ユーザが生成する文書の多くにとっては、
5874 \begin_inset Flex Code
5875 status collapsed
5876
5877 \begin_layout Plain Layout
5878 e\SpecialChar LyX
5879 er
5880 \end_layout
5881
5882 \end_inset
5883
5884 は不向きなものになっています。もちろん、原理的に、これらの問題を解決することもできたのですが、\SpecialChar LyX
5885 開発陣は別の方法を採ることとし、\SpecialChar LyX
5886 が\SpecialChar LaTeX
5887 やDocBook、平文を書き出す
5888 ことができるのと同様に、\SpecialChar LyX
5889 自身にXHTMLを書きだす能力を身につけさせることとしたのです。
5890 \end_layout
5891
5892 \begin_layout Standard
5893 この原稿執筆時点では、XHTML出力は開発途上であり、おそらく「実験的」機能として解されるべきでしょう
5894 \begin_inset Foot
5895 status collapsed
5896
5897 \begin_layout Plain Layout
5898 \SpecialChar LyX
5899 ソースツリーもしくは
5900 \begin_inset CommandInset href
5901 LatexCommand href
5902 name "オンラインでのアクセス"
5903 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
5904
5905 \end_inset
5906
5907 にある
5908 \begin_inset Flex Code
5909 status collapsed
5910
5911 \begin_layout Plain Layout
5912 development/HTML.notes
5913 \end_layout
5914
5915 \end_inset
5916
5917 ファイルには、通常、XHTML出力の現状についての最新の情報が収録されています。
5918 \begin_inset CommandInset href
5919 LatexCommand href
5920 name "バグ追跡ページ"
5921 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"
5922
5923 \end_inset
5924
5925 にあるXHTML関連バグ一覧も参照のこと。
5926 \end_layout
5927
5928 \end_inset
5929
5930 。それでもこのアプローチは、他の2つの方法よりも、潜在的な利点がいくつもあるので、開発陣はこの方法を選択したのです。
5931 \end_layout
5932
5933 \begin_layout Standard
5934 これらの利点は、主に、XHTML出力ルーチンが\SpecialChar LyX
5935 の一部となっているため、\SpecialChar LyX
5936 が出力する文書について\SpecialChar LyX
5937 が関知しているところのものは、すべて知り得るというところから来ていま
5938
5939 \begin_inset Foot
5940 status collapsed
5941
5942 \begin_layout Plain Layout
5943 他には、これらのルーチンが\SpecialChar LyX
5944 内部にあるため、\SpecialChar LyX
5945 ファイル形式や既存の差込枠の文法に変更があっても、影響を受けずに済むという利点もあります。
5946 \end_layout
5947
5948 \end_inset
5949
5950 。つまり、XHTML出力ルーチンは、(文書構造に表示されるような形での)目次や、それぞれの段落様式に関連付けられたカウンタや、ユーザ定義の様式についても知ってい
5951 るのです。XHTML出力ルーチンは、国際化について\SpecialChar LyX
5952 が関知しているものも知っているので、ちょうどその時に有効になっている言語に依存して、「Chapter
5953  1」と出力されたり、「Kapitel 1」と出力されたりするのです。
5954 \end_layout
5955
5956 \begin_layout Standard
5957 汎く一般的に、出力ルーチンは、\SpecialChar LyX
5958 が文書レイアウトについて関知しているものは知っており、したがって、文書が画面上にどのように描画されるかも知っています。文書をXHT
5959 MLに出力するときには、この情報を利用します。特に、\SpecialChar LyX
5960 は、文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
5961 \emph on
5962 自動的に
5963 \emph default
5964 生成します。もし節見出しが、\SpecialChar LyX
5965 中でサンセリフ体かつボールド体であるとすると、(既定では)ウェブブラウザに表示した時にも、サンセリフでボールドになります。これは、節
5966 のような定義済み様式だけでなく、ユーザ定義のものも含めて、すべての様式でそうです。実際、XHTML出力ルーチンは、ユーザ定義の段落・文字様式と、\SpecialChar LyX
5967 自身の定義済み様
5968 式とを区別しません。どちらの場合も、\SpecialChar LyX
5969 が様式について関知しているところのものは、全てレイアウトファイルに含まれています。これは、脚注のような定義済み差込枠や、各種
5970 ユーザ設定差込枠でもそうです。
5971 \end_layout
5972
5973 \begin_layout Standard
5974 結果として、XHTML出力は、レイアウトファイルやモジュールを通して、\SpecialChar LaTeX
5975 出力と全く同じように、ユーザが設定したり拡張したりすることができるのです。詳細については、
5976 取扱説明書『
5977 \emph on
5978 カスタマイズ篇
5979 \emph default
5980 』の第5章をごらんください。
5981 \end_layout
5982
5983 \begin_layout Standard
5984 本章の残りでは、XHTML出力についての、さらに詳細な情報について取り扱い、その制約や、制約の回避の仕方を取り扱います。
5985 \end_layout
5986
5987 \begin_layout Section
5988 XHTMLにおける数式出力
5989 \end_layout
5990
5991 \begin_layout Standard
5992 \SpecialChar LyX
5993 では、数式描画に4つの方法を選択できます。以下に示すように、それぞれに利点と欠点があります。
5994 \end_layout
5995
5996 \begin_layout Itemize
5997 MathML
5998 \begin_inset Newline newline
5999 \end_inset
6000
6001 MathMLは、ウェブ上で数学を用いるために、特にデザインされたXMLの一方言であり、これをサポートするブラウザ上では、通常、特に美しい表現が得られます。欠点は
6002 、すべてのブラウザがMathMLをサポートしているわけではないという事と、FirefoxのようなGeckoベースのブラウザでも、サポートが完璧ではないという事で
6003 す。
6004 \begin_inset Newline newline
6005 \end_inset
6006
6007 例えば、数式が
6008 \begin_inset Flex Code
6009 status collapsed
6010
6011 \begin_layout Plain Layout
6012 xymatrix
6013 \end_layout
6014
6015 \end_inset
6016
6017 パッケージを使用していたり、\SpecialChar TeX
6018 コードを使用しているなどで、もし\SpecialChar LyX
6019 が数式をMathMLとして描画できないとすると、\SpecialChar LyX
6020 は数式を代わりに画像として出力します。
6021  
6022 \end_layout
6023
6024 \begin_layout Itemize
6025 HTML
6026 \begin_inset Newline newline
6027 \end_inset
6028
6029 前述のとおり、
6030 \begin_inset Flex Code
6031 status collapsed
6032
6033 \begin_layout Plain Layout
6034 elyxer
6035 \end_layout
6036
6037 \end_inset
6038
6039 は、数式をCSSで装飾したHTMLとして出力します
6040 \begin_inset Foot
6041 status collapsed
6042
6043 \begin_layout Plain Layout
6044 \SpecialChar LyX
6045 は、
6046 \begin_inset Flex Code
6047 status collapsed
6048
6049 \begin_layout Plain Layout
6050 elyxer
6051 \end_layout
6052
6053 \end_inset
6054
6055 からのHTML出力のために、CSSの一部を拝借しています。
6056 \end_layout
6057
6058 \end_inset
6059
6060 。簡単な数式では、これは非常にうまく行きますが、少し複雑な数式になると、
6061 \begin_inset Flex Code
6062 status collapsed
6063
6064 \begin_layout Plain Layout
6065 elyxer
6066 \end_layout
6067
6068 \end_inset
6069
6070 は歯が立たなくなります。それでも、この方法は非常に広くサポートされているという利点があり、かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう。
6071 \begin_inset Newline newline
6072 \end_inset
6073
6074 例えば、数式が
6075 \begin_inset Flex Code
6076 status collapsed
6077
6078 \begin_layout Plain Layout
6079 xymatrix
6080 \end_layout
6081
6082 \end_inset
6083
6084 パッケージを使用していたり、\SpecialChar TeX
6085 コードを使用しているなどで、もし\SpecialChar LyX
6086 が数式をHTMLとして描画できないとすると、\SpecialChar LyX
6087 は数式を代わりに画像として出力します。
6088  
6089 \end_layout
6090
6091 \begin_layout Itemize
6092 画像
6093 \begin_inset Newline newline
6094 \end_inset
6095
6096
6097 \begin_inset Flex Code
6098 status collapsed
6099
6100 \begin_layout Plain Layout
6101 htlatex
6102 \end_layout
6103
6104 \end_inset
6105
6106 のように、\SpecialChar LyX
6107 は数式を画像としても出力できます。この画像は、実は、自動プレビューで使用されているものと全く同じです
6108 \begin_inset Foot
6109 status collapsed
6110
6111 \begin_layout Plain Layout
6112 ただし、画像を出力に使うために、自動プレビューを入にしておく必要は
6113 \emph on
6114 ありません
6115 \emph default
6116
6117 \end_layout
6118
6119 \end_inset
6120
6121 。この方法の利点は、画像が他ならぬ\SpecialChar LaTeX
6122 によって生成されているので、非常に正確であることです。欠点は、前述したとおり、画像がビットマップなので、伸縮が全くうまく行かな
6123 かったり、コピーが出来なかったりといったことがあります(執筆時点においては、数式の付番にも問題があります。
6124 \begin_inset CommandInset href
6125 LatexCommand href
6126 name "バグ 6894"
6127 target "http://www.lyx.org/trac/ticket/6894"
6128
6129 \end_inset
6130
6131 を参照のこと。)。
6132 \begin_inset Newline newline
6133 \end_inset
6134
6135 画像の寸法は、
6136 \begin_inset Flex MenuItem
6137 status collapsed
6138
6139 \begin_layout Plain Layout
6140 文書\SpecialChar menuseparator
6141 設定\SpecialChar menuseparator
6142 出力
6143 \end_layout
6144
6145 \end_inset
6146
6147 の「数式画像の伸縮」パラメータを変更することで制御できます
6148 \begin_inset Foot
6149 status collapsed
6150
6151 \begin_layout Plain Layout
6152 必要な方のために述べておくと、これは、画像の解像度をdpi (1インチあたりドット数)で制御するためのもので、75dpiを基準としています。
6153 \end_layout
6154
6155 \end_inset
6156
6157
6158 \begin_inset Newline newline
6159 \end_inset
6160
6161 もし\SpecialChar LyX
6162 が、何らかの理由によって数式の画像を生成できない(例えば、必要な\SpecialChar LaTeX
6163 パッケージが導入済みでないなど)ときは、回避策として、生の\SpecialChar LaTeX
6164 を出力します。
6165 \end_layout
6166
6167 \begin_layout Itemize
6168 \SpecialChar LaTeX
6169
6170 \begin_inset Newline newline
6171 \end_inset
6172
6173 最後に、\SpecialChar LyX
6174 は、数式を\SpecialChar LaTeX
6175 としても出力することができます。この方法は、最終手段としての出力方法である一方で、HTML文書に埋め込まれた\SpecialChar LaTeX
6176 を描画するのにJavaScript
6177 を使用する、
6178 \begin_inset CommandInset href
6179 LatexCommand href
6180 name "jsMath"
6181 target "http://www.math.union.edu/~dpvc/jsMath/"
6182
6183 \end_inset
6184
6185 のようなツールとともに使用することもできます。\SpecialChar LyX
6186 は、jsMathで必要とされているのと同じように、\SpecialChar LaTeX
6187 部分を、
6188 \begin_inset Flex Code
6189 status collapsed
6190
6191 \begin_layout Plain Layout
6192 span
6193 \end_layout
6194
6195 \end_inset
6196
6197 (行内数式用)または
6198 \begin_inset Flex Code
6199 status collapsed
6200
6201 \begin_layout Plain Layout
6202 div
6203 \end_layout
6204
6205 \end_inset
6206
6207 (別行立て数式用)に
6208 \begin_inset Flex Code
6209 status collapsed
6210
6211 \begin_layout Plain Layout
6212 class='math'
6213 \end_layout
6214
6215 \end_inset
6216
6217 を指定したもので、包んで出力します。
6218 \end_layout
6219
6220 \begin_layout Standard
6221 これらの出力方法のいずれかを
6222 \begin_inset Flex MenuItem
6223 status collapsed
6224
6225 \begin_layout Plain Layout
6226 文書\SpecialChar menuseparator
6227 設定\SpecialChar menuseparator
6228 出力
6229 \end_layout
6230
6231 \end_inset
6232
6233 で選択しなくてはなりません。既定では、\SpecialChar LyX
6234 はMathMLで出力を行います。これは、文書全体に適用される設定となります。
6235 \end_layout
6236
6237 \begin_layout Standard
6238 最後に、\SpecialChar LyX
6239 では、例えば、MathMLではあまりうまく出力されないような差込枠に対して、別の出力方法を選択できる選択肢が用意されています
6240 \begin_inset Foot
6241 status collapsed
6242
6243 \begin_layout Plain Layout
6244 その他にも、\SpecialChar LyX
6245 は、差込枠に\SpecialChar TeX
6246 コードが含まれていると画像出力に回帰するので、数式中に
6247 \begin_inset Formula $a=b\relax$
6248 \end_inset
6249
6250 のような無害な\SpecialChar TeX
6251 コードを挿入することによって、画像出力を強制することができます。
6252 \end_layout
6253
6254 \end_inset
6255
6256
6257 \end_layout
6258
6259 \begin_layout Section
6260 書誌情報と引用
6261 \end_layout
6262
6263 \begin_layout Standard
6264 XHTML出力は、書誌情報と引用を完全にサポートしています。
6265 \end_layout
6266
6267 \begin_layout Standard
6268 引用ラベルは、\SpecialChar LyX
6269 画面上のラベルを生成するのと同じ機構で生成されているので、出力中のラベルは、\SpecialChar LyX
6270 中の外見と同質またはそれよりも上質な仕上がりとなっています。連番引用を
6271 使用している場合には、\SpecialChar LyX
6272 は、画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく、[1]や[17]などの連番ラベルを出力します。著者-出版年
6273 形式の引用を使用している場合で、同じ著者-出版年の組み合わせが複数ある場合、\SpecialChar LyX
6274 は、Bib\SpecialChar TeX
6275 が行うように出版年に小文字を付します。ラベルは、書誌情報項目とともに印字さ
6276 れます。現在のところ、角括弧を丸括弧に変更するなど、ラベルの外見を変更する手段はありませんのでご注意ください。
6277 \end_layout
6278
6279 \begin_layout Standard
6280 書誌情報出力は、引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので、XHTML出力は、引用ダイアログで特定の文献項目を表示させた時のものに
6281 非常によく似ています。整形の仕方は、レイアウトファイルや望ましくはモジュールでカスタマイズすることができます。詳細については、取扱説明書『カスタマイズ篇』をご覧
6282 ください。
6283 \end_layout
6284
6285 \begin_layout Standard
6286 現在のところ、主だった瑕疵は、相互参照された情報が、関連した項目の全てに印字されてしまうことです。つまり、以下のような表示が為されます。
6287 \end_layout
6288
6289 \begin_layout Quote
6290 Jason Stanley, 
6291 \begin_inset Quotes eld
6292 \end_inset
6293
6294 Context and Logical Form
6295 \begin_inset Quotes erd
6296 \end_inset
6297
6298 , in 
6299 \emph on
6300 Language in Context: Selected Essays
6301 \emph default
6302  (Oxford: Oxford University Press, 2007), pp.
6303  30–68.
6304 \end_layout
6305
6306 \begin_layout Quote
6307 Jason Stanley, 
6308 \begin_inset Quotes eld
6309 \end_inset
6310
6311 Semantics in Context
6312 \begin_inset Quotes erd
6313 \end_inset
6314
6315 , in 
6316 \emph on
6317 Language in Context: Selected Essays
6318 \emph default
6319  (Oxford: Oxford University Press, 2007), pp.
6320  201–30.
6321 \end_layout
6322
6323 \begin_layout Standard
6324 これは、遠くないうちに修正されるでしょう。
6325 \end_layout
6326
6327 \begin_layout Standard
6328 現在のところ、節ごとの書誌情報出力はサポートされていません。複数の書誌情報がある場合には、\SpecialChar LyX
6329 は同じ情報を繰り返し出力してしまいます。
6330 \end_layout
6331
6332 \begin_layout Section
6333 索引
6334 \end_layout
6335
6336 \begin_layout Standard
6337 \SpecialChar LyX
6338 は、索引をXHTMLとして書きだすことができますが、現在のところ、若干の制約があります。
6339 \end_layout
6340
6341 \begin_layout Standard
6342 索引の書き出しは、
6343 \emph on
6344 ユーザーの手引き
6345 \emph default
6346 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが、信頼性が保てます
6347 \begin_inset Foot
6348 status collapsed
6349
6350 \begin_layout Plain Layout
6351 ここでの主な問題は、これらの操作の際に、\SpecialChar LyX
6352 自身は何もしていないという点です。つまり、生の\SpecialChar LaTeX
6353 で入力しなくてはならないようなものをそのまま入力しているのです。
6354 \end_layout
6355
6356 \end_inset
6357
6358 。当該節の小節見出しに沿って、それらがどう処理されるかを説明しましょう。
6359 \end_layout
6360
6361 \begin_layout Itemize
6362 索引項目のグループ化(下層項目): \SpecialChar LyX
6363 はこれらをサポートしようと努めていますが、項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません。これは、そうしな
6364 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです。
6365 \end_layout
6366
6367 \begin_layout Itemize
6368 ページ範囲: ページ範囲については、XHTMLでは意味がないので、全くサポートされません。その代わりに、引用項目のはじめと終わりの頁それぞれに、2つの索引項目が
6369 得られるだけです。
6370 \end_layout
6371
6372 \begin_layout Itemize
6373 相互参照: 相互参照のサポートはありません。\SpecialChar LyX
6374 が「|see\SpecialChar ldots
6375 」という下だりを持つ項目を検出すると、その部分はただ無視されて、残りの部分が通常の索引項目だとみなされま
6376 す。
6377 \end_layout
6378
6379 \begin_layout Itemize
6380 索引項目の整序: \SpecialChar LyX
6381 は整序順の変更をサポートします。\SpecialChar LyX
6382 は、最初に検出した「@」の前の部分を取り出して、それを整序に用い、最初の「@」の後の部分を実際の項目として取り
6383 出します。現在のところ、\SpecialChar LyX
6384 はエスケープされた「@」を取り扱わないので、電子メールアドレスを索引に使わないでください。
6385 \end_layout
6386
6387 \begin_layout Itemize
6388 索引項目のレイアウト: 項目は、テキスト様式ダイアログを使うなり、\SpecialChar LyX
6389 内で使用可能な方法を用いることで、索引項目を成形することができます。「項目|textbf」のよ
6390 うな文法はサポートされません。\SpecialChar LyX
6391 は、項目内にパイプ記号「|」を検出すると、パイプ記号とその後に続くものすべてを削除してしまいます。
6392 \end_layout
6393
6394 \begin_layout Itemize
6395 複数の索引: 複数の索引はサポートされていません。すべての項目は、ひとつの大きな索引として印字されます。索引が何度も印字されることを防ぐため、中心となる索引だけ
6396 を印字しますので、その索引は必ず置くようにしてください。
6397 \end_layout
6398
6399 \begin_layout Section
6400 記号一覧および用語集
6401 \end_layout
6402
6403 \begin_layout Standard
6404 現在のところ、用語集のサポートはありません。この機能の追加は、比較的容易だと思われますので、あなたの貢献をお待ちしております。
6405 \end_layout
6406
6407 \begin_layout Chapter
6408 \SpecialChar LyX
6409 サーバー
6410 \begin_inset CommandInset label
6411 LatexCommand label
6412 name "chap:LyXサーバー"
6413
6414 \end_inset
6415
6416
6417 \end_layout
6418
6419 \begin_layout Section
6420 はじめに
6421 \end_layout
6422
6423 \begin_layout Standard
6424 「\SpecialChar LyX
6425 サーバー」を使用すると、他のプログラムが、\SpecialChar LyX
6426 と通信したり、\SpecialChar LyX
6427 コマンドを実行させたり、\SpecialChar LyX
6428 の内部状態に関する情報を取得したりすることができるようになります。これは熟練し
6429 たユーザー向けの機能ですが、便利なはずです。たとえば、\SpecialChar LyX
6430 サーバーに書き込むことによって、JabRefのような書誌情報管理ソフトが、LyXに文献引用を「押し込む」こ
6431 とが可能となります。
6432 \end_layout
6433
6434 \begin_layout Section
6435 \SpecialChar LyX
6436 サーバーを開始するには
6437 \end_layout
6438
6439 \begin_layout Standard
6440 \SpecialChar LyX
6441 サーバーは、名前をつけたパイプの対を利用することで機能します。パイプは、通常
6442 \begin_inset Flex Code
6443 status collapsed
6444
6445 \begin_layout Plain Layout
6446 UserDir
6447 \end_layout
6448
6449 \end_inset
6450
6451 の下に作られ(Windowsを除く。Windowsでは、名前を付けた
6452 \emph on
6453 ローカルの
6454 \emph default
6455 パイプは
6456 \begin_inset Flex Code
6457 status collapsed
6458
6459 \begin_layout Plain Layout
6460
6461 \backslash
6462
6463 \backslash
6464 .
6465 \backslash
6466 pipe
6467 \end_layout
6468
6469 \end_inset
6470
6471 に特別なオブジェクトとして置かれます)、「
6472 \begin_inset Flex Code
6473 status collapsed
6474
6475 \begin_layout Plain Layout
6476 .lyxpipe.in
6477 \end_layout
6478
6479 \end_inset
6480
6481 」および「
6482 \begin_inset Flex Code
6483 status collapsed
6484
6485 \begin_layout Plain Layout
6486 .lyxpipe.out
6487 \end_layout
6488
6489 \end_inset
6490
6491 」という名前がついています。外部プログラムは、
6492 \begin_inset Flex Code
6493 status collapsed
6494
6495 \begin_layout Plain Layout
6496 .lyxpipe.in
6497 \end_layout
6498
6499 \end_inset
6500
6501 に書き込みを行い、戻りデータを
6502 \begin_inset Flex Code
6503 status collapsed
6504
6505 \begin_layout Plain Layout
6506 .lyxpipe.out
6507 \end_layout
6508
6509 \end_inset
6510
6511 から読み出します。パイプ名の語幹は、
6512 \begin_inset Flex MenuItem
6513 status collapsed
6514
6515 \begin_layout Plain Layout
6516 ツール\SpecialChar menuseparator
6517 設定
6518 \end_layout
6519
6520 \end_inset
6521
6522 から、たとえば「
6523 \begin_inset Flex Code
6524 status collapsed
6525
6526 \begin_layout Plain Layout
6527 /home/myhome/lyxpipe
6528 \end_layout
6529
6530 \end_inset
6531
6532 」あるいはWindowsでは「
6533 \begin_inset Flex Code
6534 status collapsed
6535
6536 \begin_layout Plain Layout
6537
6538 \backslash
6539
6540 \backslash
6541 .
6542 \backslash
6543 pipe
6544 \backslash
6545 lyxpipe
6546 \end_layout
6547
6548 \end_inset
6549
6550 」などに設定することができます
6551 \lang english
6552 (where any working path instead of lyxpipe can be used, for example 
6553 \begin_inset Flex Code
6554 status collapsed
6555
6556 \begin_layout Plain Layout
6557
6558 \lang english
6559 "
6560 \backslash
6561
6562 \backslash
6563 .
6564 \backslash
6565 pipe
6566 \backslash
6567 my
6568 \backslash
6569 lyx
6570 \backslash
6571 pipe"
6572 \end_layout
6573
6574 \end_inset
6575
6576  would also work)
6577 \lang japanese
6578 。サーバーを開始するためには、これを
6579 \emph on
6580 手動で設定しなくてはなりません
6581 \emph default
6582
6583 \end_layout
6584
6585 \begin_layout Standard
6586 \SpecialChar LyX
6587 は、パイプを生成するに際して、「
6588 \begin_inset Flex Code
6589 status collapsed
6590
6591 \begin_layout Plain Layout
6592 .in
6593 \end_layout
6594
6595 \end_inset
6596
6597 」および「
6598 \begin_inset Flex Code
6599 status collapsed
6600
6601 \begin_layout Plain Layout
6602 .out
6603 \end_layout
6604
6605 \end_inset
6606
6607 」を付け加えます。パイプがすでに存在していれば、\SpecialChar LyX
6608 は他の\SpecialChar LyX
6609 プロセスがすでに実行中であると判断して、サーバーを開始しません。POSIX(Unix型)システムでは、なん
6610 らかの理由で、\SpecialChar LyX
6611 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると、\SpecialChar LyX
6612 はこれを削除しようとします。何らかの理由でこれが失敗した場合、手動でパイ
6613 プを削除したのちに、\SpecialChar LyX
6614 を再起動する必要があります。Windowsでは、プログラムが終了したりクラッシュしたりすると、OSがパイプを削除するので、「古い」パイプが残
6615 ることはありません。
6616 \end_layout
6617
6618 \begin_layout Standard
6619 サーバーを使用する\SpecialChar LyX
6620 プロセスを複数起動するには、それぞれのプロセスに、別のユーザーディレクトリを使用させたり、別々の
6621 \begin_inset Flex Code
6622 status collapsed
6623
6624 \begin_layout Plain Layout
6625 preferences
6626 \end_layout
6627
6628 \end_inset
6629
6630 ファイルを使用させるなど、別々の設定を使用する必要があります。
6631 \end_layout
6632
6633 \begin_layout Standard
6634 クライアントプログラムを開発しようとされているのであれば、\SpecialChar LyX
6635 サーバーからのデバッグ情報を有効にすると便利かもしれません。そのためには、Lyxを
6636 \begin_inset Flex Code
6637 status collapsed
6638
6639 \begin_layout Plain Layout
6640 lyx -dbg lyxserver
6641 \end_layout
6642
6643 \end_inset
6644
6645 として起動してください。
6646 \end_layout
6647
6648 \begin_layout Standard
6649 C++言語で書かれた完全なサンプルクライアントが、ソース頒布版の
6650 \begin_inset Newline newline
6651 \end_inset
6652
6653
6654 \begin_inset Flex Code
6655 status collapsed
6656
6657 \begin_layout Plain Layout
6658 development/lyxserver/server_monitor.cpp
6659 \end_layout
6660
6661 \end_inset
6662
6663 にあります。
6664 \end_layout
6665
6666 \begin_layout Standard
6667 もう一つの便利なツールとして、
6668 \begin_inset Flex Code
6669 status collapsed
6670
6671 \begin_layout Plain Layout
6672 src/client/lyxclient
6673 \end_layout
6674
6675 \end_inset
6676
6677 にあるコマンドラインベースのクライアントがあります。
6678 \end_layout
6679
6680 \begin_layout Section
6681 通常の通信
6682 \end_layout
6683
6684 \begin_layout Standard
6685 \SpecialChar LyX
6686 コールを発行するには、クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません。この行は、以下の書式を持ちます。
6687 \end_layout
6688
6689 \begin_layout Quote
6690 LYXCMD:
6691 \emph on
6692 クライアント名
6693 \emph default
6694 :
6695 \emph on
6696 関数
6697 \emph default
6698 :
6699 \emph on
6700 引数
6701 \end_layout
6702
6703 \begin_layout Description
6704 クライアント名 は、クライアントが自由に選べる名前です。これが用いられるのは、クライアントが他の要求クライアントから結果を見分けることができるように、\SpecialChar LyX
6705 が返答をす
6706 る際、クライアント名をエコーするときだけです。
6707 \end_layout
6708
6709 \begin_layout Description
6710 関数 は、\SpecialChar LyX
6711 に実行させたい関数です。これは、ミニバッファで使用するコマンドと同じです。
6712 \end_layout
6713
6714 \begin_layout Description
6715 引数 は、一部の関数のみに効力を持つオプションの引数です(たとえば、「自己挿入」LFUNは、現在のカーソル位置に引数を文章として挿入します)。
6716 \end_layout
6717
6718 \begin_layout Standard
6719 \SpecialChar LyX
6720 からの返答は、出力パイプに送り出され、
6721 \end_layout
6722
6723 \begin_layout Quote
6724 INFO:
6725 \emph on
6726 クライアント名
6727 \emph default
6728 :
6729 \emph on
6730 関数
6731 \emph default
6732 :
6733 \emph on
6734 データ
6735 \end_layout
6736
6737 \begin_layout Standard
6738 の書式をしています。ここで
6739 \emph on
6740 クライアント名
6741 \emph default
6742
6743 \emph on
6744 関数
6745 \emph default
6746 は、コマンド要求からそのままエコーされますが、
6747 \emph on
6748 データ
6749 \emph default
6750 はコマンド実行の結果に依存した、多少なりとも有用な情報です。「font-state」のような一部のコマンドは、\SpecialChar LyX
6751 の内部状態に関する情報を返しますが、空のデータ応答
6752 を返すものもあります。空のデータ返答は、コマンド実行が無事終わったことを意味します。
6753 \end_layout
6754
6755 \begin_layout Standard
6756 エラーが発生した場合の\SpecialChar LyX
6757 の返答は
6758 \end_layout
6759
6760 \begin_layout Quote
6761 ERROR:
6762 \emph on
6763 クライアント名
6764 \emph default
6765 :
6766 \emph on
6767 関数
6768 \emph default
6769 :
6770 \emph on
6771 エラーメッセージ
6772 \end_layout
6773
6774 \begin_layout Standard
6775 の書式をしており、
6776 \emph on
6777 エラーメッセージ
6778 \emph default
6779 には、なぜコマンドが失敗したかの説明が入っているはずです。
6780 \end_layout
6781
6782 \begin_layout Standard
6783 (例)
6784 \end_layout
6785
6786 \begin_layout LyX-Code
6787 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6788 \begin_inset Newline newline
6789 \end_inset
6790
6791 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6792 \begin_inset Newline newline
6793 \end_inset
6794
6795 read a <~/.lyxpipe.out
6796 \begin_inset Newline newline
6797 \end_inset
6798
6799 echo $a
6800 \end_layout
6801
6802 \begin_layout Section
6803 通知
6804 \end_layout
6805
6806 \begin_layout Standard
6807 \SpecialChar LyX
6808 は、発生しているイベントを、非同期的にクライアントに通知することができます。いまのところ、ユーザーがある
6809 \begin_inset Flex Ruby
6810 status collapsed
6811
6812 \begin_layout Plain Layout
6813
6814 \begin_inset Argument post:1
6815 status collapsed
6816
6817 \begin_layout Plain Layout
6818 キー
6819 \end_layout
6820
6821 \end_inset
6822
6823
6824 \end_layout
6825
6826 \end_inset
6827
6828 列を関数「notify」に割り当てているときのみ、\SpecialChar LyX
6829 はこの通知を行います。\SpecialChar LyX
6830 が送る文字列の書式は
6831 \end_layout
6832
6833 \begin_layout Quote
6834 \begin_inset Flex Code
6835 status collapsed
6836
6837 \begin_layout Plain Layout
6838 NOTIFY:
6839 \end_layout
6840
6841 \end_inset
6842
6843
6844 \emph on
6845 鍵列
6846 \end_layout
6847
6848 \begin_layout Standard
6849 となっていて、
6850 \emph on
6851 鍵列
6852 \emph default
6853 は、ユーザーが実際に打鍵した鍵列の印字表現になります。
6854 \end_layout
6855
6856 \begin_layout Standard
6857 この機構は、\SpecialChar LyX
6858 のコマンド群を拡張してマクロを実装するのに使用することができます。なんらかの鍵列を「notify」に割り当ててください。それから出力パイプで待機する
6859 クライアントを起動し、鍵列に応じたコマンドを読み込み、一つないし複数の\SpecialChar LyX
6860 コマンドを発行する\SpecialChar LyX
6861 要求と\SpecialChar LyX
6862 コールを使用する関数を開始するのです。
6863 \end_layout
6864
6865 \begin_layout Section
6866 単純な\SpecialChar LyX
6867 サーバープロトコル
6868 \end_layout
6869
6870 \begin_layout Standard
6871 \SpecialChar LyX
6872 は、セッション管理に使用することができる単純なプロトコルを実装しています。メッセージは、すべて
6873 \end_layout
6874
6875 \begin_layout Quote
6876 LYXSRV:
6877 \emph on
6878 クライアント名
6879 \emph default
6880 :
6881 \emph on
6882 プロトコルメッセージ
6883 \end_layout
6884
6885 \begin_layout Standard
6886 の書式をしており、
6887 \emph on
6888 プロトコルメッセージ
6889 \emph default
6890 は「hello」ないし「bye」です。クライアントから「hello」を受け取ると、\SpecialChar LyX
6891 はメッセージを聴いていることをクライアントに伝えるために返答をし、\SpecialChar LyX
6892 が終了するこ
6893 とをクライアントに伝えるのには、\SpecialChar LyX
6894 が「bye」を送信します。
6895 \end_layout
6896
6897 \begin_layout Section
6898 DVIとPDFの遡及検索
6899 \end_layout
6900
6901 \begin_layout Standard
6902 DVI/PDFビューア
6903 \begin_inset Foot
6904 status collapsed
6905
6906 \begin_layout Plain Layout
6907 PDFの遡及検索機能を提供しているビューアには、KDE/Linux上のOkularと
6908 \lang english
6909 Qpdfview on Unix
6910 \lang japanese
6911 とMac OS X上のSkim、Windows上のSumatraPDFがあります。
6912 \end_layout
6913
6914 \end_inset
6915
6916 には、遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります。これを使えば、DVI/PDF出力の
6917 特定の場所をクリックすることによって、\SpecialChar LyX
6918 の文書中で対応する行にカーソルを移動させることができます。これを実現するためには、ビューアは\SpecialChar LyX
6919 と情報交換を行う必要があります
6920 。これは、命名パイプ(
6921 \emph on
6922 lyxpipe
6923 \emph default
6924 )を使用するか、\SpecialChar LyX
6925 が作業ディレクトリに生成するUNIXドメインソケット(
6926 \emph on
6927 lyxsocket
6928 \emph default
6929 )を使用する(これは
6930 \begin_inset Flex Code
6931 status collapsed
6932
6933 \begin_layout Plain Layout
6934 lyxclient
6935 \end_layout
6936
6937 \end_inset
6938
6939 プログラムが\SpecialChar LyX
6940 と通信するのに使用している方法です)ことで、\SpecialChar LyX
6941 サーバを経由して実現することができます。場合によっては、ビューアと\SpecialChar LyX
6942 を橋渡しする補助スクリプトを必要とする
6943 ことがあるかもしれませんが、それ以外は、ビューアは\SpecialChar LyX
6944 と直接通信することができます。これは、選んだビューアと基本ソフトに依存します。また、必要とされるビューアの設定
6945 法と遡及検索が実際に行われる方法とにも依存します。したがって、下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします。その前に、DVI/PDF出力
6946 で遡及検索を有効にするためには、一般に何が必要とされるかを説明します。
6947 \end_layout
6948
6949 \begin_layout Subsection
6950 \begin_inset CommandInset label
6951 LatexCommand label
6952 name "subsec:遡及検索"
6953
6954 \end_inset
6955
6956 自動有効化
6957 \end_layout
6958
6959 \begin_layout Standard
6960 \begin_inset Flex MenuItem
6961 status collapsed
6962
6963 \begin_layout Plain Layout
6964 文書\SpecialChar menuseparator
6965 設定\SpecialChar menuseparator
6966 出力
6967 \end_layout
6968
6969 \end_inset
6970
6971 メニューで
6972 \begin_inset Flex MenuItem
6973 status collapsed
6974
6975 \begin_layout Plain Layout
6976 出力と同期
6977 \end_layout
6978
6979 \end_inset
6980
6981 オプションを有効にすれば、ほとんどの場合、\SpecialChar LyX
6982 がすべてをうまくこなしてくれます。その場合、\SpecialChar LyX
6983 は、自動的に、必要なSync\SpecialChar TeX
6984 マクロ(PDFの場合)や、srcltxパッケー
6985 ジ(DVIの場合)を挿入してくれます。このオプションは、
6986 \begin_inset Flex MenuItem
6987 status collapsed
6988
6989 \begin_layout Plain Layout
6990 表示/更新
6991 \end_layout
6992
6993 \end_inset
6994
6995 ツールバーからも容易にアクセスすることができます。
6996 \end_layout
6997
6998 \begin_layout Standard
6999 もし、これとは別の設定が必要な場合には、
7000 \begin_inset Flex MenuItem
7001 status collapsed
7002
7003 \begin_layout Plain Layout
7004 文書\SpecialChar menuseparator
7005 設定\SpecialChar menuseparator
7006 出力\SpecialChar menuseparator
7007 出力と同期
7008 \end_layout
7009
7010 \end_inset
7011
7012 の直下にあるドロップダウンボックスから、自製マクロを選択ないし入力することができます。
7013 \end_layout
7014
7015 \begin_layout Standard
7016 方式として
7017 \begin_inset Flex Code
7018 status collapsed
7019
7020 \begin_layout Plain Layout
7021
7022 \backslash
7023 synctex=1
7024 \end_layout
7025
7026 \end_inset
7027
7028 を用いると、gzip圧縮が有効となることに注意してください。使用しているビューアがgzip圧縮をサポートしていない場合には、代わりに
7029 \begin_inset Flex Code
7030 status collapsed
7031
7032 \begin_layout Plain Layout
7033
7034 \backslash
7035 synctex=-1
7036 \end_layout
7037
7038 \end_inset
7039
7040 を指定してください。
7041 \end_layout
7042
7043 \begin_layout Standard
7044 また、
7045 \begin_inset Flex Code
7046 status collapsed
7047
7048 \begin_layout Plain Layout
7049 srcltx
7050 \end_layout
7051
7052 \end_inset
7053
7054 パッケージや
7055 \begin_inset Flex Code
7056 status collapsed
7057
7058 \begin_layout Plain Layout
7059 src-specials
7060 \end_layout
7061
7062 \end_inset
7063
7064 を取り込むと、組版上、不具合が生じることがあるのでご注意ください。したがって、
7065 \begin_inset Flex Code
7066 status collapsed
7067
7068 \begin_layout Plain Layout
7069 srcltx
7070 \end_layout
7071
7072 \end_inset
7073
7074 パッケージや
7075 \begin_inset Flex Code
7076 status collapsed
7077
7078 \begin_layout Plain Layout
7079 src-specials
7080 \end_layout
7081
7082 \end_inset
7083
7084 を使用している場合には、最終版を組版する際には、出力同期を無効にするべきです。
7085 \end_layout
7086
7087 \begin_layout Standard
7088 自動設定でカバーされている範囲よりも、さらに特殊なものが必要な場合には、出力同期を手動で設定する仕方を述べた次節をお読みください。自動設定で事足りる場合には、自
7089 動設定・手動設定ともに必要となるビューア上の設定を述べた、第
7090 \begin_inset CommandInset ref
7091 LatexCommand ref
7092 reference "subsec:特定のビューアを設定して使うには"
7093
7094 \end_inset
7095
7096 節に進むことができます。
7097 \end_layout
7098
7099 \begin_layout Subsection
7100 手動有効化
7101 \end_layout
7102
7103 \begin_layout Standard
7104 \SpecialChar LaTeX
7105 は、遡及検索のために複数の方法を提供しています。ある方法は
7106 \begin_inset Flex Code
7107 status collapsed
7108
7109 \begin_layout Plain Layout
7110 latex/pdflatex
7111 \end_layout
7112
7113 \end_inset
7114
7115 プログラムに組み込まれており、他の方法は外部パッケージとして提供されています。どちらを選択するかは、お使いの\SpecialChar LaTeX
7116 頒布版が既に特定の方法を提供しているか(組み込みによ
7117 る方法は比較的新しいものです)と、お使いのビューアがそれに対応しているかに依存します。使用可能な方法を以下に述べます。
7118 \end_layout
7119
7120 \begin_layout Subsubsection*
7121 src-special経由のDVI組み込み検索(DVIのみ)
7122 \end_layout
7123
7124 \begin_layout Standard
7125 この方法は、DVIファイルに遡及検索に必要な情報を追加するものです。これは、かなり前の\SpecialChar LaTeX
7126 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7127 頒布版はすべて対応しています)、安定
7128 して動作します。これを有効にするには、
7129 \begin_inset Flex MenuItem
7130 status collapsed
7131
7132 \begin_layout Plain Layout
7133 設定\SpecialChar menuseparator
7134 ファイル処理\SpecialChar menuseparator
7135 変換子
7136 \end_layout
7137
7138 \end_inset
7139
7140
7141 \begin_inset Flex MenuItem
7142 status collapsed
7143
7144 \begin_layout Plain Layout
7145 LaTeX (plain)->DVI
7146 \end_layout
7147
7148 \end_inset
7149
7150 ないし
7151 \begin_inset Flex MenuItem
7152 status collapsed
7153
7154 \begin_layout Plain Layout
7155 LaTeX (plain)->DraftDVI
7156 \end_layout
7157
7158 \end_inset
7159
7160 変換子を
7161 \begin_inset Flex Code
7162 status collapsed
7163
7164 \begin_layout Plain Layout
7165 latex -src-specials $$i
7166 \end_layout
7167
7168 \end_inset
7169
7170 に変更します。もしこれが動作しないときは、お使いの\SpecialChar LaTeX
7171 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります)。
7172 \end_layout
7173
7174 \begin_layout Subsubsection*
7175 外部パッケージ(PDFSyncおよびsrcltx)
7176 \end_layout
7177
7178 \begin_layout Standard
7179
7180 \emph on
7181 pdfsync
7182 \emph default
7183 および
7184 \emph on
7185 srcltx
7186 \emph default
7187 パッケージは、PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します。これを有効にするには、\SpecialChar LyX
7188 プリアンブルで以下のようにパッケージを読み込んで
7189 ください。
7190 \end_layout
7191
7192 \begin_layout Itemize
7193 PDFの遡及検索には
7194 \begin_inset Flex Code
7195 status collapsed
7196
7197 \begin_layout Plain Layout
7198
7199 \backslash
7200 usepackage{pdfsync}
7201 \end_layout
7202
7203 \end_inset
7204
7205
7206 \end_layout
7207
7208 \begin_layout Itemize
7209 DVIの遡及検索には
7210 \begin_inset Flex Code
7211 status collapsed
7212
7213 \begin_layout Plain Layout
7214
7215 \backslash
7216 usepackage[active]{srcltx}
7217 \end_layout
7218
7219 \end_inset
7220
7221
7222 \end_layout
7223
7224 \begin_layout Standard
7225 と書きます。DVIとPDFの両方の遡及検索を実行できるようにするためには、プリアンブルに以下の行を挿入する方法があります。
7226 \end_layout
7227
7228 \begin_layout LyX-Code
7229
7230 \backslash
7231 usepackage{ifpdf}
7232 \begin_inset Newline newline
7233 \end_inset
7234
7235
7236 \backslash
7237 ifpdf
7238 \begin_inset Newline newline
7239 \end_inset
7240
7241   
7242 \backslash
7243 usepackage{pdfsync}
7244 \begin_inset Newline newline
7245 \end_inset
7246
7247
7248 \backslash
7249 else
7250 \begin_inset Newline newline
7251 \end_inset
7252
7253   
7254 \backslash
7255 usepackage[active]{srcltx}
7256 \begin_inset Newline newline
7257 \end_inset
7258
7259
7260 \backslash
7261 fi
7262 \end_layout
7263
7264 \begin_layout Standard
7265 このようにすれば、DVIでもPDF(pdflatex)でも正しいパッケージを使いながら、ファイルを閲覧することができます。
7266 \end_layout
7267
7268 \begin_layout Standard
7269 なお、PDFSyncは、文書の出力レイアウトに干渉する可能性があるので注意してください。したがって、仕上がり文書ではPDFSyncを無効にすることをお勧めします
7270
7271 \end_layout
7272
7273 \begin_layout Subsubsection*
7274 Sync\SpecialChar TeX
7275 を使った組み込み遡及検索(DVIおよびPDF)
7276 \end_layout
7277
7278 \begin_layout Standard
7279 \begin_inset Flex Code
7280 status collapsed
7281
7282 \begin_layout Plain Layout
7283 (pdf)latex
7284 \end_layout
7285
7286 \end_inset
7287
7288 の最近のバージョンは、PDFおよびDVI両方の遡及検索を組み込みでサポートしています。このいわゆる
7289 \emph on
7290 Sync\SpecialChar TeX
7291
7292 \emph default
7293 機能は、主に、PDFSyncパッケージをpdftexプログラムへ統合したことと、それをsrc-specialsアプローチへ取り込んだことの成果です。これを使用す
7294 るためには、少なくとも\SpecialChar TeX
7295 Live 2008か最近のMik\SpecialChar TeX
7296 頒布版が必要です。また、既にSync\SpecialChar TeX
7297 サポートを提供しているPDFビューアは少ししかありません(
7298 \lang english
7299 Okular and Qpdfview on Unix, 
7300 \lang japanese
7301 Mac上のSkimとWindows上のSumatraPDF)。
7302 \end_layout
7303
7304 \begin_layout Standard
7305 DVI出力でSync\SpecialChar TeX
7306 を有効にするには、
7307 \begin_inset Flex MenuItem
7308 status collapsed
7309
7310 \begin_layout Plain Layout
7311 設定\SpecialChar menuseparator
7312 ファイル処理\SpecialChar menuseparator
7313 変換子
7314 \end_layout
7315
7316 \end_inset
7317
7318
7319 \begin_inset Flex MenuItem
7320 status collapsed
7321
7322 \begin_layout Plain Layout
7323 LaTeX (plain)->DVI
7324 \end_layout
7325
7326 \end_inset
7327
7328 ないし
7329 \begin_inset Flex MenuItem
7330 status collapsed
7331
7332 \begin_layout Plain Layout
7333 LaTeX (plain)->DraftDVI
7334 \end_layout
7335
7336 \end_inset
7337
7338 変換子を
7339 \begin_inset Flex Code
7340 status collapsed
7341
7342 \begin_layout Plain Layout
7343 latex -synctex=1 $$i
7344 \end_layout
7345
7346 \end_inset
7347
7348 に変更します。PDF出力用には、
7349 \begin_inset Flex MenuItem
7350 status collapsed
7351
7352 \begin_layout Plain Layout
7353 LaTeX (pdflatex)->PDF (pdflatex)
7354 \end_layout
7355
7356 \end_inset
7357
7358 変換子を
7359 \begin_inset Flex Code
7360 status collapsed
7361
7362 \begin_layout Plain Layout
7363 pdflatex -synctex=1 $$i
7364 \end_layout
7365
7366 \end_inset
7367
7368 に変更してください。また、ビューアをSync\SpecialChar TeX
7369 で使うのに設定を行う必要があるかどうか、お使いのビューアの取扱説明書をご確認ください。
7370 \begin_inset Foot
7371 status collapsed
7372
7373 \begin_layout Plain Layout
7374 \begin_inset Flex Code
7375 status collapsed
7376
7377 \begin_layout Plain Layout
7378 -synctex=1
7379 \end_layout
7380
7381 \end_inset
7382
7383 オプションは、gzip圧縮を有効にします。お使いのビューアがgzip圧縮をサポートしていない場合には、代わりに
7384 \begin_inset Flex Code
7385 status collapsed
7386
7387 \begin_layout Plain Layout
7388 -synctex=-1
7389 \end_layout
7390
7391 \end_inset
7392
7393 を使用してください。
7394 \end_layout
7395
7396 \end_inset
7397
7398
7399 \end_layout
7400
7401 \begin_layout Subsection
7402 特定のビューアを設定して使うには
7403 \begin_inset CommandInset label
7404 LatexCommand label
7405 name "subsec:特定のビューアを設定して使うには"
7406
7407 \end_inset
7408
7409
7410 \end_layout
7411
7412 \begin_layout Subsubsection*
7413 Xdvi(全プラットフォーム)
7414 \end_layout
7415
7416 \begin_layout Standard
7417 \SpecialChar LyX
7418 は、
7419 \begin_inset Flex Code
7420 status collapsed
7421
7422 \begin_layout Plain Layout
7423 lyxclient
7424 \end_layout
7425
7426 \end_inset
7427
7428 プログラムを自動的に使うのに必要なフックを、既に提供しているので、
7429 \begin_inset Flex Code
7430 status collapsed
7431
7432 \begin_layout Plain Layout
7433 xdvi
7434 \end_layout
7435
7436 \end_inset
7437
7438 を使用する場合には、DVI遡及検索を実行するのに他にするべきことはありません。使用中の文書を上記で述べたように設定するだけです(遡及検索は、Ctrl-クリックか
7439 、Mac OS X上ではAlt-クリックで始動します)。
7440 \end_layout
7441
7442 \begin_layout Standard
7443 しかし、何らかの理由で、\SpecialChar LyX
7444 と通信するのにソケットではなく命名パイプを使用したい場合には、
7445 \begin_inset Flex MenuItem
7446 status collapsed
7447
7448 \begin_layout Plain Layout
7449 設定\SpecialChar menuseparator
7450 ファイル処理\SpecialChar menuseparator
7451 ファイル書式
7452 \end_layout
7453
7454 \end_inset
7455
7456 のDVIビューアを
7457 \lang english
7458
7459 \begin_inset Foot
7460 status collapsed
7461
7462 \begin_layout Plain Layout
7463
7464 \lang english
7465 On Mac OSX you have to use 
7466 \begin_inset Flex Code
7467 status collapsed
7468
7469 \begin_layout Plain Layout
7470
7471 \lang english
7472 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7473 \end_layout
7474
7475 \end_inset
7476
7477
7478 \end_layout
7479
7480 \end_inset
7481
7482
7483 \lang japanese
7484
7485 \begin_inset Flex Code
7486 status collapsed
7487
7488 \begin_layout Plain Layout
7489 xdvi -editor "lyxeditor.sh %f %l"
7490 \end_layout
7491
7492 \end_inset
7493
7494 (
7495 \begin_inset Flex Code
7496 status collapsed
7497
7498 \begin_layout Plain Layout
7499 lyxeditor.sh
7500 \end_layout
7501
7502 \end_inset
7503
7504 は適切なスクリプト名)に変更してください。たとえば、最低限のシェルスクリプトは
7505 \end_layout
7506
7507 \begin_layout LyX-Code
7508 #!/bin/sh
7509 \begin_inset Newline newline
7510 \end_inset
7511
7512 LYXPIPE="/path/to/lyxpipe"
7513 \begin_inset Newline newline
7514 \end_inset
7515
7516 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7517 \begin_inset Newline newline
7518 \end_inset
7519
7520 echo "$COMMAND" > "${LYXPIPE}".in || exit
7521 \begin_inset Newline newline
7522 \end_inset
7523
7524 read TMP < "${LYXPIPE}".out || exit
7525 \end_layout
7526
7527 \begin_layout Standard
7528 のようになります。ここで
7529 \begin_inset Flex Code
7530 status collapsed
7531
7532 \begin_layout Plain Layout
7533 /path/to/lyxpipe
7534 \end_layout
7535
7536 \end_inset
7537
7538 は、
7539 \begin_inset Flex MenuItem
7540 status collapsed
7541
7542 \begin_layout Plain Layout
7543 設定\SpecialChar menuseparator
7544 パス
7545 \end_layout
7546
7547 \end_inset
7548
7549 で指定したLyXServerパイプのパスを指定してください。
7550 \begin_inset Foot
7551 status collapsed
7552
7553 \begin_layout Plain Layout
7554 ソース頒布版の
7555 \begin_inset Flex Code
7556 status collapsed
7557
7558 \begin_layout Plain Layout
7559 development/tools
7560 \end_layout
7561
7562 \end_inset
7563
7564 フォルダには、ユーザが設定した
7565 \emph on
7566 lyxpipe
7567 \emph default
7568 を探し出す
7569 \begin_inset Flex Code
7570 status collapsed
7571
7572 \begin_layout Plain Layout
7573 lyxeditor
7574 \end_layout
7575
7576 \end_inset
7577
7578 スクリプトがあります。
7579 \end_layout
7580
7581 \end_inset
7582
7583
7584 \end_layout
7585
7586 \begin_layout Subsubsection*
7587 MacDviX(Mac OS X)
7588 \end_layout
7589
7590 \begin_layout Standard
7591 \begin_inset Flex Code
7592 status collapsed
7593
7594 \begin_layout Plain Layout
7595 /Applications/MacDviX_Folder/calleditor.script
7596 \end_layout
7597
7598 \end_inset
7599
7600 の終わりに
7601 \end_layout
7602
7603 \begin_layout LyX-Code
7604 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7605 \begin_inset Newline newline
7606 \end_inset
7607
7608 exit 1
7609 \end_layout
7610
7611 \begin_layout Standard
7612 という行を付け加えてください。Applicationsフォルダ以外の場所に\SpecialChar LyX
7613 を導入した場合には、それに従って上記の行を修正してください。
7614 \end_layout
7615
7616 \begin_layout Standard
7617 遡及検索は、Alt-クリック(OPTION-クリック)で始動します。
7618 \end_layout
7619
7620 \begin_layout Subsubsection*
7621 Skim(Mac OS X)
7622 \end_layout
7623
7624 \begin_layout Standard
7625 \begin_inset Flex MenuItem
7626 status collapsed
7627
7628 \begin_layout Plain Layout
7629 設定\SpecialChar menuseparator
7630 ファイル処理\SpecialChar menuseparator
7631 ファイル書式\SpecialChar menuseparator
7632 PDF (pdflatex)
7633 \end_layout
7634
7635 \end_inset
7636
7637 のビューア設定に
7638 \begin_inset Flex Code
7639 status collapsed
7640
7641 \begin_layout Plain Layout
7642 open -a Skim.app $$i
7643 \end_layout
7644
7645 \end_inset
7646
7647 と入力し、
7648 \begin_inset Flex MenuItem
7649 status collapsed
7650
7651 \begin_layout Plain Layout
7652 Skim\SpecialChar menuseparator
7653 設定\SpecialChar menuseparator
7654 Sync
7655 \end_layout
7656
7657 \end_inset
7658
7659 でLyXを選択してください。
7660 \end_layout
7661
7662 \begin_layout Standard
7663 遡及検索は、COMMAND-SHIFT-クリックで始動します。
7664 \end_layout
7665
7666 \begin_layout Subsubsection*
7667 Okular (KDE)
7668 \end_layout
7669
7670 \begin_layout Standard
7671 \begin_inset Flex MenuItem
7672 status collapsed
7673
7674 \begin_layout Plain Layout
7675 設定\SpecialChar menuseparator
7676 Okularを設定\SpecialChar ldots
7677 \SpecialChar menuseparator
7678 編集
7679 \end_layout
7680
7681 \end_inset
7682
7683 で「カスタムテキストエディタ」を選択し、コマンドに
7684 \begin_inset Flex Code
7685 status collapsed
7686
7687 \begin_layout Plain Layout
7688 lyxclient -g %f %l
7689 \end_layout
7690
7691 \end_inset
7692
7693 を加えてください。
7694 \end_layout
7695
7696 \begin_layout Standard
7697 遡及検索は、SHIFT-クリックで始動します。
7698 \end_layout
7699
7700 \begin_layout Subsubsection*
7701
7702 \lang english
7703 Qpdfview (Unix)
7704 \end_layout
7705
7706 \begin_layout Standard
7707
7708 \lang english
7709 Qpdfview supports Sync\SpecialChar TeX
7710  since version 0.3.5.
7711  Go to 
7712 \begin_inset Flex MenuItem
7713 status collapsed
7714
7715 \begin_layout Plain Layout
7716
7717 \lang english
7718 Edit\SpecialChar menuseparator
7719 Settings\SpecialChar menuseparator
7720 Behavior
7721 \end_layout
7722
7723 \end_inset
7724
7725 , click on the input field of the 
7726 \begin_inset Quotes eld
7727 \end_inset
7728
7729 Source editor
7730 \begin_inset Quotes erd
7731 \end_inset
7732
7733  item and add the command 
7734 \begin_inset Flex Code
7735 status collapsed
7736
7737 \begin_layout Plain Layout
7738
7739 \lang english
7740 lyxclient -g %1 %2
7741 \end_layout
7742
7743 \end_inset
7744
7745 .
7746 \end_layout
7747
7748 \begin_layout Standard
7749
7750 \lang english
7751 Reverse search is triggered by double-click.
7752 \end_layout
7753
7754 \begin_layout Subsubsection*
7755 YAP(Windows)
7756 \end_layout
7757
7758 \begin_layout Standard
7759 yapを起動し、
7760 \begin_inset Flex MenuItem
7761 status collapsed
7762
7763 \begin_layout Plain Layout
7764 View\SpecialChar menuseparator
7765 Options
7766 \end_layout
7767
7768 \end_inset
7769
7770 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar ldots
7771 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7772
7773  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar ldots
7774 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7775 \begin_inset Flex Code
7776 status collapsed
7777
7778 \begin_layout Plain Layout
7779 lyxeditor.bat
7780 \end_layout
7781
7782 \end_inset
7783
7784 (以下参照)のあるディレクトリを見つけます。
7785 \begin_inset Flex Code
7786 status collapsed
7787
7788 \begin_layout Plain Layout
7789 lyxeditor.bat
7790 \end_layout
7791
7792 \end_inset
7793
7794 を選択してプログラムの引数を
7795 \begin_inset Flex Code
7796 status collapsed
7797
7798 \begin_layout Plain Layout
7799 %f %l
7800 \end_layout
7801
7802 \end_inset
7803
7804 と指定してください。
7805 \begin_inset Flex Code
7806 status collapsed
7807
7808 \begin_layout Plain Layout
7809 lyxeditor.bat
7810 \end_layout
7811
7812 \end_inset
7813
7814 は、
7815 \emph on
7816 lyxpipe
7817 \emph default
7818 を通じて\SpecialChar LyX
7819 と通信するためのラッパとして使用され、以下のようになっています。
7820 \end_layout
7821
7822 \begin_layout LyX-Code
7823 @echo off
7824 \begin_inset Newline newline
7825 \end_inset
7826
7827 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7828 \backslash
7829
7830 \backslash
7831 .
7832 \backslash
7833 pipe
7834 \backslash
7835 lyxpipe.in
7836 \begin_inset Newline newline
7837 \end_inset
7838
7839 type 
7840 \backslash
7841
7842 \backslash
7843 .
7844 \backslash
7845 pipe
7846 \backslash
7847 lyxpipe.out
7848 \end_layout
7849
7850 \begin_layout Standard
7851 \SpecialChar LyX
7852 で指定した\SpecialChar LyX
7853 Serverパイプパスが、
7854 \begin_inset Flex Code
7855 status collapsed
7856
7857 \begin_layout Plain Layout
7858
7859 \backslash
7860
7861 \backslash
7862 .
7863 \backslash
7864 pipe
7865 \backslash
7866 lyxpipe
7867 \end_layout
7868
7869 \end_inset
7870
7871 となっていることを確認するか、
7872 \begin_inset Flex Code
7873 status collapsed
7874
7875 \begin_layout Plain Layout
7876 lyxeditor.bat
7877 \end_layout
7878
7879 \end_inset
7880
7881 ラッパの方を適切に修正してください。
7882 \end_layout
7883
7884 \begin_layout Standard
7885 yapでは、遡及検索はダブルクリックで始動します。
7886 \end_layout
7887
7888 \begin_layout Subsubsection*
7889 SumatraPDF(Windows)
7890 \end_layout
7891
7892 \begin_layout Standard
7893 SumatraPDFを遡及検索で使用するためには、
7894 \begin_inset Flex MenuItem
7895 status collapsed
7896
7897 \begin_layout Plain Layout
7898 設定\SpecialChar menuseparator
7899 ファイル処理\SpecialChar menuseparator
7900 ファイル書式\SpecialChar menuseparator
7901 PDF (pdflatex)
7902 \end_layout
7903
7904 \end_inset
7905
7906 のビューア設定で
7907 \begin_inset Flex Code
7908 status collapsed
7909
7910 \begin_layout Plain Layout
7911 SumatraPDF -inverse-search 
7912 \begin_inset Quotes eld
7913 \end_inset
7914
7915 lyxeditor.bat %f %l
7916 \begin_inset Quotes erd
7917 \end_inset
7918
7919
7920 \end_layout
7921
7922 \end_inset
7923
7924 (
7925 \begin_inset Flex Code
7926 status collapsed
7927
7928 \begin_layout Plain Layout
7929 lyxeditor.bat
7930 \end_layout
7931
7932 \end_inset
7933
7934 は上記のラッパ)と入力してください。SumatraPDF.exeがコマンドPATHにない場合、フルファイル名を使用してください。
7935 \end_layout
7936
7937 \begin_layout Standard
7938 遡及検索はダブルクリックで始動します。
7939 \end_layout
7940
7941 \begin_layout Subsubsection*
7942 YAP(Cygwin)
7943 \end_layout
7944
7945 \begin_layout Standard
7946 まずはじめに、yapがWindows環境での既定のDVIビューアになっていることを確認してから、yapを起動し、
7947 \begin_inset Flex MenuItem
7948 status collapsed
7949
7950 \begin_layout Plain Layout
7951 View\SpecialChar menuseparator
7952 Options
7953 \end_layout
7954
7955 \end_inset
7956
7957 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar ldots
7958 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7959
7960  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar ldots
7961 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7962 \begin_inset Flex Code
7963 status collapsed
7964
7965 \begin_layout Plain Layout
7966 lyxeditor.exe
7967 \end_layout
7968
7969 \end_inset
7970
7971 プログラム(これは、Cygwinでは既定で\SpecialChar LyX
7972 実行ファイルとともに導入されます)のあるディレクトリを見つけます。
7973 \begin_inset Flex Code
7974 status collapsed
7975
7976 \begin_layout Plain Layout
7977 lyxeditor.exe
7978 \end_layout
7979
7980 \end_inset
7981
7982 を選択してプログラムの引数を
7983 \begin_inset Flex Code
7984 status collapsed
7985
7986 \begin_layout Plain Layout
7987 -g %f %l
7988 \end_layout
7989
7990 \end_inset
7991
7992 と指定してください。これによって、\SpecialChar LyX
7993 との通信に
7994 \emph on
7995 lyxsocket
7996 \emph default
7997 が使用されるようになります。何らかの理由で
7998 \emph on
7999 lyxpipe
8000 \emph default
8001 を使用したい場合には、
8002 \begin_inset Flex Code
8003 status collapsed
8004
8005 \begin_layout Plain Layout
8006 -g
8007 \end_layout
8008
8009 \end_inset
8010
8011 オプションを削除して、\SpecialChar LyX
8012 設定で\SpecialChar LyX
8013 Serverパイプパスを指定することを忘れないでください。
8014 \end_layout
8015
8016 \begin_layout Standard
8017 yapでは、遡及検索はダブルクリックで始動します。
8018 \end_layout
8019
8020 \begin_layout Subsubsection*
8021 SumatraPDF(Cygwin)
8022 \end_layout
8023
8024 \begin_layout Standard
8025 SumatraPDFを遡及検索で使用するためには、
8026 \begin_inset Flex MenuItem
8027 status collapsed
8028
8029 \begin_layout Plain Layout
8030 設定\SpecialChar menuseparator
8031 ファイル処理\SpecialChar menuseparator
8032 ファイル書式\SpecialChar menuseparator
8033 PDF (pdflatex)
8034 \end_layout
8035
8036 \end_inset
8037
8038 のビューア設定で
8039 \begin_inset Flex Code
8040 status collapsed
8041
8042 \begin_layout Plain Layout
8043 SumatraPDF.sh
8044 \end_layout
8045
8046 \end_inset
8047
8048 と入力してください。ここで
8049 \begin_inset Flex Code
8050 status collapsed
8051
8052 \begin_layout Plain Layout
8053 SumatraPDF.sh
8054 \end_layout
8055
8056 \end_inset
8057
8058 は以下のようなスクリプトです(お使いのコマンドパスに置きます。
8059 \begin_inset Flex Code
8060 status collapsed
8061
8062 \begin_layout Plain Layout
8063 /usr/local/bin
8064 \end_layout
8065
8066 \end_inset
8067
8068 がもっとも良い選択肢でしょう)。
8069 \end_layout
8070
8071 \begin_layout LyX-Code
8072 #!/bin/bash
8073 \begin_inset Newline newline
8074 \end_inset
8075
8076 cd $(dirname $1)
8077 \begin_inset Newline newline
8078 \end_inset
8079
8080 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8081 \end_layout
8082
8083 \begin_layout Standard
8084 SumatraPDFは、Windowsネイティブのアプリケーションであり、\SpecialChar LyX
8085 のCygwin版が使用するPOSIXパスを理解しないので、このラッパスクリプトが必要と
8086 なります。SumatraPDF.exeがお使いのコマンドパスにない場合は、上記のスクリプトでPOSIXのフルパスを使用してください。
8087 \begin_inset Flex Code
8088 status collapsed
8089
8090 \begin_layout Plain Layout
8091 -g
8092 \end_layout
8093
8094 \end_inset
8095
8096
8097 \emph on
8098 lyxsocket
8099 \emph default
8100 経由の通信を有効にします。ここでも、
8101 \emph on
8102 lyxpipe
8103 \emph default
8104 を使用したい場合には、
8105 \begin_inset Flex Code
8106 status collapsed
8107
8108 \begin_layout Plain Layout
8109 -g
8110 \end_layout
8111
8112 \end_inset
8113
8114 オプションを削除して、\SpecialChar LyX
8115 設定で\SpecialChar LyX
8116 Serverパイプパスを指定することを忘れないでください。
8117 \end_layout
8118
8119 \begin_layout Standard
8120 遡及検索はダブルクリックで始動します。
8121 \end_layout
8122
8123 \begin_layout Section
8124 順検索
8125 \end_layout
8126
8127 \begin_layout Standard
8128 順検索とは、名前が示すとおり、いわば遡及検索の「逆」を意味します。すなわち、\SpecialChar LyX
8129 内部から、ビューアに特定の箇所を表示させることを可能にします。(以下に説明するように
8130 )もし順検索の準備ができていれば、カーソルを\SpecialChar LyX
8131 文書の好きなところに置いて、
8132 \begin_inset Flex MenuItem
8133 status collapsed
8134
8135 \begin_layout Plain Layout
8136 移動\SpecialChar menuseparator
8137 順検索
8138 \end_layout
8139
8140 \end_inset
8141
8142 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8143 \begin_inset Flex MenuItem
8144 status collapsed
8145
8146 \begin_layout Plain Layout
8147 順検索
8148 \end_layout
8149
8150 \end_inset
8151
8152 を選択してもよい)、ビューアも同じ箇所に移動します。もちろん、使用しているビューアが、この機能をサポートしていなくてはなりません。
8153 \end_layout
8154
8155 \begin_layout Standard
8156 順検索を有効にするためには、生成されたPDF/DVI出力ファイルに、\SpecialChar TeX
8157 ソースに関する情報を追加する必要があります。これは、第
8158 \begin_inset CommandInset ref
8159 LatexCommand ref
8160 reference "subsec:遡及検索"
8161
8162 \end_inset
8163
8164 節に述べられている方法で実行することができます。
8165 \end_layout
8166
8167 \begin_layout Standard
8168 次に、
8169 \begin_inset Flex MenuItem
8170 status collapsed
8171
8172 \begin_layout Plain Layout
8173 ツール\SpecialChar menuseparator
8174 設定\SpecialChar menuseparator
8175 出力\SpecialChar menuseparator
8176 一般
8177 \end_layout
8178
8179 \end_inset
8180
8181 で自分の使うビューアを利用するように、\SpecialChar LyX
8182 を設定する必要があります。いくつかのビューアについては、試験済みの設定が前もって準備されており、ドロップダウンリストから選
8183 択することができます。これらの設定の何れも意にそぐわない場合には、ご自身で適切な設定を見つけ出して入力しなくてはなりません。定義文法は、以下の変数を使用します。
8184 \end_layout
8185
8186 \begin_layout Itemize
8187 \begin_inset Flex Code
8188 status collapsed
8189
8190 \begin_layout Plain Layout
8191 $$n
8192 \end_layout
8193
8194 \end_inset
8195
8196 :行番号
8197 \end_layout
8198
8199 \begin_layout Itemize
8200 \begin_inset Flex Code
8201 status collapsed
8202
8203 \begin_layout Plain Layout
8204 $$t
8205 \end_layout
8206
8207 \end_inset
8208
8209 :書き出された(一時).texファイル名(パスを除く)
8210 \end_layout
8211
8212 \begin_layout Itemize
8213 \begin_inset Flex Code
8214 status collapsed
8215
8216 \begin_layout Plain Layout
8217 $$f
8218 \end_layout
8219
8220 \end_inset
8221
8222 :書き出された(一時).texファイル名(パスを含む)
8223 \end_layout
8224
8225 \begin_layout Itemize
8226 \begin_inset Flex Code
8227 status collapsed
8228
8229 \begin_layout Plain Layout
8230 $$o
8231 \end_layout
8232
8233 \end_inset
8234
8235 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して、dviあるいはpdf)。
8236 \end_layout
8237
8238 \begin_layout Standard
8239 yap・xdvi・okular
8240 \begin_inset Foot
8241 status collapsed
8242
8243 \begin_layout Plain Layout
8244 \begin_inset Flex MenuItem
8245 status collapsed
8246
8247 \begin_layout Plain Layout
8248 ツール\SpecialChar menuseparator
8249 設定\SpecialChar menuseparator
8250 ファイル処理\SpecialChar menuseparator
8251 ファイル形式
8252 \end_layout
8253
8254 \end_inset
8255
8256
8257 \begin_inset Flex Code
8258 status collapsed
8259
8260 \begin_layout Plain Layout
8261 okular –unique
8262 \end_layout
8263
8264 \end_inset
8265
8266 と設定すると良いかもしれません。
8267 \end_layout
8268
8269 \end_inset
8270
8271 ・qpdfview・Sumatra PDFなど、一部のビューアでしか、完全な順検索機能は提供されていないことに注意してください
8272 \lang english
8273
8274 \begin_inset Foot
8275 status collapsed
8276
8277 \begin_layout Plain Layout
8278
8279 \lang english
8280 SumatraPDF can also use DDE commands through the external program CMCDDE
8281  — downloadable from 
8282 \begin_inset CommandInset href
8283 LatexCommand href
8284 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8285
8286 \end_inset
8287
8288
8289 \end_layout
8290
8291 \end_inset
8292
8293
8294 \lang japanese
8295 。広く使われているPDFビューアの多く(特にAdobe Reader)は、順検索を全く提供していませんが、他の一部のビューア(たとえばEvinceやxpdf)で
8296 は、少なくとも、文書を読み込み直したり、ファイルの特定ページに移動することはできますので、少なくとも「近く」には移動することができます。この後者の機能は、syn
8297 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください)。
8298 \end_layout
8299
8300 \begin_layout Standard
8301 順検索は、DVI出力とPDF出力の双方で動作します。\SpecialChar LyX
8302 は、過去にあなたが使用したプレビュー形式をチェックして(つまり、一時ディレクトリにどちらの形式が存在するかを
8303 チェックして)、その形式に適切な設定を選択します。
8304 \end_layout
8305
8306 \begin_layout Chapter
8307 特別な文書クラス
8308 \end_layout
8309
8310 \begin_layout Section
8311 A&Aの論文
8312 \end_layout
8313
8314 \begin_layout Standard
8315
8316 \noun on
8317 Peter Sütterlin文
8318 \end_layout
8319
8320 \begin_layout Subsection
8321 はじめに
8322 \end_layout
8323
8324 \begin_layout Standard
8325 この節では、文書クラス
8326 \family typewriter
8327 aa.cls
8328 \family default
8329 第5.01版を使用して科学雑誌
8330 \emph on
8331 Astronomy and Astrophysics
8332 \emph default
8333 (『天文学と宇宙物理学』: 
8334 \begin_inset Flex URL
8335 status collapsed
8336
8337 \begin_layout Plain Layout
8338
8339 http://www.edpsciences.fr/aa/
8340 \end_layout
8341
8342 \end_inset
8343
8344 )に投稿する論文を執筆するための\SpecialChar LyX
8345 の使用法を説明します。このパッケージは、FTPサイト
8346 \begin_inset Separator parbreak
8347 \end_inset
8348
8349
8350 \end_layout
8351
8352 \begin_layout Standard
8353 \align center
8354 \begin_inset VSpace medskip
8355 \end_inset
8356
8357
8358 \begin_inset Flex URL
8359 status collapsed
8360
8361 \begin_layout Plain Layout
8362
8363 ftp://ftp.edpsciences.org/pub/aa/readme.html
8364 \end_layout
8365
8366 \end_inset
8367
8368
8369 \begin_inset VSpace medskip
8370 \end_inset
8371
8372
8373 \end_layout
8374
8375 \begin_layout Standard
8376 \noindent
8377 からダウンロードすることができます。
8378 \end_layout
8379
8380 \begin_layout Standard
8381 このパッケージには取扱説明書がついていますが、本節は、本来の取扱説明書の代わりとなることを意図したものではなく、あなたの論文を正しい様式に整えるための小さな案内
8382 書であるに過ぎません。
8383 \end_layout
8384
8385 \begin_layout Standard
8386 この学術誌の出版元は、2001年1月1日以降、Springer社からEDP Science社に変更されていることにご注意ください。この出版社の変更によって、th
8387 esaurusコマンドの廃止など、スタイルファイルに若干の変更が加わっています。\SpecialChar LyX
8388 のaaクラスは、スタイルファイルの最新版(第5.01版)をサポートしています。もし
8389 古い版が装備されている場合には、更新してください。互換性のために、古い(第4版)レイアウトは、
8390 \family sans
8391 article (A&A V4)
8392 \family default
8393 として残してあります。
8394 \family typewriter
8395 $\SpecialChar LyX
8396 Dir/layouts/aapaper.layout
8397 \family default
8398 のコメントをご参照ください。
8399 \end_layout
8400
8401 \begin_layout Subsection
8402 最初の一歩
8403 \end_layout
8404
8405 \begin_layout Standard
8406 \SpecialChar LyX
8407 とともに頒布されている例示用のひな型を土台として、書き始めることをお勧めします。ひな型を使用しない場合には、以下の設定にしてください。
8408 \end_layout
8409
8410 \begin_layout Itemize
8411
8412 \family sans
8413 文書\SpecialChar menuseparator
8414 設定
8415 \family default
8416 ダイアログで
8417 \family sans
8418 article (A&A)
8419 \family default
8420 を選択してください(まぁ、これは自明ですね)。
8421 \end_layout
8422
8423 \begin_layout Itemize
8424
8425 \family sans
8426 ページレイアウト
8427 \family default
8428 オプションは変更しないで、既定値のままに設定しておいてください。全体のレイアウトはマクロが行うので、何も変更してはいけません。
8429 \end_layout
8430
8431 \begin_layout Subsection
8432 へッダ部
8433 \end_layout
8434
8435 \begin_layout Standard
8436 最初に入力すべきものは、へッダ情報です。ヘッダ情報には、以下の7つの項目があり、いくつかは必須ではありません。
8437 \end_layout
8438
8439 \begin_layout Itemize
8440
8441 \family sans
8442 タイトル
8443 \family default
8444 :[必須]
8445 \end_layout
8446
8447 \begin_layout Itemize
8448
8449 \family sans
8450 サブタイトル
8451 \family default
8452 :[非必須]
8453 \end_layout
8454
8455 \begin_layout Itemize
8456
8457 \family sans
8458 著者
8459 \family default
8460 :[必須]
8461 \end_layout
8462
8463 \begin_layout Itemize
8464
8465 \family sans
8466 住所
8467 \family default
8468 :[必須]
8469 \end_layout
8470
8471 \begin_layout Itemize
8472
8473 \family sans
8474 抜き刷り
8475 \family default
8476 :[非必須]著者が複数いる場合、抜き刷りの送付を依頼するのに連絡すべき人を記す。
8477 \end_layout
8478
8479 \begin_layout Itemize
8480
8481 \family sans
8482 メール
8483 \family default
8484 :[非必須]連絡用の電子メールアドレス。
8485 \end_layout
8486
8487 \begin_layout Itemize
8488
8489 \family sans
8490 日付
8491 \family default
8492 :[必須]推奨されるフォーマットは、
8493 \family typewriter
8494 Received: <日付>; Accepted <日付>
8495 \family default
8496 です。
8497 \end_layout
8498
8499 \begin_layout Standard
8500
8501 \family typewriter
8502
8503 \backslash
8504 maketitle
8505 \family default
8506 コマンドは、へッダが終了した場所に、\SpecialChar LyX
8507 が自動的に入れてくれるので、手動で挿入する必要はありません。各項目の順序は関係ありませんが、見た目のためと、実際の文書のレイ
8508 アウトに合わせるために、上記の順序を維持しておくと良いでしょう。
8509 \end_layout
8510
8511 \begin_layout Standard
8512 現住所の付記などのために、へッダ部に脚注を挿入したい場合には、
8513 \family sans
8514 挿入\SpecialChar menuseparator
8515 脚注
8516 \family default
8517 を使用して標準の脚注を挿入してください。この場合には、\SpecialChar LyX
8518 は自動的に
8519 \family typewriter
8520
8521 \backslash
8522 thanks{}
8523 \family default
8524 を使用します。
8525 \end_layout
8526
8527 \begin_layout Standard
8528 これらのトピックの他に、このマクロは、\SpecialChar LyX
8529 が対応していない、以下の3つの\SpecialChar LaTeX
8530 コマンドを使用します。
8531 \end_layout
8532
8533 \begin_layout Itemize
8534 複数の著者名あるいは所属名を区切るための
8535 \family typewriter
8536
8537 \backslash
8538 and
8539 \end_layout
8540
8541 \begin_layout Itemize
8542 著者と所属の対応付けをするための
8543 \family typewriter
8544
8545 \backslash
8546 inst{<番号>}
8547 \family default
8548 。所属は、
8549 \family sans
8550 住所
8551 \family default
8552 フィールドに現れる順に番号が付けられるので、各著者に番号マーカーを置く必要があります。
8553 \end_layout
8554
8555 \begin_layout Itemize
8556
8557 \family typewriter
8558
8559 \backslash
8560 email{アドレス}
8561 \family default
8562 は、至急連絡用に電子メールアドレスを付記します。
8563 \end_layout
8564
8565 \begin_layout Standard
8566 いずれの場合にも、\SpecialChar LyX
8567 中に対応したコマンドを入力し、\SpecialChar LaTeX
8568 コードとしてマークしてください。
8569 \begin_inset Flex Code
8570 status collapsed
8571
8572 \begin_layout Plain Layout
8573 $\SpecialChar LyX
8574 Dir/examples
8575 \end_layout
8576
8577 \end_inset
8578
8579 にある用例を参照してください。
8580 \end_layout
8581
8582 \begin_layout Subsection
8583 概要
8584 \end_layout
8585
8586 \begin_layout Standard
8587 概要は、へッダ部の直後に置きます。第5版から、概要は環境からコマンドに変更され、一段落に限るという制限が加えられました。さらに、ここにはキーワードを含む項目を入
8588 れなくてはなりません。これは、まだ\SpecialChar LyX
8589 では実装されていないため、\SpecialChar LaTeX
8590 コマンド
8591 \family typewriter
8592
8593 \backslash
8594 keywords{}
8595 \family default
8596 を手動で入力し、\SpecialChar LaTeX
8597 コードとしてマークする必要があります。用例にある論文を参照してください。
8598 \end_layout
8599
8600 \begin_layout Subsection
8601 サポートされる環境
8602 \end_layout
8603
8604 \begin_layout Standard
8605 A&A論文用レイアウトでは、文章を構造化するために、以下の環境がサポートされています。
8606 \end_layout
8607
8608 \begin_layout Itemize
8609
8610 \family sans
8611 標準
8612 \end_layout
8613
8614 \begin_layout Itemize
8615
8616 \family sans
8617
8618 \end_layout
8619
8620 \begin_layout Itemize
8621
8622 \family sans
8623 小節
8624 \end_layout
8625
8626 \begin_layout Itemize
8627
8628 \family sans
8629 小々節
8630 \end_layout
8631
8632 \begin_layout Itemize
8633
8634 \family sans
8635 箇条書き(記号)
8636 \end_layout
8637
8638 \begin_layout Itemize
8639
8640 \family sans
8641 箇条書き(連番)
8642 \end_layout
8643
8644 \begin_layout Itemize
8645
8646 \family sans
8647 箇条書き(記述)
8648 \end_layout
8649
8650 \begin_layout Itemize
8651
8652 \family sans
8653 キャプション
8654 \end_layout
8655
8656 \begin_layout Itemize
8657
8658 \family sans
8659 概要
8660 \end_layout
8661
8662 \begin_layout Itemize
8663
8664 \family sans
8665 謝辞(Acknowledgment)
8666 \end_layout
8667
8668 \begin_layout Itemize
8669
8670 \family sans
8671 書誌情報
8672 \end_layout
8673
8674 \begin_layout Itemize
8675
8676 \family sans
8677 \SpecialChar LaTeX
8678
8679 \end_layout
8680
8681 \begin_layout Subsection
8682 \SpecialChar LyX
8683 でサポートされていないコマンド
8684 \end_layout
8685
8686 \begin_layout Standard
8687 \SpecialChar LyX
8688
8689 \family sans
8690 article (A&A)
8691 \family default
8692 レイアウトでは、まだサポートされていないコマンドがあります。そのうちいくつかは既に紹介しましたが、網羅するために、以下にすべて列挙しておきます。
8693 \end_layout
8694
8695 \begin_layout Itemize
8696
8697 \family typewriter
8698
8699 \backslash
8700 and
8701 \end_layout
8702
8703 \begin_layout Itemize
8704
8705 \family typewriter
8706
8707 \backslash
8708 email
8709 \end_layout
8710
8711 \begin_layout Itemize
8712
8713 \family typewriter
8714
8715 \backslash
8716 appendix
8717 \end_layout
8718
8719 \begin_layout Itemize
8720
8721 \family typewriter
8722
8723 \backslash
8724 authorrunning
8725 \end_layout
8726
8727 \begin_layout Itemize
8728
8729 \family typewriter
8730
8731 \backslash
8732 inst{}
8733 \end_layout
8734
8735 \begin_layout Itemize
8736
8737 \family typewriter
8738
8739 \backslash
8740 keywords{}
8741 \end_layout
8742
8743 \begin_layout Itemize
8744
8745 \family typewriter
8746
8747 \backslash
8748 object{}
8749 \end_layout
8750
8751 \begin_layout Itemize
8752
8753 \family typewriter
8754
8755 \backslash
8756 titlerunning{}
8757 \end_layout
8758
8759 \begin_layout Standard
8760 これらのコマンドのいずれかを使いたい場合には、自分で入力する必要があります。
8761 \series bold
8762 これを\SpecialChar LaTeX
8763 コマンドとしてマークすることを忘れないで下さい。
8764 \end_layout
8765
8766 \begin_layout Subsection
8767 図フロートおよび表フロート
8768 \end_layout
8769
8770 \begin_layout Standard
8771 \SpecialChar LyX
8772 は、必要なフロート環境
8773 \family sans
8774 figure
8775 \family default
8776
8777 \family sans
8778 figure*
8779 \family default
8780
8781 \family sans
8782 table
8783 \family default
8784
8785 \family sans
8786 table*
8787 \family default
8788 をサポートしていますので、ここでは詳しい説明はしません。
8789 \emph on
8790 ユーザーの手引き
8791 \emph default
8792 をご覧ください。ただ、表は左揃えにしなくてはならないことに注意して下さい。そうするためには、表を選択して、
8793 \family sans
8794 編集\SpecialChar menuseparator
8795 段落設定
8796 \family default
8797 で配置を変更してください。
8798 \end_layout
8799
8800 \begin_layout Standard
8801 一つだけ、特別なものがあります。それは、図横にキャプションを配置する図です。この図を作成するには、以下のようにしなくてはなりません。
8802 \end_layout
8803
8804 \begin_layout Enumerate
8805
8806 \family sans
8807 挿入\SpecialChar menuseparator
8808 フロート\SpecialChar menuseparator
8809
8810 \family default
8811 を使って、幅広の図フロートを作成します。それから、図フロートのラベルを右クリックして
8812 \begin_inset Flex MenuItem
8813 status collapsed
8814
8815 \begin_layout Plain Layout
8816 設定\SpecialChar ldots
8817
8818 \end_layout
8819
8820 \end_inset
8821
8822 を選択し、それで開かれる
8823 \family sans
8824 フロートの設定
8825 \family default
8826 ダイアログで
8827 \family sans
8828 段をまたぐ
8829 \family default
8830 を有効にして、
8831 \family sans
8832 OK
8833 \family default
8834 ボタンを押します。
8835 \end_layout
8836
8837 \begin_layout Enumerate
8838 キャプション文を入力します。
8839 \end_layout
8840
8841 \begin_layout Enumerate
8842 キャプションの前にカーソルを移動し、
8843 \family sans
8844 Return
8845 \family default
8846 を押して、カーソルをキャプションの上に移動します。
8847 \end_layout
8848
8849 \begin_layout Enumerate
8850 図を挿入します。
8851 \end_layout
8852
8853 \begin_layout Enumerate
8854 カーソルを図の後ろに置いて、
8855 \family sans
8856 挿入\SpecialChar menuseparator
8857 整形
8858 \bar under
8859 \SpecialChar menuseparator
8860
8861 \bar default
8862 水平方向の空白
8863 \family default
8864 を選択して
8865 \family sans
8866 水平方向の空白の設定
8867 \family default
8868 ダイアログを開き、
8869 \family sans
8870 空白
8871 \family default
8872 ドロップダウンから
8873 \family sans
8874 水平フィル
8875 \family default
8876 を選択して、水平フィルを挿入します。
8877 \end_layout
8878
8879 \begin_layout Enumerate
8880
8881 \family sans
8882 挿入\SpecialChar menuseparator
8883 \SpecialChar TeX
8884 コード
8885 \family default
8886 を選択して、\SpecialChar TeX
8887 差込枠を挿入します。
8888 \end_layout
8889
8890 \begin_layout Enumerate
8891 \SpecialChar TeX
8892 差込枠中に
8893 \family typewriter
8894
8895 \backslash
8896 parbox[b]{55mm}{
8897 \family default
8898 と入力します。
8899 \series bold
8900 ここでは波括弧を閉じないでください。
8901 \end_layout
8902
8903 \begin_layout Enumerate
8904 カーソルをキャプション文の後ろに移動し、
8905 \family sans
8906 挿入\SpecialChar menuseparator
8907 \SpecialChar TeX
8908 コード
8909 \family default
8910 を選択して、別の\SpecialChar TeX
8911 差込枠を挿入し、その中に閉じ括弧を入力します 。
8912 \end_layout
8913
8914 \begin_layout Standard
8915 例示用論文中の図もご参照ください。
8916 \end_layout
8917
8918 \begin_layout Subsection
8919 Refereeレイアウト
8920 \end_layout
8921
8922 \begin_layout Standard
8923 投稿用には、論文を特別なダブルスペースレイアウトに整形しなくてはなりません。このためには、文書クラスに
8924 \family typewriter
8925 referee
8926 \family default
8927 オプションを与える必要があります。これは、
8928 \family sans
8929 文書\SpecialChar menuseparator
8930 設定
8931 \family default
8932 ダイアログの
8933 \family sans
8934 任意設定
8935 \family default
8936 クラスオプションフィールドを使って行うことができます。この欄に
8937 \family typewriter
8938 referee
8939 \family default
8940 と云う文字列を入力してください。
8941 \end_layout
8942
8943 \begin_layout Subsection
8944 例示用論文
8945 \end_layout
8946
8947 \begin_layout Standard
8948
8949 \family sans
8950 Examples
8951 \family default
8952 ディレクトリには、\SpecialChar LyX
8953 で書かれた例示用論文が収録されています。これは、元のマクロパッケージの例示用論文を\SpecialChar LyX
8954 用に直したものです。これはヒントを得るために使用したり、元の
8955  \SpecialChar LaTeX
8956 コードと\SpecialChar LyX
8957 での書き方の比較に使ったりしてください。
8958 \end_layout
8959
8960 \begin_layout Section
8961 AAS\SpecialChar TeX
8962
8963 \end_layout
8964
8965 \begin_layout Standard
8966
8967 \noun on
8968 Mike Ressler
8969 \noun default
8970
8971 \end_layout
8972
8973 \begin_layout Subsection
8974 はじめに
8975 \end_layout
8976
8977 \begin_layout Standard
8978 AAS\SpecialChar TeX
8979 は、American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
8980 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
8981  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために、同学会が作成したマクロ集です。\SpecialChar LyX
8982
8983 、これらの文書を生成する上で、なかでも数式・引用・画像処理能力において、優れたツールであることが認識されています。\SpecialChar LyX
8984 は、同マクロ第5.0版以降を必要としており、でき
8985 ればここで説明されている第5.2版以降が望まれます。第5.0版未満の版は、\SpecialChar LaTeX
8986 2.09で使用するよう企図されているため、根本的に\SpecialChar LyX
8987 とは互換性がありません。AAS\SpecialChar TeX
8988 パッケージは
8989 、以下のAAS\SpecialChar TeX
8990 ウェブサイトからダウンロードできるでしょう。
8991 \begin_inset Separator parbreak
8992 \end_inset
8993
8994
8995 \end_layout
8996
8997 \begin_layout Standard
8998 \align center
8999 \begin_inset VSpace medskip
9000 \end_inset
9001
9002
9003 \begin_inset Flex URL
9004 status collapsed
9005
9006 \begin_layout Plain Layout
9007
9008 http://www.journals.uchicago.edu/AAS/AASTeX
9009 \end_layout
9010
9011 \end_inset
9012
9013
9014 \begin_inset VSpace medskip
9015 \end_inset
9016
9017
9018 \end_layout
9019
9020 \begin_layout Standard
9021 パッケージ中には、完備したユーザーの手引きが収録されていますので、\SpecialChar LyX
9022 で論文を書き始める前に、その中身を完全に理解しておく必要があります。\SpecialChar LyX
9023 は、AASTeXの全コマン
9024 ドを理解する必然性をなくすものではなく、すべてを手入力する苦労を減らすだけです。仕上がりの\SpecialChar LaTeX
9025 文書が、論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9026 いることを確認するのは、あなたの責任です。
9027 \end_layout
9028
9029 \begin_layout Subsection
9030 新しい論文を書き始める
9031 \end_layout
9032
9033 \begin_layout Standard
9034 論文を書き始めるには、AAS\SpecialChar TeX
9035 ひな型ファイルを土台に始めることを強くお勧めします。
9036 \begin_inset Flex MenuItem
9037 status collapsed
9038
9039 \begin_layout Plain Layout
9040 ファイル\SpecialChar menuseparator
9041 新規(ひな型使用)
9042 \end_layout
9043
9044 \end_inset
9045
9046 をクリックして、新しいファイル名を入力し、ひな型
9047 \family typewriter
9048 aastex.lyx
9049 \family default
9050 を選んでください。これには、論文原稿のほとんどに共通して使われるフィールドが書き込まれています。書き込まれている文字列(括弧
9051 \family typewriter
9052 <>
9053 \family default
9054 を含む)を正しい情報で上書きしてください。AAS\SpecialChar TeX
9055 コマンド・AAS\SpecialChar TeX
9056 環境の多くは、\SpecialChar LyX
9057 中で直接実行することができますが、特に
9058 \family typewriter
9059
9060 \backslash
9061 altaffilmark
9062 \family default
9063
9064 \family typewriter
9065
9066 \backslash
9067 altaffiltext
9068 \family default
9069 のようにできないものもあります。この二つのコマンドは、ひな型ファイルを開いたとき、赤色に表示されているのですぐ目に入ることでしょう。このようなコマンドは、直接L
9070 a\SpecialChar TeX
9071 コードを入力して、それを\SpecialChar TeX
9072 コードとしてマークしなければなりません。このようなコマンドは、\SpecialChar TeX
9073 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます。A
9074 AS\SpecialChar TeX
9075 文書に必要とされる \SpecialChar TeX
9076 コードを最小にするよう努力はしていますが、まだ望まれるほどにはなっていません。
9077 \end_layout
9078
9079 \begin_layout Subsection
9080 論文を書き終わったら
9081 \end_layout
9082
9083 \begin_layout Standard
9084 論文を満足する水準で書き終え、プレビューや印刷が正しく為されているとしても、まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています。
9085 \end_layout
9086
9087 \begin_layout Enumerate
9088 論文を \SpecialChar LaTeX
9089 ファイルとして書き出します(
9090 \family sans
9091 ファイル\SpecialChar menuseparator
9092 書き出し\SpecialChar menuseparator
9093 LateX
9094 \family default
9095 )。
9096 \end_layout
9097
9098 \begin_layout Enumerate
9099 出力した
9100 \family typewriter
9101 .tex
9102 \family default
9103 ファイルを好きなエディタで編集します。
9104 \begin_inset Separator parbreak
9105 \end_inset
9106
9107
9108 \end_layout
9109
9110 \begin_deeper
9111 \begin_layout Enumerate
9112
9113 \family typewriter
9114
9115 \backslash
9116 documentclass
9117 \family default
9118 コマンドよりも前のコメント行を削除します。
9119 \end_layout
9120
9121 \begin_layout Enumerate
9122
9123 \family typewriter
9124
9125 \backslash
9126 usepackage...{fontenc}
9127 \family default
9128 という行があれば(通常は
9129 \family typewriter
9130
9131 \backslash
9132 documentclass
9133 \family default
9134 の直後にあります)削除します。また、
9135 \family typewriter
9136
9137 \backslash
9138 secnumdepth
9139 \family default
9140 行があれば、これも削除します。
9141 \end_layout
9142
9143 \begin_layout Enumerate
9144 \SpecialChar LaTeX
9145 プリアンブル中に意図的に置いたコマンド(
9146 \family typewriter
9147 .tex
9148 \family default
9149 ファイル中、「User specified \SpecialChar LaTeX
9150  commands」というコメントの直後にあります)を除いて、
9151 \family typewriter
9152
9153 \backslash
9154 makeatletter
9155 \family default
9156
9157 \family typewriter
9158
9159 \backslash
9160 makeatother
9161 \family default
9162 の間のもの(これらのコマンドを含む)をすべて削除します。
9163 \end_layout
9164
9165 \end_deeper
9166 \begin_layout Enumerate
9167 編集後のファイルを \SpecialChar LaTeX
9168 にかけて、正しく処理されることを確認します。
9169 \end_layout
9170
9171 \begin_layout Enumerate
9172 学術誌の要求事項を再読して、ファイル名と書式が正しいことを確認します。
9173 \end_layout
9174
9175 \begin_layout Enumerate
9176 投稿してください。
9177 \end_layout
9178
9179 \begin_layout Subsection
9180 特定のコマンドに関するコメント
9181 \end_layout
9182
9183 \begin_layout Standard
9184 AAS\SpecialChar TeX
9185 ユーザーの手引き(
9186 \family typewriter
9187 aasguide.tex
9188 \family default
9189 )に、各AAS\SpecialChar TeX
9190 コマンドの詳しい説明があるので、ここでは、各コマンドの使用法の詳細な説明は行いません。そこで、ここではユーザーの手引きに現れるとおりに一覧を列挙し
9191 て、必要なところだけコメントを加えることにしましょう。
9192 \end_layout
9193
9194 \begin_layout Subsubsection
9195 期待通りに動作するもの
9196 \end_layout
9197
9198 \begin_layout Standard
9199 これらは期待通りに動作するので、ここでは列挙するだけにして、コマンドの説明されている節を挙げておきます。
9200 \family typewriter
9201
9202 \backslash
9203 documentclass
9204 \family default
9205  (2.1.1)・
9206 \family typewriter
9207
9208 \backslash
9209 begin{document}
9210 \family default
9211  (2.2)・
9212 \family typewriter
9213
9214 \backslash
9215 title
9216 \family default
9217  (2.3)・
9218 \family typewriter
9219
9220 \backslash
9221 author
9222 \family default
9223  (2.3)・
9224 \family typewriter
9225
9226 \backslash
9227 affil
9228 \family default
9229  (2.3)・
9230 \family typewriter
9231
9232 \backslash
9233 abstract
9234 \family default
9235  (2.4)・
9236 \family typewriter
9237
9238 \backslash
9239 keywords
9240 \family default
9241  (2.5)・
9242 \family typewriter
9243
9244 \backslash
9245 section
9246 \family default
9247  (2.7)・
9248 \family typewriter
9249
9250 \backslash
9251 subsection
9252 \family default
9253  (2.7)・
9254 \family typewriter
9255
9256 \backslash
9257 subsubsection
9258 \family default
9259  (2.7)・
9260 \family typewriter
9261
9262 \backslash
9263 paragraph
9264 \family default
9265  (2.7)・
9266 \family typewriter
9267
9268 \backslash
9269 facility
9270 \family default
9271  (2.10)・
9272 \family typewriter
9273
9274 \backslash
9275 begin{displaymath}
9276 \family default
9277  (2.12)・
9278 \family typewriter
9279
9280 \backslash
9281 begin{equation}
9282 \family default
9283  (2.12)・
9284 \family typewriter
9285
9286 \backslash
9287 begin{eqnarray}
9288 \family default
9289  (2.12)・
9290 \family typewriter
9291
9292 \backslash
9293 begin{mathletters}
9294 \family default
9295  (2.12)・
9296 \family typewriter
9297
9298 \backslash
9299 begin{thebibliography}
9300 \family default
9301  (2.13.1)・
9302 \family typewriter
9303
9304 \backslash
9305 bibitem
9306 \family default
9307  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9308 \family typewriter
9309
9310 \backslash
9311 begin{table}
9312 \family default
9313  (2.15.4)・
9314 \family typewriter
9315
9316 \backslash
9317 begin{tabular}
9318 \family default
9319  (2.15.4)・
9320 \family typewriter
9321
9322 \backslash
9323 caption
9324 \family default
9325  (2.15.4)・
9326 \family typewriter
9327
9328 \backslash
9329 label
9330 \family default
9331  (他にもあるが特に2.15.4)・
9332 \family typewriter
9333
9334 \backslash
9335 tablerefs
9336 \family default
9337  (2.15.5)・
9338 \family typewriter
9339
9340 \backslash
9341 tablecomments
9342 \family default
9343  (2.15.5)・
9344 \family typewriter
9345
9346 \backslash
9347 url
9348 \family default
9349  (2.17.4)・
9350 \family typewriter
9351
9352 \backslash
9353 end{document}
9354 \family default
9355  (2.18)。
9356 \end_layout
9357
9358 \begin_layout Standard
9359 以下のスタイルオプションも正しく動作します。
9360 \family typewriter
9361 longabstract
9362 \family default
9363  (2.4)・
9364 \family typewriter
9365 preprint
9366 \family default
9367  (3.2.1)・
9368 \family typewriter
9369 preprint2
9370 \family default
9371  (3.2.2)・
9372 \family typewriter
9373 eqsecnum
9374 \family default
9375  (3.3)・
9376 \family typewriter
9377 flushrt
9378 \family default
9379  (3.4)。これらは、
9380 \begin_inset Flex MenuItem
9381 status collapsed
9382
9383 \begin_layout Plain Layout
9384 文書\SpecialChar menuseparator
9385 設定
9386 \end_layout
9387
9388 \end_inset
9389
9390 にある、
9391 \family sans
9392 クラスオプション
9393 \family default
9394
9395 \family sans
9396 任意設定
9397 \family default
9398 ボックスに入力してください。
9399 \end_layout
9400
9401 \begin_layout Subsubsection
9402 動作するが、若干説明が必要なもの
9403 \end_layout
9404
9405 \begin_layout Standard
9406 以下のコマンドは動作しますが、若干の説明が必要です。
9407 \end_layout
9408
9409 \begin_layout Itemize
9410 以下の項目は、学術誌の編集者向けに取ってあるものですが、どうしても必要ならば、\SpecialChar LaTeX
9411 プリアンブルに入れることができます。
9412 \family typewriter
9413
9414 \backslash
9415 received
9416 \family default
9417
9418 \family typewriter
9419
9420 \backslash
9421 revised
9422 \family default
9423
9424 \family typewriter
9425
9426 \backslash
9427 accepted
9428 \family default
9429
9430 \family typewriter
9431
9432 \backslash
9433 ccc
9434 \family default
9435
9436 \family typewriter
9437 cpright
9438 \family default
9439 (すべて 2.1.3)。
9440 \end_layout
9441
9442 \begin_layout Itemize
9443 以下の項目は、\SpecialChar LaTeX
9444 のプリアンブルに置くことができるもので、これらは、ひな型ファイルには、空の引数と共に含まれています。
9445 \family typewriter
9446
9447 \backslash
9448 slugcomment
9449 \family default
9450 (2.1.4)・
9451 \family typewriter
9452
9453 \backslash
9454 shorttitle
9455 \family default
9456 (2.1.5)・
9457 \family typewriter
9458
9459 \backslash
9460 shortauthors
9461 \family default
9462 (2.1.5)。
9463 \end_layout
9464
9465 \begin_layout Itemize
9466
9467 \family typewriter
9468
9469 \backslash
9470 email
9471 \family default
9472 (2.3)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、\SpecialChar TeX
9473 コードを使用してください。
9474 \end_layout
9475
9476 \begin_layout Itemize
9477
9478 \family typewriter
9479
9480 \backslash
9481 and
9482 \family default
9483 (2.3)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9484 \end_layout
9485
9486 \begin_layout Itemize
9487
9488 \family typewriter
9489
9490 \backslash
9491 notetoeditor
9492 \family default
9493 (2.6)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、\SpecialChar TeX
9494 コードを使用してください。
9495 \end_layout
9496
9497 \begin_layout Itemize
9498
9499 \family typewriter
9500
9501 \backslash
9502 placetable
9503 \family default
9504 (2.8)―相互参照用タグを挿入することはできません。手動でタグ名を入力する必要があります。
9505 \end_layout
9506
9507 \begin_layout Itemize
9508
9509 \family typewriter
9510
9511 \backslash
9512 placefigure
9513 \family default
9514 (2.8)—
9515 \family typewriter
9516
9517 \backslash
9518 placetable
9519 \family default
9520 と同様。
9521 \end_layout
9522
9523 \begin_layout Itemize
9524
9525 \family typewriter
9526
9527 \backslash
9528 acknowledgements
9529 \family default
9530 (2.9)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9531 \end_layout
9532
9533 \begin_layout Itemize
9534
9535 \family typewriter
9536
9537 \backslash
9538 appendix
9539 \family default
9540 (2.11)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9541 \end_layout
9542
9543 \begin_layout Itemize
9544
9545 \family typewriter
9546
9547 \backslash
9548 figcaption
9549 \family default
9550 (2.14.2)―文章のはじめにカーソルを置いて
9551 \begin_inset Flex MenuItem
9552 status collapsed
9553
9554 \begin_layout Plain Layout
9555 挿入\SpecialChar menuseparator
9556 短縮タイトル
9557 \end_layout
9558
9559 \end_inset
9560
9561 を選択すれば、非必須のファイル名引数を挿入することができます。「短縮タイトル」とありますが、
9562 \family typewriter
9563
9564 \backslash
9565 figcaption
9566 \family default
9567 が必要とする型の非必須引数を挿入します。望むらくはいつの日か改名されることでしょう。
9568 \end_layout
9569
9570 \begin_layout Itemize
9571
9572 \family typewriter
9573
9574 \backslash
9575 objectname
9576 \family default
9577 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
9578 \family typewriter
9579
9580 \backslash
9581 figcaption
9582 \family default
9583 と同様。
9584 \end_layout
9585
9586 \begin_layout Itemize
9587
9588 \family typewriter
9589
9590 \backslash
9591 dataset
9592 \family default
9593 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
9594 \family typewriter
9595
9596 \backslash
9597 figcaption
9598 \family default
9599 と同様。
9600 \end_layout
9601
9602 \begin_layout Subsubsection
9603 実装されていないため、\SpecialChar TeX
9604 コードを使用するもの
9605 \end_layout
9606
9607 \begin_layout Standard
9608
9609 \family typewriter
9610
9611 \backslash
9612 altaffilmark
9613 \family default
9614 (2.3)・
9615 \family typewriter
9616
9617 \backslash
9618 altaffiltext
9619 \family default
9620 (2.3)・
9621 \family typewriter
9622
9623 \backslash
9624 eqnum
9625 \family default
9626 (2.12)・
9627 \family typewriter
9628
9629 \backslash
9630 setcounter{equation}
9631 \family default
9632 (2.12)・学術誌名略語(2.12.4)・
9633 \family typewriter
9634
9635 \backslash
9636 figurenum
9637 \family default
9638 (2.14.1)・
9639 \family typewriter
9640
9641 \backslash
9642 epsscale
9643 \family default
9644 (2.14.1)・
9645 \family typewriter
9646
9647 \backslash
9648 plotone
9649 \family default
9650 (2.14.1)・
9651 \family typewriter
9652
9653 \backslash
9654 plottwo
9655 \family default
9656 (2.14.1)・
9657 \family typewriter
9658
9659 \backslash
9660 tablenum
9661 \family default
9662 (2.15.4)・
9663 \family typewriter
9664
9665 \backslash
9666 tableline
9667 \family default
9668 (2.15.4:入れたい場所の後ろに、左側セルの最初の要素として挿入する。表中では、\SpecialChar LyX
9669 の方法は使わないでください)・
9670 \family typewriter
9671
9672 \backslash
9673 tablenotemark
9674 \family default
9675 (2.15.5)・
9676 \family typewriter
9677
9678 \backslash
9679 tablenotetext
9680 \family default
9681 (2.15.5)・補遺(2.17)の大半(
9682 \family typewriter
9683
9684 \backslash
9685 objectname
9686 \family default
9687
9688 \family typewriter
9689
9690 \backslash
9691 dataset
9692 \family default
9693
9694 \family typewriter
9695
9696 \backslash
9697 url
9698 \family default
9699
9700 \family typewriter
9701
9702 \backslash
9703 email
9704 \family default
9705 を除く。上記参照)・
9706 \family typewriter
9707
9708 \backslash
9709 singlespace
9710 \family default
9711 (3.1)・
9712 \family typewriter
9713
9714 \backslash
9715 doublespace
9716 \family default
9717 (3.1)・
9718 \family typewriter
9719
9720 \backslash
9721 onecolumn
9722 \family default
9723 (3.2)・
9724 \family typewriter
9725
9726 \backslash
9727 twocolumn
9728 \family default
9729 (3.2)
9730 \end_layout
9731
9732 \begin_layout Subsubsection
9733 実装できないもの
9734 \end_layout
9735
9736 \begin_layout Standard
9737 references(2.12.3)環境とdeluxetable(2.14)環境は、少なくとも意味のあるような形で実装することができないので、無視してください。もし、
9738 絶対に、どうしても、deluxetableを使う必要があるならば、テキストエディタで別ファイルとして編集し、
9739 \begin_inset Flex MenuItem
9740 status collapsed
9741
9742 \begin_layout Plain Layout
9743 挿入\SpecialChar menuseparator
9744 ファイル
9745 \begin_inset Formula $\text{\textipa{}}$
9746 \end_inset
9747
9748 \SpecialChar menuseparator
9749 子文書
9750 \end_layout
9751
9752 \end_inset
9753
9754 を使用して、\SpecialChar LyX
9755 ファイルに読み込むことを推奨します。この実例は、
9756 \family typewriter
9757 aas_sample.lyx
9758 \family default
9759 ファイルをご参照ください。
9760 \end_layout
9761
9762 \begin_layout Subsection
9763 FAQとヒントと技とその他の考察
9764 \end_layout
9765
9766 \begin_layout Subsubsection
9767 \SpecialChar LyX
9768 をAAS\SpecialChar TeX
9769 と協調させる
9770 \end_layout
9771
9772 \begin_layout Standard
9773 \SpecialChar LyX
9774 に、新しいレイアウトと文書クラスを認識させるには若干コツが要ります。もしうまく行かなかったら、次のようにしてみてください。
9775 \end_layout
9776
9777 \begin_layout Enumerate
9778 \SpecialChar LaTeX
9779 が、AAS\SpecialChar TeX
9780 を検出できることを確認してください。AAS\SpecialChar TeX
9781 頒布版に含まれる
9782 \family typewriter
9783 sample.tex
9784 \family default
9785 (あるいは
9786 \family typewriter
9787 table.tex
9788 \family default
9789 でも可)を、\SpecialChar LaTeX
9790 やAAS\SpecialChar TeX
9791 とまったく関係のないディレクトリにコピーして、
9792 \family typewriter
9793 sample.tex
9794 \family default
9795 を\SpecialChar LaTeX
9796 にかけてください。
9797 \end_layout
9798
9799 \begin_layout Enumerate
9800
9801 \family typewriter
9802 aastex.layout
9803 \family default
9804 が、\SpecialChar LyX
9805
9806 \family typewriter
9807 layouts
9808 \family default
9809 フォルダにあることを確認してください。
9810 \end_layout
9811
9812 \begin_layout Enumerate
9813 \SpecialChar LyX
9814 中から
9815 \family sans
9816 ツール\SpecialChar menuseparator
9817 環境構成
9818 \family default
9819 を再度実行し、\SpecialChar LyX
9820 を再起動してください。
9821 \end_layout
9822
9823 \begin_layout Enumerate
9824 ひな型ではなく、通常の新規ファイルを開いてください。AAS\SpecialChar TeX
9825 が、
9826 \family sans
9827 文書\SpecialChar menuseparator
9828 設定
9829 \family default
9830 のクラス一覧に表示されていますか?
9831 \end_layout
9832
9833 \begin_layout Standard
9834 既存のAAS\SpecialChar TeX
9835 文書を処理する際に、AAS\SpecialChar TeX
9836 レイアウトを見つけられないとか、「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
9837 れば、正しい導入が行われていません。
9838 \end_layout
9839
9840 \begin_layout Subsubsection
9841 表を処理する際の\SpecialChar LaTeX
9842 エラー
9843 \end_layout
9844
9845 \begin_layout Standard
9846 既定では、\SpecialChar LyX
9847 は、表のキャプションやタイトルを中央揃えにしようと試みます。これはAAS\SpecialChar TeX
9848 と悪い相互干渉を発生させるようですので、キャプションやタイトルのどこかをクリッ
9849 クして、
9850 \family sans
9851 編集\SpecialChar menuseparator
9852 段落設定
9853 \family default
9854 を選択し、
9855 \family sans
9856 配置
9857 \family default
9858
9859 \family sans
9860 両端揃え
9861 \family default
9862 に設定してください。私のところではこれで解決しました。
9863 \end_layout
9864
9865 \begin_layout Subsubsection
9866 書誌情報
9867 \end_layout
9868
9869 \begin_layout Standard
9870 若干の注意があります。(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです。書誌情報を入力する際には、最後の著者と、著作年を入れる括弧の間にスペ
9871 ースを
9872 \emph on
9873 入れない
9874 \emph default
9875 ようにしてください。たとえば、
9876 \family typewriter
9877 Ressler(1992)
9878 \family default
9879 はいいですが、
9880 \family typewriter
9881 Ressler (1992)
9882 \family default
9883 ではだめです。(2)書誌情報の入力の仕方は、必ずしも自明ではありません。もっとも簡単な方法は、文書の最後に、最初の書誌情報をまず書き込み、それを
9884 \family sans
9885 書誌情報
9886 \family default
9887 環境としてマークすることです。すると、入力したものの前に、小さな灰色のボックスが現れます。このボックスをクリックして、残りの情報を入力してください。新しい書誌情
9888 報を追加するには、既存の書誌情報の後ろでリターンを押します。すると、新しいボックスの付いた新規行が出てくるので、後は同様にしてください。
9889 \end_layout
9890
9891 \begin_layout Subsubsection
9892 EPSファイルの読み込み
9893 \end_layout
9894
9895 \begin_layout Standard
9896 AAS\SpecialChar TeX
9897 には、自前の図関連コマンド(たとえば
9898 \family typewriter
9899
9900 \backslash
9901 plotone
9902 \family default
9903 )がありますが、私は(既定のgraphicxを使った)\SpecialChar LaTeX
9904 の標準図コマンドの方がずっと好きです。望めば、図フロートボックスに、\SpecialChar TeX
9905 コードで
9906 \family typewriter
9907
9908 \backslash
9909 plotone
9910 \family default
9911 等のコマンドを挿入することはできますが、私には正しいレイアウトを得ることができた試しがありません。標準の画像コマンドを使えば、\SpecialChar LyX
9912 は、
9913 \family typewriter
9914
9915 \backslash
9916 usepackage{graphics}
9917 \family default
9918 コマンドを\SpecialChar LaTeX
9919 プリアンブルに挿入し、図を\SpecialChar LaTeX2e
9920 の標準的な方法で取り扱って、文章の中にちりばめます。現在、ApJは、ちょうどこのようにして作成した図を受け入れていますが、A
9921 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません。
9922 \end_layout
9923
9924 \begin_layout Subsubsection
9925 可能だったが、実装しなかったもの
9926 \end_layout
9927
9928 \begin_layout Standard
9929 「素敵な」ものの中には、実装することも可能だったけれども、あえて実装しなかったものがあります。たとえば、紙の原稿ではダブルスペースであったとしても、\SpecialChar LyX
9930 ウィンドウ中
9931 で、文章をダブルスペースにする意味はないと考えました。また、preprint様式とpreprint2様式を、独立したレイアウトにすることもしませんでした。いずれ
9932 にしても、執筆時間のほとんどを、平の原稿モードで使うのがほとんどですから、これらの機能でディスクスペースを消費しないことにしました。
9933 \end_layout
9934
9935 \begin_layout Subsection
9936 最後に
9937 \end_layout
9938
9939 \begin_layout Standard
9940 これまでに進んできた道のりは、長い人も短い人もいることでしょう。私には、ApJとAJに発表した論文がありますが、その努力の98
9941 \begin_inset space \thinspace{}
9942 \end_inset
9943
9944 %は\SpecialChar LyX
9945 上で為されました。残りの2
9946 \begin_inset space \thinspace{}
9947 \end_inset
9948
9949 %が、\SpecialChar LaTeX
9950 での後処理と若干の後片付けです。投稿の過程では何のトラブルもなく、これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう。ですから、がんばっ
9951 て発表してください!
9952 \end_layout
9953
9954 \begin_layout Section
9955 AMS \SpecialChar LaTeX
9956
9957 \end_layout
9958
9959 \begin_layout Standard
9960
9961 \noun on
9962 David Johnson
9963 \noun default
9964 文 
9965 \noun on
9966 Richard Heck
9967 \noun default
9968 改訂
9969 \begin_inset VSpace bigskip
9970 \end_inset
9971
9972
9973 \end_layout
9974
9975 \begin_layout Standard
9976 AMS \SpecialChar LaTeX
9977 レイアウトは、American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです。レイアウトは、特定
9978 の学術誌向けに仕立てられてはいませんが、簡単にそうすることができます。各学術誌毎の指示については、AMSの説明書をご参照ください(通常は、\SpecialChar TeX
9979 出力中の一行を変更する
9980 必要があるだけです)。AMSの説明書は、ウェブWeb上の
9981 \begin_inset Flex URL
9982 status open
9983
9984 \begin_layout Plain Layout
9985
9986 http://www.ams.org
9987 \end_layout
9988
9989 \end_inset
9990
9991 か、FTPで
9992 \begin_inset Flex URL
9993 status open
9994
9995 \begin_layout Plain Layout
9996
9997 ftp://ftp.ams.org/pub/tex/amslatex/
9998 \end_layout
9999
10000 \end_inset
10001
10002 から入手することができます。これらのレイアウトは、数学的な文章を書くのであれば、どんなときでも適切かつ有用であるはずです。
10003 \end_layout
10004
10005 \begin_layout Standard
10006 基本となるAMS \SpecialChar LaTeX
10007 レイアウトには、以下の二つがあります。
10008 \end_layout
10009
10010 \begin_layout Itemize
10011 amsart:標準のAMS article書式。
10012 \end_layout
10013
10014 \begin_layout Itemize
10015 amsbook:標準のAMS book(実際はモノグラフ)書式。
10016 \end_layout
10017
10018 \begin_layout Standard
10019 これらのレイアウトには、それ自身では、AMSクラスを使用するのに必要最低限のものしか含まれていません。特に、定理や補題などを設定するのに使用される「theore
10020 m」環境は、何一つ含まれていません。これらは、代わりに
10021 \begin_inset Flex Code
10022 status collapsed
10023
10024 \begin_layout Plain Layout
10025 定理(AMS)
10026 \end_layout
10027
10028 \end_inset
10029
10030 モジュールに収録されており、AMSクラスのいずれかを選択すると、このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ、別
10031 のものに変えたいときは取り除くこともできます)。少し使用頻度の低いものとしては、
10032 \begin_inset Flex Code
10033 status collapsed
10034
10035 \begin_layout Plain Layout
10036 定理(AMS拡張)
10037 \end_layout
10038
10039 \end_inset
10040
10041 モジュールがあり、これは手動で読み込む必要があります。
10042 \end_layout
10043
10044 \begin_layout Standard
10045 既定では、定理類は、文書を通して連番が振られますが、これは
10046 \begin_inset Flex Code
10047 status collapsed
10048
10049 \begin_layout Plain Layout
10050 定理(節毎連番)
10051 \end_layout
10052
10053 \end_inset
10054
10055 モジュールを読み込めば変更することができ、
10056 \begin_inset Flex Code
10057 status collapsed
10058
10059 \begin_layout Plain Layout
10060 book (AMS)
10061 \end_layout
10062
10063 \end_inset
10064
10065 を使用している場合には
10066 \begin_inset Flex Code
10067 status collapsed
10068
10069 \begin_layout Plain Layout
10070 定理(章毎連番)
10071 \end_layout
10072
10073 \end_inset
10074
10075 を用いても変更することができます。これらを用いると、出力は
10076 \begin_inset Formula $n.m$
10077 \end_inset
10078
10079 のようになり、最初の数字は節番号(または章番号)、次の数字はそれまで同節内(章内)に現れた出力の全数を表します。大半の環境は、連番なしでも用いることができます。
10080 連番なしのものは、環境名の後ろにアスタリスクを付けたもので表されます。連番なしの出力
10081 \emph on
10082 のみ
10083 \emph default
10084 が欲しい場合には、
10085 \begin_inset Flex Code
10086 status collapsed
10087
10088 \begin_layout Plain Layout
10089 定理(連番なし)
10090 \end_layout
10091
10092 \end_inset
10093
10094 モジュールを用います。
10095 \end_layout
10096
10097 \begin_layout Standard
10098 これらのモジュールは、AMSクラスで使用する
10099 \emph on
10100 必要はない
10101 \emph default
10102 ことに注意してください。
10103 \begin_inset Flex Code
10104 status collapsed
10105
10106 \begin_layout Plain Layout
10107 定理(AMS)
10108 \end_layout
10109
10110 \end_inset
10111
10112 モジュールや上述の他のモジュールは、他のクラス、たとえば
10113 \begin_inset Flex Code
10114 status collapsed
10115
10116 \begin_layout Plain Layout
10117 article
10118 \end_layout
10119
10120 \end_inset
10121
10122
10123 \begin_inset Flex Code
10124 status collapsed
10125
10126 \begin_layout Plain Layout
10127 report
10128 \end_layout
10129
10130 \end_inset
10131
10132
10133 \begin_inset Flex Code
10134 status collapsed
10135
10136 \begin_layout Plain Layout
10137 book (KOMA-script)
10138 \end_layout
10139
10140 \end_inset
10141
10142 などで問題なく使用することができます。
10143 \end_layout
10144
10145 \begin_layout Subsection
10146 これらのレイアウトが提供するもの
10147 \end_layout
10148
10149 \begin_layout Standard
10150 これらのレイアウトが提供している環境を列挙すると、長い一覧となります。AMS-\SpecialChar LaTeX
10151 では、実のところ、「theorem」環境の派生型を際限なく定義していくことが可能で
10152 す。しかし、AMSは、\SpecialChar LyX
10153 で利用可能になっている環境のみを使用することを推奨しています。
10154 \end_layout
10155
10156 \begin_layout Standard
10157 \begin_inset Flex Code
10158 status collapsed
10159
10160 \begin_layout Plain Layout
10161 article (AMS)
10162 \end_layout
10163
10164 \end_inset
10165
10166
10167 \begin_inset Flex Code
10168 status collapsed
10169
10170 \begin_layout Plain Layout
10171 book (AMS)
10172 \end_layout
10173
10174 \end_inset
10175
10176 には、——
10177 \begin_inset space ~
10178 \end_inset
10179
10180
10181 \begin_inset Flex Noun
10182 status collapsed
10183
10184 \begin_layout Plain Layout
10185
10186 \end_layout
10187
10188 \end_inset
10189
10190
10191 \begin_inset Flex Noun
10192 status collapsed
10193
10194 \begin_layout Plain Layout
10195 書誌情報
10196 \end_layout
10197
10198 \end_inset
10199
10200
10201 \begin_inset Flex Noun
10202 status collapsed
10203
10204 \begin_layout Plain Layout
10205 タイトル
10206 \end_layout
10207
10208 \end_inset
10209
10210
10211 \begin_inset Flex Noun
10212 status collapsed
10213
10214 \begin_layout Plain Layout
10215 著者
10216 \end_layout
10217
10218 \end_inset
10219
10220
10221 \begin_inset Flex Noun
10222 status collapsed
10223
10224 \begin_layout Plain Layout
10225 日付
10226 \end_layout
10227
10228 \end_inset
10229
10230 のような標準環境の他に
10231 \begin_inset space ~
10232 \end_inset
10233
10234 ——
10235 \begin_inset space ~
10236 \end_inset
10237
10238 以下の環境があります。
10239 \end_layout
10240
10241 \begin_layout Description
10242 住所 これは著者の恒久的な住所です。
10243 \end_layout
10244
10245 \begin_layout Description
10246 現在の住所 住所と別に指定されているときには、著者の投稿時の仮初めの住所です。
10247 \end_layout
10248
10249 \begin_layout Description
10250 電子メール 著者の電子メールアドレス
10251 \end_layout
10252
10253 \begin_layout Description
10254 URL 著者のウェブアドレス。任意。
10255 \end_layout
10256
10257 \begin_layout Description
10258 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ。
10259 \end_layout
10260
10261 \begin_layout Description
10262 分野分類 
10263 \emph on
10264 Mathematical Reviews
10265 \emph default
10266 に説明が公表されているAMS Subject Classificationsの分類番号を指します。上述したAMSのウェブサイトでも、オンラインで見ることができま
10267 す。
10268 \end_layout
10269
10270 \begin_layout Description
10271 謝辞
10272 \end_layout
10273
10274 \begin_layout Description
10275 献呈
10276 \end_layout
10277
10278 \begin_layout Description
10279 翻訳者
10280 \end_layout
10281
10282 \begin_layout Standard
10283 以下の環境は、
10284 \begin_inset Flex Code
10285 status collapsed
10286
10287 \begin_layout Plain Layout
10288 定理
10289 \end_layout
10290
10291 \end_inset
10292
10293 モジュールと
10294 \begin_inset Flex Code
10295 status collapsed
10296
10297 \begin_layout Plain Layout
10298 定理(AMS)
10299 \end_layout
10300
10301 \end_inset
10302
10303 モジュールの両方で提供され、後者の場合には、星付き(連番なし)版と星なし(連番)版の両方が提供されます。
10304 \begin_inset Flex Code
10305 status collapsed
10306
10307 \begin_layout Plain Layout
10308 定理(連番なし)
10309 \end_layout
10310
10311 \end_inset
10312
10313 モジュールでは、同環境の星付き版だけが提供されます。
10314 \end_layout
10315
10316 \begin_layout Theorem
10317 これは、通常、得られた主要な結果を叙述するのに使用されます。
10318 \end_layout
10319
10320 \begin_layout Corollary*
10321 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います。これも主要な結果であることがあります。
10322 \end_layout
10323
10324 \begin_layout Lemma
10325 他の叙述を証明するために必要とされる、比較的小さな結果です。
10326 \end_layout
10327
10328 \begin_layout Proposition
10329 議論されている一般的な理論に(希望的には)何かを付け加えるような、主要ではない結果です。
10330 \end_layout
10331
10332 \begin_layout Conjecture
10333 正当化を与えずに述べられた叙述で、著者には証明法がわからないけれども、正しいと(少なくとも著者にとっては)思われるものです。
10334 \end_layout
10335
10336 \begin_layout Definition*
10337 これは自明でしょう。この環境のフォントは、前述の環境とは異なるフォントが使用されます。
10338 \end_layout
10339
10340 \begin_layout Problem
10341 これが何を指すかは必ずしも特定されていません。ご自分で解明してください。
10342 \end_layout
10343
10344 \begin_layout Exercise*
10345 この環境の説明を記述せよ。
10346 \end_layout
10347
10348 \begin_layout Note
10349 この環境もtheorem型、通常は重要性の低い所見に用いられます。
10350 \end_layout
10351
10352 \begin_layout Claim*
10353 より大きな結果の証明を与える途中で、しばしば用いられます。
10354 \end_layout
10355
10356 \begin_layout Case
10357 一般的に、これらはある条件の特定の場合を取り上げて、長い議論を区切るのに用いられます。
10358 \end_layout
10359
10360 \begin_layout Case
10361 ケースの連番の枠組みは、それ自身で独立していて、他の連番の叙述とは区別されます。
10362 \end_layout
10363
10364 \begin_layout Proof
10365 この環境の最後には、証了記号(通常は四角ですがスタイルによって変わります)が置かれます。この環境の中に別の環境を入れたい——たとえばケース環境など——場合で、証
10366 了記号は証明環境の終わりにのみ現れるようにしたい場合には、他の環境は証明環境の中に入れ子にしなくてはなりません。入れ子に関する情報については、
10367 \emph on
10368 ユーザーの手引き
10369 \emph default
10370
10371 \emph on
10372 環境を入れ子にする
10373 \emph default
10374 の節をご覧ください。
10375 \end_layout
10376
10377 \begin_layout Standard
10378 そして、以下は
10379 \begin_inset Flex Code
10380 status collapsed
10381
10382 \begin_layout Plain Layout
10383 定理(AMS拡張)
10384 \end_layout
10385
10386 \end_inset
10387
10388 で提供されるものです。
10389 \end_layout
10390
10391 \begin_layout Criterion*
10392 必要とされる条件です。
10393 \end_layout
10394
10395 \begin_layout Algorithm*
10396 使用する一般的手順です。
10397 \end_layout
10398
10399 \begin_layout Axiom*
10400 議論されている系内部で真と仮定される性質や命題です。
10401 \end_layout
10402
10403 \begin_layout Condition*
10404 議論の現在の文脈で仮定されている条件を述べるのに、よく用いられます。
10405 \end_layout
10406
10407 \begin_layout Note*
10408 注記と同様です。
10409 \end_layout
10410
10411 \begin_layout Notation*
10412 表記法の説明に用いられます。
10413 \end_layout
10414
10415 \begin_layout Summary
10416 本当に説明する必要がありますか?
10417 \end_layout
10418
10419 \begin_layout Acknowledgement*
10420 謝辞(acknowledgement)です。
10421 \end_layout
10422
10423 \begin_layout Conclusion*
10424 長い議論の終わりに時々用いられます。
10425 \end_layout
10426
10427 \begin_layout Fact
10428 命題と同様の用いられ方をしますが、だいたい長くないものに使われるようです。
10429 \end_layout
10430
10431 \begin_layout Standard
10432 さらに、AMSクラスは、AMS \SpecialChar LaTeX
10433 パッケージとAMSフォントパッケージを自動的に提供します。これらの環境を使用するためには、お使いのシステム上で利用可能となってい
10434 る必要があります。
10435 \end_layout
10436
10437 \begin_layout Section
10438 AGU各誌(
10439 \family sans
10440 aguplus)
10441 \end_layout
10442
10443 \begin_layout Standard
10444
10445 \noun on
10446 Martin Vermeer
10447 \noun default
10448
10449 \end_layout
10450
10451 \begin_layout Subsection
10452 概要
10453 \end_layout
10454
10455 \begin_layout Standard
10456 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです。AGU発行のクラスファイルおよび
10457 AGUplusの両方(これらは
10458 \begin_inset Flex URL
10459 status collapsed
10460
10461 \begin_layout Plain Layout
10462
10463 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10464 \end_layout
10465
10466 \end_inset
10467
10468 にあります)が導入されていることが必要です。
10469 \end_layout
10470
10471 \begin_layout Subsection
10472 新しいスタイル
10473 \end_layout
10474
10475 \begin_layout Standard
10476
10477 \family sans
10478 段落
10479 \family default
10480 および
10481 \family sans
10482 段落*
10483 \family default
10484 は、定義し直されています。\SpecialChar LyX
10485 の画面では、依然として
10486 \family sans
10487 段落
10488 \family default
10489
10490 \family sans
10491 段落*
10492 \family default
10493 と表示されますが、AGUクラスにおける\SpecialChar LaTeX
10494 の対応物は、
10495 \family sans
10496 Subsubsubsection
10497 \family default
10498
10499 \family sans
10500 Subsubsubsection*
10501 \family default
10502 です。
10503 \end_layout
10504
10505 \begin_layout Standard
10506 新しく定義されたスタイルには、
10507 \family sans
10508 左ヘッダ
10509 \family default
10510
10511 \family sans
10512 右ヘッダ
10513 \family default
10514
10515 \family sans
10516 受理日
10517 \family default
10518
10519 \family sans
10520 改訂
10521 \family default
10522
10523 \family sans
10524 採択日
10525 \family default
10526
10527 \family sans
10528 CCC
10529 \family default
10530
10531 \family sans
10532 論文ID
10533 \family default
10534
10535 \family sans
10536 著者住所
10537 \family default
10538
10539 \family sans
10540 廃棄用コメント
10541 \family default
10542 があります。これらは、ほとんど草稿用属性で、AGUクラス説明書で説明されています。
10543 \end_layout
10544
10545 \begin_layout Standard
10546 おそらく、これはまだ恐ろしく不完全です。
10547 \end_layout
10548
10549 \begin_layout Subsection
10550 新しいフロート
10551 \end_layout
10552
10553 \begin_layout Standard
10554
10555 \family sans
10556 平面表(Planotable
10557 \family default
10558 )と
10559 \family sans
10560 挿絵
10561 \family default
10562 (Plate)が新しいフロートです。また、
10563 \family sans
10564 表キャプション
10565 \family default
10566 も付け加えられています。
10567 \end_layout
10568
10569 \begin_layout Subsection
10570 サポートされている学術誌
10571 \end_layout
10572
10573 \begin_layout Itemize
10574
10575 \emph on
10576 Journal of Geophysical Research
10577 \emph default
10578
10579 \family typewriter
10580 jgrga.layout
10581 \family default
10582  — Martin Vermeer
10583 \end_layout
10584
10585 \begin_layout Standard
10586 ここにあなたの作ったものを加えてください。難しくはありません。
10587 \family typewriter
10588 jgrga.layout
10589 \family default
10590 と 
10591 \family typewriter
10592 aguplus.inc
10593 \family default
10594 を用例として見てください。
10595 \end_layout
10596
10597 \begin_layout Subsection
10598 バグと注意すべきこと
10599 \end_layout
10600
10601 \begin_layout Standard
10602 新しいレイアウトを使うためには、新規文書の作成時に以下の手順を行う必要があります。
10603 \end_layout
10604
10605 \begin_layout Enumerate
10606
10607 \emph on
10608 babelを無効にしてください。
10609 \emph default
10610 これは、
10611 \family sans
10612 ツール\SpecialChar menuseparator
10613 設定
10614 \family default
10615 メニュー項目で行うことができます(AGUの論文は常に英語ですよね。ですから他の言語は
10616 \emph on
10617 選ばないで下さい
10618 \emph default
10619 )。
10620 \end_layout
10621
10622 \begin_layout Enumerate
10623 使用文書の追加オプションフィールドに
10624 \family typewriter
10625 jgrga
10626 \family default
10627 と入力してください(すみません、これはバグです)。
10628 \end_layout
10629
10630 \begin_layout Enumerate
10631 Bib\SpecialChar TeX
10632 差込枠の2番目のフィールドに
10633 \family sans
10634 agu
10635 \family default
10636 と入力して、書誌情報のスタイルに
10637 \family typewriter
10638 agu.bst
10639 \family default
10640 を使用していることを確認してください。標準スタイルはうまく動作しません。
10641 \end_layout
10642
10643 \begin_layout Section
10644 Broadway
10645 \end_layout
10646
10647 \begin_layout Standard
10648
10649 \noun on
10650 Garst Reese
10651 \noun default
10652
10653 \end_layout
10654
10655 \begin_layout Subsection
10656 はじめに
10657 \end_layout
10658
10659 \begin_layout Standard
10660 Broadwayは演劇を書くためのものです。書式はHollywoodよりも装飾的で、それほど標準化されていません。この書式はワークショップに向いているでしょう。
10661 \end_layout
10662
10663 \begin_layout Subsection
10664 特別な問題
10665 \end_layout
10666
10667 \begin_layout Standard
10668 Hollywoodと同様です。
10669 \end_layout
10670
10671 \begin_layout Subsection
10672 特別の機能
10673 \end_layout
10674
10675 \begin_layout Standard
10676
10677 \family sans
10678 話者
10679 \family default
10680 の名前をラベルとして挿入し、名前を挿入する際には、このラベルを相互参照してください。相互参照ダイアログには、登場人物の現在の配役が表示されます。
10681 \end_layout
10682
10683 \begin_layout Subsection
10684 用紙寸法と余白
10685 \end_layout
10686
10687 \begin_layout Standard
10688 USレター寸法で、余白は左1.6インチ、右0.75インチ、上0.5インチ、下0.75インチです。
10689 \end_layout
10690
10691 \begin_layout Subsection
10692 環境
10693 \end_layout
10694
10695 \begin_layout Standard
10696 以下の環境を使うことができます。右に記してある
10697 \begin_inset Flex Ruby
10698 status collapsed
10699
10700 \begin_layout Plain Layout
10701
10702 \begin_inset Argument post:1
10703 status collapsed
10704
10705 \begin_layout Plain Layout
10706 キー
10707 \end_layout
10708
10709 \end_inset
10710
10711
10712 \end_layout
10713
10714 \end_inset
10715
10716 割当ては、broadway.bindを使った場合のものです。
10717 \end_layout
10718
10719 \begin_layout Itemize
10720
10721 \family sans
10722 標準
10723 \begin_inset Newline newline
10724 \end_inset
10725
10726
10727 \family default
10728 これは使わなくていいはずですが、他の環境が当てはまらない場合のためにここに挙げておきます。
10729 \end_layout
10730
10731 \begin_layout Itemize
10732
10733 \family sans
10734 ト書き
10735 \begin_inset space \hfill{}
10736 \end_inset
10737
10738 M-z n
10739 \begin_inset Newline newline
10740 \end_inset
10741
10742
10743 \family default
10744 舞台設定と動作の説明に用います。最初に話者名をすべて大文字で書いておきます。
10745 \end_layout
10746
10747 \begin_layout Itemize
10748
10749 \family sans
10750
10751 \begin_inset space \hfill{}
10752 \end_inset
10753
10754 M-z a
10755 \begin_inset Newline newline
10756 \end_inset
10757
10758
10759 \family default
10760 自動的に連番が振られます。連番は、画面上ではアラビア数字ですが、出力ではローマ数字です。
10761 \end_layout
10762
10763 \begin_layout Itemize
10764
10765 \family sans
10766 幕*
10767 \begin_inset space \hfill{}
10768 \end_inset
10769
10770 M-z S at
10771 \begin_inset Newline newline
10772 \end_inset
10773
10774
10775 \family default
10776 幕の副題です。単に中央揃えの文になります。
10777 \end_layout
10778
10779 \begin_layout Itemize
10780
10781 \family sans
10782 場面
10783 \begin_inset space \hfill{}
10784 \end_inset
10785
10786 M-z S-S
10787 \begin_inset Newline newline
10788 \end_inset
10789
10790
10791 \family default
10792 自動的に連番は振られませんので、手動で番号を付けてください。これは私がどうすればいいか分からなかったためです。
10793 \end_layout
10794
10795 \begin_layout Itemize
10796
10797 \family sans
10798 幕開きに:
10799 \begin_inset space \hfill{}
10800 \end_inset
10801
10802 M-z S-R
10803 \begin_inset Newline newline
10804 \end_inset
10805
10806
10807 \family default
10808 ト書きの特殊な場合で、カーテンが上がるときの舞台設定と動作を説明します。
10809 \end_layout
10810
10811 \begin_layout Itemize
10812
10813 \family sans
10814 話者
10815 \begin_inset space \hfill{}
10816 \end_inset
10817
10818 M-z s
10819 \begin_inset Newline newline
10820 \end_inset
10821
10822
10823 \family default
10824 話者(役者)の配役です。すべて大文字で中央揃えに置かれます。
10825 \end_layout
10826
10827 \begin_layout Itemize
10828
10829 \family sans
10830 括弧付き
10831 \begin_inset space \hfill{}
10832 \end_inset
10833
10834 M-z p
10835 \begin_inset Newline newline
10836 \end_inset
10837
10838
10839 \family default
10840 話者への指示です。括弧は自動的に挿入されます。画面上には左括弧(のみが表示されますが、印字出力には両方の括弧が表示されます。この環境は、
10841 \family sans
10842 対話
10843 \family default
10844 の中だけで使用されます。 
10845 \end_layout
10846
10847 \begin_layout Itemize
10848
10849 \family sans
10850 対話
10851 \begin_inset space \hfill{}
10852 \end_inset
10853
10854 M-z d
10855 \begin_inset Newline newline
10856 \end_inset
10857
10858
10859 \family default
10860 話者の言う内容。
10861 \end_layout
10862
10863 \begin_layout Itemize
10864
10865 \family sans
10866 幕切れ
10867 \begin_inset space \hfill{}
10868 \end_inset
10869
10870 M-z S-C
10871 \begin_inset Newline newline
10872 \end_inset
10873
10874
10875 \family default
10876 幕が降ります。
10877 \end_layout
10878
10879 \begin_layout Itemize
10880
10881 \family sans
10882 タイトル
10883 \begin_inset space \hfill{}
10884 \end_inset
10885
10886 M-z S-T
10887 \end_layout
10888
10889 \begin_layout Itemize
10890
10891 \family sans
10892 著者
10893 \begin_inset space \hfill{}
10894 \end_inset
10895
10896 M-z S-A
10897 \end_layout
10898
10899 \begin_layout Itemize
10900
10901 \family sans
10902 右寄せ住所
10903 \begin_inset space \hfill{}
10904 \end_inset
10905
10906 M-z r
10907 \end_layout
10908
10909 \begin_layout Section
10910 Dinbrief
10911 \end_layout
10912
10913 \begin_layout Standard
10914 文書クラス
10915 \family sans
10916 dinbrief
10917 \family default
10918 は、ドイツの慣習に則った書簡の組版を行うのに用いられます。ひな型ファイルが
10919 \family typewriter
10920 .../lyx/share/templates
10921 \family default
10922 にあるので、それを土台として使用してください。
10923 \end_layout
10924
10925 \begin_layout Section
10926 EGS各誌
10927 \family sans
10928 (egs)
10929 \end_layout
10930
10931 \begin_layout Standard
10932
10933 \noun on
10934 Martin Vermeer
10935 \noun default
10936
10937 \end_layout
10938
10939 \begin_layout Subsection
10940 概要
10941 \end_layout
10942
10943 \begin_layout Standard
10944 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです。必要とされる
10945 \family typewriter
10946 egs.cls
10947 \family default
10948 は、EGSのウェブサイト
10949 \begin_inset Flex URL
10950 status collapsed
10951
10952 \begin_layout Plain Layout
10953
10954 http://www.copernicus.org/
10955 \end_layout
10956
10957 \end_inset
10958
10959 からダウンロードできます。
10960 \end_layout
10961
10962 \begin_layout Subsection
10963 新しいスタイル
10964 \end_layout
10965
10966 \begin_layout Standard
10967 新しいスタイルとして、
10968 \family sans
10969 右寄せ住所
10970 \family default
10971
10972 \family sans
10973 \SpecialChar LaTeX
10974 タイトル
10975 \family default
10976
10977 \family sans
10978 所属
10979 \family default
10980
10981 \family sans
10982 学術誌名
10983 \family default
10984
10985 \family sans
10986 原稿番号
10987 \family default
10988
10989 \family sans
10990 筆頭著者
10991 \family default
10992
10993 \family sans
10994 受理日
10995 \family default
10996
10997 \family sans
10998 採択日
10999 \family default
11000
11001 \family sans
11002 オフセット
11003 \family default
11004 があります。現在のレイアウトファイルは、残念ながらほとんどモジュール化されておらず、さまざまな
11005 \family typewriter
11006 std*.inc
11007 \family default
11008 ファイルを読み込む形に変えた方が便利になると思われます。
11009 \end_layout
11010
11011 \begin_layout Section
11012 Elsevier各誌
11013 \end_layout
11014
11015 \begin_layout Standard
11016 \SpecialChar LyX
11017 ひな型ファイルの
11018 \family typewriter
11019 elsarticle.lyx
11020 \family default
11021 を参照してください。必要な情報は全てそこにあります。
11022 \end_layout
11023
11024 \begin_layout Section
11025 Foils (別名Foil\SpecialChar TeX
11026 )
11027 \begin_inset CommandInset label
11028 LatexCommand label
11029 name "sec:foiltex"
11030
11031 \end_inset
11032
11033
11034 \end_layout
11035
11036 \begin_layout Standard
11037
11038 \noun on
11039 Allan Rae
11040 \noun default
11041
11042 \end_layout
11043
11044 \begin_layout Subsection
11045 はじめに
11046 \end_layout
11047
11048 \begin_layout Standard
11049 本節では、プレゼンテーション用のスライドを作るための、\SpecialChar LyX
11050 の使用法を解説します。スライドを作ることのできる文書クラスには、slides・Foil\SpecialChar TeX
11051 ・seminar・b
11052 eamer・powerdotといったクラスがありますが、本節では、そのうちslidesの解説を行います。
11053 \end_layout
11054
11055 \begin_layout Standard
11056 誤解のないように、わかりやすく明確に、もう一度言っておきます。
11057 \end_layout
11058
11059 \begin_layout Standard
11060 \begin_inset VSpace bigskip
11061 \end_inset
11062
11063
11064 \end_layout
11065
11066 \begin_layout Standard
11067 \align center
11068
11069 \size large
11070 本節は「
11071 \family sans
11072 presentation (FoilT
11073 \size default
11074
11075 \begin_inset ERT
11076 status collapsed
11077
11078 \begin_layout Plain Layout
11079
11080 {}
11081 \end_layout
11082
11083 \end_inset
11084
11085
11086 \size large
11087 eX)
11088 \family default
11089 」クラス
11090 \emph on
11091 のみの
11092 \emph default
11093 解説を行います。
11094 \end_layout
11095
11096 \begin_layout Standard
11097 \begin_inset VSpace bigskip
11098 \end_inset
11099
11100
11101 \end_layout
11102
11103 \begin_layout Standard
11104
11105 \family sans
11106 transparencies (slides)
11107 \family default
11108 」の解説をお探しであれば、第
11109 \begin_inset CommandInset ref
11110 LatexCommand ref
11111 reference "sec:slitex"
11112
11113 \end_inset
11114
11115 節をご覧ください。お使いのコンピュータに
11116 \family sans
11117 foils
11118 \family default
11119 クラス(
11120 \family sans
11121 presentation (FoilT
11122 \begin_inset ERT
11123 status collapsed
11124
11125 \begin_layout Plain Layout
11126
11127 {}
11128 \end_layout
11129
11130 \end_inset
11131
11132 eX)
11133 \family default
11134 )が導入されていなければ、
11135 \family sans
11136 foils
11137 \family default
11138 ほど良くはありませんが、おそらく
11139 \family sans
11140 slides
11141 \family default
11142 クラスを使わざるをえないでしょう。
11143 \end_layout
11144
11145 \begin_layout Standard
11146
11147 \family sans
11148 foils
11149 \family default
11150 クラスは、\SpecialChar LaTeX2e
11151 の一部として含まれている\SpecialChar LaTeX
11152 クラスファイル
11153 \family sans
11154 foils.cls
11155 \family default
11156 の第2.1版とともに使われるように設計されています。
11157 \end_layout
11158
11159 \begin_layout Subsection
11160 最初の一歩
11161 \end_layout
11162
11163 \begin_layout Standard
11164 いうまでもなく、この文書クラスを使うには、
11165 \family sans
11166 文書\SpecialChar menuseparator
11167 設定\SpecialChar menuseparator
11168 文書クラス
11169 \family default
11170 メニューの
11171 \family sans
11172 文書クラス
11173 \family default
11174 ドロップダウンで「
11175 \family sans
11176 presentation (FoilT
11177 \begin_inset ERT
11178 status collapsed
11179
11180 \begin_layout Plain Layout
11181
11182 {}
11183 \end_layout
11184
11185 \end_inset
11186
11187 eX)
11188 \family default
11189 」を選択する必要があります。また、
11190 \family sans
11191 文書設定
11192 \family default
11193 ダイアログ中には、以下のように、このクラスに特有の設定がいくつかあることを知っておかなくてはなりません。
11194 \end_layout
11195
11196 \begin_layout Itemize
11197
11198 \family sans
11199 文書設定
11200 \family default
11201 ダイアログ中の、
11202 \family sans
11203 両面文書
11204 \family default
11205 オプションと
11206 \family sans
11207 二段組文書
11208 \family default
11209 オプションは変更しないでください。これらは 
11210 \family sans
11211 foils
11212 \family default
11213 クラスでは無視されます。
11214 \end_layout
11215
11216 \begin_layout Itemize
11217 既定のフォント寸法は20ptであり、17pt・25pt・30ptを選択することも可能です。
11218 \end_layout
11219
11220 \begin_layout Itemize
11221 既定のフォントは
11222 \family sans
11223 sans
11224 \family default
11225  
11226 \family sans
11227 serif
11228 \family default
11229 ですが、数式ではすべて、通常のローマン体が使用されます。
11230 \end_layout
11231
11232 \begin_layout Itemize
11233 Foil\SpecialChar TeX
11234 は、35
11235 \begin_inset space \thinspace{}
11236 \end_inset
11237
11238 mmスライド用の特殊寸法の他、A4とレター大の用紙寸法をサポートします。A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません。
11239 \end_layout
11240
11241 \begin_layout Itemize
11242
11243 \family sans
11244 フロートの配置
11245 \family default
11246 の設定は無視されますので、わざわざ変更する必要はありません。フロートはすべて、本文中で定義された位置に表示されます。
11247 \end_layout
11248
11249 \begin_layout Itemize
11250 このクラスの
11251 \family sans
11252 ページレイアウト
11253 \family default
11254 の設定は、若干異なった挙動を示します。Foil\SpecialChar TeX
11255 では、ユーザ定義のロゴをはじめ、フッタとへッダに広範な設定ができます。詳細については第
11256 \begin_inset CommandInset ref
11257 LatexCommand ref
11258 reference "sec:foilfoot"
11259
11260 \end_inset
11261
11262 節をご覧ください。タイトルページは、文書中の他のページとは異なった取扱がなされ、ページ番号は
11263 \emph on
11264 つねに
11265 \emph default
11266 付けられず、(ロゴが定義されていれば)ロゴは、
11267 \emph on
11268 つねに
11269 \emph default
11270 ページ下部中央に表示されます。使用できるページ様式とその挙動は、以下の通りです。
11271 \begin_inset Separator parbreak
11272 \end_inset
11273
11274
11275 \end_layout
11276
11277 \begin_deeper
11278 \begin_layout Labeling
11279 \labelwidthstring MMMMMMM
11280
11281 \family sans
11282 \series bold
11283 empty
11284 \family default
11285 \series default
11286  最終出力には、ページ番号をはじめ、へッダ・フッタが出力されません(もちろん脚注は除きます)。
11287 \end_layout
11288
11289 \begin_layout Labeling
11290 \labelwidthstring MMMMMMM
11291
11292 \family sans
11293 \series bold
11294 plain
11295 \family default
11296 \series default
11297  最終出力には、ページ番号がページ下部の中央に出力されますが、他のへッダ・フッタは出力されません(脚注除く)。
11298 \end_layout
11299
11300 \begin_layout Labeling
11301 \labelwidthstring MMMMMMM
11302
11303 \series bold
11304 foilheadings
11305 \series default
11306  ページ番号が右下隅に出力されます。追記したへッダ・フッタも出力されます。これが既定値です。
11307 \end_layout
11308
11309 \begin_layout Labeling
11310 \labelwidthstring MMMMMMM
11311
11312 \series bold
11313 fancy
11314 \series default
11315  これは
11316 \family sans
11317 fancyheadings
11318 \family default
11319 パッケージを使えるようにします。ただし、Foil\SpecialChar TeX
11320 パッケージの作者は、ページレイアウトが崩れる可能性があるので、これを使用することは勧めないと言及しています。
11321 \end_layout
11322
11323 \end_deeper
11324 \begin_layout Subsubsection
11325 任意設定クラスオプション
11326 \end_layout
11327
11328 \begin_layout Standard
11329 以下のオプションは
11330 \family sans
11331 文書設定
11332 \family default
11333 ダイアログの任意設定クラスオプションボックスで使うことができます。
11334 \end_layout
11335
11336 \begin_layout Labeling
11337 \labelwidthstring MMMMMMx
11338
11339 \series bold
11340 35mmSlide
11341 \series default
11342  これは、ページレイアウトを縦7.33インチ横11インチに設定します。これは35
11343 \begin_inset space \space{}
11344 \end_inset
11345
11346 mmスライドの縦横比にほぼ等しく、このメディアを作る作業が若干易しくなります。
11347 \end_layout
11348
11349 \begin_layout Labeling
11350 \labelwidthstring MMMMMMx
11351
11352 \series bold
11353 headrule
11354 \series default
11355  タイトルページを除くすべてのページのへッダの下に罫線を入れます。
11356 \end_layout
11357
11358 \begin_layout Labeling
11359 \labelwidthstring MMMMMMx
11360
11361 \series bold
11362 footrule
11363 \series default
11364  タイトルページを除くすべてのページのフッタの上に罫線を入れます。
11365 \end_layout
11366
11367 \begin_layout Labeling
11368 \labelwidthstring MMMMMMx
11369
11370 \series bold
11371 dvips
11372 \series default
11373  これは、新規
11374 \family sans
11375 foils
11376 \family default
11377 文書を作成する度に自動的に設定されます。このオプションは、横向きに設定されたページを回転させるのに、dvipsドライバを使うようFoil\SpecialChar TeX
11378 に指示します。
11379 \end_layout
11380
11381 \begin_layout Labeling
11382 \labelwidthstring MMMMMMx
11383
11384 \series bold
11385 landscape
11386 \series default
11387  このオプションは、用紙寸法を横向きページ大に変更するだけで、回転は行いません。したがって、このオプションを使う場合は、各ページを回転させる外部プログラムを使用
11388 する、プリンタに用紙を横向きに給紙する必要があります。また、このオプションは、
11389 \family sans
11390 Foilhead
11391 \family default
11392 環境と
11393 \family sans
11394 Rotatefoilhead
11395 \family default
11396 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します)。
11397 \end_layout
11398
11399 \begin_layout Labeling
11400 \labelwidthstring MMMMMMx
11401
11402 \series bold
11403 leqno
11404 \series default
11405  数式番号を左側に付けます。
11406 \end_layout
11407
11408 \begin_layout Labeling
11409 \labelwidthstring MMMMMMx
11410
11411 \series bold
11412 fleqn
11413 \series default
11414  数式を左揃えにします。
11415 \end_layout
11416
11417 \begin_layout Subsection
11418 サポートされる環境
11419 \end_layout
11420
11421 \begin_layout Standard
11422 他のクラスで標準的にサポートされている環境は、
11423 \family sans
11424 foils
11425 \family default
11426 クラスでもサポートされています。それ以外に、Foil\SpecialChar TeX
11427 が提供している環境と、\SpecialChar LyX
11428 が付け加えた環境があります。以下の環境は、他のクラスと共通の環境です。
11429 \end_layout
11430
11431 \begin_layout Standard
11432
11433 \family sans
11434 \begin_inset Flex Multiple Columns
11435 status open
11436
11437 \begin_layout Itemize
11438
11439 \family sans
11440 標準
11441 \end_layout
11442
11443 \begin_layout Itemize
11444
11445 \family sans
11446 箇条書き(記号)
11447 \end_layout
11448
11449 \begin_layout Itemize
11450
11451 \family sans
11452 箇条書き(連番)
11453 \end_layout
11454
11455 \begin_layout Itemize
11456
11457 \family sans
11458 箇条書き(記述)
11459 \end_layout
11460
11461 \begin_layout Itemize
11462
11463 \family sans
11464 箇条書き(リスト)
11465 \end_layout
11466
11467 \begin_layout Itemize
11468
11469 \family sans
11470 \SpecialChar LyX
11471 コード
11472 \end_layout
11473
11474 \begin_layout Itemize
11475
11476 \family sans
11477 詩句
11478 \end_layout
11479
11480 \begin_layout Itemize
11481
11482 \family sans
11483 引用(字下げあり)
11484 \end_layout
11485
11486 \begin_layout Itemize
11487
11488 \family sans
11489 引用(字下げなし)
11490 \end_layout
11491
11492 \begin_layout Itemize
11493
11494 \family sans
11495 タイトル
11496 \end_layout
11497
11498 \begin_layout Itemize
11499
11500 \family sans
11501 著者
11502 \end_layout
11503
11504 \begin_layout Itemize
11505
11506 \family sans
11507 日付
11508 \end_layout
11509
11510 \begin_layout Itemize
11511
11512 \family sans
11513 概要
11514 \end_layout
11515
11516 \begin_layout Itemize
11517
11518 \family sans
11519 書誌情報
11520 \end_layout
11521
11522 \begin_layout Itemize
11523
11524 \family sans
11525 住所
11526 \end_layout
11527
11528 \begin_layout Itemize
11529
11530 \family sans
11531 右寄せ住所
11532 \end_layout
11533
11534 \begin_layout Itemize
11535
11536 \family sans
11537 キャプション
11538 \end_layout
11539
11540 \begin_layout Itemize
11541
11542 \family sans
11543 コメント
11544 \end_layout
11545
11546 \end_inset
11547
11548
11549 \end_layout
11550
11551 \begin_layout Standard
11552 つまり、節区切りを除けば、主な環境のすべてです。一枚のスライドは、基本的にタイトルと本文を備えた自己完結した節なので、
11553 \family sans
11554 Foil
11555 \family default
11556 \SpecialChar TeX
11557 は新しいスライドを始める以下のようなコマンドを備えています。
11558 \end_layout
11559
11560 \begin_layout Itemize
11561
11562 \family sans
11563 スライドタイトル(Foilhead)
11564 \end_layout
11565
11566 \begin_layout Itemize
11567
11568 \family sans
11569 横置きスライドタイトル(Rotatefoilhead)
11570 \end_layout
11571
11572 \begin_layout Standard
11573 \SpecialChar LyX
11574 は、以下のような、これらを若干修正した環境も用意しています。
11575 \end_layout
11576
11577 \begin_layout Itemize
11578
11579 \family sans
11580 スライドタイトル(小)(ShortFoilhead)
11581 \end_layout
11582
11583 \begin_layout Itemize
11584
11585 \family sans
11586 横置きスライドタイトル(小)(ShortRotatefoilhead)
11587 \end_layout
11588
11589 \begin_layout Standard
11590 これらの違いは次節で説明します。
11591 \end_layout
11592
11593 \begin_layout Standard
11594 スライドは、アイデアを説明したり、新しい定理を説明したりするのにしばしば使われるので、
11595 \family sans
11596 Foil
11597 \family default
11598 \SpecialChar TeX
11599 はそれらを説明するのに便利な環境を幅広く用意しています。
11600 \end_layout
11601
11602 \begin_layout Standard
11603
11604 \family sans
11605 \begin_inset Flex Multiple Columns
11606 status open
11607
11608 \begin_layout Itemize
11609
11610 \family sans
11611 定理
11612 \end_layout
11613
11614 \begin_layout Itemize
11615
11616 \family sans
11617 補題
11618 \end_layout
11619
11620 \begin_layout Itemize
11621
11622 \family sans
11623
11624 \end_layout
11625
11626 \begin_layout Itemize
11627
11628 \family sans
11629 命題
11630 \end_layout
11631
11632 \begin_layout Itemize
11633
11634 \family sans
11635 定義
11636 \end_layout
11637
11638 \begin_layout Itemize
11639
11640 \family sans
11641 証明
11642 \end_layout
11643
11644 \begin_layout Itemize
11645
11646 \family sans
11647 定理*
11648 \end_layout
11649
11650 \begin_layout Itemize
11651
11652 \family sans
11653 補題*
11654 \end_layout
11655
11656 \begin_layout Itemize
11657
11658 \family sans
11659 系*
11660 \end_layout
11661
11662 \begin_layout Itemize
11663
11664 \family sans
11665 命題*
11666 \end_layout
11667
11668 \begin_layout Itemize
11669
11670 \family sans
11671 定義*
11672 \end_layout
11673
11674 \end_inset
11675
11676
11677 \end_layout
11678
11679 \begin_layout Standard
11680 星付き版は連番が振られず、星なし版は連番が振られます。他に、\SpecialChar LyX
11681 で追加された以下の2つの箇条書き環境があります。
11682 \end_layout
11683
11684 \begin_layout Itemize
11685
11686 \family sans
11687 箇条書き(チック)
11688 \end_layout
11689
11690 \begin_layout Itemize
11691
11692 \family sans
11693 箇条書き(クロス)
11694 \end_layout
11695
11696 \begin_layout Standard
11697 Foil\SpecialChar TeX
11698 には、強力なヘッダ機能とフッタ機能があり、これらはプリアンブルで設定するのが最良ですが、文章中のどこでも設定することができます。もし文書中でこれらの設定
11699 を変更したい場合には、スライドの一番上、foilheadの直後で行うのが良いでしょう。
11700 \end_layout
11701
11702 \begin_layout Standard
11703 この目的のためには、以下のコマンドスタイルがあります(
11704 \shape smallcaps
11705 Martin Vermeer)。
11706 \end_layout
11707
11708 \begin_layout Standard
11709 \begin_inset Flex Multiple Columns
11710 status open
11711
11712 \begin_layout Itemize
11713
11714 \family sans
11715 グラフィックスロゴ
11716 \end_layout
11717
11718 \begin_layout Itemize
11719
11720 \family sans
11721 配布制限
11722 \end_layout
11723
11724 \begin_layout Itemize
11725
11726 \family sans
11727 右フッタ
11728 \end_layout
11729
11730 \begin_layout Itemize
11731
11732 \family sans
11733 右ヘッダ
11734 \end_layout
11735
11736 \begin_layout Itemize
11737
11738 \family sans
11739 左ヘッダ
11740 \family default
11741
11742 \begin_inset Separator parbreak
11743 \end_inset
11744
11745
11746 \end_layout
11747
11748 \begin_deeper
11749 \begin_layout Plain Layout
11750 \begin_inset space ~
11751 \end_inset
11752
11753
11754 \end_layout
11755
11756 \end_deeper
11757 \end_inset
11758
11759
11760 \end_layout
11761
11762 \begin_layout Standard
11763 Foil\SpecialChar TeX
11764 が提供しているコマンドで、\SpecialChar LyX
11765 が直接サポートしていないコマンドもありますが、これらの説明と使い方については、第
11766 \begin_inset CommandInset ref
11767 LatexCommand ref
11768 reference "sec:unsuppfoils"
11769
11770 \end_inset
11771
11772 節で行います。
11773 \end_layout
11774
11775 \begin_layout Subsection
11776 スライドの組を作る
11777 \end_layout
11778
11779 \begin_layout Standard
11780 この節は、様々な環境を使ってスライドの組を作る方法を簡単に紹介します。スライド組の例をご覧になりたい場合は、\SpecialChar LyX
11781
11782 \family typewriter
11783 examples
11784 \family default
11785 フォルダにある
11786 \family typewriter
11787 Foils.lyx
11788 \family default
11789 ファイルをご覧ください。
11790 \end_layout
11791
11792 \begin_layout Subsubsection
11793 タイトルページを作る
11794 \end_layout
11795
11796 \begin_layout Standard
11797
11798 \family sans
11799 タイトル
11800 \family default
11801
11802 \family sans
11803 著者
11804 \family default
11805
11806 \family sans
11807 日付
11808 \family default
11809
11810 \family sans
11811 概要
11812 \family default
11813 環境のある他のクラスとは異なり、
11814 \family sans
11815 foils
11816 \family default
11817 は独立したページにタイトルを作成します。
11818 \family sans
11819 日付
11820 \family default
11821 環境を使用しなかった場合には、\SpecialChar LaTeX
11822 は(出力を生成し直したときにはいつも)その時点の日付を挿入します。
11823 \end_layout
11824
11825 \begin_layout Subsubsection
11826 新しいスライドを開始する
11827 \end_layout
11828
11829 \begin_layout Standard
11830 前述のように、新しいスライドを開始するには、4つの方法があります。縦向きのスライドを開始するには、
11831 \family sans
11832 スライドタイトル(Foilhead)
11833 \family default
11834
11835 \family sans
11836 スライドタイトル(小)(ShortFoilhead)
11837 \family default
11838 を使用します。両環境の違いは、スライドタイトル(foilhead)とスライド本文の間の余白の違いです。
11839 \end_layout
11840
11841 \begin_layout Standard
11842 横向きのスライドは、
11843 \family sans
11844 横向きスライドタイトル(Rotatefoilhead)
11845 \family default
11846 か横向きスライドタイトル(小)(
11847 \family sans
11848 ShortRotatefoilhead)
11849 \family default
11850 環境を使用して生成します。ここでも両環境の違いは、タイトルと本文の間の余白のみです。どちらの場合も、(小)と記された版は、タイトルと本文の間の余白が、0.5インチ
11851 (約1.27cm)小さくなります。
11852 \end_layout
11853
11854 \begin_layout Standard
11855 横向きのスライドをサポートする際、一つ問題となるのは、スライドを回転させようと思うと、PostScript出力を生成するのに
11856 \family typewriter
11857 dvips
11858 \family default
11859 ドライバを使用することを要求してしまうことです。もしスライドをプリンタに横に給紙することができれば、
11860 \family typewriter
11861 dvips
11862 \family default
11863 ドライバを持っていなくても、横向きのスライドをつくることができます ;-)
11864 \end_layout
11865
11866 \begin_layout Subsubsection
11867 定理・補題・証明など
11868 \end_layout
11869
11870 \begin_layout Standard
11871 \SpecialChar LyX
11872 中の小さなバグによって、これらの環境の同じ型をお互いに直接続けて置くことはできません。これらは何かによって分離されなくてはなりません。仮に二つ続けて置いても、2
11873 つの環境をマージしたかのように、前の環境が延長されるだけです。この問題を回避するにはどうすればよいのでしょうか。最も簡単な方法は、二つの環境の間に何か文章を置く
11874 か、あるいは二つの間に「
11875 \family typewriter
11876 %
11877 \family default
11878 」だけから成る\SpecialChar LaTeX
11879 環境を置くことです。これによって、\SpecialChar LyX
11880 は2つの別々の環境を生成するように強制され、正しい\SpecialChar LaTeX
11881 出力を得ることができます。\SpecialChar LyX
11882 頒布版に含まれる用例ファイルに例があ
11883 ります。この問題は、二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください。
11884 \end_layout
11885
11886 \begin_layout Subsubsection
11887 箇条書き
11888 \end_layout
11889
11890 \begin_layout Standard
11891 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて、二つの新しい様式を使用することができます。ここでは、その新しい様式のみを説明することにします。
11892 他の箇条書き環境について詳しく知りたい場合には、
11893 \emph on
11894 ユーザーの手引き
11895 \emph default
11896 をご覧ください。記号による箇条書きを使用したい場合には、上記第
11897 \begin_inset CommandInset ref
11898 LatexCommand ref
11899 reference "sec:ブリット"
11900
11901 \end_inset
11902
11903 節の
11904 \family sans
11905 箇条書き(記号)ブリットの指定
11906 \family default
11907 の節も、読まれることが望ましいでしょう。
11908 \end_layout
11909
11910 \begin_layout Standard
11911
11912 \family sans
11913 箇条書き(チック)
11914 \family default
11915
11916 \family sans
11917 箇条書き(クロス)
11918 \family default
11919 の二つの新しい様式は、チェック印や
11920 \begin_inset Formula $\times$
11921 \end_inset
11922
11923 印を箇条書きのラベルに使用する専用の環境を提供することで、予定一覧や正誤一覧を作りやすくするように設計されたものです。これらの箇条書きは、
11924 \family sans
11925 箇条書き(記号)
11926 \family default
11927 の派生型を専用に用意したものに過ぎません。ただし、これらは、
11928 \family typewriter
11929 psnfss
11930 \family default
11931 パッケージが導入済であることを要求します。
11932 \end_layout
11933
11934 \begin_layout Subsubsection
11935 図と表
11936 \end_layout
11937
11938 \begin_layout Standard
11939 Foil\SpecialChar TeX
11940 では、図表フロートは、本文中の挿入箇所にこれらが正確に表示されるように再定義されており、ページの上部やユーザー指定場所に押しのけたりはしないようになって
11941 います。たとえフロート配置の設定に変更を加えたとしても、単に無視されます。
11942 \end_layout
11943
11944 \begin_layout Subsubsection
11945 ページヘッダおよびページフッタ
11946 \begin_inset CommandInset label
11947 LatexCommand label
11948 name "sec:foilfoot"
11949
11950 \end_inset
11951
11952
11953 \end_layout
11954
11955 \begin_layout Standard
11956
11957 \family sans
11958 グラフィックスロゴ
11959 \family default
11960
11961 \family sans
11962 配布制限
11963 \family default
11964 の二つは、左フッタ文を制御するものです。前者は、グラフィックスのロゴをスライドに入れるためのもので、既定値は「-Typeset by 
11965 \family sans
11966 Foil
11967 \family default
11968 \SpecialChar TeX
11969 -」となっています。後者は、「機密事項」などのように、聴衆に秘密区分を提示することを意図しています。既定値では、何も設定されていません。
11970 \end_layout
11971
11972 \begin_layout Standard
11973 スライドの残り三隅には、
11974 \family sans
11975 右フッタ
11976 \family default
11977 (既定ではページ番号)・
11978 \family sans
11979 右ヘッダ
11980 \family default
11981 (右上)・
11982 \family sans
11983 左ヘッダ
11984 \family default
11985 (左上)を使って文字を入れることができます。
11986 \end_layout
11987
11988 \begin_layout Subsection
11989 サポートされない 
11990 \family sans
11991 Foil
11992 \family default
11993 \SpecialChar TeX
11994 機能
11995 \begin_inset CommandInset label
11996 LatexCommand label
11997 name "sec:unsuppfoils"
11998
11999 \end_inset
12000
12001
12002 \end_layout
12003
12004 \begin_layout Standard
12005 以下で言及されているコマンドは、
12006 \family sans
12007 \SpecialChar LaTeX
12008
12009 \family default
12010 環境内で設定されるか、他の環境中の
12011 \family sans
12012 \SpecialChar TeX
12013 コード
12014 \family default
12015 として設定される必要があります。
12016 \end_layout
12017
12018 \begin_layout Subsubsection
12019 長さ
12020 \end_layout
12021
12022 \begin_layout Standard
12023 長さは、すべて
12024 \family typewriter
12025
12026 \backslash
12027 setlength{
12028 \family default
12029 \emph on
12030 長さ名
12031 \family typewriter
12032 \emph default
12033 }{
12034 \family default
12035 \emph on
12036 新規長さ
12037 \family typewriter
12038 \emph default
12039 }
12040 \family default
12041 コマンドで調節されます。ここで
12042 \emph on
12043 長さ名
12044 \emph default
12045 は、変更したい長さに付けられている名前で置き換え、
12046 \emph on
12047 新規長さ
12048 \emph default
12049 は、その長さの値で置き換えます。長さはすべて、インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か、
12050 \family typewriter
12051
12052 \backslash
12053 textwidth
12054 \family default
12055 のように文書比あるいはフォント基準の長さで指定する必要があります。
12056 \end_layout
12057
12058 \begin_layout Standard
12059
12060 \family typewriter
12061
12062 \backslash
12063 foilheadskip
12064 \family default
12065 で指定される長さを調節することによって、スライドタイトルとスライド本文の間の余白を変更することができます。たとえば、スライドタイトルをすべて0.5
12066 \begin_inset space \space{}
12067 \end_inset
12068
12069 inだけスライド本文に近づけるには、プリアンブルに
12070 \family typewriter
12071
12072 \backslash
12073 setlength{
12074 \backslash
12075 foilheadskip}{-0.5in}
12076 \family default
12077 と書き込みます。
12078 \end_layout
12079
12080 \begin_layout Standard
12081 フロート周囲の余白は、以下の長さを設定することで調整することができます。
12082 \end_layout
12083
12084 \begin_layout Labeling
12085 \labelwidthstring MMMMMMMMMMM
12086
12087 \family typewriter
12088
12089 \backslash
12090 abovefloatskip
12091 \family default
12092  本文とフロート上辺との間隔
12093 \end_layout
12094
12095 \begin_layout Labeling
12096 \labelwidthstring MMMMMMMMMMM
12097
12098 \family typewriter
12099
12100 \backslash
12101 abovecaptionskip
12102 \family default
12103  フロートとキャプションとの間隔
12104 \end_layout
12105
12106 \begin_layout Labeling
12107 \labelwidthstring MMMMMMMMMMM
12108
12109 \family typewriter
12110
12111 \backslash
12112 belowcaptionskip
12113 \family default
12114  キャプションとそれに続く本文との間隔
12115 \end_layout
12116
12117 \begin_layout Labeling
12118 \labelwidthstring MMMMMMMMMMM
12119
12120 \family typewriter
12121
12122 \backslash
12123 captionwidth
12124 \family default
12125  この長さを調整することでキャプションを、周囲の本文より短くすることができます。
12126 \family typewriter
12127
12128 \backslash
12129 textwidth
12130 \family default
12131 に対する相対的な長さで調整するのが最も良いでしょう。
12132 \end_layout
12133
12134 \begin_layout Standard
12135 以下のようなタイトルページ関連の長さもあり、タイトルが長い場合や、著者が複数いる場合に使うと便利かもしれません。
12136 \end_layout
12137
12138 \begin_layout Labeling
12139 \labelwidthstring MMMMMMMMMMM
12140
12141 \family typewriter
12142
12143 \backslash
12144 abovetitleskip
12145 \family default
12146  へッダとタイトルとの間隔
12147 \end_layout
12148
12149 \begin_layout Labeling
12150 \labelwidthstring MMMMMMMMMMM
12151
12152 \family typewriter
12153
12154 \backslash
12155 titleauthorskip
12156 \family default
12157  
12158 \family sans
12159 タイトル
12160 \family default
12161 環境と
12162 \family sans
12163 著者
12164 \family default
12165 環境との間隔
12166 \end_layout
12167
12168 \begin_layout Labeling
12169 \labelwidthstring MMMMMMMMMMM
12170
12171 \family typewriter
12172
12173 \backslash
12174 authorauthorskip
12175 \family default
12176  著者が複数いる場合の
12177 \family sans
12178 著者
12179 \family default
12180 行の間隔
12181 \end_layout
12182
12183 \begin_layout Labeling
12184 \labelwidthstring MMMMMMMMMMM
12185
12186 \family typewriter
12187
12188 \backslash
12189 authordateskip
12190 \family default
12191  
12192 \family sans
12193 著者
12194 \family default
12195
12196 \family sans
12197 日付
12198 \family default
12199 との間隔
12200 \end_layout
12201
12202 \begin_layout Labeling
12203 \labelwidthstring MMMMMMMMMMM
12204
12205 \family typewriter
12206
12207 \backslash
12208 dateabstractskip
12209 \family default
12210  
12211 \family sans
12212 日付
12213 \family default
12214
12215 \family sans
12216 概要
12217 \family default
12218 との間隔
12219 \end_layout
12220
12221 \begin_layout Standard
12222 最後に紹介する長さ関連コマンドは、箇条書き環境すべてに使用できるものです。
12223 \family typewriter
12224
12225 \backslash
12226 zerolistvertdimens
12227 \family default
12228 を箇条書き環境の内側に置くと、項目間の垂直余白がすべて取り除かれます。これは長さではなくコマンドなので、上述のもののように
12229 \family typewriter
12230
12231 \backslash
12232 setlength
12233 \family default
12234 を使う必要がないことに注意してください。
12235 \end_layout
12236
12237 \begin_layout Subsubsection
12238 へッダとフッタ
12239 \end_layout
12240
12241 \begin_layout Standard
12242
12243 \family typewriter
12244
12245 \backslash
12246 LogoOn
12247 \family default
12248 および
12249 \family typewriter
12250
12251 \backslash
12252 LogoOff
12253 \family default
12254 は、
12255 \family typewriter
12256 MyLogo
12257 \family default
12258 で定義したロゴを特定のページに入れるかどうかを制御します。
12259 \family typewriter
12260
12261 \backslash
12262 LogoOff
12263 \family default
12264 をプリアンブルに入れると、全スライドからロゴが取り除かれます。特定のスライドにのみロゴを付けたくない場合は、当該ページのスライドタイトルの直後に直接
12265 \family typewriter
12266
12267 \backslash
12268 LogoOff
12269 \family default
12270 を置き、次のスライドタイトルの直後に直接
12271 \family typewriter
12272
12273 \backslash
12274 LogoOn
12275 \family default
12276 を置いてください。
12277 \end_layout
12278
12279 \begin_layout Standard
12280
12281 \family sans
12282 文書レイアウト
12283 \family default
12284 ダイアログで
12285 \family sans
12286 fancy
12287 \family default
12288 ページ様式を使用することを選択した場合には、横置きページのヘッダとフッタが回転後も正しく配置されるように、プリアンブルに
12289 \family typewriter
12290
12291 \backslash
12292 let
12293 \backslash
12294 headwidth
12295 \backslash
12296 textwidth
12297 \family default
12298 を加える必要があるでしょう。これは、
12299 \family sans
12300 fancyheadings
12301 \family default
12302 パッケージが提供するページレイアウトと
12303 \family sans
12304 foils
12305 \family default
12306 クラスの提供するページレイアウトの間に衝突が発生するためです。
12307 \end_layout
12308
12309 \begin_layout Section
12310 Hollywood(Hollywoodスペック・スクリプト)
12311 \end_layout
12312
12313 \begin_layout Standard
12314
12315 \noun on
12316 Garst Reese
12317 \noun default
12318
12319 \end_layout
12320
12321 \begin_layout Subsection
12322 はじめに
12323 \end_layout
12324
12325 \begin_layout Standard
12326 脚本を正しい書式で書くことは、ハリウッドにおける「通過儀礼」です。ハリウッドの脚本は、読み手が内容に集中できるようにし、俳優にとっても読みやすくかつ親しみやすい
12327 ように設計されています。脚本の1ページは、映画の1分でなければならず、銀幕上で見えたり聞こえたりしないものは、脚本に混入してはなりません。また、全体を通してCo
12328 urier 12
12329 \begin_inset space \space{}
12330 \end_inset
12331
12332 ptフォントを使わなければならず、イタリック体は用いてはいけません。
12333 \end_layout
12334
12335 \begin_layout Subsection
12336 特別な問題
12337 \end_layout
12338
12339 \begin_layout Standard
12340 話者の行は、文の途中で改行することは
12341 \emph on
12342 決して
12343 \emph default
12344 あってはなりません。もし話者行の塊が、次頁にまたがる場合には、
12345 \family sans
12346 話者
12347 \family default
12348 名を再度書き、その後に(Cont'd)と加えます。
12349 \end_layout
12350
12351 \begin_layout Subsection
12352 特別な機能
12353 \end_layout
12354
12355 \begin_layout Standard
12356
12357 \family sans
12358 話者
12359 \family default
12360 名はラベルとして挿入し、話者名を挿入するには、そのラベルを相互参照してください。相互参照ダイアログは、登場人物の現在の配役を表示することになります。これは、ト書
12361 きに話者名を挿入するのにも使用することができます。
12362 \end_layout
12363
12364 \begin_layout Subsection
12365 用紙寸法と余白
12366 \end_layout
12367
12368 \begin_layout Standard
12369 USレター寸法で、左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです。
12370 \end_layout
12371
12372 \begin_layout Subsection
12373 環境
12374 \end_layout
12375
12376 \begin_layout Standard
12377 以下の環境が利用可能です。右に示されている
12378 \begin_inset Flex Ruby
12379 status collapsed
12380
12381 \begin_layout Plain Layout
12382
12383 \begin_inset Argument post:1
12384 status collapsed
12385
12386 \begin_layout Plain Layout
12387 キー
12388 \end_layout
12389
12390 \end_inset
12391
12392
12393 \end_layout
12394
12395 \end_inset
12396
12397 割当てを使用するには、hollywood.bindを使用してください。
12398 \end_layout
12399
12400 \begin_layout Itemize
12401
12402 \family sans
12403 一般
12404 \begin_inset Newline newline
12405 \end_inset
12406
12407
12408 \family default
12409 他の環境が動作しない場合に使用しますが、これを使うことは避けるようにしてください。
12410 \end_layout
12411
12412 \begin_layout Itemize
12413 フェイドイン:
12414 \begin_inset space \hfill{}
12415 \end_inset
12416
12417
12418 \family sans
12419 M-z S-I
12420 \family default
12421
12422 \begin_inset Newline newline
12423 \end_inset
12424
12425 通常、この後には「Sallyは目を覚ますと」のように続きます。
12426 \end_layout
12427
12428 \begin_layout Itemize
12429
12430 \family sans
12431 屋内:
12432 \begin_inset space \hfill{}
12433 \end_inset
12434
12435 M-z i
12436 \begin_inset Newline newline
12437 \end_inset
12438
12439
12440 \family default
12441 新しい屋内(INTERIOR)カメラの設定を指定します。この後には、かならずDAYやNIGHTなどを指定して、必要な照明を定義します。この行はすべて大文字で書き
12442 ます。
12443 \end_layout
12444
12445 \begin_layout Itemize
12446
12447 \family sans
12448 屋外:
12449 \begin_inset space \hfill{}
12450 \end_inset
12451
12452 M-z e
12453 \begin_inset Newline newline
12454 \end_inset
12455
12456
12457 \family default
12458 屋外(EXTERIOR)カメラの設定を指定します。この行はすべて大文字で書きます。
12459 \end_layout
12460
12461 \begin_layout Itemize
12462
12463 \family sans
12464 話者
12465 \begin_inset space \hfill{}
12466 \end_inset
12467
12468 M-z s
12469 \begin_inset Newline newline
12470 \end_inset
12471
12472
12473 \family default
12474 話す役。
12475 \end_layout
12476
12477 \begin_layout Itemize
12478
12479 \family sans
12480 括弧付き
12481 \begin_inset space \hfill{}
12482 \end_inset
12483
12484 M-z p
12485 \begin_inset Newline newline
12486 \end_inset
12487
12488 話者
12489 \family default
12490 への指示。自動的に括弧()が挿入されますが、\SpecialChar LyX
12491 上で表示されるのは、左括弧( のみです。印刷出力には右括弧も表示されます。
12492 \end_layout
12493
12494 \begin_layout Itemize
12495
12496 \family sans
12497 対話
12498 \begin_inset space \hfill{}
12499 \end_inset
12500
12501 M-z d
12502 \begin_inset Newline newline
12503 \end_inset
12504
12505 話者
12506 \family default
12507 が話す内容。
12508 \end_layout
12509
12510 \begin_layout Itemize
12511
12512 \family sans
12513 画面遷移
12514 \begin_inset space \hfill{}
12515 \end_inset
12516
12517 M-z t
12518 \begin_inset Newline newline
12519 \end_inset
12520
12521
12522 \family default
12523 カメラの動きの指示。例:CUT TO:。
12524 \end_layout
12525
12526 \begin_layout Itemize
12527
12528 \family sans
12529 フェイドアウト:
12530 \begin_inset space \hfill{}
12531 \end_inset
12532
12533 M-z S-I
12534 \end_layout
12535
12536 \begin_layout Itemize
12537
12538 \family sans
12539 著者
12540 \begin_inset space \hfill{}
12541 \end_inset
12542
12543 M-z S-A
12544 \end_layout
12545
12546 \begin_layout Itemize
12547
12548 \family sans
12549 タイトル
12550 \begin_inset space \hfill{}
12551 \end_inset
12552
12553 M-z S-T
12554 \end_layout
12555
12556 \begin_layout Itemize
12557
12558 \family sans
12559 右寄せ住所
12560 \begin_inset space \hfill{}
12561 \end_inset
12562
12563 M-z r
12564 \end_layout
12565
12566 \begin_layout Subsection
12567 脚本で使われる特別な用語
12568 \end_layout
12569
12570 \begin_layout Itemize
12571 (O.S) — off screen
12572 \end_layout
12573
12574 \begin_layout Itemize
12575 (V.0) — voice over
12576 \end_layout
12577
12578 \begin_layout Itemize
12579 b.g.
12580  — background
12581 \end_layout
12582
12583 \begin_layout Itemize
12584 C.U.
12585  — close-up
12586 \end_layout
12587
12588 \begin_layout Itemize
12589 PAN — camera movement
12590 \end_layout
12591
12592 \begin_layout Itemize
12593 INSERT — cut to close-up of
12594 \end_layout
12595
12596 \begin_layout Section
12597 ijmpcおよびijmpd
12598 \end_layout
12599
12600 \begin_layout Standard
12601
12602 \noun on
12603 Panayotis Papasotiriou
12604 \noun default
12605
12606 \end_layout
12607
12608 \begin_layout Subsection
12609 概観
12610 \end_layout
12611
12612 \begin_layout Standard
12613 ijpmcパッケージは、
12614 \emph on
12615 International Journal of Modern Physics C
12616 \emph default
12617 への電子投稿を可能にするためのマクロ集です。同様に、ijpmdパッケージは、
12618 \emph on
12619 International Journal of Modern Physics D
12620 \emph default
12621 へ投稿する現行を作成するためのものです。両誌ともWorld Scientific社の刊行です。対応する文書クラス名は、それぞれ
12622 \family typewriter
12623 ws-ijmpc.cls
12624 \family default
12625 および
12626 \family typewriter
12627 ws-ijmpd.cls
12628 \family default
12629 です。これらのファイルは、著者のための指針とともに、
12630 \begin_inset Flex URL
12631 status collapsed
12632
12633 \begin_layout Plain Layout
12634
12635 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12636 \end_layout
12637
12638 \end_inset
12639
12640 および
12641 \begin_inset Flex URL
12642 status collapsed
12643
12644 \begin_layout Plain Layout
12645
12646 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12647 \end_layout
12648
12649 \end_inset
12650
12651 の各サイトからダウンロードすることができます。両パッケージは、標準「article」パッケージの修正版であり、両者は(一部を除き)ほぼ同一です。\SpecialChar LyX
12652 は、これらのパッ
12653 ケージのほとんどの機能をサポートしています。私は両誌へ投稿する論文を\SpecialChar LyX
12654 で書き上げましたが、何らの問題も生じませんでした。
12655 \end_layout
12656
12657 \begin_layout Subsection
12658 論文を書く
12659 \end_layout
12660
12661 \begin_layout Standard
12662 通常と同じく、論文を書く上で最も易しい方法は、ひな型を使って書き始めることです。
12663 \family sans
12664 ファイル\SpecialChar menuseparator
12665 新規(ひな型使用)
12666 \family default
12667 をクリックして、ひな型
12668 \family typewriter
12669 ijmpc.lyx
12670 \family default
12671 もしくは
12672 \family typewriter
12673 ijmpd.lyx
12674 \family default
12675 を選択してください。すると、原稿で良く使用されるフィールドを含んだ、ほぼ空の文書ができますので、既存のフィールド(鍵括弧
12676 \family typewriter
12677 <>
12678 \family default
12679 を含む)を正しい情報で置き換えてください。以下の各点にご留意ください。
12680 \end_layout
12681
12682 \begin_layout Enumerate
12683 両パッケージでは、フォント寸法や文書のページ様式を変更することが禁じられているので、\SpecialChar LyX
12684 中でこれらを変更することはできません。
12685 \end_layout
12686
12687 \begin_layout Enumerate
12688 文書言語は変更してはいけません。論文をプレビューする前に、babelパッケージが使用されていないことを確認してください。これは、
12689 \family sans
12690 ツール\SpecialChar menuseparator
12691 設定
12692 \family default
12693 をクリックして、
12694 \family sans
12695 言語オプション
12696 \family default
12697 タブを選択し、言語設定で
12698 \family sans
12699 Babelを使う
12700 \family default
12701 チェックボックスを無効にしてから、
12702 \family sans
12703 適用
12704 \family default
12705 をクリックすれば、設定することができます(この変更を固定するなら
12706 \family sans
12707 保存
12708 \family default
12709 を押してください)。
12710 \end_layout
12711
12712 \begin_layout Enumerate
12713 キーワードを定義するに際しては、「キーワード」様式を用いなくてはなりません。
12714 \end_layout
12715
12716 \begin_layout Enumerate
12717 ijmpcパッケージが提供する「分類コード」様式は、PACS番号のような分類コードを定義するのに使用することができます。この機能は、ijmpdパッケージではサポ
12718 ートされていませんので、ご注意ください。
12719 \end_layout
12720
12721 \begin_layout Enumerate
12722 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12723 きます。これらの使い方は、大凡自明でしょう。\SpecialChar LyX
12724 は、これらの環境をすべてサポートし、それぞれについて、適切なラベルと文字様式および連番スキームを使用します。
12725 \end_layout
12726
12727 \begin_layout Enumerate
12728 両パッケージは、単純な引用を使用しますので、natbibパッケージは使用してはなりません。\SpecialChar LyX
12729 中では、引用参照は通常通り表示されますが、出力では上付き文字として表示
12730 されます。引用に通常の本文を使用したい場合には、「See Ref.
12731 \begin_inset space \space{}
12732 \end_inset
12733
12734
12735 \family typewriter
12736
12737 \backslash
12738 refcite{
12739 \family default
12740
12741 \begin_inset Flex Ruby
12742 status collapsed
12743
12744 \begin_layout Plain Layout
12745
12746 \family typewriter
12747
12748 \family default
12749
12750 \begin_inset Argument post:1
12751 status collapsed
12752
12753 \begin_layout Plain Layout
12754 キー
12755 \end_layout
12756
12757 \end_inset
12758
12759
12760 \end_layout
12761
12762 \end_inset
12763
12764
12765 \family typewriter
12766 }
12767 \family default
12768 」のように
12769 \family typewriter
12770 refcite
12771 \family default
12772 コマンドを使用してください。
12773 \end_layout
12774
12775 \begin_layout Enumerate
12776 両パッケージには、「謝辞」環境がありません。謝辞を置くには、「節*」環境を使用してください。
12777 \end_layout
12778
12779 \begin_layout Enumerate
12780 付録は、論文中、謝辞の
12781 \emph on
12782
12783 \emph default
12784 かつ書誌情報の
12785 \emph on
12786
12787 \emph default
12788 であれば、入れることができます。\SpecialChar LyX
12789 上では、「付録領域」という特別な環境があり、これを使って付録の開始位置を指定することができます。この環境は空のままにしておかなく
12790 てはなりません。この環境は、\SpecialChar LaTeX
12791 コマンドを書き出すだけで、実際に出力は行いません。\SpecialChar LyX
12792 上では、青字で「Appendix」という単語が表示され、この箇所より後の節はすべて
12793 付録であることを明示します。「付録領域」は、最初の付録の前に
12794 \emph on
12795 なくてはならない
12796 \emph default
12797 ことに注意してください。さもなくば、出力中において、付録はすべて通常の節として連番が振られてしまいます。
12798 \end_layout
12799
12800 \begin_layout Enumerate
12801 ijmpcおよびijmpdパッケージは、表キャプションを実装するのに
12802 \family typewriter
12803 tbl
12804 \family default
12805 コマンドを使用します。そのため、\SpecialChar LyX
12806 が作成した表は正しく印字されますが、そのキャプションは無視されます。しかし、\SpecialChar TeX
12807 コードを少し使えば、この問題を回避して、キャプション
12808 を望み通り印字することができるようになります。そうするには、表フロートを通常通り作成して、キャプションを削除し、代わりに\SpecialChar TeX
12809 コードで
12810 \family typewriter
12811
12812 \backslash
12813 tbl{表キャプション}{
12814 \family default
12815 (ママ)と入れます。そこに表の内容を入れて、直後を\SpecialChar TeX
12816 コード
12817 \family typewriter
12818 }
12819 \family default
12820 で閉じてください。このからくりがどのように実装されているかを見るには、ひな型ファイルに入っている表の例を精査してみてください。別の方法としては、表キャプションが
12821 欲しい場合に、表フロート全体を
12822 \family typewriter
12823 .tex
12824 \family default
12825 ファイルに収め、このファイルを\SpecialChar LyX
12826 文書に取り込んでください(
12827 \family sans
12828 挿入\SpecialChar menuseparator
12829 ファイル\SpecialChar menuseparator
12830 子文書
12831 \family default
12832 )。表フロートの作り方についての詳細は、各パッケージに含まれている
12833 \family typewriter
12834 ws-ijmpc.tex
12835 \family default
12836 または
12837 \family typewriter
12838 ws-ijmpd.tex
12839 \family default
12840 ファイルをご覧ください。
12841 \end_layout
12842
12843 \begin_layout Subsection
12844 原稿を投稿するための準備
12845 \end_layout
12846
12847 \begin_layout Standard
12848 論文を投稿する前には、\SpecialChar LyX
12849 文書を\SpecialChar LaTeX
12850 ファイルに書き出し(
12851 \family sans
12852 ファイル\SpecialChar menuseparator
12853 書き出し\SpecialChar menuseparator
12854 \SpecialChar LaTeX
12855
12856 \family default
12857 )
12858 \begin_inset Foot
12859 status open
12860
12861 \begin_layout Plain Layout
12862 実は、\SpecialChar LaTeX
12863  (plain)とpdflatexとの間で選択ができます。論文を準備するのにpdflatexを使用しようとするのであれば、取り込んである画像がPDF形式に
12864 変換され、pdflatexで使用できるように、pdflatexオプションを指定しなくてはなりません。
12865 \end_layout
12866
12867 \end_inset
12868
12869 、その
12870 \family typewriter
12871 .tex
12872 \family default
12873 ファイルに以下の変更を加える必要があります。
12874 \end_layout
12875
12876 \begin_layout Enumerate
12877
12878 \family typewriter
12879
12880 \backslash
12881 documentclass
12882 \family default
12883 コマンドより前にあるコメント行を削除する。
12884 \end_layout
12885
12886 \begin_layout Enumerate
12887 自身で明示的に\SpecialChar LaTeX
12888 プリアンブルに置いたコマンドを除き、
12889 \family typewriter
12890
12891 \backslash
12892 makeatletter
12893 \family default
12894 コマンドと
12895 \family typewriter
12896
12897 \backslash
12898 makeatother
12899 \family default
12900 コマンドの間にあるものをすべて削除する。
12901 \end_layout
12902
12903 \begin_layout Standard
12904 こうして修正を加えた
12905 \family typewriter
12906 .tex
12907 \family default
12908 ファイルを保存し、必要な回数\SpecialChar LaTeX
12909 で処理してください。それによって得られた
12910 \family typewriter
12911 .dvi
12912 \family default
12913 文書も確認された方がよろしいでしょう。
12914 \end_layout
12915
12916 \begin_layout Subsection
12917 \SpecialChar TeX
12918 コードの使用
12919 \end_layout
12920
12921 \begin_layout Standard
12922 \SpecialChar TeX
12923 コードを使用するのは、2つのコマンドに限られ、これらは文書の最初に置かれなくてはなりません。論文をひな型
12924 \family typewriter
12925 ijmpc.lyx
12926 \family default
12927 または
12928 \family typewriter
12929 ijmpd.lyx
12930 \family default
12931 を使用して書き始めた場合には、これら必要な\SpecialChar TeX
12932 コードは、すでに書き込まれています。通常、これらを削除する必要はありません。2つのうち1番めの\SpecialChar TeX
12933 コードのみが、奇数ページ
12934 および偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために、修正する必要があります。この\SpecialChar TeX
12935 コードは、
12936 \family typewriter
12937
12938 \backslash
12939 markboth{著者名}{論文の短縮タイトル}
12940 \family default
12941 という形である必要があります。
12942 \end_layout
12943
12944 \begin_layout Section
12945 iopart
12946 \end_layout
12947
12948 \begin_layout Standard
12949
12950 \noun on
12951 Uwe Stöhr
12952 \noun default
12953
12954 \end_layout
12955
12956 \begin_layout Subsection
12957 概要
12958 \end_layout
12959
12960 \begin_layout Standard
12961 iopartパッケージは、Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12962 す。iopartクラスを使用した論文作成方法の著者用説明書は、ウェブサイト
12963 \begin_inset Flex URL
12964 status collapsed
12965
12966 \begin_layout Plain Layout
12967
12968 ftp://ftp.iop.org/pub/journals/latex2e
12969 \end_layout
12970
12971 \end_inset
12972
12973 からiopartパッケージとともにダウンロード可能です。
12974 \end_layout
12975
12976 \begin_layout Subsection
12977 論文を書く
12978 \end_layout
12979
12980 \begin_layout Standard
12981 論文を書くもっとも簡単な方法は、\SpecialChar LyX
12982 の用例ファイルフォルダにある
12983 \emph on
12984 IOP-article.lyx
12985 \emph default
12986 を土台にすることです。このファイルを開き、新しい名前で保存して、書き始めてください。この用例ファイルは、特定の環境の使用法についても説明しています。もっとも重要
12987 な助言として、以下の点にご注意ください。
12988 \end_layout
12989
12990 \begin_layout Itemize
12991 文書がPDF・PS・DVIにコンパイルできるようにするためには、文書設定の
12992 \family sans
12993 数式オプション
12994 \family default
12995 で、二つの
12996 \family sans
12997 AMS mathパッケージを使う
12998 \family default
12999 関連オプションが有効になっていないことを確認してください!
13000 \end_layout
13001
13002 \begin_layout Itemize
13003 タイトル環境の選択如何によって、論文の種類が定義されます。種類毎に以下の環境をタイトルに使用してください。
13004 \begin_inset Separator parbreak
13005 \end_inset
13006
13007
13008 \end_layout
13009
13010 \begin_deeper
13011 \begin_layout Itemize
13012 論文用には
13013 \family sans
13014 タイトル
13015 \end_layout
13016
13017 \begin_layout Itemize
13018 Review用には
13019 \family sans
13020 Review
13021 \end_layout
13022
13023 \begin_layout Itemize
13024 Topical review用には
13025 \family sans
13026 Topical
13027 \end_layout
13028
13029 \begin_layout Itemize
13030 Comment用には
13031 \family sans
13032 Comment
13033 \end_layout
13034
13035 \begin_layout Itemize
13036 Note用には
13037 \family sans
13038 注釈
13039 \end_layout
13040
13041 \begin_layout Itemize
13042 論文用には
13043 \family sans
13044 Paper
13045 \family default
13046 (タイトルと同じ)
13047 \end_layout
13048
13049 \begin_layout Itemize
13050 Preliminary communication用には
13051 \family sans
13052 Prelim
13053 \end_layout
13054
13055 \begin_layout Itemize
13056 Rapid communication用には
13057 \family sans
13058 Rapid
13059 \end_layout
13060
13061 \begin_layout Itemize
13062 編集者へのLetterには
13063 \family sans
13064 書簡
13065 \end_layout
13066
13067 \end_deeper
13068 \begin_layout Itemize
13069
13070 \family sans
13071 書簡
13072 \family default
13073 以外のタイトル環境には、すべて短縮タイトルをつけることもできます。
13074 \end_layout
13075
13076 \begin_layout Itemize
13077 \SpecialChar LyX
13078 では直接にサポートされていませんが、一般的なタイトル環境として
13079 \family sans
13080 Article
13081 \family default
13082 があります。執筆する文書が、他のタイトル型にそぐわない場合には、\SpecialChar TeX
13083 コードでこれを指定することができます。
13084 \end_layout
13085
13086 \begin_layout Standard
13087 特別な表や数式組版に関するヒントなど、詳しい情報については、IOP著者用ガイドラインを参照してください。
13088 \end_layout
13089
13090 \begin_layout Section
13091 Kluwer
13092 \end_layout
13093
13094 \begin_layout Standard
13095
13096 \noun on
13097 Panayotis Papasotiriou
13098 \noun default
13099
13100 \end_layout
13101
13102 \begin_layout Subsection
13103 概要
13104 \end_layout
13105
13106 \begin_layout Standard
13107 Kluwerパッケージは、Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために、同社が作成したマクロ集です。同社
13108 の発行誌のうち、(少なくとも私の専門内で)もっともよく知られているものは、
13109 \emph on
13110 Astrophysics and Space Science
13111 \emph default
13112 (『宇宙物理学と宇宙科学』)と
13113 \emph on
13114 Solar Physics
13115 \emph default
13116 (『太陽系物理学』)ですが、他にも多くの学術誌があります(
13117 \begin_inset Flex URL
13118 status collapsed
13119
13120 \begin_layout Plain Layout
13121
13122 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13123 \end_layout
13124
13125 \end_inset
13126
13127 に全覧があります)。Kluwerパッケージは、
13128 \begin_inset Flex URL
13129 status collapsed
13130
13131 \begin_layout Plain Layout
13132
13133 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13134 \end_layout
13135
13136 \end_inset
13137
13138 からダウンロードできます。完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です)。
13139 \end_layout
13140
13141 \begin_layout Standard
13142 \SpecialChar LyX
13143 は、このパッケージの機能の多くをサポートしていますが、すべてではありません。しかし、\SpecialChar TeX
13144 コードを必要とするのは、パッケージ中のいくつかの「変わった」コマンドだけにな
13145 りました(
13146 \begin_inset CommandInset ref
13147 LatexCommand ref
13148 reference "subsec:kluwer_peculiarities"
13149
13150 \end_inset
13151
13152 参照)。最近、私は\SpecialChar LyX
13153 を使って書いた論文を
13154 \emph on
13155 Astrophysics and Space Science
13156 \emph default
13157 に投稿しましたが、何らの問題も発生しませんでした。
13158 \end_layout
13159
13160 \begin_layout Subsection
13161 論文を書く
13162 \end_layout
13163
13164 \begin_layout Standard
13165 論文を書き始めるには、ひな型ファイルKluwerを使うのが最も簡単です。
13166 \family sans
13167 ファイル\SpecialChar menuseparator
13168 新規(ひな型使用)
13169 \family default
13170 をクリックし、ひな型
13171 \family typewriter
13172 kluwer.lyx
13173 \family default
13174 を選択してください。これは、原稿に通常必要となる各フィールドと、それらの使用法が短く書かれただけの、(ほとんど)何も書かれていない文書です。他のテンプレートと同
13175 様に、既存の文章を(括弧
13176 \family typewriter
13177 <>
13178 \family default
13179 を含む)正しい情報で上書きしてください。
13180 \end_layout
13181
13182 \begin_layout Subsection
13183 投稿の準備
13184 \end_layout
13185
13186 \begin_layout Standard
13187 AAS\SpecialChar TeX
13188 パッケージと同様、論文を投稿する前に、以下のような「後処理」を行う必要があります。
13189 \end_layout
13190
13191 \begin_layout Enumerate
13192
13193 \family sans
13194 ファイル\SpecialChar menuseparator
13195 書き出し\SpecialChar menuseparator
13196 LateX
13197 \family default
13198 をクリックして、論文を\SpecialChar LaTeX
13199 ファイルに書き出す。
13200 \end_layout
13201
13202 \begin_layout Enumerate
13203 生成された
13204 \family typewriter
13205 .tex
13206 \family default
13207 ファイルに、テキストエディタを使用して、以下のような変更を加える。
13208 \begin_inset Separator parbreak
13209 \end_inset
13210
13211
13212 \end_layout
13213
13214 \begin_deeper
13215 \begin_layout Enumerate
13216
13217 \family typewriter
13218
13219 \backslash
13220 documentclass
13221 \family default
13222 コマンドより前にあるコメント行を削除する。
13223 \end_layout
13224
13225 \begin_layout Enumerate
13226 意図的に\SpecialChar LaTeX
13227 プリアンブルに加えたコマンドを除き、
13228 \family typewriter
13229
13230 \backslash
13231 makeatletter
13232 \family default
13233 から 
13234 \family typewriter
13235
13236 \backslash
13237 makeatother
13238 \family default
13239 の間にあるものを、これらのコマンドも含め、すべて削除する。
13240 \end_layout
13241
13242 \begin_layout Standard
13243 変更した
13244 \family typewriter
13245 .tex
13246 \family default
13247 ファイルを保存する。
13248 \end_layout
13249
13250 \end_deeper
13251 \begin_layout Enumerate
13252 この
13253 \family typewriter
13254 .tex
13255 \family default
13256 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13257 にかける。
13258 \end_layout
13259
13260 \begin_layout Enumerate
13261 生成された
13262 \family typewriter
13263 .dvi
13264 \family default
13265 ファイルを
13266 \family sans
13267 xdvi
13268 \family default
13269 などを使って開き、問題がないか確認する(間違いをしていない限り問題ないはずです)。
13270 \end_layout
13271
13272 \begin_layout Subsection
13273 Kluwerパッケージの「風変わり」な特徴
13274 \begin_inset CommandInset label
13275 LatexCommand label
13276 name "subsec:kluwer_peculiarities"
13277
13278 \end_inset
13279
13280
13281 \end_layout
13282
13283 \begin_layout Standard
13284 Kluwerパッケージには、以下のような「風変わりな」特徴があります。
13285 \end_layout
13286
13287 \begin_layout Enumerate
13288 複数の論文を1つの\SpecialChar LaTeX
13289 ファイルへ入れることができます
13290 \begin_inset Foot
13291 status collapsed
13292
13293 \begin_layout Plain Layout
13294 わざわざこんなことをする必要はないでしょう。
13295 \end_layout
13296
13297 \end_inset
13298
13299 。各論文は、「article」環境で囲まなくてはなりません。残念ながら、1つの論文だけを書く場合でも、この環境を省略することはできません。つまり、各論文は
13300 \family typewriter
13301
13302 \backslash
13303 begin{article}
13304 \family default
13305 で始まり、
13306 \family typewriter
13307
13308 \backslash
13309 end{article}
13310 \family default
13311 で終わります。この環境を\SpecialChar LyX
13312 に実装することも可能でしたが、醜い上に初心者を混乱させる可能性があるので、実装することはしませんでした。したがって、これらの命令(
13313 \family typewriter
13314
13315 \backslash
13316 begin{article}
13317 \family default
13318
13319 \family typewriter
13320
13321 \backslash
13322 end{article}
13323 \family default
13324 )は、直接本文中に入力して、\SpecialChar LaTeX
13325 コード(「\SpecialChar TeX
13326 コード」のことです)としてマークする必要があります。
13327 \end_layout
13328
13329 \begin_layout Enumerate
13330 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は、「opening」とよばれる環境に入れなくて
13331 はなりません。これは\SpecialChar LyX
13332 では実装されていませんので、タイトルやサブタイトルなどは、2つの\SpecialChar TeX
13333 コード行(
13334 \family typewriter
13335
13336 \backslash
13337 begin{opening}
13338 \family default
13339 および
13340 \family typewriter
13341
13342 \backslash
13343 end{opening}
13344 \family default
13345 )の間に入れる必要があります。
13346 \end_layout
13347
13348 \begin_layout Enumerate
13349 ユーザーの手引きによれば、書誌情報の各項目のラベルは、
13350 \family typewriter
13351
13352 \begin_inset Newline newline
13353 \end_inset
13354
13355
13356 \backslash
13357 protect
13358 \backslash
13359 citeauthoryear{
13360 \family default
13361 \emph on
13362 著者名
13363 \family typewriter
13364 \emph default
13365 }{
13366 \family default
13367 \emph on
13368
13369 \family typewriter
13370 \emph default
13371 }
13372 \family default
13373  と書く必要があります。
13374 \end_layout
13375
13376 \begin_layout Standard
13377 ひな型
13378 \family typewriter
13379 kluwer.lyx
13380 \family default
13381 は、これらの風変わりな点がすべて考慮されています。このひな型を使用して、論文を新たに書きはじめる場合には、特別なことを行う必要はありません。以下の点にのみ留意し
13382 てください。
13383 \end_layout
13384
13385 \begin_layout Enumerate
13386 ひな型にある\SpecialChar TeX
13387 コードを削除しないでください。
13388 \end_layout
13389
13390 \begin_layout Enumerate
13391 新しい書誌情報項目を入力する場合には、ひな型に例示されている書誌情報項目をコピーして、必要に応じて修正してください。
13392 \end_layout
13393
13394 \begin_layout Section
13395 Koma-Script
13396 \end_layout
13397
13398 \begin_layout Standard
13399
13400 \noun on
13401 Bernd Rellermeyer
13402 \noun default
13403
13404 \end_layout
13405
13406 \begin_layout Subsection
13407 概要
13408 \end_layout
13409
13410 \begin_layout Standard
13411 \SpecialChar LyX
13412 の文書クラス
13413 \emph on
13414 article (koma-script)
13415 \emph default
13416
13417 \emph on
13418 report (koma-script)
13419 \emph default
13420
13421 \emph on
13422 book
13423 \emph default
13424  
13425 \emph on
13426 (koma-script)
13427 \emph default
13428
13429 \emph on
13430 letter
13431 \emph default
13432  
13433 \emph on
13434 (koma-script)
13435 \emph default
13436 は、それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13437 文書クラス
13438 \family typewriter
13439 scrartcl.cls
13440 \family default
13441
13442 \family typewriter
13443 scrreprt.cls
13444 \family default
13445
13446 \family typewriter
13447 scrbook.cls
13448 \family default
13449
13450 \family typewriter
13451 scrlettr.cls
13452 \family default
13453 に対応しています。これらは、標準文書クラス
13454 \family typewriter
13455 article.cls
13456 \family default
13457
13458 \family typewriter
13459 report.cls
13460 \family default
13461
13462 \family typewriter
13463 book.cls
13464 \family default
13465
13466 \family typewriter
13467 letter.cls
13468 \family default
13469 の代替物であり、これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します。
13470 \end_layout
13471
13472 \begin_layout Itemize
13473 標準文字寸法は、
13474 \emph on
13475 article (koma-script)
13476 \emph default
13477
13478 \emph on
13479 report (koma-script)
13480 \emph default
13481
13482 \emph on
13483 book (koma-script)
13484 \emph default
13485 で11pt、
13486 \emph on
13487 letter (koma-script)
13488 \emph default
13489 で12ptです。
13490 \end_layout
13491
13492 \begin_layout Itemize
13493 見出しや箇条書き(記述)環境のラベル、および
13494 \emph on
13495 letter (koma-script)
13496 \emph default
13497 文書クラスの要素の多くでは、ボールド体サンセリフフォントが使われます
13498 \begin_inset Foot
13499 status collapsed
13500
13501 \begin_layout Plain Layout
13502 ボールド体サンセリフフォントには、古いcmフォントと新しいecフォントの間に大きな違いがあり、特に見出しの表示の違いが際立ちます。比較すると、ecボールドサンセ
13503 リフフォントの方が、少し細く見えます。ecフォントを使用する際に「通常の」外観が欲しい場合には、
13504 \shape smallcaps
13505 Walter Schmidt
13506 \shape default
13507 作の\SpecialChar LaTeX
13508 パッケージ
13509 \family typewriter
13510 cmsd.sty
13511 \family default
13512 が役立ちます。
13513 \end_layout
13514
13515 \end_inset
13516
13517 。章見出しの連番は、節見出しの連番と同様に行われ、別行立てで「 Chapter\SpecialChar ldots
13518 」という行がつきません。さらに、多くのオプションによって、見出しの外観を修正するこ
13519 とができます(\SpecialChar LyX
13520 では、
13521 \family sans
13522 文書\SpecialChar menuseparator
13523 設定
13524 \family default
13525 ダイアログの
13526 \family sans
13527 クラスオプション
13528 \family default
13529 フィールドで指定します)。これらのオプションの独語での詳細な説明が、Koma-Scriptの取扱説明書
13530 \emph on
13531 scrguide
13532 \emph default
13533 にあります。
13534 \end_layout
13535
13536 \begin_layout Itemize
13537 Koma-Script文書クラスで、印字部分をデザインする主な方法は、
13538 \family sans
13539 BCOR
13540 \family default
13541 オプションまたは
13542 \family sans
13543 DIV
13544 \family default
13545 オプションを使う方法です(\SpecialChar LyX
13546 では、
13547 \family sans
13548 文書\SpecialChar menuseparator
13549 設定
13550 \family default
13551 ダイアログの
13552 \family sans
13553 クラスオプション
13554 \family default
13555 フィールドで指定します)。これらのオプションは
13556 \family sans
13557 文書\SpecialChar menuseparator
13558 設定
13559 \family default
13560 ダイアログのオプションと同様に、ページ余白を明示的に変更することができます。これらとその他印字領域オプションのドイツ語での詳細な説明が、Koma-Script取
13561 扱説明書
13562 \emph on
13563 scrguide
13564 \emph default
13565 にあります。
13566 \end_layout
13567
13568 \begin_layout Itemize
13569 Koma-Scriptファミリーの\SpecialChar LaTeX
13570 文書クラスには、多くの追加コマンドが定義されています。それらのうち、\SpecialChar LyX
13571 で意味を持つものは、対応する段落環境として実装されています
13572
13573 \end_layout
13574
13575 \begin_layout Standard
13576 Koma-Scriptファミリーの\SpecialChar LaTeX
13577 文書クラスに関する独語の詳細な説明が、Koma-Script取扱説明書
13578 \emph on
13579 scrguide
13580 \emph default
13581 にあります
13582 \begin_inset Foot
13583 status collapsed
13584
13585 \begin_layout Plain Layout
13586 英語翻訳版の
13587 \emph on
13588 screnggu
13589 \emph default
13590 もありますが、完訳ではありません。
13591 \end_layout
13592
13593 \end_inset
13594
13595 。以下の各節では、\SpecialChar LyX
13596 に関係する側面のみ説明致します。
13597 \end_layout
13598
13599 \begin_layout Subsection
13600 article (koma-script)・report (koma-script)・book (koma-script)
13601 \end_layout
13602
13603 \begin_layout Standard
13604 文書クラス
13605 \emph on
13606 article (koma-script)
13607 \emph default
13608
13609 \emph on
13610 report (koma-script)
13611 \emph default
13612
13613 \emph on
13614 book
13615 \emph default
13616  
13617 \emph on
13618 (koma-script)
13619 \emph default
13620 は、それぞれレイアウトファイル
13621 \family typewriter
13622 scrartcl.layout
13623 \family default
13624
13625 \family typewriter
13626 scrreprt.layou
13627 \family default
13628 t・
13629 \family typewriter
13630 crbook.layout
13631 \family default
13632 によって実装されています。これらは、対応する標準文書クラス
13633 \emph on
13634 article
13635 \emph default
13636
13637 \emph on
13638 report
13639 \emph default
13640
13641 \emph on
13642 book
13643 \emph default
13644 の段落環境を、若干の修正を加えた上ですべて含んでいますが、\SpecialChar LyX
13645 固有の
13646 \family sans
13647 箇条書き(一覧)
13648 \family default
13649 環境は例外であり、同じ機能を持つ新しい
13650 \family sans
13651 ラベリング
13652 \family default
13653 環境で置き換えられています。この
13654 \family sans
13655 ラベリング
13656 \family default
13657 環境以外にも、新しい段落環境が多く追加されています。これらは、
13658 \emph on
13659 letter (koma-script)
13660 \emph default
13661 には含まれていないのでご注意ください。
13662 \end_layout
13663
13664 \begin_layout Itemize
13665
13666 \family sans
13667 部(addpart)
13668 \family default
13669
13670 \family sans
13671 章(addchap)
13672 \family default
13673
13674 \family sans
13675 節(addsec)
13676 \family default
13677 :これらは、それぞれ
13678 \family sans
13679 部*
13680 \family default
13681
13682 \family sans
13683 章*
13684 \family default
13685
13686 \family sans
13687 節*
13688 \family default
13689 と同等の働きをしますが、加えて目次に項目が表示されるようになります。
13690 \family sans
13691 部(addpart)
13692 \family default
13693
13694 \family sans
13695 章(addchap)
13696 \family default
13697 は、
13698 \emph on
13699 article (koma-script)
13700 \emph default
13701 には収録されていません。
13702 \end_layout
13703
13704 \begin_layout Itemize
13705
13706 \family sans
13707 章(addchap*)
13708 \family default
13709
13710 \family sans
13711 節(addsec*)
13712 \family default
13713 :これらは、
13714 \family sans
13715 章(addchap
13716 \family default
13717 )と
13718 \family sans
13719 節(addsec)
13720 \family default
13721 とまったく同等に動作しますが、加えてランニングへッダを取り除きます。
13722 \family sans
13723 章(addchap*)
13724 \family default
13725 は、 
13726 \emph on
13727 article (koma-script)
13728 \emph default
13729 には収録されていません
13730 \begin_inset Foot
13731 status collapsed
13732
13733 \begin_layout Plain Layout
13734
13735 \emph on
13736 book (koma-script)
13737 \emph default
13738
13739 \emph on
13740 report (koma-script)
13741 \emph default
13742 には、
13743 \family typewriter
13744
13745 \backslash
13746 addpart*
13747 \family default
13748 コマンドもありますが、これは
13749 \family sans
13750 Part*
13751 \family default
13752 と同一なので、\SpecialChar LyX
13753 では実装されていません。
13754 \end_layout
13755
13756 \end_inset
13757
13758
13759 \end_layout
13760
13761 \begin_layout Itemize
13762
13763 \family sans
13764 小見出し(minisec)
13765 \family default
13766 :これは文書構造に現れない形で、続く段落の直上に標準文字寸法の見出しを付けます。
13767 \end_layout
13768
13769 \begin_layout Itemize
13770
13771 \family sans
13772 上部キャプション
13773 \family default
13774
13775 \family sans
13776 下部キャプション
13777 \family default
13778 は、ある要素の上部ないし下部にキャプションを配置する際、位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば、表キャプションは、つ
13779 ねに表の上に置くべきでしょう)。また、クラスオプション
13780 \family typewriter
13781 tablecaptionsabove
13782 \family default
13783 を用いれば、キャプションを指定すると、表には
13784 \family sans
13785 上部キャプション
13786 \family default
13787 が、図には
13788 \family sans
13789 下部キャプション
13790 \family default
13791 が適用されるようになります。これを使用するためには、Koma-Script第2.8q版以上が必要です。
13792 \end_layout
13793
13794 \begin_layout Itemize
13795
13796 \family sans
13797 格言(dictum)
13798 \family default
13799 :これは、章頭などに警句を置くのに用いることができます。オプション引数(
13800 \family sans
13801 挿入\SpecialChar menuseparator
13802 短縮タイトル
13803 \family default
13804 )を用いれば、格言の作者を入れることができます。格言と作者の間は、線で区切られます。これを使用するためには、Koma-Script第2.8q版以上が必要です。
13805 \family sans
13806 格言(dictum)
13807 \family default
13808 は、
13809 \emph on
13810 article (koma-script)
13811 \emph default
13812 には収録されていません。
13813 \end_layout
13814
13815 \begin_layout Standard
13816 以下の各環境は、標準の
13817 \family sans
13818 タイトル
13819 \family default
13820
13821 \family sans
13822 著者
13823 \family default
13824
13825 \family sans
13826 日付
13827 \family default
13828 とともに文書のタイトル領域を形成します。これらは、最初の「通常の」段落よりも前に置かれる必要があります
13829 \begin_inset Foot
13830 status collapsed
13831
13832 \begin_layout Plain Layout
13833 つまり、対応する\SpecialChar LaTeX
13834 コマンドが
13835 \family typewriter
13836
13837 \backslash
13838 maketitle
13839 \family default
13840 コマンドよりも前に現れなくてはなりません。
13841 \end_layout
13842
13843 \end_inset
13844
13845 。これらの環境が2度以上使用された場合には、後に使用されたものが前のものを上書きします。つまり最後に使用したもののみが有効になります。しかしながら、
13846 \family sans
13847 タイトル
13848 \family default
13849
13850 \family sans
13851 著者
13852 \family default
13853
13854 \family sans
13855 日付
13856 \family default
13857 のような異なる環境の順序を変更しても、生成された文書には何の効果も生じません。
13858 \end_layout
13859
13860 \begin_layout Itemize
13861
13862 \family sans
13863 主題
13864 \family default
13865 :通常のタイトル部(
13866 \family sans
13867 タイトル
13868 \family default
13869
13870 \family sans
13871 著者
13872 \family default
13873
13874 \family sans
13875 日付
13876 \family default
13877 )の上に、文書の主題用の中央揃えの段落を生成します。
13878 \end_layout
13879
13880 \begin_layout Itemize
13881
13882 \family sans
13883 出版社
13884 \family default
13885 :通常のタイトル部(
13886 \family sans
13887 タイトル
13888 \family default
13889
13890 \family sans
13891 著者
13892 \family default
13893
13894 \family sans
13895 日付
13896 \family default
13897 )の下に、出版社名用の中央揃えの段落を生成します。
13898 \end_layout
13899
13900 \begin_layout Itemize
13901
13902 \family sans
13903 献呈
13904 \family default
13905
13906 \emph on
13907 report (koma-script)
13908 \emph default
13909
13910 \emph on
13911 book (koma-script)
13912 \emph default
13913 では、タイトル頁の次に、献辞用の中央揃えの段落を独立した頁として生成します。
13914 \emph on
13915 article (koma-script)
13916 \emph default
13917 の場合は、通常のタイトル部(
13918 \family sans
13919 タイトル
13920 \family default
13921
13922 \family sans
13923 著者
13924 \family default
13925
13926 \family sans
13927 日付
13928 \family default
13929 )の下に献辞用の中央揃えの段落を生成します。
13930 \end_layout
13931
13932 \begin_layout Itemize
13933
13934 \family sans
13935 タイトル頭書き
13936 \family default
13937 :通常のタイトル部(
13938 \family sans
13939 タイトル
13940 \family default
13941
13942 \family sans
13943 著者
13944 \family default
13945
13946 \family sans
13947 日付
13948 \family default
13949 )の上に、文書頭書き用の左揃えの段落を生成します。
13950 \end_layout
13951
13952 \begin_layout Itemize
13953
13954 \family sans
13955 扉裏上部
13956 \family default
13957
13958 \emph on
13959 report (koma-script)
13960 \emph default
13961 や 
13962 \emph on
13963 book (koma-script)
13964 \emph default
13965 の両面印刷において、扉裏上部に左揃え段落を生成します。片面印刷や、
13966 \emph on
13967 article (koma-script)
13968 \emph default
13969 では何の効果も生じません。
13970 \end_layout
13971
13972 \begin_layout Itemize
13973
13974 \family sans
13975 扉裏下部
13976 \family default
13977
13978 \emph on
13979 report (koma-script)
13980 \emph default
13981 や 
13982 \emph on
13983 book (koma-script)
13984 \emph default
13985 の両面印刷において、扉裏下部に左揃え段落を生成します。片面印刷や、
13986 \emph on
13987 article (koma-script)
13988 \emph default
13989 では何の効果も生じません。
13990 \end_layout
13991
13992 \begin_layout Itemize
13993
13994 \family sans
13995 追加タイトル
13996 \family default
13997 :実際の文書の前に、整形を行わない段落から成る、特殊な「汚い」ページを生成します。
13998 \end_layout
13999
14000 \begin_layout Standard
14001 文書クラス
14002 \emph on
14003 article (koma-script)
14004 \emph default
14005
14006 \emph on
14007 report (koma-script)
14008 \emph default
14009
14010 \emph on
14011 book (koma-script)
14012 \emph default
14013 の 各レイアウトファイルは、
14014 \family typewriter
14015 scrmacros.inc
14016 \family default
14017 ファイルを読み込みます。このファイルは、ユーザ環境を定義する場所として想定されています。s
14018 \family typewriter
14019 crmacros.inc
14020 \family default
14021 を、個人用レイアウトディレクトリにコピーして編集してください!
14022 \end_layout
14023
14024 \begin_layout Subsection
14025 letter (koma-script)
14026 \end_layout
14027
14028 \begin_layout Standard
14029 \noindent
14030 文書クラス
14031 \emph on
14032 letter (koma-script)
14033 \emph default
14034 は、レイアウトファイル 
14035 \family typewriter
14036 scrlettr.layout
14037 \family default
14038 で実装されています。このレイアウトファイルには、対応する標準文書クラス
14039 \emph on
14040 letter
14041 \emph default
14042 の全段落環境が、部分的に変更を加えた形で収録されていますが、\SpecialChar LyX
14043 固有環境の
14044 \family sans
14045 \SpecialChar LyX
14046 コード
14047 \family default
14048
14049 \family sans
14050 コメント
14051 \family default
14052
14053 \family sans
14054 箇条書き(一覧
14055 \family default
14056 )は、新しく
14057 \family sans
14058 ラベリング
14059 \family default
14060 環境に置き換えられています。それ以外にも、標準文書クラスとは異なり、標準環境の
14061 \family sans
14062 \SpecialChar LaTeX
14063
14064 \family default
14065
14066 \family sans
14067 引用(字下げあり)
14068 \family default
14069
14070 \family sans
14071 引用(字下げなし)
14072 \family default
14073
14074 \family sans
14075 詩句
14076 \family default
14077 が収録されています。さらに、新しいletter固有環境がたくさん追加されています。
14078 \end_layout
14079
14080 \begin_layout Standard
14081 この文書クラスで作成した書簡の外観は、様々な\SpecialChar LaTeX
14082 コマンドを\SpecialChar LaTeX
14083 プリアンブルに置くことで制御することができます
14084 \begin_inset Foot
14085 status collapsed
14086
14087 \begin_layout Plain Layout
14088 例えば、名前と住所の入った書簡ヘッダの標準的外観は、きわめて頑固です。「普通の」へッダは、プリアンブル中に以下のようなコマンドを入れることで生成することができま
14089 す。
14090 \end_layout
14091
14092 \begin_layout LyX-Code
14093
14094 \backslash
14095 firsthead{
14096 \backslash
14097 parbox[b]{
14098 \backslash
14099 textwidth}
14100 \end_layout
14101
14102 \begin_layout LyX-Code
14103   {
14104 \backslash
14105 ignorespaces 
14106 \backslash
14107 fromname
14108 \backslash
14109
14110 \backslash
14111  
14112 \backslash
14113 ignorespaces 
14114 \backslash
14115 fromaddress}} 
14116 \end_layout
14117
14118 \begin_layout LyX-Code
14119
14120 \backslash
14121 nexthead{
14122 \backslash
14123 parbox[b]{
14124 \backslash
14125 textwidth}
14126 \end_layout
14127
14128 \begin_layout LyX-Code
14129   {
14130 \backslash
14131 ignorespaces 
14132 \backslash
14133 fromname 
14134 \backslash
14135 hfill 
14136 \backslash
14137 ignorespaces 
14138 \backslash
14139 pagename
14140 \backslash
14141
14142 \end_layout
14143
14144 \begin_layout LyX-Code
14145
14146 \backslash
14147 thepage}}
14148 \end_layout
14149
14150 \end_inset
14151
14152 。これらの\SpecialChar LaTeX
14153 コマンドのドイツ語での詳細な説明は、Koma-Scriptの取扱説明書
14154 \emph on
14155 scrguide
14156 \emph default
14157 にあります。この方法で、書簡の著者は、個人用書簡レイアウトを作ることができます。
14158 \end_layout
14159
14160 \begin_layout Standard
14161
14162 \family sans
14163 書簡
14164 \family default
14165 環境および
14166 \family sans
14167 頭語
14168 \family default
14169 環境は、書簡の冒頭部を定義するもので、すべての書簡で使用しなくてはなりません。\SpecialChar LyX
14170 文書クラスでは、これらの環境を強調するために、左余白にそれぞれ
14171 \shape italic
14172 L
14173 \shape default
14174
14175 \shape italic
14176 O
14177 \shape default
14178 という文字が表示されます。同一ファイル中には、複数の書簡を書くことができます。
14179 \family sans
14180 頭語
14181 \family default
14182 環境は、同じ受取人への書簡を新しく書き出すものであり、
14183 \family sans
14184 書簡
14185 \family default
14186 環境は、新しい受取人を生成するものです。
14187 \family sans
14188 結語
14189 \family default
14190
14191 \family sans
14192 PS
14193 \family default
14194
14195 \family sans
14196 CC
14197 \family default
14198
14199 \family sans
14200 Encl
14201 \family default
14202 は、通常の段落環境なので、同一の書簡中でも何度も使用することができます。
14203 \end_layout
14204
14205 \begin_layout Itemize
14206
14207 \family sans
14208 書簡
14209 \family default
14210 :受取人のための段落をつくり、暗黙に書簡の開始を定義します。
14211 \end_layout
14212
14213 \begin_layout Itemize
14214
14215 \family sans
14216 頭語
14217 \family default
14218 :敬称のための段落をつくり、暗黙に新しい書簡を開始します。
14219 \end_layout
14220
14221 \begin_layout Itemize
14222
14223 \family sans
14224 結語
14225 \family default
14226 :結語のための段落をつくります。
14227 \end_layout
14228
14229 \begin_layout Itemize
14230
14231 \family sans
14232 PS
14233 \family default
14234 :追伸のための段落をつくります。
14235 \end_layout
14236
14237 \begin_layout Itemize
14238
14239 \family sans
14240 CC
14241 \family default
14242 :同報一覧のための段落をつくります。
14243 \end_layout
14244
14245 \begin_layout Itemize
14246
14247 \family sans
14248 Encl
14249 \family default
14250 :同封物のための段落をつくります。
14251 \end_layout
14252
14253 \begin_layout Standard
14254
14255 \family sans
14256 名前
14257 \family default
14258
14259 \family sans
14260 署名
14261 \family default
14262
14263 \family sans
14264 住所
14265 \family default
14266
14267 \family sans
14268 電話
14269 \family default
14270
14271 \family sans
14272 場所(Place
14273 \family default
14274 )・
14275 \family sans
14276 返送先住所
14277 \family default
14278
14279 \family sans
14280 配送手段(Specialmail)
14281 \family default
14282
14283 \family sans
14284 場所
14285 \family default
14286
14287 \family sans
14288 タイトル
14289 \family default
14290
14291 \family sans
14292 主題
14293 \family default
14294 は、情報入力を促すラベルの付いた入力環境で、文書クラスが適切な処理を行います
14295 \begin_inset Foot
14296 status collapsed
14297
14298 \begin_layout Plain Layout
14299 上述の
14300 \family sans
14301 書簡
14302 \family default
14303
14304 \family sans
14305 頭語
14306 \family default
14307 が、これらのような入力環境でないのは、矛盾しているように感じられるかもしれません。しかしながら、これら2つの環境は特別の意味を持っているために、これらは左余白に
14308 一文字をマークした通常の段落環境として実装しました。さらに、
14309 \family sans
14310 頭語
14311 \family default
14312 環境と
14313 \family sans
14314 結語
14315 \family default
14316 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです。
14317 \end_layout
14318
14319 \end_inset
14320
14321 。これらの環境は、対応する
14322 \family sans
14323 頭語
14324 \family default
14325 環境の前に置く必要があります。
14326 \end_layout
14327
14328 \begin_layout Standard
14329 生成された書簡の実際の外観は、特定の環境の使い方だけではなく、他の要素にも依存するため、これらの環境をWYSIWYGとして実装することには、あまり意味がありませ
14330 ん。たとえば、
14331 \family sans
14332 署名
14333 \family default
14334 環境で入力した署名は、標準的な挙動では、同じ書簡に
14335 \family sans
14336 結語
14337 \family default
14338 環境も使用されているときのみ、書簡の出力に現れます。
14339 \family sans
14340 電話
14341 \family default
14342 環境に入力された値は、標準的な挙動では、書簡の出力には全く表示されません。書簡のヘッダを自由にデザインできることは、前出の脚注で示してあります。
14343 \end_layout
14344
14345 \begin_layout Standard
14346 入力環境は、空の段落として使うことができます。これは、たとえば
14347 \family sans
14348 署名
14349 \family default
14350 環境の場合に有効です。
14351 \family sans
14352 署名
14353 \family default
14354 環境を全く使用しない場合は、標準的な挙動では、
14355 \family sans
14356 名前
14357 \family default
14358 環境の値が署名として使用されますが、空の
14359 \family sans
14360 署名
14361 \family default
14362 環境を作成しておくと、署名の値は無定義となりません。
14363 \end_layout
14364
14365 \begin_layout Standard
14366 入力環境を使用すると、個人データ(名前や住所など)が既に入力された入力環境と、後から入力するデータの入力環境を備えた、書簡のひな型を作成することができます。
14367 \end_layout
14368
14369 \begin_layout Itemize
14370
14371 \family sans
14372 名前
14373 \family default
14374 :送り主の名前。標準的な挙動では、書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます。
14375 \end_layout
14376
14377 \begin_layout Itemize
14378
14379 \family sans
14380 署名
14381 \family default
14382 :送り主の署名。標準的な挙動では、
14383 \family sans
14384 結語
14385 \family default
14386 環境の下に表示されます。
14387 \family sans
14388 署名
14389 \family default
14390 環境を使用しないと、代わりに
14391 \family sans
14392 名前
14393 \family default
14394 環境の値が表示されます。
14395 \end_layout
14396
14397 \begin_layout Itemize
14398
14399 \family sans
14400 住所
14401 \family default
14402 :送り主の住所。標準的な挙動では、書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます。
14403 \end_layout
14404
14405 \begin_layout Itemize
14406
14407 \family sans
14408 電話
14409 \family default
14410 :送り主の電話番号。標準的な挙動では、\SpecialChar LaTeX
14411 変数
14412 \family typewriter
14413
14414 \backslash
14415 telephonenum
14416 \family default
14417 を設定するだけです。
14418 \end_layout
14419
14420 \begin_layout Itemize
14421
14422 \family sans
14423 場所(Place)
14424 \family default
14425 :書簡を書いた場所。
14426 \end_layout
14427
14428 \begin_layout Itemize
14429
14430 \family sans
14431 日付
14432 \family default
14433 :書簡を書いた日付。
14434 \family sans
14435 場所(Place)
14436 \family default
14437
14438 \family sans
14439 日付
14440 \family default
14441 は、標準的な挙動では、受取人フィールドの下に、単一の右揃え行として場所と日付を生成します。空の
14442 \family sans
14443 日付
14444 \family default
14445 環境を作成しておくと、
14446 \family sans
14447 場所(Place)
14448 \family default
14449 の値如何に関わらず、場所も日付も表示されません。
14450 \family sans
14451 日付
14452 \family default
14453 環境を使用しない場合には、書簡を出力した日付が使用されます。
14454 \end_layout
14455
14456 \begin_layout Itemize
14457
14458 \family sans
14459 返送先住所
14460 \family default
14461 :送り主の返送先住所。標準的な挙動では、受取人の上に小文字のサンセリフ体フォントで表示されます。
14462 \end_layout
14463
14464 \begin_layout Itemize
14465
14466 \family sans
14467 特別便
14468 \family default
14469 :特別便の情報。標準的な挙動では、受取人フィールドの上かつ返送先住所の下に、下線付きで表示されます。
14470 \end_layout
14471
14472 \begin_layout Itemize
14473
14474 \family sans
14475 場所
14476 \family default
14477 :追加情報。標準的な挙動では、受取人フィールドの下の右側に表示されます。
14478 \end_layout
14479
14480 \begin_layout Itemize
14481
14482 \family sans
14483 タイトル
14484 \family default
14485 :書簡の題名。標準的な挙動では、主題の上に大きなボールド体サンセリフフォントで表示されます。
14486 \end_layout
14487
14488 \begin_layout Itemize
14489
14490 \family sans
14491 主題
14492 \family default
14493 :書簡の主題。標準的な挙動では、
14494 \family sans
14495 頭語
14496 \family default
14497 環境の上にボールド体で表示されます。
14498 \end_layout
14499
14500 \begin_layout Standard
14501
14502 \family sans
14503 Yourref・Yourmail・Myref・顧客・インボイス
14504 \family default
14505 といった環境は、
14506 \family sans
14507 タイトル
14508 \family default
14509 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14510 ィールド行を持つ、ビジネス書簡を作成します。日付フィールドには、
14511 \family sans
14512 日付
14513 \family default
14514 環境の値が使用されます。しかしながら、これらの「ビジネス書簡環境」の一つを使用した場合には、
14515 \family sans
14516 場所(Place)
14517 \family default
14518 の値は書簡には表示されなくなり、\SpecialChar LaTeX
14519 変数
14520 \family typewriter
14521
14522 \backslash
14523 fromplace
14524 \family default
14525 が設定させるだけになります。通常時に、受取人フィールドの下に右揃えで出力される場所と日付の出力は、抑制されます。これらのビジネス環境は、ラベル付きの入力環境とし
14526 て実装されており、対応する
14527 \family sans
14528 頭語
14529 \family default
14530 環境よりも前に置く必要があります。
14531 \end_layout
14532
14533 \begin_layout Itemize
14534
14535 \family sans
14536 Yourref
14537 \family default
14538 : Your ref.
14539 \end_layout
14540
14541 \begin_layout Itemize
14542
14543 \family sans
14544 Yourmail
14545 \family default
14546 : Your letter of.
14547 \end_layout
14548
14549 \begin_layout Itemize
14550
14551 \family sans
14552 Myref
14553 \family default
14554 : Our ref.
14555 \end_layout
14556
14557 \begin_layout Itemize
14558
14559 \family sans
14560 Customer
14561 \family default
14562 : Customer no.
14563 \end_layout
14564
14565 \begin_layout Itemize
14566
14567 \family sans
14568 Invoice
14569 \family default
14570 : Invoice no.
14571 \end_layout
14572
14573 \begin_layout Subsection
14574 新しいletterクラス:letter (koma-script v.2)
14575 \end_layout
14576
14577 \begin_layout Standard
14578 by 
14579 \noun on
14580 Jürgen Spitzmüller
14581 \begin_inset VSpace medskip
14582 \end_inset
14583
14584
14585 \end_layout
14586
14587 \begin_layout Standard
14588 \noindent
14589 Koma-Script第2.8版では、新しいletterクラス
14590 \family typewriter
14591 scrlttr2
14592 \family default
14593 が導入されたため、
14594 \family typewriter
14595 scrlettr
14596 \family default
14597 は廃止されてサポート対象外となりました。これは—\SpecialChar LaTeX
14598 側で—全く新しいインターフェイスを持っており、旧クラスとは互換性がありません。したがって、\SpecialChar LyX
14599 は両者をサポートしてい
14600 ますが、新しい方のクラスを使用することを推奨します。
14601 \end_layout
14602
14603 \begin_layout Standard
14604 このクラスは、
14605 \emph on
14606 letter (koma-script)
14607 \emph default
14608 と同一の機能に加えて、新しい機能をいくつかサポートしています。基本となる項目は、
14609 \family sans
14610 住所
14611 \family default
14612 (受取人の住所、旧レイアウトの
14613 \family sans
14614 書簡
14615 \family default
14616 と同じ)・
14617 \family sans
14618 頭語
14619 \family default
14620
14621 \family sans
14622 結語
14623 \family default
14624 です。
14625 \family sans
14626 次の住所
14627 \family default
14628 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます)。新しく付け加えられた項目は、送り主の
14629 \family sans
14630 電子メール
14631 \family default
14632
14633 \family sans
14634 URL
14635 \family default
14636
14637 \family sans
14638 ファックス
14639 \family default
14640
14641 \family sans
14642 銀行
14643 \family default
14644 、およびヘッダに(
14645 \family sans
14646 挿入\SpecialChar menuseparator
14647
14648 \family default
14649 で)
14650 \family sans
14651 ロゴ
14652 \family default
14653 を入れることができるようになった点です。
14654 \end_layout
14655
14656 \begin_layout Standard
14657 しかしながら、もっとも大きな改善は、書簡のレイアウトを、ほとんどどんなニーズにも合わせて設定できるようになった点でしょう。これはプリアンブルか、クラスオプション
14658 として読み込まれる特別なスタイルファイル(「レタークラスオプション」、拡張子
14659 \family typewriter
14660 *.lco
14661 \family default
14662 )によって設定することができます
14663 \begin_inset Foot
14664 status collapsed
14665
14666 \begin_layout Plain Layout
14667 KOMAパッケージには、既定の
14668 \family typewriter
14669 *.lco
14670 \family default
14671 ファイルがいくつか収録されています。たとえば、ドイツの組版規則に則った
14672 \family typewriter
14673 DIN.lco
14674 \family default
14675 や、旧
14676 \family typewriter
14677 scrlettr
14678 \family default
14679 クラスの既定レイアウトを提供する
14680 \family typewriter
14681 KOMAold.lco
14682 \family default
14683 などです。たとえば後者は、
14684 \family sans
14685 文書\SpecialChar menuseparator
14686 設定\SpecialChar menuseparator
14687 文書クラス\SpecialChar menuseparator
14688 クラスオプション
14689 \family default
14690 フィールドにクラスオプション
14691 \family typewriter
14692 KOMAold
14693 \family default
14694 を加えることで読み込むことができます。
14695 \end_layout
14696
14697 \end_inset
14698
14699 。用例としては、\SpecialChar LyX
14700 に収録されているひな型
14701 \emph on
14702 koma-letter2
14703 \emph default
14704 をご覧ください。詳細な解説は、Koma-Script取扱説明書(
14705 \emph on
14706 scrguide
14707 \emph default
14708 )にあります。
14709 \end_layout
14710
14711 \begin_layout Subsection
14712 問題点
14713 \end_layout
14714
14715 \begin_layout Standard
14716 Koma-Script文書クラスを\SpecialChar LyX
14717 上に表示する上で、\SpecialChar LyX
14718 の内部処理が若干の問題を生じめます。
14719 \end_layout
14720
14721 \begin_layout Itemize
14722
14723 \family sans
14724
14725 \family default
14726 環境の章番号は、章見出しと同じ行ではなく、その上に表示されます。これは、レイアウトファイル中の
14727 \family sans
14728 Counter_Chapter
14729 \family default
14730 ラベル型に対する\SpecialChar LyX
14731 の内部処理が原因です。
14732 \end_layout
14733
14734 \begin_layout Itemize
14735
14736 \family sans
14737 章(addchap)
14738 \family default
14739
14740 \family sans
14741 節(addsec)
14742 \family default
14743 環境の見出しは、「本当の」\SpecialChar LaTeX
14744 の目次には追加されますが、\SpecialChar LyX
14745 の目次(
14746 \family sans
14747 移動
14748 \family default
14749 メニュー)には追加されません。
14750 \end_layout
14751
14752 \begin_layout Itemize
14753
14754 \emph on
14755 letter
14756 \emph default
14757 文書クラスでの段落は、垂直スペースによる段落区切りで表示され、字下げはされません。これが標準的な挙動となっていて、特別な\SpecialChar LaTeX
14758 コマンドは必要ありません。しかし、
14759 \family sans
14760 文書\SpecialChar menuseparator
14761 設定
14762 \family default
14763 ダイアログでは、対応するラジオボタンは
14764 \family sans
14765 字下げ
14766 \family default
14767 に設定されています。
14768 \family sans
14769 垂直スペース
14770 \family default
14771 は、隙間を空けるために、文書に\SpecialChar LaTeX
14772 コマンドをつねに追加するようになっていますが、この文書クラスの場合には、そのような挙動が望まれないためです。
14773 \end_layout
14774
14775 \begin_layout Section
14776 Memoir
14777 \end_layout
14778
14779 \begin_layout Standard
14780
14781 \noun on
14782 Jürgen Spitzmüller
14783 \noun default
14784
14785 \end_layout
14786
14787 \begin_layout Subsection
14788 概観
14789 \end_layout
14790
14791 \begin_layout Standard
14792 Memoirは、非常に強力で、着実に改良が加えられている文書クラスであり、フィクションとノンフィクションの文学作品用に設計されています。その目的は、ユーザーに、
14793 文書の組版に関して最大限の裁量を得させることにあります。Memoirは、標準bookクラスに基づいていますが、articleクラスをエミュレートすることもできま
14794 す(以下参照)。
14795 \end_layout
14796
14797 \begin_layout Standard
14798 Memoir開発者であるPeter Wilsonは、\SpecialChar LaTeX
14799 の世界での、多くの便利なパッケージの作者として知られていますが、それらのほとんどは、Memoirに統合されま
14800 した。このため、章のデザインや、目次や付録などのレイアウトを、はるかに簡単に行うことができます。しかしながら、\SpecialChar LyX
14801 は、これらすべての素晴らしい機能をネイティブでサポ
14802 ートしているわけではありません。これらのうちいくつかは、将来のリリースで追加されるかもしれませんが
14803 \begin_inset Foot
14804 status collapsed
14805
14806 \begin_layout Plain Layout
14807 もし提案があれば、ぜひ
14808 \begin_inset Flex URL
14809 status collapsed
14810
14811 \begin_layout Plain Layout
14812
14813 lyx-devel@lists.lyx.org
14814 \end_layout
14815
14816 \end_inset
14817
14818 までお送り下さい。
14819 \end_layout
14820
14821 \end_inset
14822
14823 、\SpecialChar LyX
14824 のフレームワークが持つ制約のために、おそらく決して追加されることのないと考えられるものも多数あります。もちろん、ネイティブな\SpecialChar LaTeX
14825 コマンド(\SpecialChar TeX
14826 コード
14827 \begin_inset Foot
14828 status collapsed
14829
14830 \begin_layout Plain Layout
14831 【参考】詳細は、第
14832 \begin_inset CommandInset ref
14833 LatexCommand ref
14834 reference "sec:LaTeXコードを挿入する"
14835
14836 \end_inset
14837
14838 節参照。
14839 \end_layout
14840
14841 \end_inset
14842
14843 )の助けを借りれば、全機能を使用できます。この節では、\SpecialChar LyX
14844 がネイティブにサポートしている機能についてのみ、列挙するものとします。詳細な説明(および他の機能)について
14845 は、Memoirクラスの詳しい取扱説明書
14846 \begin_inset Foot
14847 status collapsed
14848
14849 \begin_layout Plain Layout
14850 【参考】
14851 \begin_inset Flex URL
14852 status collapsed
14853
14854 \begin_layout Plain Layout
14855
14856 CTAN:/macros/latex/memoir/memman.pdf
14857 \end_layout
14858
14859 \end_inset
14860
14861
14862 \end_layout
14863
14864 \end_inset
14865
14866 をご覧になることをお勧めします。この取扱説明書は、本クラスのユーザーの手引きであるのみに留まらず、良い組版に関する包括的な解説であり、それ自身が良い組版の傑出し
14867 た用例となっています。
14868 \end_layout
14869
14870 \begin_layout Subsection
14871 基本的な機能と制約
14872 \end_layout
14873
14874 \begin_layout Standard
14875 Memoirは、基本的に、標準bookクラスの全機能をサポートしています。しかしながら、以下に示すような若干の違いがあります。
14876 \end_layout
14877
14878 \begin_layout Description
14879 フォント寸法: Memoirでは、9・10・11・12・14・17と、より広い範囲のフォント寸法が使用可能です。
14880 \end_layout
14881
14882 \begin_layout Description
14883 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため、\SpecialChar LaTeX
14884 が混乱させられます
14885 )、fancyページ様式は使用できません。その代わり、Memoirには、多くの独自のページ様式が付属してきます(
14886 \family sans
14887 文書\SpecialChar menuseparator
14888 設定\SpecialChar menuseparator
14889 ページレイアウト
14890 \family default
14891 参照)。これらを章題ページに使用したい場合には、コマンド
14892 \family typewriter
14893
14894 \backslash
14895 chapterstyle
14896 \family default
14897 を、本文またはプリアンブルに記述する必要があります(例えば、
14898 \family typewriter
14899
14900 \backslash
14901 chapterstyle{companion}
14902 \family default
14903 など)。
14904 \end_layout
14905
14906 \begin_layout Description
14907 節分け: 標準クラスでは、節分けコマンド(章・節・小節等)は、非必須引数を一つ取ることができます。これを用いて、目次やヘッダ用に別のタイトルを指定することができ
14908 ます(たとえば、タイトルが長すぎる場合などに用います)。\SpecialChar LyX
14909 では、章や節の始めで
14910 \family sans
14911 挿入\SpecialChar menuseparator
14912 短縮タイトル
14913 \family default
14914 を使えば、これを指定することができます。一方、Memoirでは、第2の非必須引数を取ることができ、目次用のタイトルとヘッダ用のタイトルの指定を分離しています。こ
14915 れを使えば、本文用と目次用とヘッダ用のタイトルの3種類を指定することができます。この機能を使用したい場合には、2つの非必須引数を入力して、最初のものに目次用、次
14916 のものにヘッダ用短縮タイトルを入れてください。
14917 \end_layout
14918
14919 \begin_layout Description
14920 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では、目次と図一覧および表一覧は、自動的に新規頁に置かれます。Memoirは、これとは別の方針を採り
14921 ます。改頁を行いたい場合は、手動で頁区切りを入れなくてはなりません。
14922 \end_layout
14923
14924 \begin_layout Description
14925 タイトル頁: 理由は不明ですが、Memoirはタイトルページに丁付けを行います(標準クラスでは、タイトルページは「empty」様式)。タイトル頁に丁付けを行いた
14926 くない場合には、プリアンブルに
14927 \family typewriter
14928
14929 \backslash
14930 aliaspagestyle{title}{empty}
14931 \family default
14932 と入力してください。
14933 \end_layout
14934
14935 \begin_layout Description
14936 Article: クラスオプション
14937 \emph on
14938 article
14939 \emph default
14940 を用いる(
14941 \family sans
14942 文書\SpecialChar menuseparator
14943 設定\SpecialChar menuseparator
14944 クラスオプション
14945 \family default
14946 で入力)と、article様式をエミュレートできます。すなわち、(脚注・図・表等の)カウンタは、章毎にリセットされず、次の章は頁を改めず(ただし、「本物の」ar
14947 ticleクラスとは違って、頁を改めることも可)、部はbookクラスと同様に、独立の頁を使用します。
14948 \end_layout
14949
14950 \begin_layout Description
14951 Oldfontcommands: \SpecialChar LaTeX
14952 旧2.09版で使用されていた旧いフォントコマンド(
14953 \family typewriter
14954
14955 \backslash
14956 rm
14957 \family default
14958
14959 \family typewriter
14960
14961 \backslash
14962 it
14963 \family default
14964 など)は、Memoirにおいては、既定では使用することができません。Memoirがこれらのコマンドを検知すると、エラーを発して\SpecialChar LaTeX
14965 を停止させます。しかし、クラスオプ
14966 ション
14967 \emph on
14968 oldfontcommands
14969 \emph default
14970 を指定すると、これらのコマンドが容認され、エラーの代わりに警告を発するのみとなります(これによって、少なくとも\SpecialChar LaTeX
14971 は停止しなくなります)。まだ、多くのパッケージと、
14972 就中多くのBib\SpecialChar TeX
14973 スタイルファイルが、これらのコマンドを使用しているので、我々はこのオプションを既定で使うこととしました。
14974 \end_layout
14975
14976 \begin_layout Subsection
14977 追加された機能
14978 \end_layout
14979
14980 \begin_layout Standard
14981 \SpecialChar LyX
14982 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう。詳しくはMemoirの取扱説明書
14983 \begin_inset Foot
14984 status collapsed
14985
14986 \begin_layout Plain Layout
14987 \begin_inset Flex URL
14988 status collapsed
14989
14990 \begin_layout Plain Layout
14991
14992 CTAN:/macros/latex/memoir/memman.pdf
14993 \end_layout
14994
14995 \end_inset
14996
14997
14998 \end_layout
14999
15000 \end_inset
15001
15002 を見てください。
15003 \end_layout
15004
15005 \begin_layout Description
15006 概要: 概要が、追加された機能として扱われているのを不思議に思われるかもしれませんが、bookクラスとしては追加された機能なのです。通常bookクラスには概要は
15007 ないのですが、memoirにはあります。これは、どこでも何回でも自由に使うことができます。
15008 \end_layout
15009
15010 \begin_layout Description
15011 章要約: この古い組版様式はご覧になったことがあるかも知れません。章の内容が、見出しの下と目次に要約されているものです(たとえば、「我らが英雄がトロヤに到着する
15012 。彼は友人を失うが、新たな友人を得る。」など)。章要約(chapterprecis)はこれを行います。したがって、章要約は章の下でのみ意味を持ちます。
15013 \end_layout
15014
15015 \begin_layout Description
15016 題辞: 題辞(epigraph)は章頭の、気の利いた標語やモットーです。題辞環境は、そのような標語を組む洗練された方法を提供します。標語本体(本文)とその著者(
15017 出典)は、短い線で区切られます。この環境には二つの引数(本文と出典)が必要なので、ここでも\SpecialChar LyX
15018 を少しだます必要があります。ここでは、2つの引数の間に、
15019 \emph on
15020 <標語>
15021 \family typewriter
15022 \emph default
15023 }{
15024 \family default
15025 \emph on
15026 <標語の著者>
15027 \emph default
15028 のように、(\SpecialChar TeX
15029 モードで)波括弧を入れなくてはなりません。
15030 \end_layout
15031
15032 \begin_layout Description
15033 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが、\SpecialChar LyX
15034 は、そのうちいくつかしかサポートしていません。詩題はその一つです
15035 。これは詩用の中央揃えタイトルで、目次にも表示されます(詩句が詩の標準環境です。Memoirには、詩句の拡張版もありますが、これらを使うためには\SpecialChar TeX
15036 コードを使用しな
15037 くてはなりません。これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが、\SpecialChar LyX
15038 ではそれができないためです)。
15039 \end_layout
15040
15041 \begin_layout Description
15042 詩題*: 目次に現れない他は詩題と同じです。
15043 \end_layout
15044
15045 \begin_layout Section
15046 Article (mwart)・book (mwbk)・report (mwrep)
15047 \begin_inset Argument status
15048 status collapsed
15049
15050 \begin_layout Plain Layout
15051 The 
15052 \family typewriter
15053 mw
15054 \family default
15055  Classes
15056 \end_layout
15057
15058 \end_inset
15059
15060
15061 \end_layout
15062
15063 \begin_layout Standard
15064
15065 \noun on
15066 Tomasz Luczak
15067 \noun default
15068
15069 \end_layout
15070
15071 \begin_layout Standard
15072 \SpecialChar LyX
15073 文書クラス
15074 \emph on
15075 article (mwart)
15076 \emph default
15077
15078 \emph on
15079 report (mwrep)・book
15080 \emph default
15081  
15082 \emph on
15083 (mwbk)
15084 \emph default
15085 は、それぞれ\SpecialChar LaTeX
15086 文書クラス
15087 \family typewriter
15088 mwart.cls
15089 \family default
15090
15091 \family typewriter
15092 mwrep.cls
15093 \family default
15094
15095 \family typewriter
15096 mwbk.cls
15097 \family default
15098 に対応しています。これらは、標準の
15099 \family typewriter
15100 article.cls
15101 \family default
15102
15103 \family typewriter
15104 report.cls
15105 \family default
15106
15107 \family typewriter
15108 book.cls
15109 \family default
15110 を代替するものであり、多くの点で、ポーランド語の組版慣習によく適合しています。
15111 \end_layout
15112
15113 \begin_layout Standard
15114 基本的な違いは、次の点です。
15115 \end_layout
15116
15117 \begin_layout Itemize
15118 付番のない見出し(
15119 \family sans
15120 節*
15121 \family default
15122 などの星付き)も目次に加えられます。
15123 \end_layout
15124
15125 \begin_layout Itemize
15126 以下のページスタイルの追加
15127 \begin_inset Separator parbreak
15128 \end_inset
15129
15130
15131 \end_layout
15132
15133 \begin_deeper
15134 \begin_layout Description
15135 uheadings 分離線付きヘッダ
15136 \end_layout
15137
15138 \begin_layout Description
15139 myheadings 
15140 \family typewriter
15141
15142 \backslash
15143 markright
15144 \family default
15145 コマンドおよび
15146 \family typewriter
15147
15148 \backslash
15149 markboth
15150 \family default
15151 コマンドで設定するカスタムヘッダ
15152 \end_layout
15153
15154 \begin_layout Description
15155 myuheadings 分離線付きカスタムヘッダ
15156 \end_layout
15157
15158 \begin_layout Description
15159 outer ページの外側にページ番号
15160 \end_layout
15161
15162 \end_deeper
15163 \begin_layout Itemize
15164 オプション
15165 \begin_inset Separator parbreak
15166 \end_inset
15167
15168
15169 \end_layout
15170
15171 \begin_deeper
15172 \begin_layout Description
15173 rmheadings セリフ体見出し — 既定
15174 \end_layout
15175
15176 \begin_layout Description
15177 sfheadings サンセリフ体見出し
15178 \end_layout
15179
15180 \begin_layout Description
15181 authortitle タイトルページは、著者名・タイトルの順で配置 — 既定
15182 \end_layout
15183
15184 \begin_layout Description
15185 titleauthor タイトルページは、タイトル・著者名の順で配置
15186 \end_layout
15187
15188 \begin_layout Description
15189 withmarginpar ページ上に余白のための場所を確保
15190 \end_layout
15191
15192 \end_deeper
15193 \begin_layout Section
15194 Paper
15195 \end_layout
15196
15197 \begin_layout Standard
15198
15199 \family sans
15200 paper
15201 \family default
15202 文書クラスは標準
15203 \family sans
15204 article
15205 \family default
15206 クラスの代替となるものです。これは
15207 \family sans
15208 同様の
15209 \family default
15210 機能を提供しますが、サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません。
15211 \end_layout
15212
15213 \begin_layout Section
15214 Rev\SpecialChar TeX
15215 4
15216 \end_layout
15217
15218 \begin_layout Standard
15219 by 
15220 \noun on
15221 Amir Karger
15222 \end_layout
15223
15224 \begin_layout Standard
15225 \begin_inset VSpace bigskip
15226 \end_inset
15227
15228
15229 \end_layout
15230
15231 \begin_layout Standard
15232 \noindent
15233
15234 \family sans
15235 Revtex
15236 \begin_inset space ~
15237 \end_inset
15238
15239 4
15240 \family default
15241 テキストクラスは、アメリカ物理学会のRev\SpecialChar TeX
15242  4.0(1999年5月の
15243 \begin_inset Formula $\beta$
15244 \end_inset
15245
15246 リリース)クラスで動作します。
15247 \end_layout
15248
15249 \begin_layout Standard
15250 \SpecialChar LyX
15251 には、Rev\SpecialChar TeX
15252  3.1で動作する
15253 \family sans
15254 Revtex
15255 \family default
15256 テキストクラスもあります。しかしながら、第3.1版は\SpecialChar LaTeX
15257  2.09で動作するものであり、基本的に時代遅れなものになっています。\SpecialChar LyX
15258 は\SpecialChar LaTeX2e
15259 を必要とすることから、第3.1版は\SpecialChar LyX
15260 とうまく
15261 協調しないことを意味しますが、動作するようには調整してあります。Rev\SpecialChar TeX
15262  4.0は、\SpecialChar LaTeX2e
15263 で素直に動作するようにデザインされているので、\SpecialChar LyX
15264
15265 \family sans
15266 Rev\SpecialChar TeX
15267
15268 \begin_inset space ~
15269 \end_inset
15270
15271 4
15272 \family default
15273 テキストクラスの組で使用するのは、たいへん簡単です。
15274 \end_layout
15275
15276 \begin_layout Standard
15277 この取扱説明書は、Rev\SpecialChar TeX
15278  4.0の説明書の
15279 \emph on
15280 補完
15281 \emph default
15282 として使用されることを前提としています。したがって、ここではRev\SpecialChar TeX
15283 固有マクロの説明はせず、必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15284 します。
15285 \end_layout
15286
15287 \begin_layout Subsection
15288 導入
15289 \end_layout
15290
15291 \begin_layout Standard
15292 Rev\SpecialChar TeX
15293  4パッケージのREADMEファイルにあるとおり、ともかくRev\SpecialChar TeX
15294  4を導入しなくてはなりません。パッケージは、The Rev\SpecialChar TeX
15295  4 Web
15296  Site 
15297 \begin_inset Flex URL
15298 status collapsed
15299
15300 \begin_layout Plain Layout
15301
15302 http://publish.aps.org/revtex4/
15303 \end_layout
15304
15305 \end_inset
15306
15307 から入手することができます。これを\SpecialChar LaTeX
15308 が検出することのできる場所に導入してください。それから、適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15309 ィレクトリ)で簡単なRev\SpecialChar TeX
15310  4文書を \SpecialChar LaTeX
15311 でコンパイルできるかどうか確認してください。この後、\SpecialChar LyX
15312 を環境構成すると、クラスファイルを検出し、Rev\SpecialChar TeX
15313 4テキストクラスが使用
15314 できるようになるはずです。
15315 \end_layout
15316
15317 \begin_layout Standard
15318 使い始めるには、
15319 \family typewriter
15320 tex2lyx
15321 \family default
15322 を使ってRev\SpecialChar TeX
15323  4文書を読み込むか、またはひな型ディレクトリにある
15324 \family sans
15325 Revtex
15326 \begin_inset space ~
15327 \end_inset
15328
15329 4
15330 \family default
15331 のひな型を使うのが、おそらく一番簡単な方法でしょう。
15332 \end_layout
15333
15334 \begin_layout Subsection
15335 プリアンブルに関すること
15336 \end_layout
15337
15338 \begin_layout Standard
15339
15340 \family typewriter
15341
15342 \backslash
15343 documentclass
15344 \family default
15345 に与える「preprint」や「aps」のような非必須引数は、他のクラス同様、
15346 \family sans
15347 文書\SpecialChar menuseparator
15348 設定\SpecialChar menuseparator
15349 文書クラス
15350 \family default
15351
15352 \family sans
15353 クラスオプション
15354 \family default
15355 フィールドに入れます。Rev\SpecialChar TeX
15356 では、少なくとも一つの非必須引数が必要なことに注意してください。
15357 \end_layout
15358
15359 \begin_layout Standard
15360
15361 \family typewriter
15362
15363 \backslash
15364 draft
15365 \family default
15366 など他のプリアンブルは、他のクラス同様、
15367 \family sans
15368 文書\SpecialChar menuseparator
15369 設定\SpecialChar menuseparator
15370 \SpecialChar LaTeX
15371 プリアンブル
15372 \family default
15373 に入れてください。
15374 \end_layout
15375
15376 \begin_layout Subsection
15377 レイアウト
15378 \end_layout
15379
15380 \begin_layout Standard
15381 レイアウトは、基本的にRev\SpecialChar TeX
15382 4.0のコマンドに対応しています。たとえば、Emailレイアウトは、
15383 \family typewriter
15384
15385 \backslash
15386 email{}
15387 \family default
15388 に対応しています。(少なくともRev\SpecialChar TeX
15389  4.0 Beta現在では)
15390 \family sans
15391 住所
15392 \family default
15393
15394 \family sans
15395 所属
15396 \family default
15397 はまったく同じものなので、両方を使う必要はありません
15398 \begin_inset Foot
15399 status collapsed
15400
15401 \begin_layout Plain Layout
15402 ついでながら、
15403 \family typewriter
15404 tex2lyx
15405 \family default
15406 は両方とも対応しているので、
15407 \family typewriter
15408
15409 \backslash
15410 address
15411 \family default
15412
15413 \family typewriter
15414
15415 \backslash
15416 affiliation
15417 \family default
15418 のどちらも翻訳することができます。
15419 \end_layout
15420
15421 \end_inset
15422
15423
15424 \end_layout
15425
15426 \begin_layout Subsection
15427 重要な注意
15428 \end_layout
15429
15430 \begin_layout Standard
15431 Rev\SpecialChar TeX
15432  4には、バグを引き起こしがちなために、気をつけなくてはならない特殊な面がいくつかあるため、\SpecialChar LyX
15433 ではさらに気をつけなくてはなりません。
15434 \end_layout
15435
15436 \begin_layout Standard
15437 Rev\SpecialChar TeX
15438 では、
15439 \family typewriter
15440
15441 \backslash
15442 thanks
15443 \family default
15444 コマンドは、
15445 \family typewriter
15446
15447 \backslash
15448 author
15449 \family default
15450 コマンドの
15451 \emph on
15452 外側
15453 \emph default
15454 に来なくてはなりません。\SpecialChar LyX
15455 では、独立した
15456 \family sans
15457 感謝
15458 \family default
15459 レイアウトがこの働きをします。直接
15460 \family sans
15461 、著者
15462 \family default
15463 レイアウトに脚注を付けてしまうと、おかしなことが起こる可能性があります。詳細については、Rev\SpecialChar TeX
15464  4の取扱説明書をご覧ください。
15465 \end_layout
15466
15467 \begin_layout Standard
15468 また、
15469 \family sans
15470 著者電子メール
15471 \family default
15472
15473 \family sans
15474 著者URL・感謝(thanks)
15475 \family default
15476 レイアウトは、
15477 \family sans
15478 著者
15479 \family default
15480 レイアウトと
15481 \family sans
15482 住所(
15483 \family default
15484 または同等の
15485 \family sans
15486 所属
15487 \family default
15488 )レイアウトの間に置かなければなりません。
15489 \family sans
15490 感謝(thanks)
15491 \family default
15492
15493 \family sans
15494 住所
15495 \family default
15496 の後に置いてしまうと、\SpecialChar LaTeX
15497 はコンパイルに失敗します。
15498 \end_layout
15499
15500 \begin_layout Subsection
15501 問題点
15502 \end_layout
15503
15504 \begin_layout Standard
15505 このレイアウトの主な問題点は、電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません。例
15506 えば、節レイアウトも非必須引数を使用することができません)。これは、たとえばページヘッダにヘッダ用タイトルを設定したい場合などには、ファイルを\SpecialChar LaTeX
15507 ファイルに変換した
15508 後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません)、テキストエディタを使って\SpecialChar LaTeX
15509 ファイルを編集し、非必須引数を書き加えなくてはならないということで
15510 す。これらのレイアウトがないと、
15511 \family typewriter
15512
15513 \backslash
15514 altaffiliation
15515 \family default
15516 (またそれと同等な
15517 \family typewriter
15518
15519 \backslash
15520 altaddress
15521 \family default
15522 )は使えませんので、対応するレイアウトは存在せず、手動で書き加える必要があります
15523 \begin_inset Foot
15524 status collapsed
15525
15526 \begin_layout Plain Layout
15527
15528 \emph on
15529 JMarcからの註:
15530 \emph default
15531  実は、\SpecialChar LyX
15532  1.3.0 では非必須引数を一部サポートしているのですが、このレイアウトは、まだこの機能を使うようにはアップデートされていないのです。
15533 \end_layout
15534
15535 \end_inset
15536
15537
15538 \end_layout
15539
15540 \begin_layout Section
15541 Springer学術誌(
15542 \family sans
15543 svjour)
15544 \end_layout
15545
15546 \begin_layout Standard
15547
15548 \noun on
15549 Martin Vermeer
15550 \noun default
15551
15552 \end_layout
15553
15554 \begin_layout Subsection
15555 説明
15556 \end_layout
15557
15558 \begin_layout Standard
15559 これは、Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです。
15560 \begin_inset Flex URL
15561 status collapsed
15562
15563 \begin_layout Plain Layout
15564
15565 http://www.springer.de/author/tex/help-journals.html
15566 \end_layout
15567
15568 \end_inset
15569
15570 に必要なクラスファイル(\SpecialChar LaTeX2e
15571 用になりました)とそれに対応する学術誌の一覧があります。このレイアウトはモジュール式になっています。つまり、全ジャーナル共通部分は
15572 \family typewriter
15573 svjour.inc
15574 \family default
15575 に実装されており、各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15576 \family typewriter
15577 svjog.layout
15578 \family default
15579 など)から取り込むことができます。
15580 \end_layout
15581
15582 \begin_layout Standard
15583 このことは、上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには、
15584 \family typewriter
15585 svjog.layout
15586 \family default
15587 に書かれている指示に従って、自作の
15588 \family typewriter
15589 sv
15590 \family default
15591 <学術誌名>
15592 \family typewriter
15593 .layout
15594 \family default
15595 を書くだけで良いことを意味します。
15596 \end_layout
15597
15598 \begin_layout Standard
15599 このレイアウトは、Journal of Geodesyに対してのみ、充分な試験が為されています。
15600 \family typewriter
15601 svjour
15602 \family default
15603
15604 \family typewriter
15605 svjog
15606 \family default
15607 は、標準\SpecialChar LyX
15608 頒布版に収録済みです。関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し、\SpecialChar LaTeX
15609 を再設定した後(teTeXの場合は、必
15610 要に応じてroot権限で
15611 \family typewriter
15612 texhash
15613 \family default
15614 を実行します)、\SpecialChar LyX
15615 を環境構成すれば、動作するはずです。
15616 \end_layout
15617
15618 \begin_layout Subsection
15619 新スタイル
15620 \end_layout
15621
15622 \begin_layout Standard
15623 多くの定理環境 — 
15624 \family sans
15625 主張
15626 \family default
15627
15628 \family sans
15629 推論
15630 \family default
15631 ・\SpecialChar ldots
15632
15633 \family sans
15634 定理
15635 \family default
15636
15637 \end_layout
15638
15639 \begin_layout Standard
15640
15641 \family sans
15642 ヘッドノート
15643 \family default
15644
15645 \family sans
15646 献呈
15647 \family default
15648
15649 \family sans
15650 サブタイトル・ヘッダ用\SpecialChar LaTeX
15651 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15652 ement)
15653 \family default
15654 。詳しくは Springerのクラスファイルの説明書を読んでください。
15655 \end_layout
15656
15657 \begin_layout Subsection
15658 サポートしているジャーナル
15659 \end_layout
15660
15661 \begin_layout Itemize
15662
15663 \emph on
15664 Journal of Geodesy
15665 \emph default
15666
15667 \family typewriter
15668 svjog.layout
15669 \family default
15670  — Martin Vermeer
15671 \end_layout
15672
15673 \begin_layout Itemize
15674
15675 \emph on
15676 Probability Theory and Related Fields
15677 \emph default
15678
15679 \family typewriter
15680 svprobth.layout
15681 \family default
15682  — Jean-Marc Lasgouttes
15683 \end_layout
15684
15685 \begin_layout Standard
15686 あなた自身のレイアウトファイルをつくってください。難しくはありません。
15687 \end_layout
15688
15689 \begin_layout Subsection
15690 Credits
15691 \end_layout
15692
15693 \begin_layout Standard
15694 これらのファイルは、以前の 
15695 \family typewriter
15696 ejour2.layout
15697 \family default
15698 をもとにしています。
15699 \family typewriter
15700 ejour2.layout
15701 \family default
15702 は Springerの\SpecialChar LaTeX
15703  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです。これらのファイルはすでにありません。Jean-Marc
15704  Lasgouttesのおかげで \SpecialChar LyX
15705 のレイアウトファイルのメカニズムをよりよく理解することができました。
15706 \end_layout
15707
15708 \begin_layout Subsection
15709 バグ
15710 \end_layout
15711
15712 \begin_layout Standard
15713 多分あります。以前の 
15714 \family typewriter
15715 ejour2
15716 \family default
15717 よりは少なくなっているとは思いますが。
15718 \end_layout
15719
15720 \begin_layout Standard
15721 制限事項:定理環境の環境の番号は表示されません。#が表示されるだけです。
15722 \end_layout
15723
15724 \begin_layout Section
15725 Slides (別名
15726 \noun on
15727 Sli\SpecialChar TeX
15728
15729 \noun default
15730 )
15731 \begin_inset Foot
15732 status collapsed
15733
15734 \begin_layout Plain Layout
15735 (訳註)この節の内容は、全般的に古くなっています。
15736 \end_layout
15737
15738 \end_inset
15739
15740
15741 \begin_inset CommandInset label
15742 LatexCommand label
15743 name "sec:slitex"
15744
15745 \end_inset
15746
15747
15748 \end_layout
15749
15750 \begin_layout Standard
15751
15752 \noun on
15753 John Weiss
15754 \noun default
15755
15756 \end_layout
15757
15758 \begin_layout Subsection
15759 はじめに
15760 \end_layout
15761
15762 \begin_layout Standard
15763 本節では、オーバーへッドプロジェクタ用のスライドをつくるのに、\SpecialChar LyX
15764 をどのように使えばよいかを説明します。これを行う文書クラスには、既定のslideクラスと
15765 \family sans
15766 Foil\SpecialChar TeX
15767
15768 \family default
15769 スライドクラスの2つがあります。本節は前者について説明を行います。
15770 \end_layout
15771
15772 \begin_layout Standard
15773 誤解のないように、正しく明確に、もう一度言っておきます。
15774 \end_layout
15775
15776 \begin_layout Standard
15777 \begin_inset VSpace bigskip
15778 \end_inset
15779
15780
15781 \end_layout
15782
15783 \begin_layout Standard
15784 \align center
15785
15786 \size large
15787 本節は文書クラス
15788 \begin_inset Quotes eld
15789 \end_inset
15790
15791
15792 \family sans
15793 transparencies (slides)
15794 \family default
15795
15796 \begin_inset Quotes erd
15797 \end_inset
15798
15799
15800 \emph on
15801 のみ
15802 \emph default
15803 を説明しています。
15804 \end_layout
15805
15806 \begin_layout Standard
15807 \begin_inset VSpace bigskip
15808 \end_inset
15809
15810
15811 \end_layout
15812
15813 \begin_layout Standard
15814
15815 \family sans
15816 「slides (Foil\SpecialChar TeX
15817 )
15818 \family default
15819 」の説明をお探しならば、第
15820 \begin_inset CommandInset ref
15821 LatexCommand ref
15822 reference "sec:foiltex"
15823
15824 \end_inset
15825
15826 節をご覧ください。
15827 \family sans
15828 foils
15829 \family default
15830 クラス「
15831 \family sans
15832 slides (Foil\SpecialChar TeX
15833 )
15834 \family default
15835 」は、実際、本節で説明している既定
15836 \family sans
15837 slides
15838 \family default
15839 クラスよりも良いようです
15840 \begin_inset Foot
15841 status collapsed
15842
15843 \begin_layout Plain Layout
15844 \SpecialChar ldots
15845
15846 \family sans
15847 Foil\SpecialChar TeX
15848
15849 \family default
15850 の支持者からは聞いています。けれども私は使ったことがないので、本当かどうか確かめようがありません。
15851 \end_layout
15852
15853 \end_inset
15854
15855
15856 \end_layout
15857
15858 \begin_layout Standard
15859 このクラスは、旧SLI\SpecialChar TeX
15860 パッケージを\SpecialChar LaTeX2e
15861 用に改良したものです。\SpecialChar LaTeX2e
15862 頒布版すべてが、このクラス(以下では単に「
15863 \family sans
15864 slides
15865 \family default
15866 」と述べることにします)を含んでいるので、あなたもお持ちのはずです。前述の
15867 \family sans
15868 foils
15869 \family default
15870 のように、同じくオーバーへッドプロジェクタ用のスライドを生成しながら、このクラスよりも良い仕事をするクラスもあります。しかしながら、オーバーレイを生成するなど、
15871 他のクラスにはできないが
15872 \family sans
15873 slides
15874 \family default
15875 ならばできることもあります。詳しくは以下をお読みください。
15876 \end_layout
15877
15878 \begin_layout Subsection
15879 使い始めるには
15880 \begin_inset CommandInset label
15881 LatexCommand label
15882 name "sec:slidesetup"
15883
15884 \end_inset
15885
15886
15887 \end_layout
15888
15889 \begin_layout Standard
15890 当然ながら、この文書クラスを使用するには、
15891 \family sans
15892 文書\SpecialChar menuseparator
15893 設定
15894 \family default
15895 ダイアログのクラスリストから「
15896 \family sans
15897 transparencies (slides)
15898 \family default
15899 」を選択しなくてはなりません。このクラスについて、以下のように、特に知っておいた方が良いことがいくつかあります。
15900 \end_layout
15901
15902 \begin_layout Itemize
15903
15904 \family sans
15905 用紙方向
15906 \family default
15907
15908 \family sans
15909 二段組文書
15910 \family default
15911 の各オプションは、あえて変更する必要はありません。これらのオプションは、
15912 \family sans
15913 slides
15914 \family default
15915 クラスではサポートされていないので、効果がありません。
15916 \end_layout
15917
15918 \begin_layout Itemize
15919
15920 \family sans
15921 ヘディング様式
15922 \family default
15923 オプションは、このクラスでは少し異なった振る舞いをします。各選択肢とその機能は、以下の通りです。
15924 \begin_inset Separator parbreak
15925 \end_inset
15926
15927
15928 \end_layout
15929
15930 \begin_deeper
15931 \begin_layout Description
15932 プレーン(plain) 最終出力の右下隅にページ番号が付きます。
15933 \end_layout
15934
15935 \begin_layout Description
15936 設定(headings)
15937 \family sans
15938  プレーン(plain)
15939 \family default
15940 と同様ですが、それ以外にあなたが指定したタイムマーカーをすべて出力します。これが既定値です。
15941 \end_layout
15942
15943 \begin_layout Description
15944 空 最終出力には、ページ番号もタイムマーカーも位置揃えマーカーも出力されません。
15945 \end_layout
15946
15947 \end_deeper
15948 \begin_layout Itemize
15949
15950 \family sans
15951 slides
15952 \family default
15953 クラスには、もう一つ
15954 \family typewriter
15955 clock
15956 \family default
15957 というオプションがあります。これを使用するには、
15958 \family sans
15959 クラスオプション
15960 \family default
15961 に「
15962 \family typewriter
15963 clock
15964 \family default
15965 」と入力してください。
15966 \begin_inset Separator parbreak
15967 \end_inset
15968
15969
15970 \end_layout
15971
15972 \begin_deeper
15973 \begin_layout Standard
15974 このオプションを使うと、
15975 \family sans
15976 注釈
15977 \family default
15978 にタイムマーカーを加えることができます。詳細は、第
15979 \begin_inset CommandInset ref
15980 LatexCommand ref
15981 reference "sec:スライド注釈"
15982
15983 \end_inset
15984
15985 節をご覧ください。
15986 \end_layout
15987
15988 \end_deeper
15989 \begin_layout Standard
15990
15991 \family sans
15992 slides
15993 \family default
15994 クラスを用いた文書を自動的にセットアップするには、ひな型ファイル「
15995 \family typewriter
15996 slides.lyx
15997 \family default
15998 」を使用することもできます(新規ファイルを開く際に
15999 \family sans
16000 ファイル\SpecialChar menuseparator
16001 新規(ひな型使用)
16002 \family default
16003 を使用してください)。ひな型ファイルには、このクラスが使用する特別な段落環境の用例も含まれています。これらについては、以下で説明します。
16004 \end_layout
16005
16006 \begin_layout Subsection
16007 段落環境
16008 \end_layout
16009
16010 \begin_layout Subsubsection
16011
16012 \family sans
16013 サポートされている環境
16014 \end_layout
16015
16016 \begin_layout Standard
16017 新しく
16018 \family sans
16019 slides
16020 \family default
16021 文書を開いたときにまず気付くのは、フォント寸法とフォント族の違いでしょう。ここでは、
16022 \family sans
16023 サンセリフ体
16024 \family default
16025 フォントの
16026 \family sans
16027 極大
16028 \family default
16029 寸法が用いられており、出力でもこのフォントが使用されます。これは、現在スライドを作成中であることの「目印」だと考えてください。出力スライドは大きなフォントを使用
16030 するため、書ける場所は少なくなります。もちろん、既定の大きな画面フォントはWYSIWYGではなく、スライドであることの目印に過ぎません。
16031 \end_layout
16032
16033 \begin_layout Standard
16034 次に気付くのは、(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう。通常見かける環境の多くがなくなって、代わりに5つの新しい環境が入ってい
16035 ます。これは、
16036 \family sans
16037 slides
16038 \family default
16039 クラスが、標準段落環境のうち以下のものしかサポートしていないためです。
16040 \end_layout
16041
16042 \begin_layout Itemize
16043
16044 \family sans
16045 標準
16046 \end_layout
16047
16048 \begin_layout Itemize
16049
16050 \family sans
16051 箇条書き(記号)
16052 \end_layout
16053
16054 \begin_layout Itemize
16055
16056 \family sans
16057 箇条書き(連番)
16058 \end_layout
16059
16060 \begin_layout Itemize
16061
16062 \family sans
16063 箇条書き(記述)
16064 \end_layout
16065
16066 \begin_layout Itemize
16067
16068 \family sans
16069 箇条書き(一覧)
16070 \end_layout
16071
16072 \begin_layout Itemize
16073
16074 \family sans
16075 引用(字下げあり)
16076 \end_layout
16077
16078 \begin_layout Itemize
16079
16080 \family sans
16081 引用(字下げなし)
16082 \end_layout
16083
16084 \begin_layout Itemize
16085
16086 \family sans
16087 詩句
16088 \end_layout
16089
16090 \begin_layout Itemize
16091
16092 \family sans
16093 キャプション
16094 \end_layout
16095
16096 \begin_layout Itemize
16097
16098 \family sans
16099 \SpecialChar LyX
16100 コード
16101 \end_layout
16102
16103 \begin_layout Itemize
16104
16105 \family sans
16106 コメント
16107 \end_layout
16108
16109 \begin_layout Standard
16110 これ以外の標準的な環境、例えば節見出し用の環境などは
16111 \family sans
16112 slides
16113 \family default
16114 クラスでは使えません。
16115 \end_layout
16116
16117 \begin_layout Standard
16118 一方、以下の新しい環境があります。
16119 \end_layout
16120
16121 \begin_layout Itemize
16122
16123 \family sans
16124 スライド
16125 \end_layout
16126
16127 \begin_layout Itemize
16128
16129 \family sans
16130 オーバーレイ
16131 \end_layout
16132
16133 \begin_layout Itemize
16134
16135 \family sans
16136 注釈
16137 \end_layout
16138
16139 \begin_layout Itemize
16140
16141 \family sans
16142 不可視文
16143 \end_layout
16144
16145 \begin_layout Itemize
16146
16147 \family sans
16148 可視文
16149 \end_layout
16150
16151 \begin_layout Standard
16152 これら5つの環境は、\SpecialChar LyX
16153 の「機能」のために使い方に癖があります。ご存じのように、\SpecialChar LyX
16154 では、空の段落環境に他の環境を入れることができません。それ自体は素晴らしいデザインな
16155 のですが、これは、スライドを平文以外では書き始めることができないことを意味します。これを取り扱うためには、ちょっとした「\SpecialChar LaTeX
16156 マジック」が必要になります。
16157 \end_layout
16158
16159 \begin_layout Subsubsection
16160 新環境の癖
16161 \begin_inset CommandInset label
16162 LatexCommand label
16163 name "sec:スライドの癖"
16164
16165 \end_inset
16166
16167
16168 \end_layout
16169
16170 \begin_layout Standard
16171 5つの新しい環境にはすべて、\SpecialChar LyX
16172 現行版の制約に由来する癖があります。いま述べたように、\SpecialChar LyX
16173 では、環境を別の環境で開始することが禁止されています。これを回避するために、
16174 \family sans
16175 スライド
16176 \family default
16177 環境は『
16178 \emph on
16179 ユーザーの手引き
16180 \emph default
16181 』で述べられているような段落環境ではなくなっています。
16182 \end_layout
16183
16184 \begin_layout Standard
16185
16186 \family sans
16187 スライド
16188 \family default
16189
16190 \family sans
16191 オーバーレイ
16192 \family default
16193
16194 \family sans
16195 注釈
16196 \family default
16197 は「疑似環境」だとお考えください。これらは節見出しや「
16198 \family sans
16199 キャプション
16200 \family default
16201 」のように見えますが、実際には(必要なら前段落を終了して)新しい段落環境を開始します。同様に、
16202 \family sans
16203 不可視文
16204 \family default
16205
16206 \family sans
16207 可視文
16208 \family default
16209 も「疑似コマンド」とお考えください。この2つは特定のアクションを行います。
16210 \end_layout
16211
16212 \begin_layout Standard
16213
16214 \family sans
16215 スライド
16216 \family default
16217
16218 \family sans
16219 オーバーレイ
16220 \family default
16221
16222 \family sans
16223 注釈
16224 \family default
16225
16226 \family sans
16227 不可視文
16228 \family default
16229
16230 \family sans
16231 可視文
16232 \family default
16233 の5環境に共通しているのは、長めのラベルを持つことです。このラベルに続く文章—通常は段落環境の内容になるはずですが—は、
16234 \family sans
16235 スライド
16236 \family default
16237
16238 \family sans
16239 オーバーレイ
16240 \family default
16241
16242 \family sans
16243 注釈
16244 \family default
16245
16246 \family sans
16247 不可視文
16248 \family default
16249
16250 \family sans
16251 可視文
16252 \family default
16253 では、まったく意味がなく、\SpecialChar LyX
16254 はこの部分を完全に無視します。これらの5つの環境の内容は、完全に空のままにしておいて構いません。
16255 \end_layout
16256
16257 \begin_layout Standard
16258 長めのラベルの後に文章を入れる
16259 \emph on
16260 必要は
16261 \emph default
16262 まったく
16263 \emph on
16264 ない
16265 \emph default
16266 とはいえ、何か書いておきたいこともあるかもしれません。たとえば、スライドの内容に関する短い説明などがそうでしょう。この場合、いつもどおり説明用のコメントを入力し
16267
16268 \family sans
16269 Return
16270 \family default
16271 を押してください。
16272 \end_layout
16273
16274 \begin_layout Standard
16275 一方、説明文を入れたくない場合には、\SpecialChar LyX
16276 の制約に直面します。自然が真空を憎むように、\SpecialChar LyX
16277 では、古い環境に何かを置くまでは、その中に新しい環境を入れることができません。そ
16278 こで以下のようにしてください。
16279 \end_layout
16280
16281 \begin_layout Itemize
16282 新しい
16283 \family sans
16284 スライド
16285 \family default
16286
16287 \family sans
16288 オーバーレイ
16289 \family default
16290
16291 \family sans
16292 注釈
16293 \family default
16294
16295 \family sans
16296 不可視文
16297 \family default
16298
16299 \family sans
16300 可視文
16301 \family default
16302
16303 \emph on
16304 中に入れる
16305 \emph default
16306 文章を入力してください。
16307 \end_layout
16308
16309 \begin_layout Itemize
16310 段落の先頭に移動します。
16311 \end_layout
16312
16313 \begin_layout Itemize
16314 次に
16315 \family sans
16316 Return
16317 \family default
16318 を押します。
16319 \end_layout
16320
16321 \begin_layout Itemize
16322 最後に、この新しい空の段落を
16323 \family sans
16324 スライド
16325 \family default
16326
16327 \family sans
16328 オーバーレイ
16329 \family default
16330
16331 \family sans
16332 注釈
16333 \family default
16334
16335 \family sans
16336 不可視文
16337 \family default
16338
16339 \family sans
16340 可視文
16341 \family default
16342 に変更します。
16343 \end_layout
16344
16345 \begin_layout Standard
16346 将来の\SpecialChar LyX
16347 では、このような癖が解決されることを祈っています\SpecialChar ldots
16348
16349 \begin_inset Foot
16350 status collapsed
16351
16352 \begin_layout Plain Layout
16353 (訳註)ここの記述は古くなっています。
16354 \end_layout
16355
16356 \end_inset
16357
16358
16359 \end_layout
16360
16361 \begin_layout Subsection
16362
16363 \family sans
16364 スライド
16365 \family default
16366
16367 \family sans
16368 オーバーレイ
16369 \family default
16370
16371 \family sans
16372 注釈で発表用のスライドを作る
16373 \end_layout
16374
16375 \begin_layout Subsubsection
16376
16377 \family sans
16378 スライド
16379 \family default
16380 環境を使う
16381 \end_layout
16382
16383 \begin_layout Standard
16384 もし本節が、実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば、大いにがっかりされるかもしれません。当然ながら、プレゼンテーション用の資
16385 料を準備するうえで
16386 \family sans
16387 slides
16388 \family default
16389 クラスを役立てる方法を詳しく説明はしますが、内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16390 の哲学です)。
16391 \end_layout
16392
16393 \begin_layout Standard
16394
16395 \family sans
16396 スライド
16397 \family default
16398 環境を選択すれば(方法は第
16399 \begin_inset CommandInset ref
16400 LatexCommand ref
16401 reference "sec:スライドの癖"
16402
16403 \end_inset
16404
16405 節参照のこと)、\SpecialChar LyX
16406 は新規スライドを開始します。この環境ないし「疑似環境」のラベルは、鮮やかな青で「新規スライド:」と表示されます。この環境の後のテキスト環境や段落
16407 環境は、すべて新規スライドに入ります。簡単ですよね。
16408 \end_layout
16409
16410 \begin_layout Standard
16411 Slidesは、おそらく\SpecialChar LyX
16412 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16413 \family sans
16414 段落レイアウト
16415 \family default
16416 ダイアログで指定できます)。実際、一つのスライドの内容を入力し終わったら、改頁したくなるはずです。仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16417 、入りきらない部分は、次の新規スライドにまわされます。しかしながら、入りきらない部分のスライドにはページ番号が付きませんので、こうするのはお勧めしません。その上
16418 、一枚に収まらないスライドでは、
16419 \family sans
16420 オーバーレイ
16421 \family default
16422 を使用すると干渉する恐れがあります。
16423 \end_layout
16424
16425 \begin_layout Standard
16426
16427 \family sans
16428 オーバーレイ
16429 \family default
16430 環境と
16431 \family sans
16432 注釈
16433 \family default
16434 環境も、
16435 \family sans
16436 スライド
16437 \family default
16438 環境と同様の動作を示します。これらは、青の代わりに鮮やかなマゼンタで、それぞれ「
16439 \noun on
16440 新規オーバーレイ
16441 \noun default
16442 :」ないし「
16443 \noun on
16444 新規注釈:
16445 \noun default
16446 」というラベルを表示します。ラベルのフォントも、3つの環境でそれぞれ異なるものが使用されます。
16447 \end_layout
16448
16449 \begin_layout Standard
16450
16451 \family sans
16452 スライド
16453 \family default
16454 と同様に、
16455 \family sans
16456 オーバーレイ
16457 \family default
16458
16459 \family sans
16460 注釈
16461 \family default
16462 の内容が、一つのスライドないしページに物理的に収まりきらない場合には、余分は新規スライドに回されます。この場合には、
16463 \family sans
16464 注釈
16465 \family default
16466
16467 \family sans
16468 オーバーレイ
16469 \family default
16470 の本来の目的が達せられなくなりますので、ここでもこのような状態は避けるべきでしょう。
16471 \end_layout
16472
16473 \begin_layout Subsubsection
16474
16475 \family sans
16476 スライドでオーバーレイを使用する
16477 \end_layout
16478
16479 \begin_layout Standard
16480
16481 \family sans
16482 オーバーレイ
16483 \family default
16484 の背後にある考え方は、別のスライドの上にスライドを載せようとするものです。メインの
16485 \family sans
16486 スライド
16487 \family default
16488 に図があるとき、関連した文章を表示する前に、図について議論を進めたいと思うことがあるかもしれません。これを行うひとつの方法は、
16489 \family sans
16490 スライド
16491 \family default
16492 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが、この方法は、たとえばグラフを他のグラフに重ねたい場合などには、うまく行きません。この場合には、二つ
16493 のグラフを揃えるために、重ねる二つのスライドを、喋りながら手探りで揃えなくてはなりません。これらのような場合には、
16494 \family sans
16495 オーバーレイ
16496 \family default
16497 環境を使えば、もっと楽になります。
16498 \end_layout
16499
16500 \begin_layout Standard
16501
16502 \family sans
16503 オーバーレイ
16504 \family default
16505 は、「親」
16506 \family sans
16507 スライド
16508 \family default
16509 のページ番号を引継ぎ、その後に「
16510 \family typewriter
16511 -a
16512 \family default
16513 」を付け加えます
16514 \begin_inset Foot
16515 status collapsed
16516
16517 \begin_layout Plain Layout
16518 想像できるように、複数のオーバーレイがあれば、「
16519 \family typewriter
16520 -a
16521 \family default
16522 」「
16523 \family typewriter
16524 -b
16525 \family default
16526 」「
16527 \family typewriter
16528 -c
16529 \family default
16530 」などが親スライドのページ番号に付け加えられます。
16531 \end_layout
16532
16533 \end_inset
16534
16535 。当然のことながら、
16536 \family sans
16537 スライド
16538 \family default
16539
16540 \family sans
16541 オーバーレイ
16542 \family default
16543 の内容は両方とも、1枚のスライドに物理的に収まるようになっていなければなりません。
16544 \family sans
16545 オーバーレイ
16546 \family default
16547
16548 \family sans
16549 スライド
16550 \family default
16551 の「一部」であると考えるのがよいでしょう。\SpecialChar LyX
16552 では、
16553 \family sans
16554 オーバーレイ
16555 \family default
16556 のラベルを
16557 \family sans
16558 スライド
16559 \family default
16560 のラベルよりも下げることで、このことを視覚的に表しています。また、印刷可能な出力を生成すると、
16561 \family sans
16562 オーバーレイ
16563 \family default
16564 と親
16565 \family sans
16566 スライド
16567 \family default
16568 両方の四隅に、揃えマーカーがあることに気づかれるはずです。これは、2枚のスライドを物理的に重ね合わせるための補助となるものです。
16569 \end_layout
16570
16571 \begin_layout Standard
16572 2つのスライドをオーバーレイさせる際の大きな問題は、2枚のスライドの内容を揃えることです。2枚目のスライドのグラフには、どれだけの余白を残しておくべきなのでしょ
16573 うか?さらにややこしく、2枚目のスライドにグラフと文章を入れたいときに、その間に割り込んでしまうような文章がメインスライドにある場合には、どうでしょうか?正しい
16574 寸法の垂直スペースを挿入してみることもできるでしょう。しかし、もっと良い方法として、
16575 \family sans
16576 不可視文
16577 \family default
16578
16579 \family sans
16580 可視文
16581 \family default
16582 を使用する方法があります。
16583 \end_layout
16584
16585 \begin_layout Standard
16586 これらの名前が意味するとおり、
16587 \family sans
16588 不可視文
16589 \family default
16590
16591 \family sans
16592 可視文
16593 \family default
16594 は、それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です。しかしながら、第
16595 \begin_inset CommandInset ref
16596 LatexCommand ref
16597 reference "sec:スライドの癖"
16598
16599 \end_inset
16600
16601 節で述べたように、この2つの環境の
16602 \emph on
16603
16604 \emph default
16605 には何も置くことができません。
16606 \family sans
16607 不可視文
16608 \family default
16609 を作成すると、「<以下不可視文>」と書かれた水色のラベルが、ページに中央揃えで表示されます。このラベルに続く段落は、それが置かれるべき
16610 \family sans
16611 スライド
16612 \family default
16613 (あるいは
16614 \family sans
16615 オーバーレイ
16616 \family default
16617 ;どちらでも同じことです)部分に、代わりに空白の部分が置かれます。
16618 \end_layout
16619
16620 \begin_layout Standard
16621
16622 \family sans
16623 可視文
16624 \family default
16625 の場合には、中央揃えのラベルは、鮮やかな緑の「<以下可視文>」となります。このラベル以降の段落は、通常通りの挙動を示します。新規の
16626 \family sans
16627 スライド
16628 \family default
16629
16630 \family sans
16631 オーバーレイ
16632 \family default
16633
16634 \family sans
16635 注釈
16636 \family default
16637 を開始すると、
16638 \family sans
16639 不可視文
16640 \family default
16641 は自動的に終了されることに注意してください。したがって、
16642 \family sans
16643 スライド
16644 \family default
16645 の終わりでは、
16646 \family sans
16647 可視文
16648 \family default
16649 を使用する必要はありません。
16650 \end_layout
16651
16652 \begin_layout Standard
16653 ここまでで、
16654 \family sans
16655 スライド
16656 \family default
16657
16658 \family sans
16659 オーバーレイ
16660 \family default
16661 上で
16662 \family sans
16663 不可視文
16664 \family default
16665
16666 \family sans
16667 可視文
16668 \family default
16669 を適切に使用して、スライドをオーバーレイさせる方法が明らかになったことと思います。
16670 \end_layout
16671
16672 \begin_layout Enumerate
16673 メインのスライドか
16674 \family sans
16675 オーバーレイ
16676 \family default
16677 かに関わらず、スライド上に現れるすべてを含んだ
16678 \family sans
16679 スライド
16680 \family default
16681 を作成します。
16682 \end_layout
16683
16684 \begin_layout Enumerate
16685
16686 \family sans
16687 オーバーレイ
16688 \family default
16689 のみに表示するすべての図や段落の前に、
16690 \family sans
16691 不可視文
16692 \family default
16693 環境を挿入し、必要ならば、
16694 \family sans
16695 オーバーレイ
16696 \family default
16697 のみの文章の後に
16698 \family sans
16699 可視文
16700 \family default
16701 環境を挿入します。
16702 \end_layout
16703
16704 \begin_layout Enumerate
16705
16706 \family sans
16707 スライド
16708 \family default
16709 の直後から、
16710 \family sans
16711 オーバーレイ
16712 \family default
16713 を開始します。
16714 \end_layout
16715
16716 \begin_layout Enumerate
16717 この
16718 \family sans
16719 スライド
16720 \family default
16721 の内容を
16722 \family sans
16723 オーバーレイ
16724 \family default
16725 にコピーします。
16726 \end_layout
16727
16728 \begin_layout Enumerate
16729
16730 \family sans
16731 オーバーレイ
16732 \family default
16733 内部の
16734 \family sans
16735 不可視文
16736 \family default
16737 行をすべて
16738 \family sans
16739 不可視文
16740 \family default
16741 に変更し、
16742 \family sans
16743 可視文
16744 \family default
16745
16746 \family sans
16747 不可視文
16748 \family default
16749 に変更します。
16750 \end_layout
16751
16752 \begin_layout Standard
16753 これだけです。これで
16754 \family sans
16755 オーバーレイ
16756 \family default
16757 ができあがりました。
16758 \end_layout
16759
16760 \begin_layout Standard
16761 \SpecialChar LyX
16762  
16763 \family sans
16764 slides
16765 \family default
16766 クラスをデザインする上で、ひとつ残された問題があります。段落途中の文章を不可視にしたり、不可視段落の途中の文章を再度可視にしたりすることはできないのです。これを
16767 実現するためには、\SpecialChar LaTeX
16768 コードを埋め込む必要があります
16769 \begin_inset Foot
16770 status collapsed
16771
16772 \begin_layout Plain Layout
16773 このコマンドは、
16774 \end_layout
16775
16776 \begin_layout Itemize
16777
16778 \family typewriter
16779 {
16780 \backslash
16781 invisible \SpecialChar ldots
16782  }
16783 \end_layout
16784
16785 \begin_layout Itemize
16786
16787 \family typewriter
16788 {
16789 \backslash
16790 visible \SpecialChar ldots
16791  }
16792 \end_layout
16793
16794 \begin_layout Plain Layout
16795 \SpecialChar ldots
16796 のような形となり、\SpecialChar TeX
16797 としてマークする必要があります。「可視性」を変更したい文章は、波括弧のあいだ(そして
16798 \family typewriter
16799
16800 \backslash
16801 invisible
16802 \family default
16803 ないし
16804 \family typewriter
16805
16806 \backslash
16807 visible
16808 \family default
16809 コマンドの後ろ)に入れます。\SpecialChar TeX
16810 としてマークする方法がわからない場合は、
16811 \emph on
16812 ユーザーの手引き
16813 \emph default
16814 をご参照ください。
16815 \end_layout
16816
16817 \end_inset
16818
16819
16820 \end_layout
16821
16822 \begin_layout Subsubsection
16823
16824 \family sans
16825 スライドで注釈を使う
16826 \family default
16827
16828 \begin_inset CommandInset label
16829 LatexCommand label
16830 name "sec:スライド注釈"
16831
16832 \end_inset
16833
16834
16835 \end_layout
16836
16837 \begin_layout Standard
16838
16839 \family sans
16840 オーバーレイ
16841 \family default
16842 と同様、
16843 \family sans
16844 注釈
16845 \family default
16846 も「親」
16847 \family sans
16848 スライド
16849 \family default
16850 に関連付けられています。ここでも\SpecialChar LyX
16851
16852 \family sans
16853 スライド
16854 \family default
16855 クラスは視覚的な効果を与えています。
16856 \family sans
16857 注釈
16858 \family default
16859 のラベルは
16860 \family sans
16861 スライド
16862 \family default
16863 よりも短く(オーバーレイのラベルよりも長いですが)、
16864 \family sans
16865 オーバーレイ
16866 \family default
16867 のラベルと同様、派手な赤紫色です。加えて、印刷した
16868 \family sans
16869 注釈
16870 \family default
16871 には、「親」スライドのページ番号に「
16872 \family typewriter
16873 -
16874 \family default
16875 1」「
16876 \family typewriter
16877 -
16878 \family default
16879 2」「
16880 \family typewriter
16881 -
16882 \family default
16883 3」等を付けたページ番号が付けられます。1つの
16884 \family sans
16885 スライド
16886 \family default
16887 には、複数の
16888 \family sans
16889 注釈
16890 \family default
16891 を関連付けることができるので、
16892 \family sans
16893 スライド
16894 \family default
16895
16896 \family sans
16897 オーバーレイ
16898 \family default
16899 と同じように、長い注釈は、1枚の紙に収まるように分割したいと思われるに違いありません。
16900 \end_layout
16901
16902 \begin_layout Standard
16903
16904 \family sans
16905 注釈
16906 \family default
16907 の目的は明らかです。
16908 \family sans
16909 スライド
16910 \family default
16911 に関して付け加えたいことを書き留めておくことです。特定の
16912 \family sans
16913 スライド
16914 \family default
16915 についての覚書として使うこともできます。後者の場合には、タイムマーカを利用したいこともあるかもしれません。現在のところ、\SpecialChar LyX
16916
16917 \family sans
16918 スライド
16919 \family default
16920 クラスは、
16921 \noun on
16922 Sli
16923 \noun default
16924 \SpecialChar TeX
16925 の機能であるタイムマーカを「ネイティブには」サポートしていません。したがって、\SpecialChar LaTeX
16926 コードを使用することに頼らなくてはなりません。
16927 \end_layout
16928
16929 \begin_layout Standard
16930 タイムマーカを使用するには、クラスオプション「
16931 \family typewriter
16932 clock
16933 \family default
16934 」を追加指定する必要があります(第
16935 \begin_inset CommandInset ref
16936 LatexCommand ref
16937 reference "sec:slidesetup"
16938
16939 \end_inset
16940
16941 節参照)。このオプションはタイムマーカ機能を有効にして、生成したすべての
16942 \family sans
16943 注釈
16944 \family default
16945 の左下にタイムマーカを表示します。タイムマーカに表示するものを設定するには、\SpecialChar LaTeX
16946 コマンド「
16947 \family typewriter
16948
16949 \backslash
16950 settime{}
16951 \family default
16952 」および「
16953 \family typewriter
16954
16955 \backslash
16956 addtime{}
16957 \family default
16958 」を使用します。両コマンドは、秒で測った時間を引数にとります。「
16959 \family typewriter
16960
16961 \backslash
16962 settime{}
16963 \family default
16964 」は、タイムマーカを特定の時間に設定し、「
16965 \family typewriter
16966
16967 \backslash
16968 addtime{}
16969 \family default
16970 」は、タイムマーカを指定した分だけ進めます。このようにタイムマーカと
16971 \family sans
16972 注釈
16973 \family default
16974 を用いれば、特定の
16975 \family sans
16976 スライド
16977 \family default
16978 にどれだけの時間をかけるのか忘れないでいられます。
16979 \end_layout
16980
16981 \begin_layout Standard
16982 最後に、説明しておくべき機能がもう一つあります。当然ながら、
16983 \family sans
16984 スライド
16985 \family default
16986
16987 \family sans
16988 オーバーレイ
16989 \family default
16990 はすべてスライドに、
16991 \family sans
16992 注釈
16993 \family default
16994 はすべて普通の紙に印刷したいはずです。しかしながら、
16995 \family sans
16996 注釈
16997 \family default
16998 は関連付けられた親スライドの直後に
16999 \emph on
17000 来なくてはなりません
17001 \emph default
17002 。ユーザーはどうしたら良いのでしょうか。
17003 \end_layout
17004
17005 \begin_layout Standard
17006 幸いなことに、どれを印刷するか選択することを可能にする\SpecialChar LaTeX
17007 コマンドが、2種類あります。どちらも文書のプリアンブルに記述されなくてはなりません。コマンド「
17008 \family typewriter
17009
17010 \backslash
17011 onlyslides{
17012 \backslash
17013 slides}
17014 \family default
17015 」は、出力に
17016 \family sans
17017 スライド
17018 \family default
17019
17020 \family sans
17021 オーバーレイ
17022 \family default
17023 のみが含まれるようにするものです。同様に、「
17024 \family typewriter
17025
17026 \backslash
17027 onlynotes{
17028 \backslash
17029 notes}
17030 \family default
17031 」は
17032 \family sans
17033 注釈
17034 \family default
17035 以外の出力をすべて抑制します。私のアドバイスとしては、両コマンドをプリアンブルに書いておいて、最初は両方ともコメントアウトしておくと良いでしょう。そうすれば、執
17036 筆時にはプレゼンテーション全体をプレビューすることができます。いったん書き終えたならば、二つのうち一方のコメントを外して、印刷したい方を選ぶことができます。私な
17037 らば、まず
17038 \family typewriter
17039
17040 \backslash
17041 onlyslides{
17042 \backslash
17043 slides}
17044 \family default
17045 のコメントを外して、現ファイル名に「*
17046 \family typewriter
17047 -slides
17048 \family default
17049 」を付けた新たなファイルに出力を行ない、今度はこの行をふたたびコメントアウトするとともに、「
17050 \family typewriter
17051
17052 \backslash
17053 onlynotes{
17054 \backslash
17055 notes
17056 \family default
17057 }」のコメントを外して、これを「
17058 \family typewriter
17059 *-notes.ps
17060 \family default
17061 」というファイルに出力します。そうすれば、必要に応じて、スライドまたは通常の紙をプリンタにセットし、一方のファイルをプリンタに送ればよいのです。
17062 \end_layout
17063
17064 \begin_layout Standard
17065
17066 \family typewriter
17067
17068 \backslash
17069 onlyslides{}
17070 \family default
17071 」および「
17072 \family typewriter
17073
17074 \backslash
17075 onlynotes{}
17076 \family default
17077 」コマンドには、他の引数を与えることもできます。詳しくは、\SpecialChar LaTeX
17078 の良書をご覧ください。
17079 \end_layout
17080
17081 \begin_layout Subsection
17082
17083 \family sans
17084 slides
17085 \family default
17086 クラスのひな型ファイル
17087 \end_layout
17088
17089 \begin_layout Standard
17090
17091 \family sans
17092 slides
17093 \family default
17094 クラス用のひな型ファイルとして「
17095 \family typewriter
17096 slides.lyx
17097 \family default
17098 」が提供されています。これを使用するには、新しいプレゼンテーションを作り始める際に、
17099 \family sans
17100 ファイル\SpecialChar menuseparator
17101 新規(ひな型使用)
17102 \family default
17103 メニューを選択してください。すると新規ファイルには、
17104 \family sans
17105 スライド
17106 \family default
17107
17108 \family sans
17109 オーバーレイ
17110 \family default
17111
17112 \family sans
17113 注釈
17114 \family default
17115 の組が、例として含まれており、
17116 \family sans
17117 スライド
17118 \family default
17119
17120 \family sans
17121 オーバーレイ
17122 \family default
17123 には、さらに
17124 \family sans
17125 不可視文
17126 \family default
17127
17128 \family sans
17129 可視文
17130 \family default
17131 の使用例も含まれています。また、プリアンブルには、次のように書き込まれています。
17132 \end_layout
17133
17134 \begin_layout LyX-Code
17135 % Uncomment to print out only slides and overlays
17136 \end_layout
17137
17138 \begin_layout LyX-Code
17139 %
17140 \end_layout
17141
17142 \begin_layout LyX-Code
17143 %
17144 \backslash
17145 onlyslides{
17146 \backslash
17147 slides}
17148 \begin_inset Newline newline
17149 \end_inset
17150
17151  
17152 \end_layout
17153
17154 \begin_layout LyX-Code
17155 % Uncomment to print out only notes
17156 \end_layout
17157
17158 \begin_layout LyX-Code
17159 %
17160 \end_layout
17161
17162 \begin_layout LyX-Code
17163 %
17164 \backslash
17165 onlynotes{
17166 \backslash
17167 notes}
17168 \end_layout
17169
17170 \begin_layout Standard
17171 最後に、私はこの文書クラスを、\SpecialChar LaTeX2e
17172 の組み込みクラスである「
17173 \noun on
17174 Sli\SpecialChar TeX
17175
17176 \noun default
17177 エミュレーション」クラスをサポートする目的で作成しました。私も\SpecialChar LyX
17178 チームの他のメンバーも、この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17179 ありません。これは単に、ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです。プレゼンテーションを作成するためには、
17180 \family sans
17181 Foils
17182 \family default
17183 クラス(第
17184 \begin_inset CommandInset ref
17185 LatexCommand ref
17186 reference "sec:foiltex"
17187
17188 \end_inset
17189
17190 節参照)や「
17191 \family typewriter
17192 seminar
17193 \family default
17194 」パッケージ(一部の\SpecialChar TeX
17195 頒布版に含まれています)のように、他の\SpecialChar LaTeX2e
17196 クラスも存在します。私はこれらについては知らないのですが、他にどのようなことができるのか試してみてくだ
17197 さい。
17198 \end_layout
17199
17200 \begin_layout Chapter
17201 ソフトウェアを追加する必要がある \SpecialChar LyX
17202 機能
17203 \end_layout
17204
17205 \begin_layout Section
17206 \SpecialChar TeX
17207 のチェック
17208 \end_layout
17209
17210 \begin_layout Standard
17211
17212 \noun on
17213 Asger Alstrup
17214 \noun default
17215
17216 \end_layout
17217
17218 \begin_layout Subsection
17219 はじめに
17220 \end_layout
17221
17222 \begin_layout Standard
17223
17224 \family typewriter
17225 chktex
17226 \family default
17227 プログラムが導入されていると
17228 \begin_inset Foot
17229 status collapsed
17230
17231 \begin_layout Plain Layout
17232 \SpecialChar LaTeX
17233 頒布版としてMiK\SpecialChar TeX
17234 を使用している場合には、
17235 \family typewriter
17236 chktex
17237 \family default
17238 はまだ利用可能ではありません。
17239 \end_layout
17240
17241 \end_inset
17242
17243
17244 \family sans
17245 ツール
17246 \family default
17247 メニューの下に、
17248 \family sans
17249 \SpecialChar TeX
17250 構文チェック
17251 \family default
17252 という項目が表示されます。
17253 \family typewriter
17254 chktex
17255 \family default
17256 は、CTAN
17257 \begin_inset Newline newline
17258 \end_inset
17259
17260
17261 \begin_inset CommandInset href
17262 LatexCommand href
17263 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17264
17265 \end_inset
17266
17267 から入手することができます。
17268 \end_layout
17269
17270 \begin_layout Standard
17271
17272 \family sans
17273 Chk\SpecialChar TeX
17274
17275 \family default
17276 パッケージは、\SpecialChar LaTeX
17277 の構成物には直感的でないものもあり、すぐ忘れてしまいがちであるのに不満を感じた
17278 \begin_inset Flex Noun
17279 status collapsed
17280
17281 \begin_layout Plain Layout
17282 Jens T.
17283  Berger Thielemann
17284 \end_layout
17285
17286 \end_inset
17287
17288 が書いたプログラムです。このプログラムは、\SpecialChar LaTeX
17289 ファイルを走査して、ファイルの整合性をチェックし、犯しがちな誤りを見つけ出します。別の技術用語では、LaTeXにおける
17290 \family typewriter
17291 lint
17292 \family default
17293 であるとも言えます。
17294 \end_layout
17295
17296 \begin_layout Standard
17297 さて、\SpecialChar LyX
17298 はつねに正しい\SpecialChar LaTeX
17299 ファイルを生成するはずなのに、文法チェッカーは\SpecialChar LyX
17300 で何をするというのでしょうか。答えは簡単です。
17301 \family typewriter
17302 lint
17303 \family default
17304 がC言語プログラムの
17305 \emph on
17306 文法
17307 \emph default
17308 をチェックするだけでなく、打ち間違いによる
17309 \emph on
17310 意味上の
17311 \emph default
17312 チェックも行うように、
17313 \family sans
17314 Chk\SpecialChar TeX
17315
17316 \family default
17317 は、文法エラーの他に犯しがちな
17318 \emph on
17319 写植上の
17320 \emph default
17321 誤りも検出してくれるからです。
17322 \family sans
17323 Chk\SpecialChar TeX
17324
17325 \family default
17326 は、以下のような誤りを検出することができます。
17327 \end_layout
17328
17329 \begin_layout Itemize
17330 省略記号の検出:
17331 \begin_inset Newline newline
17332 \end_inset
17333
17334 ...ではなく\SpecialChar ldots
17335 を使わなくてはなりません
17336 \end_layout
17337
17338 \begin_layout Itemize
17339 括弧の前後にスペースを置かない:
17340 \begin_inset Newline newline
17341 \end_inset
17342
17343 ( wrong spacing ):誤った空白
17344 \end_layout
17345
17346 \begin_layout Itemize
17347 よく使われる省略形の後ろは通常スペースにする:
17348 \begin_inset Newline newline
17349 \end_inset
17350
17351 e.
17352 \begin_inset space \thinspace{}
17353 \end_inset
17354
17355 g.
17356 \begin_inset space \space{}
17357 \end_inset
17358
17359 is too wide spacing.:広すぎる空白
17360 \end_layout
17361
17362 \begin_layout Itemize
17363 直前の文章が大文字で終わっているときに、文末スペースに直す:
17364 \begin_inset Newline newline
17365 \end_inset
17366
17367 This is a TEST.
17368  And this is wrong spacing.:誤った空白
17369 \end_layout
17370
17371 \begin_layout Itemize
17372 ラベルや類似コマンドの前のスペース:
17373 \begin_inset Newline newline
17374 \end_inset
17375
17376 ラベルが別のページに行ってしまわないように、ラベルは文章に接していなくてはなりません。 
17377 \begin_inset CommandInset label
17378 LatexCommand label
17379 name "sec:chktex"
17380
17381 \end_inset
17382
17383  
17384 \begin_inset Foot
17385 status collapsed
17386
17387 \begin_layout Plain Layout
17388 この脚注は、正しくないページに行ってしまう恐れがあります。
17389 \end_layout
17390
17391 \end_inset
17392
17393  このラベルは離れすぎです。
17394 \end_layout
17395
17396 \begin_layout Itemize
17397 参照の前にハードスペースではなくスペース:
17398 \begin_inset Newline newline
17399 \end_inset
17400
17401 運が悪ければ、参照文字列と参照番号のあいだでちょうど改行されてしまい、残念な結果となります。第
17402 \begin_inset CommandInset ref
17403 LatexCommand ref
17404 reference "sec:chktex"
17405
17406 \end_inset
17407
17408 節をご覧ください。
17409 \end_layout
17410
17411 \begin_layout Itemize
17412 数字のあいだで
17413 \begin_inset Formula $\times$
17414 \end_inset
17415
17416 ではなく「x」が使われている:
17417 \begin_inset Newline newline
17418 \end_inset
17419
17420 2x2は、
17421 \begin_inset Formula $2\times2$
17422 \end_inset
17423
17424 よりも安っぽく見えます。
17425 \end_layout
17426
17427 \begin_layout Standard
17428 などなど\SpecialChar ldots
17429
17430 \family sans
17431 Chk\SpecialChar TeX
17432
17433 \family default
17434 は、印刷する前に文書を「仕上げる」上で、たいへん価値のあるツールです。必須のスペルチェックを終えた直後、組版の微調整をする前には、これを実行するべきです。
17435 \end_layout
17436
17437 \begin_layout Subsection
17438 使いかた
17439 \end_layout
17440
17441 \begin_layout Standard
17442 このプログラムを導入したならば、使うのは
17443 \family sans
17444 ツール\SpecialChar menuseparator
17445 \SpecialChar TeX
17446 構文チェック
17447 \family default
17448 を選択するだけなので簡単です。こうすると、\SpecialChar LyX
17449 は使用中の文書の\SpecialChar LaTeX
17450 ファイルを生成して、
17451 \family sans
17452 Chk\SpecialChar TeX
17453
17454 \family default
17455 を起動し、当該ファイルを検査しますが、
17456 \family sans
17457 Chk\SpecialChar TeX
17458
17459 \family default
17460 から警告があった場合には、それを含んだ「エラーボックス」を\SpecialChar LyX
17461 中に挿入します。警告は、誤りのある箇所のそばに置かれるので、メニュー項目の
17462 \family sans
17463 移動\SpecialChar menuseparator
17464 エラー
17465 \family default
17466 を選択するか、既定の
17467 \family typewriter
17468 cua
17469 \family default
17470
17471 \begin_inset Flex Ruby
17472 status collapsed
17473
17474 \begin_layout Plain Layout
17475
17476 \begin_inset Argument post:1
17477 status collapsed
17478
17479 \begin_layout Plain Layout
17480 キー
17481 \end_layout
17482
17483 \end_inset
17484
17485
17486 \end_layout
17487
17488 \end_inset
17489
17490 設定ファイルならば
17491 \begin_inset Flex Ruby
17492 status collapsed
17493
17494 \begin_layout Plain Layout
17495
17496 \family roman
17497 \series medium
17498 \shape up
17499 \size normal
17500 \emph off
17501 \bar no
17502 \noun off
17503 \color none
17504 捷径
17505 \family default
17506 \series default
17507 \shape default
17508 \size default
17509 \emph default
17510 \bar default
17511 \noun default
17512 \color inherit
17513
17514 \begin_inset Argument post:1
17515 status collapsed
17516
17517 \begin_layout Plain Layout
17518 ショートカット
17519 \end_layout
17520
17521 \end_inset
17522
17523
17524 \end_layout
17525
17526 \end_inset
17527
17528
17529 \family sans
17530 C-g
17531 \family default
17532 を押せば、簡単に警告の箇所を見出すことができます。エラーボックスを開けるには、マウスでボックスをクリックするか、
17533 \family typewriter
17534 cua
17535 \family default
17536 鍵設定の場合には捷径鍵
17537 \family sans
17538 C-i
17539 \family default
17540
17541 \family typewriter
17542 emacs
17543 \family default
17544 鍵設定の場合は捷径鍵
17545 \family sans
17546 C-o
17547 \family default
17548 を押します。警告を読み、それが誤りを示していれば修正します。警告が何を意味しているか理解しにくい場合には、無視しても問題はありません。画面上の文書と、
17549 \family sans
17550 Chk\SpecialChar TeX
17551
17552 \family default
17553 を起動する際に行なわれる実際の技術的な操作のあいだには、隠された層があり、この隔たりのせいで、一部の警告が不可解なものになったり、明らかに馬鹿げたものになる場合
17554 があるのです。
17555 \end_layout
17556
17557 \begin_layout Standard
17558 本文書自体、この機能を確認する良い材料になりますので、実行してみてください。すると、かなりの量の警告が出るはずです。これはコンピュータが敏感すぎるせいですので、
17559 警告のほとんどは実際には警告に値しません。
17560 \end_layout
17561
17562 \begin_layout Subsection
17563 微調整のしかた
17564 \end_layout
17565
17566 \begin_layout Standard
17567 場合によっては、
17568 \family sans
17569 Chk\SpecialChar TeX
17570
17571 \family default
17572 は、あなたが望むよりも煩すぎると思うかもしれません。そのような場合には、必要と思うまで
17573 \family sans
17574 Chk\SpecialChar TeX
17575
17576 \family default
17577 を無効にするか、あなたにもう少し合うように
17578 \family sans
17579 Chk\SpecialChar TeX
17580
17581 \family default
17582 を調整することができます。
17583 \end_layout
17584
17585 \begin_layout Standard
17586
17587 \family sans
17588 Chk\SpecialChar TeX
17589
17590 \family default
17591 は調整や拡張がひじょうに柔軟なのですが、\SpecialChar LyX
17592 における
17593 \family sans
17594 Chk\SpecialChar TeX
17595
17596 \family default
17597 関連の問題が、それですべて解決すると思うべきではありません。\SpecialChar LyX
17598 は、
17599 \family sans
17600 Chk\SpecialChar TeX
17601
17602 \family default
17603 出力
17604 \begin_inset Foot
17605 status collapsed
17606
17607 \begin_layout Plain Layout
17608
17609 \family sans
17610 chktex
17611 \family default
17612 の実際の出力は、
17613 \family sans
17614 chktex
17615 \family default
17616 を実行した直後に
17617 \family sans
17618 文書\SpecialChar menuseparator
17619 \SpecialChar LaTeX
17620 ログ
17621 \family default
17622 を使えば見ることができます。
17623 \end_layout
17624
17625 \end_inset
17626
17627 から得た行番号と内部構造を一致させるため、やや特殊な\SpecialChar LaTeX
17628 ファイルを生成しなくてはならないので、警告の一部は正しく表示されていないように見えるでしょう。これに対処する
17629 ためには、以下の2つの方法があります。
17630 \end_layout
17631
17632 \begin_layout Itemize
17633
17634 \family sans
17635 \begin_inset Flex MenuItem
17636 status collapsed
17637
17638 \begin_layout Plain Layout
17639
17640 \family sans
17641 ツール\SpecialChar menuseparator
17642 設定\SpecialChar menuseparator
17643 出力\SpecialChar menuseparator
17644 \SpecialChar LaTeX
17645 \SpecialChar menuseparator
17646 Check\SpecialChar TeX
17647 コマンド
17648 \end_layout
17649
17650 \end_inset
17651
17652
17653 \family default
17654 中の
17655 \family sans
17656 Chk\SpecialChar TeX
17657
17658 \family default
17659 起動コマンドラインを調整するか、グローバルな
17660 \family sans
17661 Chk\SpecialChar TeX
17662
17663 \family default
17664 の設定ファイル(通常は
17665 \begin_inset Flex Code
17666 status collapsed
17667
17668 \begin_layout Plain Layout
17669 chktexrc
17670 \end_layout
17671
17672 \end_inset
17673
17674 ファイル)を調整します。コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください。
17675 \end_layout
17676
17677 \begin_layout Itemize
17678
17679 \family sans
17680 ファイル\SpecialChar menuseparator
17681 書き出し\SpecialChar menuseparator
17682 \SpecialChar LaTeX
17683
17684 \family default
17685 を使って文書を\SpecialChar LaTeX
17686 ファイルに変換し、そのファイルに対して
17687 \family typewriter
17688 chktex
17689 \family default
17690 を手動で実行します。このようにすると、\SpecialChar LyX
17691 文書中の対応箇所を見つけるのがやや面倒ですが、少し我慢すれば見つけることができます。
17692 \end_layout
17693
17694 \begin_layout Standard
17695 以下は、
17696 \family sans
17697 設定
17698 \family default
17699 で有効化・無効化できる警告メッセージです。警告を無効にするには
17700 \family typewriter
17701 -n#
17702 \family default
17703 、有効にするには
17704 \family typewriter
17705 -w#
17706 \family default
17707 を用います。イタリック表示の項目は、既定で無効となっています。既定値は "
17708 \family typewriter
17709 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17710 \family default
17711 "です。
17712 \end_layout
17713
17714 \begin_layout Standard
17715 \SpecialChar LyX
17716 は、
17717 \family typewriter
17718 chktex
17719 \family default
17720 と通信するために、他のコマンドラインパラメータを特定の方法で使用しているため、メッセージを有効化・無効化する以外のオプションを使うべきではありません。
17721 \end_layout
17722
17723 \begin_layout Enumerate
17724
17725 \size small
17726 \emph on
17727 Command terminated with space.
17728 \end_layout
17729
17730 \begin_layout Enumerate
17731
17732 \size small
17733 Non-breaking space (
17734 \begin_inset Quotes eld
17735 \end_inset
17736
17737
17738 \family typewriter
17739 ~
17740 \family default
17741
17742 \begin_inset Quotes erd
17743 \end_inset
17744
17745 ) should have been used.
17746 \end_layout
17747
17748 \begin_layout Enumerate
17749
17750 \size small
17751 \emph on
17752 You should enclose the previous parenthesis with 
17753 \begin_inset Quotes eld
17754 \end_inset
17755
17756
17757 \family typewriter
17758 {}
17759 \family default
17760
17761 \begin_inset Quotes erd
17762 \end_inset
17763
17764 .
17765 \end_layout
17766
17767 \begin_layout Enumerate
17768
17769 \size small
17770 Italic correction (
17771 \begin_inset Quotes eld
17772 \end_inset
17773
17774
17775 \family typewriter
17776
17777 \backslash
17778 /
17779 \family default
17780
17781 \begin_inset Quotes erd
17782 \end_inset
17783
17784 ) found in non-italic buffer.
17785 \end_layout
17786
17787 \begin_layout Enumerate
17788
17789 \size small
17790 Italic correction (
17791 \begin_inset Quotes eld
17792 \end_inset
17793
17794
17795 \family typewriter
17796
17797 \backslash
17798 /
17799 \family default
17800
17801 \begin_inset Quotes erd
17802 \end_inset
17803
17804 ) found more than once.
17805 \end_layout
17806
17807 \begin_layout Enumerate
17808
17809 \size small
17810 \emph on
17811 No italic correction (
17812 \begin_inset Quotes eld
17813 \end_inset
17814
17815
17816 \family typewriter
17817
17818 \backslash
17819 /
17820 \family default
17821
17822 \begin_inset Quotes erd
17823 \end_inset
17824
17825 ) found.
17826 \end_layout
17827
17828 \begin_layout Enumerate
17829
17830 \size small
17831 Accent command 
17832 \begin_inset Quotes eld
17833 \end_inset
17834
17835
17836 \family typewriter
17837 cmd
17838 \family default
17839
17840 \begin_inset Quotes erd
17841 \end_inset
17842
17843  needs use of 
17844 \begin_inset Quotes eld
17845 \end_inset
17846
17847
17848 \family typewriter
17849 cmd
17850 \family default
17851
17852 \begin_inset Quotes erd
17853 \end_inset
17854
17855 .
17856 \end_layout
17857
17858 \begin_layout Enumerate
17859
17860 \size small
17861 Wrong length of dash may have been used.
17862 \end_layout
17863
17864 \begin_layout Enumerate
17865
17866 \size small
17867 \emph on
17868 \begin_inset Quotes eld
17869 \end_inset
17870
17871
17872 \family typewriter
17873 %s
17874 \family default
17875
17876 \begin_inset Quotes erd
17877 \end_inset
17878
17879  expected, found 
17880 \begin_inset Quotes eld
17881 \end_inset
17882
17883
17884 \family typewriter
17885 %s
17886 \family default
17887
17888 \begin_inset Quotes erd
17889 \end_inset
17890
17891 .
17892 \end_layout
17893
17894 \begin_layout Enumerate
17895
17896 \size small
17897 Solo 
17898 \begin_inset Quotes eld
17899 \end_inset
17900
17901
17902 \family typewriter
17903 %s
17904 \family default
17905
17906 \begin_inset Quotes erd
17907 \end_inset
17908
17909  found.
17910 \end_layout
17911
17912 \begin_layout Enumerate
17913
17914 \size small
17915 You should use 
17916 \begin_inset Quotes eld
17917 \end_inset
17918
17919
17920 \family typewriter
17921 %s
17922 \family default
17923
17924 \begin_inset Quotes erd
17925 \end_inset
17926
17927  to achieve an ellipsis.
17928 \end_layout
17929
17930 \begin_layout Enumerate
17931
17932 \size small
17933 Inter-word spacing (
17934 \begin_inset Quotes eld
17935 \end_inset
17936
17937
17938 \family typewriter
17939
17940 \backslash
17941
17942 \family default
17943  
17944 \begin_inset Quotes eld
17945 \end_inset
17946
17947 ) should perhaps be used.
17948 \end_layout
17949
17950 \begin_layout Enumerate
17951
17952 \size small
17953 Inter-sentence spacing (
17954 \begin_inset Quotes eld
17955 \end_inset
17956
17957
17958 \family typewriter
17959
17960 \backslash
17961 @
17962 \family default
17963
17964 \begin_inset Quotes erd
17965 \end_inset
17966
17967 ) should perhaps be used.
17968 \end_layout
17969
17970 \begin_layout Enumerate
17971
17972 \size small
17973 Could not find argument for command.
17974 \end_layout
17975
17976 \begin_layout Enumerate
17977
17978 \size small
17979 No match found for 
17980 \begin_inset Quotes eld
17981 \end_inset
17982
17983
17984 \family typewriter
17985 %s
17986 \family default
17987
17988 \begin_inset Quotes erd
17989 \end_inset
17990
17991 .
17992 \end_layout
17993
17994 \begin_layout Enumerate
17995
17996 \size small
17997 Math mode still on at end of \SpecialChar LaTeX
17998  file.
17999 \end_layout
18000
18001 \begin_layout Enumerate
18002
18003 \size small
18004 Number of 
18005 \begin_inset Quotes eld
18006 \end_inset
18007
18008
18009 \family typewriter
18010 char
18011 \family default
18012
18013 \begin_inset Quotes erd
18014 \end_inset
18015
18016  doesn't match the number of 
18017 \begin_inset Quotes eld
18018 \end_inset
18019
18020
18021 \family typewriter
18022 char
18023 \family default
18024
18025 \begin_inset Quotes erd
18026 \end_inset
18027
18028 .
18029 \end_layout
18030
18031 \begin_layout Enumerate
18032
18033 \size small
18034 You should use either 
18035 \family typewriter
18036
18037 \begin_inset Quotes eld
18038 \end_inset
18039
18040
18041 \family default
18042  or 
18043 \family typewriter
18044
18045 \begin_inset Quotes erd
18046 \end_inset
18047
18048
18049 \family default
18050  as an alternative to 
18051 \begin_inset Quotes eld
18052 \end_inset
18053
18054
18055 \family typewriter
18056 "
18057 \family default
18058
18059 \begin_inset Quotes erd
18060 \end_inset
18061
18062 .
18063 \end_layout
18064
18065 \begin_layout Enumerate
18066
18067 \size small
18068 You should use "
18069 \family typewriter
18070 '
18071 \family default
18072 " (ASCII 39) instead of "" (ASCII 180).
18073 \end_layout
18074
18075 \begin_layout Enumerate
18076
18077 \size small
18078 User-specified pattern found.
18079 \end_layout
18080
18081 \begin_layout Enumerate
18082
18083 \size small
18084 This command might not be intended.
18085 \end_layout
18086
18087 \begin_layout Enumerate
18088
18089 \size small
18090 \emph on
18091 Comment displayed.
18092 \end_layout
18093
18094 \begin_layout Enumerate
18095
18096 \size small
18097 Either 
18098 \family typewriter
18099 ''
18100 \backslash
18101 ,'
18102 \family default
18103  or 
18104 \family typewriter
18105 '
18106 \backslash
18107 ,''
18108 \family default
18109  will look better.
18110 \end_layout
18111
18112 \begin_layout Enumerate
18113
18114 \size small
18115 Delete this space to maintain correct page references.
18116 \end_layout
18117
18118 \begin_layout Enumerate
18119
18120 \size small
18121 \emph on
18122 You might wish to put this between a pair of 
18123 \begin_inset Quotes eld
18124 \end_inset
18125
18126
18127 \family typewriter
18128 {}
18129 \family default
18130
18131 \begin_inset Quotes erd
18132 \end_inset
18133
18134 .
18135 \end_layout
18136
18137 \begin_layout Enumerate
18138
18139 \size small
18140 You ought to remove spaces in front of punctuation.
18141 \end_layout
18142
18143 \begin_layout Enumerate
18144
18145 \size small
18146 Could not execute \SpecialChar LaTeX
18147  command.
18148 \end_layout
18149
18150 \begin_layout Enumerate
18151
18152 \size small
18153 Don't use 
18154 \family typewriter
18155
18156 \backslash
18157 /
18158 \family default
18159  in front of small punctuation.
18160 \end_layout
18161
18162 \begin_layout Enumerate
18163
18164 \family typewriter
18165 \size small
18166 $
18167 \backslash
18168 times$
18169 \family default
18170  may look prettier here.
18171 \end_layout
18172
18173 \begin_layout Enumerate
18174
18175 \size small
18176 \emph on
18177 Multiple spaces detected in output.
18178 \end_layout
18179
18180 \begin_layout Enumerate
18181
18182 \size small
18183 This text may be ignored.
18184 \end_layout
18185
18186 \begin_layout Enumerate
18187
18188 \size small
18189 Use 
18190 \family typewriter
18191
18192 \begin_inset Quotes eld
18193 \end_inset
18194
18195
18196 \family default
18197  to begin quotation, not 
18198 \family typewriter
18199 '
18200 \family default
18201 .
18202 \end_layout
18203
18204 \begin_layout Enumerate
18205
18206 \size small
18207 Use 
18208 \family typewriter
18209 '
18210 \family default
18211  to end quotation, not 
18212 \family typewriter
18213
18214 \begin_inset Quotes eld
18215 \end_inset
18216
18217
18218 \family default
18219 .
18220 \end_layout
18221
18222 \begin_layout Enumerate
18223
18224 \size small
18225 Don't mix quotes.
18226 \end_layout
18227
18228 \begin_layout Enumerate
18229
18230 \size small
18231 You should perhaps use 
18232 \begin_inset Quotes eld
18233 \end_inset
18234
18235
18236 \family typewriter
18237 cmd
18238 \family default
18239
18240 \begin_inset Quotes erd
18241 \end_inset
18242
18243  instead.
18244 \end_layout
18245
18246 \begin_layout Enumerate
18247
18248 \size small
18249 You should put a space in front of/after parenthesis.
18250 \end_layout
18251
18252 \begin_layout Enumerate
18253
18254 \size small
18255 You should avoid spaces in front of/after parenthesis.
18256 \end_layout
18257
18258 \begin_layout Enumerate
18259
18260 \size small
18261 \emph on
18262 You should not use punctuation in front of/after quotes.
18263 \end_layout
18264
18265 \begin_layout Enumerate
18266
18267 \size small
18268 Double space found.
18269 \end_layout
18270
18271 \begin_layout Enumerate
18272
18273 \size small
18274 You should put punctuation outside inner/inside display math mode.
18275 \end_layout
18276
18277 \begin_layout Enumerate
18278
18279 \size small
18280 You ought to not use primitive \SpecialChar TeX
18281  in \SpecialChar LaTeX
18282  code.
18283 \end_layout
18284
18285 \begin_layout Enumerate
18286
18287 \size small
18288 You should remove spaces in front of 
18289 \begin_inset Quotes eld
18290 \end_inset
18291
18292
18293 \family typewriter
18294 %s
18295 \family default
18296
18297 \begin_inset Quotes erd
18298 \end_inset
18299
18300
18301 \end_layout
18302
18303 \begin_layout Enumerate
18304
18305 \size small
18306 \begin_inset Quotes eld
18307 \end_inset
18308
18309
18310 \family typewriter
18311 %s
18312 \family default
18313
18314 \begin_inset Quotes erd
18315 \end_inset
18316
18317  is normally not followed by 
18318 \begin_inset Quotes eld
18319 \end_inset
18320
18321
18322 \family typewriter
18323 %c
18324 \family default
18325
18326 \begin_inset Quotes erd
18327 \end_inset
18328
18329 .
18330 \end_layout
18331
18332 \begin_layout Standard
18333 \SpecialChar LyX
18334 の将来の版では、このツール(およびその縮小版
18335 \family typewriter
18336 lacheck
18337 \family default
18338 )の力を最大限引き出すように、より完備したインターフェイスを提供できればと考えています。しかし、現状でも十分に役立つものとなっています。ある程度長さがある既存文
18339 書に使用してみていただければ、きっと驚かれることでしょう。
18340 \end_layout
18341
18342 \begin_layout Section
18343 \SpecialChar LyX
18344 でのバージョン管理
18345 \end_layout
18346
18347 \begin_layout Standard
18348
18349 \noun on
18350 Lars Bullik Bjønnes
18351 \noun default
18352 および
18353 \noun on
18354 Pavel Sanda
18355 \noun default
18356
18357 \end_layout
18358
18359 \begin_layout Subsection
18360 はじめに
18361 \end_layout
18362
18363 \begin_layout Standard
18364 \SpecialChar LyX
18365 は、今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています。もしもっと洗練されたことを行いたい場合には、ターミナル上から手動で行う必要
18366 があります。
18367 \end_layout
18368
18369 \begin_layout Standard
18370 また、CVSのサポートは、subversionのサポートほど良くないので、CVSよりもSVNを使うことをお勧めします。Subversionを学び始めるには、SV
18371 N Book
18372 \begin_inset Foot
18373 status collapsed
18374
18375 \begin_layout Plain Layout
18376 \begin_inset CommandInset href
18377 LatexCommand href
18378 target "http://svnbook.red-bean.com/"
18379
18380 \end_inset
18381
18382
18383 \end_layout
18384
18385 \end_inset
18386
18387 が良いでしょう。RCSの場合は、「rsintro」をお読みください(これはmanファイルです。
18388 \family typewriter
18389 man rcsintro
18390 \family default
18391 で読めます)。このファイルは、RCSの基本機能のすべてを説明しています。特に、RCSディレクトリに関するコメントと、マスターRCSファイル(
18392 \family typewriter
18393 ,v
18394 \family default
18395 で終わるファイルです)の概念に注意を払ってください。
18396 \end_layout
18397
18398 \begin_layout Standard
18399 \SpecialChar LyX
18400 で実際にバージョン管理機能を使い始める前に、RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません。\SpecialChar LyX
18401 で\SpecialChar LyX
18402 への実装においては、GNU
18403  RCSまたはCVS/SVNパッケージの最新版を仮定しています。旧版への保証はありません。ログメッセージのほとんどは、現在のところ操作後には表示されません。確認
18404 したい場合には、メッセージ面で確かめてください。バージョン管理を常用するユーザーには、VCツールバーが便利でしょう。これは
18405 \family sans
18406 表示\SpecialChar menuseparator
18407 ツールバー\SpecialChar menuseparator
18408 バージョン管理
18409 \family default
18410 で有効にできます。
18411 \end_layout
18412
18413 \begin_layout Standard
18414 自製の外部コマンドを導入したい場合には、\SpecialChar LyX
18415 関数説明書のvcコマンドを確認してください。
18416 \end_layout
18417
18418 \begin_layout Standard
18419
18420 \lang english
18421 It is strongly recommended to store documents in uncompressed format if
18422  using version control (uncheck 
18423 \family sans
18424 Document\SpecialChar menuseparator
18425 Compressed
18426 \family default
18427  if it is checked): Uncompressed LyX documents are text files and therefore
18428  for merging two different versions by version control systems.
18429  Compressed LyX documents are binary files, which cannot be merged by version
18430  control systems.
18431 \lang japanese
18432
18433 \begin_inset space \space{}
18434 \end_inset
18435
18436
18437 \end_layout
18438
18439 \begin_layout Subsection
18440 \SpecialChar LyX
18441 におけるRCSコマンド
18442 \end_layout
18443
18444 \begin_layout Standard
18445 以下の節では\SpecialChar LyX
18446 でサポートされているRCSコマンドを説明します。それらのコマンドは
18447 \family sans
18448 ファイル\SpecialChar menuseparator
18449 バージョン管理
18450 \family default
18451 のサブメニューにあります。\SpecialChar LyX
18452 は、RCS 5.7/5.8に対して試験されています。
18453 \end_layout
18454
18455 \begin_layout Subsubsection
18456
18457 \family sans
18458 登録
18459 \end_layout
18460
18461 \begin_layout Standard
18462 文書がバージョン管理の下にない場合には、これがメニューにあらわれる唯一の項目です。文書がバージョン管理下にあれば、項目
18463 \family sans
18464 登録
18465 \family default
18466 は不可視になります。
18467 \end_layout
18468
18469 \begin_layout Standard
18470 このコマンドは、文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合)。すると対話的に、文書の最初の説明を入力するように尋ねられます。すると文
18471 書は読み込み専用モードになるので、変更を加えるためには
18472 \family sans
18473 チェックアウトして編集
18474 \family default
18475 を実行する必要があります。バージョン管理下にある文書は、ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます。
18476 \end_layout
18477
18478 \begin_layout Standard
18479 実行されるRCSコマンドは:
18480 \family typewriter
18481
18482 \begin_inset Newline newline
18483 \end_inset
18484
18485 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18486 \end_layout
18487
18488 \begin_layout Standard
18489 スイッチについて知りたい場合は、
18490 \family typewriter
18491 man ci
18492 \family default
18493 を読んでください。
18494 \end_layout
18495
18496 \begin_layout Subsubsection
18497
18498 \family sans
18499 変更をチェックインする
18500 \end_layout
18501
18502 \begin_layout Standard
18503 ファイルの編集が終わると、その変更をチェックインします。このとき、変更についての説明文を求められます。これは履歴ログに記録されます。バージョン番号は繰り上がり、
18504 変更がマスターRCSファイルに適用され、文書がアンロックされて読み込み専用モードになります。
18505 \end_layout
18506
18507 \begin_layout Standard
18508 RCSコマンド:
18509 \family typewriter
18510 ci -q -u -m"<説明文>" <ファイル名>
18511 \end_layout
18512
18513 \begin_layout Subsubsection
18514
18515 \family sans
18516 チェックアウトして編集
18517 \end_layout
18518
18519 \begin_layout Standard
18520 これは、文書をロックして編集できるようにします。そしてあなただけが文書を読み書きできるようにします。通常は、しばらくの間、文書を編集し、それが終わると変更をチェ
18521 ックインします。あなたがファイルをロックしたことを反映して、ステータスラインが変わります。
18522 \end_layout
18523
18524 \begin_layout Standard
18525 RCSコマンド:
18526 \family typewriter
18527 co -q -l <ファイル名>
18528 \end_layout
18529
18530 \begin_layout Subsubsection
18531
18532 \family sans
18533 リポジトリのバージョンに戻す
18534 \end_layout
18535
18536 \begin_layout Standard
18537 これは、最終チェックイン以降、文書に加えられた変更をすべて破棄します。変更が破棄される前に、警告が発せられます。
18538 \end_layout
18539
18540 \begin_layout Standard
18541 RCSコマンド:
18542 \family typewriter
18543 co -f -u<バージョン> <ファイル名>
18544 \end_layout
18545
18546 \begin_layout Subsubsection
18547
18548 \family sans
18549 コピー
18550 \end_layout
18551
18552 \begin_layout Standard
18553 これは、現行文書のコピーを生成します。RCSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18554 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18555 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18556 \family sans
18557 ファイル\SpecialChar menuseparator
18558 名前をつけて保存\SpecialChar ldots
18559
18560 \family default
18561 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18562 \end_layout
18563
18564 \begin_layout Labeling
18565 \labelwidthstring 00.00.0000
18566 RCSコマンド:
18567 \begin_inset Flex Code
18568 status collapsed
18569
18570 \begin_layout Plain Layout
18571 "ファイル名"
18572 \end_layout
18573
18574 \end_inset
18575
18576
18577 \family typewriter
18578 "新ファイル名"
18579 \family default
18580 にコピーする場合
18581 \end_layout
18582
18583 \begin_layout Labeling
18584 \labelwidthstring 00.00.0000
18585 \begin_inset Flex Code
18586 status collapsed
18587
18588 \begin_layout Plain Layout
18589 ci -q -u -i "<新ファイル名>"
18590 \end_layout
18591
18592 \end_inset
18593
18594
18595 \end_layout
18596
18597 \begin_layout Subsubsection
18598
18599 \family sans
18600 最後のチェックインを取り消す
18601 \end_layout
18602
18603 \begin_layout Standard
18604 これは、最後のチェックインがあたかも為されなかったかのようにします。\SpecialChar LyX
18605 に読み込まれた文書に変更は加えられませんが、マスターRCSファイルから最後のバージョンが削除
18606 されます。
18607 \end_layout
18608
18609 \begin_layout Standard
18610 RCSコマンド:
18611 \family typewriter
18612 rcs -o<バージョン> <ファイル名>
18613 \end_layout
18614
18615 \begin_layout Subsubsection
18616
18617 \family sans
18618 履歴を表示
18619 \end_layout
18620
18621 \begin_layout Standard
18622 RCS文書の完全な履歴を表示します。ブラウザ中に、
18623 \family typewriter
18624 rlog <ファイル名>
18625 \family default
18626 の出力が表示されます。詳細は
18627 \family typewriter
18628 man rlog
18629 \family default
18630 をご覧ください。
18631 \end_layout
18632
18633 \begin_layout Subsubsection
18634 改訂情報
18635 \end_layout
18636
18637 \begin_layout Standard
18638 \SpecialChar LyX
18639 は、RCSバージョン番号情報(のみ)をサポートしています。詳細については、
18640 \begin_inset CommandInset ref
18641 LatexCommand ref
18642 reference "subsec:VCS改訂情報"
18643
18644 \end_inset
18645
18646 を参照。
18647 \end_layout
18648
18649 \begin_layout Subsection
18650 \SpecialChar LyX
18651 におけるCVSコマンド
18652 \end_layout
18653
18654 \begin_layout Standard
18655 \SpecialChar LyX
18656 は、現在CVSを一部サポートしています。そのコマンドは、
18657 \family sans
18658 ファイル\SpecialChar menuseparator
18659 バージョン管理
18660 \family default
18661 サブメニューにあります。バージョン管理システムSVNの方が強力なので、可能ならばCVSではなく、SVNを使用してください。
18662 \end_layout
18663
18664 \begin_layout Subsubsection
18665 CVSの一般的な利用法
18666 \end_layout
18667
18668 \begin_layout Standard
18669 CVSを初めて使いたい場合には、外部ツールを使用して自分のレポジトリを作成し、作業コピーをチェックアウトする必要があります。クライアント=サーバーモデルを使用し
18670 ている場合には、最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません。
18671 \end_layout
18672
18673 \begin_layout Standard
18674 改訂管理下にある文書のレポジトリを他人も利用している場合に、同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します。標準的なCVSレポジトリは、ファイル
18675 ロッキング機構を有しません。これは驚くべきことかもしれませんが、コンフリクトは、文書の同じ箇所の特定の内容について、人々が意見を異にしている場合にのみ発生します
18676 。したがって、共著者同士がコンスタントにコミュニケーションを交わしていれば、このようなコンフリクトは滅多に発生しません。もしコミュニケーションがなければ、いずれ
18677 にしても根本的な問題があるわけです。それにもかかわらず、いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます。この場合、最初にチェックアウトした際に
18678 、全ファイルの作業コピーは読み込み専用にされ、ユーザーは、作業コピーを書き込み可能にする特別なコマンドを使用した後、編集を開始することになります。変更をチェック
18679 インすると、作業コピーは読み込み専用状態に戻ります。\SpecialChar LyX
18680 で予備付きチェックアウトを利用したい場合には、
18681 \begin_inset Flex Code
18682 status collapsed
18683
18684 \begin_layout Plain Layout
18685 .cvsrc
18686 \end_layout
18687
18688 \end_inset
18689
18690 ファイルを編集して、
18691 \begin_inset Flex Code
18692 status collapsed
18693
18694 \begin_layout Plain Layout
18695 cvs -r
18696 \end_layout
18697
18698 \end_inset
18699
18700 という行を書き加える必要があります。この方法の利点は、文書のうち、書き込み可能コピーを誰が使用しているかを見ることができることです。ただし、一人のユーザーだけが
18701 コピーを書き込み可能にしているとは限りません。
18702 \end_layout
18703
18704 \begin_layout Standard
18705 \SpecialChar LyX
18706 は、あなたが予備付きチェックアウトを使用しているか、予備なしチェックアウトを利用しているか、推測しようと試みます。使用中の作業コピーが読み込み専用になっているか
18707 、あるいはそれが書き込み可能であって、CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には、予備付きチェックアウトを使用しているものと仮定
18708 し、そうでない場合には予備なしチェックアウトを使用しているものと仮定します。予備付きチェックアウトが検出された場合には、作業コピーが読み込み専用の場合に書き込み
18709 可能にするためには、
18710 \begin_inset Flex MenuItem
18711 status collapsed
18712
18713 \begin_layout Plain Layout
18714 チェックアウト
18715 \end_layout
18716
18717 \end_inset
18718
18719 メニューを使用しなくてはなりません。その後、
18720 \begin_inset Flex MenuItem
18721 status collapsed
18722
18723 \begin_layout Plain Layout
18724 チェックイン
18725 \end_layout
18726
18727 \end_inset
18728
18729 メニューが利用可能になるので、自分が加えた変更をリポジトリに移した後、作業コピーを再び読み込み専用にする際には、これを使用します。
18730 \end_layout
18731
18732 \begin_layout Standard
18733 CVSの詳細な情報は、
18734 \begin_inset Flex URL
18735 status collapsed
18736
18737 \begin_layout Plain Layout
18738
18739 http://www.nongnu.org/cvs
18740 \end_layout
18741
18742 \end_inset
18743
18744
18745 \begin_inset Flex URL
18746 status collapsed
18747
18748 \begin_layout Plain Layout
18749
18750 http://ximbiot.com/cvs
18751 \end_layout
18752
18753 \end_inset
18754
18755 にあります。
18756 \end_layout
18757
18758 \begin_layout Standard
18759 以下に言及するサブコマンドとスイッチを理解するには、
18760 \family typewriter
18761 man cvs
18762 \family default
18763 をお読みください。
18764 \end_layout
18765
18766 \begin_layout Subsubsection
18767 登録
18768 \end_layout
18769
18770 \begin_layout Standard
18771 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
18772 \family sans
18773 登録
18774 \family default
18775 項目は表示されません。
18776 \end_layout
18777
18778 \begin_layout Standard
18779 本コマンドは、既に文書ディレクトリをCVS管理下に置いている場合に
18780 \series bold
18781 \emph on
18782 のみ
18783 \series default
18784 \emph default
18785 (すなわち
18786 \begin_inset Flex Code
18787 status collapsed
18788
18789 \begin_layout Plain Layout
18790 CVS/Entries
18791 \end_layout
18792
18793 \end_inset
18794
18795 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、外部ツールを使用して、アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18796 を意味します(このステップを忘れてしまうと、\SpecialChar LyX
18797 は文書をRCSに登録します)。
18798 \end_layout
18799
18800 \begin_layout Standard
18801 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだチェックインされたわけではないことに注意してください。
18802 \end_layout
18803
18804 \begin_layout Standard
18805 実行されるCVSコマンドは、
18806 \family typewriter
18807 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18808 \family default
18809  です。
18810 \end_layout
18811
18812 \begin_layout Standard
18813 上記および他のすべてのCVSコマンドにおける
18814 \family typewriter
18815 "<ファイル名>"
18816 \family default
18817 は、「カレント作業ディレクトリをファイルの場所に移動し、パスコンポーネントを除いたファイル名を引数として使用する」という意味になります。
18818 \end_layout
18819
18820 \begin_layout Subsubsection
18821 変更のチェックイン
18822 \end_layout
18823
18824 \begin_layout Standard
18825 ファイルの編集を終えたら、変更をコミットします。このとき、文書に変更が加えられていれば、変更の説明文を入れるよう促されます。その後、変更がレポジトリに書き込まれ
18826 ます。文書を変更せず、予備付きチェックアウトが検出された場合、
18827 \begin_inset Flex MenuItem
18828 status collapsed
18829
18830 \begin_layout Plain Layout
18831 チェックアウト
18832 \end_layout
18833
18834 \end_inset
18835
18836 で作られた予備は取り消されます。
18837 \end_layout
18838
18839 \begin_layout Labeling
18840 \labelwidthstring 00.00.0000
18841 CVSコマンド: 
18842 \begin_inset space ~
18843 \end_inset
18844
18845
18846 \begin_inset Newline newline
18847 \end_inset
18848
18849
18850 \begin_inset Flex Code
18851 status collapsed
18852
18853 \begin_layout Plain Layout
18854 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18855 \end_layout
18856
18857 \end_inset
18858
18859 あるいは
18860 \begin_inset Newline newline
18861 \end_inset
18862
18863
18864 \begin_inset Flex Code
18865 status collapsed
18866
18867 \begin_layout Plain Layout
18868 cvs -q unedit "<ファイル名>"
18869 \end_layout
18870
18871 \end_inset
18872
18873
18874 \end_layout
18875
18876 \begin_layout Subsubsection
18877 変更のチェックアウト
18878 \end_layout
18879
18880 \begin_layout Standard
18881 レポジトリを他人と共有している場合、他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります。
18882 \end_layout
18883
18884 \begin_layout Standard
18885 CVSコマンド:
18886 \family typewriter
18887 cvs -q update "<ファイル名>"
18888 \end_layout
18889
18890 \begin_layout Standard
18891 読み込み専用チェックアウトが検出された場合、作業コピーを書き込み可能にし予備を作成します。
18892 \end_layout
18893
18894 \begin_layout Standard
18895 CVSコマンド:
18896 \family typewriter
18897 cvs -q edit "<ファイル名>"
18898 \end_layout
18899
18900 \begin_layout Subsubsection
18901 レポジトリ版に戻す
18902 \end_layout
18903
18904 \begin_layout Standard
18905 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVS更新コマンド
18906 が実行されます。
18907 \end_layout
18908
18909 \begin_layout Standard
18910 CVSコマンド:
18911 \family typewriter
18912 cvs -q update "<ファイル名>"
18913 \end_layout
18914
18915 \begin_layout Standard
18916 予備付きチェックアウトが検出され、作業コピーに変更がない場合、予備のみが取り消されます。
18917 \end_layout
18918
18919 \begin_layout Standard
18920 CVSコマンド:
18921 \family typewriter
18922 cvs -q unedit "<ファイル名>"
18923 \end_layout
18924
18925 \begin_layout Subsubsection
18926
18927 \family sans
18928 コピー
18929 \end_layout
18930
18931 \begin_layout Standard
18932 これは、現行文書のコピーを生成します。CVSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18933 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18934 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18935 \family sans
18936 ファイル\SpecialChar menuseparator
18937 名前をつけて保存\SpecialChar ldots
18938
18939 \family default
18940 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18941 \end_layout
18942
18943 \begin_layout Labeling
18944 \labelwidthstring 00.00.0000
18945 CVSコマンド:
18946 \end_layout
18947
18948 \begin_layout Labeling
18949 \labelwidthstring 00.00.0000
18950 \begin_inset Flex Code
18951 status collapsed
18952
18953 \begin_layout Plain Layout
18954 "ファイル名"
18955 \end_layout
18956
18957 \end_inset
18958
18959
18960 \begin_inset Flex Code
18961 status collapsed
18962
18963 \begin_layout Plain Layout
18964 "新ファイル名"
18965 \end_layout
18966
18967 \end_inset
18968
18969 にコピーする場合
18970 \end_layout
18971
18972 \begin_layout Labeling
18973 \labelwidthstring 00.00.0000
18974 \begin_inset Flex Code
18975 status collapsed
18976
18977 \begin_layout Plain Layout
18978 cvs -q add "<新ファイル名>"
18979 \end_layout
18980
18981 \end_inset
18982
18983
18984 \end_layout
18985
18986 \begin_layout Subsubsection
18987 ファイル名変更
18988 \end_layout
18989
18990 \begin_layout Standard
18991 これは、現行文書のファイル名を変更します。CVSは、ファイル名変更操作を自前ではサポートしませんので、バージョン履歴には保存されず、名称変更後のファイルは、新規
18992 ファイルとして追加されます。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され
18993 、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パ
18994 スは、(
18995 \family sans
18996 ファイル\SpecialChar menuseparator
18997 名前をつけて保存\SpecialChar ldots
18998
18999 \family default
19000 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
19001 \end_layout
19002
19003 \begin_layout Labeling
19004 \labelwidthstring 00.00.0000
19005 CVSコマンド:
19006 \end_layout
19007
19008 \begin_layout Labeling
19009 \labelwidthstring 00.00.0000
19010 \begin_inset Flex Code
19011 status collapsed
19012
19013 \begin_layout Plain Layout
19014 "ファイル名"
19015 \end_layout
19016
19017 \end_inset
19018
19019
19020 \begin_inset Flex Code
19021 status collapsed
19022
19023 \begin_layout Plain Layout
19024 "新ファイル名"
19025 \end_layout
19026
19027 \end_inset
19028
19029 に変更する場合
19030 \end_layout
19031
19032 \begin_layout Labeling
19033 \labelwidthstring 00.00.0000
19034 \begin_inset Flex Code
19035 status collapsed
19036
19037 \begin_layout Plain Layout
19038 cvs -q add "<新ファイル名>"
19039 \end_layout
19040
19041 \end_inset
19042
19043
19044 \end_layout
19045
19046 \begin_layout Labeling
19047 \labelwidthstring 00.00.0000
19048 \begin_inset Flex Code
19049 status collapsed
19050
19051 \begin_layout Plain Layout
19052 cvs -q remove "<ファイル名>"
19053 \end_layout
19054
19055 \end_inset
19056
19057
19058 \end_layout
19059
19060 \begin_layout Subsubsection
19061 ローカルディレクトリチェックアウトのレポジトリからの更新
19062 \end_layout
19063
19064 \begin_layout Standard
19065 子文書や図を含んだり、外部
19066 \begin_inset Flex Code
19067 status collapsed
19068
19069 \begin_layout Plain Layout
19070 .tex
19071 \end_layout
19072
19073 \end_inset
19074
19075 ファイルを取り込むなど、文書が複雑になるにつれ、バージョン管理の利用は複雑になります。\SpecialChar LyX
19076 は、文書が存在するツリー全体の更新をサポートします。これは、CVSの使用法
19077 について詳しい知識のない人々や、レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に、特に便利です。ファイル構造は、すべての外部ファイル
19078 が、文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります。いずれにしても、複合文書を新しいディレクトリを建てて収容するのは、望ましい習
19079 慣です。
19080 \end_layout
19081
19082 \begin_layout Standard
19083 コマンド
19084 \begin_inset Flex Code
19085 status collapsed
19086
19087 \begin_layout Plain Layout
19088 レポジトリを使ってローカル辞書を更新
19089 \end_layout
19090
19091 \end_inset
19092
19093 は、ディレクトリ全体を更新します。ローカルの変更が検出された場合には、更新を開始する前にユーザーに警告が発せられます。マージコンフリクトが発生した場合には、コン
19094 フリクトを起こしている部分の新旧バージョンが、両方とも最終文書に置かれますので、マージの結果を見直し、修正する必要があります。コンフリクトは、
19095 \begin_inset Flex Code
19096 status collapsed
19097
19098 \begin_layout Plain Layout
19099 <<<<<<<
19100 \end_layout
19101
19102 \end_inset
19103
19104
19105 \begin_inset Flex Code
19106 status collapsed
19107
19108 \begin_layout Plain Layout
19109 >>>>>>>
19110 \end_layout
19111
19112 \end_inset
19113
19114 の対に囲まれ、
19115 \begin_inset Flex Code
19116 status collapsed
19117
19118 \begin_layout Plain Layout
19119 =======
19120 \end_layout
19121
19122 \end_inset
19123
19124 で区切られて表示されます。最初の部分は、文書名に続いて、更新操作前のバージョンが置かれています。第2の部分は、
19125 \begin_inset Flex Code
19126 status collapsed
19127
19128 \begin_layout Plain Layout
19129 >
19130 \end_layout
19131
19132 \end_inset
19133
19134 記号列の後にバージョン番号に続いて、レポジトリ版が置かれます。
19135 \end_layout
19136
19137 \begin_layout Labeling
19138 \labelwidthstring 00.00.0000
19139 CVSコマンド: 
19140 \begin_inset space ~
19141 \end_inset
19142
19143
19144 \begin_inset Newline newline
19145 \end_inset
19146
19147
19148 \begin_inset Flex Code
19149 status collapsed
19150
19151 \begin_layout Plain Layout
19152 cd $path; cvs diff "."
19153 \end_layout
19154
19155 \end_inset
19156
19157 (変更が検出された場合には知らせる)
19158 \begin_inset Newline newline
19159 \end_inset
19160
19161
19162 \begin_inset Flex Code
19163 status collapsed
19164
19165 \begin_layout Plain Layout
19166 cd $path; cvs -q update "."
19167 \end_layout
19168
19169 \end_inset
19170
19171
19172 \end_layout
19173
19174 \begin_layout Standard
19175 ここで
19176 \begin_inset Flex Code
19177 status collapsed
19178
19179 \begin_layout Plain Layout
19180 $path
19181 \end_layout
19182
19183 \end_inset
19184
19185 は文書パスを表します。
19186 \end_layout
19187
19188 \begin_layout Subsubsection
19189 履歴を表示
19190 \end_layout
19191
19192 \begin_layout Standard
19193 これは、CVS文書の全履歴を表示します。
19194 \begin_inset Flex Code
19195 status collapsed
19196
19197 \begin_layout Plain Layout
19198 cvs log 
19199 \begin_inset Quotes eld
19200 \end_inset
19201
19202 <ファイル名>
19203 \begin_inset Quotes erd
19204 \end_inset
19205
19206
19207 \end_layout
19208
19209 \end_inset
19210
19211 の出力がブラウザに表示されます。
19212 \end_layout
19213
19214 \begin_layout Subsubsection
19215 改訂情報
19216 \end_layout
19217
19218 \begin_layout Standard
19219 \SpecialChar LyX
19220 は、CVS版数・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
19221 \family typewriter
19222 cvs log -r <ファイル名>
19223 \family default
19224 によって抽出されます。詳細については、第
19225 \begin_inset CommandInset ref
19226 LatexCommand ref
19227 reference "subsec:VCS改訂情報"
19228
19229 \end_inset
19230
19231 節を参照してください。
19232 \end_layout
19233
19234 \begin_layout Subsection
19235 \SpecialChar LyX
19236 におけるSVNコマンド
19237 \end_layout
19238
19239 \begin_layout Standard
19240 \SpecialChar LyX
19241 は、現在SVNを一部サポートしています。そのコマンドは、
19242 \begin_inset Flex MenuItem
19243 status collapsed
19244
19245 \begin_layout Plain Layout
19246 ファイル\SpecialChar menuseparator
19247 バージョン管理
19248 \end_layout
19249
19250 \end_inset
19251
19252 メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。\SpecialChar LyX
19253 は、SVN
19254  1.5および1.6に対して試験されています。
19255 \end_layout
19256
19257 \begin_layout Subsubsection
19258 登録
19259 \end_layout
19260
19261 \begin_layout Standard
19262 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
19263 \family sans
19264 登録
19265 \family default
19266 項目は表示されません。
19267 \end_layout
19268
19269 \begin_layout Standard
19270 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
19271 \emph on
19272 のみ
19273 \emph default
19274 (すなわち
19275 \begin_inset Flex Code
19276 status collapsed
19277
19278 \begin_layout Plain Layout
19279 .svn/entries
19280 \end_layout
19281
19282 \end_inset
19283
19284 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
19285 \end_layout
19286
19287 \begin_layout Standard
19288 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
19289 \end_layout
19290
19291 \begin_layout Standard
19292 実行されるSVNコマンドは、
19293 \begin_inset Flex Code
19294 status collapsed
19295
19296 \begin_layout Plain Layout
19297 svn add -q 
19298 \begin_inset Quotes eld
19299 \end_inset
19300
19301 <ファイル名>
19302 \begin_inset Quotes erd
19303 \end_inset
19304
19305
19306 \end_layout
19307
19308 \end_inset
19309
19310 です。
19311 \end_layout
19312
19313 \begin_layout Standard
19314 スイッチの説明は
19315 \begin_inset Flex Code
19316 status collapsed
19317
19318 \begin_layout Plain Layout
19319 man svn
19320 \end_layout
19321
19322 \end_inset
19323
19324 をお読みください。
19325 \end_layout
19326
19327 \begin_layout Subsubsection
19328 変更をチェックイン
19329 \end_layout
19330
19331 \begin_layout Standard
19332 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
19333 \end_layout
19334
19335 \begin_layout Standard
19336 SVNコマンド
19337 \begin_inset Foot
19338 status collapsed
19339
19340 \begin_layout Plain Layout
19341 ロックが有効になっていない場合です。第
19342 \begin_inset CommandInset ref
19343 LatexCommand ref
19344 reference "subsec:SVNファイルロック"
19345
19346 \end_inset
19347
19348 節をご覧ください。
19349 \end_layout
19350
19351 \end_inset
19352
19353
19354 \begin_inset Flex Code
19355 status collapsed
19356
19357 \begin_layout Plain Layout
19358 svn commit -q -m
19359 \begin_inset Quotes erd
19360 \end_inset
19361
19362 <入力した説明文>
19363 \begin_inset Quotes erd
19364 \end_inset
19365
19366  
19367 \begin_inset Quotes eld
19368 \end_inset
19369
19370 <ファイル名>
19371 \begin_inset Quotes erd
19372 \end_inset
19373
19374
19375 \end_layout
19376
19377 \end_inset
19378
19379
19380 \end_layout
19381
19382 \begin_layout Subsubsection
19383 チェックアウトして編集
19384 \end_layout
19385
19386 \begin_layout Standard
19387 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
19388 しておくようにしてください。
19389 \end_layout
19390
19391 \begin_layout Standard
19392 SVNコマンド
19393 \begin_inset Foot
19394 status collapsed
19395
19396 \begin_layout Plain Layout
19397 同上。
19398 \end_layout
19399
19400 \end_inset
19401
19402
19403 \begin_inset Flex Code
19404 status collapsed
19405
19406 \begin_layout Plain Layout
19407 svn update –non-interactive 
19408 \begin_inset Quotes eld
19409 \end_inset
19410
19411 <ファイル名>
19412 \begin_inset Quotes erd
19413 \end_inset
19414
19415
19416 \end_layout
19417
19418 \end_inset
19419
19420
19421 \end_layout
19422
19423 \begin_layout Subsubsection
19424 リポジトリ版に戻す
19425 \end_layout
19426
19427 \begin_layout Standard
19428 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
19429 \end_layout
19430
19431 \begin_layout Standard
19432 SVNコマンド:
19433 \begin_inset Flex Code
19434 status collapsed
19435
19436 \begin_layout Plain Layout
19437 svn revert -q 
19438 \begin_inset Quotes eld
19439 \end_inset
19440
19441 <ファイル名>
19442 \begin_inset Quotes erd
19443 \end_inset
19444
19445
19446 \end_layout
19447
19448 \end_inset
19449
19450
19451 \end_layout
19452
19453 \begin_layout Subsubsection
19454
19455 \family sans
19456 コピー
19457 \end_layout
19458
19459 \begin_layout Standard
19460 これは、現行文書のコピーを生成します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するよ
19461 うに促され、その後、新コピーがローカルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19462 ァイルの相対パスは、(
19463 \family sans
19464 ファイル\SpecialChar menuseparator
19465 名前をつけて保存\SpecialChar ldots
19466
19467 \family default
19468 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
19469 \end_layout
19470
19471 \begin_layout Labeling
19472 \labelwidthstring 00.00.0000
19473 SVNコマンド:
19474 \end_layout
19475
19476 \begin_layout Labeling
19477 \labelwidthstring 00.00.0000
19478 \begin_inset Flex Code
19479 status collapsed
19480
19481 \begin_layout Plain Layout
19482 svn copy -q "<ファイル名>" "<新ファイル名>"
19483 \end_layout
19484
19485 \end_inset
19486
19487
19488 \end_layout
19489
19490 \begin_layout Labeling
19491 \labelwidthstring 00.00.0000
19492 \begin_inset Flex Code
19493 status collapsed
19494
19495 \begin_layout Plain Layout
19496 svn commit
19497 \end_layout
19498
19499 \end_inset
19500
19501
19502 \end_layout
19503
19504 \begin_layout Subsubsection
19505 ファイル名変更
19506 \end_layout
19507
19508 \begin_layout Standard
19509 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
19510 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19511 ァイルの相対パスは、(
19512 \family sans
19513 ファイル\SpecialChar menuseparator
19514 名前をつけて保存\SpecialChar ldots
19515
19516 \family default
19517 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
19518 \end_layout
19519
19520 \begin_layout Labeling
19521 \labelwidthstring 00.00.0000
19522 SVNコマンド:
19523 \end_layout
19524
19525 \begin_layout Labeling
19526 \labelwidthstring 00.00.0000
19527 \begin_inset Flex Code
19528 status collapsed
19529
19530 \begin_layout Plain Layout
19531 svn move -q add "<ファイル名>" "<新ファイル名>"
19532 \end_layout
19533
19534 \end_inset
19535
19536
19537 \end_layout
19538
19539 \begin_layout Labeling
19540 \labelwidthstring 00.00.0000
19541 \begin_inset Flex Code
19542 status collapsed
19543
19544 \begin_layout Plain Layout
19545 svn commit
19546 \end_layout
19547
19548 \end_inset
19549
19550
19551 \end_layout
19552
19553 \begin_layout Subsubsection
19554 \begin_inset CommandInset label
19555 LatexCommand label
19556 name "subsec:レポジトリからSVN同期"
19557
19558 \end_inset
19559
19560 レポジトリを使ったローカルディレクトリの同期
19561 \begin_inset Foot
19562 status collapsed
19563
19564 \begin_layout Plain Layout
19565 このコマンドは、subversion 
19566 \begin_inset Formula $\geqq1.5$
19567 \end_inset
19568
19569 でのみ動作することに注意してください。
19570 \end_layout
19571
19572 \end_inset
19573
19574
19575 \end_layout
19576
19577 \begin_layout Standard
19578 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
19579 \begin_inset Flex Code
19580 status collapsed
19581
19582 \begin_layout Plain Layout
19583 .tex
19584 \end_layout
19585
19586 \end_inset
19587
19588 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこで\SpecialChar LyX
19589 は、文書のおいてあるツリー全体の更新をサポートします
19590 \begin_inset Foot
19591 status collapsed
19592
19593 \begin_layout Plain Layout
19594 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
19595 \end_layout
19596
19597 \end_inset
19598
19599 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
19600
19601 \end_layout
19602
19603 \begin_layout Standard
19604 \begin_inset Flex Code
19605 status collapsed
19606
19607 \begin_layout Plain Layout
19608 ローカル辞書をレポジトリを使って更新
19609 \end_layout
19610
19611 \end_inset
19612
19613 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
19614 場合には、更新が開始される前にユーザに警告が与えられます。
19615 \end_layout
19616
19617 \begin_layout Labeling
19618 \labelwidthstring 00.00.0000
19619 SVNコマンド: 
19620 \begin_inset space ~
19621 \end_inset
19622
19623
19624 \begin_inset Newline newline
19625 \end_inset
19626
19627
19628 \begin_inset Flex Code
19629 status collapsed
19630
19631 \begin_layout Plain Layout
19632 svn diff $path(変更が発見された場合には通知します)
19633 \begin_inset Newline newline
19634 \end_inset
19635
19636 svn update –accept mine-full $path
19637 \end_layout
19638
19639 \end_inset
19640
19641
19642 \end_layout
19643
19644 \begin_layout Standard
19645 ここで
19646 \begin_inset Flex Code
19647 status collapsed
19648
19649 \begin_layout Plain Layout
19650 $path
19651 \end_layout
19652
19653 \end_inset
19654
19655 は文書のパスを示します。
19656 \end_layout
19657
19658 \begin_layout Subsubsection
19659 履歴を表示
19660 \end_layout
19661
19662 \begin_layout Standard
19663 これは、SVN文書の全履歴を表示します。
19664 \begin_inset Flex Code
19665 status collapsed
19666
19667 \begin_layout Plain Layout
19668 svn log 
19669 \begin_inset Quotes eld
19670 \end_inset
19671
19672 <ファイル名>
19673 \begin_inset Quotes erd
19674 \end_inset
19675
19676
19677 \end_layout
19678
19679 \end_inset
19680
19681 の出力がブラウザに表示されます。
19682 \end_layout
19683
19684 \begin_layout Subsubsection
19685 ファイルロック
19686 \begin_inset CommandInset label
19687 LatexCommand label
19688 name "subsec:SVNファイルロック"
19689
19690 \end_inset
19691
19692
19693 \end_layout
19694
19695 \begin_layout Standard
19696 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
19697 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19698 するための、何らかのロック機構を導入することが考えられます。
19699 \end_layout
19700
19701 \begin_layout Standard
19702 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
19703 \begin_inset Flex Code
19704 status collapsed
19705
19706 \begin_layout Plain Layout
19707 svn:needs-lock
19708 \end_layout
19709
19710 \end_inset
19711
19712 svnファイル特性に依拠した書き込み権限の自動設定(第
19713 \begin_inset CommandInset ref
19714 LatexCommand ref
19715 reference "subsec:自動ロック特性"
19716
19717 \end_inset
19718
19719 節を参照)です
19720 \begin_inset Foot
19721 status open
19722
19723 \begin_layout Plain Layout
19724 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19725 \end_layout
19726
19727 \end_inset
19728
19729 。ある文書について、この特性が検出されたときには、\SpecialChar LyX
19730 は自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19731 り替わります。これは特に、\SpecialChar LyX
19732 でのファイルの使われ方に以下の二つのモードがあることを意味します。
19733 \end_layout
19734
19735 \begin_layout Itemize
19736 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
19737 \emph on
19738 チェックアウト
19739 \emph default
19740 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
19741 \end_layout
19742
19743 \begin_layout Itemize
19744 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
19745 \emph on
19746 チェックイン
19747 \emph default
19748 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
19749 \begin_inset Foot
19750 status collapsed
19751
19752 \begin_layout Plain Layout
19753 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
19754 \end_layout
19755
19756 \end_inset
19757
19758 、書き込みロックの解放のみが行われます。
19759 \end_layout
19760
19761 \begin_layout Standard
19762 SVNコマンド:
19763 \end_layout
19764
19765 \begin_layout Labeling
19766 \labelwidthstring 00.00.0000
19767 チェックイン: 
19768 \begin_inset Flex Code
19769 status collapsed
19770
19771 \begin_layout Plain Layout
19772 svn commit -q -m
19773 \begin_inset Quotes erd
19774 \end_inset
19775
19776 <説明>
19777 \begin_inset Quotes erd
19778 \end_inset
19779
19780  
19781 \begin_inset Quotes eld
19782 \end_inset
19783
19784 <ファイル名>
19785 \begin_inset Quotes erd
19786 \end_inset
19787
19788
19789 \end_layout
19790
19791 \end_inset
19792
19793
19794 \begin_inset Newline newline
19795 \end_inset
19796
19797
19798 \begin_inset Flex Code
19799 status collapsed
19800
19801 \begin_layout Plain Layout
19802 svn unlock 
19803 \begin_inset Quotes eld
19804 \end_inset
19805
19806 <ファイル名>
19807 \begin_inset Quotes erd
19808 \end_inset
19809
19810
19811 \end_layout
19812
19813 \end_inset
19814
19815
19816 \end_layout
19817
19818 \begin_layout Labeling
19819 \labelwidthstring 00.00.0000
19820 チェックアウト: 
19821 \begin_inset Flex Code
19822 status collapsed
19823
19824 \begin_layout Plain Layout
19825 svn update 
19826 \begin_inset Quotes eld
19827 \end_inset
19828
19829 <ファイル名>
19830 \begin_inset Quotes erd
19831 \end_inset
19832
19833
19834 \end_layout
19835
19836 \end_inset
19837
19838
19839 \begin_inset Newline newline
19840 \end_inset
19841
19842
19843 \begin_inset Flex Code
19844 status collapsed
19845
19846 \begin_layout Plain Layout
19847 svn unlock 
19848 \begin_inset Quotes eld
19849 \end_inset
19850
19851 <ファイル名>
19852 \begin_inset Quotes erd
19853 \end_inset
19854
19855
19856 \end_layout
19857
19858 \end_inset
19859
19860
19861 \end_layout
19862
19863 \begin_layout Subsubsection
19864 自動ロック特性
19865 \begin_inset CommandInset label
19866 LatexCommand label
19867 name "subsec:自動ロック特性"
19868
19869 \end_inset
19870
19871
19872 \end_layout
19873
19874 \begin_layout Standard
19875 上述したような
19876 \begin_inset Flex Code
19877 status collapsed
19878
19879 \begin_layout Plain Layout
19880 .lyx
19881 \end_layout
19882
19883 \end_inset
19884
19885 ファイルに対する書き込み権限の自動設定は、
19886 \begin_inset Flex MenuItem
19887 status collapsed
19888
19889 \begin_layout Plain Layout
19890 ファイル\SpecialChar menuseparator
19891 バージョン管理\SpecialChar menuseparator
19892 ロック特性を使用
19893 \end_layout
19894
19895 \end_inset
19896
19897 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
19898 \end_layout
19899
19900 \begin_layout Standard
19901 SVNコマンド:
19902 \end_layout
19903
19904 \begin_layout Labeling
19905 \labelwidthstring 00.00.0000
19906 チェックイン: 
19907 \begin_inset Flex Code
19908 status collapsed
19909
19910 \begin_layout Plain Layout
19911 svn propset svn:needs-lock ON 
19912 \begin_inset Quotes eld
19913 \end_inset
19914
19915 <ファイル名>
19916 \begin_inset Quotes erd
19917 \end_inset
19918
19919
19920 \end_layout
19921
19922 \end_inset
19923
19924
19925 \end_layout
19926
19927 \begin_layout Labeling
19928 \labelwidthstring 00.00.0000
19929 チェックアウト: 
19930 \begin_inset Flex Code
19931 status collapsed
19932
19933 \begin_layout Plain Layout
19934 svn propdel svn:needs-lock 
19935 \begin_inset Quotes eld
19936 \end_inset
19937
19938 <ファイル名>
19939 \begin_inset Quotes erd
19940 \end_inset
19941
19942
19943 \end_layout
19944
19945 \end_inset
19946
19947
19948 \end_layout
19949
19950 \begin_layout Subsubsection
19951 \begin_inset CommandInset label
19952 LatexCommand label
19953 name "subsec:VCS改訂情報"
19954
19955 \end_inset
19956
19957 文書の改訂情報
19958 \end_layout
19959
19960 \begin_layout Standard
19961 文書中で改訂情報を有効化するにはいくつかの方法があります。
19962 \end_layout
19963
19964 \begin_layout Itemize
19965 \SpecialChar LyX
19966 による直接サポート
19967 \begin_inset Separator parbreak
19968 \end_inset
19969
19970
19971 \end_layout
19972
19973 \begin_deeper
19974 \begin_layout Itemize
19975 ツリー改訂情報(
19976 \begin_inset Flex Code
19977 status collapsed
19978
19979 \begin_layout Plain Layout
19980 vcs-tree-revision
19981 \end_layout
19982
19983 \end_inset
19984
19985 )。
19986 \begin_inset Flex Code
19987 status collapsed
19988
19989 \begin_layout Plain Layout
19990 svnversion
19991 \end_layout
19992
19993 \end_inset
19994
19995 コマンドの出力を返します。下記の表が、結果の読み方のヒントを与えるでしょう。
19996 \end_layout
19997
19998 \begin_layout Standard
19999 \align center
20000 \begin_inset Tabular
20001 <lyxtabular version="3" rows="6" columns="2">
20002 <features tabularvalignment="middle">
20003 <column alignment="center" valignment="top">
20004 <column alignment="center" valignment="top">
20005 <row>
20006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20007 \begin_inset Text
20008
20009 \begin_layout Plain Layout
20010 出力
20011 \end_layout
20012
20013 \end_inset
20014 </cell>
20015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20016 \begin_inset Text
20017
20018 \begin_layout Plain Layout
20019 意味
20020 \end_layout
20021
20022 \end_inset
20023 </cell>
20024 </row>
20025 <row>
20026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20027 \begin_inset Text
20028
20029 \begin_layout Plain Layout
20030 4123:4168
20031 \end_layout
20032
20033 \end_inset
20034 </cell>
20035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20036 \begin_inset Text
20037
20038 \begin_layout Plain Layout
20039 改訂版の混合した作業コピー
20040 \end_layout
20041
20042 \end_inset
20043 </cell>
20044 </row>
20045 <row>
20046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20047 \begin_inset Text
20048
20049 \begin_layout Plain Layout
20050 4168M
20051 \end_layout
20052
20053 \end_inset
20054 </cell>
20055 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20056 \begin_inset Text
20057
20058 \begin_layout Plain Layout
20059 修正された作業コピー
20060 \end_layout
20061
20062 \end_inset
20063 </cell>
20064 </row>
20065 <row>
20066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20067 \begin_inset Text
20068
20069 \begin_layout Plain Layout
20070 4123S
20071 \end_layout
20072
20073 \end_inset
20074 </cell>
20075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20076 \begin_inset Text
20077
20078 \begin_layout Plain Layout
20079 スイッチされた作業コピー
20080 \end_layout
20081
20082 \end_inset
20083 </cell>
20084 </row>
20085 <row>
20086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20087 \begin_inset Text
20088
20089 \begin_layout Plain Layout
20090 4123P
20091 \end_layout
20092
20093 \end_inset
20094 </cell>
20095 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20096 \begin_inset Text
20097
20098 \begin_layout Plain Layout
20099 チェックアウト頻度が低かったことによる不完全な作業コピー
20100 \end_layout
20101
20102 \end_inset
20103 </cell>
20104 </row>
20105 <row>
20106 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20107 \begin_inset Text
20108
20109 \begin_layout Plain Layout
20110 4123:4168MS
20111 \end_layout
20112
20113 \end_inset
20114 </cell>
20115 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20116 \begin_inset Text
20117
20118 \begin_layout Plain Layout
20119 改訂版が混合し、修正され、スイッチされた作業コピー
20120 \end_layout
20121
20122 \end_inset
20123 </cell>
20124 </row>
20125 </lyxtabular>
20126
20127 \end_inset
20128
20129
20130 \end_layout
20131
20132 \begin_layout Itemize
20133 ファイル改訂情報。
20134 \begin_inset Flex Code
20135 status collapsed
20136
20137 \begin_layout Plain Layout
20138 svn
20139 \begin_inset space ~
20140 \end_inset
20141
20142 info
20143 \begin_inset space ~
20144 \end_inset
20145
20146 –xml
20147 \begin_inset space ~
20148 \end_inset
20149
20150 file.lyx
20151 \end_layout
20152
20153 \end_inset
20154
20155 の出力を解析したものが返されます。サポートされるフラグは
20156 \begin_inset Separator parbreak
20157 \end_inset
20158
20159
20160 \end_layout
20161
20162 \begin_deeper
20163 \begin_layout Itemize
20164 最終コミットのバージョン番号(
20165 \begin_inset Flex Code
20166 status collapsed
20167
20168 \begin_layout Plain Layout
20169 vcs-revision
20170 \end_layout
20171
20172 \end_inset
20173
20174 )
20175 \end_layout
20176
20177 \begin_layout Itemize
20178 最終コミットの著者(
20179 \begin_inset Flex Code
20180 status collapsed
20181
20182 \begin_layout Plain Layout
20183 vcs-author
20184 \end_layout
20185
20186 \end_inset
20187
20188 )
20189 \end_layout
20190
20191 \begin_layout Itemize
20192 最終コミットの日付(
20193 \begin_inset Flex Code
20194 status collapsed
20195
20196 \begin_layout Plain Layout
20197 vcs-date
20198 \end_layout
20199
20200 \end_inset
20201
20202 )
20203 \end_layout
20204
20205 \begin_layout Itemize
20206 最終コミットの時間(
20207 \begin_inset Flex Code
20208 status collapsed
20209
20210 \begin_layout Plain Layout
20211 vcs-time
20212 \end_layout
20213
20214 \end_inset
20215
20216 )
20217 \end_layout
20218
20219 \end_deeper
20220 \begin_layout Standard
20221 これらの情報は、情報差込枠で得ることができます(例:
20222 \begin_inset Flex Code
20223 status collapsed
20224
20225 \begin_layout Plain Layout
20226 info-insert buffer vcs-date
20227 \end_layout
20228
20229 \end_inset
20230
20231 )。これらの情報は、ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20232 \begin_inset Flex Code
20233 status collapsed
20234
20235 \begin_layout Plain Layout
20236 .svn
20237 \end_layout
20238
20239 \end_inset
20240
20241 ディレクトリがあるときのみ)利用可能です。
20242 \end_layout
20243
20244 \end_deeper
20245 \begin_layout Itemize
20246 もう一つの—ハッカー的な—方法は、SVNキーワードを使用する方法です
20247 \begin_inset Foot
20248 status collapsed
20249
20250 \begin_layout Plain Layout
20251 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20252 \end_layout
20253
20254 \end_inset
20255
20256 。簡単に言えば、ファイルキーワード特性を設定して(例:
20257 \family sans
20258 svn propset svn:keywords 'Rev' file.lyx
20259 \family default
20260 )、文書中にキーワード\SpecialChar TeX
20261 コード
20262 \begin_inset Foot
20263 status collapsed
20264
20265 \begin_layout Plain Layout
20266 これは、\SpecialChar LyX
20267 がキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
20268 \end_layout
20269
20270 \end_inset
20271
20272 タグ(例:
20273 \begin_inset ERT
20274 status open
20275
20276 \begin_layout Plain Layout
20277
20278 $Rev$
20279 \end_layout
20280
20281 \end_inset
20282
20283 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
20284 \begin_inset ERT
20285 status open
20286
20287 \begin_layout Plain Layout
20288
20289 $Rev: 59 $
20290 \end_layout
20291
20292 \end_inset
20293
20294 )。このアプローチにはいくつか問題があります。第一に、\SpecialChar TeX
20295 の世界では「$」文字は数式を表すのに使われるので、\SpecialChar LyX
20296 中の
20297 \begin_inset Formula $Rev$
20298 \end_inset
20299
20300 という数式表現が、すべて
20301 \begin_inset Formula $Rev:59$
20302 \end_inset
20303
20304 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
20305 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
20306 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、\SpecialChar LyX
20307 がこれを直接サポートすることは、難しそうです。
20308 \end_layout
20309
20310 \begin_layout Subsection
20311 SVNとWindows環境
20312 \end_layout
20313
20314 \begin_layout Quote
20315 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。—P.
20316  A.
20317  ルービン
20318 \end_layout
20319
20320 \begin_layout Subsubsection
20321 準備
20322 \end_layout
20323
20324 \begin_layout Standard
20325 \SpecialChar LyX
20326 を導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クライアン
20327 トプログラムのWindows用インストーラは
20328 \begin_inset CommandInset href
20329 LatexCommand href
20330 name "CollabNet"
20331 target "http://www.collab.net/nonav/downloads/subversion/"
20332
20333 \end_inset
20334
20335 にあります。ユーザは
20336 \begin_inset CommandInset href
20337 LatexCommand href
20338 name "TortoiseSVN"
20339 target "http://tortoisesvn.tigris.org/"
20340
20341 \end_inset
20342
20343 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。\SpecialChar LyX
20344 外部で行う操
20345 作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、\SpecialChar LyX
20346 自身が使用するクライアントプログラムの代わりとは成りませんので
20347 、注意してください。
20348 \end_layout
20349
20350 \begin_layout Subsubsection
20351 文書をSubversion管理下に置くには
20352 \end_layout
20353
20354 \begin_layout Standard
20355 \SpecialChar LyX
20356 文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロジェク
20357 トに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下にない
20358 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、\SpecialChar LyX
20359 の外部で行います
20360 。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、DOSプロン
20361 プトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。レポジトリは
20362 既に存在し、新規プロジェクトを
20363 \begin_inset Flex Code
20364 status collapsed
20365
20366 \begin_layout Plain Layout
20367 C:
20368 \backslash
20369 new project
20370 \end_layout
20371
20372 \end_inset
20373
20374 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
20375 \begin_inset Flex Code
20376 status collapsed
20377
20378 \begin_layout Plain Layout
20379 svn –help
20380 \end_layout
20381
20382 \end_inset
20383
20384 を実行してください。
20385 \end_layout
20386
20387 \begin_layout Enumerate
20388 Windows Explorerで
20389 \begin_inset Flex Code
20390 status collapsed
20391
20392 \begin_layout Plain Layout
20393 C:
20394 \backslash
20395 new project
20396 \end_layout
20397
20398 \end_inset
20399
20400 を見つけ出して右クリックし、
20401 \begin_inset Flex MenuItem
20402 status collapsed
20403
20404 \begin_layout Plain Layout
20405 TortoiseSVN\SpecialChar menuseparator
20406 Repo-browser
20407 \end_layout
20408
20409 \end_inset
20410
20411 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
20412 \end_layout
20413
20414 \begin_layout Enumerate
20415 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
20416 \begin_inset Flex MenuItem
20417 status collapsed
20418
20419 \begin_layout Plain Layout
20420 Create folder\SpecialChar ldots
20421
20422 \end_layout
20423
20424 \end_inset
20425
20426 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
20427 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
20428 \end_layout
20429
20430 \begin_layout Enumerate
20431 再度
20432 \begin_inset Flex Code
20433 status collapsed
20434
20435 \begin_layout Plain Layout
20436 C:
20437 \backslash
20438 new project
20439 \end_layout
20440
20441 \end_inset
20442
20443 を右クリックし、今度は
20444 \begin_inset Flex MenuItem
20445 status collapsed
20446
20447 \begin_layout Plain Layout
20448 SVN Checkout\SpecialChar ldots
20449
20450 \end_layout
20451
20452 \end_inset
20453
20454 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
20455 \begin_inset Flex Code
20456 status collapsed
20457
20458 \begin_layout Plain Layout
20459 C:
20460 \backslash
20461 new project
20462 \end_layout
20463
20464 \end_inset
20465
20466 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
20467 \begin_inset Flex Code
20468 status collapsed
20469
20470 \begin_layout Plain Layout
20471 C:
20472 \backslash
20473 new project
20474 \end_layout
20475
20476 \end_inset
20477
20478 の下に
20479 \begin_inset Flex Code
20480 status collapsed
20481
20482 \begin_layout Plain Layout
20483 .svn
20484 \end_layout
20485
20486 \end_inset
20487
20488 ディレクトリが作成されます。
20489 \end_layout
20490
20491 \begin_layout Enumerate
20492 \SpecialChar LyX
20493 で文書を新規作成するか開くかして、
20494 \begin_inset Flex MenuItem
20495 status collapsed
20496
20497 \begin_layout Plain Layout
20498 ファイル\SpecialChar menuseparator
20499 バージョン管理\SpecialChar menuseparator
20500 登録
20501 \end_layout
20502
20503 \end_inset
20504
20505 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
20506 \end_layout
20507
20508 \begin_layout Standard
20509 爾後、
20510 \begin_inset Flex MenuItem
20511 status collapsed
20512
20513 \begin_layout Plain Layout
20514 ファイル\SpecialChar menuseparator
20515 バージョン管理
20516 \end_layout
20517
20518 \end_inset
20519
20520 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
20521 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
20522 \end_layout
20523
20524 \begin_layout Subsubsection
20525 Windows下でSVNと共にSSHトンネルを使うには
20526 \end_layout
20527
20528 \begin_layout Standard
20529 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
20530 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
20531 ることを覚悟しておいてください。
20532 \end_layout
20533
20534 \begin_layout Enumerate
20535 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
20536 \begin_inset Flex Code
20537 status collapsed
20538
20539 \begin_layout Plain Layout
20540 svn –version
20541 \end_layout
20542
20543 \end_inset
20544
20545 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
20546 \end_layout
20547
20548 \begin_layout Enumerate
20549 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
20550 \begin_inset Foot
20551 status open
20552
20553 \begin_layout Plain Layout
20554 \begin_inset Flex URL
20555 status collapsed
20556
20557 \begin_layout Plain Layout
20558
20559 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20560 \end_layout
20561
20562 \end_inset
20563
20564
20565 \end_layout
20566
20567 \end_inset
20568
20569 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
20570 護などを加えない
20571 \begin_inset Flex Ruby
20572 status collapsed
20573
20574 \begin_layout Plain Layout
20575
20576 \begin_inset Argument post:1
20577 status collapsed
20578
20579 \begin_layout Plain Layout
20580 キー
20581 \end_layout
20582
20583 \end_inset
20584
20585
20586 \end_layout
20587
20588 \end_inset
20589
20590 のみを使用することとします。
20591 \begin_inset Separator parbreak
20592 \end_inset
20593
20594
20595 \end_layout
20596
20597 \begin_deeper
20598 \begin_layout Enumerate
20599 \begin_inset Flex Code
20600 status collapsed
20601
20602 \begin_layout Plain Layout
20603 puttygen
20604 \end_layout
20605
20606 \end_inset
20607
20608 を使って鍵を生成します。.ppkプライベート鍵ファイルを保存し、パブリック鍵ファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブリック
20609 鍵の書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized_key
20610 s file:」編集フィールドから、直接サーバの
20611 \begin_inset Flex Code
20612 status collapsed
20613
20614 \begin_layout Plain Layout
20615 ~/.ssh/authorized_keys
20616 \end_layout
20617
20618 \end_inset
20619
20620 または
20621 \begin_inset Flex Code
20622 status collapsed
20623
20624 \begin_layout Plain Layout
20625 authorized_keys2
20626 \end_layout
20627
20628 \end_inset
20629
20630 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
20631 \end_layout
20632
20633 \begin_layout Enumerate
20634 Puttyのplinkを入手してください。SVNのconfigファイル
20635 \begin_inset Foot
20636 status collapsed
20637
20638 \begin_layout Plain Layout
20639 正確なパスはWindowsのバージョンに依りますが、通常は
20640 \begin_inset Flex Code
20641 status collapsed
20642
20643 \begin_layout Plain Layout
20644 c:
20645 \backslash
20646 Documents and Settings
20647 \backslash
20648 user
20649 \backslash
20650 Application Data
20651 \backslash
20652 Subversion
20653 \backslash
20654 config
20655 \end_layout
20656
20657 \end_inset
20658
20659
20660 \begin_inset Flex Code
20661 status collapsed
20662
20663 \begin_layout Plain Layout
20664 AppData
20665 \backslash
20666 Roaming
20667 \backslash
20668 Subversion
20669 \end_layout
20670
20671 \end_inset
20672
20673 辺りにあります。
20674 \end_layout
20675
20676 \end_inset
20677
20678 中の
20679 \begin_inset Flex Code
20680 status collapsed
20681
20682 \begin_layout Plain Layout
20683 [tunnels]
20684 \end_layout
20685
20686 \end_inset
20687
20688 セクションにsshコマンドを設定してください。例:
20689 \begin_inset Flex Code
20690 status collapsed
20691
20692 \begin_layout Plain Layout
20693 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20694 \end_layout
20695
20696 \end_inset
20697
20698
20699 \begin_inset Foot
20700 status collapsed
20701
20702 \begin_layout Plain Layout
20703 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
20704 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
20705 \end_layout
20706
20707 \end_inset
20708
20709
20710 \end_layout
20711
20712 \end_deeper
20713 \begin_layout Enumerate
20714 SVNアーカイブをチェックアウトしてください。例:
20715 \begin_inset Newline newline
20716 \end_inset
20717
20718
20719 \begin_inset Flex Code
20720 status collapsed
20721
20722 \begin_layout Plain Layout
20723 svn co svn+ssh://user@server/repository_path
20724 \end_layout
20725
20726 \end_inset
20727
20728
20729 \end_layout
20730
20731 \begin_layout Subsubsection
20732 行末変換
20733 \end_layout
20734
20735 \begin_layout Standard
20736 共著者同士がLinuxとWindowsを混在させているとき、\SpecialChar LyX
20737 は.lyxファイル中で異なった行末記号を使用することになります。これは、\SpecialChar LyX
20738 の機能に関する限り問題になりま
20739 せんが、コミット差分は巨大になり、マージではコンフリクトを引き起こしがちです。幸いにして、SVNは、.lyxファイルを
20740 \begin_inset Flex Code
20741 status collapsed
20742
20743 \begin_layout Plain Layout
20744 native
20745 \end_layout
20746
20747 \end_inset
20748
20749 モードに切り替える際
20750 \begin_inset Foot
20751 status collapsed
20752
20753 \begin_layout Plain Layout
20754 手短には
20755 \begin_inset Flex Code
20756 status collapsed
20757
20758 \begin_layout Plain Layout
20759 svn propset svn:eol-style native FILE_NAME
20760 \end_layout
20761
20762 \end_inset
20763
20764
20765 \end_layout
20766
20767 \end_inset
20768
20769 、CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20770 \begin_inset Foot
20771 status collapsed
20772
20773 \begin_layout Plain Layout
20774 \begin_inset Flex URL
20775 status collapsed
20776
20777 \begin_layout Plain Layout
20778
20779 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20780 \end_layout
20781
20782 \end_inset
20783
20784
20785 \end_layout
20786
20787 \end_inset
20788
20789
20790 \end_layout
20791
20792 \begin_layout Subsection
20793 \SpecialChar LyX
20794 におけるGITコマンド
20795 \end_layout
20796
20797 \begin_layout Standard
20798 \SpecialChar LyX
20799 で、最小限のGITコマンドがサポートされるようになりました。これらのコマンドは、
20800 \family sans
20801 ファイル\SpecialChar menuseparator
20802 バージョン管理
20803 \family default
20804 にあります。リポジトリのアクセスに、パスワード保護されたsshを使用している場合には、ターミナルウィンドウでの操作をするように促されます。\SpecialChar LyX
20805 は、GIT
20806  1.7に対して試験を行っています。
20807 \end_layout
20808
20809 \begin_layout Standard
20810 GITと他のバージョン管理システムとの大きな相違点は、GITの配布形態にあります。伝統的なバージョン管理システムでは、リポジトリをホストする、中心となるサーバー
20811 があります。ユーザーは変更点をサーバーにコミットし、他のユーザーが行った更新分をサーバーから受け取ります。一方、GITでは、ユーザーは、ローカルのリポジトリにコ
20812 ミットを行います。ローカルリポジトリは、GITコマンドの
20813 \begin_inset Flex Code
20814 status open
20815
20816 \begin_layout Plain Layout
20817 pull
20818 \end_layout
20819
20820 \end_inset
20821
20822 または
20823 \begin_inset Flex Code
20824 status open
20825
20826 \begin_layout Plain Layout
20827 push
20828 \end_layout
20829
20830 \end_inset
20831
20832 を使って、1つ以上のリモートリポジトリと同期されます。\SpecialChar LyX
20833 は、リモートのGITリポジトリとは、一切関わりません。CVSやSVNの集権的リポジトリに対して行うのと同じ
20834 ことを、ローカルのリポジトリに対してのみ行います。リモートのGITリポジトリを使用している場合には、お好みのGITクライアントを使用して、
20835 \begin_inset Flex Code
20836 status open
20837
20838 \begin_layout Plain Layout
20839 pull
20840 \end_layout
20841
20842 \end_inset
20843
20844 または
20845 \begin_inset Flex Code
20846 status open
20847
20848 \begin_layout Plain Layout
20849 push
20850 \end_layout
20851
20852 \end_inset
20853
20854 の操作を行う必要があります。
20855 \end_layout
20856
20857 \begin_layout Subsubsection
20858 登録
20859 \end_layout
20860
20861 \begin_layout Standard
20862 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
20863 \family sans
20864 登録
20865 \family default
20866 項目は表示されません。
20867 \end_layout
20868
20869 \begin_layout Standard
20870 本コマンドは、既に文書のあるディレクトリをGIT管理下に置いている場合に
20871 \emph on
20872 のみ
20873 \emph default
20874 (すなわち
20875 \begin_inset Flex Code
20876 status collapsed
20877
20878 \begin_layout Plain Layout
20879 .git/index
20880 \end_layout
20881
20882 \end_inset
20883
20884 ファイルが存在する場合にのみ)、お使いの文書をGITに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
20885 \end_layout
20886
20887 \begin_layout Standard
20888 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
20889 \end_layout
20890
20891 \begin_layout Standard
20892 実行されるGITコマンドは、
20893 \begin_inset Flex Code
20894 status collapsed
20895
20896 \begin_layout Plain Layout
20897 git add "<ファイル名>"
20898 \end_layout
20899
20900 \end_inset
20901
20902 です。
20903 \end_layout
20904
20905 \begin_layout Standard
20906 スイッチの説明は
20907 \begin_inset Flex Code
20908 status collapsed
20909
20910 \begin_layout Plain Layout
20911 man git
20912 \end_layout
20913
20914 \end_inset
20915
20916 をお読みください。
20917 \end_layout
20918
20919 \begin_layout Subsubsection
20920 変更をチェックイン
20921 \end_layout
20922
20923 \begin_layout Standard
20924 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
20925 \end_layout
20926
20927 \begin_layout Standard
20928 GITコマンド:
20929 \begin_inset Flex Code
20930 status collapsed
20931
20932 \begin_layout Plain Layout
20933 git commit -q -m
20934 \begin_inset Quotes erd
20935 \end_inset
20936
20937 <入力した説明文>
20938 \begin_inset Quotes erd
20939 \end_inset
20940
20941  "<ファイル名>"
20942 \end_layout
20943
20944 \end_inset
20945
20946
20947 \end_layout
20948
20949 \begin_layout Subsubsection
20950 リポジトリ版に戻す
20951 \end_layout
20952
20953 \begin_layout Standard
20954 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
20955 \end_layout
20956
20957 \begin_layout Standard
20958 GITコマンド:
20959 \begin_inset Flex Code
20960 status collapsed
20961
20962 \begin_layout Plain Layout
20963 git checkout -q 
20964 \begin_inset Quotes eld
20965 \end_inset
20966
20967 <ファイル名>
20968 \begin_inset Quotes erd
20969 \end_inset
20970
20971
20972 \end_layout
20973
20974 \end_inset
20975
20976
20977 \end_layout
20978
20979 \begin_layout Subsubsection
20980 ファイル名変更
20981 \end_layout
20982
20983 \begin_layout Standard
20984 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
20985 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
20986 ァイルの相対パスは、(
20987 \family sans
20988 ファイル\SpecialChar menuseparator
20989 名前をつけて保存\SpecialChar ldots
20990
20991 \family default
20992 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
20993 \end_layout
20994
20995 \begin_layout Labeling
20996 \labelwidthstring 00.00.0000
20997 GITコマンド:
20998 \end_layout
20999
21000 \begin_layout Labeling
21001 \labelwidthstring 00.00.0000
21002 \begin_inset Flex Code
21003 status collapsed
21004
21005 \begin_layout Plain Layout
21006 git mv "<ファイル名>" "<新ファイル名>"
21007 \end_layout
21008
21009 \end_inset
21010
21011
21012 \end_layout
21013
21014 \begin_layout Labeling
21015 \labelwidthstring 00.00.0000
21016 \begin_inset Flex Code
21017 status collapsed
21018
21019 \begin_layout Plain Layout
21020 git commit
21021 \end_layout
21022
21023 \end_inset
21024
21025
21026 \end_layout
21027
21028 \begin_layout Subsubsection
21029 履歴を表示
21030 \end_layout
21031
21032 \begin_layout Standard
21033 これは、GIT文書の全履歴を表示します。
21034 \begin_inset Flex Code
21035 status collapsed
21036
21037 \begin_layout Plain Layout
21038 git log 
21039 \begin_inset Quotes eld
21040 \end_inset
21041
21042 <ファイル名>
21043 \begin_inset Quotes erd
21044 \end_inset
21045
21046
21047 \end_layout
21048
21049 \end_inset
21050
21051 の出力がブラウザに表示されます。
21052 \end_layout
21053
21054 \begin_layout Subsubsection
21055 改訂情報
21056 \end_layout
21057
21058 \begin_layout Standard
21059 \SpecialChar LyX
21060 は、ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
21061 \family typewriter
21062 git log -n 1 --pretty=format:%H%n%an%n%ai
21063 \family default
21064 によって抽出されます。ツリーバージョン情報は、
21065 \family typewriter
21066 git describe --abbrev --dirty --long
21067 \family default
21068 で取得されます。詳細については、第
21069 \begin_inset CommandInset ref
21070 LatexCommand ref
21071 reference "subsec:VCS改訂情報"
21072
21073 \end_inset
21074
21075 節を参照してください。
21076 \end_layout
21077
21078 \begin_layout Subsection
21079 さらなる調整
21080 \end_layout
21081
21082 \begin_layout Standard
21083 vcコマンド機構が最近になって付け加えられたおかげで、\SpecialChar LyX
21084 のパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
21085 \end_layout
21086
21087 \begin_layout Standard
21088 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
21089 \end_layout
21090
21091 \begin_layout Description
21092 コミット: 
21093 \begin_inset Flex Code
21094 status collapsed
21095
21096 \begin_layout Plain Layout
21097 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21098 \end_layout
21099
21100 \end_inset
21101
21102
21103 \end_layout
21104
21105 \begin_layout Description
21106 元に戻す: 
21107 \begin_inset Flex Code
21108 status collapsed
21109
21110 \begin_layout Plain Layout
21111 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21112 \end_layout
21113
21114 \end_inset
21115
21116
21117 \end_layout
21118
21119 \begin_layout Subsection
21120 バージョン管理と文書比較
21121 \end_layout
21122
21123 \begin_layout Standard
21124 バージョン管理は、通常
21125 \begin_inset Flex Code
21126 status collapsed
21127
21128 \begin_layout Plain Layout
21129 diff
21130 \end_layout
21131
21132 \end_inset
21133
21134 ダンプを生成することによって、改訂版の間の変更点を検査するのが、典型的な使用法です。これは平文ファイルには有効なのですが、複雑な構造を持つ\SpecialChar LyX
21135 ファイルの場合には、あ
21136 まり便利ではありません。そこで、\SpecialChar LyX
21137 は独自の文書比較機能を提供しています。この機能を呼び出すには2つの方法があります。1つは、\SpecialChar LyX
21138
21139 \begin_inset Flex Code
21140 status collapsed
21141
21142 \begin_layout Plain Layout
21143 VC_COMPARE
21144 \end_layout
21145
21146 \end_inset
21147
21148 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21149 関数説明書を参照)、もう1つは
21150 \begin_inset Flex MenuItem
21151 status collapsed
21152
21153 \begin_layout Plain Layout
21154 旧改訂と比較\SpecialChar ldots
21155
21156 \end_layout
21157
21158 \end_inset
21159
21160 メニューないしアイコンを使用する方法です。当該文書のうち、任意の2つの改訂版を比較することもできますし、編集中の現行版を古い改訂版と比較することもできます(この
21161 とき改訂版遡及数「
21162 \begin_inset Flex MenuItem
21163 status collapsed
21164
21165 \begin_layout Plain Layout
21166 0
21167 \end_layout
21168
21169 \end_inset
21170
21171 」は、編集中のファイルと最後にコミットした改訂版との比較を意味します)。
21172 \end_layout
21173
21174 \begin_layout Standard
21175 この機能は、SVNとRCSでサポートされていますが、RCSは、より複雑なバージョン付けスキームを持っているため、制約があります。ダイアログ中で改訂版を指定する際
21176 の数字は、つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」)。現在のところ、改訂のGIT表記はサポートされておらず、HEAD~
21177 Xの形で表記されるXステップ前の改訂版を、編集中文書と比較することのみが可能です。
21178 \end_layout
21179
21180 \begin_layout Section
21181 文芸プログラミング
21182 \end_layout
21183
21184 \begin_layout Standard
21185
21186 \noun on
21187 Kayvan Sylvan
21188 \noun default
21189 (kayvan@sylvan.com)改訂 
21190 \noun on
21191 Edmar Wienskoski Jr.
21192 \noun default
21193 (edmar-w-jr@technologist.com)原文
21194 \end_layout
21195
21196 \begin_layout Subsection
21197 はじめに
21198 \end_layout
21199
21200 \begin_layout Standard
21201 この節の主な目的は、文芸的プログラミング(literate programming)のために、\SpecialChar LyX
21202 をどう使えばよいかをお見せすることです。ここでは、あなたがこのプロ
21203 グラミング技術をよくご存じで、「tangling」や「weaving」の意味するところを知っているものとして説明します。そうでない場合には、以下の各節にあるウェ
21204 ブリンクをたどってください。そこには、かつての開発の歴史から最新のツールチップまで、たくさんの良質なドキュメンテーションがあります。
21205 \end_layout
21206
21207 \begin_layout Standard
21208 また、あなたが、\SpecialChar LyX
21209 の設定を変更することを厭わない程度まで\SpecialChar LyX
21210 に習熟しており、Xリソースファイルにも親しんでいることを前提にしています。そうでない場合は、あなたの必要と
21211 するトピックを扱っている、\SpecialChar LyX
21212 の他の説明書で調べてください。
21213 \end_layout
21214
21215 \begin_layout Subsection
21216 文芸プログラミング
21217 \end_layout
21218
21219 \begin_layout Standard
21220 以下は、文芸プログラミング FAQからの抜粋です。
21221 \end_layout
21222
21223 \begin_layout Quotation
21224 文芸プログラミングは、人間が読むのに適した形でのドキュメンテーションとソースの組合わせです。実際、文芸的プログラムは楽しい読み物であるべきであり、さらには参加し
21225 たいとさえ思わせるべきなのです!(ボブ、ごめん。言わずにはいれなかった。)一般的に、文芸プログラムは、ソースとドキュメンテーションを同一ファイル上に結合したもの
21226 です。そして、文芸プログラミングツールは、ファイルを解析して、読むことのできるドキュメンテーションか、あるいはコンパイル可能なソースを生成します。文芸プログラミ
21227 ングのWEBスタイルは、D.
21228 \begin_inset space \thinspace{}
21229 \end_inset
21230
21231 E.
21232  Knuthが、\SpecialChar TeX
21233 組版ソフトウエアを開発中に作り出したものです。
21234 \end_layout
21235
21236 \begin_layout Standard
21237 他のエキスパートの発言です。
21238 \end_layout
21239
21240 \begin_layout Quotation
21241
21242 \emph on
21243 文芸プログラミングは、冗長なコメント付けと何が違いますか?
21244 \end_layout
21245
21246 \begin_layout Quotation
21247 3つの際立った特徴があります。重要な順に列挙すれば、
21248 \begin_inset Separator parbreak
21249 \end_inset
21250
21251
21252 \end_layout
21253
21254 \begin_deeper
21255 \begin_layout Itemize
21256 推敲の順序が柔軟
21257 \end_layout
21258
21259 \begin_layout Itemize
21260 ブラウジングの自動サポート
21261 \end_layout
21262
21263 \begin_layout Itemize
21264 特に図式と数式を含んだドキュメンテーションの組版
21265 \end_layout
21266
21267 \end_deeper
21268 \begin_layout Quotation
21269 などがあります。
21270 \end_layout
21271
21272 \begin_layout Standard
21273 あなたの興味に火を付けたところで書誌情報を見てみましょう。
21274 \end_layout
21275
21276 \begin_layout Subsubsection
21277 書誌情報
21278 \end_layout
21279
21280 \begin_layout Standard
21281 完全な文芸プログラミング FAQは
21282 \end_layout
21283
21284 \begin_layout Quote
21285 Literate Programming FAQ 
21286 \begin_inset Flex URL
21287 status collapsed
21288
21289 \begin_layout Plain Layout
21290
21291 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21292 \end_layout
21293
21294 \end_inset
21295
21296
21297 \end_layout
21298
21299 \begin_layout Standard
21300 にあります。
21301 \end_layout
21302
21303 \begin_layout Standard
21304 このFAQには、23(二十三です!)の文芸プログラミング用ツールが列挙されています。一部のツールは、特定のプログラミング言語用に特化したものですが、一般的な対象
21305 を持つものもあります。私は自分で使うのに、いくつかの理由から
21306 \noun on
21307 Noweb
21308 \noun default
21309 を選びました。
21310 \end_layout
21311
21312 \begin_layout Itemize
21313 説明文書を\SpecialChar LaTeX
21314 でもHTMLでも出力できる。
21315 \end_layout
21316
21317 \begin_layout Itemize
21318 開放的なアーキテクチャに持っているので、新しいフィルタをプラグインとして加えたり、自分が必要な特別な処理を実行することが容易である。
21319 \end_layout
21320
21321 \begin_layout Itemize
21322 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです)。
21323 \end_layout
21324
21325 \begin_layout Itemize
21326 無料である。
21327 \end_layout
21328
21329 \begin_layout Standard
21330 Nowebのウェブページは
21331 \end_layout
21332
21333 \begin_layout Quote
21334 Nowebホームページ 
21335 \begin_inset Flex URL
21336 status collapsed
21337
21338 \begin_layout Plain Layout
21339
21340 http://www.cs.virginia.edu/~nr/noweb/
21341 \end_layout
21342
21343 \end_inset
21344
21345
21346 \end_layout
21347
21348 \begin_layout Standard
21349 にあります。ここから始めれば、たくさんの興味深いリンクや、文芸プログラミングの用例にたどり着くことができます。
21350 \end_layout
21351
21352 \begin_layout Subsection
21353 \SpecialChar LyX
21354 とNowebを使った文芸プログラミング
21355 \end_layout
21356
21357 \begin_layout Standard
21358 \SpecialChar LyX
21359 における文芸プログラミングのサポートは、\SpecialChar LyX
21360 の汎用変換機構を使用して実現しています。このサポートは「Noweb非依存」的な方法で提供されているので、LyXの設定を変
21361 更するだけで、自分の好きな他の文芸プログラミングツールを使って、この新しい\SpecialChar LyX
21362 の機能を利用することができます。
21363 \end_layout
21364
21365 \begin_layout Subsubsection
21366 ドキュメントとコードの生成(weavingおよびtangling)
21367 \end_layout
21368
21369 \begin_layout Paragraph
21370 nowebモジュールの使用
21371 \end_layout
21372
21373 \begin_layout Standard
21374 Nowebと\SpecialChar LyX
21375 の導入に成功したならば、新規文書を開いたときにはいつも、文書クラスを選択した後、
21376 \family sans
21377 文書\SpecialChar menuseparator
21378 設定
21379 \family default
21380 メニューで「noweb」モジュールを追加するようにしてください。Nowebが正しく導入されていれば、「モジュール」リンクをクリックした際、利用可能リストに「no
21381 web」モジュールが表示され、文書に追加できるようになっています。
21382 \end_layout
21383
21384 \begin_layout Paragraph
21385 コードの入力
21386 \end_layout
21387
21388 \begin_layout Standard
21389 \SpecialChar LyX
21390 では、
21391 \begin_inset Flex Noun
21392 status collapsed
21393
21394 \begin_layout Plain Layout
21395 Chunk
21396 \end_layout
21397
21398 \end_inset
21399
21400 という名前のレイアウトを使えば、コードを入力することができます。Nowebは次のようにchunks を区切ります。
21401 \end_layout
21402
21403 \begin_layout LyX-Code
21404 <<My code>>=
21405 \end_layout
21406
21407 \begin_layout LyX-Code
21408   code
21409 \end_layout
21410
21411 \begin_layout LyX-Code
21412   more code
21413 \end_layout
21414
21415 \begin_layout LyX-Code
21416   even more code
21417 \end_layout
21418
21419 \begin_layout LyX-Code
21420   @
21421 \end_layout
21422
21423 \begin_layout Standard
21424 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまり、\SpecialChar LyX
21425 は、この間に書かれたものを特別に解釈することは決してあってはなりません。
21426 これも
21427 \begin_inset Flex Noun
21428 status collapsed
21429
21430 \begin_layout Plain Layout
21431 Chunk
21432 \end_layout
21433
21434 \end_inset
21435
21436 によって取り扱われ、通常の段落のように見えますが、自由に空白を入れることができます。
21437 \end_layout
21438
21439 \begin_layout Standard
21440 特殊な注釈として、chunk内でNowebの「%def」を使えば、Nowebのidentifierの相互参照に項目を加えることができます。次の例を見てください。
21441 \end_layout
21442
21443 \begin_layout LyX-Code
21444 <<My chunk>>=
21445 \end_layout
21446
21447 \begin_layout LyX-Code
21448 def some_function(args):
21449 \end_layout
21450
21451 \begin_layout LyX-Code
21452    "This is the doc string for this function."
21453 \end_layout
21454
21455 \begin_layout LyX-Code
21456    print "My args: ", args
21457 \end_layout
21458
21459 \begin_layout LyX-Code
21460 @ %def some_function
21461 \end_layout
21462
21463 \begin_layout Standard
21464 これをどのように使って、その結果相互参照がどうなるかは
21465 \emph on
21466 LIBDIR/examples/listerrors.lyx
21467 \emph default
21468 の中の文芸pythonプログラムを見るとよくわかります。
21469 \end_layout
21470
21471 \begin_layout Paragraph
21472 説明文書の生成
21473 \end_layout
21474
21475 \begin_layout Standard
21476 この時点で、適切な文書クラスを持ち、いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです。これをどうやって印刷したらいいのでしょう。答えは
21477 簡単で、通常の文書で行うように
21478 \family sans
21479 文書\SpecialChar menuseparator
21480 表示
21481 \family default
21482 等を選ぶだけです。特別な手続きは必要ありません。
21483 \end_layout
21484
21485 \begin_layout Standard
21486 理解を助けるために、\SpecialChar LyX
21487 の内部で何が起っているかを説明しておきましょう。
21488 \end_layout
21489
21490 \begin_layout Enumerate
21491
21492 \family sans
21493 文書\SpecialChar menuseparator
21494 更新
21495 \family default
21496 が選択されると、\SpecialChar LaTeX
21497 ファイルがつくられます。
21498 \begin_inset Separator parbreak
21499 \end_inset
21500
21501
21502 \end_layout
21503
21504 \begin_deeper
21505 \begin_layout Standard
21506 文書が文芸プログラミング用のクラスであった場合には、拡張子に(
21507 \begin_inset Flex MenuItem
21508 status collapsed
21509
21510 \begin_layout Plain Layout
21511 設定
21512 \end_layout
21513
21514 \end_inset
21515
21516 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
21517 \end_layout
21518
21519 \end_deeper
21520 \begin_layout Enumerate
21521 違いがファイル名だけなのに注意してください。\SpecialChar LyX
21522 による特別な処理は必要ありません。
21523 \begin_inset Flex Noun
21524 status collapsed
21525
21526 \begin_layout Plain Layout
21527 Chunk
21528 \end_layout
21529
21530 \end_inset
21531
21532 環境でコードを入力するのだけがポイントです。
21533 \end_layout
21534
21535 \begin_layout Enumerate
21536 文書が何らかの文芸プログラムクラスなら、\SpecialChar LyX
21537 は、\SpecialChar LyX
21538 からNowebへの内部変換子を用い、それからNowebから\SpecialChar LaTeX
21539 への変換子
21540 \begin_inset Foot
21541 status collapsed
21542
21543 \begin_layout Plain Layout
21544 これらの変換子は、
21545 \family sans
21546 ツール\SpecialChar menuseparator
21547 設定
21548 \family default
21549 パネルの変換子タブに定義されています。変換子の一般的な情報については、取扱説明書『
21550 \emph on
21551 カスタマイズ篇
21552 \emph default
21553 』の「
21554 \emph on
21555 変換子
21556 \emph default
21557 」の節をご覧ください。
21558 \end_layout
21559
21560 \end_inset
21561
21562 を使って\SpecialChar LaTeX
21563 ファイルを生成します。
21564 \begin_inset Separator parbreak
21565 \end_inset
21566
21567
21568 \end_layout
21569
21570 \begin_deeper
21571 \begin_layout Standard
21572 それ以外の場合はこのステップを飛ばします。
21573 \end_layout
21574
21575 \end_deeper
21576 \begin_layout Enumerate
21577 最後に\SpecialChar LaTeX
21578 が実行され、通常の文書と同じ後処理が行われます。
21579 \end_layout
21580
21581 \begin_layout Standard
21582 様々な変換子が実行するコマンドを変更すれば、簡単に、特定の「文芸プログラムツール」から変更することができます。
21583 \end_layout
21584
21585 \begin_layout Paragraph
21586 コードの生成
21587 \end_layout
21588
21589 \begin_layout Standard
21590 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様に\SpecialChar LaTeX
21591 ファイルが生成されます。それから\SpecialChar LyX
21592
21593 \family typewriter
21594 Noweb->Program
21595 \family default
21596 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
21597 \end_layout
21598
21599 \begin_layout Enumerate
21600 変換プログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマットへ
21601 変換します)。
21602 \end_layout
21603
21604 \begin_layout Enumerate
21605 エラーログ解析子。これはエラーメッセージを\SpecialChar LyX
21606 が理解できる形へ書き直します。これによって、\SpecialChar LyX
21607 はファイルバッファの正しい位置へエラーボックスを配置することができます。
21608 \end_layout
21609
21610 \begin_layout Standard
21611 冒頭部、「変換子」設定は
21612 \begin_inset Newline newline
21613 \end_inset
21614
21615
21616 \begin_inset Quotes eld
21617 \end_inset
21618
21619
21620 \family typewriter
21621 build-script $$i $$r
21622 \family default
21623
21624 \begin_inset Quotes erd
21625 \end_inset
21626
21627
21628 \begin_inset Newline newline
21629 \end_inset
21630
21631 と指定します。これは基本的に、\SpecialChar LyX
21632
21633 \begin_inset Quotes erd
21634 \end_inset
21635
21636
21637 \family typewriter
21638 build-script
21639 \family default
21640
21641 \begin_inset Quotes erd
21642 \end_inset
21643
21644 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21645 の一時ファイル用のディレクトリにつくられる)、Nowebファイルの名前と元の\SpecialChar LyX
21646 ファイルのディレクトリパスを使って呼び出すこ
21647 とを意味しています。
21648 \end_layout
21649
21650 \begin_layout Standard
21651 以下に「build-script」の一例を書いておきます。パスが通っているディレクトリに置いて使います。
21652 \end_layout
21653
21654 \begin_layout Standard
21655 \begin_inset VSpace defskip
21656 \end_inset
21657
21658
21659 \begin_inset Newpage pagebreak
21660 \end_inset
21661
21662
21663 \end_layout
21664
21665 \begin_layout Standard
21666
21667 \family sans
21668 #!/bin/sh
21669 \end_layout
21670
21671 \begin_layout Standard
21672
21673 \family sans
21674 #
21675 \end_layout
21676
21677 \begin_layout Standard
21678
21679 \family sans
21680 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21681 \end_layout
21682
21683 \begin_layout Standard
21684 \begin_inset VSpace defskip
21685 \end_inset
21686
21687
21688 \end_layout
21689
21690 \begin_layout Standard
21691 変換子設定の次の部分は「フラグ」で、これは
21692 \begin_inset Quotes erd
21693 \end_inset
21694
21695
21696 \family typewriter
21697 parselog=$$s/scripts/listerrors
21698 \family default
21699
21700 \begin_inset Quotes erd
21701 \end_inset
21702
21703 に設定されます。
21704 \begin_inset Newline newline
21705 \end_inset
21706
21707 これは、
21708 \begin_inset Quotes erd
21709 \end_inset
21710
21711 build-script
21712 \begin_inset Quotes erd
21713 \end_inset
21714
21715 プロセスが生成したエラーを
21716 \begin_inset Quotes erd
21717 \end_inset
21718
21719 listerrors
21720 \begin_inset Quotes erd
21721 \end_inset
21722
21723 プログラムを介して処理するものです。
21724 \end_layout
21725
21726 \begin_layout Standard
21727 ビルドは、通常\SpecialChar LyX
21728 の一時ディレクトリで行われるので、変換によって生成されたファイルはそのディレクトリに置かれます。\SpecialChar LyX
21729 は、主要ファイルとみなされるものをコピーして取り出
21730 しますが、
21731 \family typewriter
21732 Noweb→プログラム
21733 \family default
21734 変換は複数のファイルを生成することがあるので、\SpecialChar LyX
21735 を閉じる際に大半が削除される可能性があります。これが、NOWEB_OUTPUT_DIR環境変数を渡して、build
21736 -script chunkが生成したファイルをその場所に置かれるようにする理由です。
21737 \end_layout
21738
21739 \begin_layout Paragraph
21740 文章中でのプログラムの構築操作の説明
21741 \end_layout
21742
21743 \begin_layout Standard
21744 \SpecialChar LyX
21745 とNowebの統合の最後の部分は、
21746 \begin_inset Quotes eld
21747 \end_inset
21748
21749 build-script
21750 \begin_inset Quotes erd
21751 \end_inset
21752
21753  chunkです。一般に、あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
21754 iptでは、chunkを見つけるのにnotangleコマンドを使い、shを使って起動します。
21755 \end_layout
21756
21757 \begin_layout Standard
21758 以下に典型的なchunkがどのようなものかを書いておきます。
21759 \end_layout
21760
21761 \begin_layout LyX-Code
21762 <<build-script>>=
21763 \begin_inset Newline newline
21764 \end_inset
21765
21766
21767 \end_layout
21768
21769 \begin_layout LyX-Code
21770 #!/bin/sh
21771 \begin_inset Newline newline
21772 \end_inset
21773
21774
21775 \begin_inset Newline newline
21776 \end_inset
21777
21778 if [ -z "${NOWEB_SOURCE}" ]
21779 \begin_inset Newline newline
21780 \end_inset
21781
21782 then
21783 \end_layout
21784
21785 \begin_layout LyX-Code
21786 NOWEB_SOURCE=myfile.nw
21787 \begin_inset Newline newline
21788 \end_inset
21789
21790 fi
21791 \begin_inset Newline newline
21792 \end_inset
21793
21794 [...
21795  code to extract files ...
21796  use NOWEB_OUTPUT_DIR here ...]
21797 \begin_inset Newline newline
21798 \end_inset
21799
21800 [...
21801  code to compile files ...]
21802 \begin_inset Newline newline
21803 \end_inset
21804
21805 @
21806 \end_layout
21807
21808 \begin_layout Standard
21809
21810 \emph on
21811 LIBDIR/examples/listerrors.lyx
21812 \emph default
21813
21814 \emph on
21815 LIBDIR/examples/Literate.lyx
21816 \emph default
21817 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
21818 ってもらうための例です。また、
21819 \emph on
21820 LIBDIR/examples/noweb2lyx.lyx
21821 \emph default
21822 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、\SpecialChar LyX
21823 の文芸プログラミングのサポートがプログラム言語に依存しない
21824 ことを示しています。
21825 \end_layout
21826
21827 \begin_layout Subsubsection
21828 \SpecialChar LyX
21829 の設定
21830 \end_layout
21831
21832 \begin_layout Standard
21833 すべての文芸プログラムのための設定は、
21834 \family sans
21835 ツール\SpecialChar menuseparator
21836 設定
21837 \family default
21838 パネルの「ファイル処理」タブですることができます。重要な部分を見ておきましょう。
21839 \end_layout
21840
21841 \begin_layout Description
21842 「NoWeb」形式 ファイル形式タブで設定します。ここで、Noweb特有の設定を行います。
21843 \family sans
21844 GUI名
21845 \family default
21846
21847 \family typewriter
21848 NoWeb
21849 \family default
21850 に、拡張子を
21851 \family typewriter
21852 .nw
21853 \family default
21854 に設定してください。これによって、\SpecialChar LyX
21855 に変換プロセスの第一段階でつくられるファイルに
21856 \family typewriter
21857 .nw
21858 \family default
21859 という拡張子をつけることを指示します。
21860 \end_layout
21861
21862 \begin_layout Description
21863 プログラム形式 これは、変換の終着点を示すためだけの、空の形式です(これがあることで、変換子を作ることができます)。
21864 \end_layout
21865
21866 \begin_layout Description
21867
21868 \family sans
21869 NoWeb
21870 \family default
21871 ->
21872 \family sans
21873 \SpecialChar LaTeX
21874
21875 \family default
21876  この変換子は、文芸的文書の「weaving」を行います。Nowebの場合、「
21877 \family typewriter
21878 noweave -delay -index $$i > $$o
21879 \family default
21880 」に設定されます。
21881 \end_layout
21882
21883 \begin_layout Description
21884
21885 \family sans
21886 NoWeb
21887 \family default
21888 ->
21889 \family sans
21890 Program
21891 \family default
21892  これは「tangling」を行います。上述のように、変換子は「
21893 \family typewriter
21894 build-script $$i $$r
21895 \family default
21896 」、フラグは「
21897 \family typewriter
21898 parselog=$$s/scripts/listerrors
21899 \family default
21900 」となります。
21901 \end_layout
21902
21903 \begin_layout Subsubsection
21904 デバッグ機能拡張
21905 \end_layout
21906
21907 \begin_layout Standard
21908 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21909 サーバに実装されました。
21910 \end_layout
21911
21912 \begin_layout Standard
21913 ddd/gdbでデバッグしているとき、一つの
21914 \begin_inset Flex Ruby
21915 status collapsed
21916
21917 \begin_layout Plain Layout
21918
21919 \begin_inset Argument post:1
21920 status collapsed
21921
21922 \begin_layout Plain Layout
21923 キー
21924 \end_layout
21925
21926 \end_inset
21927
21928
21929 \end_layout
21930
21931 \end_inset
21932
21933 ストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-Vになっています。この設定はdddで
21934 \begin_inset Flex MenuItem
21935 status collapsed
21936
21937 \begin_layout Plain Layout
21938 ツール\SpecialChar menuseparator
21939 設定\SpecialChar menuseparator
21940 ファイル書式
21941 \end_layout
21942
21943 \end_inset
21944
21945 ウインドウを表示して、
21946 \begin_inset Flex MenuItem
21947 status collapsed
21948
21949 \begin_layout Plain Layout
21950 編集プログラム
21951 \end_layout
21952
21953 \end_inset
21954
21955 エントリを変えると変えることができます。
21956 \end_layout
21957
21958 \begin_layout Standard
21959 新しい\SpecialChar LyX
21960 サーバの関数と、このdddの機能を使うために
21961 \begin_inset Flex MenuItem
21962 status collapsed
21963
21964 \begin_layout Plain Layout
21965 編集プログラム
21966 \end_layout
21967
21968 \end_inset
21969
21970 を次のように設定してください。
21971 \end_layout
21972
21973 \begin_layout Standard
21974 \begin_inset VSpace defskip
21975 \end_inset
21976
21977
21978 \end_layout
21979
21980 \begin_layout Standard
21981
21982 \family sans
21983 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21984 \end_layout
21985
21986 \begin_layout Standard
21987 \begin_inset VSpace defskip
21988 \end_inset
21989
21990
21991 \end_layout
21992
21993 \begin_layout Standard
21994 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21995 サーバに情報を送り、\SpecialChar LyX
21996
21997 は同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります。
21998 \end_layout
21999
22000 \begin_layout Standard
22001 この機能が動くには\SpecialChar LyX
22002 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
22003 サーバーは使えないようになっています)。\SpecialChar LyX
22004 サーバを使えるようにするには、
22005 \family sans
22006
22007 \begin_inset Flex MenuItem
22008 status collapsed
22009
22010 \begin_layout Plain Layout
22011
22012 \family sans
22013 設定
22014 \end_layout
22015
22016 \end_inset
22017
22018
22019 \family default
22020 (
22021 \family sans
22022
22023 \begin_inset Flex MenuItem
22024 status collapsed
22025
22026 \begin_layout Plain Layout
22027
22028 \family sans
22029 パス
22030 \end_layout
22031
22032 \end_inset
22033
22034
22035 \family default
22036 タブ)の
22037 \family sans
22038
22039 \begin_inset Flex MenuItem
22040 status collapsed
22041
22042 \begin_layout Plain Layout
22043
22044 \family sans
22045 \SpecialChar LyX
22046 サーバーパイプ
22047 \family default
22048
22049 \end_layout
22050
22051 \end_inset
22052
22053
22054 \family default
22055
22056 \begin_inset Quotes eld
22057 \end_inset
22058
22059
22060 \family typewriter
22061 /home/<your-home-directory>/.lyx/lyxpipe
22062 \family default
22063
22064 \begin_inset Quotes erd
22065 \end_inset
22066
22067  のようにパスを指定してください。
22068 \end_layout
22069
22070 \begin_layout Standard
22071 詳しくは第
22072 \begin_inset CommandInset ref
22073 LatexCommand ref
22074 reference "chap:LyXサーバー"
22075
22076 \end_inset
22077
22078 章を読んでください。
22079 \end_layout
22080
22081 \begin_layout Subsubsection
22082 ツールバー拡張
22083 \end_layout
22084
22085 \begin_layout Standard
22086 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
22087 \family sans
22088 標準
22089 \family default
22090 ・節・
22091 \family sans
22092 \SpecialChar LaTeX
22093
22094 \family default
22095
22096 \family sans
22097 \SpecialChar LyX
22098 コード
22099 \family default
22100
22101 \family sans
22102 Chunk
22103 \family default
22104 環境用のボタンを用意しています。最後の一つはファイルメニュー項目の「Build Program」への
22105 \begin_inset Flex Ruby
22106 status collapsed
22107
22108 \begin_layout Plain Layout
22109
22110 \family roman
22111 \series medium
22112 \shape up
22113 \size normal
22114 \emph off
22115 \bar no
22116 \noun off
22117 \color none
22118 捷径
22119 \family default
22120 \series default
22121 \shape default
22122 \size default
22123 \emph default
22124 \bar default
22125 \noun default
22126 \color inherit
22127
22128 \begin_inset Argument post:1
22129 status collapsed
22130
22131 \begin_layout Plain Layout
22132 ショートカット
22133 \end_layout
22134
22135 \end_inset
22136
22137
22138 \end_layout
22139
22140 \end_inset
22141
22142 です。
22143 \end_layout
22144
22145 \begin_layout Standard
22146 \SpecialChar LyX
22147 はツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
22148 \begin_inset Flex MenuItem
22149 status collapsed
22150
22151 \begin_layout Plain Layout
22152 文書\SpecialChar menuseparator
22153 更新\SpecialChar menuseparator
22154 DVI
22155 \end_layout
22156
22157 \end_inset
22158
22159
22160 \begin_inset Flex MenuItem
22161 status collapsed
22162
22163 \begin_layout Plain Layout
22164 文書\SpecialChar menuseparator
22165 表示\SpecialChar menuseparator
22166 DVI
22167 \end_layout
22168
22169 \end_inset
22170
22171 を組み合わせたものになっています。
22172 \end_layout
22173
22174 \begin_layout LyX-Code
22175 Toolbar
22176 \end_layout
22177
22178 \begin_layout LyX-Code
22179   Layouts
22180 \end_layout
22181
22182 \begin_layout LyX-Code
22183   Icon "layout Standard"
22184 \end_layout
22185
22186 \begin_layout LyX-Code
22187   Icon "layout Section"
22188 \end_layout
22189
22190 \begin_layout LyX-Code
22191   Icon "layout \SpecialChar LaTeX
22192 "
22193 \end_layout
22194
22195 \begin_layout LyX-Code
22196   Icon "layout \SpecialChar LyX
22197 -Code"
22198 \end_layout
22199
22200 \begin_layout LyX-Code
22201   Icon "layout Chunk"
22202 \end_layout
22203
22204 \begin_layout LyX-Code
22205   Separator
22206 \end_layout
22207
22208 \begin_layout LyX-Code
22209   Icon "buffer-view"
22210 \end_layout
22211
22212 \begin_layout LyX-Code
22213   Icon "buffer-typeset"
22214 \end_layout
22215
22216 \begin_layout LyX-Code
22217   Icon "build-program"
22218 \end_layout
22219
22220 \begin_layout LyX-Code
22221   Separator
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 .
22234 \end_layout
22235
22236 \begin_layout LyX-Code
22237 End
22238 \end_layout
22239
22240 \begin_layout Subsubsection
22241 色の変更
22242 \end_layout
22243
22244 \begin_layout Standard
22245 \SpecialChar LyX
22246 ではいくつもの色を
22247 \begin_inset Flex MenuItem
22248 status collapsed
22249
22250 \begin_layout Plain Layout
22251 設定
22252 \end_layout
22253
22254 \end_inset
22255
22256 で変えることができます。人々が困りがちなのは、\SpecialChar LaTeX
22257 フォント色でしょう。これは、既定では赤になっていますが、chunkは\SpecialChar LaTeX
22258 フォントを使うことになっていて、文芸プログラミ
22259 ング文書には多くのchunkが現れるために、すべて赤で見ていると疲れてしまうかもしれません。これは、
22260 \begin_inset Flex MenuItem
22261 status collapsed
22262
22263 \begin_layout Plain Layout
22264 操作性\SpecialChar menuseparator
22265
22266 \end_layout
22267
22268 \end_inset
22269
22270 タブで変更することができます。
22271 \end_layout
22272
22273 \begin_layout Standard
22274 もう一つは、改行文字が画面に表示されていることでしょう。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少
22275 し違う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
22276 \end_layout
22277
22278 \begin_layout Subsection
22279 \SpecialChar LyX
22280 とknitr/Sweave
22281 \end_layout
22282
22283 \begin_layout Standard
22284 knitrとSweaveへのサポートについては、用例ファイル
22285 \emph on
22286 knitr.lyx
22287 \emph default
22288 とSweave取扱説明書(
22289 \family sans
22290 ヘルプ\SpecialChar menuseparator
22291 用途別説明書
22292 \family default
22293 メニュー)に説明があります。
22294 \end_layout
22295
22296 \begin_layout Chapter
22297 特殊機能
22298 \begin_inset CommandInset label
22299 LatexCommand label
22300 name "chap:Special-features"
22301
22302 \end_inset
22303
22304
22305 \end_layout
22306
22307 \begin_layout Standard
22308 \SpecialChar LyX
22309 では、\SpecialChar LaTeX
22310 で可能なことは何でも出来ます。すべての\SpecialChar LaTeX
22311 の機能を直接サポートできるわけではありませんが、どんな場合でも\SpecialChar TeX
22312 コードを使用することはできます。本章は、ユーザの興味が
22313 有りそうな特別な機能について、若干取り上げます。図表やフロート、ボックス、注釈に関する特別な機能については、取扱説明書『
22314 \emph on
22315 埋込オブジェクト篇
22316 \emph default
22317 』をご参照ください。
22318 \end_layout
22319
22320 \begin_layout Section
22321 多段組
22322 \end_layout
22323
22324 \begin_layout Standard
22325 この機能は、文書設定の
22326 \family sans
22327 本文レイアウト
22328 \family default
22329 にある
22330 \family sans
22331 二段組文書
22332 \family default
22333 とは別の機能です。文書全体に二段組を行いたい場合には、
22334 \family sans
22335 二段組文書
22336 \family default
22337 オプションを利用することをお勧めします。その他の場合には、本機能をご使用ください。
22338 \end_layout
22339
22340 \begin_layout Standard
22341 文書中で多段組を行うには、\SpecialChar LaTeX
22342 パッケージ
22343 \series bold
22344 multicol
22345 \series default
22346
22347 \begin_inset Index idx
22348 status collapsed
22349
22350 \begin_layout Plain Layout
22351 \SpecialChar LaTeX
22352 ぱっけーじ @ \SpecialChar LaTeX
22353 パッケージ ! multicol
22354 \end_layout
22355
22356 \end_inset
22357
22358 を導入した上で、(
22359 \family sans
22360 文書\SpecialChar menuseparator
22361 設定\SpecialChar menuseparator
22362 モジュール
22363 \family default
22364 メニューから)
22365 \family sans
22366 多段組
22367 \family default
22368 モジュールを読み込んでください。
22369 \end_layout
22370
22371 \begin_layout Standard
22372 多段組中の脚注は、ページ下部に置かれ、各段の下ごとには置かれません。各段においては、フロートに
22373 \family sans
22374 段をまたぐ
22375 \family default
22376 オプションを使用する必要があるほかは、通常通りの使用をすることができます。
22377 \end_layout
22378
22379 \begin_layout Subsection
22380 基本
22381 \end_layout
22382
22383 \begin_layout Standard
22384 文章中で二段組を使用したい場合には、段組を始める場所で
22385 \family sans
22386 挿入\SpecialChar menuseparator
22387 任意設定差込枠\SpecialChar menuseparator
22388 多段組
22389 \family default
22390 メニューを使用して、多段組差込枠を挿入してください。二段組で印字されるべき文章は、全てこの差込枠の中に書いてください。
22391 \end_layout
22392
22393 \begin_layout Standard
22394 下記はその用例です。
22395 \end_layout
22396
22397 \begin_layout Standard
22398 \noindent
22399 \begin_inset Flex Multiple Columns
22400 status open
22401
22402 \begin_layout Plain Layout
22403 \noindent
22404
22405 \series bold
22406 \size small
22407 The Adventure of the Empty House
22408 \series default
22409
22410 \begin_inset Newline newline
22411 \end_inset
22412
22413 by Sir Arthur Conan Doyle
22414 \end_layout
22415
22416 \begin_layout Plain Layout
22417
22418 \size small
22419 It was in the spring of the year 1894 that all London was interested, and
22420  the fashionable world dismayed, by the murder of the Honourable Ronald
22421  Adair under most unusual and inexplicable circumstances.
22422  The public has already learned those particulars of the crime which came
22423  out in the police investigation, but a good deal was suppressed upon that
22424  occasion, since the case for the prosecution was so overwhelmingly strong
22425  that it was not necessary to bring forward all the facts.
22426  Only now, at the end of nearly ten years, am I allowed to supply those
22427  missing links which make up the whole of that remarkable chain.
22428  The crime was of interest in itself, but that interest was as nothing to
22429  me compared to the inconceivable sequel, which afforded me the greatest
22430  shock and surprise of any event in my adventurous life.
22431  Even now, after this long interval, I find myself thrilling as I think
22432  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22433 ty which utterly submerged my mind.
22434  Let me say to that public, which has shown some interest in those glimpses
22435  which I have occasionally given them of the thoughts and actions of a very
22436  remarkable man, that they are not to blame me if I have not shared my knowledge
22437  with them, for I should have considered it my first duty to do so, had
22438  I not been barred by a positive prohibition from his own lips, which was
22439  only withdrawn upon the third of last month.
22440 \end_layout
22441
22442 \end_inset
22443
22444
22445 \end_layout
22446
22447 \begin_layout Standard
22448 三段以上にするには、カーソルを多段組差込枠の内部において、挿入\SpecialChar menuseparator
22449 段数メニューを使用してください。この差込枠の中に、欲しい段数を書き入れます(三段組の場合には「3」
22450 と書きます)。
22451 \begin_inset Newline newline
22452 \end_inset
22453
22454 下記は三段組の例です。
22455 \end_layout
22456
22457 \begin_layout Standard
22458 \begin_inset Flex Multiple Columns
22459 status open
22460
22461 \begin_layout Plain Layout
22462
22463 \size footnotesize
22464 \begin_inset Argument 1
22465 status open
22466
22467 \begin_layout Plain Layout
22468 3
22469 \end_layout
22470
22471 \end_inset
22472
22473 It can be imagined that my close intimacy with Sherlock Holmes had interested
22474  me deeply in crime, and that after his disappearance I never failed to
22475  read with care the various problems which came before the public.
22476  And I even attempted, more than once, for my own private satisfaction,
22477  to employ his methods in their solution, though with indifferent success.
22478  There was none, however, which appealed to me like this tragedy of Ronald
22479  Adair.
22480  As I read the evidence at the inquest, which led up to a verdict of willful
22481  murder against some person or persons unknown, I realized more clearly
22482  than I had ever done the loss which the community had sustained by the
22483  death of Sherlock Holmes.
22484  There were points about this strange business which would, I was sure,
22485  have specially appealed to him, and the efforts of the police would have
22486  been supplemented, or more probably anticipated, by the trained observation
22487  and the alert mind of the first criminal agent in Europe.
22488  All day, as I drove upon my round, I turned over the case in my mind and
22489  found no explanation which appeared to me to be adequate.
22490  At the risk of telling a twice-told tale, I will recapitulate the facts
22491  as they were known to the public at the conclusion of the inquest.
22492 \end_layout
22493
22494 \end_inset
22495
22496
22497 \end_layout
22498
22499 \begin_layout Standard
22500 お望みならば10段組まで組むことができますが、文書の読者にとっては、あまり気持ちのいいものではないでしょう。
22501 \end_layout
22502
22503 \begin_layout Standard
22504 \begin_inset Newpage newpage
22505 \end_inset
22506
22507
22508 \end_layout
22509
22510 \begin_layout Subsection
22511 段組中の段組
22512 \end_layout
22513
22514 \begin_layout Standard
22515 また、段中に段を組むこともできます。
22516 \end_layout
22517
22518 \begin_layout Standard
22519 \begin_inset Flex Multiple Columns
22520 status open
22521
22522 \begin_layout Plain Layout
22523
22524 \size footnotesize
22525 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22526  at that time governor of one of the Australian colonies.
22527  Adair's mother had returned from Australia to undergo the operation for
22528  cataract, and she, her son Ronald, and her daughter Hilda were living together
22529  at 427 Park Lane.
22530 \end_layout
22531
22532 \begin_layout Plain Layout
22533 \begin_inset Flex Multiple Columns
22534 status open
22535
22536 \begin_layout Plain Layout
22537
22538 \size footnotesize
22539 The youth moved in the best society–had, so far as was known, no enemies
22540  and no particular vices.
22541  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22542  had been broken off by mutual consent some months before, and there was
22543  no sign that it had left any very profound feeling behind it.
22544  For the rest {sic} the man's life moved in a narrow and conventional circle,
22545  for his habits were quiet and his nature unemotional.
22546  Yet it was upon this easy-going young aristocrat that death came, in most
22547  strange and unexpected form, between the hours of ten and eleven-twenty
22548  on the night of March 30, 1894.
22549 \end_layout
22550
22551 \end_inset
22552
22553
22554 \end_layout
22555
22556 \begin_layout Plain Layout
22557
22558 \size footnotesize
22559 Ronald Adair was fond of cards–playing continually, but never for such stakes
22560  as would hurt him.
22561  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22562  It was shown that, after dinner on the day of his death, he had played
22563  a rubber of whist at the latter club.
22564  He had also played there in the afternoon.
22565
22566 \size default
22567  
22568 \size footnotesize
22569 The evidence of those who had played with him– Mr.
22570  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22571  and that there was a fairly equal fall of the cards.
22572  Adair might have lost five pounds, but not more.
22573  His fortune was a considerable one, and such a loss could not in any way
22574  affect him.
22575  He had played nearly every day at one club or other, but he was a cautious
22576  player, and usually rose a winner.
22577  It came out in evidence that, in partnership with Colonel Moran, he had
22578  actually won as much as four hundred and twenty pounds in a sitting, some
22579  weeks before, from Godfrey Milner and Lord Balmoral.
22580  So much for his recent history as it came out at the inquest.
22581 \end_layout
22582
22583 \end_inset
22584
22585
22586 \end_layout
22587
22588 \begin_layout Subsection
22589 応用例
22590 \end_layout
22591
22592 \begin_layout Standard
22593 本節の用例は、多段組のさらに特別な機能を示すためのものです。
22594 \end_layout
22595
22596 \begin_layout Standard
22597 多段組機能についてさらに知りたい場合には、\SpecialChar LaTeX
22598 パッケージ
22599 \series bold
22600 multicol
22601 \series default
22602
22603 \begin_inset CommandInset citation
22604 LatexCommand cite
22605 key "multicol"
22606
22607 \end_inset
22608
22609 の取扱説明書をご覧ください。
22610 \end_layout
22611
22612 \begin_layout Subsubsection
22613 序文
22614 \end_layout
22615
22616 \begin_layout Standard
22617 多段組に序文を追記するには、カーソルを多段組差込枠内部に置き、
22618 \family sans
22619 挿入\SpecialChar menuseparator
22620 序文
22621 \family default
22622 メニューを使用してください。序文は、この差込枠内に書いてください。
22623 \begin_inset Newline newline
22624 \end_inset
22625
22626 序文のある文章の例を掲げます。
22627 \end_layout
22628
22629 \begin_layout Standard
22630 \begin_inset VSpace bigskip
22631 \end_inset
22632
22633
22634 \end_layout
22635
22636 \begin_layout Standard
22637 \begin_inset Flex Multiple Columns
22638 status open
22639
22640 \begin_layout Plain Layout
22641 \begin_inset Argument 2
22642 status open
22643
22644 \begin_layout Plain Layout
22645 And the story continues and continues and continues and continues\SpecialChar ldots
22646
22647 \end_layout
22648
22649 \end_inset
22650
22651
22652 \size small
22653 On the evening of the crime, he returned from the club exactly at ten.
22654  His mother and sister were out spending the evening with a relation.
22655  The servant deposed that she heard him enter the front room on the second
22656  floor, generally used as his sitting-room.
22657  She had lit a fire there, and as it smoked she had opened the window.
22658  No sound was heard from the room until eleven-twenty, the hour of the return
22659  of Lady Maynooth and her daughter.
22660  Desiring to say good-night, she attempted to enter her son's room.
22661  The door was locked on the inside, and no answer could be got to their
22662  cries and knocking.
22663  Help was obtained, and the door forced.
22664  The unfortunate young man was found lying near the table.
22665  His head had been horribly mutilated by an expanding revolver bullet, but
22666  no weapon of any sort was to be found in the room.
22667 \end_layout
22668
22669 \end_inset
22670
22671
22672 \end_layout
22673
22674 \begin_layout Standard
22675 最初の\SpecialChar TeX
22676 コードの後に、節宣言コマンドを\SpecialChar TeX
22677 コードとして使用すれば、節見出しを前書きとして使用することができます。例えば、
22678 \end_layout
22679
22680 \begin_layout Standard
22681
22682 \series bold
22683
22684 \backslash
22685 subsection{小節見出し}
22686 \end_layout
22687
22688 \begin_layout Standard
22689 というコマンドは、小節を生成します。以下の例では、前書きが小々節になっています。
22690 \end_layout
22691
22692 \begin_layout Standard
22693 \begin_inset Flex Multiple Columns
22694 status open
22695
22696 \begin_layout Plain Layout
22697 \begin_inset Argument 2
22698 status open
22699
22700 \begin_layout Plain Layout
22701 \begin_inset ERT
22702 status collapsed
22703
22704 \begin_layout Plain Layout
22705
22706
22707 \backslash
22708 subsubsection{
22709 \end_layout
22710
22711 \end_inset
22712
22713 これは序文の小々節見出しです
22714 \begin_inset ERT
22715 status collapsed
22716
22717 \begin_layout Plain Layout
22718
22719 }
22720 \end_layout
22721
22722 \end_inset
22723
22724
22725 \end_layout
22726
22727 \end_inset
22728
22729
22730 \size small
22731 A minute examination of the circumstances served only to make the case more
22732  complex.
22733  In the first place, no reason could be given why the young man should have
22734  fastened the door upon the inside.
22735  There was the possibility that the murderer had done this, and had afterwards
22736  escaped by the window.
22737  The drop was at least twenty feet, however, and a bed of crocuses in full
22738  bloom lay beneath.
22739  Neither the flowers nor the earth showed any sign of having been disturbed,
22740  nor were there any marks upon the narrow strip of grass which separated
22741  the house from the road.
22742  Apparently, therefore, it was the young man himself who had fastened the
22743  door.
22744  But how did he come by his death? No one could have climbed up to the window
22745  without leaving traces.
22746  Suppose a man had fired through the window, he would indeed be a remarkable
22747  shot who could with a revolver inflict so deadly a wound.
22748  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22749  a hundred yards of the house.
22750  No one had heard a shot.
22751 \end_layout
22752
22753 \end_inset
22754
22755
22756 \end_layout
22757
22758 \begin_layout Standard
22759 多段組を開始する部分に、必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合、多段組の前に改行が挿入されます。前書きの行数如何では、この必
22760 要行数を変更したいかもしれません。これは、カーソルを多段組差込枠内部の(もしあれば)序文の後に置き、
22761 \family sans
22762 挿入\SpecialChar menuseparator
22763 改頁前の余白
22764 \family default
22765 メニューを使用することで設定できます。この差込枠に、余白の大きさを「5cm」などと書き込んでください。
22766 \end_layout
22767
22768 \begin_layout Standard
22769 以下の例では、「7
22770 \backslash
22771 baselineskip」を用いて、必要行数を7行に指定しています(コマンド
22772 \series bold
22773
22774 \backslash
22775 baselineskip
22776 \series default
22777 は\SpecialChar TeX
22778 コードとして入力する必要があります)。
22779 \end_layout
22780
22781 \begin_layout Standard
22782 \begin_inset Flex Multiple Columns
22783 status open
22784
22785 \begin_layout Plain Layout
22786 \begin_inset Argument 3
22787 status open
22788
22789 \begin_layout Plain Layout
22790 7
22791 \begin_inset ERT
22792 status collapsed
22793
22794 \begin_layout Plain Layout
22795
22796
22797 \backslash
22798 baselineskip
22799 \end_layout
22800
22801 \end_inset
22802
22803
22804 \end_layout
22805
22806 \end_inset
22807
22808
22809 \size small
22810 On the evening of the crime, he returned from the club exactly at ten.
22811  His mother and sister were out spending the evening with a relation.
22812  The servant deposed that she heard him enter the front room on the second
22813  floor, generally used as his sitting-room.
22814  She had lit a fire there, and as it smoked she had opened the window.
22815  No sound was heard from the room until eleven-twenty, the hour of the return
22816  of Lady Maynooth and her daughter.
22817  Desiring to say good-night, she attempted to enter her son's room.
22818  The door was locked on the inside, and no answer could be got to their
22819  cries and knocking.
22820  Help was obtained, and the door forced.
22821  The unfortunate young man was found lying near the table.
22822  His head had been horribly mutilated by an expanding revolver bullet, but
22823  no weapon of any sort was to be found in the room.
22824 \end_layout
22825
22826 \end_inset
22827
22828
22829 \end_layout
22830
22831 \begin_layout Subsubsection
22832 周囲の余白
22833 \end_layout
22834
22835 \begin_layout Standard
22836 多段組の前後の余白は、長さ
22837 \series bold
22838
22839 \backslash
22840 multicolsep
22841 \series default
22842 を変えることで変更することができます。例えば、\SpecialChar TeX
22843 コードで書かれたコマンド
22844 \end_layout
22845
22846 \begin_layout Standard
22847
22848 \series bold
22849
22850 \backslash
22851 setlength{
22852 \backslash
22853 multicolsep}{3cm}
22854 \end_layout
22855
22856 \begin_layout Standard
22857 は、その値を3
22858 \begin_inset space \thinspace{}
22859 \end_inset
22860
22861 cmに変更します。この変更は、多段組が始まる前に指定しなくてはなりません。既定値は13
22862 \begin_inset space \thinspace{}
22863 \end_inset
22864
22865 ptです。
22866 \end_layout
22867
22868 \begin_layout Standard
22869 以下の例では、
22870 \series bold
22871
22872 \backslash
22873 multicolsep
22874 \series default
22875 は2.5
22876 \begin_inset space \thinspace{}
22877 \end_inset
22878
22879 cmに指定されています。
22880 \end_layout
22881
22882 \begin_layout Standard
22883 \begin_inset ERT
22884 status open
22885
22886 \begin_layout Plain Layout
22887
22888
22889 \backslash
22890 setlength{
22891 \backslash
22892 multicolsep}{2.5cm}
22893 \end_layout
22894
22895 \end_inset
22896
22897
22898 \end_layout
22899
22900 \begin_layout Standard
22901 \begin_inset Flex Multiple Columns
22902 status open
22903
22904 \begin_layout Plain Layout
22905
22906 \size small
22907 All day I turned these facts over in my mind, endeavouring to hit upon some
22908  theory which could reconcile them all, and to find that line of least resistanc
22909 e which my poor friend had declared to be the starting-point of every investigat
22910 ion.
22911  I confess that I made little progress.
22912  In the evening I strolled across the Park, and found myself about six o'clock
22913  at the Oxford Street end of Park Lane.
22914  A group of loafers upon the pavements, all staring up at a particular window,
22915  directed me to the house which I had come to see.
22916  A tall, thin man with coloured glasses, whom I strongly suspected of being
22917  a plain-clothes detective, was pointing out some theory of his own, while
22918  the others crowded round to listen to what he said.
22919  I got as near him as I could, but his observations seemed to me to be absurd,
22920  so I withdrew again in some disgust.
22921  As I did so I struck against an elderly, deformed man, who had been behind
22922  me, and I knocked down several books which he was carrying.
22923 \end_layout
22924
22925 \end_inset
22926
22927
22928 \end_layout
22929
22930 \begin_layout Standard
22931 \begin_inset Note Greyedout
22932 status open
22933
22934 \begin_layout Plain Layout
22935
22936 \series bold
22937 【註】
22938 \backslash
22939 setlength
22940 \series default
22941 で指定した値は、再度変更されるまでは、以降のすべての多段組で使用されます。
22942 \end_layout
22943
22944 \end_inset
22945
22946
22947 \end_layout
22948
22949 \begin_layout Standard
22950 \begin_inset ERT
22951 status collapsed
22952
22953 \begin_layout Plain Layout
22954
22955
22956 \backslash
22957 setlength{
22958 \backslash
22959 multicolsep}{13pt}
22960 \end_layout
22961
22962 \end_inset
22963
22964
22965 \begin_inset Note Note
22966 status collapsed
22967
22968 \begin_layout Plain Layout
22969
22970 \lang english
22971 go back to the default
22972 \end_layout
22973
22974 \end_inset
22975
22976
22977 \end_layout
22978
22979 \begin_layout Standard
22980 \begin_inset Newpage newpage
22981 \end_inset
22982
22983
22984 \end_layout
22985
22986 \begin_layout Subsubsection
22987 改段
22988 \end_layout
22989
22990 \begin_layout Standard
22991 改段は、文章中の階段を行いたい位置に、\SpecialChar TeX
22992 コードで、コマンド
22993 \series bold
22994
22995 \backslash
22996 columnbreak{}
22997 \series default
22998 を挿入すれば、強制的に行うことができます。ただし、多くの場合、文章中に空白が挿入されることに注意してください。
22999 \begin_inset Newline newline
23000 \end_inset
23001
23002 以下が用例です。
23003 \end_layout
23004
23005 \begin_layout Standard
23006 \begin_inset Flex Multiple Columns
23007 status open
23008
23009 \begin_layout Plain Layout
23010
23011 \size small
23012 \begin_inset Quotes eld
23013 \end_inset
23014
23015 You're surprised to see me, sir,
23016 \begin_inset Quotes erd
23017 \end_inset
23018
23019  said he, in a strange, croaking voice.
23020 \end_layout
23021
23022 \begin_layout Plain Layout
23023
23024 \size small
23025 I acknowledged that I was.
23026 \end_layout
23027
23028 \begin_layout Plain Layout
23029
23030 \size small
23031 \begin_inset Quotes eld
23032 \end_inset
23033
23034 Well, I've a conscience, sir, and when I chanced to see you go into this
23035  house, as I came hobbling after you, I thought to myself, I'll just step
23036  in and see that kind gentleman, and tell him that if I was a bit gruff
23037  in my manner there was not any harm meant, and that I am much obliged to
23038  him for picking up my books.
23039 \begin_inset Quotes erd
23040 \end_inset
23041
23042
23043 \end_layout
23044
23045 \begin_layout Plain Layout
23046
23047 \size small
23048 \begin_inset Quotes eld
23049 \end_inset
23050
23051 You make too much of a trifle,
23052 \begin_inset Quotes erd
23053 \end_inset
23054
23055  said I.
23056  
23057 \begin_inset Quotes eld
23058 \end_inset
23059
23060 May I ask how you knew who I was?
23061 \begin_inset Quotes erd
23062 \end_inset
23063
23064  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
23065 \begin_inset ERT
23066 status collapsed
23067
23068 \begin_layout Plain Layout
23069
23070
23071 \backslash
23072 columnbreak{}
23073 \end_layout
23074
23075 \end_inset
23076
23077
23078 \end_layout
23079
23080 \begin_layout Plain Layout
23081
23082 \size small
23083 \begin_inset Quotes eld
23084 \end_inset
23085
23086 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23087  you'll find my little bookshop at the corner of Church Street, and very
23088  happy to see you, I am sure.
23089  Maybe you collect yourself, sir.
23090  Here's 
23091 \noun on
23092 British
23093 \begin_inset space ~
23094 \end_inset
23095
23096 Birds
23097 \noun default
23098 , and 
23099 \noun on
23100 Catullus
23101 \noun default
23102 , and 
23103 \noun on
23104 The Holy War
23105 \noun default
23106 –a bargain, every one of them.
23107  With five volumes you could just fill that gap on that second shelf.
23108  It looks untidy, does it not, sir?
23109 \begin_inset Quotes erd
23110 \end_inset
23111
23112
23113 \end_layout
23114
23115 \end_inset
23116
23117
23118 \end_layout
23119
23120 \begin_layout Subsubsection
23121 段間隔
23122 \end_layout
23123
23124 \begin_layout Standard
23125 段幅は自動的に計算されますが、段の間の余白は指定することができます。これは、長さ
23126 \series bold
23127
23128 \backslash
23129 columnsep
23130 \series default
23131 を変更することで実現できます。既定値は10
23132 \begin_inset space \thinspace{}
23133 \end_inset
23134
23135 ptです。以下は
23136 \series bold
23137
23138 \backslash
23139 columnsep
23140 \series default
23141 を3
23142 \begin_inset space \thinspace{}
23143 \end_inset
23144
23145 cmに設定した例です。
23146 \end_layout
23147
23148 \begin_layout Standard
23149 \begin_inset ERT
23150 status open
23151
23152 \begin_layout Plain Layout
23153
23154
23155 \backslash
23156 setlength{
23157 \backslash
23158 columnsep}{3cm}
23159 \end_layout
23160
23161 \end_inset
23162
23163
23164 \end_layout
23165
23166 \begin_layout Standard
23167 \begin_inset Flex Multiple Columns
23168 status open
23169
23170 \begin_layout Plain Layout
23171
23172 \size small
23173 My observations of No.
23174 \begin_inset space \space{}
23175 \end_inset
23176
23177 427 Park Lane did little to clear up the problem in which I was interested.
23178  The house was separated from the street by a low wall and railing, the
23179  whole not more than five feet high.
23180  It was perfectly easy, therefore, for anyone to get into the garden, but
23181  the window was entirely inaccessible, since there was no water pipe or
23182  anything which could help the most active man to climb it.
23183  More puzzled than ever, I retraced my steps to Kensington.
23184  I had not been in my study five minutes when the maid entered to say that
23185  a person desired to see me.
23186  To my astonishment it was none other than my strange old book collector,
23187  his sharp, wizened face peering out from a frame of white hair, and his
23188  precious volumes, a dozen of them at least, wedged under his right arm.
23189 \end_layout
23190
23191 \end_inset
23192
23193
23194 \end_layout
23195
23196 \begin_layout Standard
23197 \begin_inset ERT
23198 status collapsed
23199
23200 \begin_layout Plain Layout
23201
23202
23203 \backslash
23204 setlength{
23205 \backslash
23206 columnsep}{10pt}
23207 \end_layout
23208
23209 \end_inset
23210
23211
23212 \begin_inset Note Note
23213 status collapsed
23214
23215 \begin_layout Plain Layout
23216
23217 \lang english
23218 go back to the default
23219 \end_layout
23220
23221 \end_inset
23222
23223
23224 \end_layout
23225
23226 \begin_layout Subsubsection
23227 垂直線
23228 \end_layout
23229
23230 \begin_layout Standard
23231 段間には、長さ
23232 \series bold
23233
23234 \backslash
23235 columnseprule
23236 \series default
23237 の幅を持つ罫線が描かれます。罫線幅を0
23238 \begin_inset space \thinspace{}
23239 \end_inset
23240
23241 ptにすると(これが既定値です)、罫線は出力されません。以下の例では、段を分かつ線は2
23242 \begin_inset space \thinspace{}
23243 \end_inset
23244
23245 pt幅に設定されています。
23246 \end_layout
23247
23248 \begin_layout Standard
23249 \begin_inset ERT
23250 status open
23251
23252 \begin_layout Plain Layout
23253
23254
23255 \backslash
23256 setlength{
23257 \backslash
23258 columnseprule}{2pt}
23259 \end_layout
23260
23261 \end_inset
23262
23263
23264 \end_layout
23265
23266 \begin_layout Standard
23267 \begin_inset Flex Multiple Columns
23268 status open
23269
23270 \begin_layout Plain Layout
23271
23272 \size small
23273 \begin_inset Quotes eld
23274 \end_inset
23275
23276 You're surprised to see me, sir,
23277 \begin_inset Quotes erd
23278 \end_inset
23279
23280  said he, in a strange, croaking voice.
23281 \end_layout
23282
23283 \begin_layout Plain Layout
23284
23285 \size small
23286 I acknowledged that I was.
23287 \end_layout
23288
23289 \begin_layout Plain Layout
23290
23291 \size small
23292 \begin_inset Quotes eld
23293 \end_inset
23294
23295 Well, I've a conscience, sir, and when I chanced to see you go into this
23296  house, as I came hobbling after you, I thought to myself, I'll just step
23297  in and see that kind gentleman, and tell him that if I was a bit gruff
23298  in my manner there was not any harm meant, and that I am much obliged to
23299  him for picking up my books.
23300 \begin_inset Quotes erd
23301 \end_inset
23302
23303
23304 \end_layout
23305
23306 \begin_layout Plain Layout
23307
23308 \size small
23309 \begin_inset Quotes eld
23310 \end_inset
23311
23312 You make too much of a trifle,
23313 \begin_inset Quotes erd
23314 \end_inset
23315
23316  said I.
23317  
23318 \begin_inset Quotes eld
23319 \end_inset
23320
23321 May I ask how you knew who I was?
23322 \begin_inset Quotes erd
23323 \end_inset
23324
23325
23326 \end_layout
23327
23328 \begin_layout Plain Layout
23329
23330 \size small
23331 \begin_inset Quotes eld
23332 \end_inset
23333
23334 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23335  you'll find my little bookshop at the corner of Church Street, and very
23336  happy to see you, I am sure.
23337  Maybe you collect yourself, sir.
23338  Here's 
23339 \noun on
23340 British
23341 \begin_inset space ~
23342 \end_inset
23343
23344 Birds
23345 \noun default
23346 , and 
23347 \noun on
23348 Catullus
23349 \noun default
23350 , and 
23351 \noun on
23352 The Holy War
23353 \noun default
23354 –a bargain, every one of them.
23355  With five volumes you could just fill that gap on that second shelf.
23356  It looks untidy, does it not, sir?
23357 \begin_inset Quotes erd
23358 \end_inset
23359
23360
23361 \end_layout
23362
23363 \end_inset
23364
23365
23366 \end_layout
23367
23368 \begin_layout Standard
23369 \begin_inset VSpace defskip
23370 \end_inset
23371
23372
23373 \end_layout
23374
23375 \begin_layout Standard
23376 罫線は、コマンド
23377 \series bold
23378
23379 \backslash
23380 columnseprulecolor
23381 \series default
23382 を再定義すれば、着色することができます。これは、多段組差込枠の前に\SpecialChar TeX
23383 コードで以下のコマンドを挿入すれば、実現できます。
23384 \begin_inset Newline newline
23385 \end_inset
23386
23387
23388 \series bold
23389
23390 \backslash
23391 renewcommand{
23392 \backslash
23393 columnseprulecolor}{
23394 \backslash
23395 color{red}}
23396 \series default
23397
23398 \begin_inset Newline newline
23399 \end_inset
23400
23401 このコマンド中の
23402 \series bold
23403 red
23404 \series default
23405 をお好みの色に変更してください。既定色とユーザー定義色の全てを使用することができます。既定色とユーザー定義色についての詳細な情報は、取扱説明書『
23406 \emph on
23407 埋込オブジェクト篇
23408 \emph default
23409 』の「
23410 \emph on
23411 色付き表
23412 \emph default
23413 」の節をご覧ください。既定色に戻すには、以下のコマンドを挿入してください。
23414 \begin_inset Newline newline
23415 \end_inset
23416
23417
23418 \series bold
23419
23420 \backslash
23421 renewcommand{
23422 \backslash
23423 columnseprulecolor}{
23424 \backslash
23425 normalcolor}
23426 \series default
23427
23428 \begin_inset Newline newline
23429 \end_inset
23430
23431 以下は、シアン色の罫線と1
23432 \begin_inset space \thinspace{}
23433 \end_inset
23434
23435 cmの段間隔を持つ例です。
23436 \end_layout
23437
23438 \begin_layout Standard
23439 \begin_inset ERT
23440 status open
23441
23442 \begin_layout Plain Layout
23443
23444
23445 \backslash
23446 setlength{
23447 \backslash
23448 columnsep}{1cm}
23449 \end_layout
23450
23451 \begin_layout Plain Layout
23452
23453
23454 \backslash
23455 renewcommand{
23456 \backslash
23457 columnseprulecolor}{
23458 \backslash
23459 color{cyan}}
23460 \end_layout
23461
23462 \end_inset
23463
23464
23465 \end_layout
23466
23467 \begin_layout Standard
23468 \begin_inset Flex Multiple Columns
23469 status open
23470
23471 \begin_layout Plain Layout
23472
23473 \size small
23474 \begin_inset Quotes eld
23475 \end_inset
23476
23477 You're surprised to see me, sir,
23478 \begin_inset Quotes erd
23479 \end_inset
23480
23481  said he, in a strange, croaking voice.
23482 \end_layout
23483
23484 \begin_layout Plain Layout
23485
23486 \size small
23487 I acknowledged that I was.
23488 \end_layout
23489
23490 \begin_layout Plain Layout
23491
23492 \size small
23493 \begin_inset Quotes eld
23494 \end_inset
23495
23496 Well, I've a conscience, sir, and when I chanced to see you go into this
23497  house, as I came hobbling after you, I thought to myself, I'll just step
23498  in and see that kind gentleman, and tell him that if I was a bit gruff
23499  in my manner there was not any harm meant, and that I am much obliged to
23500  him for picking up my books.
23501 \begin_inset Quotes erd
23502 \end_inset
23503
23504
23505 \end_layout
23506
23507 \begin_layout Plain Layout
23508
23509 \size small
23510 \begin_inset Quotes eld
23511 \end_inset
23512
23513 You make too much of a trifle,
23514 \begin_inset Quotes erd
23515 \end_inset
23516
23517  said I.
23518  
23519 \begin_inset Quotes eld
23520 \end_inset
23521
23522 May I ask how you knew who I was?
23523 \begin_inset Quotes erd
23524 \end_inset
23525
23526
23527 \end_layout
23528
23529 \begin_layout Plain Layout
23530
23531 \size small
23532 \begin_inset Quotes eld
23533 \end_inset
23534
23535 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23536  you'll find my little bookshop at the corner of Church Street, and very
23537  happy to see you, I am sure.
23538  Maybe you collect yourself, sir.
23539  Here's 
23540 \noun on
23541 British
23542 \begin_inset space ~
23543 \end_inset
23544
23545 Birds
23546 \noun default
23547 , and 
23548 \noun on
23549 Catullus
23550 \noun default
23551 , and 
23552 \noun on
23553 The Holy War
23554 \noun default
23555 –a bargain, every one of them.
23556  With five volumes you could just fill that gap on that second shelf.
23557  It looks untidy, does it not, sir?
23558 \begin_inset Quotes erd
23559 \end_inset
23560
23561
23562 \end_layout
23563
23564 \end_inset
23565
23566
23567 \end_layout
23568
23569 \begin_layout Standard
23570 \begin_inset ERT
23571 status collapsed
23572
23573 \begin_layout Plain Layout
23574
23575
23576 \backslash
23577 setlength{
23578 \backslash
23579 columnseprule}{0pt}
23580 \end_layout
23581
23582 \begin_layout Plain Layout
23583
23584
23585 \backslash
23586 renewcommand{
23587 \backslash
23588 columnseprulecolor}{
23589 \backslash
23590 normalcolor}
23591 \end_layout
23592
23593 \end_inset
23594
23595
23596 \begin_inset Note Note
23597 status collapsed
23598
23599 \begin_layout Plain Layout
23600
23601 \lang english
23602 go back to the default
23603 \end_layout
23604
23605 \end_inset
23606
23607
23608 \end_layout
23609
23610 \begin_layout Standard
23611 \begin_inset Newpage newpage
23612 \end_inset
23613
23614
23615 \end_layout
23616
23617 \begin_layout Section
23618 標準的でない形の段落
23619 \end_layout
23620
23621 \begin_layout Standard
23622 \noindent
23623 \SpecialChar LaTeX
23624 は、他のテキストプロセッサと同様に、既定で長方形の段落を使用します。しかし、例えば、ポスターや招待状、詩などの特殊な場合には、段落の形を好きなように変えることが
23625 できます。これは、文書設定で
23626 \family sans
23627 任意設定の段落形
23628 \family default
23629 モジュールを読み込んで、\SpecialChar LaTeX
23630 パッケージ
23631 \series bold
23632 shapepar
23633 \series default
23634 を使用させるようにすれば、実現できます。
23635 \end_layout
23636
23637 \begin_layout Subsection
23638 既定の形
23639 \end_layout
23640
23641 \begin_layout Standard
23642
23643 \series bold
23644 shapepar
23645 \series default
23646 は、以下の形を提供しています。
23647 \end_layout
23648
23649 \begin_layout Standard
23650 \begin_inset Tabular
23651 <lyxtabular version="3" rows="13" columns="3">
23652 <features booktabs="true" islongtable="true" longtabularalignment="center">
23653 <column alignment="center" valignment="middle" width="16col%">
23654 <column alignment="center" valignment="middle" width="40col%">
23655 <column alignment="center" valignment="middle" width="35col%">
23656 <row endhead="true">
23657 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23658 \begin_inset Text
23659
23660 \begin_layout Plain Layout
23661 名称
23662 \end_layout
23663
23664 \end_inset
23665 </cell>
23666 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23667 \begin_inset Text
23668
23669 \begin_layout Plain Layout
23670 説明
23671 \end_layout
23672
23673 \end_inset
23674 </cell>
23675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23676 \begin_inset Text
23677
23678 \begin_layout Plain Layout
23679 備考
23680 \end_layout
23681
23682 \end_inset
23683 </cell>
23684 </row>
23685 <row>
23686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23687 \begin_inset Text
23688
23689 \begin_layout Plain Layout
23690 CDlabel
23691 \end_layout
23692
23693 \end_inset
23694 </cell>
23695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23696 \begin_inset Text
23697
23698 \begin_layout Plain Layout
23699 丸い穴の開いたドーナツ型(CD/DVD大)
23700 \end_layout
23701
23702 \end_inset
23703 </cell>
23704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23705 \begin_inset Text
23706
23707 \begin_layout Plain Layout
23708 伸縮不可。多くの文字を入れられないことに注意。
23709 \end_layout
23710
23711 \end_inset
23712 </cell>
23713 </row>
23714 <row>
23715 <cell alignment="center" valignment="top" topline="true" usebox="none">
23716 \begin_inset Text
23717
23718 \begin_layout Plain Layout
23719 Circle
23720 \end_layout
23721
23722 \end_inset
23723 </cell>
23724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23725 \begin_inset Text
23726
23727 \begin_layout Plain Layout
23728
23729 \end_layout
23730
23731 \end_inset
23732 </cell>
23733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23734 \begin_inset Text
23735
23736 \begin_layout Plain Layout
23737 脆弱。計算に失敗することも。
23738 \end_layout
23739
23740 \end_inset
23741 </cell>
23742 </row>
23743 <row>
23744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23745 \begin_inset Text
23746
23747 \begin_layout Plain Layout
23748 Diamond
23749 \end_layout
23750
23751 \end_inset
23752 </cell>
23753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23754 \begin_inset Text
23755
23756 \begin_layout Plain Layout
23757 菱形(シンボル的に
23758 \begin_inset Quotes eld
23759 \end_inset
23760
23761 diamond
23762 \begin_inset Quotes erd
23763 \end_inset
23764
23765 と表記)
23766 \end_layout
23767
23768 \end_inset
23769 </cell>
23770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23771 \begin_inset Text
23772
23773 \begin_layout Plain Layout
23774 -
23775 \end_layout
23776
23777 \end_inset
23778 </cell>
23779 </row>
23780 <row>
23781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23782 \begin_inset Text
23783
23784 \begin_layout Plain Layout
23785 Heart
23786 \end_layout
23787
23788 \end_inset
23789 </cell>
23790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23791 \begin_inset Text
23792
23793 \begin_layout Plain Layout
23794 ハート型
23795 \end_layout
23796
23797 \end_inset
23798 </cell>
23799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23800 \begin_inset Text
23801
23802 \begin_layout Plain Layout
23803 -
23804 \end_layout
23805
23806 \end_inset
23807 </cell>
23808 </row>
23809 <row>
23810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23811 \begin_inset Text
23812
23813 \begin_layout Plain Layout
23814 Hexagon
23815 \end_layout
23816
23817 \end_inset
23818 </cell>
23819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23820 \begin_inset Text
23821
23822 \begin_layout Plain Layout
23823 六角形
23824 \end_layout
23825
23826 \end_inset
23827 </cell>
23828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23829 \begin_inset Text
23830
23831 \begin_layout Plain Layout
23832 -
23833 \end_layout
23834
23835 \end_inset
23836 </cell>
23837 </row>
23838 <row>
23839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23840 \begin_inset Text
23841
23842 \begin_layout Plain Layout
23843 Nut
23844 \end_layout
23845
23846 \end_inset
23847 </cell>
23848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23849 \begin_inset Text
23850
23851 \begin_layout Plain Layout
23852 ナット型(丸い穴の開いた六角形)
23853 \end_layout
23854
23855 \end_inset
23856 </cell>
23857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23858 \begin_inset Text
23859
23860 \begin_layout Plain Layout
23861 -
23862 \end_layout
23863
23864 \end_inset
23865 </cell>
23866 </row>
23867 <row>
23868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23869 \begin_inset Text
23870
23871 \begin_layout Plain Layout
23872 Square
23873 \end_layout
23874
23875 \end_inset
23876 </cell>
23877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23878 \begin_inset Text
23879
23880 \begin_layout Plain Layout
23881 正方形
23882 \end_layout
23883
23884 \end_inset
23885 </cell>
23886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23887 \begin_inset Text
23888
23889 \begin_layout Plain Layout
23890 -
23891 \end_layout
23892
23893 \end_inset
23894 </cell>
23895 </row>
23896 <row>
23897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23898 \begin_inset Text
23899
23900 \begin_layout Plain Layout
23901 Star
23902 \end_layout
23903
23904 \end_inset
23905 </cell>
23906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23907 \begin_inset Text
23908
23909 \begin_layout Plain Layout
23910 五芒星
23911 \end_layout
23912
23913 \end_inset
23914 </cell>
23915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23916 \begin_inset Text
23917
23918 \begin_layout Plain Layout
23919 -
23920 \end_layout
23921
23922 \end_inset
23923 </cell>
23924 </row>
23925 <row>
23926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23927 \begin_inset Text
23928
23929 \begin_layout Plain Layout
23930 Candle
23931 \end_layout
23932
23933 \end_inset
23934 </cell>
23935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23936 \begin_inset Text
23937
23938 \begin_layout Plain Layout
23939 燃えるろうそく
23940 \end_layout
23941
23942 \end_inset
23943 </cell>
23944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23945 \begin_inset Text
23946
23947 \begin_layout Plain Layout
23948 -
23949 \end_layout
23950
23951 \end_inset
23952 </cell>
23953 </row>
23954 <row>
23955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23956 \begin_inset Text
23957
23958 \begin_layout Plain Layout
23959 Drop down/up
23960 \end_layout
23961
23962 \end_inset
23963 </cell>
23964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23965 \begin_inset Text
23966
23967 \begin_layout Plain Layout
23968 雫型/逆雫型
23969 \end_layout
23970
23971 \end_inset
23972 </cell>
23973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23974 \begin_inset Text
23975
23976 \begin_layout Plain Layout
23977 脆弱。計算に失敗することも。
23978 \end_layout
23979
23980 \end_inset
23981 </cell>
23982 </row>
23983 <row>
23984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23985 \begin_inset Text
23986
23987 \begin_layout Plain Layout
23988 \SpecialChar TeX
23989
23990 \end_layout
23991
23992 \end_inset
23993 </cell>
23994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23995 \begin_inset Text
23996
23997 \begin_layout Plain Layout
23998 \SpecialChar TeX
23999 ロゴ
24000 \end_layout
24001
24002 \end_inset
24003 </cell>
24004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24005 \begin_inset Text
24006
24007 \begin_layout Plain Layout
24008 -
24009 \end_layout
24010
24011 \end_inset
24012 </cell>
24013 </row>
24014 <row>
24015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24016 \begin_inset Text
24017
24018 \begin_layout Plain Layout
24019 Triangle up/down/
24020 \begin_inset Newline newline
24021 \end_inset
24022
24023 left/right
24024 \end_layout
24025
24026 \end_inset
24027 </cell>
24028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24029 \begin_inset Text
24030
24031 \begin_layout Plain Layout
24032 各方向の三角形
24033 \end_layout
24034
24035 \end_inset
24036 </cell>
24037 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24038 \begin_inset Text
24039
24040 \begin_layout Plain Layout
24041 -
24042 \end_layout
24043
24044 \end_inset
24045 </cell>
24046 </row>
24047 </lyxtabular>
24048
24049 \end_inset
24050
24051
24052 \end_layout
24053
24054 \begin_layout Standard
24055 段落に形を適用するには、\SpecialChar LyX
24056 ツールバー中の環境プルダウンボックスから形を選んでください。
24057 \end_layout
24058
24059 \begin_layout Standard
24060 \begin_inset Newpage newpage
24061 \end_inset
24062
24063
24064 \end_layout
24065
24066 \begin_layout Standard
24067 以下は、ナット型の段落の例です。
24068 \end_layout
24069
24070 \begin_layout Standard
24071 \begin_inset VSpace bigskip
24072 \end_inset
24073
24074
24075 \end_layout
24076
24077 \begin_layout Nut
24078
24079 \lang latin
24080 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24081  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24082  voluptua.
24083  At vero eos et accusam et justo duo dolores et ea rebum.
24084  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24085  sit amet.
24086  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24087  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24088  voluptua.
24089 \end_layout
24090
24091 \begin_layout Standard
24092 \begin_inset VSpace bigskip
24093 \end_inset
24094
24095
24096 \end_layout
24097
24098 \begin_layout Standard
24099 \begin_inset Note Greyedout
24100 status open
24101
24102 \begin_layout Plain Layout
24103
24104 \series bold
24105 【註】
24106 \series default
24107 shapepar段落は改頁にまたがることはできません。
24108 \end_layout
24109
24110 \end_inset
24111
24112
24113 \end_layout
24114
24115 \begin_layout Standard
24116 \begin_inset VSpace bigskip
24117 \end_inset
24118
24119
24120 \end_layout
24121
24122 \begin_layout Standard
24123
24124 \series bold
24125 shapepar
24126 \series default
24127 は、段落中にどれだけ文章が含まれようとも、常に形を維持しようとします。したがって、段落の大きさは、含まれている文章量によって変化しますので、段落の大きさがページ
24128 余白にはみ出してしまうことがあります。寸法が伸縮することを示すために、文章量を二倍にした例を見てみましょう。
24129 \end_layout
24130
24131 \begin_layout Standard
24132 \begin_inset Newpage newpage
24133 \end_inset
24134
24135
24136 \end_layout
24137
24138 \begin_layout Nut
24139
24140 \lang latin
24141 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24142  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24143  voluptua.
24144  At vero eos et accusam et justo duo dolores et ea rebum.
24145  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24146  sit amet.
24147  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24148  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24149  voluptua.
24150  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24151  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24152  voluptua.
24153  At vero eos et accusam et justo duo dolores et ea rebum.
24154  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24155  sit amet.
24156  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24157  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24158  voluptua.
24159 \end_layout
24160
24161 \begin_layout Standard
24162 \begin_inset VSpace bigskip
24163 \end_inset
24164
24165
24166 \end_layout
24167
24168 \begin_layout Standard
24169 ただし、
24170 \family sans
24171 CDlabel
24172 \family default
24173 形は例外です。これは、CD/DVDの寸法に収まらなくてはならないので、伸縮しません。したがって、形に収まる文章量は限られています。
24174 \begin_inset Newline newline
24175 \end_inset
24176
24177
24178 \family sans
24179 drop
24180 \family default
24181 形と
24182 \family sans
24183 circle
24184 \family default
24185 形は脆弱で、文章量によっては寸法計算が失敗する可能性があります。この場合、
24186 \begin_inset Quotes eld
24187 \end_inset
24188
24189 Arithmetic overflow
24190 \begin_inset Quotes erd
24191 \end_inset
24192
24193 という\SpecialChar LaTeX
24194 エラーが発生します。この時は、文章の一部を追加したり削除したりするか、どれもうまくいかなければ別の形を使用してください。
24195 \end_layout
24196
24197 \begin_layout Standard
24198 \begin_inset VSpace bigskip
24199 \end_inset
24200
24201
24202 \end_layout
24203
24204 \begin_layout Standard
24205 先端のある形では、先端部の文字列で、\SpecialChar LaTeX
24206 のハイフネーションルーチンが失敗することがあります。したがって、この部分の文章には、ハイフネーション位置
24207 \family sans
24208 (
24209 \begin_inset Info
24210 type  "shortcut"
24211 arg   "specialchar-insert hyphenation"
24212 \end_inset
24213
24214
24215 \family default
24216 )を指定することが往々にして必要になります。
24217 \end_layout
24218
24219 \begin_layout Standard
24220 \begin_inset VSpace bigskip
24221 \end_inset
24222
24223
24224 \end_layout
24225
24226 \begin_layout Standard
24227 Shapepar段落は、常に中央揃えか、左の縁が左ページ余白に接するように配置されます。したがって、これらの段落を揃えるのに段落ダイアログを使用することはできま
24228 せん。解決方法としては、段落をミニページかparboxの中において、このボックスを揃えることです。ここでの問題は、ボックスの正しい幅を見出すことです。もしボック
24229 スの幅が広すぎれば、ボックスを中央揃えにしたとしても、ボックスの左側が付いてしまうので中央揃えになりません。そこで、正しい幅を見出すまでは、若干試行錯誤しなくて
24230 はならないかもしれません。以下は、二つのハート形の段落です。一つ目は揃え指定がなく、二つ目は右揃えにしてあります。
24231 \end_layout
24232
24233 \begin_layout Standard
24234 \begin_inset Newpage newpage
24235 \end_inset
24236
24237
24238 \end_layout
24239
24240 \begin_layout Heart
24241 \noindent
24242
24243 \lang latin
24244 Lo\SpecialChar softhyphen
24245 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24246  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24247  voluptua.
24248  At vero eos et accusam et justo duo dolores et ea rebum.
24249  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24250  sit amet.
24251 \end_layout
24252
24253 \begin_layout Standard
24254 \begin_inset VSpace bigskip
24255 \end_inset
24256
24257
24258 \end_layout
24259
24260 \begin_layout Standard
24261 \noindent
24262 \align right
24263 \begin_inset Box Frameless
24264 position "t"
24265 hor_pos "c"
24266 has_inner_box 1
24267 inner_pos "t"
24268 use_parbox 1
24269 use_makebox 0
24270 width "42col%"
24271 special "none"
24272 height "1in"
24273 height_special "totalheight"
24274 thickness "0.4pt"
24275 separation "3pt"
24276 shadowsize "4pt"
24277 framecolor "black"
24278 backgroundcolor "none"
24279 status open
24280
24281 \begin_layout Heart
24282 \noindent
24283
24284 \lang latin
24285 Lo\SpecialChar softhyphen
24286 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24287  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24288  voluptua.
24289  At vero eos et accusam et justo duo dolores et ea rebum.
24290  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24291  sit amet.
24292 \end_layout
24293
24294 \end_inset
24295
24296
24297 \end_layout
24298
24299 \begin_layout Subsection
24300 任意の形
24301 \end_layout
24302
24303 \begin_layout Standard
24304 ユーザーは、どのような形であれ、定義することができます。これを手動で行うのは、全ての座標を指定しなくてはならないので、かなりの労力を必要とします。しかし、以下の
24305 ように、コンピューターに座標を計算させる方法もあります。
24306 \end_layout
24307
24308 \begin_layout Enumerate
24309 プログラム
24310 \begin_inset CommandInset href
24311 LatexCommand href
24312 name "Jpgfdraw"
24313 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24314
24315 \end_inset
24316
24317 を導入します。
24318 \end_layout
24319
24320 \begin_layout Enumerate
24321
24322 \family sans
24323 Jpgfdraw
24324 \family default
24325 内で、メニュー
24326 \family sans
24327 Te
24328 \begin_inset ERT
24329 status collapsed
24330
24331 \begin_layout Plain Layout
24332
24333 {}
24334 \end_layout
24335
24336 \end_inset
24337
24338 X/LaT
24339 \begin_inset ERT
24340 status collapsed
24341
24342 \begin_layout Plain Layout
24343
24344 {}
24345 \end_layout
24346
24347 \end_inset
24348
24349 eX\SpecialChar menuseparator
24350 Settings\SpecialChar menuseparator
24351 Set Normal Size
24352 \family default
24353 で文書中で使用しているフォント寸を選択します。例えば、この文書は12
24354 \begin_inset space \thinspace{}
24355 \end_inset
24356
24357 pt寸を使用しています。
24358 \end_layout
24359
24360 \begin_layout Enumerate
24361 形を描きます。
24362 \end_layout
24363
24364 \begin_layout Enumerate
24365 メニュー
24366 \family sans
24367 Te
24368 \begin_inset ERT
24369 status collapsed
24370
24371 \begin_layout Plain Layout
24372
24373 {}
24374 \end_layout
24375
24376 \end_inset
24377
24378 X/LaT
24379 \begin_inset ERT
24380 status collapsed
24381
24382 \begin_layout Plain Layout
24383
24384 {}
24385 \end_layout
24386
24387 \end_inset
24388
24389 eX\SpecialChar menuseparator
24390 Shapepar
24391 \family default
24392 を使用して、形の座標をエクスポートします。現れるダイアログで、形の外枠を座標に使うか、パス自体を使うかを指定します。
24393 \begin_inset Foot
24394 status collapsed
24395
24396 \begin_layout Plain Layout
24397 詳細については、
24398 \begin_inset CommandInset href
24399 LatexCommand href
24400 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24401
24402 \end_inset
24403
24404 を参照してください。
24405 \end_layout
24406
24407 \end_inset
24408
24409
24410 \end_layout
24411
24412 \begin_layout Standard
24413 座標は\SpecialChar TeX
24414 ファイルに書き込まれます。これを\SpecialChar LyX
24415 文書で使用するには、
24416 \end_layout
24417
24418 \begin_layout Enumerate
24419 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます。
24420 \end_layout
24421
24422 \begin_layout Enumerate
24423 \SpecialChar LyX
24424
24425 \family sans
24426 挿入\SpecialChar menuseparator
24427 ファイル\SpecialChar menuseparator
24428 子文書
24429 \family default
24430 メニューでファイルを選択し、
24431 \family sans
24432 取り込みの型
24433 \family default
24434 として
24435 \family sans
24436 Input
24437 \family default
24438 を選択してください。
24439 \end_layout
24440
24441 \begin_layout Standard
24442 \begin_inset VSpace defskip
24443 \end_inset
24444
24445
24446 \end_layout
24447
24448 \begin_layout Standard
24449 \begin_inset Note Greyedout
24450 status open
24451
24452 \begin_layout Plain Layout
24453
24454 \series bold
24455 【註】
24456 \series default
24457 変更した形は、現在の段落にのみ適用されます。次の段落では全て通常に戻ります。したがって、段落定義ファイルは、形を変えたい段落全てで読み込まれなくてはなりません。
24458 \end_layout
24459
24460 \end_inset
24461
24462
24463 \end_layout
24464
24465 \begin_layout Standard
24466 \begin_inset VSpace bigskip
24467 \end_inset
24468
24469
24470 \end_layout
24471
24472 \begin_layout Standard
24473 以下の用例をご覧ください。
24474 \end_layout
24475
24476 \begin_layout Standard
24477 \begin_inset VSpace bigskip
24478 \end_inset
24479
24480
24481 \end_layout
24482
24483 \begin_layout Standard
24484 \begin_inset CommandInset include
24485 LatexCommand input
24486 filename "../SpecialParagraphShape.tex"
24487
24488 \end_inset
24489
24490
24491 \lang latin
24492 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24493  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24494  voluptua.
24495  At vero eos et accusam et justo duo dolores et ea rebum.
24496  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24497  sit amet.
24498  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24499  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24500  voluptua.
24501 \end_layout
24502
24503 \begin_layout Standard
24504 \begin_inset VSpace bigskip
24505 \end_inset
24506
24507
24508 \end_layout
24509
24510 \begin_layout Standard
24511
24512 \series bold
24513 【ヒント】
24514 \family sans
24515 \series default
24516 Jpgfdraw
24517 \family default
24518 で複雑な形を描く場合、まず形を好きなプログラムで描き、出来上がった画像を
24519 \family sans
24520 Jpgfdraw
24521 \family default
24522 に読み込む方法があります。この場合、画像の外枠に沿って、直線またはスプラインを描くだけですみます。
24523 \end_layout
24524
24525 \begin_layout Standard
24526 \begin_inset VSpace bigskip
24527 \end_inset
24528
24529
24530 \end_layout
24531
24532 \begin_layout Standard
24533
24534 \family sans
24535 任意の段落形
24536 \family default
24537 モジュールは、
24538 \family sans
24539 shapepar
24540 \family default
24541
24542 \family sans
24543 Shapepar
24544 \family default
24545 の二つのコマンドも提供していて、任意の形を座標毎に定義するのに使用することができます。
24546 \begin_inset Foot
24547 status collapsed
24548
24549 \begin_layout Plain Layout
24550 これらのコマンドは、上述の全ての形で内部的に使用されています。
24551 \end_layout
24552
24553 \end_inset
24554
24555 これらのスタイルがどのように使われていて、どのような設定ができるのかについての詳しい情報は、
24556 \series bold
24557 shapepar
24558 \series default
24559 パッケージの取扱説明書
24560 \begin_inset CommandInset citation
24561 LatexCommand cite
24562 key "shapepar"
24563
24564 \end_inset
24565
24566 をご覧ください。
24567 \end_layout
24568
24569 \begin_layout Bibliography
24570 \begin_inset CommandInset bibitem
24571 LatexCommand bibitem
24572 key "multicol"
24573
24574 \end_inset
24575
24576 \SpecialChar LaTeX
24577 パッケージ
24578 \begin_inset CommandInset href
24579 LatexCommand href
24580 name "multicol"
24581 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24582
24583 \end_inset
24584
24585 の取扱説明書
24586 \end_layout
24587
24588 \begin_layout Bibliography
24589 \begin_inset CommandInset bibitem
24590 LatexCommand bibitem
24591 key "shapepar"
24592
24593 \end_inset
24594
24595 \SpecialChar LaTeX
24596 パッケージ
24597 \begin_inset CommandInset href
24598 LatexCommand href
24599 name "shapepar"
24600 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
24601
24602 \end_inset
24603
24604 の取扱説明書
24605 \end_layout
24606
24607 \end_body
24608 \end_document