]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
Updates to Japanese docs and po file, from Koji.
[lyx.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 503
3 \begin_document
4 \begin_header
5 \origin unavailable
6 \textclass scrbook
7 \begin_preamble
8 % DO NOT ALTER THIS PREAMBLE!!!
9 %
10 % This preamble is designed to ensure that the manual prints
11 % out as advertised. If you mess with this preamble,
12 % parts of the manual may not print out as expected.  If you
13 % have problems LaTeXing this file, please contact 
14 % the documentation team
15 % email: lyx-docs@lists.lyx.org
16
17 \IfFileExists{pxjahyper.sty}
18 {\usepackage{pxjahyper}}
19
20 % the pages of the TOC are numbered roman
21 % and a PDF-bookmark for the TOC is added
22 \pagenumbering{roman}
23 \let\myTOC\tableofcontents
24 \renewcommand{\tableofcontents}{%
25  \pdfbookmark[1]{\contentsname}{}
26  \myTOC
27  \cleardoublepage
28  \pagenumbering{arabic}}
29
30 % extra space for tables
31 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
32
33 \usepackage{t1enc}
34 \end_preamble
35 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
36 \use_default_options false
37 \begin_modules
38 logicalmkup
39 theorems-ams
40 theorems-ams-extended
41 multicol
42 shapepar
43 \end_modules
44 \maintain_unincluded_children false
45 \begin_local_layout
46 Format 35
47 InsetLayout             Flex:MenuItem
48 LyxType         charstyle
49 LabelString           menu
50 LatexType             command
51 LatexName             menuitem
52 Font
53 Family              Sans
54 EndFont
55 Preamble
56 \newcommand*{\menuitem}[1]{{\sffamily #1}}
57 EndPreamble
58 End
59 InsetLayout             Flex:Ruby
60 LyxType         charstyle
61 LatexType               command
62 LatexName               ruby
63 BgColor         none
64 LabelString             "ルビ"
65 Decoration              Conglomerate
66 Argument post:1
67 LabelString     "ルビ文"
68 MenuString      "ルビ文(S)|S"
69 Decoration      Conglomerate
70 Font
71 Size            tiny
72 EndFont
73 LabelFont
74 Size            tiny
75 EndFont
76 Mandatory       1
77 EndArgument
78 Preamble
79 \IfFileExists{okumacro.sty}
80 {\usepackage{okumacro}}
81 {\newcommand{\ruby}[2]{#2}}
82 EndPreamble
83 End
84 \end_local_layout
85 \language japanese
86 \language_package default
87 \inputencoding auto
88 \fontencoding global
89 \font_roman "default" "default"
90 \font_sans "default" "default"
91 \font_typewriter "default" "default"
92 \font_math "auto" "auto"
93 \font_default_family default
94 \use_non_tex_fonts false
95 \font_sc false
96 \font_osf false
97 \font_sf_scale 100 100
98 \font_tt_scale 100 100
99 \graphics default
100 \default_output_format default
101 \output_sync 0
102 \bibtex_command default
103 \index_command default
104 \paperfontsize 12
105 \spacing single
106 \use_hyperref true
107 \pdf_title "LyX's Additional Features manual"
108 \pdf_author "LyX Team"
109 \pdf_subject "LyX's additional features documentation"
110 \pdf_keywords "LyX, Documentation, Additional"
111 \pdf_bookmarks false
112 \pdf_bookmarksnumbered true
113 \pdf_bookmarksopen false
114 \pdf_bookmarksopenlevel 1
115 \pdf_breaklinks false
116 \pdf_pdfborder false
117 \pdf_colorlinks true
118 \pdf_backref false
119 \pdf_pdfusetitle false
120 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
121 \papersize default
122 \use_geometry false
123 \use_package amsmath 1
124 \use_package amssymb 1
125 \use_package cancel 0
126 \use_package esint 0
127 \use_package mathdots 1
128 \use_package mathtools 0
129 \use_package mhchem 1
130 \use_package stackrel 0
131 \use_package stmaryrd 0
132 \use_package undertilde 0
133 \cite_engine basic
134 \cite_engine_type default
135 \biblio_style plain
136 \use_bibtopic false
137 \use_indices false
138 \paperorientation portrait
139 \suppress_date false
140 \justification true
141 \use_refstyle 0
142 \notefontcolor #0000ff
143 \index 索引
144 \shortcut idx
145 \color #008000
146 \end_index
147 \secnumdepth 3
148 \tocdepth 3
149 \paragraph_separation indent
150 \paragraph_indentation default
151 \quotes_language english
152 \papercolumns 1
153 \papersides 2
154 \paperpagestyle headings
155 \tracking_changes false
156 \output_changes false
157 \html_math_output 0
158 \html_css_as_file 0
159 \html_be_strict true
160 \end_header
161
162 \begin_body
163
164 \begin_layout Title
165 \SpecialChar LyX
166 の高度な機能
167 \begin_inset Newline newline
168 \end_inset
169
170
171 \size large
172 第2.2.x版
173 \end_layout
174
175 \begin_layout Author
176 \SpecialChar LyX
177 プロジェクトチーム
178 \begin_inset Foot
179 status collapsed
180
181 \begin_layout Plain Layout
182 このファイルは主にRichard Heckによって管理されています。コメントをされたい場合や誤りを発見された場合には、\SpecialChar LyX
183 文書化メーリングリスト
184 \begin_inset Flex Code
185 status open
186
187 \begin_layout Plain Layout
188 \noindent
189
190 \family typewriter
191 <lyx-docs@lists.lyx.org>
192 \end_layout
193
194 \end_inset
195
196 に英文にてお知らせ下さい。この文書の翻訳は、当初人見光太郎氏が行った貢献に基づいています。
197 \end_layout
198
199 \end_inset
200
201  
202 \end_layout
203
204 \begin_layout Standard
205 \begin_inset CommandInset toc
206 LatexCommand tableofcontents
207
208 \end_inset
209
210
211 \end_layout
212
213 \begin_layout Chapter
214 はじめに
215 \end_layout
216
217 \begin_layout Standard
218 いまお読みの取扱説明書『
219 \emph on
220 \SpecialChar LyX
221 拡張機能篇
222 \emph default
223 』は、基本的には『
224 \emph on
225 ユーザーの手引き
226 \emph default
227 』の第二部です。これらの文書を別部とした理由は、単純に『
228 \emph on
229 ユーザーの手引き
230 \emph default
231 』がすでに大部となっていることと、『
232 \emph on
233 ユーザーの手引き
234 \emph default
235 』が、ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです。一方で、\SpecialChar LyX
236 プロジェクトチームは、\SpecialChar LyX
237 を各設定ファイルと外部パッケージによって拡張
238 可能な状態にしておくことを長期的な目標にしています。つまり、ある\SpecialChar LaTeX
239 パッケージをサポートしたい場合に、\SpecialChar LyX
240 自身に変更を加えることなく、当該パッケージ用のレイアウトファイ
241 ル(ないしモジュール)を作成すればいいようにしているのです。すでにこのような形で、いくつもの新機能がユーザーによって追加されています。この取扱説明書は、そのよう
242 な形での貢献を文書化する冊子として位置付けられています。
243 \end_layout
244
245 \begin_layout Standard
246 この取扱説明書では、ファックスのサポート・バージョン管理・SGMLサポートのような、正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
247 しています。さらに、\SpecialChar LaTeX
248 の強力な機能を直接使って文書を美しく仕上げるための、\SpecialChar LaTeX
249 ツールやテクニックを述べた章も収録しています。つきつめれば、\SpecialChar LyX
250 とはあくまでWYSIWYMた
251 ることを企図しているため、\SpecialChar LaTeX
252 の全機能の一部へのインタフェースは用意するものの、すべてを用意することはないでしょう。
253 \end_layout
254
255 \begin_layout Standard
256 もし、まだ『
257 \emph on
258 はじめの一歩
259 \emph default
260 』をお読みでなかったら、この取扱説明書から読みはじめるのは誤りです。『
261 \emph on
262 はじめの一歩
263 \emph default
264 』には、全取扱説明書に共通の表記法と書式が説明されていますので、まずそれからお読みください。さらに、この取扱説明書を読もうとする前に、『
265 \emph on
266 ユーザーの手引き
267 \emph default
268 』をよくお読みになって、\SpecialChar LyX
269 の全基本機能を習得してください。
270 \end_layout
271
272 \begin_layout Standard
273 この取扱説明書の取り上げられている話題は、\SpecialChar LyX
274 が\SpecialChar LaTeX
275 にどう関わっているかに強く関係していますので、まず次章では、\SpecialChar LyX
276 の内部動作がどうなっているか、LyXに希望する\SpecialChar LaTeX
277 コードを正
278 確に生成させるにはどうしたらいいかを収録しています。本章は、あきらかに熟練\SpecialChar LyX
279 ユーザー向けの章となっています。
280 \end_layout
281
282 \begin_layout Chapter
283 \SpecialChar LyX
284 と\SpecialChar LaTeX
285
286 \end_layout
287
288 \begin_layout Section
289 \SpecialChar LyX
290 は\SpecialChar LaTeX
291 をどう使っているか
292 \end_layout
293
294 \begin_layout Standard
295 本章
296 \family roman
297 \series medium
298 \shape up
299 \size normal
300 \emph off
301 \bar no
302 \noun off
303 \color none
304 は、\SpecialChar TeX
305 熟練者と\SpecialChar LaTeX
306 に興味のある方向けの章です。ここでは、\SpecialChar LyX
307 と\SpecialChar LaTeX
308 が、印刷可能な出力を生成するのに、どのように協働しているのかを説明します。全取扱説明書中で本章だけは、\SpecialChar LaTeX
309 のこと
310 を多少なりともご存知であることを前提とします。
311 \end_layout
312
313 \begin_layout Standard
314
315 \family roman
316 \series medium
317 \shape up
318 \size normal
319 \emph off
320 \bar no
321 \noun off
322 \color none
323 かつて\SpecialChar LyX
324 は、「\SpecialChar LaTeX
325
326 \family default
327 \series default
328 \shape default
329 \size default
330 \emph default
331 \bar default
332 \noun default
333 \color inherit
334 WYSIWYM
335 \family roman
336 \series medium
337 \shape up
338 \size normal
339 \emph off
340 \bar no
341 \noun off
342 \color none
343 なフロントエンド」と呼ばれていましたが、いまではこれは正しくありません。\SpecialChar LaTeX
344 のフロントエンドは、いくつも出回っています
345 \begin_inset Foot
346 status collapsed
347
348 \begin_layout Plain Layout
349
350 \family roman
351 \series medium
352 \shape up
353 \size normal
354 \emph off
355 \bar no
356 \noun off
357 \color none
358 有名なものとしては、Linux上の\SpecialChar TeX
359 makerとkile、OSX上の\SpecialChar TeX
360 shopなどがあります。もちろんviとemacsの\SpecialChar LaTeX
361 モードも含まれます。
362 \end_layout
363
364 \end_inset
365
366 。これらは、基本的に\SpecialChar LaTeX
367 を走らせる機能を有し、編集中のファイルのエラーを表示する機能を持ったテキストエディタです。\SpecialChar LyX
368 も、エディタであり、\SpecialChar LaTeX
369 を走らせる機能を有し、ファイル
370 中のエラーを指摘しますが、それ以上にもっともっと多くのことをしてくれます。
371 \family default
372 \series default
373 \shape default
374 \size default
375 \emph default
376 \bar default
377 \noun default
378 \color inherit
379 ひとつには、
380 \family roman
381 \series medium
382 \shape up
383 \size normal
384 \emph off
385 \bar no
386 \noun off
387 \color none
388 \SpecialChar LyX
389 を効果的に使うのに、\SpecialChar LaTeX
390 の知識が必要とされないことが挙げられます。また\SpecialChar LyX
391 は、それ自身、いくつかの拡張を\SpecialChar LaTeX
392 に加えています。時間のあるときにでも、いちど以下の手順を試してみ
393 てください。まず
394 \family sans
395 \series default
396 \shape default
397 \size default
398 \emph default
399 \bar default
400 \noun default
401 \color inherit
402
403 \begin_inset Flex MenuItem
404 status collapsed
405
406 \begin_layout Plain Layout
407
408 \family sans
409 ファイル
410 \end_layout
411
412 \end_inset
413
414
415 \family roman
416 \series medium
417 \shape up
418 \size normal
419 \emph off
420 \bar no
421 \noun off
422 \color none
423 メニューから
424 \family sans
425 \series default
426 \shape default
427 \size default
428 \emph default
429 \bar default
430 \noun default
431 \color inherit
432
433 \begin_inset Flex MenuItem
434 status collapsed
435
436 \begin_layout Plain Layout
437
438 \family sans
439 エクスポート\SpecialChar menuseparator
440 \SpecialChar LaTeX
441
442 \end_layout
443
444 \end_inset
445
446
447 \family roman
448 \series medium
449 \shape up
450 \size normal
451 \emph off
452 \bar no
453 \noun off
454 \color none
455 (あるいは
456 \family sans
457 \series default
458 \shape default
459 \size default
460 \emph default
461 \bar default
462 \noun default
463 \color inherit
464
465 \begin_inset Flex MenuItem
466 status collapsed
467
468 \begin_layout Plain Layout
469
470 \family sans
471 表示\SpecialChar menuseparator
472 ソースを閲覧
473 \end_layout
474
475 \end_inset
476
477
478 \family roman
479 \series medium
480 \shape up
481 \size normal
482 \emph off
483 \bar no
484 \noun off
485 \color none
486 )を選択し、そこから出力される
487 \begin_inset Flex Code
488 status collapsed
489
490 \begin_layout Plain Layout
491
492 \family typewriter
493 .tex
494 \end_layout
495
496 \end_inset
497
498 ファイルのプリアンブルをご覧ください。\SpecialChar LyX
499 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
500 \family default
501 \series default
502 \shape default
503 \size default
504 \emph default
505 \bar default
506 \noun default
507 \color inherit
508 。これらのマクロは、文書中で使用する機能に応じて、自動的に定義されます。
509 \end_layout
510
511 \begin_layout Standard
512
513 \family roman
514 \series medium
515 \shape up
516 \size normal
517 \emph off
518 \bar no
519 \noun off
520 \color none
521 自動的に\SpecialChar LaTeX
522 を実行するコマンドが、以下のようにいくつかあります。
523 \end_layout
524
525 \begin_layout Itemize
526 \begin_inset Flex MenuItem
527 status collapsed
528
529 \begin_layout Plain Layout
530 表示\SpecialChar menuseparator
531
532 \emph on
533 書式
534 \end_layout
535
536 \end_inset
537
538
539 \end_layout
540
541 \begin_layout Itemize
542
543 \family sans
544 \begin_inset Flex MenuItem
545 status collapsed
546
547 \begin_layout Plain Layout
548
549 \bar no
550 表示\SpecialChar menuseparator
551 更新\SpecialChar menuseparator
552
553 \emph on
554 書式
555 \end_layout
556
557 \end_inset
558
559
560 \end_layout
561
562 \begin_layout Itemize
563
564 \family sans
565 \begin_inset Flex MenuItem
566 status collapsed
567
568 \begin_layout Plain Layout
569 ファイル\SpecialChar menuseparator
570 印刷
571 \end_layout
572
573 \end_inset
574
575
576 \end_layout
577
578 \begin_layout Itemize
579
580 \family sans
581 \begin_inset Flex MenuItem
582 status collapsed
583
584 \begin_layout Plain Layout
585 ファイル\SpecialChar menuseparator
586 ファックス
587 \end_layout
588
589 \end_inset
590
591
592 \end_layout
593
594 \begin_layout Standard
595
596 \family roman
597 \series medium
598 \shape up
599 \size normal
600 \emph off
601 \bar no
602 \noun off
603 \color none
604 これらは、最後に\SpecialChar LaTeX
605 を実行してからファイルに変更が加えられた場合のみ、\SpecialChar LaTeX
606 を実行します。
607 \end_layout
608
609 \begin_layout Standard
610
611 \family roman
612 \series medium
613 \shape up
614 \size normal
615 \emph off
616 \bar no
617 \noun off
618 \color none
619 \SpecialChar LyX
620 が編集中のファイルを\SpecialChar LaTeX
621 にかけるとき、\SpecialChar LyX
622 は以下の段階をふみます。
623 \end_layout
624
625 \begin_layout Enumerate
626
627 \family roman
628 \series medium
629 \shape up
630 \size normal
631 \emph off
632 \bar no
633 \noun off
634 \color none
635 文書を\SpecialChar LaTeX
636 に変換し、ファイルの拡張子を
637 \begin_inset Flex Code
638 status collapsed
639
640 \begin_layout Plain Layout
641
642 \family roman
643 \series medium
644 \shape up
645 \size normal
646 \emph off
647 \bar no
648 \noun off
649 \color none
650 .lyx
651 \end_layout
652
653 \end_inset
654
655 から
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660
661 \family roman
662 \series medium
663 \shape up
664 \size normal
665 \emph off
666 \bar no
667 \noun off
668 \color none
669 .tex
670 \end_layout
671
672 \end_inset
673
674 に変えて保存。
675 \end_layout
676
677 \begin_layout Enumerate
678
679 \family roman
680 \series medium
681 \shape up
682 \size normal
683 \emph off
684 \bar no
685 \noun off
686 \color none
687 この
688 \begin_inset Flex Code
689 status collapsed
690
691 \begin_layout Plain Layout
692
693 \family roman
694 \series medium
695 \shape up
696 \size normal
697 \emph off
698 \bar no
699 \noun off
700 \color none
701 .tex
702 \end_layout
703
704 \end_inset
705
706 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
707 を実行し、\SpecialChar LaTeX
708 ファイルをコンパイルするのに必要な他のコマンド(
709 \begin_inset Flex Code
710 status collapsed
711
712 \begin_layout Plain Layout
713
714 \family roman
715 \series medium
716 \shape up
717 \size normal
718 \emph off
719 \bar no
720 \noun off
721 \color none
722 bibtex
723 \end_layout
724
725 \end_inset
726
727
728 \begin_inset Flex Code
729 status collapsed
730
731 \begin_layout Plain Layout
732
733 \family roman
734 \series medium
735 \shape up
736 \size normal
737 \emph off
738 \bar no
739 \noun off
740 \color none
741 makeindex
742 \end_layout
743
744 \end_inset
745
746 など)を実行。。
747 \end_layout
748
749 \begin_layout Enumerate
750
751 \family roman
752 \series medium
753 \shape up
754 \size normal
755 \emph off
756 \bar no
757 \noun off
758 \color none
759 もしエラーがあれば、エラーログを表示。
760 \end_layout
761
762 \begin_layout Standard
763
764 \family roman
765 \series medium
766 \shape up
767 \size normal
768 \emph off
769 \bar no
770 \noun off
771 \color none
772 \SpecialChar LaTeX
773
774 \family sans
775 \series default
776 \shape default
777 \size default
778 \emph default
779 \bar default
780 \noun default
781 \color inherit
782
783 \begin_inset Flex MenuItem
784 status collapsed
785
786 \begin_layout Plain Layout
787
788 \family sans
789 表示\SpecialChar menuseparator
790 DVI
791 \end_layout
792
793 \end_inset
794
795
796 \family roman
797 \series medium
798 \shape up
799 \size normal
800 \emph off
801 \bar no
802 \noun off
803 \color none
804 を使用して実行した場合には、\SpecialChar LyX
805 はこの後、DVIビューアを実行してDVIファイルを表示します。
806 \begin_inset Flex MenuItem
807 status collapsed
808
809 \begin_layout Plain Layout
810
811 \family roman
812 \series medium
813 \shape up
814 \size normal
815 \emph off
816 \bar no
817 \noun off
818 \color none
819 表示\SpecialChar menuseparator
820 PostScript
821 \end_layout
822
823 \end_inset
824
825 を使用した場合には、\SpecialChar LyX
826 はさらに以下の段階をふみます。
827 \end_layout
828
829 \begin_layout Itemize
830
831 \family roman
832 \series medium
833 \shape up
834 \size normal
835 \emph off
836 \bar no
837 \noun off
838 \color none
839 \begin_inset Flex Code
840 status collapsed
841
842 \begin_layout Plain Layout
843
844 \family typewriter
845 dvips
846 \end_layout
847
848 \end_inset
849
850 を実行して、
851 \family default
852 \series default
853 \shape default
854 \size default
855 \emph default
856 \bar default
857 \noun default
858 \color inherit
859 DVI
860 \family roman
861 \series medium
862 \shape up
863 \size normal
864 \emph off
865 \bar no
866 \noun off
867 \color none
868 ファイルをPostScript®
869 \family default
870 \series default
871 \shape default
872 \size default
873 \emph default
874 \bar default
875 \noun default
876 \color inherit
877 に変換。
878 \end_layout
879
880 \begin_layout Itemize
881
882 \family roman
883 \series medium
884 \shape up
885 \size normal
886 \emph off
887 \bar no
888 \noun off
889 \color none
890 \begin_inset Flex Code
891 status collapsed
892
893 \begin_layout Plain Layout
894
895 \family typewriter
896 ghostview
897 \end_layout
898
899 \end_inset
900
901 などのPostScript®ビューアを実行して、PostScript®
902 \family default
903 \series default
904 \shape default
905 \size default
906 \emph default
907 \bar default
908 \noun default
909 \color inherit
910 ファイルを表示。
911 \end_layout
912
913 \begin_layout Standard
914 \SpecialChar LyX
915 は、他の書式を表示したりエクスポートしたりする際にも、同様のことを行います。
916 \end_layout
917
918 \begin_layout Section
919 \SpecialChar LaTeX
920 ファイルを\SpecialChar LyX
921 に読み込む
922 \end_layout
923
924 \begin_layout Standard
925 \SpecialChar LyX
926
927 \family sans
928
929 \begin_inset Flex MenuItem
930 status collapsed
931
932 \begin_layout Plain Layout
933
934 \family sans
935 ファイル\SpecialChar menuseparator
936 インポート\SpecialChar menuseparator
937 \SpecialChar LaTeX
938
939 \end_layout
940
941 \end_inset
942
943
944 \family roman
945 \series medium
946 \shape up
947 \size normal
948 \emph off
949 \bar no
950 \noun off
951 \color none
952 コマンドを使用すると、\SpecialChar LaTeX
953 ファイルを
954 \family default
955 \series default
956 \shape default
957 \size default
958 \emph default
959 \bar default
960 \noun default
961  
962 \family roman
963 \series medium
964 \shape up
965 \size normal
966 \emph off
967 \bar no
968 \noun off
969 \SpecialChar LyX
970 にインポートすることができます。このコマンドは、
971 \family typewriter
972 \series default
973 \shape default
974 \size default
975 \emph default
976 \bar default
977 \noun default
978 \color inherit
979
980 \begin_inset Flex Code
981 status collapsed
982
983 \begin_layout Plain Layout
984
985 \family typewriter
986 tex2lyx
987 \end_layout
988
989 \end_inset
990
991
992 \family roman
993 \series medium
994 \shape up
995 \size normal
996 \emph off
997 \bar no
998 \noun off
999 \color none
1000 というプログラムを呼び出し、
1001 \family typewriter
1002 \series default
1003 \shape default
1004 \size default
1005 \emph default
1006 \bar default
1007 \noun default
1008 \color inherit
1009
1010 \begin_inset Flex Code
1011 status collapsed
1012
1013 \begin_layout Plain Layout
1014
1015 \family typewriter
1016 foo.tex
1017 \end_layout
1018
1019 \end_inset
1020
1021
1022 \family default
1023 などというファイルから
1024 \begin_inset Flex Code
1025 status collapsed
1026
1027 \begin_layout Plain Layout
1028
1029 \family typewriter
1030 foo.lyx
1031 \end_layout
1032
1033 \end_inset
1034
1035 を生成します。\SpecialChar LyX
1036 は、この変換したファイルを開きます
1037 \begin_inset Foot
1038 status collapsed
1039
1040 \begin_layout Plain Layout
1041 \begin_inset Flex Code
1042 status collapsed
1043
1044 \begin_layout Plain Layout
1045 tex2lyx
1046 \end_layout
1047
1048 \end_inset
1049
1050 は、もちろんコマンドラインから実行することもできます。
1051 \end_layout
1052
1053 \end_inset
1054
1055
1056 \end_layout
1057
1058 \begin_layout Standard
1059
1060 \family typewriter
1061 \begin_inset Flex Code
1062 status collapsed
1063
1064 \begin_layout Plain Layout
1065
1066 \family typewriter
1067 tex2lyx
1068 \end_layout
1069
1070 \end_inset
1071
1072
1073 \family roman
1074 \series medium
1075 \shape up
1076 \size normal
1077 \emph off
1078 \bar no
1079 \noun off
1080 \color none
1081 は、文法的に正しい\SpecialChar LaTeX
1082 ファイルのほとんどを変換することができますが、すべてを変換できるわけではありません。
1083 \family typewriter
1084 \series default
1085 \shape default
1086 \size default
1087 \emph default
1088 \bar default
1089 \noun default
1090 \color inherit
1091
1092 \begin_inset Flex Code
1093 status collapsed
1094
1095 \begin_layout Plain Layout
1096
1097 \family typewriter
1098 tex2lyx
1099 \end_layout
1100
1101 \end_inset
1102
1103
1104 \family roman
1105 \series medium
1106 \shape up
1107 \size normal
1108 \emph off
1109 \bar no
1110 \noun off
1111 \color none
1112 は、理解不能な部分は\SpecialChar TeX
1113 コードボックスの形で残しますので、ファイルを
1114 \family typewriter
1115 \series default
1116 \shape default
1117 \size default
1118 \emph default
1119 \bar default
1120 \noun default
1121 \color inherit
1122
1123 \begin_inset Flex Code
1124 status collapsed
1125
1126 \begin_layout Plain Layout
1127
1128 \family typewriter
1129 tex2lyx
1130 \end_layout
1131
1132 \end_inset
1133
1134
1135 \family roman
1136 \series medium
1137 \shape up
1138 \size normal
1139 \emph off
1140 \bar no
1141 \noun off
1142 \color none
1143 で変換したのち、\SpecialChar TeX
1144 コードボックスを探して、手動で正しく編集してください。
1145 \end_layout
1146
1147 \begin_layout Standard
1148
1149 \family roman
1150 \series medium
1151 \shape up
1152 \size normal
1153 \emph off
1154 \bar no
1155 \noun off
1156 \color none
1157 \SpecialChar TeX
1158 コードボックスがなにかご存じなければ、次節をお読みください。
1159 \end_layout
1160
1161 \begin_layout Section
1162 \SpecialChar LaTeX
1163 コードを挿入する
1164 \begin_inset CommandInset label
1165 LatexCommand label
1166 name "sec:LaTeXコードを挿入する"
1167
1168 \end_inset
1169
1170
1171 \end_layout
1172
1173 \begin_layout Standard
1174
1175 \family roman
1176 \series medium
1177 \shape up
1178 \size normal
1179 \emph off
1180 \bar no
1181 \noun off
1182 \color none
1183 どの\SpecialChar LyX
1184 文書にもつねに\SpecialChar TeX
1185 コードを挿入することが可能であるというきわめて単純な理由によって、\SpecialChar LaTeX
1186 にできることは、つねに\SpecialChar LyX
1187 でも行うことができます。一方、\SpecialChar LyX
1188 は、すべての\SpecialChar LaTeX
1189 構成物を\SpecialChar LyX
1190 内に
1191 表示できるわけではなく、将来的にもそうならないでしょう。かりに\SpecialChar LaTeX
1192 コマンドを\SpecialChar LyX
1193 文書に挿入する必要が出てきた場合には、
1194 \begin_inset Flex Code
1195 status collapsed
1196
1197 \begin_layout Plain Layout
1198
1199 \family roman
1200 \series medium
1201 \shape up
1202 \size normal
1203 \emph off
1204 \bar no
1205 \noun off
1206 \color none
1207 \SpecialChar TeX
1208 コード
1209 \end_layout
1210
1211 \end_inset
1212
1213 ボックスを使用してください。これは、
1214 \family sans
1215 \series default
1216 \shape default
1217 \size default
1218 \emph default
1219 \bar default
1220 \noun default
1221 \color inherit
1222
1223 \begin_inset Flex MenuItem
1224 status collapsed
1225
1226 \begin_layout Plain Layout
1227
1228 \family sans
1229 挿入\SpecialChar menuseparator
1230 \SpecialChar TeX
1231 コード
1232 \end_layout
1233
1234 \end_inset
1235
1236
1237 \family roman
1238 \series medium
1239 \shape up
1240 \size normal
1241 \emph off
1242 \bar no
1243 \noun off
1244 \color none
1245 若しくは
1246 \family default
1247 \series default
1248 \shape default
1249 \size default
1250 \emph default
1251 \bar default
1252 \noun default
1253 \color inherit
1254
1255 \begin_inset Flex Ruby
1256 status collapsed
1257
1258 \begin_layout Plain Layout
1259
1260 \family roman
1261 \series medium
1262 \shape up
1263 \size normal
1264 \emph off
1265 \bar no
1266 \noun off
1267 \color none
1268 捷径
1269 \family default
1270 \series default
1271 \shape default
1272 \size default
1273 \emph default
1274 \bar default
1275 \noun default
1276 \color inherit
1277
1278 \begin_inset Argument post:1
1279 status collapsed
1280
1281 \begin_layout Plain Layout
1282 ショートカット
1283 \end_layout
1284
1285 \end_inset
1286
1287
1288 \end_layout
1289
1290 \end_inset
1291
1292
1293 \begin_inset Flex Ruby
1294 status collapsed
1295
1296 \begin_layout Plain Layout
1297
1298 \family roman
1299 \series medium
1300 \shape up
1301 \size normal
1302 \emph off
1303 \bar no
1304 \noun off
1305 \color none
1306
1307 \begin_inset Argument post:1
1308 status collapsed
1309
1310 \begin_layout Plain Layout
1311 キー
1312 \end_layout
1313
1314 \end_inset
1315
1316
1317 \end_layout
1318
1319 \end_inset
1320
1321
1322 \begin_inset Info
1323 type  "shortcut"
1324 arg   "ert-insert"
1325 \end_inset
1326
1327
1328 \family roman
1329 \series medium
1330 \shape up
1331 \size normal
1332 \emph off
1333 \bar no
1334 \noun off
1335 \color none
1336 で、文書中に挿入することができます。
1337 \end_layout
1338
1339 \begin_layout Standard
1340 以下は、\SpecialChar LaTeX
1341 コマンドを\SpecialChar LyX
1342 文書中に挿入する例です。コードは以下のようになっているとしましょう。
1343 \end_layout
1344
1345 \begin_layout LyX-Code
1346
1347 \backslash
1348 begin{tabular}{ll}
1349 \begin_inset Newline newline
1350 \end_inset
1351
1352
1353 \backslash
1354 begin{minipage}{5cm}
1355 \begin_inset Newline newline
1356 \end_inset
1357
1358 これは、ミニページ環境の例です。
1359 \begin_inset Newline newline
1360 \end_inset
1361
1362 これには、
1363 \begin_inset Newline newline
1364 \end_inset
1365
1366 (フロートでない)図表を
1367 \begin_inset Newline newline
1368 \end_inset
1369
1370 含め、ほとんど何でも
1371 \begin_inset Newline newline
1372 \end_inset
1373
1374 入れることができます。 
1375 \begin_inset Newline newline
1376 \end_inset
1377
1378
1379 \backslash
1380 end{minipage}
1381 \begin_inset Newline newline
1382 \end_inset
1383
1384 &
1385 \begin_inset Newline newline
1386 \end_inset
1387
1388
1389 \backslash
1390 begin{minipage}{5cm}
1391 \begin_inset Newline newline
1392 \end_inset
1393
1394
1395 \backslash
1396 begin{verbatim}
1397 \begin_inset Newline newline
1398 \end_inset
1399
1400
1401 \backslash
1402 begin{minipage}{5cm}
1403 \begin_inset Newline newline
1404 \end_inset
1405
1406 これは...
1407  
1408 \begin_inset Newline newline
1409 \end_inset
1410
1411
1412 \backslash
1413 end{minipage}
1414 \begin_inset Newline newline
1415 \end_inset
1416
1417
1418 \backslash
1419 end{verbatim}
1420 \begin_inset Newline newline
1421 \end_inset
1422
1423
1424 \backslash
1425 end{minipage}
1426 \begin_inset Newline newline
1427 \end_inset
1428
1429
1430 \backslash
1431 end{tabular}
1432 \end_layout
1433
1434 \begin_layout LyX-Code
1435
1436 \end_layout
1437
1438 \begin_layout Standard
1439 上記のテキストを含んだ
1440 \begin_inset Flex Code
1441 status collapsed
1442
1443 \begin_layout Plain Layout
1444 \SpecialChar TeX
1445 コード
1446 \end_layout
1447
1448 \end_inset
1449
1450 ボックスが、この段落の直後にあります。この取扱説明書を\SpecialChar LyX
1451 上でご覧になっていれば、\SpecialChar TeX
1452 コード差込枠のみが見えるはずです。印刷した取扱説明書をご覧であれば、実際の結果が見
1453 れるはずです。
1454 \end_layout
1455
1456 \begin_layout Standard
1457 \begin_inset VSpace bigskip
1458 \end_inset
1459
1460
1461 \begin_inset ERT
1462 status open
1463
1464 \begin_layout Plain Layout
1465
1466
1467 \backslash
1468 begin{tabular}{ll}
1469 \end_layout
1470
1471 \begin_layout Plain Layout
1472
1473
1474 \backslash
1475 begin{minipage}{5cm}
1476 \end_layout
1477
1478 \begin_layout Plain Layout
1479
1480 これは、ミニページ環境の例です。これには、(フロートでない)図表を含め、ほとんど何でも入れることができます。 
1481 \backslash
1482 end{minipage}
1483 \end_layout
1484
1485 \begin_layout Plain Layout
1486
1487 &
1488 \end_layout
1489
1490 \begin_layout Plain Layout
1491
1492
1493 \backslash
1494 begin{minipage}{5cm}
1495 \end_layout
1496
1497 \begin_layout Plain Layout
1498
1499
1500 \backslash
1501 begin{verbatim}
1502 \end_layout
1503
1504 \begin_layout Plain Layout
1505
1506
1507 \backslash
1508 begin{minipage}{5cm}
1509 \end_layout
1510
1511 \begin_layout Plain Layout
1512
1513 これは...
1514  
1515 \backslash
1516 end{minipage}
1517 \end_layout
1518
1519 \begin_layout Plain Layout
1520
1521
1522 \backslash
1523 end{verbatim}
1524 \end_layout
1525
1526 \begin_layout Plain Layout
1527
1528
1529 \backslash
1530 end{minipage}
1531 \end_layout
1532
1533 \begin_layout Plain Layout
1534
1535
1536 \backslash
1537 end{tabular}
1538 \end_layout
1539
1540 \end_inset
1541
1542
1543 \begin_inset VSpace bigskip
1544 \end_inset
1545
1546
1547 \end_layout
1548
1549 \begin_layout Standard
1550
1551 \family roman
1552 \series medium
1553 \shape up
1554 \size normal
1555 \emph off
1556 \bar no
1557 \noun off
1558 \color none
1559 \SpecialChar TeX
1560 コードを使用する方法に加えて、複雑な\SpecialChar LaTeX
1561 コードを含む部分を別ファイルとして作成しておき、そのファイルをインクルードするのに
1562 \begin_inset Flex MenuItem
1563 status collapsed
1564
1565 \begin_layout Plain Layout
1566
1567 \family roman
1568 \series medium
1569 \shape up
1570 \size normal
1571 \emph off
1572 \bar no
1573 \noun off
1574 \color none
1575 挿入\SpecialChar menuseparator
1576 ファイル\SpecialChar menuseparator
1577 子文書
1578 \end_layout
1579
1580 \end_inset
1581
1582 を使用する方法もあります(取り込みの型として
1583 \begin_inset Flex Code
1584 status collapsed
1585
1586 \begin_layout Plain Layout
1587
1588 \family roman
1589 \series medium
1590 \shape up
1591 \size normal
1592 \emph off
1593 \bar no
1594 \noun off
1595 \color none
1596 Input
1597 \end_layout
1598
1599 \end_inset
1600
1601 を選択しなくてはなりません)。この方法をとる場合には、.texファイルが正しく動作することが
1602 \family default
1603 \series default
1604 \shape default
1605 \size default
1606 \emph on
1607 \bar default
1608 \noun default
1609 \color inherit
1610 確認できている
1611 \family roman
1612 \series medium
1613 \shape up
1614 \size normal
1615 \emph off
1616 \bar no
1617 \noun off
1618 \color none
1619 場合のみに限った方がよいでしょう。さもないと、\SpecialChar LaTeX
1620 エラーを追跡するたいへんな作業を行わなくてはならなくなります。
1621 \end_layout
1622
1623 \begin_layout Standard
1624
1625 \family roman
1626 \series medium
1627 \shape up
1628 \size normal
1629 \emph off
1630 \bar no
1631 \noun off
1632 \color none
1633 最後に、いくつか強調しておくべきことがあります。
1634 \end_layout
1635
1636 \begin_layout Itemize
1637
1638 \family roman
1639 \series medium
1640 \shape up
1641 \size normal
1642 \emph off
1643 \bar no
1644 \noun off
1645 \color none
1646 \SpecialChar LyX
1647 は、あなたの\SpecialChar LaTeX
1648 コードが正しいかどうかを
1649 \family default
1650 \series default
1651 \shape default
1652 \size default
1653 \emph on
1654 \bar default
1655 \noun default
1656 \color inherit
1657 チェックしません
1658 \family roman
1659 \series medium
1660 \shape up
1661 \size normal
1662 \emph off
1663 \bar no
1664 \noun off
1665 \color none
1666
1667 \end_layout
1668
1669 \begin_layout Itemize
1670
1671 \family roman
1672 \series medium
1673 \shape up
1674 \size normal
1675 \emph off
1676 \bar no
1677 \noun off
1678 \color none
1679 車輪の再発明をしないようにご注意ください。
1680 \end_layout
1681
1682 \begin_layout Standard
1683
1684 \family roman
1685 \series medium
1686 \shape up
1687 \size normal
1688 \emph off
1689 \bar no
1690 \noun off
1691 \color none
1692 二番目の点に関して、\SpecialChar LyX
1693 はひじょうにたくさんの機能を装備しており、その数は増えつづけています。ご自身で\SpecialChar LaTeX
1694 コードを書かなくてはならないと思い込む前に、LyXがこれこれの
1695 機能をもっていないことを、取扱説明書で確実に確かめてください。さらに世の中には、封筒のラベルから美しい複数ページにわたる表を作るものまで、ありとあらゆることを行
1696 う膨大な数の\SpecialChar LaTeX
1697 パッケージが存在します。
1698 \family default
1699 \series default
1700 \shape default
1701 \size default
1702 \emph default
1703 \bar default
1704 \noun default
1705 \color inherit
1706 詳細については、
1707 \begin_inset CommandInset href
1708 LatexCommand href
1709 name "CTAN"
1710 target "http://www.ctan.org/"
1711
1712 \end_inset
1713
1714
1715 \family roman
1716 \series medium
1717 \shape up
1718 \size normal
1719 \emph off
1720 \bar no
1721 \noun off
1722 \color none
1723 と第
1724 \begin_inset CommandInset ref
1725 LatexCommand ref
1726 reference "chap:Special-features"
1727
1728 \end_inset
1729
1730 節をご覧ください。
1731 \end_layout
1732
1733 \begin_layout Standard
1734
1735 \family roman
1736 \series medium
1737 \shape up
1738 \size normal
1739 \emph off
1740 \bar no
1741 \noun off
1742 \color none
1743 もし、文書中で例外的に手の込んだことをなさりたければ、かならず良い\SpecialChar LaTeX
1744 関連書籍を参考とするようにしてください。『
1745 \family default
1746 \series default
1747 \shape default
1748 \size default
1749 \emph on
1750 \bar default
1751 \noun default
1752 \color inherit
1753 ユーザーの手引き
1754 \family roman
1755 \series medium
1756 \shape up
1757 \size normal
1758 \emph off
1759 \bar no
1760 \noun off
1761 \color none
1762 』の書誌情報に多くの\SpecialChar LaTeX
1763 関連書籍が引用されています。
1764 \end_layout
1765
1766 \begin_layout Section
1767 \SpecialChar LyX
1768 と\SpecialChar LaTeX
1769 プリアンブル
1770 \end_layout
1771
1772 \begin_layout Subsection
1773 \SpecialChar LaTeX
1774 プリアンブルについて
1775 \end_layout
1776
1777 \begin_layout Standard
1778
1779 \family roman
1780 \series medium
1781 \shape up
1782 \size normal
1783 \emph off
1784 \bar no
1785 \noun off
1786 \color none
1787 すでに\SpecialChar LaTeX
1788 についてご存知であれば、ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう。もしご存じなければ、以下の説明で大まかな理解は得られるは
1789 ずです。詳しくは\SpecialChar LaTeX
1790 関連書籍をご参照ください。いずれにしても、以下で\SpecialChar LyX
1791 文書の\SpecialChar LaTeX
1792 プリアンブルで何ができるか、または何をする必要がないか説明をしますので、以下の各要点はお読
1793 みになった方が良いでしょう。
1794 \end_layout
1795
1796 \begin_layout Standard
1797
1798 \family roman
1799 \series medium
1800 \shape up
1801 \size normal
1802 \emph off
1803 \bar no
1804 \noun off
1805 \color none
1806 \SpecialChar LaTeX
1807 プリアンブルは、\SpecialChar LaTeX
1808 文書のいちばん始め、本文の
1809 \family default
1810 \series default
1811 \shape default
1812 \size default
1813 \emph on
1814 \bar default
1815 \noun default
1816 \color inherit
1817
1818 \family roman
1819 \series medium
1820 \shape up
1821 \size normal
1822 \emph off
1823 \bar no
1824 \noun off
1825 \color none
1826 の部分に来ます。ここでは以下のことを行います。
1827 \end_layout
1828
1829 \begin_layout Itemize
1830
1831 \family roman
1832 \series medium
1833 \shape up
1834 \size normal
1835 \emph off
1836 \bar no
1837 \noun off
1838 \color none
1839 文書クラス(ドキュメントクラス)の宣言。
1840 \begin_inset Newline newline
1841 \end_inset
1842
1843 これは\SpecialChar LyX
1844 がすでに行ってくれています。もしあなたが熟達した\SpecialChar LaTeX
1845 使いであり、自作の文書クラスを使いたい場合には、取扱説明書『
1846 \family default
1847 \series default
1848 \shape default
1849 \size default
1850 \emph on
1851 \bar default
1852 \noun default
1853 \color inherit
1854 カスタマイズ篇
1855 \family roman
1856 \series medium
1857 \shape up
1858 \size normal
1859 \emph off
1860 \bar no
1861 \noun off
1862 \color none
1863 』をご覧になれば、\SpecialChar LyX
1864 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります。
1865 \end_layout
1866
1867 \begin_layout Itemize
1868
1869 \family roman
1870 \series medium
1871 \shape up
1872 \size normal
1873 \emph off
1874 \bar no
1875 \noun off
1876 \color none
1877 パッケージ使用の宣言。
1878 \begin_inset Newline newline
1879 \end_inset
1880
1881 \SpecialChar LaTeX
1882 パッケージは、パッケージがプリアンブルで宣言された場合のみ、文書中で利用可能となる、追加コマンド群を提供します。パッケージをインクルードすると、特別なコマンドが
1883 提供されることに加え、文書に変更を加えることができます。例えば
1884 \family typewriter
1885 \series default
1886 \shape default
1887 \size default
1888 \emph default
1889 \bar default
1890 \noun default
1891 \color inherit
1892
1893 \family roman
1894 \series medium
1895 \shape up
1896 \size normal
1897 \emph off
1898 \bar no
1899 \noun off
1900 \color none
1901
1902 \begin_inset Flex Code
1903 status collapsed
1904
1905 \begin_layout Plain Layout
1906
1907 \family typewriter
1908 indentfirst
1909 \end_layout
1910
1911 \end_inset
1912
1913 パッケージは、すべての段落の最初の行を字下げします。他にも、ラベルや宛名書き、余白設定等の様々なパッケージがあります。
1914 \end_layout
1915
1916 \begin_layout Itemize
1917
1918 \family roman
1919 \series medium
1920 \shape up
1921 \size normal
1922 \emph off
1923 \bar no
1924 \noun off
1925 \color none
1926 カウンタ・変数・長さ・幅の設定。
1927 \begin_inset Newline newline
1928 \end_inset
1929
1930 \SpecialChar LaTeX
1931 のカウンタと変数の中には、プリアンブルでグローバルに
1932 \family default
1933 \series default
1934 \shape default
1935 \size default
1936 \emph default
1937 \bar default
1938 \noun default
1939 \color inherit
1940 設定
1941 \emph on
1942 しないかぎり
1943 \family roman
1944 \series medium
1945 \shape up
1946 \size normal
1947 \emph off
1948 \bar no
1949 \noun off
1950 \color none
1951 、望んだ効果を持たないものがあります。(文書中で設定したり再設定したりすることのできる変数もあります。)余白は、プリアンブルで設定しなくてはならない変数の代表例
1952 です。他には、箇条書きに付けるラベル書式が挙げられます。じつは、この設定は文書中どこでもできるのですが、プリアンブルでいちどだけ設定するのが望ましい方法です。
1953 \end_layout
1954
1955 \begin_layout Itemize
1956
1957 \family roman
1958 \series medium
1959 \shape up
1960 \size normal
1961 \emph off
1962 \bar no
1963 \noun off
1964 \color none
1965 ユーザー定義コマンドの宣言(
1966 \begin_inset Flex Code
1967 status collapsed
1968
1969 \begin_layout Plain Layout
1970
1971 \family roman
1972 \series medium
1973 \shape up
1974 \size normal
1975 \emph off
1976 \bar no
1977 \noun off
1978 \color none
1979
1980 \backslash
1981 newcommand
1982 \end_layout
1983
1984 \end_inset
1985
1986 または
1987 \begin_inset Flex Code
1988 status collapsed
1989
1990 \begin_layout Plain Layout
1991
1992 \family roman
1993 \series medium
1994 \shape up
1995 \size normal
1996 \emph off
1997 \bar no
1998 \noun off
1999 \color none
2000
2001 \backslash
2002 renewcommand
2003 \end_layout
2004
2005 \end_inset
2006
2007 を使用)。
2008 \begin_inset Newline newline
2009 \end_inset
2010
2011 ユーザー定義コマンドは、文書中で頻出する\SpecialChar LaTeX
2012 コマンドの短縮形です。このようなコマンドを宣言するには、プリアンブルが適した場所ですが、どこで宣言することも
2013 \family default
2014 \series default
2015 \shape default
2016 \size default
2017 \emph on
2018 \bar default
2019 \noun default
2020 \color inherit
2021 可能
2022 \family roman
2023 \series medium
2024 \shape up
2025 \size normal
2026 \emph off
2027 \bar no
2028 \noun off
2029 \color none
2030 です(もちろんコマンドが初めて使用される場所よりも前です)。あまりないことではありますが、お使いの文書中に生の\SpecialChar LaTeX
2031 コードがあふれている場合には便利でしょう。
2032 \end_layout
2033
2034 \begin_layout Standard
2035
2036 \family roman
2037 \series medium
2038 \shape up
2039 \size normal
2040 \emph off
2041 \bar no
2042 \noun off
2043 \color none
2044 \SpecialChar LyX
2045 は、その生成する
2046 \begin_inset Flex Code
2047 status collapsed
2048
2049 \begin_layout Plain Layout
2050
2051 \family roman
2052 \series medium
2053 \shape up
2054 \size normal
2055 \emph off
2056 \bar no
2057 \noun off
2058 \color none
2059 .tex
2060 \end_layout
2061
2062 \end_inset
2063
2064 ファイルのプリアンブルに、それ自身の定義を追加します。これによって、\SpecialChar LyX
2065 の生成する\SpecialChar LaTeX
2066 ファイルの可搬性を高めています。
2067 \end_layout
2068
2069 \begin_layout Subsection
2070 プリアンブルの変更
2071 \end_layout
2072
2073 \begin_layout Standard
2074
2075 \family roman
2076 \series medium
2077 \shape up
2078 \size normal
2079 \emph off
2080 \bar no
2081 \noun off
2082 \color none
2083 \SpecialChar LyX
2084 が\SpecialChar LaTeX
2085 ファイルのプリアンブルに追加するコマンドは、つねに同じです。これは、\SpecialChar LyX
2086 自体にパッチを当てないかぎり変更できないようになっています。しかしながら、
2087 \begin_inset Flex MenuItem
2088 status collapsed
2089
2090 \begin_layout Plain Layout
2091
2092 \family roman
2093 \series medium
2094 \shape up
2095 \size normal
2096 \emph off
2097 \bar no
2098 \noun off
2099 \color none
2100 文書\SpecialChar menuseparator
2101 設定
2102 \end_layout
2103
2104 \end_inset
2105
2106 ダイアログの
2107 \begin_inset Flex MenuItem
2108 status collapsed
2109
2110 \begin_layout Plain Layout
2111
2112 \family roman
2113 \series medium
2114 \shape up
2115 \size normal
2116 \emph off
2117 \bar no
2118 \noun off
2119 \color none
2120 \SpecialChar LaTeX
2121 プリアンブル
2122 \end_layout
2123
2124 \end_inset
2125
2126 の項から、プリアンブルに追加をすることはできます。\SpecialChar LyX
2127 は、
2128 \family sans
2129 \series default
2130 \shape default
2131 \size default
2132 \emph default
2133 \bar default
2134 \noun default
2135 \color inherit
2136
2137 \begin_inset Flex MenuItem
2138 status collapsed
2139
2140 \begin_layout Plain Layout
2141
2142 \family sans
2143 プリアンブル
2144 \end_layout
2145
2146 \end_inset
2147
2148
2149 \family roman
2150 \series medium
2151 \shape up
2152 \size normal
2153 \emph off
2154 \bar no
2155 \noun off
2156 \color none
2157 ダイアログ内のすべてのものを、\SpecialChar LyX
2158 埋込みのプリアンブルに付け加えます。ご自身の宣言をプリアンブルに追加する前に、あなたがしようとしていることを\SpecialChar LyX
2159 がすでにサポートしてい
2160 ないかどうか確認してください(車輪の再発明をしないように、とはすでに申しあげたことです)。
2161 \family default
2162 \series default
2163 \shape default
2164 \size default
2165 \emph default
2166 \bar default
2167 \noun default
2168 \color inherit
2169 また、
2170 \emph on
2171 プリアンブルコードが正しいことを確認してください。
2172 \emph default
2173 \SpecialChar LyX
2174 は、プリアンブルをチェックしません。
2175 \family roman
2176 \series medium
2177 \shape up
2178 \size normal
2179 \emph off
2180 \bar no
2181 \noun off
2182 \color none
2183 もしエラーがあれば、「
2184 \begin_inset Flex Code
2185 status collapsed
2186
2187 \begin_layout Plain Layout
2188
2189 \family roman
2190 \series medium
2191 \shape up
2192 \size normal
2193 \emph off
2194 \bar no
2195 \noun off
2196 \color none
2197 Missing 
2198 \backslash
2199 begin{document}
2200 \end_layout
2201
2202 \end_inset
2203
2204 」といったエラーが出ることでしょう。このようなエラーが出たときは、プリアンブルを再確認してください。
2205 \end_layout
2206
2207 \begin_layout Subsection
2208
2209 \end_layout
2210
2211 \begin_layout Standard
2212
2213 \family roman
2214 \series medium
2215 \shape up
2216 \size normal
2217 \emph off
2218 \bar no
2219 \noun off
2220 \color none
2221 以下は、プリアンブルに追加できるものとその効果を示す例です。
2222 \end_layout
2223
2224 \begin_layout Subsubsection
2225 例1:オフセット
2226 \end_layout
2227
2228 \begin_layout Standard
2229
2230 \family roman
2231 \series medium
2232 \shape up
2233 \size normal
2234 \emph off
2235 \bar no
2236 \noun off
2237 \color none
2238 \SpecialChar LaTeX
2239 には
2240 \family default
2241 \series default
2242 \shape default
2243 \size default
2244 \emph default
2245 \bar default
2246 \noun default
2247 \color inherit
2248
2249 \family roman
2250 \series medium
2251 \shape up
2252 \size normal
2253 \emph off
2254 \bar no
2255 \noun off
2256 \color none
2257
2258 \begin_inset Flex Code
2259 status collapsed
2260
2261 \begin_layout Plain Layout
2262
2263 \family typewriter
2264
2265 \backslash
2266 hoffset
2267 \end_layout
2268
2269 \end_inset
2270
2271
2272 \family typewriter
2273 \series default
2274 \shape default
2275 \size default
2276 \emph default
2277 \bar default
2278 \noun default
2279 \color inherit
2280
2281 \begin_inset Flex Code
2282 status collapsed
2283
2284 \begin_layout Plain Layout
2285
2286 \family typewriter
2287
2288 \backslash
2289 voffset
2290 \end_layout
2291
2292 \end_inset
2293
2294
2295 \family roman
2296 \series medium
2297 \shape up
2298 \size normal
2299 \emph off
2300 \bar no
2301 \noun off
2302 \color none
2303 というページ位置を制御する2つの変数があります。その機能は名前から明らかなとおりです。これらの変数は、ラベルを印刷するときなどに便利です。往々にして、印刷用紙の
2304 寸法とそのうち実際に印字可能な範囲は同じではありません。ここに
2305 \begin_inset Flex Code
2306 status collapsed
2307
2308 \begin_layout Plain Layout
2309
2310 \family typewriter
2311
2312 \backslash
2313 hoffset
2314 \end_layout
2315
2316 \end_inset
2317
2318
2319 \family typewriter
2320 \series default
2321 \shape default
2322 \size default
2323 \emph default
2324 \bar default
2325 \noun default
2326 \color inherit
2327
2328 \begin_inset Flex Code
2329 status collapsed
2330
2331 \begin_layout Plain Layout
2332
2333 \family typewriter
2334
2335 \backslash
2336 voffset
2337 \end_layout
2338
2339 \end_inset
2340
2341
2342 \family default
2343 が役立つわけです。
2344 \end_layout
2345
2346 \begin_layout Standard
2347
2348 \family roman
2349 \series medium
2350 \shape up
2351 \size normal
2352 \emph off
2353 \bar no
2354 \noun off
2355 \color none
2356 \begin_inset Flex Code
2357 status collapsed
2358
2359 \begin_layout Plain Layout
2360
2361 \family typewriter
2362
2363 \backslash
2364 hoffset
2365 \end_layout
2366
2367 \end_inset
2368
2369
2370 \family typewriter
2371 \series default
2372 \shape default
2373 \size default
2374 \emph default
2375 \bar default
2376 \noun default
2377 \color inherit
2378
2379 \begin_inset Flex Code
2380 status collapsed
2381
2382 \begin_layout Plain Layout
2383
2384 \family typewriter
2385
2386 \backslash
2387 voffset
2388 \end_layout
2389
2390 \end_inset
2391
2392
2393 \family roman
2394 \series medium
2395 \shape up
2396 \size normal
2397 \emph off
2398 \bar no
2399 \noun off
2400 \color none
2401 の既定値はともに0ポイント、つまりページをシフトしません。残念ながら、DVIドライバによってはつねにページをシフトすることがあるようです。我々には、どうしてその
2402 ようなことをするのか、そしてシスアドがどうしてそれを修正しないのか理解できませんが、もし個人的に管理できないシステムで\SpecialChar LyX
2403 を使用していて、シスアドがお馬鹿さんである
2404 場合には、
2405 \begin_inset Flex Code
2406 status collapsed
2407
2408 \begin_layout Plain Layout
2409
2410 \family typewriter
2411
2412 \backslash
2413 hoffset
2414 \end_layout
2415
2416 \end_inset
2417
2418
2419 \family typewriter
2420 \series default
2421 \shape default
2422 \size default
2423 \emph default
2424 \bar default
2425 \noun default
2426 \color inherit
2427
2428 \begin_inset Flex Code
2429 status collapsed
2430
2431 \begin_layout Plain Layout
2432
2433 \family typewriter
2434
2435 \backslash
2436 voffset
2437 \end_layout
2438
2439 \end_inset
2440
2441
2442 \family roman
2443 \series medium
2444 \shape up
2445 \size normal
2446 \emph off
2447 \bar no
2448 \noun off
2449 \color none
2450 が役に立ちます。かりに、上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう。その場合は、以下をプリアンブルに追加するとよいでしょう。
2451 \end_layout
2452
2453 \begin_layout LyX-Code
2454
2455 \backslash
2456 setlength{
2457 \backslash
2458 hoffset}{-0.5 in}
2459 \end_layout
2460
2461 \begin_layout LyX-Code
2462
2463 \backslash
2464 setlength{
2465 \backslash
2466 voffset}{-0.5 in}
2467 \end_layout
2468
2469 \begin_layout Standard
2470
2471 \family roman
2472 \series medium
2473 \shape up
2474 \size normal
2475 \emph off
2476 \bar no
2477 \noun off
2478 \color none
2479 これで余白が修正されます。
2480 \end_layout
2481
2482 \begin_layout Subsubsection
2483 例2:ラベル
2484 \end_layout
2485
2486 \begin_layout Standard
2487
2488 \family roman
2489 \series medium
2490 \shape up
2491 \size normal
2492 \emph off
2493 \bar no
2494 \noun off
2495 \color none
2496 いま、たくさんの宛名ラベルを印刷をしたいものとしましょう。ラベルシートを印刷するために便利な
2497 \begin_inset Flex Code
2498 status collapsed
2499
2500 \begin_layout Plain Layout
2501
2502 \family typewriter
2503 labels.sty
2504 \end_layout
2505
2506 \end_inset
2507
2508 という\SpecialChar LaTeX
2509 パッケージが、お近くのCTANアーカイブで入手可能です。お使いのシステムには、既定ではこのパッケージは導入されていないかもしれません。ご自身でお確かめくだ
2510 さい。また、このパッケージの取扱説明書を読まれたいかもしれませんが、それもご自身にお任せします。これは使用例ですので、このパッケージをどう使うかの例だけお見せす
2511 ることにします。
2512 \end_layout
2513
2514 \begin_layout Standard
2515
2516 \family roman
2517 \series medium
2518 \shape up
2519 \size normal
2520 \emph off
2521 \bar no
2522 \noun off
2523 \color none
2524 まず、
2525 \begin_inset Flex Code
2526 status collapsed
2527
2528 \begin_layout Plain Layout
2529
2530 \family sans
2531 article
2532 \end_layout
2533
2534 \end_inset
2535
2536 文書クラスを使用していることをご確認ください。次に、以下のような設定をプリアンブルに追加しなければなりません。
2537 \end_layout
2538
2539 \begin_layout LyX-Code
2540
2541 \backslash
2542 usepackage{labels}
2543 \end_layout
2544
2545 \begin_layout LyX-Code
2546
2547 \backslash
2548 LabelCols=3
2549 \end_layout
2550
2551 \begin_layout LyX-Code
2552
2553 \backslash
2554 LabelRows=7
2555 \end_layout
2556
2557 \begin_layout LyX-Code
2558
2559 \backslash
2560 LeftBorder=8mm
2561 \end_layout
2562
2563 \begin_layout LyX-Code
2564
2565 \backslash
2566 RightBorder=8mm
2567 \end_layout
2568
2569 \begin_layout LyX-Code
2570
2571 \backslash
2572 TopBorder=9mm
2573 \end_layout
2574
2575 \begin_layout LyX-Code
2576
2577 \backslash
2578 BottomBorder=2mm
2579 \end_layout
2580
2581 \begin_layout Standard
2582
2583 \family roman
2584 \series medium
2585 \shape up
2586 \size normal
2587 \emph off
2588 \bar no
2589 \noun off
2590 \color none
2591 これは
2592 \family default
2593 \series default
2594 \shape default
2595 \size default
2596 \emph default
2597 \bar default
2598 \noun default
2599 \color inherit
2600 Avery®ラベルシートのストック5360
2601 \family roman
2602 \series medium
2603 \shape up
2604 \size normal
2605 \emph off
2606 \bar no
2607 \noun off
2608 \color none
2609 番を使用する場合の設定です。これで、各宛名を
2610 \begin_inset Flex Code
2611 status collapsed
2612
2613 \begin_layout Plain Layout
2614
2615 \family typewriter
2616
2617 \backslash
2618 begin{labels}
2619 \end_layout
2620
2621 \end_inset
2622
2623
2624 \family typewriter
2625 \series default
2626 \shape default
2627 \size default
2628 \emph default
2629 \bar default
2630 \noun default
2631 \color inherit
2632
2633 \begin_inset Flex Code
2634 status collapsed
2635
2636 \begin_layout Plain Layout
2637
2638 \family typewriter
2639
2640 \backslash
2641 end{labels}
2642 \end_layout
2643
2644 \end_inset
2645
2646
2647 \family roman
2648 \series medium
2649 \shape up
2650 \size normal
2651 \emph off
2652 \bar no
2653 \noun off
2654 \color none
2655 で囲めば、宛名ラベルの印刷をすることができます。本機能およびその他の機能に関しては、
2656 \begin_inset Flex Code
2657 status collapsed
2658
2659 \begin_layout Plain Layout
2660
2661 \family typewriter
2662 labels.sty
2663 \end_layout
2664
2665 \end_inset
2666
2667 の取扱説明書に説明されています。
2668 \end_layout
2669
2670 \begin_layout Standard
2671
2672 \family roman
2673 \series medium
2674 \shape up
2675 \size normal
2676 \emph off
2677 \bar no
2678 \noun off
2679 \color none
2680 そのうち誰かが、このパッケージを直接サポートする\SpecialChar LyX
2681 レイアウトファイルを作ってくれるかもしれません。その誰かはあなたかもしれません。
2682 \end_layout
2683
2684 \begin_layout Subsubsection
2685 例3: 段落の字下げ
2686 \end_layout
2687
2688 \begin_layout Standard
2689
2690 \family roman
2691 \series medium
2692 \shape up
2693 \size normal
2694 \emph off
2695 \bar no
2696 \noun off
2697 \color none
2698 アメリカ人は
2699 \family default
2700 \series default
2701 \shape default
2702 \size default
2703 \emph default
2704 \bar default
2705 \noun default
2706 \color inherit
2707
2708 \emph on
2709 すべての
2710 \family roman
2711 \series medium
2712 \shape up
2713 \size normal
2714 \emph off
2715 \bar no
2716 \noun off
2717 \color none
2718 段落の最初の行を字下げするように教育されています。そのために彼らの他の変な習慣と同じく、いつものようにすべての段落の最初の行を下げるまで、アメリカ人はごちゃごち
2719 ゃと文句を言いつづけるのです
2720 \family default
2721 \series default
2722 \shape default
2723 \size default
2724 \emph default
2725 \bar default
2726 \noun default
2727 \color inherit
2728 。(これはユーモアです。(ほんと?)
2729 \emph on
2730 ユーモアですってば
2731 \emph default
2732 。)
2733 \end_layout
2734
2735 \begin_layout Standard
2736
2737 \family roman
2738 \series medium
2739 \shape up
2740 \size normal
2741 \emph off
2742 \bar no
2743 \noun off
2744 \color none
2745 もちろん、これは標準的な組版ルールではありません。書籍では、典型的には、他の段落のあとにくる段落
2746 \family default
2747 \series default
2748 \shape default
2749 \size default
2750 \emph on
2751 \bar default
2752 \noun default
2753 \color inherit
2754 のみ
2755 \family roman
2756 \series medium
2757 \shape up
2758 \size normal
2759 \emph off
2760 \bar no
2761 \noun off
2762 \color none
2763 字下げを行ないます。一行めを字下げをするそもそもの目的は、隣接する段落から区別するためです。したがって、図のあとや節の最初の段落など、先行する段落がない場合には
2764 、字下げをする必要はないのです。
2765 \end_layout
2766
2767 \begin_layout Standard
2768
2769 \family roman
2770 \series medium
2771 \shape up
2772 \size normal
2773 \emph off
2774 \bar no
2775 \noun off
2776 \color none
2777 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!)、そのような小難しいことはかまわずに、いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2778 ルに次の行を加えて下さい。
2779 \end_layout
2780
2781 \begin_layout LyX-Code
2782
2783 \backslash
2784 usepackage{indentfirst}
2785 \end_layout
2786
2787 \begin_layout Standard
2788
2789 \family roman
2790 \series medium
2791 \shape up
2792 \size normal
2793 \emph off
2794 \bar no
2795 \noun off
2796 \color none
2797 もしお使いの\SpecialChar TeX
2798 頒布版が脳死状態でなければ、このパッケージが入っているはずなので、建国の父たちが意図したように、すべての段落が字下げされます。
2799 \end_layout
2800
2801 \begin_layout Subsubsection
2802 例4:この文書
2803 \end_layout
2804
2805 \begin_layout Standard
2806
2807 \family roman
2808 \series medium
2809 \shape up
2810 \size normal
2811 \emph off
2812 \bar no
2813 \noun off
2814 \color none
2815 この文書のプリアンブルを見てみると、どのような高度な設定ができるか、おおまかな理解が得られるでしょう。また第
2816 \family default
2817 \series default
2818 \shape default
2819 \size default
2820 \emph default
2821 \bar default
2822 \noun default
2823 \color inherit
2824
2825 \begin_inset CommandInset ref
2826 LatexCommand ref
2827 reference "chap:Special-features"
2828
2829 \end_inset
2830
2831
2832 \family roman
2833 \series medium
2834 \shape up
2835 \size normal
2836 \emph off
2837 \bar no
2838 \noun off
2839 \color none
2840 章には、他の例や、\SpecialChar LaTeX
2841 の各種の「汚い技」があります。
2842 \end_layout
2843
2844 \begin_layout Section
2845 \SpecialChar LyX
2846 および\SpecialChar LaTeX
2847 のエラー
2848 \end_layout
2849
2850 \begin_layout Standard
2851
2852 \family roman
2853 \series medium
2854 \shape up
2855 \size normal
2856 \emph off
2857 \bar no
2858 \noun off
2859 \color none
2860 \SpecialChar LyX
2861 が\SpecialChar LaTeX
2862 を呼び出す際、\SpecialChar LyX
2863 は\SpecialChar LaTeX
2864 に、かりにエラーがあったとしても楽観的に無視して先に進むように指示します。その後\SpecialChar LyX
2865 は、\SpecialChar LaTeX
2866 の実行ログファイルを事後処理用に使います。ログファイルを分
2867 析したのち、\SpecialChar LyX
2868 はエラーを一覧表示するダイアログを表示します。エラーのうちどれかをクリックすると、\SpecialChar LyX
2869 ファイル中、そのエラーの発生した場所に表示を移動します
2870 \begin_inset Foot
2871 status collapsed
2872
2873 \begin_layout Plain Layout
2874
2875 \family roman
2876 \series medium
2877 \shape up
2878 \size normal
2879 \emph off
2880 \bar no
2881 \noun off
2882 \color none
2883 正確にいうと、通常は、です。ログファイルの分析は難しい仕事ですので、\SpecialChar LyX
2884 はつねに正しい行に連れて行ってくれるとは限りません。ときには、\SpecialChar LaTeX
2885 がある行にエラーがあると報告し
2886 たとしても、実際のエラーはそれよりも前であることもあります。これは、プログラムで閉じ括弧を忘れたときに似ていなくもありません。エラーは表示されますが、実際にエラ
2887 ーのある場所よりも後ろでエラーが報告されるのです。
2888 \end_layout
2889
2890 \end_inset
2891
2892
2893 \family default
2894 \series default
2895 \shape default
2896 \size default
2897 \emph default
2898 \bar default
2899 \noun default
2900 \color inherit
2901
2902 \end_layout
2903
2904 \begin_layout Standard
2905
2906 \family roman
2907 \series medium
2908 \shape up
2909 \size normal
2910 \emph off
2911 \bar no
2912 \noun off
2913 \color none
2914 人によっては、ログファイルを直接ご覧になりたいかもしれません。これは、
2915 \begin_inset Flex MenuItem
2916 status collapsed
2917
2918 \begin_layout Plain Layout
2919
2920 \family roman
2921 \series medium
2922 \shape up
2923 \size normal
2924 \emph off
2925 \bar no
2926 \noun off
2927 \color none
2928 文書\SpecialChar menuseparator
2929 \SpecialChar LaTeX
2930 ログ
2931 \end_layout
2932
2933 \end_inset
2934
2935 で見ることができます。エラーメッセージや警告には、よく見かけるものがいくつかありますので、それらをここに収録しておきます。ここにないエラーや警告に関しては、La\SpecialChar TeX
2936
2937 関連の良書を参照してください。
2938 \end_layout
2939
2940 \begin_layout Itemize
2941
2942 \family typewriter
2943 \begin_inset Flex Code
2944 status collapsed
2945
2946 \begin_layout Plain Layout
2947
2948 \family typewriter
2949 LaTe
2950 \begin_inset ERT
2951 status collapsed
2952
2953 \begin_layout Plain Layout
2954
2955 {}
2956 \end_layout
2957
2958 \end_inset
2959
2960 X Warning
2961 \end_layout
2962
2963 \end_inset
2964
2965
2966 \family roman
2967 \series medium
2968 \shape up
2969 \size normal
2970 \emph off
2971 \bar no
2972 \noun off
2973 \color none
2974
2975 \begin_inset Newline newline
2976 \end_inset
2977
2978 これで始まるメッセージは、\SpecialChar LaTeX
2979 コード自体を「デバッグ」するための警告メッセージです。相互参照や書誌情報を追加したり変更した場合に、もう一度\SpecialChar LaTeX
2980 を実行する必要があることを
2981 知らせるために、このようなメッセージが表示されます。このメッセージは、だいたいにおいて無視しても大丈夫です。
2982 \end_layout
2983
2984 \begin_layout Itemize
2985
2986 \family typewriter
2987 \begin_inset Flex Code
2988 status collapsed
2989
2990 \begin_layout Plain Layout
2991
2992 \family typewriter
2993 LaTe
2994 \begin_inset ERT
2995 status collapsed
2996
2997 \begin_layout Plain Layout
2998
2999 {}
3000 \end_layout
3001
3002 \end_inset
3003
3004 X Font Warning
3005 \end_layout
3006
3007 \end_inset
3008
3009
3010 \family roman
3011 \series medium
3012 \shape up
3013 \size normal
3014 \emph off
3015 \bar no
3016 \noun off
3017 \color none
3018
3019 \begin_inset Newline newline
3020 \end_inset
3021
3022 \SpecialChar LaTeX
3023 がフォントを見つけられなかったと言う警告メッセージです。多くの場合、このメッセージの後に、\SpecialChar LaTeX
3024 が使用した代替フォントに関する情報が続きます。これも無視して構いません
3025
3026 \end_layout
3027
3028 \begin_layout Itemize
3029
3030 \family roman
3031 \series medium
3032 \shape up
3033 \size normal
3034 \emph off
3035 \bar no
3036 \noun off
3037 \color none
3038 \begin_inset Flex Code
3039 status collapsed
3040
3041 \begin_layout Plain Layout
3042
3043 \family typewriter
3044 Overfull 
3045 \backslash
3046 hbox
3047 \end_layout
3048
3049 \end_inset
3050
3051
3052 \begin_inset Newline newline
3053 \end_inset
3054
3055 \SpecialChar LaTeX
3056 は、
3057 \family default
3058 \series default
3059 \shape default
3060 \size default
3061 \emph on
3062 \bar default
3063 \noun default
3064 \color inherit
3065 ほぼどんなときでも
3066 \family roman
3067 \series medium
3068 \shape up
3069 \size normal
3070 \emph off
3071 \bar no
3072 \noun off
3073 \color none
3074 この警告を吐き出します。これは、一行が長すぎて右余白にはみ出してしまったという警告ですが、ほとんどの場合、最終出力を見ても判別できないくらい(せいぜい1ポイント
3075 か2ポイント)です。あるいは1文字か2文字右余白に出ているくらいです。\SpecialChar LaTeX
3076 は、どんな文書を書いても、少なくとも一つはこのメッセージを出すようです。
3077 \begin_inset Newline newline
3078 \end_inset
3079
3080 このメッセージは無視しても大丈夫です。何か行が長すぎるような問題があれば、目で見ればわかります。出力を目で確認してください
3081 \begin_inset Foot
3082 status collapsed
3083
3084 \begin_layout Plain Layout
3085 あるいは、
3086 \begin_inset Flex MenuItem
3087 status collapsed
3088
3089 \begin_layout Plain Layout
3090 文書\SpecialChar menuseparator
3091 設定
3092 \end_layout
3093
3094 \end_inset
3095
3096 で「draft」オプションを指定する方法もあります。こうすると、\SpecialChar LaTeX
3097 は、overfullの発生した行の余白に黒い四角を描画します。
3098 \end_layout
3099
3100 \end_inset
3101
3102
3103 \end_layout
3104
3105 \begin_layout Itemize
3106
3107 \family typewriter
3108 \begin_inset Flex Code
3109 status collapsed
3110
3111 \begin_layout Plain Layout
3112
3113 \family typewriter
3114 Underfull 
3115 \backslash
3116 hbox
3117 \end_layout
3118
3119 \end_inset
3120
3121
3122 \begin_inset Newline newline
3123 \end_inset
3124
3125
3126 \family roman
3127 \series medium
3128 \shape up
3129 \size normal
3130 \emph off
3131 \bar no
3132 \noun off
3133 \color none
3134 これは上の警告と違ってあまり出てきません。なぜだかは分かりませんが、\SpecialChar LaTeX
3135 は1行を短めにする印字するよりは、長めにする方が好きなようです。
3136 \end_layout
3137
3138 \begin_layout Itemize
3139 \begin_inset Flex Code
3140 status collapsed
3141
3142 \begin_layout Plain Layout
3143
3144 \family typewriter
3145 Overfull 
3146 \backslash
3147 vbox
3148 \end_layout
3149
3150 \end_inset
3151
3152
3153 \family typewriter
3154
3155 \begin_inset Flex Code
3156 status collapsed
3157
3158 \begin_layout Plain Layout
3159
3160 \family typewriter
3161 Underfull 
3162 \backslash
3163 vbox
3164 \end_layout
3165
3166 \end_inset
3167
3168
3169 \family default
3170
3171 \begin_inset Newline newline
3172 \end_inset
3173
3174
3175 \family roman
3176 \series medium
3177 \shape up
3178 \size normal
3179 \emph off
3180 \bar no
3181 \noun off
3182 \color none
3183 ページ区切りに問題があったという警告です。この場合も、出力を目で確認してください。何か問題があれば、見てすぐわかります。
3184 \end_layout
3185
3186 \begin_layout Itemize
3187
3188 \family typewriter
3189 \begin_inset Flex Code
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193
3194 \family typewriter
3195 LaTe
3196 \begin_inset ERT
3197 status collapsed
3198
3199 \begin_layout Plain Layout
3200
3201 {}
3202 \end_layout
3203
3204 \end_inset
3205
3206 X Error: File 
3207 \begin_inset Quotes els
3208 \end_inset
3209
3210 Xxxx
3211 \begin_inset Quotes ers
3212 \end_inset
3213
3214  not found
3215 \end_layout
3216
3217 \end_inset
3218
3219
3220 \family roman
3221 \series medium
3222 \shape up
3223 \size normal
3224 \emph off
3225 \bar no
3226 \noun off
3227 \color none
3228
3229 \begin_inset Newline newline
3230 \end_inset
3231
3232 ファイル「Xxxx」が、システムに導入されていません。これは通常、文書が必要としている\SpecialChar LaTeX
3233 パッケージに、導入済でないものがある場合に現れます。プリアンブルに変更を加
3234 えておらず、
3235 \begin_inset Flex Code
3236 status collapsed
3237
3238 \begin_layout Plain Layout
3239
3240 \family typewriter
3241
3242 \backslash
3243 usepackage{}
3244 \end_layout
3245
3246 \end_inset
3247
3248 コマンドも使用していないとすれば、\SpecialChar LyX
3249 が読み込もうしているパッケージに存在しないものがあるということです。
3250 \family default
3251 \series default
3252 \shape default
3253 \size default
3254 \emph default
3255 \bar default
3256 \noun default
3257 \color inherit
3258
3259 \begin_inset Flex MenuItem
3260 status collapsed
3261
3262 \begin_layout Plain Layout
3263 ヘルプ\SpecialChar menuseparator
3264 \SpecialChar LaTeX
3265 の設定
3266 \end_layout
3267
3268 \end_inset
3269
3270
3271 \family roman
3272 \series medium
3273 \shape up
3274 \size normal
3275 \emph off
3276 \bar no
3277 \noun off
3278 \color none
3279 を使用して、\SpecialChar LyX
3280 が認識しているパッケージの一覧を得てください。このファイルは、(
3281 \begin_inset Flex MenuItem
3282 status collapsed
3283
3284 \begin_layout Plain Layout
3285
3286 \family roman
3287 \series medium
3288 \shape up
3289 \size normal
3290 \emph off
3291 \bar no
3292 \noun off
3293 \color none
3294 ツール\SpecialChar menuseparator
3295 再設定
3296 \end_layout
3297
3298 \end_inset
3299
3300 を使用して)\SpecialChar LyX
3301 の再設定を行うたびに更新され、どのパッケージが検出されたか、それらのパッケージが何をするものかを表示します。
3302 \begin_inset Newline newline
3303 \end_inset
3304
3305
3306 \family sans
3307 \series default
3308 \shape default
3309 \size default
3310 \emph default
3311 \bar default
3312 \noun default
3313 \color inherit
3314
3315 \begin_inset Flex Code
3316 status collapsed
3317
3318 \begin_layout Plain Layout
3319
3320 \family sans
3321
3322 \backslash
3323 usepackage{}
3324 \end_layout
3325
3326 \end_inset
3327
3328
3329 \family roman
3330 \series medium
3331 \shape up
3332 \size normal
3333 \emph off
3334 \bar no
3335 \noun off
3336 \color none
3337 コマンドを使っていて、肝心のパッケージが導入されていない場合には、ご自身で導入する必要があります。
3338 \end_layout
3339
3340 \begin_layout Itemize
3341
3342 \family typewriter
3343 \begin_inset Flex Code
3344 status collapsed
3345
3346 \begin_layout Plain Layout
3347
3348 \family typewriter
3349 LaTe
3350 \begin_inset ERT
3351 status collapsed
3352
3353 \begin_layout Plain Layout
3354
3355 {}
3356 \end_layout
3357
3358 \end_inset
3359
3360 X Error: Unknown option
3361 \end_layout
3362
3363 \end_inset
3364
3365
3366 \family roman
3367 \series medium
3368 \shape up
3369 \size normal
3370 \emph off
3371 \bar no
3372 \noun off
3373 \color none
3374
3375 \begin_inset Newline newline
3376 \end_inset
3377
3378 このように始まるエラーメッセージは、パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです。パッケージの取扱説明書をご確認くだ
3379 さい。
3380 \end_layout
3381
3382 \begin_layout Itemize
3383
3384 \family typewriter
3385 \begin_inset Flex Code
3386 status collapsed
3387
3388 \begin_layout Plain Layout
3389
3390 \family typewriter
3391 Undefined control sequence
3392 \end_layout
3393
3394 \end_inset
3395
3396
3397 \family roman
3398 \series medium
3399 \shape up
3400 \size normal
3401 \emph off
3402 \bar no
3403 \noun off
3404 \color none
3405
3406 \begin_inset Newline newline
3407 \end_inset
3408
3409 お使いの文書に\SpecialChar LaTeX
3410 コードを挿入した際、打ち間違いをしてしまうと、このようなメッセージが表示されます。あるいは、パッケージを読み込ませるのを忘れたのかもしれません。い
3411 ずれにしても、このメッセージは、あなたが未定義のコマンドを使用したことを示しています。
3412 \end_layout
3413
3414 \begin_layout Standard
3415
3416 \family roman
3417 \series medium
3418 \shape up
3419 \size normal
3420 \emph off
3421 \bar no
3422 \noun off
3423 \color none
3424 これ以外にも、エラーメッセージや警告メッセージがあります。一般に、読んで意味がすぐにわかるものは、\SpecialChar LaTeX
3425 のメッセージです。何を言っているのかさっぱりわからないものもあ
3426 りますが、通常これらは、\SpecialChar TeX
3427 のメッセージであり、それが何を意味しているのか、どのように解読すればいいのか、
3428 \family default
3429 \series default
3430 \shape default
3431 \size default
3432 \emph on
3433 \bar default
3434 \noun default
3435 \color inherit
3436 まったく
3437 \family roman
3438 \series medium
3439 \shape up
3440 \size normal
3441 \emph off
3442 \bar no
3443 \noun off
3444 \color none
3445 手がかりがありません。誰もわからないのです。
3446 \end_layout
3447
3448 \begin_layout Standard
3449
3450 \family roman
3451 \series medium
3452 \shape up
3453 \size normal
3454 \emph off
3455 \bar no
3456 \noun off
3457 \color none
3458 エラーメッセージが表示された場合は、つねに以下のチェックリストにしたがった方がよいでしょう。
3459 \end_layout
3460
3461 \begin_layout Enumerate
3462
3463 \family roman
3464 \series medium
3465 \shape up
3466 \size normal
3467 \emph off
3468 \bar no
3469 \noun off
3470 \color none
3471 ご自分で挿入した\SpecialChar LaTeX
3472 コードに打ち間違いがないかどうか確かめる。
3473 \end_layout
3474
3475 \begin_layout Enumerate
3476
3477 \family roman
3478 \series medium
3479 \shape up
3480 \size normal
3481 \emph off
3482 \bar no
3483 \noun off
3484 \color none
3485 打ち間違いがなければ、コマンドを正しく使ったかどうか確かめる。
3486 \end_layout
3487
3488 \begin_layout Enumerate
3489
3490 \family roman
3491 \series medium
3492 \shape up
3493 \size normal
3494 \emph off
3495 \bar no
3496 \noun off
3497 \color none
3498 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3499 \begin_inset Flex Code
3500 status collapsed
3501
3502 \begin_layout Plain Layout
3503
3504 \family roman
3505 \series medium
3506 \shape up
3507 \size normal
3508 \emph off
3509 \bar no
3510 \noun off
3511 \color none
3512 Missing 
3513 \backslash
3514 begin{document}
3515 \end_layout
3516
3517 \end_inset
3518
3519 が表示されているならば—、プリアンブルにエラーがあることを意味します。プリアンブルのデバックを行ってください。
3520 \end_layout
3521
3522 \begin_layout Enumerate
3523
3524 \family roman
3525 \series medium
3526 \shape up
3527 \size normal
3528 \emph off
3529 \bar no
3530 \noun off
3531 \color none
3532 プリアンブルに何も追加せず、文書に\SpecialChar LaTeX
3533 コードをまったく挿入しなかった場合には、\SpecialChar LaTeX
3534 頒布版自体をまず疑ってください。導入されていないパッケージを探しだして、導入してくださ
3535 い。
3536 \end_layout
3537
3538 \begin_layout Enumerate
3539
3540 \family roman
3541 \series medium
3542 \shape up
3543 \size normal
3544 \emph off
3545 \bar no
3546 \noun off
3547 \color none
3548 導入されていないパッケージはなかったものとしましょう。\SpecialChar LyX
3549 を微調整するオプションを使用していますか。特に、手動で
3550 \begin_inset Flex Code
3551 status collapsed
3552
3553 \begin_layout Plain Layout
3554
3555 \family sans
3556 Protected
3557 \begin_inset space ~
3558 \end_inset
3559
3560 Blank
3561 \end_layout
3562
3563 \end_inset
3564
3565
3566 \begin_inset Flex Code
3567 status collapsed
3568
3569 \begin_layout Plain Layout
3570
3571 \family sans
3572 Linebreak
3573 \end_layout
3574
3575 \end_inset
3576
3577
3578 \family sans
3579 \series default
3580 \shape default
3581 \size default
3582 \emph default
3583 \bar default
3584 \noun default
3585 \color inherit
3586
3587 \begin_inset Flex Code
3588 status collapsed
3589
3590 \begin_layout Plain Layout
3591
3592 \family sans
3593 Pagebreak
3594 \end_layout
3595
3596 \end_inset
3597
3598
3599 \family roman
3600 \series medium
3601 \shape up
3602 \size normal
3603 \emph off
3604 \bar no
3605 \noun off
3606 \color none
3607 などをたくさん挿入するなど、微調整オプションを
3608 \family default
3609 \series default
3610 \shape default
3611 \size default
3612 \emph on
3613 \bar default
3614 \noun default
3615 \color inherit
3616 悪用
3617 \family roman
3618 \series medium
3619 \shape up
3620 \size normal
3621 \emph off
3622 \bar no
3623 \noun off
3624 \color none
3625 していませんか。適切な段落環境を使用する代わりに、これらを使用してその場をしのごうとしていませんか。
3626 \end_layout
3627
3628 \begin_layout Enumerate
3629
3630 \family roman
3631 \series medium
3632 \shape up
3633 \size normal
3634 \emph off
3635 \bar no
3636 \noun off
3637 \color none
3638 微調整オプションはまったく使用しておらず、規則に乗っ取って作業していたものとしましょう。何か曲芸のようなことをしようとはしていませんか。数式や表中で、たとえば表
3639 のセルに図を入れるなど、おかしなことをしようとしていませんか。
3640 \end_layout
3641
3642 \begin_layout Enumerate
3643 \SpecialChar LaTeX
3644 が改行位置を見つけられないほど長い一節がありませんか。既定では、改行するために単語間に空白をたくさん追加することを、\SpecialChar LaTeX
3645 はかなり嫌います。可能であれば、問題が生じな
3646 いように段落を修正するのが望ましいでしょう。
3647 \end_layout
3648
3649 \begin_layout Enumerate
3650
3651 \family roman
3652 \series medium
3653 \shape up
3654 \size normal
3655 \emph off
3656 \bar no
3657 \noun off
3658 \color none
3659 入れ子の階層を深くしすぎていませんか。\SpecialChar LyX
3660 は、(今のところ)環境の入れ子の階層が制限内にあるかチェックしません。かりに、環境を17段の入れ子にしたりしていたら、それ
3661 が原因です(\SpecialChar LaTeX
3662 の上限は5段です)。
3663 \end_layout
3664
3665 \begin_layout Enumerate
3666
3667 \family roman
3668 \series medium
3669 \shape up
3670 \size normal
3671 \emph off
3672 \bar no
3673 \noun off
3674 \color none
3675 エラーメッセージは発生しないけれども、出力がひどいものとしましょう。図表が幅が広すぎたり長すぎてページに収まらない場合には、
3676 \family default
3677 \series default
3678 \shape default
3679 \size default
3680 \bar default
3681 \color inherit
3682
3683 \begin_inset Separator parbreak
3684 \end_inset
3685
3686
3687 \end_layout
3688
3689 \begin_deeper
3690 \begin_layout Enumerate
3691
3692 \family roman
3693 \series medium
3694 \shape up
3695 \size normal
3696 \emph off
3697 \bar no
3698 \noun off
3699 \color none
3700 図がページに合うように大きさを変える、
3701 \end_layout
3702
3703 \begin_layout Enumerate
3704
3705 \family roman
3706 \series medium
3707 \shape up
3708 \size normal
3709 \emph off
3710 \bar no
3711 \noun off
3712 \color none
3713 表がページに合うように削る、
3714 \end_layout
3715
3716 \begin_layout Standard
3717
3718 \family roman
3719 \series medium
3720 \shape up
3721 \size normal
3722 \emph off
3723 \bar no
3724 \noun off
3725 \color none
3726 などの手段を採る必要があります。
3727 \end_layout
3728
3729 \end_deeper
3730 \begin_layout Enumerate
3731 他に出力におかしいところがあり、曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば、何がおかしいのか確定的なことは言えません。
3732 \end_layout
3733
3734 \begin_layout Standard
3735
3736 \family roman
3737 \series medium
3738 \shape up
3739 \size normal
3740 \emph off
3741 \bar no
3742 \noun off
3743 \color none
3744 これらすべてが役に立たないとすれば、
3745 \family default
3746 \series default
3747 \shape default
3748 \size default
3749 \emph on
3750 \bar default
3751 \noun default
3752 \color inherit
3753 ひょっとしたら
3754 \family roman
3755 \series medium
3756 \shape up
3757 \size normal
3758 \emph off
3759 \bar no
3760 \noun off
3761 \color none
3762 \SpecialChar LyX
3763 のバグを発見したのかもしれません‥‥。
3764 \end_layout
3765
3766 \begin_layout Chapter
3767 補完ツール
3768 \end_layout
3769
3770 \begin_layout Section
3771 Bib\SpecialChar TeX
3772 による書誌情報のカスタマイズ
3773 \end_layout
3774
3775 \begin_layout Standard
3776 Bib\SpecialChar TeX
3777 の基本的な使用法は、『
3778 \emph on
3779 ユーザーの手引き
3780 \emph default
3781 』の「
3782 \emph on
3783 文献データベース(Bib\SpecialChar TeX
3784 )
3785 \emph default
3786 」の節に説明があります。以下の各小節では、\SpecialChar LyX
3787 でサポートされている書誌情報の特別な機能について説明することとします。
3788 \end_layout
3789
3790 \begin_layout Subsection
3791 他の引用様式
3792 \end_layout
3793
3794 \begin_layout Standard
3795 標準のBib\SpecialChar TeX
3796 は、引用された著作を参照するのに、([12]のように)数字を使用します。しかし、多くの科学分野で、これとは異なる引用様式が用いられています。もっとも
3797 よく見られるのは、著者-出版年様式(例:Knuth 1984a)です。\SpecialChar LyX
3798 は、この様式を提供する2つのパッケージ
3799 \begin_inset Flex Code
3800 status collapsed
3801
3802 \begin_layout Plain Layout
3803 natbib
3804 \end_layout
3805
3806 \end_inset
3807
3808
3809 \begin_inset Flex Code
3810 status collapsed
3811
3812 \begin_layout Plain Layout
3813 jurabib
3814 \end_layout
3815
3816 \end_inset
3817
3818 をサポートしています。これらのパッケージには、それぞれ長所短所がありますが、ここでは詳細に立ち入る紙幅がありません。単純な著者-出版年様式(あるいは著者-番号)
3819 様式が欲しい場合や、無数にある
3820 \begin_inset Flex Code
3821 status collapsed
3822
3823 \begin_layout Plain Layout
3824 natbib
3825 \end_layout
3826
3827 \end_inset
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 \emph on
3841 ibid.
3842 \emph default
3843 など、特別な機能が必要な場合には、
3844 \begin_inset Flex Code
3845 status collapsed
3846
3847 \begin_layout Plain Layout
3848 jurabib
3849 \end_layout
3850
3851 \end_inset
3852
3853 パッケージの利用を考えるとよいかもしれません。
3854 \end_layout
3855
3856 \begin_layout Standard
3857 \SpecialChar LyX
3858 での両パッケージの取扱い方は、ほぼ同じです。
3859 \begin_inset Flex MenuItem
3860 status collapsed
3861
3862 \begin_layout Plain Layout
3863 文書\SpecialChar menuseparator
3864 設定
3865 \end_layout
3866
3867 \end_inset
3868
3869 メニューを開き、
3870 \begin_inset Flex MenuItem
3871 status collapsed
3872
3873 \begin_layout Plain Layout
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 Natbib
3885 \end_layout
3886
3887 \end_inset
3888
3889 オプションか
3890 \begin_inset Flex MenuItem
3891 status collapsed
3892
3893 \begin_layout Plain Layout
3894 Jurabib
3895 \end_layout
3896
3897 \end_inset
3898
3899 オプションを選択してください。これらのパッケージによって、引用ダイアログに機能が追加され、参照の様式が選択できるようになります(「Knuth 1984」、「Kn
3900 uth (1984)」、「Knuth, 1984」、「1984」など)。両パッケージは、専用にデザインされたスタイルファイルを必要とすることに注意してください。
3901 両者ともそれ自身のスタイルファイルを同梱していますが、他にもたくさんの追加スタイルファイルがありますし、
3902 \begin_inset Flex Code
3903 status collapsed
3904
3905 \begin_layout Plain Layout
3906 natbib
3907 \end_layout
3908
3909 \end_inset
3910
3911 に至っては、対話的なスタイルファイルビルダーさえ存在します
3912 \begin_inset Foot
3913 status collapsed
3914
3915 \begin_layout Plain Layout
3916 \begin_inset Flex URL
3917 status open
3918
3919 \begin_layout Plain Layout
3920
3921 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3922 \end_layout
3923
3924 \end_inset
3925
3926 をご参照ください。
3927 \end_layout
3928
3929 \end_inset
3930
3931
3932 \end_layout
3933
3934 \begin_layout Subsection
3935 節分けされた書誌情報
3936 \end_layout
3937
3938 \begin_layout Standard
3939 場合によっては、書誌情報をいくつかの節に分ける必要があることがあります。たとえば、あなたが歴史家であるとすれば、出典と学術文献を分ける機能は、おそらく「必需品」
3940 でさえあります。残念ながら、Bib\SpecialChar TeX
3941 自身ではこのようなことができません。しかし、適切な\SpecialChar LaTeX
3942 パッケージの助けを借りると、Bib\SpecialChar TeX
3943 をこのような必要性を満たすように拡張するこ
3944 とができます。
3945 \end_layout
3946
3947 \begin_layout Standard
3948 \SpecialChar LyX
3949 は、このようなパッケージの一つである
3950 \begin_inset Flex Code
3951 status collapsed
3952
3953 \begin_layout Plain Layout
3954 bibtopic
3955 \end_layout
3956
3957 \end_inset
3958
3959
3960 \begin_inset Foot
3961 status collapsed
3962
3963 \begin_layout Plain Layout
3964 \begin_inset Flex URL
3965 status open
3966
3967 \begin_layout Plain Layout
3968
3969 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3970 \end_layout
3971
3972 \end_inset
3973
3974 から入手可能です。
3975 \end_layout
3976
3977 \end_inset
3978
3979 をそのままでサポートします。このパッケージの長所は、(
3980 \begin_inset Flex Code
3981 status collapsed
3982
3983 \begin_layout Plain Layout
3984 multibib
3985 \end_layout
3986
3987 \end_inset
3988
3989 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです。そのかわりに、書誌情報の違う節には、その節向けの項目を収録した別の文献データ
3990 ベースを用意する必要があります。たとえば、書誌情報を「出典」の節と「学術文献」の節に分けたい場合には、それぞれの文献データベース、たとえば
3991 \begin_inset Flex Code
3992 status collapsed
3993
3994 \begin_layout Plain Layout
3995 souces.bib
3996 \end_layout
3997
3998 \end_inset
3999
4000
4001 \begin_inset Flex Code
4002 status collapsed
4003
4004 \begin_layout Plain Layout
4005 scientific.bib
4006 \end_layout
4007
4008 \end_inset
4009
4010 とを作成する必要があります。
4011 \end_layout
4012
4013 \begin_layout Standard
4014 \begin_inset Flex MenuItem
4015 status collapsed
4016
4017 \begin_layout Plain Layout
4018 文書\SpecialChar menuseparator
4019 設定
4020 \end_layout
4021
4022 \end_inset
4023
4024 を開いて
4025 \begin_inset Flex MenuItem
4026 status collapsed
4027
4028 \begin_layout Plain Layout
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 をチェックしてください。すると、書誌情報の各節に一つずつ、複数の書誌情報を挿入することができます。上記の例では、Bib\SpecialChar TeX
4045 書誌情報
4046 \begin_inset Flex Code
4047 status collapsed
4048
4049 \begin_layout Plain Layout
4050 sources.bib
4051 \end_layout
4052
4053 \end_inset
4054
4055 と二つめの文献データベース
4056 \begin_inset Flex Code
4057 status collapsed
4058
4059 \begin_layout Plain Layout
4060 scientific.bib
4061 \end_layout
4062
4063 \end_inset
4064
4065 を挿入します。各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です。くわえて、書誌情報の節に、指定したデータベースの「引用されたすべての参照」を載せる
4066 (これが既定です)か、「引用されなかったすべての参照」を載せるか、あるいは「すべての参照」を載せるかを選択することができます。これは、もし書誌情報を「本文に引用
4067 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に、便利でありましょう。各節の見出しは、通常の節や小節として入れることができ
4068 ます。
4069 \begin_inset Flex Code
4070 status collapsed
4071
4072 \begin_layout Plain Layout
4073 bibtopic
4074 \end_layout
4075
4076 \end_inset
4077
4078 は、書誌情報用の見出しを取り除いてしまいますので、手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください)。
4079 \end_layout
4080
4081 \begin_layout Subsection
4082 複数の書誌情報
4083 \end_layout
4084
4085 \begin_layout Standard
4086 文書の節ごとあるいは章ごとの書誌情報など、複数の書誌情報はBib\SpecialChar TeX
4087 自身ではサポートされていません。しかしながら、もし若干の
4088 \begin_inset Flex Code
4089 status collapsed
4090
4091 \begin_layout Plain Layout
4092 \SpecialChar TeX
4093 コード
4094 \end_layout
4095
4096 \end_inset
4097
4098 (第
4099 \begin_inset CommandInset ref
4100 LatexCommand ref
4101 reference "sec:LaTeXコードを挿入する"
4102
4103 \end_inset
4104
4105 節を参照)を利用することを厭わなければ、\SpecialChar LyX
4106 で節分けされた書誌情報を作るのに使用されている(前節を参照)
4107 \begin_inset Flex Code
4108 status collapsed
4109
4110 \begin_layout Plain Layout
4111 bibtopic
4112 \end_layout
4113
4114 \end_inset
4115
4116 パッケージが、この課題を解決する簡単な方法を提供します
4117 \begin_inset Foot
4118 status collapsed
4119
4120 \begin_layout Plain Layout
4121 ほかに、
4122 \begin_inset Flex Code
4123 status collapsed
4124
4125 \begin_layout Plain Layout
4126 chapterbib
4127 \end_layout
4128
4129 \end_inset
4130
4131
4132 \begin_inset Flex Code
4133 status collapsed
4134
4135 \begin_layout Plain Layout
4136 bibunits
4137 \end_layout
4138
4139 \end_inset
4140
4141 パッケージを利用する方法もあります。
4142 \end_layout
4143
4144 \end_inset
4145
4146
4147 \end_layout
4148
4149 \begin_layout Standard
4150 まず
4151 \begin_inset Flex MenuItem
4152 status collapsed
4153
4154 \begin_layout Plain Layout
4155 文書\SpecialChar menuseparator
4156 設定
4157 \end_layout
4158
4159 \end_inset
4160
4161 に行って
4162 \begin_inset Flex MenuItem
4163 status collapsed
4164
4165 \begin_layout Plain Layout
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 を有効にしてください。つぎに文書中において、書誌情報(Bib\SpecialChar TeX
4182 書誌情報本体を含む)の入った節を
4183 \begin_inset Flex Code
4184 status collapsed
4185
4186 \begin_layout Plain Layout
4187
4188 \backslash
4189 begin{btUnit}
4190 \end_layout
4191
4192 \end_inset
4193
4194
4195 \begin_inset Flex Code
4196 status collapsed
4197
4198 \begin_layout Plain Layout
4199
4200 \backslash
4201 end{btUnit}
4202 \end_layout
4203
4204 \end_inset
4205
4206 のあいだにはさまなくてはなりません(これらのコマンドは\SpecialChar TeX
4207 コードとして挿入する必要があります)。書誌情報には、現在位置の
4208 \begin_inset Flex Code
4209 status collapsed
4210
4211 \begin_layout Plain Layout
4212 btUnit
4213 \end_layout
4214
4215 \end_inset
4216
4217 において引用されたすべての参照が含まれることになります。
4218 \series bold
4219 (註)
4220 \series default
4221 この方法を用いる場合には、すべての参照はいずれかの
4222 \begin_inset Flex Code
4223 status collapsed
4224
4225 \begin_layout Plain Layout
4226 btUnit
4227 \end_layout
4228
4229 \end_inset
4230
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 \end_layout
4243
4244 \begin_layout Section
4245 複合文書
4246 \end_layout
4247
4248 \begin_layout Subsection
4249 一般的な操作
4250 \end_layout
4251
4252 \begin_layout Standard
4253 たくさんの節を含んだ大きなファイルで作業をする場合、文書をいくつかのファイルに分割した方が往々にして便利ですし、場合によっては、表部分にはしょっちゅう変更が加え
4254 られるけれども、その前の文章はつねに同じであるようなケースもあるでしょう。このような場合には、複合文書を利用することを、まずご検討ください。たとえば、科学論文は
4255 通常、導入部・所見・結果・議論・結論の五つの節から成ります。これら各節を別々の\SpecialChar LyX
4256 ファイルにして、タイトル・著者・概要・書誌情報等と、これら五つのインクルード
4257 \begin_inset Foot
4258 status collapsed
4259
4260 \begin_layout Plain Layout
4261
4262 \series bold
4263 (訳註)
4264 \series default
4265 「取り込む」の意です。原語「include」に対する訳語として、プログラミング用語の「インクルードする」以外に適語がないので、ここではプログラミング用語をそのま
4266 ま使用します。
4267 \end_layout
4268
4269 \end_inset
4270
4271 ファイルを持つ、もう一つ別の「マスター」ファイルを作成するようにすることができます。これらの各ファイルは、単にマスターファイルにインクルードされるだけでなく、単
4272 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4273 ファイルであるように注意することが重要です。しかも、これらの各ファイルは、同じ文書クラスでなくてはなりません。a
4274 rticleクラスとbookクラスを混在させるようなことはなさらないでください。\SpecialChar LaTeX
4275 ファイルをインクルードすることもできますが、このファイルにはプリアンブルがあって
4276 はなりません(
4277 \begin_inset Flex Code
4278 status collapsed
4279
4280 \begin_layout Plain Layout
4281
4282 \backslash
4283 begin{document}
4284 \end_layout
4285
4286 \end_inset
4287
4288 行とその前のすべて、および
4289 \begin_inset Flex Code
4290 status collapsed
4291
4292 \begin_layout Plain Layout
4293
4294 \backslash
4295 end{document}行
4296 \end_layout
4297
4298 \end_inset
4299
4300 は削除しておかなければなりません)。さもないと、DVIファイルを作成する際にエラーが発生するでしょう。
4301 \end_layout
4302
4303 \begin_layout Standard
4304 \SpecialChar LyX
4305 では、
4306 \family sans
4307 挿入\SpecialChar menuseparator
4308 ファイル\SpecialChar menuseparator
4309 子文書
4310 \family default
4311 で簡単にファイルをインクルードすることができます。このメニューを選んでクリックすると、カーソルの現在位置に小さな枠が挿入されます。この枠をクリックすると、ダイア
4312 ログが現れるので、そこでインクルードするファイルとインクルード方法を選択することができます。
4313 \end_layout
4314
4315 \begin_layout Standard
4316 ファイル選択ボックスは、いまや自明でしょう。インクルード方法には、「include」・「input」・「verbatim」の三つがあります。「include」と
4317 「input」の違いは、正確には\SpecialChar LaTeX
4318 の達人にしか意味のないものですが、ほとんどの人にとって意味のある違いといえば、「include」されたファイルは新規頁から組版さ
4319 れるのに対し、「input」されたファイルは現在のページから組版される点です。
4320 \end_layout
4321
4322 \begin_layout Standard
4323 一般に、マスターファイルは、組版前に完全な\SpecialChar LaTeX
4324 ファイルに変換されますが、インクルードされるファイルは、プリアンブル情報をまったく持たない\SpecialChar LaTeX
4325 ファイルに変換されます。
4326 \end_layout
4327
4328 \begin_layout Standard
4329 「verbatim」インクルードファイルでは、ファイルの内容がそのまま(つまり「
4330 \begin_inset Flex Code
4331 status collapsed
4332
4333 \begin_layout Plain Layout
4334 verbatim
4335 \end_layout
4336
4337 \end_inset
4338
4339 」モードで)固定幅タイプライタフォントで組版されます。通常、このファイルの空白は、通常の\SpecialChar LyX
4340 での空白の取扱いとは違って、連続した複数の空白がそのまま出力されるものの
4341 、単なる見えない空白です。ただし、
4342 \family sans
4343
4344 \begin_inset Flex MenuItem
4345 status collapsed
4346
4347 \begin_layout Plain Layout
4348
4349 \family sans
4350 出力の空白に印付けをする
4351 \end_layout
4352
4353 \end_inset
4354
4355
4356 \family default
4357 チェックボックスを有効にすると、空白が存在することを明確にするために空白の印が出力されます。
4358 \end_layout
4359
4360 \begin_layout Subsection
4361 ファイル間の相互参照
4362 \end_layout
4363
4364 \begin_layout Standard
4365 \begin_inset Box Shadowbox
4366 position "t"
4367 hor_pos "c"
4368 has_inner_box 1
4369 inner_pos "t"
4370 use_parbox 0
4371 use_makebox 0
4372 width "100col%"
4373 special "none"
4374 height "1in"
4375 height_special "totalheight"
4376 thickness "0.4pt"
4377 separation "3pt"
4378 shadowsize "4pt"
4379 framecolor "black"
4380 backgroundcolor "none"
4381 status open
4382
4383 \begin_layout Plain Layout
4384 この節の内容は、すでに古くなっています。既定のマスター文書についてと、マスターが開いているときに子文書をどう開くかについて記述する必要があります。[[要修正]]
4385 \end_layout
4386
4387 \end_inset
4388
4389
4390 \end_layout
4391
4392 \begin_layout Standard
4393 異なるファイル間に相互参照を設定することも可能です。まず、すべての関係するファイルを開いてください。例として、2つのファイルを扱う場合を考え、各ファイルをA・B
4394 と呼びます。BがAにインクルードされるファイルだとします。Aにラベルを入れて、Bで参照したいとしましょう。文書Bで相互参照ダイアログを開いて、使用する「バッファ
4395 」を選んでください。
4396 \end_layout
4397
4398 \begin_layout Subsection
4399 すべての子文書での書誌情報
4400 \end_layout
4401
4402 \begin_layout Standard
4403 \begin_inset Box Shadowbox
4404 position "t"
4405 hor_pos "c"
4406 has_inner_box 1
4407 inner_pos "t"
4408 use_parbox 0
4409 use_makebox 0
4410 width "100col%"
4411 special "none"
4412 height "1in"
4413 height_special "totalheight"
4414 thickness "0.4pt"
4415 separation "3pt"
4416 shadowsize "4pt"
4417 framecolor "black"
4418 backgroundcolor "none"
4419 status open
4420
4421 \begin_layout Plain Layout
4422 この節も更新が必要です。この点に関する内容がwikiにあるので、それをここにコピーすることも可か。
4423 \end_layout
4424
4425 \end_inset
4426
4427
4428 \end_layout
4429
4430 \begin_layout Standard
4431 すべての子文書の全文献項目を含んだ書誌情報一覧をコピーし、それをコメントに変更してください。このようにすることで、\SpecialChar LyX
4432 は.bibファイルを見つけることができ、書誌情報
4433 一覧を見えるようにせずとも簡単に参照を挿入することができるようになります。
4434 \end_layout
4435
4436 \begin_layout Standard
4437 書誌情報一覧がコメントにあるために、\SpecialChar LaTeX
4438 はそれを使用しないので、参照は[1]のようには表示されないで[?]のように表示されます。ひとつの解決法として、コメントをイン
4439 クルードする\SpecialChar LaTeX
4440 パッケージの
4441 \begin_inset Flex Code
4442 status collapsed
4443
4444 \begin_layout Plain Layout
4445 comment
4446 \end_layout
4447
4448 \end_inset
4449
4450 を使用して、ファイルを別々に処理する方法があります。そのためには、すべての子文書のプリアンブルに以下を書き加えてください。
4451 \end_layout
4452
4453 \begin_layout LyX-Code
4454
4455 \backslash
4456 usepackage{comment}
4457 \end_layout
4458
4459 \begin_layout LyX-Code
4460
4461 \backslash
4462 includecomment{comment}
4463 \end_layout
4464
4465 \begin_layout Standard
4466 \begin_inset Flex URL
4467 status collapsed
4468
4469 \begin_layout Plain Layout
4470
4471 http://wiki.lyx.org/FAQ/Unsorted#toc31
4472 \end_layout
4473
4474 \end_inset
4475
4476 も参照してください。
4477 \end_layout
4478
4479 \begin_layout Section
4480 \SpecialChar LyX
4481 書庫
4482 \end_layout
4483
4484 \begin_layout Standard
4485 しばしばユーザーは、出版社に送ったり、共著者とやりとりするために、\SpecialChar LyX
4486 ファイルを、その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります。\SpecialChar LyX
4487
4488  2.0には、この過程を自動化するPythonスクリプト(
4489 \begin_inset Flex Code
4490 status collapsed
4491
4492 \begin_layout Plain Layout
4493 lyxpak.py
4494 \end_layout
4495
4496 \end_inset
4497
4498 )が含まれています。これを使うには、
4499 \begin_inset Flex Code
4500 status collapsed
4501
4502 \begin_layout Plain Layout
4503 zipfile
4504 \end_layout
4505
4506 \end_inset
4507
4508  pythonモジュールまたは
4509 \begin_inset Flex Code
4510 status collapsed
4511
4512 \begin_layout Plain Layout
4513 tarfile
4514 \end_layout
4515
4516 \end_inset
4517
4518  pythonモジュールが、システムに導入済みであることが必要です。既定設定では、Unix系システムでは、
4519 \begin_inset Flex Code
4520 status collapsed
4521
4522 \begin_layout Plain Layout
4523 gzip
4524 \end_layout
4525
4526 \end_inset
4527
4528 圧縮
4529 \begin_inset Flex Code
4530 status collapsed
4531
4532 \begin_layout Plain Layout
4533 tar
4534 \end_layout
4535
4536 \end_inset
4537
4538 ファイル形式が優先され、Windowsでは
4539 \begin_inset Flex Code
4540 status collapsed
4541
4542 \begin_layout Plain Layout
4543 zip
4544 \end_layout
4545
4546 \end_inset
4547
4548 形式が優先されます。
4549 \end_layout
4550
4551 \begin_layout Standard
4552 \SpecialChar LyX
4553 の環境構成時には、「\SpecialChar LyX
4554 書庫」を書き出すことができるようにスクリプトが準備され、
4555 \begin_inset Flex MenuItem
4556 status collapsed
4557
4558 \begin_layout Plain Layout
4559 ファイル\SpecialChar menuseparator
4560 書き出し
4561 \end_layout
4562
4563 \end_inset
4564
4565 の下で利用可能となります。
4566 \end_layout
4567
4568 \begin_layout Standard
4569 \begin_inset Flex MenuItem
4570 status collapsed
4571
4572 \begin_layout Plain Layout
4573 ツール\SpecialChar menuseparator
4574 設定\SpecialChar menuseparator
4575 ファイル処理\SpecialChar menuseparator
4576 変換子
4577 \end_layout
4578
4579 \end_inset
4580
4581
4582 \begin_inset Flex MenuItem
4583 status collapsed
4584
4585 \begin_layout Plain Layout
4586 \SpecialChar LyX
4587 \SpecialChar menuseparator
4588 \SpecialChar LyX
4589 書庫
4590 \end_layout
4591
4592 \end_inset
4593
4594 変換子に、
4595 \begin_inset Flex Code
4596 status collapsed
4597
4598 \begin_layout Plain Layout
4599 -t
4600 \end_layout
4601
4602 \end_inset
4603
4604 スイッチや
4605 \begin_inset Flex Code
4606 status collapsed
4607
4608 \begin_layout Plain Layout
4609 -z
4610 \end_layout
4611
4612 \end_inset
4613
4614 スイッチを加えることで、プラットホームとは独立に、
4615 \begin_inset Flex Code
4616 status collapsed
4617
4618 \begin_layout Plain Layout
4619 tar
4620 \end_layout
4621
4622 \end_inset
4623
4624 形式や
4625 \begin_inset Flex Code
4626 status collapsed
4627
4628 \begin_layout Plain Layout
4629 zip
4630 \end_layout
4631
4632 \end_inset
4633
4634 形式を強制することができます(スイッチは、スクリプト名の前ではなく、後ろに加えてください)。
4635 \end_layout
4636
4637 \begin_layout Section
4638 装飾的なヘッダ・フッタ
4639 \end_layout
4640
4641 \begin_layout Standard
4642 既定のページレイアウトは、どちらかといえば素っ気ないものです。
4643 \begin_inset Flex Code
4644 status collapsed
4645
4646 \begin_layout Plain Layout
4647 article
4648 \end_layout
4649
4650 \end_inset
4651
4652 文書クラスの場合には、ページの下の真ん中にページ番号がつくだけです。この取扱説明書はKOMA-scriptのbookクラスなので、すこしは凝ってますが、ほんとう
4653 に着飾るには、『
4654 \emph on
4655 ユーザーの手引き
4656 \emph default
4657 』に述べられているように、文書ページスタイルを「装飾的(fancy)」に設定する必要があります。この節では、望んだとおりの効果を得るために、\SpecialChar LaTeX
4658 プリアンブルに挿入す
4659 る必要のある\SpecialChar LaTeX
4660 コードについて解説します。
4661 \end_layout
4662
4663 \begin_layout Standard
4664 ページへッダは、「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています。フッタも同様に3つのフィールド
4665 に分類されています。これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
4666 コマンドには、
4667 \family typewriter
4668
4669 \begin_inset Flex Code
4670 status collapsed
4671
4672 \begin_layout Plain Layout
4673
4674 \family typewriter
4675
4676 \backslash
4677 lhead
4678 \end_layout
4679
4680 \end_inset
4681
4682
4683 \family default
4684
4685 \family typewriter
4686
4687 \begin_inset Flex Code
4688 status collapsed
4689
4690 \begin_layout Plain Layout
4691
4692 \family typewriter
4693
4694 \backslash
4695 chead
4696 \end_layout
4697
4698 \end_inset
4699
4700
4701 \family default
4702
4703 \family typewriter
4704
4705 \begin_inset Flex Code
4706 status collapsed
4707
4708 \begin_layout Plain Layout
4709
4710 \family typewriter
4711
4712 \backslash
4713 rhead
4714 \end_layout
4715
4716 \end_inset
4717
4718
4719 \family default
4720
4721 \begin_inset Flex Code
4722 status collapsed
4723
4724 \begin_layout Plain Layout
4725
4726 \backslash
4727 lfoot
4728 \end_layout
4729
4730 \end_inset
4731
4732 などがあります。かりに、各ページの左上端に自分の名前を入れたいものとしましょう。次のようなコマンドをプリアンブルに入れるだけです。
4733 \end_layout
4734
4735 \begin_layout Standard
4736
4737 \family typewriter
4738
4739 \backslash
4740 lhead{物書 はじめ}
4741 \end_layout
4742
4743 \begin_layout Standard
4744 これで自分の名前が左上に現れます。フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には、空の引数を持つコマンドを入
4745 れるだけです。すなわち、
4746 \end_layout
4747
4748 \begin_layout Standard
4749
4750 \family typewriter
4751
4752 \backslash
4753 cfoot{}
4754 \begin_inset Newline newline
4755 \end_inset
4756
4757
4758 \family default
4759 とします。
4760 \end_layout
4761
4762 \begin_layout Standard
4763 もっと美しくしてみましょう。節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ、ページ番号を(4ページのように)右上に、自分の名前を左下に、日
4764 付を右下に入れます。以下のコマンドをプリアンブルに入れます。
4765 \end_layout
4766
4767 \begin_layout Standard
4768
4769 \family typewriter
4770
4771 \backslash
4772 lhead{第
4773 \backslash
4774 thesection 節}
4775 \end_layout
4776
4777 \begin_layout Standard
4778
4779 \family typewriter
4780
4781 \backslash
4782 chead{}
4783 \end_layout
4784
4785 \begin_layout Standard
4786
4787 \family typewriter
4788
4789 \backslash
4790 rhead{
4791 \backslash
4792 thepage ページ}
4793 \end_layout
4794
4795 \begin_layout Standard
4796
4797 \family typewriter
4798
4799 \backslash
4800 lfoot{物書 はじめ}
4801 \end_layout
4802
4803 \begin_layout Standard
4804
4805 \family typewriter
4806
4807 \backslash
4808 cfoot{}
4809 \end_layout
4810
4811 \begin_layout Standard
4812
4813 \family typewriter
4814
4815 \backslash
4816 rfoot{
4817 \backslash
4818 today}
4819 \end_layout
4820
4821 \begin_layout Standard
4822 コマンド
4823 \family typewriter
4824
4825 \begin_inset Flex Code
4826 status collapsed
4827
4828 \begin_layout Plain Layout
4829
4830 \family typewriter
4831
4832 \backslash
4833 thesecti
4834 \family default
4835 o
4836 \family typewriter
4837 n
4838 \end_layout
4839
4840 \end_inset
4841
4842
4843 \family default
4844
4845 \begin_inset Flex Code
4846 status collapsed
4847
4848 \begin_layout Plain Layout
4849
4850 \family typewriter
4851
4852 \backslash
4853 thepa
4854 \family default
4855 ge
4856 \end_layout
4857
4858 \end_inset
4859
4860 は、それぞれ\SpecialChar LaTeX
4861 の節カウンタおよびページカウンタを取得するもので、これによって現在の節番号とページ番号を印字します。
4862 \begin_inset Flex Code
4863 status collapsed
4864
4865 \begin_layout Plain Layout
4866
4867 \family typewriter
4868
4869 \backslash
4870 tod
4871 \family default
4872 ay
4873 \end_layout
4874
4875 \end_inset
4876
4877 は、今日の日付を印字するものです。
4878 \end_layout
4879
4880 \begin_layout Standard
4881 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます。もし罫線が必要なければ、太さを0にしてください。ヘッダ罫線は、既定では0.4ptの太さであり、
4882 フッタ罫線は0ptです。太さを変更するには、
4883 \family typewriter
4884
4885 \begin_inset Flex Code
4886 status collapsed
4887
4888 \begin_layout Plain Layout
4889
4890 \family typewriter
4891
4892 \backslash
4893 renewcommand{
4894 \backslash
4895 headrulewidth}{0.4pt}
4896 \end_layout
4897
4898 \end_inset
4899
4900
4901 \family default
4902
4903 \family typewriter
4904
4905 \begin_inset Flex Code
4906 status collapsed
4907
4908 \begin_layout Plain Layout
4909
4910 \family typewriter
4911
4912 \backslash
4913 renewcommand{
4914 \backslash
4915 footrulewidth}{0.4pt}
4916 \end_layout
4917
4918 \end_inset
4919
4920
4921 \family default
4922 のようなコマンドを使用してください。
4923 \end_layout
4924
4925 \begin_layout Standard
4926 \begin_inset Flex Code
4927 status collapsed
4928
4929 \begin_layout Plain Layout
4930
4931 \family typewriter
4932
4933 \backslash
4934 thispagestyle{empty}
4935 \end_layout
4936
4937 \end_inset
4938
4939
4940 \begin_inset Flex Code
4941 status collapsed
4942
4943 \begin_layout Plain Layout
4944
4945 \family typewriter
4946
4947 \backslash
4948 thispagestyle{plain}
4949 \end_layout
4950
4951 \end_inset
4952
4953
4954 \begin_inset Flex Code
4955 status collapsed
4956
4957 \begin_layout Plain Layout
4958
4959 \family typewriter
4960
4961 \backslash
4962 thispagestyle{fancy}
4963 \end_layout
4964
4965 \end_inset
4966
4967 のようなコマンドを使えば、各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます。設定を変更したいページに、これらのコマンドを\SpecialChar TeX
4968 コードとして
4969 挿入してください。実は、タイトルページは、その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず、既定でプレーン
4970 (plain)になるように設定されているのです。
4971 \end_layout
4972
4973 \begin_layout Standard
4974 奇数ページの左上だけに何かを挿入するなど、もっと複雑なコマンドもあるのですが、詳しい解説は
4975 \begin_inset Flex Code
4976 status collapsed
4977
4978 \begin_layout Plain Layout
4979
4980 \family typewriter
4981 fancyhdr
4982 \end_layout
4983
4984 \end_inset
4985
4986 パッケージの取扱説明書をご参照ください(
4987 \begin_inset Flex Code
4988 status collapsed
4989
4990 \begin_layout Plain Layout
4991 fancyhdr.dvi
4992 \end_layout
4993
4994 \end_inset
4995
4996 を探してください)。
4997 \end_layout
4998
4999 \begin_layout Standard
5000 最後の例として、へッダやフッタに画像を挿入できることを取り上げましょう。会社のロゴをページ左上に入れたいものとします。たとえば、
5001 \end_layout
5002
5003 \begin_layout Standard
5004
5005 \family typewriter
5006
5007 \backslash
5008 lhead{
5009 \backslash
5010 resizebox{1in}{!}{
5011 \backslash
5012 includegraphics{logo.eps}}}
5013 \end_layout
5014
5015 \begin_layout Standard
5016 \noindent
5017 とすれば、これを実現できます(文書中に他に画像を挿入していない場合には、
5018 \begin_inset Newline newline
5019 \end_inset
5020
5021
5022 \begin_inset Flex Code
5023 status collapsed
5024
5025 \begin_layout Plain Layout
5026 \noindent
5027
5028 \family typewriter
5029
5030 \backslash
5031 usepackage{graphics}
5032 \end_layout
5033
5034 \end_inset
5035
5036 をプリアンブルに宣言する必要があります)。
5037 \end_layout
5038
5039 \begin_layout Section
5040 箇条書き(記号)ブリットの指定
5041 \begin_inset CommandInset label
5042 LatexCommand label
5043 name "sec:ブリット"
5044
5045 \end_inset
5046
5047
5048 \end_layout
5049
5050 \begin_layout Standard
5051
5052 \noun on
5053 Allan Rae文
5054 \end_layout
5055
5056 \begin_layout Subsection
5057 はじめに
5058 \end_layout
5059
5060 \begin_layout Standard
5061 \SpecialChar LyX
5062 には、ブリットの形が216個準備されていて、簡単なダイアログから呼び出すことができます。このダイアログを使えば、箇条書き(記号)の各階層で使うブリットの形を変更
5063 することができます。この設定は文書全体に共通なので、段落ごとに別のブリットを指定することはできません
5064 \begin_inset Foot
5065 status collapsed
5066
5067 \begin_layout Plain Layout
5068 正確には可能ですが、手動で行う必要があります。
5069 \end_layout
5070
5071 \end_inset
5072
5073
5074 \end_layout
5075
5076 \begin_layout Subsection
5077 外見
5078 \end_layout
5079
5080 \begin_layout Standard
5081 メニュー項目の
5082 \begin_inset Flex MenuItem
5083 status collapsed
5084
5085 \begin_layout Plain Layout
5086 文書\SpecialChar menuseparator
5087 設定
5088 \end_layout
5089
5090 \end_inset
5091
5092 を選択してダイアログを開き、
5093 \begin_inset Flex MenuItem
5094 status collapsed
5095
5096 \begin_layout Plain Layout
5097 ブリット
5098 \end_layout
5099
5100 \end_inset
5101
5102 タブを選択してください。
5103 \end_layout
5104
5105 \begin_layout Standard
5106 このダイアログは、ブリット形の一覧表を提示します。
5107 \begin_inset Flex MenuItem
5108 status collapsed
5109
5110 \begin_layout Plain Layout
5111 フォント
5112 \end_layout
5113
5114 \end_inset
5115
5116 と書いてあるドロップダウンメニューで、6つの各ブリット形パネルを切り替えることができます。また、一覧表左の
5117 \begin_inset Flex MenuItem
5118 status collapsed
5119
5120 \begin_layout Plain Layout
5121 階層
5122 \end_layout
5123
5124 \end_inset
5125
5126 パネルは、変更したい階層を選択するものです。
5127 \begin_inset Flex MenuItem
5128 status collapsed
5129
5130 \begin_layout Plain Layout
5131 任意のブリット
5132 \end_layout
5133
5134 \end_inset
5135
5136 では、指定したい\SpecialChar LaTeX
5137 表現を入力することができます。任意のブリットを指定した場合には、そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5138 プリアンブルで指定する必要があります。
5139 \end_layout
5140
5141 \begin_layout Standard
5142 6つのパネルは、それぞれが必要とするパッケージによって分類されています。下記は、フォント名と\SpecialChar LaTeX
5143 パッケージの対応表です。
5144 \begin_inset Separator parbreak
5145 \end_inset
5146
5147
5148 \end_layout
5149
5150 \begin_layout Standard
5151 \align center
5152 \begin_inset Tabular
5153 <lyxtabular version="3" rows="7" columns="2">
5154 <features tabularvalignment="middle">
5155 <column alignment="center" valignment="top" width="0pt">
5156 <column alignment="center" valignment="top" width="0pt">
5157 <row>
5158 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5159 \begin_inset Text
5160
5161 \begin_layout Plain Layout
5162 フォント
5163 \end_layout
5164
5165 \end_inset
5166 </cell>
5167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5168 \begin_inset Text
5169
5170 \begin_layout Plain Layout
5171
5172 \family roman
5173 \series medium
5174 \shape up
5175 \size normal
5176 \emph off
5177 \bar no
5178 \noun off
5179 \color none
5180 必要とするパッケージ
5181 \end_layout
5182
5183 \end_inset
5184 </cell>
5185 </row>
5186 <row>
5187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5188 \begin_inset Text
5189
5190 \begin_layout Plain Layout
5191
5192 \family sans
5193 標準
5194 \end_layout
5195
5196 \end_inset
5197 </cell>
5198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5199 \begin_inset Text
5200
5201 \begin_layout Plain Layout
5202
5203 \series medium
5204 \shape up
5205 \size normal
5206 \emph off
5207 \bar no
5208 \noun off
5209 \color none
5210 \SpecialChar LaTeX
5211
5212 \family roman
5213 本体
5214 \end_layout
5215
5216 \end_inset
5217 </cell>
5218 </row>
5219 <row>
5220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5221 \begin_inset Text
5222
5223 \begin_layout Plain Layout
5224
5225 \family sans
5226 \series medium
5227 \shape up
5228 \size normal
5229 \emph off
5230 \bar no
5231 \noun off
5232 \color none
5233 数式
5234 \end_layout
5235
5236 \end_inset
5237 </cell>
5238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5239 \begin_inset Text
5240
5241 \begin_layout Plain Layout
5242
5243 \family typewriter
5244 \series medium
5245 \shape up
5246 \size normal
5247 \emph off
5248 \bar no
5249 \noun off
5250 \color none
5251 amssymb.sty
5252 \end_layout
5253
5254 \end_inset
5255 </cell>
5256 </row>
5257 <row>
5258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5259 \begin_inset Text
5260
5261 \begin_layout Plain Layout
5262
5263 \family sans
5264 \series medium
5265 \shape up
5266 \size normal
5267 \emph off
5268 \bar no
5269 \noun off
5270 \color none
5271 絵文字1
5272 \end_layout
5273
5274 \end_inset
5275 </cell>
5276 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5277 \begin_inset Text
5278
5279 \begin_layout Plain Layout
5280
5281 \family typewriter
5282 \series medium
5283 \shape up
5284 \size normal
5285 \emph off
5286 \bar no
5287 \noun off
5288 \color none
5289 pifont.sty
5290 \end_layout
5291
5292 \end_inset
5293 </cell>
5294 </row>
5295 <row>
5296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5297 \begin_inset Text
5298
5299 \begin_layout Plain Layout
5300
5301 \family sans
5302 \series medium
5303 \shape up
5304 \size normal
5305 \emph off
5306 \bar no
5307 \noun off
5308 \color none
5309 絵文字2
5310 \end_layout
5311
5312 \end_inset
5313 </cell>
5314 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5315 \begin_inset Text
5316
5317 \begin_layout Plain Layout
5318
5319 \family typewriter
5320 \series medium
5321 \shape up
5322 \size normal
5323 \emph off
5324 \bar no
5325 \noun off
5326 \color none
5327 pifont.sty
5328 \end_layout
5329
5330 \end_inset
5331 </cell>
5332 </row>
5333 <row>
5334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5335 \begin_inset Text
5336
5337 \begin_layout Plain Layout
5338
5339 \family sans
5340 \series medium
5341 \shape up
5342 \size normal
5343 \emph off
5344 \bar no
5345 \noun off
5346 \color none
5347 絵文字3
5348 \end_layout
5349
5350 \end_inset
5351 </cell>
5352 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5353 \begin_inset Text
5354
5355 \begin_layout Plain Layout
5356
5357 \family typewriter
5358 \series medium
5359 \shape up
5360 \size normal
5361 \emph off
5362 \bar no
5363 \noun off
5364 \color none
5365 pifont.sty
5366 \end_layout
5367
5368 \end_inset
5369 </cell>
5370 </row>
5371 <row>
5372 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5373 \begin_inset Text
5374
5375 \begin_layout Plain Layout
5376
5377 \family sans
5378 \series medium
5379 \shape up
5380 \size normal
5381 \emph off
5382 \bar no
5383 \noun off
5384 \color none
5385 絵文字4
5386 \end_layout
5387
5388 \end_inset
5389 </cell>
5390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5391 \begin_inset Text
5392
5393 \begin_layout Plain Layout
5394
5395 \family typewriter
5396 \series medium
5397 \shape up
5398 \size normal
5399 \emph off
5400 \bar no
5401 \noun off
5402 \color none
5403 pifont.sty
5404 \end_layout
5405
5406 \end_inset
5407 </cell>
5408 </row>
5409 </lyxtabular>
5410
5411 \end_inset
5412
5413
5414 \end_layout
5415
5416 \begin_layout Standard
5417 \SpecialChar LyX
5418 は、ユーザーが導入されていないパッケージのブリットを使用したとしても、警告を発しません。ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5419 エラーが出るようならば、
5420 パッケージが導入されていない可能性が大です
5421 \begin_inset Foot
5422 status collapsed
5423
5424 \begin_layout Plain Layout
5425 \SpecialChar LyX
5426 が、パッケージがなくてもブリットを使用することを許すのは、編集をここで行ったとしても、別のところへエクスポートする可能性があるからです。
5427 \end_layout
5428
5429 \end_inset
5430
5431
5432 \end_layout
5433
5434 \begin_layout Subsection
5435 使用法
5436 \end_layout
5437
5438 \begin_layout Standard
5439 変更したいブリット階層を選んで、ブリット形と寸法を選択してください。何らかの変更を加えたとしても、\SpecialChar LyX
5440 上には反映されませんが、文書の表示を行えば確認されます。
5441 \end_layout
5442
5443 \begin_layout Standard
5444 ブリット形は、適切な階層のブリットボタンをマウスで右クリックすれば、簡単に既定値に初期化することができます
5445 \begin_inset Foot
5446 status collapsed
5447
5448 \begin_layout Plain Layout
5449 もし
5450 \emph on
5451 本当に
5452 \emph default
5453 段落ごとに異なるブリットの形を使いたいならば、\SpecialChar TeX
5454 コードを使って少し手を汚す必要があります。この場合も、ブリット選択ダイアログを使えば、さまざまな形のLaTeXコー
5455 ドを確認することができるので手助けとなるでしょう。任意に設定した段落をつくるには、以下のような選択肢があります。
5456 \end_layout
5457
5458 \begin_layout Plain Layout
5459 \begin_inset ERT
5460 status open
5461
5462 \begin_layout Plain Layout
5463
5464
5465 \backslash
5466 let
5467 \backslash
5468 savelabelitemi=
5469 \backslash
5470 labelitemi
5471 \end_layout
5472
5473 \end_inset
5474
5475
5476 \end_layout
5477
5478 \begin_layout Plain Layout
5479 \begin_inset ERT
5480 status open
5481
5482 \begin_layout Plain Layout
5483
5484
5485 \backslash
5486 renewcommand
5487 \backslash
5488 labelitemi[0]{
5489 \backslash
5490 small
5491 \backslash
5492 (
5493 \backslash
5494 sharp
5495 \backslash
5496 )}
5497 \end_layout
5498
5499 \end_inset
5500
5501
5502 \end_layout
5503
5504 \begin_layout Itemize
5505 特定の階層の新しいブリット形を指定するには、\SpecialChar LaTeX
5506 コマンド
5507 \begin_inset Flex Code
5508 status collapsed
5509
5510 \begin_layout Plain Layout
5511
5512 \family typewriter
5513
5514 \backslash
5515 renewcommand{}{}
5516 \end_layout
5517
5518 \end_inset
5519
5520 を使用します。あとで現在のブリット形に戻すことができるように、現在のブリット形を保存しておく必要もあります。ここで使っている箇条書きでは、第1階層のブリットを変
5521 更するために、以下の\SpecialChar LaTeX
5522 コードが使用されています。
5523 \begin_inset Separator parbreak
5524 \end_inset
5525
5526
5527 \end_layout
5528
5529 \begin_deeper
5530 \begin_layout LyX-Code
5531
5532 \family typewriter
5533
5534 \backslash
5535 let
5536 \backslash
5537 savelabelitemi=
5538 \backslash
5539 labelitemi
5540 \end_layout
5541
5542 \begin_layout LyX-Code
5543
5544 \family typewriter
5545
5546 \backslash
5547 renewcommand
5548 \backslash
5549 labelitemi[0]{
5550 \backslash
5551 small
5552 \backslash
5553 (
5554 \backslash
5555 sharp
5556 \backslash
5557 )}
5558 \end_layout
5559
5560 \end_deeper
5561 \begin_layout Itemize
5562 箇条書き(記号)の階層は、
5563 \begin_inset Flex Code
5564 status collapsed
5565
5566 \begin_layout Plain Layout
5567
5568 \backslash
5569 labelitem
5570 \end_layout
5571
5572 \end_inset
5573
5574 コマンドの一部にローマ数字で指定されていることに注意してください。
5575 \end_layout
5576
5577 \begin_layout Itemize
5578 \begin_inset ERT
5579 status open
5580
5581 \begin_layout Plain Layout
5582
5583 [
5584 \backslash
5585 (
5586 \backslash
5587 star
5588 \backslash
5589 )]
5590 \end_layout
5591
5592 \end_inset
5593
5594 各項目のブリットを指定するには、角括弧で囲んだブリット形を、行頭に
5595 \begin_inset Flex Code
5596 status collapsed
5597
5598 \begin_layout Plain Layout
5599 \SpecialChar TeX
5600 コード
5601 \end_layout
5602
5603 \end_inset
5604
5605 として挿入してください。たとえば、この項目の行頭には
5606 \family typewriter
5607
5608 \begin_inset Flex Code
5609 status collapsed
5610
5611 \begin_layout Plain Layout
5612
5613 \family typewriter
5614 [
5615 \backslash
5616 (
5617 \backslash
5618 star
5619 \backslash
5620 )]
5621 \end_layout
5622
5623 \end_inset
5624
5625
5626 \family default
5627 が指定されています。
5628 \end_layout
5629
5630 \begin_layout Plain Layout
5631 \begin_inset ERT
5632 status open
5633
5634 \begin_layout Plain Layout
5635
5636
5637 \backslash
5638 renewcommand
5639 \backslash
5640 labelitemi[0]{
5641 \backslash
5642 savelabelitemi}
5643 \end_layout
5644
5645 \end_inset
5646
5647
5648 \end_layout
5649
5650 \begin_layout Plain Layout
5651 文書全体で使用するブリット形が有効であるようにするために、labelitemを元の設定に戻す必要があります。そのためには、以下のようにします。
5652 \end_layout
5653
5654 \begin_layout LyX-Code
5655
5656 \family typewriter
5657
5658 \backslash
5659 renewcommand
5660 \backslash
5661 labelitemi[0]{
5662 \backslash
5663 savelabelitemi}
5664 \end_layout
5665
5666 \end_inset
5667
5668
5669 \end_layout
5670
5671 \begin_layout Chapter
5672 \SpecialChar LyX
5673 とインターネット網
5674 \end_layout
5675
5676 \begin_layout Standard
5677 \SpecialChar LyX
5678 は、これまでも長い間、HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました。しかしながら、第2.0版以前では、HTMLへの書き出し
5679 は、常に外部変換子を用いることで実現されていました
5680 \begin_inset Foot
5681 status collapsed
5682
5683 \begin_layout Plain Layout
5684 \SpecialChar LyX
5685 で外部変換子を使うことについての詳細は、取扱説明書『
5686 \emph on
5687 カスタマイズ篇
5688 \emph default
5689 』の「
5690 \emph on
5691 変換子
5692 \emph default
5693 」の節をご覧ください。
5694 \end_layout
5695
5696 \end_inset
5697
5698 。これらは2つのグループに大別できます。1つは、
5699 \begin_inset Flex Code
5700 status collapsed
5701
5702 \begin_layout Plain Layout
5703 htlatex
5704 \end_layout
5705
5706 \end_inset
5707
5708
5709 \begin_inset Flex Code
5710 status collapsed
5711
5712 \begin_layout Plain Layout
5713 html2latex
5714 \end_layout
5715
5716 \end_inset
5717
5718
5719 \begin_inset Flex Code
5720 status collapsed
5721
5722 \begin_layout Plain Layout
5723 plastex
5724 \end_layout
5725
5726 \end_inset
5727
5728 のように、\SpecialChar LaTeX
5729 を中間形式として用い、その\SpecialChar LaTeX
5730 を生成するのに\SpecialChar LyX
5731 を用いるもの。2つめは、
5732 \begin_inset Flex Code
5733 status collapsed
5734
5735 \begin_layout Plain Layout
5736 e\SpecialChar LyX
5737 er
5738 \end_layout
5739
5740 \end_inset
5741
5742 のように、直接\SpecialChar LyX
5743 ファイルに働きかける変換子です。これらは、それぞれに長所・短所を有しています。
5744 \end_layout
5745
5746 \begin_layout Standard
5747 \SpecialChar LaTeX
5748 ベースの変換子は、原則として、\SpecialChar LaTeX
5749 が書きだす文書についてのすべてを知っているという長所があります。この種の変換子は、例えば、特定のコードのくだりが、\SpecialChar LyX
5750 によって生成され
5751 たのか、\SpecialChar TeX
5752 コードで書かれたのかについては気にしません。これらの変換子は、
5753 \begin_inset Flex Code
5754 status collapsed
5755
5756 \begin_layout Plain Layout
5757 aux
5758 \end_layout
5759
5760 \end_inset
5761
5762 ファイルやカウンタや参照を取り扱うことができ、Bib\SpecialChar TeX
5763 が生成する
5764 \begin_inset Flex Code
5765 status collapsed
5766
5767 \begin_layout Plain Layout
5768 bbl
5769 \end_layout
5770
5771 \end_inset
5772
5773 ファイルも利用することがよくあります。一方で、\SpecialChar LaTeX
5774 は解析の非常に難しい言語であり—\SpecialChar TeX
5775 自身だけが\SpecialChar TeX
5776 を理解することができると言われたりすることがあります—、\SpecialChar LaTeX
5777 ベースの変換子は
5778 、非常に簡単な文法に見えるものでさえ飲み込めず、複雑なものになると全く歯が立たないこともあります。例えば、この現行を書いている時点では、取扱説明書『
5779 \emph on
5780 埋込オブジェクト篇
5781 \emph default
5782 』は、他の変換子では書き出しができるのに、
5783 \begin_inset Flex Code
5784 status collapsed
5785
5786 \begin_layout Plain Layout
5787 htlatex
5788 \end_layout
5789
5790 \end_inset
5791
5792 では行うことができません。他には、数式をどう取り扱うかという問題があります。これらの変換子の典型的なものは、数式を小さな画像に変換して、HTML文書からこれらの
5793 画像へのリンクを張ります。これらの画像は、実は\SpecialChar LaTeX
5794 によって生成されているので、正確です。しかしながら、これらはうまく伸縮できないので、実際の文書の中で表現されるよう
5795 に—フォント寸が凡そ正しくなるように—見せようとすると、大変な苦労を伴います。
5796 \end_layout
5797
5798 \begin_layout Standard
5799 Alex Fernandezの
5800 \begin_inset Flex Code
5801 status collapsed
5802
5803 \begin_layout Plain Layout
5804 e\SpecialChar LyX
5805 er
5806 \end_layout
5807
5808 \end_inset
5809
5810  (
5811 \begin_inset CommandInset href
5812 LatexCommand href
5813 name "http://elyxer.nongnu.org/"
5814 target "http://elyxer.nongnu.org/"
5815
5816 \end_inset
5817
5818 )は、これらの問題の一部を解決します。特に、これは数式を画像に変換するのではなく、HTMLとCSSを組み合わせて数式を生成するので、生成される数式は完璧な大きさ
5819 に伸縮されて表示されます。しかしながら、ちょっとだけ複雑な数式でさえ、
5820 \begin_inset Flex Code
5821 status collapsed
5822
5823 \begin_layout Plain Layout
5824 htlatex
5825 \end_layout
5826
5827 \end_inset
5828
5829 よりも質が落ちます。これはHTMLの限界を示しています
5830 \begin_inset Foot
5831 status collapsed
5832
5833 \begin_layout Plain Layout
5834 とはいえ、
5835 \begin_inset Flex Code
5836 status collapsed
5837
5838 \begin_layout Plain Layout
5839 e\SpecialChar LyX
5840 er
5841 \end_layout
5842
5843 \end_inset
5844
5845 では、数式用にjsMathとMathJaxを使用することもできます。ただし、この設定はグローバルにしか設定することができず、バックエンドで実行させるサーバへのア
5846 クセスが利用できる必要があります。
5847 \end_layout
5848
5849 \end_inset
5850
5851 。さらに重要なことは(少なくとも第1.1.1版においては)、
5852 \begin_inset Flex Code
5853 status collapsed
5854
5855 \begin_layout Plain Layout
5856 e\SpecialChar LyX
5857 er
5858 \end_layout
5859
5860 \end_inset
5861
5862 は数式マクロを一部しかサポートしておらず、ユーザ定義の段落様式や文字様式をサポートしていません。これらの制約によって、\SpecialChar LyX
5863 ユーザが生成する文書の多くにとっては、
5864 \begin_inset Flex Code
5865 status collapsed
5866
5867 \begin_layout Plain Layout
5868 e\SpecialChar LyX
5869 er
5870 \end_layout
5871
5872 \end_inset
5873
5874 は不向きなものになっています。もちろん、原理的に、これらの問題を解決することもできたのですが、\SpecialChar LyX
5875 開発陣は別の方法を採ることとし、\SpecialChar LyX
5876 が\SpecialChar LaTeX
5877 やDocBook、平文を書き出す
5878 ことができるのと同様に、\SpecialChar LyX
5879 自身にXHTMLを書きだす能力を身につけさせることとしたのです。
5880 \end_layout
5881
5882 \begin_layout Standard
5883 この原稿執筆時点では、XHTML出力は開発途上であり、おそらく「実験的」機能として解されるべきでしょう
5884 \begin_inset Foot
5885 status collapsed
5886
5887 \begin_layout Plain Layout
5888 \SpecialChar LyX
5889 ソースツリーもしくは
5890 \begin_inset CommandInset href
5891 LatexCommand href
5892 name "オンラインでのアクセス"
5893 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
5894
5895 \end_inset
5896
5897 にある
5898 \begin_inset Flex Code
5899 status collapsed
5900
5901 \begin_layout Plain Layout
5902 development/HTML.notes
5903 \end_layout
5904
5905 \end_inset
5906
5907 ファイルには、通常、XHTML出力の現状についての最新の情報が収録されています。
5908 \begin_inset CommandInset href
5909 LatexCommand href
5910 name "バグ追跡ページ"
5911 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"
5912
5913 \end_inset
5914
5915 にあるXHTML関連バグ一覧も参照のこと。
5916 \end_layout
5917
5918 \end_inset
5919
5920 。それでもこのアプローチは、他の2つの方法よりも、潜在的な利点がいくつもあるので、開発陣はこの方法を選択したのです。
5921 \end_layout
5922
5923 \begin_layout Standard
5924 これらの利点は、主に、XHTML出力ルーチンが\SpecialChar LyX
5925 の一部となっているため、\SpecialChar LyX
5926 が出力する文書について\SpecialChar LyX
5927 が関知しているところのものは、すべて知り得るというところから来ていま
5928
5929 \begin_inset Foot
5930 status collapsed
5931
5932 \begin_layout Plain Layout
5933 他には、これらのルーチンが\SpecialChar LyX
5934 内部にあるため、\SpecialChar LyX
5935 ファイル形式や既存の差込枠の文法に変更があっても、影響を受けずに済むという利点もあります。
5936 \end_layout
5937
5938 \end_inset
5939
5940 。つまり、XHTML出力ルーチンは、(文書構造に表示されるような形での)目次や、それぞれの段落様式に関連付けられたカウンタや、ユーザ定義の様式についても知ってい
5941 るのです。XHTML出力ルーチンは、国際化について\SpecialChar LyX
5942 が関知しているものも知っているので、ちょうどその時に有効になっている言語に依存して、「Chapter
5943  1」と出力されたり、「Kapitel 1」と出力されたりするのです。
5944 \end_layout
5945
5946 \begin_layout Standard
5947 汎く一般的に、出力ルーチンは、\SpecialChar LyX
5948 が文書レイアウトについて関知しているものは知っており、したがって、文書が画面上にどのように描画されるかも知っています。文書をXHT
5949 MLに出力するときには、この情報を利用します。特に、\SpecialChar LyX
5950 は、文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
5951 \emph on
5952 自動的に
5953 \emph default
5954 生成します。もし節見出しが、\SpecialChar LyX
5955 中でサンセリフ体かつボールド体であるとすると、(既定では)ウェブブラウザに表示した時にも、サンセリフでボールドになります。これは、節
5956 のような定義済み様式だけでなく、ユーザ定義のものも含めて、すべての様式でそうです。実際、XHTML出力ルーチンは、ユーザ定義の段落・文字様式と、\SpecialChar LyX
5957 自身の定義済み様
5958 式とを区別しません。どちらの場合も、\SpecialChar LyX
5959 が様式について関知しているところのものは、全てレイアウトファイルに含まれています。これは、脚注のような定義済み差込枠や、各種
5960 ユーザ設定差込枠でもそうです。
5961 \end_layout
5962
5963 \begin_layout Standard
5964 結果として、XHTML出力は、レイアウトファイルやモジュールを通して、\SpecialChar LaTeX
5965 出力と全く同じように、ユーザが設定したり拡張したりすることができるのです。詳細については、
5966 取扱説明書『
5967 \emph on
5968 カスタマイズ篇
5969 \emph default
5970 』の第5章をごらんください。
5971 \end_layout
5972
5973 \begin_layout Standard
5974 本章の残りでは、XHTML出力についての、さらに詳細な情報について取り扱い、その制約や、制約の回避の仕方を取り扱います。
5975 \end_layout
5976
5977 \begin_layout Section
5978 XHTMLにおける数式出力
5979 \end_layout
5980
5981 \begin_layout Standard
5982 \SpecialChar LyX
5983 では、数式描画に4つの方法を選択できます。以下に示すように、それぞれに利点と欠点があります。
5984 \end_layout
5985
5986 \begin_layout Itemize
5987 MathML
5988 \begin_inset Newline newline
5989 \end_inset
5990
5991 MathMLは、ウェブ上で数学を用いるために、特にデザインされたXMLの一方言であり、これをサポートするブラウザ上では、通常、特に美しい表現が得られます。欠点は
5992 、すべてのブラウザがMathMLをサポートしているわけではないという事と、FirefoxのようなGeckoベースのブラウザでも、サポートが完璧ではないという事で
5993 す。
5994 \begin_inset Newline newline
5995 \end_inset
5996
5997 例えば、数式が
5998 \begin_inset Flex Code
5999 status collapsed
6000
6001 \begin_layout Plain Layout
6002 xymatrix
6003 \end_layout
6004
6005 \end_inset
6006
6007 パッケージを使用していたり、\SpecialChar TeX
6008 コードを使用しているなどで、もし\SpecialChar LyX
6009 が数式をMathMLとして描画できないとすると、\SpecialChar LyX
6010 は数式を代わりに画像として出力します。
6011  
6012 \end_layout
6013
6014 \begin_layout Itemize
6015 HTML
6016 \begin_inset Newline newline
6017 \end_inset
6018
6019 前述のとおり、
6020 \begin_inset Flex Code
6021 status collapsed
6022
6023 \begin_layout Plain Layout
6024 elyxer
6025 \end_layout
6026
6027 \end_inset
6028
6029 は、数式をCSSで装飾したHTMLとして出力します
6030 \begin_inset Foot
6031 status collapsed
6032
6033 \begin_layout Plain Layout
6034 \SpecialChar LyX
6035 は、
6036 \begin_inset Flex Code
6037 status collapsed
6038
6039 \begin_layout Plain Layout
6040 elyxer
6041 \end_layout
6042
6043 \end_inset
6044
6045 からのHTML出力のために、CSSの一部を拝借しています。
6046 \end_layout
6047
6048 \end_inset
6049
6050 。簡単な数式では、これは非常にうまく行きますが、少し複雑な数式になると、
6051 \begin_inset Flex Code
6052 status collapsed
6053
6054 \begin_layout Plain Layout
6055 elyxer
6056 \end_layout
6057
6058 \end_inset
6059
6060 は歯が立たなくなります。それでも、この方法は非常に広くサポートされているという利点があり、かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう。
6061 \begin_inset Newline newline
6062 \end_inset
6063
6064 例えば、数式が
6065 \begin_inset Flex Code
6066 status collapsed
6067
6068 \begin_layout Plain Layout
6069 xymatrix
6070 \end_layout
6071
6072 \end_inset
6073
6074 パッケージを使用していたり、\SpecialChar TeX
6075 コードを使用しているなどで、もし\SpecialChar LyX
6076 が数式をHTMLとして描画できないとすると、\SpecialChar LyX
6077 は数式を代わりに画像として出力します。
6078  
6079 \end_layout
6080
6081 \begin_layout Itemize
6082 画像
6083 \begin_inset Newline newline
6084 \end_inset
6085
6086
6087 \begin_inset Flex Code
6088 status collapsed
6089
6090 \begin_layout Plain Layout
6091 htlatex
6092 \end_layout
6093
6094 \end_inset
6095
6096 のように、\SpecialChar LyX
6097 は数式を画像としても出力できます。この画像は、実は、自動プレビューで使用されているものと全く同じです
6098 \begin_inset Foot
6099 status collapsed
6100
6101 \begin_layout Plain Layout
6102 ただし、画像を出力に使うために、自動プレビューを入にしておく必要は
6103 \emph on
6104 ありません
6105 \emph default
6106
6107 \end_layout
6108
6109 \end_inset
6110
6111 。この方法の利点は、画像が他ならぬ\SpecialChar LaTeX
6112 によって生成されているので、非常に正確であることです。欠点は、前述したとおり、画像がビットマップなので、伸縮が全くうまく行かな
6113 かったり、コピーが出来なかったりといったことがあります(執筆時点においては、数式の付番にも問題があります。
6114 \begin_inset CommandInset href
6115 LatexCommand href
6116 name "バグ 6894"
6117 target "http://www.lyx.org/trac/ticket/6894"
6118
6119 \end_inset
6120
6121 を参照のこと。)。
6122 \begin_inset Newline newline
6123 \end_inset
6124
6125 画像の寸法は、
6126 \begin_inset Flex MenuItem
6127 status collapsed
6128
6129 \begin_layout Plain Layout
6130 文書\SpecialChar menuseparator
6131 設定\SpecialChar menuseparator
6132 出力
6133 \end_layout
6134
6135 \end_inset
6136
6137 の「数式画像の伸縮」パラメータを変更することで制御できます
6138 \begin_inset Foot
6139 status collapsed
6140
6141 \begin_layout Plain Layout
6142 必要な方のために述べておくと、これは、画像の解像度をdpi (1インチあたりドット数)で制御するためのもので、75dpiを基準としています。
6143 \end_layout
6144
6145 \end_inset
6146
6147
6148 \begin_inset Newline newline
6149 \end_inset
6150
6151 もし\SpecialChar LyX
6152 が、何らかの理由によって数式の画像を生成できない(例えば、必要な\SpecialChar LaTeX
6153 パッケージが導入済みでないなど)ときは、回避策として、生の\SpecialChar LaTeX
6154 を出力します。
6155 \end_layout
6156
6157 \begin_layout Itemize
6158 \SpecialChar LaTeX
6159
6160 \begin_inset Newline newline
6161 \end_inset
6162
6163 最後に、\SpecialChar LyX
6164 は、数式を\SpecialChar LaTeX
6165 としても出力することができます。この方法は、最終手段としての出力方法である一方で、HTML文書に埋め込まれた\SpecialChar LaTeX
6166 を描画するのにJavaScript
6167 を使用する、
6168 \begin_inset CommandInset href
6169 LatexCommand href
6170 name "jsMath"
6171 target "http://www.math.union.edu/~dpvc/jsMath/"
6172
6173 \end_inset
6174
6175 のようなツールとともに使用することもできます。\SpecialChar LyX
6176 は、jsMathで必要とされているのと同じように、\SpecialChar LaTeX
6177 部分を、
6178 \begin_inset Flex Code
6179 status collapsed
6180
6181 \begin_layout Plain Layout
6182 span
6183 \end_layout
6184
6185 \end_inset
6186
6187 (行内数式用)または
6188 \begin_inset Flex Code
6189 status collapsed
6190
6191 \begin_layout Plain Layout
6192 div
6193 \end_layout
6194
6195 \end_inset
6196
6197 (別行立て数式用)に
6198 \begin_inset Flex Code
6199 status collapsed
6200
6201 \begin_layout Plain Layout
6202 class='math'
6203 \end_layout
6204
6205 \end_inset
6206
6207 を指定したもので、包んで出力します。
6208 \end_layout
6209
6210 \begin_layout Standard
6211 これらの出力方法のいずれかを
6212 \begin_inset Flex MenuItem
6213 status collapsed
6214
6215 \begin_layout Plain Layout
6216 文書\SpecialChar menuseparator
6217 設定\SpecialChar menuseparator
6218 出力
6219 \end_layout
6220
6221 \end_inset
6222
6223 で選択しなくてはなりません。既定では、\SpecialChar LyX
6224 はMathMLで出力を行います。これは、文書全体に適用される設定となります。
6225 \end_layout
6226
6227 \begin_layout Standard
6228 最後に、\SpecialChar LyX
6229 では、例えば、MathMLではあまりうまく出力されないような差込枠に対して、別の出力方法を選択できる選択肢が用意されています
6230 \begin_inset Foot
6231 status collapsed
6232
6233 \begin_layout Plain Layout
6234 その他にも、\SpecialChar LyX
6235 は、差込枠に\SpecialChar TeX
6236 コードが含まれていると画像出力に回帰するので、数式中に
6237 \begin_inset Formula $a=b\relax$
6238 \end_inset
6239
6240 のような無害な\SpecialChar TeX
6241 コードを挿入することによって、画像出力を強制することができます。
6242 \end_layout
6243
6244 \end_inset
6245
6246
6247 \end_layout
6248
6249 \begin_layout Section
6250 書誌情報と引用
6251 \end_layout
6252
6253 \begin_layout Standard
6254 XHTML出力は、書誌情報と引用を完全にサポートしています。
6255 \end_layout
6256
6257 \begin_layout Standard
6258 引用ラベルは、\SpecialChar LyX
6259 画面上のラベルを生成するのと同じ機構で生成されているので、出力中のラベルは、\SpecialChar LyX
6260 中の外見と同質またはそれよりも上質な仕上がりとなっています。連番引用を
6261 使用している場合には、\SpecialChar LyX
6262 は、画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく、[1]や[17]などの連番ラベルを出力します。著者-出版年
6263 形式の引用を使用している場合で、同じ著者-出版年の組み合わせが複数ある場合、\SpecialChar LyX
6264 は、Bib\SpecialChar TeX
6265 が行うように出版年に小文字を付します。ラベルは、書誌情報項目とともに印字さ
6266 れます。現在のところ、角括弧を丸括弧に変更するなど、ラベルの外見を変更する手段はありませんのでご注意ください。
6267 \end_layout
6268
6269 \begin_layout Standard
6270 書誌情報出力は、引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので、XHTML出力は、引用ダイアログで特定の文献項目を表示させた時のものに
6271 非常によく似ています。整形の仕方は、レイアウトファイルや望ましくはモジュールでカスタマイズすることができます。詳細については、取扱説明書『カスタマイズ篇』をご覧
6272 ください。
6273 \end_layout
6274
6275 \begin_layout Standard
6276 現在のところ、主だった瑕疵は、相互参照された情報が、関連した項目の全てに印字されてしまうことです。つまり、以下のような表示が為されます。
6277 \end_layout
6278
6279 \begin_layout Quote
6280 Jason Stanley, 
6281 \begin_inset Quotes eld
6282 \end_inset
6283
6284 Context and Logical Form
6285 \begin_inset Quotes erd
6286 \end_inset
6287
6288 , in 
6289 \emph on
6290 Language in Context: Selected Essays
6291 \emph default
6292  (Oxford: Oxford University Press, 2007), pp.
6293  30–68.
6294 \end_layout
6295
6296 \begin_layout Quote
6297 Jason Stanley, 
6298 \begin_inset Quotes eld
6299 \end_inset
6300
6301 Semantics in Context
6302 \begin_inset Quotes erd
6303 \end_inset
6304
6305 , in 
6306 \emph on
6307 Language in Context: Selected Essays
6308 \emph default
6309  (Oxford: Oxford University Press, 2007), pp.
6310  201–30.
6311 \end_layout
6312
6313 \begin_layout Standard
6314 これは、遠くないうちに修正されるでしょう。
6315 \end_layout
6316
6317 \begin_layout Standard
6318 現在のところ、節ごとの書誌情報出力はサポートされていません。複数の書誌情報がある場合には、\SpecialChar LyX
6319 は同じ情報を繰り返し出力してしまいます。
6320 \end_layout
6321
6322 \begin_layout Section
6323 索引
6324 \end_layout
6325
6326 \begin_layout Standard
6327 \SpecialChar LyX
6328 は、索引をXHTMLとして書きだすことができますが、現在のところ、若干の制約があります。
6329 \end_layout
6330
6331 \begin_layout Standard
6332 索引の書き出しは、
6333 \emph on
6334 ユーザーの手引き
6335 \emph default
6336 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが、信頼性が保てます
6337 \begin_inset Foot
6338 status collapsed
6339
6340 \begin_layout Plain Layout
6341 ここでの主な問題は、これらの操作の際に、\SpecialChar LyX
6342 自身は何もしていないという点です。つまり、生の\SpecialChar LaTeX
6343 で入力しなくてはならないようなものをそのまま入力しているのです。
6344 \end_layout
6345
6346 \end_inset
6347
6348 。当該節の小節見出しに沿って、それらがどう処理されるかを説明しましょう。
6349 \end_layout
6350
6351 \begin_layout Itemize
6352 索引項目のグループ化(下層項目): \SpecialChar LyX
6353 はこれらをサポートしようと努めていますが、項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません。これは、そうしな
6354 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです。
6355 \end_layout
6356
6357 \begin_layout Itemize
6358 ページ範囲: ページ範囲については、XHTMLでは意味がないので、全くサポートされません。その代わりに、引用項目のはじめと終わりの頁それぞれに、2つの索引項目が
6359 得られるだけです。
6360 \end_layout
6361
6362 \begin_layout Itemize
6363 相互参照: 相互参照のサポートはありません。\SpecialChar LyX
6364 が「|see\SpecialChar ldots
6365 」という下だりを持つ項目を検出すると、その部分はただ無視されて、残りの部分が通常の索引項目だとみなされま
6366 す。
6367 \end_layout
6368
6369 \begin_layout Itemize
6370 索引項目の整序: \SpecialChar LyX
6371 は整序順の変更をサポートします。\SpecialChar LyX
6372 は、最初に検出した「@」の前の部分を取り出して、それを整序に用い、最初の「@」の後の部分を実際の項目として取り
6373 出します。現在のところ、\SpecialChar LyX
6374 はエスケープされた「@」を取り扱わないので、電子メールアドレスを索引に使わないでください。
6375 \end_layout
6376
6377 \begin_layout Itemize
6378 索引項目のレイアウト: 項目は、テキスト様式ダイアログを使うなり、\SpecialChar LyX
6379 内で使用可能な方法を用いることで、索引項目を成形することができます。「項目|textbf」のよ
6380 うな文法はサポートされません。\SpecialChar LyX
6381 は、項目内にパイプ記号「|」を検出すると、パイプ記号とその後に続くものすべてを削除してしまいます。
6382 \end_layout
6383
6384 \begin_layout Itemize
6385 複数の索引: 複数の索引はサポートされていません。すべての項目は、ひとつの大きな索引として印字されます。索引が何度も印字されることを防ぐため、中心となる索引だけ
6386 を印字しますので、その索引は必ず置くようにしてください。
6387 \end_layout
6388
6389 \begin_layout Section
6390 記号一覧および用語集
6391 \end_layout
6392
6393 \begin_layout Standard
6394 現在のところ、用語集のサポートはありません。この機能の追加は、比較的容易だと思われますので、あなたの貢献をお待ちしております。
6395 \end_layout
6396
6397 \begin_layout Chapter
6398 \SpecialChar LyX
6399 サーバー
6400 \begin_inset CommandInset label
6401 LatexCommand label
6402 name "chap:LyXサーバー"
6403
6404 \end_inset
6405
6406
6407 \end_layout
6408
6409 \begin_layout Section
6410 はじめに
6411 \end_layout
6412
6413 \begin_layout Standard
6414 「\SpecialChar LyX
6415 サーバー」を使用すると、他のプログラムが、\SpecialChar LyX
6416 と通信したり、\SpecialChar LyX
6417 コマンドを実行させたり、\SpecialChar LyX
6418 の内部状態に関する情報を取得したりすることができるようになります。これは熟練し
6419 たユーザー向けの機能ですが、便利なはずです。たとえば、\SpecialChar LyX
6420 サーバーに書き込むことによって、JabRefのような書誌情報管理ソフトが、LyXに文献引用を「押し込む」こ
6421 とが可能となります。
6422 \end_layout
6423
6424 \begin_layout Section
6425 \SpecialChar LyX
6426 サーバーを開始するには
6427 \end_layout
6428
6429 \begin_layout Standard
6430 \SpecialChar LyX
6431 サーバーは、名前をつけたパイプの対を利用することで機能します。パイプは、通常
6432 \begin_inset Flex Code
6433 status collapsed
6434
6435 \begin_layout Plain Layout
6436 UserDir
6437 \end_layout
6438
6439 \end_inset
6440
6441 の下に作られ(Windowsを除く。Windowsでは、名前を付けた
6442 \emph on
6443 ローカルの
6444 \emph default
6445 パイプは
6446 \begin_inset Flex Code
6447 status collapsed
6448
6449 \begin_layout Plain Layout
6450
6451 \backslash
6452
6453 \backslash
6454 .
6455 \backslash
6456 pipe
6457 \end_layout
6458
6459 \end_inset
6460
6461 に特別なオブジェクトとして置かれます)、「
6462 \begin_inset Flex Code
6463 status collapsed
6464
6465 \begin_layout Plain Layout
6466 .lyxpipe.in
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.out
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.in
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.out
6497 \end_layout
6498
6499 \end_inset
6500
6501 から読み出します。パイプ名の語幹は、
6502 \begin_inset Flex MenuItem
6503 status collapsed
6504
6505 \begin_layout Plain Layout
6506 ツール\SpecialChar menuseparator
6507 設定
6508 \end_layout
6509
6510 \end_inset
6511
6512 から、たとえば「
6513 \begin_inset Flex Code
6514 status collapsed
6515
6516 \begin_layout Plain Layout
6517 /home/myhome/lyxpipe
6518 \end_layout
6519
6520 \end_inset
6521
6522 」あるいはWindowsでは「
6523 \begin_inset Flex Code
6524 status collapsed
6525
6526 \begin_layout Plain Layout
6527
6528 \backslash
6529
6530 \backslash
6531 .
6532 \backslash
6533 pipe
6534 \backslash
6535 lyxpipe
6536 \end_layout
6537
6538 \end_inset
6539
6540 」などに設定することができます
6541 \lang english
6542 (where any working path instead of lyxpipe can be used, for example 
6543 \begin_inset Flex Code
6544 status collapsed
6545
6546 \begin_layout Plain Layout
6547
6548 \lang english
6549 "
6550 \backslash
6551
6552 \backslash
6553 .
6554 \backslash
6555 pipe
6556 \backslash
6557 my
6558 \backslash
6559 lyx
6560 \backslash
6561 pipe"
6562 \end_layout
6563
6564 \end_inset
6565
6566  would also work)
6567 \lang japanese
6568 。サーバーを開始するためには、これを
6569 \emph on
6570 手動で設定しなくてはなりません
6571 \emph default
6572
6573 \end_layout
6574
6575 \begin_layout Standard
6576 \SpecialChar LyX
6577 は、パイプを生成するに際して、「
6578 \begin_inset Flex Code
6579 status collapsed
6580
6581 \begin_layout Plain Layout
6582 .in
6583 \end_layout
6584
6585 \end_inset
6586
6587 」および「
6588 \begin_inset Flex Code
6589 status collapsed
6590
6591 \begin_layout Plain Layout
6592 .out
6593 \end_layout
6594
6595 \end_inset
6596
6597 」を付け加えます。パイプがすでに存在していれば、\SpecialChar LyX
6598 は他の\SpecialChar LyX
6599 プロセスがすでに実行中であると判断して、サーバーを開始しません。POSIX(Unix型)システムでは、なん
6600 らかの理由で、\SpecialChar LyX
6601 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると、\SpecialChar LyX
6602 はこれを削除しようとします。何らかの理由でこれが失敗した場合、手動でパイ
6603 プを削除したのちに、\SpecialChar LyX
6604 を再起動する必要があります。Windowsでは、プログラムが終了したりクラッシュしたりすると、OSがパイプを削除するので、「古い」パイプが残
6605 ることはありません。
6606 \end_layout
6607
6608 \begin_layout Standard
6609 サーバーを使用する\SpecialChar LyX
6610 プロセスを複数起動するには、それぞれのプロセスに、別のユーザーディレクトリを使用させたり、別々の
6611 \begin_inset Flex Code
6612 status collapsed
6613
6614 \begin_layout Plain Layout
6615 preferences
6616 \end_layout
6617
6618 \end_inset
6619
6620 ファイルを使用させるなど、別々の設定を使用する必要があります。
6621 \end_layout
6622
6623 \begin_layout Standard
6624 クライアントプログラムを開発しようとされているのであれば、\SpecialChar LyX
6625 サーバーからのデバッグ情報を有効にすると便利かもしれません。そのためには、Lyxを
6626 \begin_inset Flex Code
6627 status collapsed
6628
6629 \begin_layout Plain Layout
6630 lyx -dbg lyxserver
6631 \end_layout
6632
6633 \end_inset
6634
6635 として起動してください。
6636 \end_layout
6637
6638 \begin_layout Standard
6639 C++言語で書かれた完全なサンプルクライアントが、ソース頒布版の
6640 \begin_inset Newline newline
6641 \end_inset
6642
6643
6644 \begin_inset Flex Code
6645 status collapsed
6646
6647 \begin_layout Plain Layout
6648 development/lyxserver/server_monitor.cpp
6649 \end_layout
6650
6651 \end_inset
6652
6653 にあります。
6654 \end_layout
6655
6656 \begin_layout Standard
6657 もう一つの便利なツールとして、
6658 \begin_inset Flex Code
6659 status collapsed
6660
6661 \begin_layout Plain Layout
6662 src/client/lyxclient
6663 \end_layout
6664
6665 \end_inset
6666
6667 にあるコマンドラインベースのクライアントがあります。
6668 \end_layout
6669
6670 \begin_layout Section
6671 通常の通信
6672 \end_layout
6673
6674 \begin_layout Standard
6675 \SpecialChar LyX
6676 コールを発行するには、クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません。この行は、以下の書式を持ちます。
6677 \end_layout
6678
6679 \begin_layout Quote
6680 LYXCMD:
6681 \emph on
6682 クライアント名
6683 \emph default
6684 :
6685 \emph on
6686 関数
6687 \emph default
6688 :
6689 \emph on
6690 引数
6691 \end_layout
6692
6693 \begin_layout Description
6694 クライアント名 は、クライアントが自由に選べる名前です。これが用いられるのは、クライアントが他の要求クライアントから結果を見分けることができるように、\SpecialChar LyX
6695 が返答をす
6696 る際、クライアント名をエコーするときだけです。
6697 \end_layout
6698
6699 \begin_layout Description
6700 関数 は、\SpecialChar LyX
6701 に実行させたい関数です。これは、ミニバッファで使用するコマンドと同じです。
6702 \end_layout
6703
6704 \begin_layout Description
6705 引数 は、一部の関数のみに効力を持つオプションの引数です(たとえば、「自己挿入」LFUNは、現在のカーソル位置に引数を文章として挿入します)。
6706 \end_layout
6707
6708 \begin_layout Standard
6709 \SpecialChar LyX
6710 からの返答は、出力パイプに送り出され、
6711 \end_layout
6712
6713 \begin_layout Quote
6714 INFO:
6715 \emph on
6716 クライアント名
6717 \emph default
6718 :
6719 \emph on
6720 関数
6721 \emph default
6722 :
6723 \emph on
6724 データ
6725 \end_layout
6726
6727 \begin_layout Standard
6728 の書式をしています。ここで
6729 \emph on
6730 クライアント名
6731 \emph default
6732
6733 \emph on
6734 関数
6735 \emph default
6736 は、コマンド要求からそのままエコーされますが、
6737 \emph on
6738 データ
6739 \emph default
6740 はコマンド実行の結果に依存した、多少なりとも有用な情報です。「font-state」のような一部のコマンドは、\SpecialChar LyX
6741 の内部状態に関する情報を返しますが、空のデータ応答
6742 を返すものもあります。空のデータ返答は、コマンド実行が無事終わったことを意味します。
6743 \end_layout
6744
6745 \begin_layout Standard
6746 エラーが発生した場合の\SpecialChar LyX
6747 の返答は
6748 \end_layout
6749
6750 \begin_layout Quote
6751 ERROR:
6752 \emph on
6753 クライアント名
6754 \emph default
6755 :
6756 \emph on
6757 関数
6758 \emph default
6759 :
6760 \emph on
6761 エラーメッセージ
6762 \end_layout
6763
6764 \begin_layout Standard
6765 の書式をしており、
6766 \emph on
6767 エラーメッセージ
6768 \emph default
6769 には、なぜコマンドが失敗したかの説明が入っているはずです。
6770 \end_layout
6771
6772 \begin_layout Standard
6773 (例)
6774 \end_layout
6775
6776 \begin_layout LyX-Code
6777 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6778 \begin_inset Newline newline
6779 \end_inset
6780
6781 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6782 \begin_inset Newline newline
6783 \end_inset
6784
6785 read a <~/.lyxpipe.out
6786 \begin_inset Newline newline
6787 \end_inset
6788
6789 echo $a
6790 \end_layout
6791
6792 \begin_layout Section
6793 通知
6794 \end_layout
6795
6796 \begin_layout Standard
6797 \SpecialChar LyX
6798 は、発生しているイベントを、非同期的にクライアントに通知することができます。いまのところ、ユーザーがある
6799 \begin_inset Flex Ruby
6800 status collapsed
6801
6802 \begin_layout Plain Layout
6803
6804 \begin_inset Argument post:1
6805 status collapsed
6806
6807 \begin_layout Plain Layout
6808 キー
6809 \end_layout
6810
6811 \end_inset
6812
6813
6814 \end_layout
6815
6816 \end_inset
6817
6818 列を関数「notify」に割り当てているときのみ、\SpecialChar LyX
6819 はこの通知を行います。\SpecialChar LyX
6820 が送る文字列の書式は
6821 \end_layout
6822
6823 \begin_layout Quote
6824 \begin_inset Flex Code
6825 status collapsed
6826
6827 \begin_layout Plain Layout
6828 NOTIFY:
6829 \end_layout
6830
6831 \end_inset
6832
6833
6834 \emph on
6835 鍵列
6836 \end_layout
6837
6838 \begin_layout Standard
6839 となっていて、
6840 \emph on
6841 鍵列
6842 \emph default
6843 は、ユーザーが実際に打鍵した鍵列の印字表現になります。
6844 \end_layout
6845
6846 \begin_layout Standard
6847 この機構は、\SpecialChar LyX
6848 のコマンド群を拡張してマクロを実装するのに使用することができます。なんらかの鍵列を「notify」に割り当ててください。それから出力パイプで待機する
6849 クライアントを起動し、鍵列に応じたコマンドを読み込み、一つないし複数の\SpecialChar LyX
6850 コマンドを発行する\SpecialChar LyX
6851 要求と\SpecialChar LyX
6852 コールを使用する関数を開始するのです。
6853 \end_layout
6854
6855 \begin_layout Section
6856 単純な\SpecialChar LyX
6857 サーバープロトコル
6858 \end_layout
6859
6860 \begin_layout Standard
6861 \SpecialChar LyX
6862 は、セッション管理に使用することができる単純なプロトコルを実装しています。メッセージは、すべて
6863 \end_layout
6864
6865 \begin_layout Quote
6866 LYXSRV:
6867 \emph on
6868 クライアント名
6869 \emph default
6870 :
6871 \emph on
6872 プロトコルメッセージ
6873 \end_layout
6874
6875 \begin_layout Standard
6876 の書式をしており、
6877 \emph on
6878 プロトコルメッセージ
6879 \emph default
6880 は「hello」ないし「bye」です。クライアントから「hello」を受け取ると、\SpecialChar LyX
6881 はメッセージを聴いていることをクライアントに伝えるために返答をし、\SpecialChar LyX
6882 が終了するこ
6883 とをクライアントに伝えるのには、\SpecialChar LyX
6884 が「bye」を送信します。
6885 \end_layout
6886
6887 \begin_layout Section
6888 DVIとPDFの遡及検索
6889 \end_layout
6890
6891 \begin_layout Standard
6892 DVI/PDFビューア
6893 \begin_inset Foot
6894 status collapsed
6895
6896 \begin_layout Plain Layout
6897 PDFの遡及検索機能を提供しているビューアには、KDE/Linux上のOkularと
6898 \lang english
6899 Qpdfview on Unix
6900 \lang japanese
6901 とMac OS X上のSkim、Windows上のSumatraPDFがあります。
6902 \end_layout
6903
6904 \end_inset
6905
6906 には、遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります。これを使えば、DVI/PDF出力の
6907 特定の場所をクリックすることによって、\SpecialChar LyX
6908 の文書中で対応する行にカーソルを移動させることができます。これを実現するためには、ビューアは\SpecialChar LyX
6909 と情報交換を行う必要があります
6910 。これは、命名パイプ(
6911 \emph on
6912 lyxpipe
6913 \emph default
6914 )を使用するか、\SpecialChar LyX
6915 が作業ディレクトリに生成するUNIXドメインソケット(
6916 \emph on
6917 lyxsocket
6918 \emph default
6919 )を使用する(これは
6920 \begin_inset Flex Code
6921 status collapsed
6922
6923 \begin_layout Plain Layout
6924 lyxclient
6925 \end_layout
6926
6927 \end_inset
6928
6929 プログラムが\SpecialChar LyX
6930 と通信するのに使用している方法です)ことで、\SpecialChar LyX
6931 サーバを経由して実現することができます。場合によっては、ビューアと\SpecialChar LyX
6932 を橋渡しする補助スクリプトを必要とする
6933 ことがあるかもしれませんが、それ以外は、ビューアは\SpecialChar LyX
6934 と直接通信することができます。これは、選んだビューアと基本ソフトに依存します。また、必要とされるビューアの設定
6935 法と遡及検索が実際に行われる方法とにも依存します。したがって、下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします。その前に、DVI/PDF出力
6936 で遡及検索を有効にするためには、一般に何が必要とされるかを説明します。
6937 \end_layout
6938
6939 \begin_layout Subsection
6940 \begin_inset CommandInset label
6941 LatexCommand label
6942 name "subsec:遡及検索"
6943
6944 \end_inset
6945
6946 自動有効化
6947 \end_layout
6948
6949 \begin_layout Standard
6950 \begin_inset Flex MenuItem
6951 status collapsed
6952
6953 \begin_layout Plain Layout
6954 文書\SpecialChar menuseparator
6955 設定\SpecialChar menuseparator
6956 出力
6957 \end_layout
6958
6959 \end_inset
6960
6961 メニューで
6962 \begin_inset Flex MenuItem
6963 status collapsed
6964
6965 \begin_layout Plain Layout
6966 出力と同期
6967 \end_layout
6968
6969 \end_inset
6970
6971 オプションを有効にすれば、ほとんどの場合、\SpecialChar LyX
6972 がすべてをうまくこなしてくれます。その場合、\SpecialChar LyX
6973 は、自動的に、必要なSync\SpecialChar TeX
6974 マクロ(PDFの場合)や、srcltxパッケー
6975 ジ(DVIの場合)を挿入してくれます。このオプションは、
6976 \begin_inset Flex MenuItem
6977 status collapsed
6978
6979 \begin_layout Plain Layout
6980 表示/更新
6981 \end_layout
6982
6983 \end_inset
6984
6985 ツールバーからも容易にアクセスすることができます。
6986 \end_layout
6987
6988 \begin_layout Standard
6989 もし、これとは別の設定が必要な場合には、
6990 \begin_inset Flex MenuItem
6991 status collapsed
6992
6993 \begin_layout Plain Layout
6994 文書\SpecialChar menuseparator
6995 設定\SpecialChar menuseparator
6996 出力\SpecialChar menuseparator
6997 出力と同期
6998 \end_layout
6999
7000 \end_inset
7001
7002 の直下にあるドロップダウンボックスから、自製マクロを選択ないし入力することができます。
7003 \end_layout
7004
7005 \begin_layout Standard
7006 方式として
7007 \begin_inset Flex Code
7008 status collapsed
7009
7010 \begin_layout Plain Layout
7011
7012 \backslash
7013 synctex=1
7014 \end_layout
7015
7016 \end_inset
7017
7018 を用いると、gzip圧縮が有効となることに注意してください。使用しているビューアがgzip圧縮をサポートしていない場合には、代わりに
7019 \begin_inset Flex Code
7020 status collapsed
7021
7022 \begin_layout Plain Layout
7023
7024 \backslash
7025 synctex=-1
7026 \end_layout
7027
7028 \end_inset
7029
7030 を指定してください。
7031 \end_layout
7032
7033 \begin_layout Standard
7034 また、
7035 \begin_inset Flex Code
7036 status collapsed
7037
7038 \begin_layout Plain Layout
7039 srcltx
7040 \end_layout
7041
7042 \end_inset
7043
7044 パッケージや
7045 \begin_inset Flex Code
7046 status collapsed
7047
7048 \begin_layout Plain Layout
7049 src-specials
7050 \end_layout
7051
7052 \end_inset
7053
7054 を取り込むと、組版上、不具合が生じることがあるのでご注意ください。したがって、
7055 \begin_inset Flex Code
7056 status collapsed
7057
7058 \begin_layout Plain Layout
7059 srcltx
7060 \end_layout
7061
7062 \end_inset
7063
7064 パッケージや
7065 \begin_inset Flex Code
7066 status collapsed
7067
7068 \begin_layout Plain Layout
7069 src-specials
7070 \end_layout
7071
7072 \end_inset
7073
7074 を使用している場合には、最終版を組版する際には、出力同期を無効にするべきです。
7075 \end_layout
7076
7077 \begin_layout Standard
7078 自動設定でカバーされている範囲よりも、さらに特殊なものが必要な場合には、出力同期を手動で設定する仕方を述べた次節をお読みください。自動設定で事足りる場合には、自
7079 動設定・手動設定ともに必要となるビューア上の設定を述べた、第
7080 \begin_inset CommandInset ref
7081 LatexCommand ref
7082 reference "subsec:特定のビューアを設定して使うには"
7083
7084 \end_inset
7085
7086 節に進むことができます。
7087 \end_layout
7088
7089 \begin_layout Subsection
7090 手動有効化
7091 \end_layout
7092
7093 \begin_layout Standard
7094 \SpecialChar LaTeX
7095 は、遡及検索のために複数の方法を提供しています。ある方法は
7096 \begin_inset Flex Code
7097 status collapsed
7098
7099 \begin_layout Plain Layout
7100 latex/pdflatex
7101 \end_layout
7102
7103 \end_inset
7104
7105 プログラムに組み込まれており、他の方法は外部パッケージとして提供されています。どちらを選択するかは、お使いの\SpecialChar LaTeX
7106 頒布版が既に特定の方法を提供しているか(組み込みによ
7107 る方法は比較的新しいものです)と、お使いのビューアがそれに対応しているかに依存します。使用可能な方法を以下に述べます。
7108 \end_layout
7109
7110 \begin_layout Subsubsection*
7111 src-special経由のDVI組み込み検索(DVIのみ)
7112 \end_layout
7113
7114 \begin_layout Standard
7115 この方法は、DVIファイルに遡及検索に必要な情報を追加するものです。これは、かなり前の\SpecialChar LaTeX
7116 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7117 頒布版はすべて対応しています)、安定
7118 して動作します。これを有効にするには、
7119 \begin_inset Flex MenuItem
7120 status collapsed
7121
7122 \begin_layout Plain Layout
7123 設定\SpecialChar menuseparator
7124 ファイル処理\SpecialChar menuseparator
7125 変換子
7126 \end_layout
7127
7128 \end_inset
7129
7130
7131 \begin_inset Flex MenuItem
7132 status collapsed
7133
7134 \begin_layout Plain Layout
7135 LaTeX (plain)->DVI
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)->DraftDVI
7146 \end_layout
7147
7148 \end_inset
7149
7150 変換子を
7151 \begin_inset Flex Code
7152 status collapsed
7153
7154 \begin_layout Plain Layout
7155 latex -src-specials $$i
7156 \end_layout
7157
7158 \end_inset
7159
7160 に変更します。もしこれが動作しないときは、お使いの\SpecialChar LaTeX
7161 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります)。
7162 \end_layout
7163
7164 \begin_layout Subsubsection*
7165 外部パッケージ(PDFSyncおよびsrcltx)
7166 \end_layout
7167
7168 \begin_layout Standard
7169
7170 \emph on
7171 pdfsync
7172 \emph default
7173 および
7174 \emph on
7175 srcltx
7176 \emph default
7177 パッケージは、PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します。これを有効にするには、\SpecialChar LyX
7178 プリアンブルで以下のようにパッケージを読み込んで
7179 ください。
7180 \end_layout
7181
7182 \begin_layout Itemize
7183 PDFの遡及検索には
7184 \begin_inset Flex Code
7185 status collapsed
7186
7187 \begin_layout Plain Layout
7188
7189 \backslash
7190 usepackage{pdfsync}
7191 \end_layout
7192
7193 \end_inset
7194
7195
7196 \end_layout
7197
7198 \begin_layout Itemize
7199 DVIの遡及検索には
7200 \begin_inset Flex Code
7201 status collapsed
7202
7203 \begin_layout Plain Layout
7204
7205 \backslash
7206 usepackage[active]{srcltx}
7207 \end_layout
7208
7209 \end_inset
7210
7211
7212 \end_layout
7213
7214 \begin_layout Standard
7215 と書きます。DVIとPDFの両方の遡及検索を実行できるようにするためには、プリアンブルに以下の行を挿入する方法があります。
7216 \end_layout
7217
7218 \begin_layout LyX-Code
7219
7220 \backslash
7221 usepackage{ifpdf}
7222 \begin_inset Newline newline
7223 \end_inset
7224
7225
7226 \backslash
7227 ifpdf
7228 \begin_inset Newline newline
7229 \end_inset
7230
7231   
7232 \backslash
7233 usepackage{pdfsync}
7234 \begin_inset Newline newline
7235 \end_inset
7236
7237
7238 \backslash
7239 else
7240 \begin_inset Newline newline
7241 \end_inset
7242
7243   
7244 \backslash
7245 usepackage[active]{srcltx}
7246 \begin_inset Newline newline
7247 \end_inset
7248
7249
7250 \backslash
7251 fi
7252 \end_layout
7253
7254 \begin_layout Standard
7255 このようにすれば、DVIでもPDF(pdflatex)でも正しいパッケージを使いながら、ファイルを閲覧することができます。
7256 \end_layout
7257
7258 \begin_layout Standard
7259 なお、PDFSyncは、文書の出力レイアウトに干渉する可能性があるので注意してください。したがって、仕上がり文書ではPDFSyncを無効にすることをお勧めします
7260
7261 \end_layout
7262
7263 \begin_layout Subsubsection*
7264 Sync\SpecialChar TeX
7265 を使った組み込み遡及検索(DVIおよびPDF)
7266 \end_layout
7267
7268 \begin_layout Standard
7269 \begin_inset Flex Code
7270 status collapsed
7271
7272 \begin_layout Plain Layout
7273 (pdf)latex
7274 \end_layout
7275
7276 \end_inset
7277
7278 の最近のバージョンは、PDFおよびDVI両方の遡及検索を組み込みでサポートしています。このいわゆる
7279 \emph on
7280 Sync\SpecialChar TeX
7281
7282 \emph default
7283 機能は、主に、PDFSyncパッケージをpdftexプログラムへ統合したことと、それをsrc-specialsアプローチへ取り込んだことの成果です。これを使用す
7284 るためには、少なくとも\SpecialChar TeX
7285 Live 2008か最近のMik\SpecialChar TeX
7286 頒布版が必要です。また、既にSync\SpecialChar TeX
7287 サポートを提供しているPDFビューアは少ししかありません(
7288 \lang english
7289 Okular and Qpdfview on Unix, 
7290 \lang japanese
7291 Mac上のSkimとWindows上のSumatraPDF)。
7292 \end_layout
7293
7294 \begin_layout Standard
7295 DVI出力でSync\SpecialChar TeX
7296 を有効にするには、
7297 \begin_inset Flex MenuItem
7298 status collapsed
7299
7300 \begin_layout Plain Layout
7301 設定\SpecialChar menuseparator
7302 ファイル処理\SpecialChar menuseparator
7303 変換子
7304 \end_layout
7305
7306 \end_inset
7307
7308
7309 \begin_inset Flex MenuItem
7310 status collapsed
7311
7312 \begin_layout Plain Layout
7313 LaTeX (plain)->DVI
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)->DraftDVI
7324 \end_layout
7325
7326 \end_inset
7327
7328 変換子を
7329 \begin_inset Flex Code
7330 status collapsed
7331
7332 \begin_layout Plain Layout
7333 latex -synctex=1 $$i
7334 \end_layout
7335
7336 \end_inset
7337
7338 に変更します。PDF出力用には、
7339 \begin_inset Flex MenuItem
7340 status collapsed
7341
7342 \begin_layout Plain Layout
7343 LaTeX (pdflatex)->PDF (pdflatex)
7344 \end_layout
7345
7346 \end_inset
7347
7348 変換子を
7349 \begin_inset Flex Code
7350 status collapsed
7351
7352 \begin_layout Plain Layout
7353 pdflatex -synctex=1 $$i
7354 \end_layout
7355
7356 \end_inset
7357
7358 に変更してください。また、ビューアをSync\SpecialChar TeX
7359 で使うのに設定を行う必要があるかどうか、お使いのビューアの取扱説明書をご確認ください。
7360 \begin_inset Foot
7361 status collapsed
7362
7363 \begin_layout Plain Layout
7364 \begin_inset Flex Code
7365 status collapsed
7366
7367 \begin_layout Plain Layout
7368 -synctex=1
7369 \end_layout
7370
7371 \end_inset
7372
7373 オプションは、gzip圧縮を有効にします。お使いのビューアがgzip圧縮をサポートしていない場合には、代わりに
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 を使用してください。
7384 \end_layout
7385
7386 \end_inset
7387
7388
7389 \end_layout
7390
7391 \begin_layout Subsection
7392 特定のビューアを設定して使うには
7393 \begin_inset CommandInset label
7394 LatexCommand label
7395 name "subsec:特定のビューアを設定して使うには"
7396
7397 \end_inset
7398
7399
7400 \end_layout
7401
7402 \begin_layout Subsubsection*
7403 Xdvi(全プラットフォーム)
7404 \end_layout
7405
7406 \begin_layout Standard
7407 \SpecialChar LyX
7408 は、
7409 \begin_inset Flex Code
7410 status collapsed
7411
7412 \begin_layout Plain Layout
7413 lyxclient
7414 \end_layout
7415
7416 \end_inset
7417
7418 プログラムを自動的に使うのに必要なフックを、既に提供しているので、
7419 \begin_inset Flex Code
7420 status collapsed
7421
7422 \begin_layout Plain Layout
7423 xdvi
7424 \end_layout
7425
7426 \end_inset
7427
7428 を使用する場合には、DVI遡及検索を実行するのに他にするべきことはありません。使用中の文書を上記で述べたように設定するだけです(遡及検索は、Ctrl-クリックか
7429 、Mac OS X上ではAlt-クリックで始動します)。
7430 \end_layout
7431
7432 \begin_layout Standard
7433 しかし、何らかの理由で、\SpecialChar LyX
7434 と通信するのにソケットではなく命名パイプを使用したい場合には、
7435 \begin_inset Flex MenuItem
7436 status collapsed
7437
7438 \begin_layout Plain Layout
7439 設定\SpecialChar menuseparator
7440 ファイル処理\SpecialChar menuseparator
7441 ファイル書式
7442 \end_layout
7443
7444 \end_inset
7445
7446 のDVIビューアを
7447 \lang english
7448
7449 \begin_inset Foot
7450 status collapsed
7451
7452 \begin_layout Plain Layout
7453
7454 \lang english
7455 On Mac OSX you have to use 
7456 \begin_inset Flex Code
7457 status collapsed
7458
7459 \begin_layout Plain Layout
7460
7461 \lang english
7462 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7463 \end_layout
7464
7465 \end_inset
7466
7467
7468 \end_layout
7469
7470 \end_inset
7471
7472
7473 \lang japanese
7474
7475 \begin_inset Flex Code
7476 status collapsed
7477
7478 \begin_layout Plain Layout
7479 xdvi -editor "lyxeditor.sh %f %l"
7480 \end_layout
7481
7482 \end_inset
7483
7484 (
7485 \begin_inset Flex Code
7486 status collapsed
7487
7488 \begin_layout Plain Layout
7489 lyxeditor.sh
7490 \end_layout
7491
7492 \end_inset
7493
7494 は適切なスクリプト名)に変更してください。たとえば、最低限のシェルスクリプトは
7495 \end_layout
7496
7497 \begin_layout LyX-Code
7498 #!/bin/sh
7499 \begin_inset Newline newline
7500 \end_inset
7501
7502 LYXPIPE="/path/to/lyxpipe"
7503 \begin_inset Newline newline
7504 \end_inset
7505
7506 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7507 \begin_inset Newline newline
7508 \end_inset
7509
7510 echo "$COMMAND" > "${LYXPIPE}".in || exit
7511 \begin_inset Newline newline
7512 \end_inset
7513
7514 read TMP < "${LYXPIPE}".out || exit
7515 \end_layout
7516
7517 \begin_layout Standard
7518 のようになります。ここで
7519 \begin_inset Flex Code
7520 status collapsed
7521
7522 \begin_layout Plain Layout
7523 /path/to/lyxpipe
7524 \end_layout
7525
7526 \end_inset
7527
7528 は、
7529 \begin_inset Flex MenuItem
7530 status collapsed
7531
7532 \begin_layout Plain Layout
7533 設定\SpecialChar menuseparator
7534 パス
7535 \end_layout
7536
7537 \end_inset
7538
7539 で指定したLyXServerパイプのパスを指定してください。
7540 \begin_inset Foot
7541 status collapsed
7542
7543 \begin_layout Plain Layout
7544 ソース頒布版の
7545 \begin_inset Flex Code
7546 status collapsed
7547
7548 \begin_layout Plain Layout
7549 development/tools
7550 \end_layout
7551
7552 \end_inset
7553
7554 フォルダには、ユーザが設定した
7555 \emph on
7556 lyxpipe
7557 \emph default
7558 を探し出す
7559 \begin_inset Flex Code
7560 status collapsed
7561
7562 \begin_layout Plain Layout
7563 lyxeditor
7564 \end_layout
7565
7566 \end_inset
7567
7568 スクリプトがあります。
7569 \end_layout
7570
7571 \end_inset
7572
7573
7574 \end_layout
7575
7576 \begin_layout Subsubsection*
7577 MacDviX(Mac OS X)
7578 \end_layout
7579
7580 \begin_layout Standard
7581 \begin_inset Flex Code
7582 status collapsed
7583
7584 \begin_layout Plain Layout
7585 /Applications/MacDviX_Folder/calleditor.script
7586 \end_layout
7587
7588 \end_inset
7589
7590 の終わりに
7591 \end_layout
7592
7593 \begin_layout LyX-Code
7594 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7595 \begin_inset Newline newline
7596 \end_inset
7597
7598 exit 1
7599 \end_layout
7600
7601 \begin_layout Standard
7602 という行を付け加えてください。Applicationsフォルダ以外の場所に\SpecialChar LyX
7603 を導入した場合には、それに従って上記の行を修正してください。
7604 \end_layout
7605
7606 \begin_layout Standard
7607 遡及検索は、Alt-クリック(OPTION-クリック)で始動します。
7608 \end_layout
7609
7610 \begin_layout Subsubsection*
7611 Skim(Mac OS X)
7612 \end_layout
7613
7614 \begin_layout Standard
7615 \begin_inset Flex MenuItem
7616 status collapsed
7617
7618 \begin_layout Plain Layout
7619 設定\SpecialChar menuseparator
7620 ファイル処理\SpecialChar menuseparator
7621 ファイル書式\SpecialChar menuseparator
7622 PDF (pdflatex)
7623 \end_layout
7624
7625 \end_inset
7626
7627 のビューア設定に
7628 \begin_inset Flex Code
7629 status collapsed
7630
7631 \begin_layout Plain Layout
7632 open -a Skim.app $$i
7633 \end_layout
7634
7635 \end_inset
7636
7637 と入力し、
7638 \begin_inset Flex MenuItem
7639 status collapsed
7640
7641 \begin_layout Plain Layout
7642 Skim\SpecialChar menuseparator
7643 設定\SpecialChar menuseparator
7644 Sync
7645 \end_layout
7646
7647 \end_inset
7648
7649 でLyXを選択してください。
7650 \end_layout
7651
7652 \begin_layout Standard
7653 遡及検索は、COMMAND-SHIFT-クリックで始動します。
7654 \end_layout
7655
7656 \begin_layout Subsubsection*
7657 Okular (KDE)
7658 \end_layout
7659
7660 \begin_layout Standard
7661 \begin_inset Flex MenuItem
7662 status collapsed
7663
7664 \begin_layout Plain Layout
7665 設定\SpecialChar menuseparator
7666 Okularを設定\SpecialChar ldots
7667 \SpecialChar menuseparator
7668 編集
7669 \end_layout
7670
7671 \end_inset
7672
7673 で「カスタムテキストエディタ」を選択し、コマンドに
7674 \begin_inset Flex Code
7675 status collapsed
7676
7677 \begin_layout Plain Layout
7678 lyxclient -g %f %l
7679 \end_layout
7680
7681 \end_inset
7682
7683 を加えてください。
7684 \end_layout
7685
7686 \begin_layout Standard
7687 遡及検索は、SHIFT-クリックで始動します。
7688 \end_layout
7689
7690 \begin_layout Subsubsection*
7691
7692 \lang english
7693 Qpdfview (Unix)
7694 \end_layout
7695
7696 \begin_layout Standard
7697
7698 \lang english
7699 Qpdfview supports Sync\SpecialChar TeX
7700  since version 0.3.5.
7701  Go to 
7702 \begin_inset Flex MenuItem
7703 status collapsed
7704
7705 \begin_layout Plain Layout
7706
7707 \lang english
7708 Edit\SpecialChar menuseparator
7709 Settings\SpecialChar menuseparator
7710 Behavior
7711 \end_layout
7712
7713 \end_inset
7714
7715 , click on the input field of the 
7716 \begin_inset Quotes eld
7717 \end_inset
7718
7719 Source editor
7720 \begin_inset Quotes erd
7721 \end_inset
7722
7723  item and add the command 
7724 \begin_inset Flex Code
7725 status collapsed
7726
7727 \begin_layout Plain Layout
7728
7729 \lang english
7730 lyxclient -g %1 %2
7731 \end_layout
7732
7733 \end_inset
7734
7735 .
7736 \end_layout
7737
7738 \begin_layout Standard
7739
7740 \lang english
7741 Reverse search is triggered by double-click.
7742 \end_layout
7743
7744 \begin_layout Subsubsection*
7745 YAP(Windows)
7746 \end_layout
7747
7748 \begin_layout Standard
7749 yapを起動し、
7750 \begin_inset Flex MenuItem
7751 status collapsed
7752
7753 \begin_layout Plain Layout
7754 View\SpecialChar menuseparator
7755 Options
7756 \end_layout
7757
7758 \end_inset
7759
7760 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar ldots
7761 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7762
7763  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar ldots
7764 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7765 \begin_inset Flex Code
7766 status collapsed
7767
7768 \begin_layout Plain Layout
7769 lyxeditor.bat
7770 \end_layout
7771
7772 \end_inset
7773
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 %f %l
7790 \end_layout
7791
7792 \end_inset
7793
7794 と指定してください。
7795 \begin_inset Flex Code
7796 status collapsed
7797
7798 \begin_layout Plain Layout
7799 lyxeditor.bat
7800 \end_layout
7801
7802 \end_inset
7803
7804 は、
7805 \emph on
7806 lyxpipe
7807 \emph default
7808 を通じて\SpecialChar LyX
7809 と通信するためのラッパとして使用され、以下のようになっています。
7810 \end_layout
7811
7812 \begin_layout LyX-Code
7813 @echo off
7814 \begin_inset Newline newline
7815 \end_inset
7816
7817 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7818 \backslash
7819
7820 \backslash
7821 .
7822 \backslash
7823 pipe
7824 \backslash
7825 lyxpipe.in
7826 \begin_inset Newline newline
7827 \end_inset
7828
7829 type 
7830 \backslash
7831
7832 \backslash
7833 .
7834 \backslash
7835 pipe
7836 \backslash
7837 lyxpipe.out
7838 \end_layout
7839
7840 \begin_layout Standard
7841 \SpecialChar LyX
7842 で指定した\SpecialChar LyX
7843 Serverパイプパスが、
7844 \begin_inset Flex Code
7845 status collapsed
7846
7847 \begin_layout Plain Layout
7848
7849 \backslash
7850
7851 \backslash
7852 .
7853 \backslash
7854 pipe
7855 \backslash
7856 lyxpipe
7857 \end_layout
7858
7859 \end_inset
7860
7861 となっていることを確認するか、
7862 \begin_inset Flex Code
7863 status collapsed
7864
7865 \begin_layout Plain Layout
7866 lyxeditor.bat
7867 \end_layout
7868
7869 \end_inset
7870
7871 ラッパの方を適切に修正してください。
7872 \end_layout
7873
7874 \begin_layout Standard
7875 yapでは、遡及検索はダブルクリックで始動します。
7876 \end_layout
7877
7878 \begin_layout Subsubsection*
7879 SumatraPDF(Windows)
7880 \end_layout
7881
7882 \begin_layout Standard
7883 SumatraPDFを遡及検索で使用するためには、
7884 \begin_inset Flex MenuItem
7885 status collapsed
7886
7887 \begin_layout Plain Layout
7888 設定\SpecialChar menuseparator
7889 ファイル処理\SpecialChar menuseparator
7890 ファイル書式\SpecialChar menuseparator
7891 PDF (pdflatex)
7892 \end_layout
7893
7894 \end_inset
7895
7896 のビューア設定で
7897 \begin_inset Flex Code
7898 status collapsed
7899
7900 \begin_layout Plain Layout
7901 SumatraPDF -inverse-search 
7902 \begin_inset Quotes eld
7903 \end_inset
7904
7905 lyxeditor.bat %f %l
7906 \begin_inset Quotes erd
7907 \end_inset
7908
7909
7910 \end_layout
7911
7912 \end_inset
7913
7914 (
7915 \begin_inset Flex Code
7916 status collapsed
7917
7918 \begin_layout Plain Layout
7919 lyxeditor.bat
7920 \end_layout
7921
7922 \end_inset
7923
7924 は上記のラッパ)と入力してください。SumatraPDF.exeがコマンドPATHにない場合、フルファイル名を使用してください。
7925 \end_layout
7926
7927 \begin_layout Standard
7928 遡及検索はダブルクリックで始動します。
7929 \end_layout
7930
7931 \begin_layout Subsubsection*
7932 YAP(Cygwin)
7933 \end_layout
7934
7935 \begin_layout Standard
7936 まずはじめに、yapがWindows環境での既定のDVIビューアになっていることを確認してから、yapを起動し、
7937 \begin_inset Flex MenuItem
7938 status collapsed
7939
7940 \begin_layout Plain Layout
7941 View\SpecialChar menuseparator
7942 Options
7943 \end_layout
7944
7945 \end_inset
7946
7947 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar ldots
7948 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7949
7950  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar ldots
7951 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7952 \begin_inset Flex Code
7953 status collapsed
7954
7955 \begin_layout Plain Layout
7956 lyxeditor.exe
7957 \end_layout
7958
7959 \end_inset
7960
7961 プログラム(これは、Cygwinでは既定で\SpecialChar LyX
7962 実行ファイルとともに導入されます)のあるディレクトリを見つけます。
7963 \begin_inset Flex Code
7964 status collapsed
7965
7966 \begin_layout Plain Layout
7967 lyxeditor.exe
7968 \end_layout
7969
7970 \end_inset
7971
7972 を選択してプログラムの引数を
7973 \begin_inset Flex Code
7974 status collapsed
7975
7976 \begin_layout Plain Layout
7977 -g %f %l
7978 \end_layout
7979
7980 \end_inset
7981
7982 と指定してください。これによって、\SpecialChar LyX
7983 との通信に
7984 \emph on
7985 lyxsocket
7986 \emph default
7987 が使用されるようになります。何らかの理由で
7988 \emph on
7989 lyxpipe
7990 \emph default
7991 を使用したい場合には、
7992 \begin_inset Flex Code
7993 status collapsed
7994
7995 \begin_layout Plain Layout
7996 -g
7997 \end_layout
7998
7999 \end_inset
8000
8001 オプションを削除して、\SpecialChar LyX
8002 設定で\SpecialChar LyX
8003 Serverパイプパスを指定することを忘れないでください。
8004 \end_layout
8005
8006 \begin_layout Standard
8007 yapでは、遡及検索はダブルクリックで始動します。
8008 \end_layout
8009
8010 \begin_layout Subsubsection*
8011 SumatraPDF(Cygwin)
8012 \end_layout
8013
8014 \begin_layout Standard
8015 SumatraPDFを遡及検索で使用するためには、
8016 \begin_inset Flex MenuItem
8017 status collapsed
8018
8019 \begin_layout Plain Layout
8020 設定\SpecialChar menuseparator
8021 ファイル処理\SpecialChar menuseparator
8022 ファイル書式\SpecialChar menuseparator
8023 PDF (pdflatex)
8024 \end_layout
8025
8026 \end_inset
8027
8028 のビューア設定で
8029 \begin_inset Flex Code
8030 status collapsed
8031
8032 \begin_layout Plain Layout
8033 SumatraPDF.sh
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 /usr/local/bin
8054 \end_layout
8055
8056 \end_inset
8057
8058 がもっとも良い選択肢でしょう)。
8059 \end_layout
8060
8061 \begin_layout LyX-Code
8062 #!/bin/bash
8063 \begin_inset Newline newline
8064 \end_inset
8065
8066 cd $(dirname $1)
8067 \begin_inset Newline newline
8068 \end_inset
8069
8070 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8071 \end_layout
8072
8073 \begin_layout Standard
8074 SumatraPDFは、Windowsネイティブのアプリケーションであり、\SpecialChar LyX
8075 のCygwin版が使用するPOSIXパスを理解しないので、このラッパスクリプトが必要と
8076 なります。SumatraPDF.exeがお使いのコマンドパスにない場合は、上記のスクリプトでPOSIXのフルパスを使用してください。
8077 \begin_inset Flex Code
8078 status collapsed
8079
8080 \begin_layout Plain Layout
8081 -g
8082 \end_layout
8083
8084 \end_inset
8085
8086
8087 \emph on
8088 lyxsocket
8089 \emph default
8090 経由の通信を有効にします。ここでも、
8091 \emph on
8092 lyxpipe
8093 \emph default
8094 を使用したい場合には、
8095 \begin_inset Flex Code
8096 status collapsed
8097
8098 \begin_layout Plain Layout
8099 -g
8100 \end_layout
8101
8102 \end_inset
8103
8104 オプションを削除して、\SpecialChar LyX
8105 設定で\SpecialChar LyX
8106 Serverパイプパスを指定することを忘れないでください。
8107 \end_layout
8108
8109 \begin_layout Standard
8110 遡及検索はダブルクリックで始動します。
8111 \end_layout
8112
8113 \begin_layout Section
8114 順検索
8115 \end_layout
8116
8117 \begin_layout Standard
8118 順検索とは、名前が示すとおり、いわば遡及検索の「逆」を意味します。すなわち、\SpecialChar LyX
8119 内部から、ビューアに特定の箇所を表示させることを可能にします。(以下に説明するように
8120 )もし順検索の準備ができていれば、カーソルを\SpecialChar LyX
8121 文書の好きなところに置いて、
8122 \begin_inset Flex MenuItem
8123 status collapsed
8124
8125 \begin_layout Plain Layout
8126 移動\SpecialChar menuseparator
8127 順検索
8128 \end_layout
8129
8130 \end_inset
8131
8132 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8133 \begin_inset Flex MenuItem
8134 status collapsed
8135
8136 \begin_layout Plain Layout
8137 順検索
8138 \end_layout
8139
8140 \end_inset
8141
8142 を選択してもよい)、ビューアも同じ箇所に移動します。もちろん、使用しているビューアが、この機能をサポートしていなくてはなりません。
8143 \end_layout
8144
8145 \begin_layout Standard
8146 順検索を有効にするためには、生成されたPDF/DVI出力ファイルに、\SpecialChar TeX
8147 ソースに関する情報を追加する必要があります。これは、第
8148 \begin_inset CommandInset ref
8149 LatexCommand ref
8150 reference "subsec:遡及検索"
8151
8152 \end_inset
8153
8154 節に述べられている方法で実行することができます。
8155 \end_layout
8156
8157 \begin_layout Standard
8158 次に、
8159 \begin_inset Flex MenuItem
8160 status collapsed
8161
8162 \begin_layout Plain Layout
8163 ツール\SpecialChar menuseparator
8164 設定\SpecialChar menuseparator
8165 出力\SpecialChar menuseparator
8166 一般
8167 \end_layout
8168
8169 \end_inset
8170
8171 で自分の使うビューアを利用するように、\SpecialChar LyX
8172 を設定する必要があります。いくつかのビューアについては、試験済みの設定が前もって準備されており、ドロップダウンリストから選
8173 択することができます。これらの設定の何れも意にそぐわない場合には、ご自身で適切な設定を見つけ出して入力しなくてはなりません。定義文法は、以下の変数を使用します。
8174 \end_layout
8175
8176 \begin_layout Itemize
8177 \begin_inset Flex Code
8178 status collapsed
8179
8180 \begin_layout Plain Layout
8181 $$n
8182 \end_layout
8183
8184 \end_inset
8185
8186 :行番号
8187 \end_layout
8188
8189 \begin_layout Itemize
8190 \begin_inset Flex Code
8191 status collapsed
8192
8193 \begin_layout Plain Layout
8194 $$t
8195 \end_layout
8196
8197 \end_inset
8198
8199 :書き出された(一時).texファイル名(パスを除く)
8200 \end_layout
8201
8202 \begin_layout Itemize
8203 \begin_inset Flex Code
8204 status collapsed
8205
8206 \begin_layout Plain Layout
8207 $$f
8208 \end_layout
8209
8210 \end_inset
8211
8212 :書き出された(一時).texファイル名(パスを含む)
8213 \end_layout
8214
8215 \begin_layout Itemize
8216 \begin_inset Flex Code
8217 status collapsed
8218
8219 \begin_layout Plain Layout
8220 $$o
8221 \end_layout
8222
8223 \end_inset
8224
8225 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して、dviあるいはpdf)。
8226 \end_layout
8227
8228 \begin_layout Standard
8229 yap・xdvi・okular
8230 \begin_inset Foot
8231 status collapsed
8232
8233 \begin_layout Plain Layout
8234 \begin_inset Flex MenuItem
8235 status collapsed
8236
8237 \begin_layout Plain Layout
8238 ツール\SpecialChar menuseparator
8239 設定\SpecialChar menuseparator
8240 ファイル処理\SpecialChar menuseparator
8241 ファイル形式
8242 \end_layout
8243
8244 \end_inset
8245
8246
8247 \begin_inset Flex Code
8248 status collapsed
8249
8250 \begin_layout Plain Layout
8251 okular –unique
8252 \end_layout
8253
8254 \end_inset
8255
8256 と設定すると良いかもしれません。
8257 \end_layout
8258
8259 \end_inset
8260
8261 ・qpdfview・Sumatra PDFなど、一部のビューアでしか、完全な順検索機能は提供されていないことに注意してください
8262 \lang english
8263
8264 \begin_inset Foot
8265 status collapsed
8266
8267 \begin_layout Plain Layout
8268
8269 \lang english
8270 SumatraPDF can also use DDE commands through the external program CMCDDE
8271  — downloadable from 
8272 \begin_inset CommandInset href
8273 LatexCommand href
8274 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8275
8276 \end_inset
8277
8278
8279 \end_layout
8280
8281 \end_inset
8282
8283
8284 \lang japanese
8285 。広く使われているPDFビューアの多く(特にAdobe Reader)は、順検索を全く提供していませんが、他の一部のビューア(たとえばEvinceやxpdf)で
8286 は、少なくとも、文書を読み込み直したり、ファイルの特定ページに移動することはできますので、少なくとも「近く」には移動することができます。この後者の機能は、syn
8287 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください)。
8288 \end_layout
8289
8290 \begin_layout Standard
8291 順検索は、DVI出力とPDF出力の双方で動作します。\SpecialChar LyX
8292 は、過去にあなたが使用したプレビュー形式をチェックして(つまり、一時ディレクトリにどちらの形式が存在するかを
8293 チェックして)、その形式に適切な設定を選択します。
8294 \end_layout
8295
8296 \begin_layout Chapter
8297 特別な文書クラス
8298 \end_layout
8299
8300 \begin_layout Section
8301 A&Aの論文
8302 \end_layout
8303
8304 \begin_layout Standard
8305
8306 \noun on
8307 Peter Sütterlin文
8308 \end_layout
8309
8310 \begin_layout Subsection
8311 はじめに
8312 \end_layout
8313
8314 \begin_layout Standard
8315 この節では、文書クラス
8316 \family typewriter
8317 aa.cls
8318 \family default
8319 第5.01版を使用して科学雑誌
8320 \emph on
8321 Astronomy and Astrophysics
8322 \emph default
8323 (『天文学と宇宙物理学』: 
8324 \begin_inset Flex URL
8325 status collapsed
8326
8327 \begin_layout Plain Layout
8328
8329 http://www.edpsciences.fr/aa/
8330 \end_layout
8331
8332 \end_inset
8333
8334 )に投稿する論文を執筆するための\SpecialChar LyX
8335 の使用法を説明します。このパッケージは、FTPサイト
8336 \begin_inset Separator parbreak
8337 \end_inset
8338
8339
8340 \end_layout
8341
8342 \begin_layout Standard
8343 \align center
8344 \begin_inset VSpace medskip
8345 \end_inset
8346
8347
8348 \begin_inset Flex URL
8349 status collapsed
8350
8351 \begin_layout Plain Layout
8352
8353 ftp://ftp.edpsciences.org/pub/aa/readme.html
8354 \end_layout
8355
8356 \end_inset
8357
8358
8359 \begin_inset VSpace medskip
8360 \end_inset
8361
8362
8363 \end_layout
8364
8365 \begin_layout Standard
8366 \noindent
8367 からダウンロードすることができます。
8368 \end_layout
8369
8370 \begin_layout Standard
8371 このパッケージには取扱説明書がついていますが、本節は、本来の取扱説明書の代わりとなることを意図したものではなく、あなたの論文を正しい様式に整えるための小さな案内
8372 書であるに過ぎません。
8373 \end_layout
8374
8375 \begin_layout Standard
8376 この学術誌の出版元は、2001年1月1日以降、Springer社からEDP Science社に変更されていることにご注意ください。この出版社の変更によって、th
8377 esaurusコマンドの廃止など、スタイルファイルに若干の変更が加わっています。\SpecialChar LyX
8378 のaaクラスは、スタイルファイルの最新版(第5.01版)をサポートしています。もし
8379 古い版が装備されている場合には、更新してください。互換性のために、古い(第4版)レイアウトは、
8380 \family sans
8381 article (A&A V4)
8382 \family default
8383 として残してあります。
8384 \family typewriter
8385 $\SpecialChar LyX
8386 Dir/layouts/aapaper.layout
8387 \family default
8388 のコメントをご参照ください。
8389 \end_layout
8390
8391 \begin_layout Subsection
8392 最初の一歩
8393 \end_layout
8394
8395 \begin_layout Standard
8396 \SpecialChar LyX
8397 とともに頒布されている例示用のひな型を土台として、書き始めることをお勧めします。ひな型を使用しない場合には、以下の設定にしてください。
8398 \end_layout
8399
8400 \begin_layout Itemize
8401
8402 \family sans
8403 文書\SpecialChar menuseparator
8404 設定
8405 \family default
8406 ダイアログで
8407 \family sans
8408 article (A&A)
8409 \family default
8410 を選択してください(まぁ、これは自明ですね)。
8411 \end_layout
8412
8413 \begin_layout Itemize
8414
8415 \family sans
8416 ページレイアウト
8417 \family default
8418 オプションは変更しないで、既定値のままに設定しておいてください。全体のレイアウトはマクロが行うので、何も変更してはいけません。
8419 \end_layout
8420
8421 \begin_layout Subsection
8422 へッダ部
8423 \end_layout
8424
8425 \begin_layout Standard
8426 最初に入力すべきものは、へッダ情報です。ヘッダ情報には、以下の7つの項目があり、いくつかは必須ではありません。
8427 \end_layout
8428
8429 \begin_layout Itemize
8430
8431 \family sans
8432 タイトル
8433 \family default
8434 :[必須]
8435 \end_layout
8436
8437 \begin_layout Itemize
8438
8439 \family sans
8440 サブタイトル
8441 \family default
8442 :[非必須]
8443 \end_layout
8444
8445 \begin_layout Itemize
8446
8447 \family sans
8448 著者
8449 \family default
8450 :[必須]
8451 \end_layout
8452
8453 \begin_layout Itemize
8454
8455 \family sans
8456 住所
8457 \family default
8458 :[必須]
8459 \end_layout
8460
8461 \begin_layout Itemize
8462
8463 \family sans
8464 抜き刷り
8465 \family default
8466 :[非必須]著者が複数いる場合、抜き刷りの送付を依頼するのに連絡すべき人を記す。
8467 \end_layout
8468
8469 \begin_layout Itemize
8470
8471 \family sans
8472 メール
8473 \family default
8474 :[非必須]連絡用の電子メールアドレス。
8475 \end_layout
8476
8477 \begin_layout Itemize
8478
8479 \family sans
8480 日付
8481 \family default
8482 :[必須]推奨されるフォーマットは、
8483 \family typewriter
8484 Received: <日付>; Accepted <日付>
8485 \family default
8486 です。
8487 \end_layout
8488
8489 \begin_layout Standard
8490
8491 \family typewriter
8492
8493 \backslash
8494 maketitle
8495 \family default
8496 コマンドは、へッダが終了した場所に、\SpecialChar LyX
8497 が自動的に入れてくれるので、手動で挿入する必要はありません。各項目の順序は関係ありませんが、見た目のためと、実際の文書のレイ
8498 アウトに合わせるために、上記の順序を維持しておくと良いでしょう。
8499 \end_layout
8500
8501 \begin_layout Standard
8502 現住所の付記などのために、へッダ部に脚注を挿入したい場合には、
8503 \family sans
8504 挿入\SpecialChar menuseparator
8505 脚注
8506 \family default
8507 を使用して標準の脚注を挿入してください。この場合には、\SpecialChar LyX
8508 は自動的に
8509 \family typewriter
8510
8511 \backslash
8512 thanks{}
8513 \family default
8514 を使用します。
8515 \end_layout
8516
8517 \begin_layout Standard
8518 これらのトピックの他に、このマクロは、\SpecialChar LyX
8519 が対応していない、以下の3つの\SpecialChar LaTeX
8520 コマンドを使用します。
8521 \end_layout
8522
8523 \begin_layout Itemize
8524 複数の著者名あるいは所属名を区切るための
8525 \family typewriter
8526
8527 \backslash
8528 and
8529 \end_layout
8530
8531 \begin_layout Itemize
8532 著者と所属の対応付けをするための
8533 \family typewriter
8534
8535 \backslash
8536 inst{<番号>}
8537 \family default
8538 。所属は、
8539 \family sans
8540 住所
8541 \family default
8542 フィールドに現れる順に番号が付けられるので、各著者に番号マーカーを置く必要があります。
8543 \end_layout
8544
8545 \begin_layout Itemize
8546
8547 \family typewriter
8548
8549 \backslash
8550 email{アドレス}
8551 \family default
8552 は、至急連絡用に電子メールアドレスを付記します。
8553 \end_layout
8554
8555 \begin_layout Standard
8556 いずれの場合にも、\SpecialChar LyX
8557 中に対応したコマンドを入力し、\SpecialChar LaTeX
8558 コードとしてマークしてください。
8559 \begin_inset Flex Code
8560 status collapsed
8561
8562 \begin_layout Plain Layout
8563 $\SpecialChar LyX
8564 Dir/examples
8565 \end_layout
8566
8567 \end_inset
8568
8569 にある用例を参照してください。
8570 \end_layout
8571
8572 \begin_layout Subsection
8573 概要
8574 \end_layout
8575
8576 \begin_layout Standard
8577 概要は、へッダ部の直後に置きます。第5版から、概要は環境からコマンドに変更され、一段落に限るという制限が加えられました。さらに、ここにはキーワードを含む項目を入
8578 れなくてはなりません。これは、まだ\SpecialChar LyX
8579 では実装されていないため、\SpecialChar LaTeX
8580 コマンド
8581 \family typewriter
8582
8583 \backslash
8584 keywords{}
8585 \family default
8586 を手動で入力し、\SpecialChar LaTeX
8587 コードとしてマークする必要があります。用例にある論文を参照してください。
8588 \end_layout
8589
8590 \begin_layout Subsection
8591 サポートされる環境
8592 \end_layout
8593
8594 \begin_layout Standard
8595 A&A論文用レイアウトでは、文章を構造化するために、以下の環境がサポートされています。
8596 \end_layout
8597
8598 \begin_layout Itemize
8599
8600 \family sans
8601 標準
8602 \end_layout
8603
8604 \begin_layout Itemize
8605
8606 \family sans
8607
8608 \end_layout
8609
8610 \begin_layout Itemize
8611
8612 \family sans
8613 小節
8614 \end_layout
8615
8616 \begin_layout Itemize
8617
8618 \family sans
8619 小々節
8620 \end_layout
8621
8622 \begin_layout Itemize
8623
8624 \family sans
8625 箇条書き(記号)
8626 \end_layout
8627
8628 \begin_layout Itemize
8629
8630 \family sans
8631 箇条書き(連番)
8632 \end_layout
8633
8634 \begin_layout Itemize
8635
8636 \family sans
8637 箇条書き(記述)
8638 \end_layout
8639
8640 \begin_layout Itemize
8641
8642 \family sans
8643 キャプション
8644 \end_layout
8645
8646 \begin_layout Itemize
8647
8648 \family sans
8649 概要
8650 \end_layout
8651
8652 \begin_layout Itemize
8653
8654 \family sans
8655 謝辞(Acknowledgment)
8656 \end_layout
8657
8658 \begin_layout Itemize
8659
8660 \family sans
8661 書誌情報
8662 \end_layout
8663
8664 \begin_layout Itemize
8665
8666 \family sans
8667 \SpecialChar LaTeX
8668
8669 \end_layout
8670
8671 \begin_layout Subsection
8672 \SpecialChar LyX
8673 でサポートされていないコマンド
8674 \end_layout
8675
8676 \begin_layout Standard
8677 \SpecialChar LyX
8678
8679 \family sans
8680 article (A&A)
8681 \family default
8682 レイアウトでは、まだサポートされていないコマンドがあります。そのうちいくつかは既に紹介しましたが、網羅するために、以下にすべて列挙しておきます。
8683 \end_layout
8684
8685 \begin_layout Itemize
8686
8687 \family typewriter
8688
8689 \backslash
8690 and
8691 \end_layout
8692
8693 \begin_layout Itemize
8694
8695 \family typewriter
8696
8697 \backslash
8698 email
8699 \end_layout
8700
8701 \begin_layout Itemize
8702
8703 \family typewriter
8704
8705 \backslash
8706 appendix
8707 \end_layout
8708
8709 \begin_layout Itemize
8710
8711 \family typewriter
8712
8713 \backslash
8714 authorrunning
8715 \end_layout
8716
8717 \begin_layout Itemize
8718
8719 \family typewriter
8720
8721 \backslash
8722 inst{}
8723 \end_layout
8724
8725 \begin_layout Itemize
8726
8727 \family typewriter
8728
8729 \backslash
8730 keywords{}
8731 \end_layout
8732
8733 \begin_layout Itemize
8734
8735 \family typewriter
8736
8737 \backslash
8738 object{}
8739 \end_layout
8740
8741 \begin_layout Itemize
8742
8743 \family typewriter
8744
8745 \backslash
8746 titlerunning{}
8747 \end_layout
8748
8749 \begin_layout Standard
8750 これらのコマンドのいずれかを使いたい場合には、自分で入力する必要があります。
8751 \series bold
8752 これを\SpecialChar LaTeX
8753 コマンドとしてマークすることを忘れないで下さい。
8754 \end_layout
8755
8756 \begin_layout Subsection
8757 図フロートおよび表フロート
8758 \end_layout
8759
8760 \begin_layout Standard
8761 \SpecialChar LyX
8762 は、必要なフロート環境
8763 \family sans
8764 figure
8765 \family default
8766
8767 \family sans
8768 figure*
8769 \family default
8770
8771 \family sans
8772 table
8773 \family default
8774
8775 \family sans
8776 table*
8777 \family default
8778 をサポートしていますので、ここでは詳しい説明はしません。
8779 \emph on
8780 ユーザーの手引き
8781 \emph default
8782 をご覧ください。ただ、表は左揃えにしなくてはならないことに注意して下さい。そうするためには、表を選択して、
8783 \family sans
8784 編集\SpecialChar menuseparator
8785 段落設定
8786 \family default
8787 で配置を変更してください。
8788 \end_layout
8789
8790 \begin_layout Standard
8791 一つだけ、特別なものがあります。それは、図横にキャプションを配置する図です。この図を作成するには、以下のようにしなくてはなりません。
8792 \end_layout
8793
8794 \begin_layout Enumerate
8795
8796 \family sans
8797 挿入\SpecialChar menuseparator
8798 フロート\SpecialChar menuseparator
8799
8800 \family default
8801 を使って、幅広の図フロートを作成します。それから、図フロートのラベルを右クリックして
8802 \begin_inset Flex MenuItem
8803 status collapsed
8804
8805 \begin_layout Plain Layout
8806 設定\SpecialChar ldots
8807
8808 \end_layout
8809
8810 \end_inset
8811
8812 を選択し、それで開かれる
8813 \family sans
8814 フロートの設定
8815 \family default
8816 ダイアログで
8817 \family sans
8818 段をまたぐ
8819 \family default
8820 を有効にして、
8821 \family sans
8822 OK
8823 \family default
8824 ボタンを押します。
8825 \end_layout
8826
8827 \begin_layout Enumerate
8828 キャプション文を入力します。
8829 \end_layout
8830
8831 \begin_layout Enumerate
8832 キャプションの前にカーソルを移動し、
8833 \family sans
8834 Return
8835 \family default
8836 を押して、カーソルをキャプションの上に移動します。
8837 \end_layout
8838
8839 \begin_layout Enumerate
8840 図を挿入します。
8841 \end_layout
8842
8843 \begin_layout Enumerate
8844 カーソルを図の後ろに置いて、
8845 \family sans
8846 挿入\SpecialChar menuseparator
8847 整形
8848 \bar under
8849 \SpecialChar menuseparator
8850
8851 \bar default
8852 水平方向の空白
8853 \family default
8854 を選択して
8855 \family sans
8856 水平方向の空白の設定
8857 \family default
8858 ダイアログを開き、
8859 \family sans
8860 空白
8861 \family default
8862 ドロップダウンから
8863 \family sans
8864 水平フィル
8865 \family default
8866 を選択して、水平フィルを挿入します。
8867 \end_layout
8868
8869 \begin_layout Enumerate
8870
8871 \family sans
8872 挿入\SpecialChar menuseparator
8873 \SpecialChar TeX
8874 コード
8875 \family default
8876 を選択して、\SpecialChar TeX
8877 差込枠を挿入します。
8878 \end_layout
8879
8880 \begin_layout Enumerate
8881 \SpecialChar TeX
8882 差込枠中に
8883 \family typewriter
8884
8885 \backslash
8886 parbox[b]{55mm}{
8887 \family default
8888 と入力します。
8889 \series bold
8890 ここでは波括弧を閉じないでください。
8891 \end_layout
8892
8893 \begin_layout Enumerate
8894 カーソルをキャプション文の後ろに移動し、
8895 \family sans
8896 挿入\SpecialChar menuseparator
8897 \SpecialChar TeX
8898 コード
8899 \family default
8900 を選択して、別の\SpecialChar TeX
8901 差込枠を挿入し、その中に閉じ括弧を入力します 。
8902 \end_layout
8903
8904 \begin_layout Standard
8905 例示用論文中の図もご参照ください。
8906 \end_layout
8907
8908 \begin_layout Subsection
8909 Refereeレイアウト
8910 \end_layout
8911
8912 \begin_layout Standard
8913 投稿用には、論文を特別なダブルスペースレイアウトに整形しなくてはなりません。このためには、文書クラスに
8914 \family typewriter
8915 referee
8916 \family default
8917 オプションを与える必要があります。これは、
8918 \family sans
8919 文書\SpecialChar menuseparator
8920 設定
8921 \family default
8922 ダイアログの
8923 \family sans
8924 任意設定
8925 \family default
8926 クラスオプションフィールドを使って行うことができます。この欄に
8927 \family typewriter
8928 referee
8929 \family default
8930 と云う文字列を入力してください。
8931 \end_layout
8932
8933 \begin_layout Subsection
8934 例示用論文
8935 \end_layout
8936
8937 \begin_layout Standard
8938
8939 \family sans
8940 Examples
8941 \family default
8942 ディレクトリには、\SpecialChar LyX
8943 で書かれた例示用論文が収録されています。これは、元のマクロパッケージの例示用論文を\SpecialChar LyX
8944 用に直したものです。これはヒントを得るために使用したり、元の
8945  \SpecialChar LaTeX
8946 コードと\SpecialChar LyX
8947 での書き方の比較に使ったりしてください。
8948 \end_layout
8949
8950 \begin_layout Section
8951 AAS\SpecialChar TeX
8952
8953 \end_layout
8954
8955 \begin_layout Standard
8956
8957 \noun on
8958 Mike Ressler
8959 \noun default
8960
8961 \end_layout
8962
8963 \begin_layout Subsection
8964 はじめに
8965 \end_layout
8966
8967 \begin_layout Standard
8968 AAS\SpecialChar TeX
8969 は、American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
8970 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
8971  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために、同学会が作成したマクロ集です。\SpecialChar LyX
8972
8973 、これらの文書を生成する上で、なかでも数式・引用・画像処理能力において、優れたツールであることが認識されています。\SpecialChar LyX
8974 は、同マクロ第5.0版以降を必要としており、でき
8975 ればここで説明されている第5.2版以降が望まれます。第5.0版未満の版は、\SpecialChar LaTeX
8976 2.09で使用するよう企図されているため、根本的に\SpecialChar LyX
8977 とは互換性がありません。AAS\SpecialChar TeX
8978 パッケージは
8979 、以下のAAS\SpecialChar TeX
8980 ウェブサイトからダウンロードできるでしょう。
8981 \begin_inset Separator parbreak
8982 \end_inset
8983
8984
8985 \end_layout
8986
8987 \begin_layout Standard
8988 \align center
8989 \begin_inset VSpace medskip
8990 \end_inset
8991
8992
8993 \begin_inset Flex URL
8994 status collapsed
8995
8996 \begin_layout Plain Layout
8997
8998 http://www.journals.uchicago.edu/AAS/AASTeX
8999 \end_layout
9000
9001 \end_inset
9002
9003
9004 \begin_inset VSpace medskip
9005 \end_inset
9006
9007
9008 \end_layout
9009
9010 \begin_layout Standard
9011 パッケージ中には、完備したユーザーの手引きが収録されていますので、\SpecialChar LyX
9012 で論文を書き始める前に、その中身を完全に理解しておく必要があります。\SpecialChar LyX
9013 は、AASTeXの全コマン
9014 ドを理解する必然性をなくすものではなく、すべてを手入力する苦労を減らすだけです。仕上がりの\SpecialChar LaTeX
9015 文書が、論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9016 いることを確認するのは、あなたの責任です。
9017 \end_layout
9018
9019 \begin_layout Subsection
9020 新しい論文を書き始める
9021 \end_layout
9022
9023 \begin_layout Standard
9024 論文を書き始めるには、AAS\SpecialChar TeX
9025 ひな型ファイルを土台に始めることを強くお勧めします。
9026 \begin_inset Flex MenuItem
9027 status collapsed
9028
9029 \begin_layout Plain Layout
9030 ファイル\SpecialChar menuseparator
9031 新規(ひな型使用)
9032 \end_layout
9033
9034 \end_inset
9035
9036 をクリックして、新しいファイル名を入力し、ひな型
9037 \family typewriter
9038 aastex.lyx
9039 \family default
9040 を選んでください。これには、論文原稿のほとんどに共通して使われるフィールドが書き込まれています。書き込まれている文字列(括弧
9041 \family typewriter
9042 <>
9043 \family default
9044 を含む)を正しい情報で上書きしてください。AAS\SpecialChar TeX
9045 コマンド・AAS\SpecialChar TeX
9046 環境の多くは、\SpecialChar LyX
9047 中で直接実行することができますが、特に
9048 \family typewriter
9049
9050 \backslash
9051 altaffilmark
9052 \family default
9053
9054 \family typewriter
9055
9056 \backslash
9057 altaffiltext
9058 \family default
9059 のようにできないものもあります。この二つのコマンドは、ひな型ファイルを開いたとき、赤色に表示されているのですぐ目に入ることでしょう。このようなコマンドは、直接L
9060 a\SpecialChar TeX
9061 コードを入力して、それを\SpecialChar TeX
9062 コードとしてマークしなければなりません。このようなコマンドは、\SpecialChar TeX
9063 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます。A
9064 AS\SpecialChar TeX
9065 文書に必要とされる \SpecialChar TeX
9066 コードを最小にするよう努力はしていますが、まだ望まれるほどにはなっていません。
9067 \end_layout
9068
9069 \begin_layout Subsection
9070 論文を書き終わったら
9071 \end_layout
9072
9073 \begin_layout Standard
9074 論文を満足する水準で書き終え、プレビューや印刷が正しく為されているとしても、まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています。
9075 \end_layout
9076
9077 \begin_layout Enumerate
9078 論文を \SpecialChar LaTeX
9079 ファイルとして書き出します(
9080 \family sans
9081 ファイル\SpecialChar menuseparator
9082 書き出し\SpecialChar menuseparator
9083 LateX
9084 \family default
9085 )。
9086 \end_layout
9087
9088 \begin_layout Enumerate
9089 出力した
9090 \family typewriter
9091 .tex
9092 \family default
9093 ファイルを好きなエディタで編集します。
9094 \begin_inset Separator parbreak
9095 \end_inset
9096
9097
9098 \end_layout
9099
9100 \begin_deeper
9101 \begin_layout Enumerate
9102
9103 \family typewriter
9104
9105 \backslash
9106 documentclass
9107 \family default
9108 コマンドよりも前のコメント行を削除します。
9109 \end_layout
9110
9111 \begin_layout Enumerate
9112
9113 \family typewriter
9114
9115 \backslash
9116 usepackage...{fontenc}
9117 \family default
9118 という行があれば(通常は
9119 \family typewriter
9120
9121 \backslash
9122 documentclass
9123 \family default
9124 の直後にあります)削除します。また、
9125 \family typewriter
9126
9127 \backslash
9128 secnumdepth
9129 \family default
9130 行があれば、これも削除します。
9131 \end_layout
9132
9133 \begin_layout Enumerate
9134 \SpecialChar LaTeX
9135 プリアンブル中に意図的に置いたコマンド(
9136 \family typewriter
9137 .tex
9138 \family default
9139 ファイル中、「User specified \SpecialChar LaTeX
9140  commands」というコメントの直後にあります)を除いて、
9141 \family typewriter
9142
9143 \backslash
9144 makeatletter
9145 \family default
9146
9147 \family typewriter
9148
9149 \backslash
9150 makeatother
9151 \family default
9152 の間のもの(これらのコマンドを含む)をすべて削除します。
9153 \end_layout
9154
9155 \end_deeper
9156 \begin_layout Enumerate
9157 編集後のファイルを \SpecialChar LaTeX
9158 にかけて、正しく処理されることを確認します。
9159 \end_layout
9160
9161 \begin_layout Enumerate
9162 学術誌の要求事項を再読して、ファイル名と書式が正しいことを確認します。
9163 \end_layout
9164
9165 \begin_layout Enumerate
9166 投稿してください。
9167 \end_layout
9168
9169 \begin_layout Subsection
9170 特定のコマンドに関するコメント
9171 \end_layout
9172
9173 \begin_layout Standard
9174 AAS\SpecialChar TeX
9175 ユーザーの手引き(
9176 \family typewriter
9177 aasguide.tex
9178 \family default
9179 )に、各AAS\SpecialChar TeX
9180 コマンドの詳しい説明があるので、ここでは、各コマンドの使用法の詳細な説明は行いません。そこで、ここではユーザーの手引きに現れるとおりに一覧を列挙し
9181 て、必要なところだけコメントを加えることにしましょう。
9182 \end_layout
9183
9184 \begin_layout Subsubsection
9185 期待通りに動作するもの
9186 \end_layout
9187
9188 \begin_layout Standard
9189 これらは期待通りに動作するので、ここでは列挙するだけにして、コマンドの説明されている節を挙げておきます。
9190 \family typewriter
9191
9192 \backslash
9193 documentclass
9194 \family default
9195  (2.1.1)・
9196 \family typewriter
9197
9198 \backslash
9199 begin{document}
9200 \family default
9201  (2.2)・
9202 \family typewriter
9203
9204 \backslash
9205 title
9206 \family default
9207  (2.3)・
9208 \family typewriter
9209
9210 \backslash
9211 author
9212 \family default
9213  (2.3)・
9214 \family typewriter
9215
9216 \backslash
9217 affil
9218 \family default
9219  (2.3)・
9220 \family typewriter
9221
9222 \backslash
9223 abstract
9224 \family default
9225  (2.4)・
9226 \family typewriter
9227
9228 \backslash
9229 keywords
9230 \family default
9231  (2.5)・
9232 \family typewriter
9233
9234 \backslash
9235 section
9236 \family default
9237  (2.7)・
9238 \family typewriter
9239
9240 \backslash
9241 subsection
9242 \family default
9243  (2.7)・
9244 \family typewriter
9245
9246 \backslash
9247 subsubsection
9248 \family default
9249  (2.7)・
9250 \family typewriter
9251
9252 \backslash
9253 paragraph
9254 \family default
9255  (2.7)・
9256 \family typewriter
9257
9258 \backslash
9259 facility
9260 \family default
9261  (2.10)・
9262 \family typewriter
9263
9264 \backslash
9265 begin{displaymath}
9266 \family default
9267  (2.12)・
9268 \family typewriter
9269
9270 \backslash
9271 begin{equation}
9272 \family default
9273  (2.12)・
9274 \family typewriter
9275
9276 \backslash
9277 begin{eqnarray}
9278 \family default
9279  (2.12)・
9280 \family typewriter
9281
9282 \backslash
9283 begin{mathletters}
9284 \family default
9285  (2.12)・
9286 \family typewriter
9287
9288 \backslash
9289 begin{thebibliography}
9290 \family default
9291  (2.13.1)・
9292 \family typewriter
9293
9294 \backslash
9295 bibitem
9296 \family default
9297  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9298 \family typewriter
9299
9300 \backslash
9301 begin{table}
9302 \family default
9303  (2.15.4)・
9304 \family typewriter
9305
9306 \backslash
9307 begin{tabular}
9308 \family default
9309  (2.15.4)・
9310 \family typewriter
9311
9312 \backslash
9313 caption
9314 \family default
9315  (2.15.4)・
9316 \family typewriter
9317
9318 \backslash
9319 label
9320 \family default
9321  (他にもあるが特に2.15.4)・
9322 \family typewriter
9323
9324 \backslash
9325 tablerefs
9326 \family default
9327  (2.15.5)・
9328 \family typewriter
9329
9330 \backslash
9331 tablecomments
9332 \family default
9333  (2.15.5)・
9334 \family typewriter
9335
9336 \backslash
9337 url
9338 \family default
9339  (2.17.4)・
9340 \family typewriter
9341
9342 \backslash
9343 end{document}
9344 \family default
9345  (2.18)。
9346 \end_layout
9347
9348 \begin_layout Standard
9349 以下のスタイルオプションも正しく動作します。
9350 \family typewriter
9351 longabstract
9352 \family default
9353  (2.4)・
9354 \family typewriter
9355 preprint
9356 \family default
9357  (3.2.1)・
9358 \family typewriter
9359 preprint2
9360 \family default
9361  (3.2.2)・
9362 \family typewriter
9363 eqsecnum
9364 \family default
9365  (3.3)・
9366 \family typewriter
9367 flushrt
9368 \family default
9369  (3.4)。これらは、
9370 \begin_inset Flex MenuItem
9371 status collapsed
9372
9373 \begin_layout Plain Layout
9374 文書\SpecialChar menuseparator
9375 設定
9376 \end_layout
9377
9378 \end_inset
9379
9380 にある、
9381 \family sans
9382 クラスオプション
9383 \family default
9384
9385 \family sans
9386 任意設定
9387 \family default
9388 ボックスに入力してください。
9389 \end_layout
9390
9391 \begin_layout Subsubsection
9392 動作するが、若干説明が必要なもの
9393 \end_layout
9394
9395 \begin_layout Standard
9396 以下のコマンドは動作しますが、若干の説明が必要です。
9397 \end_layout
9398
9399 \begin_layout Itemize
9400 以下の項目は、学術誌の編集者向けに取ってあるものですが、どうしても必要ならば、\SpecialChar LaTeX
9401 プリアンブルに入れることができます。
9402 \family typewriter
9403
9404 \backslash
9405 received
9406 \family default
9407
9408 \family typewriter
9409
9410 \backslash
9411 revised
9412 \family default
9413
9414 \family typewriter
9415
9416 \backslash
9417 accepted
9418 \family default
9419
9420 \family typewriter
9421
9422 \backslash
9423 ccc
9424 \family default
9425
9426 \family typewriter
9427 cpright
9428 \family default
9429 (すべて 2.1.3)。
9430 \end_layout
9431
9432 \begin_layout Itemize
9433 以下の項目は、\SpecialChar LaTeX
9434 のプリアンブルに置くことができるもので、これらは、ひな型ファイルには、空の引数と共に含まれています。
9435 \family typewriter
9436
9437 \backslash
9438 slugcomment
9439 \family default
9440 (2.1.4)・
9441 \family typewriter
9442
9443 \backslash
9444 shorttitle
9445 \family default
9446 (2.1.5)・
9447 \family typewriter
9448
9449 \backslash
9450 shortauthors
9451 \family default
9452 (2.1.5)。
9453 \end_layout
9454
9455 \begin_layout Itemize
9456
9457 \family typewriter
9458
9459 \backslash
9460 email
9461 \family default
9462 (2.3)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、\SpecialChar TeX
9463 コードを使用してください。
9464 \end_layout
9465
9466 \begin_layout Itemize
9467
9468 \family typewriter
9469
9470 \backslash
9471 and
9472 \family default
9473 (2.3)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9474 \end_layout
9475
9476 \begin_layout Itemize
9477
9478 \family typewriter
9479
9480 \backslash
9481 notetoeditor
9482 \family default
9483 (2.6)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、\SpecialChar TeX
9484 コードを使用してください。
9485 \end_layout
9486
9487 \begin_layout Itemize
9488
9489 \family typewriter
9490
9491 \backslash
9492 placetable
9493 \family default
9494 (2.8)―相互参照用タグを挿入することはできません。手動でタグ名を入力する必要があります。
9495 \end_layout
9496
9497 \begin_layout Itemize
9498
9499 \family typewriter
9500
9501 \backslash
9502 placefigure
9503 \family default
9504 (2.8)—
9505 \family typewriter
9506
9507 \backslash
9508 placetable
9509 \family default
9510 と同様。
9511 \end_layout
9512
9513 \begin_layout Itemize
9514
9515 \family typewriter
9516
9517 \backslash
9518 acknowledgements
9519 \family default
9520 (2.9)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9521 \end_layout
9522
9523 \begin_layout Itemize
9524
9525 \family typewriter
9526
9527 \backslash
9528 appendix
9529 \family default
9530 (2.11)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9531 \end_layout
9532
9533 \begin_layout Itemize
9534
9535 \family typewriter
9536
9537 \backslash
9538 figcaption
9539 \family default
9540 (2.14.2)―文章のはじめにカーソルを置いて
9541 \begin_inset Flex MenuItem
9542 status collapsed
9543
9544 \begin_layout Plain Layout
9545 挿入\SpecialChar menuseparator
9546 短縮タイトル
9547 \end_layout
9548
9549 \end_inset
9550
9551 を選択すれば、非必須のファイル名引数を挿入することができます。「短縮タイトル」とありますが、
9552 \family typewriter
9553
9554 \backslash
9555 figcaption
9556 \family default
9557 が必要とする型の非必須引数を挿入します。望むらくはいつの日か改名されることでしょう。
9558 \end_layout
9559
9560 \begin_layout Itemize
9561
9562 \family typewriter
9563
9564 \backslash
9565 objectname
9566 \family default
9567 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
9568 \family typewriter
9569
9570 \backslash
9571 figcaption
9572 \family default
9573 と同様。
9574 \end_layout
9575
9576 \begin_layout Itemize
9577
9578 \family typewriter
9579
9580 \backslash
9581 dataset
9582 \family default
9583 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
9584 \family typewriter
9585
9586 \backslash
9587 figcaption
9588 \family default
9589 と同様。
9590 \end_layout
9591
9592 \begin_layout Subsubsection
9593 実装されていないため、\SpecialChar TeX
9594 コードを使用するもの
9595 \end_layout
9596
9597 \begin_layout Standard
9598
9599 \family typewriter
9600
9601 \backslash
9602 altaffilmark
9603 \family default
9604 (2.3)・
9605 \family typewriter
9606
9607 \backslash
9608 altaffiltext
9609 \family default
9610 (2.3)・
9611 \family typewriter
9612
9613 \backslash
9614 eqnum
9615 \family default
9616 (2.12)・
9617 \family typewriter
9618
9619 \backslash
9620 setcounter{equation}
9621 \family default
9622 (2.12)・学術誌名略語(2.12.4)・
9623 \family typewriter
9624
9625 \backslash
9626 figurenum
9627 \family default
9628 (2.14.1)・
9629 \family typewriter
9630
9631 \backslash
9632 epsscale
9633 \family default
9634 (2.14.1)・
9635 \family typewriter
9636
9637 \backslash
9638 plotone
9639 \family default
9640 (2.14.1)・
9641 \family typewriter
9642
9643 \backslash
9644 plottwo
9645 \family default
9646 (2.14.1)・
9647 \family typewriter
9648
9649 \backslash
9650 tablenum
9651 \family default
9652 (2.15.4)・
9653 \family typewriter
9654
9655 \backslash
9656 tableline
9657 \family default
9658 (2.15.4:入れたい場所の後ろに、左側セルの最初の要素として挿入する。表中では、\SpecialChar LyX
9659 の方法は使わないでください)・
9660 \family typewriter
9661
9662 \backslash
9663 tablenotemark
9664 \family default
9665 (2.15.5)・
9666 \family typewriter
9667
9668 \backslash
9669 tablenotetext
9670 \family default
9671 (2.15.5)・補遺(2.17)の大半(
9672 \family typewriter
9673
9674 \backslash
9675 objectname
9676 \family default
9677
9678 \family typewriter
9679
9680 \backslash
9681 dataset
9682 \family default
9683
9684 \family typewriter
9685
9686 \backslash
9687 url
9688 \family default
9689
9690 \family typewriter
9691
9692 \backslash
9693 email
9694 \family default
9695 を除く。上記参照)・
9696 \family typewriter
9697
9698 \backslash
9699 singlespace
9700 \family default
9701 (3.1)・
9702 \family typewriter
9703
9704 \backslash
9705 doublespace
9706 \family default
9707 (3.1)・
9708 \family typewriter
9709
9710 \backslash
9711 onecolumn
9712 \family default
9713 (3.2)・
9714 \family typewriter
9715
9716 \backslash
9717 twocolumn
9718 \family default
9719 (3.2)
9720 \end_layout
9721
9722 \begin_layout Subsubsection
9723 実装できないもの
9724 \end_layout
9725
9726 \begin_layout Standard
9727 references(2.12.3)環境とdeluxetable(2.14)環境は、少なくとも意味のあるような形で実装することができないので、無視してください。もし、
9728 絶対に、どうしても、deluxetableを使う必要があるならば、テキストエディタで別ファイルとして編集し、
9729 \begin_inset Flex MenuItem
9730 status collapsed
9731
9732 \begin_layout Plain Layout
9733 挿入\SpecialChar menuseparator
9734 ファイル
9735 \begin_inset Formula $\text{\textipa{}}$
9736 \end_inset
9737
9738 \SpecialChar menuseparator
9739 子文書
9740 \end_layout
9741
9742 \end_inset
9743
9744 を使用して、\SpecialChar LyX
9745 ファイルに読み込むことを推奨します。この実例は、
9746 \family typewriter
9747 aas_sample.lyx
9748 \family default
9749 ファイルをご参照ください。
9750 \end_layout
9751
9752 \begin_layout Subsection
9753 FAQとヒントと技とその他の考察
9754 \end_layout
9755
9756 \begin_layout Subsubsection
9757 \SpecialChar LyX
9758 をAAS\SpecialChar TeX
9759 と協調させる
9760 \end_layout
9761
9762 \begin_layout Standard
9763 \SpecialChar LyX
9764 に、新しいレイアウトと文書クラスを認識させるには若干コツが要ります。もしうまく行かなかったら、次のようにしてみてください。
9765 \end_layout
9766
9767 \begin_layout Enumerate
9768 \SpecialChar LaTeX
9769 が、AAS\SpecialChar TeX
9770 を検出できることを確認してください。AAS\SpecialChar TeX
9771 頒布版に含まれる
9772 \family typewriter
9773 sample.tex
9774 \family default
9775 (あるいは
9776 \family typewriter
9777 table.tex
9778 \family default
9779 でも可)を、\SpecialChar LaTeX
9780 やAAS\SpecialChar TeX
9781 とまったく関係のないディレクトリにコピーして、
9782 \family typewriter
9783 sample.tex
9784 \family default
9785 を\SpecialChar LaTeX
9786 にかけてください。
9787 \end_layout
9788
9789 \begin_layout Enumerate
9790
9791 \family typewriter
9792 aastex.layout
9793 \family default
9794 が、\SpecialChar LyX
9795
9796 \family typewriter
9797 layouts
9798 \family default
9799 フォルダにあることを確認してください。
9800 \end_layout
9801
9802 \begin_layout Enumerate
9803 \SpecialChar LyX
9804 中から
9805 \family sans
9806 ツール\SpecialChar menuseparator
9807 環境構成
9808 \family default
9809 を再度実行し、\SpecialChar LyX
9810 を再起動してください。
9811 \end_layout
9812
9813 \begin_layout Enumerate
9814 ひな型ではなく、通常の新規ファイルを開いてください。AAS\SpecialChar TeX
9815 が、
9816 \family sans
9817 文書\SpecialChar menuseparator
9818 設定
9819 \family default
9820 のクラス一覧に表示されていますか?
9821 \end_layout
9822
9823 \begin_layout Standard
9824 既存のAAS\SpecialChar TeX
9825 文書を処理する際に、AAS\SpecialChar TeX
9826 レイアウトを見つけられないとか、「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
9827 れば、正しい導入が行われていません。
9828 \end_layout
9829
9830 \begin_layout Subsubsection
9831 表を処理する際の\SpecialChar LaTeX
9832 エラー
9833 \end_layout
9834
9835 \begin_layout Standard
9836 既定では、\SpecialChar LyX
9837 は、表のキャプションやタイトルを中央揃えにしようと試みます。これはAAS\SpecialChar TeX
9838 と悪い相互干渉を発生させるようですので、キャプションやタイトルのどこかをクリッ
9839 クして、
9840 \family sans
9841 編集\SpecialChar menuseparator
9842 段落設定
9843 \family default
9844 を選択し、
9845 \family sans
9846 配置
9847 \family default
9848
9849 \family sans
9850 両端揃え
9851 \family default
9852 に設定してください。私のところではこれで解決しました。
9853 \end_layout
9854
9855 \begin_layout Subsubsection
9856 書誌情報
9857 \end_layout
9858
9859 \begin_layout Standard
9860 若干の注意があります。(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです。書誌情報を入力する際には、最後の著者と、著作年を入れる括弧の間にスペ
9861 ースを
9862 \emph on
9863 入れない
9864 \emph default
9865 ようにしてください。たとえば、
9866 \family typewriter
9867 Ressler(1992)
9868 \family default
9869 はいいですが、
9870 \family typewriter
9871 Ressler (1992)
9872 \family default
9873 ではだめです。(2)書誌情報の入力の仕方は、必ずしも自明ではありません。もっとも簡単な方法は、文書の最後に、最初の書誌情報をまず書き込み、それを
9874 \family sans
9875 書誌情報
9876 \family default
9877 環境としてマークすることです。すると、入力したものの前に、小さな灰色のボックスが現れます。このボックスをクリックして、残りの情報を入力してください。新しい書誌情
9878 報を追加するには、既存の書誌情報の後ろでリターンを押します。すると、新しいボックスの付いた新規行が出てくるので、後は同様にしてください。
9879 \end_layout
9880
9881 \begin_layout Subsubsection
9882 EPSファイルの読み込み
9883 \end_layout
9884
9885 \begin_layout Standard
9886 AAS\SpecialChar TeX
9887 には、自前の図関連コマンド(たとえば
9888 \family typewriter
9889
9890 \backslash
9891 plotone
9892 \family default
9893 )がありますが、私は(既定のgraphicxを使った)\SpecialChar LaTeX
9894 の標準図コマンドの方がずっと好きです。望めば、図フロートボックスに、\SpecialChar TeX
9895 コードで
9896 \family typewriter
9897
9898 \backslash
9899 plotone
9900 \family default
9901 等のコマンドを挿入することはできますが、私には正しいレイアウトを得ることができた試しがありません。標準の画像コマンドを使えば、\SpecialChar LyX
9902 は、
9903 \family typewriter
9904
9905 \backslash
9906 usepackage{graphics}
9907 \family default
9908 コマンドを\SpecialChar LaTeX
9909 プリアンブルに挿入し、図を\SpecialChar LaTeX2e
9910 の標準的な方法で取り扱って、文章の中にちりばめます。現在、ApJは、ちょうどこのようにして作成した図を受け入れていますが、A
9911 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません。
9912 \end_layout
9913
9914 \begin_layout Subsubsection
9915 可能だったが、実装しなかったもの
9916 \end_layout
9917
9918 \begin_layout Standard
9919 「素敵な」ものの中には、実装することも可能だったけれども、あえて実装しなかったものがあります。たとえば、紙の原稿ではダブルスペースであったとしても、\SpecialChar LyX
9920 ウィンドウ中
9921 で、文章をダブルスペースにする意味はないと考えました。また、preprint様式とpreprint2様式を、独立したレイアウトにすることもしませんでした。いずれ
9922 にしても、執筆時間のほとんどを、平の原稿モードで使うのがほとんどですから、これらの機能でディスクスペースを消費しないことにしました。
9923 \end_layout
9924
9925 \begin_layout Subsection
9926 最後に
9927 \end_layout
9928
9929 \begin_layout Standard
9930 これまでに進んできた道のりは、長い人も短い人もいることでしょう。私には、ApJとAJに発表した論文がありますが、その努力の98
9931 \begin_inset space \thinspace{}
9932 \end_inset
9933
9934 %は\SpecialChar LyX
9935 上で為されました。残りの2
9936 \begin_inset space \thinspace{}
9937 \end_inset
9938
9939 %が、\SpecialChar LaTeX
9940 での後処理と若干の後片付けです。投稿の過程では何のトラブルもなく、これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう。ですから、がんばっ
9941 て発表してください!
9942 \end_layout
9943
9944 \begin_layout Section
9945 AMS \SpecialChar LaTeX
9946
9947 \end_layout
9948
9949 \begin_layout Standard
9950
9951 \noun on
9952 David Johnson
9953 \noun default
9954 文 
9955 \noun on
9956 Richard Heck
9957 \noun default
9958 改訂
9959 \begin_inset VSpace bigskip
9960 \end_inset
9961
9962
9963 \end_layout
9964
9965 \begin_layout Standard
9966 AMS \SpecialChar LaTeX
9967 レイアウトは、American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです。レイアウトは、特定
9968 の学術誌向けに仕立てられてはいませんが、簡単にそうすることができます。各学術誌毎の指示については、AMSの説明書をご参照ください(通常は、\SpecialChar TeX
9969 出力中の一行を変更する
9970 必要があるだけです)。AMSの説明書は、ウェブWeb上の
9971 \begin_inset Flex URL
9972 status open
9973
9974 \begin_layout Plain Layout
9975
9976 http://www.ams.org
9977 \end_layout
9978
9979 \end_inset
9980
9981 か、FTPで
9982 \begin_inset Flex URL
9983 status open
9984
9985 \begin_layout Plain Layout
9986
9987 ftp://ftp.ams.org/pub/tex/amslatex/
9988 \end_layout
9989
9990 \end_inset
9991
9992 から入手することができます。これらのレイアウトは、数学的な文章を書くのであれば、どんなときでも適切かつ有用であるはずです。
9993 \end_layout
9994
9995 \begin_layout Standard
9996 基本となるAMS \SpecialChar LaTeX
9997 レイアウトには、以下の二つがあります。
9998 \end_layout
9999
10000 \begin_layout Itemize
10001 amsart:標準のAMS article書式。
10002 \end_layout
10003
10004 \begin_layout Itemize
10005 amsbook:標準のAMS book(実際はモノグラフ)書式。
10006 \end_layout
10007
10008 \begin_layout Standard
10009 これらのレイアウトには、それ自身では、AMSクラスを使用するのに必要最低限のものしか含まれていません。特に、定理や補題などを設定するのに使用される「theore
10010 m」環境は、何一つ含まれていません。これらは、代わりに
10011 \begin_inset Flex Code
10012 status collapsed
10013
10014 \begin_layout Plain Layout
10015 定理(AMS)
10016 \end_layout
10017
10018 \end_inset
10019
10020 モジュールに収録されており、AMSクラスのいずれかを選択すると、このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ、別
10021 のものに変えたいときは取り除くこともできます)。少し使用頻度の低いものとしては、
10022 \begin_inset Flex Code
10023 status collapsed
10024
10025 \begin_layout Plain Layout
10026 定理(AMS拡張)
10027 \end_layout
10028
10029 \end_inset
10030
10031 モジュールがあり、これは手動で読み込む必要があります。
10032 \end_layout
10033
10034 \begin_layout Standard
10035 既定では、定理類は、文書を通して連番が振られますが、これは
10036 \begin_inset Flex Code
10037 status collapsed
10038
10039 \begin_layout Plain Layout
10040 定理(節毎連番)
10041 \end_layout
10042
10043 \end_inset
10044
10045 モジュールを読み込めば変更することができ、
10046 \begin_inset Flex Code
10047 status collapsed
10048
10049 \begin_layout Plain Layout
10050 book (AMS)
10051 \end_layout
10052
10053 \end_inset
10054
10055 を使用している場合には
10056 \begin_inset Flex Code
10057 status collapsed
10058
10059 \begin_layout Plain Layout
10060 定理(章毎連番)
10061 \end_layout
10062
10063 \end_inset
10064
10065 を用いても変更することができます。これらを用いると、出力は
10066 \begin_inset Formula $n.m$
10067 \end_inset
10068
10069 のようになり、最初の数字は節番号(または章番号)、次の数字はそれまで同節内(章内)に現れた出力の全数を表します。大半の環境は、連番なしでも用いることができます。
10070 連番なしのものは、環境名の後ろにアスタリスクを付けたもので表されます。連番なしの出力
10071 \emph on
10072 のみ
10073 \emph default
10074 が欲しい場合には、
10075 \begin_inset Flex Code
10076 status collapsed
10077
10078 \begin_layout Plain Layout
10079 定理(連番なし)
10080 \end_layout
10081
10082 \end_inset
10083
10084 モジュールを用います。
10085 \end_layout
10086
10087 \begin_layout Standard
10088 これらのモジュールは、AMSクラスで使用する
10089 \emph on
10090 必要はない
10091 \emph default
10092 ことに注意してください。
10093 \begin_inset Flex Code
10094 status collapsed
10095
10096 \begin_layout Plain Layout
10097 定理(AMS)
10098 \end_layout
10099
10100 \end_inset
10101
10102 モジュールや上述の他のモジュールは、他のクラス、たとえば
10103 \begin_inset Flex Code
10104 status collapsed
10105
10106 \begin_layout Plain Layout
10107 article
10108 \end_layout
10109
10110 \end_inset
10111
10112
10113 \begin_inset Flex Code
10114 status collapsed
10115
10116 \begin_layout Plain Layout
10117 report
10118 \end_layout
10119
10120 \end_inset
10121
10122
10123 \begin_inset Flex Code
10124 status collapsed
10125
10126 \begin_layout Plain Layout
10127 book (KOMA-script)
10128 \end_layout
10129
10130 \end_inset
10131
10132 などで問題なく使用することができます。
10133 \end_layout
10134
10135 \begin_layout Subsection
10136 これらのレイアウトが提供するもの
10137 \end_layout
10138
10139 \begin_layout Standard
10140 これらのレイアウトが提供している環境を列挙すると、長い一覧となります。AMS-\SpecialChar LaTeX
10141 では、実のところ、「theorem」環境の派生型を際限なく定義していくことが可能で
10142 す。しかし、AMSは、\SpecialChar LyX
10143 で利用可能になっている環境のみを使用することを推奨しています。
10144 \end_layout
10145
10146 \begin_layout Standard
10147 \begin_inset Flex Code
10148 status collapsed
10149
10150 \begin_layout Plain Layout
10151 article (AMS)
10152 \end_layout
10153
10154 \end_inset
10155
10156
10157 \begin_inset Flex Code
10158 status collapsed
10159
10160 \begin_layout Plain Layout
10161 book (AMS)
10162 \end_layout
10163
10164 \end_inset
10165
10166 には、——
10167 \begin_inset space ~
10168 \end_inset
10169
10170
10171 \begin_inset Flex Noun
10172 status collapsed
10173
10174 \begin_layout Plain Layout
10175
10176 \end_layout
10177
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 space ~
10222 \end_inset
10223
10224 ——
10225 \begin_inset space ~
10226 \end_inset
10227
10228 以下の環境があります。
10229 \end_layout
10230
10231 \begin_layout Description
10232 住所 これは著者の恒久的な住所です。
10233 \end_layout
10234
10235 \begin_layout Description
10236 現在の住所 住所と別に指定されているときには、著者の投稿時の仮初めの住所です。
10237 \end_layout
10238
10239 \begin_layout Description
10240 電子メール 著者の電子メールアドレス
10241 \end_layout
10242
10243 \begin_layout Description
10244 URL 著者のウェブアドレス。任意。
10245 \end_layout
10246
10247 \begin_layout Description
10248 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ。
10249 \end_layout
10250
10251 \begin_layout Description
10252 分野分類 
10253 \emph on
10254 Mathematical Reviews
10255 \emph default
10256 に説明が公表されているAMS Subject Classificationsの分類番号を指します。上述したAMSのウェブサイトでも、オンラインで見ることができま
10257 す。
10258 \end_layout
10259
10260 \begin_layout Description
10261 謝辞
10262 \end_layout
10263
10264 \begin_layout Description
10265 献呈
10266 \end_layout
10267
10268 \begin_layout Description
10269 翻訳者
10270 \end_layout
10271
10272 \begin_layout Standard
10273 以下の環境は、
10274 \begin_inset Flex Code
10275 status collapsed
10276
10277 \begin_layout Plain Layout
10278 定理
10279 \end_layout
10280
10281 \end_inset
10282
10283 モジュールと
10284 \begin_inset Flex Code
10285 status collapsed
10286
10287 \begin_layout Plain Layout
10288 定理(AMS)
10289 \end_layout
10290
10291 \end_inset
10292
10293 モジュールの両方で提供され、後者の場合には、星付き(連番なし)版と星なし(連番)版の両方が提供されます。
10294 \begin_inset Flex Code
10295 status collapsed
10296
10297 \begin_layout Plain Layout
10298 定理(連番なし)
10299 \end_layout
10300
10301 \end_inset
10302
10303 モジュールでは、同環境の星付き版だけが提供されます。
10304 \end_layout
10305
10306 \begin_layout Theorem
10307 これは、通常、得られた主要な結果を叙述するのに使用されます。
10308 \end_layout
10309
10310 \begin_layout Corollary*
10311 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います。これも主要な結果であることがあります。
10312 \end_layout
10313
10314 \begin_layout Lemma
10315 他の叙述を証明するために必要とされる、比較的小さな結果です。
10316 \end_layout
10317
10318 \begin_layout Proposition
10319 議論されている一般的な理論に(希望的には)何かを付け加えるような、主要ではない結果です。
10320 \end_layout
10321
10322 \begin_layout Conjecture
10323 正当化を与えずに述べられた叙述で、著者には証明法がわからないけれども、正しいと(少なくとも著者にとっては)思われるものです。
10324 \end_layout
10325
10326 \begin_layout Definition*
10327 これは自明でしょう。この環境のフォントは、前述の環境とは異なるフォントが使用されます。
10328 \end_layout
10329
10330 \begin_layout Problem
10331 これが何を指すかは必ずしも特定されていません。ご自分で解明してください。
10332 \end_layout
10333
10334 \begin_layout Exercise*
10335 この環境の説明を記述せよ。
10336 \end_layout
10337
10338 \begin_layout Note
10339 この環境もtheorem型、通常は重要性の低い所見に用いられます。
10340 \end_layout
10341
10342 \begin_layout Claim*
10343 より大きな結果の証明を与える途中で、しばしば用いられます。
10344 \end_layout
10345
10346 \begin_layout Case
10347 一般的に、これらはある条件の特定の場合を取り上げて、長い議論を区切るのに用いられます。
10348 \end_layout
10349
10350 \begin_layout Case
10351 ケースの連番の枠組みは、それ自身で独立していて、他の連番の叙述とは区別されます。
10352 \end_layout
10353
10354 \begin_layout Proof
10355 この環境の最後には、証了記号(通常は四角ですがスタイルによって変わります)が置かれます。この環境の中に別の環境を入れたい——たとえばケース環境など——場合で、証
10356 了記号は証明環境の終わりにのみ現れるようにしたい場合には、他の環境は証明環境の中に入れ子にしなくてはなりません。入れ子に関する情報については、
10357 \emph on
10358 ユーザーの手引き
10359 \emph default
10360
10361 \emph on
10362 環境を入れ子にする
10363 \emph default
10364 の節をご覧ください。
10365 \end_layout
10366
10367 \begin_layout Standard
10368 そして、以下は
10369 \begin_inset Flex Code
10370 status collapsed
10371
10372 \begin_layout Plain Layout
10373 定理(AMS拡張)
10374 \end_layout
10375
10376 \end_inset
10377
10378 で提供されるものです。
10379 \end_layout
10380
10381 \begin_layout Criterion*
10382 必要とされる条件です。
10383 \end_layout
10384
10385 \begin_layout Algorithm*
10386 使用する一般的手順です。
10387 \end_layout
10388
10389 \begin_layout Axiom*
10390 議論されている系内部で真と仮定される性質や命題です。
10391 \end_layout
10392
10393 \begin_layout Condition*
10394 議論の現在の文脈で仮定されている条件を述べるのに、よく用いられます。
10395 \end_layout
10396
10397 \begin_layout Note*
10398 注記と同様です。
10399 \end_layout
10400
10401 \begin_layout Notation*
10402 表記法の説明に用いられます。
10403 \end_layout
10404
10405 \begin_layout Summary
10406 本当に説明する必要がありますか?
10407 \end_layout
10408
10409 \begin_layout Acknowledgement*
10410 謝辞(acknowledgement)です。
10411 \end_layout
10412
10413 \begin_layout Conclusion*
10414 長い議論の終わりに時々用いられます。
10415 \end_layout
10416
10417 \begin_layout Fact
10418 命題と同様の用いられ方をしますが、だいたい長くないものに使われるようです。
10419 \end_layout
10420
10421 \begin_layout Standard
10422 さらに、AMSクラスは、AMS \SpecialChar LaTeX
10423 パッケージとAMSフォントパッケージを自動的に提供します。これらの環境を使用するためには、お使いのシステム上で利用可能となってい
10424 る必要があります。
10425 \end_layout
10426
10427 \begin_layout Section
10428 AGU各誌(
10429 \family sans
10430 aguplus)
10431 \end_layout
10432
10433 \begin_layout Standard
10434
10435 \noun on
10436 Martin Vermeer
10437 \noun default
10438
10439 \end_layout
10440
10441 \begin_layout Subsection
10442 概要
10443 \end_layout
10444
10445 \begin_layout Standard
10446 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです。AGU発行のクラスファイルおよび
10447 AGUplusの両方(これらは
10448 \begin_inset Flex URL
10449 status collapsed
10450
10451 \begin_layout Plain Layout
10452
10453 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10454 \end_layout
10455
10456 \end_inset
10457
10458 にあります)が導入されていることが必要です。
10459 \end_layout
10460
10461 \begin_layout Subsection
10462 新しいスタイル
10463 \end_layout
10464
10465 \begin_layout Standard
10466
10467 \family sans
10468 段落
10469 \family default
10470 および
10471 \family sans
10472 段落*
10473 \family default
10474 は、定義し直されています。\SpecialChar LyX
10475 の画面では、依然として
10476 \family sans
10477 段落
10478 \family default
10479
10480 \family sans
10481 段落*
10482 \family default
10483 と表示されますが、AGUクラスにおける\SpecialChar LaTeX
10484 の対応物は、
10485 \family sans
10486 Subsubsubsection
10487 \family default
10488
10489 \family sans
10490 Subsubsubsection*
10491 \family default
10492 です。
10493 \end_layout
10494
10495 \begin_layout Standard
10496 新しく定義されたスタイルには、
10497 \family sans
10498 左ヘッダ
10499 \family default
10500
10501 \family sans
10502 右ヘッダ
10503 \family default
10504
10505 \family sans
10506 受理日
10507 \family default
10508
10509 \family sans
10510 改訂
10511 \family default
10512
10513 \family sans
10514 採択日
10515 \family default
10516
10517 \family sans
10518 CCC
10519 \family default
10520
10521 \family sans
10522 論文ID
10523 \family default
10524
10525 \family sans
10526 著者住所
10527 \family default
10528
10529 \family sans
10530 廃棄用コメント
10531 \family default
10532 があります。これらは、ほとんど草稿用属性で、AGUクラス説明書で説明されています。
10533 \end_layout
10534
10535 \begin_layout Standard
10536 おそらく、これはまだ恐ろしく不完全です。
10537 \end_layout
10538
10539 \begin_layout Subsection
10540 新しいフロート
10541 \end_layout
10542
10543 \begin_layout Standard
10544
10545 \family sans
10546 平面表(Planotable
10547 \family default
10548 )と
10549 \family sans
10550 挿絵
10551 \family default
10552 (Plate)が新しいフロートです。また、
10553 \family sans
10554 表キャプション
10555 \family default
10556 も付け加えられています。
10557 \end_layout
10558
10559 \begin_layout Subsection
10560 サポートされている学術誌
10561 \end_layout
10562
10563 \begin_layout Itemize
10564
10565 \emph on
10566 Journal of Geophysical Research
10567 \emph default
10568
10569 \family typewriter
10570 jgrga.layout
10571 \family default
10572  — Martin Vermeer
10573 \end_layout
10574
10575 \begin_layout Standard
10576 ここにあなたの作ったものを加えてください。難しくはありません。
10577 \family typewriter
10578 jgrga.layout
10579 \family default
10580 と 
10581 \family typewriter
10582 aguplus.inc
10583 \family default
10584 を用例として見てください。
10585 \end_layout
10586
10587 \begin_layout Subsection
10588 バグと注意すべきこと
10589 \end_layout
10590
10591 \begin_layout Standard
10592 新しいレイアウトを使うためには、新規文書の作成時に以下の手順を行う必要があります。
10593 \end_layout
10594
10595 \begin_layout Enumerate
10596
10597 \emph on
10598 babelを無効にしてください。
10599 \emph default
10600 これは、
10601 \family sans
10602 ツール\SpecialChar menuseparator
10603 設定
10604 \family default
10605 メニュー項目で行うことができます(AGUの論文は常に英語ですよね。ですから他の言語は
10606 \emph on
10607 選ばないで下さい
10608 \emph default
10609 )。
10610 \end_layout
10611
10612 \begin_layout Enumerate
10613 使用文書の追加オプションフィールドに
10614 \family typewriter
10615 jgrga
10616 \family default
10617 と入力してください(すみません、これはバグです)。
10618 \end_layout
10619
10620 \begin_layout Enumerate
10621 Bib\SpecialChar TeX
10622 差込枠の2番目のフィールドに
10623 \family sans
10624 agu
10625 \family default
10626 と入力して、書誌情報のスタイルに
10627 \family typewriter
10628 agu.bst
10629 \family default
10630 を使用していることを確認してください。標準スタイルはうまく動作しません。
10631 \end_layout
10632
10633 \begin_layout Section
10634 Broadway
10635 \end_layout
10636
10637 \begin_layout Standard
10638
10639 \noun on
10640 Garst Reese
10641 \noun default
10642
10643 \end_layout
10644
10645 \begin_layout Subsection
10646 はじめに
10647 \end_layout
10648
10649 \begin_layout Standard
10650 Broadwayは演劇を書くためのものです。書式はHollywoodよりも装飾的で、それほど標準化されていません。この書式はワークショップに向いているでしょう。
10651 \end_layout
10652
10653 \begin_layout Subsection
10654 特別な問題
10655 \end_layout
10656
10657 \begin_layout Standard
10658 Hollywoodと同様です。
10659 \end_layout
10660
10661 \begin_layout Subsection
10662 特別の機能
10663 \end_layout
10664
10665 \begin_layout Standard
10666
10667 \family sans
10668 話者
10669 \family default
10670 の名前をラベルとして挿入し、名前を挿入する際には、このラベルを相互参照してください。相互参照ダイアログには、登場人物の現在の配役が表示されます。
10671 \end_layout
10672
10673 \begin_layout Subsection
10674 用紙寸法と余白
10675 \end_layout
10676
10677 \begin_layout Standard
10678 USレター寸法で、余白は左1.6インチ、右0.75インチ、上0.5インチ、下0.75インチです。
10679 \end_layout
10680
10681 \begin_layout Subsection
10682 環境
10683 \end_layout
10684
10685 \begin_layout Standard
10686 以下の環境を使うことができます。右に記してある
10687 \begin_inset Flex Ruby
10688 status collapsed
10689
10690 \begin_layout Plain Layout
10691
10692 \begin_inset Argument post:1
10693 status collapsed
10694
10695 \begin_layout Plain Layout
10696 キー
10697 \end_layout
10698
10699 \end_inset
10700
10701
10702 \end_layout
10703
10704 \end_inset
10705
10706 割当ては、broadway.bindを使った場合のものです。
10707 \end_layout
10708
10709 \begin_layout Itemize
10710
10711 \family sans
10712 標準
10713 \begin_inset Newline newline
10714 \end_inset
10715
10716
10717 \family default
10718 これは使わなくていいはずですが、他の環境が当てはまらない場合のためにここに挙げておきます。
10719 \end_layout
10720
10721 \begin_layout Itemize
10722
10723 \family sans
10724 ト書き
10725 \begin_inset space \hfill{}
10726 \end_inset
10727
10728 M-z n
10729 \begin_inset Newline newline
10730 \end_inset
10731
10732
10733 \family default
10734 舞台設定と動作の説明に用います。最初に話者名をすべて大文字で書いておきます。
10735 \end_layout
10736
10737 \begin_layout Itemize
10738
10739 \family sans
10740
10741 \begin_inset space \hfill{}
10742 \end_inset
10743
10744 M-z a
10745 \begin_inset Newline newline
10746 \end_inset
10747
10748
10749 \family default
10750 自動的に連番が振られます。連番は、画面上ではアラビア数字ですが、出力ではローマ数字です。
10751 \end_layout
10752
10753 \begin_layout Itemize
10754
10755 \family sans
10756 幕*
10757 \begin_inset space \hfill{}
10758 \end_inset
10759
10760 M-z S at
10761 \begin_inset Newline newline
10762 \end_inset
10763
10764
10765 \family default
10766 幕の副題です。単に中央揃えの文になります。
10767 \end_layout
10768
10769 \begin_layout Itemize
10770
10771 \family sans
10772 場面
10773 \begin_inset space \hfill{}
10774 \end_inset
10775
10776 M-z S-S
10777 \begin_inset Newline newline
10778 \end_inset
10779
10780
10781 \family default
10782 自動的に連番は振られませんので、手動で番号を付けてください。これは私がどうすればいいか分からなかったためです。
10783 \end_layout
10784
10785 \begin_layout Itemize
10786
10787 \family sans
10788 幕開きに:
10789 \begin_inset space \hfill{}
10790 \end_inset
10791
10792 M-z S-R
10793 \begin_inset Newline newline
10794 \end_inset
10795
10796
10797 \family default
10798 ト書きの特殊な場合で、カーテンが上がるときの舞台設定と動作を説明します。
10799 \end_layout
10800
10801 \begin_layout Itemize
10802
10803 \family sans
10804 話者
10805 \begin_inset space \hfill{}
10806 \end_inset
10807
10808 M-z s
10809 \begin_inset Newline newline
10810 \end_inset
10811
10812
10813 \family default
10814 話者(役者)の配役です。すべて大文字で中央揃えに置かれます。
10815 \end_layout
10816
10817 \begin_layout Itemize
10818
10819 \family sans
10820 括弧付き
10821 \begin_inset space \hfill{}
10822 \end_inset
10823
10824 M-z p
10825 \begin_inset Newline newline
10826 \end_inset
10827
10828
10829 \family default
10830 話者への指示です。括弧は自動的に挿入されます。画面上には左括弧(のみが表示されますが、印字出力には両方の括弧が表示されます。この環境は、
10831 \family sans
10832 対話
10833 \family default
10834 の中だけで使用されます。 
10835 \end_layout
10836
10837 \begin_layout Itemize
10838
10839 \family sans
10840 対話
10841 \begin_inset space \hfill{}
10842 \end_inset
10843
10844 M-z d
10845 \begin_inset Newline newline
10846 \end_inset
10847
10848
10849 \family default
10850 話者の言う内容。
10851 \end_layout
10852
10853 \begin_layout Itemize
10854
10855 \family sans
10856 幕切れ
10857 \begin_inset space \hfill{}
10858 \end_inset
10859
10860 M-z S-C
10861 \begin_inset Newline newline
10862 \end_inset
10863
10864
10865 \family default
10866 幕が降ります。
10867 \end_layout
10868
10869 \begin_layout Itemize
10870
10871 \family sans
10872 タイトル
10873 \begin_inset space \hfill{}
10874 \end_inset
10875
10876 M-z S-T
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-A
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 r
10897 \end_layout
10898
10899 \begin_layout Section
10900 Dinbrief
10901 \end_layout
10902
10903 \begin_layout Standard
10904 文書クラス
10905 \family sans
10906 dinbrief
10907 \family default
10908 は、ドイツの慣習に則った書簡の組版を行うのに用いられます。ひな型ファイルが
10909 \family typewriter
10910 .../lyx/share/templates
10911 \family default
10912 にあるので、それを土台として使用してください。
10913 \end_layout
10914
10915 \begin_layout Section
10916 EGS各誌
10917 \family sans
10918 (egs)
10919 \end_layout
10920
10921 \begin_layout Standard
10922
10923 \noun on
10924 Martin Vermeer
10925 \noun default
10926
10927 \end_layout
10928
10929 \begin_layout Subsection
10930 概要
10931 \end_layout
10932
10933 \begin_layout Standard
10934 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです。必要とされる
10935 \family typewriter
10936 egs.cls
10937 \family default
10938 は、EGSのウェブサイト
10939 \begin_inset Flex URL
10940 status collapsed
10941
10942 \begin_layout Plain Layout
10943
10944 http://www.copernicus.org/
10945 \end_layout
10946
10947 \end_inset
10948
10949 からダウンロードできます。
10950 \end_layout
10951
10952 \begin_layout Subsection
10953 新しいスタイル
10954 \end_layout
10955
10956 \begin_layout Standard
10957 新しいスタイルとして、
10958 \family sans
10959 右寄せ住所
10960 \family default
10961
10962 \family sans
10963 \SpecialChar LaTeX
10964 タイトル
10965 \family default
10966
10967 \family sans
10968 所属
10969 \family default
10970
10971 \family sans
10972 学術誌名
10973 \family default
10974
10975 \family sans
10976 原稿番号
10977 \family default
10978
10979 \family sans
10980 筆頭著者
10981 \family default
10982
10983 \family sans
10984 受理日
10985 \family default
10986
10987 \family sans
10988 採択日
10989 \family default
10990
10991 \family sans
10992 オフセット
10993 \family default
10994 があります。現在のレイアウトファイルは、残念ながらほとんどモジュール化されておらず、さまざまな
10995 \family typewriter
10996 std*.inc
10997 \family default
10998 ファイルを読み込む形に変えた方が便利になると思われます。
10999 \end_layout
11000
11001 \begin_layout Section
11002 Elsevier各誌
11003 \end_layout
11004
11005 \begin_layout Standard
11006 \SpecialChar LyX
11007 ひな型ファイルの
11008 \family typewriter
11009 elsarticle.lyx
11010 \family default
11011 を参照してください。必要な情報は全てそこにあります。
11012 \end_layout
11013
11014 \begin_layout Section
11015 Foils (別名Foil\SpecialChar TeX
11016 )
11017 \begin_inset CommandInset label
11018 LatexCommand label
11019 name "sec:foiltex"
11020
11021 \end_inset
11022
11023
11024 \end_layout
11025
11026 \begin_layout Standard
11027
11028 \noun on
11029 Allan Rae
11030 \noun default
11031
11032 \end_layout
11033
11034 \begin_layout Subsection
11035 はじめに
11036 \end_layout
11037
11038 \begin_layout Standard
11039 本節では、プレゼンテーション用のスライドを作るための、\SpecialChar LyX
11040 の使用法を解説します。スライドを作ることのできる文書クラスには、slides・Foil\SpecialChar TeX
11041 ・seminar・b
11042 eamer・powerdotといったクラスがありますが、本節では、そのうちslidesの解説を行います。
11043 \end_layout
11044
11045 \begin_layout Standard
11046 誤解のないように、わかりやすく明確に、もう一度言っておきます。
11047 \end_layout
11048
11049 \begin_layout Standard
11050 \begin_inset VSpace bigskip
11051 \end_inset
11052
11053
11054 \end_layout
11055
11056 \begin_layout Standard
11057 \align center
11058
11059 \size large
11060 本節は「
11061 \family sans
11062 presentation (FoilT
11063 \size default
11064
11065 \begin_inset ERT
11066 status collapsed
11067
11068 \begin_layout Plain Layout
11069
11070 {}
11071 \end_layout
11072
11073 \end_inset
11074
11075
11076 \size large
11077 eX)
11078 \family default
11079 」クラス
11080 \emph on
11081 のみの
11082 \emph default
11083 解説を行います。
11084 \end_layout
11085
11086 \begin_layout Standard
11087 \begin_inset VSpace bigskip
11088 \end_inset
11089
11090
11091 \end_layout
11092
11093 \begin_layout Standard
11094
11095 \family sans
11096 transparencies (slides)
11097 \family default
11098 」の解説をお探しであれば、第
11099 \begin_inset CommandInset ref
11100 LatexCommand ref
11101 reference "sec:slitex"
11102
11103 \end_inset
11104
11105 節をご覧ください。お使いのコンピュータに
11106 \family sans
11107 foils
11108 \family default
11109 クラス(
11110 \family sans
11111 presentation (FoilT
11112 \begin_inset ERT
11113 status collapsed
11114
11115 \begin_layout Plain Layout
11116
11117 {}
11118 \end_layout
11119
11120 \end_inset
11121
11122 eX)
11123 \family default
11124 )が導入されていなければ、
11125 \family sans
11126 foils
11127 \family default
11128 ほど良くはありませんが、おそらく
11129 \family sans
11130 slides
11131 \family default
11132 クラスを使わざるをえないでしょう。
11133 \end_layout
11134
11135 \begin_layout Standard
11136
11137 \family sans
11138 foils
11139 \family default
11140 クラスは、\SpecialChar LaTeX2e
11141 の一部として含まれている\SpecialChar LaTeX
11142 クラスファイル
11143 \family sans
11144 foils.cls
11145 \family default
11146 の第2.1版とともに使われるように設計されています。
11147 \end_layout
11148
11149 \begin_layout Subsection
11150 最初の一歩
11151 \end_layout
11152
11153 \begin_layout Standard
11154 いうまでもなく、この文書クラスを使うには、
11155 \family sans
11156 文書\SpecialChar menuseparator
11157 設定\SpecialChar menuseparator
11158 文書クラス
11159 \family default
11160 メニューの
11161 \family sans
11162 文書クラス
11163 \family default
11164 ドロップダウンで「
11165 \family sans
11166 presentation (FoilT
11167 \begin_inset ERT
11168 status collapsed
11169
11170 \begin_layout Plain Layout
11171
11172 {}
11173 \end_layout
11174
11175 \end_inset
11176
11177 eX)
11178 \family default
11179 」を選択する必要があります。また、
11180 \family sans
11181 文書設定
11182 \family default
11183 ダイアログ中には、以下のように、このクラスに特有の設定がいくつかあることを知っておかなくてはなりません。
11184 \end_layout
11185
11186 \begin_layout Itemize
11187
11188 \family sans
11189 文書設定
11190 \family default
11191 ダイアログ中の、
11192 \family sans
11193 両面文書
11194 \family default
11195 オプションと
11196 \family sans
11197 二段組文書
11198 \family default
11199 オプションは変更しないでください。これらは 
11200 \family sans
11201 foils
11202 \family default
11203 クラスでは無視されます。
11204 \end_layout
11205
11206 \begin_layout Itemize
11207 既定のフォント寸法は20ptであり、17pt・25pt・30ptを選択することも可能です。
11208 \end_layout
11209
11210 \begin_layout Itemize
11211 既定のフォントは
11212 \family sans
11213 sans
11214 \family default
11215  
11216 \family sans
11217 serif
11218 \family default
11219 ですが、数式ではすべて、通常のローマン体が使用されます。
11220 \end_layout
11221
11222 \begin_layout Itemize
11223 Foil\SpecialChar TeX
11224 は、35
11225 \begin_inset space \thinspace{}
11226 \end_inset
11227
11228 mmスライド用の特殊寸法の他、A4とレター大の用紙寸法をサポートします。A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません。
11229 \end_layout
11230
11231 \begin_layout Itemize
11232
11233 \family sans
11234 フロートの配置
11235 \family default
11236 の設定は無視されますので、わざわざ変更する必要はありません。フロートはすべて、本文中で定義された位置に表示されます。
11237 \end_layout
11238
11239 \begin_layout Itemize
11240 このクラスの
11241 \family sans
11242 ページレイアウト
11243 \family default
11244 の設定は、若干異なった挙動を示します。Foil\SpecialChar TeX
11245 では、ユーザ定義のロゴをはじめ、フッタとへッダに広範な設定ができます。詳細については第
11246 \begin_inset CommandInset ref
11247 LatexCommand ref
11248 reference "sec:foilfoot"
11249
11250 \end_inset
11251
11252 節をご覧ください。タイトルページは、文書中の他のページとは異なった取扱がなされ、ページ番号は
11253 \emph on
11254 つねに
11255 \emph default
11256 付けられず、(ロゴが定義されていれば)ロゴは、
11257 \emph on
11258 つねに
11259 \emph default
11260 ページ下部中央に表示されます。使用できるページ様式とその挙動は、以下の通りです。
11261 \begin_inset Separator parbreak
11262 \end_inset
11263
11264
11265 \end_layout
11266
11267 \begin_deeper
11268 \begin_layout Labeling
11269 \labelwidthstring MMMMMMM
11270
11271 \family sans
11272 \series bold
11273 empty
11274 \family default
11275 \series default
11276  最終出力には、ページ番号をはじめ、へッダ・フッタが出力されません(もちろん脚注は除きます)。
11277 \end_layout
11278
11279 \begin_layout Labeling
11280 \labelwidthstring MMMMMMM
11281
11282 \family sans
11283 \series bold
11284 plain
11285 \family default
11286 \series default
11287  最終出力には、ページ番号がページ下部の中央に出力されますが、他のへッダ・フッタは出力されません(脚注除く)。
11288 \end_layout
11289
11290 \begin_layout Labeling
11291 \labelwidthstring MMMMMMM
11292
11293 \series bold
11294 foilheadings
11295 \series default
11296  ページ番号が右下隅に出力されます。追記したへッダ・フッタも出力されます。これが既定値です。
11297 \end_layout
11298
11299 \begin_layout Labeling
11300 \labelwidthstring MMMMMMM
11301
11302 \series bold
11303 fancy
11304 \series default
11305  これは
11306 \family sans
11307 fancyheadings
11308 \family default
11309 パッケージを使えるようにします。ただし、Foil\SpecialChar TeX
11310 パッケージの作者は、ページレイアウトが崩れる可能性があるので、これを使用することは勧めないと言及しています。
11311 \end_layout
11312
11313 \end_deeper
11314 \begin_layout Subsubsection
11315 任意設定クラスオプション
11316 \end_layout
11317
11318 \begin_layout Standard
11319 以下のオプションは
11320 \family sans
11321 文書設定
11322 \family default
11323 ダイアログの任意設定クラスオプションボックスで使うことができます。
11324 \end_layout
11325
11326 \begin_layout Labeling
11327 \labelwidthstring MMMMMMx
11328
11329 \series bold
11330 35mmSlide
11331 \series default
11332  これは、ページレイアウトを縦7.33インチ横11インチに設定します。これは35
11333 \begin_inset space \space{}
11334 \end_inset
11335
11336 mmスライドの縦横比にほぼ等しく、このメディアを作る作業が若干易しくなります。
11337 \end_layout
11338
11339 \begin_layout Labeling
11340 \labelwidthstring MMMMMMx
11341
11342 \series bold
11343 headrule
11344 \series default
11345  タイトルページを除くすべてのページのへッダの下に罫線を入れます。
11346 \end_layout
11347
11348 \begin_layout Labeling
11349 \labelwidthstring MMMMMMx
11350
11351 \series bold
11352 footrule
11353 \series default
11354  タイトルページを除くすべてのページのフッタの上に罫線を入れます。
11355 \end_layout
11356
11357 \begin_layout Labeling
11358 \labelwidthstring MMMMMMx
11359
11360 \series bold
11361 dvips
11362 \series default
11363  これは、新規
11364 \family sans
11365 foils
11366 \family default
11367 文書を作成する度に自動的に設定されます。このオプションは、横向きに設定されたページを回転させるのに、dvipsドライバを使うようFoil\SpecialChar TeX
11368 に指示します。
11369 \end_layout
11370
11371 \begin_layout Labeling
11372 \labelwidthstring MMMMMMx
11373
11374 \series bold
11375 landscape
11376 \series default
11377  このオプションは、用紙寸法を横向きページ大に変更するだけで、回転は行いません。したがって、このオプションを使う場合は、各ページを回転させる外部プログラムを使用
11378 する、プリンタに用紙を横向きに給紙する必要があります。また、このオプションは、
11379 \family sans
11380 Foilhead
11381 \family default
11382 環境と
11383 \family sans
11384 Rotatefoilhead
11385 \family default
11386 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します)。
11387 \end_layout
11388
11389 \begin_layout Labeling
11390 \labelwidthstring MMMMMMx
11391
11392 \series bold
11393 leqno
11394 \series default
11395  数式番号を左側に付けます。
11396 \end_layout
11397
11398 \begin_layout Labeling
11399 \labelwidthstring MMMMMMx
11400
11401 \series bold
11402 fleqn
11403 \series default
11404  数式を左揃えにします。
11405 \end_layout
11406
11407 \begin_layout Subsection
11408 サポートされる環境
11409 \end_layout
11410
11411 \begin_layout Standard
11412 他のクラスで標準的にサポートされている環境は、
11413 \family sans
11414 foils
11415 \family default
11416 クラスでもサポートされています。それ以外に、Foil\SpecialChar TeX
11417 が提供している環境と、\SpecialChar LyX
11418 が付け加えた環境があります。以下の環境は、他のクラスと共通の環境です。
11419 \end_layout
11420
11421 \begin_layout Standard
11422
11423 \family sans
11424 \begin_inset Flex Multiple Columns
11425 status open
11426
11427 \begin_layout Itemize
11428
11429 \family sans
11430 標準
11431 \end_layout
11432
11433 \begin_layout Itemize
11434
11435 \family sans
11436 箇条書き(記号)
11437 \end_layout
11438
11439 \begin_layout Itemize
11440
11441 \family sans
11442 箇条書き(連番)
11443 \end_layout
11444
11445 \begin_layout Itemize
11446
11447 \family sans
11448 箇条書き(記述)
11449 \end_layout
11450
11451 \begin_layout Itemize
11452
11453 \family sans
11454 箇条書き(リスト)
11455 \end_layout
11456
11457 \begin_layout Itemize
11458
11459 \family sans
11460 \SpecialChar LyX
11461 コード
11462 \end_layout
11463
11464 \begin_layout Itemize
11465
11466 \family sans
11467 詩句
11468 \end_layout
11469
11470 \begin_layout Itemize
11471
11472 \family sans
11473 引用(字下げあり)
11474 \end_layout
11475
11476 \begin_layout Itemize
11477
11478 \family sans
11479 引用(字下げなし)
11480 \end_layout
11481
11482 \begin_layout Itemize
11483
11484 \family sans
11485 タイトル
11486 \end_layout
11487
11488 \begin_layout Itemize
11489
11490 \family sans
11491 著者
11492 \end_layout
11493
11494 \begin_layout Itemize
11495
11496 \family sans
11497 日付
11498 \end_layout
11499
11500 \begin_layout Itemize
11501
11502 \family sans
11503 概要
11504 \end_layout
11505
11506 \begin_layout Itemize
11507
11508 \family sans
11509 書誌情報
11510 \end_layout
11511
11512 \begin_layout Itemize
11513
11514 \family sans
11515 住所
11516 \end_layout
11517
11518 \begin_layout Itemize
11519
11520 \family sans
11521 右寄せ住所
11522 \end_layout
11523
11524 \begin_layout Itemize
11525
11526 \family sans
11527 キャプション
11528 \end_layout
11529
11530 \begin_layout Itemize
11531
11532 \family sans
11533 コメント
11534 \end_layout
11535
11536 \end_inset
11537
11538
11539 \end_layout
11540
11541 \begin_layout Standard
11542 つまり、節区切りを除けば、主な環境のすべてです。一枚のスライドは、基本的にタイトルと本文を備えた自己完結した節なので、
11543 \family sans
11544 Foil
11545 \family default
11546 \SpecialChar TeX
11547 は新しいスライドを始める以下のようなコマンドを備えています。
11548 \end_layout
11549
11550 \begin_layout Itemize
11551
11552 \family sans
11553 スライドタイトル(Foilhead)
11554 \end_layout
11555
11556 \begin_layout Itemize
11557
11558 \family sans
11559 横置きスライドタイトル(Rotatefoilhead)
11560 \end_layout
11561
11562 \begin_layout Standard
11563 \SpecialChar LyX
11564 は、以下のような、これらを若干修正した環境も用意しています。
11565 \end_layout
11566
11567 \begin_layout Itemize
11568
11569 \family sans
11570 スライドタイトル(小)(ShortFoilhead)
11571 \end_layout
11572
11573 \begin_layout Itemize
11574
11575 \family sans
11576 横置きスライドタイトル(小)(ShortRotatefoilhead)
11577 \end_layout
11578
11579 \begin_layout Standard
11580 これらの違いは次節で説明します。
11581 \end_layout
11582
11583 \begin_layout Standard
11584 スライドは、アイデアを説明したり、新しい定理を説明したりするのにしばしば使われるので、
11585 \family sans
11586 Foil
11587 \family default
11588 \SpecialChar TeX
11589 はそれらを説明するのに便利な環境を幅広く用意しています。
11590 \end_layout
11591
11592 \begin_layout Standard
11593
11594 \family sans
11595 \begin_inset Flex Multiple Columns
11596 status open
11597
11598 \begin_layout Itemize
11599
11600 \family sans
11601 定理
11602 \end_layout
11603
11604 \begin_layout Itemize
11605
11606 \family sans
11607 補題
11608 \end_layout
11609
11610 \begin_layout Itemize
11611
11612 \family sans
11613
11614 \end_layout
11615
11616 \begin_layout Itemize
11617
11618 \family sans
11619 命題
11620 \end_layout
11621
11622 \begin_layout Itemize
11623
11624 \family sans
11625 定義
11626 \end_layout
11627
11628 \begin_layout Itemize
11629
11630 \family sans
11631 証明
11632 \end_layout
11633
11634 \begin_layout Itemize
11635
11636 \family sans
11637 定理*
11638 \end_layout
11639
11640 \begin_layout Itemize
11641
11642 \family sans
11643 補題*
11644 \end_layout
11645
11646 \begin_layout Itemize
11647
11648 \family sans
11649 系*
11650 \end_layout
11651
11652 \begin_layout Itemize
11653
11654 \family sans
11655 命題*
11656 \end_layout
11657
11658 \begin_layout Itemize
11659
11660 \family sans
11661 定義*
11662 \end_layout
11663
11664 \end_inset
11665
11666
11667 \end_layout
11668
11669 \begin_layout Standard
11670 星付き版は連番が振られず、星なし版は連番が振られます。他に、\SpecialChar LyX
11671 で追加された以下の2つの箇条書き環境があります。
11672 \end_layout
11673
11674 \begin_layout Itemize
11675
11676 \family sans
11677 箇条書き(チック)
11678 \end_layout
11679
11680 \begin_layout Itemize
11681
11682 \family sans
11683 箇条書き(クロス)
11684 \end_layout
11685
11686 \begin_layout Standard
11687 Foil\SpecialChar TeX
11688 には、強力なヘッダ機能とフッタ機能があり、これらはプリアンブルで設定するのが最良ですが、文章中のどこでも設定することができます。もし文書中でこれらの設定
11689 を変更したい場合には、スライドの一番上、foilheadの直後で行うのが良いでしょう。
11690 \end_layout
11691
11692 \begin_layout Standard
11693 この目的のためには、以下のコマンドスタイルがあります(
11694 \shape smallcaps
11695 Martin Vermeer)。
11696 \end_layout
11697
11698 \begin_layout Standard
11699 \begin_inset Flex Multiple Columns
11700 status open
11701
11702 \begin_layout Itemize
11703
11704 \family sans
11705 グラフィックスロゴ
11706 \end_layout
11707
11708 \begin_layout Itemize
11709
11710 \family sans
11711 配布制限
11712 \end_layout
11713
11714 \begin_layout Itemize
11715
11716 \family sans
11717 右フッタ
11718 \end_layout
11719
11720 \begin_layout Itemize
11721
11722 \family sans
11723 右ヘッダ
11724 \end_layout
11725
11726 \begin_layout Itemize
11727
11728 \family sans
11729 左ヘッダ
11730 \family default
11731
11732 \begin_inset Separator parbreak
11733 \end_inset
11734
11735
11736 \end_layout
11737
11738 \begin_deeper
11739 \begin_layout Plain Layout
11740 \begin_inset space ~
11741 \end_inset
11742
11743
11744 \end_layout
11745
11746 \end_deeper
11747 \end_inset
11748
11749
11750 \end_layout
11751
11752 \begin_layout Standard
11753 Foil\SpecialChar TeX
11754 が提供しているコマンドで、\SpecialChar LyX
11755 が直接サポートしていないコマンドもありますが、これらの説明と使い方については、第
11756 \begin_inset CommandInset ref
11757 LatexCommand ref
11758 reference "sec:unsuppfoils"
11759
11760 \end_inset
11761
11762 節で行います。
11763 \end_layout
11764
11765 \begin_layout Subsection
11766 スライドの組を作る
11767 \end_layout
11768
11769 \begin_layout Standard
11770 この節は、様々な環境を使ってスライドの組を作る方法を簡単に紹介します。スライド組の例をご覧になりたい場合は、\SpecialChar LyX
11771
11772 \family typewriter
11773 examples
11774 \family default
11775 フォルダにある
11776 \family typewriter
11777 Foils.lyx
11778 \family default
11779 ファイルをご覧ください。
11780 \end_layout
11781
11782 \begin_layout Subsubsection
11783 タイトルページを作る
11784 \end_layout
11785
11786 \begin_layout Standard
11787
11788 \family sans
11789 タイトル
11790 \family default
11791
11792 \family sans
11793 著者
11794 \family default
11795
11796 \family sans
11797 日付
11798 \family default
11799
11800 \family sans
11801 概要
11802 \family default
11803 環境のある他のクラスとは異なり、
11804 \family sans
11805 foils
11806 \family default
11807 は独立したページにタイトルを作成します。
11808 \family sans
11809 日付
11810 \family default
11811 環境を使用しなかった場合には、\SpecialChar LaTeX
11812 は(出力を生成し直したときにはいつも)その時点の日付を挿入します。
11813 \end_layout
11814
11815 \begin_layout Subsubsection
11816 新しいスライドを開始する
11817 \end_layout
11818
11819 \begin_layout Standard
11820 前述のように、新しいスライドを開始するには、4つの方法があります。縦向きのスライドを開始するには、
11821 \family sans
11822 スライドタイトル(Foilhead)
11823 \family default
11824
11825 \family sans
11826 スライドタイトル(小)(ShortFoilhead)
11827 \family default
11828 を使用します。両環境の違いは、スライドタイトル(foilhead)とスライド本文の間の余白の違いです。
11829 \end_layout
11830
11831 \begin_layout Standard
11832 横向きのスライドは、
11833 \family sans
11834 横向きスライドタイトル(Rotatefoilhead)
11835 \family default
11836 か横向きスライドタイトル(小)(
11837 \family sans
11838 ShortRotatefoilhead)
11839 \family default
11840 環境を使用して生成します。ここでも両環境の違いは、タイトルと本文の間の余白のみです。どちらの場合も、(小)と記された版は、タイトルと本文の間の余白が、0.5インチ
11841 (約1.27cm)小さくなります。
11842 \end_layout
11843
11844 \begin_layout Standard
11845 横向きのスライドをサポートする際、一つ問題となるのは、スライドを回転させようと思うと、PostScript出力を生成するのに
11846 \family typewriter
11847 dvips
11848 \family default
11849 ドライバを使用することを要求してしまうことです。もしスライドをプリンタに横に給紙することができれば、
11850 \family typewriter
11851 dvips
11852 \family default
11853 ドライバを持っていなくても、横向きのスライドをつくることができます ;-)
11854 \end_layout
11855
11856 \begin_layout Subsubsection
11857 定理・補題・証明など
11858 \end_layout
11859
11860 \begin_layout Standard
11861 \SpecialChar LyX
11862 中の小さなバグによって、これらの環境の同じ型をお互いに直接続けて置くことはできません。これらは何かによって分離されなくてはなりません。仮に二つ続けて置いても、2
11863 つの環境をマージしたかのように、前の環境が延長されるだけです。この問題を回避するにはどうすればよいのでしょうか。最も簡単な方法は、二つの環境の間に何か文章を置く
11864 か、あるいは二つの間に「
11865 \family typewriter
11866 %
11867 \family default
11868 」だけから成る\SpecialChar LaTeX
11869 環境を置くことです。これによって、\SpecialChar LyX
11870 は2つの別々の環境を生成するように強制され、正しい\SpecialChar LaTeX
11871 出力を得ることができます。\SpecialChar LyX
11872 頒布版に含まれる用例ファイルに例があ
11873 ります。この問題は、二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください。
11874 \end_layout
11875
11876 \begin_layout Subsubsection
11877 箇条書き
11878 \end_layout
11879
11880 \begin_layout Standard
11881 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて、二つの新しい様式を使用することができます。ここでは、その新しい様式のみを説明することにします。
11882 他の箇条書き環境について詳しく知りたい場合には、
11883 \emph on
11884 ユーザーの手引き
11885 \emph default
11886 をご覧ください。記号による箇条書きを使用したい場合には、上記第
11887 \begin_inset CommandInset ref
11888 LatexCommand ref
11889 reference "sec:ブリット"
11890
11891 \end_inset
11892
11893 節の
11894 \family sans
11895 箇条書き(記号)ブリットの指定
11896 \family default
11897 の節も、読まれることが望ましいでしょう。
11898 \end_layout
11899
11900 \begin_layout Standard
11901
11902 \family sans
11903 箇条書き(チック)
11904 \family default
11905
11906 \family sans
11907 箇条書き(クロス)
11908 \family default
11909 の二つの新しい様式は、チェック印や
11910 \begin_inset Formula $\times$
11911 \end_inset
11912
11913 印を箇条書きのラベルに使用する専用の環境を提供することで、予定一覧や正誤一覧を作りやすくするように設計されたものです。これらの箇条書きは、
11914 \family sans
11915 箇条書き(記号)
11916 \family default
11917 の派生型を専用に用意したものに過ぎません。ただし、これらは、
11918 \family typewriter
11919 psnfss
11920 \family default
11921 パッケージが導入済であることを要求します。
11922 \end_layout
11923
11924 \begin_layout Subsubsection
11925 図と表
11926 \end_layout
11927
11928 \begin_layout Standard
11929 Foil\SpecialChar TeX
11930 では、図表フロートは、本文中の挿入箇所にこれらが正確に表示されるように再定義されており、ページの上部やユーザー指定場所に押しのけたりはしないようになって
11931 います。たとえフロート配置の設定に変更を加えたとしても、単に無視されます。
11932 \end_layout
11933
11934 \begin_layout Subsubsection
11935 ページヘッダおよびページフッタ
11936 \begin_inset CommandInset label
11937 LatexCommand label
11938 name "sec:foilfoot"
11939
11940 \end_inset
11941
11942
11943 \end_layout
11944
11945 \begin_layout Standard
11946
11947 \family sans
11948 グラフィックスロゴ
11949 \family default
11950
11951 \family sans
11952 配布制限
11953 \family default
11954 の二つは、左フッタ文を制御するものです。前者は、グラフィックスのロゴをスライドに入れるためのもので、既定値は「-Typeset by 
11955 \family sans
11956 Foil
11957 \family default
11958 \SpecialChar TeX
11959 -」となっています。後者は、「機密事項」などのように、聴衆に秘密区分を提示することを意図しています。既定値では、何も設定されていません。
11960 \end_layout
11961
11962 \begin_layout Standard
11963 スライドの残り三隅には、
11964 \family sans
11965 右フッタ
11966 \family default
11967 (既定ではページ番号)・
11968 \family sans
11969 右ヘッダ
11970 \family default
11971 (右上)・
11972 \family sans
11973 左ヘッダ
11974 \family default
11975 (左上)を使って文字を入れることができます。
11976 \end_layout
11977
11978 \begin_layout Subsection
11979 サポートされない 
11980 \family sans
11981 Foil
11982 \family default
11983 \SpecialChar TeX
11984 機能
11985 \begin_inset CommandInset label
11986 LatexCommand label
11987 name "sec:unsuppfoils"
11988
11989 \end_inset
11990
11991
11992 \end_layout
11993
11994 \begin_layout Standard
11995 以下で言及されているコマンドは、
11996 \family sans
11997 \SpecialChar LaTeX
11998
11999 \family default
12000 環境内で設定されるか、他の環境中の
12001 \family sans
12002 \SpecialChar TeX
12003 コード
12004 \family default
12005 として設定される必要があります。
12006 \end_layout
12007
12008 \begin_layout Subsubsection
12009 長さ
12010 \end_layout
12011
12012 \begin_layout Standard
12013 長さは、すべて
12014 \family typewriter
12015
12016 \backslash
12017 setlength{
12018 \family default
12019 \emph on
12020 長さ名
12021 \family typewriter
12022 \emph default
12023 }{
12024 \family default
12025 \emph on
12026 新規長さ
12027 \family typewriter
12028 \emph default
12029 }
12030 \family default
12031 コマンドで調節されます。ここで
12032 \emph on
12033 長さ名
12034 \emph default
12035 は、変更したい長さに付けられている名前で置き換え、
12036 \emph on
12037 新規長さ
12038 \emph default
12039 は、その長さの値で置き換えます。長さはすべて、インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か、
12040 \family typewriter
12041
12042 \backslash
12043 textwidth
12044 \family default
12045 のように文書比あるいはフォント基準の長さで指定する必要があります。
12046 \end_layout
12047
12048 \begin_layout Standard
12049
12050 \family typewriter
12051
12052 \backslash
12053 foilheadskip
12054 \family default
12055 で指定される長さを調節することによって、スライドタイトルとスライド本文の間の余白を変更することができます。たとえば、スライドタイトルをすべて0.5
12056 \begin_inset space \space{}
12057 \end_inset
12058
12059 inだけスライド本文に近づけるには、プリアンブルに
12060 \family typewriter
12061
12062 \backslash
12063 setlength{
12064 \backslash
12065 foilheadskip}{-0.5in}
12066 \family default
12067 と書き込みます。
12068 \end_layout
12069
12070 \begin_layout Standard
12071 フロート周囲の余白は、以下の長さを設定することで調整することができます。
12072 \end_layout
12073
12074 \begin_layout Labeling
12075 \labelwidthstring MMMMMMMMMMM
12076
12077 \family typewriter
12078
12079 \backslash
12080 abovefloatskip
12081 \family default
12082  本文とフロート上辺との間隔
12083 \end_layout
12084
12085 \begin_layout Labeling
12086 \labelwidthstring MMMMMMMMMMM
12087
12088 \family typewriter
12089
12090 \backslash
12091 abovecaptionskip
12092 \family default
12093  フロートとキャプションとの間隔
12094 \end_layout
12095
12096 \begin_layout Labeling
12097 \labelwidthstring MMMMMMMMMMM
12098
12099 \family typewriter
12100
12101 \backslash
12102 belowcaptionskip
12103 \family default
12104  キャプションとそれに続く本文との間隔
12105 \end_layout
12106
12107 \begin_layout Labeling
12108 \labelwidthstring MMMMMMMMMMM
12109
12110 \family typewriter
12111
12112 \backslash
12113 captionwidth
12114 \family default
12115  この長さを調整することでキャプションを、周囲の本文より短くすることができます。
12116 \family typewriter
12117
12118 \backslash
12119 textwidth
12120 \family default
12121 に対する相対的な長さで調整するのが最も良いでしょう。
12122 \end_layout
12123
12124 \begin_layout Standard
12125 以下のようなタイトルページ関連の長さもあり、タイトルが長い場合や、著者が複数いる場合に使うと便利かもしれません。
12126 \end_layout
12127
12128 \begin_layout Labeling
12129 \labelwidthstring MMMMMMMMMMM
12130
12131 \family typewriter
12132
12133 \backslash
12134 abovetitleskip
12135 \family default
12136  へッダとタイトルとの間隔
12137 \end_layout
12138
12139 \begin_layout Labeling
12140 \labelwidthstring MMMMMMMMMMM
12141
12142 \family typewriter
12143
12144 \backslash
12145 titleauthorskip
12146 \family default
12147  
12148 \family sans
12149 タイトル
12150 \family default
12151 環境と
12152 \family sans
12153 著者
12154 \family default
12155 環境との間隔
12156 \end_layout
12157
12158 \begin_layout Labeling
12159 \labelwidthstring MMMMMMMMMMM
12160
12161 \family typewriter
12162
12163 \backslash
12164 authorauthorskip
12165 \family default
12166  著者が複数いる場合の
12167 \family sans
12168 著者
12169 \family default
12170 行の間隔
12171 \end_layout
12172
12173 \begin_layout Labeling
12174 \labelwidthstring MMMMMMMMMMM
12175
12176 \family typewriter
12177
12178 \backslash
12179 authordateskip
12180 \family default
12181  
12182 \family sans
12183 著者
12184 \family default
12185
12186 \family sans
12187 日付
12188 \family default
12189 との間隔
12190 \end_layout
12191
12192 \begin_layout Labeling
12193 \labelwidthstring MMMMMMMMMMM
12194
12195 \family typewriter
12196
12197 \backslash
12198 dateabstractskip
12199 \family default
12200  
12201 \family sans
12202 日付
12203 \family default
12204
12205 \family sans
12206 概要
12207 \family default
12208 との間隔
12209 \end_layout
12210
12211 \begin_layout Standard
12212 最後に紹介する長さ関連コマンドは、箇条書き環境すべてに使用できるものです。
12213 \family typewriter
12214
12215 \backslash
12216 zerolistvertdimens
12217 \family default
12218 を箇条書き環境の内側に置くと、項目間の垂直余白がすべて取り除かれます。これは長さではなくコマンドなので、上述のもののように
12219 \family typewriter
12220
12221 \backslash
12222 setlength
12223 \family default
12224 を使う必要がないことに注意してください。
12225 \end_layout
12226
12227 \begin_layout Subsubsection
12228 へッダとフッタ
12229 \end_layout
12230
12231 \begin_layout Standard
12232
12233 \family typewriter
12234
12235 \backslash
12236 LogoOn
12237 \family default
12238 および
12239 \family typewriter
12240
12241 \backslash
12242 LogoOff
12243 \family default
12244 は、
12245 \family typewriter
12246 MyLogo
12247 \family default
12248 で定義したロゴを特定のページに入れるかどうかを制御します。
12249 \family typewriter
12250
12251 \backslash
12252 LogoOff
12253 \family default
12254 をプリアンブルに入れると、全スライドからロゴが取り除かれます。特定のスライドにのみロゴを付けたくない場合は、当該ページのスライドタイトルの直後に直接
12255 \family typewriter
12256
12257 \backslash
12258 LogoOff
12259 \family default
12260 を置き、次のスライドタイトルの直後に直接
12261 \family typewriter
12262
12263 \backslash
12264 LogoOn
12265 \family default
12266 を置いてください。
12267 \end_layout
12268
12269 \begin_layout Standard
12270
12271 \family sans
12272 文書レイアウト
12273 \family default
12274 ダイアログで
12275 \family sans
12276 fancy
12277 \family default
12278 ページ様式を使用することを選択した場合には、横置きページのヘッダとフッタが回転後も正しく配置されるように、プリアンブルに
12279 \family typewriter
12280
12281 \backslash
12282 let
12283 \backslash
12284 headwidth
12285 \backslash
12286 textwidth
12287 \family default
12288 を加える必要があるでしょう。これは、
12289 \family sans
12290 fancyheadings
12291 \family default
12292 パッケージが提供するページレイアウトと
12293 \family sans
12294 foils
12295 \family default
12296 クラスの提供するページレイアウトの間に衝突が発生するためです。
12297 \end_layout
12298
12299 \begin_layout Section
12300 Hollywood(Hollywoodスペック・スクリプト)
12301 \end_layout
12302
12303 \begin_layout Standard
12304
12305 \noun on
12306 Garst Reese
12307 \noun default
12308
12309 \end_layout
12310
12311 \begin_layout Subsection
12312 はじめに
12313 \end_layout
12314
12315 \begin_layout Standard
12316 脚本を正しい書式で書くことは、ハリウッドにおける「通過儀礼」です。ハリウッドの脚本は、読み手が内容に集中できるようにし、俳優にとっても読みやすくかつ親しみやすい
12317 ように設計されています。脚本の1ページは、映画の1分でなければならず、銀幕上で見えたり聞こえたりしないものは、脚本に混入してはなりません。また、全体を通してCo
12318 urier 12
12319 \begin_inset space \space{}
12320 \end_inset
12321
12322 ptフォントを使わなければならず、イタリック体は用いてはいけません。
12323 \end_layout
12324
12325 \begin_layout Subsection
12326 特別な問題
12327 \end_layout
12328
12329 \begin_layout Standard
12330 話者の行は、文の途中で改行することは
12331 \emph on
12332 決して
12333 \emph default
12334 あってはなりません。もし話者行の塊が、次頁にまたがる場合には、
12335 \family sans
12336 話者
12337 \family default
12338 名を再度書き、その後に(Cont'd)と加えます。
12339 \end_layout
12340
12341 \begin_layout Subsection
12342 特別な機能
12343 \end_layout
12344
12345 \begin_layout Standard
12346
12347 \family sans
12348 話者
12349 \family default
12350 名はラベルとして挿入し、話者名を挿入するには、そのラベルを相互参照してください。相互参照ダイアログは、登場人物の現在の配役を表示することになります。これは、ト書
12351 きに話者名を挿入するのにも使用することができます。
12352 \end_layout
12353
12354 \begin_layout Subsection
12355 用紙寸法と余白
12356 \end_layout
12357
12358 \begin_layout Standard
12359 USレター寸法で、左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです。
12360 \end_layout
12361
12362 \begin_layout Subsection
12363 環境
12364 \end_layout
12365
12366 \begin_layout Standard
12367 以下の環境が利用可能です。右に示されている
12368 \begin_inset Flex Ruby
12369 status collapsed
12370
12371 \begin_layout Plain Layout
12372
12373 \begin_inset Argument post:1
12374 status collapsed
12375
12376 \begin_layout Plain Layout
12377 キー
12378 \end_layout
12379
12380 \end_inset
12381
12382
12383 \end_layout
12384
12385 \end_inset
12386
12387 割当てを使用するには、hollywood.bindを使用してください。
12388 \end_layout
12389
12390 \begin_layout Itemize
12391
12392 \family sans
12393 一般
12394 \begin_inset Newline newline
12395 \end_inset
12396
12397
12398 \family default
12399 他の環境が動作しない場合に使用しますが、これを使うことは避けるようにしてください。
12400 \end_layout
12401
12402 \begin_layout Itemize
12403 フェイドイン:
12404 \begin_inset space \hfill{}
12405 \end_inset
12406
12407
12408 \family sans
12409 M-z S-I
12410 \family default
12411
12412 \begin_inset Newline newline
12413 \end_inset
12414
12415 通常、この後には「Sallyは目を覚ますと」のように続きます。
12416 \end_layout
12417
12418 \begin_layout Itemize
12419
12420 \family sans
12421 屋内:
12422 \begin_inset space \hfill{}
12423 \end_inset
12424
12425 M-z i
12426 \begin_inset Newline newline
12427 \end_inset
12428
12429
12430 \family default
12431 新しい屋内(INTERIOR)カメラの設定を指定します。この後には、かならずDAYやNIGHTなどを指定して、必要な照明を定義します。この行はすべて大文字で書き
12432 ます。
12433 \end_layout
12434
12435 \begin_layout Itemize
12436
12437 \family sans
12438 屋外:
12439 \begin_inset space \hfill{}
12440 \end_inset
12441
12442 M-z e
12443 \begin_inset Newline newline
12444 \end_inset
12445
12446
12447 \family default
12448 屋外(EXTERIOR)カメラの設定を指定します。この行はすべて大文字で書きます。
12449 \end_layout
12450
12451 \begin_layout Itemize
12452
12453 \family sans
12454 話者
12455 \begin_inset space \hfill{}
12456 \end_inset
12457
12458 M-z s
12459 \begin_inset Newline newline
12460 \end_inset
12461
12462
12463 \family default
12464 話す役。
12465 \end_layout
12466
12467 \begin_layout Itemize
12468
12469 \family sans
12470 括弧付き
12471 \begin_inset space \hfill{}
12472 \end_inset
12473
12474 M-z p
12475 \begin_inset Newline newline
12476 \end_inset
12477
12478 話者
12479 \family default
12480 への指示。自動的に括弧()が挿入されますが、\SpecialChar LyX
12481 上で表示されるのは、左括弧( のみです。印刷出力には右括弧も表示されます。
12482 \end_layout
12483
12484 \begin_layout Itemize
12485
12486 \family sans
12487 対話
12488 \begin_inset space \hfill{}
12489 \end_inset
12490
12491 M-z d
12492 \begin_inset Newline newline
12493 \end_inset
12494
12495 話者
12496 \family default
12497 が話す内容。
12498 \end_layout
12499
12500 \begin_layout Itemize
12501
12502 \family sans
12503 画面遷移
12504 \begin_inset space \hfill{}
12505 \end_inset
12506
12507 M-z t
12508 \begin_inset Newline newline
12509 \end_inset
12510
12511
12512 \family default
12513 カメラの動きの指示。例:CUT TO:。
12514 \end_layout
12515
12516 \begin_layout Itemize
12517
12518 \family sans
12519 フェイドアウト:
12520 \begin_inset space \hfill{}
12521 \end_inset
12522
12523 M-z S-I
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-A
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-T
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 r
12554 \end_layout
12555
12556 \begin_layout Subsection
12557 脚本で使われる特別な用語
12558 \end_layout
12559
12560 \begin_layout Itemize
12561 (O.S) — off screen
12562 \end_layout
12563
12564 \begin_layout Itemize
12565 (V.0) — voice over
12566 \end_layout
12567
12568 \begin_layout Itemize
12569 b.g.
12570  — background
12571 \end_layout
12572
12573 \begin_layout Itemize
12574 C.U.
12575  — close-up
12576 \end_layout
12577
12578 \begin_layout Itemize
12579 PAN — camera movement
12580 \end_layout
12581
12582 \begin_layout Itemize
12583 INSERT — cut to close-up of
12584 \end_layout
12585
12586 \begin_layout Section
12587 ijmpcおよびijmpd
12588 \end_layout
12589
12590 \begin_layout Standard
12591
12592 \noun on
12593 Panayotis Papasotiriou
12594 \noun default
12595
12596 \end_layout
12597
12598 \begin_layout Subsection
12599 概観
12600 \end_layout
12601
12602 \begin_layout Standard
12603 ijpmcパッケージは、
12604 \emph on
12605 International Journal of Modern Physics C
12606 \emph default
12607 への電子投稿を可能にするためのマクロ集です。同様に、ijpmdパッケージは、
12608 \emph on
12609 International Journal of Modern Physics D
12610 \emph default
12611 へ投稿する現行を作成するためのものです。両誌ともWorld Scientific社の刊行です。対応する文書クラス名は、それぞれ
12612 \family typewriter
12613 ws-ijmpc.cls
12614 \family default
12615 および
12616 \family typewriter
12617 ws-ijmpd.cls
12618 \family default
12619 です。これらのファイルは、著者のための指針とともに、
12620 \begin_inset Flex URL
12621 status collapsed
12622
12623 \begin_layout Plain Layout
12624
12625 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12626 \end_layout
12627
12628 \end_inset
12629
12630 および
12631 \begin_inset Flex URL
12632 status collapsed
12633
12634 \begin_layout Plain Layout
12635
12636 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12637 \end_layout
12638
12639 \end_inset
12640
12641 の各サイトからダウンロードすることができます。両パッケージは、標準「article」パッケージの修正版であり、両者は(一部を除き)ほぼ同一です。\SpecialChar LyX
12642 は、これらのパッ
12643 ケージのほとんどの機能をサポートしています。私は両誌へ投稿する論文を\SpecialChar LyX
12644 で書き上げましたが、何らの問題も生じませんでした。
12645 \end_layout
12646
12647 \begin_layout Subsection
12648 論文を書く
12649 \end_layout
12650
12651 \begin_layout Standard
12652 通常と同じく、論文を書く上で最も易しい方法は、ひな型を使って書き始めることです。
12653 \family sans
12654 ファイル\SpecialChar menuseparator
12655 新規(ひな型使用)
12656 \family default
12657 をクリックして、ひな型
12658 \family typewriter
12659 ijmpc.lyx
12660 \family default
12661 もしくは
12662 \family typewriter
12663 ijmpd.lyx
12664 \family default
12665 を選択してください。すると、原稿で良く使用されるフィールドを含んだ、ほぼ空の文書ができますので、既存のフィールド(鍵括弧
12666 \family typewriter
12667 <>
12668 \family default
12669 を含む)を正しい情報で置き換えてください。以下の各点にご留意ください。
12670 \end_layout
12671
12672 \begin_layout Enumerate
12673 両パッケージでは、フォント寸法や文書のページ様式を変更することが禁じられているので、\SpecialChar LyX
12674 中でこれらを変更することはできません。
12675 \end_layout
12676
12677 \begin_layout Enumerate
12678 文書言語は変更してはいけません。論文をプレビューする前に、babelパッケージが使用されていないことを確認してください。これは、
12679 \family sans
12680 ツール\SpecialChar menuseparator
12681 設定
12682 \family default
12683 をクリックして、
12684 \family sans
12685 言語オプション
12686 \family default
12687 タブを選択し、言語設定で
12688 \family sans
12689 Babelを使う
12690 \family default
12691 チェックボックスを無効にしてから、
12692 \family sans
12693 適用
12694 \family default
12695 をクリックすれば、設定することができます(この変更を固定するなら
12696 \family sans
12697 保存
12698 \family default
12699 を押してください)。
12700 \end_layout
12701
12702 \begin_layout Enumerate
12703 キーワードを定義するに際しては、「キーワード」様式を用いなくてはなりません。
12704 \end_layout
12705
12706 \begin_layout Enumerate
12707 ijmpcパッケージが提供する「分類コード」様式は、PACS番号のような分類コードを定義するのに使用することができます。この機能は、ijmpdパッケージではサポ
12708 ートされていませんので、ご注意ください。
12709 \end_layout
12710
12711 \begin_layout Enumerate
12712 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12713 きます。これらの使い方は、大凡自明でしょう。\SpecialChar LyX
12714 は、これらの環境をすべてサポートし、それぞれについて、適切なラベルと文字様式および連番スキームを使用します。
12715 \end_layout
12716
12717 \begin_layout Enumerate
12718 両パッケージは、単純な引用を使用しますので、natbibパッケージは使用してはなりません。\SpecialChar LyX
12719 中では、引用参照は通常通り表示されますが、出力では上付き文字として表示
12720 されます。引用に通常の本文を使用したい場合には、「See Ref.
12721 \begin_inset space \space{}
12722 \end_inset
12723
12724
12725 \family typewriter
12726
12727 \backslash
12728 refcite{
12729 \family default
12730
12731 \begin_inset Flex Ruby
12732 status collapsed
12733
12734 \begin_layout Plain Layout
12735
12736 \family typewriter
12737
12738 \family default
12739
12740 \begin_inset Argument post:1
12741 status collapsed
12742
12743 \begin_layout Plain Layout
12744 キー
12745 \end_layout
12746
12747 \end_inset
12748
12749
12750 \end_layout
12751
12752 \end_inset
12753
12754
12755 \family typewriter
12756 }
12757 \family default
12758 」のように
12759 \family typewriter
12760 refcite
12761 \family default
12762 コマンドを使用してください。
12763 \end_layout
12764
12765 \begin_layout Enumerate
12766 両パッケージには、「謝辞」環境がありません。謝辞を置くには、「節*」環境を使用してください。
12767 \end_layout
12768
12769 \begin_layout Enumerate
12770 付録は、論文中、謝辞の
12771 \emph on
12772
12773 \emph default
12774 かつ書誌情報の
12775 \emph on
12776
12777 \emph default
12778 であれば、入れることができます。\SpecialChar LyX
12779 上では、「付録領域」という特別な環境があり、これを使って付録の開始位置を指定することができます。この環境は空のままにしておかなく
12780 てはなりません。この環境は、\SpecialChar LaTeX
12781 コマンドを書き出すだけで、実際に出力は行いません。\SpecialChar LyX
12782 上では、青字で「Appendix」という単語が表示され、この箇所より後の節はすべて
12783 付録であることを明示します。「付録領域」は、最初の付録の前に
12784 \emph on
12785 なくてはならない
12786 \emph default
12787 ことに注意してください。さもなくば、出力中において、付録はすべて通常の節として連番が振られてしまいます。
12788 \end_layout
12789
12790 \begin_layout Enumerate
12791 ijmpcおよびijmpdパッケージは、表キャプションを実装するのに
12792 \family typewriter
12793 tbl
12794 \family default
12795 コマンドを使用します。そのため、\SpecialChar LyX
12796 が作成した表は正しく印字されますが、そのキャプションは無視されます。しかし、\SpecialChar TeX
12797 コードを少し使えば、この問題を回避して、キャプション
12798 を望み通り印字することができるようになります。そうするには、表フロートを通常通り作成して、キャプションを削除し、代わりに\SpecialChar TeX
12799 コードで
12800 \family typewriter
12801
12802 \backslash
12803 tbl{表キャプション}{
12804 \family default
12805 (ママ)と入れます。そこに表の内容を入れて、直後を\SpecialChar TeX
12806 コード
12807 \family typewriter
12808 }
12809 \family default
12810 で閉じてください。このからくりがどのように実装されているかを見るには、ひな型ファイルに入っている表の例を精査してみてください。別の方法としては、表キャプションが
12811 欲しい場合に、表フロート全体を
12812 \family typewriter
12813 .tex
12814 \family default
12815 ファイルに収め、このファイルを\SpecialChar LyX
12816 文書に取り込んでください(
12817 \family sans
12818 挿入\SpecialChar menuseparator
12819 ファイル\SpecialChar menuseparator
12820 子文書
12821 \family default
12822 )。表フロートの作り方についての詳細は、各パッケージに含まれている
12823 \family typewriter
12824 ws-ijmpc.tex
12825 \family default
12826 または
12827 \family typewriter
12828 ws-ijmpd.tex
12829 \family default
12830 ファイルをご覧ください。
12831 \end_layout
12832
12833 \begin_layout Subsection
12834 原稿を投稿するための準備
12835 \end_layout
12836
12837 \begin_layout Standard
12838 論文を投稿する前には、\SpecialChar LyX
12839 文書を\SpecialChar LaTeX
12840 ファイルに書き出し(
12841 \family sans
12842 ファイル\SpecialChar menuseparator
12843 書き出し\SpecialChar menuseparator
12844 \SpecialChar LaTeX
12845
12846 \family default
12847 )
12848 \begin_inset Foot
12849 status open
12850
12851 \begin_layout Plain Layout
12852 実は、\SpecialChar LaTeX
12853  (plain)とpdflatexとの間で選択ができます。論文を準備するのにpdflatexを使用しようとするのであれば、取り込んである画像がPDF形式に
12854 変換され、pdflatexで使用できるように、pdflatexオプションを指定しなくてはなりません。
12855 \end_layout
12856
12857 \end_inset
12858
12859 、その
12860 \family typewriter
12861 .tex
12862 \family default
12863 ファイルに以下の変更を加える必要があります。
12864 \end_layout
12865
12866 \begin_layout Enumerate
12867
12868 \family typewriter
12869
12870 \backslash
12871 documentclass
12872 \family default
12873 コマンドより前にあるコメント行を削除する。
12874 \end_layout
12875
12876 \begin_layout Enumerate
12877 自身で明示的に\SpecialChar LaTeX
12878 プリアンブルに置いたコマンドを除き、
12879 \family typewriter
12880
12881 \backslash
12882 makeatletter
12883 \family default
12884 コマンドと
12885 \family typewriter
12886
12887 \backslash
12888 makeatother
12889 \family default
12890 コマンドの間にあるものをすべて削除する。
12891 \end_layout
12892
12893 \begin_layout Standard
12894 こうして修正を加えた
12895 \family typewriter
12896 .tex
12897 \family default
12898 ファイルを保存し、必要な回数\SpecialChar LaTeX
12899 で処理してください。それによって得られた
12900 \family typewriter
12901 .dvi
12902 \family default
12903 文書も確認された方がよろしいでしょう。
12904 \end_layout
12905
12906 \begin_layout Subsection
12907 \SpecialChar TeX
12908 コードの使用
12909 \end_layout
12910
12911 \begin_layout Standard
12912 \SpecialChar TeX
12913 コードを使用するのは、2つのコマンドに限られ、これらは文書の最初に置かれなくてはなりません。論文をひな型
12914 \family typewriter
12915 ijmpc.lyx
12916 \family default
12917 または
12918 \family typewriter
12919 ijmpd.lyx
12920 \family default
12921 を使用して書き始めた場合には、これら必要な\SpecialChar TeX
12922 コードは、すでに書き込まれています。通常、これらを削除する必要はありません。2つのうち1番めの\SpecialChar TeX
12923 コードのみが、奇数ページ
12924 および偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために、修正する必要があります。この\SpecialChar TeX
12925 コードは、
12926 \family typewriter
12927
12928 \backslash
12929 markboth{著者名}{論文の短縮タイトル}
12930 \family default
12931 という形である必要があります。
12932 \end_layout
12933
12934 \begin_layout Section
12935 iopart
12936 \end_layout
12937
12938 \begin_layout Standard
12939
12940 \noun on
12941 Uwe Stöhr
12942 \noun default
12943
12944 \end_layout
12945
12946 \begin_layout Subsection
12947 概要
12948 \end_layout
12949
12950 \begin_layout Standard
12951 iopartパッケージは、Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12952 す。iopartクラスを使用した論文作成方法の著者用説明書は、ウェブサイト
12953 \begin_inset Flex URL
12954 status collapsed
12955
12956 \begin_layout Plain Layout
12957
12958 ftp://ftp.iop.org/pub/journals/latex2e
12959 \end_layout
12960
12961 \end_inset
12962
12963 からiopartパッケージとともにダウンロード可能です。
12964 \end_layout
12965
12966 \begin_layout Subsection
12967 論文を書く
12968 \end_layout
12969
12970 \begin_layout Standard
12971 論文を書くもっとも簡単な方法は、\SpecialChar LyX
12972 の用例ファイルフォルダにある
12973 \emph on
12974 IOP-article.lyx
12975 \emph default
12976 を土台にすることです。このファイルを開き、新しい名前で保存して、書き始めてください。この用例ファイルは、特定の環境の使用法についても説明しています。もっとも重要
12977 な助言として、以下の点にご注意ください。
12978 \end_layout
12979
12980 \begin_layout Itemize
12981 文書がPDF・PS・DVIにコンパイルできるようにするためには、文書設定の
12982 \family sans
12983 数式オプション
12984 \family default
12985 で、二つの
12986 \family sans
12987 AMS mathパッケージを使う
12988 \family default
12989 関連オプションが有効になっていないことを確認してください!
12990 \end_layout
12991
12992 \begin_layout Itemize
12993 タイトル環境の選択如何によって、論文の種類が定義されます。種類毎に以下の環境をタイトルに使用してください。
12994 \begin_inset Separator parbreak
12995 \end_inset
12996
12997
12998 \end_layout
12999
13000 \begin_deeper
13001 \begin_layout Itemize
13002 論文用には
13003 \family sans
13004 タイトル
13005 \end_layout
13006
13007 \begin_layout Itemize
13008 Review用には
13009 \family sans
13010 Review
13011 \end_layout
13012
13013 \begin_layout Itemize
13014 Topical review用には
13015 \family sans
13016 Topical
13017 \end_layout
13018
13019 \begin_layout Itemize
13020 Comment用には
13021 \family sans
13022 Comment
13023 \end_layout
13024
13025 \begin_layout Itemize
13026 Note用には
13027 \family sans
13028 注釈
13029 \end_layout
13030
13031 \begin_layout Itemize
13032 論文用には
13033 \family sans
13034 Paper
13035 \family default
13036 (タイトルと同じ)
13037 \end_layout
13038
13039 \begin_layout Itemize
13040 Preliminary communication用には
13041 \family sans
13042 Prelim
13043 \end_layout
13044
13045 \begin_layout Itemize
13046 Rapid communication用には
13047 \family sans
13048 Rapid
13049 \end_layout
13050
13051 \begin_layout Itemize
13052 編集者へのLetterには
13053 \family sans
13054 書簡
13055 \end_layout
13056
13057 \end_deeper
13058 \begin_layout Itemize
13059
13060 \family sans
13061 書簡
13062 \family default
13063 以外のタイトル環境には、すべて短縮タイトルをつけることもできます。
13064 \end_layout
13065
13066 \begin_layout Itemize
13067 \SpecialChar LyX
13068 では直接にサポートされていませんが、一般的なタイトル環境として
13069 \family sans
13070 Article
13071 \family default
13072 があります。執筆する文書が、他のタイトル型にそぐわない場合には、\SpecialChar TeX
13073 コードでこれを指定することができます。
13074 \end_layout
13075
13076 \begin_layout Standard
13077 特別な表や数式組版に関するヒントなど、詳しい情報については、IOP著者用ガイドラインを参照してください。
13078 \end_layout
13079
13080 \begin_layout Section
13081 Kluwer
13082 \end_layout
13083
13084 \begin_layout Standard
13085
13086 \noun on
13087 Panayotis Papasotiriou
13088 \noun default
13089
13090 \end_layout
13091
13092 \begin_layout Subsection
13093 概要
13094 \end_layout
13095
13096 \begin_layout Standard
13097 Kluwerパッケージは、Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために、同社が作成したマクロ集です。同社
13098 の発行誌のうち、(少なくとも私の専門内で)もっともよく知られているものは、
13099 \emph on
13100 Astrophysics and Space Science
13101 \emph default
13102 (『宇宙物理学と宇宙科学』)と
13103 \emph on
13104 Solar Physics
13105 \emph default
13106 (『太陽系物理学』)ですが、他にも多くの学術誌があります(
13107 \begin_inset Flex URL
13108 status collapsed
13109
13110 \begin_layout Plain Layout
13111
13112 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13113 \end_layout
13114
13115 \end_inset
13116
13117 に全覧があります)。Kluwerパッケージは、
13118 \begin_inset Flex URL
13119 status collapsed
13120
13121 \begin_layout Plain Layout
13122
13123 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13124 \end_layout
13125
13126 \end_inset
13127
13128 からダウンロードできます。完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です)。
13129 \end_layout
13130
13131 \begin_layout Standard
13132 \SpecialChar LyX
13133 は、このパッケージの機能の多くをサポートしていますが、すべてではありません。しかし、\SpecialChar TeX
13134 コードを必要とするのは、パッケージ中のいくつかの「変わった」コマンドだけにな
13135 りました(
13136 \begin_inset CommandInset ref
13137 LatexCommand ref
13138 reference "subsec:kluwer_peculiarities"
13139
13140 \end_inset
13141
13142 参照)。最近、私は\SpecialChar LyX
13143 を使って書いた論文を
13144 \emph on
13145 Astrophysics and Space Science
13146 \emph default
13147 に投稿しましたが、何らの問題も発生しませんでした。
13148 \end_layout
13149
13150 \begin_layout Subsection
13151 論文を書く
13152 \end_layout
13153
13154 \begin_layout Standard
13155 論文を書き始めるには、ひな型ファイルKluwerを使うのが最も簡単です。
13156 \family sans
13157 ファイル\SpecialChar menuseparator
13158 新規(ひな型使用)
13159 \family default
13160 をクリックし、ひな型
13161 \family typewriter
13162 kluwer.lyx
13163 \family default
13164 を選択してください。これは、原稿に通常必要となる各フィールドと、それらの使用法が短く書かれただけの、(ほとんど)何も書かれていない文書です。他のテンプレートと同
13165 様に、既存の文章を(括弧
13166 \family typewriter
13167 <>
13168 \family default
13169 を含む)正しい情報で上書きしてください。
13170 \end_layout
13171
13172 \begin_layout Subsection
13173 投稿の準備
13174 \end_layout
13175
13176 \begin_layout Standard
13177 AAS\SpecialChar TeX
13178 パッケージと同様、論文を投稿する前に、以下のような「後処理」を行う必要があります。
13179 \end_layout
13180
13181 \begin_layout Enumerate
13182
13183 \family sans
13184 ファイル\SpecialChar menuseparator
13185 書き出し\SpecialChar menuseparator
13186 LateX
13187 \family default
13188 をクリックして、論文を\SpecialChar LaTeX
13189 ファイルに書き出す。
13190 \end_layout
13191
13192 \begin_layout Enumerate
13193 生成された
13194 \family typewriter
13195 .tex
13196 \family default
13197 ファイルに、テキストエディタを使用して、以下のような変更を加える。
13198 \begin_inset Separator parbreak
13199 \end_inset
13200
13201
13202 \end_layout
13203
13204 \begin_deeper
13205 \begin_layout Enumerate
13206
13207 \family typewriter
13208
13209 \backslash
13210 documentclass
13211 \family default
13212 コマンドより前にあるコメント行を削除する。
13213 \end_layout
13214
13215 \begin_layout Enumerate
13216 意図的に\SpecialChar LaTeX
13217 プリアンブルに加えたコマンドを除き、
13218 \family typewriter
13219
13220 \backslash
13221 makeatletter
13222 \family default
13223 から 
13224 \family typewriter
13225
13226 \backslash
13227 makeatother
13228 \family default
13229 の間にあるものを、これらのコマンドも含め、すべて削除する。
13230 \end_layout
13231
13232 \begin_layout Standard
13233 変更した
13234 \family typewriter
13235 .tex
13236 \family default
13237 ファイルを保存する。
13238 \end_layout
13239
13240 \end_deeper
13241 \begin_layout Enumerate
13242 この
13243 \family typewriter
13244 .tex
13245 \family default
13246 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13247 にかける。
13248 \end_layout
13249
13250 \begin_layout Enumerate
13251 生成された
13252 \family typewriter
13253 .dvi
13254 \family default
13255 ファイルを
13256 \family sans
13257 xdvi
13258 \family default
13259 などを使って開き、問題がないか確認する(間違いをしていない限り問題ないはずです)。
13260 \end_layout
13261
13262 \begin_layout Subsection
13263 Kluwerパッケージの「風変わり」な特徴
13264 \begin_inset CommandInset label
13265 LatexCommand label
13266 name "subsec:kluwer_peculiarities"
13267
13268 \end_inset
13269
13270
13271 \end_layout
13272
13273 \begin_layout Standard
13274 Kluwerパッケージには、以下のような「風変わりな」特徴があります。
13275 \end_layout
13276
13277 \begin_layout Enumerate
13278 複数の論文を1つの\SpecialChar LaTeX
13279 ファイルへ入れることができます
13280 \begin_inset Foot
13281 status collapsed
13282
13283 \begin_layout Plain Layout
13284 わざわざこんなことをする必要はないでしょう。
13285 \end_layout
13286
13287 \end_inset
13288
13289 。各論文は、「article」環境で囲まなくてはなりません。残念ながら、1つの論文だけを書く場合でも、この環境を省略することはできません。つまり、各論文は
13290 \family typewriter
13291
13292 \backslash
13293 begin{article}
13294 \family default
13295 で始まり、
13296 \family typewriter
13297
13298 \backslash
13299 end{article}
13300 \family default
13301 で終わります。この環境を\SpecialChar LyX
13302 に実装することも可能でしたが、醜い上に初心者を混乱させる可能性があるので、実装することはしませんでした。したがって、これらの命令(
13303 \family typewriter
13304
13305 \backslash
13306 begin{article}
13307 \family default
13308
13309 \family typewriter
13310
13311 \backslash
13312 end{article}
13313 \family default
13314 )は、直接本文中に入力して、\SpecialChar LaTeX
13315 コード(「\SpecialChar TeX
13316 コード」のことです)としてマークする必要があります。
13317 \end_layout
13318
13319 \begin_layout Enumerate
13320 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は、「opening」とよばれる環境に入れなくて
13321 はなりません。これは\SpecialChar LyX
13322 では実装されていませんので、タイトルやサブタイトルなどは、2つの\SpecialChar TeX
13323 コード行(
13324 \family typewriter
13325
13326 \backslash
13327 begin{opening}
13328 \family default
13329 および
13330 \family typewriter
13331
13332 \backslash
13333 end{opening}
13334 \family default
13335 )の間に入れる必要があります。
13336 \end_layout
13337
13338 \begin_layout Enumerate
13339 ユーザーの手引きによれば、書誌情報の各項目のラベルは、
13340 \family typewriter
13341
13342 \begin_inset Newline newline
13343 \end_inset
13344
13345
13346 \backslash
13347 protect
13348 \backslash
13349 citeauthoryear{
13350 \family default
13351 \emph on
13352 著者名
13353 \family typewriter
13354 \emph default
13355 }{
13356 \family default
13357 \emph on
13358
13359 \family typewriter
13360 \emph default
13361 }
13362 \family default
13363  と書く必要があります。
13364 \end_layout
13365
13366 \begin_layout Standard
13367 ひな型
13368 \family typewriter
13369 kluwer.lyx
13370 \family default
13371 は、これらの風変わりな点がすべて考慮されています。このひな型を使用して、論文を新たに書きはじめる場合には、特別なことを行う必要はありません。以下の点にのみ留意し
13372 てください。
13373 \end_layout
13374
13375 \begin_layout Enumerate
13376 ひな型にある\SpecialChar TeX
13377 コードを削除しないでください。
13378 \end_layout
13379
13380 \begin_layout Enumerate
13381 新しい書誌情報項目を入力する場合には、ひな型に例示されている書誌情報項目をコピーして、必要に応じて修正してください。
13382 \end_layout
13383
13384 \begin_layout Section
13385 Koma-Script
13386 \end_layout
13387
13388 \begin_layout Standard
13389
13390 \noun on
13391 Bernd Rellermeyer
13392 \noun default
13393
13394 \end_layout
13395
13396 \begin_layout Subsection
13397 概要
13398 \end_layout
13399
13400 \begin_layout Standard
13401 \SpecialChar LyX
13402 の文書クラス
13403 \emph on
13404 article (koma-script)
13405 \emph default
13406
13407 \emph on
13408 report (koma-script)
13409 \emph default
13410
13411 \emph on
13412 book
13413 \emph default
13414  
13415 \emph on
13416 (koma-script)
13417 \emph default
13418
13419 \emph on
13420 letter
13421 \emph default
13422  
13423 \emph on
13424 (koma-script)
13425 \emph default
13426 は、それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13427 文書クラス
13428 \family typewriter
13429 scrartcl.cls
13430 \family default
13431
13432 \family typewriter
13433 scrreprt.cls
13434 \family default
13435
13436 \family typewriter
13437 scrbook.cls
13438 \family default
13439
13440 \family typewriter
13441 scrlettr.cls
13442 \family default
13443 に対応しています。これらは、標準文書クラス
13444 \family typewriter
13445 article.cls
13446 \family default
13447
13448 \family typewriter
13449 report.cls
13450 \family default
13451
13452 \family typewriter
13453 book.cls
13454 \family default
13455
13456 \family typewriter
13457 letter.cls
13458 \family default
13459 の代替物であり、これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します。
13460 \end_layout
13461
13462 \begin_layout Itemize
13463 標準文字寸法は、
13464 \emph on
13465 article (koma-script)
13466 \emph default
13467
13468 \emph on
13469 report (koma-script)
13470 \emph default
13471
13472 \emph on
13473 book (koma-script)
13474 \emph default
13475 で11pt、
13476 \emph on
13477 letter (koma-script)
13478 \emph default
13479 で12ptです。
13480 \end_layout
13481
13482 \begin_layout Itemize
13483 見出しや箇条書き(記述)環境のラベル、および
13484 \emph on
13485 letter (koma-script)
13486 \emph default
13487 文書クラスの要素の多くでは、ボールド体サンセリフフォントが使われます
13488 \begin_inset Foot
13489 status collapsed
13490
13491 \begin_layout Plain Layout
13492 ボールド体サンセリフフォントには、古いcmフォントと新しいecフォントの間に大きな違いがあり、特に見出しの表示の違いが際立ちます。比較すると、ecボールドサンセ
13493 リフフォントの方が、少し細く見えます。ecフォントを使用する際に「通常の」外観が欲しい場合には、
13494 \shape smallcaps
13495 Walter Schmidt
13496 \shape default
13497 作の\SpecialChar LaTeX
13498 パッケージ
13499 \family typewriter
13500 cmsd.sty
13501 \family default
13502 が役立ちます。
13503 \end_layout
13504
13505 \end_inset
13506
13507 。章見出しの連番は、節見出しの連番と同様に行われ、別行立てで「 Chapter\SpecialChar ldots
13508 」という行がつきません。さらに、多くのオプションによって、見出しの外観を修正するこ
13509 とができます(\SpecialChar LyX
13510 では、
13511 \family sans
13512 文書\SpecialChar menuseparator
13513 設定
13514 \family default
13515 ダイアログの
13516 \family sans
13517 クラスオプション
13518 \family default
13519 フィールドで指定します)。これらのオプションの独語での詳細な説明が、Koma-Scriptの取扱説明書
13520 \emph on
13521 scrguide
13522 \emph default
13523 にあります。
13524 \end_layout
13525
13526 \begin_layout Itemize
13527 Koma-Script文書クラスで、印字部分をデザインする主な方法は、
13528 \family sans
13529 BCOR
13530 \family default
13531 オプションまたは
13532 \family sans
13533 DIV
13534 \family default
13535 オプションを使う方法です(\SpecialChar LyX
13536 では、
13537 \family sans
13538 文書\SpecialChar menuseparator
13539 設定
13540 \family default
13541 ダイアログの
13542 \family sans
13543 クラスオプション
13544 \family default
13545 フィールドで指定します)。これらのオプションは
13546 \family sans
13547 文書\SpecialChar menuseparator
13548 設定
13549 \family default
13550 ダイアログのオプションと同様に、ページ余白を明示的に変更することができます。これらとその他印字領域オプションのドイツ語での詳細な説明が、Koma-Script取
13551 扱説明書
13552 \emph on
13553 scrguide
13554 \emph default
13555 にあります。
13556 \end_layout
13557
13558 \begin_layout Itemize
13559 Koma-Scriptファミリーの\SpecialChar LaTeX
13560 文書クラスには、多くの追加コマンドが定義されています。それらのうち、\SpecialChar LyX
13561 で意味を持つものは、対応する段落環境として実装されています
13562
13563 \end_layout
13564
13565 \begin_layout Standard
13566 Koma-Scriptファミリーの\SpecialChar LaTeX
13567 文書クラスに関する独語の詳細な説明が、Koma-Script取扱説明書
13568 \emph on
13569 scrguide
13570 \emph default
13571 にあります
13572 \begin_inset Foot
13573 status collapsed
13574
13575 \begin_layout Plain Layout
13576 英語翻訳版の
13577 \emph on
13578 screnggu
13579 \emph default
13580 もありますが、完訳ではありません。
13581 \end_layout
13582
13583 \end_inset
13584
13585 。以下の各節では、\SpecialChar LyX
13586 に関係する側面のみ説明致します。
13587 \end_layout
13588
13589 \begin_layout Subsection
13590 article (koma-script)・report (koma-script)・book (koma-script)
13591 \end_layout
13592
13593 \begin_layout Standard
13594 文書クラス
13595 \emph on
13596 article (koma-script)
13597 \emph default
13598
13599 \emph on
13600 report (koma-script)
13601 \emph default
13602
13603 \emph on
13604 book
13605 \emph default
13606  
13607 \emph on
13608 (koma-script)
13609 \emph default
13610 は、それぞれレイアウトファイル
13611 \family typewriter
13612 scrartcl.layout
13613 \family default
13614
13615 \family typewriter
13616 scrreprt.layou
13617 \family default
13618 t・
13619 \family typewriter
13620 crbook.layout
13621 \family default
13622 によって実装されています。これらは、対応する標準文書クラス
13623 \emph on
13624 article
13625 \emph default
13626
13627 \emph on
13628 report
13629 \emph default
13630
13631 \emph on
13632 book
13633 \emph default
13634 の段落環境を、若干の修正を加えた上ですべて含んでいますが、\SpecialChar LyX
13635 固有の
13636 \family sans
13637 箇条書き(一覧)
13638 \family default
13639 環境は例外であり、同じ機能を持つ新しい
13640 \family sans
13641 ラベリング
13642 \family default
13643 環境で置き換えられています。この
13644 \family sans
13645 ラベリング
13646 \family default
13647 環境以外にも、新しい段落環境が多く追加されています。これらは、
13648 \emph on
13649 letter (koma-script)
13650 \emph default
13651 には含まれていないのでご注意ください。
13652 \end_layout
13653
13654 \begin_layout Itemize
13655
13656 \family sans
13657 部(addpart)
13658 \family default
13659
13660 \family sans
13661 章(addchap)
13662 \family default
13663
13664 \family sans
13665 節(addsec)
13666 \family default
13667 :これらは、それぞれ
13668 \family sans
13669 部*
13670 \family default
13671
13672 \family sans
13673 章*
13674 \family default
13675
13676 \family sans
13677 節*
13678 \family default
13679 と同等の働きをしますが、加えて目次に項目が表示されるようになります。
13680 \family sans
13681 部(addpart)
13682 \family default
13683
13684 \family sans
13685 章(addchap)
13686 \family default
13687 は、
13688 \emph on
13689 article (koma-script)
13690 \emph default
13691 には収録されていません。
13692 \end_layout
13693
13694 \begin_layout Itemize
13695
13696 \family sans
13697 章(addchap*)
13698 \family default
13699
13700 \family sans
13701 節(addsec*)
13702 \family default
13703 :これらは、
13704 \family sans
13705 章(addchap
13706 \family default
13707 )と
13708 \family sans
13709 節(addsec)
13710 \family default
13711 とまったく同等に動作しますが、加えてランニングへッダを取り除きます。
13712 \family sans
13713 章(addchap*)
13714 \family default
13715 は、 
13716 \emph on
13717 article (koma-script)
13718 \emph default
13719 には収録されていません
13720 \begin_inset Foot
13721 status collapsed
13722
13723 \begin_layout Plain Layout
13724
13725 \emph on
13726 book (koma-script)
13727 \emph default
13728
13729 \emph on
13730 report (koma-script)
13731 \emph default
13732 には、
13733 \family typewriter
13734
13735 \backslash
13736 addpart*
13737 \family default
13738 コマンドもありますが、これは
13739 \family sans
13740 Part*
13741 \family default
13742 と同一なので、\SpecialChar LyX
13743 では実装されていません。
13744 \end_layout
13745
13746 \end_inset
13747
13748
13749 \end_layout
13750
13751 \begin_layout Itemize
13752
13753 \family sans
13754 小見出し(minisec)
13755 \family default
13756 :これは文書構造に現れない形で、続く段落の直上に標準文字寸法の見出しを付けます。
13757 \end_layout
13758
13759 \begin_layout Itemize
13760
13761 \family sans
13762 上部キャプション
13763 \family default
13764
13765 \family sans
13766 下部キャプション
13767 \family default
13768 は、ある要素の上部ないし下部にキャプションを配置する際、位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば、表キャプションは、つ
13769 ねに表の上に置くべきでしょう)。また、クラスオプション
13770 \family typewriter
13771 tablecaptionsabove
13772 \family default
13773 を用いれば、キャプションを指定すると、表には
13774 \family sans
13775 上部キャプション
13776 \family default
13777 が、図には
13778 \family sans
13779 下部キャプション
13780 \family default
13781 が適用されるようになります。これを使用するためには、Koma-Script第2.8q版以上が必要です。
13782 \end_layout
13783
13784 \begin_layout Itemize
13785
13786 \family sans
13787 格言(dictum)
13788 \family default
13789 :これは、章頭などに警句を置くのに用いることができます。オプション引数(
13790 \family sans
13791 挿入\SpecialChar menuseparator
13792 短縮タイトル
13793 \family default
13794 )を用いれば、格言の作者を入れることができます。格言と作者の間は、線で区切られます。これを使用するためには、Koma-Script第2.8q版以上が必要です。
13795 \family sans
13796 格言(dictum)
13797 \family default
13798 は、
13799 \emph on
13800 article (koma-script)
13801 \emph default
13802 には収録されていません。
13803 \end_layout
13804
13805 \begin_layout Standard
13806 以下の各環境は、標準の
13807 \family sans
13808 タイトル
13809 \family default
13810
13811 \family sans
13812 著者
13813 \family default
13814
13815 \family sans
13816 日付
13817 \family default
13818 とともに文書のタイトル領域を形成します。これらは、最初の「通常の」段落よりも前に置かれる必要があります
13819 \begin_inset Foot
13820 status collapsed
13821
13822 \begin_layout Plain Layout
13823 つまり、対応する\SpecialChar LaTeX
13824 コマンドが
13825 \family typewriter
13826
13827 \backslash
13828 maketitle
13829 \family default
13830 コマンドよりも前に現れなくてはなりません。
13831 \end_layout
13832
13833 \end_inset
13834
13835 。これらの環境が2度以上使用された場合には、後に使用されたものが前のものを上書きします。つまり最後に使用したもののみが有効になります。しかしながら、
13836 \family sans
13837 タイトル
13838 \family default
13839
13840 \family sans
13841 著者
13842 \family default
13843
13844 \family sans
13845 日付
13846 \family default
13847 のような異なる環境の順序を変更しても、生成された文書には何の効果も生じません。
13848 \end_layout
13849
13850 \begin_layout Itemize
13851
13852 \family sans
13853 主題
13854 \family default
13855 :通常のタイトル部(
13856 \family sans
13857 タイトル
13858 \family default
13859
13860 \family sans
13861 著者
13862 \family default
13863
13864 \family sans
13865 日付
13866 \family default
13867 )の上に、文書の主題用の中央揃えの段落を生成します。
13868 \end_layout
13869
13870 \begin_layout Itemize
13871
13872 \family sans
13873 出版社
13874 \family default
13875 :通常のタイトル部(
13876 \family sans
13877 タイトル
13878 \family default
13879
13880 \family sans
13881 著者
13882 \family default
13883
13884 \family sans
13885 日付
13886 \family default
13887 )の下に、出版社名用の中央揃えの段落を生成します。
13888 \end_layout
13889
13890 \begin_layout Itemize
13891
13892 \family sans
13893 献呈
13894 \family default
13895
13896 \emph on
13897 report (koma-script)
13898 \emph default
13899
13900 \emph on
13901 book (koma-script)
13902 \emph default
13903 では、タイトル頁の次に、献辞用の中央揃えの段落を独立した頁として生成します。
13904 \emph on
13905 article (koma-script)
13906 \emph default
13907 の場合は、通常のタイトル部(
13908 \family sans
13909 タイトル
13910 \family default
13911
13912 \family sans
13913 著者
13914 \family default
13915
13916 \family sans
13917 日付
13918 \family default
13919 )の下に献辞用の中央揃えの段落を生成します。
13920 \end_layout
13921
13922 \begin_layout Itemize
13923
13924 \family sans
13925 タイトル頭書き
13926 \family default
13927 :通常のタイトル部(
13928 \family sans
13929 タイトル
13930 \family default
13931
13932 \family sans
13933 著者
13934 \family default
13935
13936 \family sans
13937 日付
13938 \family default
13939 )の上に、文書頭書き用の左揃えの段落を生成します。
13940 \end_layout
13941
13942 \begin_layout Itemize
13943
13944 \family sans
13945 扉裏上部
13946 \family default
13947
13948 \emph on
13949 report (koma-script)
13950 \emph default
13951 や 
13952 \emph on
13953 book (koma-script)
13954 \emph default
13955 の両面印刷において、扉裏上部に左揃え段落を生成します。片面印刷や、
13956 \emph on
13957 article (koma-script)
13958 \emph default
13959 では何の効果も生じません。
13960 \end_layout
13961
13962 \begin_layout Itemize
13963
13964 \family sans
13965 扉裏下部
13966 \family default
13967
13968 \emph on
13969 report (koma-script)
13970 \emph default
13971 や 
13972 \emph on
13973 book (koma-script)
13974 \emph default
13975 の両面印刷において、扉裏下部に左揃え段落を生成します。片面印刷や、
13976 \emph on
13977 article (koma-script)
13978 \emph default
13979 では何の効果も生じません。
13980 \end_layout
13981
13982 \begin_layout Itemize
13983
13984 \family sans
13985 追加タイトル
13986 \family default
13987 :実際の文書の前に、整形を行わない段落から成る、特殊な「汚い」ページを生成します。
13988 \end_layout
13989
13990 \begin_layout Standard
13991 文書クラス
13992 \emph on
13993 article (koma-script)
13994 \emph default
13995
13996 \emph on
13997 report (koma-script)
13998 \emph default
13999
14000 \emph on
14001 book (koma-script)
14002 \emph default
14003 の 各レイアウトファイルは、
14004 \family typewriter
14005 scrmacros.inc
14006 \family default
14007 ファイルを読み込みます。このファイルは、ユーザ環境を定義する場所として想定されています。s
14008 \family typewriter
14009 crmacros.inc
14010 \family default
14011 を、個人用レイアウトディレクトリにコピーして編集してください!
14012 \end_layout
14013
14014 \begin_layout Subsection
14015 letter (koma-script)
14016 \end_layout
14017
14018 \begin_layout Standard
14019 \noindent
14020 文書クラス
14021 \emph on
14022 letter (koma-script)
14023 \emph default
14024 は、レイアウトファイル 
14025 \family typewriter
14026 scrlettr.layout
14027 \family default
14028 で実装されています。このレイアウトファイルには、対応する標準文書クラス
14029 \emph on
14030 letter
14031 \emph default
14032 の全段落環境が、部分的に変更を加えた形で収録されていますが、\SpecialChar LyX
14033 固有環境の
14034 \family sans
14035 \SpecialChar LyX
14036 コード
14037 \family default
14038
14039 \family sans
14040 コメント
14041 \family default
14042
14043 \family sans
14044 箇条書き(一覧
14045 \family default
14046 )は、新しく
14047 \family sans
14048 ラベリング
14049 \family default
14050 環境に置き換えられています。それ以外にも、標準文書クラスとは異なり、標準環境の
14051 \family sans
14052 \SpecialChar LaTeX
14053
14054 \family default
14055
14056 \family sans
14057 引用(字下げあり)
14058 \family default
14059
14060 \family sans
14061 引用(字下げなし)
14062 \family default
14063
14064 \family sans
14065 詩句
14066 \family default
14067 が収録されています。さらに、新しいletter固有環境がたくさん追加されています。
14068 \end_layout
14069
14070 \begin_layout Standard
14071 この文書クラスで作成した書簡の外観は、様々な\SpecialChar LaTeX
14072 コマンドを\SpecialChar LaTeX
14073 プリアンブルに置くことで制御することができます
14074 \begin_inset Foot
14075 status collapsed
14076
14077 \begin_layout Plain Layout
14078 例えば、名前と住所の入った書簡ヘッダの標準的外観は、きわめて頑固です。「普通の」へッダは、プリアンブル中に以下のようなコマンドを入れることで生成することができま
14079 す。
14080 \end_layout
14081
14082 \begin_layout LyX-Code
14083
14084 \backslash
14085 firsthead{
14086 \backslash
14087 parbox[b]{
14088 \backslash
14089 textwidth}
14090 \end_layout
14091
14092 \begin_layout LyX-Code
14093   {
14094 \backslash
14095 ignorespaces 
14096 \backslash
14097 fromname
14098 \backslash
14099
14100 \backslash
14101  
14102 \backslash
14103 ignorespaces 
14104 \backslash
14105 fromaddress}} 
14106 \end_layout
14107
14108 \begin_layout LyX-Code
14109
14110 \backslash
14111 nexthead{
14112 \backslash
14113 parbox[b]{
14114 \backslash
14115 textwidth}
14116 \end_layout
14117
14118 \begin_layout LyX-Code
14119   {
14120 \backslash
14121 ignorespaces 
14122 \backslash
14123 fromname 
14124 \backslash
14125 hfill 
14126 \backslash
14127 ignorespaces 
14128 \backslash
14129 pagename
14130 \backslash
14131
14132 \end_layout
14133
14134 \begin_layout LyX-Code
14135
14136 \backslash
14137 thepage}}
14138 \end_layout
14139
14140 \end_inset
14141
14142 。これらの\SpecialChar LaTeX
14143 コマンドのドイツ語での詳細な説明は、Koma-Scriptの取扱説明書
14144 \emph on
14145 scrguide
14146 \emph default
14147 にあります。この方法で、書簡の著者は、個人用書簡レイアウトを作ることができます。
14148 \end_layout
14149
14150 \begin_layout Standard
14151
14152 \family sans
14153 書簡
14154 \family default
14155 環境および
14156 \family sans
14157 頭語
14158 \family default
14159 環境は、書簡の冒頭部を定義するもので、すべての書簡で使用しなくてはなりません。\SpecialChar LyX
14160 文書クラスでは、これらの環境を強調するために、左余白にそれぞれ
14161 \shape italic
14162 L
14163 \shape default
14164
14165 \shape italic
14166 O
14167 \shape default
14168 という文字が表示されます。同一ファイル中には、複数の書簡を書くことができます。
14169 \family sans
14170 頭語
14171 \family default
14172 環境は、同じ受取人への書簡を新しく書き出すものであり、
14173 \family sans
14174 書簡
14175 \family default
14176 環境は、新しい受取人を生成するものです。
14177 \family sans
14178 結語
14179 \family default
14180
14181 \family sans
14182 PS
14183 \family default
14184
14185 \family sans
14186 CC
14187 \family default
14188
14189 \family sans
14190 Encl
14191 \family default
14192 は、通常の段落環境なので、同一の書簡中でも何度も使用することができます。
14193 \end_layout
14194
14195 \begin_layout Itemize
14196
14197 \family sans
14198 書簡
14199 \family default
14200 :受取人のための段落をつくり、暗黙に書簡の開始を定義します。
14201 \end_layout
14202
14203 \begin_layout Itemize
14204
14205 \family sans
14206 頭語
14207 \family default
14208 :敬称のための段落をつくり、暗黙に新しい書簡を開始します。
14209 \end_layout
14210
14211 \begin_layout Itemize
14212
14213 \family sans
14214 結語
14215 \family default
14216 :結語のための段落をつくります。
14217 \end_layout
14218
14219 \begin_layout Itemize
14220
14221 \family sans
14222 PS
14223 \family default
14224 :追伸のための段落をつくります。
14225 \end_layout
14226
14227 \begin_layout Itemize
14228
14229 \family sans
14230 CC
14231 \family default
14232 :同報一覧のための段落をつくります。
14233 \end_layout
14234
14235 \begin_layout Itemize
14236
14237 \family sans
14238 Encl
14239 \family default
14240 :同封物のための段落をつくります。
14241 \end_layout
14242
14243 \begin_layout Standard
14244
14245 \family sans
14246 名前
14247 \family default
14248
14249 \family sans
14250 署名
14251 \family default
14252
14253 \family sans
14254 住所
14255 \family default
14256
14257 \family sans
14258 電話
14259 \family default
14260
14261 \family sans
14262 場所(Place
14263 \family default
14264 )・
14265 \family sans
14266 返送先住所
14267 \family default
14268
14269 \family sans
14270 配送手段(Specialmail)
14271 \family default
14272
14273 \family sans
14274 場所
14275 \family default
14276
14277 \family sans
14278 タイトル
14279 \family default
14280
14281 \family sans
14282 主題
14283 \family default
14284 は、情報入力を促すラベルの付いた入力環境で、文書クラスが適切な処理を行います
14285 \begin_inset Foot
14286 status collapsed
14287
14288 \begin_layout Plain Layout
14289 上述の
14290 \family sans
14291 書簡
14292 \family default
14293
14294 \family sans
14295 頭語
14296 \family default
14297 が、これらのような入力環境でないのは、矛盾しているように感じられるかもしれません。しかしながら、これら2つの環境は特別の意味を持っているために、これらは左余白に
14298 一文字をマークした通常の段落環境として実装しました。さらに、
14299 \family sans
14300 頭語
14301 \family default
14302 環境と
14303 \family sans
14304 結語
14305 \family default
14306 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです。
14307 \end_layout
14308
14309 \end_inset
14310
14311 。これらの環境は、対応する
14312 \family sans
14313 頭語
14314 \family default
14315 環境の前に置く必要があります。
14316 \end_layout
14317
14318 \begin_layout Standard
14319 生成された書簡の実際の外観は、特定の環境の使い方だけではなく、他の要素にも依存するため、これらの環境をWYSIWYGとして実装することには、あまり意味がありませ
14320 ん。たとえば、
14321 \family sans
14322 署名
14323 \family default
14324 環境で入力した署名は、標準的な挙動では、同じ書簡に
14325 \family sans
14326 結語
14327 \family default
14328 環境も使用されているときのみ、書簡の出力に現れます。
14329 \family sans
14330 電話
14331 \family default
14332 環境に入力された値は、標準的な挙動では、書簡の出力には全く表示されません。書簡のヘッダを自由にデザインできることは、前出の脚注で示してあります。
14333 \end_layout
14334
14335 \begin_layout Standard
14336 入力環境は、空の段落として使うことができます。これは、たとえば
14337 \family sans
14338 署名
14339 \family default
14340 環境の場合に有効です。
14341 \family sans
14342 署名
14343 \family default
14344 環境を全く使用しない場合は、標準的な挙動では、
14345 \family sans
14346 名前
14347 \family default
14348 環境の値が署名として使用されますが、空の
14349 \family sans
14350 署名
14351 \family default
14352 環境を作成しておくと、署名の値は無定義となりません。
14353 \end_layout
14354
14355 \begin_layout Standard
14356 入力環境を使用すると、個人データ(名前や住所など)が既に入力された入力環境と、後から入力するデータの入力環境を備えた、書簡のひな型を作成することができます。
14357 \end_layout
14358
14359 \begin_layout Itemize
14360
14361 \family sans
14362 名前
14363 \family default
14364 :送り主の名前。標準的な挙動では、書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます。
14365 \end_layout
14366
14367 \begin_layout Itemize
14368
14369 \family sans
14370 署名
14371 \family default
14372 :送り主の署名。標準的な挙動では、
14373 \family sans
14374 結語
14375 \family default
14376 環境の下に表示されます。
14377 \family sans
14378 署名
14379 \family default
14380 環境を使用しないと、代わりに
14381 \family sans
14382 名前
14383 \family default
14384 環境の値が表示されます。
14385 \end_layout
14386
14387 \begin_layout Itemize
14388
14389 \family sans
14390 住所
14391 \family default
14392 :送り主の住所。標準的な挙動では、書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます。
14393 \end_layout
14394
14395 \begin_layout Itemize
14396
14397 \family sans
14398 電話
14399 \family default
14400 :送り主の電話番号。標準的な挙動では、\SpecialChar LaTeX
14401 変数
14402 \family typewriter
14403
14404 \backslash
14405 telephonenum
14406 \family default
14407 を設定するだけです。
14408 \end_layout
14409
14410 \begin_layout Itemize
14411
14412 \family sans
14413 場所(Place)
14414 \family default
14415 :書簡を書いた場所。
14416 \end_layout
14417
14418 \begin_layout Itemize
14419
14420 \family sans
14421 日付
14422 \family default
14423 :書簡を書いた日付。
14424 \family sans
14425 場所(Place)
14426 \family default
14427
14428 \family sans
14429 日付
14430 \family default
14431 は、標準的な挙動では、受取人フィールドの下に、単一の右揃え行として場所と日付を生成します。空の
14432 \family sans
14433 日付
14434 \family default
14435 環境を作成しておくと、
14436 \family sans
14437 場所(Place)
14438 \family default
14439 の値如何に関わらず、場所も日付も表示されません。
14440 \family sans
14441 日付
14442 \family default
14443 環境を使用しない場合には、書簡を出力した日付が使用されます。
14444 \end_layout
14445
14446 \begin_layout Itemize
14447
14448 \family sans
14449 返送先住所
14450 \family default
14451 :送り主の返送先住所。標準的な挙動では、受取人の上に小文字のサンセリフ体フォントで表示されます。
14452 \end_layout
14453
14454 \begin_layout Itemize
14455
14456 \family sans
14457 特別便
14458 \family default
14459 :特別便の情報。標準的な挙動では、受取人フィールドの上かつ返送先住所の下に、下線付きで表示されます。
14460 \end_layout
14461
14462 \begin_layout Itemize
14463
14464 \family sans
14465 場所
14466 \family default
14467 :追加情報。標準的な挙動では、受取人フィールドの下の右側に表示されます。
14468 \end_layout
14469
14470 \begin_layout Itemize
14471
14472 \family sans
14473 タイトル
14474 \family default
14475 :書簡の題名。標準的な挙動では、主題の上に大きなボールド体サンセリフフォントで表示されます。
14476 \end_layout
14477
14478 \begin_layout Itemize
14479
14480 \family sans
14481 主題
14482 \family default
14483 :書簡の主題。標準的な挙動では、
14484 \family sans
14485 頭語
14486 \family default
14487 環境の上にボールド体で表示されます。
14488 \end_layout
14489
14490 \begin_layout Standard
14491
14492 \family sans
14493 Yourref・Yourmail・Myref・顧客・インボイス
14494 \family default
14495 といった環境は、
14496 \family sans
14497 タイトル
14498 \family default
14499 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14500 ィールド行を持つ、ビジネス書簡を作成します。日付フィールドには、
14501 \family sans
14502 日付
14503 \family default
14504 環境の値が使用されます。しかしながら、これらの「ビジネス書簡環境」の一つを使用した場合には、
14505 \family sans
14506 場所(Place)
14507 \family default
14508 の値は書簡には表示されなくなり、\SpecialChar LaTeX
14509 変数
14510 \family typewriter
14511
14512 \backslash
14513 fromplace
14514 \family default
14515 が設定させるだけになります。通常時に、受取人フィールドの下に右揃えで出力される場所と日付の出力は、抑制されます。これらのビジネス環境は、ラベル付きの入力環境とし
14516 て実装されており、対応する
14517 \family sans
14518 頭語
14519 \family default
14520 環境よりも前に置く必要があります。
14521 \end_layout
14522
14523 \begin_layout Itemize
14524
14525 \family sans
14526 Yourref
14527 \family default
14528 : Your ref.
14529 \end_layout
14530
14531 \begin_layout Itemize
14532
14533 \family sans
14534 Yourmail
14535 \family default
14536 : Your letter of.
14537 \end_layout
14538
14539 \begin_layout Itemize
14540
14541 \family sans
14542 Myref
14543 \family default
14544 : Our ref.
14545 \end_layout
14546
14547 \begin_layout Itemize
14548
14549 \family sans
14550 Customer
14551 \family default
14552 : Customer no.
14553 \end_layout
14554
14555 \begin_layout Itemize
14556
14557 \family sans
14558 Invoice
14559 \family default
14560 : Invoice no.
14561 \end_layout
14562
14563 \begin_layout Subsection
14564 新しいletterクラス:letter (koma-script v.2)
14565 \end_layout
14566
14567 \begin_layout Standard
14568 by 
14569 \noun on
14570 Jürgen Spitzmüller
14571 \begin_inset VSpace medskip
14572 \end_inset
14573
14574
14575 \end_layout
14576
14577 \begin_layout Standard
14578 \noindent
14579 Koma-Script第2.8版では、新しいletterクラス
14580 \family typewriter
14581 scrlttr2
14582 \family default
14583 が導入されたため、
14584 \family typewriter
14585 scrlettr
14586 \family default
14587 は廃止されてサポート対象外となりました。これは—\SpecialChar LaTeX
14588 側で—全く新しいインターフェイスを持っており、旧クラスとは互換性がありません。したがって、\SpecialChar LyX
14589 は両者をサポートしてい
14590 ますが、新しい方のクラスを使用することを推奨します。
14591 \end_layout
14592
14593 \begin_layout Standard
14594 このクラスは、
14595 \emph on
14596 letter (koma-script)
14597 \emph default
14598 と同一の機能に加えて、新しい機能をいくつかサポートしています。基本となる項目は、
14599 \family sans
14600 住所
14601 \family default
14602 (受取人の住所、旧レイアウトの
14603 \family sans
14604 書簡
14605 \family default
14606 と同じ)・
14607 \family sans
14608 頭語
14609 \family default
14610
14611 \family sans
14612 結語
14613 \family default
14614 です。
14615 \family sans
14616 次の住所
14617 \family default
14618 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます)。新しく付け加えられた項目は、送り主の
14619 \family sans
14620 電子メール
14621 \family default
14622
14623 \family sans
14624 URL
14625 \family default
14626
14627 \family sans
14628 ファックス
14629 \family default
14630
14631 \family sans
14632 銀行
14633 \family default
14634 、およびヘッダに(
14635 \family sans
14636 挿入\SpecialChar menuseparator
14637
14638 \family default
14639 で)
14640 \family sans
14641 ロゴ
14642 \family default
14643 を入れることができるようになった点です。
14644 \end_layout
14645
14646 \begin_layout Standard
14647 しかしながら、もっとも大きな改善は、書簡のレイアウトを、ほとんどどんなニーズにも合わせて設定できるようになった点でしょう。これはプリアンブルか、クラスオプション
14648 として読み込まれる特別なスタイルファイル(「レタークラスオプション」、拡張子
14649 \family typewriter
14650 *.lco
14651 \family default
14652 )によって設定することができます
14653 \begin_inset Foot
14654 status collapsed
14655
14656 \begin_layout Plain Layout
14657 KOMAパッケージには、既定の
14658 \family typewriter
14659 *.lco
14660 \family default
14661 ファイルがいくつか収録されています。たとえば、ドイツの組版規則に則った
14662 \family typewriter
14663 DIN.lco
14664 \family default
14665 や、旧
14666 \family typewriter
14667 scrlettr
14668 \family default
14669 クラスの既定レイアウトを提供する
14670 \family typewriter
14671 KOMAold.lco
14672 \family default
14673 などです。たとえば後者は、
14674 \family sans
14675 文書\SpecialChar menuseparator
14676 設定\SpecialChar menuseparator
14677 文書クラス\SpecialChar menuseparator
14678 クラスオプション
14679 \family default
14680 フィールドにクラスオプション
14681 \family typewriter
14682 KOMAold
14683 \family default
14684 を加えることで読み込むことができます。
14685 \end_layout
14686
14687 \end_inset
14688
14689 。用例としては、\SpecialChar LyX
14690 に収録されているひな型
14691 \emph on
14692 koma-letter2
14693 \emph default
14694 をご覧ください。詳細な解説は、Koma-Script取扱説明書(
14695 \emph on
14696 scrguide
14697 \emph default
14698 )にあります。
14699 \end_layout
14700
14701 \begin_layout Subsection
14702 問題点
14703 \end_layout
14704
14705 \begin_layout Standard
14706 Koma-Script文書クラスを\SpecialChar LyX
14707 上に表示する上で、\SpecialChar LyX
14708 の内部処理が若干の問題を生じめます。
14709 \end_layout
14710
14711 \begin_layout Itemize
14712
14713 \family sans
14714
14715 \family default
14716 環境の章番号は、章見出しと同じ行ではなく、その上に表示されます。これは、レイアウトファイル中の
14717 \family sans
14718 Counter_Chapter
14719 \family default
14720 ラベル型に対する\SpecialChar LyX
14721 の内部処理が原因です。
14722 \end_layout
14723
14724 \begin_layout Itemize
14725
14726 \family sans
14727 章(addchap)
14728 \family default
14729
14730 \family sans
14731 節(addsec)
14732 \family default
14733 環境の見出しは、「本当の」\SpecialChar LaTeX
14734 の目次には追加されますが、\SpecialChar LyX
14735 の目次(
14736 \family sans
14737 移動
14738 \family default
14739 メニュー)には追加されません。
14740 \end_layout
14741
14742 \begin_layout Itemize
14743
14744 \emph on
14745 letter
14746 \emph default
14747 文書クラスでの段落は、垂直スペースによる段落区切りで表示され、字下げはされません。これが標準的な挙動となっていて、特別な\SpecialChar LaTeX
14748 コマンドは必要ありません。しかし、
14749 \family sans
14750 文書\SpecialChar menuseparator
14751 設定
14752 \family default
14753 ダイアログでは、対応するラジオボタンは
14754 \family sans
14755 字下げ
14756 \family default
14757 に設定されています。
14758 \family sans
14759 垂直スペース
14760 \family default
14761 は、隙間を空けるために、文書に\SpecialChar LaTeX
14762 コマンドをつねに追加するようになっていますが、この文書クラスの場合には、そのような挙動が望まれないためです。
14763 \end_layout
14764
14765 \begin_layout Section
14766 Memoir
14767 \end_layout
14768
14769 \begin_layout Standard
14770
14771 \noun on
14772 Jürgen Spitzmüller
14773 \noun default
14774
14775 \end_layout
14776
14777 \begin_layout Subsection
14778 概観
14779 \end_layout
14780
14781 \begin_layout Standard
14782 Memoirは、非常に強力で、着実に改良が加えられている文書クラスであり、フィクションとノンフィクションの文学作品用に設計されています。その目的は、ユーザーに、
14783 文書の組版に関して最大限の裁量を得させることにあります。Memoirは、標準bookクラスに基づいていますが、articleクラスをエミュレートすることもできま
14784 す(以下参照)。
14785 \end_layout
14786
14787 \begin_layout Standard
14788 Memoir開発者であるPeter Wilsonは、\SpecialChar LaTeX
14789 の世界での、多くの便利なパッケージの作者として知られていますが、それらのほとんどは、Memoirに統合されま
14790 した。このため、章のデザインや、目次や付録などのレイアウトを、はるかに簡単に行うことができます。しかしながら、\SpecialChar LyX
14791 は、これらすべての素晴らしい機能をネイティブでサポ
14792 ートしているわけではありません。これらのうちいくつかは、将来のリリースで追加されるかもしれませんが
14793 \begin_inset Foot
14794 status collapsed
14795
14796 \begin_layout Plain Layout
14797 もし提案があれば、ぜひ
14798 \begin_inset Flex URL
14799 status collapsed
14800
14801 \begin_layout Plain Layout
14802
14803 lyx-devel@lists.lyx.org
14804 \end_layout
14805
14806 \end_inset
14807
14808 までお送り下さい。
14809 \end_layout
14810
14811 \end_inset
14812
14813 、\SpecialChar LyX
14814 のフレームワークが持つ制約のために、おそらく決して追加されることのないと考えられるものも多数あります。もちろん、ネイティブな\SpecialChar LaTeX
14815 コマンド(\SpecialChar TeX
14816 コード
14817 \begin_inset Foot
14818 status collapsed
14819
14820 \begin_layout Plain Layout
14821 【参考】詳細は、第
14822 \begin_inset CommandInset ref
14823 LatexCommand ref
14824 reference "sec:LaTeXコードを挿入する"
14825
14826 \end_inset
14827
14828 節参照。
14829 \end_layout
14830
14831 \end_inset
14832
14833 )の助けを借りれば、全機能を使用できます。この節では、\SpecialChar LyX
14834 がネイティブにサポートしている機能についてのみ、列挙するものとします。詳細な説明(および他の機能)について
14835 は、Memoirクラスの詳しい取扱説明書
14836 \begin_inset Foot
14837 status collapsed
14838
14839 \begin_layout Plain Layout
14840 【参考】
14841 \begin_inset Flex URL
14842 status collapsed
14843
14844 \begin_layout Plain Layout
14845
14846 CTAN:/macros/latex/memoir/memman.pdf
14847 \end_layout
14848
14849 \end_inset
14850
14851
14852 \end_layout
14853
14854 \end_inset
14855
14856 をご覧になることをお勧めします。この取扱説明書は、本クラスのユーザーの手引きであるのみに留まらず、良い組版に関する包括的な解説であり、それ自身が良い組版の傑出し
14857 た用例となっています。
14858 \end_layout
14859
14860 \begin_layout Subsection
14861 基本的な機能と制約
14862 \end_layout
14863
14864 \begin_layout Standard
14865 Memoirは、基本的に、標準bookクラスの全機能をサポートしています。しかしながら、以下に示すような若干の違いがあります。
14866 \end_layout
14867
14868 \begin_layout Description
14869 フォント寸法: Memoirでは、9・10・11・12・14・17と、より広い範囲のフォント寸法が使用可能です。
14870 \end_layout
14871
14872 \begin_layout Description
14873 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため、\SpecialChar LaTeX
14874 が混乱させられます
14875 )、fancyページ様式は使用できません。その代わり、Memoirには、多くの独自のページ様式が付属してきます(
14876 \family sans
14877 文書\SpecialChar menuseparator
14878 設定\SpecialChar menuseparator
14879 ページレイアウト
14880 \family default
14881 参照)。これらを章題ページに使用したい場合には、コマンド
14882 \family typewriter
14883
14884 \backslash
14885 chapterstyle
14886 \family default
14887 を、本文またはプリアンブルに記述する必要があります(例えば、
14888 \family typewriter
14889
14890 \backslash
14891 chapterstyle{companion}
14892 \family default
14893 など)。
14894 \end_layout
14895
14896 \begin_layout Description
14897 節分け: 標準クラスでは、節分けコマンド(章・節・小節等)は、非必須引数を一つ取ることができます。これを用いて、目次やヘッダ用に別のタイトルを指定することができ
14898 ます(たとえば、タイトルが長すぎる場合などに用います)。\SpecialChar LyX
14899 では、章や節の始めで
14900 \family sans
14901 挿入\SpecialChar menuseparator
14902 短縮タイトル
14903 \family default
14904 を使えば、これを指定することができます。一方、Memoirでは、第2の非必須引数を取ることができ、目次用のタイトルとヘッダ用のタイトルの指定を分離しています。こ
14905 れを使えば、本文用と目次用とヘッダ用のタイトルの3種類を指定することができます。この機能を使用したい場合には、2つの非必須引数を入力して、最初のものに目次用、次
14906 のものにヘッダ用短縮タイトルを入れてください。
14907 \end_layout
14908
14909 \begin_layout Description
14910 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では、目次と図一覧および表一覧は、自動的に新規頁に置かれます。Memoirは、これとは別の方針を採り
14911 ます。改頁を行いたい場合は、手動で頁区切りを入れなくてはなりません。
14912 \end_layout
14913
14914 \begin_layout Description
14915 タイトル頁: 理由は不明ですが、Memoirはタイトルページに丁付けを行います(標準クラスでは、タイトルページは「empty」様式)。タイトル頁に丁付けを行いた
14916 くない場合には、プリアンブルに
14917 \family typewriter
14918
14919 \backslash
14920 aliaspagestyle{title}{empty}
14921 \family default
14922 と入力してください。
14923 \end_layout
14924
14925 \begin_layout Description
14926 Article: クラスオプション
14927 \emph on
14928 article
14929 \emph default
14930 を用いる(
14931 \family sans
14932 文書\SpecialChar menuseparator
14933 設定\SpecialChar menuseparator
14934 クラスオプション
14935 \family default
14936 で入力)と、article様式をエミュレートできます。すなわち、(脚注・図・表等の)カウンタは、章毎にリセットされず、次の章は頁を改めず(ただし、「本物の」ar
14937 ticleクラスとは違って、頁を改めることも可)、部はbookクラスと同様に、独立の頁を使用します。
14938 \end_layout
14939
14940 \begin_layout Description
14941 Oldfontcommands: \SpecialChar LaTeX
14942 旧2.09版で使用されていた旧いフォントコマンド(
14943 \family typewriter
14944
14945 \backslash
14946 rm
14947 \family default
14948
14949 \family typewriter
14950
14951 \backslash
14952 it
14953 \family default
14954 など)は、Memoirにおいては、既定では使用することができません。Memoirがこれらのコマンドを検知すると、エラーを発して\SpecialChar LaTeX
14955 を停止させます。しかし、クラスオプ
14956 ション
14957 \emph on
14958 oldfontcommands
14959 \emph default
14960 を指定すると、これらのコマンドが容認され、エラーの代わりに警告を発するのみとなります(これによって、少なくとも\SpecialChar LaTeX
14961 は停止しなくなります)。まだ、多くのパッケージと、
14962 就中多くのBib\SpecialChar TeX
14963 スタイルファイルが、これらのコマンドを使用しているので、我々はこのオプションを既定で使うこととしました。
14964 \end_layout
14965
14966 \begin_layout Subsection
14967 追加された機能
14968 \end_layout
14969
14970 \begin_layout Standard
14971 \SpecialChar LyX
14972 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう。詳しくはMemoirの取扱説明書
14973 \begin_inset Foot
14974 status collapsed
14975
14976 \begin_layout Plain Layout
14977 \begin_inset Flex URL
14978 status collapsed
14979
14980 \begin_layout Plain Layout
14981
14982 CTAN:/macros/latex/memoir/memman.pdf
14983 \end_layout
14984
14985 \end_inset
14986
14987
14988 \end_layout
14989
14990 \end_inset
14991
14992 を見てください。
14993 \end_layout
14994
14995 \begin_layout Description
14996 概要: 概要が、追加された機能として扱われているのを不思議に思われるかもしれませんが、bookクラスとしては追加された機能なのです。通常bookクラスには概要は
14997 ないのですが、memoirにはあります。これは、どこでも何回でも自由に使うことができます。
14998 \end_layout
14999
15000 \begin_layout Description
15001 章要約: この古い組版様式はご覧になったことがあるかも知れません。章の内容が、見出しの下と目次に要約されているものです(たとえば、「我らが英雄がトロヤに到着する
15002 。彼は友人を失うが、新たな友人を得る。」など)。章要約(chapterprecis)はこれを行います。したがって、章要約は章の下でのみ意味を持ちます。
15003 \end_layout
15004
15005 \begin_layout Description
15006 題辞: 題辞(epigraph)は章頭の、気の利いた標語やモットーです。題辞環境は、そのような標語を組む洗練された方法を提供します。標語本体(本文)とその著者(
15007 出典)は、短い線で区切られます。この環境には二つの引数(本文と出典)が必要なので、ここでも\SpecialChar LyX
15008 を少しだます必要があります。ここでは、2つの引数の間に、
15009 \emph on
15010 <標語>
15011 \family typewriter
15012 \emph default
15013 }{
15014 \family default
15015 \emph on
15016 <標語の著者>
15017 \emph default
15018 のように、(\SpecialChar TeX
15019 モードで)波括弧を入れなくてはなりません。
15020 \end_layout
15021
15022 \begin_layout Description
15023 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが、\SpecialChar LyX
15024 は、そのうちいくつかしかサポートしていません。詩題はその一つです
15025 。これは詩用の中央揃えタイトルで、目次にも表示されます(詩句が詩の標準環境です。Memoirには、詩句の拡張版もありますが、これらを使うためには\SpecialChar TeX
15026 コードを使用しな
15027 くてはなりません。これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが、\SpecialChar LyX
15028 ではそれができないためです)。
15029 \end_layout
15030
15031 \begin_layout Description
15032 詩題*: 目次に現れない他は詩題と同じです。
15033 \end_layout
15034
15035 \begin_layout Section
15036 Article (mwart)・book (mwbk)・report (mwrep)
15037 \begin_inset Argument status
15038 status collapsed
15039
15040 \begin_layout Plain Layout
15041 The 
15042 \family typewriter
15043 mw
15044 \family default
15045  Classes
15046 \end_layout
15047
15048 \end_inset
15049
15050
15051 \end_layout
15052
15053 \begin_layout Standard
15054
15055 \noun on
15056 Tomasz Luczak
15057 \noun default
15058
15059 \end_layout
15060
15061 \begin_layout Standard
15062 \SpecialChar LyX
15063 文書クラス
15064 \emph on
15065 article (mwart)
15066 \emph default
15067
15068 \emph on
15069 report (mwrep)・book
15070 \emph default
15071  
15072 \emph on
15073 (mwbk)
15074 \emph default
15075 は、それぞれ\SpecialChar LaTeX
15076 文書クラス
15077 \family typewriter
15078 mwart.cls
15079 \family default
15080
15081 \family typewriter
15082 mwrep.cls
15083 \family default
15084
15085 \family typewriter
15086 mwbk.cls
15087 \family default
15088 に対応しています。これらは、標準の
15089 \family typewriter
15090 article.cls
15091 \family default
15092
15093 \family typewriter
15094 report.cls
15095 \family default
15096
15097 \family typewriter
15098 book.cls
15099 \family default
15100 を代替するものであり、多くの点で、ポーランド語の組版慣習によく適合しています。
15101 \end_layout
15102
15103 \begin_layout Standard
15104 基本的な違いは、次の点です。
15105 \end_layout
15106
15107 \begin_layout Itemize
15108 付番のない見出し(
15109 \family sans
15110 節*
15111 \family default
15112 などの星付き)も目次に加えられます。
15113 \end_layout
15114
15115 \begin_layout Itemize
15116 以下のページスタイルの追加
15117 \begin_inset Separator parbreak
15118 \end_inset
15119
15120
15121 \end_layout
15122
15123 \begin_deeper
15124 \begin_layout Description
15125 uheadings 分離線付きヘッダ
15126 \end_layout
15127
15128 \begin_layout Description
15129 myheadings 
15130 \family typewriter
15131
15132 \backslash
15133 markright
15134 \family default
15135 コマンドおよび
15136 \family typewriter
15137
15138 \backslash
15139 markboth
15140 \family default
15141 コマンドで設定するカスタムヘッダ
15142 \end_layout
15143
15144 \begin_layout Description
15145 myuheadings 分離線付きカスタムヘッダ
15146 \end_layout
15147
15148 \begin_layout Description
15149 outer ページの外側にページ番号
15150 \end_layout
15151
15152 \end_deeper
15153 \begin_layout Itemize
15154 オプション
15155 \begin_inset Separator parbreak
15156 \end_inset
15157
15158
15159 \end_layout
15160
15161 \begin_deeper
15162 \begin_layout Description
15163 rmheadings セリフ体見出し — 既定
15164 \end_layout
15165
15166 \begin_layout Description
15167 sfheadings サンセリフ体見出し
15168 \end_layout
15169
15170 \begin_layout Description
15171 authortitle タイトルページは、著者名・タイトルの順で配置 — 既定
15172 \end_layout
15173
15174 \begin_layout Description
15175 titleauthor タイトルページは、タイトル・著者名の順で配置
15176 \end_layout
15177
15178 \begin_layout Description
15179 withmarginpar ページ上に余白のための場所を確保
15180 \end_layout
15181
15182 \end_deeper
15183 \begin_layout Section
15184 Paper
15185 \end_layout
15186
15187 \begin_layout Standard
15188
15189 \family sans
15190 paper
15191 \family default
15192 文書クラスは標準
15193 \family sans
15194 article
15195 \family default
15196 クラスの代替となるものです。これは
15197 \family sans
15198 同様の
15199 \family default
15200 機能を提供しますが、サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません。
15201 \end_layout
15202
15203 \begin_layout Section
15204 Rev\SpecialChar TeX
15205 4
15206 \end_layout
15207
15208 \begin_layout Standard
15209 by 
15210 \noun on
15211 Amir Karger
15212 \end_layout
15213
15214 \begin_layout Standard
15215 \begin_inset VSpace bigskip
15216 \end_inset
15217
15218
15219 \end_layout
15220
15221 \begin_layout Standard
15222 \noindent
15223
15224 \family sans
15225 Revtex
15226 \begin_inset space ~
15227 \end_inset
15228
15229 4
15230 \family default
15231 テキストクラスは、アメリカ物理学会のRev\SpecialChar TeX
15232  4.0(1999年5月の
15233 \begin_inset Formula $\beta$
15234 \end_inset
15235
15236 リリース)クラスで動作します。
15237 \end_layout
15238
15239 \begin_layout Standard
15240 \SpecialChar LyX
15241 には、Rev\SpecialChar TeX
15242  3.1で動作する
15243 \family sans
15244 Revtex
15245 \family default
15246 テキストクラスもあります。しかしながら、第3.1版は\SpecialChar LaTeX
15247  2.09で動作するものであり、基本的に時代遅れなものになっています。\SpecialChar LyX
15248 は\SpecialChar LaTeX2e
15249 を必要とすることから、第3.1版は\SpecialChar LyX
15250 とうまく
15251 協調しないことを意味しますが、動作するようには調整してあります。Rev\SpecialChar TeX
15252  4.0は、\SpecialChar LaTeX2e
15253 で素直に動作するようにデザインされているので、\SpecialChar LyX
15254
15255 \family sans
15256 Rev\SpecialChar TeX
15257
15258 \begin_inset space ~
15259 \end_inset
15260
15261 4
15262 \family default
15263 テキストクラスの組で使用するのは、たいへん簡単です。
15264 \end_layout
15265
15266 \begin_layout Standard
15267 この取扱説明書は、Rev\SpecialChar TeX
15268  4.0の説明書の
15269 \emph on
15270 補完
15271 \emph default
15272 として使用されることを前提としています。したがって、ここではRev\SpecialChar TeX
15273 固有マクロの説明はせず、必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15274 します。
15275 \end_layout
15276
15277 \begin_layout Subsection
15278 導入
15279 \end_layout
15280
15281 \begin_layout Standard
15282 Rev\SpecialChar TeX
15283  4パッケージのREADMEファイルにあるとおり、ともかくRev\SpecialChar TeX
15284  4を導入しなくてはなりません。パッケージは、The Rev\SpecialChar TeX
15285  4 Web
15286  Site 
15287 \begin_inset Flex URL
15288 status collapsed
15289
15290 \begin_layout Plain Layout
15291
15292 http://publish.aps.org/revtex4/
15293 \end_layout
15294
15295 \end_inset
15296
15297 から入手することができます。これを\SpecialChar LaTeX
15298 が検出することのできる場所に導入してください。それから、適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15299 ィレクトリ)で簡単なRev\SpecialChar TeX
15300  4文書を \SpecialChar LaTeX
15301 でコンパイルできるかどうか確認してください。この後、\SpecialChar LyX
15302 を環境構成すると、クラスファイルを検出し、Rev\SpecialChar TeX
15303 4テキストクラスが使用
15304 できるようになるはずです。
15305 \end_layout
15306
15307 \begin_layout Standard
15308 使い始めるには、
15309 \family typewriter
15310 tex2lyx
15311 \family default
15312 を使ってRev\SpecialChar TeX
15313  4文書を読み込むか、またはひな型ディレクトリにある
15314 \family sans
15315 Revtex
15316 \begin_inset space ~
15317 \end_inset
15318
15319 4
15320 \family default
15321 のひな型を使うのが、おそらく一番簡単な方法でしょう。
15322 \end_layout
15323
15324 \begin_layout Subsection
15325 プリアンブルに関すること
15326 \end_layout
15327
15328 \begin_layout Standard
15329
15330 \family typewriter
15331
15332 \backslash
15333 documentclass
15334 \family default
15335 に与える「preprint」や「aps」のような非必須引数は、他のクラス同様、
15336 \family sans
15337 文書\SpecialChar menuseparator
15338 設定\SpecialChar menuseparator
15339 文書クラス
15340 \family default
15341
15342 \family sans
15343 クラスオプション
15344 \family default
15345 フィールドに入れます。Rev\SpecialChar TeX
15346 では、少なくとも一つの非必須引数が必要なことに注意してください。
15347 \end_layout
15348
15349 \begin_layout Standard
15350
15351 \family typewriter
15352
15353 \backslash
15354 draft
15355 \family default
15356 など他のプリアンブルは、他のクラス同様、
15357 \family sans
15358 文書\SpecialChar menuseparator
15359 設定\SpecialChar menuseparator
15360 \SpecialChar LaTeX
15361 プリアンブル
15362 \family default
15363 に入れてください。
15364 \end_layout
15365
15366 \begin_layout Subsection
15367 レイアウト
15368 \end_layout
15369
15370 \begin_layout Standard
15371 レイアウトは、基本的にRev\SpecialChar TeX
15372 4.0のコマンドに対応しています。たとえば、Emailレイアウトは、
15373 \family typewriter
15374
15375 \backslash
15376 email{}
15377 \family default
15378 に対応しています。(少なくともRev\SpecialChar TeX
15379  4.0 Beta現在では)
15380 \family sans
15381 住所
15382 \family default
15383
15384 \family sans
15385 所属
15386 \family default
15387 はまったく同じものなので、両方を使う必要はありません
15388 \begin_inset Foot
15389 status collapsed
15390
15391 \begin_layout Plain Layout
15392 ついでながら、
15393 \family typewriter
15394 tex2lyx
15395 \family default
15396 は両方とも対応しているので、
15397 \family typewriter
15398
15399 \backslash
15400 address
15401 \family default
15402
15403 \family typewriter
15404
15405 \backslash
15406 affiliation
15407 \family default
15408 のどちらも翻訳することができます。
15409 \end_layout
15410
15411 \end_inset
15412
15413
15414 \end_layout
15415
15416 \begin_layout Subsection
15417 重要な注意
15418 \end_layout
15419
15420 \begin_layout Standard
15421 Rev\SpecialChar TeX
15422  4には、バグを引き起こしがちなために、気をつけなくてはならない特殊な面がいくつかあるため、\SpecialChar LyX
15423 ではさらに気をつけなくてはなりません。
15424 \end_layout
15425
15426 \begin_layout Standard
15427 Rev\SpecialChar TeX
15428 では、
15429 \family typewriter
15430
15431 \backslash
15432 thanks
15433 \family default
15434 コマンドは、
15435 \family typewriter
15436
15437 \backslash
15438 author
15439 \family default
15440 コマンドの
15441 \emph on
15442 外側
15443 \emph default
15444 に来なくてはなりません。\SpecialChar LyX
15445 では、独立した
15446 \family sans
15447 感謝
15448 \family default
15449 レイアウトがこの働きをします。直接
15450 \family sans
15451 、著者
15452 \family default
15453 レイアウトに脚注を付けてしまうと、おかしなことが起こる可能性があります。詳細については、Rev\SpecialChar TeX
15454  4の取扱説明書をご覧ください。
15455 \end_layout
15456
15457 \begin_layout Standard
15458 また、
15459 \family sans
15460 著者電子メール
15461 \family default
15462
15463 \family sans
15464 著者URL・感謝(thanks)
15465 \family default
15466 レイアウトは、
15467 \family sans
15468 著者
15469 \family default
15470 レイアウトと
15471 \family sans
15472 住所(
15473 \family default
15474 または同等の
15475 \family sans
15476 所属
15477 \family default
15478 )レイアウトの間に置かなければなりません。
15479 \family sans
15480 感謝(thanks)
15481 \family default
15482
15483 \family sans
15484 住所
15485 \family default
15486 の後に置いてしまうと、\SpecialChar LaTeX
15487 はコンパイルに失敗します。
15488 \end_layout
15489
15490 \begin_layout Subsection
15491 問題点
15492 \end_layout
15493
15494 \begin_layout Standard
15495 このレイアウトの主な問題点は、電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません。例
15496 えば、節レイアウトも非必須引数を使用することができません)。これは、たとえばページヘッダにヘッダ用タイトルを設定したい場合などには、ファイルを\SpecialChar LaTeX
15497 ファイルに変換した
15498 後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません)、テキストエディタを使って\SpecialChar LaTeX
15499 ファイルを編集し、非必須引数を書き加えなくてはならないということで
15500 す。これらのレイアウトがないと、
15501 \family typewriter
15502
15503 \backslash
15504 altaffiliation
15505 \family default
15506 (またそれと同等な
15507 \family typewriter
15508
15509 \backslash
15510 altaddress
15511 \family default
15512 )は使えませんので、対応するレイアウトは存在せず、手動で書き加える必要があります
15513 \begin_inset Foot
15514 status collapsed
15515
15516 \begin_layout Plain Layout
15517
15518 \emph on
15519 JMarcからの註:
15520 \emph default
15521  実は、\SpecialChar LyX
15522  1.3.0 では非必須引数を一部サポートしているのですが、このレイアウトは、まだこの機能を使うようにはアップデートされていないのです。
15523 \end_layout
15524
15525 \end_inset
15526
15527
15528 \end_layout
15529
15530 \begin_layout Section
15531 Springer学術誌(
15532 \family sans
15533 svjour)
15534 \end_layout
15535
15536 \begin_layout Standard
15537
15538 \noun on
15539 Martin Vermeer
15540 \noun default
15541
15542 \end_layout
15543
15544 \begin_layout Subsection
15545 説明
15546 \end_layout
15547
15548 \begin_layout Standard
15549 これは、Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです。
15550 \begin_inset Flex URL
15551 status collapsed
15552
15553 \begin_layout Plain Layout
15554
15555 http://www.springer.de/author/tex/help-journals.html
15556 \end_layout
15557
15558 \end_inset
15559
15560 に必要なクラスファイル(\SpecialChar LaTeX2e
15561 用になりました)とそれに対応する学術誌の一覧があります。このレイアウトはモジュール式になっています。つまり、全ジャーナル共通部分は
15562 \family typewriter
15563 svjour.inc
15564 \family default
15565 に実装されており、各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15566 \family typewriter
15567 svjog.layout
15568 \family default
15569 など)から取り込むことができます。
15570 \end_layout
15571
15572 \begin_layout Standard
15573 このことは、上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには、
15574 \family typewriter
15575 svjog.layout
15576 \family default
15577 に書かれている指示に従って、自作の
15578 \family typewriter
15579 sv
15580 \family default
15581 <学術誌名>
15582 \family typewriter
15583 .layout
15584 \family default
15585 を書くだけで良いことを意味します。
15586 \end_layout
15587
15588 \begin_layout Standard
15589 このレイアウトは、Journal of Geodesyに対してのみ、充分な試験が為されています。
15590 \family typewriter
15591 svjour
15592 \family default
15593
15594 \family typewriter
15595 svjog
15596 \family default
15597 は、標準\SpecialChar LyX
15598 頒布版に収録済みです。関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し、\SpecialChar LaTeX
15599 を再設定した後(teTeXの場合は、必
15600 要に応じてroot権限で
15601 \family typewriter
15602 texhash
15603 \family default
15604 を実行します)、\SpecialChar LyX
15605 を環境構成すれば、動作するはずです。
15606 \end_layout
15607
15608 \begin_layout Subsection
15609 新スタイル
15610 \end_layout
15611
15612 \begin_layout Standard
15613 多くの定理環境 — 
15614 \family sans
15615 主張
15616 \family default
15617
15618 \family sans
15619 推論
15620 \family default
15621 ・\SpecialChar ldots
15622
15623 \family sans
15624 定理
15625 \family default
15626
15627 \end_layout
15628
15629 \begin_layout Standard
15630
15631 \family sans
15632 ヘッドノート
15633 \family default
15634
15635 \family sans
15636 献呈
15637 \family default
15638
15639 \family sans
15640 サブタイトル・ヘッダ用\SpecialChar LaTeX
15641 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15642 ement)
15643 \family default
15644 。詳しくは Springerのクラスファイルの説明書を読んでください。
15645 \end_layout
15646
15647 \begin_layout Subsection
15648 サポートしているジャーナル
15649 \end_layout
15650
15651 \begin_layout Itemize
15652
15653 \emph on
15654 Journal of Geodesy
15655 \emph default
15656
15657 \family typewriter
15658 svjog.layout
15659 \family default
15660  — Martin Vermeer
15661 \end_layout
15662
15663 \begin_layout Itemize
15664
15665 \emph on
15666 Probability Theory and Related Fields
15667 \emph default
15668
15669 \family typewriter
15670 svprobth.layout
15671 \family default
15672  — Jean-Marc Lasgouttes
15673 \end_layout
15674
15675 \begin_layout Standard
15676 あなた自身のレイアウトファイルをつくってください。難しくはありません。
15677 \end_layout
15678
15679 \begin_layout Subsection
15680 Credits
15681 \end_layout
15682
15683 \begin_layout Standard
15684 これらのファイルは、以前の 
15685 \family typewriter
15686 ejour2.layout
15687 \family default
15688 をもとにしています。
15689 \family typewriter
15690 ejour2.layout
15691 \family default
15692 は Springerの\SpecialChar LaTeX
15693  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです。これらのファイルはすでにありません。Jean-Marc
15694  Lasgouttesのおかげで \SpecialChar LyX
15695 のレイアウトファイルのメカニズムをよりよく理解することができました。
15696 \end_layout
15697
15698 \begin_layout Subsection
15699 バグ
15700 \end_layout
15701
15702 \begin_layout Standard
15703 多分あります。以前の 
15704 \family typewriter
15705 ejour2
15706 \family default
15707 よりは少なくなっているとは思いますが。
15708 \end_layout
15709
15710 \begin_layout Standard
15711 制限事項:定理環境の環境の番号は表示されません。#が表示されるだけです。
15712 \end_layout
15713
15714 \begin_layout Section
15715 Slides (別名
15716 \noun on
15717 Sli\SpecialChar TeX
15718
15719 \noun default
15720 )
15721 \begin_inset Foot
15722 status collapsed
15723
15724 \begin_layout Plain Layout
15725 (訳註)この節の内容は、全般的に古くなっています。
15726 \end_layout
15727
15728 \end_inset
15729
15730
15731 \begin_inset CommandInset label
15732 LatexCommand label
15733 name "sec:slitex"
15734
15735 \end_inset
15736
15737
15738 \end_layout
15739
15740 \begin_layout Standard
15741
15742 \noun on
15743 John Weiss
15744 \noun default
15745
15746 \end_layout
15747
15748 \begin_layout Subsection
15749 はじめに
15750 \end_layout
15751
15752 \begin_layout Standard
15753 本節では、オーバーへッドプロジェクタ用のスライドをつくるのに、\SpecialChar LyX
15754 をどのように使えばよいかを説明します。これを行う文書クラスには、既定のslideクラスと
15755 \family sans
15756 Foil\SpecialChar TeX
15757
15758 \family default
15759 スライドクラスの2つがあります。本節は前者について説明を行います。
15760 \end_layout
15761
15762 \begin_layout Standard
15763 誤解のないように、正しく明確に、もう一度言っておきます。
15764 \end_layout
15765
15766 \begin_layout Standard
15767 \begin_inset VSpace bigskip
15768 \end_inset
15769
15770
15771 \end_layout
15772
15773 \begin_layout Standard
15774 \align center
15775
15776 \size large
15777 本節は文書クラス
15778 \begin_inset Quotes eld
15779 \end_inset
15780
15781
15782 \family sans
15783 transparencies (slides)
15784 \family default
15785
15786 \begin_inset Quotes erd
15787 \end_inset
15788
15789
15790 \emph on
15791 のみ
15792 \emph default
15793 を説明しています。
15794 \end_layout
15795
15796 \begin_layout Standard
15797 \begin_inset VSpace bigskip
15798 \end_inset
15799
15800
15801 \end_layout
15802
15803 \begin_layout Standard
15804
15805 \family sans
15806 「slides (Foil\SpecialChar TeX
15807 )
15808 \family default
15809 」の説明をお探しならば、第
15810 \begin_inset CommandInset ref
15811 LatexCommand ref
15812 reference "sec:foiltex"
15813
15814 \end_inset
15815
15816 節をご覧ください。
15817 \family sans
15818 foils
15819 \family default
15820 クラス「
15821 \family sans
15822 slides (Foil\SpecialChar TeX
15823 )
15824 \family default
15825 」は、実際、本節で説明している既定
15826 \family sans
15827 slides
15828 \family default
15829 クラスよりも良いようです
15830 \begin_inset Foot
15831 status collapsed
15832
15833 \begin_layout Plain Layout
15834 \SpecialChar ldots
15835
15836 \family sans
15837 Foil\SpecialChar TeX
15838
15839 \family default
15840 の支持者からは聞いています。けれども私は使ったことがないので、本当かどうか確かめようがありません。
15841 \end_layout
15842
15843 \end_inset
15844
15845
15846 \end_layout
15847
15848 \begin_layout Standard
15849 このクラスは、旧SLI\SpecialChar TeX
15850 パッケージを\SpecialChar LaTeX2e
15851 用に改良したものです。\SpecialChar LaTeX2e
15852 頒布版すべてが、このクラス(以下では単に「
15853 \family sans
15854 slides
15855 \family default
15856 」と述べることにします)を含んでいるので、あなたもお持ちのはずです。前述の
15857 \family sans
15858 foils
15859 \family default
15860 のように、同じくオーバーへッドプロジェクタ用のスライドを生成しながら、このクラスよりも良い仕事をするクラスもあります。しかしながら、オーバーレイを生成するなど、
15861 他のクラスにはできないが
15862 \family sans
15863 slides
15864 \family default
15865 ならばできることもあります。詳しくは以下をお読みください。
15866 \end_layout
15867
15868 \begin_layout Subsection
15869 使い始めるには
15870 \begin_inset CommandInset label
15871 LatexCommand label
15872 name "sec:slidesetup"
15873
15874 \end_inset
15875
15876
15877 \end_layout
15878
15879 \begin_layout Standard
15880 当然ながら、この文書クラスを使用するには、
15881 \family sans
15882 文書\SpecialChar menuseparator
15883 設定
15884 \family default
15885 ダイアログのクラスリストから「
15886 \family sans
15887 transparencies (slides)
15888 \family default
15889 」を選択しなくてはなりません。このクラスについて、以下のように、特に知っておいた方が良いことがいくつかあります。
15890 \end_layout
15891
15892 \begin_layout Itemize
15893
15894 \family sans
15895 用紙方向
15896 \family default
15897
15898 \family sans
15899 二段組文書
15900 \family default
15901 の各オプションは、あえて変更する必要はありません。これらのオプションは、
15902 \family sans
15903 slides
15904 \family default
15905 クラスではサポートされていないので、効果がありません。
15906 \end_layout
15907
15908 \begin_layout Itemize
15909
15910 \family sans
15911 ヘディング様式
15912 \family default
15913 オプションは、このクラスでは少し異なった振る舞いをします。各選択肢とその機能は、以下の通りです。
15914 \begin_inset Separator parbreak
15915 \end_inset
15916
15917
15918 \end_layout
15919
15920 \begin_deeper
15921 \begin_layout Description
15922 プレーン(plain) 最終出力の右下隅にページ番号が付きます。
15923 \end_layout
15924
15925 \begin_layout Description
15926 設定(headings)
15927 \family sans
15928  プレーン(plain)
15929 \family default
15930 と同様ですが、それ以外にあなたが指定したタイムマーカーをすべて出力します。これが既定値です。
15931 \end_layout
15932
15933 \begin_layout Description
15934 空 最終出力には、ページ番号もタイムマーカーも位置揃えマーカーも出力されません。
15935 \end_layout
15936
15937 \end_deeper
15938 \begin_layout Itemize
15939
15940 \family sans
15941 slides
15942 \family default
15943 クラスには、もう一つ
15944 \family typewriter
15945 clock
15946 \family default
15947 というオプションがあります。これを使用するには、
15948 \family sans
15949 クラスオプション
15950 \family default
15951 に「
15952 \family typewriter
15953 clock
15954 \family default
15955 」と入力してください。
15956 \begin_inset Separator parbreak
15957 \end_inset
15958
15959
15960 \end_layout
15961
15962 \begin_deeper
15963 \begin_layout Standard
15964 このオプションを使うと、
15965 \family sans
15966 注釈
15967 \family default
15968 にタイムマーカーを加えることができます。詳細は、第
15969 \begin_inset CommandInset ref
15970 LatexCommand ref
15971 reference "sec:スライド注釈"
15972
15973 \end_inset
15974
15975 節をご覧ください。
15976 \end_layout
15977
15978 \end_deeper
15979 \begin_layout Standard
15980
15981 \family sans
15982 slides
15983 \family default
15984 クラスを用いた文書を自動的にセットアップするには、ひな型ファイル「
15985 \family typewriter
15986 slides.lyx
15987 \family default
15988 」を使用することもできます(新規ファイルを開く際に
15989 \family sans
15990 ファイル\SpecialChar menuseparator
15991 新規(ひな型使用)
15992 \family default
15993 を使用してください)。ひな型ファイルには、このクラスが使用する特別な段落環境の用例も含まれています。これらについては、以下で説明します。
15994 \end_layout
15995
15996 \begin_layout Subsection
15997 段落環境
15998 \end_layout
15999
16000 \begin_layout Subsubsection
16001
16002 \family sans
16003 サポートされている環境
16004 \end_layout
16005
16006 \begin_layout Standard
16007 新しく
16008 \family sans
16009 slides
16010 \family default
16011 文書を開いたときにまず気付くのは、フォント寸法とフォント族の違いでしょう。ここでは、
16012 \family sans
16013 サンセリフ体
16014 \family default
16015 フォントの
16016 \family sans
16017 極大
16018 \family default
16019 寸法が用いられており、出力でもこのフォントが使用されます。これは、現在スライドを作成中であることの「目印」だと考えてください。出力スライドは大きなフォントを使用
16020 するため、書ける場所は少なくなります。もちろん、既定の大きな画面フォントはWYSIWYGではなく、スライドであることの目印に過ぎません。
16021 \end_layout
16022
16023 \begin_layout Standard
16024 次に気付くのは、(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう。通常見かける環境の多くがなくなって、代わりに5つの新しい環境が入ってい
16025 ます。これは、
16026 \family sans
16027 slides
16028 \family default
16029 クラスが、標準段落環境のうち以下のものしかサポートしていないためです。
16030 \end_layout
16031
16032 \begin_layout Itemize
16033
16034 \family sans
16035 標準
16036 \end_layout
16037
16038 \begin_layout Itemize
16039
16040 \family sans
16041 箇条書き(記号)
16042 \end_layout
16043
16044 \begin_layout Itemize
16045
16046 \family sans
16047 箇条書き(連番)
16048 \end_layout
16049
16050 \begin_layout Itemize
16051
16052 \family sans
16053 箇条書き(記述)
16054 \end_layout
16055
16056 \begin_layout Itemize
16057
16058 \family sans
16059 箇条書き(一覧)
16060 \end_layout
16061
16062 \begin_layout Itemize
16063
16064 \family sans
16065 引用(字下げあり)
16066 \end_layout
16067
16068 \begin_layout Itemize
16069
16070 \family sans
16071 引用(字下げなし)
16072 \end_layout
16073
16074 \begin_layout Itemize
16075
16076 \family sans
16077 詩句
16078 \end_layout
16079
16080 \begin_layout Itemize
16081
16082 \family sans
16083 キャプション
16084 \end_layout
16085
16086 \begin_layout Itemize
16087
16088 \family sans
16089 \SpecialChar LyX
16090 コード
16091 \end_layout
16092
16093 \begin_layout Itemize
16094
16095 \family sans
16096 コメント
16097 \end_layout
16098
16099 \begin_layout Standard
16100 これ以外の標準的な環境、例えば節見出し用の環境などは
16101 \family sans
16102 slides
16103 \family default
16104 クラスでは使えません。
16105 \end_layout
16106
16107 \begin_layout Standard
16108 一方、以下の新しい環境があります。
16109 \end_layout
16110
16111 \begin_layout Itemize
16112
16113 \family sans
16114 スライド
16115 \end_layout
16116
16117 \begin_layout Itemize
16118
16119 \family sans
16120 オーバーレイ
16121 \end_layout
16122
16123 \begin_layout Itemize
16124
16125 \family sans
16126 注釈
16127 \end_layout
16128
16129 \begin_layout Itemize
16130
16131 \family sans
16132 不可視文
16133 \end_layout
16134
16135 \begin_layout Itemize
16136
16137 \family sans
16138 可視文
16139 \end_layout
16140
16141 \begin_layout Standard
16142 これら5つの環境は、\SpecialChar LyX
16143 の「機能」のために使い方に癖があります。ご存じのように、\SpecialChar LyX
16144 では、空の段落環境に他の環境を入れることができません。それ自体は素晴らしいデザインな
16145 のですが、これは、スライドを平文以外では書き始めることができないことを意味します。これを取り扱うためには、ちょっとした「\SpecialChar LaTeX
16146 マジック」が必要になります。
16147 \end_layout
16148
16149 \begin_layout Subsubsection
16150 新環境の癖
16151 \begin_inset CommandInset label
16152 LatexCommand label
16153 name "sec:スライドの癖"
16154
16155 \end_inset
16156
16157
16158 \end_layout
16159
16160 \begin_layout Standard
16161 5つの新しい環境にはすべて、\SpecialChar LyX
16162 現行版の制約に由来する癖があります。いま述べたように、\SpecialChar LyX
16163 では、環境を別の環境で開始することが禁止されています。これを回避するために、
16164 \family sans
16165 スライド
16166 \family default
16167 環境は『
16168 \emph on
16169 ユーザーの手引き
16170 \emph default
16171 』で述べられているような段落環境ではなくなっています。
16172 \end_layout
16173
16174 \begin_layout Standard
16175
16176 \family sans
16177 スライド
16178 \family default
16179
16180 \family sans
16181 オーバーレイ
16182 \family default
16183
16184 \family sans
16185 注釈
16186 \family default
16187 は「疑似環境」だとお考えください。これらは節見出しや「
16188 \family sans
16189 キャプション
16190 \family default
16191 」のように見えますが、実際には(必要なら前段落を終了して)新しい段落環境を開始します。同様に、
16192 \family sans
16193 不可視文
16194 \family default
16195
16196 \family sans
16197 可視文
16198 \family default
16199 も「疑似コマンド」とお考えください。この2つは特定のアクションを行います。
16200 \end_layout
16201
16202 \begin_layout Standard
16203
16204 \family sans
16205 スライド
16206 \family default
16207
16208 \family sans
16209 オーバーレイ
16210 \family default
16211
16212 \family sans
16213 注釈
16214 \family default
16215
16216 \family sans
16217 不可視文
16218 \family default
16219
16220 \family sans
16221 可視文
16222 \family default
16223 の5環境に共通しているのは、長めのラベルを持つことです。このラベルに続く文章—通常は段落環境の内容になるはずですが—は、
16224 \family sans
16225 スライド
16226 \family default
16227
16228 \family sans
16229 オーバーレイ
16230 \family default
16231
16232 \family sans
16233 注釈
16234 \family default
16235
16236 \family sans
16237 不可視文
16238 \family default
16239
16240 \family sans
16241 可視文
16242 \family default
16243 では、まったく意味がなく、\SpecialChar LyX
16244 はこの部分を完全に無視します。これらの5つの環境の内容は、完全に空のままにしておいて構いません。
16245 \end_layout
16246
16247 \begin_layout Standard
16248 長めのラベルの後に文章を入れる
16249 \emph on
16250 必要は
16251 \emph default
16252 まったく
16253 \emph on
16254 ない
16255 \emph default
16256 とはいえ、何か書いておきたいこともあるかもしれません。たとえば、スライドの内容に関する短い説明などがそうでしょう。この場合、いつもどおり説明用のコメントを入力し
16257
16258 \family sans
16259 Return
16260 \family default
16261 を押してください。
16262 \end_layout
16263
16264 \begin_layout Standard
16265 一方、説明文を入れたくない場合には、\SpecialChar LyX
16266 の制約に直面します。自然が真空を憎むように、\SpecialChar LyX
16267 では、古い環境に何かを置くまでは、その中に新しい環境を入れることができません。そ
16268 こで以下のようにしてください。
16269 \end_layout
16270
16271 \begin_layout Itemize
16272 新しい
16273 \family sans
16274 スライド
16275 \family default
16276
16277 \family sans
16278 オーバーレイ
16279 \family default
16280
16281 \family sans
16282 注釈
16283 \family default
16284
16285 \family sans
16286 不可視文
16287 \family default
16288
16289 \family sans
16290 可視文
16291 \family default
16292
16293 \emph on
16294 中に入れる
16295 \emph default
16296 文章を入力してください。
16297 \end_layout
16298
16299 \begin_layout Itemize
16300 段落の先頭に移動します。
16301 \end_layout
16302
16303 \begin_layout Itemize
16304 次に
16305 \family sans
16306 Return
16307 \family default
16308 を押します。
16309 \end_layout
16310
16311 \begin_layout Itemize
16312 最後に、この新しい空の段落を
16313 \family sans
16314 スライド
16315 \family default
16316
16317 \family sans
16318 オーバーレイ
16319 \family default
16320
16321 \family sans
16322 注釈
16323 \family default
16324
16325 \family sans
16326 不可視文
16327 \family default
16328
16329 \family sans
16330 可視文
16331 \family default
16332 に変更します。
16333 \end_layout
16334
16335 \begin_layout Standard
16336 将来の\SpecialChar LyX
16337 では、このような癖が解決されることを祈っています\SpecialChar ldots
16338
16339 \begin_inset Foot
16340 status collapsed
16341
16342 \begin_layout Plain Layout
16343 (訳註)ここの記述は古くなっています。
16344 \end_layout
16345
16346 \end_inset
16347
16348
16349 \end_layout
16350
16351 \begin_layout Subsection
16352
16353 \family sans
16354 スライド
16355 \family default
16356
16357 \family sans
16358 オーバーレイ
16359 \family default
16360
16361 \family sans
16362 注釈で発表用のスライドを作る
16363 \end_layout
16364
16365 \begin_layout Subsubsection
16366
16367 \family sans
16368 スライド
16369 \family default
16370 環境を使う
16371 \end_layout
16372
16373 \begin_layout Standard
16374 もし本節が、実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば、大いにがっかりされるかもしれません。当然ながら、プレゼンテーション用の資
16375 料を準備するうえで
16376 \family sans
16377 slides
16378 \family default
16379 クラスを役立てる方法を詳しく説明はしますが、内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16380 の哲学です)。
16381 \end_layout
16382
16383 \begin_layout Standard
16384
16385 \family sans
16386 スライド
16387 \family default
16388 環境を選択すれば(方法は第
16389 \begin_inset CommandInset ref
16390 LatexCommand ref
16391 reference "sec:スライドの癖"
16392
16393 \end_inset
16394
16395 節参照のこと)、\SpecialChar LyX
16396 は新規スライドを開始します。この環境ないし「疑似環境」のラベルは、鮮やかな青で「新規スライド:」と表示されます。この環境の後のテキスト環境や段落
16397 環境は、すべて新規スライドに入ります。簡単ですよね。
16398 \end_layout
16399
16400 \begin_layout Standard
16401 Slidesは、おそらく\SpecialChar LyX
16402 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16403 \family sans
16404 段落レイアウト
16405 \family default
16406 ダイアログで指定できます)。実際、一つのスライドの内容を入力し終わったら、改頁したくなるはずです。仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16407 、入りきらない部分は、次の新規スライドにまわされます。しかしながら、入りきらない部分のスライドにはページ番号が付きませんので、こうするのはお勧めしません。その上
16408 、一枚に収まらないスライドでは、
16409 \family sans
16410 オーバーレイ
16411 \family default
16412 を使用すると干渉する恐れがあります。
16413 \end_layout
16414
16415 \begin_layout Standard
16416
16417 \family sans
16418 オーバーレイ
16419 \family default
16420 環境と
16421 \family sans
16422 注釈
16423 \family default
16424 環境も、
16425 \family sans
16426 スライド
16427 \family default
16428 環境と同様の動作を示します。これらは、青の代わりに鮮やかなマゼンタで、それぞれ「
16429 \noun on
16430 新規オーバーレイ
16431 \noun default
16432 :」ないし「
16433 \noun on
16434 新規注釈:
16435 \noun default
16436 」というラベルを表示します。ラベルのフォントも、3つの環境でそれぞれ異なるものが使用されます。
16437 \end_layout
16438
16439 \begin_layout Standard
16440
16441 \family sans
16442 スライド
16443 \family default
16444 と同様に、
16445 \family sans
16446 オーバーレイ
16447 \family default
16448
16449 \family sans
16450 注釈
16451 \family default
16452 の内容が、一つのスライドないしページに物理的に収まりきらない場合には、余分は新規スライドに回されます。この場合には、
16453 \family sans
16454 注釈
16455 \family default
16456
16457 \family sans
16458 オーバーレイ
16459 \family default
16460 の本来の目的が達せられなくなりますので、ここでもこのような状態は避けるべきでしょう。
16461 \end_layout
16462
16463 \begin_layout Subsubsection
16464
16465 \family sans
16466 スライドでオーバーレイを使用する
16467 \end_layout
16468
16469 \begin_layout Standard
16470
16471 \family sans
16472 オーバーレイ
16473 \family default
16474 の背後にある考え方は、別のスライドの上にスライドを載せようとするものです。メインの
16475 \family sans
16476 スライド
16477 \family default
16478 に図があるとき、関連した文章を表示する前に、図について議論を進めたいと思うことがあるかもしれません。これを行うひとつの方法は、
16479 \family sans
16480 スライド
16481 \family default
16482 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが、この方法は、たとえばグラフを他のグラフに重ねたい場合などには、うまく行きません。この場合には、二つ
16483 のグラフを揃えるために、重ねる二つのスライドを、喋りながら手探りで揃えなくてはなりません。これらのような場合には、
16484 \family sans
16485 オーバーレイ
16486 \family default
16487 環境を使えば、もっと楽になります。
16488 \end_layout
16489
16490 \begin_layout Standard
16491
16492 \family sans
16493 オーバーレイ
16494 \family default
16495 は、「親」
16496 \family sans
16497 スライド
16498 \family default
16499 のページ番号を引継ぎ、その後に「
16500 \family typewriter
16501 -a
16502 \family default
16503 」を付け加えます
16504 \begin_inset Foot
16505 status collapsed
16506
16507 \begin_layout Plain Layout
16508 想像できるように、複数のオーバーレイがあれば、「
16509 \family typewriter
16510 -a
16511 \family default
16512 」「
16513 \family typewriter
16514 -b
16515 \family default
16516 」「
16517 \family typewriter
16518 -c
16519 \family default
16520 」などが親スライドのページ番号に付け加えられます。
16521 \end_layout
16522
16523 \end_inset
16524
16525 。当然のことながら、
16526 \family sans
16527 スライド
16528 \family default
16529
16530 \family sans
16531 オーバーレイ
16532 \family default
16533 の内容は両方とも、1枚のスライドに物理的に収まるようになっていなければなりません。
16534 \family sans
16535 オーバーレイ
16536 \family default
16537
16538 \family sans
16539 スライド
16540 \family default
16541 の「一部」であると考えるのがよいでしょう。\SpecialChar LyX
16542 では、
16543 \family sans
16544 オーバーレイ
16545 \family default
16546 のラベルを
16547 \family sans
16548 スライド
16549 \family default
16550 のラベルよりも下げることで、このことを視覚的に表しています。また、印刷可能な出力を生成すると、
16551 \family sans
16552 オーバーレイ
16553 \family default
16554 と親
16555 \family sans
16556 スライド
16557 \family default
16558 両方の四隅に、揃えマーカーがあることに気づかれるはずです。これは、2枚のスライドを物理的に重ね合わせるための補助となるものです。
16559 \end_layout
16560
16561 \begin_layout Standard
16562 2つのスライドをオーバーレイさせる際の大きな問題は、2枚のスライドの内容を揃えることです。2枚目のスライドのグラフには、どれだけの余白を残しておくべきなのでしょ
16563 うか?さらにややこしく、2枚目のスライドにグラフと文章を入れたいときに、その間に割り込んでしまうような文章がメインスライドにある場合には、どうでしょうか?正しい
16564 寸法の垂直スペースを挿入してみることもできるでしょう。しかし、もっと良い方法として、
16565 \family sans
16566 不可視文
16567 \family default
16568
16569 \family sans
16570 可視文
16571 \family default
16572 を使用する方法があります。
16573 \end_layout
16574
16575 \begin_layout Standard
16576 これらの名前が意味するとおり、
16577 \family sans
16578 不可視文
16579 \family default
16580
16581 \family sans
16582 可視文
16583 \family default
16584 は、それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です。しかしながら、第
16585 \begin_inset CommandInset ref
16586 LatexCommand ref
16587 reference "sec:スライドの癖"
16588
16589 \end_inset
16590
16591 節で述べたように、この2つの環境の
16592 \emph on
16593
16594 \emph default
16595 には何も置くことができません。
16596 \family sans
16597 不可視文
16598 \family default
16599 を作成すると、「<以下不可視文>」と書かれた水色のラベルが、ページに中央揃えで表示されます。このラベルに続く段落は、それが置かれるべき
16600 \family sans
16601 スライド
16602 \family default
16603 (あるいは
16604 \family sans
16605 オーバーレイ
16606 \family default
16607 ;どちらでも同じことです)部分に、代わりに空白の部分が置かれます。
16608 \end_layout
16609
16610 \begin_layout Standard
16611
16612 \family sans
16613 可視文
16614 \family default
16615 の場合には、中央揃えのラベルは、鮮やかな緑の「<以下可視文>」となります。このラベル以降の段落は、通常通りの挙動を示します。新規の
16616 \family sans
16617 スライド
16618 \family default
16619
16620 \family sans
16621 オーバーレイ
16622 \family default
16623
16624 \family sans
16625 注釈
16626 \family default
16627 を開始すると、
16628 \family sans
16629 不可視文
16630 \family default
16631 は自動的に終了されることに注意してください。したがって、
16632 \family sans
16633 スライド
16634 \family default
16635 の終わりでは、
16636 \family sans
16637 可視文
16638 \family default
16639 を使用する必要はありません。
16640 \end_layout
16641
16642 \begin_layout Standard
16643 ここまでで、
16644 \family sans
16645 スライド
16646 \family default
16647
16648 \family sans
16649 オーバーレイ
16650 \family default
16651 上で
16652 \family sans
16653 不可視文
16654 \family default
16655
16656 \family sans
16657 可視文
16658 \family default
16659 を適切に使用して、スライドをオーバーレイさせる方法が明らかになったことと思います。
16660 \end_layout
16661
16662 \begin_layout Enumerate
16663 メインのスライドか
16664 \family sans
16665 オーバーレイ
16666 \family default
16667 かに関わらず、スライド上に現れるすべてを含んだ
16668 \family sans
16669 スライド
16670 \family default
16671 を作成します。
16672 \end_layout
16673
16674 \begin_layout Enumerate
16675
16676 \family sans
16677 オーバーレイ
16678 \family default
16679 のみに表示するすべての図や段落の前に、
16680 \family sans
16681 不可視文
16682 \family default
16683 環境を挿入し、必要ならば、
16684 \family sans
16685 オーバーレイ
16686 \family default
16687 のみの文章の後に
16688 \family sans
16689 可視文
16690 \family default
16691 環境を挿入します。
16692 \end_layout
16693
16694 \begin_layout Enumerate
16695
16696 \family sans
16697 スライド
16698 \family default
16699 の直後から、
16700 \family sans
16701 オーバーレイ
16702 \family default
16703 を開始します。
16704 \end_layout
16705
16706 \begin_layout Enumerate
16707 この
16708 \family sans
16709 スライド
16710 \family default
16711 の内容を
16712 \family sans
16713 オーバーレイ
16714 \family default
16715 にコピーします。
16716 \end_layout
16717
16718 \begin_layout Enumerate
16719
16720 \family sans
16721 オーバーレイ
16722 \family default
16723 内部の
16724 \family sans
16725 不可視文
16726 \family default
16727 行をすべて
16728 \family sans
16729 不可視文
16730 \family default
16731 に変更し、
16732 \family sans
16733 可視文
16734 \family default
16735
16736 \family sans
16737 不可視文
16738 \family default
16739 に変更します。
16740 \end_layout
16741
16742 \begin_layout Standard
16743 これだけです。これで
16744 \family sans
16745 オーバーレイ
16746 \family default
16747 ができあがりました。
16748 \end_layout
16749
16750 \begin_layout Standard
16751 \SpecialChar LyX
16752  
16753 \family sans
16754 slides
16755 \family default
16756 クラスをデザインする上で、ひとつ残された問題があります。段落途中の文章を不可視にしたり、不可視段落の途中の文章を再度可視にしたりすることはできないのです。これを
16757 実現するためには、\SpecialChar LaTeX
16758 コードを埋め込む必要があります
16759 \begin_inset Foot
16760 status collapsed
16761
16762 \begin_layout Plain Layout
16763 このコマンドは、
16764 \end_layout
16765
16766 \begin_layout Itemize
16767
16768 \family typewriter
16769 {
16770 \backslash
16771 invisible \SpecialChar ldots
16772  }
16773 \end_layout
16774
16775 \begin_layout Itemize
16776
16777 \family typewriter
16778 {
16779 \backslash
16780 visible \SpecialChar ldots
16781  }
16782 \end_layout
16783
16784 \begin_layout Plain Layout
16785 \SpecialChar ldots
16786 のような形となり、\SpecialChar TeX
16787 としてマークする必要があります。「可視性」を変更したい文章は、波括弧のあいだ(そして
16788 \family typewriter
16789
16790 \backslash
16791 invisible
16792 \family default
16793 ないし
16794 \family typewriter
16795
16796 \backslash
16797 visible
16798 \family default
16799 コマンドの後ろ)に入れます。\SpecialChar TeX
16800 としてマークする方法がわからない場合は、
16801 \emph on
16802 ユーザーの手引き
16803 \emph default
16804 をご参照ください。
16805 \end_layout
16806
16807 \end_inset
16808
16809
16810 \end_layout
16811
16812 \begin_layout Subsubsection
16813
16814 \family sans
16815 スライドで注釈を使う
16816 \family default
16817
16818 \begin_inset CommandInset label
16819 LatexCommand label
16820 name "sec:スライド注釈"
16821
16822 \end_inset
16823
16824
16825 \end_layout
16826
16827 \begin_layout Standard
16828
16829 \family sans
16830 オーバーレイ
16831 \family default
16832 と同様、
16833 \family sans
16834 注釈
16835 \family default
16836 も「親」
16837 \family sans
16838 スライド
16839 \family default
16840 に関連付けられています。ここでも\SpecialChar LyX
16841
16842 \family sans
16843 スライド
16844 \family default
16845 クラスは視覚的な効果を与えています。
16846 \family sans
16847 注釈
16848 \family default
16849 のラベルは
16850 \family sans
16851 スライド
16852 \family default
16853 よりも短く(オーバーレイのラベルよりも長いですが)、
16854 \family sans
16855 オーバーレイ
16856 \family default
16857 のラベルと同様、派手な赤紫色です。加えて、印刷した
16858 \family sans
16859 注釈
16860 \family default
16861 には、「親」スライドのページ番号に「
16862 \family typewriter
16863 -
16864 \family default
16865 1」「
16866 \family typewriter
16867 -
16868 \family default
16869 2」「
16870 \family typewriter
16871 -
16872 \family default
16873 3」等を付けたページ番号が付けられます。1つの
16874 \family sans
16875 スライド
16876 \family default
16877 には、複数の
16878 \family sans
16879 注釈
16880 \family default
16881 を関連付けることができるので、
16882 \family sans
16883 スライド
16884 \family default
16885
16886 \family sans
16887 オーバーレイ
16888 \family default
16889 と同じように、長い注釈は、1枚の紙に収まるように分割したいと思われるに違いありません。
16890 \end_layout
16891
16892 \begin_layout Standard
16893
16894 \family sans
16895 注釈
16896 \family default
16897 の目的は明らかです。
16898 \family sans
16899 スライド
16900 \family default
16901 に関して付け加えたいことを書き留めておくことです。特定の
16902 \family sans
16903 スライド
16904 \family default
16905 についての覚書として使うこともできます。後者の場合には、タイムマーカを利用したいこともあるかもしれません。現在のところ、\SpecialChar LyX
16906
16907 \family sans
16908 スライド
16909 \family default
16910 クラスは、
16911 \noun on
16912 Sli
16913 \noun default
16914 \SpecialChar TeX
16915 の機能であるタイムマーカを「ネイティブには」サポートしていません。したがって、\SpecialChar LaTeX
16916 コードを使用することに頼らなくてはなりません。
16917 \end_layout
16918
16919 \begin_layout Standard
16920 タイムマーカを使用するには、クラスオプション「
16921 \family typewriter
16922 clock
16923 \family default
16924 」を追加指定する必要があります(第
16925 \begin_inset CommandInset ref
16926 LatexCommand ref
16927 reference "sec:slidesetup"
16928
16929 \end_inset
16930
16931 節参照)。このオプションはタイムマーカ機能を有効にして、生成したすべての
16932 \family sans
16933 注釈
16934 \family default
16935 の左下にタイムマーカを表示します。タイムマーカに表示するものを設定するには、\SpecialChar LaTeX
16936 コマンド「
16937 \family typewriter
16938
16939 \backslash
16940 settime{}
16941 \family default
16942 」および「
16943 \family typewriter
16944
16945 \backslash
16946 addtime{}
16947 \family default
16948 」を使用します。両コマンドは、秒で測った時間を引数にとります。「
16949 \family typewriter
16950
16951 \backslash
16952 settime{}
16953 \family default
16954 」は、タイムマーカを特定の時間に設定し、「
16955 \family typewriter
16956
16957 \backslash
16958 addtime{}
16959 \family default
16960 」は、タイムマーカを指定した分だけ進めます。このようにタイムマーカと
16961 \family sans
16962 注釈
16963 \family default
16964 を用いれば、特定の
16965 \family sans
16966 スライド
16967 \family default
16968 にどれだけの時間をかけるのか忘れないでいられます。
16969 \end_layout
16970
16971 \begin_layout Standard
16972 最後に、説明しておくべき機能がもう一つあります。当然ながら、
16973 \family sans
16974 スライド
16975 \family default
16976
16977 \family sans
16978 オーバーレイ
16979 \family default
16980 はすべてスライドに、
16981 \family sans
16982 注釈
16983 \family default
16984 はすべて普通の紙に印刷したいはずです。しかしながら、
16985 \family sans
16986 注釈
16987 \family default
16988 は関連付けられた親スライドの直後に
16989 \emph on
16990 来なくてはなりません
16991 \emph default
16992 。ユーザーはどうしたら良いのでしょうか。
16993 \end_layout
16994
16995 \begin_layout Standard
16996 幸いなことに、どれを印刷するか選択することを可能にする\SpecialChar LaTeX
16997 コマンドが、2種類あります。どちらも文書のプリアンブルに記述されなくてはなりません。コマンド「
16998 \family typewriter
16999
17000 \backslash
17001 onlyslides{
17002 \backslash
17003 slides}
17004 \family default
17005 」は、出力に
17006 \family sans
17007 スライド
17008 \family default
17009
17010 \family sans
17011 オーバーレイ
17012 \family default
17013 のみが含まれるようにするものです。同様に、「
17014 \family typewriter
17015
17016 \backslash
17017 onlynotes{
17018 \backslash
17019 notes}
17020 \family default
17021 」は
17022 \family sans
17023 注釈
17024 \family default
17025 以外の出力をすべて抑制します。私のアドバイスとしては、両コマンドをプリアンブルに書いておいて、最初は両方ともコメントアウトしておくと良いでしょう。そうすれば、執
17026 筆時にはプレゼンテーション全体をプレビューすることができます。いったん書き終えたならば、二つのうち一方のコメントを外して、印刷したい方を選ぶことができます。私な
17027 らば、まず
17028 \family typewriter
17029
17030 \backslash
17031 onlyslides{
17032 \backslash
17033 slides}
17034 \family default
17035 のコメントを外して、現ファイル名に「*
17036 \family typewriter
17037 -slides
17038 \family default
17039 」を付けた新たなファイルに出力を行ない、今度はこの行をふたたびコメントアウトするとともに、「
17040 \family typewriter
17041
17042 \backslash
17043 onlynotes{
17044 \backslash
17045 notes
17046 \family default
17047 }」のコメントを外して、これを「
17048 \family typewriter
17049 *-notes.ps
17050 \family default
17051 」というファイルに出力します。そうすれば、必要に応じて、スライドまたは通常の紙をプリンタにセットし、一方のファイルをプリンタに送ればよいのです。
17052 \end_layout
17053
17054 \begin_layout Standard
17055
17056 \family typewriter
17057
17058 \backslash
17059 onlyslides{}
17060 \family default
17061 」および「
17062 \family typewriter
17063
17064 \backslash
17065 onlynotes{}
17066 \family default
17067 」コマンドには、他の引数を与えることもできます。詳しくは、\SpecialChar LaTeX
17068 の良書をご覧ください。
17069 \end_layout
17070
17071 \begin_layout Subsection
17072
17073 \family sans
17074 slides
17075 \family default
17076 クラスのひな型ファイル
17077 \end_layout
17078
17079 \begin_layout Standard
17080
17081 \family sans
17082 slides
17083 \family default
17084 クラス用のひな型ファイルとして「
17085 \family typewriter
17086 slides.lyx
17087 \family default
17088 」が提供されています。これを使用するには、新しいプレゼンテーションを作り始める際に、
17089 \family sans
17090 ファイル\SpecialChar menuseparator
17091 新規(ひな型使用)
17092 \family default
17093 メニューを選択してください。すると新規ファイルには、
17094 \family sans
17095 スライド
17096 \family default
17097
17098 \family sans
17099 オーバーレイ
17100 \family default
17101
17102 \family sans
17103 注釈
17104 \family default
17105 の組が、例として含まれており、
17106 \family sans
17107 スライド
17108 \family default
17109
17110 \family sans
17111 オーバーレイ
17112 \family default
17113 には、さらに
17114 \family sans
17115 不可視文
17116 \family default
17117
17118 \family sans
17119 可視文
17120 \family default
17121 の使用例も含まれています。また、プリアンブルには、次のように書き込まれています。
17122 \end_layout
17123
17124 \begin_layout LyX-Code
17125 % Uncomment to print out only slides and overlays
17126 \end_layout
17127
17128 \begin_layout LyX-Code
17129 %
17130 \end_layout
17131
17132 \begin_layout LyX-Code
17133 %
17134 \backslash
17135 onlyslides{
17136 \backslash
17137 slides}
17138 \begin_inset Newline newline
17139 \end_inset
17140
17141  
17142 \end_layout
17143
17144 \begin_layout LyX-Code
17145 % Uncomment to print out only notes
17146 \end_layout
17147
17148 \begin_layout LyX-Code
17149 %
17150 \end_layout
17151
17152 \begin_layout LyX-Code
17153 %
17154 \backslash
17155 onlynotes{
17156 \backslash
17157 notes}
17158 \end_layout
17159
17160 \begin_layout Standard
17161 最後に、私はこの文書クラスを、\SpecialChar LaTeX2e
17162 の組み込みクラスである「
17163 \noun on
17164 Sli\SpecialChar TeX
17165
17166 \noun default
17167 エミュレーション」クラスをサポートする目的で作成しました。私も\SpecialChar LyX
17168 チームの他のメンバーも、この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17169 ありません。これは単に、ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです。プレゼンテーションを作成するためには、
17170 \family sans
17171 Foils
17172 \family default
17173 クラス(第
17174 \begin_inset CommandInset ref
17175 LatexCommand ref
17176 reference "sec:foiltex"
17177
17178 \end_inset
17179
17180 節参照)や「
17181 \family typewriter
17182 seminar
17183 \family default
17184 」パッケージ(一部の\SpecialChar TeX
17185 頒布版に含まれています)のように、他の\SpecialChar LaTeX2e
17186 クラスも存在します。私はこれらについては知らないのですが、他にどのようなことができるのか試してみてくだ
17187 さい。
17188 \end_layout
17189
17190 \begin_layout Chapter
17191 ソフトウェアを追加する必要がある \SpecialChar LyX
17192 機能
17193 \end_layout
17194
17195 \begin_layout Section
17196 \SpecialChar TeX
17197 のチェック
17198 \end_layout
17199
17200 \begin_layout Standard
17201
17202 \noun on
17203 Asger Alstrup
17204 \noun default
17205
17206 \end_layout
17207
17208 \begin_layout Subsection
17209 はじめに
17210 \end_layout
17211
17212 \begin_layout Standard
17213
17214 \family typewriter
17215 chktex
17216 \family default
17217 プログラムが導入されていると
17218 \begin_inset Foot
17219 status collapsed
17220
17221 \begin_layout Plain Layout
17222 \SpecialChar LaTeX
17223 頒布版としてMiK\SpecialChar TeX
17224 を使用している場合には、
17225 \family typewriter
17226 chktex
17227 \family default
17228 はまだ利用可能ではありません。
17229 \end_layout
17230
17231 \end_inset
17232
17233
17234 \family sans
17235 ツール
17236 \family default
17237 メニューの下に、
17238 \family sans
17239 \SpecialChar TeX
17240 構文チェック
17241 \family default
17242 という項目が表示されます。
17243 \family typewriter
17244 chktex
17245 \family default
17246 は、CTAN
17247 \begin_inset Newline newline
17248 \end_inset
17249
17250
17251 \begin_inset CommandInset href
17252 LatexCommand href
17253 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17254
17255 \end_inset
17256
17257 から入手することができます。
17258 \end_layout
17259
17260 \begin_layout Standard
17261
17262 \family sans
17263 Chk\SpecialChar TeX
17264
17265 \family default
17266 パッケージは、\SpecialChar LaTeX
17267 の構成物には直感的でないものもあり、すぐ忘れてしまいがちであるのに不満を感じた
17268 \begin_inset Flex Noun
17269 status collapsed
17270
17271 \begin_layout Plain Layout
17272 Jens T.
17273  Berger Thielemann
17274 \end_layout
17275
17276 \end_inset
17277
17278 が書いたプログラムです。このプログラムは、\SpecialChar LaTeX
17279 ファイルを走査して、ファイルの整合性をチェックし、犯しがちな誤りを見つけ出します。別の技術用語では、LaTeXにおける
17280 \family typewriter
17281 lint
17282 \family default
17283 であるとも言えます。
17284 \end_layout
17285
17286 \begin_layout Standard
17287 さて、\SpecialChar LyX
17288 はつねに正しい\SpecialChar LaTeX
17289 ファイルを生成するはずなのに、文法チェッカーは\SpecialChar LyX
17290 で何をするというのでしょうか。答えは簡単です。
17291 \family typewriter
17292 lint
17293 \family default
17294 がC言語プログラムの
17295 \emph on
17296 文法
17297 \emph default
17298 をチェックするだけでなく、打ち間違いによる
17299 \emph on
17300 意味上の
17301 \emph default
17302 チェックも行うように、
17303 \family sans
17304 Chk\SpecialChar TeX
17305
17306 \family default
17307 は、文法エラーの他に犯しがちな
17308 \emph on
17309 写植上の
17310 \emph default
17311 誤りも検出してくれるからです。
17312 \family sans
17313 Chk\SpecialChar TeX
17314
17315 \family default
17316 は、以下のような誤りを検出することができます。
17317 \end_layout
17318
17319 \begin_layout Itemize
17320 省略記号の検出:
17321 \begin_inset Newline newline
17322 \end_inset
17323
17324 ...ではなく\SpecialChar ldots
17325 を使わなくてはなりません
17326 \end_layout
17327
17328 \begin_layout Itemize
17329 括弧の前後にスペースを置かない:
17330 \begin_inset Newline newline
17331 \end_inset
17332
17333 ( wrong spacing ):誤った空白
17334 \end_layout
17335
17336 \begin_layout Itemize
17337 よく使われる省略形の後ろは通常スペースにする:
17338 \begin_inset Newline newline
17339 \end_inset
17340
17341 e.
17342 \begin_inset space \thinspace{}
17343 \end_inset
17344
17345 g.
17346 \begin_inset space \space{}
17347 \end_inset
17348
17349 is too wide spacing.:広すぎる空白
17350 \end_layout
17351
17352 \begin_layout Itemize
17353 直前の文章が大文字で終わっているときに、文末スペースに直す:
17354 \begin_inset Newline newline
17355 \end_inset
17356
17357 This is a TEST.
17358  And this is wrong spacing.:誤った空白
17359 \end_layout
17360
17361 \begin_layout Itemize
17362 ラベルや類似コマンドの前のスペース:
17363 \begin_inset Newline newline
17364 \end_inset
17365
17366 ラベルが別のページに行ってしまわないように、ラベルは文章に接していなくてはなりません。 
17367 \begin_inset CommandInset label
17368 LatexCommand label
17369 name "sec:chktex"
17370
17371 \end_inset
17372
17373  
17374 \begin_inset Foot
17375 status collapsed
17376
17377 \begin_layout Plain Layout
17378 この脚注は、正しくないページに行ってしまう恐れがあります。
17379 \end_layout
17380
17381 \end_inset
17382
17383  このラベルは離れすぎです。
17384 \end_layout
17385
17386 \begin_layout Itemize
17387 参照の前にハードスペースではなくスペース:
17388 \begin_inset Newline newline
17389 \end_inset
17390
17391 運が悪ければ、参照文字列と参照番号のあいだでちょうど改行されてしまい、残念な結果となります。第
17392 \begin_inset CommandInset ref
17393 LatexCommand ref
17394 reference "sec:chktex"
17395
17396 \end_inset
17397
17398 節をご覧ください。
17399 \end_layout
17400
17401 \begin_layout Itemize
17402 数字のあいだで
17403 \begin_inset Formula $\times$
17404 \end_inset
17405
17406 ではなく「x」が使われている:
17407 \begin_inset Newline newline
17408 \end_inset
17409
17410 2x2は、
17411 \begin_inset Formula $2\times2$
17412 \end_inset
17413
17414 よりも安っぽく見えます。
17415 \end_layout
17416
17417 \begin_layout Standard
17418 などなど\SpecialChar ldots
17419
17420 \family sans
17421 Chk\SpecialChar TeX
17422
17423 \family default
17424 は、印刷する前に文書を「仕上げる」上で、たいへん価値のあるツールです。必須のスペルチェックを終えた直後、組版の微調整をする前には、これを実行するべきです。
17425 \end_layout
17426
17427 \begin_layout Subsection
17428 使いかた
17429 \end_layout
17430
17431 \begin_layout Standard
17432 このプログラムを導入したならば、使うのは
17433 \family sans
17434 ツール\SpecialChar menuseparator
17435 \SpecialChar TeX
17436 構文チェック
17437 \family default
17438 を選択するだけなので簡単です。こうすると、\SpecialChar LyX
17439 は使用中の文書の\SpecialChar LaTeX
17440 ファイルを生成して、
17441 \family sans
17442 Chk\SpecialChar TeX
17443
17444 \family default
17445 を起動し、当該ファイルを検査しますが、
17446 \family sans
17447 Chk\SpecialChar TeX
17448
17449 \family default
17450 から警告があった場合には、それを含んだ「エラーボックス」を\SpecialChar LyX
17451 中に挿入します。警告は、誤りのある箇所のそばに置かれるので、メニュー項目の
17452 \family sans
17453 移動\SpecialChar menuseparator
17454 エラー
17455 \family default
17456 を選択するか、既定の
17457 \family typewriter
17458 cua
17459 \family default
17460
17461 \begin_inset Flex Ruby
17462 status collapsed
17463
17464 \begin_layout Plain Layout
17465
17466 \begin_inset Argument post:1
17467 status collapsed
17468
17469 \begin_layout Plain Layout
17470 キー
17471 \end_layout
17472
17473 \end_inset
17474
17475
17476 \end_layout
17477
17478 \end_inset
17479
17480 設定ファイルならば
17481 \begin_inset Flex Ruby
17482 status collapsed
17483
17484 \begin_layout Plain Layout
17485
17486 \family roman
17487 \series medium
17488 \shape up
17489 \size normal
17490 \emph off
17491 \bar no
17492 \noun off
17493 \color none
17494 捷径
17495 \family default
17496 \series default
17497 \shape default
17498 \size default
17499 \emph default
17500 \bar default
17501 \noun default
17502 \color inherit
17503
17504 \begin_inset Argument post:1
17505 status collapsed
17506
17507 \begin_layout Plain Layout
17508 ショートカット
17509 \end_layout
17510
17511 \end_inset
17512
17513
17514 \end_layout
17515
17516 \end_inset
17517
17518
17519 \family sans
17520 C-g
17521 \family default
17522 を押せば、簡単に警告の箇所を見出すことができます。エラーボックスを開けるには、マウスでボックスをクリックするか、
17523 \family typewriter
17524 cua
17525 \family default
17526 鍵設定の場合には捷径鍵
17527 \family sans
17528 C-i
17529 \family default
17530
17531 \family typewriter
17532 emacs
17533 \family default
17534 鍵設定の場合は捷径鍵
17535 \family sans
17536 C-o
17537 \family default
17538 を押します。警告を読み、それが誤りを示していれば修正します。警告が何を意味しているか理解しにくい場合には、無視しても問題はありません。画面上の文書と、
17539 \family sans
17540 Chk\SpecialChar TeX
17541
17542 \family default
17543 を起動する際に行なわれる実際の技術的な操作のあいだには、隠された層があり、この隔たりのせいで、一部の警告が不可解なものになったり、明らかに馬鹿げたものになる場合
17544 があるのです。
17545 \end_layout
17546
17547 \begin_layout Standard
17548 本文書自体、この機能を確認する良い材料になりますので、実行してみてください。すると、かなりの量の警告が出るはずです。これはコンピュータが敏感すぎるせいですので、
17549 警告のほとんどは実際には警告に値しません。
17550 \end_layout
17551
17552 \begin_layout Subsection
17553 微調整のしかた
17554 \end_layout
17555
17556 \begin_layout Standard
17557 場合によっては、
17558 \family sans
17559 Chk\SpecialChar TeX
17560
17561 \family default
17562 は、あなたが望むよりも煩すぎると思うかもしれません。そのような場合には、必要と思うまで
17563 \family sans
17564 Chk\SpecialChar TeX
17565
17566 \family default
17567 を無効にするか、あなたにもう少し合うように
17568 \family sans
17569 Chk\SpecialChar TeX
17570
17571 \family default
17572 を調整することができます。
17573 \end_layout
17574
17575 \begin_layout Standard
17576
17577 \family sans
17578 Chk\SpecialChar TeX
17579
17580 \family default
17581 は調整や拡張がひじょうに柔軟なのですが、\SpecialChar LyX
17582 における
17583 \family sans
17584 Chk\SpecialChar TeX
17585
17586 \family default
17587 関連の問題が、それですべて解決すると思うべきではありません。\SpecialChar LyX
17588 は、
17589 \family sans
17590 Chk\SpecialChar TeX
17591
17592 \family default
17593 出力
17594 \begin_inset Foot
17595 status collapsed
17596
17597 \begin_layout Plain Layout
17598
17599 \family sans
17600 chktex
17601 \family default
17602 の実際の出力は、
17603 \family sans
17604 chktex
17605 \family default
17606 を実行した直後に
17607 \family sans
17608 文書\SpecialChar menuseparator
17609 \SpecialChar LaTeX
17610 ログ
17611 \family default
17612 を使えば見ることができます。
17613 \end_layout
17614
17615 \end_inset
17616
17617 から得た行番号と内部構造を一致させるため、やや特殊な\SpecialChar LaTeX
17618 ファイルを生成しなくてはならないので、警告の一部は正しく表示されていないように見えるでしょう。これに対処する
17619 ためには、以下の2つの方法があります。
17620 \end_layout
17621
17622 \begin_layout Itemize
17623
17624 \family sans
17625 \begin_inset Flex MenuItem
17626 status collapsed
17627
17628 \begin_layout Plain Layout
17629
17630 \family sans
17631 ツール\SpecialChar menuseparator
17632 設定\SpecialChar menuseparator
17633 出力\SpecialChar menuseparator
17634 \SpecialChar LaTeX
17635 \SpecialChar menuseparator
17636 Check\SpecialChar TeX
17637 コマンド
17638 \end_layout
17639
17640 \end_inset
17641
17642
17643 \family default
17644 中の
17645 \family sans
17646 Chk\SpecialChar TeX
17647
17648 \family default
17649 起動コマンドラインを調整するか、グローバルな
17650 \family sans
17651 Chk\SpecialChar TeX
17652
17653 \family default
17654 の設定ファイル(通常は
17655 \begin_inset Flex Code
17656 status collapsed
17657
17658 \begin_layout Plain Layout
17659 chktexrc
17660 \end_layout
17661
17662 \end_inset
17663
17664 ファイル)を調整します。コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください。
17665 \end_layout
17666
17667 \begin_layout Itemize
17668
17669 \family sans
17670 ファイル\SpecialChar menuseparator
17671 書き出し\SpecialChar menuseparator
17672 \SpecialChar LaTeX
17673
17674 \family default
17675 を使って文書を\SpecialChar LaTeX
17676 ファイルに変換し、そのファイルに対して
17677 \family typewriter
17678 chktex
17679 \family default
17680 を手動で実行します。このようにすると、\SpecialChar LyX
17681 文書中の対応箇所を見つけるのがやや面倒ですが、少し我慢すれば見つけることができます。
17682 \end_layout
17683
17684 \begin_layout Standard
17685 以下は、
17686 \family sans
17687 設定
17688 \family default
17689 で有効化・無効化できる警告メッセージです。警告を無効にするには
17690 \family typewriter
17691 -n#
17692 \family default
17693 、有効にするには
17694 \family typewriter
17695 -w#
17696 \family default
17697 を用います。イタリック表示の項目は、既定で無効となっています。既定値は "
17698 \family typewriter
17699 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17700 \family default
17701 "です。
17702 \end_layout
17703
17704 \begin_layout Standard
17705 \SpecialChar LyX
17706 は、
17707 \family typewriter
17708 chktex
17709 \family default
17710 と通信するために、他のコマンドラインパラメータを特定の方法で使用しているため、メッセージを有効化・無効化する以外のオプションを使うべきではありません。
17711 \end_layout
17712
17713 \begin_layout Enumerate
17714
17715 \size small
17716 \emph on
17717 Command terminated with space.
17718 \end_layout
17719
17720 \begin_layout Enumerate
17721
17722 \size small
17723 Non-breaking space (
17724 \begin_inset Quotes eld
17725 \end_inset
17726
17727
17728 \family typewriter
17729 ~
17730 \family default
17731
17732 \begin_inset Quotes erd
17733 \end_inset
17734
17735 ) should have been used.
17736 \end_layout
17737
17738 \begin_layout Enumerate
17739
17740 \size small
17741 \emph on
17742 You should enclose the previous parenthesis with 
17743 \begin_inset Quotes eld
17744 \end_inset
17745
17746
17747 \family typewriter
17748 {}
17749 \family default
17750
17751 \begin_inset Quotes erd
17752 \end_inset
17753
17754 .
17755 \end_layout
17756
17757 \begin_layout Enumerate
17758
17759 \size small
17760 Italic correction (
17761 \begin_inset Quotes eld
17762 \end_inset
17763
17764
17765 \family typewriter
17766
17767 \backslash
17768 /
17769 \family default
17770
17771 \begin_inset Quotes erd
17772 \end_inset
17773
17774 ) found in non-italic buffer.
17775 \end_layout
17776
17777 \begin_layout Enumerate
17778
17779 \size small
17780 Italic correction (
17781 \begin_inset Quotes eld
17782 \end_inset
17783
17784
17785 \family typewriter
17786
17787 \backslash
17788 /
17789 \family default
17790
17791 \begin_inset Quotes erd
17792 \end_inset
17793
17794 ) found more than once.
17795 \end_layout
17796
17797 \begin_layout Enumerate
17798
17799 \size small
17800 \emph on
17801 No italic correction (
17802 \begin_inset Quotes eld
17803 \end_inset
17804
17805
17806 \family typewriter
17807
17808 \backslash
17809 /
17810 \family default
17811
17812 \begin_inset Quotes erd
17813 \end_inset
17814
17815 ) found.
17816 \end_layout
17817
17818 \begin_layout Enumerate
17819
17820 \size small
17821 Accent command 
17822 \begin_inset Quotes eld
17823 \end_inset
17824
17825
17826 \family typewriter
17827 cmd
17828 \family default
17829
17830 \begin_inset Quotes erd
17831 \end_inset
17832
17833  needs use of 
17834 \begin_inset Quotes eld
17835 \end_inset
17836
17837
17838 \family typewriter
17839 cmd
17840 \family default
17841
17842 \begin_inset Quotes erd
17843 \end_inset
17844
17845 .
17846 \end_layout
17847
17848 \begin_layout Enumerate
17849
17850 \size small
17851 Wrong length of dash may have been used.
17852 \end_layout
17853
17854 \begin_layout Enumerate
17855
17856 \size small
17857 \emph on
17858 \begin_inset Quotes eld
17859 \end_inset
17860
17861
17862 \family typewriter
17863 %s
17864 \family default
17865
17866 \begin_inset Quotes erd
17867 \end_inset
17868
17869  expected, found 
17870 \begin_inset Quotes eld
17871 \end_inset
17872
17873
17874 \family typewriter
17875 %s
17876 \family default
17877
17878 \begin_inset Quotes erd
17879 \end_inset
17880
17881 .
17882 \end_layout
17883
17884 \begin_layout Enumerate
17885
17886 \size small
17887 Solo 
17888 \begin_inset Quotes eld
17889 \end_inset
17890
17891
17892 \family typewriter
17893 %s
17894 \family default
17895
17896 \begin_inset Quotes erd
17897 \end_inset
17898
17899  found.
17900 \end_layout
17901
17902 \begin_layout Enumerate
17903
17904 \size small
17905 You should use 
17906 \begin_inset Quotes eld
17907 \end_inset
17908
17909
17910 \family typewriter
17911 %s
17912 \family default
17913
17914 \begin_inset Quotes erd
17915 \end_inset
17916
17917  to achieve an ellipsis.
17918 \end_layout
17919
17920 \begin_layout Enumerate
17921
17922 \size small
17923 Inter-word spacing (
17924 \begin_inset Quotes eld
17925 \end_inset
17926
17927
17928 \family typewriter
17929
17930 \backslash
17931
17932 \family default
17933  
17934 \begin_inset Quotes eld
17935 \end_inset
17936
17937 ) should perhaps be used.
17938 \end_layout
17939
17940 \begin_layout Enumerate
17941
17942 \size small
17943 Inter-sentence spacing (
17944 \begin_inset Quotes eld
17945 \end_inset
17946
17947
17948 \family typewriter
17949
17950 \backslash
17951 @
17952 \family default
17953
17954 \begin_inset Quotes erd
17955 \end_inset
17956
17957 ) should perhaps be used.
17958 \end_layout
17959
17960 \begin_layout Enumerate
17961
17962 \size small
17963 Could not find argument for command.
17964 \end_layout
17965
17966 \begin_layout Enumerate
17967
17968 \size small
17969 No match found for 
17970 \begin_inset Quotes eld
17971 \end_inset
17972
17973
17974 \family typewriter
17975 %s
17976 \family default
17977
17978 \begin_inset Quotes erd
17979 \end_inset
17980
17981 .
17982 \end_layout
17983
17984 \begin_layout Enumerate
17985
17986 \size small
17987 Math mode still on at end of \SpecialChar LaTeX
17988  file.
17989 \end_layout
17990
17991 \begin_layout Enumerate
17992
17993 \size small
17994 Number of 
17995 \begin_inset Quotes eld
17996 \end_inset
17997
17998
17999 \family typewriter
18000 char
18001 \family default
18002
18003 \begin_inset Quotes erd
18004 \end_inset
18005
18006  doesn't match the number of 
18007 \begin_inset Quotes eld
18008 \end_inset
18009
18010
18011 \family typewriter
18012 char
18013 \family default
18014
18015 \begin_inset Quotes erd
18016 \end_inset
18017
18018 .
18019 \end_layout
18020
18021 \begin_layout Enumerate
18022
18023 \size small
18024 You should use either 
18025 \family typewriter
18026
18027 \begin_inset Quotes eld
18028 \end_inset
18029
18030
18031 \family default
18032  or 
18033 \family typewriter
18034
18035 \begin_inset Quotes erd
18036 \end_inset
18037
18038
18039 \family default
18040  as an alternative to 
18041 \begin_inset Quotes eld
18042 \end_inset
18043
18044
18045 \family typewriter
18046 "
18047 \family default
18048
18049 \begin_inset Quotes erd
18050 \end_inset
18051
18052 .
18053 \end_layout
18054
18055 \begin_layout Enumerate
18056
18057 \size small
18058 You should use "
18059 \family typewriter
18060 '
18061 \family default
18062 " (ASCII 39) instead of "" (ASCII 180).
18063 \end_layout
18064
18065 \begin_layout Enumerate
18066
18067 \size small
18068 User-specified pattern found.
18069 \end_layout
18070
18071 \begin_layout Enumerate
18072
18073 \size small
18074 This command might not be intended.
18075 \end_layout
18076
18077 \begin_layout Enumerate
18078
18079 \size small
18080 \emph on
18081 Comment displayed.
18082 \end_layout
18083
18084 \begin_layout Enumerate
18085
18086 \size small
18087 Either 
18088 \family typewriter
18089 ''
18090 \backslash
18091 ,'
18092 \family default
18093  or 
18094 \family typewriter
18095 '
18096 \backslash
18097 ,''
18098 \family default
18099  will look better.
18100 \end_layout
18101
18102 \begin_layout Enumerate
18103
18104 \size small
18105 Delete this space to maintain correct page references.
18106 \end_layout
18107
18108 \begin_layout Enumerate
18109
18110 \size small
18111 \emph on
18112 You might wish to put this between a pair of 
18113 \begin_inset Quotes eld
18114 \end_inset
18115
18116
18117 \family typewriter
18118 {}
18119 \family default
18120
18121 \begin_inset Quotes erd
18122 \end_inset
18123
18124 .
18125 \end_layout
18126
18127 \begin_layout Enumerate
18128
18129 \size small
18130 You ought to remove spaces in front of punctuation.
18131 \end_layout
18132
18133 \begin_layout Enumerate
18134
18135 \size small
18136 Could not execute \SpecialChar LaTeX
18137  command.
18138 \end_layout
18139
18140 \begin_layout Enumerate
18141
18142 \size small
18143 Don't use 
18144 \family typewriter
18145
18146 \backslash
18147 /
18148 \family default
18149  in front of small punctuation.
18150 \end_layout
18151
18152 \begin_layout Enumerate
18153
18154 \family typewriter
18155 \size small
18156 $
18157 \backslash
18158 times$
18159 \family default
18160  may look prettier here.
18161 \end_layout
18162
18163 \begin_layout Enumerate
18164
18165 \size small
18166 \emph on
18167 Multiple spaces detected in output.
18168 \end_layout
18169
18170 \begin_layout Enumerate
18171
18172 \size small
18173 This text may be ignored.
18174 \end_layout
18175
18176 \begin_layout Enumerate
18177
18178 \size small
18179 Use 
18180 \family typewriter
18181
18182 \begin_inset Quotes eld
18183 \end_inset
18184
18185
18186 \family default
18187  to begin quotation, not 
18188 \family typewriter
18189 '
18190 \family default
18191 .
18192 \end_layout
18193
18194 \begin_layout Enumerate
18195
18196 \size small
18197 Use 
18198 \family typewriter
18199 '
18200 \family default
18201  to end quotation, not 
18202 \family typewriter
18203
18204 \begin_inset Quotes eld
18205 \end_inset
18206
18207
18208 \family default
18209 .
18210 \end_layout
18211
18212 \begin_layout Enumerate
18213
18214 \size small
18215 Don't mix quotes.
18216 \end_layout
18217
18218 \begin_layout Enumerate
18219
18220 \size small
18221 You should perhaps use 
18222 \begin_inset Quotes eld
18223 \end_inset
18224
18225
18226 \family typewriter
18227 cmd
18228 \family default
18229
18230 \begin_inset Quotes erd
18231 \end_inset
18232
18233  instead.
18234 \end_layout
18235
18236 \begin_layout Enumerate
18237
18238 \size small
18239 You should put a space in front of/after parenthesis.
18240 \end_layout
18241
18242 \begin_layout Enumerate
18243
18244 \size small
18245 You should avoid spaces in front of/after parenthesis.
18246 \end_layout
18247
18248 \begin_layout Enumerate
18249
18250 \size small
18251 \emph on
18252 You should not use punctuation in front of/after quotes.
18253 \end_layout
18254
18255 \begin_layout Enumerate
18256
18257 \size small
18258 Double space found.
18259 \end_layout
18260
18261 \begin_layout Enumerate
18262
18263 \size small
18264 You should put punctuation outside inner/inside display math mode.
18265 \end_layout
18266
18267 \begin_layout Enumerate
18268
18269 \size small
18270 You ought to not use primitive \SpecialChar TeX
18271  in \SpecialChar LaTeX
18272  code.
18273 \end_layout
18274
18275 \begin_layout Enumerate
18276
18277 \size small
18278 You should remove spaces in front of 
18279 \begin_inset Quotes eld
18280 \end_inset
18281
18282
18283 \family typewriter
18284 %s
18285 \family default
18286
18287 \begin_inset Quotes erd
18288 \end_inset
18289
18290
18291 \end_layout
18292
18293 \begin_layout Enumerate
18294
18295 \size small
18296 \begin_inset Quotes eld
18297 \end_inset
18298
18299
18300 \family typewriter
18301 %s
18302 \family default
18303
18304 \begin_inset Quotes erd
18305 \end_inset
18306
18307  is normally not followed by 
18308 \begin_inset Quotes eld
18309 \end_inset
18310
18311
18312 \family typewriter
18313 %c
18314 \family default
18315
18316 \begin_inset Quotes erd
18317 \end_inset
18318
18319 .
18320 \end_layout
18321
18322 \begin_layout Standard
18323 \SpecialChar LyX
18324 の将来の版では、このツール(およびその縮小版
18325 \family typewriter
18326 lacheck
18327 \family default
18328 )の力を最大限引き出すように、より完備したインターフェイスを提供できればと考えています。しかし、現状でも十分に役立つものとなっています。ある程度長さがある既存文
18329 書に使用してみていただければ、きっと驚かれることでしょう。
18330 \end_layout
18331
18332 \begin_layout Section
18333 \SpecialChar LyX
18334 でのバージョン管理
18335 \end_layout
18336
18337 \begin_layout Standard
18338
18339 \noun on
18340 Lars Bullik Bjønnes
18341 \noun default
18342 および
18343 \noun on
18344 Pavel Sanda
18345 \noun default
18346
18347 \end_layout
18348
18349 \begin_layout Subsection
18350 はじめに
18351 \end_layout
18352
18353 \begin_layout Standard
18354 \SpecialChar LyX
18355 は、今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています。もしもっと洗練されたことを行いたい場合には、ターミナル上から手動で行う必要
18356 があります。
18357 \end_layout
18358
18359 \begin_layout Standard
18360 また、CVSのサポートは、subversionのサポートほど良くないので、CVSよりもSVNを使うことをお勧めします。Subversionを学び始めるには、SV
18361 N Book
18362 \begin_inset Foot
18363 status collapsed
18364
18365 \begin_layout Plain Layout
18366 \begin_inset CommandInset href
18367 LatexCommand href
18368 target "http://svnbook.red-bean.com/"
18369
18370 \end_inset
18371
18372
18373 \end_layout
18374
18375 \end_inset
18376
18377 が良いでしょう。RCSの場合は、「rsintro」をお読みください(これはmanファイルです。
18378 \family typewriter
18379 man rcsintro
18380 \family default
18381 で読めます)。このファイルは、RCSの基本機能のすべてを説明しています。特に、RCSディレクトリに関するコメントと、マスターRCSファイル(
18382 \family typewriter
18383 ,v
18384 \family default
18385 で終わるファイルです)の概念に注意を払ってください。
18386 \end_layout
18387
18388 \begin_layout Standard
18389 \SpecialChar LyX
18390 で実際にバージョン管理機能を使い始める前に、RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません。\SpecialChar LyX
18391 で\SpecialChar LyX
18392 への実装においては、GNU
18393  RCSまたはCVS/SVNパッケージの最新版を仮定しています。旧版への保証はありません。ログメッセージのほとんどは、現在のところ操作後には表示されません。確認
18394 したい場合には、メッセージ面で確かめてください。バージョン管理を常用するユーザーには、VCツールバーが便利でしょう。これは
18395 \family sans
18396 表示\SpecialChar menuseparator
18397 ツールバー\SpecialChar menuseparator
18398 バージョン管理
18399 \family default
18400 で有効にできます。
18401 \end_layout
18402
18403 \begin_layout Standard
18404 自製の外部コマンドを導入したい場合には、\SpecialChar LyX
18405 関数説明書のvcコマンドを確認してください。
18406 \end_layout
18407
18408 \begin_layout Standard
18409
18410 \lang english
18411 It is strongly recommended to store documents in uncompressed format if
18412  using version control (uncheck 
18413 \family sans
18414 Document\SpecialChar menuseparator
18415 Compressed
18416 \family default
18417  if it is checked): Uncompressed LyX documents are text files and therefore
18418  for merging two different versions by version control systems.
18419  Compressed LyX documents are binary files, which cannot be merged by version
18420  control systems.
18421 \lang japanese
18422
18423 \begin_inset space \space{}
18424 \end_inset
18425
18426
18427 \end_layout
18428
18429 \begin_layout Subsection
18430 \SpecialChar LyX
18431 におけるRCSコマンド
18432 \end_layout
18433
18434 \begin_layout Standard
18435 以下の節では\SpecialChar LyX
18436 でサポートされているRCSコマンドを説明します。それらのコマンドは
18437 \family sans
18438 ファイル\SpecialChar menuseparator
18439 バージョン管理
18440 \family default
18441 のサブメニューにあります。\SpecialChar LyX
18442 は、RCS 5.7/5.8に対して試験されています。
18443 \end_layout
18444
18445 \begin_layout Subsubsection
18446
18447 \family sans
18448 登録
18449 \end_layout
18450
18451 \begin_layout Standard
18452 文書がバージョン管理の下にない場合には、これがメニューにあらわれる唯一の項目です。文書がバージョン管理下にあれば、項目
18453 \family sans
18454 登録
18455 \family default
18456 は不可視になります。
18457 \end_layout
18458
18459 \begin_layout Standard
18460 このコマンドは、文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合)。すると対話的に、文書の最初の説明を入力するように尋ねられます。すると文
18461 書は読み込み専用モードになるので、変更を加えるためには
18462 \family sans
18463 チェックアウトして編集
18464 \family default
18465 を実行する必要があります。バージョン管理下にある文書は、ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます。
18466 \end_layout
18467
18468 \begin_layout Standard
18469 実行されるRCSコマンドは:
18470 \family typewriter
18471
18472 \begin_inset Newline newline
18473 \end_inset
18474
18475 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18476 \end_layout
18477
18478 \begin_layout Standard
18479 スイッチについて知りたい場合は、
18480 \family typewriter
18481 man ci
18482 \family default
18483 を読んでください。
18484 \end_layout
18485
18486 \begin_layout Subsubsection
18487
18488 \family sans
18489 変更をチェックインする
18490 \end_layout
18491
18492 \begin_layout Standard
18493 ファイルの編集が終わると、その変更をチェックインします。このとき、変更についての説明文を求められます。これは履歴ログに記録されます。バージョン番号は繰り上がり、
18494 変更がマスターRCSファイルに適用され、文書がアンロックされて読み込み専用モードになります。
18495 \end_layout
18496
18497 \begin_layout Standard
18498 RCSコマンド:
18499 \family typewriter
18500 ci -q -u -m"<説明文>" <ファイル名>
18501 \end_layout
18502
18503 \begin_layout Subsubsection
18504
18505 \family sans
18506 チェックアウトして編集
18507 \end_layout
18508
18509 \begin_layout Standard
18510 これは、文書をロックして編集できるようにします。そしてあなただけが文書を読み書きできるようにします。通常は、しばらくの間、文書を編集し、それが終わると変更をチェ
18511 ックインします。あなたがファイルをロックしたことを反映して、ステータスラインが変わります。
18512 \end_layout
18513
18514 \begin_layout Standard
18515 RCSコマンド:
18516 \family typewriter
18517 co -q -l <ファイル名>
18518 \end_layout
18519
18520 \begin_layout Subsubsection
18521
18522 \family sans
18523 リポジトリのバージョンに戻す
18524 \end_layout
18525
18526 \begin_layout Standard
18527 これは、最終チェックイン以降、文書に加えられた変更をすべて破棄します。変更が破棄される前に、警告が発せられます。
18528 \end_layout
18529
18530 \begin_layout Standard
18531 RCSコマンド:
18532 \family typewriter
18533 co -f -u<バージョン> <ファイル名>
18534 \end_layout
18535
18536 \begin_layout Subsubsection
18537
18538 \family sans
18539 コピー
18540 \end_layout
18541
18542 \begin_layout Standard
18543 これは、現行文書のコピーを生成します。RCSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18544 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18545 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18546 \family sans
18547 ファイル\SpecialChar menuseparator
18548 名前をつけて保存\SpecialChar ldots
18549
18550 \family default
18551 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18552 \end_layout
18553
18554 \begin_layout Labeling
18555 \labelwidthstring 00.00.0000
18556 RCSコマンド:
18557 \begin_inset Flex Code
18558 status collapsed
18559
18560 \begin_layout Plain Layout
18561 "ファイル名"
18562 \end_layout
18563
18564 \end_inset
18565
18566
18567 \family typewriter
18568 "新ファイル名"
18569 \family default
18570 にコピーする場合
18571 \end_layout
18572
18573 \begin_layout Labeling
18574 \labelwidthstring 00.00.0000
18575 \begin_inset Flex Code
18576 status collapsed
18577
18578 \begin_layout Plain Layout
18579 ci -q -u -i "<新ファイル名>"
18580 \end_layout
18581
18582 \end_inset
18583
18584
18585 \end_layout
18586
18587 \begin_layout Subsubsection
18588
18589 \family sans
18590 最後のチェックインを取り消す
18591 \end_layout
18592
18593 \begin_layout Standard
18594 これは、最後のチェックインがあたかも為されなかったかのようにします。\SpecialChar LyX
18595 に読み込まれた文書に変更は加えられませんが、マスターRCSファイルから最後のバージョンが削除
18596 されます。
18597 \end_layout
18598
18599 \begin_layout Standard
18600 RCSコマンド:
18601 \family typewriter
18602 rcs -o<バージョン> <ファイル名>
18603 \end_layout
18604
18605 \begin_layout Subsubsection
18606
18607 \family sans
18608 履歴を表示
18609 \end_layout
18610
18611 \begin_layout Standard
18612 RCS文書の完全な履歴を表示します。ブラウザ中に、
18613 \family typewriter
18614 rlog <ファイル名>
18615 \family default
18616 の出力が表示されます。詳細は
18617 \family typewriter
18618 man rlog
18619 \family default
18620 をご覧ください。
18621 \end_layout
18622
18623 \begin_layout Subsubsection
18624 改訂情報
18625 \end_layout
18626
18627 \begin_layout Standard
18628 \SpecialChar LyX
18629 は、RCSバージョン番号情報(のみ)をサポートしています。詳細については、
18630 \begin_inset CommandInset ref
18631 LatexCommand ref
18632 reference "subsec:VCS改訂情報"
18633
18634 \end_inset
18635
18636 を参照。
18637 \end_layout
18638
18639 \begin_layout Subsection
18640 \SpecialChar LyX
18641 におけるCVSコマンド
18642 \end_layout
18643
18644 \begin_layout Standard
18645 \SpecialChar LyX
18646 は、現在CVSを一部サポートしています。そのコマンドは、
18647 \family sans
18648 ファイル\SpecialChar menuseparator
18649 バージョン管理
18650 \family default
18651 サブメニューにあります。バージョン管理システムSVNの方が強力なので、可能ならばCVSではなく、SVNを使用してください。
18652 \end_layout
18653
18654 \begin_layout Subsubsection
18655 CVSの一般的な利用法
18656 \end_layout
18657
18658 \begin_layout Standard
18659 CVSを初めて使いたい場合には、外部ツールを使用して自分のレポジトリを作成し、作業コピーをチェックアウトする必要があります。クライアント=サーバーモデルを使用し
18660 ている場合には、最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません。
18661 \end_layout
18662
18663 \begin_layout Standard
18664 改訂管理下にある文書のレポジトリを他人も利用している場合に、同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します。標準的なCVSレポジトリは、ファイル
18665 ロッキング機構を有しません。これは驚くべきことかもしれませんが、コンフリクトは、文書の同じ箇所の特定の内容について、人々が意見を異にしている場合にのみ発生します
18666 。したがって、共著者同士がコンスタントにコミュニケーションを交わしていれば、このようなコンフリクトは滅多に発生しません。もしコミュニケーションがなければ、いずれ
18667 にしても根本的な問題があるわけです。それにもかかわらず、いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます。この場合、最初にチェックアウトした際に
18668 、全ファイルの作業コピーは読み込み専用にされ、ユーザーは、作業コピーを書き込み可能にする特別なコマンドを使用した後、編集を開始することになります。変更をチェック
18669 インすると、作業コピーは読み込み専用状態に戻ります。\SpecialChar LyX
18670 で予備付きチェックアウトを利用したい場合には、
18671 \begin_inset Flex Code
18672 status collapsed
18673
18674 \begin_layout Plain Layout
18675 .cvsrc
18676 \end_layout
18677
18678 \end_inset
18679
18680 ファイルを編集して、
18681 \begin_inset Flex Code
18682 status collapsed
18683
18684 \begin_layout Plain Layout
18685 cvs -r
18686 \end_layout
18687
18688 \end_inset
18689
18690 という行を書き加える必要があります。この方法の利点は、文書のうち、書き込み可能コピーを誰が使用しているかを見ることができることです。ただし、一人のユーザーだけが
18691 コピーを書き込み可能にしているとは限りません。
18692 \end_layout
18693
18694 \begin_layout Standard
18695 \SpecialChar LyX
18696 は、あなたが予備付きチェックアウトを使用しているか、予備なしチェックアウトを利用しているか、推測しようと試みます。使用中の作業コピーが読み込み専用になっているか
18697 、あるいはそれが書き込み可能であって、CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には、予備付きチェックアウトを使用しているものと仮定
18698 し、そうでない場合には予備なしチェックアウトを使用しているものと仮定します。予備付きチェックアウトが検出された場合には、作業コピーが読み込み専用の場合に書き込み
18699 可能にするためには、
18700 \begin_inset Flex MenuItem
18701 status collapsed
18702
18703 \begin_layout Plain Layout
18704 チェックアウト
18705 \end_layout
18706
18707 \end_inset
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 \end_layout
18721
18722 \begin_layout Standard
18723 CVSの詳細な情報は、
18724 \begin_inset Flex URL
18725 status collapsed
18726
18727 \begin_layout Plain Layout
18728
18729 http://www.nongnu.org/cvs
18730 \end_layout
18731
18732 \end_inset
18733
18734
18735 \begin_inset Flex URL
18736 status collapsed
18737
18738 \begin_layout Plain Layout
18739
18740 http://ximbiot.com/cvs
18741 \end_layout
18742
18743 \end_inset
18744
18745 にあります。
18746 \end_layout
18747
18748 \begin_layout Standard
18749 以下に言及するサブコマンドとスイッチを理解するには、
18750 \family typewriter
18751 man cvs
18752 \family default
18753 をお読みください。
18754 \end_layout
18755
18756 \begin_layout Subsubsection
18757 登録
18758 \end_layout
18759
18760 \begin_layout Standard
18761 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
18762 \family sans
18763 登録
18764 \family default
18765 項目は表示されません。
18766 \end_layout
18767
18768 \begin_layout Standard
18769 本コマンドは、既に文書ディレクトリをCVS管理下に置いている場合に
18770 \series bold
18771 \emph on
18772 のみ
18773 \series default
18774 \emph default
18775 (すなわち
18776 \begin_inset Flex Code
18777 status collapsed
18778
18779 \begin_layout Plain Layout
18780 CVS/Entries
18781 \end_layout
18782
18783 \end_inset
18784
18785 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、外部ツールを使用して、アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18786 を意味します(このステップを忘れてしまうと、\SpecialChar LyX
18787 は文書をRCSに登録します)。
18788 \end_layout
18789
18790 \begin_layout Standard
18791 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだチェックインされたわけではないことに注意してください。
18792 \end_layout
18793
18794 \begin_layout Standard
18795 実行されるCVSコマンドは、
18796 \family typewriter
18797 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18798 \family default
18799  です。
18800 \end_layout
18801
18802 \begin_layout Standard
18803 上記および他のすべてのCVSコマンドにおける
18804 \family typewriter
18805 "<ファイル名>"
18806 \family default
18807 は、「カレント作業ディレクトリをファイルの場所に移動し、パスコンポーネントを除いたファイル名を引数として使用する」という意味になります。
18808 \end_layout
18809
18810 \begin_layout Subsubsection
18811 変更のチェックイン
18812 \end_layout
18813
18814 \begin_layout Standard
18815 ファイルの編集を終えたら、変更をコミットします。このとき、文書に変更が加えられていれば、変更の説明文を入れるよう促されます。その後、変更がレポジトリに書き込まれ
18816 ます。文書を変更せず、予備付きチェックアウトが検出された場合、
18817 \begin_inset Flex MenuItem
18818 status collapsed
18819
18820 \begin_layout Plain Layout
18821 チェックアウト
18822 \end_layout
18823
18824 \end_inset
18825
18826 で作られた予備は取り消されます。
18827 \end_layout
18828
18829 \begin_layout Labeling
18830 \labelwidthstring 00.00.0000
18831 CVSコマンド: 
18832 \begin_inset space ~
18833 \end_inset
18834
18835
18836 \begin_inset Newline newline
18837 \end_inset
18838
18839
18840 \begin_inset Flex Code
18841 status collapsed
18842
18843 \begin_layout Plain Layout
18844 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18845 \end_layout
18846
18847 \end_inset
18848
18849 あるいは
18850 \begin_inset Newline newline
18851 \end_inset
18852
18853
18854 \begin_inset Flex Code
18855 status collapsed
18856
18857 \begin_layout Plain Layout
18858 cvs -q unedit "<ファイル名>"
18859 \end_layout
18860
18861 \end_inset
18862
18863
18864 \end_layout
18865
18866 \begin_layout Subsubsection
18867 変更のチェックアウト
18868 \end_layout
18869
18870 \begin_layout Standard
18871 レポジトリを他人と共有している場合、他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります。
18872 \end_layout
18873
18874 \begin_layout Standard
18875 CVSコマンド:
18876 \family typewriter
18877 cvs -q update "<ファイル名>"
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 edit "<ファイル名>"
18888 \end_layout
18889
18890 \begin_layout Subsubsection
18891 レポジトリ版に戻す
18892 \end_layout
18893
18894 \begin_layout Standard
18895 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVS更新コマンド
18896 が実行されます。
18897 \end_layout
18898
18899 \begin_layout Standard
18900 CVSコマンド:
18901 \family typewriter
18902 cvs -q update "<ファイル名>"
18903 \end_layout
18904
18905 \begin_layout Standard
18906 予備付きチェックアウトが検出され、作業コピーに変更がない場合、予備のみが取り消されます。
18907 \end_layout
18908
18909 \begin_layout Standard
18910 CVSコマンド:
18911 \family typewriter
18912 cvs -q unedit "<ファイル名>"
18913 \end_layout
18914
18915 \begin_layout Subsubsection
18916
18917 \family sans
18918 コピー
18919 \end_layout
18920
18921 \begin_layout Standard
18922 これは、現行文書のコピーを生成します。CVSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18923 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18924 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18925 \family sans
18926 ファイル\SpecialChar menuseparator
18927 名前をつけて保存\SpecialChar ldots
18928
18929 \family default
18930 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18931 \end_layout
18932
18933 \begin_layout Labeling
18934 \labelwidthstring 00.00.0000
18935 CVSコマンド:
18936 \end_layout
18937
18938 \begin_layout Labeling
18939 \labelwidthstring 00.00.0000
18940 \begin_inset Flex Code
18941 status collapsed
18942
18943 \begin_layout Plain Layout
18944 "ファイル名"
18945 \end_layout
18946
18947 \end_inset
18948
18949
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 \end_layout
18961
18962 \begin_layout Labeling
18963 \labelwidthstring 00.00.0000
18964 \begin_inset Flex Code
18965 status collapsed
18966
18967 \begin_layout Plain Layout
18968 cvs -q add "<新ファイル名>"
18969 \end_layout
18970
18971 \end_inset
18972
18973
18974 \end_layout
18975
18976 \begin_layout Subsubsection
18977 ファイル名変更
18978 \end_layout
18979
18980 \begin_layout Standard
18981 これは、現行文書のファイル名を変更します。CVSは、ファイル名変更操作を自前ではサポートしませんので、バージョン履歴には保存されず、名称変更後のファイルは、新規
18982 ファイルとして追加されます。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され
18983 、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パ
18984 スは、(
18985 \family sans
18986 ファイル\SpecialChar menuseparator
18987 名前をつけて保存\SpecialChar ldots
18988
18989 \family default
18990 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
18991 \end_layout
18992
18993 \begin_layout Labeling
18994 \labelwidthstring 00.00.0000
18995 CVSコマンド:
18996 \end_layout
18997
18998 \begin_layout Labeling
18999 \labelwidthstring 00.00.0000
19000 \begin_inset Flex Code
19001 status collapsed
19002
19003 \begin_layout Plain Layout
19004 "ファイル名"
19005 \end_layout
19006
19007 \end_inset
19008
19009
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 \end_layout
19021
19022 \begin_layout Labeling
19023 \labelwidthstring 00.00.0000
19024 \begin_inset Flex Code
19025 status collapsed
19026
19027 \begin_layout Plain Layout
19028 cvs -q add "<新ファイル名>"
19029 \end_layout
19030
19031 \end_inset
19032
19033
19034 \end_layout
19035
19036 \begin_layout Labeling
19037 \labelwidthstring 00.00.0000
19038 \begin_inset Flex Code
19039 status collapsed
19040
19041 \begin_layout Plain Layout
19042 cvs -q remove "<ファイル名>"
19043 \end_layout
19044
19045 \end_inset
19046
19047
19048 \end_layout
19049
19050 \begin_layout Subsubsection
19051 ローカルディレクトリチェックアウトのレポジトリからの更新
19052 \end_layout
19053
19054 \begin_layout Standard
19055 子文書や図を含んだり、外部
19056 \begin_inset Flex Code
19057 status collapsed
19058
19059 \begin_layout Plain Layout
19060 .tex
19061 \end_layout
19062
19063 \end_inset
19064
19065 ファイルを取り込むなど、文書が複雑になるにつれ、バージョン管理の利用は複雑になります。\SpecialChar LyX
19066 は、文書が存在するツリー全体の更新をサポートします。これは、CVSの使用法
19067 について詳しい知識のない人々や、レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に、特に便利です。ファイル構造は、すべての外部ファイル
19068 が、文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります。いずれにしても、複合文書を新しいディレクトリを建てて収容するのは、望ましい習
19069 慣です。
19070 \end_layout
19071
19072 \begin_layout Standard
19073 コマンド
19074 \begin_inset Flex Code
19075 status collapsed
19076
19077 \begin_layout Plain Layout
19078 レポジトリを使ってローカル辞書を更新
19079 \end_layout
19080
19081 \end_inset
19082
19083 は、ディレクトリ全体を更新します。ローカルの変更が検出された場合には、更新を開始する前にユーザーに警告が発せられます。マージコンフリクトが発生した場合には、コン
19084 フリクトを起こしている部分の新旧バージョンが、両方とも最終文書に置かれますので、マージの結果を見直し、修正する必要があります。コンフリクトは、
19085 \begin_inset Flex Code
19086 status collapsed
19087
19088 \begin_layout Plain Layout
19089 <<<<<<<
19090 \end_layout
19091
19092 \end_inset
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 で区切られて表示されます。最初の部分は、文書名に続いて、更新操作前のバージョンが置かれています。第2の部分は、
19115 \begin_inset Flex Code
19116 status collapsed
19117
19118 \begin_layout Plain Layout
19119 >
19120 \end_layout
19121
19122 \end_inset
19123
19124 記号列の後にバージョン番号に続いて、レポジトリ版が置かれます。
19125 \end_layout
19126
19127 \begin_layout Labeling
19128 \labelwidthstring 00.00.0000
19129 CVSコマンド: 
19130 \begin_inset space ~
19131 \end_inset
19132
19133
19134 \begin_inset Newline newline
19135 \end_inset
19136
19137
19138 \begin_inset Flex Code
19139 status collapsed
19140
19141 \begin_layout Plain Layout
19142 cd $path; cvs diff "."
19143 \end_layout
19144
19145 \end_inset
19146
19147 (変更が検出された場合には知らせる)
19148 \begin_inset Newline newline
19149 \end_inset
19150
19151
19152 \begin_inset Flex Code
19153 status collapsed
19154
19155 \begin_layout Plain Layout
19156 cd $path; cvs -q update "."
19157 \end_layout
19158
19159 \end_inset
19160
19161
19162 \end_layout
19163
19164 \begin_layout Standard
19165 ここで
19166 \begin_inset Flex Code
19167 status collapsed
19168
19169 \begin_layout Plain Layout
19170 $path
19171 \end_layout
19172
19173 \end_inset
19174
19175 は文書パスを表します。
19176 \end_layout
19177
19178 \begin_layout Subsubsection
19179 履歴を表示
19180 \end_layout
19181
19182 \begin_layout Standard
19183 これは、CVS文書の全履歴を表示します。
19184 \begin_inset Flex Code
19185 status collapsed
19186
19187 \begin_layout Plain Layout
19188 cvs log 
19189 \begin_inset Quotes eld
19190 \end_inset
19191
19192 <ファイル名>
19193 \begin_inset Quotes erd
19194 \end_inset
19195
19196
19197 \end_layout
19198
19199 \end_inset
19200
19201 の出力がブラウザに表示されます。
19202 \end_layout
19203
19204 \begin_layout Subsubsection
19205 改訂情報
19206 \end_layout
19207
19208 \begin_layout Standard
19209 \SpecialChar LyX
19210 は、CVS版数・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
19211 \family typewriter
19212 cvs log -r <ファイル名>
19213 \family default
19214 によって抽出されます。詳細については、第
19215 \begin_inset CommandInset ref
19216 LatexCommand ref
19217 reference "subsec:VCS改訂情報"
19218
19219 \end_inset
19220
19221 節を参照してください。
19222 \end_layout
19223
19224 \begin_layout Subsection
19225 \SpecialChar LyX
19226 におけるSVNコマンド
19227 \end_layout
19228
19229 \begin_layout Standard
19230 \SpecialChar LyX
19231 は、現在SVNを一部サポートしています。そのコマンドは、
19232 \begin_inset Flex MenuItem
19233 status collapsed
19234
19235 \begin_layout Plain Layout
19236 ファイル\SpecialChar menuseparator
19237 バージョン管理
19238 \end_layout
19239
19240 \end_inset
19241
19242 メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。\SpecialChar LyX
19243 は、SVN
19244  1.5および1.6に対して試験されています。
19245 \end_layout
19246
19247 \begin_layout Subsubsection
19248 登録
19249 \end_layout
19250
19251 \begin_layout Standard
19252 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
19253 \family sans
19254 登録
19255 \family default
19256 項目は表示されません。
19257 \end_layout
19258
19259 \begin_layout Standard
19260 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
19261 \emph on
19262 のみ
19263 \emph default
19264 (すなわち
19265 \begin_inset Flex Code
19266 status collapsed
19267
19268 \begin_layout Plain Layout
19269 .svn/entries
19270 \end_layout
19271
19272 \end_inset
19273
19274 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
19275 \end_layout
19276
19277 \begin_layout Standard
19278 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
19279 \end_layout
19280
19281 \begin_layout Standard
19282 実行されるSVNコマンドは、
19283 \begin_inset Flex Code
19284 status collapsed
19285
19286 \begin_layout Plain Layout
19287 svn add -q 
19288 \begin_inset Quotes eld
19289 \end_inset
19290
19291 <ファイル名>
19292 \begin_inset Quotes erd
19293 \end_inset
19294
19295
19296 \end_layout
19297
19298 \end_inset
19299
19300 です。
19301 \end_layout
19302
19303 \begin_layout Standard
19304 スイッチの説明は
19305 \begin_inset Flex Code
19306 status collapsed
19307
19308 \begin_layout Plain Layout
19309 man svn
19310 \end_layout
19311
19312 \end_inset
19313
19314 をお読みください。
19315 \end_layout
19316
19317 \begin_layout Subsubsection
19318 変更をチェックイン
19319 \end_layout
19320
19321 \begin_layout Standard
19322 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
19323 \end_layout
19324
19325 \begin_layout Standard
19326 SVNコマンド
19327 \begin_inset Foot
19328 status collapsed
19329
19330 \begin_layout Plain Layout
19331 ロックが有効になっていない場合です。第
19332 \begin_inset CommandInset ref
19333 LatexCommand ref
19334 reference "subsec:SVNファイルロック"
19335
19336 \end_inset
19337
19338 節をご覧ください。
19339 \end_layout
19340
19341 \end_inset
19342
19343
19344 \begin_inset Flex Code
19345 status collapsed
19346
19347 \begin_layout Plain Layout
19348 svn commit -q -m
19349 \begin_inset Quotes erd
19350 \end_inset
19351
19352 <入力した説明文>
19353 \begin_inset Quotes erd
19354 \end_inset
19355
19356  
19357 \begin_inset Quotes eld
19358 \end_inset
19359
19360 <ファイル名>
19361 \begin_inset Quotes erd
19362 \end_inset
19363
19364
19365 \end_layout
19366
19367 \end_inset
19368
19369
19370 \end_layout
19371
19372 \begin_layout Subsubsection
19373 チェックアウトして編集
19374 \end_layout
19375
19376 \begin_layout Standard
19377 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
19378 しておくようにしてください。
19379 \end_layout
19380
19381 \begin_layout Standard
19382 SVNコマンド
19383 \begin_inset Foot
19384 status collapsed
19385
19386 \begin_layout Plain Layout
19387 同上。
19388 \end_layout
19389
19390 \end_inset
19391
19392
19393 \begin_inset Flex Code
19394 status collapsed
19395
19396 \begin_layout Plain Layout
19397 svn update –non-interactive 
19398 \begin_inset Quotes eld
19399 \end_inset
19400
19401 <ファイル名>
19402 \begin_inset Quotes erd
19403 \end_inset
19404
19405
19406 \end_layout
19407
19408 \end_inset
19409
19410
19411 \end_layout
19412
19413 \begin_layout Subsubsection
19414 リポジトリ版に戻す
19415 \end_layout
19416
19417 \begin_layout Standard
19418 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
19419 \end_layout
19420
19421 \begin_layout Standard
19422 SVNコマンド:
19423 \begin_inset Flex Code
19424 status collapsed
19425
19426 \begin_layout Plain Layout
19427 svn revert -q 
19428 \begin_inset Quotes eld
19429 \end_inset
19430
19431 <ファイル名>
19432 \begin_inset Quotes erd
19433 \end_inset
19434
19435
19436 \end_layout
19437
19438 \end_inset
19439
19440
19441 \end_layout
19442
19443 \begin_layout Subsubsection
19444
19445 \family sans
19446 コピー
19447 \end_layout
19448
19449 \begin_layout Standard
19450 これは、現行文書のコピーを生成します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するよ
19451 うに促され、その後、新コピーがローカルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19452 ァイルの相対パスは、(
19453 \family sans
19454 ファイル\SpecialChar menuseparator
19455 名前をつけて保存\SpecialChar ldots
19456
19457 \family default
19458 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
19459 \end_layout
19460
19461 \begin_layout Labeling
19462 \labelwidthstring 00.00.0000
19463 SVNコマンド:
19464 \end_layout
19465
19466 \begin_layout Labeling
19467 \labelwidthstring 00.00.0000
19468 \begin_inset Flex Code
19469 status collapsed
19470
19471 \begin_layout Plain Layout
19472 svn copy -q "<ファイル名>" "<新ファイル名>"
19473 \end_layout
19474
19475 \end_inset
19476
19477
19478 \end_layout
19479
19480 \begin_layout Labeling
19481 \labelwidthstring 00.00.0000
19482 \begin_inset Flex Code
19483 status collapsed
19484
19485 \begin_layout Plain Layout
19486 svn commit
19487 \end_layout
19488
19489 \end_inset
19490
19491
19492 \end_layout
19493
19494 \begin_layout Subsubsection
19495 ファイル名変更
19496 \end_layout
19497
19498 \begin_layout Standard
19499 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
19500 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19501 ァイルの相対パスは、(
19502 \family sans
19503 ファイル\SpecialChar menuseparator
19504 名前をつけて保存\SpecialChar ldots
19505
19506 \family default
19507 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
19508 \end_layout
19509
19510 \begin_layout Labeling
19511 \labelwidthstring 00.00.0000
19512 SVNコマンド:
19513 \end_layout
19514
19515 \begin_layout Labeling
19516 \labelwidthstring 00.00.0000
19517 \begin_inset Flex Code
19518 status collapsed
19519
19520 \begin_layout Plain Layout
19521 svn move -q add "<ファイル名>" "<新ファイル名>"
19522 \end_layout
19523
19524 \end_inset
19525
19526
19527 \end_layout
19528
19529 \begin_layout Labeling
19530 \labelwidthstring 00.00.0000
19531 \begin_inset Flex Code
19532 status collapsed
19533
19534 \begin_layout Plain Layout
19535 svn commit
19536 \end_layout
19537
19538 \end_inset
19539
19540
19541 \end_layout
19542
19543 \begin_layout Subsubsection
19544 \begin_inset CommandInset label
19545 LatexCommand label
19546 name "subsec:レポジトリからSVN同期"
19547
19548 \end_inset
19549
19550 レポジトリを使ったローカルディレクトリの同期
19551 \begin_inset Foot
19552 status collapsed
19553
19554 \begin_layout Plain Layout
19555 このコマンドは、subversion 
19556 \begin_inset Formula $\geqq1.5$
19557 \end_inset
19558
19559 でのみ動作することに注意してください。
19560 \end_layout
19561
19562 \end_inset
19563
19564
19565 \end_layout
19566
19567 \begin_layout Standard
19568 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
19569 \begin_inset Flex Code
19570 status collapsed
19571
19572 \begin_layout Plain Layout
19573 .tex
19574 \end_layout
19575
19576 \end_inset
19577
19578 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこで\SpecialChar LyX
19579 は、文書のおいてあるツリー全体の更新をサポートします
19580 \begin_inset Foot
19581 status collapsed
19582
19583 \begin_layout Plain Layout
19584 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
19585 \end_layout
19586
19587 \end_inset
19588
19589 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
19590
19591 \end_layout
19592
19593 \begin_layout Standard
19594 \begin_inset Flex Code
19595 status collapsed
19596
19597 \begin_layout Plain Layout
19598 ローカル辞書をレポジトリを使って更新
19599 \end_layout
19600
19601 \end_inset
19602
19603 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
19604 場合には、更新が開始される前にユーザに警告が与えられます。
19605 \end_layout
19606
19607 \begin_layout Labeling
19608 \labelwidthstring 00.00.0000
19609 SVNコマンド: 
19610 \begin_inset space ~
19611 \end_inset
19612
19613
19614 \begin_inset Newline newline
19615 \end_inset
19616
19617
19618 \begin_inset Flex Code
19619 status collapsed
19620
19621 \begin_layout Plain Layout
19622 svn diff $path(変更が発見された場合には通知します)
19623 \begin_inset Newline newline
19624 \end_inset
19625
19626 svn update –accept mine-full $path
19627 \end_layout
19628
19629 \end_inset
19630
19631
19632 \end_layout
19633
19634 \begin_layout Standard
19635 ここで
19636 \begin_inset Flex Code
19637 status collapsed
19638
19639 \begin_layout Plain Layout
19640 $path
19641 \end_layout
19642
19643 \end_inset
19644
19645 は文書のパスを示します。
19646 \end_layout
19647
19648 \begin_layout Subsubsection
19649 履歴を表示
19650 \end_layout
19651
19652 \begin_layout Standard
19653 これは、SVN文書の全履歴を表示します。
19654 \begin_inset Flex Code
19655 status collapsed
19656
19657 \begin_layout Plain Layout
19658 svn log 
19659 \begin_inset Quotes eld
19660 \end_inset
19661
19662 <ファイル名>
19663 \begin_inset Quotes erd
19664 \end_inset
19665
19666
19667 \end_layout
19668
19669 \end_inset
19670
19671 の出力がブラウザに表示されます。
19672 \end_layout
19673
19674 \begin_layout Subsubsection
19675 ファイルロック
19676 \begin_inset CommandInset label
19677 LatexCommand label
19678 name "subsec:SVNファイルロック"
19679
19680 \end_inset
19681
19682
19683 \end_layout
19684
19685 \begin_layout Standard
19686 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
19687 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19688 するための、何らかのロック機構を導入することが考えられます。
19689 \end_layout
19690
19691 \begin_layout Standard
19692 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
19693 \begin_inset Flex Code
19694 status collapsed
19695
19696 \begin_layout Plain Layout
19697 svn:needs-lock
19698 \end_layout
19699
19700 \end_inset
19701
19702 svnファイル特性に依拠した書き込み権限の自動設定(第
19703 \begin_inset CommandInset ref
19704 LatexCommand ref
19705 reference "subsec:自動ロック特性"
19706
19707 \end_inset
19708
19709 節を参照)です
19710 \begin_inset Foot
19711 status open
19712
19713 \begin_layout Plain Layout
19714 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19715 \end_layout
19716
19717 \end_inset
19718
19719 。ある文書について、この特性が検出されたときには、\SpecialChar LyX
19720 は自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19721 り替わります。これは特に、\SpecialChar LyX
19722 でのファイルの使われ方に以下の二つのモードがあることを意味します。
19723 \end_layout
19724
19725 \begin_layout Itemize
19726 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
19727 \emph on
19728 チェックアウト
19729 \emph default
19730 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
19731 \end_layout
19732
19733 \begin_layout Itemize
19734 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
19735 \emph on
19736 チェックイン
19737 \emph default
19738 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
19739 \begin_inset Foot
19740 status collapsed
19741
19742 \begin_layout Plain Layout
19743 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
19744 \end_layout
19745
19746 \end_inset
19747
19748 、書き込みロックの解放のみが行われます。
19749 \end_layout
19750
19751 \begin_layout Standard
19752 SVNコマンド:
19753 \end_layout
19754
19755 \begin_layout Labeling
19756 \labelwidthstring 00.00.0000
19757 チェックイン: 
19758 \begin_inset Flex Code
19759 status collapsed
19760
19761 \begin_layout Plain Layout
19762 svn commit -q -m
19763 \begin_inset Quotes erd
19764 \end_inset
19765
19766 <説明>
19767 \begin_inset Quotes erd
19768 \end_inset
19769
19770  
19771 \begin_inset Quotes eld
19772 \end_inset
19773
19774 <ファイル名>
19775 \begin_inset Quotes erd
19776 \end_inset
19777
19778
19779 \end_layout
19780
19781 \end_inset
19782
19783
19784 \begin_inset Newline newline
19785 \end_inset
19786
19787
19788 \begin_inset Flex Code
19789 status collapsed
19790
19791 \begin_layout Plain Layout
19792 svn unlock 
19793 \begin_inset Quotes eld
19794 \end_inset
19795
19796 <ファイル名>
19797 \begin_inset Quotes erd
19798 \end_inset
19799
19800
19801 \end_layout
19802
19803 \end_inset
19804
19805
19806 \end_layout
19807
19808 \begin_layout Labeling
19809 \labelwidthstring 00.00.0000
19810 チェックアウト: 
19811 \begin_inset Flex Code
19812 status collapsed
19813
19814 \begin_layout Plain Layout
19815 svn update 
19816 \begin_inset Quotes eld
19817 \end_inset
19818
19819 <ファイル名>
19820 \begin_inset Quotes erd
19821 \end_inset
19822
19823
19824 \end_layout
19825
19826 \end_inset
19827
19828
19829 \begin_inset Newline newline
19830 \end_inset
19831
19832
19833 \begin_inset Flex Code
19834 status collapsed
19835
19836 \begin_layout Plain Layout
19837 svn unlock 
19838 \begin_inset Quotes eld
19839 \end_inset
19840
19841 <ファイル名>
19842 \begin_inset Quotes erd
19843 \end_inset
19844
19845
19846 \end_layout
19847
19848 \end_inset
19849
19850
19851 \end_layout
19852
19853 \begin_layout Subsubsection
19854 自動ロック特性
19855 \begin_inset CommandInset label
19856 LatexCommand label
19857 name "subsec:自動ロック特性"
19858
19859 \end_inset
19860
19861
19862 \end_layout
19863
19864 \begin_layout Standard
19865 上述したような
19866 \begin_inset Flex Code
19867 status collapsed
19868
19869 \begin_layout Plain Layout
19870 .lyx
19871 \end_layout
19872
19873 \end_inset
19874
19875 ファイルに対する書き込み権限の自動設定は、
19876 \begin_inset Flex MenuItem
19877 status collapsed
19878
19879 \begin_layout Plain Layout
19880 ファイル\SpecialChar menuseparator
19881 バージョン管理\SpecialChar menuseparator
19882 ロック特性を使用
19883 \end_layout
19884
19885 \end_inset
19886
19887 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
19888 \end_layout
19889
19890 \begin_layout Standard
19891 SVNコマンド:
19892 \end_layout
19893
19894 \begin_layout Labeling
19895 \labelwidthstring 00.00.0000
19896 チェックイン: 
19897 \begin_inset Flex Code
19898 status collapsed
19899
19900 \begin_layout Plain Layout
19901 svn propset svn:needs-lock ON 
19902 \begin_inset Quotes eld
19903 \end_inset
19904
19905 <ファイル名>
19906 \begin_inset Quotes erd
19907 \end_inset
19908
19909
19910 \end_layout
19911
19912 \end_inset
19913
19914
19915 \end_layout
19916
19917 \begin_layout Labeling
19918 \labelwidthstring 00.00.0000
19919 チェックアウト: 
19920 \begin_inset Flex Code
19921 status collapsed
19922
19923 \begin_layout Plain Layout
19924 svn propdel svn:needs-lock 
19925 \begin_inset Quotes eld
19926 \end_inset
19927
19928 <ファイル名>
19929 \begin_inset Quotes erd
19930 \end_inset
19931
19932
19933 \end_layout
19934
19935 \end_inset
19936
19937
19938 \end_layout
19939
19940 \begin_layout Subsubsection
19941 \begin_inset CommandInset label
19942 LatexCommand label
19943 name "subsec:VCS改訂情報"
19944
19945 \end_inset
19946
19947 文書の改訂情報
19948 \end_layout
19949
19950 \begin_layout Standard
19951 文書中で改訂情報を有効化するにはいくつかの方法があります。
19952 \end_layout
19953
19954 \begin_layout Itemize
19955 \SpecialChar LyX
19956 による直接サポート
19957 \begin_inset Separator parbreak
19958 \end_inset
19959
19960
19961 \end_layout
19962
19963 \begin_deeper
19964 \begin_layout Itemize
19965 ツリー改訂情報(
19966 \begin_inset Flex Code
19967 status collapsed
19968
19969 \begin_layout Plain Layout
19970 vcs-tree-revision
19971 \end_layout
19972
19973 \end_inset
19974
19975 )。
19976 \begin_inset Flex Code
19977 status collapsed
19978
19979 \begin_layout Plain Layout
19980 svnversion
19981 \end_layout
19982
19983 \end_inset
19984
19985 コマンドの出力を返します。下記の表が、結果の読み方のヒントを与えるでしょう。
19986 \end_layout
19987
19988 \begin_layout Standard
19989 \align center
19990 \begin_inset Tabular
19991 <lyxtabular version="3" rows="6" columns="2">
19992 <features tabularvalignment="middle">
19993 <column alignment="center" valignment="top">
19994 <column alignment="center" valignment="top">
19995 <row>
19996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19997 \begin_inset Text
19998
19999 \begin_layout Plain Layout
20000 出力
20001 \end_layout
20002
20003 \end_inset
20004 </cell>
20005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20006 \begin_inset Text
20007
20008 \begin_layout Plain Layout
20009 意味
20010 \end_layout
20011
20012 \end_inset
20013 </cell>
20014 </row>
20015 <row>
20016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20017 \begin_inset Text
20018
20019 \begin_layout Plain Layout
20020 4123:4168
20021 \end_layout
20022
20023 \end_inset
20024 </cell>
20025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20026 \begin_inset Text
20027
20028 \begin_layout Plain Layout
20029 改訂版の混合した作業コピー
20030 \end_layout
20031
20032 \end_inset
20033 </cell>
20034 </row>
20035 <row>
20036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20037 \begin_inset Text
20038
20039 \begin_layout Plain Layout
20040 4168M
20041 \end_layout
20042
20043 \end_inset
20044 </cell>
20045 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20046 \begin_inset Text
20047
20048 \begin_layout Plain Layout
20049 修正された作業コピー
20050 \end_layout
20051
20052 \end_inset
20053 </cell>
20054 </row>
20055 <row>
20056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20057 \begin_inset Text
20058
20059 \begin_layout Plain Layout
20060 4123S
20061 \end_layout
20062
20063 \end_inset
20064 </cell>
20065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20066 \begin_inset Text
20067
20068 \begin_layout Plain Layout
20069 スイッチされた作業コピー
20070 \end_layout
20071
20072 \end_inset
20073 </cell>
20074 </row>
20075 <row>
20076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20077 \begin_inset Text
20078
20079 \begin_layout Plain Layout
20080 4123P
20081 \end_layout
20082
20083 \end_inset
20084 </cell>
20085 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20086 \begin_inset Text
20087
20088 \begin_layout Plain Layout
20089 チェックアウト頻度が低かったことによる不完全な作業コピー
20090 \end_layout
20091
20092 \end_inset
20093 </cell>
20094 </row>
20095 <row>
20096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20097 \begin_inset Text
20098
20099 \begin_layout Plain Layout
20100 4123:4168MS
20101 \end_layout
20102
20103 \end_inset
20104 </cell>
20105 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20106 \begin_inset Text
20107
20108 \begin_layout Plain Layout
20109 改訂版が混合し、修正され、スイッチされた作業コピー
20110 \end_layout
20111
20112 \end_inset
20113 </cell>
20114 </row>
20115 </lyxtabular>
20116
20117 \end_inset
20118
20119
20120 \end_layout
20121
20122 \begin_layout Itemize
20123 ファイル改訂情報。
20124 \begin_inset Flex Code
20125 status collapsed
20126
20127 \begin_layout Plain Layout
20128 svn
20129 \begin_inset space ~
20130 \end_inset
20131
20132 info
20133 \begin_inset space ~
20134 \end_inset
20135
20136 –xml
20137 \begin_inset space ~
20138 \end_inset
20139
20140 file.lyx
20141 \end_layout
20142
20143 \end_inset
20144
20145 の出力を解析したものが返されます。サポートされるフラグは
20146 \begin_inset Separator parbreak
20147 \end_inset
20148
20149
20150 \end_layout
20151
20152 \begin_deeper
20153 \begin_layout Itemize
20154 最終コミットのバージョン番号(
20155 \begin_inset Flex Code
20156 status collapsed
20157
20158 \begin_layout Plain Layout
20159 vcs-revision
20160 \end_layout
20161
20162 \end_inset
20163
20164 )
20165 \end_layout
20166
20167 \begin_layout Itemize
20168 最終コミットの著者(
20169 \begin_inset Flex Code
20170 status collapsed
20171
20172 \begin_layout Plain Layout
20173 vcs-author
20174 \end_layout
20175
20176 \end_inset
20177
20178 )
20179 \end_layout
20180
20181 \begin_layout Itemize
20182 最終コミットの日付(
20183 \begin_inset Flex Code
20184 status collapsed
20185
20186 \begin_layout Plain Layout
20187 vcs-date
20188 \end_layout
20189
20190 \end_inset
20191
20192 )
20193 \end_layout
20194
20195 \begin_layout Itemize
20196 最終コミットの時間(
20197 \begin_inset Flex Code
20198 status collapsed
20199
20200 \begin_layout Plain Layout
20201 vcs-time
20202 \end_layout
20203
20204 \end_inset
20205
20206 )
20207 \end_layout
20208
20209 \end_deeper
20210 \begin_layout Standard
20211 これらの情報は、情報差込枠で得ることができます(例:
20212 \begin_inset Flex Code
20213 status collapsed
20214
20215 \begin_layout Plain Layout
20216 info-insert buffer vcs-date
20217 \end_layout
20218
20219 \end_inset
20220
20221 )。これらの情報は、ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20222 \begin_inset Flex Code
20223 status collapsed
20224
20225 \begin_layout Plain Layout
20226 .svn
20227 \end_layout
20228
20229 \end_inset
20230
20231 ディレクトリがあるときのみ)利用可能です。
20232 \end_layout
20233
20234 \end_deeper
20235 \begin_layout Itemize
20236 もう一つの—ハッカー的な—方法は、SVNキーワードを使用する方法です
20237 \begin_inset Foot
20238 status collapsed
20239
20240 \begin_layout Plain Layout
20241 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20242 \end_layout
20243
20244 \end_inset
20245
20246 。簡単に言えば、ファイルキーワード特性を設定して(例:
20247 \family sans
20248 svn propset svn:keywords 'Rev' file.lyx
20249 \family default
20250 )、文書中にキーワード\SpecialChar TeX
20251 コード
20252 \begin_inset Foot
20253 status collapsed
20254
20255 \begin_layout Plain Layout
20256 これは、\SpecialChar LyX
20257 がキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
20258 \end_layout
20259
20260 \end_inset
20261
20262 タグ(例:
20263 \begin_inset ERT
20264 status open
20265
20266 \begin_layout Plain Layout
20267
20268 $Rev$
20269 \end_layout
20270
20271 \end_inset
20272
20273 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
20274 \begin_inset ERT
20275 status open
20276
20277 \begin_layout Plain Layout
20278
20279 $Rev: 59 $
20280 \end_layout
20281
20282 \end_inset
20283
20284 )。このアプローチにはいくつか問題があります。第一に、\SpecialChar TeX
20285 の世界では「$」文字は数式を表すのに使われるので、\SpecialChar LyX
20286 中の
20287 \begin_inset Formula $Rev$
20288 \end_inset
20289
20290 という数式表現が、すべて
20291 \begin_inset Formula $Rev:59$
20292 \end_inset
20293
20294 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
20295 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
20296 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、\SpecialChar LyX
20297 がこれを直接サポートすることは、難しそうです。
20298 \end_layout
20299
20300 \begin_layout Subsection
20301 SVNとWindows環境
20302 \end_layout
20303
20304 \begin_layout Quote
20305 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。—P.
20306  A.
20307  ルービン
20308 \end_layout
20309
20310 \begin_layout Subsubsection
20311 準備
20312 \end_layout
20313
20314 \begin_layout Standard
20315 \SpecialChar LyX
20316 を導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クライアン
20317 トプログラムのWindows用インストーラは
20318 \begin_inset CommandInset href
20319 LatexCommand href
20320 name "CollabNet"
20321 target "http://www.collab.net/nonav/downloads/subversion/"
20322
20323 \end_inset
20324
20325 にあります。ユーザは
20326 \begin_inset CommandInset href
20327 LatexCommand href
20328 name "TortoiseSVN"
20329 target "http://tortoisesvn.tigris.org/"
20330
20331 \end_inset
20332
20333 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。\SpecialChar LyX
20334 外部で行う操
20335 作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、\SpecialChar LyX
20336 自身が使用するクライアントプログラムの代わりとは成りませんので
20337 、注意してください。
20338 \end_layout
20339
20340 \begin_layout Subsubsection
20341 文書をSubversion管理下に置くには
20342 \end_layout
20343
20344 \begin_layout Standard
20345 \SpecialChar LyX
20346 文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロジェク
20347 トに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下にない
20348 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、\SpecialChar LyX
20349 の外部で行います
20350 。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、DOSプロン
20351 プトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。レポジトリは
20352 既に存在し、新規プロジェクトを
20353 \begin_inset Flex Code
20354 status collapsed
20355
20356 \begin_layout Plain Layout
20357 C:
20358 \backslash
20359 new project
20360 \end_layout
20361
20362 \end_inset
20363
20364 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
20365 \begin_inset Flex Code
20366 status collapsed
20367
20368 \begin_layout Plain Layout
20369 svn –help
20370 \end_layout
20371
20372 \end_inset
20373
20374 を実行してください。
20375 \end_layout
20376
20377 \begin_layout Enumerate
20378 Windows Explorerで
20379 \begin_inset Flex Code
20380 status collapsed
20381
20382 \begin_layout Plain Layout
20383 C:
20384 \backslash
20385 new project
20386 \end_layout
20387
20388 \end_inset
20389
20390 を見つけ出して右クリックし、
20391 \begin_inset Flex MenuItem
20392 status collapsed
20393
20394 \begin_layout Plain Layout
20395 TortoiseSVN\SpecialChar menuseparator
20396 Repo-browser
20397 \end_layout
20398
20399 \end_inset
20400
20401 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
20402 \end_layout
20403
20404 \begin_layout Enumerate
20405 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
20406 \begin_inset Flex MenuItem
20407 status collapsed
20408
20409 \begin_layout Plain Layout
20410 Create folder\SpecialChar ldots
20411
20412 \end_layout
20413
20414 \end_inset
20415
20416 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
20417 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
20418 \end_layout
20419
20420 \begin_layout Enumerate
20421 再度
20422 \begin_inset Flex Code
20423 status collapsed
20424
20425 \begin_layout Plain Layout
20426 C:
20427 \backslash
20428 new project
20429 \end_layout
20430
20431 \end_inset
20432
20433 を右クリックし、今度は
20434 \begin_inset Flex MenuItem
20435 status collapsed
20436
20437 \begin_layout Plain Layout
20438 SVN Checkout\SpecialChar ldots
20439
20440 \end_layout
20441
20442 \end_inset
20443
20444 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
20445 \begin_inset Flex Code
20446 status collapsed
20447
20448 \begin_layout Plain Layout
20449 C:
20450 \backslash
20451 new project
20452 \end_layout
20453
20454 \end_inset
20455
20456 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
20457 \begin_inset Flex Code
20458 status collapsed
20459
20460 \begin_layout Plain Layout
20461 C:
20462 \backslash
20463 new project
20464 \end_layout
20465
20466 \end_inset
20467
20468 の下に
20469 \begin_inset Flex Code
20470 status collapsed
20471
20472 \begin_layout Plain Layout
20473 .svn
20474 \end_layout
20475
20476 \end_inset
20477
20478 ディレクトリが作成されます。
20479 \end_layout
20480
20481 \begin_layout Enumerate
20482 \SpecialChar LyX
20483 で文書を新規作成するか開くかして、
20484 \begin_inset Flex MenuItem
20485 status collapsed
20486
20487 \begin_layout Plain Layout
20488 ファイル\SpecialChar menuseparator
20489 バージョン管理\SpecialChar menuseparator
20490 登録
20491 \end_layout
20492
20493 \end_inset
20494
20495 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
20496 \end_layout
20497
20498 \begin_layout Standard
20499 爾後、
20500 \begin_inset Flex MenuItem
20501 status collapsed
20502
20503 \begin_layout Plain Layout
20504 ファイル\SpecialChar menuseparator
20505 バージョン管理
20506 \end_layout
20507
20508 \end_inset
20509
20510 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
20511 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
20512 \end_layout
20513
20514 \begin_layout Subsubsection
20515 Windows下でSVNと共にSSHトンネルを使うには
20516 \end_layout
20517
20518 \begin_layout Standard
20519 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
20520 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
20521 ることを覚悟しておいてください。
20522 \end_layout
20523
20524 \begin_layout Enumerate
20525 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
20526 \begin_inset Flex Code
20527 status collapsed
20528
20529 \begin_layout Plain Layout
20530 svn –version
20531 \end_layout
20532
20533 \end_inset
20534
20535 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
20536 \end_layout
20537
20538 \begin_layout Enumerate
20539 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
20540 \begin_inset Foot
20541 status open
20542
20543 \begin_layout Plain Layout
20544 \begin_inset Flex URL
20545 status collapsed
20546
20547 \begin_layout Plain Layout
20548
20549 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20550 \end_layout
20551
20552 \end_inset
20553
20554
20555 \end_layout
20556
20557 \end_inset
20558
20559 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
20560 護などを加えない
20561 \begin_inset Flex Ruby
20562 status collapsed
20563
20564 \begin_layout Plain Layout
20565
20566 \begin_inset Argument post:1
20567 status collapsed
20568
20569 \begin_layout Plain Layout
20570 キー
20571 \end_layout
20572
20573 \end_inset
20574
20575
20576 \end_layout
20577
20578 \end_inset
20579
20580 のみを使用することとします。
20581 \begin_inset Separator parbreak
20582 \end_inset
20583
20584
20585 \end_layout
20586
20587 \begin_deeper
20588 \begin_layout Enumerate
20589 \begin_inset Flex Code
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593 puttygen
20594 \end_layout
20595
20596 \end_inset
20597
20598 を使って鍵を生成します。.ppkプライベート鍵ファイルを保存し、パブリック鍵ファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブリック
20599 鍵の書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized_key
20600 s file:」編集フィールドから、直接サーバの
20601 \begin_inset Flex Code
20602 status collapsed
20603
20604 \begin_layout Plain Layout
20605 ~/.ssh/authorized_keys
20606 \end_layout
20607
20608 \end_inset
20609
20610 または
20611 \begin_inset Flex Code
20612 status collapsed
20613
20614 \begin_layout Plain Layout
20615 authorized_keys2
20616 \end_layout
20617
20618 \end_inset
20619
20620 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
20621 \end_layout
20622
20623 \begin_layout Enumerate
20624 Puttyのplinkを入手してください。SVNのconfigファイル
20625 \begin_inset Foot
20626 status collapsed
20627
20628 \begin_layout Plain Layout
20629 正確なパスはWindowsのバージョンに依りますが、通常は
20630 \begin_inset Flex Code
20631 status collapsed
20632
20633 \begin_layout Plain Layout
20634 c:
20635 \backslash
20636 Documents and Settings
20637 \backslash
20638 user
20639 \backslash
20640 Application Data
20641 \backslash
20642 Subversion
20643 \backslash
20644 config
20645 \end_layout
20646
20647 \end_inset
20648
20649
20650 \begin_inset Flex Code
20651 status collapsed
20652
20653 \begin_layout Plain Layout
20654 AppData
20655 \backslash
20656 Roaming
20657 \backslash
20658 Subversion
20659 \end_layout
20660
20661 \end_inset
20662
20663 辺りにあります。
20664 \end_layout
20665
20666 \end_inset
20667
20668 中の
20669 \begin_inset Flex Code
20670 status collapsed
20671
20672 \begin_layout Plain Layout
20673 [tunnels]
20674 \end_layout
20675
20676 \end_inset
20677
20678 セクションにsshコマンドを設定してください。例:
20679 \begin_inset Flex Code
20680 status collapsed
20681
20682 \begin_layout Plain Layout
20683 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20684 \end_layout
20685
20686 \end_inset
20687
20688
20689 \begin_inset Foot
20690 status collapsed
20691
20692 \begin_layout Plain Layout
20693 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
20694 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
20695 \end_layout
20696
20697 \end_inset
20698
20699
20700 \end_layout
20701
20702 \end_deeper
20703 \begin_layout Enumerate
20704 SVNアーカイブをチェックアウトしてください。例:
20705 \begin_inset Newline newline
20706 \end_inset
20707
20708
20709 \begin_inset Flex Code
20710 status collapsed
20711
20712 \begin_layout Plain Layout
20713 svn co svn+ssh://user@server/repository_path
20714 \end_layout
20715
20716 \end_inset
20717
20718
20719 \end_layout
20720
20721 \begin_layout Subsubsection
20722 行末変換
20723 \end_layout
20724
20725 \begin_layout Standard
20726 共著者同士がLinuxとWindowsを混在させているとき、\SpecialChar LyX
20727 は.lyxファイル中で異なった行末記号を使用することになります。これは、\SpecialChar LyX
20728 の機能に関する限り問題になりま
20729 せんが、コミット差分は巨大になり、マージではコンフリクトを引き起こしがちです。幸いにして、SVNは、.lyxファイルを
20730 \begin_inset Flex Code
20731 status collapsed
20732
20733 \begin_layout Plain Layout
20734 native
20735 \end_layout
20736
20737 \end_inset
20738
20739 モードに切り替える際
20740 \begin_inset Foot
20741 status collapsed
20742
20743 \begin_layout Plain Layout
20744 手短には
20745 \begin_inset Flex Code
20746 status collapsed
20747
20748 \begin_layout Plain Layout
20749 svn propset svn:eol-style native FILE_NAME
20750 \end_layout
20751
20752 \end_inset
20753
20754
20755 \end_layout
20756
20757 \end_inset
20758
20759 、CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20760 \begin_inset Foot
20761 status collapsed
20762
20763 \begin_layout Plain Layout
20764 \begin_inset Flex URL
20765 status collapsed
20766
20767 \begin_layout Plain Layout
20768
20769 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20770 \end_layout
20771
20772 \end_inset
20773
20774
20775 \end_layout
20776
20777 \end_inset
20778
20779
20780 \end_layout
20781
20782 \begin_layout Subsection
20783 \SpecialChar LyX
20784 におけるGITコマンド
20785 \end_layout
20786
20787 \begin_layout Standard
20788 \SpecialChar LyX
20789 で、最小限のGITコマンドがサポートされるようになりました。これらのコマンドは、
20790 \family sans
20791 ファイル\SpecialChar menuseparator
20792 バージョン管理
20793 \family default
20794 にあります。リポジトリのアクセスに、パスワード保護されたsshを使用している場合には、ターミナルウィンドウでの操作をするように促されます。\SpecialChar LyX
20795 は、GIT
20796  1.7に対して試験を行っています。
20797 \end_layout
20798
20799 \begin_layout Standard
20800 GITと他のバージョン管理システムとの大きな相違点は、GITの配布形態にあります。伝統的なバージョン管理システムでは、リポジトリをホストする、中心となるサーバー
20801 があります。ユーザーは変更点をサーバーにコミットし、他のユーザーが行った更新分をサーバーから受け取ります。一方、GITでは、ユーザーは、ローカルのリポジトリにコ
20802 ミットを行います。ローカルリポジトリは、GITコマンドの
20803 \begin_inset Flex Code
20804 status open
20805
20806 \begin_layout Plain Layout
20807 pull
20808 \end_layout
20809
20810 \end_inset
20811
20812 または
20813 \begin_inset Flex Code
20814 status open
20815
20816 \begin_layout Plain Layout
20817 push
20818 \end_layout
20819
20820 \end_inset
20821
20822 を使って、1つ以上のリモートリポジトリと同期されます。\SpecialChar LyX
20823 は、リモートのGITリポジトリとは、一切関わりません。CVSやSVNの集権的リポジトリに対して行うのと同じ
20824 ことを、ローカルのリポジトリに対してのみ行います。リモートのGITリポジトリを使用している場合には、お好みのGITクライアントを使用して、
20825 \begin_inset Flex Code
20826 status open
20827
20828 \begin_layout Plain Layout
20829 pull
20830 \end_layout
20831
20832 \end_inset
20833
20834 または
20835 \begin_inset Flex Code
20836 status open
20837
20838 \begin_layout Plain Layout
20839 push
20840 \end_layout
20841
20842 \end_inset
20843
20844 の操作を行う必要があります。
20845 \end_layout
20846
20847 \begin_layout Subsubsection
20848 登録
20849 \end_layout
20850
20851 \begin_layout Standard
20852 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
20853 \family sans
20854 登録
20855 \family default
20856 項目は表示されません。
20857 \end_layout
20858
20859 \begin_layout Standard
20860 本コマンドは、既に文書のあるディレクトリをGIT管理下に置いている場合に
20861 \emph on
20862 のみ
20863 \emph default
20864 (すなわち
20865 \begin_inset Flex Code
20866 status collapsed
20867
20868 \begin_layout Plain Layout
20869 .git/index
20870 \end_layout
20871
20872 \end_inset
20873
20874 ファイルが存在する場合にのみ)、お使いの文書をGITに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
20875 \end_layout
20876
20877 \begin_layout Standard
20878 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
20879 \end_layout
20880
20881 \begin_layout Standard
20882 実行されるGITコマンドは、
20883 \begin_inset Flex Code
20884 status collapsed
20885
20886 \begin_layout Plain Layout
20887 git add "<ファイル名>"
20888 \end_layout
20889
20890 \end_inset
20891
20892 です。
20893 \end_layout
20894
20895 \begin_layout Standard
20896 スイッチの説明は
20897 \begin_inset Flex Code
20898 status collapsed
20899
20900 \begin_layout Plain Layout
20901 man git
20902 \end_layout
20903
20904 \end_inset
20905
20906 をお読みください。
20907 \end_layout
20908
20909 \begin_layout Subsubsection
20910 変更をチェックイン
20911 \end_layout
20912
20913 \begin_layout Standard
20914 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
20915 \end_layout
20916
20917 \begin_layout Standard
20918 GITコマンド:
20919 \begin_inset Flex Code
20920 status collapsed
20921
20922 \begin_layout Plain Layout
20923 git commit -q -m
20924 \begin_inset Quotes erd
20925 \end_inset
20926
20927 <入力した説明文>
20928 \begin_inset Quotes erd
20929 \end_inset
20930
20931  "<ファイル名>"
20932 \end_layout
20933
20934 \end_inset
20935
20936
20937 \end_layout
20938
20939 \begin_layout Subsubsection
20940 リポジトリ版に戻す
20941 \end_layout
20942
20943 \begin_layout Standard
20944 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
20945 \end_layout
20946
20947 \begin_layout Standard
20948 GITコマンド:
20949 \begin_inset Flex Code
20950 status collapsed
20951
20952 \begin_layout Plain Layout
20953 git checkout -q 
20954 \begin_inset Quotes eld
20955 \end_inset
20956
20957 <ファイル名>
20958 \begin_inset Quotes erd
20959 \end_inset
20960
20961
20962 \end_layout
20963
20964 \end_inset
20965
20966
20967 \end_layout
20968
20969 \begin_layout Subsubsection
20970 ファイル名変更
20971 \end_layout
20972
20973 \begin_layout Standard
20974 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
20975 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
20976 ァイルの相対パスは、(
20977 \family sans
20978 ファイル\SpecialChar menuseparator
20979 名前をつけて保存\SpecialChar ldots
20980
20981 \family default
20982 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
20983 \end_layout
20984
20985 \begin_layout Labeling
20986 \labelwidthstring 00.00.0000
20987 GITコマンド:
20988 \end_layout
20989
20990 \begin_layout Labeling
20991 \labelwidthstring 00.00.0000
20992 \begin_inset Flex Code
20993 status collapsed
20994
20995 \begin_layout Plain Layout
20996 git mv "<ファイル名>" "<新ファイル名>"
20997 \end_layout
20998
20999 \end_inset
21000
21001
21002 \end_layout
21003
21004 \begin_layout Labeling
21005 \labelwidthstring 00.00.0000
21006 \begin_inset Flex Code
21007 status collapsed
21008
21009 \begin_layout Plain Layout
21010 git commit
21011 \end_layout
21012
21013 \end_inset
21014
21015
21016 \end_layout
21017
21018 \begin_layout Subsubsection
21019 履歴を表示
21020 \end_layout
21021
21022 \begin_layout Standard
21023 これは、GIT文書の全履歴を表示します。
21024 \begin_inset Flex Code
21025 status collapsed
21026
21027 \begin_layout Plain Layout
21028 git log 
21029 \begin_inset Quotes eld
21030 \end_inset
21031
21032 <ファイル名>
21033 \begin_inset Quotes erd
21034 \end_inset
21035
21036
21037 \end_layout
21038
21039 \end_inset
21040
21041 の出力がブラウザに表示されます。
21042 \end_layout
21043
21044 \begin_layout Subsubsection
21045 改訂情報
21046 \end_layout
21047
21048 \begin_layout Standard
21049 \SpecialChar LyX
21050 は、ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
21051 \family typewriter
21052 git log -n 1 --pretty=format:%H%n%an%n%ai
21053 \family default
21054 によって抽出されます。ツリーバージョン情報は、
21055 \family typewriter
21056 git describe --abbrev --dirty --long
21057 \family default
21058 で取得されます。詳細については、第
21059 \begin_inset CommandInset ref
21060 LatexCommand ref
21061 reference "subsec:VCS改訂情報"
21062
21063 \end_inset
21064
21065 節を参照してください。
21066 \end_layout
21067
21068 \begin_layout Subsection
21069 さらなる調整
21070 \end_layout
21071
21072 \begin_layout Standard
21073 vcコマンド機構が最近になって付け加えられたおかげで、\SpecialChar LyX
21074 のパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
21075 \end_layout
21076
21077 \begin_layout Standard
21078 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
21079 \end_layout
21080
21081 \begin_layout Description
21082 コミット: 
21083 \begin_inset Flex Code
21084 status collapsed
21085
21086 \begin_layout Plain Layout
21087 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21088 \end_layout
21089
21090 \end_inset
21091
21092
21093 \end_layout
21094
21095 \begin_layout Description
21096 元に戻す: 
21097 \begin_inset Flex Code
21098 status collapsed
21099
21100 \begin_layout Plain Layout
21101 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21102 \end_layout
21103
21104 \end_inset
21105
21106
21107 \end_layout
21108
21109 \begin_layout Subsection
21110 バージョン管理と文書比較
21111 \end_layout
21112
21113 \begin_layout Standard
21114 バージョン管理は、通常
21115 \begin_inset Flex Code
21116 status collapsed
21117
21118 \begin_layout Plain Layout
21119 diff
21120 \end_layout
21121
21122 \end_inset
21123
21124 ダンプを生成することによって、改訂版の間の変更点を検査するのが、典型的な使用法です。これは平文ファイルには有効なのですが、複雑な構造を持つ\SpecialChar LyX
21125 ファイルの場合には、あ
21126 まり便利ではありません。そこで、\SpecialChar LyX
21127 は独自の文書比較機能を提供しています。この機能を呼び出すには2つの方法があります。1つは、\SpecialChar LyX
21128
21129 \begin_inset Flex Code
21130 status collapsed
21131
21132 \begin_layout Plain Layout
21133 VC_COMPARE
21134 \end_layout
21135
21136 \end_inset
21137
21138 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21139 関数説明書を参照)、もう1つは
21140 \begin_inset Flex MenuItem
21141 status collapsed
21142
21143 \begin_layout Plain Layout
21144 旧改訂と比較\SpecialChar ldots
21145
21146 \end_layout
21147
21148 \end_inset
21149
21150 メニューないしアイコンを使用する方法です。当該文書のうち、任意の2つの改訂版を比較することもできますし、編集中の現行版を古い改訂版と比較することもできます(この
21151 とき改訂版遡及数「
21152 \begin_inset Flex MenuItem
21153 status collapsed
21154
21155 \begin_layout Plain Layout
21156 0
21157 \end_layout
21158
21159 \end_inset
21160
21161 」は、編集中のファイルと最後にコミットした改訂版との比較を意味します)。
21162 \end_layout
21163
21164 \begin_layout Standard
21165 この機能は、SVNとRCSでサポートされていますが、RCSは、より複雑なバージョン付けスキームを持っているため、制約があります。ダイアログ中で改訂版を指定する際
21166 の数字は、つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」)。現在のところ、改訂のGIT表記はサポートされておらず、HEAD~
21167 Xの形で表記されるXステップ前の改訂版を、編集中文書と比較することのみが可能です。
21168 \end_layout
21169
21170 \begin_layout Section
21171 文芸プログラミング
21172 \end_layout
21173
21174 \begin_layout Standard
21175
21176 \noun on
21177 Kayvan Sylvan
21178 \noun default
21179 (kayvan@sylvan.com)改訂 
21180 \noun on
21181 Edmar Wienskoski Jr.
21182 \noun default
21183 (edmar-w-jr@technologist.com)原文
21184 \end_layout
21185
21186 \begin_layout Subsection
21187 はじめに
21188 \end_layout
21189
21190 \begin_layout Standard
21191 この節の主な目的は、文芸的プログラミング(literate programming)のために、\SpecialChar LyX
21192 をどう使えばよいかをお見せすることです。ここでは、あなたがこのプロ
21193 グラミング技術をよくご存じで、「tangling」や「weaving」の意味するところを知っているものとして説明します。そうでない場合には、以下の各節にあるウェ
21194 ブリンクをたどってください。そこには、かつての開発の歴史から最新のツールチップまで、たくさんの良質なドキュメンテーションがあります。
21195 \end_layout
21196
21197 \begin_layout Standard
21198 また、あなたが、\SpecialChar LyX
21199 の設定を変更することを厭わない程度まで\SpecialChar LyX
21200 に習熟しており、Xリソースファイルにも親しんでいることを前提にしています。そうでない場合は、あなたの必要と
21201 するトピックを扱っている、\SpecialChar LyX
21202 の他の説明書で調べてください。
21203 \end_layout
21204
21205 \begin_layout Subsection
21206 文芸プログラミング
21207 \end_layout
21208
21209 \begin_layout Standard
21210 以下は、文芸プログラミング FAQからの抜粋です。
21211 \end_layout
21212
21213 \begin_layout Quotation
21214 文芸プログラミングは、人間が読むのに適した形でのドキュメンテーションとソースの組合わせです。実際、文芸的プログラムは楽しい読み物であるべきであり、さらには参加し
21215 たいとさえ思わせるべきなのです!(ボブ、ごめん。言わずにはいれなかった。)一般的に、文芸プログラムは、ソースとドキュメンテーションを同一ファイル上に結合したもの
21216 です。そして、文芸プログラミングツールは、ファイルを解析して、読むことのできるドキュメンテーションか、あるいはコンパイル可能なソースを生成します。文芸プログラミ
21217 ングのWEBスタイルは、D.
21218 \begin_inset space \thinspace{}
21219 \end_inset
21220
21221 E.
21222  Knuthが、\SpecialChar TeX
21223 組版ソフトウエアを開発中に作り出したものです。
21224 \end_layout
21225
21226 \begin_layout Standard
21227 他のエキスパートの発言です。
21228 \end_layout
21229
21230 \begin_layout Quotation
21231
21232 \emph on
21233 文芸プログラミングは、冗長なコメント付けと何が違いますか?
21234 \end_layout
21235
21236 \begin_layout Quotation
21237 3つの際立った特徴があります。重要な順に列挙すれば、
21238 \begin_inset Separator parbreak
21239 \end_inset
21240
21241
21242 \end_layout
21243
21244 \begin_deeper
21245 \begin_layout Itemize
21246 推敲の順序が柔軟
21247 \end_layout
21248
21249 \begin_layout Itemize
21250 ブラウジングの自動サポート
21251 \end_layout
21252
21253 \begin_layout Itemize
21254 特に図式と数式を含んだドキュメンテーションの組版
21255 \end_layout
21256
21257 \end_deeper
21258 \begin_layout Quotation
21259 などがあります。
21260 \end_layout
21261
21262 \begin_layout Standard
21263 あなたの興味に火を付けたところで書誌情報を見てみましょう。
21264 \end_layout
21265
21266 \begin_layout Subsubsection
21267 書誌情報
21268 \end_layout
21269
21270 \begin_layout Standard
21271 完全な文芸プログラミング FAQは
21272 \end_layout
21273
21274 \begin_layout Quote
21275 Literate Programming FAQ 
21276 \begin_inset Flex URL
21277 status collapsed
21278
21279 \begin_layout Plain Layout
21280
21281 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21282 \end_layout
21283
21284 \end_inset
21285
21286
21287 \end_layout
21288
21289 \begin_layout Standard
21290 にあります。
21291 \end_layout
21292
21293 \begin_layout Standard
21294 このFAQには、23(二十三です!)の文芸プログラミング用ツールが列挙されています。一部のツールは、特定のプログラミング言語用に特化したものですが、一般的な対象
21295 を持つものもあります。私は自分で使うのに、いくつかの理由から
21296 \noun on
21297 Noweb
21298 \noun default
21299 を選びました。
21300 \end_layout
21301
21302 \begin_layout Itemize
21303 説明文書を\SpecialChar LaTeX
21304 でもHTMLでも出力できる。
21305 \end_layout
21306
21307 \begin_layout Itemize
21308 開放的なアーキテクチャに持っているので、新しいフィルタをプラグインとして加えたり、自分が必要な特別な処理を実行することが容易である。
21309 \end_layout
21310
21311 \begin_layout Itemize
21312 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです)。
21313 \end_layout
21314
21315 \begin_layout Itemize
21316 無料である。
21317 \end_layout
21318
21319 \begin_layout Standard
21320 Nowebのウェブページは
21321 \end_layout
21322
21323 \begin_layout Quote
21324 Nowebホームページ 
21325 \begin_inset Flex URL
21326 status collapsed
21327
21328 \begin_layout Plain Layout
21329
21330 http://www.cs.virginia.edu/~nr/noweb/
21331 \end_layout
21332
21333 \end_inset
21334
21335
21336 \end_layout
21337
21338 \begin_layout Standard
21339 にあります。ここから始めれば、たくさんの興味深いリンクや、文芸プログラミングの用例にたどり着くことができます。
21340 \end_layout
21341
21342 \begin_layout Subsection
21343 \SpecialChar LyX
21344 とNowebを使った文芸プログラミング
21345 \end_layout
21346
21347 \begin_layout Standard
21348 \SpecialChar LyX
21349 における文芸プログラミングのサポートは、\SpecialChar LyX
21350 の汎用変換機構を使用して実現しています。このサポートは「Noweb非依存」的な方法で提供されているので、LyXの設定を変
21351 更するだけで、自分の好きな他の文芸プログラミングツールを使って、この新しい\SpecialChar LyX
21352 の機能を利用することができます。
21353 \end_layout
21354
21355 \begin_layout Subsubsection
21356 ドキュメントとコードの生成(weavingおよびtangling)
21357 \end_layout
21358
21359 \begin_layout Paragraph
21360 nowebモジュールの使用
21361 \end_layout
21362
21363 \begin_layout Standard
21364 Nowebと\SpecialChar LyX
21365 の導入に成功したならば、新規文書を開いたときにはいつも、文書クラスを選択した後、
21366 \family sans
21367 文書\SpecialChar menuseparator
21368 設定
21369 \family default
21370 メニューで「noweb」モジュールを追加するようにしてください。Nowebが正しく導入されていれば、「モジュール」リンクをクリックした際、利用可能リストに「no
21371 web」モジュールが表示され、文書に追加できるようになっています。
21372 \end_layout
21373
21374 \begin_layout Paragraph
21375 コードの入力
21376 \end_layout
21377
21378 \begin_layout Standard
21379 \SpecialChar LyX
21380 では、
21381 \begin_inset Flex Noun
21382 status collapsed
21383
21384 \begin_layout Plain Layout
21385 Chunk
21386 \end_layout
21387
21388 \end_inset
21389
21390 という名前のレイアウトを使えば、コードを入力することができます。Nowebは次のようにchunks を区切ります。
21391 \end_layout
21392
21393 \begin_layout LyX-Code
21394 <<My code>>=
21395 \end_layout
21396
21397 \begin_layout LyX-Code
21398   code
21399 \end_layout
21400
21401 \begin_layout LyX-Code
21402   more code
21403 \end_layout
21404
21405 \begin_layout LyX-Code
21406   even more code
21407 \end_layout
21408
21409 \begin_layout LyX-Code
21410   @
21411 \end_layout
21412
21413 \begin_layout Standard
21414 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまり、\SpecialChar LyX
21415 は、この間に書かれたものを特別に解釈することは決してあってはなりません。
21416 これも
21417 \begin_inset Flex Noun
21418 status collapsed
21419
21420 \begin_layout Plain Layout
21421 Chunk
21422 \end_layout
21423
21424 \end_inset
21425
21426 によって取り扱われ、通常の段落のように見えますが、自由に空白を入れることができます。
21427 \end_layout
21428
21429 \begin_layout Standard
21430 特殊な注釈として、chunk内でNowebの「%def」を使えば、Nowebのidentifierの相互参照に項目を加えることができます。次の例を見てください。
21431 \end_layout
21432
21433 \begin_layout LyX-Code
21434 <<My chunk>>=
21435 \end_layout
21436
21437 \begin_layout LyX-Code
21438 def some_function(args):
21439 \end_layout
21440
21441 \begin_layout LyX-Code
21442    "This is the doc string for this function."
21443 \end_layout
21444
21445 \begin_layout LyX-Code
21446    print "My args: ", args
21447 \end_layout
21448
21449 \begin_layout LyX-Code
21450 @ %def some_function
21451 \end_layout
21452
21453 \begin_layout Standard
21454 これをどのように使って、その結果相互参照がどうなるかは
21455 \emph on
21456 LIBDIR/examples/listerrors.lyx
21457 \emph default
21458 の中の文芸pythonプログラムを見るとよくわかります。
21459 \end_layout
21460
21461 \begin_layout Paragraph
21462 説明文書の生成
21463 \end_layout
21464
21465 \begin_layout Standard
21466 この時点で、適切な文書クラスを持ち、いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです。これをどうやって印刷したらいいのでしょう。答えは
21467 簡単で、通常の文書で行うように
21468 \family sans
21469 文書\SpecialChar menuseparator
21470 表示
21471 \family default
21472 等を選ぶだけです。特別な手続きは必要ありません。
21473 \end_layout
21474
21475 \begin_layout Standard
21476 理解を助けるために、\SpecialChar LyX
21477 の内部で何が起っているかを説明しておきましょう。
21478 \end_layout
21479
21480 \begin_layout Enumerate
21481
21482 \family sans
21483 文書\SpecialChar menuseparator
21484 更新
21485 \family default
21486 が選択されると、\SpecialChar LaTeX
21487 ファイルがつくられます。
21488 \begin_inset Separator parbreak
21489 \end_inset
21490
21491
21492 \end_layout
21493
21494 \begin_deeper
21495 \begin_layout Standard
21496 文書が文芸プログラミング用のクラスであった場合には、拡張子に(
21497 \begin_inset Flex MenuItem
21498 status collapsed
21499
21500 \begin_layout Plain Layout
21501 設定
21502 \end_layout
21503
21504 \end_inset
21505
21506 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
21507 \end_layout
21508
21509 \end_deeper
21510 \begin_layout Enumerate
21511 違いがファイル名だけなのに注意してください。\SpecialChar LyX
21512 による特別な処理は必要ありません。
21513 \begin_inset Flex Noun
21514 status collapsed
21515
21516 \begin_layout Plain Layout
21517 Chunk
21518 \end_layout
21519
21520 \end_inset
21521
21522 環境でコードを入力するのだけがポイントです。
21523 \end_layout
21524
21525 \begin_layout Enumerate
21526 文書が何らかの文芸プログラムクラスなら、\SpecialChar LyX
21527 は、\SpecialChar LyX
21528 からNowebへの内部変換子を用い、それからNowebから\SpecialChar LaTeX
21529 への変換子
21530 \begin_inset Foot
21531 status collapsed
21532
21533 \begin_layout Plain Layout
21534 これらの変換子は、
21535 \family sans
21536 ツール\SpecialChar menuseparator
21537 設定
21538 \family default
21539 パネルの変換子タブに定義されています。変換子の一般的な情報については、取扱説明書『
21540 \emph on
21541 カスタマイズ篇
21542 \emph default
21543 』の「
21544 \emph on
21545 変換子
21546 \emph default
21547 」の節をご覧ください。
21548 \end_layout
21549
21550 \end_inset
21551
21552 を使って\SpecialChar LaTeX
21553 ファイルを生成します。
21554 \begin_inset Separator parbreak
21555 \end_inset
21556
21557
21558 \end_layout
21559
21560 \begin_deeper
21561 \begin_layout Standard
21562 それ以外の場合はこのステップを飛ばします。
21563 \end_layout
21564
21565 \end_deeper
21566 \begin_layout Enumerate
21567 最後に\SpecialChar LaTeX
21568 が実行され、通常の文書と同じ後処理が行われます。
21569 \end_layout
21570
21571 \begin_layout Standard
21572 様々な変換子が実行するコマンドを変更すれば、簡単に、特定の「文芸プログラムツール」から変更することができます。
21573 \end_layout
21574
21575 \begin_layout Paragraph
21576 コードの生成
21577 \end_layout
21578
21579 \begin_layout Standard
21580 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様に\SpecialChar LaTeX
21581 ファイルが生成されます。それから\SpecialChar LyX
21582
21583 \family typewriter
21584 Noweb->Program
21585 \family default
21586 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
21587 \end_layout
21588
21589 \begin_layout Enumerate
21590 変換プログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマットへ
21591 変換します)。
21592 \end_layout
21593
21594 \begin_layout Enumerate
21595 エラーログ解析子。これはエラーメッセージを\SpecialChar LyX
21596 が理解できる形へ書き直します。これによって、\SpecialChar LyX
21597 はファイルバッファの正しい位置へエラーボックスを配置することができます。
21598 \end_layout
21599
21600 \begin_layout Standard
21601 冒頭部、「変換子」設定は
21602 \begin_inset Newline newline
21603 \end_inset
21604
21605
21606 \begin_inset Quotes eld
21607 \end_inset
21608
21609
21610 \family typewriter
21611 build-script $$i $$r
21612 \family default
21613
21614 \begin_inset Quotes erd
21615 \end_inset
21616
21617
21618 \begin_inset Newline newline
21619 \end_inset
21620
21621 と指定します。これは基本的に、\SpecialChar LyX
21622
21623 \begin_inset Quotes erd
21624 \end_inset
21625
21626
21627 \family typewriter
21628 build-script
21629 \family default
21630
21631 \begin_inset Quotes erd
21632 \end_inset
21633
21634 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21635 の一時ファイル用のディレクトリにつくられる)、Nowebファイルの名前と元の\SpecialChar LyX
21636 ファイルのディレクトリパスを使って呼び出すこ
21637 とを意味しています。
21638 \end_layout
21639
21640 \begin_layout Standard
21641 以下に「build-script」の一例を書いておきます。パスが通っているディレクトリに置いて使います。
21642 \end_layout
21643
21644 \begin_layout Standard
21645 \begin_inset VSpace defskip
21646 \end_inset
21647
21648
21649 \begin_inset Newpage pagebreak
21650 \end_inset
21651
21652
21653 \end_layout
21654
21655 \begin_layout Standard
21656
21657 \family sans
21658 #!/bin/sh
21659 \end_layout
21660
21661 \begin_layout Standard
21662
21663 \family sans
21664 #
21665 \end_layout
21666
21667 \begin_layout Standard
21668
21669 \family sans
21670 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21671 \end_layout
21672
21673 \begin_layout Standard
21674 \begin_inset VSpace defskip
21675 \end_inset
21676
21677
21678 \end_layout
21679
21680 \begin_layout Standard
21681 変換子設定の次の部分は「フラグ」で、これは
21682 \begin_inset Quotes erd
21683 \end_inset
21684
21685
21686 \family typewriter
21687 parselog=$$s/scripts/listerrors
21688 \family default
21689
21690 \begin_inset Quotes erd
21691 \end_inset
21692
21693 に設定されます。
21694 \begin_inset Newline newline
21695 \end_inset
21696
21697 これは、
21698 \begin_inset Quotes erd
21699 \end_inset
21700
21701 build-script
21702 \begin_inset Quotes erd
21703 \end_inset
21704
21705 プロセスが生成したエラーを
21706 \begin_inset Quotes erd
21707 \end_inset
21708
21709 listerrors
21710 \begin_inset Quotes erd
21711 \end_inset
21712
21713 プログラムを介して処理するものです。
21714 \end_layout
21715
21716 \begin_layout Standard
21717 ビルドは、通常\SpecialChar LyX
21718 の一時ディレクトリで行われるので、変換によって生成されたファイルはそのディレクトリに置かれます。\SpecialChar LyX
21719 は、主要ファイルとみなされるものをコピーして取り出
21720 しますが、
21721 \family typewriter
21722 Noweb→プログラム
21723 \family default
21724 変換は複数のファイルを生成することがあるので、\SpecialChar LyX
21725 を閉じる際に大半が削除される可能性があります。これが、NOWEB_OUTPUT_DIR環境変数を渡して、build
21726 -script chunkが生成したファイルをその場所に置かれるようにする理由です。
21727 \end_layout
21728
21729 \begin_layout Paragraph
21730 文章中でのプログラムの構築操作の説明
21731 \end_layout
21732
21733 \begin_layout Standard
21734 \SpecialChar LyX
21735 とNowebの統合の最後の部分は、
21736 \begin_inset Quotes eld
21737 \end_inset
21738
21739 build-script
21740 \begin_inset Quotes erd
21741 \end_inset
21742
21743  chunkです。一般に、あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
21744 iptでは、chunkを見つけるのにnotangleコマンドを使い、shを使って起動します。
21745 \end_layout
21746
21747 \begin_layout Standard
21748 以下に典型的なchunkがどのようなものかを書いておきます。
21749 \end_layout
21750
21751 \begin_layout LyX-Code
21752 <<build-script>>=
21753 \begin_inset Newline newline
21754 \end_inset
21755
21756
21757 \end_layout
21758
21759 \begin_layout LyX-Code
21760 #!/bin/sh
21761 \begin_inset Newline newline
21762 \end_inset
21763
21764
21765 \begin_inset Newline newline
21766 \end_inset
21767
21768 if [ -z "${NOWEB_SOURCE}" ]
21769 \begin_inset Newline newline
21770 \end_inset
21771
21772 then
21773 \end_layout
21774
21775 \begin_layout LyX-Code
21776 NOWEB_SOURCE=myfile.nw
21777 \begin_inset Newline newline
21778 \end_inset
21779
21780 fi
21781 \begin_inset Newline newline
21782 \end_inset
21783
21784 [...
21785  code to extract files ...
21786  use NOWEB_OUTPUT_DIR here ...]
21787 \begin_inset Newline newline
21788 \end_inset
21789
21790 [...
21791  code to compile files ...]
21792 \begin_inset Newline newline
21793 \end_inset
21794
21795 @
21796 \end_layout
21797
21798 \begin_layout Standard
21799
21800 \emph on
21801 LIBDIR/examples/listerrors.lyx
21802 \emph default
21803
21804 \emph on
21805 LIBDIR/examples/Literate.lyx
21806 \emph default
21807 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
21808 ってもらうための例です。また、
21809 \emph on
21810 LIBDIR/examples/noweb2lyx.lyx
21811 \emph default
21812 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、\SpecialChar LyX
21813 の文芸プログラミングのサポートがプログラム言語に依存しない
21814 ことを示しています。
21815 \end_layout
21816
21817 \begin_layout Subsubsection
21818 \SpecialChar LyX
21819 の設定
21820 \end_layout
21821
21822 \begin_layout Standard
21823 すべての文芸プログラムのための設定は、
21824 \family sans
21825 ツール\SpecialChar menuseparator
21826 設定
21827 \family default
21828 パネルの「ファイル処理」タブですることができます。重要な部分を見ておきましょう。
21829 \end_layout
21830
21831 \begin_layout Description
21832 「NoWeb」形式 ファイル形式タブで設定します。ここで、Noweb特有の設定を行います。
21833 \family sans
21834 GUI名
21835 \family default
21836
21837 \family typewriter
21838 NoWeb
21839 \family default
21840 に、拡張子を
21841 \family typewriter
21842 .nw
21843 \family default
21844 に設定してください。これによって、\SpecialChar LyX
21845 に変換プロセスの第一段階でつくられるファイルに
21846 \family typewriter
21847 .nw
21848 \family default
21849 という拡張子をつけることを指示します。
21850 \end_layout
21851
21852 \begin_layout Description
21853 プログラム形式 これは、変換の終着点を示すためだけの、空の形式です(これがあることで、変換子を作ることができます)。
21854 \end_layout
21855
21856 \begin_layout Description
21857
21858 \family sans
21859 NoWeb
21860 \family default
21861 ->
21862 \family sans
21863 \SpecialChar LaTeX
21864
21865 \family default
21866  この変換子は、文芸的文書の「weaving」を行います。Nowebの場合、「
21867 \family typewriter
21868 noweave -delay -index $$i > $$o
21869 \family default
21870 」に設定されます。
21871 \end_layout
21872
21873 \begin_layout Description
21874
21875 \family sans
21876 NoWeb
21877 \family default
21878 ->
21879 \family sans
21880 Program
21881 \family default
21882  これは「tangling」を行います。上述のように、変換子は「
21883 \family typewriter
21884 build-script $$i $$r
21885 \family default
21886 」、フラグは「
21887 \family typewriter
21888 parselog=$$s/scripts/listerrors
21889 \family default
21890 」となります。
21891 \end_layout
21892
21893 \begin_layout Subsubsection
21894 デバッグ機能拡張
21895 \end_layout
21896
21897 \begin_layout Standard
21898 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21899 サーバに実装されました。
21900 \end_layout
21901
21902 \begin_layout Standard
21903 ddd/gdbでデバッグしているとき、一つの
21904 \begin_inset Flex Ruby
21905 status collapsed
21906
21907 \begin_layout Plain Layout
21908
21909 \begin_inset Argument post:1
21910 status collapsed
21911
21912 \begin_layout Plain Layout
21913 キー
21914 \end_layout
21915
21916 \end_inset
21917
21918
21919 \end_layout
21920
21921 \end_inset
21922
21923 ストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-Vになっています。この設定はdddで
21924 \begin_inset Flex MenuItem
21925 status collapsed
21926
21927 \begin_layout Plain Layout
21928 ツール\SpecialChar menuseparator
21929 設定\SpecialChar menuseparator
21930 ファイル書式
21931 \end_layout
21932
21933 \end_inset
21934
21935 ウインドウを表示して、
21936 \begin_inset Flex MenuItem
21937 status collapsed
21938
21939 \begin_layout Plain Layout
21940 編集プログラム
21941 \end_layout
21942
21943 \end_inset
21944
21945 エントリを変えると変えることができます。
21946 \end_layout
21947
21948 \begin_layout Standard
21949 新しい\SpecialChar LyX
21950 サーバの関数と、このdddの機能を使うために
21951 \begin_inset Flex MenuItem
21952 status collapsed
21953
21954 \begin_layout Plain Layout
21955 編集プログラム
21956 \end_layout
21957
21958 \end_inset
21959
21960 を次のように設定してください。
21961 \end_layout
21962
21963 \begin_layout Standard
21964 \begin_inset VSpace defskip
21965 \end_inset
21966
21967
21968 \end_layout
21969
21970 \begin_layout Standard
21971
21972 \family sans
21973 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21974 \end_layout
21975
21976 \begin_layout Standard
21977 \begin_inset VSpace defskip
21978 \end_inset
21979
21980
21981 \end_layout
21982
21983 \begin_layout Standard
21984 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21985 サーバに情報を送り、\SpecialChar LyX
21986
21987 は同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります。
21988 \end_layout
21989
21990 \begin_layout Standard
21991 この機能が動くには\SpecialChar LyX
21992 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
21993 サーバーは使えないようになっています)。\SpecialChar LyX
21994 サーバを使えるようにするには、
21995 \family sans
21996
21997 \begin_inset Flex MenuItem
21998 status collapsed
21999
22000 \begin_layout Plain Layout
22001
22002 \family sans
22003 設定
22004 \end_layout
22005
22006 \end_inset
22007
22008
22009 \family default
22010 (
22011 \family sans
22012
22013 \begin_inset Flex MenuItem
22014 status collapsed
22015
22016 \begin_layout Plain Layout
22017
22018 \family sans
22019 パス
22020 \end_layout
22021
22022 \end_inset
22023
22024
22025 \family default
22026 タブ)の
22027 \family sans
22028
22029 \begin_inset Flex MenuItem
22030 status collapsed
22031
22032 \begin_layout Plain Layout
22033
22034 \family sans
22035 \SpecialChar LyX
22036 サーバーパイプ
22037 \family default
22038
22039 \end_layout
22040
22041 \end_inset
22042
22043
22044 \family default
22045
22046 \begin_inset Quotes eld
22047 \end_inset
22048
22049
22050 \family typewriter
22051 /home/<your-home-directory>/.lyx/lyxpipe
22052 \family default
22053
22054 \begin_inset Quotes erd
22055 \end_inset
22056
22057  のようにパスを指定してください。
22058 \end_layout
22059
22060 \begin_layout Standard
22061 詳しくは第
22062 \begin_inset CommandInset ref
22063 LatexCommand ref
22064 reference "chap:LyXサーバー"
22065
22066 \end_inset
22067
22068 章を読んでください。
22069 \end_layout
22070
22071 \begin_layout Subsubsection
22072 ツールバー拡張
22073 \end_layout
22074
22075 \begin_layout Standard
22076 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
22077 \family sans
22078 標準
22079 \family default
22080 ・節・
22081 \family sans
22082 \SpecialChar LaTeX
22083
22084 \family default
22085
22086 \family sans
22087 \SpecialChar LyX
22088 コード
22089 \family default
22090
22091 \family sans
22092 Chunk
22093 \family default
22094 環境用のボタンを用意しています。最後の一つはファイルメニュー項目の「Build Program」への
22095 \begin_inset Flex Ruby
22096 status collapsed
22097
22098 \begin_layout Plain Layout
22099
22100 \family roman
22101 \series medium
22102 \shape up
22103 \size normal
22104 \emph off
22105 \bar no
22106 \noun off
22107 \color none
22108 捷径
22109 \family default
22110 \series default
22111 \shape default
22112 \size default
22113 \emph default
22114 \bar default
22115 \noun default
22116 \color inherit
22117
22118 \begin_inset Argument post:1
22119 status collapsed
22120
22121 \begin_layout Plain Layout
22122 ショートカット
22123 \end_layout
22124
22125 \end_inset
22126
22127
22128 \end_layout
22129
22130 \end_inset
22131
22132 です。
22133 \end_layout
22134
22135 \begin_layout Standard
22136 \SpecialChar LyX
22137 はツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
22138 \begin_inset Flex MenuItem
22139 status collapsed
22140
22141 \begin_layout Plain Layout
22142 文書\SpecialChar menuseparator
22143 更新\SpecialChar menuseparator
22144 DVI
22145 \end_layout
22146
22147 \end_inset
22148
22149
22150 \begin_inset Flex MenuItem
22151 status collapsed
22152
22153 \begin_layout Plain Layout
22154 文書\SpecialChar menuseparator
22155 表示\SpecialChar menuseparator
22156 DVI
22157 \end_layout
22158
22159 \end_inset
22160
22161 を組み合わせたものになっています。
22162 \end_layout
22163
22164 \begin_layout LyX-Code
22165 Toolbar
22166 \end_layout
22167
22168 \begin_layout LyX-Code
22169   Layouts
22170 \end_layout
22171
22172 \begin_layout LyX-Code
22173   Icon "layout Standard"
22174 \end_layout
22175
22176 \begin_layout LyX-Code
22177   Icon "layout Section"
22178 \end_layout
22179
22180 \begin_layout LyX-Code
22181   Icon "layout \SpecialChar LaTeX
22182 "
22183 \end_layout
22184
22185 \begin_layout LyX-Code
22186   Icon "layout \SpecialChar LyX
22187 -Code"
22188 \end_layout
22189
22190 \begin_layout LyX-Code
22191   Icon "layout Chunk"
22192 \end_layout
22193
22194 \begin_layout LyX-Code
22195   Separator
22196 \end_layout
22197
22198 \begin_layout LyX-Code
22199   Icon "buffer-view"
22200 \end_layout
22201
22202 \begin_layout LyX-Code
22203   Icon "buffer-typeset"
22204 \end_layout
22205
22206 \begin_layout LyX-Code
22207   Icon "build-program"
22208 \end_layout
22209
22210 \begin_layout LyX-Code
22211   Separator
22212 \end_layout
22213
22214 \begin_layout LyX-Code
22215 .
22216 \end_layout
22217
22218 \begin_layout LyX-Code
22219 .
22220 \end_layout
22221
22222 \begin_layout LyX-Code
22223 .
22224 \end_layout
22225
22226 \begin_layout LyX-Code
22227 End
22228 \end_layout
22229
22230 \begin_layout Subsubsection
22231 色の変更
22232 \end_layout
22233
22234 \begin_layout Standard
22235 \SpecialChar LyX
22236 ではいくつもの色を
22237 \begin_inset Flex MenuItem
22238 status collapsed
22239
22240 \begin_layout Plain Layout
22241 設定
22242 \end_layout
22243
22244 \end_inset
22245
22246 で変えることができます。人々が困りがちなのは、\SpecialChar LaTeX
22247 フォント色でしょう。これは、既定では赤になっていますが、chunkは\SpecialChar LaTeX
22248 フォントを使うことになっていて、文芸プログラミ
22249 ング文書には多くのchunkが現れるために、すべて赤で見ていると疲れてしまうかもしれません。これは、
22250 \begin_inset Flex MenuItem
22251 status collapsed
22252
22253 \begin_layout Plain Layout
22254 操作性\SpecialChar menuseparator
22255
22256 \end_layout
22257
22258 \end_inset
22259
22260 タブで変更することができます。
22261 \end_layout
22262
22263 \begin_layout Standard
22264 もう一つは、改行文字が画面に表示されていることでしょう。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少
22265 し違う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
22266 \end_layout
22267
22268 \begin_layout Subsection
22269 \SpecialChar LyX
22270 とknitr/Sweave
22271 \end_layout
22272
22273 \begin_layout Standard
22274 knitrとSweaveへのサポートについては、用例ファイル
22275 \emph on
22276 knitr.lyx
22277 \emph default
22278 とSweave取扱説明書(
22279 \family sans
22280 ヘルプ\SpecialChar menuseparator
22281 用途別説明書
22282 \family default
22283 メニュー)に説明があります。
22284 \end_layout
22285
22286 \begin_layout Chapter
22287 特殊機能
22288 \begin_inset CommandInset label
22289 LatexCommand label
22290 name "chap:Special-features"
22291
22292 \end_inset
22293
22294
22295 \end_layout
22296
22297 \begin_layout Standard
22298 \SpecialChar LyX
22299 では、\SpecialChar LaTeX
22300 で可能なことは何でも出来ます。すべての\SpecialChar LaTeX
22301 の機能を直接サポートできるわけではありませんが、どんな場合でも\SpecialChar TeX
22302 コードを使用することはできます。本章は、ユーザの興味が
22303 有りそうな特別な機能について、若干取り上げます。図表やフロート、ボックス、注釈に関する特別な機能については、取扱説明書『
22304 \emph on
22305 埋込オブジェクト篇
22306 \emph default
22307 』をご参照ください。
22308 \end_layout
22309
22310 \begin_layout Section
22311 多段組
22312 \end_layout
22313
22314 \begin_layout Standard
22315 この機能は、文書設定の
22316 \family sans
22317 本文レイアウト
22318 \family default
22319 にある
22320 \family sans
22321 二段組文書
22322 \family default
22323 とは別の機能です。文書全体に二段組を行いたい場合には、
22324 \family sans
22325 二段組文書
22326 \family default
22327 オプションを利用することをお勧めします。その他の場合には、本機能をご使用ください。
22328 \end_layout
22329
22330 \begin_layout Standard
22331 文書中で多段組を行うには、\SpecialChar LaTeX
22332 パッケージ
22333 \series bold
22334 multicol
22335 \series default
22336
22337 \begin_inset Index idx
22338 status collapsed
22339
22340 \begin_layout Plain Layout
22341 \SpecialChar LaTeX
22342 ぱっけーじ @ \SpecialChar LaTeX
22343 パッケージ ! multicol
22344 \end_layout
22345
22346 \end_inset
22347
22348 を導入した上で、(
22349 \family sans
22350 文書\SpecialChar menuseparator
22351 設定\SpecialChar menuseparator
22352 モジュール
22353 \family default
22354 メニューから)
22355 \family sans
22356 多段組
22357 \family default
22358 モジュールを読み込んでください。
22359 \end_layout
22360
22361 \begin_layout Standard
22362 多段組中の脚注は、ページ下部に置かれ、各段の下ごとには置かれません。各段においては、フロートに
22363 \family sans
22364 段をまたぐ
22365 \family default
22366 オプションを使用する必要があるほかは、通常通りの使用をすることができます。
22367 \end_layout
22368
22369 \begin_layout Subsection
22370 基本
22371 \end_layout
22372
22373 \begin_layout Standard
22374 文章中で二段組を使用したい場合には、段組を始める場所で
22375 \family sans
22376 挿入\SpecialChar menuseparator
22377 任意設定差込枠\SpecialChar menuseparator
22378 多段組
22379 \family default
22380 メニューを使用して、多段組差込枠を挿入してください。二段組で印字されるべき文章は、全てこの差込枠の中に書いてください。
22381 \end_layout
22382
22383 \begin_layout Standard
22384 下記はその用例です。
22385 \end_layout
22386
22387 \begin_layout Standard
22388 \noindent
22389 \begin_inset Flex Multiple Columns
22390 status open
22391
22392 \begin_layout Plain Layout
22393 \noindent
22394
22395 \series bold
22396 \size small
22397 The Adventure of the Empty House
22398 \series default
22399
22400 \begin_inset Newline newline
22401 \end_inset
22402
22403 by Sir Arthur Conan Doyle
22404 \end_layout
22405
22406 \begin_layout Plain Layout
22407
22408 \size small
22409 It was in the spring of the year 1894 that all London was interested, and
22410  the fashionable world dismayed, by the murder of the Honourable Ronald
22411  Adair under most unusual and inexplicable circumstances.
22412  The public has already learned those particulars of the crime which came
22413  out in the police investigation, but a good deal was suppressed upon that
22414  occasion, since the case for the prosecution was so overwhelmingly strong
22415  that it was not necessary to bring forward all the facts.
22416  Only now, at the end of nearly ten years, am I allowed to supply those
22417  missing links which make up the whole of that remarkable chain.
22418  The crime was of interest in itself, but that interest was as nothing to
22419  me compared to the inconceivable sequel, which afforded me the greatest
22420  shock and surprise of any event in my adventurous life.
22421  Even now, after this long interval, I find myself thrilling as I think
22422  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22423 ty which utterly submerged my mind.
22424  Let me say to that public, which has shown some interest in those glimpses
22425  which I have occasionally given them of the thoughts and actions of a very
22426  remarkable man, that they are not to blame me if I have not shared my knowledge
22427  with them, for I should have considered it my first duty to do so, had
22428  I not been barred by a positive prohibition from his own lips, which was
22429  only withdrawn upon the third of last month.
22430 \end_layout
22431
22432 \end_inset
22433
22434
22435 \end_layout
22436
22437 \begin_layout Standard
22438 三段以上にするには、カーソルを多段組差込枠の内部において、挿入\SpecialChar menuseparator
22439 段数メニューを使用してください。この差込枠の中に、欲しい段数を書き入れます(三段組の場合には「3」
22440 と書きます)。
22441 \begin_inset Newline newline
22442 \end_inset
22443
22444 下記は三段組の例です。
22445 \end_layout
22446
22447 \begin_layout Standard
22448 \begin_inset Flex Multiple Columns
22449 status open
22450
22451 \begin_layout Plain Layout
22452
22453 \size footnotesize
22454 \begin_inset Argument 1
22455 status open
22456
22457 \begin_layout Plain Layout
22458 3
22459 \end_layout
22460
22461 \end_inset
22462
22463 It can be imagined that my close intimacy with Sherlock Holmes had interested
22464  me deeply in crime, and that after his disappearance I never failed to
22465  read with care the various problems which came before the public.
22466  And I even attempted, more than once, for my own private satisfaction,
22467  to employ his methods in their solution, though with indifferent success.
22468  There was none, however, which appealed to me like this tragedy of Ronald
22469  Adair.
22470  As I read the evidence at the inquest, which led up to a verdict of willful
22471  murder against some person or persons unknown, I realized more clearly
22472  than I had ever done the loss which the community had sustained by the
22473  death of Sherlock Holmes.
22474  There were points about this strange business which would, I was sure,
22475  have specially appealed to him, and the efforts of the police would have
22476  been supplemented, or more probably anticipated, by the trained observation
22477  and the alert mind of the first criminal agent in Europe.
22478  All day, as I drove upon my round, I turned over the case in my mind and
22479  found no explanation which appeared to me to be adequate.
22480  At the risk of telling a twice-told tale, I will recapitulate the facts
22481  as they were known to the public at the conclusion of the inquest.
22482 \end_layout
22483
22484 \end_inset
22485
22486
22487 \end_layout
22488
22489 \begin_layout Standard
22490 お望みならば10段組まで組むことができますが、文書の読者にとっては、あまり気持ちのいいものではないでしょう。
22491 \end_layout
22492
22493 \begin_layout Standard
22494 \begin_inset Newpage newpage
22495 \end_inset
22496
22497
22498 \end_layout
22499
22500 \begin_layout Subsection
22501 段組中の段組
22502 \end_layout
22503
22504 \begin_layout Standard
22505 また、段中に段を組むこともできます。
22506 \end_layout
22507
22508 \begin_layout Standard
22509 \begin_inset Flex Multiple Columns
22510 status open
22511
22512 \begin_layout Plain Layout
22513
22514 \size footnotesize
22515 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22516  at that time governor of one of the Australian colonies.
22517  Adair's mother had returned from Australia to undergo the operation for
22518  cataract, and she, her son Ronald, and her daughter Hilda were living together
22519  at 427 Park Lane.
22520 \end_layout
22521
22522 \begin_layout Plain Layout
22523 \begin_inset Flex Multiple Columns
22524 status open
22525
22526 \begin_layout Plain Layout
22527
22528 \size footnotesize
22529 The youth moved in the best society–had, so far as was known, no enemies
22530  and no particular vices.
22531  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22532  had been broken off by mutual consent some months before, and there was
22533  no sign that it had left any very profound feeling behind it.
22534  For the rest {sic} the man's life moved in a narrow and conventional circle,
22535  for his habits were quiet and his nature unemotional.
22536  Yet it was upon this easy-going young aristocrat that death came, in most
22537  strange and unexpected form, between the hours of ten and eleven-twenty
22538  on the night of March 30, 1894.
22539 \end_layout
22540
22541 \end_inset
22542
22543
22544 \end_layout
22545
22546 \begin_layout Plain Layout
22547
22548 \size footnotesize
22549 Ronald Adair was fond of cards–playing continually, but never for such stakes
22550  as would hurt him.
22551  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22552  It was shown that, after dinner on the day of his death, he had played
22553  a rubber of whist at the latter club.
22554  He had also played there in the afternoon.
22555
22556 \size default
22557  
22558 \size footnotesize
22559 The evidence of those who had played with him– Mr.
22560  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22561  and that there was a fairly equal fall of the cards.
22562  Adair might have lost five pounds, but not more.
22563  His fortune was a considerable one, and such a loss could not in any way
22564  affect him.
22565  He had played nearly every day at one club or other, but he was a cautious
22566  player, and usually rose a winner.
22567  It came out in evidence that, in partnership with Colonel Moran, he had
22568  actually won as much as four hundred and twenty pounds in a sitting, some
22569  weeks before, from Godfrey Milner and Lord Balmoral.
22570  So much for his recent history as it came out at the inquest.
22571 \end_layout
22572
22573 \end_inset
22574
22575
22576 \end_layout
22577
22578 \begin_layout Subsection
22579 応用例
22580 \end_layout
22581
22582 \begin_layout Standard
22583 本節の用例は、多段組のさらに特別な機能を示すためのものです。
22584 \end_layout
22585
22586 \begin_layout Standard
22587 多段組機能についてさらに知りたい場合には、\SpecialChar LaTeX
22588 パッケージ
22589 \series bold
22590 multicol
22591 \series default
22592
22593 \begin_inset CommandInset citation
22594 LatexCommand cite
22595 key "multicol"
22596
22597 \end_inset
22598
22599 の取扱説明書をご覧ください。
22600 \end_layout
22601
22602 \begin_layout Subsubsection
22603 序文
22604 \end_layout
22605
22606 \begin_layout Standard
22607 多段組に序文を追記するには、カーソルを多段組差込枠内部に置き、
22608 \family sans
22609 挿入\SpecialChar menuseparator
22610 序文
22611 \family default
22612 メニューを使用してください。序文は、この差込枠内に書いてください。
22613 \begin_inset Newline newline
22614 \end_inset
22615
22616 序文のある文章の例を掲げます。
22617 \end_layout
22618
22619 \begin_layout Standard
22620 \begin_inset VSpace bigskip
22621 \end_inset
22622
22623
22624 \end_layout
22625
22626 \begin_layout Standard
22627 \begin_inset Flex Multiple Columns
22628 status open
22629
22630 \begin_layout Plain Layout
22631 \begin_inset Argument 2
22632 status open
22633
22634 \begin_layout Plain Layout
22635 And the story continues and continues and continues and continues\SpecialChar ldots
22636
22637 \end_layout
22638
22639 \end_inset
22640
22641
22642 \size small
22643 On the evening of the crime, he returned from the club exactly at ten.
22644  His mother and sister were out spending the evening with a relation.
22645  The servant deposed that she heard him enter the front room on the second
22646  floor, generally used as his sitting-room.
22647  She had lit a fire there, and as it smoked she had opened the window.
22648  No sound was heard from the room until eleven-twenty, the hour of the return
22649  of Lady Maynooth and her daughter.
22650  Desiring to say good-night, she attempted to enter her son's room.
22651  The door was locked on the inside, and no answer could be got to their
22652  cries and knocking.
22653  Help was obtained, and the door forced.
22654  The unfortunate young man was found lying near the table.
22655  His head had been horribly mutilated by an expanding revolver bullet, but
22656  no weapon of any sort was to be found in the room.
22657 \end_layout
22658
22659 \end_inset
22660
22661
22662 \end_layout
22663
22664 \begin_layout Standard
22665 最初の\SpecialChar TeX
22666 コードの後に、節宣言コマンドを\SpecialChar TeX
22667 コードとして使用すれば、節見出しを前書きとして使用することができます。例えば、
22668 \end_layout
22669
22670 \begin_layout Standard
22671
22672 \series bold
22673
22674 \backslash
22675 subsection{小節見出し}
22676 \end_layout
22677
22678 \begin_layout Standard
22679 というコマンドは、小節を生成します。以下の例では、前書きが小々節になっています。
22680 \end_layout
22681
22682 \begin_layout Standard
22683 \begin_inset Flex Multiple Columns
22684 status open
22685
22686 \begin_layout Plain Layout
22687 \begin_inset Argument 2
22688 status open
22689
22690 \begin_layout Plain Layout
22691 \begin_inset ERT
22692 status collapsed
22693
22694 \begin_layout Plain Layout
22695
22696
22697 \backslash
22698 subsubsection{
22699 \end_layout
22700
22701 \end_inset
22702
22703 これは序文の小々節見出しです
22704 \begin_inset ERT
22705 status collapsed
22706
22707 \begin_layout Plain Layout
22708
22709 }
22710 \end_layout
22711
22712 \end_inset
22713
22714
22715 \end_layout
22716
22717 \end_inset
22718
22719
22720 \size small
22721 A minute examination of the circumstances served only to make the case more
22722  complex.
22723  In the first place, no reason could be given why the young man should have
22724  fastened the door upon the inside.
22725  There was the possibility that the murderer had done this, and had afterwards
22726  escaped by the window.
22727  The drop was at least twenty feet, however, and a bed of crocuses in full
22728  bloom lay beneath.
22729  Neither the flowers nor the earth showed any sign of having been disturbed,
22730  nor were there any marks upon the narrow strip of grass which separated
22731  the house from the road.
22732  Apparently, therefore, it was the young man himself who had fastened the
22733  door.
22734  But how did he come by his death? No one could have climbed up to the window
22735  without leaving traces.
22736  Suppose a man had fired through the window, he would indeed be a remarkable
22737  shot who could with a revolver inflict so deadly a wound.
22738  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22739  a hundred yards of the house.
22740  No one had heard a shot.
22741 \end_layout
22742
22743 \end_inset
22744
22745
22746 \end_layout
22747
22748 \begin_layout Standard
22749 多段組を開始する部分に、必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合、多段組の前に改行が挿入されます。前書きの行数如何では、この必
22750 要行数を変更したいかもしれません。これは、カーソルを多段組差込枠内部の(もしあれば)序文の後に置き、
22751 \family sans
22752 挿入\SpecialChar menuseparator
22753 改頁前の余白
22754 \family default
22755 メニューを使用することで設定できます。この差込枠に、余白の大きさを「5cm」などと書き込んでください。
22756 \end_layout
22757
22758 \begin_layout Standard
22759 以下の例では、「7
22760 \backslash
22761 baselineskip」を用いて、必要行数を7行に指定しています(コマンド
22762 \series bold
22763
22764 \backslash
22765 baselineskip
22766 \series default
22767 は\SpecialChar TeX
22768 コードとして入力する必要があります)。
22769 \end_layout
22770
22771 \begin_layout Standard
22772 \begin_inset Flex Multiple Columns
22773 status open
22774
22775 \begin_layout Plain Layout
22776 \begin_inset Argument 3
22777 status open
22778
22779 \begin_layout Plain Layout
22780 7
22781 \begin_inset ERT
22782 status collapsed
22783
22784 \begin_layout Plain Layout
22785
22786
22787 \backslash
22788 baselineskip
22789 \end_layout
22790
22791 \end_inset
22792
22793
22794 \end_layout
22795
22796 \end_inset
22797
22798
22799 \size small
22800 On the evening of the crime, he returned from the club exactly at ten.
22801  His mother and sister were out spending the evening with a relation.
22802  The servant deposed that she heard him enter the front room on the second
22803  floor, generally used as his sitting-room.
22804  She had lit a fire there, and as it smoked she had opened the window.
22805  No sound was heard from the room until eleven-twenty, the hour of the return
22806  of Lady Maynooth and her daughter.
22807  Desiring to say good-night, she attempted to enter her son's room.
22808  The door was locked on the inside, and no answer could be got to their
22809  cries and knocking.
22810  Help was obtained, and the door forced.
22811  The unfortunate young man was found lying near the table.
22812  His head had been horribly mutilated by an expanding revolver bullet, but
22813  no weapon of any sort was to be found in the room.
22814 \end_layout
22815
22816 \end_inset
22817
22818
22819 \end_layout
22820
22821 \begin_layout Subsubsection
22822 周囲の余白
22823 \end_layout
22824
22825 \begin_layout Standard
22826 多段組の前後の余白は、長さ
22827 \series bold
22828
22829 \backslash
22830 multicolsep
22831 \series default
22832 を変えることで変更することができます。例えば、\SpecialChar TeX
22833 コードで書かれたコマンド
22834 \end_layout
22835
22836 \begin_layout Standard
22837
22838 \series bold
22839
22840 \backslash
22841 setlength{
22842 \backslash
22843 multicolsep}{3cm}
22844 \end_layout
22845
22846 \begin_layout Standard
22847 は、その値を3
22848 \begin_inset space \thinspace{}
22849 \end_inset
22850
22851 cmに変更します。この変更は、多段組が始まる前に指定しなくてはなりません。既定値は13
22852 \begin_inset space \thinspace{}
22853 \end_inset
22854
22855 ptです。
22856 \end_layout
22857
22858 \begin_layout Standard
22859 以下の例では、
22860 \series bold
22861
22862 \backslash
22863 multicolsep
22864 \series default
22865 は2.5
22866 \begin_inset space \thinspace{}
22867 \end_inset
22868
22869 cmに指定されています。
22870 \end_layout
22871
22872 \begin_layout Standard
22873 \begin_inset ERT
22874 status open
22875
22876 \begin_layout Plain Layout
22877
22878
22879 \backslash
22880 setlength{
22881 \backslash
22882 multicolsep}{2.5cm}
22883 \end_layout
22884
22885 \end_inset
22886
22887
22888 \end_layout
22889
22890 \begin_layout Standard
22891 \begin_inset Flex Multiple Columns
22892 status open
22893
22894 \begin_layout Plain Layout
22895
22896 \size small
22897 All day I turned these facts over in my mind, endeavouring to hit upon some
22898  theory which could reconcile them all, and to find that line of least resistanc
22899 e which my poor friend had declared to be the starting-point of every investigat
22900 ion.
22901  I confess that I made little progress.
22902  In the evening I strolled across the Park, and found myself about six o'clock
22903  at the Oxford Street end of Park Lane.
22904  A group of loafers upon the pavements, all staring up at a particular window,
22905  directed me to the house which I had come to see.
22906  A tall, thin man with coloured glasses, whom I strongly suspected of being
22907  a plain-clothes detective, was pointing out some theory of his own, while
22908  the others crowded round to listen to what he said.
22909  I got as near him as I could, but his observations seemed to me to be absurd,
22910  so I withdrew again in some disgust.
22911  As I did so I struck against an elderly, deformed man, who had been behind
22912  me, and I knocked down several books which he was carrying.
22913 \end_layout
22914
22915 \end_inset
22916
22917
22918 \end_layout
22919
22920 \begin_layout Standard
22921 \begin_inset Note Greyedout
22922 status open
22923
22924 \begin_layout Plain Layout
22925
22926 \series bold
22927 【註】
22928 \backslash
22929 setlength
22930 \series default
22931 で指定した値は、再度変更されるまでは、以降のすべての多段組で使用されます。
22932 \end_layout
22933
22934 \end_inset
22935
22936
22937 \end_layout
22938
22939 \begin_layout Standard
22940 \begin_inset ERT
22941 status collapsed
22942
22943 \begin_layout Plain Layout
22944
22945
22946 \backslash
22947 setlength{
22948 \backslash
22949 multicolsep}{13pt}
22950 \end_layout
22951
22952 \end_inset
22953
22954
22955 \begin_inset Note Note
22956 status collapsed
22957
22958 \begin_layout Plain Layout
22959
22960 \lang english
22961 go back to the default
22962 \end_layout
22963
22964 \end_inset
22965
22966
22967 \end_layout
22968
22969 \begin_layout Standard
22970 \begin_inset Newpage newpage
22971 \end_inset
22972
22973
22974 \end_layout
22975
22976 \begin_layout Subsubsection
22977 改段
22978 \end_layout
22979
22980 \begin_layout Standard
22981 改段は、文章中の階段を行いたい位置に、\SpecialChar TeX
22982 コードで、コマンド
22983 \series bold
22984
22985 \backslash
22986 columnbreak{}
22987 \series default
22988 を挿入すれば、強制的に行うことができます。ただし、多くの場合、文章中に空白が挿入されることに注意してください。
22989 \begin_inset Newline newline
22990 \end_inset
22991
22992 以下が用例です。
22993 \end_layout
22994
22995 \begin_layout Standard
22996 \begin_inset Flex Multiple Columns
22997 status open
22998
22999 \begin_layout Plain Layout
23000
23001 \size small
23002 \begin_inset Quotes eld
23003 \end_inset
23004
23005 You're surprised to see me, sir,
23006 \begin_inset Quotes erd
23007 \end_inset
23008
23009  said he, in a strange, croaking voice.
23010 \end_layout
23011
23012 \begin_layout Plain Layout
23013
23014 \size small
23015 I acknowledged that I was.
23016 \end_layout
23017
23018 \begin_layout Plain Layout
23019
23020 \size small
23021 \begin_inset Quotes eld
23022 \end_inset
23023
23024 Well, I've a conscience, sir, and when I chanced to see you go into this
23025  house, as I came hobbling after you, I thought to myself, I'll just step
23026  in and see that kind gentleman, and tell him that if I was a bit gruff
23027  in my manner there was not any harm meant, and that I am much obliged to
23028  him for picking up my books.
23029 \begin_inset Quotes erd
23030 \end_inset
23031
23032
23033 \end_layout
23034
23035 \begin_layout Plain Layout
23036
23037 \size small
23038 \begin_inset Quotes eld
23039 \end_inset
23040
23041 You make too much of a trifle,
23042 \begin_inset Quotes erd
23043 \end_inset
23044
23045  said I.
23046  
23047 \begin_inset Quotes eld
23048 \end_inset
23049
23050 May I ask how you knew who I was?
23051 \begin_inset Quotes erd
23052 \end_inset
23053
23054  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
23055 \begin_inset ERT
23056 status collapsed
23057
23058 \begin_layout Plain Layout
23059
23060
23061 \backslash
23062 columnbreak{}
23063 \end_layout
23064
23065 \end_inset
23066
23067
23068 \end_layout
23069
23070 \begin_layout Plain Layout
23071
23072 \size small
23073 \begin_inset Quotes eld
23074 \end_inset
23075
23076 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23077  you'll find my little bookshop at the corner of Church Street, and very
23078  happy to see you, I am sure.
23079  Maybe you collect yourself, sir.
23080  Here's 
23081 \noun on
23082 British
23083 \begin_inset space ~
23084 \end_inset
23085
23086 Birds
23087 \noun default
23088 , and 
23089 \noun on
23090 Catullus
23091 \noun default
23092 , and 
23093 \noun on
23094 The Holy War
23095 \noun default
23096 –a bargain, every one of them.
23097  With five volumes you could just fill that gap on that second shelf.
23098  It looks untidy, does it not, sir?
23099 \begin_inset Quotes erd
23100 \end_inset
23101
23102
23103 \end_layout
23104
23105 \end_inset
23106
23107
23108 \end_layout
23109
23110 \begin_layout Subsubsection
23111 段間隔
23112 \end_layout
23113
23114 \begin_layout Standard
23115 段幅は自動的に計算されますが、段の間の余白は指定することができます。これは、長さ
23116 \series bold
23117
23118 \backslash
23119 columnsep
23120 \series default
23121 を変更することで実現できます。既定値は10
23122 \begin_inset space \thinspace{}
23123 \end_inset
23124
23125 ptです。以下は
23126 \series bold
23127
23128 \backslash
23129 columnsep
23130 \series default
23131 を3
23132 \begin_inset space \thinspace{}
23133 \end_inset
23134
23135 cmに設定した例です。
23136 \end_layout
23137
23138 \begin_layout Standard
23139 \begin_inset ERT
23140 status open
23141
23142 \begin_layout Plain Layout
23143
23144
23145 \backslash
23146 setlength{
23147 \backslash
23148 columnsep}{3cm}
23149 \end_layout
23150
23151 \end_inset
23152
23153
23154 \end_layout
23155
23156 \begin_layout Standard
23157 \begin_inset Flex Multiple Columns
23158 status open
23159
23160 \begin_layout Plain Layout
23161
23162 \size small
23163 My observations of No.
23164 \begin_inset space \space{}
23165 \end_inset
23166
23167 427 Park Lane did little to clear up the problem in which I was interested.
23168  The house was separated from the street by a low wall and railing, the
23169  whole not more than five feet high.
23170  It was perfectly easy, therefore, for anyone to get into the garden, but
23171  the window was entirely inaccessible, since there was no water pipe or
23172  anything which could help the most active man to climb it.
23173  More puzzled than ever, I retraced my steps to Kensington.
23174  I had not been in my study five minutes when the maid entered to say that
23175  a person desired to see me.
23176  To my astonishment it was none other than my strange old book collector,
23177  his sharp, wizened face peering out from a frame of white hair, and his
23178  precious volumes, a dozen of them at least, wedged under his right arm.
23179 \end_layout
23180
23181 \end_inset
23182
23183
23184 \end_layout
23185
23186 \begin_layout Standard
23187 \begin_inset ERT
23188 status collapsed
23189
23190 \begin_layout Plain Layout
23191
23192
23193 \backslash
23194 setlength{
23195 \backslash
23196 columnsep}{10pt}
23197 \end_layout
23198
23199 \end_inset
23200
23201
23202 \begin_inset Note Note
23203 status collapsed
23204
23205 \begin_layout Plain Layout
23206
23207 \lang english
23208 go back to the default
23209 \end_layout
23210
23211 \end_inset
23212
23213
23214 \end_layout
23215
23216 \begin_layout Subsubsection
23217 垂直線
23218 \end_layout
23219
23220 \begin_layout Standard
23221 段間には、長さ
23222 \series bold
23223
23224 \backslash
23225 columnseprule
23226 \series default
23227 の幅を持つ罫線が描かれます。罫線幅を0
23228 \begin_inset space \thinspace{}
23229 \end_inset
23230
23231 ptにすると(これが既定値です)、罫線は出力されません。以下の例では、段を分かつ線は2
23232 \begin_inset space \thinspace{}
23233 \end_inset
23234
23235 pt幅に設定されています。
23236 \end_layout
23237
23238 \begin_layout Standard
23239 \begin_inset ERT
23240 status open
23241
23242 \begin_layout Plain Layout
23243
23244
23245 \backslash
23246 setlength{
23247 \backslash
23248 columnseprule}{2pt}
23249 \end_layout
23250
23251 \end_inset
23252
23253
23254 \end_layout
23255
23256 \begin_layout Standard
23257 \begin_inset Flex Multiple Columns
23258 status open
23259
23260 \begin_layout Plain Layout
23261
23262 \size small
23263 \begin_inset Quotes eld
23264 \end_inset
23265
23266 You're surprised to see me, sir,
23267 \begin_inset Quotes erd
23268 \end_inset
23269
23270  said he, in a strange, croaking voice.
23271 \end_layout
23272
23273 \begin_layout Plain Layout
23274
23275 \size small
23276 I acknowledged that I was.
23277 \end_layout
23278
23279 \begin_layout Plain Layout
23280
23281 \size small
23282 \begin_inset Quotes eld
23283 \end_inset
23284
23285 Well, I've a conscience, sir, and when I chanced to see you go into this
23286  house, as I came hobbling after you, I thought to myself, I'll just step
23287  in and see that kind gentleman, and tell him that if I was a bit gruff
23288  in my manner there was not any harm meant, and that I am much obliged to
23289  him for picking up my books.
23290 \begin_inset Quotes erd
23291 \end_inset
23292
23293
23294 \end_layout
23295
23296 \begin_layout Plain Layout
23297
23298 \size small
23299 \begin_inset Quotes eld
23300 \end_inset
23301
23302 You make too much of a trifle,
23303 \begin_inset Quotes erd
23304 \end_inset
23305
23306  said I.
23307  
23308 \begin_inset Quotes eld
23309 \end_inset
23310
23311 May I ask how you knew who I was?
23312 \begin_inset Quotes erd
23313 \end_inset
23314
23315
23316 \end_layout
23317
23318 \begin_layout Plain Layout
23319
23320 \size small
23321 \begin_inset Quotes eld
23322 \end_inset
23323
23324 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23325  you'll find my little bookshop at the corner of Church Street, and very
23326  happy to see you, I am sure.
23327  Maybe you collect yourself, sir.
23328  Here's 
23329 \noun on
23330 British
23331 \begin_inset space ~
23332 \end_inset
23333
23334 Birds
23335 \noun default
23336 , and 
23337 \noun on
23338 Catullus
23339 \noun default
23340 , and 
23341 \noun on
23342 The Holy War
23343 \noun default
23344 –a bargain, every one of them.
23345  With five volumes you could just fill that gap on that second shelf.
23346  It looks untidy, does it not, sir?
23347 \begin_inset Quotes erd
23348 \end_inset
23349
23350
23351 \end_layout
23352
23353 \end_inset
23354
23355
23356 \end_layout
23357
23358 \begin_layout Standard
23359 \begin_inset VSpace defskip
23360 \end_inset
23361
23362
23363 \end_layout
23364
23365 \begin_layout Standard
23366 罫線は、コマンド
23367 \series bold
23368
23369 \backslash
23370 columnseprulecolor
23371 \series default
23372 を再定義すれば、着色することができます。これは、多段組差込枠の前に\SpecialChar TeX
23373 コードで以下のコマンドを挿入すれば、実現できます。
23374 \begin_inset Newline newline
23375 \end_inset
23376
23377
23378 \series bold
23379
23380 \backslash
23381 renewcommand{
23382 \backslash
23383 columnseprulecolor}{
23384 \backslash
23385 color{red}}
23386 \series default
23387
23388 \begin_inset Newline newline
23389 \end_inset
23390
23391 このコマンド中の
23392 \series bold
23393 red
23394 \series default
23395 をお好みの色に変更してください。既定色とユーザー定義色の全てを使用することができます。既定色とユーザー定義色についての詳細な情報は、取扱説明書『
23396 \emph on
23397 埋込オブジェクト篇
23398 \emph default
23399 』の「
23400 \emph on
23401 色付き表
23402 \emph default
23403 」の節をご覧ください。既定色に戻すには、以下のコマンドを挿入してください。
23404 \begin_inset Newline newline
23405 \end_inset
23406
23407
23408 \series bold
23409
23410 \backslash
23411 renewcommand{
23412 \backslash
23413 columnseprulecolor}{
23414 \backslash
23415 normalcolor}
23416 \series default
23417
23418 \begin_inset Newline newline
23419 \end_inset
23420
23421 以下は、シアン色の罫線と1
23422 \begin_inset space \thinspace{}
23423 \end_inset
23424
23425 cmの段間隔を持つ例です。
23426 \end_layout
23427
23428 \begin_layout Standard
23429 \begin_inset ERT
23430 status open
23431
23432 \begin_layout Plain Layout
23433
23434
23435 \backslash
23436 setlength{
23437 \backslash
23438 columnsep}{1cm}
23439 \end_layout
23440
23441 \begin_layout Plain Layout
23442
23443
23444 \backslash
23445 renewcommand{
23446 \backslash
23447 columnseprulecolor}{
23448 \backslash
23449 color{cyan}}
23450 \end_layout
23451
23452 \end_inset
23453
23454
23455 \end_layout
23456
23457 \begin_layout Standard
23458 \begin_inset Flex Multiple Columns
23459 status open
23460
23461 \begin_layout Plain Layout
23462
23463 \size small
23464 \begin_inset Quotes eld
23465 \end_inset
23466
23467 You're surprised to see me, sir,
23468 \begin_inset Quotes erd
23469 \end_inset
23470
23471  said he, in a strange, croaking voice.
23472 \end_layout
23473
23474 \begin_layout Plain Layout
23475
23476 \size small
23477 I acknowledged that I was.
23478 \end_layout
23479
23480 \begin_layout Plain Layout
23481
23482 \size small
23483 \begin_inset Quotes eld
23484 \end_inset
23485
23486 Well, I've a conscience, sir, and when I chanced to see you go into this
23487  house, as I came hobbling after you, I thought to myself, I'll just step
23488  in and see that kind gentleman, and tell him that if I was a bit gruff
23489  in my manner there was not any harm meant, and that I am much obliged to
23490  him for picking up my books.
23491 \begin_inset Quotes erd
23492 \end_inset
23493
23494
23495 \end_layout
23496
23497 \begin_layout Plain Layout
23498
23499 \size small
23500 \begin_inset Quotes eld
23501 \end_inset
23502
23503 You make too much of a trifle,
23504 \begin_inset Quotes erd
23505 \end_inset
23506
23507  said I.
23508  
23509 \begin_inset Quotes eld
23510 \end_inset
23511
23512 May I ask how you knew who I was?
23513 \begin_inset Quotes erd
23514 \end_inset
23515
23516
23517 \end_layout
23518
23519 \begin_layout Plain Layout
23520
23521 \size small
23522 \begin_inset Quotes eld
23523 \end_inset
23524
23525 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23526  you'll find my little bookshop at the corner of Church Street, and very
23527  happy to see you, I am sure.
23528  Maybe you collect yourself, sir.
23529  Here's 
23530 \noun on
23531 British
23532 \begin_inset space ~
23533 \end_inset
23534
23535 Birds
23536 \noun default
23537 , and 
23538 \noun on
23539 Catullus
23540 \noun default
23541 , and 
23542 \noun on
23543 The Holy War
23544 \noun default
23545 –a bargain, every one of them.
23546  With five volumes you could just fill that gap on that second shelf.
23547  It looks untidy, does it not, sir?
23548 \begin_inset Quotes erd
23549 \end_inset
23550
23551
23552 \end_layout
23553
23554 \end_inset
23555
23556
23557 \end_layout
23558
23559 \begin_layout Standard
23560 \begin_inset ERT
23561 status collapsed
23562
23563 \begin_layout Plain Layout
23564
23565
23566 \backslash
23567 setlength{
23568 \backslash
23569 columnseprule}{0pt}
23570 \end_layout
23571
23572 \begin_layout Plain Layout
23573
23574
23575 \backslash
23576 renewcommand{
23577 \backslash
23578 columnseprulecolor}{
23579 \backslash
23580 normalcolor}
23581 \end_layout
23582
23583 \end_inset
23584
23585
23586 \begin_inset Note Note
23587 status collapsed
23588
23589 \begin_layout Plain Layout
23590
23591 \lang english
23592 go back to the default
23593 \end_layout
23594
23595 \end_inset
23596
23597
23598 \end_layout
23599
23600 \begin_layout Standard
23601 \begin_inset Newpage newpage
23602 \end_inset
23603
23604
23605 \end_layout
23606
23607 \begin_layout Section
23608 標準的でない形の段落
23609 \end_layout
23610
23611 \begin_layout Standard
23612 \noindent
23613 \SpecialChar LaTeX
23614 は、他のテキストプロセッサと同様に、既定で長方形の段落を使用します。しかし、例えば、ポスターや招待状、詩などの特殊な場合には、段落の形を好きなように変えることが
23615 できます。これは、文書設定で
23616 \family sans
23617 任意設定の段落形
23618 \family default
23619 モジュールを読み込んで、\SpecialChar LaTeX
23620 パッケージ
23621 \series bold
23622 shapepar
23623 \series default
23624 を使用させるようにすれば、実現できます。
23625 \end_layout
23626
23627 \begin_layout Subsection
23628 既定の形
23629 \end_layout
23630
23631 \begin_layout Standard
23632
23633 \series bold
23634 shapepar
23635 \series default
23636 は、以下の形を提供しています。
23637 \end_layout
23638
23639 \begin_layout Standard
23640 \begin_inset Tabular
23641 <lyxtabular version="3" rows="13" columns="3">
23642 <features booktabs="true" islongtable="true" longtabularalignment="center">
23643 <column alignment="center" valignment="middle" width="16col%">
23644 <column alignment="center" valignment="middle" width="40col%">
23645 <column alignment="center" valignment="middle" width="35col%">
23646 <row endhead="true">
23647 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23648 \begin_inset Text
23649
23650 \begin_layout Plain Layout
23651 名称
23652 \end_layout
23653
23654 \end_inset
23655 </cell>
23656 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23657 \begin_inset Text
23658
23659 \begin_layout Plain Layout
23660 説明
23661 \end_layout
23662
23663 \end_inset
23664 </cell>
23665 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23666 \begin_inset Text
23667
23668 \begin_layout Plain Layout
23669 備考
23670 \end_layout
23671
23672 \end_inset
23673 </cell>
23674 </row>
23675 <row>
23676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23677 \begin_inset Text
23678
23679 \begin_layout Plain Layout
23680 CDlabel
23681 \end_layout
23682
23683 \end_inset
23684 </cell>
23685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23686 \begin_inset Text
23687
23688 \begin_layout Plain Layout
23689 丸い穴の開いたドーナツ型(CD/DVD大)
23690 \end_layout
23691
23692 \end_inset
23693 </cell>
23694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23695 \begin_inset Text
23696
23697 \begin_layout Plain Layout
23698 伸縮不可。多くの文字を入れられないことに注意。
23699 \end_layout
23700
23701 \end_inset
23702 </cell>
23703 </row>
23704 <row>
23705 <cell alignment="center" valignment="top" topline="true" usebox="none">
23706 \begin_inset Text
23707
23708 \begin_layout Plain Layout
23709 Circle
23710 \end_layout
23711
23712 \end_inset
23713 </cell>
23714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23715 \begin_inset Text
23716
23717 \begin_layout Plain Layout
23718
23719 \end_layout
23720
23721 \end_inset
23722 </cell>
23723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23724 \begin_inset Text
23725
23726 \begin_layout Plain Layout
23727 脆弱。計算に失敗することも。
23728 \end_layout
23729
23730 \end_inset
23731 </cell>
23732 </row>
23733 <row>
23734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23735 \begin_inset Text
23736
23737 \begin_layout Plain Layout
23738 Diamond
23739 \end_layout
23740
23741 \end_inset
23742 </cell>
23743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23744 \begin_inset Text
23745
23746 \begin_layout Plain Layout
23747 菱形(シンボル的に
23748 \begin_inset Quotes eld
23749 \end_inset
23750
23751 diamond
23752 \begin_inset Quotes erd
23753 \end_inset
23754
23755 と表記)
23756 \end_layout
23757
23758 \end_inset
23759 </cell>
23760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23761 \begin_inset Text
23762
23763 \begin_layout Plain Layout
23764 -
23765 \end_layout
23766
23767 \end_inset
23768 </cell>
23769 </row>
23770 <row>
23771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23772 \begin_inset Text
23773
23774 \begin_layout Plain Layout
23775 Heart
23776 \end_layout
23777
23778 \end_inset
23779 </cell>
23780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23781 \begin_inset Text
23782
23783 \begin_layout Plain Layout
23784 ハート型
23785 \end_layout
23786
23787 \end_inset
23788 </cell>
23789 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23790 \begin_inset Text
23791
23792 \begin_layout Plain Layout
23793 -
23794 \end_layout
23795
23796 \end_inset
23797 </cell>
23798 </row>
23799 <row>
23800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23801 \begin_inset Text
23802
23803 \begin_layout Plain Layout
23804 Hexagon
23805 \end_layout
23806
23807 \end_inset
23808 </cell>
23809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23810 \begin_inset Text
23811
23812 \begin_layout Plain Layout
23813 六角形
23814 \end_layout
23815
23816 \end_inset
23817 </cell>
23818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23819 \begin_inset Text
23820
23821 \begin_layout Plain Layout
23822 -
23823 \end_layout
23824
23825 \end_inset
23826 </cell>
23827 </row>
23828 <row>
23829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23830 \begin_inset Text
23831
23832 \begin_layout Plain Layout
23833 Nut
23834 \end_layout
23835
23836 \end_inset
23837 </cell>
23838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23839 \begin_inset Text
23840
23841 \begin_layout Plain Layout
23842 ナット型(丸い穴の開いた六角形)
23843 \end_layout
23844
23845 \end_inset
23846 </cell>
23847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23848 \begin_inset Text
23849
23850 \begin_layout Plain Layout
23851 -
23852 \end_layout
23853
23854 \end_inset
23855 </cell>
23856 </row>
23857 <row>
23858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23859 \begin_inset Text
23860
23861 \begin_layout Plain Layout
23862 Square
23863 \end_layout
23864
23865 \end_inset
23866 </cell>
23867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23868 \begin_inset Text
23869
23870 \begin_layout Plain Layout
23871 正方形
23872 \end_layout
23873
23874 \end_inset
23875 </cell>
23876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23877 \begin_inset Text
23878
23879 \begin_layout Plain Layout
23880 -
23881 \end_layout
23882
23883 \end_inset
23884 </cell>
23885 </row>
23886 <row>
23887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23888 \begin_inset Text
23889
23890 \begin_layout Plain Layout
23891 Star
23892 \end_layout
23893
23894 \end_inset
23895 </cell>
23896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23897 \begin_inset Text
23898
23899 \begin_layout Plain Layout
23900 五芒星
23901 \end_layout
23902
23903 \end_inset
23904 </cell>
23905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23906 \begin_inset Text
23907
23908 \begin_layout Plain Layout
23909 -
23910 \end_layout
23911
23912 \end_inset
23913 </cell>
23914 </row>
23915 <row>
23916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23917 \begin_inset Text
23918
23919 \begin_layout Plain Layout
23920 Candle
23921 \end_layout
23922
23923 \end_inset
23924 </cell>
23925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23926 \begin_inset Text
23927
23928 \begin_layout Plain Layout
23929 燃えるろうそく
23930 \end_layout
23931
23932 \end_inset
23933 </cell>
23934 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23935 \begin_inset Text
23936
23937 \begin_layout Plain Layout
23938 -
23939 \end_layout
23940
23941 \end_inset
23942 </cell>
23943 </row>
23944 <row>
23945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23946 \begin_inset Text
23947
23948 \begin_layout Plain Layout
23949 Drop down/up
23950 \end_layout
23951
23952 \end_inset
23953 </cell>
23954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23955 \begin_inset Text
23956
23957 \begin_layout Plain Layout
23958 雫型/逆雫型
23959 \end_layout
23960
23961 \end_inset
23962 </cell>
23963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23964 \begin_inset Text
23965
23966 \begin_layout Plain Layout
23967 脆弱。計算に失敗することも。
23968 \end_layout
23969
23970 \end_inset
23971 </cell>
23972 </row>
23973 <row>
23974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23975 \begin_inset Text
23976
23977 \begin_layout Plain Layout
23978 \SpecialChar TeX
23979
23980 \end_layout
23981
23982 \end_inset
23983 </cell>
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" rightline="true" usebox="none">
23995 \begin_inset Text
23996
23997 \begin_layout Plain Layout
23998 -
23999 \end_layout
24000
24001 \end_inset
24002 </cell>
24003 </row>
24004 <row>
24005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24006 \begin_inset Text
24007
24008 \begin_layout Plain Layout
24009 Triangle up/down/
24010 \begin_inset Newline newline
24011 \end_inset
24012
24013 left/right
24014 \end_layout
24015
24016 \end_inset
24017 </cell>
24018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24019 \begin_inset Text
24020
24021 \begin_layout Plain Layout
24022 各方向の三角形
24023 \end_layout
24024
24025 \end_inset
24026 </cell>
24027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24028 \begin_inset Text
24029
24030 \begin_layout Plain Layout
24031 -
24032 \end_layout
24033
24034 \end_inset
24035 </cell>
24036 </row>
24037 </lyxtabular>
24038
24039 \end_inset
24040
24041
24042 \end_layout
24043
24044 \begin_layout Standard
24045 段落に形を適用するには、\SpecialChar LyX
24046 ツールバー中の環境プルダウンボックスから形を選んでください。
24047 \end_layout
24048
24049 \begin_layout Standard
24050 \begin_inset Newpage newpage
24051 \end_inset
24052
24053
24054 \end_layout
24055
24056 \begin_layout Standard
24057 以下は、ナット型の段落の例です。
24058 \end_layout
24059
24060 \begin_layout Standard
24061 \begin_inset VSpace bigskip
24062 \end_inset
24063
24064
24065 \end_layout
24066
24067 \begin_layout Nut
24068
24069 \lang latin
24070 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24071  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24072  voluptua.
24073  At vero eos et accusam et justo duo dolores et ea rebum.
24074  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24075  sit amet.
24076  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24077  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24078  voluptua.
24079 \end_layout
24080
24081 \begin_layout Standard
24082 \begin_inset VSpace bigskip
24083 \end_inset
24084
24085
24086 \end_layout
24087
24088 \begin_layout Standard
24089 \begin_inset Note Greyedout
24090 status open
24091
24092 \begin_layout Plain Layout
24093
24094 \series bold
24095 【註】
24096 \series default
24097 shapepar段落は改頁にまたがることはできません。
24098 \end_layout
24099
24100 \end_inset
24101
24102
24103 \end_layout
24104
24105 \begin_layout Standard
24106 \begin_inset VSpace bigskip
24107 \end_inset
24108
24109
24110 \end_layout
24111
24112 \begin_layout Standard
24113
24114 \series bold
24115 shapepar
24116 \series default
24117 は、段落中にどれだけ文章が含まれようとも、常に形を維持しようとします。したがって、段落の大きさは、含まれている文章量によって変化しますので、段落の大きさがページ
24118 余白にはみ出してしまうことがあります。寸法が伸縮することを示すために、文章量を二倍にした例を見てみましょう。
24119 \end_layout
24120
24121 \begin_layout Standard
24122 \begin_inset Newpage newpage
24123 \end_inset
24124
24125
24126 \end_layout
24127
24128 \begin_layout Nut
24129
24130 \lang latin
24131 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24132  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24133  voluptua.
24134  At vero eos et accusam et justo duo dolores et ea rebum.
24135  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24136  sit amet.
24137  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24138  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24139  voluptua.
24140  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24141  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24142  voluptua.
24143  At vero eos et accusam et justo duo dolores et ea rebum.
24144  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24145  sit amet.
24146  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24147  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24148  voluptua.
24149 \end_layout
24150
24151 \begin_layout Standard
24152 \begin_inset VSpace bigskip
24153 \end_inset
24154
24155
24156 \end_layout
24157
24158 \begin_layout Standard
24159 ただし、
24160 \family sans
24161 CDlabel
24162 \family default
24163 形は例外です。これは、CD/DVDの寸法に収まらなくてはならないので、伸縮しません。したがって、形に収まる文章量は限られています。
24164 \begin_inset Newline newline
24165 \end_inset
24166
24167
24168 \family sans
24169 drop
24170 \family default
24171 形と
24172 \family sans
24173 circle
24174 \family default
24175 形は脆弱で、文章量によっては寸法計算が失敗する可能性があります。この場合、
24176 \begin_inset Quotes eld
24177 \end_inset
24178
24179 Arithmetic overflow
24180 \begin_inset Quotes erd
24181 \end_inset
24182
24183 という\SpecialChar LaTeX
24184 エラーが発生します。この時は、文章の一部を追加したり削除したりするか、どれもうまくいかなければ別の形を使用してください。
24185 \end_layout
24186
24187 \begin_layout Standard
24188 \begin_inset VSpace bigskip
24189 \end_inset
24190
24191
24192 \end_layout
24193
24194 \begin_layout Standard
24195 先端のある形では、先端部の文字列で、\SpecialChar LaTeX
24196 のハイフネーションルーチンが失敗することがあります。したがって、この部分の文章には、ハイフネーション位置
24197 \family sans
24198 (
24199 \begin_inset Info
24200 type  "shortcut"
24201 arg   "specialchar-insert hyphenation"
24202 \end_inset
24203
24204
24205 \family default
24206 )を指定することが往々にして必要になります。
24207 \end_layout
24208
24209 \begin_layout Standard
24210 \begin_inset VSpace bigskip
24211 \end_inset
24212
24213
24214 \end_layout
24215
24216 \begin_layout Standard
24217 Shapepar段落は、常に中央揃えか、左の縁が左ページ余白に接するように配置されます。したがって、これらの段落を揃えるのに段落ダイアログを使用することはできま
24218 せん。解決方法としては、段落をミニページかparboxの中において、このボックスを揃えることです。ここでの問題は、ボックスの正しい幅を見出すことです。もしボック
24219 スの幅が広すぎれば、ボックスを中央揃えにしたとしても、ボックスの左側が付いてしまうので中央揃えになりません。そこで、正しい幅を見出すまでは、若干試行錯誤しなくて
24220 はならないかもしれません。以下は、二つのハート形の段落です。一つ目は揃え指定がなく、二つ目は右揃えにしてあります。
24221 \end_layout
24222
24223 \begin_layout Standard
24224 \begin_inset Newpage newpage
24225 \end_inset
24226
24227
24228 \end_layout
24229
24230 \begin_layout Heart
24231 \noindent
24232
24233 \lang latin
24234 Lo\SpecialChar softhyphen
24235 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24236  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24237  voluptua.
24238  At vero eos et accusam et justo duo dolores et ea rebum.
24239  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24240  sit amet.
24241 \end_layout
24242
24243 \begin_layout Standard
24244 \begin_inset VSpace bigskip
24245 \end_inset
24246
24247
24248 \end_layout
24249
24250 \begin_layout Standard
24251 \noindent
24252 \align right
24253 \begin_inset Box Frameless
24254 position "t"
24255 hor_pos "c"
24256 has_inner_box 1
24257 inner_pos "t"
24258 use_parbox 1
24259 use_makebox 0
24260 width "42col%"
24261 special "none"
24262 height "1in"
24263 height_special "totalheight"
24264 thickness "0.4pt"
24265 separation "3pt"
24266 shadowsize "4pt"
24267 framecolor "black"
24268 backgroundcolor "none"
24269 status open
24270
24271 \begin_layout Heart
24272 \noindent
24273
24274 \lang latin
24275 Lo\SpecialChar softhyphen
24276 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24277  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24278  voluptua.
24279  At vero eos et accusam et justo duo dolores et ea rebum.
24280  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24281  sit amet.
24282 \end_layout
24283
24284 \end_inset
24285
24286
24287 \end_layout
24288
24289 \begin_layout Subsection
24290 任意の形
24291 \end_layout
24292
24293 \begin_layout Standard
24294 ユーザーは、どのような形であれ、定義することができます。これを手動で行うのは、全ての座標を指定しなくてはならないので、かなりの労力を必要とします。しかし、以下の
24295 ように、コンピューターに座標を計算させる方法もあります。
24296 \end_layout
24297
24298 \begin_layout Enumerate
24299 プログラム
24300 \begin_inset CommandInset href
24301 LatexCommand href
24302 name "Jpgfdraw"
24303 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24304
24305 \end_inset
24306
24307 を導入します。
24308 \end_layout
24309
24310 \begin_layout Enumerate
24311
24312 \family sans
24313 Jpgfdraw
24314 \family default
24315 内で、メニュー
24316 \family sans
24317 Te
24318 \begin_inset ERT
24319 status collapsed
24320
24321 \begin_layout Plain Layout
24322
24323 {}
24324 \end_layout
24325
24326 \end_inset
24327
24328 X/LaT
24329 \begin_inset ERT
24330 status collapsed
24331
24332 \begin_layout Plain Layout
24333
24334 {}
24335 \end_layout
24336
24337 \end_inset
24338
24339 eX\SpecialChar menuseparator
24340 Settings\SpecialChar menuseparator
24341 Set Normal Size
24342 \family default
24343 で文書中で使用しているフォント寸を選択します。例えば、この文書は12
24344 \begin_inset space \thinspace{}
24345 \end_inset
24346
24347 pt寸を使用しています。
24348 \end_layout
24349
24350 \begin_layout Enumerate
24351 形を描きます。
24352 \end_layout
24353
24354 \begin_layout Enumerate
24355 メニュー
24356 \family sans
24357 Te
24358 \begin_inset ERT
24359 status collapsed
24360
24361 \begin_layout Plain Layout
24362
24363 {}
24364 \end_layout
24365
24366 \end_inset
24367
24368 X/LaT
24369 \begin_inset ERT
24370 status collapsed
24371
24372 \begin_layout Plain Layout
24373
24374 {}
24375 \end_layout
24376
24377 \end_inset
24378
24379 eX\SpecialChar menuseparator
24380 Shapepar
24381 \family default
24382 を使用して、形の座標をエクスポートします。現れるダイアログで、形の外枠を座標に使うか、パス自体を使うかを指定します。
24383 \begin_inset Foot
24384 status collapsed
24385
24386 \begin_layout Plain Layout
24387 詳細については、
24388 \begin_inset CommandInset href
24389 LatexCommand href
24390 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24391
24392 \end_inset
24393
24394 を参照してください。
24395 \end_layout
24396
24397 \end_inset
24398
24399
24400 \end_layout
24401
24402 \begin_layout Standard
24403 座標は\SpecialChar TeX
24404 ファイルに書き込まれます。これを\SpecialChar LyX
24405 文書で使用するには、
24406 \end_layout
24407
24408 \begin_layout Enumerate
24409 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます。
24410 \end_layout
24411
24412 \begin_layout Enumerate
24413 \SpecialChar LyX
24414
24415 \family sans
24416 挿入\SpecialChar menuseparator
24417 ファイル\SpecialChar menuseparator
24418 子文書
24419 \family default
24420 メニューでファイルを選択し、
24421 \family sans
24422 取り込みの型
24423 \family default
24424 として
24425 \family sans
24426 Input
24427 \family default
24428 を選択してください。
24429 \end_layout
24430
24431 \begin_layout Standard
24432 \begin_inset VSpace defskip
24433 \end_inset
24434
24435
24436 \end_layout
24437
24438 \begin_layout Standard
24439 \begin_inset Note Greyedout
24440 status open
24441
24442 \begin_layout Plain Layout
24443
24444 \series bold
24445 【註】
24446 \series default
24447 変更した形は、現在の段落にのみ適用されます。次の段落では全て通常に戻ります。したがって、段落定義ファイルは、形を変えたい段落全てで読み込まれなくてはなりません。
24448 \end_layout
24449
24450 \end_inset
24451
24452
24453 \end_layout
24454
24455 \begin_layout Standard
24456 \begin_inset VSpace bigskip
24457 \end_inset
24458
24459
24460 \end_layout
24461
24462 \begin_layout Standard
24463 以下の用例をご覧ください。
24464 \end_layout
24465
24466 \begin_layout Standard
24467 \begin_inset VSpace bigskip
24468 \end_inset
24469
24470
24471 \end_layout
24472
24473 \begin_layout Standard
24474 \begin_inset CommandInset include
24475 LatexCommand input
24476 filename "../SpecialParagraphShape.tex"
24477
24478 \end_inset
24479
24480
24481 \lang latin
24482 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24483  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24484  voluptua.
24485  At vero eos et accusam et justo duo dolores et ea rebum.
24486  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24487  sit amet.
24488  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24489  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24490  voluptua.
24491 \end_layout
24492
24493 \begin_layout Standard
24494 \begin_inset VSpace bigskip
24495 \end_inset
24496
24497
24498 \end_layout
24499
24500 \begin_layout Standard
24501
24502 \series bold
24503 【ヒント】
24504 \family sans
24505 \series default
24506 Jpgfdraw
24507 \family default
24508 で複雑な形を描く場合、まず形を好きなプログラムで描き、出来上がった画像を
24509 \family sans
24510 Jpgfdraw
24511 \family default
24512 に読み込む方法があります。この場合、画像の外枠に沿って、直線またはスプラインを描くだけですみます。
24513 \end_layout
24514
24515 \begin_layout Standard
24516 \begin_inset VSpace bigskip
24517 \end_inset
24518
24519
24520 \end_layout
24521
24522 \begin_layout Standard
24523
24524 \family sans
24525 任意の段落形
24526 \family default
24527 モジュールは、
24528 \family sans
24529 shapepar
24530 \family default
24531
24532 \family sans
24533 Shapepar
24534 \family default
24535 の二つのコマンドも提供していて、任意の形を座標毎に定義するのに使用することができます。
24536 \begin_inset Foot
24537 status collapsed
24538
24539 \begin_layout Plain Layout
24540 これらのコマンドは、上述の全ての形で内部的に使用されています。
24541 \end_layout
24542
24543 \end_inset
24544
24545 これらのスタイルがどのように使われていて、どのような設定ができるのかについての詳しい情報は、
24546 \series bold
24547 shapepar
24548 \series default
24549 パッケージの取扱説明書
24550 \begin_inset CommandInset citation
24551 LatexCommand cite
24552 key "shapepar"
24553
24554 \end_inset
24555
24556 をご覧ください。
24557 \end_layout
24558
24559 \begin_layout Bibliography
24560 \begin_inset CommandInset bibitem
24561 LatexCommand bibitem
24562 key "multicol"
24563
24564 \end_inset
24565
24566 \SpecialChar LaTeX
24567 パッケージ
24568 \begin_inset CommandInset href
24569 LatexCommand href
24570 name "multicol"
24571 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24572
24573 \end_inset
24574
24575 の取扱説明書
24576 \end_layout
24577
24578 \begin_layout Bibliography
24579 \begin_inset CommandInset bibitem
24580 LatexCommand bibitem
24581 key "shapepar"
24582
24583 \end_inset
24584
24585 \SpecialChar LaTeX
24586 パッケージ
24587 \begin_inset CommandInset href
24588 LatexCommand href
24589 name "shapepar"
24590 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
24591
24592 \end_inset
24593
24594 の取扱説明書
24595 \end_layout
24596
24597 \end_body
24598 \end_document