]> git.lyx.org Git - features.git/blob - lib/doc/ja/Additional.lyx
Math.lyx: add shortcuts for font styles
[features.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 508
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 \IfFileExists{pxjahyper.sty}
19 {\usepackage{pxjahyper}}
20
21 % the pages of the TOC are numbered roman
22 % and a PDF-bookmark for the TOC is added
23 \pagenumbering{roman}
24 \let\myTOC\tableofcontents
25 \renewcommand{\tableofcontents}{%
26  \pdfbookmark[1]{\contentsname}{}
27  \myTOC
28  \cleardoublepage
29  \pagenumbering{arabic}}
30
31 % extra space for tables
32 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
33
34 \usepackage{t1enc}
35 \end_preamble
36 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
37 \use_default_options false
38 \begin_modules
39 logicalmkup
40 theorems-ams
41 theorems-ams-extended
42 multicol
43 shapepar
44 \end_modules
45 \maintain_unincluded_children false
46 \begin_local_layout
47 Format 35
48 InsetLayout             Flex:MenuItem
49 LyxType         charstyle
50 LabelString           menu
51 LatexType             command
52 LatexName             menuitem
53 Font
54 Family              Sans
55 EndFont
56 Preamble
57 \newcommand*{\menuitem}[1]{{\sffamily #1}}
58 EndPreamble
59 End
60 InsetLayout             Flex:Ruby
61 LyxType         charstyle
62 LatexType               command
63 LatexName               ruby
64 BgColor         none
65 LabelString             "ルビ"
66 Decoration              Conglomerate
67 Argument post:1
68 LabelString     "ルビ文"
69 MenuString      "ルビ文(S)|S"
70 Decoration      Conglomerate
71 Font
72 Size            tiny
73 EndFont
74 LabelFont
75 Size            tiny
76 EndFont
77 Mandatory       1
78 EndArgument
79 Preamble
80 \IfFileExists{okumacro.sty}
81 {\usepackage{okumacro}}
82 {\newcommand{\ruby}[2]{#2}}
83 EndPreamble
84 End
85 \end_local_layout
86 \language japanese
87 \language_package default
88 \inputencoding auto
89 \fontencoding global
90 \font_roman "default" "default"
91 \font_sans "default" "default"
92 \font_typewriter "default" "default"
93 \font_math "auto" "auto"
94 \font_default_family default
95 \use_non_tex_fonts false
96 \font_sc false
97 \font_osf false
98 \font_sf_scale 100 100
99 \font_tt_scale 100 100
100 \graphics default
101 \default_output_format pdf3
102 \output_sync 0
103 \bibtex_command default
104 \index_command default
105 \paperfontsize 12
106 \spacing single
107 \use_hyperref true
108 \pdf_title "LyX's Additional Features manual"
109 \pdf_author "LyX Team"
110 \pdf_subject "LyX's additional features documentation"
111 \pdf_keywords "LyX, Documentation, Additional"
112 \pdf_bookmarks false
113 \pdf_bookmarksnumbered true
114 \pdf_bookmarksopen false
115 \pdf_bookmarksopenlevel 1
116 \pdf_breaklinks false
117 \pdf_pdfborder false
118 \pdf_colorlinks true
119 \pdf_backref false
120 \pdf_pdfusetitle false
121 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
122 \papersize default
123 \use_geometry false
124 \use_package amsmath 1
125 \use_package amssymb 1
126 \use_package cancel 0
127 \use_package esint 0
128 \use_package mathdots 1
129 \use_package mathtools 0
130 \use_package mhchem 1
131 \use_package stackrel 0
132 \use_package stmaryrd 0
133 \use_package undertilde 0
134 \cite_engine basic
135 \cite_engine_type default
136 \biblio_style plain
137 \use_bibtopic false
138 \use_indices false
139 \paperorientation portrait
140 \suppress_date false
141 \justification true
142 \use_refstyle 0
143 \notefontcolor #0000ff
144 \index 索引
145 \shortcut idx
146 \color #008000
147 \end_index
148 \secnumdepth 3
149 \tocdepth 3
150 \paragraph_separation indent
151 \paragraph_indentation default
152 \quotes_language english
153 \papercolumns 1
154 \papersides 2
155 \paperpagestyle headings
156 \tracking_changes false
157 \output_changes false
158 \html_math_output 0
159 \html_css_as_file 0
160 \html_be_strict true
161 \end_header
162
163 \begin_body
164
165 \begin_layout Title
166 \SpecialChar LyX
167 の高度な機能
168 \begin_inset Newline newline
169 \end_inset
170
171
172 \size large
173 第2.2.x版
174 \end_layout
175
176 \begin_layout Author
177 \SpecialChar LyX
178 プロジェクトチーム
179 \begin_inset Foot
180 status collapsed
181
182 \begin_layout Plain Layout
183 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
184 文書化メーリングリスト
185 \begin_inset Flex Code
186 status open
187
188 \begin_layout Plain Layout
189 \noindent
190
191 \family typewriter
192 <lyx-docs@lists.lyx.org>
193 \end_layout
194
195 \end_inset
196
197 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
198 \end_layout
199
200 \end_inset
201
202  
203 \end_layout
204
205 \begin_layout Standard
206 \begin_inset CommandInset toc
207 LatexCommand tableofcontents
208
209 \end_inset
210
211
212 \end_layout
213
214 \begin_layout Chapter
215 はじめに
216 \end_layout
217
218 \begin_layout Standard
219 いまお読みの取扱説明書『
220 \emph on
221 \SpecialChar LyX
222 拡張機能篇
223 \emph default
224 』は,基本的には『
225 \emph on
226 ユーザーの手引き
227 \emph default
228 』の第二部です.これらの文書を別部とした理由は,単純に『
229 \emph on
230 ユーザーの手引き
231 \emph default
232 』がすでに大部となっていることと,『
233 \emph on
234 ユーザーの手引き
235 \emph default
236 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
237 プロジェクトチームは,\SpecialChar LyX
238 を各設定ファイルと外部パッケージによって拡張
239 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
240 パッケージをサポートしたい場合に,\SpecialChar LyX
241 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
242 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
243 な形での貢献を文書化する冊子として位置付けられています.
244 \end_layout
245
246 \begin_layout Standard
247 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
248 しています.さらに,\SpecialChar LaTeX
249 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
250 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
251 とはあくまでWYSIWYMた
252 ることを企図しているため,\SpecialChar LaTeX
253 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
254 \end_layout
255
256 \begin_layout Standard
257 もし,まだ『
258 \emph on
259 はじめの一歩
260 \emph default
261 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
262 \emph on
263 はじめの一歩
264 \emph default
265 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
266 \emph on
267 ユーザーの手引き
268 \emph default
269 』をよくお読みになって,\SpecialChar LyX
270 の全基本機能を習得してください.
271 \end_layout
272
273 \begin_layout Standard
274 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
275 が\SpecialChar LaTeX
276 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
277 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
278 コードを正
279 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
280 ユーザー向けの章となっています.
281 \end_layout
282
283 \begin_layout Chapter
284 \SpecialChar LyX
285 と\SpecialChar LaTeX
286
287 \end_layout
288
289 \begin_layout Section
290 \SpecialChar LyX
291 は\SpecialChar LaTeX
292 をどう使っているか
293 \end_layout
294
295 \begin_layout Standard
296 本章
297 \family roman
298 \series medium
299 \shape up
300 \size normal
301 \emph off
302 \bar no
303 \noun off
304 \color none
305 は,\SpecialChar TeX
306 熟練者と\SpecialChar LaTeX
307 に興味のある方向けの章です.ここでは,\SpecialChar LyX
308 と\SpecialChar LaTeX
309 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
310 のこと
311 を多少なりともご存知であることを前提とします.
312 \end_layout
313
314 \begin_layout Standard
315
316 \family roman
317 \series medium
318 \shape up
319 \size normal
320 \emph off
321 \bar no
322 \noun off
323 \color none
324 かつて\SpecialChar LyX
325 は,「\SpecialChar LaTeX
326
327 \family default
328 \series default
329 \shape default
330 \size default
331 \emph default
332 \bar default
333 \noun default
334 \color inherit
335 WYSIWYM
336 \family roman
337 \series medium
338 \shape up
339 \size normal
340 \emph off
341 \bar no
342 \noun off
343 \color none
344 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
345 のフロントエンドは,いくつも出回っています
346 \begin_inset Foot
347 status collapsed
348
349 \begin_layout Plain Layout
350
351 \family roman
352 \series medium
353 \shape up
354 \size normal
355 \emph off
356 \bar no
357 \noun off
358 \color none
359 有名なものとしては,Linux上の\SpecialChar TeX
360 makerとkile,OSX上の\SpecialChar TeX
361 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
362 モードも含まれます.
363 \end_layout
364
365 \end_inset
366
367 .これらは,基本的に\SpecialChar LaTeX
368 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
369 も,エディタであり,\SpecialChar LaTeX
370 を走らせる機能を有し,ファイル
371 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
372 \family default
373 \series default
374 \shape default
375 \size default
376 \emph default
377 \bar default
378 \noun default
379 \color inherit
380 ひとつには,
381 \family roman
382 \series medium
383 \shape up
384 \size normal
385 \emph off
386 \bar no
387 \noun off
388 \color none
389 \SpecialChar LyX
390 を効果的に使うのに,\SpecialChar LaTeX
391 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
392 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
393 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
394 てください.まず
395 \family sans
396 \series default
397 \shape default
398 \size default
399 \emph default
400 \bar default
401 \noun default
402 \color inherit
403
404 \begin_inset Flex MenuItem
405 status collapsed
406
407 \begin_layout Plain Layout
408
409 \family sans
410 ファイル
411 \end_layout
412
413 \end_inset
414
415
416 \family roman
417 \series medium
418 \shape up
419 \size normal
420 \emph off
421 \bar no
422 \noun off
423 \color none
424 メニューから
425 \family sans
426 \series default
427 \shape default
428 \size default
429 \emph default
430 \bar default
431 \noun default
432 \color inherit
433
434 \begin_inset Flex MenuItem
435 status collapsed
436
437 \begin_layout Plain Layout
438
439 \family sans
440 エクスポート\SpecialChar menuseparator
441 LaTeX
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 \end_layout
533
534 \end_inset
535
536
537 \end_layout
538
539 \begin_layout Itemize
540
541 \family sans
542 \begin_inset Flex MenuItem
543 status collapsed
544
545 \begin_layout Plain Layout
546
547 \bar no
548 表示\SpecialChar menuseparator
549 更新\SpecialChar menuseparator
550
551 \bar default
552 書式
553 \end_layout
554
555 \end_inset
556
557
558 \end_layout
559
560 \begin_layout Standard
561
562 \family roman
563 \series medium
564 \shape up
565 \size normal
566 \emph off
567 \bar no
568 \noun off
569 \color none
570 これらは,最後に\SpecialChar LaTeX
571 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
572 を実行します.
573 \end_layout
574
575 \begin_layout Standard
576
577 \family roman
578 \series medium
579 \shape up
580 \size normal
581 \emph off
582 \bar no
583 \noun off
584 \color none
585 \SpecialChar LyX
586 が編集中のファイルを\SpecialChar LaTeX
587 にかけるとき,\SpecialChar LyX
588 は以下の段階をふみます.
589 \end_layout
590
591 \begin_layout Enumerate
592
593 \family roman
594 \series medium
595 \shape up
596 \size normal
597 \emph off
598 \bar no
599 \noun off
600 \color none
601 文書を\SpecialChar LaTeX
602 に変換し,ファイルの拡張子を
603 \begin_inset Flex Code
604 status collapsed
605
606 \begin_layout Plain Layout
607
608 \family roman
609 \series medium
610 \shape up
611 \size normal
612 \emph off
613 \bar no
614 \noun off
615 \color none
616 .lyx
617 \end_layout
618
619 \end_inset
620
621 から
622 \begin_inset Flex Code
623 status collapsed
624
625 \begin_layout Plain Layout
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 .tex
636 \end_layout
637
638 \end_inset
639
640 に変えて保存.
641 \end_layout
642
643 \begin_layout Enumerate
644
645 \family roman
646 \series medium
647 \shape up
648 \size normal
649 \emph off
650 \bar no
651 \noun off
652 \color none
653 この
654 \begin_inset Flex Code
655 status collapsed
656
657 \begin_layout Plain Layout
658
659 \family roman
660 \series medium
661 \shape up
662 \size normal
663 \emph off
664 \bar no
665 \noun off
666 \color none
667 .tex
668 \end_layout
669
670 \end_inset
671
672 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
673 を実行し,\SpecialChar LaTeX
674 ファイルをコンパイルするのに必要な他のコマンド(
675 \begin_inset Flex Code
676 status collapsed
677
678 \begin_layout Plain Layout
679
680 \family roman
681 \series medium
682 \shape up
683 \size normal
684 \emph off
685 \bar no
686 \noun off
687 \color none
688 bibtex
689 \end_layout
690
691 \end_inset
692
693
694 \begin_inset Flex Code
695 status collapsed
696
697 \begin_layout Plain Layout
698
699 \family roman
700 \series medium
701 \shape up
702 \size normal
703 \emph off
704 \bar no
705 \noun off
706 \color none
707 makeindex
708 \end_layout
709
710 \end_inset
711
712 など)を実行..
713 \end_layout
714
715 \begin_layout Enumerate
716
717 \family roman
718 \series medium
719 \shape up
720 \size normal
721 \emph off
722 \bar no
723 \noun off
724 \color none
725 もしエラーがあれば,エラーログを表示.
726 \end_layout
727
728 \begin_layout Standard
729
730 \family roman
731 \series medium
732 \shape up
733 \size normal
734 \emph off
735 \bar no
736 \noun off
737 \color none
738 \SpecialChar LaTeX
739
740 \family sans
741 \series default
742 \shape default
743 \size default
744 \emph default
745 \bar default
746 \noun default
747 \color inherit
748
749 \begin_inset Flex MenuItem
750 status collapsed
751
752 \begin_layout Plain Layout
753
754 \family sans
755 表示\SpecialChar menuseparator
756 DVI
757 \end_layout
758
759 \end_inset
760
761
762 \family roman
763 \series medium
764 \shape up
765 \size normal
766 \emph off
767 \bar no
768 \noun off
769 \color none
770 を使用して実行した場合には,\SpecialChar LyX
771 はこの後,DVIビューアを実行してDVIファイルを表示します.
772 \begin_inset Flex MenuItem
773 status collapsed
774
775 \begin_layout Plain Layout
776
777 \family roman
778 \series medium
779 \shape up
780 \size normal
781 \emph off
782 \bar no
783 \noun off
784 \color none
785 表示\SpecialChar menuseparator
786 PostScript
787 \end_layout
788
789 \end_inset
790
791 を使用した場合には,\SpecialChar LyX
792 はさらに以下の段階をふみます.
793 \end_layout
794
795 \begin_layout Itemize
796
797 \family roman
798 \series medium
799 \shape up
800 \size normal
801 \emph off
802 \bar no
803 \noun off
804 \color none
805 \begin_inset Flex Code
806 status collapsed
807
808 \begin_layout Plain Layout
809
810 \family typewriter
811 dvips
812 \end_layout
813
814 \end_inset
815
816 を実行して,
817 \family default
818 \series default
819 \shape default
820 \size default
821 \emph default
822 \bar default
823 \noun default
824 \color inherit
825 DVI
826 \family roman
827 \series medium
828 \shape up
829 \size normal
830 \emph off
831 \bar no
832 \noun off
833 \color none
834 ファイルをPostScript
835 \family default
836 \series default
837 \shape default
838 \size default
839 \emph default
840 \bar default
841 \noun default
842 \color inherit
843 に変換.
844 \end_layout
845
846 \begin_layout Itemize
847
848 \family roman
849 \series medium
850 \shape up
851 \size normal
852 \emph off
853 \bar no
854 \noun off
855 \color none
856 \begin_inset Flex Code
857 status collapsed
858
859 \begin_layout Plain Layout
860
861 \family typewriter
862 ghostview
863 \end_layout
864
865 \end_inset
866
867 などのPostScriptビューアを実行して,PostScript
868 \family default
869 \series default
870 \shape default
871 \size default
872 \emph default
873 \bar default
874 \noun default
875 \color inherit
876 ファイルを表示.
877 \end_layout
878
879 \begin_layout Standard
880 \SpecialChar LyX
881 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
882 \end_layout
883
884 \begin_layout Section
885 \SpecialChar LaTeX
886 ファイルを\SpecialChar LyX
887 に読み込む
888 \end_layout
889
890 \begin_layout Standard
891 \SpecialChar LyX
892
893 \family sans
894
895 \begin_inset Flex MenuItem
896 status collapsed
897
898 \begin_layout Plain Layout
899
900 \family sans
901 ファイル\SpecialChar menuseparator
902 インポート\SpecialChar menuseparator
903 LaTeX
904 \end_layout
905
906 \end_inset
907
908
909 \family roman
910 \series medium
911 \shape up
912 \size normal
913 \emph off
914 \bar no
915 \noun off
916 \color none
917 コマンドを使用すると,\SpecialChar LaTeX
918 ファイルを
919 \family default
920 \series default
921 \shape default
922 \size default
923 \emph default
924 \bar default
925 \noun default
926  
927 \family roman
928 \series medium
929 \shape up
930 \size normal
931 \emph off
932 \bar no
933 \noun off
934 \SpecialChar LyX
935 にインポートすることができます.このコマンドは,
936 \family typewriter
937 \series default
938 \shape default
939 \size default
940 \emph default
941 \bar default
942 \noun default
943 \color inherit
944
945 \begin_inset Flex Code
946 status collapsed
947
948 \begin_layout Plain Layout
949
950 \family typewriter
951 tex2lyx
952 \end_layout
953
954 \end_inset
955
956
957 \family roman
958 \series medium
959 \shape up
960 \size normal
961 \emph off
962 \bar no
963 \noun off
964 \color none
965 というプログラムを呼び出し,
966 \family typewriter
967 \series default
968 \shape default
969 \size default
970 \emph default
971 \bar default
972 \noun default
973 \color inherit
974
975 \begin_inset Flex Code
976 status collapsed
977
978 \begin_layout Plain Layout
979
980 \family typewriter
981 foo.tex
982 \end_layout
983
984 \end_inset
985
986
987 \family default
988 などというファイルから
989 \begin_inset Flex Code
990 status collapsed
991
992 \begin_layout Plain Layout
993
994 \family typewriter
995 foo.lyx
996 \end_layout
997
998 \end_inset
999
1000 を生成します.\SpecialChar LyX
1001 は,この変換したファイルを開きます
1002 \begin_inset Foot
1003 status collapsed
1004
1005 \begin_layout Plain Layout
1006 \begin_inset Flex Code
1007 status collapsed
1008
1009 \begin_layout Plain Layout
1010 tex2lyx
1011 \end_layout
1012
1013 \end_inset
1014
1015 は,もちろんコマンドラインから実行することもできます.
1016 \end_layout
1017
1018 \end_inset
1019
1020
1021 \end_layout
1022
1023 \begin_layout Standard
1024
1025 \family typewriter
1026 \begin_inset Flex Code
1027 status collapsed
1028
1029 \begin_layout Plain Layout
1030
1031 \family typewriter
1032 tex2lyx
1033 \end_layout
1034
1035 \end_inset
1036
1037
1038 \family roman
1039 \series medium
1040 \shape up
1041 \size normal
1042 \emph off
1043 \bar no
1044 \noun off
1045 \color none
1046 は,文法的に正しい\SpecialChar LaTeX
1047 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1048 \family typewriter
1049 \series default
1050 \shape default
1051 \size default
1052 \emph default
1053 \bar default
1054 \noun default
1055 \color inherit
1056
1057 \begin_inset Flex Code
1058 status collapsed
1059
1060 \begin_layout Plain Layout
1061
1062 \family typewriter
1063 tex2lyx
1064 \end_layout
1065
1066 \end_inset
1067
1068
1069 \family roman
1070 \series medium
1071 \shape up
1072 \size normal
1073 \emph off
1074 \bar no
1075 \noun off
1076 \color none
1077 は,理解不能な部分は\SpecialChar TeX
1078 コードボックスの形で残しますので,ファイルを
1079 \family typewriter
1080 \series default
1081 \shape default
1082 \size default
1083 \emph default
1084 \bar default
1085 \noun default
1086 \color inherit
1087
1088 \begin_inset Flex Code
1089 status collapsed
1090
1091 \begin_layout Plain Layout
1092
1093 \family typewriter
1094 tex2lyx
1095 \end_layout
1096
1097 \end_inset
1098
1099
1100 \family roman
1101 \series medium
1102 \shape up
1103 \size normal
1104 \emph off
1105 \bar no
1106 \noun off
1107 \color none
1108 で変換したのち,\SpecialChar TeX
1109 コードボックスを探して,手動で正しく編集してください.
1110 \end_layout
1111
1112 \begin_layout Standard
1113
1114 \family roman
1115 \series medium
1116 \shape up
1117 \size normal
1118 \emph off
1119 \bar no
1120 \noun off
1121 \color none
1122 \SpecialChar TeX
1123 コードボックスがなにかご存じなければ,次節をお読みください.
1124 \end_layout
1125
1126 \begin_layout Section
1127 \SpecialChar LaTeX
1128 コードを挿入する
1129 \begin_inset CommandInset label
1130 LatexCommand label
1131 name "sec:LaTeXコードを挿入する"
1132
1133 \end_inset
1134
1135
1136 \end_layout
1137
1138 \begin_layout Standard
1139
1140 \family roman
1141 \series medium
1142 \shape up
1143 \size normal
1144 \emph off
1145 \bar no
1146 \noun off
1147 \color none
1148 どの\SpecialChar LyX
1149 文書にもつねに\SpecialChar TeX
1150 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1151 にできることは,つねに\SpecialChar LyX
1152 でも行うことができます.一方,\SpecialChar LyX
1153 は,すべての\SpecialChar LaTeX
1154 構成物を\SpecialChar LyX
1155 内に
1156 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1157 コマンドを\SpecialChar LyX
1158 文書に挿入する必要が出てきた場合には,
1159 \begin_inset Flex Code
1160 status collapsed
1161
1162 \begin_layout Plain Layout
1163
1164 \family roman
1165 \series medium
1166 \shape up
1167 \size normal
1168 \emph off
1169 \bar no
1170 \noun off
1171 \color none
1172 \SpecialChar TeX
1173 コード
1174 \end_layout
1175
1176 \end_inset
1177
1178 ボックスを使用してください.これは,
1179 \family sans
1180 \series default
1181 \shape default
1182 \size default
1183 \emph default
1184 \bar default
1185 \noun default
1186 \color inherit
1187
1188 \begin_inset Flex MenuItem
1189 status collapsed
1190
1191 \begin_layout Plain Layout
1192
1193 \family sans
1194 挿入\SpecialChar menuseparator
1195 TeXコード
1196 \end_layout
1197
1198 \end_inset
1199
1200
1201 \family roman
1202 \series medium
1203 \shape up
1204 \size normal
1205 \emph off
1206 \bar no
1207 \noun off
1208 \color none
1209 若しくは
1210 \family default
1211 \series default
1212 \shape default
1213 \size default
1214 \emph default
1215 \bar default
1216 \noun default
1217 \color inherit
1218
1219 \begin_inset Flex Ruby
1220 status collapsed
1221
1222 \begin_layout Plain Layout
1223
1224 \family roman
1225 \series medium
1226 \shape up
1227 \size normal
1228 \emph off
1229 \bar no
1230 \noun off
1231 \color none
1232 捷径
1233 \family default
1234 \series default
1235 \shape default
1236 \size default
1237 \emph default
1238 \bar default
1239 \noun default
1240 \color inherit
1241
1242 \begin_inset Argument post:1
1243 status collapsed
1244
1245 \begin_layout Plain Layout
1246 ショートカット
1247 \end_layout
1248
1249 \end_inset
1250
1251
1252 \end_layout
1253
1254 \end_inset
1255
1256
1257 \begin_inset Flex Ruby
1258 status collapsed
1259
1260 \begin_layout Plain Layout
1261
1262 \family roman
1263 \series medium
1264 \shape up
1265 \size normal
1266 \emph off
1267 \bar no
1268 \noun off
1269 \color none
1270
1271 \begin_inset Argument post:1
1272 status collapsed
1273
1274 \begin_layout Plain Layout
1275 キー
1276 \end_layout
1277
1278 \end_inset
1279
1280
1281 \end_layout
1282
1283 \end_inset
1284
1285
1286 \begin_inset Info
1287 type  "shortcut"
1288 arg   "ert-insert"
1289 \end_inset
1290
1291
1292 \family roman
1293 \series medium
1294 \shape up
1295 \size normal
1296 \emph off
1297 \bar no
1298 \noun off
1299 \color none
1300 で,文書中に挿入することができます.
1301 \end_layout
1302
1303 \begin_layout Standard
1304 以下は,\SpecialChar LaTeX
1305 コマンドを\SpecialChar LyX
1306 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1307 \end_layout
1308
1309 \begin_layout LyX-Code
1310
1311 \backslash
1312 begin{tabular}{ll}
1313 \begin_inset Newline newline
1314 \end_inset
1315
1316
1317 \backslash
1318 begin{minipage}{5cm}
1319 \begin_inset Newline newline
1320 \end_inset
1321
1322 これは,ミニページ環境の例です.
1323 \begin_inset Newline newline
1324 \end_inset
1325
1326 これには,
1327 \begin_inset Newline newline
1328 \end_inset
1329
1330 (フロートでない)図表を
1331 \begin_inset Newline newline
1332 \end_inset
1333
1334 含め,ほとんど何でも
1335 \begin_inset Newline newline
1336 \end_inset
1337
1338 入れることができます. 
1339 \begin_inset Newline newline
1340 \end_inset
1341
1342
1343 \backslash
1344 end{minipage}
1345 \begin_inset Newline newline
1346 \end_inset
1347
1348 &
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 \backslash
1360 begin{verbatim}
1361 \begin_inset Newline newline
1362 \end_inset
1363
1364
1365 \backslash
1366 begin{minipage}{5cm}
1367 \begin_inset Newline newline
1368 \end_inset
1369
1370 これは...
1371  
1372 \begin_inset Newline newline
1373 \end_inset
1374
1375
1376 \backslash
1377 end{minipage}
1378 \begin_inset Newline newline
1379 \end_inset
1380
1381
1382 \backslash
1383 end{verbatim}
1384 \begin_inset Newline newline
1385 \end_inset
1386
1387
1388 \backslash
1389 end{minipage}
1390 \begin_inset Newline newline
1391 \end_inset
1392
1393
1394 \backslash
1395 end{tabular}
1396 \end_layout
1397
1398 \begin_layout LyX-Code
1399
1400 \end_layout
1401
1402 \begin_layout Standard
1403 上記のテキストを含んだ
1404 \begin_inset Flex Code
1405 status collapsed
1406
1407 \begin_layout Plain Layout
1408 \SpecialChar TeX
1409 コード
1410 \end_layout
1411
1412 \end_inset
1413
1414 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1415 上でご覧になっていれば,\SpecialChar TeX
1416 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1417 れるはずです.
1418 \end_layout
1419
1420 \begin_layout Standard
1421 \begin_inset VSpace bigskip
1422 \end_inset
1423
1424
1425 \begin_inset ERT
1426 status open
1427
1428 \begin_layout Plain Layout
1429
1430
1431 \backslash
1432 begin{tabular}{ll}
1433 \end_layout
1434
1435 \begin_layout Plain Layout
1436
1437
1438 \backslash
1439 begin{minipage}{5cm}
1440 \end_layout
1441
1442 \begin_layout Plain Layout
1443
1444 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます. 
1445 \backslash
1446 end{minipage}
1447 \end_layout
1448
1449 \begin_layout Plain Layout
1450
1451 &
1452 \end_layout
1453
1454 \begin_layout Plain Layout
1455
1456
1457 \backslash
1458 begin{minipage}{5cm}
1459 \end_layout
1460
1461 \begin_layout Plain Layout
1462
1463
1464 \backslash
1465 begin{verbatim}
1466 \end_layout
1467
1468 \begin_layout Plain Layout
1469
1470
1471 \backslash
1472 begin{minipage}{5cm}
1473 \end_layout
1474
1475 \begin_layout Plain Layout
1476
1477 これは...
1478  
1479 \backslash
1480 end{minipage}
1481 \end_layout
1482
1483 \begin_layout Plain Layout
1484
1485
1486 \backslash
1487 end{verbatim}
1488 \end_layout
1489
1490 \begin_layout Plain Layout
1491
1492
1493 \backslash
1494 end{minipage}
1495 \end_layout
1496
1497 \begin_layout Plain Layout
1498
1499
1500 \backslash
1501 end{tabular}
1502 \end_layout
1503
1504 \end_inset
1505
1506
1507 \begin_inset VSpace bigskip
1508 \end_inset
1509
1510
1511 \end_layout
1512
1513 \begin_layout Standard
1514
1515 \family roman
1516 \series medium
1517 \shape up
1518 \size normal
1519 \emph off
1520 \bar no
1521 \noun off
1522 \color none
1523 \SpecialChar TeX
1524 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1525 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1526 \begin_inset Flex MenuItem
1527 status collapsed
1528
1529 \begin_layout Plain Layout
1530
1531 \family roman
1532 \series medium
1533 \shape up
1534 \size normal
1535 \emph off
1536 \bar no
1537 \noun off
1538 \color none
1539 挿入\SpecialChar menuseparator
1540 ファイル\SpecialChar menuseparator
1541 子文書
1542 \end_layout
1543
1544 \end_inset
1545
1546 を使用する方法もあります(取り込みの型として
1547 \begin_inset Flex Code
1548 status collapsed
1549
1550 \begin_layout Plain Layout
1551
1552 \family roman
1553 \series medium
1554 \shape up
1555 \size normal
1556 \emph off
1557 \bar no
1558 \noun off
1559 \color none
1560 Input
1561 \end_layout
1562
1563 \end_inset
1564
1565 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1566 \family default
1567 \series default
1568 \shape default
1569 \size default
1570 \emph on
1571 \bar default
1572 \noun default
1573 \color inherit
1574 確認できている
1575 \family roman
1576 \series medium
1577 \shape up
1578 \size normal
1579 \emph off
1580 \bar no
1581 \noun off
1582 \color none
1583 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1584 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1585 \end_layout
1586
1587 \begin_layout Standard
1588
1589 \family roman
1590 \series medium
1591 \shape up
1592 \size normal
1593 \emph off
1594 \bar no
1595 \noun off
1596 \color none
1597 最後に,いくつか強調しておくべきことがあります.
1598 \end_layout
1599
1600 \begin_layout Itemize
1601
1602 \family roman
1603 \series medium
1604 \shape up
1605 \size normal
1606 \emph off
1607 \bar no
1608 \noun off
1609 \color none
1610 \SpecialChar LyX
1611 は,あなたの\SpecialChar LaTeX
1612 コードが正しいかどうかを
1613 \family default
1614 \series default
1615 \shape default
1616 \size default
1617 \emph on
1618 \bar default
1619 \noun default
1620 \color inherit
1621 チェックしません
1622 \family roman
1623 \series medium
1624 \shape up
1625 \size normal
1626 \emph off
1627 \bar no
1628 \noun off
1629 \color none
1630
1631 \end_layout
1632
1633 \begin_layout Itemize
1634
1635 \family roman
1636 \series medium
1637 \shape up
1638 \size normal
1639 \emph off
1640 \bar no
1641 \noun off
1642 \color none
1643 車輪の再発明をしないようにご注意ください.
1644 \end_layout
1645
1646 \begin_layout Standard
1647
1648 \family roman
1649 \series medium
1650 \shape up
1651 \size normal
1652 \emph off
1653 \bar no
1654 \noun off
1655 \color none
1656 二番目の点に関して,\SpecialChar LyX
1657 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1658 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1659 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1660 う膨大な数の\SpecialChar LaTeX
1661 パッケージが存在します.
1662 \family default
1663 \series default
1664 \shape default
1665 \size default
1666 \emph default
1667 \bar default
1668 \noun default
1669 \color inherit
1670 詳細については,
1671 \begin_inset CommandInset href
1672 LatexCommand href
1673 name "CTAN"
1674 target "http://www.ctan.org/"
1675
1676 \end_inset
1677
1678
1679 \family roman
1680 \series medium
1681 \shape up
1682 \size normal
1683 \emph off
1684 \bar no
1685 \noun off
1686 \color none
1687 と第
1688 \begin_inset CommandInset ref
1689 LatexCommand ref
1690 reference "chap:Special-features"
1691
1692 \end_inset
1693
1694 節をご覧ください.
1695 \end_layout
1696
1697 \begin_layout Standard
1698
1699 \family roman
1700 \series medium
1701 \shape up
1702 \size normal
1703 \emph off
1704 \bar no
1705 \noun off
1706 \color none
1707 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1708 関連書籍を参考とするようにしてください.『
1709 \family default
1710 \series default
1711 \shape default
1712 \size default
1713 \emph on
1714 \bar default
1715 \noun default
1716 \color inherit
1717 ユーザーの手引き
1718 \family roman
1719 \series medium
1720 \shape up
1721 \size normal
1722 \emph off
1723 \bar no
1724 \noun off
1725 \color none
1726 』の書誌情報に多くの\SpecialChar LaTeX
1727 関連書籍が引用されています.
1728 \end_layout
1729
1730 \begin_layout Section
1731 \SpecialChar LyX
1732 と\SpecialChar LaTeX
1733 プリアンブル
1734 \end_layout
1735
1736 \begin_layout Subsection
1737 \SpecialChar LaTeX
1738 プリアンブルについて
1739 \end_layout
1740
1741 \begin_layout Standard
1742
1743 \family roman
1744 \series medium
1745 \shape up
1746 \size normal
1747 \emph off
1748 \bar no
1749 \noun off
1750 \color none
1751 すでに\SpecialChar LaTeX
1752 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1753 ずです.詳しくは\SpecialChar LaTeX
1754 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1755 文書の\SpecialChar LaTeX
1756 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1757 みになった方が良いでしょう.
1758 \end_layout
1759
1760 \begin_layout Standard
1761
1762 \family roman
1763 \series medium
1764 \shape up
1765 \size normal
1766 \emph off
1767 \bar no
1768 \noun off
1769 \color none
1770 \SpecialChar LaTeX
1771 プリアンブルは,\SpecialChar LaTeX
1772 文書のいちばん始め,本文の
1773 \family default
1774 \series default
1775 \shape default
1776 \size default
1777 \emph on
1778 \bar default
1779 \noun default
1780 \color inherit
1781
1782 \family roman
1783 \series medium
1784 \shape up
1785 \size normal
1786 \emph off
1787 \bar no
1788 \noun off
1789 \color none
1790 の部分に来ます.ここでは以下のことを行います.
1791 \end_layout
1792
1793 \begin_layout Itemize
1794
1795 \family roman
1796 \series medium
1797 \shape up
1798 \size normal
1799 \emph off
1800 \bar no
1801 \noun off
1802 \color none
1803 文書クラス(ドキュメントクラス)の宣言.
1804 \begin_inset Newline newline
1805 \end_inset
1806
1807 これは\SpecialChar LyX
1808 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1809 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1810 \family default
1811 \series default
1812 \shape default
1813 \size default
1814 \emph on
1815 \bar default
1816 \noun default
1817 \color inherit
1818 カスタマイズ篇
1819 \family roman
1820 \series medium
1821 \shape up
1822 \size normal
1823 \emph off
1824 \bar no
1825 \noun off
1826 \color none
1827 』をご覧になれば,\SpecialChar LyX
1828 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1829 \end_layout
1830
1831 \begin_layout Itemize
1832
1833 \family roman
1834 \series medium
1835 \shape up
1836 \size normal
1837 \emph off
1838 \bar no
1839 \noun off
1840 \color none
1841 パッケージ使用の宣言.
1842 \begin_inset Newline newline
1843 \end_inset
1844
1845 \SpecialChar LaTeX
1846 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1847 提供されることに加え,文書に変更を加えることができます.例えば
1848 \family typewriter
1849 \series default
1850 \shape default
1851 \size default
1852 \emph default
1853 \bar default
1854 \noun default
1855 \color inherit
1856
1857 \family roman
1858 \series medium
1859 \shape up
1860 \size normal
1861 \emph off
1862 \bar no
1863 \noun off
1864 \color none
1865
1866 \begin_inset Flex Code
1867 status collapsed
1868
1869 \begin_layout Plain Layout
1870
1871 \family typewriter
1872 indentfirst
1873 \end_layout
1874
1875 \end_inset
1876
1877 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1878 \end_layout
1879
1880 \begin_layout Itemize
1881
1882 \family roman
1883 \series medium
1884 \shape up
1885 \size normal
1886 \emph off
1887 \bar no
1888 \noun off
1889 \color none
1890 カウンタ・変数・長さ・幅の設定.
1891 \begin_inset Newline newline
1892 \end_inset
1893
1894 \SpecialChar LaTeX
1895 のカウンタと変数の中には,プリアンブルでグローバルに
1896 \family default
1897 \series default
1898 \shape default
1899 \size default
1900 \emph default
1901 \bar default
1902 \noun default
1903 \color inherit
1904 設定
1905 \emph on
1906 しないかぎり
1907 \family roman
1908 \series medium
1909 \shape up
1910 \size normal
1911 \emph off
1912 \bar no
1913 \noun off
1914 \color none
1915 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1916 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1917 \end_layout
1918
1919 \begin_layout Itemize
1920
1921 \family roman
1922 \series medium
1923 \shape up
1924 \size normal
1925 \emph off
1926 \bar no
1927 \noun off
1928 \color none
1929 ユーザー定義コマンドの宣言(
1930 \begin_inset Flex Code
1931 status collapsed
1932
1933 \begin_layout Plain Layout
1934
1935 \family roman
1936 \series medium
1937 \shape up
1938 \size normal
1939 \emph off
1940 \bar no
1941 \noun off
1942 \color none
1943
1944 \backslash
1945 newcommand
1946 \end_layout
1947
1948 \end_inset
1949
1950 または
1951 \begin_inset Flex Code
1952 status collapsed
1953
1954 \begin_layout Plain Layout
1955
1956 \family roman
1957 \series medium
1958 \shape up
1959 \size normal
1960 \emph off
1961 \bar no
1962 \noun off
1963 \color none
1964
1965 \backslash
1966 renewcommand
1967 \end_layout
1968
1969 \end_inset
1970
1971 を使用).
1972 \begin_inset Newline newline
1973 \end_inset
1974
1975 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1976 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
1977 \family default
1978 \series default
1979 \shape default
1980 \size default
1981 \emph on
1982 \bar default
1983 \noun default
1984 \color inherit
1985 可能
1986 \family roman
1987 \series medium
1988 \shape up
1989 \size normal
1990 \emph off
1991 \bar no
1992 \noun off
1993 \color none
1994 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
1995 コードがあふれている場合には便利でしょう.
1996 \end_layout
1997
1998 \begin_layout Standard
1999
2000 \family roman
2001 \series medium
2002 \shape up
2003 \size normal
2004 \emph off
2005 \bar no
2006 \noun off
2007 \color none
2008 \SpecialChar LyX
2009 は,その生成する
2010 \begin_inset Flex Code
2011 status collapsed
2012
2013 \begin_layout Plain Layout
2014
2015 \family roman
2016 \series medium
2017 \shape up
2018 \size normal
2019 \emph off
2020 \bar no
2021 \noun off
2022 \color none
2023 .tex
2024 \end_layout
2025
2026 \end_inset
2027
2028 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2029 の生成する\SpecialChar LaTeX
2030 ファイルの可搬性を高めています.
2031 \end_layout
2032
2033 \begin_layout Subsection
2034 プリアンブルの変更
2035 \end_layout
2036
2037 \begin_layout Standard
2038
2039 \family roman
2040 \series medium
2041 \shape up
2042 \size normal
2043 \emph off
2044 \bar no
2045 \noun off
2046 \color none
2047 \SpecialChar LyX
2048 が\SpecialChar LaTeX
2049 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2050 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2051 \begin_inset Flex MenuItem
2052 status collapsed
2053
2054 \begin_layout Plain Layout
2055
2056 \family roman
2057 \series medium
2058 \shape up
2059 \size normal
2060 \emph off
2061 \bar no
2062 \noun off
2063 \color none
2064 文書\SpecialChar menuseparator
2065 設定
2066 \end_layout
2067
2068 \end_inset
2069
2070 ダイアログの
2071 \begin_inset Flex MenuItem
2072 status collapsed
2073
2074 \begin_layout Plain Layout
2075
2076 \family roman
2077 \series medium
2078 \shape up
2079 \size normal
2080 \emph off
2081 \bar no
2082 \noun off
2083 \color none
2084 \SpecialChar LaTeX
2085 プリアンブル
2086 \end_layout
2087
2088 \end_inset
2089
2090 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2091 は,
2092 \family sans
2093 \series default
2094 \shape default
2095 \size default
2096 \emph default
2097 \bar default
2098 \noun default
2099 \color inherit
2100
2101 \begin_inset Flex MenuItem
2102 status collapsed
2103
2104 \begin_layout Plain Layout
2105
2106 \family sans
2107 プリアンブル
2108 \end_layout
2109
2110 \end_inset
2111
2112
2113 \family roman
2114 \series medium
2115 \shape up
2116 \size normal
2117 \emph off
2118 \bar no
2119 \noun off
2120 \color none
2121 ダイアログ内のすべてのものを,\SpecialChar LyX
2122 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2123 がすでにサポートしてい
2124 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2125 \family default
2126 \series default
2127 \shape default
2128 \size default
2129 \emph default
2130 \bar default
2131 \noun default
2132 \color inherit
2133 また,
2134 \emph on
2135 プリアンブルコードが正しいことを確認してください.
2136 \emph default
2137 \SpecialChar LyX
2138 は,プリアンブルをチェックしません.
2139 \family roman
2140 \series medium
2141 \shape up
2142 \size normal
2143 \emph off
2144 \bar no
2145 \noun off
2146 \color none
2147 もしエラーがあれば,「
2148 \begin_inset Flex Code
2149 status collapsed
2150
2151 \begin_layout Plain Layout
2152
2153 \family roman
2154 \series medium
2155 \shape up
2156 \size normal
2157 \emph off
2158 \bar no
2159 \noun off
2160 \color none
2161 Missing 
2162 \backslash
2163 begin{document}
2164 \end_layout
2165
2166 \end_inset
2167
2168 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2169 \end_layout
2170
2171 \begin_layout Subsection
2172
2173 \end_layout
2174
2175 \begin_layout Standard
2176
2177 \family roman
2178 \series medium
2179 \shape up
2180 \size normal
2181 \emph off
2182 \bar no
2183 \noun off
2184 \color none
2185 以下は,プリアンブルに追加できるものとその効果を示す例です.
2186 \end_layout
2187
2188 \begin_layout Subsubsection
2189 例1:オフセット
2190 \end_layout
2191
2192 \begin_layout Standard
2193
2194 \family roman
2195 \series medium
2196 \shape up
2197 \size normal
2198 \emph off
2199 \bar no
2200 \noun off
2201 \color none
2202 \SpecialChar LaTeX
2203 には
2204 \family default
2205 \series default
2206 \shape default
2207 \size default
2208 \emph default
2209 \bar default
2210 \noun default
2211 \color inherit
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 \begin_inset Flex Code
2223 status collapsed
2224
2225 \begin_layout Plain Layout
2226
2227 \family typewriter
2228
2229 \backslash
2230 hoffset
2231 \end_layout
2232
2233 \end_inset
2234
2235
2236 \family typewriter
2237 \series default
2238 \shape default
2239 \size default
2240 \emph default
2241 \bar default
2242 \noun default
2243 \color inherit
2244
2245 \begin_inset Flex Code
2246 status collapsed
2247
2248 \begin_layout Plain Layout
2249
2250 \family typewriter
2251
2252 \backslash
2253 voffset
2254 \end_layout
2255
2256 \end_inset
2257
2258
2259 \family roman
2260 \series medium
2261 \shape up
2262 \size normal
2263 \emph off
2264 \bar no
2265 \noun off
2266 \color none
2267 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2268 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2269 \begin_inset Flex Code
2270 status collapsed
2271
2272 \begin_layout Plain Layout
2273
2274 \family typewriter
2275
2276 \backslash
2277 hoffset
2278 \end_layout
2279
2280 \end_inset
2281
2282
2283 \family typewriter
2284 \series default
2285 \shape default
2286 \size default
2287 \emph default
2288 \bar default
2289 \noun default
2290 \color inherit
2291
2292 \begin_inset Flex Code
2293 status collapsed
2294
2295 \begin_layout Plain Layout
2296
2297 \family typewriter
2298
2299 \backslash
2300 voffset
2301 \end_layout
2302
2303 \end_inset
2304
2305
2306 \family default
2307 が役立つわけです.
2308 \end_layout
2309
2310 \begin_layout Standard
2311
2312 \family roman
2313 \series medium
2314 \shape up
2315 \size normal
2316 \emph off
2317 \bar no
2318 \noun off
2319 \color none
2320 \begin_inset Flex Code
2321 status collapsed
2322
2323 \begin_layout Plain Layout
2324
2325 \family typewriter
2326
2327 \backslash
2328 hoffset
2329 \end_layout
2330
2331 \end_inset
2332
2333
2334 \family typewriter
2335 \series default
2336 \shape default
2337 \size default
2338 \emph default
2339 \bar default
2340 \noun default
2341 \color inherit
2342
2343 \begin_inset Flex Code
2344 status collapsed
2345
2346 \begin_layout Plain Layout
2347
2348 \family typewriter
2349
2350 \backslash
2351 voffset
2352 \end_layout
2353
2354 \end_inset
2355
2356
2357 \family roman
2358 \series medium
2359 \shape up
2360 \size normal
2361 \emph off
2362 \bar no
2363 \noun off
2364 \color none
2365 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2366 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2367 を使用していて,シスアドがお馬鹿さんである
2368 場合には,
2369 \begin_inset Flex Code
2370 status collapsed
2371
2372 \begin_layout Plain Layout
2373
2374 \family typewriter
2375
2376 \backslash
2377 hoffset
2378 \end_layout
2379
2380 \end_inset
2381
2382
2383 \family typewriter
2384 \series default
2385 \shape default
2386 \size default
2387 \emph default
2388 \bar default
2389 \noun default
2390 \color inherit
2391
2392 \begin_inset Flex Code
2393 status collapsed
2394
2395 \begin_layout Plain Layout
2396
2397 \family typewriter
2398
2399 \backslash
2400 voffset
2401 \end_layout
2402
2403 \end_inset
2404
2405
2406 \family roman
2407 \series medium
2408 \shape up
2409 \size normal
2410 \emph off
2411 \bar no
2412 \noun off
2413 \color none
2414 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2415 \end_layout
2416
2417 \begin_layout LyX-Code
2418
2419 \backslash
2420 setlength{
2421 \backslash
2422 hoffset}{-0.5 in}
2423 \end_layout
2424
2425 \begin_layout LyX-Code
2426
2427 \backslash
2428 setlength{
2429 \backslash
2430 voffset}{-0.5 in}
2431 \end_layout
2432
2433 \begin_layout Standard
2434
2435 \family roman
2436 \series medium
2437 \shape up
2438 \size normal
2439 \emph off
2440 \bar no
2441 \noun off
2442 \color none
2443 これで余白が修正されます.
2444 \end_layout
2445
2446 \begin_layout Subsubsection
2447 例2:ラベル
2448 \end_layout
2449
2450 \begin_layout Standard
2451
2452 \family roman
2453 \series medium
2454 \shape up
2455 \size normal
2456 \emph off
2457 \bar no
2458 \noun off
2459 \color none
2460 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2461 \begin_inset Flex Code
2462 status collapsed
2463
2464 \begin_layout Plain Layout
2465
2466 \family typewriter
2467 labels.sty
2468 \end_layout
2469
2470 \end_inset
2471
2472 という\SpecialChar LaTeX
2473 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2474 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2475 ることにします.
2476 \end_layout
2477
2478 \begin_layout Standard
2479
2480 \family roman
2481 \series medium
2482 \shape up
2483 \size normal
2484 \emph off
2485 \bar no
2486 \noun off
2487 \color none
2488 まず,
2489 \begin_inset Flex Code
2490 status collapsed
2491
2492 \begin_layout Plain Layout
2493
2494 \family sans
2495 article
2496 \end_layout
2497
2498 \end_inset
2499
2500 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2501 \end_layout
2502
2503 \begin_layout LyX-Code
2504
2505 \backslash
2506 usepackage{labels}
2507 \end_layout
2508
2509 \begin_layout LyX-Code
2510
2511 \backslash
2512 LabelCols=3
2513 \end_layout
2514
2515 \begin_layout LyX-Code
2516
2517 \backslash
2518 LabelRows=7
2519 \end_layout
2520
2521 \begin_layout LyX-Code
2522
2523 \backslash
2524 LeftBorder=8mm
2525 \end_layout
2526
2527 \begin_layout LyX-Code
2528
2529 \backslash
2530 RightBorder=8mm
2531 \end_layout
2532
2533 \begin_layout LyX-Code
2534
2535 \backslash
2536 TopBorder=9mm
2537 \end_layout
2538
2539 \begin_layout LyX-Code
2540
2541 \backslash
2542 BottomBorder=2mm
2543 \end_layout
2544
2545 \begin_layout Standard
2546
2547 \family roman
2548 \series medium
2549 \shape up
2550 \size normal
2551 \emph off
2552 \bar no
2553 \noun off
2554 \color none
2555 これは
2556 \family default
2557 \series default
2558 \shape default
2559 \size default
2560 \emph default
2561 \bar default
2562 \noun default
2563 \color inherit
2564 Averyラベルシートのストック5360
2565 \family roman
2566 \series medium
2567 \shape up
2568 \size normal
2569 \emph off
2570 \bar no
2571 \noun off
2572 \color none
2573 番を使用する場合の設定です.これで,各宛名を
2574 \begin_inset Flex Code
2575 status collapsed
2576
2577 \begin_layout Plain Layout
2578
2579 \family typewriter
2580
2581 \backslash
2582 begin{labels}
2583 \end_layout
2584
2585 \end_inset
2586
2587
2588 \family typewriter
2589 \series default
2590 \shape default
2591 \size default
2592 \emph default
2593 \bar default
2594 \noun default
2595 \color inherit
2596
2597 \begin_inset Flex Code
2598 status collapsed
2599
2600 \begin_layout Plain Layout
2601
2602 \family typewriter
2603
2604 \backslash
2605 end{labels}
2606 \end_layout
2607
2608 \end_inset
2609
2610
2611 \family roman
2612 \series medium
2613 \shape up
2614 \size normal
2615 \emph off
2616 \bar no
2617 \noun off
2618 \color none
2619 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2620 \begin_inset Flex Code
2621 status collapsed
2622
2623 \begin_layout Plain Layout
2624
2625 \family typewriter
2626 labels.sty
2627 \end_layout
2628
2629 \end_inset
2630
2631 の取扱説明書に説明されています.
2632 \end_layout
2633
2634 \begin_layout Standard
2635
2636 \family roman
2637 \series medium
2638 \shape up
2639 \size normal
2640 \emph off
2641 \bar no
2642 \noun off
2643 \color none
2644 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2645 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2646 \end_layout
2647
2648 \begin_layout Subsubsection
2649 例3: 段落の字下げ
2650 \end_layout
2651
2652 \begin_layout Standard
2653
2654 \family roman
2655 \series medium
2656 \shape up
2657 \size normal
2658 \emph off
2659 \bar no
2660 \noun off
2661 \color none
2662 アメリカ人は
2663 \family default
2664 \series default
2665 \shape default
2666 \size default
2667 \emph default
2668 \bar default
2669 \noun default
2670 \color inherit
2671
2672 \emph on
2673 すべての
2674 \family roman
2675 \series medium
2676 \shape up
2677 \size normal
2678 \emph off
2679 \bar no
2680 \noun off
2681 \color none
2682 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2683 ゃと文句を言いつづけるのです
2684 \family default
2685 \series default
2686 \shape default
2687 \size default
2688 \emph default
2689 \bar default
2690 \noun default
2691 \color inherit
2692 .(これはユーモアです.(ほんと?)
2693 \emph on
2694 ユーモアですってば
2695 \emph default
2696 .)
2697 \end_layout
2698
2699 \begin_layout Standard
2700
2701 \family roman
2702 \series medium
2703 \shape up
2704 \size normal
2705 \emph off
2706 \bar no
2707 \noun off
2708 \color none
2709 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2710 \family default
2711 \series default
2712 \shape default
2713 \size default
2714 \emph on
2715 \bar default
2716 \noun default
2717 \color inherit
2718 のみ
2719 \family roman
2720 \series medium
2721 \shape up
2722 \size normal
2723 \emph off
2724 \bar no
2725 \noun off
2726 \color none
2727 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2728 ,字下げをする必要はないのです.
2729 \end_layout
2730
2731 \begin_layout Standard
2732
2733 \family roman
2734 \series medium
2735 \shape up
2736 \size normal
2737 \emph off
2738 \bar no
2739 \noun off
2740 \color none
2741 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2742 ルに次の行を加えて下さい.
2743 \end_layout
2744
2745 \begin_layout LyX-Code
2746
2747 \backslash
2748 usepackage{indentfirst}
2749 \end_layout
2750
2751 \begin_layout Standard
2752
2753 \family roman
2754 \series medium
2755 \shape up
2756 \size normal
2757 \emph off
2758 \bar no
2759 \noun off
2760 \color none
2761 もしお使いの\SpecialChar TeX
2762 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2763 \end_layout
2764
2765 \begin_layout Subsubsection
2766 例4:この文書
2767 \end_layout
2768
2769 \begin_layout Standard
2770
2771 \family roman
2772 \series medium
2773 \shape up
2774 \size normal
2775 \emph off
2776 \bar no
2777 \noun off
2778 \color none
2779 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2780 \family default
2781 \series default
2782 \shape default
2783 \size default
2784 \emph default
2785 \bar default
2786 \noun default
2787 \color inherit
2788
2789 \begin_inset CommandInset ref
2790 LatexCommand ref
2791 reference "chap:Special-features"
2792
2793 \end_inset
2794
2795
2796 \family roman
2797 \series medium
2798 \shape up
2799 \size normal
2800 \emph off
2801 \bar no
2802 \noun off
2803 \color none
2804 章には,他の例や,\SpecialChar LaTeX
2805 の各種の「汚い技」があります.
2806 \end_layout
2807
2808 \begin_layout Section
2809 \SpecialChar LyX
2810 および\SpecialChar LaTeX
2811 のエラー
2812 \end_layout
2813
2814 \begin_layout Standard
2815
2816 \family roman
2817 \series medium
2818 \shape up
2819 \size normal
2820 \emph off
2821 \bar no
2822 \noun off
2823 \color none
2824 \SpecialChar LyX
2825 が\SpecialChar LaTeX
2826 を呼び出す際,\SpecialChar LyX
2827 は\SpecialChar LaTeX
2828 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2829 は,\SpecialChar LaTeX
2830 の実行ログファイルを事後処理用に使います.ログファイルを分
2831 析したのち,\SpecialChar LyX
2832 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2833 ファイル中,そのエラーの発生した場所に表示を移動します
2834 \begin_inset Foot
2835 status collapsed
2836
2837 \begin_layout Plain Layout
2838
2839 \family roman
2840 \series medium
2841 \shape up
2842 \size normal
2843 \emph off
2844 \bar no
2845 \noun off
2846 \color none
2847 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2848 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2849 がある行にエラーがあると報告し
2850 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2851 ーのある場所よりも後ろでエラーが報告されるのです.
2852 \end_layout
2853
2854 \end_inset
2855
2856
2857 \family default
2858 \series default
2859 \shape default
2860 \size default
2861 \emph default
2862 \bar default
2863 \noun default
2864 \color inherit
2865
2866 \end_layout
2867
2868 \begin_layout Standard
2869
2870 \family roman
2871 \series medium
2872 \shape up
2873 \size normal
2874 \emph off
2875 \bar no
2876 \noun off
2877 \color none
2878 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2879 \begin_inset Flex MenuItem
2880 status collapsed
2881
2882 \begin_layout Plain Layout
2883
2884 \family roman
2885 \series medium
2886 \shape up
2887 \size normal
2888 \emph off
2889 \bar no
2890 \noun off
2891 \color none
2892 文書\SpecialChar menuseparator
2893 LaTeXログ
2894 \end_layout
2895
2896 \end_inset
2897
2898 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2899
2900 関連の良書を参照してください.
2901 \end_layout
2902
2903 \begin_layout Itemize
2904
2905 \family typewriter
2906 \begin_inset Flex Code
2907 status collapsed
2908
2909 \begin_layout Plain Layout
2910
2911 \family typewriter
2912 LaTeX Warning
2913 \end_layout
2914
2915 \end_inset
2916
2917
2918 \family roman
2919 \series medium
2920 \shape up
2921 \size normal
2922 \emph off
2923 \bar no
2924 \noun off
2925 \color none
2926
2927 \begin_inset Newline newline
2928 \end_inset
2929
2930 これで始まるメッセージは,\SpecialChar LaTeX
2931 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2932 を実行する必要があることを
2933 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2934 \end_layout
2935
2936 \begin_layout Itemize
2937
2938 \family typewriter
2939 \begin_inset Flex Code
2940 status collapsed
2941
2942 \begin_layout Plain Layout
2943
2944 \family typewriter
2945 LaTeX Font Warning
2946 \end_layout
2947
2948 \end_inset
2949
2950
2951 \family roman
2952 \series medium
2953 \shape up
2954 \size normal
2955 \emph off
2956 \bar no
2957 \noun off
2958 \color none
2959
2960 \begin_inset Newline newline
2961 \end_inset
2962
2963 \SpecialChar LaTeX
2964 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2965 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2966
2967 \end_layout
2968
2969 \begin_layout Itemize
2970
2971 \family roman
2972 \series medium
2973 \shape up
2974 \size normal
2975 \emph off
2976 \bar no
2977 \noun off
2978 \color none
2979 \begin_inset Flex Code
2980 status collapsed
2981
2982 \begin_layout Plain Layout
2983
2984 \family typewriter
2985 Overfull 
2986 \backslash
2987 hbox
2988 \end_layout
2989
2990 \end_inset
2991
2992
2993 \begin_inset Newline newline
2994 \end_inset
2995
2996 \SpecialChar LaTeX
2997 は,
2998 \family default
2999 \series default
3000 \shape default
3001 \size default
3002 \emph on
3003 \bar default
3004 \noun default
3005 \color inherit
3006 ほぼどんなときでも
3007 \family roman
3008 \series medium
3009 \shape up
3010 \size normal
3011 \emph off
3012 \bar no
3013 \noun off
3014 \color none
3015 この警告を吐き出します.これは,一行が長すぎて右余白にはみ出してしまったという警告ですが,ほとんどの場合,最終出力を見ても判別できないくらい(せいぜい1ポイント
3016 か2ポイント)です.あるいは1文字か2文字右余白に出ているくらいです.\SpecialChar LaTeX
3017 は,どんな文書を書いても,少なくとも一つはこのメッセージを出すようです.
3018 \begin_inset Newline newline
3019 \end_inset
3020
3021 このメッセージは無視しても大丈夫です.何か行が長すぎるような問題があれば,目で見ればわかります.出力を目で確認してください
3022 \begin_inset Foot
3023 status collapsed
3024
3025 \begin_layout Plain Layout
3026 あるいは,
3027 \begin_inset Flex MenuItem
3028 status collapsed
3029
3030 \begin_layout Plain Layout
3031 文書\SpecialChar menuseparator
3032 設定
3033 \end_layout
3034
3035 \end_inset
3036
3037 で「draft」オプションを指定する方法もあります.こうすると,\SpecialChar LaTeX
3038 は,overfullの発生した行の余白に黒い四角を描画します.
3039 \end_layout
3040
3041 \end_inset
3042
3043
3044 \end_layout
3045
3046 \begin_layout Itemize
3047
3048 \family typewriter
3049 \begin_inset Flex Code
3050 status collapsed
3051
3052 \begin_layout Plain Layout
3053
3054 \family typewriter
3055 Underfull 
3056 \backslash
3057 hbox
3058 \end_layout
3059
3060 \end_inset
3061
3062
3063 \begin_inset Newline newline
3064 \end_inset
3065
3066
3067 \family roman
3068 \series medium
3069 \shape up
3070 \size normal
3071 \emph off
3072 \bar no
3073 \noun off
3074 \color none
3075 これは上の警告と違ってあまり出てきません.なぜだかは分かりませんが,\SpecialChar LaTeX
3076 は1行を短めにする印字するよりは,長めにする方が好きなようです.
3077 \end_layout
3078
3079 \begin_layout Itemize
3080 \begin_inset Flex Code
3081 status collapsed
3082
3083 \begin_layout Plain Layout
3084
3085 \family typewriter
3086 Overfull 
3087 \backslash
3088 vbox
3089 \end_layout
3090
3091 \end_inset
3092
3093
3094 \family typewriter
3095
3096 \begin_inset Flex Code
3097 status collapsed
3098
3099 \begin_layout Plain Layout
3100
3101 \family typewriter
3102 Underfull 
3103 \backslash
3104 vbox
3105 \end_layout
3106
3107 \end_inset
3108
3109
3110 \family default
3111
3112 \begin_inset Newline newline
3113 \end_inset
3114
3115
3116 \family roman
3117 \series medium
3118 \shape up
3119 \size normal
3120 \emph off
3121 \bar no
3122 \noun off
3123 \color none
3124 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3125 \end_layout
3126
3127 \begin_layout Itemize
3128
3129 \family typewriter
3130 \begin_inset Flex Code
3131 status collapsed
3132
3133 \begin_layout Plain Layout
3134
3135 \family typewriter
3136 LaTeX Error: File 
3137 \begin_inset Quotes els
3138 \end_inset
3139
3140 Xxxx
3141 \begin_inset Quotes ers
3142 \end_inset
3143
3144  not found
3145 \end_layout
3146
3147 \end_inset
3148
3149
3150 \family roman
3151 \series medium
3152 \shape up
3153 \size normal
3154 \emph off
3155 \bar no
3156 \noun off
3157 \color none
3158
3159 \begin_inset Newline newline
3160 \end_inset
3161
3162 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3163 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3164 えておらず,
3165 \begin_inset Flex Code
3166 status collapsed
3167
3168 \begin_layout Plain Layout
3169
3170 \family typewriter
3171
3172 \backslash
3173 usepackage{}
3174 \end_layout
3175
3176 \end_inset
3177
3178 コマンドも使用していないとすれば,\SpecialChar LyX
3179 が読み込もうしているパッケージに存在しないものがあるということです.
3180 \family default
3181 \series default
3182 \shape default
3183 \size default
3184 \emph default
3185 \bar default
3186 \noun default
3187 \color inherit
3188
3189 \begin_inset Flex MenuItem
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193 ヘルプ\SpecialChar menuseparator
3194 \SpecialChar LaTeX
3195 の設定
3196 \end_layout
3197
3198 \end_inset
3199
3200
3201 \family roman
3202 \series medium
3203 \shape up
3204 \size normal
3205 \emph off
3206 \bar no
3207 \noun off
3208 \color none
3209 を使用して,\SpecialChar LyX
3210 が認識しているパッケージの一覧を得てください.このファイルは,(
3211 \begin_inset Flex MenuItem
3212 status collapsed
3213
3214 \begin_layout Plain Layout
3215
3216 \family roman
3217 \series medium
3218 \shape up
3219 \size normal
3220 \emph off
3221 \bar no
3222 \noun off
3223 \color none
3224 ツール\SpecialChar menuseparator
3225 再設定
3226 \end_layout
3227
3228 \end_inset
3229
3230 を使用して)\SpecialChar LyX
3231 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3232 \begin_inset Newline newline
3233 \end_inset
3234
3235
3236 \family sans
3237 \series default
3238 \shape default
3239 \size default
3240 \emph default
3241 \bar default
3242 \noun default
3243 \color inherit
3244
3245 \begin_inset Flex Code
3246 status collapsed
3247
3248 \begin_layout Plain Layout
3249
3250 \family sans
3251
3252 \backslash
3253 usepackage{}
3254 \end_layout
3255
3256 \end_inset
3257
3258
3259 \family roman
3260 \series medium
3261 \shape up
3262 \size normal
3263 \emph off
3264 \bar no
3265 \noun off
3266 \color none
3267 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3268 \end_layout
3269
3270 \begin_layout Itemize
3271
3272 \family typewriter
3273 \begin_inset Flex Code
3274 status collapsed
3275
3276 \begin_layout Plain Layout
3277
3278 \family typewriter
3279 LaTeX Error: Unknown option
3280 \end_layout
3281
3282 \end_inset
3283
3284
3285 \family roman
3286 \series medium
3287 \shape up
3288 \size normal
3289 \emph off
3290 \bar no
3291 \noun off
3292 \color none
3293
3294 \begin_inset Newline newline
3295 \end_inset
3296
3297 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3298 さい.
3299 \end_layout
3300
3301 \begin_layout Itemize
3302
3303 \family typewriter
3304 \begin_inset Flex Code
3305 status collapsed
3306
3307 \begin_layout Plain Layout
3308
3309 \family typewriter
3310 Undefined control sequence
3311 \end_layout
3312
3313 \end_inset
3314
3315
3316 \family roman
3317 \series medium
3318 \shape up
3319 \size normal
3320 \emph off
3321 \bar no
3322 \noun off
3323 \color none
3324
3325 \begin_inset Newline newline
3326 \end_inset
3327
3328 お使いの文書に\SpecialChar LaTeX
3329 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3330 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3331 \end_layout
3332
3333 \begin_layout Standard
3334
3335 \family roman
3336 \series medium
3337 \shape up
3338 \size normal
3339 \emph off
3340 \bar no
3341 \noun off
3342 \color none
3343 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3344 のメッセージです.何を言っているのかさっぱりわからないものもあ
3345 りますが,通常これらは,\SpecialChar TeX
3346 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3347 \family default
3348 \series default
3349 \shape default
3350 \size default
3351 \emph on
3352 \bar default
3353 \noun default
3354 \color inherit
3355 まったく
3356 \family roman
3357 \series medium
3358 \shape up
3359 \size normal
3360 \emph off
3361 \bar no
3362 \noun off
3363 \color none
3364 手がかりがありません.誰もわからないのです.
3365 \end_layout
3366
3367 \begin_layout Standard
3368
3369 \family roman
3370 \series medium
3371 \shape up
3372 \size normal
3373 \emph off
3374 \bar no
3375 \noun off
3376 \color none
3377 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3378 \end_layout
3379
3380 \begin_layout Enumerate
3381
3382 \family roman
3383 \series medium
3384 \shape up
3385 \size normal
3386 \emph off
3387 \bar no
3388 \noun off
3389 \color none
3390 ご自分で挿入した\SpecialChar LaTeX
3391 コードに打ち間違いがないかどうか確かめる.
3392 \end_layout
3393
3394 \begin_layout Enumerate
3395
3396 \family roman
3397 \series medium
3398 \shape up
3399 \size normal
3400 \emph off
3401 \bar no
3402 \noun off
3403 \color none
3404 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3405 \end_layout
3406
3407 \begin_layout Enumerate
3408
3409 \family roman
3410 \series medium
3411 \shape up
3412 \size normal
3413 \emph off
3414 \bar no
3415 \noun off
3416 \color none
3417 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3418 \begin_inset Flex Code
3419 status collapsed
3420
3421 \begin_layout Plain Layout
3422
3423 \family roman
3424 \series medium
3425 \shape up
3426 \size normal
3427 \emph off
3428 \bar no
3429 \noun off
3430 \color none
3431 Missing 
3432 \backslash
3433 begin{document}
3434 \end_layout
3435
3436 \end_inset
3437
3438 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3439 \end_layout
3440
3441 \begin_layout Enumerate
3442
3443 \family roman
3444 \series medium
3445 \shape up
3446 \size normal
3447 \emph off
3448 \bar no
3449 \noun off
3450 \color none
3451 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3452 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3453 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3454 い.
3455 \end_layout
3456
3457 \begin_layout Enumerate
3458
3459 \family roman
3460 \series medium
3461 \shape up
3462 \size normal
3463 \emph off
3464 \bar no
3465 \noun off
3466 \color none
3467 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3468 を微調整するオプションを使用していますか.特に,手動で
3469 \begin_inset Flex Code
3470 status collapsed
3471
3472 \begin_layout Plain Layout
3473
3474 \family sans
3475 Protected
3476 \begin_inset space ~
3477 \end_inset
3478
3479 Blank
3480 \end_layout
3481
3482 \end_inset
3483
3484
3485 \begin_inset Flex Code
3486 status collapsed
3487
3488 \begin_layout Plain Layout
3489
3490 \family sans
3491 Linebreak
3492 \end_layout
3493
3494 \end_inset
3495
3496
3497 \family sans
3498 \series default
3499 \shape default
3500 \size default
3501 \emph default
3502 \bar default
3503 \noun default
3504 \color inherit
3505
3506 \begin_inset Flex Code
3507 status collapsed
3508
3509 \begin_layout Plain Layout
3510
3511 \family sans
3512 Pagebreak
3513 \end_layout
3514
3515 \end_inset
3516
3517
3518 \family roman
3519 \series medium
3520 \shape up
3521 \size normal
3522 \emph off
3523 \bar no
3524 \noun off
3525 \color none
3526 などをたくさん挿入するなど,微調整オプションを
3527 \family default
3528 \series default
3529 \shape default
3530 \size default
3531 \emph on
3532 \bar default
3533 \noun default
3534 \color inherit
3535 悪用
3536 \family roman
3537 \series medium
3538 \shape up
3539 \size normal
3540 \emph off
3541 \bar no
3542 \noun off
3543 \color none
3544 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3545 \end_layout
3546
3547 \begin_layout Enumerate
3548
3549 \family roman
3550 \series medium
3551 \shape up
3552 \size normal
3553 \emph off
3554 \bar no
3555 \noun off
3556 \color none
3557 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3558 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3559 \end_layout
3560
3561 \begin_layout Enumerate
3562 \SpecialChar LaTeX
3563 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3564 はかなり嫌います.可能であれば,問題が生じな
3565 いように段落を修正するのが望ましいでしょう.
3566 \end_layout
3567
3568 \begin_layout Enumerate
3569
3570 \family roman
3571 \series medium
3572 \shape up
3573 \size normal
3574 \emph off
3575 \bar no
3576 \noun off
3577 \color none
3578 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3579 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3580 が原因です(\SpecialChar LaTeX
3581 の上限は5段です).
3582 \end_layout
3583
3584 \begin_layout Enumerate
3585
3586 \family roman
3587 \series medium
3588 \shape up
3589 \size normal
3590 \emph off
3591 \bar no
3592 \noun off
3593 \color none
3594 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3595 \family default
3596 \series default
3597 \shape default
3598 \size default
3599 \bar default
3600 \color inherit
3601
3602 \end_layout
3603
3604 \begin_deeper
3605 \begin_layout Enumerate
3606
3607 \family roman
3608 \series medium
3609 \shape up
3610 \size normal
3611 \emph off
3612 \bar no
3613 \noun off
3614 \color none
3615 図がページに合うように大きさを変える,
3616 \end_layout
3617
3618 \begin_layout Enumerate
3619
3620 \family roman
3621 \series medium
3622 \shape up
3623 \size normal
3624 \emph off
3625 \bar no
3626 \noun off
3627 \color none
3628 表がページに合うように削る,
3629 \end_layout
3630
3631 \begin_layout Standard
3632
3633 \family roman
3634 \series medium
3635 \shape up
3636 \size normal
3637 \emph off
3638 \bar no
3639 \noun off
3640 \color none
3641 などの手段を採る必要があります.
3642 \end_layout
3643
3644 \end_deeper
3645 \begin_layout Enumerate
3646 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3647 \end_layout
3648
3649 \begin_layout Standard
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 これらすべてが役に立たないとすれば,
3660 \family default
3661 \series default
3662 \shape default
3663 \size default
3664 \emph on
3665 \bar default
3666 \noun default
3667 \color inherit
3668 ひょっとしたら
3669 \family roman
3670 \series medium
3671 \shape up
3672 \size normal
3673 \emph off
3674 \bar no
3675 \noun off
3676 \color none
3677 \SpecialChar LyX
3678 のバグを発見したのかもしれません‥‥.
3679 \end_layout
3680
3681 \begin_layout Chapter
3682 補完ツール
3683 \end_layout
3684
3685 \begin_layout Section
3686 Bib\SpecialChar TeX
3687 による書誌情報のカスタマイズ
3688 \end_layout
3689
3690 \begin_layout Standard
3691 Bib\SpecialChar TeX
3692 の基本的な使用法は,『
3693 \emph on
3694 ユーザーの手引き
3695 \emph default
3696 』の「
3697 \emph on
3698 文献データベース(Bib\SpecialChar TeX
3699 )
3700 \emph default
3701 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3702 でサポートされている書誌情報の特別な機能について説明することとします.
3703 \end_layout
3704
3705 \begin_layout Subsection
3706 他の引用様式
3707 \end_layout
3708
3709 \begin_layout Standard
3710 標準のBib\SpecialChar TeX
3711 は,引用された著作を参照するのに,([12]のように)数字を使用します.しかし,多くの科学分野で,これとは異なる引用様式が用いられています.もっとも
3712 よく見られるのは,著者-出版年様式(例:Knuth 1984a)です.\SpecialChar LyX
3713 は,この様式を提供する2つのパッケージ
3714 \begin_inset Flex Code
3715 status collapsed
3716
3717 \begin_layout Plain Layout
3718 natbib
3719 \end_layout
3720
3721 \end_inset
3722
3723
3724 \begin_inset Flex Code
3725 status collapsed
3726
3727 \begin_layout Plain Layout
3728 jurabib
3729 \end_layout
3730
3731 \end_inset
3732
3733 をサポートしています.これらのパッケージには,それぞれ長所短所がありますが,ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)
3734 様式が欲しい場合や,無数にある
3735 \begin_inset Flex Code
3736 status collapsed
3737
3738 \begin_layout Plain Layout
3739 natbib
3740 \end_layout
3741
3742 \end_inset
3743
3744 用スタイルファイルのうちどれかを使用したい場合には,定評のある
3745 \begin_inset Flex Code
3746 status collapsed
3747
3748 \begin_layout Plain Layout
3749 natbib
3750 \end_layout
3751
3752 \end_inset
3753
3754 パッケージがおそらくよい選択でしょう.短縮タイトルによる参照や
3755 \emph on
3756 ibid.
3757 \emph default
3758 など,特別な機能が必要な場合には,
3759 \begin_inset Flex Code
3760 status collapsed
3761
3762 \begin_layout Plain Layout
3763 jurabib
3764 \end_layout
3765
3766 \end_inset
3767
3768 パッケージの利用を考えるとよいかもしれません.
3769 \end_layout
3770
3771 \begin_layout Standard
3772 \SpecialChar LyX
3773 での両パッケージの取扱い方は,ほぼ同じです.
3774 \begin_inset Flex MenuItem
3775 status collapsed
3776
3777 \begin_layout Plain Layout
3778 文書\SpecialChar menuseparator
3779 設定
3780 \end_layout
3781
3782 \end_inset
3783
3784 メニューを開き,
3785 \begin_inset Flex MenuItem
3786 status collapsed
3787
3788 \begin_layout Plain Layout
3789 書誌情報
3790 \end_layout
3791
3792 \end_inset
3793
3794 項目から
3795 \begin_inset Flex MenuItem
3796 status collapsed
3797
3798 \begin_layout Plain Layout
3799 Natbib
3800 \end_layout
3801
3802 \end_inset
3803
3804 オプションか
3805 \begin_inset Flex MenuItem
3806 status collapsed
3807
3808 \begin_layout Plain Layout
3809 Jurabib
3810 \end_layout
3811
3812 \end_inset
3813
3814 オプションを選択してください.これらのパッケージによって,引用ダイアログに機能が追加され,参照の様式が選択できるようになります(「Knuth 1984」,「Kn
3815 uth (1984)」,「Knuth, 1984」,「1984」など).両パッケージは,専用にデザインされたスタイルファイルを必要とすることに注意してください.
3816 両者ともそれ自身のスタイルファイルを同梱していますが,他にもたくさんの追加スタイルファイルがありますし,
3817 \begin_inset Flex Code
3818 status collapsed
3819
3820 \begin_layout Plain Layout
3821 natbib
3822 \end_layout
3823
3824 \end_inset
3825
3826 に至っては,対話的なスタイルファイルビルダーさえ存在します
3827 \begin_inset Foot
3828 status collapsed
3829
3830 \begin_layout Plain Layout
3831 \begin_inset Flex URL
3832 status open
3833
3834 \begin_layout Plain Layout
3835
3836 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3837 \end_layout
3838
3839 \end_inset
3840
3841 をご参照ください.
3842 \end_layout
3843
3844 \end_inset
3845
3846
3847 \end_layout
3848
3849 \begin_layout Subsection
3850 節分けされた書誌情報
3851 \end_layout
3852
3853 \begin_layout Standard
3854 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
3855 でさえあります.残念ながら,Bib\SpecialChar TeX
3856 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
3857 パッケージの助けを借りると,Bib\SpecialChar TeX
3858 をこのような必要性を満たすように拡張するこ
3859 とができます.
3860 \end_layout
3861
3862 \begin_layout Standard
3863 \SpecialChar LyX
3864 は,このようなパッケージの一つである
3865 \begin_inset Flex Code
3866 status collapsed
3867
3868 \begin_layout Plain Layout
3869 bibtopic
3870 \end_layout
3871
3872 \end_inset
3873
3874
3875 \begin_inset Foot
3876 status collapsed
3877
3878 \begin_layout Plain Layout
3879 \begin_inset Flex URL
3880 status open
3881
3882 \begin_layout Plain Layout
3883
3884 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3885 \end_layout
3886
3887 \end_inset
3888
3889 から入手可能です.
3890 \end_layout
3891
3892 \end_inset
3893
3894 をそのままでサポートします.このパッケージの長所は,(
3895 \begin_inset Flex Code
3896 status collapsed
3897
3898 \begin_layout Plain Layout
3899 multibib
3900 \end_layout
3901
3902 \end_inset
3903
3904 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
3905 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
3906 \begin_inset Flex Code
3907 status collapsed
3908
3909 \begin_layout Plain Layout
3910 souces.bib
3911 \end_layout
3912
3913 \end_inset
3914
3915
3916 \begin_inset Flex Code
3917 status collapsed
3918
3919 \begin_layout Plain Layout
3920 scientific.bib
3921 \end_layout
3922
3923 \end_inset
3924
3925 とを作成する必要があります.
3926 \end_layout
3927
3928 \begin_layout Standard
3929 \begin_inset Flex MenuItem
3930 status collapsed
3931
3932 \begin_layout Plain Layout
3933 文書\SpecialChar menuseparator
3934 設定
3935 \end_layout
3936
3937 \end_inset
3938
3939 を開いて
3940 \begin_inset Flex MenuItem
3941 status collapsed
3942
3943 \begin_layout Plain Layout
3944 書誌情報
3945 \end_layout
3946
3947 \end_inset
3948
3949 の下の
3950 \begin_inset Flex MenuItem
3951 status collapsed
3952
3953 \begin_layout Plain Layout
3954 節分けされた書誌情報
3955 \end_layout
3956
3957 \end_inset
3958
3959 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
3960 書誌情報
3961 \begin_inset Flex Code
3962 status collapsed
3963
3964 \begin_layout Plain Layout
3965 sources.bib
3966 \end_layout
3967
3968 \end_inset
3969
3970 と二つめの文献データベース
3971 \begin_inset Flex Code
3972 status collapsed
3973
3974 \begin_layout Plain Layout
3975 scientific.bib
3976 \end_layout
3977
3978 \end_inset
3979
3980 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
3981 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
3982 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
3983 ます.
3984 \begin_inset Flex Code
3985 status collapsed
3986
3987 \begin_layout Plain Layout
3988 bibtopic
3989 \end_layout
3990
3991 \end_inset
3992
3993 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
3994 \end_layout
3995
3996 \begin_layout Subsection
3997 複数の書誌情報
3998 \end_layout
3999
4000 \begin_layout Standard
4001 文書の節ごとあるいは章ごとの書誌情報など,複数の書誌情報はBib\SpecialChar TeX
4002 自身ではサポートされていません.しかしながら,もし若干の
4003 \begin_inset Flex Code
4004 status collapsed
4005
4006 \begin_layout Plain Layout
4007 \SpecialChar TeX
4008 コード
4009 \end_layout
4010
4011 \end_inset
4012
4013 (第
4014 \begin_inset CommandInset ref
4015 LatexCommand ref
4016 reference "sec:LaTeXコードを挿入する"
4017
4018 \end_inset
4019
4020 節を参照)を利用することを厭わなければ,\SpecialChar LyX
4021 で節分けされた書誌情報を作るのに使用されている(前節を参照)
4022 \begin_inset Flex Code
4023 status collapsed
4024
4025 \begin_layout Plain Layout
4026 bibtopic
4027 \end_layout
4028
4029 \end_inset
4030
4031 パッケージが,この課題を解決する簡単な方法を提供します
4032 \begin_inset Foot
4033 status collapsed
4034
4035 \begin_layout Plain Layout
4036 ほかに,
4037 \begin_inset Flex Code
4038 status collapsed
4039
4040 \begin_layout Plain Layout
4041 chapterbib
4042 \end_layout
4043
4044 \end_inset
4045
4046
4047 \begin_inset Flex Code
4048 status collapsed
4049
4050 \begin_layout Plain Layout
4051 bibunits
4052 \end_layout
4053
4054 \end_inset
4055
4056 パッケージを利用する方法もあります.
4057 \end_layout
4058
4059 \end_inset
4060
4061
4062 \end_layout
4063
4064 \begin_layout Standard
4065 まず
4066 \begin_inset Flex MenuItem
4067 status collapsed
4068
4069 \begin_layout Plain Layout
4070 文書\SpecialChar menuseparator
4071 設定
4072 \end_layout
4073
4074 \end_inset
4075
4076 に行って
4077 \begin_inset Flex MenuItem
4078 status collapsed
4079
4080 \begin_layout Plain Layout
4081 書誌情報
4082 \end_layout
4083
4084 \end_inset
4085
4086 の下の
4087 \begin_inset Flex MenuItem
4088 status collapsed
4089
4090 \begin_layout Plain Layout
4091 節分けされた書誌情報
4092 \end_layout
4093
4094 \end_inset
4095
4096 を有効にしてください.つぎに文書中において,書誌情報(Bib\SpecialChar TeX
4097 書誌情報本体を含む)の入った節を
4098 \begin_inset Flex Code
4099 status collapsed
4100
4101 \begin_layout Plain Layout
4102
4103 \backslash
4104 begin{btUnit}
4105 \end_layout
4106
4107 \end_inset
4108
4109
4110 \begin_inset Flex Code
4111 status collapsed
4112
4113 \begin_layout Plain Layout
4114
4115 \backslash
4116 end{btUnit}
4117 \end_layout
4118
4119 \end_inset
4120
4121 のあいだにはさまなくてはなりません(これらのコマンドは\SpecialChar TeX
4122 コードとして挿入する必要があります).書誌情報には,現在位置の
4123 \begin_inset Flex Code
4124 status collapsed
4125
4126 \begin_layout Plain Layout
4127 btUnit
4128 \end_layout
4129
4130 \end_inset
4131
4132 において引用されたすべての参照が含まれることになります.
4133 \series bold
4134 (註)
4135 \series default
4136 この方法を用いる場合には,すべての参照はいずれかの
4137 \begin_inset Flex Code
4138 status collapsed
4139
4140 \begin_layout Plain Layout
4141 btUnit
4142 \end_layout
4143
4144 \end_inset
4145
4146 内部になくてはなりません.また,
4147 \begin_inset Flex Code
4148 status collapsed
4149
4150 \begin_layout Plain Layout
4151 btUnit
4152 \end_layout
4153
4154 \end_inset
4155
4156 は入れ子構造にすることができません.
4157 \end_layout
4158
4159 \begin_layout Section
4160 複合文書
4161 \end_layout
4162
4163 \begin_layout Subsection
4164 一般的な操作
4165 \end_layout
4166
4167 \begin_layout Standard
4168 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
4169 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
4170 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
4171 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
4172 \begin_inset Foot
4173 status collapsed
4174
4175 \begin_layout Plain Layout
4176
4177 \series bold
4178 (訳註)
4179 \series default
4180 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
4181 ま使用します.
4182 \end_layout
4183
4184 \end_inset
4185
4186 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
4187 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4188 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
4189 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
4190 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
4191 はなりません(
4192 \begin_inset Flex Code
4193 status collapsed
4194
4195 \begin_layout Plain Layout
4196
4197 \backslash
4198 begin{document}
4199 \end_layout
4200
4201 \end_inset
4202
4203 行とその前のすべて,および
4204 \begin_inset Flex Code
4205 status collapsed
4206
4207 \begin_layout Plain Layout
4208
4209 \backslash
4210 end{document}行
4211 \end_layout
4212
4213 \end_inset
4214
4215 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
4216 \end_layout
4217
4218 \begin_layout Standard
4219 \SpecialChar LyX
4220 では,
4221 \family sans
4222 挿入\SpecialChar menuseparator
4223 ファイル\SpecialChar menuseparator
4224 子文書
4225 \family default
4226 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
4227 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
4228 \end_layout
4229
4230 \begin_layout Standard
4231 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.「include」と
4232 「input」の違いは,正確には\SpecialChar LaTeX
4233 の達人にしか意味のないものですが,ほとんどの人にとって意味のある違いといえば,「include」されたファイルは新規頁から組版さ
4234 れるのに対し,「input」されたファイルは現在のページから組版される点です.
4235 \end_layout
4236
4237 \begin_layout Standard
4238 一般に,マスターファイルは,組版前に完全な\SpecialChar LaTeX
4239 ファイルに変換されますが,インクルードされるファイルは,プリアンブル情報をまったく持たない\SpecialChar LaTeX
4240 ファイルに変換されます.
4241 \end_layout
4242
4243 \begin_layout Standard
4244 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
4245 \begin_inset Flex Code
4246 status collapsed
4247
4248 \begin_layout Plain Layout
4249 verbatim
4250 \end_layout
4251
4252 \end_inset
4253
4254 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
4255 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
4256 ,単なる見えない空白です.ただし,
4257 \family sans
4258
4259 \begin_inset Flex MenuItem
4260 status collapsed
4261
4262 \begin_layout Plain Layout
4263
4264 \family sans
4265 出力の空白に印付けをする
4266 \end_layout
4267
4268 \end_inset
4269
4270
4271 \family default
4272 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
4273 \end_layout
4274
4275 \begin_layout Subsection
4276 ファイル間の相互参照
4277 \end_layout
4278
4279 \begin_layout Standard
4280 \begin_inset Box Shadowbox
4281 position "t"
4282 hor_pos "c"
4283 has_inner_box 1
4284 inner_pos "t"
4285 use_parbox 0
4286 use_makebox 0
4287 width "100col%"
4288 special "none"
4289 height "1in"
4290 height_special "totalheight"
4291 thickness "0.4pt"
4292 separation "3pt"
4293 shadowsize "4pt"
4294 framecolor "black"
4295 backgroundcolor "none"
4296 status open
4297
4298 \begin_layout Plain Layout
4299 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
4300 \end_layout
4301
4302 \end_inset
4303
4304
4305 \end_layout
4306
4307 \begin_layout Standard
4308 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
4309 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
4310 」を選んでください.
4311 \end_layout
4312
4313 \begin_layout Subsection
4314 すべての子文書での書誌情報
4315 \end_layout
4316
4317 \begin_layout Standard
4318 \begin_inset Box Shadowbox
4319 position "t"
4320 hor_pos "c"
4321 has_inner_box 1
4322 inner_pos "t"
4323 use_parbox 0
4324 use_makebox 0
4325 width "100col%"
4326 special "none"
4327 height "1in"
4328 height_special "totalheight"
4329 thickness "0.4pt"
4330 separation "3pt"
4331 shadowsize "4pt"
4332 framecolor "black"
4333 backgroundcolor "none"
4334 status open
4335
4336 \begin_layout Plain Layout
4337 この節も更新が必要です.この点に関する内容がwikiにあるので,それをここにコピーすることも可か.
4338 \end_layout
4339
4340 \end_inset
4341
4342
4343 \end_layout
4344
4345 \begin_layout Standard
4346 すべての子文書の全文献項目を含んだ書誌情報一覧をコピーし,それをコメントに変更してください.このようにすることで,\SpecialChar LyX
4347 は.bibファイルを見つけることができ,書誌情報
4348 一覧を見えるようにせずとも簡単に参照を挿入することができるようになります.
4349 \end_layout
4350
4351 \begin_layout Standard
4352 書誌情報一覧がコメントにあるために,\SpecialChar LaTeX
4353 はそれを使用しないので,参照は[1]のようには表示されないで[?]のように表示されます.ひとつの解決法として,コメントをイン
4354 クルードする\SpecialChar LaTeX
4355 パッケージの
4356 \begin_inset Flex Code
4357 status collapsed
4358
4359 \begin_layout Plain Layout
4360 comment
4361 \end_layout
4362
4363 \end_inset
4364
4365 を使用して,ファイルを別々に処理する方法があります.そのためには,すべての子文書のプリアンブルに以下を書き加えてください.
4366 \end_layout
4367
4368 \begin_layout LyX-Code
4369
4370 \backslash
4371 usepackage{comment}
4372 \end_layout
4373
4374 \begin_layout LyX-Code
4375
4376 \backslash
4377 includecomment{comment}
4378 \end_layout
4379
4380 \begin_layout Standard
4381 \begin_inset Flex URL
4382 status collapsed
4383
4384 \begin_layout Plain Layout
4385
4386 http://wiki.lyx.org/FAQ/Unsorted#toc31
4387 \end_layout
4388
4389 \end_inset
4390
4391 も参照してください.
4392 \end_layout
4393
4394 \begin_layout Section
4395 \SpecialChar LyX
4396 書庫
4397 \end_layout
4398
4399 \begin_layout Standard
4400 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
4401 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
4402
4403  2.0には,この過程を自動化するPythonスクリプト(
4404 \begin_inset Flex Code
4405 status collapsed
4406
4407 \begin_layout Plain Layout
4408 lyxpak.py
4409 \end_layout
4410
4411 \end_inset
4412
4413 )が含まれています.これを使うには,
4414 \begin_inset Flex Code
4415 status collapsed
4416
4417 \begin_layout Plain Layout
4418 zipfile
4419 \end_layout
4420
4421 \end_inset
4422
4423  pythonモジュールまたは
4424 \begin_inset Flex Code
4425 status collapsed
4426
4427 \begin_layout Plain Layout
4428 tarfile
4429 \end_layout
4430
4431 \end_inset
4432
4433  pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
4434 \begin_inset Flex Code
4435 status collapsed
4436
4437 \begin_layout Plain Layout
4438 gzip
4439 \end_layout
4440
4441 \end_inset
4442
4443 圧縮
4444 \begin_inset Flex Code
4445 status collapsed
4446
4447 \begin_layout Plain Layout
4448 tar
4449 \end_layout
4450
4451 \end_inset
4452
4453 ファイル形式が優先され,Windowsでは
4454 \begin_inset Flex Code
4455 status collapsed
4456
4457 \begin_layout Plain Layout
4458 zip
4459 \end_layout
4460
4461 \end_inset
4462
4463 形式が優先されます.
4464 \end_layout
4465
4466 \begin_layout Standard
4467 \SpecialChar LyX
4468 の環境構成時には,「\SpecialChar LyX
4469 書庫」を書き出すことができるようにスクリプトが準備され,
4470 \begin_inset Flex MenuItem
4471 status collapsed
4472
4473 \begin_layout Plain Layout
4474 ファイル\SpecialChar menuseparator
4475 書き出し
4476 \end_layout
4477
4478 \end_inset
4479
4480 の下で利用可能となります.
4481 \end_layout
4482
4483 \begin_layout Standard
4484 \begin_inset Flex MenuItem
4485 status collapsed
4486
4487 \begin_layout Plain Layout
4488 ツール\SpecialChar menuseparator
4489 設定\SpecialChar menuseparator
4490 ファイル処理\SpecialChar menuseparator
4491 変換子
4492 \end_layout
4493
4494 \end_inset
4495
4496
4497 \begin_inset Flex MenuItem
4498 status collapsed
4499
4500 \begin_layout Plain Layout
4501 \SpecialChar LyX
4502 \SpecialChar menuseparator
4503 \SpecialChar LyX
4504 書庫
4505 \end_layout
4506
4507 \end_inset
4508
4509 変換子に,
4510 \begin_inset Flex Code
4511 status collapsed
4512
4513 \begin_layout Plain Layout
4514 -t
4515 \end_layout
4516
4517 \end_inset
4518
4519 スイッチや
4520 \begin_inset Flex Code
4521 status collapsed
4522
4523 \begin_layout Plain Layout
4524 -z
4525 \end_layout
4526
4527 \end_inset
4528
4529 スイッチを加えることで,プラットホームとは独立に,
4530 \begin_inset Flex Code
4531 status collapsed
4532
4533 \begin_layout Plain Layout
4534 tar
4535 \end_layout
4536
4537 \end_inset
4538
4539 形式や
4540 \begin_inset Flex Code
4541 status collapsed
4542
4543 \begin_layout Plain Layout
4544 zip
4545 \end_layout
4546
4547 \end_inset
4548
4549 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
4550 \end_layout
4551
4552 \begin_layout Section
4553 装飾的なヘッダ・フッタ
4554 \end_layout
4555
4556 \begin_layout Standard
4557 既定のページレイアウトは,どちらかといえば素っ気ないものです.
4558 \begin_inset Flex Code
4559 status collapsed
4560
4561 \begin_layout Plain Layout
4562 article
4563 \end_layout
4564
4565 \end_inset
4566
4567 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
4568 に着飾るには,『
4569 \emph on
4570 ユーザーの手引き
4571 \emph default
4572 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
4573 プリアンブルに挿入す
4574 る必要のある\SpecialChar LaTeX
4575 コードについて解説します.
4576 \end_layout
4577
4578 \begin_layout Standard
4579 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
4580 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
4581 コマンドには,
4582 \family typewriter
4583
4584 \begin_inset Flex Code
4585 status collapsed
4586
4587 \begin_layout Plain Layout
4588
4589 \family typewriter
4590
4591 \backslash
4592 lhead
4593 \end_layout
4594
4595 \end_inset
4596
4597
4598 \family default
4599
4600 \family typewriter
4601
4602 \begin_inset Flex Code
4603 status collapsed
4604
4605 \begin_layout Plain Layout
4606
4607 \family typewriter
4608
4609 \backslash
4610 chead
4611 \end_layout
4612
4613 \end_inset
4614
4615
4616 \family default
4617
4618 \family typewriter
4619
4620 \begin_inset Flex Code
4621 status collapsed
4622
4623 \begin_layout Plain Layout
4624
4625 \family typewriter
4626
4627 \backslash
4628 rhead
4629 \end_layout
4630
4631 \end_inset
4632
4633
4634 \family default
4635
4636 \begin_inset Flex Code
4637 status collapsed
4638
4639 \begin_layout Plain Layout
4640
4641 \backslash
4642 lfoot
4643 \end_layout
4644
4645 \end_inset
4646
4647 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
4648 \end_layout
4649
4650 \begin_layout Standard
4651
4652 \family typewriter
4653
4654 \backslash
4655 lhead{物書 はじめ}
4656 \end_layout
4657
4658 \begin_layout Standard
4659 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
4660 れるだけです.すなわち,
4661 \end_layout
4662
4663 \begin_layout Standard
4664
4665 \family typewriter
4666
4667 \backslash
4668 cfoot{}
4669 \begin_inset Newline newline
4670 \end_inset
4671
4672
4673 \family default
4674 とします.
4675 \end_layout
4676
4677 \begin_layout Standard
4678 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
4679 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
4680 \end_layout
4681
4682 \begin_layout Standard
4683
4684 \family typewriter
4685
4686 \backslash
4687 lhead{第
4688 \backslash
4689 thesection 節}
4690 \end_layout
4691
4692 \begin_layout Standard
4693
4694 \family typewriter
4695
4696 \backslash
4697 chead{}
4698 \end_layout
4699
4700 \begin_layout Standard
4701
4702 \family typewriter
4703
4704 \backslash
4705 rhead{
4706 \backslash
4707 thepage ページ}
4708 \end_layout
4709
4710 \begin_layout Standard
4711
4712 \family typewriter
4713
4714 \backslash
4715 lfoot{物書 はじめ}
4716 \end_layout
4717
4718 \begin_layout Standard
4719
4720 \family typewriter
4721
4722 \backslash
4723 cfoot{}
4724 \end_layout
4725
4726 \begin_layout Standard
4727
4728 \family typewriter
4729
4730 \backslash
4731 rfoot{
4732 \backslash
4733 today}
4734 \end_layout
4735
4736 \begin_layout Standard
4737 コマンド
4738 \family typewriter
4739
4740 \begin_inset Flex Code
4741 status collapsed
4742
4743 \begin_layout Plain Layout
4744
4745 \family typewriter
4746
4747 \backslash
4748 thesecti
4749 \family default
4750 o
4751 \family typewriter
4752 n
4753 \end_layout
4754
4755 \end_inset
4756
4757
4758 \family default
4759
4760 \begin_inset Flex Code
4761 status collapsed
4762
4763 \begin_layout Plain Layout
4764
4765 \family typewriter
4766
4767 \backslash
4768 thepa
4769 \family default
4770 ge
4771 \end_layout
4772
4773 \end_inset
4774
4775 は,それぞれ\SpecialChar LaTeX
4776 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
4777 \begin_inset Flex Code
4778 status collapsed
4779
4780 \begin_layout Plain Layout
4781
4782 \family typewriter
4783
4784 \backslash
4785 tod
4786 \family default
4787 ay
4788 \end_layout
4789
4790 \end_inset
4791
4792 は,今日の日付を印字するものです.
4793 \end_layout
4794
4795 \begin_layout Standard
4796 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
4797 フッタ罫線は0ptです.太さを変更するには,
4798 \family typewriter
4799
4800 \begin_inset Flex Code
4801 status collapsed
4802
4803 \begin_layout Plain Layout
4804
4805 \family typewriter
4806
4807 \backslash
4808 renewcommand{
4809 \backslash
4810 headrulewidth}{0.4pt}
4811 \end_layout
4812
4813 \end_inset
4814
4815
4816 \family default
4817
4818 \family typewriter
4819
4820 \begin_inset Flex Code
4821 status collapsed
4822
4823 \begin_layout Plain Layout
4824
4825 \family typewriter
4826
4827 \backslash
4828 renewcommand{
4829 \backslash
4830 footrulewidth}{0.4pt}
4831 \end_layout
4832
4833 \end_inset
4834
4835
4836 \family default
4837 のようなコマンドを使用してください.
4838 \end_layout
4839
4840 \begin_layout Standard
4841 \begin_inset Flex Code
4842 status collapsed
4843
4844 \begin_layout Plain Layout
4845
4846 \family typewriter
4847
4848 \backslash
4849 thispagestyle{empty}
4850 \end_layout
4851
4852 \end_inset
4853
4854
4855 \begin_inset Flex Code
4856 status collapsed
4857
4858 \begin_layout Plain Layout
4859
4860 \family typewriter
4861
4862 \backslash
4863 thispagestyle{plain}
4864 \end_layout
4865
4866 \end_inset
4867
4868
4869 \begin_inset Flex Code
4870 status collapsed
4871
4872 \begin_layout Plain Layout
4873
4874 \family typewriter
4875
4876 \backslash
4877 thispagestyle{fancy}
4878 \end_layout
4879
4880 \end_inset
4881
4882 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
4883 コードとして
4884 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
4885 (plain)になるように設定されているのです.
4886 \end_layout
4887
4888 \begin_layout Standard
4889 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
4890 \begin_inset Flex Code
4891 status collapsed
4892
4893 \begin_layout Plain Layout
4894
4895 \family typewriter
4896 fancyhdr
4897 \end_layout
4898
4899 \end_inset
4900
4901 パッケージの取扱説明書をご参照ください(
4902 \begin_inset Flex Code
4903 status collapsed
4904
4905 \begin_layout Plain Layout
4906 fancyhdr.dvi
4907 \end_layout
4908
4909 \end_inset
4910
4911 を探してください).
4912 \end_layout
4913
4914 \begin_layout Standard
4915 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
4916 \end_layout
4917
4918 \begin_layout Standard
4919
4920 \family typewriter
4921
4922 \backslash
4923 lhead{
4924 \backslash
4925 resizebox{1in}{!}{
4926 \backslash
4927 includegraphics{logo.eps}}}
4928 \end_layout
4929
4930 \begin_layout Standard
4931 \noindent
4932 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
4933 \begin_inset Newline newline
4934 \end_inset
4935
4936
4937 \begin_inset Flex Code
4938 status collapsed
4939
4940 \begin_layout Plain Layout
4941 \noindent
4942
4943 \family typewriter
4944
4945 \backslash
4946 usepackage{graphics}
4947 \end_layout
4948
4949 \end_inset
4950
4951 をプリアンブルに宣言する必要があります).
4952 \end_layout
4953
4954 \begin_layout Section
4955 箇条書き(記号)ブリットの指定
4956 \begin_inset CommandInset label
4957 LatexCommand label
4958 name "sec:ブリット"
4959
4960 \end_inset
4961
4962
4963 \end_layout
4964
4965 \begin_layout Standard
4966
4967 \noun on
4968 Allan Rae文
4969 \end_layout
4970
4971 \begin_layout Subsection
4972 はじめに
4973 \end_layout
4974
4975 \begin_layout Standard
4976 \SpecialChar LyX
4977 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
4978 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
4979 \begin_inset Foot
4980 status collapsed
4981
4982 \begin_layout Plain Layout
4983 正確には可能ですが,手動で行う必要があります.
4984 \end_layout
4985
4986 \end_inset
4987
4988
4989 \end_layout
4990
4991 \begin_layout Subsection
4992 外見
4993 \end_layout
4994
4995 \begin_layout Standard
4996 メニュー項目の
4997 \begin_inset Flex MenuItem
4998 status collapsed
4999
5000 \begin_layout Plain Layout
5001 文書\SpecialChar menuseparator
5002 設定
5003 \end_layout
5004
5005 \end_inset
5006
5007 を選択してダイアログを開き,
5008 \begin_inset Flex MenuItem
5009 status collapsed
5010
5011 \begin_layout Plain Layout
5012 ブリット
5013 \end_layout
5014
5015 \end_inset
5016
5017 タブを選択してください.
5018 \end_layout
5019
5020 \begin_layout Standard
5021 このダイアログは,ブリット形の一覧表を提示します.
5022 \begin_inset Flex MenuItem
5023 status collapsed
5024
5025 \begin_layout Plain Layout
5026 フォント
5027 \end_layout
5028
5029 \end_inset
5030
5031 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
5032 \begin_inset Flex MenuItem
5033 status collapsed
5034
5035 \begin_layout Plain Layout
5036 階層
5037 \end_layout
5038
5039 \end_inset
5040
5041 パネルは,変更したい階層を選択するものです.
5042 \begin_inset Flex MenuItem
5043 status collapsed
5044
5045 \begin_layout Plain Layout
5046 任意のブリット
5047 \end_layout
5048
5049 \end_inset
5050
5051 では,指定したい\SpecialChar LaTeX
5052 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5053 プリアンブルで指定する必要があります.
5054 \end_layout
5055
5056 \begin_layout Standard
5057 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
5058 パッケージの対応表です.
5059 \end_layout
5060
5061 \begin_layout Standard
5062 \align center
5063 \begin_inset Tabular
5064 <lyxtabular version="3" rows="7" columns="2">
5065 <features tabularvalignment="middle">
5066 <column alignment="center" valignment="top" width="0pt">
5067 <column alignment="center" valignment="top" width="0pt">
5068 <row>
5069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5070 \begin_inset Text
5071
5072 \begin_layout Plain Layout
5073 フォント
5074 \end_layout
5075
5076 \end_inset
5077 </cell>
5078 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5079 \begin_inset Text
5080
5081 \begin_layout Plain Layout
5082
5083 \family roman
5084 \series medium
5085 \shape up
5086 \size normal
5087 \emph off
5088 \bar no
5089 \noun off
5090 \color none
5091 必要とするパッケージ
5092 \end_layout
5093
5094 \end_inset
5095 </cell>
5096 </row>
5097 <row>
5098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5099 \begin_inset Text
5100
5101 \begin_layout Plain Layout
5102
5103 \family sans
5104 標準
5105 \end_layout
5106
5107 \end_inset
5108 </cell>
5109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5110 \begin_inset Text
5111
5112 \begin_layout Plain Layout
5113
5114 \series medium
5115 \shape up
5116 \size normal
5117 \emph off
5118 \bar no
5119 \noun off
5120 \color none
5121 \SpecialChar LaTeX
5122
5123 \family roman
5124 本体
5125 \end_layout
5126
5127 \end_inset
5128 </cell>
5129 </row>
5130 <row>
5131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5132 \begin_inset Text
5133
5134 \begin_layout Plain Layout
5135
5136 \family sans
5137 \series medium
5138 \shape up
5139 \size normal
5140 \emph off
5141 \bar no
5142 \noun off
5143 \color none
5144 数式
5145 \end_layout
5146
5147 \end_inset
5148 </cell>
5149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5150 \begin_inset Text
5151
5152 \begin_layout Plain Layout
5153
5154 \family typewriter
5155 \series medium
5156 \shape up
5157 \size normal
5158 \emph off
5159 \bar no
5160 \noun off
5161 \color none
5162 amssymb.sty
5163 \end_layout
5164
5165 \end_inset
5166 </cell>
5167 </row>
5168 <row>
5169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5170 \begin_inset Text
5171
5172 \begin_layout Plain Layout
5173
5174 \family sans
5175 \series medium
5176 \shape up
5177 \size normal
5178 \emph off
5179 \bar no
5180 \noun off
5181 \color none
5182 絵文字1
5183 \end_layout
5184
5185 \end_inset
5186 </cell>
5187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5188 \begin_inset Text
5189
5190 \begin_layout Plain Layout
5191
5192 \family typewriter
5193 \series medium
5194 \shape up
5195 \size normal
5196 \emph off
5197 \bar no
5198 \noun off
5199 \color none
5200 pifont.sty
5201 \end_layout
5202
5203 \end_inset
5204 </cell>
5205 </row>
5206 <row>
5207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5208 \begin_inset Text
5209
5210 \begin_layout Plain Layout
5211
5212 \family sans
5213 \series medium
5214 \shape up
5215 \size normal
5216 \emph off
5217 \bar no
5218 \noun off
5219 \color none
5220 絵文字2
5221 \end_layout
5222
5223 \end_inset
5224 </cell>
5225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5226 \begin_inset Text
5227
5228 \begin_layout Plain Layout
5229
5230 \family typewriter
5231 \series medium
5232 \shape up
5233 \size normal
5234 \emph off
5235 \bar no
5236 \noun off
5237 \color none
5238 pifont.sty
5239 \end_layout
5240
5241 \end_inset
5242 </cell>
5243 </row>
5244 <row>
5245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5246 \begin_inset Text
5247
5248 \begin_layout Plain Layout
5249
5250 \family sans
5251 \series medium
5252 \shape up
5253 \size normal
5254 \emph off
5255 \bar no
5256 \noun off
5257 \color none
5258 絵文字3
5259 \end_layout
5260
5261 \end_inset
5262 </cell>
5263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5264 \begin_inset Text
5265
5266 \begin_layout Plain Layout
5267
5268 \family typewriter
5269 \series medium
5270 \shape up
5271 \size normal
5272 \emph off
5273 \bar no
5274 \noun off
5275 \color none
5276 pifont.sty
5277 \end_layout
5278
5279 \end_inset
5280 </cell>
5281 </row>
5282 <row>
5283 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5284 \begin_inset Text
5285
5286 \begin_layout Plain Layout
5287
5288 \family sans
5289 \series medium
5290 \shape up
5291 \size normal
5292 \emph off
5293 \bar no
5294 \noun off
5295 \color none
5296 絵文字4
5297 \end_layout
5298
5299 \end_inset
5300 </cell>
5301 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5302 \begin_inset Text
5303
5304 \begin_layout Plain Layout
5305
5306 \family typewriter
5307 \series medium
5308 \shape up
5309 \size normal
5310 \emph off
5311 \bar no
5312 \noun off
5313 \color none
5314 pifont.sty
5315 \end_layout
5316
5317 \end_inset
5318 </cell>
5319 </row>
5320 </lyxtabular>
5321
5322 \end_inset
5323
5324
5325 \end_layout
5326
5327 \begin_layout Standard
5328 \SpecialChar LyX
5329 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5330 エラーが出るようならば,
5331 パッケージが導入されていない可能性が大です
5332 \begin_inset Foot
5333 status collapsed
5334
5335 \begin_layout Plain Layout
5336 \SpecialChar LyX
5337 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
5338 \end_layout
5339
5340 \end_inset
5341
5342
5343 \end_layout
5344
5345 \begin_layout Subsection
5346 使用法
5347 \end_layout
5348
5349 \begin_layout Standard
5350 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
5351 上には反映されませんが,文書の表示を行えば確認されます.
5352 \end_layout
5353
5354 \begin_layout Standard
5355 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
5356 \begin_inset Foot
5357 status collapsed
5358
5359 \begin_layout Plain Layout
5360 もし
5361 \emph on
5362 本当に
5363 \emph default
5364 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
5365 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
5366 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
5367 \end_layout
5368
5369 \begin_layout Plain Layout
5370 \begin_inset ERT
5371 status open
5372
5373 \begin_layout Plain Layout
5374
5375
5376 \backslash
5377 let
5378 \backslash
5379 savelabelitemi=
5380 \backslash
5381 labelitemi
5382 \end_layout
5383
5384 \end_inset
5385
5386
5387 \end_layout
5388
5389 \begin_layout Plain Layout
5390 \begin_inset ERT
5391 status open
5392
5393 \begin_layout Plain Layout
5394
5395
5396 \backslash
5397 renewcommand
5398 \backslash
5399 labelitemi[0]{
5400 \backslash
5401 small
5402 \backslash
5403 (
5404 \backslash
5405 sharp
5406 \backslash
5407 )}
5408 \end_layout
5409
5410 \end_inset
5411
5412
5413 \end_layout
5414
5415 \begin_layout Itemize
5416 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
5417 コマンド
5418 \begin_inset Flex Code
5419 status collapsed
5420
5421 \begin_layout Plain Layout
5422
5423 \family typewriter
5424
5425 \backslash
5426 renewcommand{}{}
5427 \end_layout
5428
5429 \end_inset
5430
5431 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
5432 更するために,以下の\SpecialChar LaTeX
5433 コードが使用されています.
5434 \end_layout
5435
5436 \begin_deeper
5437 \begin_layout LyX-Code
5438
5439 \family typewriter
5440
5441 \backslash
5442 let
5443 \backslash
5444 savelabelitemi=
5445 \backslash
5446 labelitemi
5447 \end_layout
5448
5449 \begin_layout LyX-Code
5450
5451 \family typewriter
5452
5453 \backslash
5454 renewcommand
5455 \backslash
5456 labelitemi[0]{
5457 \backslash
5458 small
5459 \backslash
5460 (
5461 \backslash
5462 sharp
5463 \backslash
5464 )}
5465 \end_layout
5466
5467 \end_deeper
5468 \begin_layout Itemize
5469 箇条書き(記号)の階層は,
5470 \begin_inset Flex Code
5471 status collapsed
5472
5473 \begin_layout Plain Layout
5474
5475 \backslash
5476 labelitem
5477 \end_layout
5478
5479 \end_inset
5480
5481 コマンドの一部にローマ数字で指定されていることに注意してください.
5482 \end_layout
5483
5484 \begin_layout Itemize
5485 \begin_inset ERT
5486 status open
5487
5488 \begin_layout Plain Layout
5489
5490 [
5491 \backslash
5492 (
5493 \backslash
5494 star
5495 \backslash
5496 )]
5497 \end_layout
5498
5499 \end_inset
5500
5501 各項目のブリットを指定するには,角括弧で囲んだブリット形を,行頭に
5502 \begin_inset Flex Code
5503 status collapsed
5504
5505 \begin_layout Plain Layout
5506 \SpecialChar TeX
5507 コード
5508 \end_layout
5509
5510 \end_inset
5511
5512 として挿入してください.たとえば,この項目の行頭には
5513 \family typewriter
5514
5515 \begin_inset Flex Code
5516 status collapsed
5517
5518 \begin_layout Plain Layout
5519
5520 \family typewriter
5521 [
5522 \backslash
5523 (
5524 \backslash
5525 star
5526 \backslash
5527 )]
5528 \end_layout
5529
5530 \end_inset
5531
5532
5533 \family default
5534 が指定されています.
5535 \end_layout
5536
5537 \begin_layout Plain Layout
5538 \begin_inset ERT
5539 status open
5540
5541 \begin_layout Plain Layout
5542
5543
5544 \backslash
5545 renewcommand
5546 \backslash
5547 labelitemi[0]{
5548 \backslash
5549 savelabelitemi}
5550 \end_layout
5551
5552 \end_inset
5553
5554
5555 \end_layout
5556
5557 \begin_layout Plain Layout
5558 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
5559 \end_layout
5560
5561 \begin_layout LyX-Code
5562
5563 \family typewriter
5564
5565 \backslash
5566 renewcommand
5567 \backslash
5568 labelitemi[0]{
5569 \backslash
5570 savelabelitemi}
5571 \end_layout
5572
5573 \end_inset
5574
5575
5576 \end_layout
5577
5578 \begin_layout Chapter
5579 \SpecialChar LyX
5580 とインターネット網
5581 \end_layout
5582
5583 \begin_layout Standard
5584 \SpecialChar LyX
5585 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
5586 は,常に外部変換子を用いることで実現されていました
5587 \begin_inset Foot
5588 status collapsed
5589
5590 \begin_layout Plain Layout
5591 \SpecialChar LyX
5592 で外部変換子を使うことについての詳細は,取扱説明書『
5593 \emph on
5594 カスタマイズ篇
5595 \emph default
5596 』の「
5597 \emph on
5598 変換子
5599 \emph default
5600 」の節をご覧ください.
5601 \end_layout
5602
5603 \end_inset
5604
5605 .これらは2つのグループに大別できます.1つは,
5606 \begin_inset Flex Code
5607 status collapsed
5608
5609 \begin_layout Plain Layout
5610 htlatex
5611 \end_layout
5612
5613 \end_inset
5614
5615
5616 \begin_inset Flex Code
5617 status collapsed
5618
5619 \begin_layout Plain Layout
5620 html2latex
5621 \end_layout
5622
5623 \end_inset
5624
5625
5626 \begin_inset Flex Code
5627 status collapsed
5628
5629 \begin_layout Plain Layout
5630 plastex
5631 \end_layout
5632
5633 \end_inset
5634
5635 のように,\SpecialChar LaTeX
5636 を中間形式として用い,その\SpecialChar LaTeX
5637 を生成するのに\SpecialChar LyX
5638 を用いるもの.2つめは,
5639 \begin_inset Flex Code
5640 status collapsed
5641
5642 \begin_layout Plain Layout
5643 e\SpecialChar LyX
5644 er
5645 \end_layout
5646
5647 \end_inset
5648
5649 のように,直接\SpecialChar LyX
5650 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
5651 \end_layout
5652
5653 \begin_layout Standard
5654 \SpecialChar LaTeX
5655 ベースの変換子は,原則として,\SpecialChar LaTeX
5656 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
5657 によって生成され
5658 たのか,\SpecialChar TeX
5659 コードで書かれたのかについては気にしません.これらの変換子は,
5660 \begin_inset Flex Code
5661 status collapsed
5662
5663 \begin_layout Plain Layout
5664 aux
5665 \end_layout
5666
5667 \end_inset
5668
5669 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
5670 が生成する
5671 \begin_inset Flex Code
5672 status collapsed
5673
5674 \begin_layout Plain Layout
5675 bbl
5676 \end_layout
5677
5678 \end_inset
5679
5680 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
5681 は解析の非常に難しい言語であり—\SpecialChar TeX
5682 自身だけが\SpecialChar TeX
5683 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
5684 ベースの変換子は
5685 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
5686 \emph on
5687 埋込オブジェクト篇
5688 \emph default
5689 』は,他の変換子では書き出しができるのに,
5690 \begin_inset Flex Code
5691 status collapsed
5692
5693 \begin_layout Plain Layout
5694 htlatex
5695 \end_layout
5696
5697 \end_inset
5698
5699 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
5700 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
5701 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
5702 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
5703 \end_layout
5704
5705 \begin_layout Standard
5706 Alex Fernandezの
5707 \begin_inset Flex Code
5708 status collapsed
5709
5710 \begin_layout Plain Layout
5711 e\SpecialChar LyX
5712 er
5713 \end_layout
5714
5715 \end_inset
5716
5717  (
5718 \begin_inset CommandInset href
5719 LatexCommand href
5720 name "http://elyxer.nongnu.org/"
5721 target "http://elyxer.nongnu.org/"
5722
5723 \end_inset
5724
5725 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
5726 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
5727 \begin_inset Flex Code
5728 status collapsed
5729
5730 \begin_layout Plain Layout
5731 htlatex
5732 \end_layout
5733
5734 \end_inset
5735
5736 よりも質が落ちます.これはHTMLの限界を示しています
5737 \begin_inset Foot
5738 status collapsed
5739
5740 \begin_layout Plain Layout
5741 とはいえ,
5742 \begin_inset Flex Code
5743 status collapsed
5744
5745 \begin_layout Plain Layout
5746 e\SpecialChar LyX
5747 er
5748 \end_layout
5749
5750 \end_inset
5751
5752 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
5753 クセスが利用できる必要があります.
5754 \end_layout
5755
5756 \end_inset
5757
5758 .さらに重要なことは(少なくとも第1.1.1版においては),
5759 \begin_inset Flex Code
5760 status collapsed
5761
5762 \begin_layout Plain Layout
5763 e\SpecialChar LyX
5764 er
5765 \end_layout
5766
5767 \end_inset
5768
5769 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
5770 ユーザが生成する文書の多くにとっては,
5771 \begin_inset Flex Code
5772 status collapsed
5773
5774 \begin_layout Plain Layout
5775 e\SpecialChar LyX
5776 er
5777 \end_layout
5778
5779 \end_inset
5780
5781 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
5782 開発陣は別の方法を採ることとし,\SpecialChar LyX
5783 が\SpecialChar LaTeX
5784 やDocBook,平文を書き出す
5785 ことができるのと同様に,\SpecialChar LyX
5786 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
5787 \end_layout
5788
5789 \begin_layout Standard
5790 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
5791 \begin_inset Foot
5792 status collapsed
5793
5794 \begin_layout Plain Layout
5795 \SpecialChar LyX
5796 ソースツリーもしくは
5797 \begin_inset CommandInset href
5798 LatexCommand href
5799 name "オンラインでのアクセス"
5800 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
5801
5802 \end_inset
5803
5804 にある
5805 \begin_inset Flex Code
5806 status collapsed
5807
5808 \begin_layout Plain Layout
5809 development/HTML.notes
5810 \end_layout
5811
5812 \end_inset
5813
5814 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
5815 \begin_inset CommandInset href
5816 LatexCommand href
5817 name "バグ追跡ページ"
5818 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"
5819
5820 \end_inset
5821
5822 にあるXHTML関連バグ一覧も参照のこと.
5823 \end_layout
5824
5825 \end_inset
5826
5827 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
5828 \end_layout
5829
5830 \begin_layout Standard
5831 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
5832 の一部となっているため,\SpecialChar LyX
5833 が出力する文書について\SpecialChar LyX
5834 が関知しているところのものは,すべて知り得るというところから来ていま
5835
5836 \begin_inset Foot
5837 status collapsed
5838
5839 \begin_layout Plain Layout
5840 他には,これらのルーチンが\SpecialChar LyX
5841 内部にあるため,\SpecialChar LyX
5842 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
5843 \end_layout
5844
5845 \end_inset
5846
5847 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
5848 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
5849 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
5850  1」と出力されたり,「Kapitel 1」と出力されたりするのです.
5851 \end_layout
5852
5853 \begin_layout Standard
5854 汎く一般的に,出力ルーチンは,\SpecialChar LyX
5855 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
5856 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
5857 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
5858 \emph on
5859 自動的に
5860 \emph default
5861 生成します.もし節見出しが,\SpecialChar LyX
5862 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
5863 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
5864 自身の定義済み様
5865 式とを区別しません.どちらの場合も,\SpecialChar LyX
5866 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
5867 ユーザ設定差込枠でもそうです.
5868 \end_layout
5869
5870 \begin_layout Standard
5871 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
5872 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
5873 取扱説明書『
5874 \emph on
5875 カスタマイズ篇
5876 \emph default
5877 』の第5章をごらんください.
5878 \end_layout
5879
5880 \begin_layout Standard
5881 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
5882 \end_layout
5883
5884 \begin_layout Section
5885 XHTMLにおける数式出力
5886 \end_layout
5887
5888 \begin_layout Standard
5889 \SpecialChar LyX
5890 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
5891 \end_layout
5892
5893 \begin_layout Itemize
5894 MathML
5895 \begin_inset Newline newline
5896 \end_inset
5897
5898 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
5899 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
5900 す.
5901 \begin_inset Newline newline
5902 \end_inset
5903
5904 例えば,数式が
5905 \begin_inset Flex Code
5906 status collapsed
5907
5908 \begin_layout Plain Layout
5909 xymatrix
5910 \end_layout
5911
5912 \end_inset
5913
5914 パッケージを使用していたり,\SpecialChar TeX
5915 コードを使用しているなどで,もし\SpecialChar LyX
5916 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
5917 は数式を代わりに画像として出力します.
5918  
5919 \end_layout
5920
5921 \begin_layout Itemize
5922 HTML
5923 \begin_inset Newline newline
5924 \end_inset
5925
5926 前述のとおり,
5927 \begin_inset Flex Code
5928 status collapsed
5929
5930 \begin_layout Plain Layout
5931 elyxer
5932 \end_layout
5933
5934 \end_inset
5935
5936 は,数式をCSSで装飾したHTMLとして出力します
5937 \begin_inset Foot
5938 status collapsed
5939
5940 \begin_layout Plain Layout
5941 \SpecialChar LyX
5942 は,
5943 \begin_inset Flex Code
5944 status collapsed
5945
5946 \begin_layout Plain Layout
5947 elyxer
5948 \end_layout
5949
5950 \end_inset
5951
5952 からのHTML出力のために,CSSの一部を拝借しています.
5953 \end_layout
5954
5955 \end_inset
5956
5957 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
5958 \begin_inset Flex Code
5959 status collapsed
5960
5961 \begin_layout Plain Layout
5962 elyxer
5963 \end_layout
5964
5965 \end_inset
5966
5967 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
5968 \begin_inset Newline newline
5969 \end_inset
5970
5971 例えば,数式が
5972 \begin_inset Flex Code
5973 status collapsed
5974
5975 \begin_layout Plain Layout
5976 xymatrix
5977 \end_layout
5978
5979 \end_inset
5980
5981 パッケージを使用していたり,\SpecialChar TeX
5982 コードを使用しているなどで,もし\SpecialChar LyX
5983 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
5984 は数式を代わりに画像として出力します.
5985  
5986 \end_layout
5987
5988 \begin_layout Itemize
5989 画像
5990 \begin_inset Newline newline
5991 \end_inset
5992
5993
5994 \begin_inset Flex Code
5995 status collapsed
5996
5997 \begin_layout Plain Layout
5998 htlatex
5999 \end_layout
6000
6001 \end_inset
6002
6003 のように,\SpecialChar LyX
6004 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
6005 \begin_inset Foot
6006 status collapsed
6007
6008 \begin_layout Plain Layout
6009 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
6010 \emph on
6011 ありません
6012 \emph default
6013
6014 \end_layout
6015
6016 \end_inset
6017
6018 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
6019 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
6020 かったり,コピーが出来なかったりといったことがあります(執筆時点においては,数式の付番にも問題があります.
6021 \begin_inset CommandInset href
6022 LatexCommand href
6023 name "バグ 6894"
6024 target "http://www.lyx.org/trac/ticket/6894"
6025
6026 \end_inset
6027
6028 を参照のこと.).
6029 \begin_inset Newline newline
6030 \end_inset
6031
6032 画像の寸法は,
6033 \begin_inset Flex MenuItem
6034 status collapsed
6035
6036 \begin_layout Plain Layout
6037 文書\SpecialChar menuseparator
6038 設定\SpecialChar menuseparator
6039 出力
6040 \end_layout
6041
6042 \end_inset
6043
6044 の「数式画像の伸縮」パラメータを変更することで制御できます
6045 \begin_inset Foot
6046 status collapsed
6047
6048 \begin_layout Plain Layout
6049 必要な方のために述べておくと,これは,画像の解像度をdpi (1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
6050 \end_layout
6051
6052 \end_inset
6053
6054
6055 \begin_inset Newline newline
6056 \end_inset
6057
6058 もし\SpecialChar LyX
6059 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
6060 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
6061 を出力します.
6062 \end_layout
6063
6064 \begin_layout Itemize
6065 \SpecialChar LaTeX
6066
6067 \begin_inset Newline newline
6068 \end_inset
6069
6070 最後に,\SpecialChar LyX
6071 は,数式を\SpecialChar LaTeX
6072 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
6073 を描画するのにJavaScript
6074 を使用する,
6075 \begin_inset CommandInset href
6076 LatexCommand href
6077 name "jsMath"
6078 target "http://www.math.union.edu/~dpvc/jsMath/"
6079
6080 \end_inset
6081
6082 のようなツールとともに使用することもできます.\SpecialChar LyX
6083 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
6084 部分を,
6085 \begin_inset Flex Code
6086 status collapsed
6087
6088 \begin_layout Plain Layout
6089 span
6090 \end_layout
6091
6092 \end_inset
6093
6094 (行内数式用)または
6095 \begin_inset Flex Code
6096 status collapsed
6097
6098 \begin_layout Plain Layout
6099 div
6100 \end_layout
6101
6102 \end_inset
6103
6104 (別行立て数式用)に
6105 \begin_inset Flex Code
6106 status collapsed
6107
6108 \begin_layout Plain Layout
6109 class='math'
6110 \end_layout
6111
6112 \end_inset
6113
6114 を指定したもので,包んで出力します.
6115 \end_layout
6116
6117 \begin_layout Standard
6118 これらの出力方法のいずれかを
6119 \begin_inset Flex MenuItem
6120 status collapsed
6121
6122 \begin_layout Plain Layout
6123 文書\SpecialChar menuseparator
6124 設定\SpecialChar menuseparator
6125 出力
6126 \end_layout
6127
6128 \end_inset
6129
6130 で選択しなくてはなりません.既定では,\SpecialChar LyX
6131 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
6132 \end_layout
6133
6134 \begin_layout Standard
6135 最後に,\SpecialChar LyX
6136 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
6137 \begin_inset Foot
6138 status collapsed
6139
6140 \begin_layout Plain Layout
6141 その他にも,\SpecialChar LyX
6142 は,差込枠に\SpecialChar TeX
6143 コードが含まれていると画像出力に回帰するので,数式中に
6144 \begin_inset Formula $a=b\relax$
6145 \end_inset
6146
6147 のような無害な\SpecialChar TeX
6148 コードを挿入することによって,画像出力を強制することができます.
6149 \end_layout
6150
6151 \end_inset
6152
6153
6154 \end_layout
6155
6156 \begin_layout Section
6157 書誌情報と引用
6158 \end_layout
6159
6160 \begin_layout Standard
6161 XHTML出力は,書誌情報と引用を完全にサポートしています.
6162 \end_layout
6163
6164 \begin_layout Standard
6165 引用ラベルは,\SpecialChar LyX
6166 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
6167 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
6168 使用している場合には,\SpecialChar LyX
6169 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
6170 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
6171 は,Bib\SpecialChar TeX
6172 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
6173 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
6174 \end_layout
6175
6176 \begin_layout Standard
6177 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
6178 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
6179 ください.
6180 \end_layout
6181
6182 \begin_layout Standard
6183 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
6184 \end_layout
6185
6186 \begin_layout Quote
6187 Jason Stanley, 
6188 \begin_inset Quotes eld
6189 \end_inset
6190
6191 Context and Logical Form
6192 \begin_inset Quotes erd
6193 \end_inset
6194
6195 , in 
6196 \emph on
6197 Language in Context: Selected Essays
6198 \emph default
6199  (Oxford: Oxford University Press, 2007), pp.
6200  30–68.
6201 \end_layout
6202
6203 \begin_layout Quote
6204 Jason Stanley, 
6205 \begin_inset Quotes eld
6206 \end_inset
6207
6208 Semantics in Context
6209 \begin_inset Quotes erd
6210 \end_inset
6211
6212 , in 
6213 \emph on
6214 Language in Context: Selected Essays
6215 \emph default
6216  (Oxford: Oxford University Press, 2007), pp.
6217  201–30.
6218 \end_layout
6219
6220 \begin_layout Standard
6221 これは,遠くないうちに修正されるでしょう.
6222 \end_layout
6223
6224 \begin_layout Standard
6225 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
6226 は同じ情報を繰り返し出力してしまいます.
6227 \end_layout
6228
6229 \begin_layout Section
6230 索引
6231 \end_layout
6232
6233 \begin_layout Standard
6234 \SpecialChar LyX
6235 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
6236 \end_layout
6237
6238 \begin_layout Standard
6239 索引の書き出しは,
6240 \emph on
6241 ユーザーの手引き
6242 \emph default
6243 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
6244 \begin_inset Foot
6245 status collapsed
6246
6247 \begin_layout Plain Layout
6248 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
6249 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
6250 で入力しなくてはならないようなものをそのまま入力しているのです.
6251 \end_layout
6252
6253 \end_inset
6254
6255 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
6256 \end_layout
6257
6258 \begin_layout Itemize
6259 索引項目のグループ化(下層項目): \SpecialChar LyX
6260 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
6261 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
6262 \end_layout
6263
6264 \begin_layout Itemize
6265 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
6266 得られるだけです.
6267 \end_layout
6268
6269 \begin_layout Itemize
6270 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
6271 が「|see\SpecialChar ldots
6272 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
6273 す.
6274 \end_layout
6275
6276 \begin_layout Itemize
6277 索引項目の整序: \SpecialChar LyX
6278 は整序順の変更をサポートします.\SpecialChar LyX
6279 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
6280 出します.現在のところ,\SpecialChar LyX
6281 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
6282 \end_layout
6283
6284 \begin_layout Itemize
6285 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
6286 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
6287 うな文法はサポートされません.\SpecialChar LyX
6288 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
6289 \end_layout
6290
6291 \begin_layout Itemize
6292 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
6293 を印字しますので,その索引は必ず置くようにしてください.
6294 \end_layout
6295
6296 \begin_layout Section
6297 記号一覧および用語集
6298 \end_layout
6299
6300 \begin_layout Standard
6301 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
6302 \end_layout
6303
6304 \begin_layout Chapter
6305 \SpecialChar LyX
6306 サーバー
6307 \begin_inset CommandInset label
6308 LatexCommand label
6309 name "chap:LyXサーバー"
6310
6311 \end_inset
6312
6313
6314 \end_layout
6315
6316 \begin_layout Section
6317 はじめに
6318 \end_layout
6319
6320 \begin_layout Standard
6321 「\SpecialChar LyX
6322 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
6323 と通信したり,\SpecialChar LyX
6324 コマンドを実行させたり,\SpecialChar LyX
6325 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
6326 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
6327 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
6328 とが可能となります.
6329 \end_layout
6330
6331 \begin_layout Section
6332 \SpecialChar LyX
6333 サーバーを開始するには
6334 \end_layout
6335
6336 \begin_layout Standard
6337 \SpecialChar LyX
6338 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
6339 \begin_inset Flex Code
6340 status collapsed
6341
6342 \begin_layout Plain Layout
6343 UserDir
6344 \end_layout
6345
6346 \end_inset
6347
6348 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
6349 \emph on
6350 ローカルの
6351 \emph default
6352 パイプは
6353 \begin_inset Flex Code
6354 status collapsed
6355
6356 \begin_layout Plain Layout
6357
6358 \backslash
6359
6360 \backslash
6361 .
6362 \backslash
6363 pipe
6364 \end_layout
6365
6366 \end_inset
6367
6368 に特別なオブジェクトとして置かれます),「
6369 \begin_inset Flex Code
6370 status collapsed
6371
6372 \begin_layout Plain Layout
6373 .lyxpipe.in
6374 \end_layout
6375
6376 \end_inset
6377
6378 」および「
6379 \begin_inset Flex Code
6380 status collapsed
6381
6382 \begin_layout Plain Layout
6383 .lyxpipe.out
6384 \end_layout
6385
6386 \end_inset
6387
6388 」という名前がついています.外部プログラムは,
6389 \begin_inset Flex Code
6390 status collapsed
6391
6392 \begin_layout Plain Layout
6393 .lyxpipe.in
6394 \end_layout
6395
6396 \end_inset
6397
6398 に書き込みを行い,戻りデータを
6399 \begin_inset Flex Code
6400 status collapsed
6401
6402 \begin_layout Plain Layout
6403 .lyxpipe.out
6404 \end_layout
6405
6406 \end_inset
6407
6408 から読み出します.パイプ名の語幹は,
6409 \begin_inset Flex MenuItem
6410 status collapsed
6411
6412 \begin_layout Plain Layout
6413 ツール\SpecialChar menuseparator
6414 設定
6415 \end_layout
6416
6417 \end_inset
6418
6419 から,たとえば「
6420 \begin_inset Flex Code
6421 status collapsed
6422
6423 \begin_layout Plain Layout
6424 /home/myhome/lyxpipe
6425 \end_layout
6426
6427 \end_inset
6428
6429 」あるいはWindowsでは「
6430 \begin_inset Flex Code
6431 status collapsed
6432
6433 \begin_layout Plain Layout
6434
6435 \backslash
6436
6437 \backslash
6438 .
6439 \backslash
6440 pipe
6441 \backslash
6442 lyxpipe
6443 \end_layout
6444
6445 \end_inset
6446
6447 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
6448 \begin_inset Flex Code
6449 status collapsed
6450
6451 \begin_layout Plain Layout
6452 "
6453 \backslash
6454
6455 \backslash
6456 .
6457 \backslash
6458 pipe
6459 \backslash
6460 my
6461 \backslash
6462 lyx
6463 \backslash
6464 pipe"
6465 \end_layout
6466
6467 \end_inset
6468
6469 なども使用できます).サーバーを開始するためには,これを
6470 \emph on
6471 手動で設定しなくてはなりません
6472 \emph default
6473
6474 \end_layout
6475
6476 \begin_layout Standard
6477 \SpecialChar LyX
6478 は,パイプを生成するに際して,「
6479 \begin_inset Flex Code
6480 status collapsed
6481
6482 \begin_layout Plain Layout
6483 .in
6484 \end_layout
6485
6486 \end_inset
6487
6488 」および「
6489 \begin_inset Flex Code
6490 status collapsed
6491
6492 \begin_layout Plain Layout
6493 .out
6494 \end_layout
6495
6496 \end_inset
6497
6498 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
6499 は他の\SpecialChar LyX
6500 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
6501 らかの理由で,\SpecialChar LyX
6502 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
6503 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
6504 プを削除したのちに,\SpecialChar LyX
6505 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
6506 ることはありません.
6507 \end_layout
6508
6509 \begin_layout Standard
6510 サーバーを使用する\SpecialChar LyX
6511 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
6512 \begin_inset Flex Code
6513 status collapsed
6514
6515 \begin_layout Plain Layout
6516 preferences
6517 \end_layout
6518
6519 \end_inset
6520
6521 ファイルを使用させるなど,別々の設定を使用する必要があります.
6522 \end_layout
6523
6524 \begin_layout Standard
6525 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
6526 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
6527 \begin_inset Flex Code
6528 status collapsed
6529
6530 \begin_layout Plain Layout
6531 lyx -dbg lyxserver
6532 \end_layout
6533
6534 \end_inset
6535
6536 として起動してください.
6537 \end_layout
6538
6539 \begin_layout Standard
6540 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
6541 \begin_inset Newline newline
6542 \end_inset
6543
6544
6545 \begin_inset Flex Code
6546 status collapsed
6547
6548 \begin_layout Plain Layout
6549 development/lyxserver/server_monitor.cpp
6550 \end_layout
6551
6552 \end_inset
6553
6554 にあります.
6555 \end_layout
6556
6557 \begin_layout Standard
6558 もう一つの便利なツールとして,
6559 \begin_inset Flex Code
6560 status collapsed
6561
6562 \begin_layout Plain Layout
6563 src/client/lyxclient
6564 \end_layout
6565
6566 \end_inset
6567
6568 にあるコマンドラインベースのクライアントがあります.
6569 \end_layout
6570
6571 \begin_layout Section
6572 通常の通信
6573 \end_layout
6574
6575 \begin_layout Standard
6576 \SpecialChar LyX
6577 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
6578 \end_layout
6579
6580 \begin_layout Quote
6581 LYXCMD:
6582 \emph on
6583 クライアント名
6584 \emph default
6585 :
6586 \emph on
6587 関数
6588 \emph default
6589 :
6590 \emph on
6591 引数
6592 \end_layout
6593
6594 \begin_layout Description
6595 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
6596 が返答をす
6597 る際,クライアント名をエコーするときだけです.
6598 \end_layout
6599
6600 \begin_layout Description
6601 関数 は,\SpecialChar LyX
6602 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
6603 \end_layout
6604
6605 \begin_layout Description
6606 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
6607 \end_layout
6608
6609 \begin_layout Standard
6610 \SpecialChar LyX
6611 からの返答は,出力パイプに送り出され,
6612 \end_layout
6613
6614 \begin_layout Quote
6615 INFO:
6616 \emph on
6617 クライアント名
6618 \emph default
6619 :
6620 \emph on
6621 関数
6622 \emph default
6623 :
6624 \emph on
6625 データ
6626 \end_layout
6627
6628 \begin_layout Standard
6629 の書式をしています.ここで
6630 \emph on
6631 クライアント名
6632 \emph default
6633
6634 \emph on
6635 関数
6636 \emph default
6637 は,コマンド要求からそのままエコーされますが,
6638 \emph on
6639 データ
6640 \emph default
6641 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
6642 の内部状態に関する情報を返しますが,空のデータ応答
6643 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
6644 \end_layout
6645
6646 \begin_layout Standard
6647 エラーが発生した場合の\SpecialChar LyX
6648 の返答は
6649 \end_layout
6650
6651 \begin_layout Quote
6652 ERROR:
6653 \emph on
6654 クライアント名
6655 \emph default
6656 :
6657 \emph on
6658 関数
6659 \emph default
6660 :
6661 \emph on
6662 エラーメッセージ
6663 \end_layout
6664
6665 \begin_layout Standard
6666 の書式をしており,
6667 \emph on
6668 エラーメッセージ
6669 \emph default
6670 には,なぜコマンドが失敗したかの説明が入っているはずです.
6671 \end_layout
6672
6673 \begin_layout Standard
6674 (例)
6675 \end_layout
6676
6677 \begin_layout LyX-Code
6678 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6679 \begin_inset Newline newline
6680 \end_inset
6681
6682 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6683 \begin_inset Newline newline
6684 \end_inset
6685
6686 read a <~/.lyxpipe.out
6687 \begin_inset Newline newline
6688 \end_inset
6689
6690 echo $a
6691 \end_layout
6692
6693 \begin_layout Section
6694 通知
6695 \end_layout
6696
6697 \begin_layout Standard
6698 \SpecialChar LyX
6699 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
6700 \begin_inset Flex Ruby
6701 status collapsed
6702
6703 \begin_layout Plain Layout
6704
6705 \begin_inset Argument post:1
6706 status collapsed
6707
6708 \begin_layout Plain Layout
6709 キー
6710 \end_layout
6711
6712 \end_inset
6713
6714
6715 \end_layout
6716
6717 \end_inset
6718
6719 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
6720 はこの通知を行います.\SpecialChar LyX
6721 が送る文字列の書式は
6722 \end_layout
6723
6724 \begin_layout Quote
6725 \begin_inset Flex Code
6726 status collapsed
6727
6728 \begin_layout Plain Layout
6729 NOTIFY:
6730 \end_layout
6731
6732 \end_inset
6733
6734
6735 \emph on
6736 鍵列
6737 \end_layout
6738
6739 \begin_layout Standard
6740 となっていて,
6741 \emph on
6742 鍵列
6743 \emph default
6744 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
6745 \end_layout
6746
6747 \begin_layout Standard
6748 この機構は,\SpecialChar LyX
6749 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
6750 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
6751 コマンドを発行する\SpecialChar LyX
6752 要求と\SpecialChar LyX
6753 コールを使用する関数を開始するのです.
6754 \end_layout
6755
6756 \begin_layout Section
6757 単純な\SpecialChar LyX
6758 サーバープロトコル
6759 \end_layout
6760
6761 \begin_layout Standard
6762 \SpecialChar LyX
6763 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
6764 \end_layout
6765
6766 \begin_layout Quote
6767 LYXSRV:
6768 \emph on
6769 クライアント名
6770 \emph default
6771 :
6772 \emph on
6773 プロトコルメッセージ
6774 \end_layout
6775
6776 \begin_layout Standard
6777 の書式をしており,
6778 \emph on
6779 プロトコルメッセージ
6780 \emph default
6781 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
6782 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
6783 が終了するこ
6784 とをクライアントに伝えるのには,\SpecialChar LyX
6785 が「bye」を送信します.
6786 \end_layout
6787
6788 \begin_layout Section
6789 DVIとPDFの遡及検索
6790 \end_layout
6791
6792 \begin_layout Standard
6793 DVI/PDFビューア
6794 \begin_inset Foot
6795 status collapsed
6796
6797 \begin_layout Plain Layout
6798 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
6799 \lang english
6800 Qpdfview on Unix
6801 \lang japanese
6802 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
6803 \end_layout
6804
6805 \end_inset
6806
6807 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
6808 特定の場所をクリックすることによって,\SpecialChar LyX
6809 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
6810 と情報交換を行う必要があります
6811 .これは,命名パイプ(
6812 \emph on
6813 lyxpipe
6814 \emph default
6815 )を使用するか,\SpecialChar LyX
6816 が作業ディレクトリに生成するUNIXドメインソケット(
6817 \emph on
6818 lyxsocket
6819 \emph default
6820 )を使用する(これは
6821 \begin_inset Flex Code
6822 status collapsed
6823
6824 \begin_layout Plain Layout
6825 lyxclient
6826 \end_layout
6827
6828 \end_inset
6829
6830 プログラムが\SpecialChar LyX
6831 と通信するのに使用している方法です)ことで,\SpecialChar LyX
6832 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
6833 を橋渡しする補助スクリプトを必要とする
6834 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
6835 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
6836 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
6837 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
6838 \end_layout
6839
6840 \begin_layout Subsection
6841 \begin_inset CommandInset label
6842 LatexCommand label
6843 name "subsec:遡及検索"
6844
6845 \end_inset
6846
6847 自動有効化
6848 \end_layout
6849
6850 \begin_layout Standard
6851 \begin_inset Flex MenuItem
6852 status collapsed
6853
6854 \begin_layout Plain Layout
6855 文書\SpecialChar menuseparator
6856 設定\SpecialChar menuseparator
6857 出力
6858 \end_layout
6859
6860 \end_inset
6861
6862 メニューで
6863 \begin_inset Flex MenuItem
6864 status collapsed
6865
6866 \begin_layout Plain Layout
6867 出力と同期
6868 \end_layout
6869
6870 \end_inset
6871
6872 オプションを有効にすれば,ほとんどの場合,\SpecialChar LyX
6873 がすべてをうまくこなしてくれます.その場合,\SpecialChar LyX
6874 は,自動的に,必要なSync\SpecialChar TeX
6875 マクロ(PDFの場合)や,srcltxパッケー
6876 ジ(DVIの場合)を挿入してくれます.このオプションは,
6877 \begin_inset Flex MenuItem
6878 status collapsed
6879
6880 \begin_layout Plain Layout
6881 表示/更新
6882 \end_layout
6883
6884 \end_inset
6885
6886 ツールバーからも容易にアクセスすることができます.
6887 \end_layout
6888
6889 \begin_layout Standard
6890 もし,これとは別の設定が必要な場合には,
6891 \begin_inset Flex MenuItem
6892 status collapsed
6893
6894 \begin_layout Plain Layout
6895 文書\SpecialChar menuseparator
6896 設定\SpecialChar menuseparator
6897 出力\SpecialChar menuseparator
6898 出力と同期
6899 \end_layout
6900
6901 \end_inset
6902
6903 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
6904 \end_layout
6905
6906 \begin_layout Standard
6907 方式として
6908 \begin_inset Flex Code
6909 status collapsed
6910
6911 \begin_layout Plain Layout
6912
6913 \backslash
6914 synctex=1
6915 \end_layout
6916
6917 \end_inset
6918
6919 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
6920 \begin_inset Flex Code
6921 status collapsed
6922
6923 \begin_layout Plain Layout
6924
6925 \backslash
6926 synctex=-1
6927 \end_layout
6928
6929 \end_inset
6930
6931 を指定してください.
6932 \end_layout
6933
6934 \begin_layout Standard
6935 また,
6936 \begin_inset Flex Code
6937 status collapsed
6938
6939 \begin_layout Plain Layout
6940 srcltx
6941 \end_layout
6942
6943 \end_inset
6944
6945 パッケージや
6946 \begin_inset Flex Code
6947 status collapsed
6948
6949 \begin_layout Plain Layout
6950 src-specials
6951 \end_layout
6952
6953 \end_inset
6954
6955 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
6956 \begin_inset Flex Code
6957 status collapsed
6958
6959 \begin_layout Plain Layout
6960 srcltx
6961 \end_layout
6962
6963 \end_inset
6964
6965 パッケージや
6966 \begin_inset Flex Code
6967 status collapsed
6968
6969 \begin_layout Plain Layout
6970 src-specials
6971 \end_layout
6972
6973 \end_inset
6974
6975 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
6976 \end_layout
6977
6978 \begin_layout Standard
6979 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
6980 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
6981 \begin_inset CommandInset ref
6982 LatexCommand ref
6983 reference "subsec:特定のビューアを設定して使うには"
6984
6985 \end_inset
6986
6987 節に進むことができます.
6988 \end_layout
6989
6990 \begin_layout Subsection
6991 手動有効化
6992 \end_layout
6993
6994 \begin_layout Standard
6995 \SpecialChar LaTeX
6996 は,遡及検索のために複数の方法を提供しています.ある方法は
6997 \begin_inset Flex Code
6998 status collapsed
6999
7000 \begin_layout Plain Layout
7001 latex/pdflatex
7002 \end_layout
7003
7004 \end_inset
7005
7006 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
7007 頒布版が既に特定の方法を提供しているか(組み込みによ
7008 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
7009 \end_layout
7010
7011 \begin_layout Subsubsection*
7012 src-special経由のDVI組み込み検索(DVIのみ)
7013 \end_layout
7014
7015 \begin_layout Standard
7016 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
7017 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7018 頒布版はすべて対応しています),安定
7019 して動作します.これを有効にするには,
7020 \begin_inset Flex MenuItem
7021 status collapsed
7022
7023 \begin_layout Plain Layout
7024 設定\SpecialChar menuseparator
7025 ファイル処理\SpecialChar menuseparator
7026 変換子
7027 \end_layout
7028
7029 \end_inset
7030
7031
7032 \begin_inset Flex MenuItem
7033 status collapsed
7034
7035 \begin_layout Plain Layout
7036 LaTeX (plain)->DVI
7037 \end_layout
7038
7039 \end_inset
7040
7041 ないし
7042 \begin_inset Flex MenuItem
7043 status collapsed
7044
7045 \begin_layout Plain Layout
7046 LaTeX (plain)->DraftDVI
7047 \end_layout
7048
7049 \end_inset
7050
7051 変換子を
7052 \begin_inset Flex Code
7053 status collapsed
7054
7055 \begin_layout Plain Layout
7056 latex -src-specials $$i
7057 \end_layout
7058
7059 \end_inset
7060
7061 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
7062 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
7063 \end_layout
7064
7065 \begin_layout Subsubsection*
7066 外部パッケージ(PDFSyncおよびsrcltx)
7067 \end_layout
7068
7069 \begin_layout Standard
7070
7071 \emph on
7072 pdfsync
7073 \emph default
7074 および
7075 \emph on
7076 srcltx
7077 \emph default
7078 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
7079 プリアンブルで以下のようにパッケージを読み込んで
7080 ください.
7081 \end_layout
7082
7083 \begin_layout Itemize
7084 PDFの遡及検索には
7085 \begin_inset Flex Code
7086 status collapsed
7087
7088 \begin_layout Plain Layout
7089
7090 \backslash
7091 usepackage{pdfsync}
7092 \end_layout
7093
7094 \end_inset
7095
7096
7097 \end_layout
7098
7099 \begin_layout Itemize
7100 DVIの遡及検索には
7101 \begin_inset Flex Code
7102 status collapsed
7103
7104 \begin_layout Plain Layout
7105
7106 \backslash
7107 usepackage[active]{srcltx}
7108 \end_layout
7109
7110 \end_inset
7111
7112
7113 \end_layout
7114
7115 \begin_layout Standard
7116 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
7117 \end_layout
7118
7119 \begin_layout LyX-Code
7120
7121 \backslash
7122 usepackage{ifpdf}
7123 \begin_inset Newline newline
7124 \end_inset
7125
7126
7127 \backslash
7128 ifpdf
7129 \begin_inset Newline newline
7130 \end_inset
7131
7132   
7133 \backslash
7134 usepackage{pdfsync}
7135 \begin_inset Newline newline
7136 \end_inset
7137
7138
7139 \backslash
7140 else
7141 \begin_inset Newline newline
7142 \end_inset
7143
7144   
7145 \backslash
7146 usepackage[active]{srcltx}
7147 \begin_inset Newline newline
7148 \end_inset
7149
7150
7151 \backslash
7152 fi
7153 \end_layout
7154
7155 \begin_layout Standard
7156 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
7157 \end_layout
7158
7159 \begin_layout Standard
7160 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
7161
7162 \end_layout
7163
7164 \begin_layout Subsubsection*
7165 Sync\SpecialChar TeX
7166 を使った組み込み遡及検索(DVIおよびPDF)
7167 \end_layout
7168
7169 \begin_layout Standard
7170 \begin_inset Flex Code
7171 status collapsed
7172
7173 \begin_layout Plain Layout
7174 (pdf)latex
7175 \end_layout
7176
7177 \end_inset
7178
7179 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
7180 \emph on
7181 Sync\SpecialChar TeX
7182
7183 \emph default
7184 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
7185 るためには,少なくとも\SpecialChar TeX
7186 Live 2008か最近のMik\SpecialChar TeX
7187 頒布版が必要です.また,既にSync\SpecialChar TeX
7188 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
7189 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDF).
7190 \end_layout
7191
7192 \begin_layout Standard
7193 DVI出力でSync\SpecialChar TeX
7194 を有効にするには,
7195 \begin_inset Flex MenuItem
7196 status collapsed
7197
7198 \begin_layout Plain Layout
7199 設定\SpecialChar menuseparator
7200 ファイル処理\SpecialChar menuseparator
7201 変換子
7202 \end_layout
7203
7204 \end_inset
7205
7206
7207 \begin_inset Flex MenuItem
7208 status collapsed
7209
7210 \begin_layout Plain Layout
7211 LaTeX (plain)->DVI
7212 \end_layout
7213
7214 \end_inset
7215
7216 ないし
7217 \begin_inset Flex MenuItem
7218 status collapsed
7219
7220 \begin_layout Plain Layout
7221 LaTeX (plain)->DraftDVI
7222 \end_layout
7223
7224 \end_inset
7225
7226 変換子を
7227 \begin_inset Flex Code
7228 status collapsed
7229
7230 \begin_layout Plain Layout
7231 latex -synctex=1 $$i
7232 \end_layout
7233
7234 \end_inset
7235
7236 に変更します.PDF出力用には,
7237 \begin_inset Flex MenuItem
7238 status collapsed
7239
7240 \begin_layout Plain Layout
7241 LaTeX (pdflatex)->PDF (pdflatex)
7242 \end_layout
7243
7244 \end_inset
7245
7246 変換子を
7247 \begin_inset Flex Code
7248 status collapsed
7249
7250 \begin_layout Plain Layout
7251 pdflatex -synctex=1 $$i
7252 \end_layout
7253
7254 \end_inset
7255
7256 に変更してください.また,ビューアをSync\SpecialChar TeX
7257 で使うのに設定を行う必要があるかどうか,お使いのビューアの取扱説明書をご確認ください.
7258 \begin_inset Foot
7259 status collapsed
7260
7261 \begin_layout Plain Layout
7262 \begin_inset Flex Code
7263 status collapsed
7264
7265 \begin_layout Plain Layout
7266 -synctex=1
7267 \end_layout
7268
7269 \end_inset
7270
7271 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
7272 \begin_inset Flex Code
7273 status collapsed
7274
7275 \begin_layout Plain Layout
7276 -synctex=-1
7277 \end_layout
7278
7279 \end_inset
7280
7281 を使用してください.
7282 \end_layout
7283
7284 \end_inset
7285
7286
7287 \end_layout
7288
7289 \begin_layout Subsection
7290 特定のビューアを設定して使うには
7291 \begin_inset CommandInset label
7292 LatexCommand label
7293 name "subsec:特定のビューアを設定して使うには"
7294
7295 \end_inset
7296
7297
7298 \end_layout
7299
7300 \begin_layout Subsubsection*
7301 Xdvi(全プラットフォーム)
7302 \end_layout
7303
7304 \begin_layout Standard
7305 \SpecialChar LyX
7306 は,
7307 \begin_inset Flex Code
7308 status collapsed
7309
7310 \begin_layout Plain Layout
7311 lyxclient
7312 \end_layout
7313
7314 \end_inset
7315
7316 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
7317 \begin_inset Flex Code
7318 status collapsed
7319
7320 \begin_layout Plain Layout
7321 xdvi
7322 \end_layout
7323
7324 \end_inset
7325
7326 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
7327 ,Mac OS X上ではAlt-クリックで始動します).
7328 \end_layout
7329
7330 \begin_layout Standard
7331 しかし,何らかの理由で,\SpecialChar LyX
7332 と通信するのにソケットではなく命名パイプを使用したい場合には,
7333 \begin_inset Flex MenuItem
7334 status collapsed
7335
7336 \begin_layout Plain Layout
7337 設定\SpecialChar menuseparator
7338 ファイル処理\SpecialChar menuseparator
7339 ファイル書式
7340 \end_layout
7341
7342 \end_inset
7343
7344 のDVIビューアを
7345 \begin_inset Flex Code
7346 status collapsed
7347
7348 \begin_layout Plain Layout
7349 xdvi -editor "lyxeditor.sh %f %l"
7350 \end_layout
7351
7352 \end_inset
7353
7354 (
7355 \begin_inset Flex Code
7356 status collapsed
7357
7358 \begin_layout Plain Layout
7359 lyxeditor.sh
7360 \end_layout
7361
7362 \end_inset
7363
7364 は適切なスクリプト名)に変更してください
7365 \begin_inset Foot
7366 status collapsed
7367
7368 \begin_layout Plain Layout
7369 Mac OS X上では,
7370 \begin_inset Flex Code
7371 status collapsed
7372
7373 \begin_layout Plain Layout
7374 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7375 \end_layout
7376
7377 \end_inset
7378
7379 としなくてはなりません.
7380 \end_layout
7381
7382 \end_inset
7383
7384 .たとえば,最低限のシェルスクリプトは
7385 \end_layout
7386
7387 \begin_layout LyX-Code
7388 #!/bin/sh
7389 \begin_inset Newline newline
7390 \end_inset
7391
7392 LYXPIPE="/path/to/lyxpipe"
7393 \begin_inset Newline newline
7394 \end_inset
7395
7396 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7397 \begin_inset Newline newline
7398 \end_inset
7399
7400 echo "$COMMAND" > "${LYXPIPE}".in || exit
7401 \begin_inset Newline newline
7402 \end_inset
7403
7404 read TMP < "${LYXPIPE}".out || exit
7405 \end_layout
7406
7407 \begin_layout Standard
7408 のようになります.ここで
7409 \begin_inset Flex Code
7410 status collapsed
7411
7412 \begin_layout Plain Layout
7413 /path/to/lyxpipe
7414 \end_layout
7415
7416 \end_inset
7417
7418 は,
7419 \begin_inset Flex MenuItem
7420 status collapsed
7421
7422 \begin_layout Plain Layout
7423 設定\SpecialChar menuseparator
7424 パス
7425 \end_layout
7426
7427 \end_inset
7428
7429 で指定したLyXServerパイプのパスを指定してください.
7430 \begin_inset Foot
7431 status collapsed
7432
7433 \begin_layout Plain Layout
7434 ソース頒布版の
7435 \begin_inset Flex Code
7436 status collapsed
7437
7438 \begin_layout Plain Layout
7439 development/tools
7440 \end_layout
7441
7442 \end_inset
7443
7444 フォルダには,ユーザが設定した
7445 \emph on
7446 lyxpipe
7447 \emph default
7448 を探し出す
7449 \begin_inset Flex Code
7450 status collapsed
7451
7452 \begin_layout Plain Layout
7453 lyxeditor
7454 \end_layout
7455
7456 \end_inset
7457
7458 スクリプトがあります.
7459 \end_layout
7460
7461 \end_inset
7462
7463
7464 \end_layout
7465
7466 \begin_layout Subsubsection*
7467 MacDviX(Mac OS X)
7468 \end_layout
7469
7470 \begin_layout Standard
7471 \begin_inset Flex Code
7472 status collapsed
7473
7474 \begin_layout Plain Layout
7475 /Applications/MacDviX_Folder/calleditor.script
7476 \end_layout
7477
7478 \end_inset
7479
7480 の終わりに
7481 \end_layout
7482
7483 \begin_layout LyX-Code
7484 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7485 \begin_inset Newline newline
7486 \end_inset
7487
7488 exit 1
7489 \end_layout
7490
7491 \begin_layout Standard
7492 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
7493 を導入した場合には,それに従って上記の行を修正してください.
7494 \end_layout
7495
7496 \begin_layout Standard
7497 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
7498 \end_layout
7499
7500 \begin_layout Subsubsection*
7501 Skim(Mac OS X)
7502 \end_layout
7503
7504 \begin_layout Standard
7505 \begin_inset Flex MenuItem
7506 status collapsed
7507
7508 \begin_layout Plain Layout
7509 設定\SpecialChar menuseparator
7510 ファイル処理\SpecialChar menuseparator
7511 ファイル書式\SpecialChar menuseparator
7512 PDF (pdflatex)
7513 \end_layout
7514
7515 \end_inset
7516
7517 のビューア設定に
7518 \begin_inset Flex Code
7519 status collapsed
7520
7521 \begin_layout Plain Layout
7522 open -a Skim.app $$i
7523 \end_layout
7524
7525 \end_inset
7526
7527 と入力し,
7528 \begin_inset Flex MenuItem
7529 status collapsed
7530
7531 \begin_layout Plain Layout
7532 Skim\SpecialChar menuseparator
7533 設定\SpecialChar menuseparator
7534 Sync
7535 \end_layout
7536
7537 \end_inset
7538
7539 でLyXを選択してください.
7540 \end_layout
7541
7542 \begin_layout Standard
7543 遡及検索は,COMMAND-SHIFT-クリックで始動します.
7544 \end_layout
7545
7546 \begin_layout Subsubsection*
7547 Okular (KDE)
7548 \end_layout
7549
7550 \begin_layout Standard
7551 \begin_inset Flex MenuItem
7552 status collapsed
7553
7554 \begin_layout Plain Layout
7555 設定\SpecialChar menuseparator
7556 Okularを設定\SpecialChar ldots
7557 \SpecialChar menuseparator
7558 編集
7559 \end_layout
7560
7561 \end_inset
7562
7563 で「カスタムテキストエディタ」を選択し,コマンドに
7564 \begin_inset Flex Code
7565 status collapsed
7566
7567 \begin_layout Plain Layout
7568 lyxclient -g %f %l
7569 \end_layout
7570
7571 \end_inset
7572
7573 を加えてください.
7574 \end_layout
7575
7576 \begin_layout Standard
7577 遡及検索は,SHIFT-クリックで始動します.
7578 \end_layout
7579
7580 \begin_layout Subsubsection*
7581 Qpdfview (UNIX)
7582 \end_layout
7583
7584 \begin_layout Standard
7585 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
7586 をサポートしています.
7587 \begin_inset Flex MenuItem
7588 status collapsed
7589
7590 \begin_layout Plain Layout
7591 Edit\SpecialChar menuseparator
7592 Settings\SpecialChar menuseparator
7593 Behavior
7594 \end_layout
7595
7596 \end_inset
7597
7598 を開いて「Source editor」項目の入力フィールドをクリックし,
7599 \begin_inset Flex Code
7600 status collapsed
7601
7602 \begin_layout Plain Layout
7603 lyxclient -g %1 %2
7604 \end_layout
7605
7606 \end_inset
7607
7608 というコマンドを入力してください.
7609 \end_layout
7610
7611 \begin_layout Standard
7612 遡及検索は,ダブルクリックで始動します.
7613 \end_layout
7614
7615 \begin_layout Subsubsection*
7616 YAP(Windows)
7617 \end_layout
7618
7619 \begin_layout Standard
7620 yapを起動し,
7621 \begin_inset Flex MenuItem
7622 status collapsed
7623
7624 \begin_layout Plain Layout
7625 View\SpecialChar menuseparator
7626 Options
7627 \end_layout
7628
7629 \end_inset
7630
7631 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
7632 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7633
7634  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
7635 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
7636 \begin_inset Flex Code
7637 status collapsed
7638
7639 \begin_layout Plain Layout
7640 lyxeditor.bat
7641 \end_layout
7642
7643 \end_inset
7644
7645 (以下参照)のあるディレクトリを見つけます.
7646 \begin_inset Flex Code
7647 status collapsed
7648
7649 \begin_layout Plain Layout
7650 lyxeditor.bat
7651 \end_layout
7652
7653 \end_inset
7654
7655 を選択してプログラムの引数を
7656 \begin_inset Flex Code
7657 status collapsed
7658
7659 \begin_layout Plain Layout
7660 %f %l
7661 \end_layout
7662
7663 \end_inset
7664
7665 と指定してください.
7666 \begin_inset Flex Code
7667 status collapsed
7668
7669 \begin_layout Plain Layout
7670 lyxeditor.bat
7671 \end_layout
7672
7673 \end_inset
7674
7675 は,
7676 \emph on
7677 lyxpipe
7678 \emph default
7679 を通じて\SpecialChar LyX
7680 と通信するためのラッパとして使用され,以下のようになっています.
7681 \end_layout
7682
7683 \begin_layout LyX-Code
7684 @echo off
7685 \begin_inset Newline newline
7686 \end_inset
7687
7688 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7689 \backslash
7690
7691 \backslash
7692 .
7693 \backslash
7694 pipe
7695 \backslash
7696 lyxpipe.in
7697 \begin_inset Newline newline
7698 \end_inset
7699
7700 type 
7701 \backslash
7702
7703 \backslash
7704 .
7705 \backslash
7706 pipe
7707 \backslash
7708 lyxpipe.out
7709 \end_layout
7710
7711 \begin_layout Standard
7712 \SpecialChar LyX
7713 で指定した\SpecialChar LyX
7714 Serverパイプパスが,
7715 \begin_inset Flex Code
7716 status collapsed
7717
7718 \begin_layout Plain Layout
7719
7720 \backslash
7721
7722 \backslash
7723 .
7724 \backslash
7725 pipe
7726 \backslash
7727 lyxpipe
7728 \end_layout
7729
7730 \end_inset
7731
7732 となっていることを確認するか,
7733 \begin_inset Flex Code
7734 status collapsed
7735
7736 \begin_layout Plain Layout
7737 lyxeditor.bat
7738 \end_layout
7739
7740 \end_inset
7741
7742 ラッパの方を適切に修正してください.
7743 \end_layout
7744
7745 \begin_layout Standard
7746 yapでは,遡及検索はダブルクリックで始動します.
7747 \end_layout
7748
7749 \begin_layout Subsubsection*
7750 SumatraPDF(Windows)
7751 \end_layout
7752
7753 \begin_layout Standard
7754 SumatraPDFを遡及検索で使用するためには,
7755 \begin_inset Flex MenuItem
7756 status collapsed
7757
7758 \begin_layout Plain Layout
7759 設定\SpecialChar menuseparator
7760 ファイル処理\SpecialChar menuseparator
7761 ファイル書式\SpecialChar menuseparator
7762 PDF (pdflatex)
7763 \end_layout
7764
7765 \end_inset
7766
7767 のビューア設定で
7768 \begin_inset Flex Code
7769 status collapsed
7770
7771 \begin_layout Plain Layout
7772 SumatraPDF -inverse-search 
7773 \begin_inset Quotes eld
7774 \end_inset
7775
7776 lyxeditor.bat %f %l
7777 \begin_inset Quotes erd
7778 \end_inset
7779
7780
7781 \end_layout
7782
7783 \end_inset
7784
7785 (
7786 \begin_inset Flex Code
7787 status collapsed
7788
7789 \begin_layout Plain Layout
7790 lyxeditor.bat
7791 \end_layout
7792
7793 \end_inset
7794
7795 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
7796 \end_layout
7797
7798 \begin_layout Standard
7799 遡及検索はダブルクリックで始動します.
7800 \end_layout
7801
7802 \begin_layout Subsubsection*
7803 YAP(Cygwin)
7804 \end_layout
7805
7806 \begin_layout Standard
7807 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
7808 \begin_inset Flex MenuItem
7809 status collapsed
7810
7811 \begin_layout Plain Layout
7812 View\SpecialChar menuseparator
7813 Options
7814 \end_layout
7815
7816 \end_inset
7817
7818 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
7819 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7820
7821  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
7822 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
7823 \begin_inset Flex Code
7824 status collapsed
7825
7826 \begin_layout Plain Layout
7827 lyxeditor.exe
7828 \end_layout
7829
7830 \end_inset
7831
7832 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
7833 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
7834 \begin_inset Flex Code
7835 status collapsed
7836
7837 \begin_layout Plain Layout
7838 lyxeditor.exe
7839 \end_layout
7840
7841 \end_inset
7842
7843 を選択してプログラムの引数を
7844 \begin_inset Flex Code
7845 status collapsed
7846
7847 \begin_layout Plain Layout
7848 -g %f %l
7849 \end_layout
7850
7851 \end_inset
7852
7853 と指定してください.これによって,\SpecialChar LyX
7854 との通信に
7855 \emph on
7856 lyxsocket
7857 \emph default
7858 が使用されるようになります.何らかの理由で
7859 \emph on
7860 lyxpipe
7861 \emph default
7862 を使用したい場合には,
7863 \begin_inset Flex Code
7864 status collapsed
7865
7866 \begin_layout Plain Layout
7867 -g
7868 \end_layout
7869
7870 \end_inset
7871
7872 オプションを削除して,\SpecialChar LyX
7873 設定で\SpecialChar LyX
7874 Serverパイプパスを指定することを忘れないでください.
7875 \end_layout
7876
7877 \begin_layout Standard
7878 yapでは,遡及検索はダブルクリックで始動します.
7879 \end_layout
7880
7881 \begin_layout Subsubsection*
7882 SumatraPDF(Cygwin)
7883 \end_layout
7884
7885 \begin_layout Standard
7886 SumatraPDFを遡及検索で使用するためには,
7887 \begin_inset Flex MenuItem
7888 status collapsed
7889
7890 \begin_layout Plain Layout
7891 設定\SpecialChar menuseparator
7892 ファイル処理\SpecialChar menuseparator
7893 ファイル書式\SpecialChar menuseparator
7894 PDF (pdflatex)
7895 \end_layout
7896
7897 \end_inset
7898
7899 のビューア設定で
7900 \begin_inset Flex Code
7901 status collapsed
7902
7903 \begin_layout Plain Layout
7904 SumatraPDF.sh
7905 \end_layout
7906
7907 \end_inset
7908
7909 と入力してください.ここで
7910 \begin_inset Flex Code
7911 status collapsed
7912
7913 \begin_layout Plain Layout
7914 SumatraPDF.sh
7915 \end_layout
7916
7917 \end_inset
7918
7919 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
7920 \begin_inset Flex Code
7921 status collapsed
7922
7923 \begin_layout Plain Layout
7924 /usr/local/bin
7925 \end_layout
7926
7927 \end_inset
7928
7929 がもっとも良い選択肢でしょう).
7930 \end_layout
7931
7932 \begin_layout LyX-Code
7933 #!/bin/bash
7934 \begin_inset Newline newline
7935 \end_inset
7936
7937 cd $(dirname $1)
7938 \begin_inset Newline newline
7939 \end_inset
7940
7941 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
7942 \end_layout
7943
7944 \begin_layout Standard
7945 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
7946 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
7947 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
7948 \begin_inset Flex Code
7949 status collapsed
7950
7951 \begin_layout Plain Layout
7952 -g
7953 \end_layout
7954
7955 \end_inset
7956
7957
7958 \emph on
7959 lyxsocket
7960 \emph default
7961 経由の通信を有効にします.ここでも,
7962 \emph on
7963 lyxpipe
7964 \emph default
7965 を使用したい場合には,
7966 \begin_inset Flex Code
7967 status collapsed
7968
7969 \begin_layout Plain Layout
7970 -g
7971 \end_layout
7972
7973 \end_inset
7974
7975 オプションを削除して,\SpecialChar LyX
7976 設定で\SpecialChar LyX
7977 Serverパイプパスを指定することを忘れないでください.
7978 \end_layout
7979
7980 \begin_layout Standard
7981 遡及検索はダブルクリックで始動します.
7982 \end_layout
7983
7984 \begin_layout Section
7985 順検索
7986 \end_layout
7987
7988 \begin_layout Standard
7989 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
7990 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
7991 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
7992 文書の好きなところに置いて,
7993 \begin_inset Flex MenuItem
7994 status collapsed
7995
7996 \begin_layout Plain Layout
7997 移動\SpecialChar menuseparator
7998 順検索
7999 \end_layout
8000
8001 \end_inset
8002
8003 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8004 \begin_inset Flex MenuItem
8005 status collapsed
8006
8007 \begin_layout Plain Layout
8008 順検索
8009 \end_layout
8010
8011 \end_inset
8012
8013 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
8014 \end_layout
8015
8016 \begin_layout Standard
8017 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
8018 ソースに関する情報を追加する必要があります.これは,第
8019 \begin_inset CommandInset ref
8020 LatexCommand ref
8021 reference "subsec:遡及検索"
8022
8023 \end_inset
8024
8025 節に述べられている方法で実行することができます.
8026 \end_layout
8027
8028 \begin_layout Standard
8029 次に,
8030 \begin_inset Flex MenuItem
8031 status collapsed
8032
8033 \begin_layout Plain Layout
8034 ツール\SpecialChar menuseparator
8035 設定\SpecialChar menuseparator
8036 出力\SpecialChar menuseparator
8037 一般
8038 \end_layout
8039
8040 \end_inset
8041
8042 で自分の使うビューアを利用するように,\SpecialChar LyX
8043 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
8044 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
8045 \end_layout
8046
8047 \begin_layout Itemize
8048 \begin_inset Flex Code
8049 status collapsed
8050
8051 \begin_layout Plain Layout
8052 $$n
8053 \end_layout
8054
8055 \end_inset
8056
8057 :行番号
8058 \end_layout
8059
8060 \begin_layout Itemize
8061 \begin_inset Flex Code
8062 status collapsed
8063
8064 \begin_layout Plain Layout
8065 $$t
8066 \end_layout
8067
8068 \end_inset
8069
8070 :書き出された(一時).texファイル名(パスを除く)
8071 \end_layout
8072
8073 \begin_layout Itemize
8074 \begin_inset Flex Code
8075 status collapsed
8076
8077 \begin_layout Plain Layout
8078 $$f
8079 \end_layout
8080
8081 \end_inset
8082
8083 :書き出された(一時).texファイル名(パスを含む)
8084 \end_layout
8085
8086 \begin_layout Itemize
8087 \begin_inset Flex Code
8088 status collapsed
8089
8090 \begin_layout Plain Layout
8091 $$o
8092 \end_layout
8093
8094 \end_inset
8095
8096 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
8097 \end_layout
8098
8099 \begin_layout Standard
8100 yap・xdvi・okular
8101 \begin_inset Foot
8102 status collapsed
8103
8104 \begin_layout Plain Layout
8105 \begin_inset Flex MenuItem
8106 status collapsed
8107
8108 \begin_layout Plain Layout
8109 ツール\SpecialChar menuseparator
8110 設定\SpecialChar menuseparator
8111 ファイル処理\SpecialChar menuseparator
8112 ファイル形式
8113 \end_layout
8114
8115 \end_inset
8116
8117
8118 \begin_inset Flex Code
8119 status collapsed
8120
8121 \begin_layout Plain Layout
8122 okular –unique
8123 \end_layout
8124
8125 \end_inset
8126
8127 と設定すると良いかもしれません.
8128 \end_layout
8129
8130 \end_inset
8131
8132 ・qpdfview・Sumatra PDFなど,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
8133 \begin_inset Foot
8134 status collapsed
8135
8136 \begin_layout Plain Layout
8137 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
8138 \begin_inset CommandInset href
8139 LatexCommand href
8140 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8141
8142 \end_inset
8143
8144 からダウンロードすることができます.
8145 \end_layout
8146
8147 \end_inset
8148
8149 .広く使われているPDFビューアの多く(特にAdobe Reader)は,順検索を全く提供していませんが,他の一部のビューア(たとえばEvinceやxpdf)で
8150 は,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少なくとも「近く」には移動することができます.この後者の機能は,syn
8151 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
8152 \end_layout
8153
8154 \begin_layout Standard
8155 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
8156 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
8157 チェックして),その形式に適切な設定を選択します.
8158 \end_layout
8159
8160 \begin_layout Chapter
8161 特別な文書クラス
8162 \end_layout
8163
8164 \begin_layout Section
8165 A&Aの論文
8166 \end_layout
8167
8168 \begin_layout Standard
8169
8170 \noun on
8171 Peter Sütterlin文
8172 \end_layout
8173
8174 \begin_layout Subsection
8175 はじめに
8176 \end_layout
8177
8178 \begin_layout Standard
8179 この節では,文書クラス
8180 \family typewriter
8181 aa.cls
8182 \family default
8183 第5.01版を使用して科学雑誌
8184 \emph on
8185 Astronomy and Astrophysics
8186 \emph default
8187 (『天文学と宇宙物理学』: 
8188 \begin_inset Flex URL
8189 status collapsed
8190
8191 \begin_layout Plain Layout
8192
8193 http://www.edpsciences.fr/aa/
8194 \end_layout
8195
8196 \end_inset
8197
8198 )に投稿する論文を執筆するための\SpecialChar LyX
8199 の使用法を説明します.このパッケージは,FTPサイト
8200 \end_layout
8201
8202 \begin_layout Standard
8203 \align center
8204 \begin_inset VSpace medskip
8205 \end_inset
8206
8207
8208 \begin_inset Flex URL
8209 status collapsed
8210
8211 \begin_layout Plain Layout
8212
8213 ftp://ftp.edpsciences.org/pub/aa/readme.html
8214 \end_layout
8215
8216 \end_inset
8217
8218
8219 \begin_inset VSpace medskip
8220 \end_inset
8221
8222
8223 \end_layout
8224
8225 \begin_layout Standard
8226 \noindent
8227 からダウンロードすることができます.
8228 \end_layout
8229
8230 \begin_layout Standard
8231 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
8232 書であるに過ぎません.
8233 \end_layout
8234
8235 \begin_layout Standard
8236 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
8237 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
8238 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
8239 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
8240 \family sans
8241 article (A&A V4)
8242 \family default
8243 として残してあります.
8244 \family typewriter
8245 $\SpecialChar LyX
8246 Dir/layouts/aapaper.layout
8247 \family default
8248 のコメントをご参照ください.
8249 \end_layout
8250
8251 \begin_layout Subsection
8252 最初の一歩
8253 \end_layout
8254
8255 \begin_layout Standard
8256 \SpecialChar LyX
8257 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
8258 \end_layout
8259
8260 \begin_layout Itemize
8261
8262 \family sans
8263 文書\SpecialChar menuseparator
8264 設定
8265 \family default
8266 ダイアログで
8267 \family sans
8268 article (A&A)
8269 \family default
8270 を選択してください(まぁ,これは自明ですね).
8271 \end_layout
8272
8273 \begin_layout Itemize
8274
8275 \family sans
8276 ページレイアウト
8277 \family default
8278 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
8279 \end_layout
8280
8281 \begin_layout Subsection
8282 へッダ部
8283 \end_layout
8284
8285 \begin_layout Standard
8286 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
8287 \end_layout
8288
8289 \begin_layout Itemize
8290
8291 \family sans
8292 タイトル
8293 \family default
8294 :[必須]
8295 \end_layout
8296
8297 \begin_layout Itemize
8298
8299 \family sans
8300 サブタイトル
8301 \family default
8302 :[非必須]
8303 \end_layout
8304
8305 \begin_layout Itemize
8306
8307 \family sans
8308 著者
8309 \family default
8310 :[必須]
8311 \end_layout
8312
8313 \begin_layout Itemize
8314
8315 \family sans
8316 住所
8317 \family default
8318 :[必須]
8319 \end_layout
8320
8321 \begin_layout Itemize
8322
8323 \family sans
8324 抜き刷り
8325 \family default
8326 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
8327 \end_layout
8328
8329 \begin_layout Itemize
8330
8331 \family sans
8332 メール
8333 \family default
8334 :[非必須]連絡用の電子メールアドレス.
8335 \end_layout
8336
8337 \begin_layout Itemize
8338
8339 \family sans
8340 日付
8341 \family default
8342 :[必須]推奨されるフォーマットは,
8343 \family typewriter
8344 Received: <日付>; Accepted <日付>
8345 \family default
8346 です.
8347 \end_layout
8348
8349 \begin_layout Standard
8350
8351 \family typewriter
8352
8353 \backslash
8354 maketitle
8355 \family default
8356 コマンドは,へッダが終了した場所に,\SpecialChar LyX
8357 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
8358 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
8359 \end_layout
8360
8361 \begin_layout Standard
8362 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
8363 \family sans
8364 挿入\SpecialChar menuseparator
8365 脚注
8366 \family default
8367 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
8368 は自動的に
8369 \family typewriter
8370
8371 \backslash
8372 thanks{}
8373 \family default
8374 を使用します.
8375 \end_layout
8376
8377 \begin_layout Standard
8378 これらのトピックの他に,このマクロは,\SpecialChar LyX
8379 が対応していない,以下の3つの\SpecialChar LaTeX
8380 コマンドを使用します.
8381 \end_layout
8382
8383 \begin_layout Itemize
8384 複数の著者名あるいは所属名を区切るための
8385 \family typewriter
8386
8387 \backslash
8388 and
8389 \end_layout
8390
8391 \begin_layout Itemize
8392 著者と所属の対応付けをするための
8393 \family typewriter
8394
8395 \backslash
8396 inst{<番号>}
8397 \family default
8398 .所属は,
8399 \family sans
8400 住所
8401 \family default
8402 フィールドに現れる順に番号が付けられるので,各著者に番号マーカーを置く必要があります.
8403 \end_layout
8404
8405 \begin_layout Itemize
8406
8407 \family typewriter
8408
8409 \backslash
8410 email{アドレス}
8411 \family default
8412 は,至急連絡用に電子メールアドレスを付記します.
8413 \end_layout
8414
8415 \begin_layout Standard
8416 いずれの場合にも,\SpecialChar LyX
8417 中に対応したコマンドを入力し,\SpecialChar LaTeX
8418 コードとしてマークしてください.
8419 \begin_inset Flex Code
8420 status collapsed
8421
8422 \begin_layout Plain Layout
8423 $\SpecialChar LyX
8424 Dir/examples
8425 \end_layout
8426
8427 \end_inset
8428
8429 にある用例を参照してください.
8430 \end_layout
8431
8432 \begin_layout Subsection
8433 概要
8434 \end_layout
8435
8436 \begin_layout Standard
8437 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
8438 れなくてはなりません.これは,まだ\SpecialChar LyX
8439 では実装されていないため,\SpecialChar LaTeX
8440 コマンド
8441 \family typewriter
8442
8443 \backslash
8444 keywords{}
8445 \family default
8446 を手動で入力し,\SpecialChar LaTeX
8447 コードとしてマークする必要があります.用例にある論文を参照してください.
8448 \end_layout
8449
8450 \begin_layout Subsection
8451 サポートされる環境
8452 \end_layout
8453
8454 \begin_layout Standard
8455 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
8456 \end_layout
8457
8458 \begin_layout Itemize
8459
8460 \family sans
8461 標準
8462 \end_layout
8463
8464 \begin_layout Itemize
8465
8466 \family sans
8467
8468 \end_layout
8469
8470 \begin_layout Itemize
8471
8472 \family sans
8473 小節
8474 \end_layout
8475
8476 \begin_layout Itemize
8477
8478 \family sans
8479 小々節
8480 \end_layout
8481
8482 \begin_layout Itemize
8483
8484 \family sans
8485 箇条書き(記号)
8486 \end_layout
8487
8488 \begin_layout Itemize
8489
8490 \family sans
8491 箇条書き(連番)
8492 \end_layout
8493
8494 \begin_layout Itemize
8495
8496 \family sans
8497 箇条書き(記述)
8498 \end_layout
8499
8500 \begin_layout Itemize
8501
8502 \family sans
8503 キャプション
8504 \end_layout
8505
8506 \begin_layout Itemize
8507
8508 \family sans
8509 概要
8510 \end_layout
8511
8512 \begin_layout Itemize
8513
8514 \family sans
8515 謝辞(Acknowledgment)
8516 \end_layout
8517
8518 \begin_layout Itemize
8519
8520 \family sans
8521 書誌情報
8522 \end_layout
8523
8524 \begin_layout Itemize
8525
8526 \family sans
8527 \SpecialChar LaTeX
8528
8529 \end_layout
8530
8531 \begin_layout Subsection
8532 \SpecialChar LyX
8533 でサポートされていないコマンド
8534 \end_layout
8535
8536 \begin_layout Standard
8537 \SpecialChar LyX
8538
8539 \family sans
8540 article (A&A)
8541 \family default
8542 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
8543 \end_layout
8544
8545 \begin_layout Itemize
8546
8547 \family typewriter
8548
8549 \backslash
8550 and
8551 \end_layout
8552
8553 \begin_layout Itemize
8554
8555 \family typewriter
8556
8557 \backslash
8558 email
8559 \end_layout
8560
8561 \begin_layout Itemize
8562
8563 \family typewriter
8564
8565 \backslash
8566 appendix
8567 \end_layout
8568
8569 \begin_layout Itemize
8570
8571 \family typewriter
8572
8573 \backslash
8574 authorrunning
8575 \end_layout
8576
8577 \begin_layout Itemize
8578
8579 \family typewriter
8580
8581 \backslash
8582 inst{}
8583 \end_layout
8584
8585 \begin_layout Itemize
8586
8587 \family typewriter
8588
8589 \backslash
8590 keywords{}
8591 \end_layout
8592
8593 \begin_layout Itemize
8594
8595 \family typewriter
8596
8597 \backslash
8598 object{}
8599 \end_layout
8600
8601 \begin_layout Itemize
8602
8603 \family typewriter
8604
8605 \backslash
8606 titlerunning{}
8607 \end_layout
8608
8609 \begin_layout Standard
8610 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
8611 \series bold
8612 これを\SpecialChar LaTeX
8613 コマンドとしてマークすることを忘れないで下さい.
8614 \end_layout
8615
8616 \begin_layout Subsection
8617 図フロートおよび表フロート
8618 \end_layout
8619
8620 \begin_layout Standard
8621 \SpecialChar LyX
8622 は,必要なフロート環境
8623 \family sans
8624 figure
8625 \family default
8626
8627 \family sans
8628 figure*
8629 \family default
8630
8631 \family sans
8632 table
8633 \family default
8634
8635 \family sans
8636 table*
8637 \family default
8638 をサポートしていますので,ここでは詳しい説明はしません.
8639 \emph on
8640 ユーザーの手引き
8641 \emph default
8642 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
8643 \family sans
8644 編集\SpecialChar menuseparator
8645 段落設定
8646 \family default
8647 で配置を変更してください.
8648 \end_layout
8649
8650 \begin_layout Standard
8651 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
8652 \end_layout
8653
8654 \begin_layout Enumerate
8655
8656 \family sans
8657 挿入\SpecialChar menuseparator
8658 フロート\SpecialChar menuseparator
8659
8660 \family default
8661 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
8662 \begin_inset Flex MenuItem
8663 status collapsed
8664
8665 \begin_layout Plain Layout
8666 設定\SpecialChar ldots
8667
8668 \end_layout
8669
8670 \end_inset
8671
8672 を選択し,それで開かれる
8673 \family sans
8674 フロートの設定
8675 \family default
8676 ダイアログで
8677 \family sans
8678 段をまたぐ
8679 \family default
8680 を有効にして,
8681 \family sans
8682 OK
8683 \family default
8684 ボタンを押します.
8685 \end_layout
8686
8687 \begin_layout Enumerate
8688 キャプション文を入力します.
8689 \end_layout
8690
8691 \begin_layout Enumerate
8692 キャプションの前にカーソルを移動し,
8693 \family sans
8694 Return
8695 \family default
8696 を押して,カーソルをキャプションの上に移動します.
8697 \end_layout
8698
8699 \begin_layout Enumerate
8700 図を挿入します.
8701 \end_layout
8702
8703 \begin_layout Enumerate
8704 カーソルを図の後ろに置いて,
8705 \family sans
8706 挿入\SpecialChar menuseparator
8707 整形\SpecialChar menuseparator
8708 水平方向の空白
8709 \family default
8710 を選択して
8711 \family sans
8712 水平方向の空白の設定
8713 \family default
8714 ダイアログを開き,
8715 \family sans
8716 空白
8717 \family default
8718 ドロップダウンから
8719 \family sans
8720 水平フィル
8721 \family default
8722 を選択して,水平フィルを挿入します.
8723 \end_layout
8724
8725 \begin_layout Enumerate
8726
8727 \family sans
8728 挿入\SpecialChar menuseparator
8729 TeXコード
8730 \family default
8731 を選択して,\SpecialChar TeX
8732 差込枠を挿入します.
8733 \end_layout
8734
8735 \begin_layout Enumerate
8736 \SpecialChar TeX
8737 差込枠中に
8738 \family typewriter
8739
8740 \backslash
8741 parbox[b]{55mm}{
8742 \family default
8743 と入力します.
8744 \series bold
8745 ここでは波括弧を閉じないでください.
8746 \end_layout
8747
8748 \begin_layout Enumerate
8749 カーソルをキャプション文の後ろに移動し,
8750 \family sans
8751 挿入\SpecialChar menuseparator
8752 TeXコード
8753 \family default
8754 を選択して,別の\SpecialChar TeX
8755 差込枠を挿入し,その中に閉じ括弧を入力します .
8756 \end_layout
8757
8758 \begin_layout Standard
8759 例示用論文中の図もご参照ください.
8760 \end_layout
8761
8762 \begin_layout Subsection
8763 Refereeレイアウト
8764 \end_layout
8765
8766 \begin_layout Standard
8767 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
8768 \family typewriter
8769 referee
8770 \family default
8771 オプションを与える必要があります.これは,
8772 \family sans
8773 文書\SpecialChar menuseparator
8774 設定
8775 \family default
8776 ダイアログの
8777 \family sans
8778 任意設定
8779 \family default
8780 クラスオプションフィールドを使って行うことができます.この欄に
8781 \family typewriter
8782 referee
8783 \family default
8784 と云う文字列を入力してください.
8785 \end_layout
8786
8787 \begin_layout Subsection
8788 例示用論文
8789 \end_layout
8790
8791 \begin_layout Standard
8792
8793 \family sans
8794 Examples
8795 \family default
8796 ディレクトリには,\SpecialChar LyX
8797 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
8798 用に直したものです.これはヒントを得るために使用したり,元の
8799  \SpecialChar LaTeX
8800 コードと\SpecialChar LyX
8801 での書き方の比較に使ったりしてください.
8802 \end_layout
8803
8804 \begin_layout Section
8805 AAS\SpecialChar TeX
8806
8807 \end_layout
8808
8809 \begin_layout Standard
8810
8811 \noun on
8812 Mike Ressler
8813 \noun default
8814
8815 \end_layout
8816
8817 \begin_layout Subsection
8818 はじめに
8819 \end_layout
8820
8821 \begin_layout Standard
8822 AAS\SpecialChar TeX
8823 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
8824 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
8825  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
8826
8827 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
8828 は,同マクロ第5.0版以降を必要としており,でき
8829 ればここで説明されている第5.2版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
8830 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
8831 とは互換性がありません.AAS\SpecialChar TeX
8832 パッケージは
8833 ,以下のAAS\SpecialChar TeX
8834 ウェブサイトからダウンロードできるでしょう.
8835 \end_layout
8836
8837 \begin_layout Standard
8838 \align center
8839 \begin_inset VSpace medskip
8840 \end_inset
8841
8842
8843 \begin_inset Flex URL
8844 status collapsed
8845
8846 \begin_layout Plain Layout
8847
8848 https://aas.org/aastex/aastex-downloads
8849 \end_layout
8850
8851 \end_inset
8852
8853
8854 \begin_inset VSpace medskip
8855 \end_inset
8856
8857
8858 \end_layout
8859
8860 \begin_layout Standard
8861 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
8862 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
8863 は,AASTeXの全コマン
8864 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
8865 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
8866 いることを確認するのは,あなたの責任です.
8867 \end_layout
8868
8869 \begin_layout Subsection
8870 新しい論文を書き始める
8871 \end_layout
8872
8873 \begin_layout Standard
8874 論文を書き始めるには,AAS\SpecialChar TeX
8875 ひな型ファイルを土台に始めることを強くお勧めします.
8876 \begin_inset Flex MenuItem
8877 status collapsed
8878
8879 \begin_layout Plain Layout
8880 ファイル\SpecialChar menuseparator
8881 新規(ひな型使用)
8882 \end_layout
8883
8884 \end_inset
8885
8886 をクリックして,新しいファイル名を入力し,ひな型
8887 \family typewriter
8888 aastex.lyx
8889 \family default
8890 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
8891 \family typewriter
8892 <>
8893 \family default
8894 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
8895 コマンド・AAS\SpecialChar TeX
8896 環境の多くは,\SpecialChar LyX
8897 中で直接実行することができますが,特に
8898 \family typewriter
8899
8900 \backslash
8901 altaffilmark
8902 \family default
8903
8904 \family typewriter
8905
8906 \backslash
8907 altaffiltext
8908 \family default
8909 のようにできないものもあります.この二つのコマンドは,ひな型ファイルを開いたとき,赤色に表示されているのですぐ目に入ることでしょう.このようなコマンドは,直接L
8910 a\SpecialChar TeX
8911 コードを入力して,それを\SpecialChar TeX
8912 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
8913 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます.A
8914 AS\SpecialChar TeX
8915 文書に必要とされる \SpecialChar TeX
8916 コードを最小にするよう努力はしていますが,まだ望まれるほどにはなっていません.
8917 \end_layout
8918
8919 \begin_layout Subsection
8920 論文を書き終わったら
8921 \end_layout
8922
8923 \begin_layout Standard
8924 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
8925 \end_layout
8926
8927 \begin_layout Enumerate
8928 論文を \SpecialChar LaTeX
8929 ファイルとして書き出します(
8930 \family sans
8931 ファイル\SpecialChar menuseparator
8932 書き出し\SpecialChar menuseparator
8933 LateX
8934 \family default
8935 ).
8936 \end_layout
8937
8938 \begin_layout Enumerate
8939 出力した
8940 \family typewriter
8941 .tex
8942 \family default
8943 ファイルを好きなエディタで編集します.
8944 \end_layout
8945
8946 \begin_deeper
8947 \begin_layout Enumerate
8948
8949 \family typewriter
8950
8951 \backslash
8952 documentclass
8953 \family default
8954 コマンドよりも前のコメント行を削除します.
8955 \end_layout
8956
8957 \begin_layout Enumerate
8958
8959 \family typewriter
8960
8961 \backslash
8962 usepackage...{fontenc}
8963 \family default
8964 という行があれば(通常は
8965 \family typewriter
8966
8967 \backslash
8968 documentclass
8969 \family default
8970 の直後にあります)削除します.また,
8971 \family typewriter
8972
8973 \backslash
8974 secnumdepth
8975 \family default
8976 行があれば,これも削除します.
8977 \end_layout
8978
8979 \begin_layout Enumerate
8980 \SpecialChar LaTeX
8981 プリアンブル中に意図的に置いたコマンド(
8982 \family typewriter
8983 .tex
8984 \family default
8985 ファイル中,「User specified \SpecialChar LaTeX
8986  commands」というコメントの直後にあります)を除いて,
8987 \family typewriter
8988
8989 \backslash
8990 makeatletter
8991 \family default
8992
8993 \family typewriter
8994
8995 \backslash
8996 makeatother
8997 \family default
8998 の間のもの(これらのコマンドを含む)をすべて削除します.
8999 \end_layout
9000
9001 \end_deeper
9002 \begin_layout Enumerate
9003 編集後のファイルを \SpecialChar LaTeX
9004 にかけて,正しく処理されることを確認します.
9005 \end_layout
9006
9007 \begin_layout Enumerate
9008 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
9009 \end_layout
9010
9011 \begin_layout Enumerate
9012 投稿してください.
9013 \end_layout
9014
9015 \begin_layout Subsection
9016 特定のコマンドに関するコメント
9017 \end_layout
9018
9019 \begin_layout Standard
9020 AAS\SpecialChar TeX
9021 ユーザーの手引き(
9022 \family typewriter
9023 aasguide.tex
9024 \family default
9025 )に,各AAS\SpecialChar TeX
9026 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
9027 て,必要なところだけコメントを加えることにしましょう.
9028 \end_layout
9029
9030 \begin_layout Subsubsection
9031 期待通りに動作するもの
9032 \end_layout
9033
9034 \begin_layout Standard
9035 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
9036 \family typewriter
9037
9038 \backslash
9039 documentclass
9040 \family default
9041  (2.1.1)・
9042 \family typewriter
9043
9044 \backslash
9045 begin{document}
9046 \family default
9047  (2.2)・
9048 \family typewriter
9049
9050 \backslash
9051 title
9052 \family default
9053  (2.3)・
9054 \family typewriter
9055
9056 \backslash
9057 author
9058 \family default
9059  (2.3)・
9060 \family typewriter
9061
9062 \backslash
9063 affil
9064 \family default
9065  (2.3)・
9066 \family typewriter
9067
9068 \backslash
9069 abstract
9070 \family default
9071  (2.4)・
9072 \family typewriter
9073
9074 \backslash
9075 keywords
9076 \family default
9077  (2.5)・
9078 \family typewriter
9079
9080 \backslash
9081 section
9082 \family default
9083  (2.7)・
9084 \family typewriter
9085
9086 \backslash
9087 subsection
9088 \family default
9089  (2.7)・
9090 \family typewriter
9091
9092 \backslash
9093 subsubsection
9094 \family default
9095  (2.7)・
9096 \family typewriter
9097
9098 \backslash
9099 paragraph
9100 \family default
9101  (2.7)・
9102 \family typewriter
9103
9104 \backslash
9105 facility
9106 \family default
9107  (2.10)・
9108 \family typewriter
9109
9110 \backslash
9111 begin{displaymath}
9112 \family default
9113  (2.12)・
9114 \family typewriter
9115
9116 \backslash
9117 begin{equation}
9118 \family default
9119  (2.12)・
9120 \family typewriter
9121
9122 \backslash
9123 begin{eqnarray}
9124 \family default
9125  (2.12)・
9126 \family typewriter
9127
9128 \backslash
9129 begin{mathletters}
9130 \family default
9131  (2.12)・
9132 \family typewriter
9133
9134 \backslash
9135 begin{thebibliography}
9136 \family default
9137  (2.13.1)・
9138 \family typewriter
9139
9140 \backslash
9141 bibitem
9142 \family default
9143  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9144 \family typewriter
9145
9146 \backslash
9147 begin{table}
9148 \family default
9149  (2.15.4)・
9150 \family typewriter
9151
9152 \backslash
9153 begin{tabular}
9154 \family default
9155  (2.15.4)・
9156 \family typewriter
9157
9158 \backslash
9159 caption
9160 \family default
9161  (2.15.4)・
9162 \family typewriter
9163
9164 \backslash
9165 label
9166 \family default
9167  (他にもあるが特に2.15.4)・
9168 \family typewriter
9169
9170 \backslash
9171 tablerefs
9172 \family default
9173  (2.15.5)・
9174 \family typewriter
9175
9176 \backslash
9177 tablecomments
9178 \family default
9179  (2.15.5)・
9180 \family typewriter
9181
9182 \backslash
9183 url
9184 \family default
9185  (2.17.4)・
9186 \family typewriter
9187
9188 \backslash
9189 end{document}
9190 \family default
9191  (2.18).
9192 \end_layout
9193
9194 \begin_layout Standard
9195 以下のスタイルオプションも正しく動作します.
9196 \family typewriter
9197 longabstract
9198 \family default
9199  (2.4)・
9200 \family typewriter
9201 preprint
9202 \family default
9203  (3.2.1)・
9204 \family typewriter
9205 preprint2
9206 \family default
9207  (3.2.2)・
9208 \family typewriter
9209 eqsecnum
9210 \family default
9211  (3.3)・
9212 \family typewriter
9213 flushrt
9214 \family default
9215  (3.4).これらは,
9216 \begin_inset Flex MenuItem
9217 status collapsed
9218
9219 \begin_layout Plain Layout
9220 文書\SpecialChar menuseparator
9221 設定
9222 \end_layout
9223
9224 \end_inset
9225
9226 にある,
9227 \family sans
9228 クラスオプション
9229 \family default
9230
9231 \family sans
9232 任意設定
9233 \family default
9234 ボックスに入力してください.
9235 \end_layout
9236
9237 \begin_layout Subsubsection
9238 動作するが,若干説明が必要なもの
9239 \end_layout
9240
9241 \begin_layout Standard
9242 以下のコマンドは動作しますが,若干の説明が必要です.
9243 \end_layout
9244
9245 \begin_layout Itemize
9246 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
9247 プリアンブルに入れることができます.
9248 \family typewriter
9249
9250 \backslash
9251 received
9252 \family default
9253
9254 \family typewriter
9255
9256 \backslash
9257 revised
9258 \family default
9259
9260 \family typewriter
9261
9262 \backslash
9263 accepted
9264 \family default
9265
9266 \family typewriter
9267
9268 \backslash
9269 ccc
9270 \family default
9271
9272 \family typewriter
9273 cpright
9274 \family default
9275 (すべて 2.1.3).
9276 \end_layout
9277
9278 \begin_layout Itemize
9279 以下の項目は,\SpecialChar LaTeX
9280 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
9281 \family typewriter
9282
9283 \backslash
9284 slugcomment
9285 \family default
9286 (2.1.4)・
9287 \family typewriter
9288
9289 \backslash
9290 shorttitle
9291 \family default
9292 (2.1.5)・
9293 \family typewriter
9294
9295 \backslash
9296 shortauthors
9297 \family default
9298 (2.1.5).
9299 \end_layout
9300
9301 \begin_layout Itemize
9302
9303 \family typewriter
9304
9305 \backslash
9306 email
9307 \family default
9308 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9309 コードを使用してください.
9310 \end_layout
9311
9312 \begin_layout Itemize
9313
9314 \family typewriter
9315
9316 \backslash
9317 and
9318 \family default
9319 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9320 \end_layout
9321
9322 \begin_layout Itemize
9323
9324 \family typewriter
9325
9326 \backslash
9327 notetoeditor
9328 \family default
9329 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9330 コードを使用してください.
9331 \end_layout
9332
9333 \begin_layout Itemize
9334
9335 \family typewriter
9336
9337 \backslash
9338 placetable
9339 \family default
9340 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
9341 \end_layout
9342
9343 \begin_layout Itemize
9344
9345 \family typewriter
9346
9347 \backslash
9348 placefigure
9349 \family default
9350 (2.8)—
9351 \family typewriter
9352
9353 \backslash
9354 placetable
9355 \family default
9356 と同様.
9357 \end_layout
9358
9359 \begin_layout Itemize
9360
9361 \family typewriter
9362
9363 \backslash
9364 acknowledgements
9365 \family default
9366 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9367 \end_layout
9368
9369 \begin_layout Itemize
9370
9371 \family typewriter
9372
9373 \backslash
9374 appendix
9375 \family default
9376 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9377 \end_layout
9378
9379 \begin_layout Itemize
9380
9381 \family typewriter
9382
9383 \backslash
9384 figcaption
9385 \family default
9386 (2.14.2)―文章のはじめにカーソルを置いて
9387 \begin_inset Flex MenuItem
9388 status collapsed
9389
9390 \begin_layout Plain Layout
9391 挿入\SpecialChar menuseparator
9392 短縮タイトル
9393 \end_layout
9394
9395 \end_inset
9396
9397 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
9398 \family typewriter
9399
9400 \backslash
9401 figcaption
9402 \family default
9403 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
9404 \end_layout
9405
9406 \begin_layout Itemize
9407
9408 \family typewriter
9409
9410 \backslash
9411 objectname
9412 \family default
9413 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9414 \family typewriter
9415
9416 \backslash
9417 figcaption
9418 \family default
9419 と同様.
9420 \end_layout
9421
9422 \begin_layout Itemize
9423
9424 \family typewriter
9425
9426 \backslash
9427 dataset
9428 \family default
9429 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9430 \family typewriter
9431
9432 \backslash
9433 figcaption
9434 \family default
9435 と同様.
9436 \end_layout
9437
9438 \begin_layout Subsubsection
9439 実装されていないため,\SpecialChar TeX
9440 コードを使用するもの
9441 \end_layout
9442
9443 \begin_layout Standard
9444
9445 \family typewriter
9446
9447 \backslash
9448 altaffilmark
9449 \family default
9450 (2.3)・
9451 \family typewriter
9452
9453 \backslash
9454 altaffiltext
9455 \family default
9456 (2.3)・
9457 \family typewriter
9458
9459 \backslash
9460 eqnum
9461 \family default
9462 (2.12)・
9463 \family typewriter
9464
9465 \backslash
9466 setcounter{equation}
9467 \family default
9468 (2.12)・学術誌名略語(2.12.4)・
9469 \family typewriter
9470
9471 \backslash
9472 figurenum
9473 \family default
9474 (2.14.1)・
9475 \family typewriter
9476
9477 \backslash
9478 epsscale
9479 \family default
9480 (2.14.1)・
9481 \family typewriter
9482
9483 \backslash
9484 plotone
9485 \family default
9486 (2.14.1)・
9487 \family typewriter
9488
9489 \backslash
9490 plottwo
9491 \family default
9492 (2.14.1)・
9493 \family typewriter
9494
9495 \backslash
9496 tablenum
9497 \family default
9498 (2.15.4)・
9499 \family typewriter
9500
9501 \backslash
9502 tableline
9503 \family default
9504 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
9505 の方法は使わないでください)・
9506 \family typewriter
9507
9508 \backslash
9509 tablenotemark
9510 \family default
9511 (2.15.5)・
9512 \family typewriter
9513
9514 \backslash
9515 tablenotetext
9516 \family default
9517 (2.15.5)・補遺(2.17)の大半(
9518 \family typewriter
9519
9520 \backslash
9521 objectname
9522 \family default
9523
9524 \family typewriter
9525
9526 \backslash
9527 dataset
9528 \family default
9529
9530 \family typewriter
9531
9532 \backslash
9533 url
9534 \family default
9535
9536 \family typewriter
9537
9538 \backslash
9539 email
9540 \family default
9541 を除く.上記参照)・
9542 \family typewriter
9543
9544 \backslash
9545 singlespace
9546 \family default
9547 (3.1)・
9548 \family typewriter
9549
9550 \backslash
9551 doublespace
9552 \family default
9553 (3.1)・
9554 \family typewriter
9555
9556 \backslash
9557 onecolumn
9558 \family default
9559 (3.2)・
9560 \family typewriter
9561
9562 \backslash
9563 twocolumn
9564 \family default
9565 (3.2)
9566 \end_layout
9567
9568 \begin_layout Subsubsection
9569 実装できないもの
9570 \end_layout
9571
9572 \begin_layout Standard
9573 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
9574 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
9575 \begin_inset Flex MenuItem
9576 status collapsed
9577
9578 \begin_layout Plain Layout
9579 挿入\SpecialChar menuseparator
9580 ファイル
9581 \begin_inset Formula $\text{\textipa{}}$
9582 \end_inset
9583
9584 \SpecialChar menuseparator
9585 子文書
9586 \end_layout
9587
9588 \end_inset
9589
9590 を使用して,\SpecialChar LyX
9591 ファイルに読み込むことを推奨します.この実例は,
9592 \family typewriter
9593 aas_sample.lyx
9594 \family default
9595 ファイルをご参照ください.
9596 \end_layout
9597
9598 \begin_layout Subsection
9599 FAQとヒントと技とその他の考察
9600 \end_layout
9601
9602 \begin_layout Subsubsection
9603 \SpecialChar LyX
9604 をAAS\SpecialChar TeX
9605 と協調させる
9606 \end_layout
9607
9608 \begin_layout Standard
9609 \SpecialChar LyX
9610 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
9611 \end_layout
9612
9613 \begin_layout Enumerate
9614 \SpecialChar LaTeX
9615 が,AAS\SpecialChar TeX
9616 を検出できることを確認してください.AAS\SpecialChar TeX
9617 頒布版に含まれる
9618 \family typewriter
9619 sample.tex
9620 \family default
9621 (あるいは
9622 \family typewriter
9623 table.tex
9624 \family default
9625 でも可)を,\SpecialChar LaTeX
9626 やAAS\SpecialChar TeX
9627 とまったく関係のないディレクトリにコピーして,
9628 \family typewriter
9629 sample.tex
9630 \family default
9631 を\SpecialChar LaTeX
9632 にかけてください.
9633 \end_layout
9634
9635 \begin_layout Enumerate
9636
9637 \family typewriter
9638 aastex.layout
9639 \family default
9640 が,\SpecialChar LyX
9641
9642 \family typewriter
9643 layouts
9644 \family default
9645 フォルダにあることを確認してください.
9646 \end_layout
9647
9648 \begin_layout Enumerate
9649 \SpecialChar LyX
9650 中から
9651 \family sans
9652 ツール\SpecialChar menuseparator
9653 環境構成
9654 \family default
9655 を再度実行し,\SpecialChar LyX
9656 を再起動してください.
9657 \end_layout
9658
9659 \begin_layout Enumerate
9660 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
9661 が,
9662 \family sans
9663 文書\SpecialChar menuseparator
9664 設定
9665 \family default
9666 のクラス一覧に表示されていますか?
9667 \end_layout
9668
9669 \begin_layout Standard
9670 既存のAAS\SpecialChar TeX
9671 文書を処理する際に,AAS\SpecialChar TeX
9672 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
9673 れば,正しい導入が行われていません.
9674 \end_layout
9675
9676 \begin_layout Subsubsection
9677 表を処理する際の\SpecialChar LaTeX
9678 エラー
9679 \end_layout
9680
9681 \begin_layout Standard
9682 既定では,\SpecialChar LyX
9683 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
9684 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
9685 クして,
9686 \family sans
9687 編集\SpecialChar menuseparator
9688 段落設定
9689 \family default
9690 を選択し,
9691 \family sans
9692 配置
9693 \family default
9694
9695 \family sans
9696 両端揃え
9697 \family default
9698 に設定してください.私のところではこれで解決しました.
9699 \end_layout
9700
9701 \begin_layout Subsubsection
9702 書誌情報
9703 \end_layout
9704
9705 \begin_layout Standard
9706 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
9707 ースを
9708 \emph on
9709 入れない
9710 \emph default
9711 ようにしてください.たとえば,
9712 \family typewriter
9713 Ressler(1992)
9714 \family default
9715 はいいですが,
9716 \family typewriter
9717 Ressler (1992)
9718 \family default
9719 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
9720 \family sans
9721 書誌情報
9722 \family default
9723 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
9724 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
9725 \end_layout
9726
9727 \begin_layout Subsubsection
9728 EPSファイルの読み込み
9729 \end_layout
9730
9731 \begin_layout Standard
9732 AAS\SpecialChar TeX
9733 には,自前の図関連コマンド(たとえば
9734 \family typewriter
9735
9736 \backslash
9737 plotone
9738 \family default
9739 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
9740 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
9741 コードで
9742 \family typewriter
9743
9744 \backslash
9745 plotone
9746 \family default
9747 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
9748 は,
9749 \family typewriter
9750
9751 \backslash
9752 usepackage{graphics}
9753 \family default
9754 コマンドを\SpecialChar LaTeX
9755 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
9756 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
9757 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
9758 \end_layout
9759
9760 \begin_layout Subsubsection
9761 可能だったが,実装しなかったもの
9762 \end_layout
9763
9764 \begin_layout Standard
9765 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
9766 ウィンドウ中
9767 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
9768 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
9769 \end_layout
9770
9771 \begin_layout Subsection
9772 最後に
9773 \end_layout
9774
9775 \begin_layout Standard
9776 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
9777 \begin_inset space \thinspace{}
9778 \end_inset
9779
9780 %は\SpecialChar LyX
9781 上で為されました.残りの2
9782 \begin_inset space \thinspace{}
9783 \end_inset
9784
9785 %が,\SpecialChar LaTeX
9786 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
9787 て発表してください!
9788 \end_layout
9789
9790 \begin_layout Section
9791 AMS \SpecialChar LaTeX
9792
9793 \end_layout
9794
9795 \begin_layout Standard
9796
9797 \noun on
9798 David Johnson
9799 \noun default
9800 文 
9801 \noun on
9802 Richard Heck
9803 \noun default
9804 改訂
9805 \begin_inset VSpace bigskip
9806 \end_inset
9807
9808
9809 \end_layout
9810
9811 \begin_layout Standard
9812 AMS \SpecialChar LaTeX
9813 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
9814 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
9815 出力中の一行を変更する
9816 必要があるだけです).AMSの説明書は,ウェブWeb上の
9817 \begin_inset Flex URL
9818 status open
9819
9820 \begin_layout Plain Layout
9821
9822 http://www.ams.org
9823 \end_layout
9824
9825 \end_inset
9826
9827 か,FTPで
9828 \begin_inset Flex URL
9829 status open
9830
9831 \begin_layout Plain Layout
9832
9833 ftp://ftp.ams.org/pub/tex/amslatex/
9834 \end_layout
9835
9836 \end_inset
9837
9838 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
9839 \end_layout
9840
9841 \begin_layout Standard
9842 基本となるAMS \SpecialChar LaTeX
9843 レイアウトには,以下の二つがあります.
9844 \end_layout
9845
9846 \begin_layout Itemize
9847 amsart:標準のAMS article書式.
9848 \end_layout
9849
9850 \begin_layout Itemize
9851 amsbook:標準のAMS book(実際はモノグラフ)書式.
9852 \end_layout
9853
9854 \begin_layout Standard
9855 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
9856 m」環境は,何一つ含まれていません.これらは,代わりに
9857 \begin_inset Flex Code
9858 status collapsed
9859
9860 \begin_layout Plain Layout
9861 定理(AMS)
9862 \end_layout
9863
9864 \end_inset
9865
9866 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
9867 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
9868 \begin_inset Flex Code
9869 status collapsed
9870
9871 \begin_layout Plain Layout
9872 定理(AMS拡張)
9873 \end_layout
9874
9875 \end_inset
9876
9877 モジュールがあり,これは手動で読み込む必要があります.
9878 \end_layout
9879
9880 \begin_layout Standard
9881 既定では,定理類は,文書を通して連番が振られますが,これは
9882 \begin_inset Flex Code
9883 status collapsed
9884
9885 \begin_layout Plain Layout
9886 定理(節毎連番)
9887 \end_layout
9888
9889 \end_inset
9890
9891 モジュールを読み込めば変更することができ,
9892 \begin_inset Flex Code
9893 status collapsed
9894
9895 \begin_layout Plain Layout
9896 book (AMS)
9897 \end_layout
9898
9899 \end_inset
9900
9901 を使用している場合には
9902 \begin_inset Flex Code
9903 status collapsed
9904
9905 \begin_layout Plain Layout
9906 定理(章毎連番)
9907 \end_layout
9908
9909 \end_inset
9910
9911 を用いても変更することができます.これらを用いると,出力は
9912 \begin_inset Formula $n.m$
9913 \end_inset
9914
9915 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
9916 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
9917 \emph on
9918 のみ
9919 \emph default
9920 が欲しい場合には,
9921 \begin_inset Flex Code
9922 status collapsed
9923
9924 \begin_layout Plain Layout
9925 定理(連番なし)
9926 \end_layout
9927
9928 \end_inset
9929
9930 モジュールを用います.
9931 \end_layout
9932
9933 \begin_layout Standard
9934 これらのモジュールは,AMSクラスで使用する
9935 \emph on
9936 必要はない
9937 \emph default
9938 ことに注意してください.
9939 \begin_inset Flex Code
9940 status collapsed
9941
9942 \begin_layout Plain Layout
9943 定理(AMS)
9944 \end_layout
9945
9946 \end_inset
9947
9948 モジュールや上述の他のモジュールは,他のクラス,たとえば
9949 \begin_inset Flex Code
9950 status collapsed
9951
9952 \begin_layout Plain Layout
9953 article
9954 \end_layout
9955
9956 \end_inset
9957
9958
9959 \begin_inset Flex Code
9960 status collapsed
9961
9962 \begin_layout Plain Layout
9963 report
9964 \end_layout
9965
9966 \end_inset
9967
9968
9969 \begin_inset Flex Code
9970 status collapsed
9971
9972 \begin_layout Plain Layout
9973 book (KOMA-script)
9974 \end_layout
9975
9976 \end_inset
9977
9978 などで問題なく使用することができます.
9979 \end_layout
9980
9981 \begin_layout Subsection
9982 これらのレイアウトが提供するもの
9983 \end_layout
9984
9985 \begin_layout Standard
9986 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
9987 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
9988 す.しかし,AMSは,\SpecialChar LyX
9989 で利用可能になっている環境のみを使用することを推奨しています.
9990 \end_layout
9991
9992 \begin_layout Standard
9993 \begin_inset Flex Code
9994 status collapsed
9995
9996 \begin_layout Plain Layout
9997 article (AMS)
9998 \end_layout
9999
10000 \end_inset
10001
10002
10003 \begin_inset Flex Code
10004 status collapsed
10005
10006 \begin_layout Plain Layout
10007 book (AMS)
10008 \end_layout
10009
10010 \end_inset
10011
10012 には,——
10013 \begin_inset space ~
10014 \end_inset
10015
10016
10017 \begin_inset Flex Noun
10018 status collapsed
10019
10020 \begin_layout Plain Layout
10021
10022 \end_layout
10023
10024 \end_inset
10025
10026
10027 \begin_inset Flex Noun
10028 status collapsed
10029
10030 \begin_layout Plain Layout
10031 書誌情報
10032 \end_layout
10033
10034 \end_inset
10035
10036
10037 \begin_inset Flex Noun
10038 status collapsed
10039
10040 \begin_layout Plain Layout
10041 タイトル
10042 \end_layout
10043
10044 \end_inset
10045
10046
10047 \begin_inset Flex Noun
10048 status collapsed
10049
10050 \begin_layout Plain Layout
10051 著者
10052 \end_layout
10053
10054 \end_inset
10055
10056
10057 \begin_inset Flex Noun
10058 status collapsed
10059
10060 \begin_layout Plain Layout
10061 日付
10062 \end_layout
10063
10064 \end_inset
10065
10066 のような標準環境の他に
10067 \begin_inset space ~
10068 \end_inset
10069
10070 ——
10071 \begin_inset space ~
10072 \end_inset
10073
10074 以下の環境があります.
10075 \end_layout
10076
10077 \begin_layout Description
10078 住所 これは著者の恒久的な住所です.
10079 \end_layout
10080
10081 \begin_layout Description
10082 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
10083 \end_layout
10084
10085 \begin_layout Description
10086 電子メール 著者の電子メールアドレス
10087 \end_layout
10088
10089 \begin_layout Description
10090 URL 著者のウェブアドレス.任意.
10091 \end_layout
10092
10093 \begin_layout Description
10094 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
10095 \end_layout
10096
10097 \begin_layout Description
10098 分野分類 
10099 \emph on
10100 Mathematical Reviews
10101 \emph default
10102 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
10103 す.
10104 \end_layout
10105
10106 \begin_layout Description
10107 謝辞
10108 \end_layout
10109
10110 \begin_layout Description
10111 献呈
10112 \end_layout
10113
10114 \begin_layout Description
10115 翻訳者
10116 \end_layout
10117
10118 \begin_layout Standard
10119 以下の環境は,
10120 \begin_inset Flex Code
10121 status collapsed
10122
10123 \begin_layout Plain Layout
10124 定理
10125 \end_layout
10126
10127 \end_inset
10128
10129 モジュールと
10130 \begin_inset Flex Code
10131 status collapsed
10132
10133 \begin_layout Plain Layout
10134 定理(AMS)
10135 \end_layout
10136
10137 \end_inset
10138
10139 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
10140 \begin_inset Flex Code
10141 status collapsed
10142
10143 \begin_layout Plain Layout
10144 定理(連番なし)
10145 \end_layout
10146
10147 \end_inset
10148
10149 モジュールでは,同環境の星付き版だけが提供されます.
10150 \end_layout
10151
10152 \begin_layout Theorem
10153 これは,通常,得られた主要な結果を叙述するのに使用されます.
10154 \end_layout
10155
10156 \begin_layout Corollary*
10157 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
10158 \end_layout
10159
10160 \begin_layout Lemma
10161 他の叙述を証明するために必要とされる,比較的小さな結果です.
10162 \end_layout
10163
10164 \begin_layout Proposition
10165 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
10166 \end_layout
10167
10168 \begin_layout Conjecture
10169 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
10170 \end_layout
10171
10172 \begin_layout Definition*
10173 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
10174 \end_layout
10175
10176 \begin_layout Problem
10177 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
10178 \end_layout
10179
10180 \begin_layout Exercise*
10181 この環境の説明を記述せよ.
10182 \end_layout
10183
10184 \begin_layout Note
10185 この環境もtheorem型,通常は重要性の低い所見に用いられます.
10186 \end_layout
10187
10188 \begin_layout Claim*
10189 より大きな結果の証明を与える途中で,しばしば用いられます.
10190 \end_layout
10191
10192 \begin_layout Case
10193 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
10194 \end_layout
10195
10196 \begin_layout Case
10197 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
10198 \end_layout
10199
10200 \begin_layout Proof
10201 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
10202 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
10203 \emph on
10204 ユーザーの手引き
10205 \emph default
10206
10207 \emph on
10208 環境を入れ子にする
10209 \emph default
10210 の節をご覧ください.
10211 \end_layout
10212
10213 \begin_layout Standard
10214 そして,以下は
10215 \begin_inset Flex Code
10216 status collapsed
10217
10218 \begin_layout Plain Layout
10219 定理(AMS拡張)
10220 \end_layout
10221
10222 \end_inset
10223
10224 で提供されるものです.
10225 \end_layout
10226
10227 \begin_layout Criterion*
10228 必要とされる条件です.
10229 \end_layout
10230
10231 \begin_layout Algorithm*
10232 使用する一般的手順です.
10233 \end_layout
10234
10235 \begin_layout Axiom*
10236 議論されている系内部で真と仮定される性質や命題です.
10237 \end_layout
10238
10239 \begin_layout Condition*
10240 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
10241 \end_layout
10242
10243 \begin_layout Note*
10244 注記と同様です.
10245 \end_layout
10246
10247 \begin_layout Notation*
10248 表記法の説明に用いられます.
10249 \end_layout
10250
10251 \begin_layout Summary
10252 本当に説明する必要がありますか?
10253 \end_layout
10254
10255 \begin_layout Acknowledgement*
10256 謝辞(acknowledgement)です.
10257 \end_layout
10258
10259 \begin_layout Conclusion*
10260 長い議論の終わりに時々用いられます.
10261 \end_layout
10262
10263 \begin_layout Fact
10264 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
10265 \end_layout
10266
10267 \begin_layout Standard
10268 さらに,AMSクラスは,AMS \SpecialChar LaTeX
10269 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
10270 る必要があります.
10271 \end_layout
10272
10273 \begin_layout Section
10274 AGU各誌(
10275 \family sans
10276 aguplus)
10277 \end_layout
10278
10279 \begin_layout Standard
10280
10281 \noun on
10282 Martin Vermeer
10283 \noun default
10284
10285 \end_layout
10286
10287 \begin_layout Subsection
10288 概要
10289 \end_layout
10290
10291 \begin_layout Standard
10292 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです.AGU発行のクラスファイルおよび
10293 AGUplusの両方(これらは
10294 \begin_inset Flex URL
10295 status collapsed
10296
10297 \begin_layout Plain Layout
10298
10299 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10300 \end_layout
10301
10302 \end_inset
10303
10304 にあります)が導入されていることが必要です.
10305 \end_layout
10306
10307 \begin_layout Subsection
10308 新しいスタイル
10309 \end_layout
10310
10311 \begin_layout Standard
10312
10313 \family sans
10314 段落
10315 \family default
10316 および
10317 \family sans
10318 段落*
10319 \family default
10320 は,定義し直されています.\SpecialChar LyX
10321 の画面では,依然として
10322 \family sans
10323 段落
10324 \family default
10325
10326 \family sans
10327 段落*
10328 \family default
10329 と表示されますが,AGUクラスにおける\SpecialChar LaTeX
10330 の対応物は,
10331 \family sans
10332 Subsubsubsection
10333 \family default
10334
10335 \family sans
10336 Subsubsubsection*
10337 \family default
10338 です.
10339 \end_layout
10340
10341 \begin_layout Standard
10342 新しく定義されたスタイルには,
10343 \family sans
10344 左ヘッダ
10345 \family default
10346
10347 \family sans
10348 右ヘッダ
10349 \family default
10350
10351 \family sans
10352 受理日
10353 \family default
10354
10355 \family sans
10356 改訂
10357 \family default
10358
10359 \family sans
10360 採択日
10361 \family default
10362
10363 \family sans
10364 CCC
10365 \family default
10366
10367 \family sans
10368 論文ID
10369 \family default
10370
10371 \family sans
10372 著者住所
10373 \family default
10374
10375 \family sans
10376 廃棄用コメント
10377 \family default
10378 があります.これらは,ほとんど草稿用属性で,AGUクラス説明書で説明されています.
10379 \end_layout
10380
10381 \begin_layout Standard
10382 おそらく,これはまだ恐ろしく不完全です.
10383 \end_layout
10384
10385 \begin_layout Subsection
10386 新しいフロート
10387 \end_layout
10388
10389 \begin_layout Standard
10390
10391 \family sans
10392 平面表(Planotable
10393 \family default
10394 )と
10395 \family sans
10396 挿絵
10397 \family default
10398 (Plate)が新しいフロートです.また,
10399 \family sans
10400 表キャプション
10401 \family default
10402 も付け加えられています.
10403 \end_layout
10404
10405 \begin_layout Subsection
10406 サポートされている学術誌
10407 \end_layout
10408
10409 \begin_layout Itemize
10410
10411 \emph on
10412 Journal of Geophysical Research
10413 \emph default
10414
10415 \family typewriter
10416 jgrga.layout
10417 \family default
10418  — Martin Vermeer
10419 \end_layout
10420
10421 \begin_layout Standard
10422 ここにあなたの作ったものを加えてください.難しくはありません.
10423 \family typewriter
10424 jgrga.layout
10425 \family default
10426 と 
10427 \family typewriter
10428 aguplus.inc
10429 \family default
10430 を用例として見てください.
10431 \end_layout
10432
10433 \begin_layout Subsection
10434 バグと注意すべきこと
10435 \end_layout
10436
10437 \begin_layout Standard
10438 新しいレイアウトを使うためには,新規文書の作成時に以下の手順を行う必要があります.
10439 \end_layout
10440
10441 \begin_layout Enumerate
10442
10443 \emph on
10444 babelを無効にしてください.
10445 \emph default
10446 これは,
10447 \family sans
10448 ツール\SpecialChar menuseparator
10449 設定
10450 \family default
10451 メニュー項目で行うことができます(AGUの論文は常に英語ですよね.ですから他の言語は
10452 \emph on
10453 選ばないで下さい
10454 \emph default
10455 ).
10456 \end_layout
10457
10458 \begin_layout Enumerate
10459 使用文書の追加オプションフィールドに
10460 \family typewriter
10461 jgrga
10462 \family default
10463 と入力してください(すみません,これはバグです).
10464 \end_layout
10465
10466 \begin_layout Enumerate
10467 Bib\SpecialChar TeX
10468 差込枠の2番目のフィールドに
10469 \family sans
10470 agu
10471 \family default
10472 と入力して,書誌情報のスタイルに
10473 \family typewriter
10474 agu.bst
10475 \family default
10476 を使用していることを確認してください.標準スタイルはうまく動作しません.
10477 \end_layout
10478
10479 \begin_layout Section
10480 Broadway
10481 \end_layout
10482
10483 \begin_layout Standard
10484
10485 \noun on
10486 Garst Reese
10487 \noun default
10488
10489 \end_layout
10490
10491 \begin_layout Subsection
10492 はじめに
10493 \end_layout
10494
10495 \begin_layout Standard
10496 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
10497 \end_layout
10498
10499 \begin_layout Subsection
10500 特別な問題
10501 \end_layout
10502
10503 \begin_layout Standard
10504 Hollywoodと同様です.
10505 \end_layout
10506
10507 \begin_layout Subsection
10508 特別の機能
10509 \end_layout
10510
10511 \begin_layout Standard
10512
10513 \family sans
10514 話者
10515 \family default
10516 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
10517 \end_layout
10518
10519 \begin_layout Subsection
10520 用紙寸法と余白
10521 \end_layout
10522
10523 \begin_layout Standard
10524 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
10525 \end_layout
10526
10527 \begin_layout Subsection
10528 環境
10529 \end_layout
10530
10531 \begin_layout Standard
10532 以下の環境を使うことができます.右に記してある
10533 \begin_inset Flex Ruby
10534 status collapsed
10535
10536 \begin_layout Plain Layout
10537
10538 \begin_inset Argument post:1
10539 status collapsed
10540
10541 \begin_layout Plain Layout
10542 キー
10543 \end_layout
10544
10545 \end_inset
10546
10547
10548 \end_layout
10549
10550 \end_inset
10551
10552 割当ては,broadway.bindを使った場合のものです.
10553 \end_layout
10554
10555 \begin_layout Itemize
10556
10557 \family sans
10558 標準
10559 \begin_inset Newline newline
10560 \end_inset
10561
10562
10563 \family default
10564 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
10565 \end_layout
10566
10567 \begin_layout Itemize
10568
10569 \family sans
10570 ト書き
10571 \begin_inset space \hfill{}
10572 \end_inset
10573
10574 M-z n
10575 \begin_inset Newline newline
10576 \end_inset
10577
10578
10579 \family default
10580 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
10581 \end_layout
10582
10583 \begin_layout Itemize
10584
10585 \family sans
10586
10587 \begin_inset space \hfill{}
10588 \end_inset
10589
10590 M-z a
10591 \begin_inset Newline newline
10592 \end_inset
10593
10594
10595 \family default
10596 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
10597 \end_layout
10598
10599 \begin_layout Itemize
10600
10601 \family sans
10602 幕*
10603 \begin_inset space \hfill{}
10604 \end_inset
10605
10606 M-z S at
10607 \begin_inset Newline newline
10608 \end_inset
10609
10610
10611 \family default
10612 幕の副題です.単に中央揃えの文になります.
10613 \end_layout
10614
10615 \begin_layout Itemize
10616
10617 \family sans
10618 場面
10619 \begin_inset space \hfill{}
10620 \end_inset
10621
10622 M-z S-S
10623 \begin_inset Newline newline
10624 \end_inset
10625
10626
10627 \family default
10628 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
10629 \end_layout
10630
10631 \begin_layout Itemize
10632
10633 \family sans
10634 幕開きに:
10635 \begin_inset space \hfill{}
10636 \end_inset
10637
10638 M-z S-R
10639 \begin_inset Newline newline
10640 \end_inset
10641
10642
10643 \family default
10644 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
10645 \end_layout
10646
10647 \begin_layout Itemize
10648
10649 \family sans
10650 話者
10651 \begin_inset space \hfill{}
10652 \end_inset
10653
10654 M-z s
10655 \begin_inset Newline newline
10656 \end_inset
10657
10658
10659 \family default
10660 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
10661 \end_layout
10662
10663 \begin_layout Itemize
10664
10665 \family sans
10666 括弧付き
10667 \begin_inset space \hfill{}
10668 \end_inset
10669
10670 M-z p
10671 \begin_inset Newline newline
10672 \end_inset
10673
10674
10675 \family default
10676 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
10677 \family sans
10678 対話
10679 \family default
10680 の中だけで使用されます. 
10681 \end_layout
10682
10683 \begin_layout Itemize
10684
10685 \family sans
10686 対話
10687 \begin_inset space \hfill{}
10688 \end_inset
10689
10690 M-z d
10691 \begin_inset Newline newline
10692 \end_inset
10693
10694
10695 \family default
10696 話者の言う内容.
10697 \end_layout
10698
10699 \begin_layout Itemize
10700
10701 \family sans
10702 幕切れ
10703 \begin_inset space \hfill{}
10704 \end_inset
10705
10706 M-z S-C
10707 \begin_inset Newline newline
10708 \end_inset
10709
10710
10711 \family default
10712 幕が降ります.
10713 \end_layout
10714
10715 \begin_layout Itemize
10716
10717 \family sans
10718 タイトル
10719 \begin_inset space \hfill{}
10720 \end_inset
10721
10722 M-z S-T
10723 \end_layout
10724
10725 \begin_layout Itemize
10726
10727 \family sans
10728 著者
10729 \begin_inset space \hfill{}
10730 \end_inset
10731
10732 M-z S-A
10733 \end_layout
10734
10735 \begin_layout Itemize
10736
10737 \family sans
10738 右寄せ住所
10739 \begin_inset space \hfill{}
10740 \end_inset
10741
10742 M-z r
10743 \end_layout
10744
10745 \begin_layout Section
10746 Dinbrief
10747 \end_layout
10748
10749 \begin_layout Standard
10750 文書クラス
10751 \family sans
10752 dinbrief
10753 \family default
10754 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
10755 \family typewriter
10756 .../lyx/share/templates
10757 \family default
10758 にあるので,それを土台として使用してください.
10759 \end_layout
10760
10761 \begin_layout Section
10762 EGS各誌
10763 \family sans
10764 (egs)
10765 \end_layout
10766
10767 \begin_layout Standard
10768
10769 \noun on
10770 Martin Vermeer
10771 \noun default
10772
10773 \end_layout
10774
10775 \begin_layout Subsection
10776 概要
10777 \end_layout
10778
10779 \begin_layout Standard
10780 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです.必要とされる
10781 \family typewriter
10782 egs.cls
10783 \family default
10784 は,EGSのウェブサイト
10785 \begin_inset Flex URL
10786 status collapsed
10787
10788 \begin_layout Plain Layout
10789
10790 http://www.copernicus.org/
10791 \end_layout
10792
10793 \end_inset
10794
10795 からダウンロードできます.
10796 \end_layout
10797
10798 \begin_layout Subsection
10799 新しいスタイル
10800 \end_layout
10801
10802 \begin_layout Standard
10803 新しいスタイルとして,
10804 \family sans
10805 右寄せ住所
10806 \family default
10807
10808 \family sans
10809 \SpecialChar LaTeX
10810 タイトル
10811 \family default
10812
10813 \family sans
10814 所属
10815 \family default
10816
10817 \family sans
10818 学術誌名
10819 \family default
10820
10821 \family sans
10822 原稿番号
10823 \family default
10824
10825 \family sans
10826 筆頭著者
10827 \family default
10828
10829 \family sans
10830 受理日
10831 \family default
10832
10833 \family sans
10834 採択日
10835 \family default
10836
10837 \family sans
10838 オフセット
10839 \family default
10840 があります.現在のレイアウトファイルは,残念ながらほとんどモジュール化されておらず,さまざまな
10841 \family typewriter
10842 std*.inc
10843 \family default
10844 ファイルを読み込む形に変えた方が便利になると思われます.
10845 \end_layout
10846
10847 \begin_layout Section
10848 Elsevier各誌
10849 \end_layout
10850
10851 \begin_layout Standard
10852 \SpecialChar LyX
10853 ひな型ファイルの
10854 \family typewriter
10855 elsarticle.lyx
10856 \family default
10857 を参照してください.必要な情報は全てそこにあります.
10858 \end_layout
10859
10860 \begin_layout Section
10861 Foils (別名Foil\SpecialChar TeX
10862 )
10863 \begin_inset CommandInset label
10864 LatexCommand label
10865 name "sec:foiltex"
10866
10867 \end_inset
10868
10869
10870 \end_layout
10871
10872 \begin_layout Standard
10873
10874 \noun on
10875 Allan Rae
10876 \noun default
10877
10878 \end_layout
10879
10880 \begin_layout Subsection
10881 はじめに
10882 \end_layout
10883
10884 \begin_layout Standard
10885 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
10886 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
10887 ・seminar・b
10888 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
10889 \end_layout
10890
10891 \begin_layout Standard
10892 誤解のないように,わかりやすく明確に,もう一度言っておきます.
10893 \end_layout
10894
10895 \begin_layout Standard
10896 \begin_inset VSpace bigskip
10897 \end_inset
10898
10899
10900 \end_layout
10901
10902 \begin_layout Standard
10903 \align center
10904
10905 \size large
10906 本節は「
10907 \family sans
10908 FoilTeX
10909 \family default
10910 」クラス
10911 \emph on
10912 のみの
10913 \emph default
10914 解説を行います.
10915 \end_layout
10916
10917 \begin_layout Standard
10918 \begin_inset VSpace bigskip
10919 \end_inset
10920
10921
10922 \end_layout
10923
10924 \begin_layout Standard
10925
10926 \family sans
10927 transparencies (slides)
10928 \family default
10929 」の解説をお探しであれば,第
10930 \begin_inset CommandInset ref
10931 LatexCommand ref
10932 reference "sec:slitex"
10933
10934 \end_inset
10935
10936 節をご覧ください.お使いのコンピュータに
10937 \family sans
10938 foils
10939 \family default
10940 クラス
10941 \family sans
10942 FoilTeX
10943 \family default
10944 が導入されていなければ,
10945 \family sans
10946 foils
10947 \family default
10948 ほど良くはありませんが,おそらく
10949 \family sans
10950 slides
10951 \family default
10952 クラスを使わざるをえないでしょう.
10953 \end_layout
10954
10955 \begin_layout Standard
10956
10957 \family sans
10958 foils
10959 \family default
10960 クラスは,\SpecialChar LaTeX2e
10961 の一部として含まれている\SpecialChar LaTeX
10962 クラスファイル
10963 \family sans
10964 foils.cls
10965 \family default
10966 の第2.1版とともに使われるように設計されています.
10967 \end_layout
10968
10969 \begin_layout Subsection
10970 最初の一歩
10971 \end_layout
10972
10973 \begin_layout Standard
10974 いうまでもなく,この文書クラスを使うには,
10975 \family sans
10976 文書\SpecialChar menuseparator
10977 設定\SpecialChar menuseparator
10978 文書クラス
10979 \family default
10980 メニューの
10981 \family sans
10982 文書クラス
10983 \family default
10984 ドロップダウンで「
10985 \family sans
10986 FoilTeX
10987 \family default
10988 」を選択する必要があります.また,
10989 \family sans
10990 文書設定
10991 \family default
10992 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
10993 \end_layout
10994
10995 \begin_layout Itemize
10996
10997 \family sans
10998 文書設定
10999 \family default
11000 ダイアログ中の,
11001 \family sans
11002 両面文書
11003 \family default
11004 オプションと
11005 \family sans
11006 二段組文書
11007 \family default
11008 オプションは変更しないでください.これらは 
11009 \family sans
11010 foils
11011 \family default
11012 クラスでは無視されます.
11013 \end_layout
11014
11015 \begin_layout Itemize
11016 既定のフォント寸法は20ptであり,17
11017 \begin_inset space \thinspace{}
11018 \end_inset
11019
11020 pt・25
11021 \begin_inset space \thinspace{}
11022 \end_inset
11023
11024 pt・30
11025 \begin_inset space \thinspace{}
11026 \end_inset
11027
11028 ptを選択することも可能です.
11029 \end_layout
11030
11031 \begin_layout Itemize
11032 既定のフォントは
11033 \family sans
11034 sans
11035 \family default
11036  
11037 \family sans
11038 serif
11039 \family default
11040 ですが,数式ではすべて,通常のローマン体が使用されます.
11041 \end_layout
11042
11043 \begin_layout Itemize
11044 Foil\SpecialChar TeX
11045 は,35
11046 \begin_inset space \thinspace{}
11047 \end_inset
11048
11049 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
11050 \end_layout
11051
11052 \begin_layout Itemize
11053
11054 \family sans
11055 フロートの配置
11056 \family default
11057 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
11058 \end_layout
11059
11060 \begin_layout Itemize
11061 このクラスの
11062 \family sans
11063 ページレイアウト
11064 \family default
11065 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
11066 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
11067 \begin_inset CommandInset ref
11068 LatexCommand ref
11069 reference "sec:foilfoot"
11070
11071 \end_inset
11072
11073 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
11074 \emph on
11075 つねに
11076 \emph default
11077 付けられず,(ロゴが定義されていれば)ロゴは,
11078 \emph on
11079 つねに
11080 \emph default
11081 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
11082 \end_layout
11083
11084 \begin_deeper
11085 \begin_layout Labeling
11086 \labelwidthstring MMMMMMM
11087
11088 \family sans
11089 \series bold
11090 empty
11091 \family default
11092 \series default
11093  最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
11094 \end_layout
11095
11096 \begin_layout Labeling
11097 \labelwidthstring MMMMMMM
11098
11099 \family sans
11100 \series bold
11101 plain
11102 \family default
11103 \series default
11104  最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
11105 \end_layout
11106
11107 \begin_layout Labeling
11108 \labelwidthstring MMMMMMM
11109
11110 \series bold
11111 foilheadings
11112 \series default
11113  ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
11114 \end_layout
11115
11116 \begin_layout Labeling
11117 \labelwidthstring MMMMMMM
11118
11119 \series bold
11120 fancy
11121 \series default
11122  これは
11123 \family sans
11124 fancyheadings
11125 \family default
11126 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
11127 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
11128 \end_layout
11129
11130 \end_deeper
11131 \begin_layout Subsubsection
11132 任意設定クラスオプション
11133 \end_layout
11134
11135 \begin_layout Standard
11136 以下のオプションは
11137 \family sans
11138 文書設定
11139 \family default
11140 ダイアログの任意設定クラスオプションボックスで使うことができます.
11141 \end_layout
11142
11143 \begin_layout Labeling
11144 \labelwidthstring MMMMMMx
11145
11146 \series bold
11147 35mmSlide
11148 \series default
11149  これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
11150 \begin_inset space \space{}
11151 \end_inset
11152
11153 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
11154 \end_layout
11155
11156 \begin_layout Labeling
11157 \labelwidthstring MMMMMMx
11158
11159 \series bold
11160 headrule
11161 \series default
11162  タイトルページを除くすべてのページのへッダの下に罫線を入れます.
11163 \end_layout
11164
11165 \begin_layout Labeling
11166 \labelwidthstring MMMMMMx
11167
11168 \series bold
11169 footrule
11170 \series default
11171  タイトルページを除くすべてのページのフッタの上に罫線を入れます.
11172 \end_layout
11173
11174 \begin_layout Labeling
11175 \labelwidthstring MMMMMMx
11176
11177 \series bold
11178 dvips
11179 \series default
11180  これは,新規
11181 \family sans
11182 foils
11183 \family default
11184 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
11185 に指示します.
11186 \end_layout
11187
11188 \begin_layout Labeling
11189 \labelwidthstring MMMMMMx
11190
11191 \series bold
11192 landscape
11193 \series default
11194  このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
11195 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
11196 \family sans
11197 Foilhead
11198 \family default
11199 環境と
11200 \family sans
11201 Rotatefoilhead
11202 \family default
11203 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
11204 \end_layout
11205
11206 \begin_layout Labeling
11207 \labelwidthstring MMMMMMx
11208
11209 \series bold
11210 leqno
11211 \series default
11212  数式番号を左側に付けます.
11213 \end_layout
11214
11215 \begin_layout Labeling
11216 \labelwidthstring MMMMMMx
11217
11218 \series bold
11219 fleqn
11220 \series default
11221  数式を左揃えにします.
11222 \end_layout
11223
11224 \begin_layout Subsection
11225 サポートされる環境
11226 \end_layout
11227
11228 \begin_layout Standard
11229 他のクラスで標準的にサポートされている環境は,
11230 \family sans
11231 foils
11232 \family default
11233 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
11234 が提供している環境と,\SpecialChar LyX
11235 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
11236 \end_layout
11237
11238 \begin_layout Standard
11239
11240 \family sans
11241 \begin_inset Flex Multiple Columns
11242 status open
11243
11244 \begin_layout Itemize
11245
11246 \family sans
11247 標準
11248 \end_layout
11249
11250 \begin_layout Itemize
11251
11252 \family sans
11253 箇条書き(記号)
11254 \end_layout
11255
11256 \begin_layout Itemize
11257
11258 \family sans
11259 箇条書き(連番)
11260 \end_layout
11261
11262 \begin_layout Itemize
11263
11264 \family sans
11265 箇条書き(記述)
11266 \end_layout
11267
11268 \begin_layout Itemize
11269
11270 \family sans
11271 箇条書き(リスト)
11272 \end_layout
11273
11274 \begin_layout Itemize
11275
11276 \family sans
11277 \SpecialChar LyX
11278 コード
11279 \end_layout
11280
11281 \begin_layout Itemize
11282
11283 \family sans
11284 詩句
11285 \end_layout
11286
11287 \begin_layout Itemize
11288
11289 \family sans
11290 引用(字下げあり)
11291 \end_layout
11292
11293 \begin_layout Itemize
11294
11295 \family sans
11296 引用(字下げなし)
11297 \end_layout
11298
11299 \begin_layout Itemize
11300
11301 \family sans
11302 タイトル
11303 \end_layout
11304
11305 \begin_layout Itemize
11306
11307 \family sans
11308 著者
11309 \end_layout
11310
11311 \begin_layout Itemize
11312
11313 \family sans
11314 日付
11315 \end_layout
11316
11317 \begin_layout Itemize
11318
11319 \family sans
11320 概要
11321 \end_layout
11322
11323 \begin_layout Itemize
11324
11325 \family sans
11326 書誌情報
11327 \end_layout
11328
11329 \begin_layout Itemize
11330
11331 \family sans
11332 住所
11333 \end_layout
11334
11335 \begin_layout Itemize
11336
11337 \family sans
11338 右寄せ住所
11339 \end_layout
11340
11341 \begin_layout Itemize
11342
11343 \family sans
11344 キャプション
11345 \end_layout
11346
11347 \begin_layout Itemize
11348
11349 \family sans
11350 コメント
11351 \end_layout
11352
11353 \end_inset
11354
11355
11356 \end_layout
11357
11358 \begin_layout Standard
11359 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
11360 \family sans
11361 Foil
11362 \family default
11363 \SpecialChar TeX
11364 は新しいスライドを始める以下のようなコマンドを備えています.
11365 \end_layout
11366
11367 \begin_layout Itemize
11368
11369 \family sans
11370 スライドタイトル(Foilhead)
11371 \end_layout
11372
11373 \begin_layout Itemize
11374
11375 \family sans
11376 横置きスライドタイトル(Rotatefoilhead)
11377 \end_layout
11378
11379 \begin_layout Standard
11380 \SpecialChar LyX
11381 は,以下のような,これらを若干修正した環境も用意しています.
11382 \end_layout
11383
11384 \begin_layout Itemize
11385
11386 \family sans
11387 スライドタイトル(小)(ShortFoilhead)
11388 \end_layout
11389
11390 \begin_layout Itemize
11391
11392 \family sans
11393 横置きスライドタイトル(小)(ShortRotatefoilhead)
11394 \end_layout
11395
11396 \begin_layout Standard
11397 これらの違いは次節で説明します.
11398 \end_layout
11399
11400 \begin_layout Standard
11401 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
11402 \family sans
11403 Foil
11404 \family default
11405 \SpecialChar TeX
11406 はそれらを説明するのに便利な環境を幅広く用意しています.
11407 \end_layout
11408
11409 \begin_layout Standard
11410
11411 \family sans
11412 \begin_inset Flex Multiple Columns
11413 status open
11414
11415 \begin_layout Itemize
11416
11417 \family sans
11418 定理
11419 \end_layout
11420
11421 \begin_layout Itemize
11422
11423 \family sans
11424 補題
11425 \end_layout
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 補題*
11461 \end_layout
11462
11463 \begin_layout Itemize
11464
11465 \family sans
11466 系*
11467 \end_layout
11468
11469 \begin_layout Itemize
11470
11471 \family sans
11472 命題*
11473 \end_layout
11474
11475 \begin_layout Itemize
11476
11477 \family sans
11478 定義*
11479 \end_layout
11480
11481 \end_inset
11482
11483
11484 \end_layout
11485
11486 \begin_layout Standard
11487 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
11488 で追加された以下の2つの箇条書き環境があります.
11489 \end_layout
11490
11491 \begin_layout Itemize
11492
11493 \family sans
11494 箇条書き(チック)
11495 \end_layout
11496
11497 \begin_layout Itemize
11498
11499 \family sans
11500 箇条書き(クロス)
11501 \end_layout
11502
11503 \begin_layout Standard
11504 Foil\SpecialChar TeX
11505 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
11506 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
11507 \end_layout
11508
11509 \begin_layout Standard
11510 この目的のためには,以下のコマンドスタイルがあります(
11511 \shape smallcaps
11512 Martin Vermeer).
11513 \end_layout
11514
11515 \begin_layout Standard
11516 \begin_inset Flex Multiple Columns
11517 status open
11518
11519 \begin_layout Itemize
11520
11521 \family sans
11522 グラフィックスロゴ
11523 \end_layout
11524
11525 \begin_layout Itemize
11526
11527 \family sans
11528 配布制限
11529 \end_layout
11530
11531 \begin_layout Itemize
11532
11533 \family sans
11534 右フッタ
11535 \end_layout
11536
11537 \begin_layout Itemize
11538
11539 \family sans
11540 右ヘッダ
11541 \end_layout
11542
11543 \begin_layout Itemize
11544
11545 \family sans
11546 左ヘッダ
11547 \family default
11548
11549 \end_layout
11550
11551 \begin_deeper
11552 \begin_layout Plain Layout
11553 \begin_inset space ~
11554 \end_inset
11555
11556
11557 \end_layout
11558
11559 \end_deeper
11560 \end_inset
11561
11562
11563 \end_layout
11564
11565 \begin_layout Standard
11566 Foil\SpecialChar TeX
11567 が提供しているコマンドで,\SpecialChar LyX
11568 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
11569 \begin_inset CommandInset ref
11570 LatexCommand ref
11571 reference "sec:unsuppfoils"
11572
11573 \end_inset
11574
11575 節で行います.
11576 \end_layout
11577
11578 \begin_layout Subsection
11579 スライドの組を作る
11580 \end_layout
11581
11582 \begin_layout Standard
11583 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
11584
11585 \family typewriter
11586 examples
11587 \family default
11588 フォルダにある
11589 \family typewriter
11590 Foils.lyx
11591 \family default
11592 ファイルをご覧ください.
11593 \end_layout
11594
11595 \begin_layout Subsubsection
11596 タイトルページを作る
11597 \end_layout
11598
11599 \begin_layout Standard
11600
11601 \family sans
11602 タイトル
11603 \family default
11604
11605 \family sans
11606 著者
11607 \family default
11608
11609 \family sans
11610 日付
11611 \family default
11612
11613 \family sans
11614 概要
11615 \family default
11616 環境のある他のクラスとは異なり,
11617 \family sans
11618 foils
11619 \family default
11620 は独立したページにタイトルを作成します.
11621 \family sans
11622 日付
11623 \family default
11624 環境を使用しなかった場合には,\SpecialChar LaTeX
11625 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
11626 \end_layout
11627
11628 \begin_layout Subsubsection
11629 新しいスライドを開始する
11630 \end_layout
11631
11632 \begin_layout Standard
11633 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
11634 \family sans
11635 スライドタイトル(Foilhead)
11636 \family default
11637
11638 \family sans
11639 スライドタイトル(小)(ShortFoilhead)
11640 \family default
11641 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
11642 \end_layout
11643
11644 \begin_layout Standard
11645 横向きのスライドは,
11646 \family sans
11647 横向きスライドタイトル(Rotatefoilhead)
11648 \family default
11649 か横向きスライドタイトル(小)(
11650 \family sans
11651 ShortRotatefoilhead)
11652 \family default
11653 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
11654 (約1.27cm)小さくなります.
11655 \end_layout
11656
11657 \begin_layout Standard
11658 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
11659 \family typewriter
11660 dvips
11661 \family default
11662 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
11663 \family typewriter
11664 dvips
11665 \family default
11666 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
11667 \end_layout
11668
11669 \begin_layout Subsubsection
11670 定理・補題・証明など
11671 \end_layout
11672
11673 \begin_layout Standard
11674 \SpecialChar LyX
11675 中の小さなバグによって,これらの環境の同じ型をお互いに直接続けて置くことはできません.これらは何かによって分離されなくてはなりません.仮に二つ続けて置いても,2
11676 つの環境をマージしたかのように,前の環境が延長されるだけです.この問題を回避するにはどうすればよいのでしょうか.最も簡単な方法は,二つの環境の間に何か文章を置く
11677 か,あるいは二つの間に「
11678 \family typewriter
11679 %
11680 \family default
11681 」だけから成る\SpecialChar LaTeX
11682 環境を置くことです.これによって,\SpecialChar LyX
11683 は2つの別々の環境を生成するように強制され,正しい\SpecialChar LaTeX
11684 出力を得ることができます.\SpecialChar LyX
11685 頒布版に含まれる用例ファイルに例があ
11686 ります.この問題は,二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください.
11687 \end_layout
11688
11689 \begin_layout Subsubsection
11690 箇条書き
11691 \end_layout
11692
11693 \begin_layout Standard
11694 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
11695 他の箇条書き環境について詳しく知りたい場合には,
11696 \emph on
11697 ユーザーの手引き
11698 \emph default
11699 をご覧ください.記号による箇条書きを使用したい場合には,上記第
11700 \begin_inset CommandInset ref
11701 LatexCommand ref
11702 reference "sec:ブリット"
11703
11704 \end_inset
11705
11706 節の
11707 \family sans
11708 箇条書き(記号)ブリットの指定
11709 \family default
11710 の節も,読まれることが望ましいでしょう.
11711 \end_layout
11712
11713 \begin_layout Standard
11714
11715 \family sans
11716 箇条書き(チック)
11717 \family default
11718
11719 \family sans
11720 箇条書き(クロス)
11721 \family default
11722 の二つの新しい様式は,チェック印や
11723 \begin_inset Formula $\times$
11724 \end_inset
11725
11726 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
11727 \family sans
11728 箇条書き(記号)
11729 \family default
11730 の派生型を専用に用意したものに過ぎません.ただし,これらは,
11731 \family typewriter
11732 psnfss
11733 \family default
11734 パッケージが導入済であることを要求します.
11735 \end_layout
11736
11737 \begin_layout Subsubsection
11738 図と表
11739 \end_layout
11740
11741 \begin_layout Standard
11742 Foil\SpecialChar TeX
11743 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
11744 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
11745 \end_layout
11746
11747 \begin_layout Subsubsection
11748 ページヘッダおよびページフッタ
11749 \begin_inset CommandInset label
11750 LatexCommand label
11751 name "sec:foilfoot"
11752
11753 \end_inset
11754
11755
11756 \end_layout
11757
11758 \begin_layout Standard
11759
11760 \family sans
11761 グラフィックスロゴ
11762 \family default
11763
11764 \family sans
11765 配布制限
11766 \family default
11767 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by 
11768 \family sans
11769 Foil
11770 \family default
11771 \SpecialChar TeX
11772 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
11773 \end_layout
11774
11775 \begin_layout Standard
11776 スライドの残り三隅には,
11777 \family sans
11778 右フッタ
11779 \family default
11780 (既定ではページ番号)・
11781 \family sans
11782 右ヘッダ
11783 \family default
11784 (右上)・
11785 \family sans
11786 左ヘッダ
11787 \family default
11788 (左上)を使って文字を入れることができます.
11789 \end_layout
11790
11791 \begin_layout Subsection
11792 サポートされない 
11793 \family sans
11794 Foil
11795 \family default
11796 \SpecialChar TeX
11797 機能
11798 \begin_inset CommandInset label
11799 LatexCommand label
11800 name "sec:unsuppfoils"
11801
11802 \end_inset
11803
11804
11805 \end_layout
11806
11807 \begin_layout Standard
11808 以下で言及されているコマンドは,
11809 \family sans
11810 \SpecialChar LaTeX
11811
11812 \family default
11813 環境内で設定されるか,他の環境中の
11814 \family sans
11815 \SpecialChar TeX
11816 コード
11817 \family default
11818 として設定される必要があります.
11819 \end_layout
11820
11821 \begin_layout Subsubsection
11822 長さ
11823 \end_layout
11824
11825 \begin_layout Standard
11826 長さは,すべて
11827 \family typewriter
11828
11829 \backslash
11830 setlength{
11831 \family default
11832 \emph on
11833 長さ名
11834 \family typewriter
11835 \emph default
11836 }{
11837 \family default
11838 \emph on
11839 新規長さ
11840 \family typewriter
11841 \emph default
11842 }
11843 \family default
11844 コマンドで調節されます.ここで
11845 \emph on
11846 長さ名
11847 \emph default
11848 は,変更したい長さに付けられている名前で置き換え,
11849 \emph on
11850 新規長さ
11851 \emph default
11852 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
11853 \family typewriter
11854
11855 \backslash
11856 textwidth
11857 \family default
11858 のように文書比あるいはフォント基準の長さで指定する必要があります.
11859 \end_layout
11860
11861 \begin_layout Standard
11862
11863 \family typewriter
11864
11865 \backslash
11866 foilheadskip
11867 \family default
11868 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
11869 \begin_inset space \space{}
11870 \end_inset
11871
11872 inだけスライド本文に近づけるには,プリアンブルに
11873 \family typewriter
11874
11875 \backslash
11876 setlength{
11877 \backslash
11878 foilheadskip}{-0.5in}
11879 \family default
11880 と書き込みます.
11881 \end_layout
11882
11883 \begin_layout Standard
11884 フロート周囲の余白は,以下の長さを設定することで調整することができます.
11885 \end_layout
11886
11887 \begin_layout Labeling
11888 \labelwidthstring MMMMMMMMMMM
11889
11890 \family typewriter
11891
11892 \backslash
11893 abovefloatskip
11894 \family default
11895  本文とフロート上辺との間隔
11896 \end_layout
11897
11898 \begin_layout Labeling
11899 \labelwidthstring MMMMMMMMMMM
11900
11901 \family typewriter
11902
11903 \backslash
11904 abovecaptionskip
11905 \family default
11906  フロートとキャプションとの間隔
11907 \end_layout
11908
11909 \begin_layout Labeling
11910 \labelwidthstring MMMMMMMMMMM
11911
11912 \family typewriter
11913
11914 \backslash
11915 belowcaptionskip
11916 \family default
11917  キャプションとそれに続く本文との間隔
11918 \end_layout
11919
11920 \begin_layout Labeling
11921 \labelwidthstring MMMMMMMMMMM
11922
11923 \family typewriter
11924
11925 \backslash
11926 captionwidth
11927 \family default
11928  この長さを調整することでキャプションを,周囲の本文より短くすることができます.
11929 \family typewriter
11930
11931 \backslash
11932 textwidth
11933 \family default
11934 に対する相対的な長さで調整するのが最も良いでしょう.
11935 \end_layout
11936
11937 \begin_layout Standard
11938 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
11939 \end_layout
11940
11941 \begin_layout Labeling
11942 \labelwidthstring MMMMMMMMMMM
11943
11944 \family typewriter
11945
11946 \backslash
11947 abovetitleskip
11948 \family default
11949  へッダとタイトルとの間隔
11950 \end_layout
11951
11952 \begin_layout Labeling
11953 \labelwidthstring MMMMMMMMMMM
11954
11955 \family typewriter
11956
11957 \backslash
11958 titleauthorskip
11959 \family default
11960  
11961 \family sans
11962 タイトル
11963 \family default
11964 環境と
11965 \family sans
11966 著者
11967 \family default
11968 環境との間隔
11969 \end_layout
11970
11971 \begin_layout Labeling
11972 \labelwidthstring MMMMMMMMMMM
11973
11974 \family typewriter
11975
11976 \backslash
11977 authorauthorskip
11978 \family default
11979  著者が複数いる場合の
11980 \family sans
11981 著者
11982 \family default
11983 行の間隔
11984 \end_layout
11985
11986 \begin_layout Labeling
11987 \labelwidthstring MMMMMMMMMMM
11988
11989 \family typewriter
11990
11991 \backslash
11992 authordateskip
11993 \family default
11994  
11995 \family sans
11996 著者
11997 \family default
11998
11999 \family sans
12000 日付
12001 \family default
12002 との間隔
12003 \end_layout
12004
12005 \begin_layout Labeling
12006 \labelwidthstring MMMMMMMMMMM
12007
12008 \family typewriter
12009
12010 \backslash
12011 dateabstractskip
12012 \family default
12013  
12014 \family sans
12015 日付
12016 \family default
12017
12018 \family sans
12019 概要
12020 \family default
12021 との間隔
12022 \end_layout
12023
12024 \begin_layout Standard
12025 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
12026 \family typewriter
12027
12028 \backslash
12029 zerolistvertdimens
12030 \family default
12031 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
12032 \family typewriter
12033
12034 \backslash
12035 setlength
12036 \family default
12037 を使う必要がないことに注意してください.
12038 \end_layout
12039
12040 \begin_layout Subsubsection
12041 へッダとフッタ
12042 \end_layout
12043
12044 \begin_layout Standard
12045
12046 \family typewriter
12047
12048 \backslash
12049 LogoOn
12050 \family default
12051 および
12052 \family typewriter
12053
12054 \backslash
12055 LogoOff
12056 \family default
12057 は,
12058 \family typewriter
12059 MyLogo
12060 \family default
12061 で定義したロゴを特定のページに入れるかどうかを制御します.
12062 \family typewriter
12063
12064 \backslash
12065 LogoOff
12066 \family default
12067 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
12068 \family typewriter
12069
12070 \backslash
12071 LogoOff
12072 \family default
12073 を置き,次のスライドタイトルの直後に直接
12074 \family typewriter
12075
12076 \backslash
12077 LogoOn
12078 \family default
12079 を置いてください.
12080 \end_layout
12081
12082 \begin_layout Standard
12083
12084 \family sans
12085 文書レイアウト
12086 \family default
12087 ダイアログで
12088 \family sans
12089 fancy
12090 \family default
12091 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
12092 \family typewriter
12093
12094 \backslash
12095 let
12096 \backslash
12097 headwidth
12098 \backslash
12099 textwidth
12100 \family default
12101 を加える必要があるでしょう.これは,
12102 \family sans
12103 fancyheadings
12104 \family default
12105 パッケージが提供するページレイアウトと
12106 \family sans
12107 foils
12108 \family default
12109 クラスの提供するページレイアウトの間に衝突が発生するためです.
12110 \end_layout
12111
12112 \begin_layout Section
12113 Hollywood(Hollywoodスペック・スクリプト)
12114 \end_layout
12115
12116 \begin_layout Standard
12117
12118 \noun on
12119 Garst Reese
12120 \noun default
12121
12122 \end_layout
12123
12124 \begin_layout Subsection
12125 はじめに
12126 \end_layout
12127
12128 \begin_layout Standard
12129 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
12130 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
12131 urier 12
12132 \begin_inset space \space{}
12133 \end_inset
12134
12135 ptフォントを使わなければならず,イタリック体は用いてはいけません.
12136 \end_layout
12137
12138 \begin_layout Subsection
12139 特別な問題
12140 \end_layout
12141
12142 \begin_layout Standard
12143 話者の行は,文の途中で改行することは
12144 \emph on
12145 決して
12146 \emph default
12147 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
12148 \family sans
12149 話者
12150 \family default
12151 名を再度書き,その後に(Cont'd)と加えます.
12152 \end_layout
12153
12154 \begin_layout Subsection
12155 特別な機能
12156 \end_layout
12157
12158 \begin_layout Standard
12159
12160 \family sans
12161 話者
12162 \family default
12163 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
12164 きに話者名を挿入するのにも使用することができます.
12165 \end_layout
12166
12167 \begin_layout Subsection
12168 用紙寸法と余白
12169 \end_layout
12170
12171 \begin_layout Standard
12172 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
12173 \end_layout
12174
12175 \begin_layout Subsection
12176 環境
12177 \end_layout
12178
12179 \begin_layout Standard
12180 以下の環境が利用可能です.右に示されている
12181 \begin_inset Flex Ruby
12182 status collapsed
12183
12184 \begin_layout Plain Layout
12185
12186 \begin_inset Argument post:1
12187 status collapsed
12188
12189 \begin_layout Plain Layout
12190 キー
12191 \end_layout
12192
12193 \end_inset
12194
12195
12196 \end_layout
12197
12198 \end_inset
12199
12200 割当てを使用するには,hollywood.bindを使用してください.
12201 \end_layout
12202
12203 \begin_layout Itemize
12204
12205 \family sans
12206 一般
12207 \begin_inset Newline newline
12208 \end_inset
12209
12210
12211 \family default
12212 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
12213 \end_layout
12214
12215 \begin_layout Itemize
12216 フェイドイン:
12217 \begin_inset space \hfill{}
12218 \end_inset
12219
12220
12221 \family sans
12222 M-z S-I
12223 \family default
12224
12225 \begin_inset Newline newline
12226 \end_inset
12227
12228 通常,この後には「Sallyは目を覚ますと」のように続きます.
12229 \end_layout
12230
12231 \begin_layout Itemize
12232
12233 \family sans
12234 屋内:
12235 \begin_inset space \hfill{}
12236 \end_inset
12237
12238 M-z i
12239 \begin_inset Newline newline
12240 \end_inset
12241
12242
12243 \family default
12244 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
12245 ます.
12246 \end_layout
12247
12248 \begin_layout Itemize
12249
12250 \family sans
12251 屋外:
12252 \begin_inset space \hfill{}
12253 \end_inset
12254
12255 M-z e
12256 \begin_inset Newline newline
12257 \end_inset
12258
12259
12260 \family default
12261 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
12262 \end_layout
12263
12264 \begin_layout Itemize
12265
12266 \family sans
12267 話者
12268 \begin_inset space \hfill{}
12269 \end_inset
12270
12271 M-z s
12272 \begin_inset Newline newline
12273 \end_inset
12274
12275
12276 \family default
12277 話す役.
12278 \end_layout
12279
12280 \begin_layout Itemize
12281
12282 \family sans
12283 括弧付き
12284 \begin_inset space \hfill{}
12285 \end_inset
12286
12287 M-z p
12288 \begin_inset Newline newline
12289 \end_inset
12290
12291 話者
12292 \family default
12293 への指示.自動的に括弧()が挿入されますが,\SpecialChar LyX
12294 上で表示されるのは,左括弧( のみです.印刷出力には右括弧も表示されます.
12295 \end_layout
12296
12297 \begin_layout Itemize
12298
12299 \family sans
12300 対話
12301 \begin_inset space \hfill{}
12302 \end_inset
12303
12304 M-z d
12305 \begin_inset Newline newline
12306 \end_inset
12307
12308 話者
12309 \family default
12310 が話す内容.
12311 \end_layout
12312
12313 \begin_layout Itemize
12314
12315 \family sans
12316 画面遷移
12317 \begin_inset space \hfill{}
12318 \end_inset
12319
12320 M-z t
12321 \begin_inset Newline newline
12322 \end_inset
12323
12324
12325 \family default
12326 カメラの動きの指示.例:CUT TO:.
12327 \end_layout
12328
12329 \begin_layout Itemize
12330
12331 \family sans
12332 フェイドアウト:
12333 \begin_inset space \hfill{}
12334 \end_inset
12335
12336 M-z S-I
12337 \end_layout
12338
12339 \begin_layout Itemize
12340
12341 \family sans
12342 著者
12343 \begin_inset space \hfill{}
12344 \end_inset
12345
12346 M-z S-A
12347 \end_layout
12348
12349 \begin_layout Itemize
12350
12351 \family sans
12352 タイトル
12353 \begin_inset space \hfill{}
12354 \end_inset
12355
12356 M-z S-T
12357 \end_layout
12358
12359 \begin_layout Itemize
12360
12361 \family sans
12362 右寄せ住所
12363 \begin_inset space \hfill{}
12364 \end_inset
12365
12366 M-z r
12367 \end_layout
12368
12369 \begin_layout Subsection
12370 脚本で使われる特別な用語
12371 \end_layout
12372
12373 \begin_layout Itemize
12374 (O.S) — off screen
12375 \end_layout
12376
12377 \begin_layout Itemize
12378 (V.0) — voice over
12379 \end_layout
12380
12381 \begin_layout Itemize
12382 b.g.
12383  — background
12384 \end_layout
12385
12386 \begin_layout Itemize
12387 C.U.
12388  — close-up
12389 \end_layout
12390
12391 \begin_layout Itemize
12392 PAN — camera movement
12393 \end_layout
12394
12395 \begin_layout Itemize
12396 INSERT — cut to close-up of
12397 \end_layout
12398
12399 \begin_layout Section
12400 ijmpcおよびijmpd
12401 \end_layout
12402
12403 \begin_layout Standard
12404
12405 \noun on
12406 Panayotis Papasotiriou
12407 \noun default
12408
12409 \end_layout
12410
12411 \begin_layout Subsection
12412 概観
12413 \end_layout
12414
12415 \begin_layout Standard
12416 ijpmcパッケージは,
12417 \emph on
12418 International Journal of Modern Physics C
12419 \emph default
12420 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
12421 \emph on
12422 International Journal of Modern Physics D
12423 \emph default
12424 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
12425 \family typewriter
12426 ws-ijmpc.cls
12427 \family default
12428 および
12429 \family typewriter
12430 ws-ijmpd.cls
12431 \family default
12432 です.これらのファイルは,著者のための指針とともに,
12433 \begin_inset Flex URL
12434 status collapsed
12435
12436 \begin_layout Plain Layout
12437
12438 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12439 \end_layout
12440
12441 \end_inset
12442
12443 および
12444 \begin_inset Flex URL
12445 status collapsed
12446
12447 \begin_layout Plain Layout
12448
12449 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12450 \end_layout
12451
12452 \end_inset
12453
12454 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
12455 は,これらのパッ
12456 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
12457 で書き上げましたが,何らの問題も生じませんでした.
12458 \end_layout
12459
12460 \begin_layout Subsection
12461 論文を書く
12462 \end_layout
12463
12464 \begin_layout Standard
12465 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
12466 \family sans
12467 ファイル\SpecialChar menuseparator
12468 新規(ひな型使用)
12469 \family default
12470 をクリックして,ひな型
12471 \family typewriter
12472 ijmpc.lyx
12473 \family default
12474 もしくは
12475 \family typewriter
12476 ijmpd.lyx
12477 \family default
12478 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
12479 \family typewriter
12480 <>
12481 \family default
12482 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
12483 \end_layout
12484
12485 \begin_layout Enumerate
12486 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
12487 中でこれらを変更することはできません.
12488 \end_layout
12489
12490 \begin_layout Enumerate
12491 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
12492 \family sans
12493 ツール\SpecialChar menuseparator
12494 設定
12495 \family default
12496 をクリックして,
12497 \family sans
12498 言語オプション
12499 \family default
12500 タブを選択し,言語設定で
12501 \family sans
12502 Babelを使う
12503 \family default
12504 チェックボックスを無効にしてから,
12505 \family sans
12506 適用
12507 \family default
12508 をクリックすれば,設定することができます(この変更を固定するなら
12509 \family sans
12510 保存
12511 \family default
12512 を押してください).
12513 \end_layout
12514
12515 \begin_layout Enumerate
12516 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
12517 \end_layout
12518
12519 \begin_layout Enumerate
12520 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
12521 ートされていませんので,ご注意ください.
12522 \end_layout
12523
12524 \begin_layout Enumerate
12525 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12526 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
12527 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
12528 \end_layout
12529
12530 \begin_layout Enumerate
12531 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
12532 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
12533 されます.引用に通常の本文を使用したい場合には,「See Ref.
12534 \begin_inset space \space{}
12535 \end_inset
12536
12537
12538 \family typewriter
12539
12540 \backslash
12541 refcite{
12542 \family default
12543
12544 \begin_inset Flex Ruby
12545 status collapsed
12546
12547 \begin_layout Plain Layout
12548
12549 \family typewriter
12550
12551 \family default
12552
12553 \begin_inset Argument post:1
12554 status collapsed
12555
12556 \begin_layout Plain Layout
12557 キー
12558 \end_layout
12559
12560 \end_inset
12561
12562
12563 \end_layout
12564
12565 \end_inset
12566
12567
12568 \family typewriter
12569 }
12570 \family default
12571 」のように
12572 \family typewriter
12573 refcite
12574 \family default
12575 コマンドを使用してください.
12576 \end_layout
12577
12578 \begin_layout Enumerate
12579 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
12580 \end_layout
12581
12582 \begin_layout Enumerate
12583 付録は,論文中,謝辞の
12584 \emph on
12585
12586 \emph default
12587 かつ書誌情報の
12588 \emph on
12589
12590 \emph default
12591 であれば,入れることができます.\SpecialChar LyX
12592 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
12593 てはなりません.この環境は,\SpecialChar LaTeX
12594 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
12595 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
12596 付録であることを明示します.「付録領域」は,最初の付録の前に
12597 \emph on
12598 なくてはならない
12599 \emph default
12600 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
12601 \end_layout
12602
12603 \begin_layout Enumerate
12604 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
12605 \family typewriter
12606 tbl
12607 \family default
12608 コマンドを使用します.そのため,\SpecialChar LyX
12609 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
12610 コードを少し使えば,この問題を回避して,キャプション
12611 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
12612 コードで
12613 \family typewriter
12614
12615 \backslash
12616 tbl{表キャプション}{
12617 \family default
12618 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
12619 コード
12620 \family typewriter
12621 }
12622 \family default
12623 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
12624 欲しい場合に,表フロート全体を
12625 \family typewriter
12626 .tex
12627 \family default
12628 ファイルに収め,このファイルを\SpecialChar LyX
12629 文書に取り込んでください(
12630 \family sans
12631 挿入\SpecialChar menuseparator
12632 ファイル\SpecialChar menuseparator
12633 子文書
12634 \family default
12635 ).表フロートの作り方についての詳細は,各パッケージに含まれている
12636 \family typewriter
12637 ws-ijmpc.tex
12638 \family default
12639 または
12640 \family typewriter
12641 ws-ijmpd.tex
12642 \family default
12643 ファイルをご覧ください.
12644 \end_layout
12645
12646 \begin_layout Subsection
12647 原稿を投稿するための準備
12648 \end_layout
12649
12650 \begin_layout Standard
12651 論文を投稿する前には,\SpecialChar LyX
12652 文書を\SpecialChar LaTeX
12653 ファイルに書き出し(
12654 \family sans
12655 ファイル\SpecialChar menuseparator
12656 書き出し\SpecialChar menuseparator
12657 \SpecialChar LaTeX
12658
12659 \family default
12660 )
12661 \begin_inset Foot
12662 status open
12663
12664 \begin_layout Plain Layout
12665 実は,\SpecialChar LaTeX
12666  (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
12667 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
12668 \end_layout
12669
12670 \end_inset
12671
12672 ,その
12673 \family typewriter
12674 .tex
12675 \family default
12676 ファイルに以下の変更を加える必要があります.
12677 \end_layout
12678
12679 \begin_layout Enumerate
12680
12681 \family typewriter
12682
12683 \backslash
12684 documentclass
12685 \family default
12686 コマンドより前にあるコメント行を削除する.
12687 \end_layout
12688
12689 \begin_layout Enumerate
12690 自身で明示的に\SpecialChar LaTeX
12691 プリアンブルに置いたコマンドを除き,
12692 \family typewriter
12693
12694 \backslash
12695 makeatletter
12696 \family default
12697 コマンドと
12698 \family typewriter
12699
12700 \backslash
12701 makeatother
12702 \family default
12703 コマンドの間にあるものをすべて削除する.
12704 \end_layout
12705
12706 \begin_layout Standard
12707 こうして修正を加えた
12708 \family typewriter
12709 .tex
12710 \family default
12711 ファイルを保存し,必要な回数\SpecialChar LaTeX
12712 で処理してください.それによって得られた
12713 \family typewriter
12714 .dvi
12715 \family default
12716 文書も確認された方がよろしいでしょう.
12717 \end_layout
12718
12719 \begin_layout Subsection
12720 \SpecialChar TeX
12721 コードの使用
12722 \end_layout
12723
12724 \begin_layout Standard
12725 \SpecialChar TeX
12726 コードを使用するのは,2つのコマンドに限られ,これらは文書の最初に置かれなくてはなりません.論文をひな型
12727 \family typewriter
12728 ijmpc.lyx
12729 \family default
12730 または
12731 \family typewriter
12732 ijmpd.lyx
12733 \family default
12734 を使用して書き始めた場合には,これら必要な\SpecialChar TeX
12735 コードは,すでに書き込まれています.通常,これらを削除する必要はありません.2つのうち1番めの\SpecialChar TeX
12736 コードのみが,奇数ページ
12737 および偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために,修正する必要があります.この\SpecialChar TeX
12738 コードは,
12739 \family typewriter
12740
12741 \backslash
12742 markboth{著者名}{論文の短縮タイトル}
12743 \family default
12744 という形である必要があります.
12745 \end_layout
12746
12747 \begin_layout Section
12748 iopart
12749 \end_layout
12750
12751 \begin_layout Standard
12752
12753 \noun on
12754 Uwe Stöhr
12755 \noun default
12756
12757 \end_layout
12758
12759 \begin_layout Subsection
12760 概要
12761 \end_layout
12762
12763 \begin_layout Standard
12764 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12765 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
12766 \begin_inset Flex URL
12767 status collapsed
12768
12769 \begin_layout Plain Layout
12770
12771 ftp://ftp.iop.org/pub/journals/latex2e
12772 \end_layout
12773
12774 \end_inset
12775
12776 からiopartパッケージとともにダウンロード可能です.
12777 \end_layout
12778
12779 \begin_layout Subsection
12780 論文を書く
12781 \end_layout
12782
12783 \begin_layout Standard
12784 論文を書くもっとも簡単な方法は,\SpecialChar LyX
12785 の用例ファイルフォルダにある
12786 \emph on
12787 IOP-article.lyx
12788 \emph default
12789 を土台にすることです.このファイルを開き,新しい名前で保存して,書き始めてください.この用例ファイルは,特定の環境の使用法についても説明しています.もっとも重要
12790 な助言として,以下の点にご注意ください.
12791 \end_layout
12792
12793 \begin_layout Itemize
12794 文書がPDF・PS・DVIにコンパイルできるようにするためには,文書設定の
12795 \family sans
12796 数式オプション
12797 \family default
12798 で,二つの
12799 \family sans
12800 AMS mathパッケージを使う
12801 \family default
12802 関連オプションが有効になっていないことを確認してください!
12803 \end_layout
12804
12805 \begin_layout Itemize
12806 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
12807 \end_layout
12808
12809 \begin_deeper
12810 \begin_layout Itemize
12811 論文用には
12812 \family sans
12813 タイトル
12814 \end_layout
12815
12816 \begin_layout Itemize
12817 Review用には
12818 \family sans
12819 Review
12820 \end_layout
12821
12822 \begin_layout Itemize
12823 Topical review用には
12824 \family sans
12825 Topical
12826 \end_layout
12827
12828 \begin_layout Itemize
12829 Comment用には
12830 \family sans
12831 Comment
12832 \end_layout
12833
12834 \begin_layout Itemize
12835 Note用には
12836 \family sans
12837 注釈
12838 \end_layout
12839
12840 \begin_layout Itemize
12841 論文用には
12842 \family sans
12843 Paper
12844 \family default
12845 (タイトルと同じ)
12846 \end_layout
12847
12848 \begin_layout Itemize
12849 Preliminary communication用には
12850 \family sans
12851 Prelim
12852 \end_layout
12853
12854 \begin_layout Itemize
12855 Rapid communication用には
12856 \family sans
12857 Rapid
12858 \end_layout
12859
12860 \begin_layout Itemize
12861 編集者へのLetterには
12862 \family sans
12863 書簡
12864 \end_layout
12865
12866 \end_deeper
12867 \begin_layout Itemize
12868
12869 \family sans
12870 書簡
12871 \family default
12872 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
12873 \end_layout
12874
12875 \begin_layout Itemize
12876 \SpecialChar LyX
12877 では直接にサポートされていませんが,一般的なタイトル環境として
12878 \family sans
12879 Article
12880 \family default
12881 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
12882 コードでこれを指定することができます.
12883 \end_layout
12884
12885 \begin_layout Standard
12886 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
12887 \end_layout
12888
12889 \begin_layout Section
12890 Kluwer
12891 \end_layout
12892
12893 \begin_layout Standard
12894
12895 \noun on
12896 Panayotis Papasotiriou
12897 \noun default
12898
12899 \end_layout
12900
12901 \begin_layout Subsection
12902 概要
12903 \end_layout
12904
12905 \begin_layout Standard
12906 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
12907 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
12908 \emph on
12909 Astrophysics and Space Science
12910 \emph default
12911 (『宇宙物理学と宇宙科学』)と
12912 \emph on
12913 Solar Physics
12914 \emph default
12915 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
12916 \begin_inset Flex URL
12917 status collapsed
12918
12919 \begin_layout Plain Layout
12920
12921 http://www.wkap.nl/jrnllist.htm/JRNLHOME
12922 \end_layout
12923
12924 \end_inset
12925
12926 に全覧があります).Kluwerパッケージは,
12927 \begin_inset Flex URL
12928 status collapsed
12929
12930 \begin_layout Plain Layout
12931
12932 http://www.wkap.nl/kaphtml.htm/STYLEFILES
12933 \end_layout
12934
12935 \end_inset
12936
12937 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
12938 \end_layout
12939
12940 \begin_layout Standard
12941 \SpecialChar LyX
12942 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
12943 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
12944 りました(
12945 \begin_inset CommandInset ref
12946 LatexCommand ref
12947 reference "subsec:kluwer_peculiarities"
12948
12949 \end_inset
12950
12951 参照).最近,私は\SpecialChar LyX
12952 を使って書いた論文を
12953 \emph on
12954 Astrophysics and Space Science
12955 \emph default
12956 に投稿しましたが,何らの問題も発生しませんでした.
12957 \end_layout
12958
12959 \begin_layout Subsection
12960 論文を書く
12961 \end_layout
12962
12963 \begin_layout Standard
12964 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
12965 \family sans
12966 ファイル\SpecialChar menuseparator
12967 新規(ひな型使用)
12968 \family default
12969 をクリックし,ひな型
12970 \family typewriter
12971 kluwer.lyx
12972 \family default
12973 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
12974 様に,既存の文章を(括弧
12975 \family typewriter
12976 <>
12977 \family default
12978 を含む)正しい情報で上書きしてください.
12979 \end_layout
12980
12981 \begin_layout Subsection
12982 投稿の準備
12983 \end_layout
12984
12985 \begin_layout Standard
12986 AAS\SpecialChar TeX
12987 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
12988 \end_layout
12989
12990 \begin_layout Enumerate
12991
12992 \family sans
12993 ファイル\SpecialChar menuseparator
12994 書き出し\SpecialChar menuseparator
12995 LateX
12996 \family default
12997 をクリックして,論文を\SpecialChar LaTeX
12998 ファイルに書き出す.
12999 \end_layout
13000
13001 \begin_layout Enumerate
13002 生成された
13003 \family typewriter
13004 .tex
13005 \family default
13006 ファイルに,テキストエディタを使用して,以下のような変更を加える.
13007 \end_layout
13008
13009 \begin_deeper
13010 \begin_layout Enumerate
13011
13012 \family typewriter
13013
13014 \backslash
13015 documentclass
13016 \family default
13017 コマンドより前にあるコメント行を削除する.
13018 \end_layout
13019
13020 \begin_layout Enumerate
13021 意図的に\SpecialChar LaTeX
13022 プリアンブルに加えたコマンドを除き,
13023 \family typewriter
13024
13025 \backslash
13026 makeatletter
13027 \family default
13028 から 
13029 \family typewriter
13030
13031 \backslash
13032 makeatother
13033 \family default
13034 の間にあるものを,これらのコマンドも含め,すべて削除する.
13035 \end_layout
13036
13037 \begin_layout Standard
13038 変更した
13039 \family typewriter
13040 .tex
13041 \family default
13042 ファイルを保存する.
13043 \end_layout
13044
13045 \end_deeper
13046 \begin_layout Enumerate
13047 この
13048 \family typewriter
13049 .tex
13050 \family default
13051 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13052 にかける.
13053 \end_layout
13054
13055 \begin_layout Enumerate
13056 生成された
13057 \family typewriter
13058 .dvi
13059 \family default
13060 ファイルを
13061 \family sans
13062 xdvi
13063 \family default
13064 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
13065 \end_layout
13066
13067 \begin_layout Subsection
13068 Kluwerパッケージの「風変わり」な特徴
13069 \begin_inset CommandInset label
13070 LatexCommand label
13071 name "subsec:kluwer_peculiarities"
13072
13073 \end_inset
13074
13075
13076 \end_layout
13077
13078 \begin_layout Standard
13079 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
13080 \end_layout
13081
13082 \begin_layout Enumerate
13083 複数の論文を1つの\SpecialChar LaTeX
13084 ファイルへ入れることができます
13085 \begin_inset Foot
13086 status collapsed
13087
13088 \begin_layout Plain Layout
13089 わざわざこんなことをする必要はないでしょう.
13090 \end_layout
13091
13092 \end_inset
13093
13094 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
13095 \family typewriter
13096
13097 \backslash
13098 begin{article}
13099 \family default
13100 で始まり,
13101 \family typewriter
13102
13103 \backslash
13104 end{article}
13105 \family default
13106 で終わります.この環境を\SpecialChar LyX
13107 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
13108 \family typewriter
13109
13110 \backslash
13111 begin{article}
13112 \family default
13113
13114 \family typewriter
13115
13116 \backslash
13117 end{article}
13118 \family default
13119 )は,直接本文中に入力して,\SpecialChar LaTeX
13120 コード(「\SpecialChar TeX
13121 コード」のことです)としてマークする必要があります.
13122 \end_layout
13123
13124 \begin_layout Enumerate
13125 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
13126 はなりません.これは\SpecialChar LyX
13127 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
13128 コード行(
13129 \family typewriter
13130
13131 \backslash
13132 begin{opening}
13133 \family default
13134 および
13135 \family typewriter
13136
13137 \backslash
13138 end{opening}
13139 \family default
13140 )の間に入れる必要があります.
13141 \end_layout
13142
13143 \begin_layout Enumerate
13144 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
13145 \family typewriter
13146
13147 \begin_inset Newline newline
13148 \end_inset
13149
13150
13151 \backslash
13152 protect
13153 \backslash
13154 citeauthoryear{
13155 \family default
13156 \emph on
13157 著者名
13158 \family typewriter
13159 \emph default
13160 }{
13161 \family default
13162 \emph on
13163
13164 \family typewriter
13165 \emph default
13166 }
13167 \family default
13168  と書く必要があります.
13169 \end_layout
13170
13171 \begin_layout Standard
13172 ひな型
13173 \family typewriter
13174 kluwer.lyx
13175 \family default
13176 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
13177 てください.
13178 \end_layout
13179
13180 \begin_layout Enumerate
13181 ひな型にある\SpecialChar TeX
13182 コードを削除しないでください.
13183 \end_layout
13184
13185 \begin_layout Enumerate
13186 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
13187 \end_layout
13188
13189 \begin_layout Section
13190 Koma-Script
13191 \end_layout
13192
13193 \begin_layout Standard
13194
13195 \noun on
13196 Bernd Rellermeyer
13197 \noun default
13198
13199 \end_layout
13200
13201 \begin_layout Subsection
13202 概要
13203 \end_layout
13204
13205 \begin_layout Standard
13206 \SpecialChar LyX
13207 の文書クラス
13208 \emph on
13209 article (koma-script)
13210 \emph default
13211
13212 \emph on
13213 report (koma-script)
13214 \emph default
13215
13216 \emph on
13217 book
13218 \emph default
13219  
13220 \emph on
13221 (koma-script)
13222 \emph default
13223
13224 \emph on
13225 letter
13226 \emph default
13227  
13228 \emph on
13229 (koma-script)
13230 \emph default
13231 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13232 文書クラス
13233 \family typewriter
13234 scrartcl.cls
13235 \family default
13236
13237 \family typewriter
13238 scrreprt.cls
13239 \family default
13240
13241 \family typewriter
13242 scrbook.cls
13243 \family default
13244
13245 \family typewriter
13246 scrlettr.cls
13247 \family default
13248 に対応しています.これらは,標準文書クラス
13249 \family typewriter
13250 article.cls
13251 \family default
13252
13253 \family typewriter
13254 report.cls
13255 \family default
13256
13257 \family typewriter
13258 book.cls
13259 \family default
13260
13261 \family typewriter
13262 letter.cls
13263 \family default
13264 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
13265 \end_layout
13266
13267 \begin_layout Itemize
13268 標準文字寸法は,
13269 \emph on
13270 article (koma-script)
13271 \emph default
13272
13273 \emph on
13274 report (koma-script)
13275 \emph default
13276
13277 \emph on
13278 book (koma-script)
13279 \emph default
13280 で11pt,
13281 \emph on
13282 letter (koma-script)
13283 \emph default
13284 で12ptです.
13285 \end_layout
13286
13287 \begin_layout Itemize
13288 見出しや箇条書き(記述)環境のラベル,および
13289 \emph on
13290 letter (koma-script)
13291 \emph default
13292 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
13293 \begin_inset Foot
13294 status collapsed
13295
13296 \begin_layout Plain Layout
13297 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
13298 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
13299 \shape smallcaps
13300 Walter Schmidt
13301 \shape default
13302 作の\SpecialChar LaTeX
13303 パッケージ
13304 \family typewriter
13305 cmsd.sty
13306 \family default
13307 が役立ちます.
13308 \end_layout
13309
13310 \end_inset
13311
13312 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
13313 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
13314 とができます(\SpecialChar LyX
13315 では,
13316 \family sans
13317 文書\SpecialChar menuseparator
13318 設定
13319 \family default
13320 ダイアログの
13321 \family sans
13322 クラスオプション
13323 \family default
13324 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
13325 \emph on
13326 scrguide
13327 \emph default
13328 にあります.
13329 \end_layout
13330
13331 \begin_layout Itemize
13332 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
13333 \family sans
13334 BCOR
13335 \family default
13336 オプションまたは
13337 \family sans
13338 DIV
13339 \family default
13340 オプションを使う方法です(\SpecialChar LyX
13341 では,
13342 \family sans
13343 文書\SpecialChar menuseparator
13344 設定
13345 \family default
13346 ダイアログの
13347 \family sans
13348 クラスオプション
13349 \family default
13350 フィールドで指定します).これらのオプションは
13351 \family sans
13352 文書\SpecialChar menuseparator
13353 設定
13354 \family default
13355 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
13356 扱説明書
13357 \emph on
13358 scrguide
13359 \emph default
13360 にあります.
13361 \end_layout
13362
13363 \begin_layout Itemize
13364 Koma-Scriptファミリーの\SpecialChar LaTeX
13365 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
13366 で意味を持つものは,対応する段落環境として実装されています
13367
13368 \end_layout
13369
13370 \begin_layout Standard
13371 Koma-Scriptファミリーの\SpecialChar LaTeX
13372 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
13373 \emph on
13374 scrguide
13375 \emph default
13376 にあります
13377 \begin_inset Foot
13378 status collapsed
13379
13380 \begin_layout Plain Layout
13381 英語翻訳版の
13382 \emph on
13383 screnggu
13384 \emph default
13385 もありますが,完訳ではありません.
13386 \end_layout
13387
13388 \end_inset
13389
13390 .以下の各節では,\SpecialChar LyX
13391 に関係する側面のみ説明致します.
13392 \end_layout
13393
13394 \begin_layout Subsection
13395 article (koma-script)・report (koma-script)・book (koma-script)
13396 \end_layout
13397
13398 \begin_layout Standard
13399 文書クラス
13400 \emph on
13401 article (koma-script)
13402 \emph default
13403
13404 \emph on
13405 report (koma-script)
13406 \emph default
13407
13408 \emph on
13409 book
13410 \emph default
13411  
13412 \emph on
13413 (koma-script)
13414 \emph default
13415 は,それぞれレイアウトファイル
13416 \family typewriter
13417 scrartcl.layout
13418 \family default
13419
13420 \family typewriter
13421 scrreprt.layou
13422 \family default
13423 t・
13424 \family typewriter
13425 crbook.layout
13426 \family default
13427 によって実装されています.これらは,対応する標準文書クラス
13428 \emph on
13429 article
13430 \emph default
13431
13432 \emph on
13433 report
13434 \emph default
13435
13436 \emph on
13437 book
13438 \emph default
13439 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
13440 固有の
13441 \family sans
13442 箇条書き(一覧)
13443 \family default
13444 環境は例外であり,同じ機能を持つ新しい
13445 \family sans
13446 ラベリング
13447 \family default
13448 環境で置き換えられています.この
13449 \family sans
13450 ラベリング
13451 \family default
13452 環境以外にも,新しい段落環境が多く追加されています.これらは,
13453 \emph on
13454 letter (koma-script)
13455 \emph default
13456 には含まれていないのでご注意ください.
13457 \end_layout
13458
13459 \begin_layout Itemize
13460
13461 \family sans
13462 部(addpart)
13463 \family default
13464
13465 \family sans
13466 章(addchap)
13467 \family default
13468
13469 \family sans
13470 節(addsec)
13471 \family default
13472 :これらは,それぞれ
13473 \family sans
13474 部*
13475 \family default
13476
13477 \family sans
13478 章*
13479 \family default
13480
13481 \family sans
13482 節*
13483 \family default
13484 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
13485 \family sans
13486 部(addpart)
13487 \family default
13488
13489 \family sans
13490 章(addchap)
13491 \family default
13492 は,
13493 \emph on
13494 article (koma-script)
13495 \emph default
13496 には収録されていません.
13497 \end_layout
13498
13499 \begin_layout Itemize
13500
13501 \family sans
13502 章(addchap*)
13503 \family default
13504
13505 \family sans
13506 節(addsec*)
13507 \family default
13508 :これらは,
13509 \family sans
13510 章(addchap
13511 \family default
13512 )と
13513 \family sans
13514 節(addsec)
13515 \family default
13516 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
13517 \family sans
13518 章(addchap*)
13519 \family default
13520 は, 
13521 \emph on
13522 article (koma-script)
13523 \emph default
13524 には収録されていません
13525 \begin_inset Foot
13526 status collapsed
13527
13528 \begin_layout Plain Layout
13529
13530 \emph on
13531 book (koma-script)
13532 \emph default
13533
13534 \emph on
13535 report (koma-script)
13536 \emph default
13537 には,
13538 \family typewriter
13539
13540 \backslash
13541 addpart*
13542 \family default
13543 コマンドもありますが,これは
13544 \family sans
13545 Part*
13546 \family default
13547 と同一なので,\SpecialChar LyX
13548 では実装されていません.
13549 \end_layout
13550
13551 \end_inset
13552
13553
13554 \end_layout
13555
13556 \begin_layout Itemize
13557
13558 \family sans
13559 小見出し(minisec)
13560 \family default
13561 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
13562 \end_layout
13563
13564 \begin_layout Itemize
13565
13566 \family sans
13567 上部キャプション
13568 \family default
13569
13570 \family sans
13571 下部キャプション
13572 \family default
13573 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
13574 ねに表の上に置くべきでしょう).また,クラスオプション
13575 \family typewriter
13576 tablecaptionsabove
13577 \family default
13578 を用いれば,キャプションを指定すると,表には
13579 \family sans
13580 上部キャプション
13581 \family default
13582 が,図には
13583 \family sans
13584 下部キャプション
13585 \family default
13586 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13587 \end_layout
13588
13589 \begin_layout Itemize
13590
13591 \family sans
13592 格言(dictum)
13593 \family default
13594 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
13595 \family sans
13596 挿入\SpecialChar menuseparator
13597 短縮タイトル
13598 \family default
13599 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13600 \family sans
13601 格言(dictum)
13602 \family default
13603 は,
13604 \emph on
13605 article (koma-script)
13606 \emph default
13607 には収録されていません.
13608 \end_layout
13609
13610 \begin_layout Standard
13611 以下の各環境は,標準の
13612 \family sans
13613 タイトル
13614 \family default
13615
13616 \family sans
13617 著者
13618 \family default
13619
13620 \family sans
13621 日付
13622 \family default
13623 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
13624 \begin_inset Foot
13625 status collapsed
13626
13627 \begin_layout Plain Layout
13628 つまり,対応する\SpecialChar LaTeX
13629 コマンドが
13630 \family typewriter
13631
13632 \backslash
13633 maketitle
13634 \family default
13635 コマンドよりも前に現れなくてはなりません.
13636 \end_layout
13637
13638 \end_inset
13639
13640 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
13641 \family sans
13642 タイトル
13643 \family default
13644
13645 \family sans
13646 著者
13647 \family default
13648
13649 \family sans
13650 日付
13651 \family default
13652 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
13653 \end_layout
13654
13655 \begin_layout Itemize
13656
13657 \family sans
13658 主題
13659 \family default
13660 :通常のタイトル部(
13661 \family sans
13662 タイトル
13663 \family default
13664
13665 \family sans
13666 著者
13667 \family default
13668
13669 \family sans
13670 日付
13671 \family default
13672 )の上に,文書の主題用の中央揃えの段落を生成します.
13673 \end_layout
13674
13675 \begin_layout Itemize
13676
13677 \family sans
13678 出版社
13679 \family default
13680 :通常のタイトル部(
13681 \family sans
13682 タイトル
13683 \family default
13684
13685 \family sans
13686 著者
13687 \family default
13688
13689 \family sans
13690 日付
13691 \family default
13692 )の下に,出版社名用の中央揃えの段落を生成します.
13693 \end_layout
13694
13695 \begin_layout Itemize
13696
13697 \family sans
13698 献呈
13699 \family default
13700
13701 \emph on
13702 report (koma-script)
13703 \emph default
13704
13705 \emph on
13706 book (koma-script)
13707 \emph default
13708 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
13709 \emph on
13710 article (koma-script)
13711 \emph default
13712 の場合は,通常のタイトル部(
13713 \family sans
13714 タイトル
13715 \family default
13716
13717 \family sans
13718 著者
13719 \family default
13720
13721 \family sans
13722 日付
13723 \family default
13724 )の下に献辞用の中央揃えの段落を生成します.
13725 \end_layout
13726
13727 \begin_layout Itemize
13728
13729 \family sans
13730 タイトル頭書き
13731 \family default
13732 :通常のタイトル部(
13733 \family sans
13734 タイトル
13735 \family default
13736
13737 \family sans
13738 著者
13739 \family default
13740
13741 \family sans
13742 日付
13743 \family default
13744 )の上に,文書頭書き用の左揃えの段落を生成します.
13745 \end_layout
13746
13747 \begin_layout Itemize
13748
13749 \family sans
13750 扉裏上部
13751 \family default
13752
13753 \emph on
13754 report (koma-script)
13755 \emph default
13756 や 
13757 \emph on
13758 book (koma-script)
13759 \emph default
13760 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
13761 \emph on
13762 article (koma-script)
13763 \emph default
13764 では何の効果も生じません.
13765 \end_layout
13766
13767 \begin_layout Itemize
13768
13769 \family sans
13770 扉裏下部
13771 \family default
13772
13773 \emph on
13774 report (koma-script)
13775 \emph default
13776 や 
13777 \emph on
13778 book (koma-script)
13779 \emph default
13780 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
13781 \emph on
13782 article (koma-script)
13783 \emph default
13784 では何の効果も生じません.
13785 \end_layout
13786
13787 \begin_layout Itemize
13788
13789 \family sans
13790 追加タイトル
13791 \family default
13792 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
13793 \end_layout
13794
13795 \begin_layout Standard
13796 文書クラス
13797 \emph on
13798 article (koma-script)
13799 \emph default
13800
13801 \emph on
13802 report (koma-script)
13803 \emph default
13804
13805 \emph on
13806 book (koma-script)
13807 \emph default
13808 の 各レイアウトファイルは,
13809 \family typewriter
13810 scrmacros.inc
13811 \family default
13812 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
13813 \family typewriter
13814 crmacros.inc
13815 \family default
13816 を,個人用レイアウトディレクトリにコピーして編集してください!
13817 \end_layout
13818
13819 \begin_layout Subsection
13820 letter (koma-script)
13821 \end_layout
13822
13823 \begin_layout Standard
13824 \noindent
13825 文書クラス
13826 \emph on
13827 letter (koma-script)
13828 \emph default
13829 は,レイアウトファイル 
13830 \family typewriter
13831 scrlettr.layout
13832 \family default
13833 で実装されています.このレイアウトファイルには,対応する標準文書クラス
13834 \emph on
13835 letter
13836 \emph default
13837 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
13838 固有環境の
13839 \family sans
13840 \SpecialChar LyX
13841 コード
13842 \family default
13843
13844 \family sans
13845 コメント
13846 \family default
13847
13848 \family sans
13849 箇条書き(一覧
13850 \family default
13851 )は,新しく
13852 \family sans
13853 ラベリング
13854 \family default
13855 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
13856 \family sans
13857 \SpecialChar LaTeX
13858
13859 \family default
13860
13861 \family sans
13862 引用(字下げあり)
13863 \family default
13864
13865 \family sans
13866 引用(字下げなし)
13867 \family default
13868
13869 \family sans
13870 詩句
13871 \family default
13872 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
13873 \end_layout
13874
13875 \begin_layout Standard
13876 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
13877 コマンドを\SpecialChar LaTeX
13878 プリアンブルに置くことで制御することができます
13879 \begin_inset Foot
13880 status collapsed
13881
13882 \begin_layout Plain Layout
13883 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
13884 す.
13885 \end_layout
13886
13887 \begin_layout LyX-Code
13888
13889 \backslash
13890 firsthead{
13891 \backslash
13892 parbox[b]{
13893 \backslash
13894 textwidth}
13895 \end_layout
13896
13897 \begin_layout LyX-Code
13898   {
13899 \backslash
13900 ignorespaces 
13901 \backslash
13902 fromname
13903 \backslash
13904
13905 \backslash
13906  
13907 \backslash
13908 ignorespaces 
13909 \backslash
13910 fromaddress}} 
13911 \end_layout
13912
13913 \begin_layout LyX-Code
13914
13915 \backslash
13916 nexthead{
13917 \backslash
13918 parbox[b]{
13919 \backslash
13920 textwidth}
13921 \end_layout
13922
13923 \begin_layout LyX-Code
13924   {
13925 \backslash
13926 ignorespaces 
13927 \backslash
13928 fromname 
13929 \backslash
13930 hfill 
13931 \backslash
13932 ignorespaces 
13933 \backslash
13934 pagename
13935 \backslash
13936
13937 \end_layout
13938
13939 \begin_layout LyX-Code
13940
13941 \backslash
13942 thepage}}
13943 \end_layout
13944
13945 \end_inset
13946
13947 .これらの\SpecialChar LaTeX
13948 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
13949 \emph on
13950 scrguide
13951 \emph default
13952 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
13953 \end_layout
13954
13955 \begin_layout Standard
13956
13957 \family sans
13958 書簡
13959 \family default
13960 環境および
13961 \family sans
13962 頭語
13963 \family default
13964 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
13965 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
13966 \shape italic
13967 L
13968 \shape default
13969
13970 \shape italic
13971 O
13972 \shape default
13973 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
13974 \family sans
13975 頭語
13976 \family default
13977 環境は,同じ受取人への書簡を新しく書き出すものであり,
13978 \family sans
13979 書簡
13980 \family default
13981 環境は,新しい受取人を生成するものです.
13982 \family sans
13983 結語
13984 \family default
13985
13986 \family sans
13987 PS
13988 \family default
13989
13990 \family sans
13991 CC
13992 \family default
13993
13994 \family sans
13995 Encl
13996 \family default
13997 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
13998 \end_layout
13999
14000 \begin_layout Itemize
14001
14002 \family sans
14003 書簡
14004 \family default
14005 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
14006 \end_layout
14007
14008 \begin_layout Itemize
14009
14010 \family sans
14011 頭語
14012 \family default
14013 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
14014 \end_layout
14015
14016 \begin_layout Itemize
14017
14018 \family sans
14019 結語
14020 \family default
14021 :結語のための段落をつくります.
14022 \end_layout
14023
14024 \begin_layout Itemize
14025
14026 \family sans
14027 PS
14028 \family default
14029 :追伸のための段落をつくります.
14030 \end_layout
14031
14032 \begin_layout Itemize
14033
14034 \family sans
14035 CC
14036 \family default
14037 :同報一覧のための段落をつくります.
14038 \end_layout
14039
14040 \begin_layout Itemize
14041
14042 \family sans
14043 Encl
14044 \family default
14045 :同封物のための段落をつくります.
14046 \end_layout
14047
14048 \begin_layout Standard
14049
14050 \family sans
14051 名前
14052 \family default
14053
14054 \family sans
14055 署名
14056 \family default
14057
14058 \family sans
14059 住所
14060 \family default
14061
14062 \family sans
14063 電話
14064 \family default
14065
14066 \family sans
14067 場所(Place
14068 \family default
14069 )・
14070 \family sans
14071 返送先住所
14072 \family default
14073
14074 \family sans
14075 配送手段(Specialmail)
14076 \family default
14077
14078 \family sans
14079 場所
14080 \family default
14081
14082 \family sans
14083 タイトル
14084 \family default
14085
14086 \family sans
14087 主題
14088 \family default
14089 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
14090 \begin_inset Foot
14091 status collapsed
14092
14093 \begin_layout Plain Layout
14094 上述の
14095 \family sans
14096 書簡
14097 \family default
14098
14099 \family sans
14100 頭語
14101 \family default
14102 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
14103 一文字をマークした通常の段落環境として実装しました.さらに,
14104 \family sans
14105 頭語
14106 \family default
14107 環境と
14108 \family sans
14109 結語
14110 \family default
14111 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
14112 \end_layout
14113
14114 \end_inset
14115
14116 .これらの環境は,対応する
14117 \family sans
14118 頭語
14119 \family default
14120 環境の前に置く必要があります.
14121 \end_layout
14122
14123 \begin_layout Standard
14124 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
14125 ん.たとえば,
14126 \family sans
14127 署名
14128 \family default
14129 環境で入力した署名は,標準的な挙動では,同じ書簡に
14130 \family sans
14131 結語
14132 \family default
14133 環境も使用されているときのみ,書簡の出力に現れます.
14134 \family sans
14135 電話
14136 \family default
14137 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
14138 \end_layout
14139
14140 \begin_layout Standard
14141 入力環境は,空の段落として使うことができます.これは,たとえば
14142 \family sans
14143 署名
14144 \family default
14145 環境の場合に有効です.
14146 \family sans
14147 署名
14148 \family default
14149 環境を全く使用しない場合は,標準的な挙動では,
14150 \family sans
14151 名前
14152 \family default
14153 環境の値が署名として使用されますが,空の
14154 \family sans
14155 署名
14156 \family default
14157 環境を作成しておくと,署名の値は無定義となりません.
14158 \end_layout
14159
14160 \begin_layout Standard
14161 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
14162 \end_layout
14163
14164 \begin_layout Itemize
14165
14166 \family sans
14167 名前
14168 \family default
14169 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
14170 \end_layout
14171
14172 \begin_layout Itemize
14173
14174 \family sans
14175 署名
14176 \family default
14177 :送り主の署名.標準的な挙動では,
14178 \family sans
14179 結語
14180 \family default
14181 環境の下に表示されます.
14182 \family sans
14183 署名
14184 \family default
14185 環境を使用しないと,代わりに
14186 \family sans
14187 名前
14188 \family default
14189 環境の値が表示されます.
14190 \end_layout
14191
14192 \begin_layout Itemize
14193
14194 \family sans
14195 住所
14196 \family default
14197 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
14198 \end_layout
14199
14200 \begin_layout Itemize
14201
14202 \family sans
14203 電話
14204 \family default
14205 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
14206 変数
14207 \family typewriter
14208
14209 \backslash
14210 telephonenum
14211 \family default
14212 を設定するだけです.
14213 \end_layout
14214
14215 \begin_layout Itemize
14216
14217 \family sans
14218 場所(Place)
14219 \family default
14220 :書簡を書いた場所.
14221 \end_layout
14222
14223 \begin_layout Itemize
14224
14225 \family sans
14226 日付
14227 \family default
14228 :書簡を書いた日付.
14229 \family sans
14230 場所(Place)
14231 \family default
14232
14233 \family sans
14234 日付
14235 \family default
14236 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
14237 \family sans
14238 日付
14239 \family default
14240 環境を作成しておくと,
14241 \family sans
14242 場所(Place)
14243 \family default
14244 の値如何に関わらず,場所も日付も表示されません.
14245 \family sans
14246 日付
14247 \family default
14248 環境を使用しない場合には,書簡を出力した日付が使用されます.
14249 \end_layout
14250
14251 \begin_layout Itemize
14252
14253 \family sans
14254 返送先住所
14255 \family default
14256 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
14257 \end_layout
14258
14259 \begin_layout Itemize
14260
14261 \family sans
14262 特別便
14263 \family default
14264 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
14265 \end_layout
14266
14267 \begin_layout Itemize
14268
14269 \family sans
14270 場所
14271 \family default
14272 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
14273 \end_layout
14274
14275 \begin_layout Itemize
14276
14277 \family sans
14278 タイトル
14279 \family default
14280 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
14281 \end_layout
14282
14283 \begin_layout Itemize
14284
14285 \family sans
14286 主題
14287 \family default
14288 :書簡の主題.標準的な挙動では,
14289 \family sans
14290 頭語
14291 \family default
14292 環境の上にボールド体で表示されます.
14293 \end_layout
14294
14295 \begin_layout Standard
14296
14297 \family sans
14298 Yourref・Yourmail・Myref・顧客・インボイス
14299 \family default
14300 といった環境は,
14301 \family sans
14302 タイトル
14303 \family default
14304 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14305 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
14306 \family sans
14307 日付
14308 \family default
14309 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
14310 \family sans
14311 場所(Place)
14312 \family default
14313 の値は書簡には表示されなくなり,\SpecialChar LaTeX
14314 変数
14315 \family typewriter
14316
14317 \backslash
14318 fromplace
14319 \family default
14320 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
14321 て実装されており,対応する
14322 \family sans
14323 頭語
14324 \family default
14325 環境よりも前に置く必要があります.
14326 \end_layout
14327
14328 \begin_layout Itemize
14329
14330 \family sans
14331 Yourref
14332 \family default
14333 : Your ref.
14334 \end_layout
14335
14336 \begin_layout Itemize
14337
14338 \family sans
14339 Yourmail
14340 \family default
14341 : Your letter of.
14342 \end_layout
14343
14344 \begin_layout Itemize
14345
14346 \family sans
14347 Myref
14348 \family default
14349 : Our ref.
14350 \end_layout
14351
14352 \begin_layout Itemize
14353
14354 \family sans
14355 Customer
14356 \family default
14357 : Customer no.
14358 \end_layout
14359
14360 \begin_layout Itemize
14361
14362 \family sans
14363 Invoice
14364 \family default
14365 : Invoice no.
14366 \end_layout
14367
14368 \begin_layout Subsection
14369 新しいletterクラス:letter (koma-script v.2)
14370 \end_layout
14371
14372 \begin_layout Standard
14373 by 
14374 \noun on
14375 Jürgen Spitzmüller
14376 \begin_inset VSpace medskip
14377 \end_inset
14378
14379
14380 \end_layout
14381
14382 \begin_layout Standard
14383 \noindent
14384 Koma-Script第2.8版では,新しいletterクラス
14385 \family typewriter
14386 scrlttr2
14387 \family default
14388 が導入されたため,
14389 \family typewriter
14390 scrlettr
14391 \family default
14392 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
14393 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
14394 は両者をサポートしてい
14395 ますが,新しい方のクラスを使用することを推奨します.
14396 \end_layout
14397
14398 \begin_layout Standard
14399 このクラスは,
14400 \emph on
14401 letter (koma-script)
14402 \emph default
14403 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
14404 \family sans
14405 住所
14406 \family default
14407 (受取人の住所,旧レイアウトの
14408 \family sans
14409 書簡
14410 \family default
14411 と同じ)・
14412 \family sans
14413 頭語
14414 \family default
14415
14416 \family sans
14417 結語
14418 \family default
14419 です.
14420 \family sans
14421 次の住所
14422 \family default
14423 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
14424 \family sans
14425 電子メール
14426 \family default
14427
14428 \family sans
14429 URL
14430 \family default
14431
14432 \family sans
14433 ファックス
14434 \family default
14435
14436 \family sans
14437 銀行
14438 \family default
14439 ,およびヘッダに(
14440 \family sans
14441 挿入\SpecialChar menuseparator
14442
14443 \family default
14444 で)
14445 \family sans
14446 ロゴ
14447 \family default
14448 を入れることができるようになった点です.
14449 \end_layout
14450
14451 \begin_layout Standard
14452 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
14453 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
14454 \family typewriter
14455 *.lco
14456 \family default
14457 )によって設定することができます
14458 \begin_inset Foot
14459 status collapsed
14460
14461 \begin_layout Plain Layout
14462 KOMAパッケージには,既定の
14463 \family typewriter
14464 *.lco
14465 \family default
14466 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
14467 \family typewriter
14468 DIN.lco
14469 \family default
14470 や,旧
14471 \family typewriter
14472 scrlettr
14473 \family default
14474 クラスの既定レイアウトを提供する
14475 \family typewriter
14476 KOMAold.lco
14477 \family default
14478 などです.たとえば後者は,
14479 \family sans
14480 文書\SpecialChar menuseparator
14481 設定\SpecialChar menuseparator
14482 文書クラス\SpecialChar menuseparator
14483 クラスオプション
14484 \family default
14485 フィールドにクラスオプション
14486 \family typewriter
14487 KOMAold
14488 \family default
14489 を加えることで読み込むことができます.
14490 \end_layout
14491
14492 \end_inset
14493
14494 .用例としては,\SpecialChar LyX
14495 に収録されているひな型
14496 \emph on
14497 koma-letter2
14498 \emph default
14499 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
14500 \emph on
14501 scrguide
14502 \emph default
14503 )にあります.
14504 \end_layout
14505
14506 \begin_layout Subsection
14507 問題点
14508 \end_layout
14509
14510 \begin_layout Standard
14511 Koma-Script文書クラスを\SpecialChar LyX
14512 上に表示する上で,\SpecialChar LyX
14513 の内部処理が若干の問題を生じめます.
14514 \end_layout
14515
14516 \begin_layout Itemize
14517
14518 \family sans
14519
14520 \family default
14521 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
14522 \family sans
14523 Counter_Chapter
14524 \family default
14525 ラベル型に対する\SpecialChar LyX
14526 の内部処理が原因です.
14527 \end_layout
14528
14529 \begin_layout Itemize
14530
14531 \family sans
14532 章(addchap)
14533 \family default
14534
14535 \family sans
14536 節(addsec)
14537 \family default
14538 環境の見出しは,「本当の」\SpecialChar LaTeX
14539 の目次には追加されますが,\SpecialChar LyX
14540 の目次(
14541 \family sans
14542 移動
14543 \family default
14544 メニュー)には追加されません.
14545 \end_layout
14546
14547 \begin_layout Itemize
14548
14549 \emph on
14550 letter
14551 \emph default
14552 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
14553 コマンドは必要ありません.しかし,
14554 \family sans
14555 文書\SpecialChar menuseparator
14556 設定
14557 \family default
14558 ダイアログでは,対応するラジオボタンは
14559 \family sans
14560 字下げ
14561 \family default
14562 に設定されています.
14563 \family sans
14564 垂直スペース
14565 \family default
14566 は,隙間を空けるために,文書に\SpecialChar LaTeX
14567 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
14568 \end_layout
14569
14570 \begin_layout Section
14571 Memoir
14572 \end_layout
14573
14574 \begin_layout Standard
14575
14576 \noun on
14577 Jürgen Spitzmüller
14578 \noun default
14579
14580 \end_layout
14581
14582 \begin_layout Subsection
14583 概観
14584 \end_layout
14585
14586 \begin_layout Standard
14587 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
14588 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
14589 す(以下参照).
14590 \end_layout
14591
14592 \begin_layout Standard
14593 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
14594 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
14595 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
14596 は,これらすべての素晴らしい機能をネイティブでサポ
14597 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
14598 \begin_inset Foot
14599 status collapsed
14600
14601 \begin_layout Plain Layout
14602 もし提案があれば,ぜひ
14603 \begin_inset Flex URL
14604 status collapsed
14605
14606 \begin_layout Plain Layout
14607
14608 lyx-devel@lists.lyx.org
14609 \end_layout
14610
14611 \end_inset
14612
14613 までお送り下さい.
14614 \end_layout
14615
14616 \end_inset
14617
14618 ,\SpecialChar LyX
14619 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
14620 コマンド(\SpecialChar TeX
14621 コード
14622 \begin_inset Foot
14623 status collapsed
14624
14625 \begin_layout Plain Layout
14626 【参考】詳細は,第
14627 \begin_inset CommandInset ref
14628 LatexCommand ref
14629 reference "sec:LaTeXコードを挿入する"
14630
14631 \end_inset
14632
14633 節参照.
14634 \end_layout
14635
14636 \end_inset
14637
14638 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
14639 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
14640 は,Memoirクラスの詳しい取扱説明書
14641 \begin_inset Foot
14642 status collapsed
14643
14644 \begin_layout Plain Layout
14645 【参考】
14646 \begin_inset Flex URL
14647 status collapsed
14648
14649 \begin_layout Plain Layout
14650
14651 CTAN:/macros/latex/memoir/memman.pdf
14652 \end_layout
14653
14654 \end_inset
14655
14656
14657 \end_layout
14658
14659 \end_inset
14660
14661 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
14662 た用例となっています.
14663 \end_layout
14664
14665 \begin_layout Subsection
14666 基本的な機能と制約
14667 \end_layout
14668
14669 \begin_layout Standard
14670 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
14671 \end_layout
14672
14673 \begin_layout Description
14674 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
14675 \end_layout
14676
14677 \begin_layout Description
14678 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
14679 が混乱させられます
14680 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
14681 \family sans
14682 文書\SpecialChar menuseparator
14683 設定\SpecialChar menuseparator
14684 ページレイアウト
14685 \family default
14686 参照).これらを章題ページに使用したい場合には,コマンド
14687 \family typewriter
14688
14689 \backslash
14690 chapterstyle
14691 \family default
14692 を,本文またはプリアンブルに記述する必要があります(例えば,
14693 \family typewriter
14694
14695 \backslash
14696 chapterstyle{companion}
14697 \family default
14698 など).
14699 \end_layout
14700
14701 \begin_layout Description
14702 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
14703 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
14704 では,章や節の始めで
14705 \family sans
14706 挿入\SpecialChar menuseparator
14707 短縮タイトル
14708 \family default
14709 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.こ
14710 れを使えば,本文用と目次用とヘッダ用のタイトルの3種類を指定することができます.この機能を使用したい場合には,2つの非必須引数を入力して,最初のものに目次用,次
14711 のものにヘッダ用短縮タイトルを入れてください.
14712 \end_layout
14713
14714 \begin_layout Description
14715 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
14716 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
14717 \end_layout
14718
14719 \begin_layout Description
14720 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
14721 くない場合には,プリアンブルに
14722 \family typewriter
14723
14724 \backslash
14725 aliaspagestyle{title}{empty}
14726 \family default
14727 と入力してください.
14728 \end_layout
14729
14730 \begin_layout Description
14731 Article: クラスオプション
14732 \emph on
14733 article
14734 \emph default
14735 を用いる(
14736 \family sans
14737 文書\SpecialChar menuseparator
14738 設定\SpecialChar menuseparator
14739 クラスオプション
14740 \family default
14741 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
14742 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
14743 \end_layout
14744
14745 \begin_layout Description
14746 Oldfontcommands: \SpecialChar LaTeX
14747 旧2.09版で使用されていた旧いフォントコマンド(
14748 \family typewriter
14749
14750 \backslash
14751 rm
14752 \family default
14753
14754 \family typewriter
14755
14756 \backslash
14757 it
14758 \family default
14759 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
14760 を停止させます.しかし,クラスオプ
14761 ション
14762 \emph on
14763 oldfontcommands
14764 \emph default
14765 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
14766 は停止しなくなります).まだ,多くのパッケージと,
14767 就中多くのBib\SpecialChar TeX
14768 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
14769 \end_layout
14770
14771 \begin_layout Subsection
14772 追加された機能
14773 \end_layout
14774
14775 \begin_layout Standard
14776 \SpecialChar LyX
14777 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
14778 \begin_inset Foot
14779 status collapsed
14780
14781 \begin_layout Plain Layout
14782 \begin_inset Flex URL
14783 status collapsed
14784
14785 \begin_layout Plain Layout
14786
14787 CTAN:/macros/latex/memoir/memman.pdf
14788 \end_layout
14789
14790 \end_inset
14791
14792
14793 \end_layout
14794
14795 \end_inset
14796
14797 を見てください.
14798 \end_layout
14799
14800 \begin_layout Description
14801 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
14802 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
14803 \end_layout
14804
14805 \begin_layout Description
14806 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
14807 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
14808 \end_layout
14809
14810 \begin_layout Description
14811 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
14812 出典)は,短い線で区切られます.この環境には二つの引数(本文と出典)が必要なので,ここでも\SpecialChar LyX
14813 を少しだます必要があります.ここでは,2つの引数の間に,
14814 \emph on
14815 <標語>
14816 \family typewriter
14817 \emph default
14818 }{
14819 \family default
14820 \emph on
14821 <標語の著者>
14822 \emph default
14823 のように,(\SpecialChar TeX
14824 モードで)波括弧を入れなくてはなりません.
14825 \end_layout
14826
14827 \begin_layout Description
14828 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
14829 は,そのうちいくつかしかサポートしていません.詩題はその一つです
14830 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
14831 コードを使用しな
14832 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
14833 ではそれができないためです).
14834 \end_layout
14835
14836 \begin_layout Description
14837 詩題*: 目次に現れない他は詩題と同じです.
14838 \end_layout
14839
14840 \begin_layout Section
14841 Article (mwart)・book (mwbk)・report (mwrep)
14842 \begin_inset Argument status
14843 status collapsed
14844
14845 \begin_layout Plain Layout
14846 The 
14847 \family typewriter
14848 mw
14849 \family default
14850  Classes
14851 \end_layout
14852
14853 \end_inset
14854
14855
14856 \end_layout
14857
14858 \begin_layout Standard
14859
14860 \noun on
14861 Tomasz Luczak
14862 \noun default
14863
14864 \end_layout
14865
14866 \begin_layout Standard
14867 \SpecialChar LyX
14868 文書クラス
14869 \emph on
14870 article (mwart)
14871 \emph default
14872
14873 \emph on
14874 report (mwrep)・book
14875 \emph default
14876  
14877 \emph on
14878 (mwbk)
14879 \emph default
14880 は,それぞれ\SpecialChar LaTeX
14881 文書クラス
14882 \family typewriter
14883 mwart.cls
14884 \family default
14885
14886 \family typewriter
14887 mwrep.cls
14888 \family default
14889
14890 \family typewriter
14891 mwbk.cls
14892 \family default
14893 に対応しています.これらは,標準の
14894 \family typewriter
14895 article.cls
14896 \family default
14897
14898 \family typewriter
14899 report.cls
14900 \family default
14901
14902 \family typewriter
14903 book.cls
14904 \family default
14905 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
14906 \end_layout
14907
14908 \begin_layout Standard
14909 基本的な違いは,次の点です.
14910 \end_layout
14911
14912 \begin_layout Itemize
14913 付番のない見出し(
14914 \family sans
14915 節*
14916 \family default
14917 などの星付き)も目次に加えられます.
14918 \end_layout
14919
14920 \begin_layout Itemize
14921 以下のページスタイルの追加
14922 \end_layout
14923
14924 \begin_deeper
14925 \begin_layout Description
14926 uheadings 分離線付きヘッダ
14927 \end_layout
14928
14929 \begin_layout Description
14930 myheadings 
14931 \family typewriter
14932
14933 \backslash
14934 markright
14935 \family default
14936 コマンドおよび
14937 \family typewriter
14938
14939 \backslash
14940 markboth
14941 \family default
14942 コマンドで設定するカスタムヘッダ
14943 \end_layout
14944
14945 \begin_layout Description
14946 myuheadings 分離線付きカスタムヘッダ
14947 \end_layout
14948
14949 \begin_layout Description
14950 outer ページの外側にページ番号
14951 \end_layout
14952
14953 \end_deeper
14954 \begin_layout Itemize
14955 オプション
14956 \end_layout
14957
14958 \begin_deeper
14959 \begin_layout Description
14960 rmheadings セリフ体見出し — 既定
14961 \end_layout
14962
14963 \begin_layout Description
14964 sfheadings サンセリフ体見出し
14965 \end_layout
14966
14967 \begin_layout Description
14968 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
14969 \end_layout
14970
14971 \begin_layout Description
14972 titleauthor タイトルページは,タイトル・著者名の順で配置
14973 \end_layout
14974
14975 \begin_layout Description
14976 withmarginpar ページ上に余白のための場所を確保
14977 \end_layout
14978
14979 \end_deeper
14980 \begin_layout Section
14981 Paper
14982 \end_layout
14983
14984 \begin_layout Standard
14985
14986 \family sans
14987 paper
14988 \family default
14989 文書クラスは標準
14990 \family sans
14991 article
14992 \family default
14993 クラスの代替となるものです.これは
14994 \family sans
14995 同様の
14996 \family default
14997 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
14998 \end_layout
14999
15000 \begin_layout Section
15001 Rev\SpecialChar TeX
15002 4
15003 \end_layout
15004
15005 \begin_layout Standard
15006 by 
15007 \noun on
15008 Amir Karger
15009 \end_layout
15010
15011 \begin_layout Standard
15012 \begin_inset VSpace bigskip
15013 \end_inset
15014
15015
15016 \end_layout
15017
15018 \begin_layout Standard
15019 \noindent
15020
15021 \family sans
15022 Revtex
15023 \begin_inset space ~
15024 \end_inset
15025
15026 4
15027 \family default
15028 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
15029  4.0(1999年5月の
15030 \begin_inset Formula $\beta$
15031 \end_inset
15032
15033 リリース)クラスで動作します.
15034 \end_layout
15035
15036 \begin_layout Standard
15037 \SpecialChar LyX
15038 には,Rev\SpecialChar TeX
15039  3.1で動作する
15040 \family sans
15041 Revtex
15042 \family default
15043 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
15044  2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
15045 は\SpecialChar LaTeX2e
15046 を必要とすることから,第3.1版は\SpecialChar LyX
15047 とうまく
15048 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
15049  4.0は,\SpecialChar LaTeX2e
15050 で素直に動作するようにデザインされているので,\SpecialChar LyX
15051
15052 \family sans
15053 Rev\SpecialChar TeX
15054
15055 \begin_inset space ~
15056 \end_inset
15057
15058 4
15059 \family default
15060 テキストクラスの組で使用するのは,たいへん簡単です.
15061 \end_layout
15062
15063 \begin_layout Standard
15064 この取扱説明書は,Rev\SpecialChar TeX
15065  4.0の説明書の
15066 \emph on
15067 補完
15068 \emph default
15069 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
15070 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15071 します.
15072 \end_layout
15073
15074 \begin_layout Subsection
15075 導入
15076 \end_layout
15077
15078 \begin_layout Standard
15079 Rev\SpecialChar TeX
15080  4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
15081  4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
15082  4 Web
15083  Site 
15084 \begin_inset Flex URL
15085 status collapsed
15086
15087 \begin_layout Plain Layout
15088
15089 http://publish.aps.org/revtex4/
15090 \end_layout
15091
15092 \end_inset
15093
15094 から入手することができます.これを\SpecialChar LaTeX
15095 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15096 ィレクトリ)で簡単なRev\SpecialChar TeX
15097  4文書を \SpecialChar LaTeX
15098 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
15099 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
15100 4テキストクラスが使用
15101 できるようになるはずです.
15102 \end_layout
15103
15104 \begin_layout Standard
15105 使い始めるには,
15106 \family typewriter
15107 tex2lyx
15108 \family default
15109 を使ってRev\SpecialChar TeX
15110  4文書を読み込むか,またはひな型ディレクトリにある
15111 \family sans
15112 Revtex
15113 \begin_inset space ~
15114 \end_inset
15115
15116 4
15117 \family default
15118 のひな型を使うのが,おそらく一番簡単な方法でしょう.
15119 \end_layout
15120
15121 \begin_layout Subsection
15122 プリアンブルに関すること
15123 \end_layout
15124
15125 \begin_layout Standard
15126
15127 \family typewriter
15128
15129 \backslash
15130 documentclass
15131 \family default
15132 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
15133 \family sans
15134 文書\SpecialChar menuseparator
15135 設定\SpecialChar menuseparator
15136 文書クラス
15137 \family default
15138
15139 \family sans
15140 クラスオプション
15141 \family default
15142 フィールドに入れます.Rev\SpecialChar TeX
15143 では,少なくとも一つの非必須引数が必要なことに注意してください.
15144 \end_layout
15145
15146 \begin_layout Standard
15147
15148 \family typewriter
15149
15150 \backslash
15151 draft
15152 \family default
15153 など他のプリアンブルは,他のクラス同様,
15154 \family sans
15155 文書\SpecialChar menuseparator
15156 設定\SpecialChar menuseparator
15157 \SpecialChar LaTeX
15158 プリアンブル
15159 \family default
15160 に入れてください.
15161 \end_layout
15162
15163 \begin_layout Subsection
15164 レイアウト
15165 \end_layout
15166
15167 \begin_layout Standard
15168 レイアウトは,基本的にRev\SpecialChar TeX
15169 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
15170 \family typewriter
15171
15172 \backslash
15173 email{}
15174 \family default
15175 に対応しています.(少なくともRev\SpecialChar TeX
15176  4.0 Beta現在では)
15177 \family sans
15178 住所
15179 \family default
15180
15181 \family sans
15182 所属
15183 \family default
15184 はまったく同じものなので,両方を使う必要はありません
15185 \begin_inset Foot
15186 status collapsed
15187
15188 \begin_layout Plain Layout
15189 ついでながら,
15190 \family typewriter
15191 tex2lyx
15192 \family default
15193 は両方とも対応しているので,
15194 \family typewriter
15195
15196 \backslash
15197 address
15198 \family default
15199
15200 \family typewriter
15201
15202 \backslash
15203 affiliation
15204 \family default
15205 のどちらも翻訳することができます.
15206 \end_layout
15207
15208 \end_inset
15209
15210
15211 \end_layout
15212
15213 \begin_layout Subsection
15214 重要な注意
15215 \end_layout
15216
15217 \begin_layout Standard
15218 Rev\SpecialChar TeX
15219  4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
15220 ではさらに気をつけなくてはなりません.
15221 \end_layout
15222
15223 \begin_layout Standard
15224 Rev\SpecialChar TeX
15225 では,
15226 \family typewriter
15227
15228 \backslash
15229 thanks
15230 \family default
15231 コマンドは,
15232 \family typewriter
15233
15234 \backslash
15235 author
15236 \family default
15237 コマンドの
15238 \emph on
15239 外側
15240 \emph default
15241 に来なくてはなりません.\SpecialChar LyX
15242 では,独立した
15243 \family sans
15244 感謝
15245 \family default
15246 レイアウトがこの働きをします.直接
15247 \family sans
15248 ,著者
15249 \family default
15250 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
15251  4の取扱説明書をご覧ください.
15252 \end_layout
15253
15254 \begin_layout Standard
15255 また,
15256 \family sans
15257 著者電子メール
15258 \family default
15259
15260 \family sans
15261 著者URL・感謝(thanks)
15262 \family default
15263 レイアウトは,
15264 \family sans
15265 著者
15266 \family default
15267 レイアウトと
15268 \family sans
15269 住所(
15270 \family default
15271 または同等の
15272 \family sans
15273 所属
15274 \family default
15275 )レイアウトの間に置かなければなりません.
15276 \family sans
15277 感謝(thanks)
15278 \family default
15279
15280 \family sans
15281 住所
15282 \family default
15283 の後に置いてしまうと,\SpecialChar LaTeX
15284 はコンパイルに失敗します.
15285 \end_layout
15286
15287 \begin_layout Subsection
15288 問題点
15289 \end_layout
15290
15291 \begin_layout Standard
15292 このレイアウトの主な問題点は,電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません.例
15293 えば,節レイアウトも非必須引数を使用することができません).これは,たとえばページヘッダにヘッダ用タイトルを設定したい場合などには,ファイルを\SpecialChar LaTeX
15294 ファイルに変換した
15295 後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません),テキストエディタを使って\SpecialChar LaTeX
15296 ファイルを編集し,非必須引数を書き加えなくてはならないということで
15297 す.これらのレイアウトがないと,
15298 \family typewriter
15299
15300 \backslash
15301 altaffiliation
15302 \family default
15303 (またそれと同等な
15304 \family typewriter
15305
15306 \backslash
15307 altaddress
15308 \family default
15309 )は使えませんので,対応するレイアウトは存在せず,手動で書き加える必要があります
15310 \begin_inset Foot
15311 status collapsed
15312
15313 \begin_layout Plain Layout
15314
15315 \emph on
15316 JMarcからの註:
15317 \emph default
15318  実は,\SpecialChar LyX
15319  1.3.0 では非必須引数を一部サポートしているのですが,このレイアウトは,まだこの機能を使うようにはアップデートされていないのです.
15320 \end_layout
15321
15322 \end_inset
15323
15324
15325 \end_layout
15326
15327 \begin_layout Section
15328 Springer学術誌(
15329 \family sans
15330 svjour)
15331 \end_layout
15332
15333 \begin_layout Standard
15334
15335 \noun on
15336 Martin Vermeer
15337 \noun default
15338
15339 \end_layout
15340
15341 \begin_layout Subsection
15342 説明
15343 \end_layout
15344
15345 \begin_layout Standard
15346 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
15347 \begin_inset Flex URL
15348 status collapsed
15349
15350 \begin_layout Plain Layout
15351
15352 http://www.springer.de/author/tex/help-journals.html
15353 \end_layout
15354
15355 \end_inset
15356
15357 に必要なクラスファイル(\SpecialChar LaTeX2e
15358 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
15359 \family typewriter
15360 svjour.inc
15361 \family default
15362 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15363 \family typewriter
15364 svjog.layout
15365 \family default
15366 など)から取り込むことができます.
15367 \end_layout
15368
15369 \begin_layout Standard
15370 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
15371 \family typewriter
15372 svjog.layout
15373 \family default
15374 に書かれている指示に従って,自作の
15375 \family typewriter
15376 sv
15377 \family default
15378 <学術誌名>
15379 \family typewriter
15380 .layout
15381 \family default
15382 を書くだけで良いことを意味します.
15383 \end_layout
15384
15385 \begin_layout Standard
15386 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
15387 \family typewriter
15388 svjour
15389 \family default
15390
15391 \family typewriter
15392 svjog
15393 \family default
15394 は,標準\SpecialChar LyX
15395 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
15396 を再設定した後(teTeXの場合は,必
15397 要に応じてroot権限で
15398 \family typewriter
15399 texhash
15400 \family default
15401 を実行します),\SpecialChar LyX
15402 を環境構成すれば,動作するはずです.
15403 \end_layout
15404
15405 \begin_layout Subsection
15406 新スタイル
15407 \end_layout
15408
15409 \begin_layout Standard
15410 多くの定理環境 — 
15411 \family sans
15412 主張
15413 \family default
15414
15415 \family sans
15416 推論
15417 \family default
15418 ・\SpecialChar ldots
15419
15420 \family sans
15421 定理
15422 \family default
15423
15424 \end_layout
15425
15426 \begin_layout Standard
15427
15428 \family sans
15429 ヘッドノート
15430 \family default
15431
15432 \family sans
15433 献呈
15434 \family default
15435
15436 \family sans
15437 サブタイトル・ヘッダ用\SpecialChar LaTeX
15438 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15439 ement)
15440 \family default
15441 .詳しくは Springerのクラスファイルの説明書を読んでください.
15442 \end_layout
15443
15444 \begin_layout Subsection
15445 サポートしているジャーナル
15446 \end_layout
15447
15448 \begin_layout Itemize
15449
15450 \emph on
15451 Journal of Geodesy
15452 \emph default
15453
15454 \family typewriter
15455 svjog.layout
15456 \family default
15457  — Martin Vermeer
15458 \end_layout
15459
15460 \begin_layout Itemize
15461
15462 \emph on
15463 Probability Theory and Related Fields
15464 \emph default
15465
15466 \family typewriter
15467 svprobth.layout
15468 \family default
15469  — Jean-Marc Lasgouttes
15470 \end_layout
15471
15472 \begin_layout Standard
15473 あなた自身のレイアウトファイルをつくってください.難しくはありません.
15474 \end_layout
15475
15476 \begin_layout Subsection
15477 Credits
15478 \end_layout
15479
15480 \begin_layout Standard
15481 これらのファイルは,以前の 
15482 \family typewriter
15483 ejour2.layout
15484 \family default
15485 をもとにしています.
15486 \family typewriter
15487 ejour2.layout
15488 \family default
15489 は Springerの\SpecialChar LaTeX
15490  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
15491  Lasgouttesのおかげで \SpecialChar LyX
15492 のレイアウトファイルのメカニズムをよりよく理解することができました.
15493 \end_layout
15494
15495 \begin_layout Subsection
15496 バグ
15497 \end_layout
15498
15499 \begin_layout Standard
15500 多分あります.以前の 
15501 \family typewriter
15502 ejour2
15503 \family default
15504 よりは少なくなっているとは思いますが.
15505 \end_layout
15506
15507 \begin_layout Standard
15508 制限事項:定理環境の環境の番号は表示されません.#が表示されるだけです.
15509 \end_layout
15510
15511 \begin_layout Section
15512 Slides (別名
15513 \noun on
15514 Sli\SpecialChar TeX
15515
15516 \noun default
15517 )
15518 \begin_inset Foot
15519 status collapsed
15520
15521 \begin_layout Plain Layout
15522 (訳註)この節の内容は,全般的に古くなっています.
15523 \end_layout
15524
15525 \end_inset
15526
15527
15528 \begin_inset CommandInset label
15529 LatexCommand label
15530 name "sec:slitex"
15531
15532 \end_inset
15533
15534
15535 \end_layout
15536
15537 \begin_layout Standard
15538
15539 \noun on
15540 John Weiss
15541 \noun default
15542
15543 \end_layout
15544
15545 \begin_layout Subsection
15546 はじめに
15547 \end_layout
15548
15549 \begin_layout Standard
15550 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
15551 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
15552 \family sans
15553 Foil\SpecialChar TeX
15554
15555 \family default
15556 スライドクラスの2つがあります.本節は前者について説明を行います.
15557 \end_layout
15558
15559 \begin_layout Standard
15560 誤解のないように,正しく明確に,もう一度言っておきます.
15561 \end_layout
15562
15563 \begin_layout Standard
15564 \begin_inset VSpace bigskip
15565 \end_inset
15566
15567
15568 \end_layout
15569
15570 \begin_layout Standard
15571 \align center
15572
15573 \size large
15574 本節は文書クラス
15575 \begin_inset Quotes eld
15576 \end_inset
15577
15578
15579 \family sans
15580 transparencies (slides)
15581 \family default
15582
15583 \begin_inset Quotes erd
15584 \end_inset
15585
15586
15587 \emph on
15588 のみ
15589 \emph default
15590 を説明しています.
15591 \end_layout
15592
15593 \begin_layout Standard
15594 \begin_inset VSpace bigskip
15595 \end_inset
15596
15597
15598 \end_layout
15599
15600 \begin_layout Standard
15601
15602 \family sans
15603 「slides (Foil\SpecialChar TeX
15604 )
15605 \family default
15606 」の説明をお探しならば,第
15607 \begin_inset CommandInset ref
15608 LatexCommand ref
15609 reference "sec:foiltex"
15610
15611 \end_inset
15612
15613 節をご覧ください.
15614 \family sans
15615 foils
15616 \family default
15617 クラス「
15618 \family sans
15619 slides (Foil\SpecialChar TeX
15620 )
15621 \family default
15622 」は,実際,本節で説明している既定
15623 \family sans
15624 slides
15625 \family default
15626 クラスよりも良いようです
15627 \begin_inset Foot
15628 status collapsed
15629
15630 \begin_layout Plain Layout
15631 \SpecialChar ldots
15632
15633 \family sans
15634 Foil\SpecialChar TeX
15635
15636 \family default
15637 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
15638 \end_layout
15639
15640 \end_inset
15641
15642
15643 \end_layout
15644
15645 \begin_layout Standard
15646 このクラスは,旧SLI\SpecialChar TeX
15647 パッケージを\SpecialChar LaTeX2e
15648 用に改良したものです.\SpecialChar LaTeX2e
15649 頒布版すべてが,このクラス(以下では単に「
15650 \family sans
15651 slides
15652 \family default
15653 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
15654 \family sans
15655 foils
15656 \family default
15657 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
15658 他のクラスにはできないが
15659 \family sans
15660 slides
15661 \family default
15662 ならばできることもあります.詳しくは以下をお読みください.
15663 \end_layout
15664
15665 \begin_layout Subsection
15666 使い始めるには
15667 \begin_inset CommandInset label
15668 LatexCommand label
15669 name "sec:slidesetup"
15670
15671 \end_inset
15672
15673
15674 \end_layout
15675
15676 \begin_layout Standard
15677 当然ながら,この文書クラスを使用するには,
15678 \family sans
15679 文書\SpecialChar menuseparator
15680 設定
15681 \family default
15682 ダイアログのクラスリストから「
15683 \family sans
15684 transparencies (slides)
15685 \family default
15686 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
15687 \end_layout
15688
15689 \begin_layout Itemize
15690
15691 \family sans
15692 用紙方向
15693 \family default
15694
15695 \family sans
15696 二段組文書
15697 \family default
15698 の各オプションは,あえて変更する必要はありません.これらのオプションは,
15699 \family sans
15700 slides
15701 \family default
15702 クラスではサポートされていないので,効果がありません.
15703 \end_layout
15704
15705 \begin_layout Itemize
15706
15707 \family sans
15708 ヘディング様式
15709 \family default
15710 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
15711 \end_layout
15712
15713 \begin_deeper
15714 \begin_layout Description
15715 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
15716 \end_layout
15717
15718 \begin_layout Description
15719 設定(headings)
15720 \family sans
15721  プレーン(plain)
15722 \family default
15723 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
15724 \end_layout
15725
15726 \begin_layout Description
15727 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
15728 \end_layout
15729
15730 \end_deeper
15731 \begin_layout Itemize
15732
15733 \family sans
15734 slides
15735 \family default
15736 クラスには,もう一つ
15737 \family typewriter
15738 clock
15739 \family default
15740 というオプションがあります.これを使用するには,
15741 \family sans
15742 クラスオプション
15743 \family default
15744 に「
15745 \family typewriter
15746 clock
15747 \family default
15748 」と入力してください.
15749 \end_layout
15750
15751 \begin_deeper
15752 \begin_layout Standard
15753 このオプションを使うと,
15754 \family sans
15755 注釈
15756 \family default
15757 にタイムマーカーを加えることができます.詳細は,第
15758 \begin_inset CommandInset ref
15759 LatexCommand ref
15760 reference "sec:スライド注釈"
15761
15762 \end_inset
15763
15764 節をご覧ください.
15765 \end_layout
15766
15767 \end_deeper
15768 \begin_layout Standard
15769
15770 \family sans
15771 slides
15772 \family default
15773 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
15774 \family typewriter
15775 slides.lyx
15776 \family default
15777 」を使用することもできます(新規ファイルを開く際に
15778 \family sans
15779 ファイル\SpecialChar menuseparator
15780 新規(ひな型使用)
15781 \family default
15782 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
15783 \end_layout
15784
15785 \begin_layout Subsection
15786 段落環境
15787 \end_layout
15788
15789 \begin_layout Subsubsection
15790
15791 \family sans
15792 サポートされている環境
15793 \end_layout
15794
15795 \begin_layout Standard
15796 新しく
15797 \family sans
15798 slides
15799 \family default
15800 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
15801 \family sans
15802 サンセリフ体
15803 \family default
15804 フォントの
15805 \family sans
15806 極大
15807 \family default
15808 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
15809 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
15810 \end_layout
15811
15812 \begin_layout Standard
15813 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
15814 ます.これは,
15815 \family sans
15816 slides
15817 \family default
15818 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
15819 \end_layout
15820
15821 \begin_layout Itemize
15822
15823 \family sans
15824 標準
15825 \end_layout
15826
15827 \begin_layout Itemize
15828
15829 \family sans
15830 箇条書き(記号)
15831 \end_layout
15832
15833 \begin_layout Itemize
15834
15835 \family sans
15836 箇条書き(連番)
15837 \end_layout
15838
15839 \begin_layout Itemize
15840
15841 \family sans
15842 箇条書き(記述)
15843 \end_layout
15844
15845 \begin_layout Itemize
15846
15847 \family sans
15848 箇条書き(一覧)
15849 \end_layout
15850
15851 \begin_layout Itemize
15852
15853 \family sans
15854 引用(字下げあり)
15855 \end_layout
15856
15857 \begin_layout Itemize
15858
15859 \family sans
15860 引用(字下げなし)
15861 \end_layout
15862
15863 \begin_layout Itemize
15864
15865 \family sans
15866 詩句
15867 \end_layout
15868
15869 \begin_layout Itemize
15870
15871 \family sans
15872 キャプション
15873 \end_layout
15874
15875 \begin_layout Itemize
15876
15877 \family sans
15878 \SpecialChar LyX
15879 コード
15880 \end_layout
15881
15882 \begin_layout Itemize
15883
15884 \family sans
15885 コメント
15886 \end_layout
15887
15888 \begin_layout Standard
15889 これ以外の標準的な環境,例えば節見出し用の環境などは
15890 \family sans
15891 slides
15892 \family default
15893 クラスでは使えません.
15894 \end_layout
15895
15896 \begin_layout Standard
15897 一方,以下の新しい環境があります.
15898 \end_layout
15899
15900 \begin_layout Itemize
15901
15902 \family sans
15903 スライド
15904 \end_layout
15905
15906 \begin_layout Itemize
15907
15908 \family sans
15909 オーバーレイ
15910 \end_layout
15911
15912 \begin_layout Itemize
15913
15914 \family sans
15915 注釈
15916 \end_layout
15917
15918 \begin_layout Itemize
15919
15920 \family sans
15921 不可視文
15922 \end_layout
15923
15924 \begin_layout Itemize
15925
15926 \family sans
15927 可視文
15928 \end_layout
15929
15930 \begin_layout Standard
15931 これら5つの環境は,\SpecialChar LyX
15932 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
15933 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
15934 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
15935 マジック」が必要になります.
15936 \end_layout
15937
15938 \begin_layout Subsubsection
15939 新環境の癖
15940 \begin_inset CommandInset label
15941 LatexCommand label
15942 name "sec:スライドの癖"
15943
15944 \end_inset
15945
15946
15947 \end_layout
15948
15949 \begin_layout Standard
15950 5つの新しい環境にはすべて,\SpecialChar LyX
15951 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
15952 では,環境を別の環境で開始することが禁止されています.これを回避するために,
15953 \family sans
15954 スライド
15955 \family default
15956 環境は『
15957 \emph on
15958 ユーザーの手引き
15959 \emph default
15960 』で述べられているような段落環境ではなくなっています.
15961 \end_layout
15962
15963 \begin_layout Standard
15964
15965 \family sans
15966 スライド
15967 \family default
15968
15969 \family sans
15970 オーバーレイ
15971 \family default
15972
15973 \family sans
15974 注釈
15975 \family default
15976 は「疑似環境」だとお考えください.これらは節見出しや「
15977 \family sans
15978 キャプション
15979 \family default
15980 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
15981 \family sans
15982 不可視文
15983 \family default
15984
15985 \family sans
15986 可視文
15987 \family default
15988 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
15989 \end_layout
15990
15991 \begin_layout Standard
15992
15993 \family sans
15994 スライド
15995 \family default
15996
15997 \family sans
15998 オーバーレイ
15999 \family default
16000
16001 \family sans
16002 注釈
16003 \family default
16004
16005 \family sans
16006 不可視文
16007 \family default
16008
16009 \family sans
16010 可視文
16011 \family default
16012 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
16013 \family sans
16014 スライド
16015 \family default
16016
16017 \family sans
16018 オーバーレイ
16019 \family default
16020
16021 \family sans
16022 注釈
16023 \family default
16024
16025 \family sans
16026 不可視文
16027 \family default
16028
16029 \family sans
16030 可視文
16031 \family default
16032 では,まったく意味がなく,\SpecialChar LyX
16033 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
16034 \end_layout
16035
16036 \begin_layout Standard
16037 長めのラベルの後に文章を入れる
16038 \emph on
16039 必要は
16040 \emph default
16041 まったく
16042 \emph on
16043 ない
16044 \emph default
16045 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
16046
16047 \family sans
16048 Return
16049 \family default
16050 を押してください.
16051 \end_layout
16052
16053 \begin_layout Standard
16054 一方,説明文を入れたくない場合には,\SpecialChar LyX
16055 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
16056 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
16057 こで以下のようにしてください.
16058 \end_layout
16059
16060 \begin_layout Itemize
16061 新しい
16062 \family sans
16063 スライド
16064 \family default
16065
16066 \family sans
16067 オーバーレイ
16068 \family default
16069
16070 \family sans
16071 注釈
16072 \family default
16073
16074 \family sans
16075 不可視文
16076 \family default
16077
16078 \family sans
16079 可視文
16080 \family default
16081
16082 \emph on
16083 中に入れる
16084 \emph default
16085 文章を入力してください.
16086 \end_layout
16087
16088 \begin_layout Itemize
16089 段落の先頭に移動します.
16090 \end_layout
16091
16092 \begin_layout Itemize
16093 次に
16094 \family sans
16095 Return
16096 \family default
16097 を押します.
16098 \end_layout
16099
16100 \begin_layout Itemize
16101 最後に,この新しい空の段落を
16102 \family sans
16103 スライド
16104 \family default
16105
16106 \family sans
16107 オーバーレイ
16108 \family default
16109
16110 \family sans
16111 注釈
16112 \family default
16113
16114 \family sans
16115 不可視文
16116 \family default
16117
16118 \family sans
16119 可視文
16120 \family default
16121 に変更します.
16122 \end_layout
16123
16124 \begin_layout Standard
16125 将来の\SpecialChar LyX
16126 では,このような癖が解決されることを祈っています\SpecialChar ldots
16127
16128 \begin_inset Foot
16129 status collapsed
16130
16131 \begin_layout Plain Layout
16132 (訳註)ここの記述は古くなっています.
16133 \end_layout
16134
16135 \end_inset
16136
16137
16138 \end_layout
16139
16140 \begin_layout Subsection
16141
16142 \family sans
16143 スライド
16144 \family default
16145
16146 \family sans
16147 オーバーレイ
16148 \family default
16149
16150 \family sans
16151 注釈で発表用のスライドを作る
16152 \end_layout
16153
16154 \begin_layout Subsubsection
16155
16156 \family sans
16157 スライド
16158 \family default
16159 環境を使う
16160 \end_layout
16161
16162 \begin_layout Standard
16163 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
16164 料を準備するうえで
16165 \family sans
16166 slides
16167 \family default
16168 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16169 の哲学です).
16170 \end_layout
16171
16172 \begin_layout Standard
16173
16174 \family sans
16175 スライド
16176 \family default
16177 環境を選択すれば(方法は第
16178 \begin_inset CommandInset ref
16179 LatexCommand ref
16180 reference "sec:スライドの癖"
16181
16182 \end_inset
16183
16184 節参照のこと),\SpecialChar LyX
16185 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
16186 環境は,すべて新規スライドに入ります.簡単ですよね.
16187 \end_layout
16188
16189 \begin_layout Standard
16190 Slidesは,おそらく\SpecialChar LyX
16191 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16192 \family sans
16193 段落レイアウト
16194 \family default
16195 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16196 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
16197 ,一枚に収まらないスライドでは,
16198 \family sans
16199 オーバーレイ
16200 \family default
16201 を使用すると干渉する恐れがあります.
16202 \end_layout
16203
16204 \begin_layout Standard
16205
16206 \family sans
16207 オーバーレイ
16208 \family default
16209 環境と
16210 \family sans
16211 注釈
16212 \family default
16213 環境も,
16214 \family sans
16215 スライド
16216 \family default
16217 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
16218 \noun on
16219 新規オーバーレイ
16220 \noun default
16221 :」ないし「
16222 \noun on
16223 新規注釈:
16224 \noun default
16225 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
16226 \end_layout
16227
16228 \begin_layout Standard
16229
16230 \family sans
16231 スライド
16232 \family default
16233 と同様に,
16234 \family sans
16235 オーバーレイ
16236 \family default
16237
16238 \family sans
16239 注釈
16240 \family default
16241 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
16242 \family sans
16243 注釈
16244 \family default
16245
16246 \family sans
16247 オーバーレイ
16248 \family default
16249 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
16250 \end_layout
16251
16252 \begin_layout Subsubsection
16253
16254 \family sans
16255 スライドでオーバーレイを使用する
16256 \end_layout
16257
16258 \begin_layout Standard
16259
16260 \family sans
16261 オーバーレイ
16262 \family default
16263 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
16264 \family sans
16265 スライド
16266 \family default
16267 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
16268 \family sans
16269 スライド
16270 \family default
16271 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
16272 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
16273 \family sans
16274 オーバーレイ
16275 \family default
16276 環境を使えば,もっと楽になります.
16277 \end_layout
16278
16279 \begin_layout Standard
16280
16281 \family sans
16282 オーバーレイ
16283 \family default
16284 は,「親」
16285 \family sans
16286 スライド
16287 \family default
16288 のページ番号を引継ぎ,その後に「
16289 \family typewriter
16290 -a
16291 \family default
16292 」を付け加えます
16293 \begin_inset Foot
16294 status collapsed
16295
16296 \begin_layout Plain Layout
16297 想像できるように,複数のオーバーレイがあれば,「
16298 \family typewriter
16299 -a
16300 \family default
16301 」「
16302 \family typewriter
16303 -b
16304 \family default
16305 」「
16306 \family typewriter
16307 -c
16308 \family default
16309 」などが親スライドのページ番号に付け加えられます.
16310 \end_layout
16311
16312 \end_inset
16313
16314 .当然のことながら,
16315 \family sans
16316 スライド
16317 \family default
16318
16319 \family sans
16320 オーバーレイ
16321 \family default
16322 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
16323 \family sans
16324 オーバーレイ
16325 \family default
16326
16327 \family sans
16328 スライド
16329 \family default
16330 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
16331 では,
16332 \family sans
16333 オーバーレイ
16334 \family default
16335 のラベルを
16336 \family sans
16337 スライド
16338 \family default
16339 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
16340 \family sans
16341 オーバーレイ
16342 \family default
16343 と親
16344 \family sans
16345 スライド
16346 \family default
16347 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
16348 \end_layout
16349
16350 \begin_layout Standard
16351 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
16352 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
16353 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
16354 \family sans
16355 不可視文
16356 \family default
16357
16358 \family sans
16359 可視文
16360 \family default
16361 を使用する方法があります.
16362 \end_layout
16363
16364 \begin_layout Standard
16365 これらの名前が意味するとおり,
16366 \family sans
16367 不可視文
16368 \family default
16369
16370 \family sans
16371 可視文
16372 \family default
16373 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
16374 \begin_inset CommandInset ref
16375 LatexCommand ref
16376 reference "sec:スライドの癖"
16377
16378 \end_inset
16379
16380 節で述べたように,この2つの環境の
16381 \emph on
16382
16383 \emph default
16384 には何も置くことができません.
16385 \family sans
16386 不可視文
16387 \family default
16388 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
16389 \family sans
16390 スライド
16391 \family default
16392 (あるいは
16393 \family sans
16394 オーバーレイ
16395 \family default
16396 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
16397 \end_layout
16398
16399 \begin_layout Standard
16400
16401 \family sans
16402 可視文
16403 \family default
16404 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
16405 \family sans
16406 スライド
16407 \family default
16408
16409 \family sans
16410 オーバーレイ
16411 \family default
16412
16413 \family sans
16414 注釈
16415 \family default
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 \end_layout
16430
16431 \begin_layout Standard
16432 ここまでで,
16433 \family sans
16434 スライド
16435 \family default
16436
16437 \family sans
16438 オーバーレイ
16439 \family default
16440 上で
16441 \family sans
16442 不可視文
16443 \family default
16444
16445 \family sans
16446 可視文
16447 \family default
16448 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
16449 \end_layout
16450
16451 \begin_layout Enumerate
16452 メインのスライドか
16453 \family sans
16454 オーバーレイ
16455 \family default
16456 かに関わらず,スライド上に現れるすべてを含んだ
16457 \family sans
16458 スライド
16459 \family default
16460 を作成します.
16461 \end_layout
16462
16463 \begin_layout Enumerate
16464
16465 \family sans
16466 オーバーレイ
16467 \family default
16468 のみに表示するすべての図や段落の前に,
16469 \family sans
16470 不可視文
16471 \family default
16472 環境を挿入し,必要ならば,
16473 \family sans
16474 オーバーレイ
16475 \family default
16476 のみの文章の後に
16477 \family sans
16478 可視文
16479 \family default
16480 環境を挿入します.
16481 \end_layout
16482
16483 \begin_layout Enumerate
16484
16485 \family sans
16486 スライド
16487 \family default
16488 の直後から,
16489 \family sans
16490 オーバーレイ
16491 \family default
16492 を開始します.
16493 \end_layout
16494
16495 \begin_layout Enumerate
16496 この
16497 \family sans
16498 スライド
16499 \family default
16500 の内容を
16501 \family sans
16502 オーバーレイ
16503 \family default
16504 にコピーします.
16505 \end_layout
16506
16507 \begin_layout Enumerate
16508
16509 \family sans
16510 オーバーレイ
16511 \family default
16512 内部の
16513 \family sans
16514 不可視文
16515 \family default
16516 行をすべて
16517 \family sans
16518 不可視文
16519 \family default
16520 に変更し,
16521 \family sans
16522 可視文
16523 \family default
16524
16525 \family sans
16526 不可視文
16527 \family default
16528 に変更します.
16529 \end_layout
16530
16531 \begin_layout Standard
16532 これだけです.これで
16533 \family sans
16534 オーバーレイ
16535 \family default
16536 ができあがりました.
16537 \end_layout
16538
16539 \begin_layout Standard
16540 \SpecialChar LyX
16541  
16542 \family sans
16543 slides
16544 \family default
16545 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
16546 実現するためには,\SpecialChar LaTeX
16547 コードを埋め込む必要があります
16548 \begin_inset Foot
16549 status collapsed
16550
16551 \begin_layout Plain Layout
16552 このコマンドは,
16553 \end_layout
16554
16555 \begin_layout Itemize
16556
16557 \family typewriter
16558 {
16559 \backslash
16560 invisible \SpecialChar ldots
16561  }
16562 \end_layout
16563
16564 \begin_layout Itemize
16565
16566 \family typewriter
16567 {
16568 \backslash
16569 visible \SpecialChar ldots
16570  }
16571 \end_layout
16572
16573 \begin_layout Plain Layout
16574 \SpecialChar ldots
16575 のような形となり,\SpecialChar TeX
16576 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
16577 \family typewriter
16578
16579 \backslash
16580 invisible
16581 \family default
16582 ないし
16583 \family typewriter
16584
16585 \backslash
16586 visible
16587 \family default
16588 コマンドの後ろ)に入れます.\SpecialChar TeX
16589 としてマークする方法がわからない場合は,
16590 \emph on
16591 ユーザーの手引き
16592 \emph default
16593 をご参照ください.
16594 \end_layout
16595
16596 \end_inset
16597
16598
16599 \end_layout
16600
16601 \begin_layout Subsubsection
16602
16603 \family sans
16604 スライドで注釈を使う
16605 \family default
16606
16607 \begin_inset CommandInset label
16608 LatexCommand label
16609 name "sec:スライド注釈"
16610
16611 \end_inset
16612
16613
16614 \end_layout
16615
16616 \begin_layout Standard
16617
16618 \family sans
16619 オーバーレイ
16620 \family default
16621 と同様,
16622 \family sans
16623 注釈
16624 \family default
16625 も「親」
16626 \family sans
16627 スライド
16628 \family default
16629 に関連付けられています.ここでも\SpecialChar LyX
16630
16631 \family sans
16632 スライド
16633 \family default
16634 クラスは視覚的な効果を与えています.
16635 \family sans
16636 注釈
16637 \family default
16638 のラベルは
16639 \family sans
16640 スライド
16641 \family default
16642 よりも短く(オーバーレイのラベルよりも長いですが),
16643 \family sans
16644 オーバーレイ
16645 \family default
16646 のラベルと同様,派手な赤紫色です.加えて,印刷した
16647 \family sans
16648 注釈
16649 \family default
16650 には,「親」スライドのページ番号に「
16651 \family typewriter
16652 -
16653 \family default
16654 1」「
16655 \family typewriter
16656 -
16657 \family default
16658 2」「
16659 \family typewriter
16660 -
16661 \family default
16662 3」等を付けたページ番号が付けられます.1つの
16663 \family sans
16664 スライド
16665 \family default
16666 には,複数の
16667 \family sans
16668 注釈
16669 \family default
16670 を関連付けることができるので,
16671 \family sans
16672 スライド
16673 \family default
16674
16675 \family sans
16676 オーバーレイ
16677 \family default
16678 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
16679 \end_layout
16680
16681 \begin_layout Standard
16682
16683 \family sans
16684 注釈
16685 \family default
16686 の目的は明らかです.
16687 \family sans
16688 スライド
16689 \family default
16690 に関して付け加えたいことを書き留めておくことです.特定の
16691 \family sans
16692 スライド
16693 \family default
16694 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
16695
16696 \family sans
16697 スライド
16698 \family default
16699 クラスは,
16700 \noun on
16701 Sli
16702 \noun default
16703 \SpecialChar TeX
16704 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
16705 コードを使用することに頼らなくてはなりません.
16706 \end_layout
16707
16708 \begin_layout Standard
16709 タイムマーカを使用するには,クラスオプション「
16710 \family typewriter
16711 clock
16712 \family default
16713 」を追加指定する必要があります(第
16714 \begin_inset CommandInset ref
16715 LatexCommand ref
16716 reference "sec:slidesetup"
16717
16718 \end_inset
16719
16720 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
16721 \family sans
16722 注釈
16723 \family default
16724 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
16725 コマンド「
16726 \family typewriter
16727
16728 \backslash
16729 settime{}
16730 \family default
16731 」および「
16732 \family typewriter
16733
16734 \backslash
16735 addtime{}
16736 \family default
16737 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
16738 \family typewriter
16739
16740 \backslash
16741 settime{}
16742 \family default
16743 」は,タイムマーカを特定の時間に設定し,「
16744 \family typewriter
16745
16746 \backslash
16747 addtime{}
16748 \family default
16749 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
16750 \family sans
16751 注釈
16752 \family default
16753 を用いれば,特定の
16754 \family sans
16755 スライド
16756 \family default
16757 にどれだけの時間をかけるのか忘れないでいられます.
16758 \end_layout
16759
16760 \begin_layout Standard
16761 最後に,説明しておくべき機能がもう一つあります.当然ながら,
16762 \family sans
16763 スライド
16764 \family default
16765
16766 \family sans
16767 オーバーレイ
16768 \family default
16769 はすべてスライドに,
16770 \family sans
16771 注釈
16772 \family default
16773 はすべて普通の紙に印刷したいはずです.しかしながら,
16774 \family sans
16775 注釈
16776 \family default
16777 は関連付けられた親スライドの直後に
16778 \emph on
16779 来なくてはなりません
16780 \emph default
16781 .ユーザーはどうしたら良いのでしょうか.
16782 \end_layout
16783
16784 \begin_layout Standard
16785 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
16786 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
16787 \family typewriter
16788
16789 \backslash
16790 onlyslides{
16791 \backslash
16792 slides}
16793 \family default
16794 」は,出力に
16795 \family sans
16796 スライド
16797 \family default
16798
16799 \family sans
16800 オーバーレイ
16801 \family default
16802 のみが含まれるようにするものです.同様に,「
16803 \family typewriter
16804
16805 \backslash
16806 onlynotes{
16807 \backslash
16808 notes}
16809 \family default
16810 」は
16811 \family sans
16812 注釈
16813 \family default
16814 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
16815 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
16816 らば,まず
16817 \family typewriter
16818
16819 \backslash
16820 onlyslides{
16821 \backslash
16822 slides}
16823 \family default
16824 のコメントを外して,現ファイル名に「*
16825 \family typewriter
16826 -slides
16827 \family default
16828 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
16829 \family typewriter
16830
16831 \backslash
16832 onlynotes{
16833 \backslash
16834 notes
16835 \family default
16836 }」のコメントを外して,これを「
16837 \family typewriter
16838 *-notes.ps
16839 \family default
16840 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
16841 \end_layout
16842
16843 \begin_layout Standard
16844
16845 \family typewriter
16846
16847 \backslash
16848 onlyslides{}
16849 \family default
16850 」および「
16851 \family typewriter
16852
16853 \backslash
16854 onlynotes{}
16855 \family default
16856 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
16857 の良書をご覧ください.
16858 \end_layout
16859
16860 \begin_layout Subsection
16861
16862 \family sans
16863 slides
16864 \family default
16865 クラスのひな型ファイル
16866 \end_layout
16867
16868 \begin_layout Standard
16869
16870 \family sans
16871 slides
16872 \family default
16873 クラス用のひな型ファイルとして「
16874 \family typewriter
16875 slides.lyx
16876 \family default
16877 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
16878 \family sans
16879 ファイル\SpecialChar menuseparator
16880 新規(ひな型使用)
16881 \family default
16882 メニューを選択してください.すると新規ファイルには,
16883 \family sans
16884 スライド
16885 \family default
16886
16887 \family sans
16888 オーバーレイ
16889 \family default
16890
16891 \family sans
16892 注釈
16893 \family default
16894 の組が,例として含まれており,
16895 \family sans
16896 スライド
16897 \family default
16898
16899 \family sans
16900 オーバーレイ
16901 \family default
16902 には,さらに
16903 \family sans
16904 不可視文
16905 \family default
16906
16907 \family sans
16908 可視文
16909 \family default
16910 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
16911 \end_layout
16912
16913 \begin_layout LyX-Code
16914 % Uncomment to print out only slides and overlays
16915 \end_layout
16916
16917 \begin_layout LyX-Code
16918 %
16919 \end_layout
16920
16921 \begin_layout LyX-Code
16922 %
16923 \backslash
16924 onlyslides{
16925 \backslash
16926 slides}
16927 \begin_inset Newline newline
16928 \end_inset
16929
16930  
16931 \end_layout
16932
16933 \begin_layout LyX-Code
16934 % Uncomment to print out only notes
16935 \end_layout
16936
16937 \begin_layout LyX-Code
16938 %
16939 \end_layout
16940
16941 \begin_layout LyX-Code
16942 %
16943 \backslash
16944 onlynotes{
16945 \backslash
16946 notes}
16947 \end_layout
16948
16949 \begin_layout Standard
16950 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
16951 の組み込みクラスである「
16952 \noun on
16953 Sli\SpecialChar TeX
16954
16955 \noun default
16956 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
16957 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
16958 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
16959 \family sans
16960 Foils
16961 \family default
16962 クラス(第
16963 \begin_inset CommandInset ref
16964 LatexCommand ref
16965 reference "sec:foiltex"
16966
16967 \end_inset
16968
16969 節参照)や「
16970 \family typewriter
16971 seminar
16972 \family default
16973 」パッケージ(一部の\SpecialChar TeX
16974 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
16975 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
16976 さい.
16977 \end_layout
16978
16979 \begin_layout Chapter
16980 ソフトウェアを追加する必要がある \SpecialChar LyX
16981 機能
16982 \end_layout
16983
16984 \begin_layout Section
16985 \SpecialChar TeX
16986 のチェック
16987 \end_layout
16988
16989 \begin_layout Standard
16990
16991 \noun on
16992 Asger Alstrup
16993 \noun default
16994
16995 \end_layout
16996
16997 \begin_layout Subsection
16998 はじめに
16999 \end_layout
17000
17001 \begin_layout Standard
17002
17003 \family typewriter
17004 chktex
17005 \family default
17006 プログラムが導入されていると
17007 \begin_inset Foot
17008 status collapsed
17009
17010 \begin_layout Plain Layout
17011 \SpecialChar LaTeX
17012 頒布版としてMiK\SpecialChar TeX
17013 を使用している場合には,
17014 \family typewriter
17015 chktex
17016 \family default
17017 はまだ利用可能ではありません.
17018 \end_layout
17019
17020 \end_inset
17021
17022
17023 \family sans
17024 ツール
17025 \family default
17026 メニューの下に,
17027 \family sans
17028 \SpecialChar TeX
17029 構文チェック
17030 \family default
17031 という項目が表示されます.
17032 \family typewriter
17033 chktex
17034 \family default
17035 は,CTAN
17036 \begin_inset Newline newline
17037 \end_inset
17038
17039
17040 \begin_inset CommandInset href
17041 LatexCommand href
17042 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17043
17044 \end_inset
17045
17046 から入手することができます.
17047 \end_layout
17048
17049 \begin_layout Standard
17050
17051 \family sans
17052 Chk\SpecialChar TeX
17053
17054 \family default
17055 パッケージは,\SpecialChar LaTeX
17056 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
17057 \begin_inset Flex Noun
17058 status collapsed
17059
17060 \begin_layout Plain Layout
17061 Jens T.
17062  Berger Thielemann
17063 \end_layout
17064
17065 \end_inset
17066
17067 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
17068 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
17069 \family typewriter
17070 lint
17071 \family default
17072 であるとも言えます.
17073 \end_layout
17074
17075 \begin_layout Standard
17076 さて,\SpecialChar LyX
17077 はつねに正しい\SpecialChar LaTeX
17078 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
17079 で何をするというのでしょうか.答えは簡単です.
17080 \family typewriter
17081 lint
17082 \family default
17083 がC言語プログラムの
17084 \emph on
17085 文法
17086 \emph default
17087 をチェックするだけでなく,打ち間違いによる
17088 \emph on
17089 意味上の
17090 \emph default
17091 チェックも行うように,
17092 \family sans
17093 Chk\SpecialChar TeX
17094
17095 \family default
17096 は,文法エラーの他に犯しがちな
17097 \emph on
17098 写植上の
17099 \emph default
17100 誤りも検出してくれるからです.
17101 \family sans
17102 Chk\SpecialChar TeX
17103
17104 \family default
17105 は,以下のような誤りを検出することができます.
17106 \end_layout
17107
17108 \begin_layout Itemize
17109 省略記号の検出:
17110 \begin_inset Newline newline
17111 \end_inset
17112
17113 ...ではなく\SpecialChar ldots
17114 を使わなくてはなりません
17115 \end_layout
17116
17117 \begin_layout Itemize
17118 括弧の前後にスペースを置かない:
17119 \begin_inset Newline newline
17120 \end_inset
17121
17122 ( wrong spacing ):誤った空白
17123 \end_layout
17124
17125 \begin_layout Itemize
17126 よく使われる省略形の後ろは通常スペースにする:
17127 \begin_inset Newline newline
17128 \end_inset
17129
17130 e.
17131 \begin_inset space \thinspace{}
17132 \end_inset
17133
17134 g.
17135 \begin_inset space \space{}
17136 \end_inset
17137
17138 is too wide spacing.:広すぎる空白
17139 \end_layout
17140
17141 \begin_layout Itemize
17142 直前の文章が大文字で終わっているときに,文末スペースに直す:
17143 \begin_inset Newline newline
17144 \end_inset
17145
17146 This is a TEST.
17147  And this is wrong spacing.:誤った空白
17148 \end_layout
17149
17150 \begin_layout Itemize
17151 ラベルや類似コマンドの前のスペース:
17152 \begin_inset Newline newline
17153 \end_inset
17154
17155 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません. 
17156 \begin_inset CommandInset label
17157 LatexCommand label
17158 name "sec:chktex"
17159
17160 \end_inset
17161
17162  
17163 \begin_inset Foot
17164 status collapsed
17165
17166 \begin_layout Plain Layout
17167 この脚注は,正しくないページに行ってしまう恐れがあります.
17168 \end_layout
17169
17170 \end_inset
17171
17172  このラベルは離れすぎです.
17173 \end_layout
17174
17175 \begin_layout Itemize
17176 参照の前にハードスペースではなくスペース:
17177 \begin_inset Newline newline
17178 \end_inset
17179
17180 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
17181 \begin_inset CommandInset ref
17182 LatexCommand ref
17183 reference "sec:chktex"
17184
17185 \end_inset
17186
17187 節をご覧ください.
17188 \end_layout
17189
17190 \begin_layout Itemize
17191 数字のあいだで
17192 \begin_inset Formula $\times$
17193 \end_inset
17194
17195 ではなく「x」が使われている:
17196 \begin_inset Newline newline
17197 \end_inset
17198
17199 2x2は,
17200 \begin_inset Formula $2\times2$
17201 \end_inset
17202
17203 よりも安っぽく見えます.
17204 \end_layout
17205
17206 \begin_layout Standard
17207 などなど\SpecialChar ldots
17208
17209 \family sans
17210 Chk\SpecialChar TeX
17211
17212 \family default
17213 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
17214 \end_layout
17215
17216 \begin_layout Subsection
17217 使いかた
17218 \end_layout
17219
17220 \begin_layout Standard
17221 このプログラムを導入したならば,使うのは
17222 \family sans
17223 ツール\SpecialChar menuseparator
17224 \SpecialChar TeX
17225 構文チェック
17226 \family default
17227 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
17228 は使用中の文書の\SpecialChar LaTeX
17229 ファイルを生成して,
17230 \family sans
17231 Chk\SpecialChar TeX
17232
17233 \family default
17234 を起動し,当該ファイルを検査しますが,
17235 \family sans
17236 Chk\SpecialChar TeX
17237
17238 \family default
17239 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
17240 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
17241 \family sans
17242 移動\SpecialChar menuseparator
17243 エラー
17244 \family default
17245 を選択するか,既定の
17246 \family typewriter
17247 cua
17248 \family default
17249
17250 \begin_inset Flex Ruby
17251 status collapsed
17252
17253 \begin_layout Plain Layout
17254
17255 \begin_inset Argument post:1
17256 status collapsed
17257
17258 \begin_layout Plain Layout
17259 キー
17260 \end_layout
17261
17262 \end_inset
17263
17264
17265 \end_layout
17266
17267 \end_inset
17268
17269 設定ファイルならば
17270 \begin_inset Flex Ruby
17271 status collapsed
17272
17273 \begin_layout Plain Layout
17274
17275 \family roman
17276 \series medium
17277 \shape up
17278 \size normal
17279 \emph off
17280 \bar no
17281 \noun off
17282 \color none
17283 捷径
17284 \family default
17285 \series default
17286 \shape default
17287 \size default
17288 \emph default
17289 \bar default
17290 \noun default
17291 \color inherit
17292
17293 \begin_inset Argument post:1
17294 status collapsed
17295
17296 \begin_layout Plain Layout
17297 ショートカット
17298 \end_layout
17299
17300 \end_inset
17301
17302
17303 \end_layout
17304
17305 \end_inset
17306
17307
17308 \family sans
17309 C-g
17310 \family default
17311 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
17312 \family typewriter
17313 cua
17314 \family default
17315 鍵設定の場合には捷径鍵
17316 \family sans
17317 C-i
17318 \family default
17319
17320 \family typewriter
17321 emacs
17322 \family default
17323 鍵設定の場合は捷径鍵
17324 \family sans
17325 C-o
17326 \family default
17327 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
17328 \family sans
17329 Chk\SpecialChar TeX
17330
17331 \family default
17332 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
17333 があるのです.
17334 \end_layout
17335
17336 \begin_layout Standard
17337 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
17338 警告のほとんどは実際には警告に値しません.
17339 \end_layout
17340
17341 \begin_layout Subsection
17342 微調整のしかた
17343 \end_layout
17344
17345 \begin_layout Standard
17346 場合によっては,
17347 \family sans
17348 Chk\SpecialChar TeX
17349
17350 \family default
17351 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
17352 \family sans
17353 Chk\SpecialChar TeX
17354
17355 \family default
17356 を無効にするか,あなたにもう少し合うように
17357 \family sans
17358 Chk\SpecialChar TeX
17359
17360 \family default
17361 を調整することができます.
17362 \end_layout
17363
17364 \begin_layout Standard
17365
17366 \family sans
17367 Chk\SpecialChar TeX
17368
17369 \family default
17370 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
17371 における
17372 \family sans
17373 Chk\SpecialChar TeX
17374
17375 \family default
17376 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
17377 は,
17378 \family sans
17379 Chk\SpecialChar TeX
17380
17381 \family default
17382 出力
17383 \begin_inset Foot
17384 status collapsed
17385
17386 \begin_layout Plain Layout
17387
17388 \family sans
17389 chktex
17390 \family default
17391 の実際の出力は,
17392 \family sans
17393 chktex
17394 \family default
17395 を実行した直後に
17396 \family sans
17397 文書\SpecialChar menuseparator
17398 \SpecialChar LaTeX
17399 ログ
17400 \family default
17401 を使えば見ることができます.
17402 \end_layout
17403
17404 \end_inset
17405
17406 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
17407 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
17408 ためには,以下の2つの方法があります.
17409 \end_layout
17410
17411 \begin_layout Itemize
17412
17413 \family sans
17414 \begin_inset Flex MenuItem
17415 status collapsed
17416
17417 \begin_layout Plain Layout
17418
17419 \family sans
17420 ツール\SpecialChar menuseparator
17421 設定\SpecialChar menuseparator
17422 出力\SpecialChar menuseparator
17423 \SpecialChar LaTeX
17424 \SpecialChar menuseparator
17425 Check\SpecialChar TeX
17426 コマンド
17427 \end_layout
17428
17429 \end_inset
17430
17431
17432 \family default
17433 中の
17434 \family sans
17435 Chk\SpecialChar TeX
17436
17437 \family default
17438 起動コマンドラインを調整するか,グローバルな
17439 \family sans
17440 Chk\SpecialChar TeX
17441
17442 \family default
17443 の設定ファイル(通常は
17444 \begin_inset Flex Code
17445 status collapsed
17446
17447 \begin_layout Plain Layout
17448 chktexrc
17449 \end_layout
17450
17451 \end_inset
17452
17453 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
17454 \end_layout
17455
17456 \begin_layout Itemize
17457
17458 \family sans
17459 ファイル\SpecialChar menuseparator
17460 書き出し\SpecialChar menuseparator
17461 \SpecialChar LaTeX
17462
17463 \family default
17464 を使って文書を\SpecialChar LaTeX
17465 ファイルに変換し,そのファイルに対して
17466 \family typewriter
17467 chktex
17468 \family default
17469 を手動で実行します.このようにすると,\SpecialChar LyX
17470 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
17471 \end_layout
17472
17473 \begin_layout Standard
17474 以下は,
17475 \family sans
17476 設定
17477 \family default
17478 で有効化・無効化できる警告メッセージです.警告を無効にするには
17479 \family typewriter
17480 -n#
17481 \family default
17482 ,有効にするには
17483 \family typewriter
17484 -w#
17485 \family default
17486 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
17487 \family typewriter
17488 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17489 \family default
17490 "です.
17491 \end_layout
17492
17493 \begin_layout Standard
17494 \SpecialChar LyX
17495 は,
17496 \family typewriter
17497 chktex
17498 \family default
17499 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
17500 \end_layout
17501
17502 \begin_layout Enumerate
17503
17504 \size small
17505 \emph on
17506 Command terminated with space.
17507 \end_layout
17508
17509 \begin_layout Enumerate
17510
17511 \size small
17512 Non-breaking space (
17513 \begin_inset Quotes eld
17514 \end_inset
17515
17516
17517 \family typewriter
17518 ~
17519 \family default
17520
17521 \begin_inset Quotes erd
17522 \end_inset
17523
17524 ) should have been used.
17525 \end_layout
17526
17527 \begin_layout Enumerate
17528
17529 \size small
17530 \emph on
17531 You should enclose the previous parenthesis with 
17532 \begin_inset Quotes eld
17533 \end_inset
17534
17535
17536 \family typewriter
17537 {}
17538 \family default
17539
17540 \begin_inset Quotes erd
17541 \end_inset
17542
17543 .
17544 \end_layout
17545
17546 \begin_layout Enumerate
17547
17548 \size small
17549 Italic correction (
17550 \begin_inset Quotes eld
17551 \end_inset
17552
17553
17554 \family typewriter
17555
17556 \backslash
17557 /
17558 \family default
17559
17560 \begin_inset Quotes erd
17561 \end_inset
17562
17563 ) found in non-italic buffer.
17564 \end_layout
17565
17566 \begin_layout Enumerate
17567
17568 \size small
17569 Italic correction (
17570 \begin_inset Quotes eld
17571 \end_inset
17572
17573
17574 \family typewriter
17575
17576 \backslash
17577 /
17578 \family default
17579
17580 \begin_inset Quotes erd
17581 \end_inset
17582
17583 ) found more than once.
17584 \end_layout
17585
17586 \begin_layout Enumerate
17587
17588 \size small
17589 \emph on
17590 No italic correction (
17591 \begin_inset Quotes eld
17592 \end_inset
17593
17594
17595 \family typewriter
17596
17597 \backslash
17598 /
17599 \family default
17600
17601 \begin_inset Quotes erd
17602 \end_inset
17603
17604 ) found.
17605 \end_layout
17606
17607 \begin_layout Enumerate
17608
17609 \size small
17610 Accent command 
17611 \begin_inset Quotes eld
17612 \end_inset
17613
17614
17615 \family typewriter
17616 cmd
17617 \family default
17618
17619 \begin_inset Quotes erd
17620 \end_inset
17621
17622  needs use of 
17623 \begin_inset Quotes eld
17624 \end_inset
17625
17626
17627 \family typewriter
17628 cmd
17629 \family default
17630
17631 \begin_inset Quotes erd
17632 \end_inset
17633
17634 .
17635 \end_layout
17636
17637 \begin_layout Enumerate
17638
17639 \size small
17640 Wrong length of dash may have been used.
17641 \end_layout
17642
17643 \begin_layout Enumerate
17644
17645 \size small
17646 \emph on
17647 \begin_inset Quotes eld
17648 \end_inset
17649
17650
17651 \family typewriter
17652 %s
17653 \family default
17654
17655 \begin_inset Quotes erd
17656 \end_inset
17657
17658  expected, found 
17659 \begin_inset Quotes eld
17660 \end_inset
17661
17662
17663 \family typewriter
17664 %s
17665 \family default
17666
17667 \begin_inset Quotes erd
17668 \end_inset
17669
17670 .
17671 \end_layout
17672
17673 \begin_layout Enumerate
17674
17675 \size small
17676 Solo 
17677 \begin_inset Quotes eld
17678 \end_inset
17679
17680
17681 \family typewriter
17682 %s
17683 \family default
17684
17685 \begin_inset Quotes erd
17686 \end_inset
17687
17688  found.
17689 \end_layout
17690
17691 \begin_layout Enumerate
17692
17693 \size small
17694 You should use 
17695 \begin_inset Quotes eld
17696 \end_inset
17697
17698
17699 \family typewriter
17700 %s
17701 \family default
17702
17703 \begin_inset Quotes erd
17704 \end_inset
17705
17706  to achieve an ellipsis.
17707 \end_layout
17708
17709 \begin_layout Enumerate
17710
17711 \size small
17712 Inter-word spacing (
17713 \begin_inset Quotes eld
17714 \end_inset
17715
17716
17717 \family typewriter
17718
17719 \backslash
17720
17721 \family default
17722  
17723 \begin_inset Quotes eld
17724 \end_inset
17725
17726 ) should perhaps be used.
17727 \end_layout
17728
17729 \begin_layout Enumerate
17730
17731 \size small
17732 Inter-sentence spacing (
17733 \begin_inset Quotes eld
17734 \end_inset
17735
17736
17737 \family typewriter
17738
17739 \backslash
17740 @
17741 \family default
17742
17743 \begin_inset Quotes erd
17744 \end_inset
17745
17746 ) should perhaps be used.
17747 \end_layout
17748
17749 \begin_layout Enumerate
17750
17751 \size small
17752 Could not find argument for command.
17753 \end_layout
17754
17755 \begin_layout Enumerate
17756
17757 \size small
17758 No match found for 
17759 \begin_inset Quotes eld
17760 \end_inset
17761
17762
17763 \family typewriter
17764 %s
17765 \family default
17766
17767 \begin_inset Quotes erd
17768 \end_inset
17769
17770 .
17771 \end_layout
17772
17773 \begin_layout Enumerate
17774
17775 \size small
17776 Math mode still on at end of \SpecialChar LaTeX
17777  file.
17778 \end_layout
17779
17780 \begin_layout Enumerate
17781
17782 \size small
17783 Number of 
17784 \begin_inset Quotes eld
17785 \end_inset
17786
17787
17788 \family typewriter
17789 char
17790 \family default
17791
17792 \begin_inset Quotes erd
17793 \end_inset
17794
17795  doesn't match the number of 
17796 \begin_inset Quotes eld
17797 \end_inset
17798
17799
17800 \family typewriter
17801 char
17802 \family default
17803
17804 \begin_inset Quotes erd
17805 \end_inset
17806
17807 .
17808 \end_layout
17809
17810 \begin_layout Enumerate
17811
17812 \size small
17813 You should use either 
17814 \family typewriter
17815
17816 \begin_inset Quotes eld
17817 \end_inset
17818
17819
17820 \family default
17821  or 
17822 \family typewriter
17823
17824 \begin_inset Quotes erd
17825 \end_inset
17826
17827
17828 \family default
17829  as an alternative to 
17830 \begin_inset Quotes eld
17831 \end_inset
17832
17833
17834 \family typewriter
17835 "
17836 \family default
17837
17838 \begin_inset Quotes erd
17839 \end_inset
17840
17841 .
17842 \end_layout
17843
17844 \begin_layout Enumerate
17845
17846 \size small
17847 You should use "
17848 \family typewriter
17849 '
17850 \family default
17851 " (ASCII 39) instead of "" (ASCII 180).
17852 \end_layout
17853
17854 \begin_layout Enumerate
17855
17856 \size small
17857 User-specified pattern found.
17858 \end_layout
17859
17860 \begin_layout Enumerate
17861
17862 \size small
17863 This command might not be intended.
17864 \end_layout
17865
17866 \begin_layout Enumerate
17867
17868 \size small
17869 \emph on
17870 Comment displayed.
17871 \end_layout
17872
17873 \begin_layout Enumerate
17874
17875 \size small
17876 Either 
17877 \family typewriter
17878 ''
17879 \backslash
17880 ,'
17881 \family default
17882  or 
17883 \family typewriter
17884 '
17885 \backslash
17886 ,''
17887 \family default
17888  will look better.
17889 \end_layout
17890
17891 \begin_layout Enumerate
17892
17893 \size small
17894 Delete this space to maintain correct page references.
17895 \end_layout
17896
17897 \begin_layout Enumerate
17898
17899 \size small
17900 \emph on
17901 You might wish to put this between a pair of 
17902 \begin_inset Quotes eld
17903 \end_inset
17904
17905
17906 \family typewriter
17907 {}
17908 \family default
17909
17910 \begin_inset Quotes erd
17911 \end_inset
17912
17913 .
17914 \end_layout
17915
17916 \begin_layout Enumerate
17917
17918 \size small
17919 You ought to remove spaces in front of punctuation.
17920 \end_layout
17921
17922 \begin_layout Enumerate
17923
17924 \size small
17925 Could not execute \SpecialChar LaTeX
17926  command.
17927 \end_layout
17928
17929 \begin_layout Enumerate
17930
17931 \size small
17932 Don't use 
17933 \family typewriter
17934
17935 \backslash
17936 /
17937 \family default
17938  in front of small punctuation.
17939 \end_layout
17940
17941 \begin_layout Enumerate
17942
17943 \family typewriter
17944 \size small
17945 $
17946 \backslash
17947 times$
17948 \family default
17949  may look prettier here.
17950 \end_layout
17951
17952 \begin_layout Enumerate
17953
17954 \size small
17955 \emph on
17956 Multiple spaces detected in output.
17957 \end_layout
17958
17959 \begin_layout Enumerate
17960
17961 \size small
17962 This text may be ignored.
17963 \end_layout
17964
17965 \begin_layout Enumerate
17966
17967 \size small
17968 Use 
17969 \family typewriter
17970
17971 \begin_inset Quotes eld
17972 \end_inset
17973
17974
17975 \family default
17976  to begin quotation, not 
17977 \family typewriter
17978 '
17979 \family default
17980 .
17981 \end_layout
17982
17983 \begin_layout Enumerate
17984
17985 \size small
17986 Use 
17987 \family typewriter
17988 '
17989 \family default
17990  to end quotation, not 
17991 \family typewriter
17992
17993 \begin_inset Quotes eld
17994 \end_inset
17995
17996
17997 \family default
17998 .
17999 \end_layout
18000
18001 \begin_layout Enumerate
18002
18003 \size small
18004 Don't mix quotes.
18005 \end_layout
18006
18007 \begin_layout Enumerate
18008
18009 \size small
18010 You should perhaps use 
18011 \begin_inset Quotes eld
18012 \end_inset
18013
18014
18015 \family typewriter
18016 cmd
18017 \family default
18018
18019 \begin_inset Quotes erd
18020 \end_inset
18021
18022  instead.
18023 \end_layout
18024
18025 \begin_layout Enumerate
18026
18027 \size small
18028 You should put a space in front of/after parenthesis.
18029 \end_layout
18030
18031 \begin_layout Enumerate
18032
18033 \size small
18034 You should avoid spaces in front of/after parenthesis.
18035 \end_layout
18036
18037 \begin_layout Enumerate
18038
18039 \size small
18040 \emph on
18041 You should not use punctuation in front of/after quotes.
18042 \end_layout
18043
18044 \begin_layout Enumerate
18045
18046 \size small
18047 Double space found.
18048 \end_layout
18049
18050 \begin_layout Enumerate
18051
18052 \size small
18053 You should put punctuation outside inner/inside display math mode.
18054 \end_layout
18055
18056 \begin_layout Enumerate
18057
18058 \size small
18059 You ought to not use primitive \SpecialChar TeX
18060  in \SpecialChar LaTeX
18061  code.
18062 \end_layout
18063
18064 \begin_layout Enumerate
18065
18066 \size small
18067 You should remove spaces in front of 
18068 \begin_inset Quotes eld
18069 \end_inset
18070
18071
18072 \family typewriter
18073 %s
18074 \family default
18075
18076 \begin_inset Quotes erd
18077 \end_inset
18078
18079
18080 \end_layout
18081
18082 \begin_layout Enumerate
18083
18084 \size small
18085 \begin_inset Quotes eld
18086 \end_inset
18087
18088
18089 \family typewriter
18090 %s
18091 \family default
18092
18093 \begin_inset Quotes erd
18094 \end_inset
18095
18096  is normally not followed by 
18097 \begin_inset Quotes eld
18098 \end_inset
18099
18100
18101 \family typewriter
18102 %c
18103 \family default
18104
18105 \begin_inset Quotes erd
18106 \end_inset
18107
18108 .
18109 \end_layout
18110
18111 \begin_layout Standard
18112 \SpecialChar LyX
18113 の将来の版では,このツール(およびその縮小版
18114 \family typewriter
18115 lacheck
18116 \family default
18117 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
18118 書に使用してみていただければ,きっと驚かれることでしょう.
18119 \end_layout
18120
18121 \begin_layout Section
18122 \SpecialChar LyX
18123 でのバージョン管理
18124 \end_layout
18125
18126 \begin_layout Standard
18127
18128 \noun on
18129 Lars Bullik Bjønnes
18130 \noun default
18131 および
18132 \noun on
18133 Pavel Sanda
18134 \noun default
18135
18136 \end_layout
18137
18138 \begin_layout Subsection
18139 はじめに
18140 \end_layout
18141
18142 \begin_layout Standard
18143 \SpecialChar LyX
18144 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
18145 があります.
18146 \end_layout
18147
18148 \begin_layout Standard
18149 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
18150 N Book
18151 \begin_inset Foot
18152 status collapsed
18153
18154 \begin_layout Plain Layout
18155 \begin_inset CommandInset href
18156 LatexCommand href
18157 target "http://svnbook.red-bean.com/"
18158
18159 \end_inset
18160
18161
18162 \end_layout
18163
18164 \end_inset
18165
18166 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
18167 \family typewriter
18168 man rcsintro
18169 \family default
18170 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
18171 \family typewriter
18172 ,v
18173 \family default
18174 で終わるファイルです)の概念に注意を払ってください.
18175 \end_layout
18176
18177 \begin_layout Standard
18178 \SpecialChar LyX
18179 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
18180 で\SpecialChar LyX
18181 への実装においては,GNU
18182  RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
18183 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
18184 \family sans
18185 表示\SpecialChar menuseparator
18186 ツールバー\SpecialChar menuseparator
18187 バージョン管理
18188 \family default
18189 で有効にできます.
18190 \end_layout
18191
18192 \begin_layout Standard
18193 自製の外部コマンドを導入したい場合には,\SpecialChar LyX
18194 関数説明書のvcコマンドを確認してください.
18195 \end_layout
18196
18197 \begin_layout Standard
18198 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
18199 \family sans
18200 文書\SpecialChar menuseparator
18201 圧縮
18202 \family default
18203 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
18204 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
18205 \end_layout
18206
18207 \begin_layout Subsection
18208 \SpecialChar LyX
18209 におけるRCSコマンド
18210 \end_layout
18211
18212 \begin_layout Standard
18213 以下の節では\SpecialChar LyX
18214 でサポートされているRCSコマンドを説明します.それらのコマンドは
18215 \family sans
18216 ファイル\SpecialChar menuseparator
18217 バージョン管理
18218 \family default
18219 のサブメニューにあります.\SpecialChar LyX
18220 は,RCS 5.7/5.8に対して試験されています.
18221 \end_layout
18222
18223 \begin_layout Subsubsection
18224
18225 \family sans
18226 登録
18227 \end_layout
18228
18229 \begin_layout Standard
18230 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
18231 \family sans
18232 登録
18233 \family default
18234 は不可視になります.
18235 \end_layout
18236
18237 \begin_layout Standard
18238 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
18239 書は読み込み専用モードになるので,変更を加えるためには
18240 \family sans
18241 チェックアウトして編集
18242 \family default
18243 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
18244 \end_layout
18245
18246 \begin_layout Standard
18247 実行されるRCSコマンドは:
18248 \family typewriter
18249
18250 \begin_inset Newline newline
18251 \end_inset
18252
18253 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18254 \end_layout
18255
18256 \begin_layout Standard
18257 スイッチについて知りたい場合は,
18258 \family typewriter
18259 man ci
18260 \family default
18261 を読んでください.
18262 \end_layout
18263
18264 \begin_layout Subsubsection
18265
18266 \family sans
18267 変更をチェックインする
18268 \end_layout
18269
18270 \begin_layout Standard
18271 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
18272 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
18273 \end_layout
18274
18275 \begin_layout Standard
18276 RCSコマンド:
18277 \family typewriter
18278 ci -q -u -m"<説明文>" <ファイル名>
18279 \end_layout
18280
18281 \begin_layout Subsubsection
18282
18283 \family sans
18284 チェックアウトして編集
18285 \end_layout
18286
18287 \begin_layout Standard
18288 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
18289 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
18290 \end_layout
18291
18292 \begin_layout Standard
18293 RCSコマンド:
18294 \family typewriter
18295 co -q -l <ファイル名>
18296 \end_layout
18297
18298 \begin_layout Subsubsection
18299
18300 \family sans
18301 リポジトリのバージョンに戻す
18302 \end_layout
18303
18304 \begin_layout Standard
18305 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
18306 \end_layout
18307
18308 \begin_layout Standard
18309 RCSコマンド:
18310 \family typewriter
18311 co -f -u<バージョン> <ファイル名>
18312 \end_layout
18313
18314 \begin_layout Subsubsection
18315
18316 \family sans
18317 コピー
18318 \end_layout
18319
18320 \begin_layout Standard
18321 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18322 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18323 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18324 \family sans
18325 ファイル\SpecialChar menuseparator
18326 名前をつけて保存\SpecialChar ldots
18327
18328 \family default
18329 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18330 \end_layout
18331
18332 \begin_layout Labeling
18333 \labelwidthstring 00.00.0000
18334 RCSコマンド:
18335 \begin_inset Flex Code
18336 status collapsed
18337
18338 \begin_layout Plain Layout
18339 "ファイル名"
18340 \end_layout
18341
18342 \end_inset
18343
18344
18345 \family typewriter
18346 "新ファイル名"
18347 \family default
18348 にコピーする場合
18349 \end_layout
18350
18351 \begin_layout Labeling
18352 \labelwidthstring 00.00.0000
18353 \begin_inset Flex Code
18354 status collapsed
18355
18356 \begin_layout Plain Layout
18357 ci -q -u -i "<新ファイル名>"
18358 \end_layout
18359
18360 \end_inset
18361
18362
18363 \end_layout
18364
18365 \begin_layout Subsubsection
18366
18367 \family sans
18368 最後のチェックインを取り消す
18369 \end_layout
18370
18371 \begin_layout Standard
18372 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
18373 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
18374 されます.
18375 \end_layout
18376
18377 \begin_layout Standard
18378 RCSコマンド:
18379 \family typewriter
18380 rcs -o<バージョン> <ファイル名>
18381 \end_layout
18382
18383 \begin_layout Subsubsection
18384
18385 \family sans
18386 履歴を表示
18387 \end_layout
18388
18389 \begin_layout Standard
18390 RCS文書の完全な履歴を表示します.ブラウザ中に,
18391 \family typewriter
18392 rlog <ファイル名>
18393 \family default
18394 の出力が表示されます.詳細は
18395 \family typewriter
18396 man rlog
18397 \family default
18398 をご覧ください.
18399 \end_layout
18400
18401 \begin_layout Subsubsection
18402 改訂情報
18403 \end_layout
18404
18405 \begin_layout Standard
18406 \SpecialChar LyX
18407 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
18408 \begin_inset CommandInset ref
18409 LatexCommand ref
18410 reference "subsec:VCS改訂情報"
18411
18412 \end_inset
18413
18414 を参照.
18415 \end_layout
18416
18417 \begin_layout Subsection
18418 \SpecialChar LyX
18419 におけるCVSコマンド
18420 \end_layout
18421
18422 \begin_layout Standard
18423 \SpecialChar LyX
18424 は,現在CVSを一部サポートしています.そのコマンドは,
18425 \family sans
18426 ファイル\SpecialChar menuseparator
18427 バージョン管理
18428 \family default
18429 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
18430 \end_layout
18431
18432 \begin_layout Subsubsection
18433 CVSの一般的な利用法
18434 \end_layout
18435
18436 \begin_layout Standard
18437 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
18438 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
18439 \end_layout
18440
18441 \begin_layout Standard
18442 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
18443 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
18444 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
18445 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
18446 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
18447 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
18448 で予備付きチェックアウトを利用したい場合には,
18449 \begin_inset Flex Code
18450 status collapsed
18451
18452 \begin_layout Plain Layout
18453 .cvsrc
18454 \end_layout
18455
18456 \end_inset
18457
18458 ファイルを編集して,
18459 \begin_inset Flex Code
18460 status collapsed
18461
18462 \begin_layout Plain Layout
18463 cvs -r
18464 \end_layout
18465
18466 \end_inset
18467
18468 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
18469 コピーを書き込み可能にしているとは限りません.
18470 \end_layout
18471
18472 \begin_layout Standard
18473 \SpecialChar LyX
18474 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
18475 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
18476 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
18477 可能にするためには,
18478 \begin_inset Flex MenuItem
18479 status collapsed
18480
18481 \begin_layout Plain Layout
18482 チェックアウト
18483 \end_layout
18484
18485 \end_inset
18486
18487 メニューを使用しなくてはなりません.その後,
18488 \begin_inset Flex MenuItem
18489 status collapsed
18490
18491 \begin_layout Plain Layout
18492 チェックイン
18493 \end_layout
18494
18495 \end_inset
18496
18497 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
18498 \end_layout
18499
18500 \begin_layout Standard
18501 CVSの詳細な情報は,
18502 \begin_inset Flex URL
18503 status collapsed
18504
18505 \begin_layout Plain Layout
18506
18507 http://www.nongnu.org/cvs
18508 \end_layout
18509
18510 \end_inset
18511
18512
18513 \begin_inset Flex URL
18514 status collapsed
18515
18516 \begin_layout Plain Layout
18517
18518 http://ximbiot.com/cvs
18519 \end_layout
18520
18521 \end_inset
18522
18523 にあります.
18524 \end_layout
18525
18526 \begin_layout Standard
18527 以下に言及するサブコマンドとスイッチを理解するには,
18528 \family typewriter
18529 man cvs
18530 \family default
18531 をお読みください.
18532 \end_layout
18533
18534 \begin_layout Subsubsection
18535 登録
18536 \end_layout
18537
18538 \begin_layout Standard
18539 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
18540 \family sans
18541 登録
18542 \family default
18543 項目は表示されません.
18544 \end_layout
18545
18546 \begin_layout Standard
18547 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
18548 \series bold
18549 \emph on
18550 のみ
18551 \series default
18552 \emph default
18553 (すなわち
18554 \begin_inset Flex Code
18555 status collapsed
18556
18557 \begin_layout Plain Layout
18558 CVS/Entries
18559 \end_layout
18560
18561 \end_inset
18562
18563 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18564 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
18565 は文書をRCSに登録します).
18566 \end_layout
18567
18568 \begin_layout Standard
18569 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
18570 \end_layout
18571
18572 \begin_layout Standard
18573 実行されるCVSコマンドは,
18574 \family typewriter
18575 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18576 \family default
18577  です.
18578 \end_layout
18579
18580 \begin_layout Standard
18581 上記および他のすべてのCVSコマンドにおける
18582 \family typewriter
18583 "<ファイル名>"
18584 \family default
18585 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
18586 \end_layout
18587
18588 \begin_layout Subsubsection
18589 変更のチェックイン
18590 \end_layout
18591
18592 \begin_layout Standard
18593 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
18594 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
18595 \begin_inset Flex MenuItem
18596 status collapsed
18597
18598 \begin_layout Plain Layout
18599 チェックアウト
18600 \end_layout
18601
18602 \end_inset
18603
18604 で作られた予備は取り消されます.
18605 \end_layout
18606
18607 \begin_layout Labeling
18608 \labelwidthstring 00.00.0000
18609 CVSコマンド: 
18610 \begin_inset space ~
18611 \end_inset
18612
18613
18614 \begin_inset Newline newline
18615 \end_inset
18616
18617
18618 \begin_inset Flex Code
18619 status collapsed
18620
18621 \begin_layout Plain Layout
18622 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18623 \end_layout
18624
18625 \end_inset
18626
18627 あるいは
18628 \begin_inset Newline newline
18629 \end_inset
18630
18631
18632 \begin_inset Flex Code
18633 status collapsed
18634
18635 \begin_layout Plain Layout
18636 cvs -q unedit "<ファイル名>"
18637 \end_layout
18638
18639 \end_inset
18640
18641
18642 \end_layout
18643
18644 \begin_layout Subsubsection
18645 変更のチェックアウト
18646 \end_layout
18647
18648 \begin_layout Standard
18649 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
18650 \end_layout
18651
18652 \begin_layout Standard
18653 CVSコマンド:
18654 \family typewriter
18655 cvs -q update "<ファイル名>"
18656 \end_layout
18657
18658 \begin_layout Standard
18659 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
18660 \end_layout
18661
18662 \begin_layout Standard
18663 CVSコマンド:
18664 \family typewriter
18665 cvs -q edit "<ファイル名>"
18666 \end_layout
18667
18668 \begin_layout Subsubsection
18669 レポジトリ版に戻す
18670 \end_layout
18671
18672 \begin_layout Standard
18673 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
18674 が実行されます.
18675 \end_layout
18676
18677 \begin_layout Standard
18678 CVSコマンド:
18679 \family typewriter
18680 cvs -q update "<ファイル名>"
18681 \end_layout
18682
18683 \begin_layout Standard
18684 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
18685 \end_layout
18686
18687 \begin_layout Standard
18688 CVSコマンド:
18689 \family typewriter
18690 cvs -q unedit "<ファイル名>"
18691 \end_layout
18692
18693 \begin_layout Subsubsection
18694
18695 \family sans
18696 コピー
18697 \end_layout
18698
18699 \begin_layout Standard
18700 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18701 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18702 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18703 \family sans
18704 ファイル\SpecialChar menuseparator
18705 名前をつけて保存\SpecialChar ldots
18706
18707 \family default
18708 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18709 \end_layout
18710
18711 \begin_layout Labeling
18712 \labelwidthstring 00.00.0000
18713 CVSコマンド:
18714 \end_layout
18715
18716 \begin_layout Labeling
18717 \labelwidthstring 00.00.0000
18718 \begin_inset Flex Code
18719 status collapsed
18720
18721 \begin_layout Plain Layout
18722 "ファイル名"
18723 \end_layout
18724
18725 \end_inset
18726
18727
18728 \begin_inset Flex Code
18729 status collapsed
18730
18731 \begin_layout Plain Layout
18732 "新ファイル名"
18733 \end_layout
18734
18735 \end_inset
18736
18737 にコピーする場合
18738 \end_layout
18739
18740 \begin_layout Labeling
18741 \labelwidthstring 00.00.0000
18742 \begin_inset Flex Code
18743 status collapsed
18744
18745 \begin_layout Plain Layout
18746 cvs -q add "<新ファイル名>"
18747 \end_layout
18748
18749 \end_inset
18750
18751
18752 \end_layout
18753
18754 \begin_layout Subsubsection
18755 ファイル名変更
18756 \end_layout
18757
18758 \begin_layout Standard
18759 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
18760 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
18761 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
18762 スは,(
18763 \family sans
18764 ファイル\SpecialChar menuseparator
18765 名前をつけて保存\SpecialChar ldots
18766
18767 \family default
18768 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
18769 \end_layout
18770
18771 \begin_layout Labeling
18772 \labelwidthstring 00.00.0000
18773 CVSコマンド:
18774 \end_layout
18775
18776 \begin_layout Labeling
18777 \labelwidthstring 00.00.0000
18778 \begin_inset Flex Code
18779 status collapsed
18780
18781 \begin_layout Plain Layout
18782 "ファイル名"
18783 \end_layout
18784
18785 \end_inset
18786
18787
18788 \begin_inset Flex Code
18789 status collapsed
18790
18791 \begin_layout Plain Layout
18792 "新ファイル名"
18793 \end_layout
18794
18795 \end_inset
18796
18797 に変更する場合
18798 \end_layout
18799
18800 \begin_layout Labeling
18801 \labelwidthstring 00.00.0000
18802 \begin_inset Flex Code
18803 status collapsed
18804
18805 \begin_layout Plain Layout
18806 cvs -q add "<新ファイル名>"
18807 \end_layout
18808
18809 \end_inset
18810
18811
18812 \end_layout
18813
18814 \begin_layout Labeling
18815 \labelwidthstring 00.00.0000
18816 \begin_inset Flex Code
18817 status collapsed
18818
18819 \begin_layout Plain Layout
18820 cvs -q remove "<ファイル名>"
18821 \end_layout
18822
18823 \end_inset
18824
18825
18826 \end_layout
18827
18828 \begin_layout Subsubsection
18829 ローカルディレクトリチェックアウトのレポジトリからの更新
18830 \end_layout
18831
18832 \begin_layout Standard
18833 子文書や図を含んだり,外部
18834 \begin_inset Flex Code
18835 status collapsed
18836
18837 \begin_layout Plain Layout
18838 .tex
18839 \end_layout
18840
18841 \end_inset
18842
18843 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
18844 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
18845 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
18846 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
18847 慣です.
18848 \end_layout
18849
18850 \begin_layout Standard
18851 コマンド
18852 \begin_inset Flex Code
18853 status collapsed
18854
18855 \begin_layout Plain Layout
18856 レポジトリを使ってローカル辞書を更新
18857 \end_layout
18858
18859 \end_inset
18860
18861 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
18862 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
18863 \begin_inset Flex Code
18864 status collapsed
18865
18866 \begin_layout Plain Layout
18867 <<<<<<<
18868 \end_layout
18869
18870 \end_inset
18871
18872
18873 \begin_inset Flex Code
18874 status collapsed
18875
18876 \begin_layout Plain Layout
18877 >>>>>>>
18878 \end_layout
18879
18880 \end_inset
18881
18882 の対に囲まれ,
18883 \begin_inset Flex Code
18884 status collapsed
18885
18886 \begin_layout Plain Layout
18887 =======
18888 \end_layout
18889
18890 \end_inset
18891
18892 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
18893 \begin_inset Flex Code
18894 status collapsed
18895
18896 \begin_layout Plain Layout
18897 >
18898 \end_layout
18899
18900 \end_inset
18901
18902 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
18903 \end_layout
18904
18905 \begin_layout Labeling
18906 \labelwidthstring 00.00.0000
18907 CVSコマンド: 
18908 \begin_inset space ~
18909 \end_inset
18910
18911
18912 \begin_inset Newline newline
18913 \end_inset
18914
18915
18916 \begin_inset Flex Code
18917 status collapsed
18918
18919 \begin_layout Plain Layout
18920 cd $path; cvs diff "."
18921 \end_layout
18922
18923 \end_inset
18924
18925 (変更が検出された場合には知らせる)
18926 \begin_inset Newline newline
18927 \end_inset
18928
18929
18930 \begin_inset Flex Code
18931 status collapsed
18932
18933 \begin_layout Plain Layout
18934 cd $path; cvs -q update "."
18935 \end_layout
18936
18937 \end_inset
18938
18939
18940 \end_layout
18941
18942 \begin_layout Standard
18943 ここで
18944 \begin_inset Flex Code
18945 status collapsed
18946
18947 \begin_layout Plain Layout
18948 $path
18949 \end_layout
18950
18951 \end_inset
18952
18953 は文書パスを表します.
18954 \end_layout
18955
18956 \begin_layout Subsubsection
18957 履歴を表示
18958 \end_layout
18959
18960 \begin_layout Standard
18961 これは,CVS文書の全履歴を表示します.
18962 \begin_inset Flex Code
18963 status collapsed
18964
18965 \begin_layout Plain Layout
18966 cvs log 
18967 \begin_inset Quotes eld
18968 \end_inset
18969
18970 <ファイル名>
18971 \begin_inset Quotes erd
18972 \end_inset
18973
18974
18975 \end_layout
18976
18977 \end_inset
18978
18979 の出力がブラウザに表示されます.
18980 \end_layout
18981
18982 \begin_layout Subsubsection
18983 改訂情報
18984 \end_layout
18985
18986 \begin_layout Standard
18987 \SpecialChar LyX
18988 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
18989 \family typewriter
18990 cvs log -r <ファイル名>
18991 \family default
18992 によって抽出されます.詳細については,第
18993 \begin_inset CommandInset ref
18994 LatexCommand ref
18995 reference "subsec:VCS改訂情報"
18996
18997 \end_inset
18998
18999 節を参照してください.
19000 \end_layout
19001
19002 \begin_layout Subsection
19003 \SpecialChar LyX
19004 におけるSVNコマンド
19005 \end_layout
19006
19007 \begin_layout Standard
19008 \SpecialChar LyX
19009 は,現在SVNを一部サポートしています.そのコマンドは,
19010 \begin_inset Flex MenuItem
19011 status collapsed
19012
19013 \begin_layout Plain Layout
19014 ファイル\SpecialChar menuseparator
19015 バージョン管理
19016 \end_layout
19017
19018 \end_inset
19019
19020 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
19021 は,SVN
19022  1.5および1.6に対して試験されています.
19023 \end_layout
19024
19025 \begin_layout Subsubsection
19026 登録
19027 \end_layout
19028
19029 \begin_layout Standard
19030 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19031 \family sans
19032 登録
19033 \family default
19034 項目は表示されません.
19035 \end_layout
19036
19037 \begin_layout Standard
19038 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
19039 \emph on
19040 のみ
19041 \emph default
19042 (すなわち
19043 \begin_inset Flex Code
19044 status collapsed
19045
19046 \begin_layout Plain Layout
19047 .svn/entries
19048 \end_layout
19049
19050 \end_inset
19051
19052 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
19053 \end_layout
19054
19055 \begin_layout Standard
19056 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
19057 \end_layout
19058
19059 \begin_layout Standard
19060 実行されるSVNコマンドは,
19061 \begin_inset Flex Code
19062 status collapsed
19063
19064 \begin_layout Plain Layout
19065 svn add -q 
19066 \begin_inset Quotes eld
19067 \end_inset
19068
19069 <ファイル名>
19070 \begin_inset Quotes erd
19071 \end_inset
19072
19073
19074 \end_layout
19075
19076 \end_inset
19077
19078 です.
19079 \end_layout
19080
19081 \begin_layout Standard
19082 スイッチの説明は
19083 \begin_inset Flex Code
19084 status collapsed
19085
19086 \begin_layout Plain Layout
19087 man svn
19088 \end_layout
19089
19090 \end_inset
19091
19092 をお読みください.
19093 \end_layout
19094
19095 \begin_layout Subsubsection
19096 変更をチェックイン
19097 \end_layout
19098
19099 \begin_layout Standard
19100 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
19101 \end_layout
19102
19103 \begin_layout Standard
19104 SVNコマンド
19105 \begin_inset Foot
19106 status collapsed
19107
19108 \begin_layout Plain Layout
19109 ロックが有効になっていない場合です.第
19110 \begin_inset CommandInset ref
19111 LatexCommand ref
19112 reference "subsec:SVNファイルロック"
19113
19114 \end_inset
19115
19116 節をご覧ください.
19117 \end_layout
19118
19119 \end_inset
19120
19121
19122 \begin_inset Flex Code
19123 status collapsed
19124
19125 \begin_layout Plain Layout
19126 svn commit -q -m
19127 \begin_inset Quotes erd
19128 \end_inset
19129
19130 <入力した説明文>
19131 \begin_inset Quotes erd
19132 \end_inset
19133
19134  
19135 \begin_inset Quotes eld
19136 \end_inset
19137
19138 <ファイル名>
19139 \begin_inset Quotes erd
19140 \end_inset
19141
19142
19143 \end_layout
19144
19145 \end_inset
19146
19147
19148 \end_layout
19149
19150 \begin_layout Subsubsection
19151 チェックアウトして編集
19152 \end_layout
19153
19154 \begin_layout Standard
19155 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
19156 しておくようにしてください.
19157 \end_layout
19158
19159 \begin_layout Standard
19160 SVNコマンド
19161 \begin_inset Foot
19162 status collapsed
19163
19164 \begin_layout Plain Layout
19165 同上.
19166 \end_layout
19167
19168 \end_inset
19169
19170
19171 \begin_inset Flex Code
19172 status collapsed
19173
19174 \begin_layout Plain Layout
19175 svn update –non-interactive 
19176 \begin_inset Quotes eld
19177 \end_inset
19178
19179 <ファイル名>
19180 \begin_inset Quotes erd
19181 \end_inset
19182
19183
19184 \end_layout
19185
19186 \end_inset
19187
19188
19189 \end_layout
19190
19191 \begin_layout Subsubsection
19192 リポジトリ版に戻す
19193 \end_layout
19194
19195 \begin_layout Standard
19196 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
19197 \end_layout
19198
19199 \begin_layout Standard
19200 SVNコマンド:
19201 \begin_inset Flex Code
19202 status collapsed
19203
19204 \begin_layout Plain Layout
19205 svn revert -q 
19206 \begin_inset Quotes eld
19207 \end_inset
19208
19209 <ファイル名>
19210 \begin_inset Quotes erd
19211 \end_inset
19212
19213
19214 \end_layout
19215
19216 \end_inset
19217
19218
19219 \end_layout
19220
19221 \begin_layout Subsubsection
19222
19223 \family sans
19224 コピー
19225 \end_layout
19226
19227 \begin_layout Standard
19228 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
19229 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19230 ァイルの相対パスは,(
19231 \family sans
19232 ファイル\SpecialChar menuseparator
19233 名前をつけて保存\SpecialChar ldots
19234
19235 \family default
19236 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19237 \end_layout
19238
19239 \begin_layout Labeling
19240 \labelwidthstring 00.00.0000
19241 SVNコマンド:
19242 \end_layout
19243
19244 \begin_layout Labeling
19245 \labelwidthstring 00.00.0000
19246 \begin_inset Flex Code
19247 status collapsed
19248
19249 \begin_layout Plain Layout
19250 svn copy -q "<ファイル名>" "<新ファイル名>"
19251 \end_layout
19252
19253 \end_inset
19254
19255
19256 \end_layout
19257
19258 \begin_layout Labeling
19259 \labelwidthstring 00.00.0000
19260 \begin_inset Flex Code
19261 status collapsed
19262
19263 \begin_layout Plain Layout
19264 svn commit
19265 \end_layout
19266
19267 \end_inset
19268
19269
19270 \end_layout
19271
19272 \begin_layout Subsubsection
19273 ファイル名変更
19274 \end_layout
19275
19276 \begin_layout Standard
19277 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
19278 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19279 ァイルの相対パスは,(
19280 \family sans
19281 ファイル\SpecialChar menuseparator
19282 名前をつけて保存\SpecialChar ldots
19283
19284 \family default
19285 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19286 \end_layout
19287
19288 \begin_layout Labeling
19289 \labelwidthstring 00.00.0000
19290 SVNコマンド:
19291 \end_layout
19292
19293 \begin_layout Labeling
19294 \labelwidthstring 00.00.0000
19295 \begin_inset Flex Code
19296 status collapsed
19297
19298 \begin_layout Plain Layout
19299 svn move -q add "<ファイル名>" "<新ファイル名>"
19300 \end_layout
19301
19302 \end_inset
19303
19304
19305 \end_layout
19306
19307 \begin_layout Labeling
19308 \labelwidthstring 00.00.0000
19309 \begin_inset Flex Code
19310 status collapsed
19311
19312 \begin_layout Plain Layout
19313 svn commit
19314 \end_layout
19315
19316 \end_inset
19317
19318
19319 \end_layout
19320
19321 \begin_layout Subsubsection
19322 \begin_inset CommandInset label
19323 LatexCommand label
19324 name "subsec:レポジトリからSVN同期"
19325
19326 \end_inset
19327
19328 レポジトリを使ったローカルディレクトリの同期
19329 \begin_inset Foot
19330 status collapsed
19331
19332 \begin_layout Plain Layout
19333 このコマンドは,subversion 
19334 \begin_inset Formula $\geqq1.5$
19335 \end_inset
19336
19337 でのみ動作することに注意してください.
19338 \end_layout
19339
19340 \end_inset
19341
19342
19343 \end_layout
19344
19345 \begin_layout Standard
19346 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
19347 \begin_inset Flex Code
19348 status collapsed
19349
19350 \begin_layout Plain Layout
19351 .tex
19352 \end_layout
19353
19354 \end_inset
19355
19356 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
19357 は,文書のおいてあるツリー全体の更新をサポートします
19358 \begin_inset Foot
19359 status collapsed
19360
19361 \begin_layout Plain Layout
19362 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
19363 \end_layout
19364
19365 \end_inset
19366
19367 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
19368
19369 \end_layout
19370
19371 \begin_layout Standard
19372 \begin_inset Flex Code
19373 status collapsed
19374
19375 \begin_layout Plain Layout
19376 ローカル辞書をレポジトリを使って更新
19377 \end_layout
19378
19379 \end_inset
19380
19381 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
19382 場合には,更新が開始される前にユーザに警告が与えられます.
19383 \end_layout
19384
19385 \begin_layout Labeling
19386 \labelwidthstring 00.00.0000
19387 SVNコマンド: 
19388 \begin_inset space ~
19389 \end_inset
19390
19391
19392 \begin_inset Newline newline
19393 \end_inset
19394
19395
19396 \begin_inset Flex Code
19397 status collapsed
19398
19399 \begin_layout Plain Layout
19400 svn diff $path(変更が発見された場合には通知します)
19401 \begin_inset Newline newline
19402 \end_inset
19403
19404 svn update –accept mine-full $path
19405 \end_layout
19406
19407 \end_inset
19408
19409
19410 \end_layout
19411
19412 \begin_layout Standard
19413 ここで
19414 \begin_inset Flex Code
19415 status collapsed
19416
19417 \begin_layout Plain Layout
19418 $path
19419 \end_layout
19420
19421 \end_inset
19422
19423 は文書のパスを示します.
19424 \end_layout
19425
19426 \begin_layout Subsubsection
19427 履歴を表示
19428 \end_layout
19429
19430 \begin_layout Standard
19431 これは,SVN文書の全履歴を表示します.
19432 \begin_inset Flex Code
19433 status collapsed
19434
19435 \begin_layout Plain Layout
19436 svn log 
19437 \begin_inset Quotes eld
19438 \end_inset
19439
19440 <ファイル名>
19441 \begin_inset Quotes erd
19442 \end_inset
19443
19444
19445 \end_layout
19446
19447 \end_inset
19448
19449 の出力がブラウザに表示されます.
19450 \end_layout
19451
19452 \begin_layout Subsubsection
19453 ファイルロック
19454 \begin_inset CommandInset label
19455 LatexCommand label
19456 name "subsec:SVNファイルロック"
19457
19458 \end_inset
19459
19460
19461 \end_layout
19462
19463 \begin_layout Standard
19464 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
19465 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19466 するための,何らかのロック機構を導入することが考えられます.
19467 \end_layout
19468
19469 \begin_layout Standard
19470 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
19471 \begin_inset Flex Code
19472 status collapsed
19473
19474 \begin_layout Plain Layout
19475 svn:needs-lock
19476 \end_layout
19477
19478 \end_inset
19479
19480 svnファイル特性に依拠した書き込み権限の自動設定(第
19481 \begin_inset CommandInset ref
19482 LatexCommand ref
19483 reference "subsec:自動ロック特性"
19484
19485 \end_inset
19486
19487 節を参照)です
19488 \begin_inset Foot
19489 status collapsed
19490
19491 \begin_layout Plain Layout
19492 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19493 \end_layout
19494
19495 \end_inset
19496
19497 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
19498 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19499 り替わります.これは特に,\SpecialChar LyX
19500 でのファイルの使われ方に以下の二つのモードがあることを意味します.
19501 \end_layout
19502
19503 \begin_layout Itemize
19504 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
19505 \emph on
19506 チェックアウト
19507 \emph default
19508 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
19509 \end_layout
19510
19511 \begin_layout Itemize
19512 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
19513 \emph on
19514 チェックイン
19515 \emph default
19516 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
19517 \begin_inset Foot
19518 status collapsed
19519
19520 \begin_layout Plain Layout
19521 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
19522 \end_layout
19523
19524 \end_inset
19525
19526 ,書き込みロックの解放のみが行われます.
19527 \end_layout
19528
19529 \begin_layout Standard
19530 SVNコマンド:
19531 \end_layout
19532
19533 \begin_layout Labeling
19534 \labelwidthstring 00.00.0000
19535 チェックイン: 
19536 \begin_inset Flex Code
19537 status collapsed
19538
19539 \begin_layout Plain Layout
19540 svn commit -q -m
19541 \begin_inset Quotes erd
19542 \end_inset
19543
19544 <説明>
19545 \begin_inset Quotes erd
19546 \end_inset
19547
19548  
19549 \begin_inset Quotes eld
19550 \end_inset
19551
19552 <ファイル名>
19553 \begin_inset Quotes erd
19554 \end_inset
19555
19556
19557 \end_layout
19558
19559 \end_inset
19560
19561
19562 \begin_inset Newline newline
19563 \end_inset
19564
19565
19566 \begin_inset Flex Code
19567 status collapsed
19568
19569 \begin_layout Plain Layout
19570 svn unlock 
19571 \begin_inset Quotes eld
19572 \end_inset
19573
19574 <ファイル名>
19575 \begin_inset Quotes erd
19576 \end_inset
19577
19578
19579 \end_layout
19580
19581 \end_inset
19582
19583
19584 \end_layout
19585
19586 \begin_layout Labeling
19587 \labelwidthstring 00.00.0000
19588 チェックアウト: 
19589 \begin_inset Flex Code
19590 status collapsed
19591
19592 \begin_layout Plain Layout
19593 svn update 
19594 \begin_inset Quotes eld
19595 \end_inset
19596
19597 <ファイル名>
19598 \begin_inset Quotes erd
19599 \end_inset
19600
19601
19602 \end_layout
19603
19604 \end_inset
19605
19606
19607 \begin_inset Newline newline
19608 \end_inset
19609
19610
19611 \begin_inset Flex Code
19612 status collapsed
19613
19614 \begin_layout Plain Layout
19615 svn unlock 
19616 \begin_inset Quotes eld
19617 \end_inset
19618
19619 <ファイル名>
19620 \begin_inset Quotes erd
19621 \end_inset
19622
19623
19624 \end_layout
19625
19626 \end_inset
19627
19628
19629 \end_layout
19630
19631 \begin_layout Subsubsection
19632 自動ロック特性
19633 \begin_inset CommandInset label
19634 LatexCommand label
19635 name "subsec:自動ロック特性"
19636
19637 \end_inset
19638
19639
19640 \end_layout
19641
19642 \begin_layout Standard
19643 上述したような
19644 \begin_inset Flex Code
19645 status collapsed
19646
19647 \begin_layout Plain Layout
19648 .lyx
19649 \end_layout
19650
19651 \end_inset
19652
19653 ファイルに対する書き込み権限の自動設定は,
19654 \begin_inset Flex MenuItem
19655 status collapsed
19656
19657 \begin_layout Plain Layout
19658 ファイル\SpecialChar menuseparator
19659 バージョン管理\SpecialChar menuseparator
19660 ロック特性を使用
19661 \end_layout
19662
19663 \end_inset
19664
19665 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
19666 \end_layout
19667
19668 \begin_layout Standard
19669 SVNコマンド:
19670 \end_layout
19671
19672 \begin_layout Labeling
19673 \labelwidthstring 00.00.0000
19674 チェックイン: 
19675 \begin_inset Flex Code
19676 status collapsed
19677
19678 \begin_layout Plain Layout
19679 svn propset svn:needs-lock ON 
19680 \begin_inset Quotes eld
19681 \end_inset
19682
19683 <ファイル名>
19684 \begin_inset Quotes erd
19685 \end_inset
19686
19687
19688 \end_layout
19689
19690 \end_inset
19691
19692
19693 \end_layout
19694
19695 \begin_layout Labeling
19696 \labelwidthstring 00.00.0000
19697 チェックアウト: 
19698 \begin_inset Flex Code
19699 status collapsed
19700
19701 \begin_layout Plain Layout
19702 svn propdel svn:needs-lock 
19703 \begin_inset Quotes eld
19704 \end_inset
19705
19706 <ファイル名>
19707 \begin_inset Quotes erd
19708 \end_inset
19709
19710
19711 \end_layout
19712
19713 \end_inset
19714
19715
19716 \end_layout
19717
19718 \begin_layout Subsubsection
19719 \begin_inset CommandInset label
19720 LatexCommand label
19721 name "subsec:VCS改訂情報"
19722
19723 \end_inset
19724
19725 文書の改訂情報
19726 \end_layout
19727
19728 \begin_layout Standard
19729 文書中で改訂情報を有効化するにはいくつかの方法があります.
19730 \end_layout
19731
19732 \begin_layout Itemize
19733 \SpecialChar LyX
19734 による直接サポート
19735 \end_layout
19736
19737 \begin_deeper
19738 \begin_layout Itemize
19739 ツリー改訂情報(
19740 \begin_inset Flex Code
19741 status collapsed
19742
19743 \begin_layout Plain Layout
19744 vcs-tree-revision
19745 \end_layout
19746
19747 \end_inset
19748
19749 ).
19750 \begin_inset Flex Code
19751 status collapsed
19752
19753 \begin_layout Plain Layout
19754 svnversion
19755 \end_layout
19756
19757 \end_inset
19758
19759 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
19760 \end_layout
19761
19762 \begin_layout Standard
19763 \align center
19764 \begin_inset Tabular
19765 <lyxtabular version="3" rows="6" columns="2">
19766 <features tabularvalignment="middle">
19767 <column alignment="center" valignment="top">
19768 <column alignment="center" valignment="top">
19769 <row>
19770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19771 \begin_inset Text
19772
19773 \begin_layout Plain Layout
19774 出力
19775 \end_layout
19776
19777 \end_inset
19778 </cell>
19779 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19780 \begin_inset Text
19781
19782 \begin_layout Plain Layout
19783 意味
19784 \end_layout
19785
19786 \end_inset
19787 </cell>
19788 </row>
19789 <row>
19790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19791 \begin_inset Text
19792
19793 \begin_layout Plain Layout
19794 4123:4168
19795 \end_layout
19796
19797 \end_inset
19798 </cell>
19799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19800 \begin_inset Text
19801
19802 \begin_layout Plain Layout
19803 改訂版の混合した作業コピー
19804 \end_layout
19805
19806 \end_inset
19807 </cell>
19808 </row>
19809 <row>
19810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19811 \begin_inset Text
19812
19813 \begin_layout Plain Layout
19814 4168M
19815 \end_layout
19816
19817 \end_inset
19818 </cell>
19819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19820 \begin_inset Text
19821
19822 \begin_layout Plain Layout
19823 修正された作業コピー
19824 \end_layout
19825
19826 \end_inset
19827 </cell>
19828 </row>
19829 <row>
19830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19831 \begin_inset Text
19832
19833 \begin_layout Plain Layout
19834 4123S
19835 \end_layout
19836
19837 \end_inset
19838 </cell>
19839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19840 \begin_inset Text
19841
19842 \begin_layout Plain Layout
19843 スイッチされた作業コピー
19844 \end_layout
19845
19846 \end_inset
19847 </cell>
19848 </row>
19849 <row>
19850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19851 \begin_inset Text
19852
19853 \begin_layout Plain Layout
19854 4123P
19855 \end_layout
19856
19857 \end_inset
19858 </cell>
19859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19860 \begin_inset Text
19861
19862 \begin_layout Plain Layout
19863 チェックアウト頻度が低かったことによる不完全な作業コピー
19864 \end_layout
19865
19866 \end_inset
19867 </cell>
19868 </row>
19869 <row>
19870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19871 \begin_inset Text
19872
19873 \begin_layout Plain Layout
19874 4123:4168MS
19875 \end_layout
19876
19877 \end_inset
19878 </cell>
19879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19880 \begin_inset Text
19881
19882 \begin_layout Plain Layout
19883 改訂版が混合し,修正され,スイッチされた作業コピー
19884 \end_layout
19885
19886 \end_inset
19887 </cell>
19888 </row>
19889 </lyxtabular>
19890
19891 \end_inset
19892
19893
19894 \end_layout
19895
19896 \begin_layout Itemize
19897 ファイル改訂情報.
19898 \begin_inset Flex Code
19899 status collapsed
19900
19901 \begin_layout Plain Layout
19902 svn
19903 \begin_inset space ~
19904 \end_inset
19905
19906 info
19907 \begin_inset space ~
19908 \end_inset
19909
19910 –xml
19911 \begin_inset space ~
19912 \end_inset
19913
19914 file.lyx
19915 \end_layout
19916
19917 \end_inset
19918
19919 の出力を解析したものが返されます.サポートされるフラグは
19920 \end_layout
19921
19922 \begin_deeper
19923 \begin_layout Itemize
19924 最終コミットのバージョン番号(
19925 \begin_inset Flex Code
19926 status collapsed
19927
19928 \begin_layout Plain Layout
19929 vcs-revision
19930 \end_layout
19931
19932 \end_inset
19933
19934 )
19935 \end_layout
19936
19937 \begin_layout Itemize
19938 最終コミットの著者(
19939 \begin_inset Flex Code
19940 status collapsed
19941
19942 \begin_layout Plain Layout
19943 vcs-author
19944 \end_layout
19945
19946 \end_inset
19947
19948 )
19949 \end_layout
19950
19951 \begin_layout Itemize
19952 最終コミットの日付(
19953 \begin_inset Flex Code
19954 status collapsed
19955
19956 \begin_layout Plain Layout
19957 vcs-date
19958 \end_layout
19959
19960 \end_inset
19961
19962 )
19963 \end_layout
19964
19965 \begin_layout Itemize
19966 最終コミットの時間(
19967 \begin_inset Flex Code
19968 status collapsed
19969
19970 \begin_layout Plain Layout
19971 vcs-time
19972 \end_layout
19973
19974 \end_inset
19975
19976 )
19977 \end_layout
19978
19979 \end_deeper
19980 \begin_layout Standard
19981 これらの情報は,情報差込枠で得ることができます(例:
19982 \begin_inset Flex Code
19983 status collapsed
19984
19985 \begin_layout Plain Layout
19986 info-insert buffer vcs-date
19987 \end_layout
19988
19989 \end_inset
19990
19991 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
19992 \begin_inset Flex Code
19993 status collapsed
19994
19995 \begin_layout Plain Layout
19996 .svn
19997 \end_layout
19998
19999 \end_inset
20000
20001 ディレクトリがあるときのみ)利用可能です.
20002 \end_layout
20003
20004 \end_deeper
20005 \begin_layout Itemize
20006 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
20007 \begin_inset Foot
20008 status collapsed
20009
20010 \begin_layout Plain Layout
20011 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20012 \end_layout
20013
20014 \end_inset
20015
20016 .簡単に言えば,ファイルキーワード特性を設定して(例:
20017 \family sans
20018 svn propset svn:keywords 'Rev' file.lyx
20019 \family default
20020 ),文書中にキーワード\SpecialChar TeX
20021 コード
20022 \begin_inset Foot
20023 status collapsed
20024
20025 \begin_layout Plain Layout
20026 これは,\SpecialChar LyX
20027 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
20028 \end_layout
20029
20030 \end_inset
20031
20032 タグ(例:
20033 \begin_inset ERT
20034 status open
20035
20036 \begin_layout Plain Layout
20037
20038 $Rev$
20039 \end_layout
20040
20041 \end_inset
20042
20043 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
20044 \begin_inset ERT
20045 status open
20046
20047 \begin_layout Plain Layout
20048
20049 $Rev: 59 $
20050 \end_layout
20051
20052 \end_inset
20053
20054 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
20055 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
20056 中の
20057 \begin_inset Formula $Rev$
20058 \end_inset
20059
20060 という数式表現が,すべて
20061 \begin_inset Formula $Rev:59$
20062 \end_inset
20063
20064 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
20065 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
20066 .Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
20067 がこれを直接サポートすることは,難しそうです.
20068 \end_layout
20069
20070 \begin_layout Subsection
20071 SVNとWindows環境
20072 \end_layout
20073
20074 \begin_layout Quote
20075 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
20076  A.
20077  ルービン
20078 \end_layout
20079
20080 \begin_layout Subsubsection
20081 準備
20082 \end_layout
20083
20084 \begin_layout Standard
20085 \SpecialChar LyX
20086 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
20087 トプログラムのWindows用インストーラは
20088 \begin_inset CommandInset href
20089 LatexCommand href
20090 name "CollabNet"
20091 target "http://www.collab.net/nonav/downloads/subversion/"
20092
20093 \end_inset
20094
20095 にあります.ユーザは
20096 \begin_inset CommandInset href
20097 LatexCommand href
20098 name "TortoiseSVN"
20099 target "http://tortoisesvn.tigris.org/"
20100
20101 \end_inset
20102
20103 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
20104 外部で行う操
20105 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
20106 自身が使用するクライアントプログラムの代わりとは成りませんので
20107 ,注意してください.
20108 \end_layout
20109
20110 \begin_layout Subsubsection
20111 文書をSubversion管理下に置くには
20112 \end_layout
20113
20114 \begin_layout Standard
20115 \SpecialChar LyX
20116 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
20117 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
20118 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
20119 の外部で行います
20120 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
20121 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
20122 既に存在し,新規プロジェクトを
20123 \begin_inset Flex Code
20124 status collapsed
20125
20126 \begin_layout Plain Layout
20127 C:
20128 \backslash
20129 new project
20130 \end_layout
20131
20132 \end_inset
20133
20134 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
20135 \begin_inset Flex Code
20136 status collapsed
20137
20138 \begin_layout Plain Layout
20139 svn –help
20140 \end_layout
20141
20142 \end_inset
20143
20144 を実行してください.
20145 \end_layout
20146
20147 \begin_layout Enumerate
20148 Windows Explorerで
20149 \begin_inset Flex Code
20150 status collapsed
20151
20152 \begin_layout Plain Layout
20153 C:
20154 \backslash
20155 new project
20156 \end_layout
20157
20158 \end_inset
20159
20160 を見つけ出して右クリックし,
20161 \begin_inset Flex MenuItem
20162 status collapsed
20163
20164 \begin_layout Plain Layout
20165 TortoiseSVN\SpecialChar menuseparator
20166 Repo-browser
20167 \end_layout
20168
20169 \end_inset
20170
20171 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
20172 \end_layout
20173
20174 \begin_layout Enumerate
20175 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
20176 \begin_inset Flex MenuItem
20177 status collapsed
20178
20179 \begin_layout Plain Layout
20180 Create folder\SpecialChar ldots
20181
20182 \end_layout
20183
20184 \end_inset
20185
20186 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
20187 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
20188 \end_layout
20189
20190 \begin_layout Enumerate
20191 再度
20192 \begin_inset Flex Code
20193 status collapsed
20194
20195 \begin_layout Plain Layout
20196 C:
20197 \backslash
20198 new project
20199 \end_layout
20200
20201 \end_inset
20202
20203 を右クリックし,今度は
20204 \begin_inset Flex MenuItem
20205 status collapsed
20206
20207 \begin_layout Plain Layout
20208 SVN Checkout\SpecialChar ldots
20209
20210 \end_layout
20211
20212 \end_inset
20213
20214 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
20215 \begin_inset Flex Code
20216 status collapsed
20217
20218 \begin_layout Plain Layout
20219 C:
20220 \backslash
20221 new project
20222 \end_layout
20223
20224 \end_inset
20225
20226 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
20227 \begin_inset Flex Code
20228 status collapsed
20229
20230 \begin_layout Plain Layout
20231 C:
20232 \backslash
20233 new project
20234 \end_layout
20235
20236 \end_inset
20237
20238 の下に
20239 \begin_inset Flex Code
20240 status collapsed
20241
20242 \begin_layout Plain Layout
20243 .svn
20244 \end_layout
20245
20246 \end_inset
20247
20248 ディレクトリが作成されます.
20249 \end_layout
20250
20251 \begin_layout Enumerate
20252 \SpecialChar LyX
20253 で文書を新規作成するか開くかして,
20254 \begin_inset Flex MenuItem
20255 status collapsed
20256
20257 \begin_layout Plain Layout
20258 ファイル\SpecialChar menuseparator
20259 バージョン管理\SpecialChar menuseparator
20260 登録
20261 \end_layout
20262
20263 \end_inset
20264
20265 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
20266 \end_layout
20267
20268 \begin_layout Standard
20269 爾後,
20270 \begin_inset Flex MenuItem
20271 status collapsed
20272
20273 \begin_layout Plain Layout
20274 ファイル\SpecialChar menuseparator
20275 バージョン管理
20276 \end_layout
20277
20278 \end_inset
20279
20280 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
20281 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
20282 \end_layout
20283
20284 \begin_layout Subsubsection
20285 Windows下でSVNと共にSSHトンネルを使うには
20286 \end_layout
20287
20288 \begin_layout Standard
20289 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
20290 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
20291 ることを覚悟しておいてください.
20292 \end_layout
20293
20294 \begin_layout Enumerate
20295 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
20296 \begin_inset Flex Code
20297 status collapsed
20298
20299 \begin_layout Plain Layout
20300 svn –version
20301 \end_layout
20302
20303 \end_inset
20304
20305 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
20306 \end_layout
20307
20308 \begin_layout Enumerate
20309 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
20310 \begin_inset Foot
20311 status open
20312
20313 \begin_layout Plain Layout
20314 \begin_inset Flex URL
20315 status collapsed
20316
20317 \begin_layout Plain Layout
20318
20319 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20320 \end_layout
20321
20322 \end_inset
20323
20324
20325 \end_layout
20326
20327 \end_inset
20328
20329 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
20330 護などを加えない
20331 \begin_inset Flex Ruby
20332 status collapsed
20333
20334 \begin_layout Plain Layout
20335
20336 \begin_inset Argument post:1
20337 status collapsed
20338
20339 \begin_layout Plain Layout
20340 キー
20341 \end_layout
20342
20343 \end_inset
20344
20345
20346 \end_layout
20347
20348 \end_inset
20349
20350 のみを使用することとします.
20351 \end_layout
20352
20353 \begin_deeper
20354 \begin_layout Enumerate
20355 \begin_inset Flex Code
20356 status collapsed
20357
20358 \begin_layout Plain Layout
20359 puttygen
20360 \end_layout
20361
20362 \end_inset
20363
20364 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
20365 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
20366 s file:」編集フィールドから,直接サーバの
20367 \begin_inset Flex Code
20368 status collapsed
20369
20370 \begin_layout Plain Layout
20371 ~/.ssh/authorized_keys
20372 \end_layout
20373
20374 \end_inset
20375
20376 または
20377 \begin_inset Flex Code
20378 status collapsed
20379
20380 \begin_layout Plain Layout
20381 authorized_keys2
20382 \end_layout
20383
20384 \end_inset
20385
20386 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
20387 \end_layout
20388
20389 \begin_layout Enumerate
20390 Puttyのplinkを入手してください.SVNのconfigファイル
20391 \begin_inset Foot
20392 status collapsed
20393
20394 \begin_layout Plain Layout
20395 正確なパスはWindowsのバージョンに依りますが,通常は
20396 \begin_inset Flex Code
20397 status collapsed
20398
20399 \begin_layout Plain Layout
20400 c:
20401 \backslash
20402 Documents and Settings
20403 \backslash
20404 user
20405 \backslash
20406 Application Data
20407 \backslash
20408 Subversion
20409 \backslash
20410 config
20411 \end_layout
20412
20413 \end_inset
20414
20415
20416 \begin_inset Flex Code
20417 status collapsed
20418
20419 \begin_layout Plain Layout
20420 AppData
20421 \backslash
20422 Roaming
20423 \backslash
20424 Subversion
20425 \end_layout
20426
20427 \end_inset
20428
20429 辺りにあります.
20430 \end_layout
20431
20432 \end_inset
20433
20434 中の
20435 \begin_inset Flex Code
20436 status collapsed
20437
20438 \begin_layout Plain Layout
20439 [tunnels]
20440 \end_layout
20441
20442 \end_inset
20443
20444 セクションにsshコマンドを設定してください.例:
20445 \begin_inset Flex Code
20446 status collapsed
20447
20448 \begin_layout Plain Layout
20449 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20450 \end_layout
20451
20452 \end_inset
20453
20454
20455 \begin_inset Foot
20456 status collapsed
20457
20458 \begin_layout Plain Layout
20459 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
20460 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
20461 \end_layout
20462
20463 \end_inset
20464
20465
20466 \end_layout
20467
20468 \end_deeper
20469 \begin_layout Enumerate
20470 SVNアーカイブをチェックアウトしてください.例:
20471 \begin_inset Newline newline
20472 \end_inset
20473
20474
20475 \begin_inset Flex Code
20476 status collapsed
20477
20478 \begin_layout Plain Layout
20479 svn co svn+ssh://user@server/repository_path
20480 \end_layout
20481
20482 \end_inset
20483
20484
20485 \end_layout
20486
20487 \begin_layout Subsubsection
20488 行末変換
20489 \end_layout
20490
20491 \begin_layout Standard
20492 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
20493 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
20494 の機能に関する限り問題になりま
20495 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
20496 \begin_inset Flex Code
20497 status collapsed
20498
20499 \begin_layout Plain Layout
20500 native
20501 \end_layout
20502
20503 \end_inset
20504
20505 モードに切り替える際
20506 \begin_inset Foot
20507 status collapsed
20508
20509 \begin_layout Plain Layout
20510 手短には
20511 \begin_inset Flex Code
20512 status collapsed
20513
20514 \begin_layout Plain Layout
20515 svn propset svn:eol-style native FILE_NAME
20516 \end_layout
20517
20518 \end_inset
20519
20520
20521 \end_layout
20522
20523 \end_inset
20524
20525 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20526 \begin_inset Foot
20527 status collapsed
20528
20529 \begin_layout Plain Layout
20530 \begin_inset Flex URL
20531 status collapsed
20532
20533 \begin_layout Plain Layout
20534
20535 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20536 \end_layout
20537
20538 \end_inset
20539
20540
20541 \end_layout
20542
20543 \end_inset
20544
20545
20546 \end_layout
20547
20548 \begin_layout Subsection
20549 \SpecialChar LyX
20550 におけるGITコマンド
20551 \end_layout
20552
20553 \begin_layout Standard
20554 \SpecialChar LyX
20555 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
20556 \family sans
20557 ファイル\SpecialChar menuseparator
20558 バージョン管理
20559 \family default
20560 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
20561 は,GIT
20562  1.7に対して試験を行っています.
20563 \end_layout
20564
20565 \begin_layout Standard
20566 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
20567 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
20568 ミットを行います.ローカルリポジトリは,GITコマンドの
20569 \begin_inset Flex Code
20570 status open
20571
20572 \begin_layout Plain Layout
20573 pull
20574 \end_layout
20575
20576 \end_inset
20577
20578 または
20579 \begin_inset Flex Code
20580 status open
20581
20582 \begin_layout Plain Layout
20583 push
20584 \end_layout
20585
20586 \end_inset
20587
20588 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
20589 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
20590 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
20591 \begin_inset Flex Code
20592 status open
20593
20594 \begin_layout Plain Layout
20595 pull
20596 \end_layout
20597
20598 \end_inset
20599
20600 または
20601 \begin_inset Flex Code
20602 status open
20603
20604 \begin_layout Plain Layout
20605 push
20606 \end_layout
20607
20608 \end_inset
20609
20610 の操作を行う必要があります.
20611 \end_layout
20612
20613 \begin_layout Subsubsection
20614 登録
20615 \end_layout
20616
20617 \begin_layout Standard
20618 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
20619 \family sans
20620 登録
20621 \family default
20622 項目は表示されません.
20623 \end_layout
20624
20625 \begin_layout Standard
20626 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
20627 \emph on
20628 のみ
20629 \emph default
20630 (すなわち
20631 \begin_inset Flex Code
20632 status collapsed
20633
20634 \begin_layout Plain Layout
20635 .git/index
20636 \end_layout
20637
20638 \end_inset
20639
20640 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
20641 \end_layout
20642
20643 \begin_layout Standard
20644 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
20645 \end_layout
20646
20647 \begin_layout Standard
20648 実行されるGITコマンドは,
20649 \begin_inset Flex Code
20650 status collapsed
20651
20652 \begin_layout Plain Layout
20653 git add "<ファイル名>"
20654 \end_layout
20655
20656 \end_inset
20657
20658 です.
20659 \end_layout
20660
20661 \begin_layout Standard
20662 スイッチの説明は
20663 \begin_inset Flex Code
20664 status collapsed
20665
20666 \begin_layout Plain Layout
20667 man git
20668 \end_layout
20669
20670 \end_inset
20671
20672 をお読みください.
20673 \end_layout
20674
20675 \begin_layout Subsubsection
20676 変更をチェックイン
20677 \end_layout
20678
20679 \begin_layout Standard
20680 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
20681 \end_layout
20682
20683 \begin_layout Standard
20684 GITコマンド:
20685 \begin_inset Flex Code
20686 status collapsed
20687
20688 \begin_layout Plain Layout
20689 git commit -q -m
20690 \begin_inset Quotes erd
20691 \end_inset
20692
20693 <入力した説明文>
20694 \begin_inset Quotes erd
20695 \end_inset
20696
20697  "<ファイル名>"
20698 \end_layout
20699
20700 \end_inset
20701
20702
20703 \end_layout
20704
20705 \begin_layout Subsubsection
20706 リポジトリ版に戻す
20707 \end_layout
20708
20709 \begin_layout Standard
20710 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
20711 \end_layout
20712
20713 \begin_layout Standard
20714 GITコマンド:
20715 \begin_inset Flex Code
20716 status collapsed
20717
20718 \begin_layout Plain Layout
20719 git checkout -q 
20720 \begin_inset Quotes eld
20721 \end_inset
20722
20723 <ファイル名>
20724 \begin_inset Quotes erd
20725 \end_inset
20726
20727
20728 \end_layout
20729
20730 \end_inset
20731
20732
20733 \end_layout
20734
20735 \begin_layout Subsubsection
20736 ファイル名変更
20737 \end_layout
20738
20739 \begin_layout Standard
20740 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
20741 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20742 ァイルの相対パスは,(
20743 \family sans
20744 ファイル\SpecialChar menuseparator
20745 名前をつけて保存\SpecialChar ldots
20746
20747 \family default
20748 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20749 \end_layout
20750
20751 \begin_layout Labeling
20752 \labelwidthstring 00.00.0000
20753 GITコマンド:
20754 \end_layout
20755
20756 \begin_layout Labeling
20757 \labelwidthstring 00.00.0000
20758 \begin_inset Flex Code
20759 status collapsed
20760
20761 \begin_layout Plain Layout
20762 git mv "<ファイル名>" "<新ファイル名>"
20763 \end_layout
20764
20765 \end_inset
20766
20767
20768 \end_layout
20769
20770 \begin_layout Labeling
20771 \labelwidthstring 00.00.0000
20772 \begin_inset Flex Code
20773 status collapsed
20774
20775 \begin_layout Plain Layout
20776 git commit
20777 \end_layout
20778
20779 \end_inset
20780
20781
20782 \end_layout
20783
20784 \begin_layout Subsubsection
20785 履歴を表示
20786 \end_layout
20787
20788 \begin_layout Standard
20789 これは,GIT文書の全履歴を表示します.
20790 \begin_inset Flex Code
20791 status collapsed
20792
20793 \begin_layout Plain Layout
20794 git log 
20795 \begin_inset Quotes eld
20796 \end_inset
20797
20798 <ファイル名>
20799 \begin_inset Quotes erd
20800 \end_inset
20801
20802
20803 \end_layout
20804
20805 \end_inset
20806
20807 の出力がブラウザに表示されます.
20808 \end_layout
20809
20810 \begin_layout Subsubsection
20811 改訂情報
20812 \end_layout
20813
20814 \begin_layout Standard
20815 \SpecialChar LyX
20816 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
20817 \family typewriter
20818 git log -n 1 --pretty=format:%H%n%an%n%ai
20819 \family default
20820 によって抽出されます.ツリーバージョン情報は,
20821 \family typewriter
20822 git describe --abbrev --dirty --long
20823 \family default
20824 で取得されます.詳細については,第
20825 \begin_inset CommandInset ref
20826 LatexCommand ref
20827 reference "subsec:VCS改訂情報"
20828
20829 \end_inset
20830
20831 節を参照してください.
20832 \end_layout
20833
20834 \begin_layout Subsection
20835 さらなる調整
20836 \end_layout
20837
20838 \begin_layout Standard
20839 vcコマンド機構が最近になって付け加えられたおかげで,\SpecialChar LyX
20840 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
20841 \end_layout
20842
20843 \begin_layout Standard
20844 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
20845 \end_layout
20846
20847 \begin_layout Description
20848 コミット: 
20849 \begin_inset Flex Code
20850 status collapsed
20851
20852 \begin_layout Plain Layout
20853 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
20854 \end_layout
20855
20856 \end_inset
20857
20858
20859 \end_layout
20860
20861 \begin_layout Description
20862 元に戻す: 
20863 \begin_inset Flex Code
20864 status collapsed
20865
20866 \begin_layout Plain Layout
20867 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
20868 \end_layout
20869
20870 \end_inset
20871
20872
20873 \end_layout
20874
20875 \begin_layout Subsection
20876 バージョン管理と文書比較
20877 \end_layout
20878
20879 \begin_layout Standard
20880 バージョン管理は,通常
20881 \begin_inset Flex Code
20882 status collapsed
20883
20884 \begin_layout Plain Layout
20885 diff
20886 \end_layout
20887
20888 \end_inset
20889
20890 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
20891 ファイルの場合には,あ
20892 まり便利ではありません.そこで,\SpecialChar LyX
20893 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
20894
20895 \begin_inset Flex Code
20896 status collapsed
20897
20898 \begin_layout Plain Layout
20899 VC_COMPARE
20900 \end_layout
20901
20902 \end_inset
20903
20904 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
20905 関数説明書を参照),もう1つは
20906 \begin_inset Flex MenuItem
20907 status collapsed
20908
20909 \begin_layout Plain Layout
20910 旧改訂と比較\SpecialChar ldots
20911
20912 \end_layout
20913
20914 \end_inset
20915
20916 メニューないしアイコンを使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(この
20917 とき改訂版遡及数「
20918 \begin_inset Flex MenuItem
20919 status collapsed
20920
20921 \begin_layout Plain Layout
20922 0
20923 \end_layout
20924
20925 \end_inset
20926
20927 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
20928 \end_layout
20929
20930 \begin_layout Standard
20931 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
20932 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,HEAD~
20933 Xの形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
20934 \end_layout
20935
20936 \begin_layout Section
20937 文芸プログラミング
20938 \end_layout
20939
20940 \begin_layout Standard
20941
20942 \noun on
20943 Kayvan Sylvan
20944 \noun default
20945 (kayvan@sylvan.com)改訂 
20946 \noun on
20947 Edmar Wienskoski Jr.
20948 \noun default
20949 (edmar-w-jr@technologist.com)原文
20950 \end_layout
20951
20952 \begin_layout Subsection
20953 はじめに
20954 \end_layout
20955
20956 \begin_layout Standard
20957 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
20958 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
20959 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
20960 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
20961 \end_layout
20962
20963 \begin_layout Standard
20964 また,あなたが,\SpecialChar LyX
20965 の設定を変更することを厭わない程度まで\SpecialChar LyX
20966 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
20967 するトピックを扱っている,\SpecialChar LyX
20968 の他の説明書で調べてください.
20969 \end_layout
20970
20971 \begin_layout Subsection
20972 文芸プログラミング
20973 \end_layout
20974
20975 \begin_layout Standard
20976 以下は,文芸プログラミング FAQからの抜粋です.
20977 \end_layout
20978
20979 \begin_layout Quotation
20980 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
20981 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
20982 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
20983 ングのWEBスタイルは,D.
20984 \begin_inset space \thinspace{}
20985 \end_inset
20986
20987 E.
20988  Knuthが,\SpecialChar TeX
20989 組版ソフトウエアを開発中に作り出したものです.
20990 \end_layout
20991
20992 \begin_layout Standard
20993 他のエキスパートの発言です.
20994 \end_layout
20995
20996 \begin_layout Quotation
20997
20998 \emph on
20999 文芸プログラミングは,冗長なコメント付けと何が違いますか?
21000 \end_layout
21001
21002 \begin_layout Quotation
21003 3つの際立った特徴があります.重要な順に列挙すれば,
21004 \end_layout
21005
21006 \begin_deeper
21007 \begin_layout Itemize
21008 推敲の順序が柔軟
21009 \end_layout
21010
21011 \begin_layout Itemize
21012 ブラウジングの自動サポート
21013 \end_layout
21014
21015 \begin_layout Itemize
21016 特に図式と数式を含んだドキュメンテーションの組版
21017 \end_layout
21018
21019 \end_deeper
21020 \begin_layout Quotation
21021 などがあります.
21022 \end_layout
21023
21024 \begin_layout Standard
21025 あなたの興味に火を付けたところで書誌情報を見てみましょう.
21026 \end_layout
21027
21028 \begin_layout Subsubsection
21029 書誌情報
21030 \end_layout
21031
21032 \begin_layout Standard
21033 完全な文芸プログラミング FAQは
21034 \end_layout
21035
21036 \begin_layout Quote
21037 Literate Programming FAQ 
21038 \begin_inset Flex URL
21039 status collapsed
21040
21041 \begin_layout Plain Layout
21042
21043 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21044 \end_layout
21045
21046 \end_inset
21047
21048
21049 \end_layout
21050
21051 \begin_layout Standard
21052 にあります.
21053 \end_layout
21054
21055 \begin_layout Standard
21056 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
21057 を持つものもあります.私は自分で使うのに,いくつかの理由から
21058 \noun on
21059 Noweb
21060 \noun default
21061 を選びました.
21062 \end_layout
21063
21064 \begin_layout Itemize
21065 説明文書を\SpecialChar LaTeX
21066 でもHTMLでも出力できる.
21067 \end_layout
21068
21069 \begin_layout Itemize
21070 開放的なアーキテクチャに持っているので,新しいフィルタをプラグインとして加えたり,自分が必要な特別な処理を実行することが容易である.
21071 \end_layout
21072
21073 \begin_layout Itemize
21074 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
21075 \end_layout
21076
21077 \begin_layout Itemize
21078 無料である.
21079 \end_layout
21080
21081 \begin_layout Standard
21082 Nowebのウェブページは
21083 \end_layout
21084
21085 \begin_layout Quote
21086 Nowebホームページ 
21087 \begin_inset Flex URL
21088 status collapsed
21089
21090 \begin_layout Plain Layout
21091
21092 http://www.cs.virginia.edu/~nr/noweb/
21093 \end_layout
21094
21095 \end_inset
21096
21097
21098 \end_layout
21099
21100 \begin_layout Standard
21101 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
21102 \end_layout
21103
21104 \begin_layout Subsection
21105 \SpecialChar LyX
21106 とNowebを使った文芸プログラミング
21107 \end_layout
21108
21109 \begin_layout Standard
21110 \SpecialChar LyX
21111 における文芸プログラミングのサポートは,\SpecialChar LyX
21112 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
21113 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
21114 の機能を利用することができます.
21115 \end_layout
21116
21117 \begin_layout Subsubsection
21118 ドキュメントとコードの生成(weavingおよびtangling)
21119 \end_layout
21120
21121 \begin_layout Paragraph
21122 nowebモジュールの使用
21123 \end_layout
21124
21125 \begin_layout Standard
21126 Nowebと\SpecialChar LyX
21127 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
21128 \family sans
21129 文書\SpecialChar menuseparator
21130 設定
21131 \family default
21132 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
21133 web」モジュールが表示され,文書に追加できるようになっています.
21134 \end_layout
21135
21136 \begin_layout Paragraph
21137 コードの入力
21138 \end_layout
21139
21140 \begin_layout Standard
21141 \SpecialChar LyX
21142 では,
21143 \begin_inset Flex Noun
21144 status collapsed
21145
21146 \begin_layout Plain Layout
21147 Chunk
21148 \end_layout
21149
21150 \end_inset
21151
21152 という名前のレイアウトを使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
21153 \end_layout
21154
21155 \begin_layout LyX-Code
21156 <<My code>>=
21157 \end_layout
21158
21159 \begin_layout LyX-Code
21160   code
21161 \end_layout
21162
21163 \begin_layout LyX-Code
21164   more code
21165 \end_layout
21166
21167 \begin_layout LyX-Code
21168   even more code
21169 \end_layout
21170
21171 \begin_layout LyX-Code
21172   @
21173 \end_layout
21174
21175 \begin_layout Standard
21176 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
21177 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
21178 これも
21179 \begin_inset Flex Noun
21180 status collapsed
21181
21182 \begin_layout Plain Layout
21183 Chunk
21184 \end_layout
21185
21186 \end_inset
21187
21188 によって取り扱われ,通常の段落のように見えますが,自由に空白を入れることができます.
21189 \end_layout
21190
21191 \begin_layout Standard
21192 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
21193 \end_layout
21194
21195 \begin_layout LyX-Code
21196 <<My chunk>>=
21197 \end_layout
21198
21199 \begin_layout LyX-Code
21200 def some_function(args):
21201 \end_layout
21202
21203 \begin_layout LyX-Code
21204    "This is the doc string for this function."
21205 \end_layout
21206
21207 \begin_layout LyX-Code
21208    print "My args: ", args
21209 \end_layout
21210
21211 \begin_layout LyX-Code
21212 @ %def some_function
21213 \end_layout
21214
21215 \begin_layout Standard
21216 これをどのように使って,その結果相互参照がどうなるかは
21217 \emph on
21218 LIBDIR/examples/listerrors.lyx
21219 \emph default
21220 の中の文芸pythonプログラムを見るとよくわかります.
21221 \end_layout
21222
21223 \begin_layout Paragraph
21224 説明文書の生成
21225 \end_layout
21226
21227 \begin_layout Standard
21228 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
21229 簡単で,通常の文書で行うように
21230 \family sans
21231 文書\SpecialChar menuseparator
21232 表示
21233 \family default
21234 等を選ぶだけです.特別な手続きは必要ありません.
21235 \end_layout
21236
21237 \begin_layout Standard
21238 理解を助けるために,\SpecialChar LyX
21239 の内部で何が起っているかを説明しておきましょう.
21240 \end_layout
21241
21242 \begin_layout Enumerate
21243
21244 \family sans
21245 文書\SpecialChar menuseparator
21246 更新
21247 \family default
21248 が選択されると,\SpecialChar LaTeX
21249 ファイルがつくられます.
21250 \end_layout
21251
21252 \begin_deeper
21253 \begin_layout Standard
21254 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
21255 \begin_inset Flex MenuItem
21256 status collapsed
21257
21258 \begin_layout Plain Layout
21259 設定
21260 \end_layout
21261
21262 \end_inset
21263
21264 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
21265 \end_layout
21266
21267 \end_deeper
21268 \begin_layout Enumerate
21269 違いがファイル名だけなのに注意してください.\SpecialChar LyX
21270 による特別な処理は必要ありません.
21271 \begin_inset Flex Noun
21272 status collapsed
21273
21274 \begin_layout Plain Layout
21275 Chunk
21276 \end_layout
21277
21278 \end_inset
21279
21280 環境でコードを入力するのだけがポイントです.
21281 \end_layout
21282
21283 \begin_layout Enumerate
21284 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
21285 は,\SpecialChar LyX
21286 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
21287 への変換子
21288 \begin_inset Foot
21289 status collapsed
21290
21291 \begin_layout Plain Layout
21292 これらの変換子は,
21293 \family sans
21294 ツール\SpecialChar menuseparator
21295 設定
21296 \family default
21297 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
21298 \emph on
21299 カスタマイズ篇
21300 \emph default
21301 』の「
21302 \emph on
21303 変換子
21304 \emph default
21305 」の節をご覧ください.
21306 \end_layout
21307
21308 \end_inset
21309
21310 を使って\SpecialChar LaTeX
21311 ファイルを生成します.
21312 \end_layout
21313
21314 \begin_deeper
21315 \begin_layout Standard
21316 それ以外の場合はこのステップを飛ばします.
21317 \end_layout
21318
21319 \end_deeper
21320 \begin_layout Enumerate
21321 最後に\SpecialChar LaTeX
21322 が実行され,通常の文書と同じ後処理が行われます.
21323 \end_layout
21324
21325 \begin_layout Standard
21326 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
21327 \end_layout
21328
21329 \begin_layout Paragraph
21330 コードの生成
21331 \end_layout
21332
21333 \begin_layout Standard
21334 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
21335 ファイルが生成されます.それから\SpecialChar LyX
21336
21337 \family typewriter
21338 Noweb->Program
21339 \family default
21340 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
21341 \end_layout
21342
21343 \begin_layout Enumerate
21344 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
21345 変換します).
21346 \end_layout
21347
21348 \begin_layout Enumerate
21349 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
21350 が理解できる形へ書き直します.これによって,\SpecialChar LyX
21351 はファイルバッファの正しい位置へエラーボックスを配置することができます.
21352 \end_layout
21353
21354 \begin_layout Standard
21355 冒頭部,「変換子」設定は
21356 \begin_inset Newline newline
21357 \end_inset
21358
21359
21360 \begin_inset Quotes eld
21361 \end_inset
21362
21363
21364 \family typewriter
21365 build-script $$i $$r
21366 \family default
21367
21368 \begin_inset Quotes erd
21369 \end_inset
21370
21371
21372 \begin_inset Newline newline
21373 \end_inset
21374
21375 と指定します.これは基本的に,\SpecialChar LyX
21376
21377 \begin_inset Quotes erd
21378 \end_inset
21379
21380
21381 \family typewriter
21382 build-script
21383 \family default
21384
21385 \begin_inset Quotes erd
21386 \end_inset
21387
21388 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21389 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
21390 ファイルのディレクトリパスを使って呼び出すこ
21391 とを意味しています.
21392 \end_layout
21393
21394 \begin_layout Standard
21395 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
21396 \end_layout
21397
21398 \begin_layout Standard
21399 \begin_inset VSpace defskip
21400 \end_inset
21401
21402
21403 \begin_inset Newpage pagebreak
21404 \end_inset
21405
21406
21407 \end_layout
21408
21409 \begin_layout Standard
21410
21411 \family sans
21412 #!/bin/sh
21413 \end_layout
21414
21415 \begin_layout Standard
21416
21417 \family sans
21418 #
21419 \end_layout
21420
21421 \begin_layout Standard
21422
21423 \family sans
21424 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21425 \end_layout
21426
21427 \begin_layout Standard
21428 \begin_inset VSpace defskip
21429 \end_inset
21430
21431
21432 \end_layout
21433
21434 \begin_layout Standard
21435 変換子設定の次の部分は「フラグ」で,これは
21436 \begin_inset Quotes erd
21437 \end_inset
21438
21439
21440 \family typewriter
21441 parselog=$$s/scripts/listerrors
21442 \family default
21443
21444 \begin_inset Quotes erd
21445 \end_inset
21446
21447 に設定されます.
21448 \begin_inset Newline newline
21449 \end_inset
21450
21451 これは,
21452 \begin_inset Quotes erd
21453 \end_inset
21454
21455 build-script
21456 \begin_inset Quotes erd
21457 \end_inset
21458
21459 プロセスが生成したエラーを
21460 \begin_inset Quotes erd
21461 \end_inset
21462
21463 listerrors
21464 \begin_inset Quotes erd
21465 \end_inset
21466
21467 プログラムを介して処理するものです.
21468 \end_layout
21469
21470 \begin_layout Standard
21471 ビルドは,通常\SpecialChar LyX
21472 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
21473 は,主要ファイルとみなされるものをコピーして取り出
21474 しますが,
21475 \family typewriter
21476 Noweb→プログラム
21477 \family default
21478 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
21479 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
21480 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
21481 \end_layout
21482
21483 \begin_layout Paragraph
21484 文章中でのプログラムの構築操作の説明
21485 \end_layout
21486
21487 \begin_layout Standard
21488 \SpecialChar LyX
21489 とNowebの統合の最後の部分は,
21490 \begin_inset Quotes eld
21491 \end_inset
21492
21493 build-script
21494 \begin_inset Quotes erd
21495 \end_inset
21496
21497  chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
21498 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
21499 \end_layout
21500
21501 \begin_layout Standard
21502 以下に典型的なchunkがどのようなものかを書いておきます.
21503 \end_layout
21504
21505 \begin_layout LyX-Code
21506 <<build-script>>=
21507 \begin_inset Newline newline
21508 \end_inset
21509
21510
21511 \end_layout
21512
21513 \begin_layout LyX-Code
21514 #!/bin/sh
21515 \begin_inset Newline newline
21516 \end_inset
21517
21518
21519 \begin_inset Newline newline
21520 \end_inset
21521
21522 if [ -z "${NOWEB_SOURCE}" ]
21523 \begin_inset Newline newline
21524 \end_inset
21525
21526 then
21527 \end_layout
21528
21529 \begin_layout LyX-Code
21530 NOWEB_SOURCE=myfile.nw
21531 \begin_inset Newline newline
21532 \end_inset
21533
21534 fi
21535 \begin_inset Newline newline
21536 \end_inset
21537
21538 [...
21539  code to extract files ...
21540  use NOWEB_OUTPUT_DIR here ...]
21541 \begin_inset Newline newline
21542 \end_inset
21543
21544 [...
21545  code to compile files ...]
21546 \begin_inset Newline newline
21547 \end_inset
21548
21549 @
21550 \end_layout
21551
21552 \begin_layout Standard
21553
21554 \emph on
21555 LIBDIR/examples/listerrors.lyx
21556 \emph default
21557
21558 \emph on
21559 LIBDIR/examples/Literate.lyx
21560 \emph default
21561 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
21562 ってもらうための例です.また,
21563 \emph on
21564 LIBDIR/examples/noweb2lyx.lyx
21565 \emph default
21566 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
21567 の文芸プログラミングのサポートがプログラム言語に依存しない
21568 ことを示しています.
21569 \end_layout
21570
21571 \begin_layout Subsubsection
21572 \SpecialChar LyX
21573 の設定
21574 \end_layout
21575
21576 \begin_layout Standard
21577 すべての文芸プログラムのための設定は,
21578 \family sans
21579 ツール\SpecialChar menuseparator
21580 設定
21581 \family default
21582 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
21583 \end_layout
21584
21585 \begin_layout Description
21586 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
21587 \family sans
21588 GUI名
21589 \family default
21590
21591 \family typewriter
21592 NoWeb
21593 \family default
21594 に,拡張子を
21595 \family typewriter
21596 .nw
21597 \family default
21598 に設定してください.これによって,\SpecialChar LyX
21599 に変換プロセスの第一段階でつくられるファイルに
21600 \family typewriter
21601 .nw
21602 \family default
21603 という拡張子をつけることを指示します.
21604 \end_layout
21605
21606 \begin_layout Description
21607 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
21608 \end_layout
21609
21610 \begin_layout Description
21611
21612 \family sans
21613 NoWeb
21614 \family default
21615 ->
21616 \family sans
21617 \SpecialChar LaTeX
21618
21619 \family default
21620  この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
21621 \family typewriter
21622 noweave -delay -index $$i > $$o
21623 \family default
21624 」に設定されます.
21625 \end_layout
21626
21627 \begin_layout Description
21628
21629 \family sans
21630 NoWeb
21631 \family default
21632 ->
21633 \family sans
21634 Program
21635 \family default
21636  これは「tangling」を行います.上述のように,変換子は「
21637 \family typewriter
21638 build-script $$i $$r
21639 \family default
21640 」,フラグは「
21641 \family typewriter
21642 parselog=$$s/scripts/listerrors
21643 \family default
21644 」となります.
21645 \end_layout
21646
21647 \begin_layout Subsubsection
21648 デバッグ機能拡張
21649 \end_layout
21650
21651 \begin_layout Standard
21652 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21653 サーバに実装されました.
21654 \end_layout
21655
21656 \begin_layout Standard
21657 ddd/gdbでデバッグしているとき,一つの
21658 \begin_inset Flex Ruby
21659 status collapsed
21660
21661 \begin_layout Plain Layout
21662
21663 \begin_inset Argument post:1
21664 status collapsed
21665
21666 \begin_layout Plain Layout
21667 キー
21668 \end_layout
21669
21670 \end_inset
21671
21672
21673 \end_layout
21674
21675 \end_inset
21676
21677 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
21678 \begin_inset Flex MenuItem
21679 status collapsed
21680
21681 \begin_layout Plain Layout
21682 ツール\SpecialChar menuseparator
21683 設定\SpecialChar menuseparator
21684 ファイル書式
21685 \end_layout
21686
21687 \end_inset
21688
21689 ウインドウを表示して,
21690 \begin_inset Flex MenuItem
21691 status collapsed
21692
21693 \begin_layout Plain Layout
21694 編集プログラム
21695 \end_layout
21696
21697 \end_inset
21698
21699 エントリを変えると変えることができます.
21700 \end_layout
21701
21702 \begin_layout Standard
21703 新しい\SpecialChar LyX
21704 サーバの関数と,このdddの機能を使うために
21705 \begin_inset Flex MenuItem
21706 status collapsed
21707
21708 \begin_layout Plain Layout
21709 編集プログラム
21710 \end_layout
21711
21712 \end_inset
21713
21714 を次のように設定してください.
21715 \end_layout
21716
21717 \begin_layout Standard
21718 \begin_inset VSpace defskip
21719 \end_inset
21720
21721
21722 \end_layout
21723
21724 \begin_layout Standard
21725
21726 \family sans
21727 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21728 \end_layout
21729
21730 \begin_layout Standard
21731 \begin_inset VSpace defskip
21732 \end_inset
21733
21734
21735 \end_layout
21736
21737 \begin_layout Standard
21738 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21739 サーバに情報を送り,\SpecialChar LyX
21740
21741 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
21742 \end_layout
21743
21744 \begin_layout Standard
21745 この機能が動くには\SpecialChar LyX
21746 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
21747 サーバーは使えないようになっています).\SpecialChar LyX
21748 サーバを使えるようにするには,
21749 \family sans
21750
21751 \begin_inset Flex MenuItem
21752 status collapsed
21753
21754 \begin_layout Plain Layout
21755
21756 \family sans
21757 設定
21758 \end_layout
21759
21760 \end_inset
21761
21762
21763 \family default
21764 (
21765 \family sans
21766
21767 \begin_inset Flex MenuItem
21768 status collapsed
21769
21770 \begin_layout Plain Layout
21771
21772 \family sans
21773 パス
21774 \end_layout
21775
21776 \end_inset
21777
21778
21779 \family default
21780 タブ)の
21781 \family sans
21782
21783 \begin_inset Flex MenuItem
21784 status collapsed
21785
21786 \begin_layout Plain Layout
21787
21788 \family sans
21789 \SpecialChar LyX
21790 サーバーパイプ
21791 \family default
21792
21793 \end_layout
21794
21795 \end_inset
21796
21797
21798 \family default
21799
21800 \begin_inset Quotes eld
21801 \end_inset
21802
21803
21804 \family typewriter
21805 /home/<your-home-directory>/.lyx/lyxpipe
21806 \family default
21807
21808 \begin_inset Quotes erd
21809 \end_inset
21810
21811  のようにパスを指定してください.
21812 \end_layout
21813
21814 \begin_layout Standard
21815 詳しくは第
21816 \begin_inset CommandInset ref
21817 LatexCommand ref
21818 reference "chap:LyXサーバー"
21819
21820 \end_inset
21821
21822 章を読んでください.
21823 \end_layout
21824
21825 \begin_layout Subsubsection
21826 ツールバー拡張
21827 \end_layout
21828
21829 \begin_layout Standard
21830 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの5つのボタンは段落環境へのショートカットです.
21831 \family sans
21832 標準
21833 \family default
21834 ・節・
21835 \family sans
21836 \SpecialChar LaTeX
21837
21838 \family default
21839
21840 \family sans
21841 \SpecialChar LyX
21842 コード
21843 \family default
21844
21845 \family sans
21846 Chunk
21847 \family default
21848 環境用のボタンを用意しています.最後の一つはファイルメニュー項目の「Build Program」への
21849 \begin_inset Flex Ruby
21850 status collapsed
21851
21852 \begin_layout Plain Layout
21853
21854 \family roman
21855 \series medium
21856 \shape up
21857 \size normal
21858 \emph off
21859 \bar no
21860 \noun off
21861 \color none
21862 捷径
21863 \family default
21864 \series default
21865 \shape default
21866 \size default
21867 \emph default
21868 \bar default
21869 \noun default
21870 \color inherit
21871
21872 \begin_inset Argument post:1
21873 status collapsed
21874
21875 \begin_layout Plain Layout
21876 ショートカット
21877 \end_layout
21878
21879 \end_inset
21880
21881
21882 \end_layout
21883
21884 \end_inset
21885
21886 です.
21887 \end_layout
21888
21889 \begin_layout Standard
21890 \SpecialChar LyX
21891 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
21892 \begin_inset Flex MenuItem
21893 status collapsed
21894
21895 \begin_layout Plain Layout
21896 文書\SpecialChar menuseparator
21897 更新\SpecialChar menuseparator
21898 DVI
21899 \end_layout
21900
21901 \end_inset
21902
21903
21904 \begin_inset Flex MenuItem
21905 status collapsed
21906
21907 \begin_layout Plain Layout
21908 文書\SpecialChar menuseparator
21909 表示\SpecialChar menuseparator
21910 DVI
21911 \end_layout
21912
21913 \end_inset
21914
21915 を組み合わせたものになっています.
21916 \end_layout
21917
21918 \begin_layout LyX-Code
21919 Toolbar
21920 \end_layout
21921
21922 \begin_layout LyX-Code
21923   Layouts
21924 \end_layout
21925
21926 \begin_layout LyX-Code
21927   Icon "layout Standard"
21928 \end_layout
21929
21930 \begin_layout LyX-Code
21931   Icon "layout Section"
21932 \end_layout
21933
21934 \begin_layout LyX-Code
21935   Icon "layout \SpecialChar LaTeX
21936 "
21937 \end_layout
21938
21939 \begin_layout LyX-Code
21940   Icon "layout \SpecialChar LyX
21941 -Code"
21942 \end_layout
21943
21944 \begin_layout LyX-Code
21945   Icon "layout Chunk"
21946 \end_layout
21947
21948 \begin_layout LyX-Code
21949   Separator
21950 \end_layout
21951
21952 \begin_layout LyX-Code
21953   Icon "buffer-view"
21954 \end_layout
21955
21956 \begin_layout LyX-Code
21957   Icon "buffer-typeset"
21958 \end_layout
21959
21960 \begin_layout LyX-Code
21961   Icon "build-program"
21962 \end_layout
21963
21964 \begin_layout LyX-Code
21965   Separator
21966 \end_layout
21967
21968 \begin_layout LyX-Code
21969 .
21970 \end_layout
21971
21972 \begin_layout LyX-Code
21973 .
21974 \end_layout
21975
21976 \begin_layout LyX-Code
21977 .
21978 \end_layout
21979
21980 \begin_layout LyX-Code
21981 End
21982 \end_layout
21983
21984 \begin_layout Subsubsection
21985 色の変更
21986 \end_layout
21987
21988 \begin_layout Standard
21989 \SpecialChar LyX
21990 ではいくつもの色を
21991 \begin_inset Flex MenuItem
21992 status collapsed
21993
21994 \begin_layout Plain Layout
21995 設定
21996 \end_layout
21997
21998 \end_inset
21999
22000 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
22001 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
22002 フォントを使うことになっていて,文芸プログラミ
22003 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
22004 \begin_inset Flex MenuItem
22005 status collapsed
22006
22007 \begin_layout Plain Layout
22008 操作性\SpecialChar menuseparator
22009
22010 \end_layout
22011
22012 \end_inset
22013
22014 タブで変更することができます.
22015 \end_layout
22016
22017 \begin_layout Standard
22018 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
22019 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
22020 \end_layout
22021
22022 \begin_layout Subsection
22023 \SpecialChar LyX
22024 とknitr/Sweave
22025 \end_layout
22026
22027 \begin_layout Standard
22028 knitrとSweaveへのサポートについては,用例ファイル
22029 \emph on
22030 knitr.lyx
22031 \emph default
22032 とSweave取扱説明書(
22033 \family sans
22034 ヘルプ\SpecialChar menuseparator
22035 用途別説明書
22036 \family default
22037 メニュー)に説明があります.
22038 \end_layout
22039
22040 \begin_layout Chapter
22041 特殊機能
22042 \begin_inset CommandInset label
22043 LatexCommand label
22044 name "chap:Special-features"
22045
22046 \end_inset
22047
22048
22049 \end_layout
22050
22051 \begin_layout Standard
22052 \SpecialChar LyX
22053 では,\SpecialChar LaTeX
22054 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
22055 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
22056 コードを使用することはできます.本章は,ユーザの興味が
22057 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
22058 \emph on
22059 埋込オブジェクト篇
22060 \emph default
22061 』をご参照ください.
22062 \end_layout
22063
22064 \begin_layout Section
22065 多段組
22066 \end_layout
22067
22068 \begin_layout Standard
22069 この機能は,文書設定の
22070 \family sans
22071 本文レイアウト
22072 \family default
22073 にある
22074 \family sans
22075 二段組文書
22076 \family default
22077 とは別の機能です.文書全体に二段組を行いたい場合には,
22078 \family sans
22079 二段組文書
22080 \family default
22081 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
22082 \end_layout
22083
22084 \begin_layout Standard
22085 文書中で多段組を行うには,\SpecialChar LaTeX
22086 パッケージ
22087 \series bold
22088 multicol
22089 \series default
22090
22091 \begin_inset Index idx
22092 status collapsed
22093
22094 \begin_layout Plain Layout
22095 \SpecialChar LaTeX
22096 ぱっけーじ @ \SpecialChar LaTeX
22097 パッケージ ! multicol
22098 \end_layout
22099
22100 \end_inset
22101
22102 を導入した上で,(
22103 \family sans
22104 文書\SpecialChar menuseparator
22105 設定\SpecialChar menuseparator
22106 モジュール
22107 \family default
22108 メニューから)
22109 \family sans
22110 多段組
22111 \family default
22112 モジュールを読み込んでください.
22113 \end_layout
22114
22115 \begin_layout Standard
22116 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
22117 \family sans
22118 段をまたぐ
22119 \family default
22120 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
22121 \end_layout
22122
22123 \begin_layout Subsection
22124 基本
22125 \end_layout
22126
22127 \begin_layout Standard
22128 文章中で二段組を使用したい場合には,段組を始める場所で
22129 \family sans
22130 挿入\SpecialChar menuseparator
22131 任意設定差込枠\SpecialChar menuseparator
22132 多段組
22133 \family default
22134 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
22135 \end_layout
22136
22137 \begin_layout Standard
22138 下記はその用例です.
22139 \end_layout
22140
22141 \begin_layout Standard
22142 \noindent
22143 \begin_inset Flex Multiple Columns
22144 status open
22145
22146 \begin_layout Plain Layout
22147 \noindent
22148
22149 \series bold
22150 \size small
22151 The Adventure of the Empty House
22152 \series default
22153
22154 \begin_inset Newline newline
22155 \end_inset
22156
22157 by Sir Arthur Conan Doyle
22158 \end_layout
22159
22160 \begin_layout Plain Layout
22161
22162 \size small
22163 It was in the spring of the year 1894 that all London was interested, and
22164  the fashionable world dismayed, by the murder of the Honourable Ronald
22165  Adair under most unusual and inexplicable circumstances.
22166  The public has already learned those particulars of the crime which came
22167  out in the police investigation, but a good deal was suppressed upon that
22168  occasion, since the case for the prosecution was so overwhelmingly strong
22169  that it was not necessary to bring forward all the facts.
22170  Only now, at the end of nearly ten years, am I allowed to supply those
22171  missing links which make up the whole of that remarkable chain.
22172  The crime was of interest in itself, but that interest was as nothing to
22173  me compared to the inconceivable sequel, which afforded me the greatest
22174  shock and surprise of any event in my adventurous life.
22175  Even now, after this long interval, I find myself thrilling as I think
22176  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22177 ty which utterly submerged my mind.
22178  Let me say to that public, which has shown some interest in those glimpses
22179  which I have occasionally given them of the thoughts and actions of a very
22180  remarkable man, that they are not to blame me if I have not shared my knowledge
22181  with them, for I should have considered it my first duty to do so, had
22182  I not been barred by a positive prohibition from his own lips, which was
22183  only withdrawn upon the third of last month.
22184 \end_layout
22185
22186 \end_inset
22187
22188
22189 \end_layout
22190
22191 \begin_layout Standard
22192 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
22193 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
22194 と書きます).
22195 \begin_inset Newline newline
22196 \end_inset
22197
22198 下記は三段組の例です.
22199 \end_layout
22200
22201 \begin_layout Standard
22202 \begin_inset Flex Multiple Columns
22203 status open
22204
22205 \begin_layout Plain Layout
22206
22207 \size footnotesize
22208 \begin_inset Argument 1
22209 status open
22210
22211 \begin_layout Plain Layout
22212 3
22213 \end_layout
22214
22215 \end_inset
22216
22217 It can be imagined that my close intimacy with Sherlock Holmes had interested
22218  me deeply in crime, and that after his disappearance I never failed to
22219  read with care the various problems which came before the public.
22220  And I even attempted, more than once, for my own private satisfaction,
22221  to employ his methods in their solution, though with indifferent success.
22222  There was none, however, which appealed to me like this tragedy of Ronald
22223  Adair.
22224  As I read the evidence at the inquest, which led up to a verdict of willful
22225  murder against some person or persons unknown, I realized more clearly
22226  than I had ever done the loss which the community had sustained by the
22227  death of Sherlock Holmes.
22228  There were points about this strange business which would, I was sure,
22229  have specially appealed to him, and the efforts of the police would have
22230  been supplemented, or more probably anticipated, by the trained observation
22231  and the alert mind of the first criminal agent in Europe.
22232  All day, as I drove upon my round, I turned over the case in my mind and
22233  found no explanation which appeared to me to be adequate.
22234  At the risk of telling a twice-told tale, I will recapitulate the facts
22235  as they were known to the public at the conclusion of the inquest.
22236 \end_layout
22237
22238 \end_inset
22239
22240
22241 \end_layout
22242
22243 \begin_layout Standard
22244 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
22245 \end_layout
22246
22247 \begin_layout Standard
22248 \begin_inset Newpage newpage
22249 \end_inset
22250
22251
22252 \end_layout
22253
22254 \begin_layout Subsection
22255 段組中の段組
22256 \end_layout
22257
22258 \begin_layout Standard
22259 また,段中に段を組むこともできます.
22260 \end_layout
22261
22262 \begin_layout Standard
22263 \begin_inset Flex Multiple Columns
22264 status open
22265
22266 \begin_layout Plain Layout
22267
22268 \size footnotesize
22269 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22270  at that time governor of one of the Australian colonies.
22271  Adair's mother had returned from Australia to undergo the operation for
22272  cataract, and she, her son Ronald, and her daughter Hilda were living together
22273  at 427 Park Lane.
22274 \end_layout
22275
22276 \begin_layout Plain Layout
22277 \begin_inset Flex Multiple Columns
22278 status open
22279
22280 \begin_layout Plain Layout
22281
22282 \size footnotesize
22283 The youth moved in the best society–had, so far as was known, no enemies
22284  and no particular vices.
22285  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22286  had been broken off by mutual consent some months before, and there was
22287  no sign that it had left any very profound feeling behind it.
22288  For the rest {sic} the man's life moved in a narrow and conventional circle,
22289  for his habits were quiet and his nature unemotional.
22290  Yet it was upon this easy-going young aristocrat that death came, in most
22291  strange and unexpected form, between the hours of ten and eleven-twenty
22292  on the night of March 30, 1894.
22293 \end_layout
22294
22295 \end_inset
22296
22297
22298 \end_layout
22299
22300 \begin_layout Plain Layout
22301
22302 \size footnotesize
22303 Ronald Adair was fond of cards–playing continually, but never for such stakes
22304  as would hurt him.
22305  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22306  It was shown that, after dinner on the day of his death, he had played
22307  a rubber of whist at the latter club.
22308  He had also played there in the afternoon.
22309
22310 \size default
22311  
22312 \size footnotesize
22313 The evidence of those who had played with him– Mr.
22314  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22315  and that there was a fairly equal fall of the cards.
22316  Adair might have lost five pounds, but not more.
22317  His fortune was a considerable one, and such a loss could not in any way
22318  affect him.
22319  He had played nearly every day at one club or other, but he was a cautious
22320  player, and usually rose a winner.
22321  It came out in evidence that, in partnership with Colonel Moran, he had
22322  actually won as much as four hundred and twenty pounds in a sitting, some
22323  weeks before, from Godfrey Milner and Lord Balmoral.
22324  So much for his recent history as it came out at the inquest.
22325 \end_layout
22326
22327 \end_inset
22328
22329
22330 \end_layout
22331
22332 \begin_layout Subsection
22333 応用例
22334 \end_layout
22335
22336 \begin_layout Standard
22337 本節の用例は,多段組のさらに特別な機能を示すためのものです.
22338 \end_layout
22339
22340 \begin_layout Standard
22341 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
22342 パッケージ
22343 \series bold
22344 multicol
22345 \series default
22346
22347 \begin_inset CommandInset citation
22348 LatexCommand cite
22349 key "multicol"
22350
22351 \end_inset
22352
22353 の取扱説明書をご覧ください.
22354 \end_layout
22355
22356 \begin_layout Subsubsection
22357 序文
22358 \end_layout
22359
22360 \begin_layout Standard
22361 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
22362 \family sans
22363 挿入\SpecialChar menuseparator
22364 序文
22365 \family default
22366 メニューを使用してください.序文は,この差込枠内に書いてください.
22367 \begin_inset Newline newline
22368 \end_inset
22369
22370 序文のある文章の例を掲げます.
22371 \end_layout
22372
22373 \begin_layout Standard
22374 \begin_inset VSpace bigskip
22375 \end_inset
22376
22377
22378 \end_layout
22379
22380 \begin_layout Standard
22381 \begin_inset Flex Multiple Columns
22382 status open
22383
22384 \begin_layout Plain Layout
22385 \begin_inset Argument 2
22386 status open
22387
22388 \begin_layout Plain Layout
22389 And the story continues and continues and continues and continues\SpecialChar ldots
22390
22391 \end_layout
22392
22393 \end_inset
22394
22395
22396 \size small
22397 On the evening of the crime, he returned from the club exactly at ten.
22398  His mother and sister were out spending the evening with a relation.
22399  The servant deposed that she heard him enter the front room on the second
22400  floor, generally used as his sitting-room.
22401  She had lit a fire there, and as it smoked she had opened the window.
22402  No sound was heard from the room until eleven-twenty, the hour of the return
22403  of Lady Maynooth and her daughter.
22404  Desiring to say good-night, she attempted to enter her son's room.
22405  The door was locked on the inside, and no answer could be got to their
22406  cries and knocking.
22407  Help was obtained, and the door forced.
22408  The unfortunate young man was found lying near the table.
22409  His head had been horribly mutilated by an expanding revolver bullet, but
22410  no weapon of any sort was to be found in the room.
22411 \end_layout
22412
22413 \end_inset
22414
22415
22416 \end_layout
22417
22418 \begin_layout Standard
22419 最初の\SpecialChar TeX
22420 コードの後に,節宣言コマンドを\SpecialChar TeX
22421 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
22422 \end_layout
22423
22424 \begin_layout Standard
22425
22426 \series bold
22427
22428 \backslash
22429 subsection{小節見出し}
22430 \end_layout
22431
22432 \begin_layout Standard
22433 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
22434 \end_layout
22435
22436 \begin_layout Standard
22437 \begin_inset Flex Multiple Columns
22438 status open
22439
22440 \begin_layout Plain Layout
22441 \begin_inset Argument 2
22442 status open
22443
22444 \begin_layout Plain Layout
22445 \begin_inset ERT
22446 status collapsed
22447
22448 \begin_layout Plain Layout
22449
22450
22451 \backslash
22452 subsubsection{
22453 \end_layout
22454
22455 \end_inset
22456
22457 これは序文の小々節見出しです
22458 \begin_inset ERT
22459 status collapsed
22460
22461 \begin_layout Plain Layout
22462
22463 }
22464 \end_layout
22465
22466 \end_inset
22467
22468
22469 \end_layout
22470
22471 \end_inset
22472
22473
22474 \size small
22475 A minute examination of the circumstances served only to make the case more
22476  complex.
22477  In the first place, no reason could be given why the young man should have
22478  fastened the door upon the inside.
22479  There was the possibility that the murderer had done this, and had afterwards
22480  escaped by the window.
22481  The drop was at least twenty feet, however, and a bed of crocuses in full
22482  bloom lay beneath.
22483  Neither the flowers nor the earth showed any sign of having been disturbed,
22484  nor were there any marks upon the narrow strip of grass which separated
22485  the house from the road.
22486  Apparently, therefore, it was the young man himself who had fastened the
22487  door.
22488  But how did he come by his death? No one could have climbed up to the window
22489  without leaving traces.
22490  Suppose a man had fired through the window, he would indeed be a remarkable
22491  shot who could with a revolver inflict so deadly a wound.
22492  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22493  a hundred yards of the house.
22494  No one had heard a shot.
22495 \end_layout
22496
22497 \end_inset
22498
22499
22500 \end_layout
22501
22502 \begin_layout Standard
22503 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
22504 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
22505 \family sans
22506 挿入\SpecialChar menuseparator
22507 改頁前の余白
22508 \family default
22509 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
22510 \end_layout
22511
22512 \begin_layout Standard
22513 以下の例では,「7
22514 \backslash
22515 baselineskip」を用いて,必要行数を7行に指定しています(コマンド
22516 \series bold
22517
22518 \backslash
22519 baselineskip
22520 \series default
22521 は\SpecialChar TeX
22522 コードとして入力する必要があります).
22523 \end_layout
22524
22525 \begin_layout Standard
22526 \begin_inset Flex Multiple Columns
22527 status open
22528
22529 \begin_layout Plain Layout
22530 \begin_inset Argument 3
22531 status open
22532
22533 \begin_layout Plain Layout
22534 7
22535 \begin_inset ERT
22536 status collapsed
22537
22538 \begin_layout Plain Layout
22539
22540
22541 \backslash
22542 baselineskip
22543 \end_layout
22544
22545 \end_inset
22546
22547
22548 \end_layout
22549
22550 \end_inset
22551
22552
22553 \size small
22554 On the evening of the crime, he returned from the club exactly at ten.
22555  His mother and sister were out spending the evening with a relation.
22556  The servant deposed that she heard him enter the front room on the second
22557  floor, generally used as his sitting-room.
22558  She had lit a fire there, and as it smoked she had opened the window.
22559  No sound was heard from the room until eleven-twenty, the hour of the return
22560  of Lady Maynooth and her daughter.
22561  Desiring to say good-night, she attempted to enter her son's room.
22562  The door was locked on the inside, and no answer could be got to their
22563  cries and knocking.
22564  Help was obtained, and the door forced.
22565  The unfortunate young man was found lying near the table.
22566  His head had been horribly mutilated by an expanding revolver bullet, but
22567  no weapon of any sort was to be found in the room.
22568 \end_layout
22569
22570 \end_inset
22571
22572
22573 \end_layout
22574
22575 \begin_layout Subsubsection
22576 周囲の余白
22577 \end_layout
22578
22579 \begin_layout Standard
22580 多段組の前後の余白は,長さ
22581 \series bold
22582
22583 \backslash
22584 multicolsep
22585 \series default
22586 を変えることで変更することができます.例えば,\SpecialChar TeX
22587 コードで書かれたコマンド
22588 \end_layout
22589
22590 \begin_layout Standard
22591
22592 \series bold
22593
22594 \backslash
22595 setlength{
22596 \backslash
22597 multicolsep}{3cm}
22598 \end_layout
22599
22600 \begin_layout Standard
22601 は,その値を3
22602 \begin_inset space \thinspace{}
22603 \end_inset
22604
22605 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
22606 \begin_inset space \thinspace{}
22607 \end_inset
22608
22609 ptです.
22610 \end_layout
22611
22612 \begin_layout Standard
22613 以下の例では,
22614 \series bold
22615
22616 \backslash
22617 multicolsep
22618 \series default
22619 は2.5
22620 \begin_inset space \thinspace{}
22621 \end_inset
22622
22623 cmに指定されています.
22624 \end_layout
22625
22626 \begin_layout Standard
22627 \begin_inset ERT
22628 status open
22629
22630 \begin_layout Plain Layout
22631
22632
22633 \backslash
22634 setlength{
22635 \backslash
22636 multicolsep}{2.5cm}
22637 \end_layout
22638
22639 \end_inset
22640
22641
22642 \end_layout
22643
22644 \begin_layout Standard
22645 \begin_inset Flex Multiple Columns
22646 status open
22647
22648 \begin_layout Plain Layout
22649
22650 \size small
22651 All day I turned these facts over in my mind, endeavouring to hit upon some
22652  theory which could reconcile them all, and to find that line of least resistanc
22653 e which my poor friend had declared to be the starting-point of every investigat
22654 ion.
22655  I confess that I made little progress.
22656  In the evening I strolled across the Park, and found myself about six o'clock
22657  at the Oxford Street end of Park Lane.
22658  A group of loafers upon the pavements, all staring up at a particular window,
22659  directed me to the house which I had come to see.
22660  A tall, thin man with coloured glasses, whom I strongly suspected of being
22661  a plain-clothes detective, was pointing out some theory of his own, while
22662  the others crowded round to listen to what he said.
22663  I got as near him as I could, but his observations seemed to me to be absurd,
22664  so I withdrew again in some disgust.
22665  As I did so I struck against an elderly, deformed man, who had been behind
22666  me, and I knocked down several books which he was carrying.
22667 \end_layout
22668
22669 \end_inset
22670
22671
22672 \end_layout
22673
22674 \begin_layout Standard
22675 \begin_inset Note Greyedout
22676 status open
22677
22678 \begin_layout Plain Layout
22679
22680 \series bold
22681 【註】
22682 \backslash
22683 setlength
22684 \series default
22685 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
22686 \end_layout
22687
22688 \end_inset
22689
22690
22691 \end_layout
22692
22693 \begin_layout Standard
22694 \begin_inset ERT
22695 status collapsed
22696
22697 \begin_layout Plain Layout
22698
22699
22700 \backslash
22701 setlength{
22702 \backslash
22703 multicolsep}{13pt}
22704 \end_layout
22705
22706 \end_inset
22707
22708
22709 \begin_inset Note Note
22710 status collapsed
22711
22712 \begin_layout Plain Layout
22713
22714 \lang english
22715 go back to the default
22716 \end_layout
22717
22718 \end_inset
22719
22720
22721 \end_layout
22722
22723 \begin_layout Standard
22724 \begin_inset Newpage newpage
22725 \end_inset
22726
22727
22728 \end_layout
22729
22730 \begin_layout Subsubsection
22731 改段
22732 \end_layout
22733
22734 \begin_layout Standard
22735 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
22736 コードで,コマンド
22737 \series bold
22738
22739 \backslash
22740 columnbreak{}
22741 \series default
22742 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
22743 \begin_inset Newline newline
22744 \end_inset
22745
22746 以下が用例です.
22747 \end_layout
22748
22749 \begin_layout Standard
22750 \begin_inset Flex Multiple Columns
22751 status open
22752
22753 \begin_layout Plain Layout
22754
22755 \size small
22756 \begin_inset Quotes eld
22757 \end_inset
22758
22759 You're surprised to see me, sir,
22760 \begin_inset Quotes erd
22761 \end_inset
22762
22763  said he, in a strange, croaking voice.
22764 \end_layout
22765
22766 \begin_layout Plain Layout
22767
22768 \size small
22769 I acknowledged that I was.
22770 \end_layout
22771
22772 \begin_layout Plain Layout
22773
22774 \size small
22775 \begin_inset Quotes eld
22776 \end_inset
22777
22778 Well, I've a conscience, sir, and when I chanced to see you go into this
22779  house, as I came hobbling after you, I thought to myself, I'll just step
22780  in and see that kind gentleman, and tell him that if I was a bit gruff
22781  in my manner there was not any harm meant, and that I am much obliged to
22782  him for picking up my books.
22783 \begin_inset Quotes erd
22784 \end_inset
22785
22786
22787 \end_layout
22788
22789 \begin_layout Plain Layout
22790
22791 \size small
22792 \begin_inset Quotes eld
22793 \end_inset
22794
22795 You make too much of a trifle,
22796 \begin_inset Quotes erd
22797 \end_inset
22798
22799  said I.
22800  
22801 \begin_inset Quotes eld
22802 \end_inset
22803
22804 May I ask how you knew who I was?
22805 \begin_inset Quotes erd
22806 \end_inset
22807
22808  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
22809 \begin_inset ERT
22810 status collapsed
22811
22812 \begin_layout Plain Layout
22813
22814
22815 \backslash
22816 columnbreak{}
22817 \end_layout
22818
22819 \end_inset
22820
22821
22822 \end_layout
22823
22824 \begin_layout Plain Layout
22825
22826 \size small
22827 \begin_inset Quotes eld
22828 \end_inset
22829
22830 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
22831  you'll find my little bookshop at the corner of Church Street, and very
22832  happy to see you, I am sure.
22833  Maybe you collect yourself, sir.
22834  Here's 
22835 \noun on
22836 British
22837 \begin_inset space ~
22838 \end_inset
22839
22840 Birds
22841 \noun default
22842 , and 
22843 \noun on
22844 Catullus
22845 \noun default
22846 , and 
22847 \noun on
22848 The Holy War
22849 \noun default
22850 –a bargain, every one of them.
22851  With five volumes you could just fill that gap on that second shelf.
22852  It looks untidy, does it not, sir?
22853 \begin_inset Quotes erd
22854 \end_inset
22855
22856
22857 \end_layout
22858
22859 \end_inset
22860
22861
22862 \end_layout
22863
22864 \begin_layout Subsubsection
22865 段間隔
22866 \end_layout
22867
22868 \begin_layout Standard
22869 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
22870 \series bold
22871
22872 \backslash
22873 columnsep
22874 \series default
22875 を変更することで実現できます.既定値は10
22876 \begin_inset space \thinspace{}
22877 \end_inset
22878
22879 ptです.以下は
22880 \series bold
22881
22882 \backslash
22883 columnsep
22884 \series default
22885 を3
22886 \begin_inset space \thinspace{}
22887 \end_inset
22888
22889 cmに設定した例です.
22890 \end_layout
22891
22892 \begin_layout Standard
22893 \begin_inset ERT
22894 status open
22895
22896 \begin_layout Plain Layout
22897
22898
22899 \backslash
22900 setlength{
22901 \backslash
22902 columnsep}{3cm}
22903 \end_layout
22904
22905 \end_inset
22906
22907
22908 \end_layout
22909
22910 \begin_layout Standard
22911 \begin_inset Flex Multiple Columns
22912 status open
22913
22914 \begin_layout Plain Layout
22915
22916 \size small
22917 My observations of No.
22918 \begin_inset space \space{}
22919 \end_inset
22920
22921 427 Park Lane did little to clear up the problem in which I was interested.
22922  The house was separated from the street by a low wall and railing, the
22923  whole not more than five feet high.
22924  It was perfectly easy, therefore, for anyone to get into the garden, but
22925  the window was entirely inaccessible, since there was no water pipe or
22926  anything which could help the most active man to climb it.
22927  More puzzled than ever, I retraced my steps to Kensington.
22928  I had not been in my study five minutes when the maid entered to say that
22929  a person desired to see me.
22930  To my astonishment it was none other than my strange old book collector,
22931  his sharp, wizened face peering out from a frame of white hair, and his
22932  precious volumes, a dozen of them at least, wedged under his right arm.
22933 \end_layout
22934
22935 \end_inset
22936
22937
22938 \end_layout
22939
22940 \begin_layout Standard
22941 \begin_inset ERT
22942 status collapsed
22943
22944 \begin_layout Plain Layout
22945
22946
22947 \backslash
22948 setlength{
22949 \backslash
22950 columnsep}{10pt}
22951 \end_layout
22952
22953 \end_inset
22954
22955
22956 \begin_inset Note Note
22957 status collapsed
22958
22959 \begin_layout Plain Layout
22960
22961 \lang english
22962 go back to the default
22963 \end_layout
22964
22965 \end_inset
22966
22967
22968 \end_layout
22969
22970 \begin_layout Subsubsection
22971 垂直線
22972 \end_layout
22973
22974 \begin_layout Standard
22975 段間には,長さ
22976 \series bold
22977
22978 \backslash
22979 columnseprule
22980 \series default
22981 の幅を持つ罫線が描かれます.罫線幅を0
22982 \begin_inset space \thinspace{}
22983 \end_inset
22984
22985 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
22986 \begin_inset space \thinspace{}
22987 \end_inset
22988
22989 pt幅に設定されています.
22990 \end_layout
22991
22992 \begin_layout Standard
22993 \begin_inset ERT
22994 status open
22995
22996 \begin_layout Plain Layout
22997
22998
22999 \backslash
23000 setlength{
23001 \backslash
23002 columnseprule}{2pt}
23003 \end_layout
23004
23005 \end_inset
23006
23007
23008 \end_layout
23009
23010 \begin_layout Standard
23011 \begin_inset Flex Multiple Columns
23012 status open
23013
23014 \begin_layout Plain Layout
23015
23016 \size small
23017 \begin_inset Quotes eld
23018 \end_inset
23019
23020 You're surprised to see me, sir,
23021 \begin_inset Quotes erd
23022 \end_inset
23023
23024  said he, in a strange, croaking voice.
23025 \end_layout
23026
23027 \begin_layout Plain Layout
23028
23029 \size small
23030 I acknowledged that I was.
23031 \end_layout
23032
23033 \begin_layout Plain Layout
23034
23035 \size small
23036 \begin_inset Quotes eld
23037 \end_inset
23038
23039 Well, I've a conscience, sir, and when I chanced to see you go into this
23040  house, as I came hobbling after you, I thought to myself, I'll just step
23041  in and see that kind gentleman, and tell him that if I was a bit gruff
23042  in my manner there was not any harm meant, and that I am much obliged to
23043  him for picking up my books.
23044 \begin_inset Quotes erd
23045 \end_inset
23046
23047
23048 \end_layout
23049
23050 \begin_layout Plain Layout
23051
23052 \size small
23053 \begin_inset Quotes eld
23054 \end_inset
23055
23056 You make too much of a trifle,
23057 \begin_inset Quotes erd
23058 \end_inset
23059
23060  said I.
23061  
23062 \begin_inset Quotes eld
23063 \end_inset
23064
23065 May I ask how you knew who I was?
23066 \begin_inset Quotes erd
23067 \end_inset
23068
23069
23070 \end_layout
23071
23072 \begin_layout Plain Layout
23073
23074 \size small
23075 \begin_inset Quotes eld
23076 \end_inset
23077
23078 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23079  you'll find my little bookshop at the corner of Church Street, and very
23080  happy to see you, I am sure.
23081  Maybe you collect yourself, sir.
23082  Here's 
23083 \noun on
23084 British
23085 \begin_inset space ~
23086 \end_inset
23087
23088 Birds
23089 \noun default
23090 , and 
23091 \noun on
23092 Catullus
23093 \noun default
23094 , and 
23095 \noun on
23096 The Holy War
23097 \noun default
23098 –a bargain, every one of them.
23099  With five volumes you could just fill that gap on that second shelf.
23100  It looks untidy, does it not, sir?
23101 \begin_inset Quotes erd
23102 \end_inset
23103
23104
23105 \end_layout
23106
23107 \end_inset
23108
23109
23110 \end_layout
23111
23112 \begin_layout Standard
23113 \begin_inset VSpace defskip
23114 \end_inset
23115
23116
23117 \end_layout
23118
23119 \begin_layout Standard
23120 罫線は,コマンド
23121 \series bold
23122
23123 \backslash
23124 columnseprulecolor
23125 \series default
23126 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
23127 コードで以下のコマンドを挿入すれば,実現できます.
23128 \begin_inset Newline newline
23129 \end_inset
23130
23131
23132 \series bold
23133
23134 \backslash
23135 renewcommand{
23136 \backslash
23137 columnseprulecolor}{
23138 \backslash
23139 color{red}}
23140 \series default
23141
23142 \begin_inset Newline newline
23143 \end_inset
23144
23145 このコマンド中の
23146 \series bold
23147 red
23148 \series default
23149 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『
23150 \emph on
23151 埋込オブジェクト篇
23152 \emph default
23153 』の「
23154 \emph on
23155 色付き表
23156 \emph default
23157 」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
23158 \begin_inset Newline newline
23159 \end_inset
23160
23161
23162 \series bold
23163
23164 \backslash
23165 renewcommand{
23166 \backslash
23167 columnseprulecolor}{
23168 \backslash
23169 normalcolor}
23170 \series default
23171
23172 \begin_inset Newline newline
23173 \end_inset
23174
23175 以下は,シアン色の罫線と1
23176 \begin_inset space \thinspace{}
23177 \end_inset
23178
23179 cmの段間隔を持つ例です.
23180 \end_layout
23181
23182 \begin_layout Standard
23183 \begin_inset ERT
23184 status open
23185
23186 \begin_layout Plain Layout
23187
23188
23189 \backslash
23190 setlength{
23191 \backslash
23192 columnsep}{1cm}
23193 \end_layout
23194
23195 \begin_layout Plain Layout
23196
23197
23198 \backslash
23199 renewcommand{
23200 \backslash
23201 columnseprulecolor}{
23202 \backslash
23203 color{cyan}}
23204 \end_layout
23205
23206 \end_inset
23207
23208
23209 \end_layout
23210
23211 \begin_layout Standard
23212 \begin_inset Flex Multiple Columns
23213 status open
23214
23215 \begin_layout Plain Layout
23216
23217 \size small
23218 \begin_inset Quotes eld
23219 \end_inset
23220
23221 You're surprised to see me, sir,
23222 \begin_inset Quotes erd
23223 \end_inset
23224
23225  said he, in a strange, croaking voice.
23226 \end_layout
23227
23228 \begin_layout Plain Layout
23229
23230 \size small
23231 I acknowledged that I was.
23232 \end_layout
23233
23234 \begin_layout Plain Layout
23235
23236 \size small
23237 \begin_inset Quotes eld
23238 \end_inset
23239
23240 Well, I've a conscience, sir, and when I chanced to see you go into this
23241  house, as I came hobbling after you, I thought to myself, I'll just step
23242  in and see that kind gentleman, and tell him that if I was a bit gruff
23243  in my manner there was not any harm meant, and that I am much obliged to
23244  him for picking up my books.
23245 \begin_inset Quotes erd
23246 \end_inset
23247
23248
23249 \end_layout
23250
23251 \begin_layout Plain Layout
23252
23253 \size small
23254 \begin_inset Quotes eld
23255 \end_inset
23256
23257 You make too much of a trifle,
23258 \begin_inset Quotes erd
23259 \end_inset
23260
23261  said I.
23262  
23263 \begin_inset Quotes eld
23264 \end_inset
23265
23266 May I ask how you knew who I was?
23267 \begin_inset Quotes erd
23268 \end_inset
23269
23270
23271 \end_layout
23272
23273 \begin_layout Plain Layout
23274
23275 \size small
23276 \begin_inset Quotes eld
23277 \end_inset
23278
23279 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23280  you'll find my little bookshop at the corner of Church Street, and very
23281  happy to see you, I am sure.
23282  Maybe you collect yourself, sir.
23283  Here's 
23284 \noun on
23285 British
23286 \begin_inset space ~
23287 \end_inset
23288
23289 Birds
23290 \noun default
23291 , and 
23292 \noun on
23293 Catullus
23294 \noun default
23295 , and 
23296 \noun on
23297 The Holy War
23298 \noun default
23299 –a bargain, every one of them.
23300  With five volumes you could just fill that gap on that second shelf.
23301  It looks untidy, does it not, sir?
23302 \begin_inset Quotes erd
23303 \end_inset
23304
23305
23306 \end_layout
23307
23308 \end_inset
23309
23310
23311 \end_layout
23312
23313 \begin_layout Standard
23314 \begin_inset ERT
23315 status collapsed
23316
23317 \begin_layout Plain Layout
23318
23319
23320 \backslash
23321 setlength{
23322 \backslash
23323 columnseprule}{0pt}
23324 \end_layout
23325
23326 \begin_layout Plain Layout
23327
23328
23329 \backslash
23330 renewcommand{
23331 \backslash
23332 columnseprulecolor}{
23333 \backslash
23334 normalcolor}
23335 \end_layout
23336
23337 \end_inset
23338
23339
23340 \begin_inset Note Note
23341 status collapsed
23342
23343 \begin_layout Plain Layout
23344
23345 \lang english
23346 go back to the default
23347 \end_layout
23348
23349 \end_inset
23350
23351
23352 \end_layout
23353
23354 \begin_layout Standard
23355 \begin_inset Newpage newpage
23356 \end_inset
23357
23358
23359 \end_layout
23360
23361 \begin_layout Section
23362 標準的でない形の段落
23363 \end_layout
23364
23365 \begin_layout Standard
23366 \noindent
23367 \SpecialChar LaTeX
23368 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
23369 できます.これは,文書設定で
23370 \family sans
23371 任意設定の段落形
23372 \family default
23373 モジュールを読み込んで,\SpecialChar LaTeX
23374 パッケージ
23375 \series bold
23376 shapepar
23377 \series default
23378 を使用させるようにすれば,実現できます.
23379 \end_layout
23380
23381 \begin_layout Subsection
23382 既定の形
23383 \end_layout
23384
23385 \begin_layout Standard
23386
23387 \series bold
23388 shapepar
23389 \series default
23390 は,以下の形を提供しています.
23391 \end_layout
23392
23393 \begin_layout Standard
23394 \begin_inset Tabular
23395 <lyxtabular version="3" rows="13" columns="3">
23396 <features booktabs="true" islongtable="true" longtabularalignment="center">
23397 <column alignment="center" valignment="middle" width="16col%">
23398 <column alignment="center" valignment="middle" width="40col%">
23399 <column alignment="center" valignment="middle" width="35col%">
23400 <row endhead="true">
23401 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23402 \begin_inset Text
23403
23404 \begin_layout Plain Layout
23405 名称
23406 \end_layout
23407
23408 \end_inset
23409 </cell>
23410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23411 \begin_inset Text
23412
23413 \begin_layout Plain Layout
23414 説明
23415 \end_layout
23416
23417 \end_inset
23418 </cell>
23419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23420 \begin_inset Text
23421
23422 \begin_layout Plain Layout
23423 備考
23424 \end_layout
23425
23426 \end_inset
23427 </cell>
23428 </row>
23429 <row>
23430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23431 \begin_inset Text
23432
23433 \begin_layout Plain Layout
23434 CDlabel
23435 \end_layout
23436
23437 \end_inset
23438 </cell>
23439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23440 \begin_inset Text
23441
23442 \begin_layout Plain Layout
23443 丸い穴の開いたドーナツ型(CD/DVD大)
23444 \end_layout
23445
23446 \end_inset
23447 </cell>
23448 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23449 \begin_inset Text
23450
23451 \begin_layout Plain Layout
23452 伸縮不可.多くの文字を入れられないことに注意.
23453 \end_layout
23454
23455 \end_inset
23456 </cell>
23457 </row>
23458 <row>
23459 <cell alignment="center" valignment="top" topline="true" usebox="none">
23460 \begin_inset Text
23461
23462 \begin_layout Plain Layout
23463 Circle
23464 \end_layout
23465
23466 \end_inset
23467 </cell>
23468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23469 \begin_inset Text
23470
23471 \begin_layout Plain Layout
23472
23473 \end_layout
23474
23475 \end_inset
23476 </cell>
23477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23478 \begin_inset Text
23479
23480 \begin_layout Plain Layout
23481 脆弱.計算に失敗することも.
23482 \end_layout
23483
23484 \end_inset
23485 </cell>
23486 </row>
23487 <row>
23488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23489 \begin_inset Text
23490
23491 \begin_layout Plain Layout
23492 Diamond
23493 \end_layout
23494
23495 \end_inset
23496 </cell>
23497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23498 \begin_inset Text
23499
23500 \begin_layout Plain Layout
23501 菱形(シンボル的に
23502 \begin_inset Quotes eld
23503 \end_inset
23504
23505 diamond
23506 \begin_inset Quotes erd
23507 \end_inset
23508
23509 と表記)
23510 \end_layout
23511
23512 \end_inset
23513 </cell>
23514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23515 \begin_inset Text
23516
23517 \begin_layout Plain Layout
23518 -
23519 \end_layout
23520
23521 \end_inset
23522 </cell>
23523 </row>
23524 <row>
23525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23526 \begin_inset Text
23527
23528 \begin_layout Plain Layout
23529 Heart
23530 \end_layout
23531
23532 \end_inset
23533 </cell>
23534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23535 \begin_inset Text
23536
23537 \begin_layout Plain Layout
23538 ハート型
23539 \end_layout
23540
23541 \end_inset
23542 </cell>
23543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23544 \begin_inset Text
23545
23546 \begin_layout Plain Layout
23547 -
23548 \end_layout
23549
23550 \end_inset
23551 </cell>
23552 </row>
23553 <row>
23554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23555 \begin_inset Text
23556
23557 \begin_layout Plain Layout
23558 Hexagon
23559 \end_layout
23560
23561 \end_inset
23562 </cell>
23563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23564 \begin_inset Text
23565
23566 \begin_layout Plain Layout
23567 六角形
23568 \end_layout
23569
23570 \end_inset
23571 </cell>
23572 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23573 \begin_inset Text
23574
23575 \begin_layout Plain Layout
23576 -
23577 \end_layout
23578
23579 \end_inset
23580 </cell>
23581 </row>
23582 <row>
23583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23584 \begin_inset Text
23585
23586 \begin_layout Plain Layout
23587 Nut
23588 \end_layout
23589
23590 \end_inset
23591 </cell>
23592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23593 \begin_inset Text
23594
23595 \begin_layout Plain Layout
23596 ナット型(丸い穴の開いた六角形)
23597 \end_layout
23598
23599 \end_inset
23600 </cell>
23601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23602 \begin_inset Text
23603
23604 \begin_layout Plain Layout
23605 -
23606 \end_layout
23607
23608 \end_inset
23609 </cell>
23610 </row>
23611 <row>
23612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23613 \begin_inset Text
23614
23615 \begin_layout Plain Layout
23616 Square
23617 \end_layout
23618
23619 \end_inset
23620 </cell>
23621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23622 \begin_inset Text
23623
23624 \begin_layout Plain Layout
23625 正方形
23626 \end_layout
23627
23628 \end_inset
23629 </cell>
23630 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23631 \begin_inset Text
23632
23633 \begin_layout Plain Layout
23634 -
23635 \end_layout
23636
23637 \end_inset
23638 </cell>
23639 </row>
23640 <row>
23641 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23642 \begin_inset Text
23643
23644 \begin_layout Plain Layout
23645 Star
23646 \end_layout
23647
23648 \end_inset
23649 </cell>
23650 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23651 \begin_inset Text
23652
23653 \begin_layout Plain Layout
23654 五芒星
23655 \end_layout
23656
23657 \end_inset
23658 </cell>
23659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23660 \begin_inset Text
23661
23662 \begin_layout Plain Layout
23663 -
23664 \end_layout
23665
23666 \end_inset
23667 </cell>
23668 </row>
23669 <row>
23670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23671 \begin_inset Text
23672
23673 \begin_layout Plain Layout
23674 Candle
23675 \end_layout
23676
23677 \end_inset
23678 </cell>
23679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23680 \begin_inset Text
23681
23682 \begin_layout Plain Layout
23683 燃えるろうそく
23684 \end_layout
23685
23686 \end_inset
23687 </cell>
23688 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23689 \begin_inset Text
23690
23691 \begin_layout Plain Layout
23692 -
23693 \end_layout
23694
23695 \end_inset
23696 </cell>
23697 </row>
23698 <row>
23699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23700 \begin_inset Text
23701
23702 \begin_layout Plain Layout
23703 Drop down/up
23704 \end_layout
23705
23706 \end_inset
23707 </cell>
23708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23709 \begin_inset Text
23710
23711 \begin_layout Plain Layout
23712 雫型/逆雫型
23713 \end_layout
23714
23715 \end_inset
23716 </cell>
23717 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23718 \begin_inset Text
23719
23720 \begin_layout Plain Layout
23721 脆弱.計算に失敗することも.
23722 \end_layout
23723
23724 \end_inset
23725 </cell>
23726 </row>
23727 <row>
23728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23729 \begin_inset Text
23730
23731 \begin_layout Plain Layout
23732 \SpecialChar TeX
23733
23734 \end_layout
23735
23736 \end_inset
23737 </cell>
23738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23739 \begin_inset Text
23740
23741 \begin_layout Plain Layout
23742 \SpecialChar TeX
23743 ロゴ
23744 \end_layout
23745
23746 \end_inset
23747 </cell>
23748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23749 \begin_inset Text
23750
23751 \begin_layout Plain Layout
23752 -
23753 \end_layout
23754
23755 \end_inset
23756 </cell>
23757 </row>
23758 <row>
23759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23760 \begin_inset Text
23761
23762 \begin_layout Plain Layout
23763 Triangle up/down/
23764 \begin_inset Newline newline
23765 \end_inset
23766
23767 left/right
23768 \end_layout
23769
23770 \end_inset
23771 </cell>
23772 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23773 \begin_inset Text
23774
23775 \begin_layout Plain Layout
23776 各方向の三角形
23777 \end_layout
23778
23779 \end_inset
23780 </cell>
23781 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23782 \begin_inset Text
23783
23784 \begin_layout Plain Layout
23785 -
23786 \end_layout
23787
23788 \end_inset
23789 </cell>
23790 </row>
23791 </lyxtabular>
23792
23793 \end_inset
23794
23795
23796 \end_layout
23797
23798 \begin_layout Standard
23799 段落に形を適用するには,\SpecialChar LyX
23800 ツールバー中の環境プルダウンボックスから形を選んでください.
23801 \end_layout
23802
23803 \begin_layout Standard
23804 \begin_inset Newpage newpage
23805 \end_inset
23806
23807
23808 \end_layout
23809
23810 \begin_layout Standard
23811 以下は,ナット型の段落の例です.
23812 \end_layout
23813
23814 \begin_layout Standard
23815 \begin_inset VSpace bigskip
23816 \end_inset
23817
23818
23819 \end_layout
23820
23821 \begin_layout Nut
23822
23823 \lang latin
23824 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23825  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23826  voluptua.
23827  At vero eos et accusam et justo duo dolores et ea rebum.
23828  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
23829  sit amet.
23830  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23831  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23832  voluptua.
23833 \end_layout
23834
23835 \begin_layout Standard
23836 \begin_inset VSpace bigskip
23837 \end_inset
23838
23839
23840 \end_layout
23841
23842 \begin_layout Standard
23843 \begin_inset Note Greyedout
23844 status open
23845
23846 \begin_layout Plain Layout
23847
23848 \series bold
23849 【註】
23850 \series default
23851 shapepar段落は改頁にまたがることはできません.
23852 \end_layout
23853
23854 \end_inset
23855
23856
23857 \end_layout
23858
23859 \begin_layout Standard
23860 \begin_inset VSpace bigskip
23861 \end_inset
23862
23863
23864 \end_layout
23865
23866 \begin_layout Standard
23867
23868 \series bold
23869 shapepar
23870 \series default
23871 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
23872 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
23873 \end_layout
23874
23875 \begin_layout Standard
23876 \begin_inset Newpage newpage
23877 \end_inset
23878
23879
23880 \end_layout
23881
23882 \begin_layout Nut
23883
23884 \lang latin
23885 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23886  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23887  voluptua.
23888  At vero eos et accusam et justo duo dolores et ea rebum.
23889  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
23890  sit amet.
23891  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23892  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23893  voluptua.
23894  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23895  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23896  voluptua.
23897  At vero eos et accusam et justo duo dolores et ea rebum.
23898  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
23899  sit amet.
23900  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23901  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23902  voluptua.
23903 \end_layout
23904
23905 \begin_layout Standard
23906 \begin_inset VSpace bigskip
23907 \end_inset
23908
23909
23910 \end_layout
23911
23912 \begin_layout Standard
23913 ただし,
23914 \family sans
23915 CDlabel
23916 \family default
23917 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
23918 \begin_inset Newline newline
23919 \end_inset
23920
23921
23922 \family sans
23923 drop
23924 \family default
23925 形と
23926 \family sans
23927 circle
23928 \family default
23929 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
23930 \begin_inset Quotes eld
23931 \end_inset
23932
23933 Arithmetic overflow
23934 \begin_inset Quotes erd
23935 \end_inset
23936
23937 という\SpecialChar LaTeX
23938 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
23939 \end_layout
23940
23941 \begin_layout Standard
23942 \begin_inset VSpace bigskip
23943 \end_inset
23944
23945
23946 \end_layout
23947
23948 \begin_layout Standard
23949 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
23950 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
23951 \family sans
23952 (
23953 \begin_inset Info
23954 type  "shortcut"
23955 arg   "specialchar-insert hyphenation"
23956 \end_inset
23957
23958
23959 \family default
23960 )を指定することが往々にして必要になります.
23961 \end_layout
23962
23963 \begin_layout Standard
23964 \begin_inset VSpace bigskip
23965 \end_inset
23966
23967
23968 \end_layout
23969
23970 \begin_layout Standard
23971 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
23972 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
23973 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
23974 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
23975 \end_layout
23976
23977 \begin_layout Standard
23978 \begin_inset Newpage newpage
23979 \end_inset
23980
23981
23982 \end_layout
23983
23984 \begin_layout Heart
23985 \noindent
23986
23987 \lang latin
23988 Lo\SpecialChar softhyphen
23989 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23990  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23991  voluptua.
23992  At vero eos et accusam et justo duo dolores et ea rebum.
23993  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
23994  sit amet.
23995 \end_layout
23996
23997 \begin_layout Standard
23998 \begin_inset VSpace bigskip
23999 \end_inset
24000
24001
24002 \end_layout
24003
24004 \begin_layout Standard
24005 \noindent
24006 \align right
24007 \begin_inset Box Frameless
24008 position "t"
24009 hor_pos "c"
24010 has_inner_box 1
24011 inner_pos "t"
24012 use_parbox 1
24013 use_makebox 0
24014 width "42col%"
24015 special "none"
24016 height "1in"
24017 height_special "totalheight"
24018 thickness "0.4pt"
24019 separation "3pt"
24020 shadowsize "4pt"
24021 framecolor "black"
24022 backgroundcolor "none"
24023 status open
24024
24025 \begin_layout Heart
24026 \noindent
24027
24028 \lang latin
24029 Lo\SpecialChar softhyphen
24030 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24031  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24032  voluptua.
24033  At vero eos et accusam et justo duo dolores et ea rebum.
24034  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24035  sit amet.
24036 \end_layout
24037
24038 \end_inset
24039
24040
24041 \end_layout
24042
24043 \begin_layout Subsection
24044 任意の形
24045 \end_layout
24046
24047 \begin_layout Standard
24048 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
24049 ように,コンピューターに座標を計算させる方法もあります.
24050 \end_layout
24051
24052 \begin_layout Enumerate
24053 プログラム
24054 \begin_inset CommandInset href
24055 LatexCommand href
24056 name "Jpgfdraw"
24057 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24058
24059 \end_inset
24060
24061 を導入します.
24062 \end_layout
24063
24064 \begin_layout Enumerate
24065
24066 \family sans
24067 Jpgfdraw
24068 \family default
24069 内で,メニュー
24070 \family sans
24071 TeX/LaTeX\SpecialChar menuseparator
24072 Settings\SpecialChar menuseparator
24073 Set Normal Size
24074 \family default
24075 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
24076 \begin_inset space \thinspace{}
24077 \end_inset
24078
24079 pt寸を使用しています.
24080 \end_layout
24081
24082 \begin_layout Enumerate
24083 形を描きます.
24084 \end_layout
24085
24086 \begin_layout Enumerate
24087 メニュー
24088 \family sans
24089 TeX/LaTeX\SpecialChar menuseparator
24090 Shapepar
24091 \family default
24092 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
24093 \begin_inset Foot
24094 status collapsed
24095
24096 \begin_layout Plain Layout
24097 詳細については,
24098 \begin_inset CommandInset href
24099 LatexCommand href
24100 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24101
24102 \end_inset
24103
24104 を参照してください.
24105 \end_layout
24106
24107 \end_inset
24108
24109
24110 \end_layout
24111
24112 \begin_layout Standard
24113 座標は\SpecialChar TeX
24114 ファイルに書き込まれます.これを\SpecialChar LyX
24115 文書で使用するには,
24116 \end_layout
24117
24118 \begin_layout Enumerate
24119 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
24120 \end_layout
24121
24122 \begin_layout Enumerate
24123 \SpecialChar LyX
24124
24125 \family sans
24126 挿入\SpecialChar menuseparator
24127 ファイル\SpecialChar menuseparator
24128 子文書
24129 \family default
24130 メニューでファイルを選択し,
24131 \family sans
24132 取り込みの型
24133 \family default
24134 として
24135 \family sans
24136 Input
24137 \family default
24138 を選択してください.
24139 \end_layout
24140
24141 \begin_layout Standard
24142 \begin_inset VSpace defskip
24143 \end_inset
24144
24145
24146 \end_layout
24147
24148 \begin_layout Standard
24149 \begin_inset Note Greyedout
24150 status open
24151
24152 \begin_layout Plain Layout
24153
24154 \series bold
24155 【註】
24156 \series default
24157 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
24158 \end_layout
24159
24160 \end_inset
24161
24162
24163 \end_layout
24164
24165 \begin_layout Standard
24166 \begin_inset VSpace bigskip
24167 \end_inset
24168
24169
24170 \end_layout
24171
24172 \begin_layout Standard
24173 以下の用例をご覧ください.
24174 \end_layout
24175
24176 \begin_layout Standard
24177 \begin_inset VSpace bigskip
24178 \end_inset
24179
24180
24181 \end_layout
24182
24183 \begin_layout Standard
24184 \begin_inset CommandInset include
24185 LatexCommand input
24186 filename "../SpecialParagraphShape.tex"
24187
24188 \end_inset
24189
24190
24191 \lang latin
24192 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24193  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24194  voluptua.
24195  At vero eos et accusam et justo duo dolores et ea rebum.
24196  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24197  sit amet.
24198  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24199  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24200  voluptua.
24201 \end_layout
24202
24203 \begin_layout Standard
24204 \begin_inset VSpace bigskip
24205 \end_inset
24206
24207
24208 \end_layout
24209
24210 \begin_layout Standard
24211
24212 \series bold
24213 【ヒント】
24214 \family sans
24215 \series default
24216 Jpgfdraw
24217 \family default
24218 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
24219 \family sans
24220 Jpgfdraw
24221 \family default
24222 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
24223 \end_layout
24224
24225 \begin_layout Standard
24226 \begin_inset VSpace bigskip
24227 \end_inset
24228
24229
24230 \end_layout
24231
24232 \begin_layout Standard
24233
24234 \family sans
24235 任意の段落形
24236 \family default
24237 モジュールは,
24238 \family sans
24239 shapepar
24240 \family default
24241
24242 \family sans
24243 Shapepar
24244 \family default
24245 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
24246 \begin_inset Foot
24247 status collapsed
24248
24249 \begin_layout Plain Layout
24250 これらのコマンドは,上述の全ての形で内部的に使用されています.
24251 \end_layout
24252
24253 \end_inset
24254
24255 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
24256 \series bold
24257 shapepar
24258 \series default
24259 パッケージの取扱説明書
24260 \begin_inset CommandInset citation
24261 LatexCommand cite
24262 key "shapepar"
24263
24264 \end_inset
24265
24266 をご覧ください.
24267 \end_layout
24268
24269 \begin_layout Bibliography
24270 \begin_inset CommandInset bibitem
24271 LatexCommand bibitem
24272 key "multicol"
24273
24274 \end_inset
24275
24276 \SpecialChar LaTeX
24277 パッケージ
24278 \begin_inset CommandInset href
24279 LatexCommand href
24280 name "multicol"
24281 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24282
24283 \end_inset
24284
24285 の取扱説明書
24286 \end_layout
24287
24288 \begin_layout Bibliography
24289 \begin_inset CommandInset bibitem
24290 LatexCommand bibitem
24291 key "shapepar"
24292
24293 \end_inset
24294
24295 \SpecialChar LaTeX
24296 パッケージ
24297 \begin_inset CommandInset href
24298 LatexCommand href
24299 name "shapepar"
24300 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
24301
24302 \end_inset
24303
24304 の取扱説明書
24305 \end_layout
24306
24307 \end_body
24308 \end_document