]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
Update docs to 2.3.0alpha1 format
[lyx.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 541
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 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 \use_microtype false
101 \use_dash_ligatures false
102 \graphics default
103 \default_output_format pdf3
104 \output_sync 0
105 \bibtex_command default
106 \index_command default
107 \paperfontsize 12
108 \spacing single
109 \use_hyperref true
110 \pdf_title "LyX's Additional Features manual"
111 \pdf_author "LyX Team"
112 \pdf_subject "LyX's additional features documentation"
113 \pdf_keywords "LyX, Documentation, Additional"
114 \pdf_bookmarks false
115 \pdf_bookmarksnumbered true
116 \pdf_bookmarksopen false
117 \pdf_bookmarksopenlevel 1
118 \pdf_breaklinks false
119 \pdf_pdfborder false
120 \pdf_colorlinks true
121 \pdf_backref false
122 \pdf_pdfusetitle false
123 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
124 \papersize default
125 \use_geometry false
126 \use_package amsmath 1
127 \use_package amssymb 1
128 \use_package cancel 0
129 \use_package esint 0
130 \use_package mathdots 1
131 \use_package mathtools 0
132 \use_package mhchem 1
133 \use_package stackrel 0
134 \use_package stmaryrd 0
135 \use_package undertilde 0
136 \cite_engine basic
137 \cite_engine_type default
138 \biblio_style plain
139 \use_bibtopic false
140 \use_indices false
141 \paperorientation portrait
142 \suppress_date false
143 \justification true
144 \use_refstyle 0
145 \notefontcolor #0000ff
146 \index 索引
147 \shortcut idx
148 \color #008000
149 \end_index
150 \secnumdepth 3
151 \tocdepth 3
152 \paragraph_separation indent
153 \paragraph_indentation default
154 \is_math_indent 1
155 \quotes_style english
156 \papercolumns 1
157 \papersides 2
158 \paperpagestyle headings
159 \tracking_changes false
160 \output_changes false
161 \html_math_output 0
162 \html_css_as_file 0
163 \html_be_strict true
164 \end_header
165
166 \begin_body
167
168 \begin_layout Title
169 \SpecialChar LyX
170 の高度な機能
171 \begin_inset Newline newline
172 \end_inset
173
174
175 \size large
176 第2.2.x版
177 \end_layout
178
179 \begin_layout Author
180 \SpecialChar LyX
181 プロジェクトチーム
182 \begin_inset Foot
183 status collapsed
184
185 \begin_layout Plain Layout
186 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
187 文書化メーリングリスト
188 \begin_inset Flex Code
189 status open
190
191 \begin_layout Plain Layout
192 \noindent
193
194 \family typewriter
195 <lyx-docs@lists.lyx.org>
196 \end_layout
197
198 \end_inset
199
200 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
201 \end_layout
202
203 \end_inset
204
205  
206 \end_layout
207
208 \begin_layout Standard
209 \begin_inset CommandInset toc
210 LatexCommand tableofcontents
211
212 \end_inset
213
214
215 \end_layout
216
217 \begin_layout Chapter
218 はじめに
219 \end_layout
220
221 \begin_layout Standard
222 いまお読みの取扱説明書『
223 \emph on
224 \SpecialChar LyX
225 拡張機能篇
226 \emph default
227 』は,基本的には『
228 \emph on
229 ユーザーの手引き
230 \emph default
231 』の第二部です.これらの文書を別部とした理由は,単純に『
232 \emph on
233 ユーザーの手引き
234 \emph default
235 』がすでに大部となっていることと,『
236 \emph on
237 ユーザーの手引き
238 \emph default
239 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
240 プロジェクトチームは,\SpecialChar LyX
241 を各設定ファイルと外部パッケージによって拡張
242 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
243 パッケージをサポートしたい場合に,\SpecialChar LyX
244 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
245 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
246 な形での貢献を文書化する冊子として位置付けられています.
247 \end_layout
248
249 \begin_layout Standard
250 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
251 しています.さらに,\SpecialChar LaTeX
252 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
253 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
254 とはあくまでWYSIWYMた
255 ることを企図しているため,\SpecialChar LaTeX
256 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
257 \end_layout
258
259 \begin_layout Standard
260 もし,まだ『
261 \emph on
262 はじめの一歩
263 \emph default
264 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
265 \emph on
266 はじめの一歩
267 \emph default
268 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
269 \emph on
270 ユーザーの手引き
271 \emph default
272 』をよくお読みになって,\SpecialChar LyX
273 の全基本機能を習得してください.
274 \end_layout
275
276 \begin_layout Standard
277 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
278 が\SpecialChar LaTeX
279 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
280 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
281 コードを正
282 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
283 ユーザー向けの章となっています.
284 \end_layout
285
286 \begin_layout Chapter
287 \SpecialChar LyX
288 と\SpecialChar LaTeX
289
290 \end_layout
291
292 \begin_layout Section
293 \SpecialChar LyX
294 は\SpecialChar LaTeX
295 をどう使っているか
296 \end_layout
297
298 \begin_layout Standard
299 本章
300 \family roman
301 \series medium
302 \shape up
303 \size normal
304 \emph off
305 \bar no
306 \noun off
307 \color none
308 は,\SpecialChar TeX
309 熟練者と\SpecialChar LaTeX
310 に興味のある方向けの章です.ここでは,\SpecialChar LyX
311 と\SpecialChar LaTeX
312 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
313 のこと
314 を多少なりともご存知であることを前提とします.
315 \end_layout
316
317 \begin_layout Standard
318
319 \family roman
320 \series medium
321 \shape up
322 \size normal
323 \emph off
324 \bar no
325 \noun off
326 \color none
327 かつて\SpecialChar LyX
328 は,「\SpecialChar LaTeX
329
330 \family default
331 \series default
332 \shape default
333 \size default
334 \emph default
335 \bar default
336 \noun default
337 \color inherit
338 WYSIWYM
339 \family roman
340 \series medium
341 \shape up
342 \size normal
343 \emph off
344 \bar no
345 \noun off
346 \color none
347 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
348 のフロントエンドは,いくつも出回っています
349 \begin_inset Foot
350 status collapsed
351
352 \begin_layout Plain Layout
353
354 \family roman
355 \series medium
356 \shape up
357 \size normal
358 \emph off
359 \bar no
360 \noun off
361 \color none
362 有名なものとしては,Linux上の\SpecialChar TeX
363 makerとkile,OSX上の\SpecialChar TeX
364 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
365 モードも含まれます.
366 \end_layout
367
368 \end_inset
369
370 .これらは,基本的に\SpecialChar LaTeX
371 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
372 も,エディタであり,\SpecialChar LaTeX
373 を走らせる機能を有し,ファイル
374 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
375 \family default
376 \series default
377 \shape default
378 \size default
379 \emph default
380 \bar default
381 \noun default
382 \color inherit
383 ひとつには,
384 \family roman
385 \series medium
386 \shape up
387 \size normal
388 \emph off
389 \bar no
390 \noun off
391 \color none
392 \SpecialChar LyX
393 を効果的に使うのに,\SpecialChar LaTeX
394 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
395 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
396 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
397 てください.まず
398 \family sans
399 \series default
400 \shape default
401 \size default
402 \emph default
403 \bar default
404 \noun default
405 \color inherit
406
407 \begin_inset Flex MenuItem
408 status collapsed
409
410 \begin_layout Plain Layout
411
412 \family sans
413 ファイル
414 \end_layout
415
416 \end_inset
417
418
419 \family roman
420 \series medium
421 \shape up
422 \size normal
423 \emph off
424 \bar no
425 \noun off
426 \color none
427 メニューから
428 \family sans
429 \series default
430 \shape default
431 \size default
432 \emph default
433 \bar default
434 \noun default
435 \color inherit
436
437 \begin_inset Flex MenuItem
438 status collapsed
439
440 \begin_layout Plain Layout
441
442 \family sans
443 エクスポート\SpecialChar menuseparator
444 LaTeX
445 \end_layout
446
447 \end_inset
448
449
450 \family roman
451 \series medium
452 \shape up
453 \size normal
454 \emph off
455 \bar no
456 \noun off
457 \color none
458 (あるいは
459 \family sans
460 \series default
461 \shape default
462 \size default
463 \emph default
464 \bar default
465 \noun default
466 \color inherit
467
468 \begin_inset Flex MenuItem
469 status collapsed
470
471 \begin_layout Plain Layout
472
473 \family sans
474 表示\SpecialChar menuseparator
475 ソースを閲覧
476 \end_layout
477
478 \end_inset
479
480
481 \family roman
482 \series medium
483 \shape up
484 \size normal
485 \emph off
486 \bar no
487 \noun off
488 \color none
489 )を選択し,そこから出力される
490 \begin_inset Flex Code
491 status collapsed
492
493 \begin_layout Plain Layout
494
495 \family typewriter
496 .tex
497 \end_layout
498
499 \end_inset
500
501 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
502 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
503 \family default
504 \series default
505 \shape default
506 \size default
507 \emph default
508 \bar default
509 \noun default
510 \color inherit
511 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
512 \end_layout
513
514 \begin_layout Standard
515
516 \family roman
517 \series medium
518 \shape up
519 \size normal
520 \emph off
521 \bar no
522 \noun off
523 \color none
524 自動的に\SpecialChar LaTeX
525 を実行するコマンドが,以下のようにいくつかあります.
526 \end_layout
527
528 \begin_layout Itemize
529 \begin_inset Flex MenuItem
530 status collapsed
531
532 \begin_layout Plain Layout
533 表示\SpecialChar menuseparator
534 書式
535 \end_layout
536
537 \end_inset
538
539
540 \end_layout
541
542 \begin_layout Itemize
543
544 \family sans
545 \begin_inset Flex MenuItem
546 status collapsed
547
548 \begin_layout Plain Layout
549
550 \bar no
551 表示\SpecialChar menuseparator
552 更新\SpecialChar menuseparator
553
554 \bar default
555 書式
556 \end_layout
557
558 \end_inset
559
560
561 \end_layout
562
563 \begin_layout Standard
564
565 \family roman
566 \series medium
567 \shape up
568 \size normal
569 \emph off
570 \bar no
571 \noun off
572 \color none
573 これらは,最後に\SpecialChar LaTeX
574 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
575 を実行します.
576 \end_layout
577
578 \begin_layout Standard
579
580 \family roman
581 \series medium
582 \shape up
583 \size normal
584 \emph off
585 \bar no
586 \noun off
587 \color none
588 \SpecialChar LyX
589 が編集中のファイルを\SpecialChar LaTeX
590 にかけるとき,\SpecialChar LyX
591 は以下の段階をふみます.
592 \end_layout
593
594 \begin_layout Enumerate
595
596 \family roman
597 \series medium
598 \shape up
599 \size normal
600 \emph off
601 \bar no
602 \noun off
603 \color none
604 文書を\SpecialChar LaTeX
605 に変換し,ファイルの拡張子を
606 \begin_inset Flex Code
607 status collapsed
608
609 \begin_layout Plain Layout
610
611 \family roman
612 \series medium
613 \shape up
614 \size normal
615 \emph off
616 \bar no
617 \noun off
618 \color none
619 .lyx
620 \end_layout
621
622 \end_inset
623
624 から
625 \begin_inset Flex Code
626 status collapsed
627
628 \begin_layout Plain Layout
629
630 \family roman
631 \series medium
632 \shape up
633 \size normal
634 \emph off
635 \bar no
636 \noun off
637 \color none
638 .tex
639 \end_layout
640
641 \end_inset
642
643 に変えて保存.
644 \end_layout
645
646 \begin_layout Enumerate
647
648 \family roman
649 \series medium
650 \shape up
651 \size normal
652 \emph off
653 \bar no
654 \noun off
655 \color none
656 この
657 \begin_inset Flex Code
658 status collapsed
659
660 \begin_layout Plain Layout
661
662 \family roman
663 \series medium
664 \shape up
665 \size normal
666 \emph off
667 \bar no
668 \noun off
669 \color none
670 .tex
671 \end_layout
672
673 \end_inset
674
675 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
676 を実行し,\SpecialChar LaTeX
677 ファイルをコンパイルするのに必要な他のコマンド(
678 \begin_inset Flex Code
679 status collapsed
680
681 \begin_layout Plain Layout
682
683 \family roman
684 \series medium
685 \shape up
686 \size normal
687 \emph off
688 \bar no
689 \noun off
690 \color none
691 bibtex
692 \end_layout
693
694 \end_inset
695
696
697 \begin_inset Flex Code
698 status collapsed
699
700 \begin_layout Plain Layout
701
702 \family roman
703 \series medium
704 \shape up
705 \size normal
706 \emph off
707 \bar no
708 \noun off
709 \color none
710 makeindex
711 \end_layout
712
713 \end_inset
714
715 など)を実行..
716 \end_layout
717
718 \begin_layout Enumerate
719
720 \family roman
721 \series medium
722 \shape up
723 \size normal
724 \emph off
725 \bar no
726 \noun off
727 \color none
728 もしエラーがあれば,エラーログを表示.
729 \end_layout
730
731 \begin_layout Standard
732
733 \family roman
734 \series medium
735 \shape up
736 \size normal
737 \emph off
738 \bar no
739 \noun off
740 \color none
741 \SpecialChar LaTeX
742
743 \family sans
744 \series default
745 \shape default
746 \size default
747 \emph default
748 \bar default
749 \noun default
750 \color inherit
751
752 \begin_inset Flex MenuItem
753 status collapsed
754
755 \begin_layout Plain Layout
756
757 \family sans
758 表示\SpecialChar menuseparator
759 DVI
760 \end_layout
761
762 \end_inset
763
764
765 \family roman
766 \series medium
767 \shape up
768 \size normal
769 \emph off
770 \bar no
771 \noun off
772 \color none
773 を使用して実行した場合には,\SpecialChar LyX
774 はこの後,DVIビューアを実行してDVIファイルを表示します.
775 \begin_inset Flex MenuItem
776 status collapsed
777
778 \begin_layout Plain Layout
779
780 \family roman
781 \series medium
782 \shape up
783 \size normal
784 \emph off
785 \bar no
786 \noun off
787 \color none
788 表示\SpecialChar menuseparator
789 PostScript
790 \end_layout
791
792 \end_inset
793
794 を使用した場合には,\SpecialChar LyX
795 はさらに以下の段階をふみます.
796 \end_layout
797
798 \begin_layout Itemize
799
800 \family roman
801 \series medium
802 \shape up
803 \size normal
804 \emph off
805 \bar no
806 \noun off
807 \color none
808 \begin_inset Flex Code
809 status collapsed
810
811 \begin_layout Plain Layout
812
813 \family typewriter
814 dvips
815 \end_layout
816
817 \end_inset
818
819 を実行して,
820 \family default
821 \series default
822 \shape default
823 \size default
824 \emph default
825 \bar default
826 \noun default
827 \color inherit
828 DVI
829 \family roman
830 \series medium
831 \shape up
832 \size normal
833 \emph off
834 \bar no
835 \noun off
836 \color none
837 ファイルをPostScript
838 \family default
839 \series default
840 \shape default
841 \size default
842 \emph default
843 \bar default
844 \noun default
845 \color inherit
846 に変換.
847 \end_layout
848
849 \begin_layout Itemize
850
851 \family roman
852 \series medium
853 \shape up
854 \size normal
855 \emph off
856 \bar no
857 \noun off
858 \color none
859 \begin_inset Flex Code
860 status collapsed
861
862 \begin_layout Plain Layout
863
864 \family typewriter
865 ghostview
866 \end_layout
867
868 \end_inset
869
870 などのPostScriptビューアを実行して,PostScript
871 \family default
872 \series default
873 \shape default
874 \size default
875 \emph default
876 \bar default
877 \noun default
878 \color inherit
879 ファイルを表示.
880 \end_layout
881
882 \begin_layout Standard
883 \SpecialChar LyX
884 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
885 \end_layout
886
887 \begin_layout Section
888 \SpecialChar LaTeX
889 ファイルを\SpecialChar LyX
890 に読み込む
891 \end_layout
892
893 \begin_layout Standard
894 \SpecialChar LyX
895
896 \family sans
897
898 \begin_inset Flex MenuItem
899 status collapsed
900
901 \begin_layout Plain Layout
902
903 \family sans
904 ファイル\SpecialChar menuseparator
905 インポート\SpecialChar menuseparator
906 LaTeX
907 \end_layout
908
909 \end_inset
910
911
912 \family roman
913 \series medium
914 \shape up
915 \size normal
916 \emph off
917 \bar no
918 \noun off
919 \color none
920 コマンドを使用すると,\SpecialChar LaTeX
921 ファイルを
922 \family default
923 \series default
924 \shape default
925 \size default
926 \emph default
927 \bar default
928 \noun default
929  
930 \family roman
931 \series medium
932 \shape up
933 \size normal
934 \emph off
935 \bar no
936 \noun off
937 \SpecialChar LyX
938 にインポートすることができます.このコマンドは,
939 \family typewriter
940 \series default
941 \shape default
942 \size default
943 \emph default
944 \bar default
945 \noun default
946 \color inherit
947
948 \begin_inset Flex Code
949 status collapsed
950
951 \begin_layout Plain Layout
952
953 \family typewriter
954 tex2lyx
955 \end_layout
956
957 \end_inset
958
959
960 \family roman
961 \series medium
962 \shape up
963 \size normal
964 \emph off
965 \bar no
966 \noun off
967 \color none
968 というプログラムを呼び出し,
969 \family typewriter
970 \series default
971 \shape default
972 \size default
973 \emph default
974 \bar default
975 \noun default
976 \color inherit
977
978 \begin_inset Flex Code
979 status collapsed
980
981 \begin_layout Plain Layout
982
983 \family typewriter
984 foo.tex
985 \end_layout
986
987 \end_inset
988
989
990 \family default
991 などというファイルから
992 \begin_inset Flex Code
993 status collapsed
994
995 \begin_layout Plain Layout
996
997 \family typewriter
998 foo.lyx
999 \end_layout
1000
1001 \end_inset
1002
1003 を生成します.\SpecialChar LyX
1004 は,この変換したファイルを開きます
1005 \begin_inset Foot
1006 status collapsed
1007
1008 \begin_layout Plain Layout
1009 \begin_inset Flex Code
1010 status collapsed
1011
1012 \begin_layout Plain Layout
1013 tex2lyx
1014 \end_layout
1015
1016 \end_inset
1017
1018 は,もちろんコマンドラインから実行することもできます.
1019 \end_layout
1020
1021 \end_inset
1022
1023
1024 \end_layout
1025
1026 \begin_layout Standard
1027
1028 \family typewriter
1029 \begin_inset Flex Code
1030 status collapsed
1031
1032 \begin_layout Plain Layout
1033
1034 \family typewriter
1035 tex2lyx
1036 \end_layout
1037
1038 \end_inset
1039
1040
1041 \family roman
1042 \series medium
1043 \shape up
1044 \size normal
1045 \emph off
1046 \bar no
1047 \noun off
1048 \color none
1049 は,文法的に正しい\SpecialChar LaTeX
1050 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1051 \family typewriter
1052 \series default
1053 \shape default
1054 \size default
1055 \emph default
1056 \bar default
1057 \noun default
1058 \color inherit
1059
1060 \begin_inset Flex Code
1061 status collapsed
1062
1063 \begin_layout Plain Layout
1064
1065 \family typewriter
1066 tex2lyx
1067 \end_layout
1068
1069 \end_inset
1070
1071
1072 \family roman
1073 \series medium
1074 \shape up
1075 \size normal
1076 \emph off
1077 \bar no
1078 \noun off
1079 \color none
1080 は,理解不能な部分は\SpecialChar TeX
1081 コードボックスの形で残しますので,ファイルを
1082 \family typewriter
1083 \series default
1084 \shape default
1085 \size default
1086 \emph default
1087 \bar default
1088 \noun default
1089 \color inherit
1090
1091 \begin_inset Flex Code
1092 status collapsed
1093
1094 \begin_layout Plain Layout
1095
1096 \family typewriter
1097 tex2lyx
1098 \end_layout
1099
1100 \end_inset
1101
1102
1103 \family roman
1104 \series medium
1105 \shape up
1106 \size normal
1107 \emph off
1108 \bar no
1109 \noun off
1110 \color none
1111 で変換したのち,\SpecialChar TeX
1112 コードボックスを探して,手動で正しく編集してください.
1113 \end_layout
1114
1115 \begin_layout Standard
1116
1117 \family roman
1118 \series medium
1119 \shape up
1120 \size normal
1121 \emph off
1122 \bar no
1123 \noun off
1124 \color none
1125 \SpecialChar TeX
1126 コードボックスがなにかご存じなければ,次節をお読みください.
1127 \end_layout
1128
1129 \begin_layout Section
1130 \SpecialChar LaTeX
1131 コードを挿入する
1132 \begin_inset CommandInset label
1133 LatexCommand label
1134 name "sec:LaTeXコードを挿入する"
1135
1136 \end_inset
1137
1138
1139 \end_layout
1140
1141 \begin_layout Standard
1142
1143 \family roman
1144 \series medium
1145 \shape up
1146 \size normal
1147 \emph off
1148 \bar no
1149 \noun off
1150 \color none
1151 どの\SpecialChar LyX
1152 文書にもつねに\SpecialChar TeX
1153 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1154 にできることは,つねに\SpecialChar LyX
1155 でも行うことができます.一方,\SpecialChar LyX
1156 は,すべての\SpecialChar LaTeX
1157 構成物を\SpecialChar LyX
1158 内に
1159 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1160 コマンドを\SpecialChar LyX
1161 文書に挿入する必要が出てきた場合には,
1162 \begin_inset Flex Code
1163 status collapsed
1164
1165 \begin_layout Plain Layout
1166
1167 \family roman
1168 \series medium
1169 \shape up
1170 \size normal
1171 \emph off
1172 \bar no
1173 \noun off
1174 \color none
1175 \SpecialChar TeX
1176 コード
1177 \end_layout
1178
1179 \end_inset
1180
1181 ボックスを使用してください.これは,
1182 \family sans
1183 \series default
1184 \shape default
1185 \size default
1186 \emph default
1187 \bar default
1188 \noun default
1189 \color inherit
1190
1191 \begin_inset Flex MenuItem
1192 status collapsed
1193
1194 \begin_layout Plain Layout
1195
1196 \family sans
1197 挿入\SpecialChar menuseparator
1198 TeXコード
1199 \end_layout
1200
1201 \end_inset
1202
1203
1204 \family roman
1205 \series medium
1206 \shape up
1207 \size normal
1208 \emph off
1209 \bar no
1210 \noun off
1211 \color none
1212 若しくは
1213 \family default
1214 \series default
1215 \shape default
1216 \size default
1217 \emph default
1218 \bar default
1219 \noun default
1220 \color inherit
1221
1222 \begin_inset Flex Ruby
1223 status collapsed
1224
1225 \begin_layout Plain Layout
1226
1227 \family roman
1228 \series medium
1229 \shape up
1230 \size normal
1231 \emph off
1232 \bar no
1233 \noun off
1234 \color none
1235 捷径
1236 \family default
1237 \series default
1238 \shape default
1239 \size default
1240 \emph default
1241 \bar default
1242 \noun default
1243 \color inherit
1244
1245 \begin_inset Argument post:1
1246 status collapsed
1247
1248 \begin_layout Plain Layout
1249 ショートカット
1250 \end_layout
1251
1252 \end_inset
1253
1254
1255 \end_layout
1256
1257 \end_inset
1258
1259
1260 \begin_inset Flex Ruby
1261 status collapsed
1262
1263 \begin_layout Plain Layout
1264
1265 \family roman
1266 \series medium
1267 \shape up
1268 \size normal
1269 \emph off
1270 \bar no
1271 \noun off
1272 \color none
1273
1274 \begin_inset Argument post:1
1275 status collapsed
1276
1277 \begin_layout Plain Layout
1278 キー
1279 \end_layout
1280
1281 \end_inset
1282
1283
1284 \end_layout
1285
1286 \end_inset
1287
1288
1289 \begin_inset Info
1290 type  "shortcut"
1291 arg   "ert-insert"
1292 \end_inset
1293
1294
1295 \family roman
1296 \series medium
1297 \shape up
1298 \size normal
1299 \emph off
1300 \bar no
1301 \noun off
1302 \color none
1303 で,文書中に挿入することができます.
1304 \end_layout
1305
1306 \begin_layout Standard
1307 以下は,\SpecialChar LaTeX
1308 コマンドを\SpecialChar LyX
1309 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1310 \end_layout
1311
1312 \begin_layout LyX-Code
1313
1314 \backslash
1315 begin{tabular}{ll}
1316 \begin_inset Newline newline
1317 \end_inset
1318
1319
1320 \backslash
1321 begin{minipage}{5cm}
1322 \begin_inset Newline newline
1323 \end_inset
1324
1325 これは,ミニページ環境の例です.
1326 \begin_inset Newline newline
1327 \end_inset
1328
1329 これには,
1330 \begin_inset Newline newline
1331 \end_inset
1332
1333 (フロートでない)図表を
1334 \begin_inset Newline newline
1335 \end_inset
1336
1337 含め,ほとんど何でも
1338 \begin_inset Newline newline
1339 \end_inset
1340
1341 入れることができます. 
1342 \begin_inset Newline newline
1343 \end_inset
1344
1345
1346 \backslash
1347 end{minipage}
1348 \begin_inset Newline newline
1349 \end_inset
1350
1351 &
1352 \begin_inset Newline newline
1353 \end_inset
1354
1355
1356 \backslash
1357 begin{minipage}{5cm}
1358 \begin_inset Newline newline
1359 \end_inset
1360
1361
1362 \backslash
1363 begin{verbatim}
1364 \begin_inset Newline newline
1365 \end_inset
1366
1367
1368 \backslash
1369 begin{minipage}{5cm}
1370 \begin_inset Newline newline
1371 \end_inset
1372
1373 これは...
1374  
1375 \begin_inset Newline newline
1376 \end_inset
1377
1378
1379 \backslash
1380 end{minipage}
1381 \begin_inset Newline newline
1382 \end_inset
1383
1384
1385 \backslash
1386 end{verbatim}
1387 \begin_inset Newline newline
1388 \end_inset
1389
1390
1391 \backslash
1392 end{minipage}
1393 \begin_inset Newline newline
1394 \end_inset
1395
1396
1397 \backslash
1398 end{tabular}
1399 \end_layout
1400
1401 \begin_layout LyX-Code
1402
1403 \end_layout
1404
1405 \begin_layout Standard
1406 上記のテキストを含んだ
1407 \begin_inset Flex Code
1408 status collapsed
1409
1410 \begin_layout Plain Layout
1411 \SpecialChar TeX
1412 コード
1413 \end_layout
1414
1415 \end_inset
1416
1417 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1418 上でご覧になっていれば,\SpecialChar TeX
1419 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1420 れるはずです.
1421 \end_layout
1422
1423 \begin_layout Standard
1424 \begin_inset VSpace bigskip
1425 \end_inset
1426
1427
1428 \begin_inset ERT
1429 status open
1430
1431 \begin_layout Plain Layout
1432
1433
1434 \backslash
1435 begin{tabular}{ll}
1436 \end_layout
1437
1438 \begin_layout Plain Layout
1439
1440
1441 \backslash
1442 begin{minipage}{5cm}
1443 \end_layout
1444
1445 \begin_layout Plain Layout
1446
1447 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます. 
1448 \backslash
1449 end{minipage}
1450 \end_layout
1451
1452 \begin_layout Plain Layout
1453
1454 &
1455 \end_layout
1456
1457 \begin_layout Plain Layout
1458
1459
1460 \backslash
1461 begin{minipage}{5cm}
1462 \end_layout
1463
1464 \begin_layout Plain Layout
1465
1466
1467 \backslash
1468 begin{verbatim}
1469 \end_layout
1470
1471 \begin_layout Plain Layout
1472
1473
1474 \backslash
1475 begin{minipage}{5cm}
1476 \end_layout
1477
1478 \begin_layout Plain Layout
1479
1480 これは...
1481  
1482 \backslash
1483 end{minipage}
1484 \end_layout
1485
1486 \begin_layout Plain Layout
1487
1488
1489 \backslash
1490 end{verbatim}
1491 \end_layout
1492
1493 \begin_layout Plain Layout
1494
1495
1496 \backslash
1497 end{minipage}
1498 \end_layout
1499
1500 \begin_layout Plain Layout
1501
1502
1503 \backslash
1504 end{tabular}
1505 \end_layout
1506
1507 \end_inset
1508
1509
1510 \begin_inset VSpace bigskip
1511 \end_inset
1512
1513
1514 \end_layout
1515
1516 \begin_layout Standard
1517
1518 \family roman
1519 \series medium
1520 \shape up
1521 \size normal
1522 \emph off
1523 \bar no
1524 \noun off
1525 \color none
1526 \SpecialChar TeX
1527 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1528 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1529 \begin_inset Flex MenuItem
1530 status collapsed
1531
1532 \begin_layout Plain Layout
1533
1534 \family roman
1535 \series medium
1536 \shape up
1537 \size normal
1538 \emph off
1539 \bar no
1540 \noun off
1541 \color none
1542 挿入\SpecialChar menuseparator
1543 ファイル\SpecialChar menuseparator
1544 子文書
1545 \end_layout
1546
1547 \end_inset
1548
1549 を使用する方法もあります(取り込みの型として
1550 \begin_inset Flex Code
1551 status collapsed
1552
1553 \begin_layout Plain Layout
1554
1555 \family roman
1556 \series medium
1557 \shape up
1558 \size normal
1559 \emph off
1560 \bar no
1561 \noun off
1562 \color none
1563 Input
1564 \end_layout
1565
1566 \end_inset
1567
1568 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1569 \family default
1570 \series default
1571 \shape default
1572 \size default
1573 \emph on
1574 \bar default
1575 \noun default
1576 \color inherit
1577 確認できている
1578 \family roman
1579 \series medium
1580 \shape up
1581 \size normal
1582 \emph off
1583 \bar no
1584 \noun off
1585 \color none
1586 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1587 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1588 \end_layout
1589
1590 \begin_layout Standard
1591
1592 \family roman
1593 \series medium
1594 \shape up
1595 \size normal
1596 \emph off
1597 \bar no
1598 \noun off
1599 \color none
1600 最後に,いくつか強調しておくべきことがあります.
1601 \end_layout
1602
1603 \begin_layout Itemize
1604
1605 \family roman
1606 \series medium
1607 \shape up
1608 \size normal
1609 \emph off
1610 \bar no
1611 \noun off
1612 \color none
1613 \SpecialChar LyX
1614 は,あなたの\SpecialChar LaTeX
1615 コードが正しいかどうかを
1616 \family default
1617 \series default
1618 \shape default
1619 \size default
1620 \emph on
1621 \bar default
1622 \noun default
1623 \color inherit
1624 チェックしません
1625 \family roman
1626 \series medium
1627 \shape up
1628 \size normal
1629 \emph off
1630 \bar no
1631 \noun off
1632 \color none
1633
1634 \end_layout
1635
1636 \begin_layout Itemize
1637
1638 \family roman
1639 \series medium
1640 \shape up
1641 \size normal
1642 \emph off
1643 \bar no
1644 \noun off
1645 \color none
1646 車輪の再発明をしないようにご注意ください.
1647 \end_layout
1648
1649 \begin_layout Standard
1650
1651 \family roman
1652 \series medium
1653 \shape up
1654 \size normal
1655 \emph off
1656 \bar no
1657 \noun off
1658 \color none
1659 二番目の点に関して,\SpecialChar LyX
1660 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1661 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1662 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1663 う膨大な数の\SpecialChar LaTeX
1664 パッケージが存在します.
1665 \family default
1666 \series default
1667 \shape default
1668 \size default
1669 \emph default
1670 \bar default
1671 \noun default
1672 \color inherit
1673 詳細については,
1674 \begin_inset CommandInset href
1675 LatexCommand href
1676 name "CTAN"
1677 target "http://www.ctan.org/"
1678 literal "false"
1679
1680 \end_inset
1681
1682
1683 \family roman
1684 \series medium
1685 \shape up
1686 \size normal
1687 \emph off
1688 \bar no
1689 \noun off
1690 \color none
1691 と第
1692 \begin_inset CommandInset ref
1693 LatexCommand ref
1694 reference "chap:Special-features"
1695
1696 \end_inset
1697
1698 節をご覧ください.
1699 \end_layout
1700
1701 \begin_layout Standard
1702
1703 \family roman
1704 \series medium
1705 \shape up
1706 \size normal
1707 \emph off
1708 \bar no
1709 \noun off
1710 \color none
1711 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1712 関連書籍を参考とするようにしてください.『
1713 \family default
1714 \series default
1715 \shape default
1716 \size default
1717 \emph on
1718 \bar default
1719 \noun default
1720 \color inherit
1721 ユーザーの手引き
1722 \family roman
1723 \series medium
1724 \shape up
1725 \size normal
1726 \emph off
1727 \bar no
1728 \noun off
1729 \color none
1730 』の書誌情報に多くの\SpecialChar LaTeX
1731 関連書籍が引用されています.
1732 \end_layout
1733
1734 \begin_layout Section
1735 \SpecialChar LyX
1736 と\SpecialChar LaTeX
1737 プリアンブル
1738 \end_layout
1739
1740 \begin_layout Subsection
1741 \SpecialChar LaTeX
1742 プリアンブルについて
1743 \end_layout
1744
1745 \begin_layout Standard
1746
1747 \family roman
1748 \series medium
1749 \shape up
1750 \size normal
1751 \emph off
1752 \bar no
1753 \noun off
1754 \color none
1755 すでに\SpecialChar LaTeX
1756 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1757 ずです.詳しくは\SpecialChar LaTeX
1758 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1759 文書の\SpecialChar LaTeX
1760 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1761 みになった方が良いでしょう.
1762 \end_layout
1763
1764 \begin_layout Standard
1765
1766 \family roman
1767 \series medium
1768 \shape up
1769 \size normal
1770 \emph off
1771 \bar no
1772 \noun off
1773 \color none
1774 \SpecialChar LaTeX
1775 プリアンブルは,\SpecialChar LaTeX
1776 文書のいちばん始め,本文の
1777 \family default
1778 \series default
1779 \shape default
1780 \size default
1781 \emph on
1782 \bar default
1783 \noun default
1784 \color inherit
1785
1786 \family roman
1787 \series medium
1788 \shape up
1789 \size normal
1790 \emph off
1791 \bar no
1792 \noun off
1793 \color none
1794 の部分に来ます.ここでは以下のことを行います.
1795 \end_layout
1796
1797 \begin_layout Itemize
1798
1799 \family roman
1800 \series medium
1801 \shape up
1802 \size normal
1803 \emph off
1804 \bar no
1805 \noun off
1806 \color none
1807 文書クラス(ドキュメントクラス)の宣言.
1808 \begin_inset Newline newline
1809 \end_inset
1810
1811 これは\SpecialChar LyX
1812 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1813 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1814 \family default
1815 \series default
1816 \shape default
1817 \size default
1818 \emph on
1819 \bar default
1820 \noun default
1821 \color inherit
1822 カスタマイズ篇
1823 \family roman
1824 \series medium
1825 \shape up
1826 \size normal
1827 \emph off
1828 \bar no
1829 \noun off
1830 \color none
1831 』をご覧になれば,\SpecialChar LyX
1832 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1833 \end_layout
1834
1835 \begin_layout Itemize
1836
1837 \family roman
1838 \series medium
1839 \shape up
1840 \size normal
1841 \emph off
1842 \bar no
1843 \noun off
1844 \color none
1845 パッケージ使用の宣言.
1846 \begin_inset Newline newline
1847 \end_inset
1848
1849 \SpecialChar LaTeX
1850 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1851 提供されることに加え,文書に変更を加えることができます.例えば
1852 \family typewriter
1853 \series default
1854 \shape default
1855 \size default
1856 \emph default
1857 \bar default
1858 \noun default
1859 \color inherit
1860
1861 \family roman
1862 \series medium
1863 \shape up
1864 \size normal
1865 \emph off
1866 \bar no
1867 \noun off
1868 \color none
1869
1870 \begin_inset Flex Code
1871 status collapsed
1872
1873 \begin_layout Plain Layout
1874
1875 \family typewriter
1876 indentfirst
1877 \end_layout
1878
1879 \end_inset
1880
1881 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1882 \end_layout
1883
1884 \begin_layout Itemize
1885
1886 \family roman
1887 \series medium
1888 \shape up
1889 \size normal
1890 \emph off
1891 \bar no
1892 \noun off
1893 \color none
1894 カウンタ・変数・長さ・幅の設定.
1895 \begin_inset Newline newline
1896 \end_inset
1897
1898 \SpecialChar LaTeX
1899 のカウンタと変数の中には,プリアンブルでグローバルに
1900 \family default
1901 \series default
1902 \shape default
1903 \size default
1904 \emph default
1905 \bar default
1906 \noun default
1907 \color inherit
1908 設定
1909 \emph on
1910 しないかぎり
1911 \family roman
1912 \series medium
1913 \shape up
1914 \size normal
1915 \emph off
1916 \bar no
1917 \noun off
1918 \color none
1919 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1920 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1921 \end_layout
1922
1923 \begin_layout Itemize
1924
1925 \family roman
1926 \series medium
1927 \shape up
1928 \size normal
1929 \emph off
1930 \bar no
1931 \noun off
1932 \color none
1933 ユーザー定義コマンドの宣言(
1934 \begin_inset Flex Code
1935 status collapsed
1936
1937 \begin_layout Plain Layout
1938
1939 \family roman
1940 \series medium
1941 \shape up
1942 \size normal
1943 \emph off
1944 \bar no
1945 \noun off
1946 \color none
1947
1948 \backslash
1949 newcommand
1950 \end_layout
1951
1952 \end_inset
1953
1954 または
1955 \begin_inset Flex Code
1956 status collapsed
1957
1958 \begin_layout Plain Layout
1959
1960 \family roman
1961 \series medium
1962 \shape up
1963 \size normal
1964 \emph off
1965 \bar no
1966 \noun off
1967 \color none
1968
1969 \backslash
1970 renewcommand
1971 \end_layout
1972
1973 \end_inset
1974
1975 を使用).
1976 \begin_inset Newline newline
1977 \end_inset
1978
1979 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1980 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
1981 \family default
1982 \series default
1983 \shape default
1984 \size default
1985 \emph on
1986 \bar default
1987 \noun default
1988 \color inherit
1989 可能
1990 \family roman
1991 \series medium
1992 \shape up
1993 \size normal
1994 \emph off
1995 \bar no
1996 \noun off
1997 \color none
1998 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
1999 コードがあふれている場合には便利でしょう.
2000 \end_layout
2001
2002 \begin_layout Standard
2003
2004 \family roman
2005 \series medium
2006 \shape up
2007 \size normal
2008 \emph off
2009 \bar no
2010 \noun off
2011 \color none
2012 \SpecialChar LyX
2013 は,その生成する
2014 \begin_inset Flex Code
2015 status collapsed
2016
2017 \begin_layout Plain Layout
2018
2019 \family roman
2020 \series medium
2021 \shape up
2022 \size normal
2023 \emph off
2024 \bar no
2025 \noun off
2026 \color none
2027 .tex
2028 \end_layout
2029
2030 \end_inset
2031
2032 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2033 の生成する\SpecialChar LaTeX
2034 ファイルの可搬性を高めています.
2035 \end_layout
2036
2037 \begin_layout Subsection
2038 プリアンブルの変更
2039 \end_layout
2040
2041 \begin_layout Standard
2042
2043 \family roman
2044 \series medium
2045 \shape up
2046 \size normal
2047 \emph off
2048 \bar no
2049 \noun off
2050 \color none
2051 \SpecialChar LyX
2052 が\SpecialChar LaTeX
2053 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2054 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2055 \begin_inset Flex MenuItem
2056 status collapsed
2057
2058 \begin_layout Plain Layout
2059
2060 \family roman
2061 \series medium
2062 \shape up
2063 \size normal
2064 \emph off
2065 \bar no
2066 \noun off
2067 \color none
2068 文書\SpecialChar menuseparator
2069 設定
2070 \end_layout
2071
2072 \end_inset
2073
2074 ダイアログの
2075 \begin_inset Flex MenuItem
2076 status collapsed
2077
2078 \begin_layout Plain Layout
2079
2080 \family roman
2081 \series medium
2082 \shape up
2083 \size normal
2084 \emph off
2085 \bar no
2086 \noun off
2087 \color none
2088 \SpecialChar LaTeX
2089 プリアンブル
2090 \end_layout
2091
2092 \end_inset
2093
2094 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2095 は,
2096 \family sans
2097 \series default
2098 \shape default
2099 \size default
2100 \emph default
2101 \bar default
2102 \noun default
2103 \color inherit
2104
2105 \begin_inset Flex MenuItem
2106 status collapsed
2107
2108 \begin_layout Plain Layout
2109
2110 \family sans
2111 プリアンブル
2112 \end_layout
2113
2114 \end_inset
2115
2116
2117 \family roman
2118 \series medium
2119 \shape up
2120 \size normal
2121 \emph off
2122 \bar no
2123 \noun off
2124 \color none
2125 ダイアログ内のすべてのものを,\SpecialChar LyX
2126 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2127 がすでにサポートしてい
2128 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2129 \family default
2130 \series default
2131 \shape default
2132 \size default
2133 \emph default
2134 \bar default
2135 \noun default
2136 \color inherit
2137 また,
2138 \emph on
2139 プリアンブルコードが正しいことを確認してください.
2140 \emph default
2141 \SpecialChar LyX
2142 は,プリアンブルをチェックしません.
2143 \family roman
2144 \series medium
2145 \shape up
2146 \size normal
2147 \emph off
2148 \bar no
2149 \noun off
2150 \color none
2151 もしエラーがあれば,「
2152 \begin_inset Flex Code
2153 status collapsed
2154
2155 \begin_layout Plain Layout
2156
2157 \family roman
2158 \series medium
2159 \shape up
2160 \size normal
2161 \emph off
2162 \bar no
2163 \noun off
2164 \color none
2165 Missing 
2166 \backslash
2167 begin{document}
2168 \end_layout
2169
2170 \end_inset
2171
2172 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2173 \end_layout
2174
2175 \begin_layout Subsection
2176
2177 \end_layout
2178
2179 \begin_layout Standard
2180
2181 \family roman
2182 \series medium
2183 \shape up
2184 \size normal
2185 \emph off
2186 \bar no
2187 \noun off
2188 \color none
2189 以下は,プリアンブルに追加できるものとその効果を示す例です.
2190 \end_layout
2191
2192 \begin_layout Subsubsection
2193 例1:オフセット
2194 \end_layout
2195
2196 \begin_layout Standard
2197
2198 \family roman
2199 \series medium
2200 \shape up
2201 \size normal
2202 \emph off
2203 \bar no
2204 \noun off
2205 \color none
2206 \SpecialChar LaTeX
2207 には
2208 \family default
2209 \series default
2210 \shape default
2211 \size default
2212 \emph default
2213 \bar default
2214 \noun default
2215 \color inherit
2216
2217 \family roman
2218 \series medium
2219 \shape up
2220 \size normal
2221 \emph off
2222 \bar no
2223 \noun off
2224 \color none
2225
2226 \begin_inset Flex Code
2227 status collapsed
2228
2229 \begin_layout Plain Layout
2230
2231 \family typewriter
2232
2233 \backslash
2234 hoffset
2235 \end_layout
2236
2237 \end_inset
2238
2239
2240 \family typewriter
2241 \series default
2242 \shape default
2243 \size default
2244 \emph default
2245 \bar default
2246 \noun default
2247 \color inherit
2248
2249 \begin_inset Flex Code
2250 status collapsed
2251
2252 \begin_layout Plain Layout
2253
2254 \family typewriter
2255
2256 \backslash
2257 voffset
2258 \end_layout
2259
2260 \end_inset
2261
2262
2263 \family roman
2264 \series medium
2265 \shape up
2266 \size normal
2267 \emph off
2268 \bar no
2269 \noun off
2270 \color none
2271 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2272 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2273 \begin_inset Flex Code
2274 status collapsed
2275
2276 \begin_layout Plain Layout
2277
2278 \family typewriter
2279
2280 \backslash
2281 hoffset
2282 \end_layout
2283
2284 \end_inset
2285
2286
2287 \family typewriter
2288 \series default
2289 \shape default
2290 \size default
2291 \emph default
2292 \bar default
2293 \noun default
2294 \color inherit
2295
2296 \begin_inset Flex Code
2297 status collapsed
2298
2299 \begin_layout Plain Layout
2300
2301 \family typewriter
2302
2303 \backslash
2304 voffset
2305 \end_layout
2306
2307 \end_inset
2308
2309
2310 \family default
2311 が役立つわけです.
2312 \end_layout
2313
2314 \begin_layout Standard
2315
2316 \family roman
2317 \series medium
2318 \shape up
2319 \size normal
2320 \emph off
2321 \bar no
2322 \noun off
2323 \color none
2324 \begin_inset Flex Code
2325 status collapsed
2326
2327 \begin_layout Plain Layout
2328
2329 \family typewriter
2330
2331 \backslash
2332 hoffset
2333 \end_layout
2334
2335 \end_inset
2336
2337
2338 \family typewriter
2339 \series default
2340 \shape default
2341 \size default
2342 \emph default
2343 \bar default
2344 \noun default
2345 \color inherit
2346
2347 \begin_inset Flex Code
2348 status collapsed
2349
2350 \begin_layout Plain Layout
2351
2352 \family typewriter
2353
2354 \backslash
2355 voffset
2356 \end_layout
2357
2358 \end_inset
2359
2360
2361 \family roman
2362 \series medium
2363 \shape up
2364 \size normal
2365 \emph off
2366 \bar no
2367 \noun off
2368 \color none
2369 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2370 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2371 を使用していて,シスアドがお馬鹿さんである
2372 場合には,
2373 \begin_inset Flex Code
2374 status collapsed
2375
2376 \begin_layout Plain Layout
2377
2378 \family typewriter
2379
2380 \backslash
2381 hoffset
2382 \end_layout
2383
2384 \end_inset
2385
2386
2387 \family typewriter
2388 \series default
2389 \shape default
2390 \size default
2391 \emph default
2392 \bar default
2393 \noun default
2394 \color inherit
2395
2396 \begin_inset Flex Code
2397 status collapsed
2398
2399 \begin_layout Plain Layout
2400
2401 \family typewriter
2402
2403 \backslash
2404 voffset
2405 \end_layout
2406
2407 \end_inset
2408
2409
2410 \family roman
2411 \series medium
2412 \shape up
2413 \size normal
2414 \emph off
2415 \bar no
2416 \noun off
2417 \color none
2418 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2419 \end_layout
2420
2421 \begin_layout LyX-Code
2422
2423 \backslash
2424 setlength{
2425 \backslash
2426 hoffset}{-0.5 in}
2427 \end_layout
2428
2429 \begin_layout LyX-Code
2430
2431 \backslash
2432 setlength{
2433 \backslash
2434 voffset}{-0.5 in}
2435 \end_layout
2436
2437 \begin_layout Standard
2438
2439 \family roman
2440 \series medium
2441 \shape up
2442 \size normal
2443 \emph off
2444 \bar no
2445 \noun off
2446 \color none
2447 これで余白が修正されます.
2448 \end_layout
2449
2450 \begin_layout Subsubsection
2451 例2:ラベル
2452 \end_layout
2453
2454 \begin_layout Standard
2455
2456 \family roman
2457 \series medium
2458 \shape up
2459 \size normal
2460 \emph off
2461 \bar no
2462 \noun off
2463 \color none
2464 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2465 \begin_inset Flex Code
2466 status collapsed
2467
2468 \begin_layout Plain Layout
2469
2470 \family typewriter
2471 labels.sty
2472 \end_layout
2473
2474 \end_inset
2475
2476 という\SpecialChar LaTeX
2477 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2478 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2479 ることにします.
2480 \end_layout
2481
2482 \begin_layout Standard
2483
2484 \family roman
2485 \series medium
2486 \shape up
2487 \size normal
2488 \emph off
2489 \bar no
2490 \noun off
2491 \color none
2492 まず,
2493 \begin_inset Flex Code
2494 status collapsed
2495
2496 \begin_layout Plain Layout
2497
2498 \family sans
2499 article
2500 \end_layout
2501
2502 \end_inset
2503
2504 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2505 \end_layout
2506
2507 \begin_layout LyX-Code
2508
2509 \backslash
2510 usepackage{labels}
2511 \end_layout
2512
2513 \begin_layout LyX-Code
2514
2515 \backslash
2516 LabelCols=3
2517 \end_layout
2518
2519 \begin_layout LyX-Code
2520
2521 \backslash
2522 LabelRows=7
2523 \end_layout
2524
2525 \begin_layout LyX-Code
2526
2527 \backslash
2528 LeftBorder=8mm
2529 \end_layout
2530
2531 \begin_layout LyX-Code
2532
2533 \backslash
2534 RightBorder=8mm
2535 \end_layout
2536
2537 \begin_layout LyX-Code
2538
2539 \backslash
2540 TopBorder=9mm
2541 \end_layout
2542
2543 \begin_layout LyX-Code
2544
2545 \backslash
2546 BottomBorder=2mm
2547 \end_layout
2548
2549 \begin_layout Standard
2550
2551 \family roman
2552 \series medium
2553 \shape up
2554 \size normal
2555 \emph off
2556 \bar no
2557 \noun off
2558 \color none
2559 これは
2560 \family default
2561 \series default
2562 \shape default
2563 \size default
2564 \emph default
2565 \bar default
2566 \noun default
2567 \color inherit
2568 Averyラベルシートのストック5360
2569 \family roman
2570 \series medium
2571 \shape up
2572 \size normal
2573 \emph off
2574 \bar no
2575 \noun off
2576 \color none
2577 番を使用する場合の設定です.これで,各宛名を
2578 \begin_inset Flex Code
2579 status collapsed
2580
2581 \begin_layout Plain Layout
2582
2583 \family typewriter
2584
2585 \backslash
2586 begin{labels}
2587 \end_layout
2588
2589 \end_inset
2590
2591
2592 \family typewriter
2593 \series default
2594 \shape default
2595 \size default
2596 \emph default
2597 \bar default
2598 \noun default
2599 \color inherit
2600
2601 \begin_inset Flex Code
2602 status collapsed
2603
2604 \begin_layout Plain Layout
2605
2606 \family typewriter
2607
2608 \backslash
2609 end{labels}
2610 \end_layout
2611
2612 \end_inset
2613
2614
2615 \family roman
2616 \series medium
2617 \shape up
2618 \size normal
2619 \emph off
2620 \bar no
2621 \noun off
2622 \color none
2623 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2624 \begin_inset Flex Code
2625 status collapsed
2626
2627 \begin_layout Plain Layout
2628
2629 \family typewriter
2630 labels.sty
2631 \end_layout
2632
2633 \end_inset
2634
2635 の取扱説明書に説明されています.
2636 \end_layout
2637
2638 \begin_layout Standard
2639
2640 \family roman
2641 \series medium
2642 \shape up
2643 \size normal
2644 \emph off
2645 \bar no
2646 \noun off
2647 \color none
2648 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2649 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2650 \end_layout
2651
2652 \begin_layout Subsubsection
2653 例3: 段落の字下げ
2654 \end_layout
2655
2656 \begin_layout Standard
2657
2658 \family roman
2659 \series medium
2660 \shape up
2661 \size normal
2662 \emph off
2663 \bar no
2664 \noun off
2665 \color none
2666 アメリカ人は
2667 \family default
2668 \series default
2669 \shape default
2670 \size default
2671 \emph default
2672 \bar default
2673 \noun default
2674 \color inherit
2675
2676 \emph on
2677 すべての
2678 \family roman
2679 \series medium
2680 \shape up
2681 \size normal
2682 \emph off
2683 \bar no
2684 \noun off
2685 \color none
2686 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2687 ゃと文句を言いつづけるのです
2688 \family default
2689 \series default
2690 \shape default
2691 \size default
2692 \emph default
2693 \bar default
2694 \noun default
2695 \color inherit
2696 .(これはユーモアです.(ほんと?)
2697 \emph on
2698 ユーモアですってば
2699 \emph default
2700 .)
2701 \end_layout
2702
2703 \begin_layout Standard
2704
2705 \family roman
2706 \series medium
2707 \shape up
2708 \size normal
2709 \emph off
2710 \bar no
2711 \noun off
2712 \color none
2713 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2714 \family default
2715 \series default
2716 \shape default
2717 \size default
2718 \emph on
2719 \bar default
2720 \noun default
2721 \color inherit
2722 のみ
2723 \family roman
2724 \series medium
2725 \shape up
2726 \size normal
2727 \emph off
2728 \bar no
2729 \noun off
2730 \color none
2731 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2732 ,字下げをする必要はないのです.
2733 \end_layout
2734
2735 \begin_layout Standard
2736
2737 \family roman
2738 \series medium
2739 \shape up
2740 \size normal
2741 \emph off
2742 \bar no
2743 \noun off
2744 \color none
2745 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2746 ルに次の行を加えて下さい.
2747 \end_layout
2748
2749 \begin_layout LyX-Code
2750
2751 \backslash
2752 usepackage{indentfirst}
2753 \end_layout
2754
2755 \begin_layout Standard
2756
2757 \family roman
2758 \series medium
2759 \shape up
2760 \size normal
2761 \emph off
2762 \bar no
2763 \noun off
2764 \color none
2765 もしお使いの\SpecialChar TeX
2766 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2767 \end_layout
2768
2769 \begin_layout Subsubsection
2770 例4:この文書
2771 \end_layout
2772
2773 \begin_layout Standard
2774
2775 \family roman
2776 \series medium
2777 \shape up
2778 \size normal
2779 \emph off
2780 \bar no
2781 \noun off
2782 \color none
2783 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2784 \family default
2785 \series default
2786 \shape default
2787 \size default
2788 \emph default
2789 \bar default
2790 \noun default
2791 \color inherit
2792
2793 \begin_inset CommandInset ref
2794 LatexCommand ref
2795 reference "chap:Special-features"
2796
2797 \end_inset
2798
2799
2800 \family roman
2801 \series medium
2802 \shape up
2803 \size normal
2804 \emph off
2805 \bar no
2806 \noun off
2807 \color none
2808 章には,他の例や,\SpecialChar LaTeX
2809 の各種の「汚い技」があります.
2810 \end_layout
2811
2812 \begin_layout Section
2813 \SpecialChar LyX
2814 および\SpecialChar LaTeX
2815 のエラー
2816 \end_layout
2817
2818 \begin_layout Standard
2819
2820 \family roman
2821 \series medium
2822 \shape up
2823 \size normal
2824 \emph off
2825 \bar no
2826 \noun off
2827 \color none
2828 \SpecialChar LyX
2829 が\SpecialChar LaTeX
2830 を呼び出す際,\SpecialChar LyX
2831 は\SpecialChar LaTeX
2832 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2833 は,\SpecialChar LaTeX
2834 の実行ログファイルを事後処理用に使います.ログファイルを分
2835 析したのち,\SpecialChar LyX
2836 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2837 ファイル中,そのエラーの発生した場所に表示を移動します
2838 \begin_inset Foot
2839 status collapsed
2840
2841 \begin_layout Plain Layout
2842
2843 \family roman
2844 \series medium
2845 \shape up
2846 \size normal
2847 \emph off
2848 \bar no
2849 \noun off
2850 \color none
2851 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2852 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2853 がある行にエラーがあると報告し
2854 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2855 ーのある場所よりも後ろでエラーが報告されるのです.
2856 \end_layout
2857
2858 \end_inset
2859
2860
2861 \family default
2862 \series default
2863 \shape default
2864 \size default
2865 \emph default
2866 \bar default
2867 \noun default
2868 \color inherit
2869
2870 \end_layout
2871
2872 \begin_layout Standard
2873
2874 \family roman
2875 \series medium
2876 \shape up
2877 \size normal
2878 \emph off
2879 \bar no
2880 \noun off
2881 \color none
2882 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2883 \begin_inset Flex MenuItem
2884 status collapsed
2885
2886 \begin_layout Plain Layout
2887
2888 \family roman
2889 \series medium
2890 \shape up
2891 \size normal
2892 \emph off
2893 \bar no
2894 \noun off
2895 \color none
2896 文書\SpecialChar menuseparator
2897 LaTeXログ
2898 \end_layout
2899
2900 \end_inset
2901
2902 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2903
2904 関連の良書を参照してください.
2905 \end_layout
2906
2907 \begin_layout Itemize
2908
2909 \family typewriter
2910 \begin_inset Flex Code
2911 status collapsed
2912
2913 \begin_layout Plain Layout
2914
2915 \family typewriter
2916 LaTeX Warning
2917 \end_layout
2918
2919 \end_inset
2920
2921
2922 \family roman
2923 \series medium
2924 \shape up
2925 \size normal
2926 \emph off
2927 \bar no
2928 \noun off
2929 \color none
2930
2931 \begin_inset Newline newline
2932 \end_inset
2933
2934 これで始まるメッセージは,\SpecialChar LaTeX
2935 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2936 を実行する必要があることを
2937 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2938 \end_layout
2939
2940 \begin_layout Itemize
2941
2942 \family typewriter
2943 \begin_inset Flex Code
2944 status collapsed
2945
2946 \begin_layout Plain Layout
2947
2948 \family typewriter
2949 LaTeX Font Warning
2950 \end_layout
2951
2952 \end_inset
2953
2954
2955 \family roman
2956 \series medium
2957 \shape up
2958 \size normal
2959 \emph off
2960 \bar no
2961 \noun off
2962 \color none
2963
2964 \begin_inset Newline newline
2965 \end_inset
2966
2967 \SpecialChar LaTeX
2968 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2969 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2970
2971 \end_layout
2972
2973 \begin_layout Itemize
2974
2975 \family roman
2976 \series medium
2977 \shape up
2978 \size normal
2979 \emph off
2980 \bar no
2981 \noun off
2982 \color none
2983 \begin_inset Flex Code
2984 status collapsed
2985
2986 \begin_layout Plain Layout
2987
2988 \family typewriter
2989 Overfull 
2990 \backslash
2991 hbox
2992 \end_layout
2993
2994 \end_inset
2995
2996
2997 \begin_inset Newline newline
2998 \end_inset
2999
3000 \SpecialChar LaTeX
3001 は,
3002 \family default
3003 \series default
3004 \shape default
3005 \size default
3006 \emph on
3007 \bar default
3008 \noun default
3009 \color inherit
3010 ほぼどんなときでも
3011 \family roman
3012 \series medium
3013 \shape up
3014 \size normal
3015 \emph off
3016 \bar no
3017 \noun off
3018 \color none
3019 この警告を吐き出します.これは,一行が長すぎて右余白にはみ出してしまったという警告ですが,ほとんどの場合,最終出力を見ても判別できないくらい(せいぜい1ポイント
3020 か2ポイント)です.あるいは1文字か2文字右余白に出ているくらいです.\SpecialChar LaTeX
3021 は,どんな文書を書いても,少なくとも一つはこのメッセージを出すようです.
3022 \begin_inset Newline newline
3023 \end_inset
3024
3025 このメッセージは無視しても大丈夫です.何か行が長すぎるような問題があれば,目で見ればわかります.出力を目で確認してください
3026 \begin_inset Foot
3027 status collapsed
3028
3029 \begin_layout Plain Layout
3030 あるいは,
3031 \begin_inset Flex MenuItem
3032 status collapsed
3033
3034 \begin_layout Plain Layout
3035 文書\SpecialChar menuseparator
3036 設定
3037 \end_layout
3038
3039 \end_inset
3040
3041 で「draft」オプションを指定する方法もあります.こうすると,\SpecialChar LaTeX
3042 は,overfullの発生した行の余白に黒い四角を描画します.
3043 \end_layout
3044
3045 \end_inset
3046
3047
3048 \end_layout
3049
3050 \begin_layout Itemize
3051
3052 \family typewriter
3053 \begin_inset Flex Code
3054 status collapsed
3055
3056 \begin_layout Plain Layout
3057
3058 \family typewriter
3059 Underfull 
3060 \backslash
3061 hbox
3062 \end_layout
3063
3064 \end_inset
3065
3066
3067 \begin_inset Newline newline
3068 \end_inset
3069
3070
3071 \family roman
3072 \series medium
3073 \shape up
3074 \size normal
3075 \emph off
3076 \bar no
3077 \noun off
3078 \color none
3079 これは上の警告と違ってあまり出てきません.なぜだかは分かりませんが,\SpecialChar LaTeX
3080 は1行を短めにする印字するよりは,長めにする方が好きなようです.
3081 \end_layout
3082
3083 \begin_layout Itemize
3084 \begin_inset Flex Code
3085 status collapsed
3086
3087 \begin_layout Plain Layout
3088
3089 \family typewriter
3090 Overfull 
3091 \backslash
3092 vbox
3093 \end_layout
3094
3095 \end_inset
3096
3097
3098 \family typewriter
3099
3100 \begin_inset Flex Code
3101 status collapsed
3102
3103 \begin_layout Plain Layout
3104
3105 \family typewriter
3106 Underfull 
3107 \backslash
3108 vbox
3109 \end_layout
3110
3111 \end_inset
3112
3113
3114 \family default
3115
3116 \begin_inset Newline newline
3117 \end_inset
3118
3119
3120 \family roman
3121 \series medium
3122 \shape up
3123 \size normal
3124 \emph off
3125 \bar no
3126 \noun off
3127 \color none
3128 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3129 \end_layout
3130
3131 \begin_layout Itemize
3132
3133 \family typewriter
3134 \begin_inset Flex Code
3135 status collapsed
3136
3137 \begin_layout Plain Layout
3138
3139 \family typewriter
3140 LaTeX Error: File 
3141 \begin_inset Quotes els
3142 \end_inset
3143
3144 Xxxx
3145 \begin_inset Quotes ers
3146 \end_inset
3147
3148  not found
3149 \end_layout
3150
3151 \end_inset
3152
3153
3154 \family roman
3155 \series medium
3156 \shape up
3157 \size normal
3158 \emph off
3159 \bar no
3160 \noun off
3161 \color none
3162
3163 \begin_inset Newline newline
3164 \end_inset
3165
3166 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3167 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3168 えておらず,
3169 \begin_inset Flex Code
3170 status collapsed
3171
3172 \begin_layout Plain Layout
3173
3174 \family typewriter
3175
3176 \backslash
3177 usepackage{}
3178 \end_layout
3179
3180 \end_inset
3181
3182 コマンドも使用していないとすれば,\SpecialChar LyX
3183 が読み込もうしているパッケージに存在しないものがあるということです.
3184 \family default
3185 \series default
3186 \shape default
3187 \size default
3188 \emph default
3189 \bar default
3190 \noun default
3191 \color inherit
3192
3193 \begin_inset Flex MenuItem
3194 status collapsed
3195
3196 \begin_layout Plain Layout
3197 ヘルプ\SpecialChar menuseparator
3198 \SpecialChar LaTeX
3199 の設定
3200 \end_layout
3201
3202 \end_inset
3203
3204
3205 \family roman
3206 \series medium
3207 \shape up
3208 \size normal
3209 \emph off
3210 \bar no
3211 \noun off
3212 \color none
3213 を使用して,\SpecialChar LyX
3214 が認識しているパッケージの一覧を得てください.このファイルは,(
3215 \begin_inset Flex MenuItem
3216 status collapsed
3217
3218 \begin_layout Plain Layout
3219
3220 \family roman
3221 \series medium
3222 \shape up
3223 \size normal
3224 \emph off
3225 \bar no
3226 \noun off
3227 \color none
3228 ツール\SpecialChar menuseparator
3229 再設定
3230 \end_layout
3231
3232 \end_inset
3233
3234 を使用して)\SpecialChar LyX
3235 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3236 \begin_inset Newline newline
3237 \end_inset
3238
3239
3240 \family sans
3241 \series default
3242 \shape default
3243 \size default
3244 \emph default
3245 \bar default
3246 \noun default
3247 \color inherit
3248
3249 \begin_inset Flex Code
3250 status collapsed
3251
3252 \begin_layout Plain Layout
3253
3254 \family sans
3255
3256 \backslash
3257 usepackage{}
3258 \end_layout
3259
3260 \end_inset
3261
3262
3263 \family roman
3264 \series medium
3265 \shape up
3266 \size normal
3267 \emph off
3268 \bar no
3269 \noun off
3270 \color none
3271 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3272 \end_layout
3273
3274 \begin_layout Itemize
3275
3276 \family typewriter
3277 \begin_inset Flex Code
3278 status collapsed
3279
3280 \begin_layout Plain Layout
3281
3282 \family typewriter
3283 LaTeX Error: Unknown option
3284 \end_layout
3285
3286 \end_inset
3287
3288
3289 \family roman
3290 \series medium
3291 \shape up
3292 \size normal
3293 \emph off
3294 \bar no
3295 \noun off
3296 \color none
3297
3298 \begin_inset Newline newline
3299 \end_inset
3300
3301 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3302 さい.
3303 \end_layout
3304
3305 \begin_layout Itemize
3306
3307 \family typewriter
3308 \begin_inset Flex Code
3309 status collapsed
3310
3311 \begin_layout Plain Layout
3312
3313 \family typewriter
3314 Undefined control sequence
3315 \end_layout
3316
3317 \end_inset
3318
3319
3320 \family roman
3321 \series medium
3322 \shape up
3323 \size normal
3324 \emph off
3325 \bar no
3326 \noun off
3327 \color none
3328
3329 \begin_inset Newline newline
3330 \end_inset
3331
3332 お使いの文書に\SpecialChar LaTeX
3333 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3334 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3335 \end_layout
3336
3337 \begin_layout Standard
3338
3339 \family roman
3340 \series medium
3341 \shape up
3342 \size normal
3343 \emph off
3344 \bar no
3345 \noun off
3346 \color none
3347 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3348 のメッセージです.何を言っているのかさっぱりわからないものもあ
3349 りますが,通常これらは,\SpecialChar TeX
3350 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3351 \family default
3352 \series default
3353 \shape default
3354 \size default
3355 \emph on
3356 \bar default
3357 \noun default
3358 \color inherit
3359 まったく
3360 \family roman
3361 \series medium
3362 \shape up
3363 \size normal
3364 \emph off
3365 \bar no
3366 \noun off
3367 \color none
3368 手がかりがありません.誰もわからないのです.
3369 \end_layout
3370
3371 \begin_layout Standard
3372
3373 \family roman
3374 \series medium
3375 \shape up
3376 \size normal
3377 \emph off
3378 \bar no
3379 \noun off
3380 \color none
3381 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3382 \end_layout
3383
3384 \begin_layout Enumerate
3385
3386 \family roman
3387 \series medium
3388 \shape up
3389 \size normal
3390 \emph off
3391 \bar no
3392 \noun off
3393 \color none
3394 ご自分で挿入した\SpecialChar LaTeX
3395 コードに打ち間違いがないかどうか確かめる.
3396 \end_layout
3397
3398 \begin_layout Enumerate
3399
3400 \family roman
3401 \series medium
3402 \shape up
3403 \size normal
3404 \emph off
3405 \bar no
3406 \noun off
3407 \color none
3408 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3409 \end_layout
3410
3411 \begin_layout Enumerate
3412
3413 \family roman
3414 \series medium
3415 \shape up
3416 \size normal
3417 \emph off
3418 \bar no
3419 \noun off
3420 \color none
3421 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3422 \begin_inset Flex Code
3423 status collapsed
3424
3425 \begin_layout Plain Layout
3426
3427 \family roman
3428 \series medium
3429 \shape up
3430 \size normal
3431 \emph off
3432 \bar no
3433 \noun off
3434 \color none
3435 Missing 
3436 \backslash
3437 begin{document}
3438 \end_layout
3439
3440 \end_inset
3441
3442 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3443 \end_layout
3444
3445 \begin_layout Enumerate
3446
3447 \family roman
3448 \series medium
3449 \shape up
3450 \size normal
3451 \emph off
3452 \bar no
3453 \noun off
3454 \color none
3455 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3456 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3457 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3458 い.
3459 \end_layout
3460
3461 \begin_layout Enumerate
3462
3463 \family roman
3464 \series medium
3465 \shape up
3466 \size normal
3467 \emph off
3468 \bar no
3469 \noun off
3470 \color none
3471 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3472 を微調整するオプションを使用していますか.特に,手動で
3473 \begin_inset Flex Code
3474 status collapsed
3475
3476 \begin_layout Plain Layout
3477
3478 \family sans
3479 Protected
3480 \begin_inset space ~
3481 \end_inset
3482
3483 Blank
3484 \end_layout
3485
3486 \end_inset
3487
3488
3489 \begin_inset Flex Code
3490 status collapsed
3491
3492 \begin_layout Plain Layout
3493
3494 \family sans
3495 Linebreak
3496 \end_layout
3497
3498 \end_inset
3499
3500
3501 \family sans
3502 \series default
3503 \shape default
3504 \size default
3505 \emph default
3506 \bar default
3507 \noun default
3508 \color inherit
3509
3510 \begin_inset Flex Code
3511 status collapsed
3512
3513 \begin_layout Plain Layout
3514
3515 \family sans
3516 Pagebreak
3517 \end_layout
3518
3519 \end_inset
3520
3521
3522 \family roman
3523 \series medium
3524 \shape up
3525 \size normal
3526 \emph off
3527 \bar no
3528 \noun off
3529 \color none
3530 などをたくさん挿入するなど,微調整オプションを
3531 \family default
3532 \series default
3533 \shape default
3534 \size default
3535 \emph on
3536 \bar default
3537 \noun default
3538 \color inherit
3539 悪用
3540 \family roman
3541 \series medium
3542 \shape up
3543 \size normal
3544 \emph off
3545 \bar no
3546 \noun off
3547 \color none
3548 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3549 \end_layout
3550
3551 \begin_layout Enumerate
3552
3553 \family roman
3554 \series medium
3555 \shape up
3556 \size normal
3557 \emph off
3558 \bar no
3559 \noun off
3560 \color none
3561 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3562 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3563 \end_layout
3564
3565 \begin_layout Enumerate
3566 \SpecialChar LaTeX
3567 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3568 はかなり嫌います.可能であれば,問題が生じな
3569 いように段落を修正するのが望ましいでしょう.
3570 \end_layout
3571
3572 \begin_layout Enumerate
3573
3574 \family roman
3575 \series medium
3576 \shape up
3577 \size normal
3578 \emph off
3579 \bar no
3580 \noun off
3581 \color none
3582 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3583 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3584 が原因です(\SpecialChar LaTeX
3585 の上限は5段です).
3586 \end_layout
3587
3588 \begin_layout Enumerate
3589
3590 \family roman
3591 \series medium
3592 \shape up
3593 \size normal
3594 \emph off
3595 \bar no
3596 \noun off
3597 \color none
3598 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3599 \family default
3600 \series default
3601 \shape default
3602 \size default
3603 \bar default
3604 \color inherit
3605
3606 \end_layout
3607
3608 \begin_deeper
3609 \begin_layout Enumerate
3610
3611 \family roman
3612 \series medium
3613 \shape up
3614 \size normal
3615 \emph off
3616 \bar no
3617 \noun off
3618 \color none
3619 図がページに合うように大きさを変える,
3620 \end_layout
3621
3622 \begin_layout Enumerate
3623
3624 \family roman
3625 \series medium
3626 \shape up
3627 \size normal
3628 \emph off
3629 \bar no
3630 \noun off
3631 \color none
3632 表がページに合うように削る,
3633 \end_layout
3634
3635 \begin_layout Standard
3636
3637 \family roman
3638 \series medium
3639 \shape up
3640 \size normal
3641 \emph off
3642 \bar no
3643 \noun off
3644 \color none
3645 などの手段を採る必要があります.
3646 \end_layout
3647
3648 \end_deeper
3649 \begin_layout Enumerate
3650 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3651 \end_layout
3652
3653 \begin_layout Standard
3654
3655 \family roman
3656 \series medium
3657 \shape up
3658 \size normal
3659 \emph off
3660 \bar no
3661 \noun off
3662 \color none
3663 これらすべてが役に立たないとすれば,
3664 \family default
3665 \series default
3666 \shape default
3667 \size default
3668 \emph on
3669 \bar default
3670 \noun default
3671 \color inherit
3672 ひょっとしたら
3673 \family roman
3674 \series medium
3675 \shape up
3676 \size normal
3677 \emph off
3678 \bar no
3679 \noun off
3680 \color none
3681 \SpecialChar LyX
3682 のバグを発見したのかもしれません‥‥.
3683 \end_layout
3684
3685 \begin_layout Chapter
3686 補完ツール
3687 \end_layout
3688
3689 \begin_layout Section
3690 Bib\SpecialChar TeX
3691 による書誌情報のカスタマイズ
3692 \end_layout
3693
3694 \begin_layout Standard
3695 Bib\SpecialChar TeX
3696 の基本的な使用法は,『
3697 \emph on
3698 ユーザーの手引き
3699 \emph default
3700 』の「
3701 \emph on
3702 文献データベース(Bib\SpecialChar TeX
3703 )
3704 \emph default
3705 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3706 でサポートされている書誌情報の特別な機能について説明することとします.
3707 \end_layout
3708
3709 \begin_layout Subsection
3710 他の引用様式
3711 \end_layout
3712
3713 \begin_layout Standard
3714 標準のBib\SpecialChar TeX
3715 は,引用された著作を参照するのに,([12]のように)数字を使用します.しかし,多くの科学分野で,これとは異なる引用様式が用いられています.もっとも
3716 よく見られるのは,著者-出版年様式(例:Knuth 1984a)です.\SpecialChar LyX
3717 は,この様式を提供する2つのパッケージ
3718 \begin_inset Flex Code
3719 status collapsed
3720
3721 \begin_layout Plain Layout
3722 natbib
3723 \end_layout
3724
3725 \end_inset
3726
3727
3728 \begin_inset Flex Code
3729 status collapsed
3730
3731 \begin_layout Plain Layout
3732 jurabib
3733 \end_layout
3734
3735 \end_inset
3736
3737 をサポートしています.これらのパッケージには,それぞれ長所短所がありますが,ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)
3738 様式が欲しい場合や,無数にある
3739 \begin_inset Flex Code
3740 status collapsed
3741
3742 \begin_layout Plain Layout
3743 natbib
3744 \end_layout
3745
3746 \end_inset
3747
3748 用スタイルファイルのうちどれかを使用したい場合には,定評のある
3749 \begin_inset Flex Code
3750 status collapsed
3751
3752 \begin_layout Plain Layout
3753 natbib
3754 \end_layout
3755
3756 \end_inset
3757
3758 パッケージがおそらくよい選択でしょう.短縮タイトルによる参照や
3759 \emph on
3760 ibid.
3761 \emph default
3762 など,特別な機能が必要な場合には,
3763 \begin_inset Flex Code
3764 status collapsed
3765
3766 \begin_layout Plain Layout
3767 jurabib
3768 \end_layout
3769
3770 \end_inset
3771
3772 パッケージの利用を考えるとよいかもしれません.
3773 \end_layout
3774
3775 \begin_layout Standard
3776 \SpecialChar LyX
3777 での両パッケージの取扱い方は,ほぼ同じです.
3778 \begin_inset Flex MenuItem
3779 status collapsed
3780
3781 \begin_layout Plain Layout
3782 文書\SpecialChar menuseparator
3783 設定
3784 \end_layout
3785
3786 \end_inset
3787
3788 メニューを開き,
3789 \begin_inset Flex MenuItem
3790 status collapsed
3791
3792 \begin_layout Plain Layout
3793 書誌情報
3794 \end_layout
3795
3796 \end_inset
3797
3798 項目から
3799 \begin_inset Flex MenuItem
3800 status collapsed
3801
3802 \begin_layout Plain Layout
3803 Natbib
3804 \end_layout
3805
3806 \end_inset
3807
3808 オプションか
3809 \begin_inset Flex MenuItem
3810 status collapsed
3811
3812 \begin_layout Plain Layout
3813 Jurabib
3814 \end_layout
3815
3816 \end_inset
3817
3818 オプションを選択してください.これらのパッケージによって,引用ダイアログに機能が追加され,参照の様式が選択できるようになります(「Knuth 1984」,「Kn
3819 uth (1984)」,「Knuth, 1984」,「1984」など).両パッケージは,専用にデザインされたスタイルファイルを必要とすることに注意してください.
3820 両者ともそれ自身のスタイルファイルを同梱していますが,他にもたくさんの追加スタイルファイルがありますし,
3821 \begin_inset Flex Code
3822 status collapsed
3823
3824 \begin_layout Plain Layout
3825 natbib
3826 \end_layout
3827
3828 \end_inset
3829
3830 に至っては,対話的なスタイルファイルビルダーさえ存在します
3831 \begin_inset Foot
3832 status collapsed
3833
3834 \begin_layout Plain Layout
3835 \begin_inset Flex URL
3836 status open
3837
3838 \begin_layout Plain Layout
3839
3840 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3841 \end_layout
3842
3843 \end_inset
3844
3845 をご参照ください.
3846 \end_layout
3847
3848 \end_inset
3849
3850
3851 \end_layout
3852
3853 \begin_layout Subsection
3854 節分けされた書誌情報
3855 \end_layout
3856
3857 \begin_layout Standard
3858 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
3859 でさえあります.残念ながら,Bib\SpecialChar TeX
3860 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
3861 パッケージの助けを借りると,Bib\SpecialChar TeX
3862 をこのような必要性を満たすように拡張するこ
3863 とができます.
3864 \end_layout
3865
3866 \begin_layout Standard
3867 \SpecialChar LyX
3868 は,このようなパッケージの一つである
3869 \begin_inset Flex Code
3870 status collapsed
3871
3872 \begin_layout Plain Layout
3873 bibtopic
3874 \end_layout
3875
3876 \end_inset
3877
3878
3879 \begin_inset Foot
3880 status collapsed
3881
3882 \begin_layout Plain Layout
3883 \begin_inset Flex URL
3884 status open
3885
3886 \begin_layout Plain Layout
3887
3888 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3889 \end_layout
3890
3891 \end_inset
3892
3893 から入手可能です.
3894 \end_layout
3895
3896 \end_inset
3897
3898 をそのままでサポートします.このパッケージの長所は,(
3899 \begin_inset Flex Code
3900 status collapsed
3901
3902 \begin_layout Plain Layout
3903 multibib
3904 \end_layout
3905
3906 \end_inset
3907
3908 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
3909 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
3910 \begin_inset Flex Code
3911 status collapsed
3912
3913 \begin_layout Plain Layout
3914 souces.bib
3915 \end_layout
3916
3917 \end_inset
3918
3919
3920 \begin_inset Flex Code
3921 status collapsed
3922
3923 \begin_layout Plain Layout
3924 scientific.bib
3925 \end_layout
3926
3927 \end_inset
3928
3929 とを作成する必要があります.
3930 \end_layout
3931
3932 \begin_layout Standard
3933 \begin_inset Flex MenuItem
3934 status collapsed
3935
3936 \begin_layout Plain Layout
3937 文書\SpecialChar menuseparator
3938 設定
3939 \end_layout
3940
3941 \end_inset
3942
3943 を開いて
3944 \begin_inset Flex MenuItem
3945 status collapsed
3946
3947 \begin_layout Plain Layout
3948 書誌情報
3949 \end_layout
3950
3951 \end_inset
3952
3953 の下の
3954 \begin_inset Flex MenuItem
3955 status collapsed
3956
3957 \begin_layout Plain Layout
3958 節分けされた書誌情報
3959 \end_layout
3960
3961 \end_inset
3962
3963 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
3964 書誌情報
3965 \begin_inset Flex Code
3966 status collapsed
3967
3968 \begin_layout Plain Layout
3969 sources.bib
3970 \end_layout
3971
3972 \end_inset
3973
3974 と二つめの文献データベース
3975 \begin_inset Flex Code
3976 status collapsed
3977
3978 \begin_layout Plain Layout
3979 scientific.bib
3980 \end_layout
3981
3982 \end_inset
3983
3984 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
3985 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
3986 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
3987 ます.
3988 \begin_inset Flex Code
3989 status collapsed
3990
3991 \begin_layout Plain Layout
3992 bibtopic
3993 \end_layout
3994
3995 \end_inset
3996
3997 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
3998 \end_layout
3999
4000 \begin_layout Subsection
4001 複数の書誌情報
4002 \end_layout
4003
4004 \begin_layout Standard
4005 文書の節ごとあるいは章ごとの書誌情報など,複数の書誌情報はBib\SpecialChar TeX
4006 自身ではサポートされていません.しかしながら,もし若干の
4007 \begin_inset Flex Code
4008 status collapsed
4009
4010 \begin_layout Plain Layout
4011 \SpecialChar TeX
4012 コード
4013 \end_layout
4014
4015 \end_inset
4016
4017 (第
4018 \begin_inset CommandInset ref
4019 LatexCommand ref
4020 reference "sec:LaTeXコードを挿入する"
4021
4022 \end_inset
4023
4024 節を参照)を利用することを厭わなければ,\SpecialChar LyX
4025 で節分けされた書誌情報を作るのに使用されている(前節を参照)
4026 \begin_inset Flex Code
4027 status collapsed
4028
4029 \begin_layout Plain Layout
4030 bibtopic
4031 \end_layout
4032
4033 \end_inset
4034
4035 パッケージが,この課題を解決する簡単な方法を提供します
4036 \begin_inset Foot
4037 status collapsed
4038
4039 \begin_layout Plain Layout
4040 ほかに,
4041 \begin_inset Flex Code
4042 status collapsed
4043
4044 \begin_layout Plain Layout
4045 chapterbib
4046 \end_layout
4047
4048 \end_inset
4049
4050
4051 \begin_inset Flex Code
4052 status collapsed
4053
4054 \begin_layout Plain Layout
4055 bibunits
4056 \end_layout
4057
4058 \end_inset
4059
4060 パッケージを利用する方法もあります.
4061 \end_layout
4062
4063 \end_inset
4064
4065
4066 \end_layout
4067
4068 \begin_layout Standard
4069 まず
4070 \begin_inset Flex MenuItem
4071 status collapsed
4072
4073 \begin_layout Plain Layout
4074 文書\SpecialChar menuseparator
4075 設定
4076 \end_layout
4077
4078 \end_inset
4079
4080 に行って
4081 \begin_inset Flex MenuItem
4082 status collapsed
4083
4084 \begin_layout Plain Layout
4085 書誌情報
4086 \end_layout
4087
4088 \end_inset
4089
4090 の下の
4091 \begin_inset Flex MenuItem
4092 status collapsed
4093
4094 \begin_layout Plain Layout
4095 節分けされた書誌情報
4096 \end_layout
4097
4098 \end_inset
4099
4100 を有効にしてください.つぎに文書中において,書誌情報(Bib\SpecialChar TeX
4101 書誌情報本体を含む)の入った節を
4102 \begin_inset Flex Code
4103 status collapsed
4104
4105 \begin_layout Plain Layout
4106
4107 \backslash
4108 begin{btUnit}
4109 \end_layout
4110
4111 \end_inset
4112
4113
4114 \begin_inset Flex Code
4115 status collapsed
4116
4117 \begin_layout Plain Layout
4118
4119 \backslash
4120 end{btUnit}
4121 \end_layout
4122
4123 \end_inset
4124
4125 のあいだにはさまなくてはなりません(これらのコマンドは\SpecialChar TeX
4126 コードとして挿入する必要があります).書誌情報には,現在位置の
4127 \begin_inset Flex Code
4128 status collapsed
4129
4130 \begin_layout Plain Layout
4131 btUnit
4132 \end_layout
4133
4134 \end_inset
4135
4136 において引用されたすべての参照が含まれることになります.
4137 \series bold
4138 (註)
4139 \series default
4140 この方法を用いる場合には,すべての参照はいずれかの
4141 \begin_inset Flex Code
4142 status collapsed
4143
4144 \begin_layout Plain Layout
4145 btUnit
4146 \end_layout
4147
4148 \end_inset
4149
4150 内部になくてはなりません.また,
4151 \begin_inset Flex Code
4152 status collapsed
4153
4154 \begin_layout Plain Layout
4155 btUnit
4156 \end_layout
4157
4158 \end_inset
4159
4160 は入れ子構造にすることができません.
4161 \end_layout
4162
4163 \begin_layout Section
4164 複合文書
4165 \end_layout
4166
4167 \begin_layout Subsection
4168 一般的な操作
4169 \end_layout
4170
4171 \begin_layout Standard
4172 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
4173 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
4174 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
4175 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
4176 \begin_inset Foot
4177 status collapsed
4178
4179 \begin_layout Plain Layout
4180
4181 \series bold
4182 (訳註)
4183 \series default
4184 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
4185 ま使用します.
4186 \end_layout
4187
4188 \end_inset
4189
4190 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
4191 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4192 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
4193 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
4194 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
4195 はなりません(
4196 \begin_inset Flex Code
4197 status collapsed
4198
4199 \begin_layout Plain Layout
4200
4201 \backslash
4202 begin{document}
4203 \end_layout
4204
4205 \end_inset
4206
4207 行とその前のすべて,および
4208 \begin_inset Flex Code
4209 status collapsed
4210
4211 \begin_layout Plain Layout
4212
4213 \backslash
4214 end{document}行
4215 \end_layout
4216
4217 \end_inset
4218
4219 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
4220 \end_layout
4221
4222 \begin_layout Standard
4223 \SpecialChar LyX
4224 では,
4225 \family sans
4226 挿入\SpecialChar menuseparator
4227 ファイル\SpecialChar menuseparator
4228 子文書
4229 \family default
4230 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
4231 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
4232 \end_layout
4233
4234 \begin_layout Standard
4235 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.「include」と
4236 「input」の違いは,正確には\SpecialChar LaTeX
4237 の達人にしか意味のないものですが,ほとんどの人にとって意味のある違いといえば,「include」されたファイルは新規頁から組版さ
4238 れるのに対し,「input」されたファイルは現在のページから組版される点です.
4239 \end_layout
4240
4241 \begin_layout Standard
4242 一般に,マスターファイルは,組版前に完全な\SpecialChar LaTeX
4243 ファイルに変換されますが,インクルードされるファイルは,プリアンブル情報をまったく持たない\SpecialChar LaTeX
4244 ファイルに変換されます.
4245 \end_layout
4246
4247 \begin_layout Standard
4248 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
4249 \begin_inset Flex Code
4250 status collapsed
4251
4252 \begin_layout Plain Layout
4253 verbatim
4254 \end_layout
4255
4256 \end_inset
4257
4258 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
4259 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
4260 ,単なる見えない空白です.ただし,
4261 \family sans
4262
4263 \begin_inset Flex MenuItem
4264 status collapsed
4265
4266 \begin_layout Plain Layout
4267
4268 \family sans
4269 出力の空白に印付けをする
4270 \end_layout
4271
4272 \end_inset
4273
4274
4275 \family default
4276 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
4277 \end_layout
4278
4279 \begin_layout Subsection
4280 ファイル間の相互参照
4281 \end_layout
4282
4283 \begin_layout Standard
4284 \begin_inset Box Shadowbox
4285 position "t"
4286 hor_pos "c"
4287 has_inner_box 1
4288 inner_pos "t"
4289 use_parbox 0
4290 use_makebox 0
4291 width "100col%"
4292 special "none"
4293 height "1in"
4294 height_special "totalheight"
4295 thickness "0.4pt"
4296 separation "3pt"
4297 shadowsize "4pt"
4298 framecolor "black"
4299 backgroundcolor "none"
4300 status open
4301
4302 \begin_layout Plain Layout
4303 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
4304 \end_layout
4305
4306 \end_inset
4307
4308
4309 \end_layout
4310
4311 \begin_layout Standard
4312 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
4313 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
4314 」を選んでください.
4315 \end_layout
4316
4317 \begin_layout Subsection
4318 すべての子文書での書誌情報
4319 \end_layout
4320
4321 \begin_layout Standard
4322 \begin_inset Box Shadowbox
4323 position "t"
4324 hor_pos "c"
4325 has_inner_box 1
4326 inner_pos "t"
4327 use_parbox 0
4328 use_makebox 0
4329 width "100col%"
4330 special "none"
4331 height "1in"
4332 height_special "totalheight"
4333 thickness "0.4pt"
4334 separation "3pt"
4335 shadowsize "4pt"
4336 framecolor "black"
4337 backgroundcolor "none"
4338 status open
4339
4340 \begin_layout Plain Layout
4341 この節も更新が必要です.この点に関する内容がwikiにあるので,それをここにコピーすることも可か.
4342 \end_layout
4343
4344 \end_inset
4345
4346
4347 \end_layout
4348
4349 \begin_layout Standard
4350 すべての子文書の全文献項目を含んだ書誌情報一覧をコピーし,それをコメントに変更してください.このようにすることで,\SpecialChar LyX
4351 は.bibファイルを見つけることができ,書誌情報
4352 一覧を見えるようにせずとも簡単に参照を挿入することができるようになります.
4353 \end_layout
4354
4355 \begin_layout Standard
4356 書誌情報一覧がコメントにあるために,\SpecialChar LaTeX
4357 はそれを使用しないので,参照は[1]のようには表示されないで[?]のように表示されます.ひとつの解決法として,コメントをイン
4358 クルードする\SpecialChar LaTeX
4359 パッケージの
4360 \begin_inset Flex Code
4361 status collapsed
4362
4363 \begin_layout Plain Layout
4364 comment
4365 \end_layout
4366
4367 \end_inset
4368
4369 を使用して,ファイルを別々に処理する方法があります.そのためには,すべての子文書のプリアンブルに以下を書き加えてください.
4370 \end_layout
4371
4372 \begin_layout LyX-Code
4373
4374 \backslash
4375 usepackage{comment}
4376 \end_layout
4377
4378 \begin_layout LyX-Code
4379
4380 \backslash
4381 includecomment{comment}
4382 \end_layout
4383
4384 \begin_layout Standard
4385 \begin_inset Flex URL
4386 status collapsed
4387
4388 \begin_layout Plain Layout
4389
4390 http://wiki.lyx.org/FAQ/Unsorted#toc31
4391 \end_layout
4392
4393 \end_inset
4394
4395 も参照してください.
4396 \end_layout
4397
4398 \begin_layout Section
4399 \SpecialChar LyX
4400 書庫
4401 \end_layout
4402
4403 \begin_layout Standard
4404 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
4405 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
4406
4407  2.0には,この過程を自動化するPythonスクリプト(
4408 \begin_inset Flex Code
4409 status collapsed
4410
4411 \begin_layout Plain Layout
4412 lyxpak.py
4413 \end_layout
4414
4415 \end_inset
4416
4417 )が含まれています.これを使うには,
4418 \begin_inset Flex Code
4419 status collapsed
4420
4421 \begin_layout Plain Layout
4422 zipfile
4423 \end_layout
4424
4425 \end_inset
4426
4427  pythonモジュールまたは
4428 \begin_inset Flex Code
4429 status collapsed
4430
4431 \begin_layout Plain Layout
4432 tarfile
4433 \end_layout
4434
4435 \end_inset
4436
4437  pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
4438 \begin_inset Flex Code
4439 status collapsed
4440
4441 \begin_layout Plain Layout
4442 gzip
4443 \end_layout
4444
4445 \end_inset
4446
4447 圧縮
4448 \begin_inset Flex Code
4449 status collapsed
4450
4451 \begin_layout Plain Layout
4452 tar
4453 \end_layout
4454
4455 \end_inset
4456
4457 ファイル形式が優先され,Windowsでは
4458 \begin_inset Flex Code
4459 status collapsed
4460
4461 \begin_layout Plain Layout
4462 zip
4463 \end_layout
4464
4465 \end_inset
4466
4467 形式が優先されます.
4468 \end_layout
4469
4470 \begin_layout Standard
4471 \SpecialChar LyX
4472 の環境構成時には,「\SpecialChar LyX
4473 書庫」を書き出すことができるようにスクリプトが準備され,
4474 \begin_inset Flex MenuItem
4475 status collapsed
4476
4477 \begin_layout Plain Layout
4478 ファイル\SpecialChar menuseparator
4479 書き出し
4480 \end_layout
4481
4482 \end_inset
4483
4484 の下で利用可能となります.
4485 \end_layout
4486
4487 \begin_layout Standard
4488 \begin_inset Flex MenuItem
4489 status collapsed
4490
4491 \begin_layout Plain Layout
4492 ツール\SpecialChar menuseparator
4493 設定\SpecialChar menuseparator
4494 ファイル処理\SpecialChar menuseparator
4495 変換子
4496 \end_layout
4497
4498 \end_inset
4499
4500
4501 \begin_inset Flex MenuItem
4502 status collapsed
4503
4504 \begin_layout Plain Layout
4505 \SpecialChar LyX
4506 \SpecialChar menuseparator
4507 \SpecialChar LyX
4508 書庫
4509 \end_layout
4510
4511 \end_inset
4512
4513 変換子に,
4514 \begin_inset Flex Code
4515 status collapsed
4516
4517 \begin_layout Plain Layout
4518 -t
4519 \end_layout
4520
4521 \end_inset
4522
4523 スイッチや
4524 \begin_inset Flex Code
4525 status collapsed
4526
4527 \begin_layout Plain Layout
4528 -z
4529 \end_layout
4530
4531 \end_inset
4532
4533 スイッチを加えることで,プラットホームとは独立に,
4534 \begin_inset Flex Code
4535 status collapsed
4536
4537 \begin_layout Plain Layout
4538 tar
4539 \end_layout
4540
4541 \end_inset
4542
4543 形式や
4544 \begin_inset Flex Code
4545 status collapsed
4546
4547 \begin_layout Plain Layout
4548 zip
4549 \end_layout
4550
4551 \end_inset
4552
4553 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
4554 \end_layout
4555
4556 \begin_layout Section
4557 装飾的なヘッダ・フッタ
4558 \end_layout
4559
4560 \begin_layout Standard
4561 既定のページレイアウトは,どちらかといえば素っ気ないものです.
4562 \begin_inset Flex Code
4563 status collapsed
4564
4565 \begin_layout Plain Layout
4566 article
4567 \end_layout
4568
4569 \end_inset
4570
4571 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
4572 に着飾るには,『
4573 \emph on
4574 ユーザーの手引き
4575 \emph default
4576 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
4577 プリアンブルに挿入す
4578 る必要のある\SpecialChar LaTeX
4579 コードについて解説します.
4580 \end_layout
4581
4582 \begin_layout Standard
4583 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
4584 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
4585 コマンドには,
4586 \family typewriter
4587
4588 \begin_inset Flex Code
4589 status collapsed
4590
4591 \begin_layout Plain Layout
4592
4593 \family typewriter
4594
4595 \backslash
4596 lhead
4597 \end_layout
4598
4599 \end_inset
4600
4601
4602 \family default
4603
4604 \family typewriter
4605
4606 \begin_inset Flex Code
4607 status collapsed
4608
4609 \begin_layout Plain Layout
4610
4611 \family typewriter
4612
4613 \backslash
4614 chead
4615 \end_layout
4616
4617 \end_inset
4618
4619
4620 \family default
4621
4622 \family typewriter
4623
4624 \begin_inset Flex Code
4625 status collapsed
4626
4627 \begin_layout Plain Layout
4628
4629 \family typewriter
4630
4631 \backslash
4632 rhead
4633 \end_layout
4634
4635 \end_inset
4636
4637
4638 \family default
4639
4640 \begin_inset Flex Code
4641 status collapsed
4642
4643 \begin_layout Plain Layout
4644
4645 \backslash
4646 lfoot
4647 \end_layout
4648
4649 \end_inset
4650
4651 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
4652 \end_layout
4653
4654 \begin_layout Standard
4655
4656 \family typewriter
4657
4658 \backslash
4659 lhead{物書 はじめ}
4660 \end_layout
4661
4662 \begin_layout Standard
4663 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
4664 れるだけです.すなわち,
4665 \end_layout
4666
4667 \begin_layout Standard
4668
4669 \family typewriter
4670
4671 \backslash
4672 cfoot{}
4673 \begin_inset Newline newline
4674 \end_inset
4675
4676
4677 \family default
4678 とします.
4679 \end_layout
4680
4681 \begin_layout Standard
4682 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
4683 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
4684 \end_layout
4685
4686 \begin_layout Standard
4687
4688 \family typewriter
4689
4690 \backslash
4691 lhead{第
4692 \backslash
4693 thesection 節}
4694 \end_layout
4695
4696 \begin_layout Standard
4697
4698 \family typewriter
4699
4700 \backslash
4701 chead{}
4702 \end_layout
4703
4704 \begin_layout Standard
4705
4706 \family typewriter
4707
4708 \backslash
4709 rhead{
4710 \backslash
4711 thepage ページ}
4712 \end_layout
4713
4714 \begin_layout Standard
4715
4716 \family typewriter
4717
4718 \backslash
4719 lfoot{物書 はじめ}
4720 \end_layout
4721
4722 \begin_layout Standard
4723
4724 \family typewriter
4725
4726 \backslash
4727 cfoot{}
4728 \end_layout
4729
4730 \begin_layout Standard
4731
4732 \family typewriter
4733
4734 \backslash
4735 rfoot{
4736 \backslash
4737 today}
4738 \end_layout
4739
4740 \begin_layout Standard
4741 コマンド
4742 \family typewriter
4743
4744 \begin_inset Flex Code
4745 status collapsed
4746
4747 \begin_layout Plain Layout
4748
4749 \family typewriter
4750
4751 \backslash
4752 thesecti
4753 \family default
4754 o
4755 \family typewriter
4756 n
4757 \end_layout
4758
4759 \end_inset
4760
4761
4762 \family default
4763
4764 \begin_inset Flex Code
4765 status collapsed
4766
4767 \begin_layout Plain Layout
4768
4769 \family typewriter
4770
4771 \backslash
4772 thepa
4773 \family default
4774 ge
4775 \end_layout
4776
4777 \end_inset
4778
4779 は,それぞれ\SpecialChar LaTeX
4780 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
4781 \begin_inset Flex Code
4782 status collapsed
4783
4784 \begin_layout Plain Layout
4785
4786 \family typewriter
4787
4788 \backslash
4789 tod
4790 \family default
4791 ay
4792 \end_layout
4793
4794 \end_inset
4795
4796 は,今日の日付を印字するものです.
4797 \end_layout
4798
4799 \begin_layout Standard
4800 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
4801 フッタ罫線は0ptです.太さを変更するには,
4802 \family typewriter
4803
4804 \begin_inset Flex Code
4805 status collapsed
4806
4807 \begin_layout Plain Layout
4808
4809 \family typewriter
4810
4811 \backslash
4812 renewcommand{
4813 \backslash
4814 headrulewidth}{0.4pt}
4815 \end_layout
4816
4817 \end_inset
4818
4819
4820 \family default
4821
4822 \family typewriter
4823
4824 \begin_inset Flex Code
4825 status collapsed
4826
4827 \begin_layout Plain Layout
4828
4829 \family typewriter
4830
4831 \backslash
4832 renewcommand{
4833 \backslash
4834 footrulewidth}{0.4pt}
4835 \end_layout
4836
4837 \end_inset
4838
4839
4840 \family default
4841 のようなコマンドを使用してください.
4842 \end_layout
4843
4844 \begin_layout Standard
4845 \begin_inset Flex Code
4846 status collapsed
4847
4848 \begin_layout Plain Layout
4849
4850 \family typewriter
4851
4852 \backslash
4853 thispagestyle{empty}
4854 \end_layout
4855
4856 \end_inset
4857
4858
4859 \begin_inset Flex Code
4860 status collapsed
4861
4862 \begin_layout Plain Layout
4863
4864 \family typewriter
4865
4866 \backslash
4867 thispagestyle{plain}
4868 \end_layout
4869
4870 \end_inset
4871
4872
4873 \begin_inset Flex Code
4874 status collapsed
4875
4876 \begin_layout Plain Layout
4877
4878 \family typewriter
4879
4880 \backslash
4881 thispagestyle{fancy}
4882 \end_layout
4883
4884 \end_inset
4885
4886 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
4887 コードとして
4888 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
4889 (plain)になるように設定されているのです.
4890 \end_layout
4891
4892 \begin_layout Standard
4893 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
4894 \begin_inset Flex Code
4895 status collapsed
4896
4897 \begin_layout Plain Layout
4898
4899 \family typewriter
4900 fancyhdr
4901 \end_layout
4902
4903 \end_inset
4904
4905 パッケージの取扱説明書をご参照ください(
4906 \begin_inset Flex Code
4907 status collapsed
4908
4909 \begin_layout Plain Layout
4910 fancyhdr.dvi
4911 \end_layout
4912
4913 \end_inset
4914
4915 を探してください).
4916 \end_layout
4917
4918 \begin_layout Standard
4919 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
4920 \end_layout
4921
4922 \begin_layout Standard
4923
4924 \family typewriter
4925
4926 \backslash
4927 lhead{
4928 \backslash
4929 resizebox{1in}{!}{
4930 \backslash
4931 includegraphics{logo.eps}}}
4932 \end_layout
4933
4934 \begin_layout Standard
4935 \noindent
4936 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
4937 \begin_inset Newline newline
4938 \end_inset
4939
4940
4941 \begin_inset Flex Code
4942 status collapsed
4943
4944 \begin_layout Plain Layout
4945 \noindent
4946
4947 \family typewriter
4948
4949 \backslash
4950 usepackage{graphics}
4951 \end_layout
4952
4953 \end_inset
4954
4955 をプリアンブルに宣言する必要があります).
4956 \end_layout
4957
4958 \begin_layout Section
4959 箇条書き(記号)ブリットの指定
4960 \begin_inset CommandInset label
4961 LatexCommand label
4962 name "sec:ブリット"
4963
4964 \end_inset
4965
4966
4967 \end_layout
4968
4969 \begin_layout Standard
4970
4971 \noun on
4972 Allan Rae文
4973 \end_layout
4974
4975 \begin_layout Subsection
4976 はじめに
4977 \end_layout
4978
4979 \begin_layout Standard
4980 \SpecialChar LyX
4981 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
4982 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
4983 \begin_inset Foot
4984 status collapsed
4985
4986 \begin_layout Plain Layout
4987 正確には可能ですが,手動で行う必要があります.
4988 \end_layout
4989
4990 \end_inset
4991
4992
4993 \end_layout
4994
4995 \begin_layout Subsection
4996 外見
4997 \end_layout
4998
4999 \begin_layout Standard
5000 メニュー項目の
5001 \begin_inset Flex MenuItem
5002 status collapsed
5003
5004 \begin_layout Plain Layout
5005 文書\SpecialChar menuseparator
5006 設定
5007 \end_layout
5008
5009 \end_inset
5010
5011 を選択してダイアログを開き,
5012 \begin_inset Flex MenuItem
5013 status collapsed
5014
5015 \begin_layout Plain Layout
5016 ブリット
5017 \end_layout
5018
5019 \end_inset
5020
5021 タブを選択してください.
5022 \end_layout
5023
5024 \begin_layout Standard
5025 このダイアログは,ブリット形の一覧表を提示します.
5026 \begin_inset Flex MenuItem
5027 status collapsed
5028
5029 \begin_layout Plain Layout
5030 フォント
5031 \end_layout
5032
5033 \end_inset
5034
5035 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
5036 \begin_inset Flex MenuItem
5037 status collapsed
5038
5039 \begin_layout Plain Layout
5040 階層
5041 \end_layout
5042
5043 \end_inset
5044
5045 パネルは,変更したい階層を選択するものです.
5046 \begin_inset Flex MenuItem
5047 status collapsed
5048
5049 \begin_layout Plain Layout
5050 任意のブリット
5051 \end_layout
5052
5053 \end_inset
5054
5055 では,指定したい\SpecialChar LaTeX
5056 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5057 プリアンブルで指定する必要があります.
5058 \end_layout
5059
5060 \begin_layout Standard
5061 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
5062 パッケージの対応表です.
5063 \end_layout
5064
5065 \begin_layout Standard
5066 \align center
5067 \begin_inset Tabular
5068 <lyxtabular version="3" rows="7" columns="2">
5069 <features tabularvalignment="middle">
5070 <column alignment="center" valignment="top" width="0pt">
5071 <column alignment="center" valignment="top" width="0pt">
5072 <row>
5073 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5074 \begin_inset Text
5075
5076 \begin_layout Plain Layout
5077 フォント
5078 \end_layout
5079
5080 \end_inset
5081 </cell>
5082 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5083 \begin_inset Text
5084
5085 \begin_layout Plain Layout
5086
5087 \family roman
5088 \series medium
5089 \shape up
5090 \size normal
5091 \emph off
5092 \bar no
5093 \noun off
5094 \color none
5095 必要とするパッケージ
5096 \end_layout
5097
5098 \end_inset
5099 </cell>
5100 </row>
5101 <row>
5102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5103 \begin_inset Text
5104
5105 \begin_layout Plain Layout
5106
5107 \family sans
5108 標準
5109 \end_layout
5110
5111 \end_inset
5112 </cell>
5113 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5114 \begin_inset Text
5115
5116 \begin_layout Plain Layout
5117
5118 \series medium
5119 \shape up
5120 \size normal
5121 \emph off
5122 \bar no
5123 \noun off
5124 \color none
5125 \SpecialChar LaTeX
5126
5127 \family roman
5128 本体
5129 \end_layout
5130
5131 \end_inset
5132 </cell>
5133 </row>
5134 <row>
5135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5136 \begin_inset Text
5137
5138 \begin_layout Plain Layout
5139
5140 \family sans
5141 \series medium
5142 \shape up
5143 \size normal
5144 \emph off
5145 \bar no
5146 \noun off
5147 \color none
5148 数式
5149 \end_layout
5150
5151 \end_inset
5152 </cell>
5153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5154 \begin_inset Text
5155
5156 \begin_layout Plain Layout
5157
5158 \family typewriter
5159 \series medium
5160 \shape up
5161 \size normal
5162 \emph off
5163 \bar no
5164 \noun off
5165 \color none
5166 amssymb.sty
5167 \end_layout
5168
5169 \end_inset
5170 </cell>
5171 </row>
5172 <row>
5173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5174 \begin_inset Text
5175
5176 \begin_layout Plain Layout
5177
5178 \family sans
5179 \series medium
5180 \shape up
5181 \size normal
5182 \emph off
5183 \bar no
5184 \noun off
5185 \color none
5186 絵文字1
5187 \end_layout
5188
5189 \end_inset
5190 </cell>
5191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5192 \begin_inset Text
5193
5194 \begin_layout Plain Layout
5195
5196 \family typewriter
5197 \series medium
5198 \shape up
5199 \size normal
5200 \emph off
5201 \bar no
5202 \noun off
5203 \color none
5204 pifont.sty
5205 \end_layout
5206
5207 \end_inset
5208 </cell>
5209 </row>
5210 <row>
5211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5212 \begin_inset Text
5213
5214 \begin_layout Plain Layout
5215
5216 \family sans
5217 \series medium
5218 \shape up
5219 \size normal
5220 \emph off
5221 \bar no
5222 \noun off
5223 \color none
5224 絵文字2
5225 \end_layout
5226
5227 \end_inset
5228 </cell>
5229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5230 \begin_inset Text
5231
5232 \begin_layout Plain Layout
5233
5234 \family typewriter
5235 \series medium
5236 \shape up
5237 \size normal
5238 \emph off
5239 \bar no
5240 \noun off
5241 \color none
5242 pifont.sty
5243 \end_layout
5244
5245 \end_inset
5246 </cell>
5247 </row>
5248 <row>
5249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5250 \begin_inset Text
5251
5252 \begin_layout Plain Layout
5253
5254 \family sans
5255 \series medium
5256 \shape up
5257 \size normal
5258 \emph off
5259 \bar no
5260 \noun off
5261 \color none
5262 絵文字3
5263 \end_layout
5264
5265 \end_inset
5266 </cell>
5267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5268 \begin_inset Text
5269
5270 \begin_layout Plain Layout
5271
5272 \family typewriter
5273 \series medium
5274 \shape up
5275 \size normal
5276 \emph off
5277 \bar no
5278 \noun off
5279 \color none
5280 pifont.sty
5281 \end_layout
5282
5283 \end_inset
5284 </cell>
5285 </row>
5286 <row>
5287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5288 \begin_inset Text
5289
5290 \begin_layout Plain Layout
5291
5292 \family sans
5293 \series medium
5294 \shape up
5295 \size normal
5296 \emph off
5297 \bar no
5298 \noun off
5299 \color none
5300 絵文字4
5301 \end_layout
5302
5303 \end_inset
5304 </cell>
5305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5306 \begin_inset Text
5307
5308 \begin_layout Plain Layout
5309
5310 \family typewriter
5311 \series medium
5312 \shape up
5313 \size normal
5314 \emph off
5315 \bar no
5316 \noun off
5317 \color none
5318 pifont.sty
5319 \end_layout
5320
5321 \end_inset
5322 </cell>
5323 </row>
5324 </lyxtabular>
5325
5326 \end_inset
5327
5328
5329 \end_layout
5330
5331 \begin_layout Standard
5332 \SpecialChar LyX
5333 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5334 エラーが出るようならば,
5335 パッケージが導入されていない可能性が大です
5336 \begin_inset Foot
5337 status collapsed
5338
5339 \begin_layout Plain Layout
5340 \SpecialChar LyX
5341 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
5342 \end_layout
5343
5344 \end_inset
5345
5346
5347 \end_layout
5348
5349 \begin_layout Subsection
5350 使用法
5351 \end_layout
5352
5353 \begin_layout Standard
5354 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
5355 上には反映されませんが,文書の表示を行えば確認されます.
5356 \end_layout
5357
5358 \begin_layout Standard
5359 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
5360 \begin_inset Foot
5361 status collapsed
5362
5363 \begin_layout Plain Layout
5364 もし
5365 \emph on
5366 本当に
5367 \emph default
5368 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
5369 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
5370 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
5371 \end_layout
5372
5373 \begin_layout Plain Layout
5374 \begin_inset ERT
5375 status open
5376
5377 \begin_layout Plain Layout
5378
5379
5380 \backslash
5381 let
5382 \backslash
5383 savelabelitemi=
5384 \backslash
5385 labelitemi
5386 \end_layout
5387
5388 \end_inset
5389
5390
5391 \end_layout
5392
5393 \begin_layout Plain Layout
5394 \begin_inset ERT
5395 status open
5396
5397 \begin_layout Plain Layout
5398
5399
5400 \backslash
5401 renewcommand
5402 \backslash
5403 labelitemi[0]{
5404 \backslash
5405 small
5406 \backslash
5407 (
5408 \backslash
5409 sharp
5410 \backslash
5411 )}
5412 \end_layout
5413
5414 \end_inset
5415
5416
5417 \end_layout
5418
5419 \begin_layout Itemize
5420 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
5421 コマンド
5422 \begin_inset Flex Code
5423 status collapsed
5424
5425 \begin_layout Plain Layout
5426
5427 \family typewriter
5428
5429 \backslash
5430 renewcommand{}{}
5431 \end_layout
5432
5433 \end_inset
5434
5435 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
5436 更するために,以下の\SpecialChar LaTeX
5437 コードが使用されています.
5438 \end_layout
5439
5440 \begin_deeper
5441 \begin_layout LyX-Code
5442
5443 \family typewriter
5444
5445 \backslash
5446 let
5447 \backslash
5448 savelabelitemi=
5449 \backslash
5450 labelitemi
5451 \end_layout
5452
5453 \begin_layout LyX-Code
5454
5455 \family typewriter
5456
5457 \backslash
5458 renewcommand
5459 \backslash
5460 labelitemi[0]{
5461 \backslash
5462 small
5463 \backslash
5464 (
5465 \backslash
5466 sharp
5467 \backslash
5468 )}
5469 \end_layout
5470
5471 \end_deeper
5472 \begin_layout Itemize
5473 箇条書き(記号)の階層は,
5474 \begin_inset Flex Code
5475 status collapsed
5476
5477 \begin_layout Plain Layout
5478
5479 \backslash
5480 labelitem
5481 \end_layout
5482
5483 \end_inset
5484
5485 コマンドの一部にローマ数字で指定されていることに注意してください.
5486 \end_layout
5487
5488 \begin_layout Itemize
5489 \begin_inset ERT
5490 status open
5491
5492 \begin_layout Plain Layout
5493
5494 [
5495 \backslash
5496 (
5497 \backslash
5498 star
5499 \backslash
5500 )]
5501 \end_layout
5502
5503 \end_inset
5504
5505 各項目のブリットを指定するには,角括弧で囲んだブリット形を,行頭に
5506 \begin_inset Flex Code
5507 status collapsed
5508
5509 \begin_layout Plain Layout
5510 \SpecialChar TeX
5511 コード
5512 \end_layout
5513
5514 \end_inset
5515
5516 として挿入してください.たとえば,この項目の行頭には
5517 \family typewriter
5518
5519 \begin_inset Flex Code
5520 status collapsed
5521
5522 \begin_layout Plain Layout
5523
5524 \family typewriter
5525 [
5526 \backslash
5527 (
5528 \backslash
5529 star
5530 \backslash
5531 )]
5532 \end_layout
5533
5534 \end_inset
5535
5536
5537 \family default
5538 が指定されています.
5539 \end_layout
5540
5541 \begin_layout Plain Layout
5542 \begin_inset ERT
5543 status open
5544
5545 \begin_layout Plain Layout
5546
5547
5548 \backslash
5549 renewcommand
5550 \backslash
5551 labelitemi[0]{
5552 \backslash
5553 savelabelitemi}
5554 \end_layout
5555
5556 \end_inset
5557
5558
5559 \end_layout
5560
5561 \begin_layout Plain Layout
5562 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
5563 \end_layout
5564
5565 \begin_layout LyX-Code
5566
5567 \family typewriter
5568
5569 \backslash
5570 renewcommand
5571 \backslash
5572 labelitemi[0]{
5573 \backslash
5574 savelabelitemi}
5575 \end_layout
5576
5577 \end_inset
5578
5579
5580 \end_layout
5581
5582 \begin_layout Chapter
5583 \SpecialChar LyX
5584 とインターネット網
5585 \end_layout
5586
5587 \begin_layout Standard
5588 \SpecialChar LyX
5589 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
5590 は,常に外部変換子を用いることで実現されていました
5591 \begin_inset Foot
5592 status collapsed
5593
5594 \begin_layout Plain Layout
5595 \SpecialChar LyX
5596 で外部変換子を使うことについての詳細は,取扱説明書『
5597 \emph on
5598 カスタマイズ篇
5599 \emph default
5600 』の「
5601 \emph on
5602 変換子
5603 \emph default
5604 」の節をご覧ください.
5605 \end_layout
5606
5607 \end_inset
5608
5609 .これらは2つのグループに大別できます.1つは,
5610 \begin_inset Flex Code
5611 status collapsed
5612
5613 \begin_layout Plain Layout
5614 htlatex
5615 \end_layout
5616
5617 \end_inset
5618
5619
5620 \begin_inset Flex Code
5621 status collapsed
5622
5623 \begin_layout Plain Layout
5624 html2latex
5625 \end_layout
5626
5627 \end_inset
5628
5629
5630 \begin_inset Flex Code
5631 status collapsed
5632
5633 \begin_layout Plain Layout
5634 plastex
5635 \end_layout
5636
5637 \end_inset
5638
5639 のように,\SpecialChar LaTeX
5640 を中間形式として用い,その\SpecialChar LaTeX
5641 を生成するのに\SpecialChar LyX
5642 を用いるもの.2つめは,
5643 \begin_inset Flex Code
5644 status collapsed
5645
5646 \begin_layout Plain Layout
5647 e\SpecialChar LyX
5648 er
5649 \end_layout
5650
5651 \end_inset
5652
5653 のように,直接\SpecialChar LyX
5654 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
5655 \end_layout
5656
5657 \begin_layout Standard
5658 \SpecialChar LaTeX
5659 ベースの変換子は,原則として,\SpecialChar LaTeX
5660 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
5661 によって生成され
5662 たのか,\SpecialChar TeX
5663 コードで書かれたのかについては気にしません.これらの変換子は,
5664 \begin_inset Flex Code
5665 status collapsed
5666
5667 \begin_layout Plain Layout
5668 aux
5669 \end_layout
5670
5671 \end_inset
5672
5673 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
5674 が生成する
5675 \begin_inset Flex Code
5676 status collapsed
5677
5678 \begin_layout Plain Layout
5679 bbl
5680 \end_layout
5681
5682 \end_inset
5683
5684 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
5685 は解析の非常に難しい言語であり—\SpecialChar TeX
5686 自身だけが\SpecialChar TeX
5687 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
5688 ベースの変換子は
5689 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
5690 \emph on
5691 埋込オブジェクト篇
5692 \emph default
5693 』は,他の変換子では書き出しができるのに,
5694 \begin_inset Flex Code
5695 status collapsed
5696
5697 \begin_layout Plain Layout
5698 htlatex
5699 \end_layout
5700
5701 \end_inset
5702
5703 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
5704 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
5705 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
5706 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
5707 \end_layout
5708
5709 \begin_layout Standard
5710 Alex Fernandezの
5711 \begin_inset Flex Code
5712 status collapsed
5713
5714 \begin_layout Plain Layout
5715 e\SpecialChar LyX
5716 er
5717 \end_layout
5718
5719 \end_inset
5720
5721  (
5722 \begin_inset CommandInset href
5723 LatexCommand href
5724 name "http://elyxer.nongnu.org/"
5725 target "http://elyxer.nongnu.org/"
5726 literal "false"
5727
5728 \end_inset
5729
5730 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
5731 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
5732 \begin_inset Flex Code
5733 status collapsed
5734
5735 \begin_layout Plain Layout
5736 htlatex
5737 \end_layout
5738
5739 \end_inset
5740
5741 よりも質が落ちます.これはHTMLの限界を示しています
5742 \begin_inset Foot
5743 status collapsed
5744
5745 \begin_layout Plain Layout
5746 とはいえ,
5747 \begin_inset Flex Code
5748 status collapsed
5749
5750 \begin_layout Plain Layout
5751 e\SpecialChar LyX
5752 er
5753 \end_layout
5754
5755 \end_inset
5756
5757 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
5758 クセスが利用できる必要があります.
5759 \end_layout
5760
5761 \end_inset
5762
5763 .さらに重要なことは(少なくとも第1.1.1版においては),
5764 \begin_inset Flex Code
5765 status collapsed
5766
5767 \begin_layout Plain Layout
5768 e\SpecialChar LyX
5769 er
5770 \end_layout
5771
5772 \end_inset
5773
5774 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
5775 ユーザが生成する文書の多くにとっては,
5776 \begin_inset Flex Code
5777 status collapsed
5778
5779 \begin_layout Plain Layout
5780 e\SpecialChar LyX
5781 er
5782 \end_layout
5783
5784 \end_inset
5785
5786 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
5787 開発陣は別の方法を採ることとし,\SpecialChar LyX
5788 が\SpecialChar LaTeX
5789 やDocBook,平文を書き出す
5790 ことができるのと同様に,\SpecialChar LyX
5791 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
5792 \end_layout
5793
5794 \begin_layout Standard
5795 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
5796 \begin_inset Foot
5797 status collapsed
5798
5799 \begin_layout Plain Layout
5800 \SpecialChar LyX
5801 ソースツリーもしくは
5802 \begin_inset CommandInset href
5803 LatexCommand href
5804 name "オンラインでのアクセス"
5805 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
5806 literal "false"
5807
5808 \end_inset
5809
5810 にある
5811 \begin_inset Flex Code
5812 status collapsed
5813
5814 \begin_layout Plain Layout
5815 development/HTML.notes
5816 \end_layout
5817
5818 \end_inset
5819
5820 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
5821 \begin_inset CommandInset href
5822 LatexCommand href
5823 name "バグ追跡ページ"
5824 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"
5825 literal "false"
5826
5827 \end_inset
5828
5829 にあるXHTML関連バグ一覧も参照のこと.
5830 \end_layout
5831
5832 \end_inset
5833
5834 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
5835 \end_layout
5836
5837 \begin_layout Standard
5838 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
5839 の一部となっているため,\SpecialChar LyX
5840 が出力する文書について\SpecialChar LyX
5841 が関知しているところのものは,すべて知り得るというところから来ていま
5842
5843 \begin_inset Foot
5844 status collapsed
5845
5846 \begin_layout Plain Layout
5847 他には,これらのルーチンが\SpecialChar LyX
5848 内部にあるため,\SpecialChar LyX
5849 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
5850 \end_layout
5851
5852 \end_inset
5853
5854 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
5855 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
5856 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
5857  1」と出力されたり,「Kapitel 1」と出力されたりするのです.
5858 \end_layout
5859
5860 \begin_layout Standard
5861 汎く一般的に,出力ルーチンは,\SpecialChar LyX
5862 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
5863 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
5864 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
5865 \emph on
5866 自動的に
5867 \emph default
5868 生成します.もし節見出しが,\SpecialChar LyX
5869 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
5870 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
5871 自身の定義済み様
5872 式とを区別しません.どちらの場合も,\SpecialChar LyX
5873 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
5874 ユーザ設定差込枠でもそうです.
5875 \end_layout
5876
5877 \begin_layout Standard
5878 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
5879 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
5880 取扱説明書『
5881 \emph on
5882 カスタマイズ篇
5883 \emph default
5884 』の第5章をごらんください.
5885 \end_layout
5886
5887 \begin_layout Standard
5888 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
5889 \end_layout
5890
5891 \begin_layout Section
5892 XHTMLにおける数式出力
5893 \end_layout
5894
5895 \begin_layout Standard
5896 \SpecialChar LyX
5897 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
5898 \end_layout
5899
5900 \begin_layout Itemize
5901 MathML
5902 \begin_inset Newline newline
5903 \end_inset
5904
5905 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
5906 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
5907 す.
5908 \begin_inset Newline newline
5909 \end_inset
5910
5911 例えば,数式が
5912 \begin_inset Flex Code
5913 status collapsed
5914
5915 \begin_layout Plain Layout
5916 xymatrix
5917 \end_layout
5918
5919 \end_inset
5920
5921 パッケージを使用していたり,\SpecialChar TeX
5922 コードを使用しているなどで,もし\SpecialChar LyX
5923 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
5924 は数式を代わりに画像として出力します.
5925  
5926 \end_layout
5927
5928 \begin_layout Itemize
5929 HTML
5930 \begin_inset Newline newline
5931 \end_inset
5932
5933 前述のとおり,
5934 \begin_inset Flex Code
5935 status collapsed
5936
5937 \begin_layout Plain Layout
5938 elyxer
5939 \end_layout
5940
5941 \end_inset
5942
5943 は,数式をCSSで装飾したHTMLとして出力します
5944 \begin_inset Foot
5945 status collapsed
5946
5947 \begin_layout Plain Layout
5948 \SpecialChar LyX
5949 は,
5950 \begin_inset Flex Code
5951 status collapsed
5952
5953 \begin_layout Plain Layout
5954 elyxer
5955 \end_layout
5956
5957 \end_inset
5958
5959 からのHTML出力のために,CSSの一部を拝借しています.
5960 \end_layout
5961
5962 \end_inset
5963
5964 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
5965 \begin_inset Flex Code
5966 status collapsed
5967
5968 \begin_layout Plain Layout
5969 elyxer
5970 \end_layout
5971
5972 \end_inset
5973
5974 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
5975 \begin_inset Newline newline
5976 \end_inset
5977
5978 例えば,数式が
5979 \begin_inset Flex Code
5980 status collapsed
5981
5982 \begin_layout Plain Layout
5983 xymatrix
5984 \end_layout
5985
5986 \end_inset
5987
5988 パッケージを使用していたり,\SpecialChar TeX
5989 コードを使用しているなどで,もし\SpecialChar LyX
5990 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
5991 は数式を代わりに画像として出力します.
5992  
5993 \end_layout
5994
5995 \begin_layout Itemize
5996 画像
5997 \begin_inset Newline newline
5998 \end_inset
5999
6000
6001 \begin_inset Flex Code
6002 status collapsed
6003
6004 \begin_layout Plain Layout
6005 htlatex
6006 \end_layout
6007
6008 \end_inset
6009
6010 のように,\SpecialChar LyX
6011 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
6012 \begin_inset Foot
6013 status collapsed
6014
6015 \begin_layout Plain Layout
6016 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
6017 \emph on
6018 ありません
6019 \emph default
6020
6021 \end_layout
6022
6023 \end_inset
6024
6025 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
6026 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
6027 かったり,コピーが出来なかったりといったことがあります(執筆時点においては,数式の付番にも問題があります.
6028 \begin_inset CommandInset href
6029 LatexCommand href
6030 name "バグ 6894"
6031 target "http://www.lyx.org/trac/ticket/6894"
6032 literal "false"
6033
6034 \end_inset
6035
6036 を参照のこと.).
6037 \begin_inset Newline newline
6038 \end_inset
6039
6040 画像の寸法は,
6041 \begin_inset Flex MenuItem
6042 status collapsed
6043
6044 \begin_layout Plain Layout
6045 文書\SpecialChar menuseparator
6046 設定\SpecialChar menuseparator
6047 出力
6048 \end_layout
6049
6050 \end_inset
6051
6052 の「数式画像の伸縮」パラメータを変更することで制御できます
6053 \begin_inset Foot
6054 status collapsed
6055
6056 \begin_layout Plain Layout
6057 必要な方のために述べておくと,これは,画像の解像度をdpi (1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
6058 \end_layout
6059
6060 \end_inset
6061
6062
6063 \begin_inset Newline newline
6064 \end_inset
6065
6066 もし\SpecialChar LyX
6067 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
6068 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
6069 を出力します.
6070 \end_layout
6071
6072 \begin_layout Itemize
6073 \SpecialChar LaTeX
6074
6075 \begin_inset Newline newline
6076 \end_inset
6077
6078 最後に,\SpecialChar LyX
6079 は,数式を\SpecialChar LaTeX
6080 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
6081 を描画するのにJavaScript
6082 を使用する,
6083 \begin_inset CommandInset href
6084 LatexCommand href
6085 name "jsMath"
6086 target "http://www.math.union.edu/~dpvc/jsMath/"
6087 literal "false"
6088
6089 \end_inset
6090
6091 のようなツールとともに使用することもできます.\SpecialChar LyX
6092 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
6093 部分を,
6094 \begin_inset Flex Code
6095 status collapsed
6096
6097 \begin_layout Plain Layout
6098 span
6099 \end_layout
6100
6101 \end_inset
6102
6103 (行内数式用)または
6104 \begin_inset Flex Code
6105 status collapsed
6106
6107 \begin_layout Plain Layout
6108 div
6109 \end_layout
6110
6111 \end_inset
6112
6113 (別行立て数式用)に
6114 \begin_inset Flex Code
6115 status collapsed
6116
6117 \begin_layout Plain Layout
6118 class='math'
6119 \end_layout
6120
6121 \end_inset
6122
6123 を指定したもので,包んで出力します.
6124 \end_layout
6125
6126 \begin_layout Standard
6127 これらの出力方法のいずれかを
6128 \begin_inset Flex MenuItem
6129 status collapsed
6130
6131 \begin_layout Plain Layout
6132 文書\SpecialChar menuseparator
6133 設定\SpecialChar menuseparator
6134 出力
6135 \end_layout
6136
6137 \end_inset
6138
6139 で選択しなくてはなりません.既定では,\SpecialChar LyX
6140 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
6141 \end_layout
6142
6143 \begin_layout Standard
6144 最後に,\SpecialChar LyX
6145 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
6146 \begin_inset Foot
6147 status collapsed
6148
6149 \begin_layout Plain Layout
6150 その他にも,\SpecialChar LyX
6151 は,差込枠に\SpecialChar TeX
6152 コードが含まれていると画像出力に回帰するので,数式中に
6153 \begin_inset Formula $a=b\relax$
6154 \end_inset
6155
6156 のような無害な\SpecialChar TeX
6157 コードを挿入することによって,画像出力を強制することができます.
6158 \end_layout
6159
6160 \end_inset
6161
6162
6163 \end_layout
6164
6165 \begin_layout Section
6166 書誌情報と引用
6167 \end_layout
6168
6169 \begin_layout Standard
6170 XHTML出力は,書誌情報と引用を完全にサポートしています.
6171 \end_layout
6172
6173 \begin_layout Standard
6174 引用ラベルは,\SpecialChar LyX
6175 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
6176 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
6177 使用している場合には,\SpecialChar LyX
6178 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
6179 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
6180 は,Bib\SpecialChar TeX
6181 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
6182 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
6183 \end_layout
6184
6185 \begin_layout Standard
6186 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
6187 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
6188 ください.
6189 \end_layout
6190
6191 \begin_layout Standard
6192 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
6193 \end_layout
6194
6195 \begin_layout Quote
6196 Jason Stanley, 
6197 \begin_inset Quotes eld
6198 \end_inset
6199
6200 Context and Logical Form
6201 \begin_inset Quotes erd
6202 \end_inset
6203
6204 , in 
6205 \emph on
6206 Language in Context: Selected Essays
6207 \emph default
6208  (Oxford: Oxford University Press, 2007), pp.
6209  30–68.
6210 \end_layout
6211
6212 \begin_layout Quote
6213 Jason Stanley, 
6214 \begin_inset Quotes eld
6215 \end_inset
6216
6217 Semantics in Context
6218 \begin_inset Quotes erd
6219 \end_inset
6220
6221 , in 
6222 \emph on
6223 Language in Context: Selected Essays
6224 \emph default
6225  (Oxford: Oxford University Press, 2007), pp.
6226  201–30.
6227 \end_layout
6228
6229 \begin_layout Standard
6230 これは,遠くないうちに修正されるでしょう.
6231 \end_layout
6232
6233 \begin_layout Standard
6234 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
6235 は同じ情報を繰り返し出力してしまいます.
6236 \end_layout
6237
6238 \begin_layout Section
6239 索引
6240 \end_layout
6241
6242 \begin_layout Standard
6243 \SpecialChar LyX
6244 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
6245 \end_layout
6246
6247 \begin_layout Standard
6248 索引の書き出しは,
6249 \emph on
6250 ユーザーの手引き
6251 \emph default
6252 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
6253 \begin_inset Foot
6254 status collapsed
6255
6256 \begin_layout Plain Layout
6257 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
6258 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
6259 で入力しなくてはならないようなものをそのまま入力しているのです.
6260 \end_layout
6261
6262 \end_inset
6263
6264 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
6265 \end_layout
6266
6267 \begin_layout Itemize
6268 索引項目のグループ化(下層項目): \SpecialChar LyX
6269 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
6270 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
6271 \end_layout
6272
6273 \begin_layout Itemize
6274 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
6275 得られるだけです.
6276 \end_layout
6277
6278 \begin_layout Itemize
6279 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
6280 が「|see\SpecialChar ldots
6281 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
6282 す.
6283 \end_layout
6284
6285 \begin_layout Itemize
6286 索引項目の整序: \SpecialChar LyX
6287 は整序順の変更をサポートします.\SpecialChar LyX
6288 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
6289 出します.現在のところ,\SpecialChar LyX
6290 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
6291 \end_layout
6292
6293 \begin_layout Itemize
6294 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
6295 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
6296 うな文法はサポートされません.\SpecialChar LyX
6297 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
6298 \end_layout
6299
6300 \begin_layout Itemize
6301 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
6302 を印字しますので,その索引は必ず置くようにしてください.
6303 \end_layout
6304
6305 \begin_layout Section
6306 記号一覧および用語集
6307 \end_layout
6308
6309 \begin_layout Standard
6310 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
6311 \end_layout
6312
6313 \begin_layout Chapter
6314 \SpecialChar LyX
6315 サーバー
6316 \begin_inset CommandInset label
6317 LatexCommand label
6318 name "chap:LyXサーバー"
6319
6320 \end_inset
6321
6322
6323 \end_layout
6324
6325 \begin_layout Section
6326 はじめに
6327 \end_layout
6328
6329 \begin_layout Standard
6330 「\SpecialChar LyX
6331 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
6332 と通信したり,\SpecialChar LyX
6333 コマンドを実行させたり,\SpecialChar LyX
6334 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
6335 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
6336 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
6337 とが可能となります.
6338 \end_layout
6339
6340 \begin_layout Section
6341 \SpecialChar LyX
6342 サーバーを開始するには
6343 \end_layout
6344
6345 \begin_layout Standard
6346 \SpecialChar LyX
6347 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
6348 \begin_inset Flex Code
6349 status collapsed
6350
6351 \begin_layout Plain Layout
6352 UserDir
6353 \end_layout
6354
6355 \end_inset
6356
6357 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
6358 \emph on
6359 ローカルの
6360 \emph default
6361 パイプは
6362 \begin_inset Flex Code
6363 status collapsed
6364
6365 \begin_layout Plain Layout
6366
6367 \backslash
6368
6369 \backslash
6370 .
6371 \backslash
6372 pipe
6373 \end_layout
6374
6375 \end_inset
6376
6377 に特別なオブジェクトとして置かれます),「
6378 \begin_inset Flex Code
6379 status collapsed
6380
6381 \begin_layout Plain Layout
6382 .lyxpipe.in
6383 \end_layout
6384
6385 \end_inset
6386
6387 」および「
6388 \begin_inset Flex Code
6389 status collapsed
6390
6391 \begin_layout Plain Layout
6392 .lyxpipe.out
6393 \end_layout
6394
6395 \end_inset
6396
6397 」という名前がついています.外部プログラムは,
6398 \begin_inset Flex Code
6399 status collapsed
6400
6401 \begin_layout Plain Layout
6402 .lyxpipe.in
6403 \end_layout
6404
6405 \end_inset
6406
6407 に書き込みを行い,戻りデータを
6408 \begin_inset Flex Code
6409 status collapsed
6410
6411 \begin_layout Plain Layout
6412 .lyxpipe.out
6413 \end_layout
6414
6415 \end_inset
6416
6417 から読み出します.パイプ名の語幹は,
6418 \begin_inset Flex MenuItem
6419 status collapsed
6420
6421 \begin_layout Plain Layout
6422 ツール\SpecialChar menuseparator
6423 設定
6424 \end_layout
6425
6426 \end_inset
6427
6428 から,たとえば「
6429 \begin_inset Flex Code
6430 status collapsed
6431
6432 \begin_layout Plain Layout
6433 /home/myhome/lyxpipe
6434 \end_layout
6435
6436 \end_inset
6437
6438 」あるいはWindowsでは「
6439 \begin_inset Flex Code
6440 status collapsed
6441
6442 \begin_layout Plain Layout
6443
6444 \backslash
6445
6446 \backslash
6447 .
6448 \backslash
6449 pipe
6450 \backslash
6451 lyxpipe
6452 \end_layout
6453
6454 \end_inset
6455
6456 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
6457 \begin_inset Flex Code
6458 status collapsed
6459
6460 \begin_layout Plain Layout
6461 "
6462 \backslash
6463
6464 \backslash
6465 .
6466 \backslash
6467 pipe
6468 \backslash
6469 my
6470 \backslash
6471 lyx
6472 \backslash
6473 pipe"
6474 \end_layout
6475
6476 \end_inset
6477
6478 なども使用できます).サーバーを開始するためには,これを
6479 \emph on
6480 手動で設定しなくてはなりません
6481 \emph default
6482
6483 \end_layout
6484
6485 \begin_layout Standard
6486 \SpecialChar LyX
6487 は,パイプを生成するに際して,「
6488 \begin_inset Flex Code
6489 status collapsed
6490
6491 \begin_layout Plain Layout
6492 .in
6493 \end_layout
6494
6495 \end_inset
6496
6497 」および「
6498 \begin_inset Flex Code
6499 status collapsed
6500
6501 \begin_layout Plain Layout
6502 .out
6503 \end_layout
6504
6505 \end_inset
6506
6507 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
6508 は他の\SpecialChar LyX
6509 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
6510 らかの理由で,\SpecialChar LyX
6511 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
6512 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
6513 プを削除したのちに,\SpecialChar LyX
6514 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
6515 ることはありません.
6516 \end_layout
6517
6518 \begin_layout Standard
6519 サーバーを使用する\SpecialChar LyX
6520 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
6521 \begin_inset Flex Code
6522 status collapsed
6523
6524 \begin_layout Plain Layout
6525 preferences
6526 \end_layout
6527
6528 \end_inset
6529
6530 ファイルを使用させるなど,別々の設定を使用する必要があります.
6531 \end_layout
6532
6533 \begin_layout Standard
6534 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
6535 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
6536 \begin_inset Flex Code
6537 status collapsed
6538
6539 \begin_layout Plain Layout
6540 lyx -dbg lyxserver
6541 \end_layout
6542
6543 \end_inset
6544
6545 として起動してください.
6546 \end_layout
6547
6548 \begin_layout Standard
6549 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
6550 \begin_inset Newline newline
6551 \end_inset
6552
6553
6554 \begin_inset Flex Code
6555 status collapsed
6556
6557 \begin_layout Plain Layout
6558 development/lyxserver/server_monitor.cpp
6559 \end_layout
6560
6561 \end_inset
6562
6563 にあります.
6564 \end_layout
6565
6566 \begin_layout Standard
6567 もう一つの便利なツールとして,
6568 \begin_inset Flex Code
6569 status collapsed
6570
6571 \begin_layout Plain Layout
6572 src/client/lyxclient
6573 \end_layout
6574
6575 \end_inset
6576
6577 にあるコマンドラインベースのクライアントがあります.
6578 \end_layout
6579
6580 \begin_layout Section
6581 通常の通信
6582 \end_layout
6583
6584 \begin_layout Standard
6585 \SpecialChar LyX
6586 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
6587 \end_layout
6588
6589 \begin_layout Quote
6590 LYXCMD:
6591 \emph on
6592 クライアント名
6593 \emph default
6594 :
6595 \emph on
6596 関数
6597 \emph default
6598 :
6599 \emph on
6600 引数
6601 \end_layout
6602
6603 \begin_layout Description
6604 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
6605 が返答をす
6606 る際,クライアント名をエコーするときだけです.
6607 \end_layout
6608
6609 \begin_layout Description
6610 関数 は,\SpecialChar LyX
6611 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
6612 \end_layout
6613
6614 \begin_layout Description
6615 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
6616 \end_layout
6617
6618 \begin_layout Standard
6619 \SpecialChar LyX
6620 からの返答は,出力パイプに送り出され,
6621 \end_layout
6622
6623 \begin_layout Quote
6624 INFO:
6625 \emph on
6626 クライアント名
6627 \emph default
6628 :
6629 \emph on
6630 関数
6631 \emph default
6632 :
6633 \emph on
6634 データ
6635 \end_layout
6636
6637 \begin_layout Standard
6638 の書式をしています.ここで
6639 \emph on
6640 クライアント名
6641 \emph default
6642
6643 \emph on
6644 関数
6645 \emph default
6646 は,コマンド要求からそのままエコーされますが,
6647 \emph on
6648 データ
6649 \emph default
6650 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
6651 の内部状態に関する情報を返しますが,空のデータ応答
6652 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
6653 \end_layout
6654
6655 \begin_layout Standard
6656 エラーが発生した場合の\SpecialChar LyX
6657 の返答は
6658 \end_layout
6659
6660 \begin_layout Quote
6661 ERROR:
6662 \emph on
6663 クライアント名
6664 \emph default
6665 :
6666 \emph on
6667 関数
6668 \emph default
6669 :
6670 \emph on
6671 エラーメッセージ
6672 \end_layout
6673
6674 \begin_layout Standard
6675 の書式をしており,
6676 \emph on
6677 エラーメッセージ
6678 \emph default
6679 には,なぜコマンドが失敗したかの説明が入っているはずです.
6680 \end_layout
6681
6682 \begin_layout Standard
6683 (例)
6684 \end_layout
6685
6686 \begin_layout LyX-Code
6687 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6688 \begin_inset Newline newline
6689 \end_inset
6690
6691 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6692 \begin_inset Newline newline
6693 \end_inset
6694
6695 read a <~/.lyxpipe.out
6696 \begin_inset Newline newline
6697 \end_inset
6698
6699 echo $a
6700 \end_layout
6701
6702 \begin_layout Section
6703 通知
6704 \end_layout
6705
6706 \begin_layout Standard
6707 \SpecialChar LyX
6708 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
6709 \begin_inset Flex Ruby
6710 status collapsed
6711
6712 \begin_layout Plain Layout
6713
6714 \begin_inset Argument post:1
6715 status collapsed
6716
6717 \begin_layout Plain Layout
6718 キー
6719 \end_layout
6720
6721 \end_inset
6722
6723
6724 \end_layout
6725
6726 \end_inset
6727
6728 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
6729 はこの通知を行います.\SpecialChar LyX
6730 が送る文字列の書式は
6731 \end_layout
6732
6733 \begin_layout Quote
6734 \begin_inset Flex Code
6735 status collapsed
6736
6737 \begin_layout Plain Layout
6738 NOTIFY:
6739 \end_layout
6740
6741 \end_inset
6742
6743
6744 \emph on
6745 鍵列
6746 \end_layout
6747
6748 \begin_layout Standard
6749 となっていて,
6750 \emph on
6751 鍵列
6752 \emph default
6753 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
6754 \end_layout
6755
6756 \begin_layout Standard
6757 この機構は,\SpecialChar LyX
6758 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
6759 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
6760 コマンドを発行する\SpecialChar LyX
6761 要求と\SpecialChar LyX
6762 コールを使用する関数を開始するのです.
6763 \end_layout
6764
6765 \begin_layout Section
6766 単純な\SpecialChar LyX
6767 サーバープロトコル
6768 \end_layout
6769
6770 \begin_layout Standard
6771 \SpecialChar LyX
6772 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
6773 \end_layout
6774
6775 \begin_layout Quote
6776 LYXSRV:
6777 \emph on
6778 クライアント名
6779 \emph default
6780 :
6781 \emph on
6782 プロトコルメッセージ
6783 \end_layout
6784
6785 \begin_layout Standard
6786 の書式をしており,
6787 \emph on
6788 プロトコルメッセージ
6789 \emph default
6790 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
6791 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
6792 が終了するこ
6793 とをクライアントに伝えるのには,\SpecialChar LyX
6794 が「bye」を送信します.
6795 \end_layout
6796
6797 \begin_layout Section
6798 DVIとPDFの遡及検索
6799 \end_layout
6800
6801 \begin_layout Standard
6802 DVI/PDFビューア
6803 \begin_inset Foot
6804 status collapsed
6805
6806 \begin_layout Plain Layout
6807 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
6808 \lang english
6809 Qpdfview on Unix
6810 \lang japanese
6811 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
6812 \end_layout
6813
6814 \end_inset
6815
6816 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
6817 特定の場所をクリックすることによって,\SpecialChar LyX
6818 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
6819 と情報交換を行う必要があります
6820 .これは,命名パイプ(
6821 \emph on
6822 lyxpipe
6823 \emph default
6824 )を使用するか,\SpecialChar LyX
6825 が作業ディレクトリに生成するUNIXドメインソケット(
6826 \emph on
6827 lyxsocket
6828 \emph default
6829 )を使用する(これは
6830 \begin_inset Flex Code
6831 status collapsed
6832
6833 \begin_layout Plain Layout
6834 lyxclient
6835 \end_layout
6836
6837 \end_inset
6838
6839 プログラムが\SpecialChar LyX
6840 と通信するのに使用している方法です)ことで,\SpecialChar LyX
6841 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
6842 を橋渡しする補助スクリプトを必要とする
6843 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
6844 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
6845 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
6846 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
6847 \end_layout
6848
6849 \begin_layout Subsection
6850 \begin_inset CommandInset label
6851 LatexCommand label
6852 name "subsec:遡及検索"
6853
6854 \end_inset
6855
6856 自動有効化
6857 \end_layout
6858
6859 \begin_layout Standard
6860 \begin_inset Flex MenuItem
6861 status collapsed
6862
6863 \begin_layout Plain Layout
6864 文書\SpecialChar menuseparator
6865 設定\SpecialChar menuseparator
6866 出力
6867 \end_layout
6868
6869 \end_inset
6870
6871 メニューで
6872 \begin_inset Flex MenuItem
6873 status collapsed
6874
6875 \begin_layout Plain Layout
6876 出力と同期
6877 \end_layout
6878
6879 \end_inset
6880
6881 オプションを有効にすれば,ほとんどの場合,\SpecialChar LyX
6882 がすべてをうまくこなしてくれます.その場合,\SpecialChar LyX
6883 は,自動的に,必要なSync\SpecialChar TeX
6884 マクロ(PDFの場合)や,srcltxパッケー
6885 ジ(DVIの場合)を挿入してくれます.このオプションは,
6886 \begin_inset Flex MenuItem
6887 status collapsed
6888
6889 \begin_layout Plain Layout
6890 表示/更新
6891 \end_layout
6892
6893 \end_inset
6894
6895 ツールバーからも容易にアクセスすることができます.
6896 \end_layout
6897
6898 \begin_layout Standard
6899 もし,これとは別の設定が必要な場合には,
6900 \begin_inset Flex MenuItem
6901 status collapsed
6902
6903 \begin_layout Plain Layout
6904 文書\SpecialChar menuseparator
6905 設定\SpecialChar menuseparator
6906 出力\SpecialChar menuseparator
6907 出力と同期
6908 \end_layout
6909
6910 \end_inset
6911
6912 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
6913 \end_layout
6914
6915 \begin_layout Standard
6916 方式として
6917 \begin_inset Flex Code
6918 status collapsed
6919
6920 \begin_layout Plain Layout
6921
6922 \backslash
6923 synctex=1
6924 \end_layout
6925
6926 \end_inset
6927
6928 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
6929 \begin_inset Flex Code
6930 status collapsed
6931
6932 \begin_layout Plain Layout
6933
6934 \backslash
6935 synctex=-1
6936 \end_layout
6937
6938 \end_inset
6939
6940 を指定してください.
6941 \end_layout
6942
6943 \begin_layout Standard
6944 また,
6945 \begin_inset Flex Code
6946 status collapsed
6947
6948 \begin_layout Plain Layout
6949 srcltx
6950 \end_layout
6951
6952 \end_inset
6953
6954 パッケージや
6955 \begin_inset Flex Code
6956 status collapsed
6957
6958 \begin_layout Plain Layout
6959 src-specials
6960 \end_layout
6961
6962 \end_inset
6963
6964 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
6965 \begin_inset Flex Code
6966 status collapsed
6967
6968 \begin_layout Plain Layout
6969 srcltx
6970 \end_layout
6971
6972 \end_inset
6973
6974 パッケージや
6975 \begin_inset Flex Code
6976 status collapsed
6977
6978 \begin_layout Plain Layout
6979 src-specials
6980 \end_layout
6981
6982 \end_inset
6983
6984 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
6985 \end_layout
6986
6987 \begin_layout Standard
6988 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
6989 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
6990 \begin_inset CommandInset ref
6991 LatexCommand ref
6992 reference "subsec:特定のビューアを設定して使うには"
6993
6994 \end_inset
6995
6996 節に進むことができます.
6997 \end_layout
6998
6999 \begin_layout Subsection
7000 手動有効化
7001 \end_layout
7002
7003 \begin_layout Standard
7004 \SpecialChar LaTeX
7005 は,遡及検索のために複数の方法を提供しています.ある方法は
7006 \begin_inset Flex Code
7007 status collapsed
7008
7009 \begin_layout Plain Layout
7010 latex/pdflatex
7011 \end_layout
7012
7013 \end_inset
7014
7015 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
7016 頒布版が既に特定の方法を提供しているか(組み込みによ
7017 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
7018 \end_layout
7019
7020 \begin_layout Subsubsection*
7021 src-special経由のDVI組み込み検索(DVIのみ)
7022 \end_layout
7023
7024 \begin_layout Standard
7025 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
7026 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7027 頒布版はすべて対応しています),安定
7028 して動作します.これを有効にするには,
7029 \begin_inset Flex MenuItem
7030 status collapsed
7031
7032 \begin_layout Plain Layout
7033 設定\SpecialChar menuseparator
7034 ファイル処理\SpecialChar menuseparator
7035 変換子
7036 \end_layout
7037
7038 \end_inset
7039
7040
7041 \begin_inset Flex MenuItem
7042 status collapsed
7043
7044 \begin_layout Plain Layout
7045 LaTeX (plain)->DVI
7046 \end_layout
7047
7048 \end_inset
7049
7050 ないし
7051 \begin_inset Flex MenuItem
7052 status collapsed
7053
7054 \begin_layout Plain Layout
7055 LaTeX (plain)->DraftDVI
7056 \end_layout
7057
7058 \end_inset
7059
7060 変換子を
7061 \begin_inset Flex Code
7062 status collapsed
7063
7064 \begin_layout Plain Layout
7065 latex -src-specials $$i
7066 \end_layout
7067
7068 \end_inset
7069
7070 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
7071 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
7072 \end_layout
7073
7074 \begin_layout Subsubsection*
7075 外部パッケージ(PDFSyncおよびsrcltx)
7076 \end_layout
7077
7078 \begin_layout Standard
7079
7080 \emph on
7081 pdfsync
7082 \emph default
7083 および
7084 \emph on
7085 srcltx
7086 \emph default
7087 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
7088 プリアンブルで以下のようにパッケージを読み込んで
7089 ください.
7090 \end_layout
7091
7092 \begin_layout Itemize
7093 PDFの遡及検索には
7094 \begin_inset Flex Code
7095 status collapsed
7096
7097 \begin_layout Plain Layout
7098
7099 \backslash
7100 usepackage{pdfsync}
7101 \end_layout
7102
7103 \end_inset
7104
7105
7106 \end_layout
7107
7108 \begin_layout Itemize
7109 DVIの遡及検索には
7110 \begin_inset Flex Code
7111 status collapsed
7112
7113 \begin_layout Plain Layout
7114
7115 \backslash
7116 usepackage[active]{srcltx}
7117 \end_layout
7118
7119 \end_inset
7120
7121
7122 \end_layout
7123
7124 \begin_layout Standard
7125 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
7126 \end_layout
7127
7128 \begin_layout LyX-Code
7129
7130 \backslash
7131 usepackage{ifpdf}
7132 \begin_inset Newline newline
7133 \end_inset
7134
7135
7136 \backslash
7137 ifpdf
7138 \begin_inset Newline newline
7139 \end_inset
7140
7141   
7142 \backslash
7143 usepackage{pdfsync}
7144 \begin_inset Newline newline
7145 \end_inset
7146
7147
7148 \backslash
7149 else
7150 \begin_inset Newline newline
7151 \end_inset
7152
7153   
7154 \backslash
7155 usepackage[active]{srcltx}
7156 \begin_inset Newline newline
7157 \end_inset
7158
7159
7160 \backslash
7161 fi
7162 \end_layout
7163
7164 \begin_layout Standard
7165 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
7166 \end_layout
7167
7168 \begin_layout Standard
7169 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
7170
7171 \end_layout
7172
7173 \begin_layout Subsubsection*
7174 Sync\SpecialChar TeX
7175 を使った組み込み遡及検索(DVIおよびPDF)
7176 \end_layout
7177
7178 \begin_layout Standard
7179 \begin_inset Flex Code
7180 status collapsed
7181
7182 \begin_layout Plain Layout
7183 (pdf)latex
7184 \end_layout
7185
7186 \end_inset
7187
7188 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
7189 \emph on
7190 Sync\SpecialChar TeX
7191
7192 \emph default
7193 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
7194 るためには,少なくとも\SpecialChar TeX
7195 Live 2008か最近のMik\SpecialChar TeX
7196 頒布版が必要です.また,既にSync\SpecialChar TeX
7197 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
7198 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDF).
7199 \end_layout
7200
7201 \begin_layout Standard
7202 DVI出力でSync\SpecialChar TeX
7203 を有効にするには,
7204 \begin_inset Flex MenuItem
7205 status collapsed
7206
7207 \begin_layout Plain Layout
7208 設定\SpecialChar menuseparator
7209 ファイル処理\SpecialChar menuseparator
7210 変換子
7211 \end_layout
7212
7213 \end_inset
7214
7215
7216 \begin_inset Flex MenuItem
7217 status collapsed
7218
7219 \begin_layout Plain Layout
7220 LaTeX (plain)->DVI
7221 \end_layout
7222
7223 \end_inset
7224
7225 ないし
7226 \begin_inset Flex MenuItem
7227 status collapsed
7228
7229 \begin_layout Plain Layout
7230 LaTeX (plain)->DraftDVI
7231 \end_layout
7232
7233 \end_inset
7234
7235 変換子を
7236 \begin_inset Flex Code
7237 status collapsed
7238
7239 \begin_layout Plain Layout
7240 latex -synctex=1 $$i
7241 \end_layout
7242
7243 \end_inset
7244
7245 に変更します.PDF出力用には,
7246 \begin_inset Flex MenuItem
7247 status collapsed
7248
7249 \begin_layout Plain Layout
7250 LaTeX (pdflatex)->PDF (pdflatex)
7251 \end_layout
7252
7253 \end_inset
7254
7255 変換子を
7256 \begin_inset Flex Code
7257 status collapsed
7258
7259 \begin_layout Plain Layout
7260 pdflatex -synctex=1 $$i
7261 \end_layout
7262
7263 \end_inset
7264
7265 に変更してください.また,ビューアをSync\SpecialChar TeX
7266 で使うのに設定を行う必要があるかどうか,お使いのビューアの取扱説明書をご確認ください.
7267 \begin_inset Foot
7268 status collapsed
7269
7270 \begin_layout Plain Layout
7271 \begin_inset Flex Code
7272 status collapsed
7273
7274 \begin_layout Plain Layout
7275 -synctex=1
7276 \end_layout
7277
7278 \end_inset
7279
7280 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
7281 \begin_inset Flex Code
7282 status collapsed
7283
7284 \begin_layout Plain Layout
7285 -synctex=-1
7286 \end_layout
7287
7288 \end_inset
7289
7290 を使用してください.
7291 \end_layout
7292
7293 \end_inset
7294
7295
7296 \end_layout
7297
7298 \begin_layout Subsection
7299 特定のビューアを設定して使うには
7300 \begin_inset CommandInset label
7301 LatexCommand label
7302 name "subsec:特定のビューアを設定して使うには"
7303
7304 \end_inset
7305
7306
7307 \end_layout
7308
7309 \begin_layout Subsubsection*
7310 Xdvi(全プラットフォーム)
7311 \end_layout
7312
7313 \begin_layout Standard
7314 \SpecialChar LyX
7315 は,
7316 \begin_inset Flex Code
7317 status collapsed
7318
7319 \begin_layout Plain Layout
7320 lyxclient
7321 \end_layout
7322
7323 \end_inset
7324
7325 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
7326 \begin_inset Flex Code
7327 status collapsed
7328
7329 \begin_layout Plain Layout
7330 xdvi
7331 \end_layout
7332
7333 \end_inset
7334
7335 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
7336 ,Mac OS X上ではAlt-クリックで始動します).
7337 \end_layout
7338
7339 \begin_layout Standard
7340 しかし,何らかの理由で,\SpecialChar LyX
7341 と通信するのにソケットではなく命名パイプを使用したい場合には,
7342 \begin_inset Flex MenuItem
7343 status collapsed
7344
7345 \begin_layout Plain Layout
7346 設定\SpecialChar menuseparator
7347 ファイル処理\SpecialChar menuseparator
7348 ファイル書式
7349 \end_layout
7350
7351 \end_inset
7352
7353 のDVIビューアを
7354 \begin_inset Flex Code
7355 status collapsed
7356
7357 \begin_layout Plain Layout
7358 xdvi -editor "lyxeditor.sh %f %l"
7359 \end_layout
7360
7361 \end_inset
7362
7363 (
7364 \begin_inset Flex Code
7365 status collapsed
7366
7367 \begin_layout Plain Layout
7368 lyxeditor.sh
7369 \end_layout
7370
7371 \end_inset
7372
7373 は適切なスクリプト名)に変更してください
7374 \begin_inset Foot
7375 status collapsed
7376
7377 \begin_layout Plain Layout
7378 Mac OS X上では,
7379 \begin_inset Flex Code
7380 status collapsed
7381
7382 \begin_layout Plain Layout
7383 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7384 \end_layout
7385
7386 \end_inset
7387
7388 としなくてはなりません.
7389 \end_layout
7390
7391 \end_inset
7392
7393 .たとえば,最低限のシェルスクリプトは
7394 \end_layout
7395
7396 \begin_layout LyX-Code
7397 #!/bin/sh
7398 \begin_inset Newline newline
7399 \end_inset
7400
7401 LYXPIPE="/path/to/lyxpipe"
7402 \begin_inset Newline newline
7403 \end_inset
7404
7405 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7406 \begin_inset Newline newline
7407 \end_inset
7408
7409 echo "$COMMAND" > "${LYXPIPE}".in || exit
7410 \begin_inset Newline newline
7411 \end_inset
7412
7413 read TMP < "${LYXPIPE}".out || exit
7414 \end_layout
7415
7416 \begin_layout Standard
7417 のようになります.ここで
7418 \begin_inset Flex Code
7419 status collapsed
7420
7421 \begin_layout Plain Layout
7422 /path/to/lyxpipe
7423 \end_layout
7424
7425 \end_inset
7426
7427 は,
7428 \begin_inset Flex MenuItem
7429 status collapsed
7430
7431 \begin_layout Plain Layout
7432 設定\SpecialChar menuseparator
7433 パス
7434 \end_layout
7435
7436 \end_inset
7437
7438 で指定したLyXServerパイプのパスを指定してください.
7439 \begin_inset Foot
7440 status collapsed
7441
7442 \begin_layout Plain Layout
7443 ソース頒布版の
7444 \begin_inset Flex Code
7445 status collapsed
7446
7447 \begin_layout Plain Layout
7448 development/tools
7449 \end_layout
7450
7451 \end_inset
7452
7453 フォルダには,ユーザが設定した
7454 \emph on
7455 lyxpipe
7456 \emph default
7457 を探し出す
7458 \begin_inset Flex Code
7459 status collapsed
7460
7461 \begin_layout Plain Layout
7462 lyxeditor
7463 \end_layout
7464
7465 \end_inset
7466
7467 スクリプトがあります.
7468 \end_layout
7469
7470 \end_inset
7471
7472
7473 \end_layout
7474
7475 \begin_layout Subsubsection*
7476 MacDviX(Mac OS X)
7477 \end_layout
7478
7479 \begin_layout Standard
7480 \begin_inset Flex Code
7481 status collapsed
7482
7483 \begin_layout Plain Layout
7484 /Applications/MacDviX_Folder/calleditor.script
7485 \end_layout
7486
7487 \end_inset
7488
7489 の終わりに
7490 \end_layout
7491
7492 \begin_layout LyX-Code
7493 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7494 \begin_inset Newline newline
7495 \end_inset
7496
7497 exit 1
7498 \end_layout
7499
7500 \begin_layout Standard
7501 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
7502 を導入した場合には,それに従って上記の行を修正してください.
7503 \end_layout
7504
7505 \begin_layout Standard
7506 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
7507 \end_layout
7508
7509 \begin_layout Subsubsection*
7510 Skim(Mac OS X)
7511 \end_layout
7512
7513 \begin_layout Standard
7514 \begin_inset Flex MenuItem
7515 status collapsed
7516
7517 \begin_layout Plain Layout
7518 設定\SpecialChar menuseparator
7519 ファイル処理\SpecialChar menuseparator
7520 ファイル書式\SpecialChar menuseparator
7521 PDF (pdflatex)
7522 \end_layout
7523
7524 \end_inset
7525
7526 のビューア設定に
7527 \begin_inset Flex Code
7528 status collapsed
7529
7530 \begin_layout Plain Layout
7531 open -a Skim.app $$i
7532 \end_layout
7533
7534 \end_inset
7535
7536 と入力し,
7537 \begin_inset Flex MenuItem
7538 status collapsed
7539
7540 \begin_layout Plain Layout
7541 Skim\SpecialChar menuseparator
7542 設定\SpecialChar menuseparator
7543 Sync
7544 \end_layout
7545
7546 \end_inset
7547
7548 でLyXを選択してください.
7549 \end_layout
7550
7551 \begin_layout Standard
7552 遡及検索は,COMMAND-SHIFT-クリックで始動します.
7553 \end_layout
7554
7555 \begin_layout Subsubsection*
7556 Okular (KDE)
7557 \end_layout
7558
7559 \begin_layout Standard
7560 \begin_inset Flex MenuItem
7561 status collapsed
7562
7563 \begin_layout Plain Layout
7564 設定\SpecialChar menuseparator
7565 Okularを設定\SpecialChar ldots
7566 \SpecialChar menuseparator
7567 編集
7568 \end_layout
7569
7570 \end_inset
7571
7572 で「カスタムテキストエディタ」を選択し,コマンドに
7573 \begin_inset Flex Code
7574 status collapsed
7575
7576 \begin_layout Plain Layout
7577 lyxclient -g %f %l
7578 \end_layout
7579
7580 \end_inset
7581
7582 を加えてください.
7583 \end_layout
7584
7585 \begin_layout Standard
7586 遡及検索は,SHIFT-クリックで始動します.
7587 \end_layout
7588
7589 \begin_layout Subsubsection*
7590 Qpdfview (UNIX)
7591 \end_layout
7592
7593 \begin_layout Standard
7594 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
7595 をサポートしています.
7596 \begin_inset Flex MenuItem
7597 status collapsed
7598
7599 \begin_layout Plain Layout
7600 Edit\SpecialChar menuseparator
7601 Settings\SpecialChar menuseparator
7602 Behavior
7603 \end_layout
7604
7605 \end_inset
7606
7607 を開いて「Source editor」項目の入力フィールドをクリックし,
7608 \begin_inset Flex Code
7609 status collapsed
7610
7611 \begin_layout Plain Layout
7612 lyxclient -g %1 %2
7613 \end_layout
7614
7615 \end_inset
7616
7617 というコマンドを入力してください.
7618 \end_layout
7619
7620 \begin_layout Standard
7621 遡及検索は,ダブルクリックで始動します.
7622 \end_layout
7623
7624 \begin_layout Subsubsection*
7625 YAP(Windows)
7626 \end_layout
7627
7628 \begin_layout Standard
7629 yapを起動し,
7630 \begin_inset Flex MenuItem
7631 status collapsed
7632
7633 \begin_layout Plain Layout
7634 View\SpecialChar menuseparator
7635 Options
7636 \end_layout
7637
7638 \end_inset
7639
7640 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
7641 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7642
7643  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
7644 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
7645 \begin_inset Flex Code
7646 status collapsed
7647
7648 \begin_layout Plain Layout
7649 lyxeditor.bat
7650 \end_layout
7651
7652 \end_inset
7653
7654 (以下参照)のあるディレクトリを見つけます.
7655 \begin_inset Flex Code
7656 status collapsed
7657
7658 \begin_layout Plain Layout
7659 lyxeditor.bat
7660 \end_layout
7661
7662 \end_inset
7663
7664 を選択してプログラムの引数を
7665 \begin_inset Flex Code
7666 status collapsed
7667
7668 \begin_layout Plain Layout
7669 %f %l
7670 \end_layout
7671
7672 \end_inset
7673
7674 と指定してください.
7675 \begin_inset Flex Code
7676 status collapsed
7677
7678 \begin_layout Plain Layout
7679 lyxeditor.bat
7680 \end_layout
7681
7682 \end_inset
7683
7684 は,
7685 \emph on
7686 lyxpipe
7687 \emph default
7688 を通じて\SpecialChar LyX
7689 と通信するためのラッパとして使用され,以下のようになっています.
7690 \end_layout
7691
7692 \begin_layout LyX-Code
7693 @echo off
7694 \begin_inset Newline newline
7695 \end_inset
7696
7697 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7698 \backslash
7699
7700 \backslash
7701 .
7702 \backslash
7703 pipe
7704 \backslash
7705 lyxpipe.in
7706 \begin_inset Newline newline
7707 \end_inset
7708
7709 type 
7710 \backslash
7711
7712 \backslash
7713 .
7714 \backslash
7715 pipe
7716 \backslash
7717 lyxpipe.out
7718 \end_layout
7719
7720 \begin_layout Standard
7721 \SpecialChar LyX
7722 で指定した\SpecialChar LyX
7723 Serverパイプパスが,
7724 \begin_inset Flex Code
7725 status collapsed
7726
7727 \begin_layout Plain Layout
7728
7729 \backslash
7730
7731 \backslash
7732 .
7733 \backslash
7734 pipe
7735 \backslash
7736 lyxpipe
7737 \end_layout
7738
7739 \end_inset
7740
7741 となっていることを確認するか,
7742 \begin_inset Flex Code
7743 status collapsed
7744
7745 \begin_layout Plain Layout
7746 lyxeditor.bat
7747 \end_layout
7748
7749 \end_inset
7750
7751 ラッパの方を適切に修正してください.
7752 \end_layout
7753
7754 \begin_layout Standard
7755 yapでは,遡及検索はダブルクリックで始動します.
7756 \end_layout
7757
7758 \begin_layout Subsubsection*
7759 SumatraPDF(Windows)
7760 \end_layout
7761
7762 \begin_layout Standard
7763 SumatraPDFを遡及検索で使用するためには,
7764 \begin_inset Flex MenuItem
7765 status collapsed
7766
7767 \begin_layout Plain Layout
7768 設定\SpecialChar menuseparator
7769 ファイル処理\SpecialChar menuseparator
7770 ファイル書式\SpecialChar menuseparator
7771 PDF (pdflatex)
7772 \end_layout
7773
7774 \end_inset
7775
7776 のビューア設定で
7777 \begin_inset Flex Code
7778 status collapsed
7779
7780 \begin_layout Plain Layout
7781 SumatraPDF -inverse-search 
7782 \begin_inset Quotes eld
7783 \end_inset
7784
7785 lyxeditor.bat %f %l
7786 \begin_inset Quotes erd
7787 \end_inset
7788
7789
7790 \end_layout
7791
7792 \end_inset
7793
7794 (
7795 \begin_inset Flex Code
7796 status collapsed
7797
7798 \begin_layout Plain Layout
7799 lyxeditor.bat
7800 \end_layout
7801
7802 \end_inset
7803
7804 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
7805 \end_layout
7806
7807 \begin_layout Standard
7808 遡及検索はダブルクリックで始動します.
7809 \end_layout
7810
7811 \begin_layout Subsubsection*
7812 YAP(Cygwin)
7813 \end_layout
7814
7815 \begin_layout Standard
7816 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
7817 \begin_inset Flex MenuItem
7818 status collapsed
7819
7820 \begin_layout Plain Layout
7821 View\SpecialChar menuseparator
7822 Options
7823 \end_layout
7824
7825 \end_inset
7826
7827 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
7828 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7829
7830  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
7831 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
7832 \begin_inset Flex Code
7833 status collapsed
7834
7835 \begin_layout Plain Layout
7836 lyxeditor.exe
7837 \end_layout
7838
7839 \end_inset
7840
7841 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
7842 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
7843 \begin_inset Flex Code
7844 status collapsed
7845
7846 \begin_layout Plain Layout
7847 lyxeditor.exe
7848 \end_layout
7849
7850 \end_inset
7851
7852 を選択してプログラムの引数を
7853 \begin_inset Flex Code
7854 status collapsed
7855
7856 \begin_layout Plain Layout
7857 -g %f %l
7858 \end_layout
7859
7860 \end_inset
7861
7862 と指定してください.これによって,\SpecialChar LyX
7863 との通信に
7864 \emph on
7865 lyxsocket
7866 \emph default
7867 が使用されるようになります.何らかの理由で
7868 \emph on
7869 lyxpipe
7870 \emph default
7871 を使用したい場合には,
7872 \begin_inset Flex Code
7873 status collapsed
7874
7875 \begin_layout Plain Layout
7876 -g
7877 \end_layout
7878
7879 \end_inset
7880
7881 オプションを削除して,\SpecialChar LyX
7882 設定で\SpecialChar LyX
7883 Serverパイプパスを指定することを忘れないでください.
7884 \end_layout
7885
7886 \begin_layout Standard
7887 yapでは,遡及検索はダブルクリックで始動します.
7888 \end_layout
7889
7890 \begin_layout Subsubsection*
7891 SumatraPDF(Cygwin)
7892 \end_layout
7893
7894 \begin_layout Standard
7895 SumatraPDFを遡及検索で使用するためには,
7896 \begin_inset Flex MenuItem
7897 status collapsed
7898
7899 \begin_layout Plain Layout
7900 設定\SpecialChar menuseparator
7901 ファイル処理\SpecialChar menuseparator
7902 ファイル書式\SpecialChar menuseparator
7903 PDF (pdflatex)
7904 \end_layout
7905
7906 \end_inset
7907
7908 のビューア設定で
7909 \begin_inset Flex Code
7910 status collapsed
7911
7912 \begin_layout Plain Layout
7913 SumatraPDF.sh
7914 \end_layout
7915
7916 \end_inset
7917
7918 と入力してください.ここで
7919 \begin_inset Flex Code
7920 status collapsed
7921
7922 \begin_layout Plain Layout
7923 SumatraPDF.sh
7924 \end_layout
7925
7926 \end_inset
7927
7928 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
7929 \begin_inset Flex Code
7930 status collapsed
7931
7932 \begin_layout Plain Layout
7933 /usr/local/bin
7934 \end_layout
7935
7936 \end_inset
7937
7938 がもっとも良い選択肢でしょう).
7939 \end_layout
7940
7941 \begin_layout LyX-Code
7942 #!/bin/bash
7943 \begin_inset Newline newline
7944 \end_inset
7945
7946 cd $(dirname $1)
7947 \begin_inset Newline newline
7948 \end_inset
7949
7950 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
7951 \end_layout
7952
7953 \begin_layout Standard
7954 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
7955 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
7956 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
7957 \begin_inset Flex Code
7958 status collapsed
7959
7960 \begin_layout Plain Layout
7961 -g
7962 \end_layout
7963
7964 \end_inset
7965
7966
7967 \emph on
7968 lyxsocket
7969 \emph default
7970 経由の通信を有効にします.ここでも,
7971 \emph on
7972 lyxpipe
7973 \emph default
7974 を使用したい場合には,
7975 \begin_inset Flex Code
7976 status collapsed
7977
7978 \begin_layout Plain Layout
7979 -g
7980 \end_layout
7981
7982 \end_inset
7983
7984 オプションを削除して,\SpecialChar LyX
7985 設定で\SpecialChar LyX
7986 Serverパイプパスを指定することを忘れないでください.
7987 \end_layout
7988
7989 \begin_layout Standard
7990 遡及検索はダブルクリックで始動します.
7991 \end_layout
7992
7993 \begin_layout Section
7994 順検索
7995 \end_layout
7996
7997 \begin_layout Standard
7998 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
7999 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
8000 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
8001 文書の好きなところに置いて,
8002 \begin_inset Flex MenuItem
8003 status collapsed
8004
8005 \begin_layout Plain Layout
8006 移動\SpecialChar menuseparator
8007 順検索
8008 \end_layout
8009
8010 \end_inset
8011
8012 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8013 \begin_inset Flex MenuItem
8014 status collapsed
8015
8016 \begin_layout Plain Layout
8017 順検索
8018 \end_layout
8019
8020 \end_inset
8021
8022 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
8023 \end_layout
8024
8025 \begin_layout Standard
8026 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
8027 ソースに関する情報を追加する必要があります.これは,第
8028 \begin_inset CommandInset ref
8029 LatexCommand ref
8030 reference "subsec:遡及検索"
8031
8032 \end_inset
8033
8034 節に述べられている方法で実行することができます.
8035 \end_layout
8036
8037 \begin_layout Standard
8038 次に,
8039 \begin_inset Flex MenuItem
8040 status collapsed
8041
8042 \begin_layout Plain Layout
8043 ツール\SpecialChar menuseparator
8044 設定\SpecialChar menuseparator
8045 出力\SpecialChar menuseparator
8046 一般
8047 \end_layout
8048
8049 \end_inset
8050
8051 で自分の使うビューアを利用するように,\SpecialChar LyX
8052 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
8053 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
8054 \end_layout
8055
8056 \begin_layout Itemize
8057 \begin_inset Flex Code
8058 status collapsed
8059
8060 \begin_layout Plain Layout
8061 $$n
8062 \end_layout
8063
8064 \end_inset
8065
8066 :行番号
8067 \end_layout
8068
8069 \begin_layout Itemize
8070 \begin_inset Flex Code
8071 status collapsed
8072
8073 \begin_layout Plain Layout
8074 $$t
8075 \end_layout
8076
8077 \end_inset
8078
8079 :書き出された(一時).texファイル名(パスを除く)
8080 \end_layout
8081
8082 \begin_layout Itemize
8083 \begin_inset Flex Code
8084 status collapsed
8085
8086 \begin_layout Plain Layout
8087 $$f
8088 \end_layout
8089
8090 \end_inset
8091
8092 :書き出された(一時).texファイル名(パスを含む)
8093 \end_layout
8094
8095 \begin_layout Itemize
8096 \begin_inset Flex Code
8097 status collapsed
8098
8099 \begin_layout Plain Layout
8100 $$o
8101 \end_layout
8102
8103 \end_inset
8104
8105 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
8106 \end_layout
8107
8108 \begin_layout Standard
8109 yap・xdvi・okular
8110 \begin_inset Foot
8111 status collapsed
8112
8113 \begin_layout Plain Layout
8114 \begin_inset Flex MenuItem
8115 status collapsed
8116
8117 \begin_layout Plain Layout
8118 ツール\SpecialChar menuseparator
8119 設定\SpecialChar menuseparator
8120 ファイル処理\SpecialChar menuseparator
8121 ファイル形式
8122 \end_layout
8123
8124 \end_inset
8125
8126
8127 \begin_inset Flex Code
8128 status collapsed
8129
8130 \begin_layout Plain Layout
8131 okular –unique
8132 \end_layout
8133
8134 \end_inset
8135
8136 と設定すると良いかもしれません.
8137 \end_layout
8138
8139 \end_inset
8140
8141 ・qpdfview・Sumatra PDFなど,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
8142 \begin_inset Foot
8143 status collapsed
8144
8145 \begin_layout Plain Layout
8146 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
8147 \begin_inset CommandInset href
8148 LatexCommand href
8149 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8150 literal "false"
8151
8152 \end_inset
8153
8154 からダウンロードすることができます.
8155 \end_layout
8156
8157 \end_inset
8158
8159 .広く使われているPDFビューアの多く(特にAdobe Reader)は,順検索を全く提供していませんが,他の一部のビューア(たとえばEvinceやxpdf)で
8160 は,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少なくとも「近く」には移動することができます.この後者の機能は,syn
8161 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
8162 \end_layout
8163
8164 \begin_layout Standard
8165 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
8166 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
8167 チェックして),その形式に適切な設定を選択します.
8168 \end_layout
8169
8170 \begin_layout Chapter
8171 特別な文書クラス
8172 \end_layout
8173
8174 \begin_layout Section
8175 A&Aの論文
8176 \end_layout
8177
8178 \begin_layout Standard
8179
8180 \noun on
8181 Peter Sütterlin文
8182 \end_layout
8183
8184 \begin_layout Subsection
8185 はじめに
8186 \end_layout
8187
8188 \begin_layout Standard
8189 この節では,文書クラス
8190 \family typewriter
8191 aa.cls
8192 \family default
8193 第5.01版を使用して科学雑誌
8194 \emph on
8195 Astronomy and Astrophysics
8196 \emph default
8197 (『天文学と宇宙物理学』: 
8198 \begin_inset Flex URL
8199 status collapsed
8200
8201 \begin_layout Plain Layout
8202
8203 http://www.edpsciences.fr/aa/
8204 \end_layout
8205
8206 \end_inset
8207
8208 )に投稿する論文を執筆するための\SpecialChar LyX
8209 の使用法を説明します.このパッケージは,FTPサイト
8210 \end_layout
8211
8212 \begin_layout Standard
8213 \align center
8214 \begin_inset VSpace medskip
8215 \end_inset
8216
8217
8218 \begin_inset Flex URL
8219 status collapsed
8220
8221 \begin_layout Plain Layout
8222
8223 ftp://ftp.edpsciences.org/pub/aa/readme.html
8224 \end_layout
8225
8226 \end_inset
8227
8228
8229 \begin_inset VSpace medskip
8230 \end_inset
8231
8232
8233 \end_layout
8234
8235 \begin_layout Standard
8236 \noindent
8237 からダウンロードすることができます.
8238 \end_layout
8239
8240 \begin_layout Standard
8241 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
8242 書であるに過ぎません.
8243 \end_layout
8244
8245 \begin_layout Standard
8246 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
8247 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
8248 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
8249 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
8250 \family sans
8251 article (A&A V4)
8252 \family default
8253 として残してあります.
8254 \family typewriter
8255 $\SpecialChar LyX
8256 Dir/layouts/aapaper.layout
8257 \family default
8258 のコメントをご参照ください.
8259 \end_layout
8260
8261 \begin_layout Subsection
8262 最初の一歩
8263 \end_layout
8264
8265 \begin_layout Standard
8266 \SpecialChar LyX
8267 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
8268 \end_layout
8269
8270 \begin_layout Itemize
8271
8272 \family sans
8273 文書\SpecialChar menuseparator
8274 設定
8275 \family default
8276 ダイアログで
8277 \family sans
8278 article (A&A)
8279 \family default
8280 を選択してください(まぁ,これは自明ですね).
8281 \end_layout
8282
8283 \begin_layout Itemize
8284
8285 \family sans
8286 ページレイアウト
8287 \family default
8288 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
8289 \end_layout
8290
8291 \begin_layout Subsection
8292 へッダ部
8293 \end_layout
8294
8295 \begin_layout Standard
8296 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
8297 \end_layout
8298
8299 \begin_layout Itemize
8300
8301 \family sans
8302 タイトル
8303 \family default
8304 :[必須]
8305 \end_layout
8306
8307 \begin_layout Itemize
8308
8309 \family sans
8310 サブタイトル
8311 \family default
8312 :[非必須]
8313 \end_layout
8314
8315 \begin_layout Itemize
8316
8317 \family sans
8318 著者
8319 \family default
8320 :[必須]
8321 \end_layout
8322
8323 \begin_layout Itemize
8324
8325 \family sans
8326 住所
8327 \family default
8328 :[必須]
8329 \end_layout
8330
8331 \begin_layout Itemize
8332
8333 \family sans
8334 抜き刷り
8335 \family default
8336 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
8337 \end_layout
8338
8339 \begin_layout Itemize
8340
8341 \family sans
8342 メール
8343 \family default
8344 :[非必須]連絡用の電子メールアドレス.
8345 \end_layout
8346
8347 \begin_layout Itemize
8348
8349 \family sans
8350 日付
8351 \family default
8352 :[必須]推奨されるフォーマットは,
8353 \family typewriter
8354 Received: <日付>; Accepted <日付>
8355 \family default
8356 です.
8357 \end_layout
8358
8359 \begin_layout Standard
8360
8361 \family typewriter
8362
8363 \backslash
8364 maketitle
8365 \family default
8366 コマンドは,へッダが終了した場所に,\SpecialChar LyX
8367 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
8368 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
8369 \end_layout
8370
8371 \begin_layout Standard
8372 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
8373 \family sans
8374 挿入\SpecialChar menuseparator
8375 脚注
8376 \family default
8377 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
8378 は自動的に
8379 \family typewriter
8380
8381 \backslash
8382 thanks{}
8383 \family default
8384 を使用します.
8385 \end_layout
8386
8387 \begin_layout Standard
8388 これらのトピックの他に,このマクロは,\SpecialChar LyX
8389 が対応していない,以下の3つの\SpecialChar LaTeX
8390 コマンドを使用します.
8391 \end_layout
8392
8393 \begin_layout Itemize
8394 複数の著者名あるいは所属名を区切るための
8395 \family typewriter
8396
8397 \backslash
8398 and
8399 \end_layout
8400
8401 \begin_layout Itemize
8402 著者と所属の対応付けをするための
8403 \family typewriter
8404
8405 \backslash
8406 inst{<番号>}
8407 \family default
8408 .所属は,
8409 \family sans
8410 住所
8411 \family default
8412 フィールドに現れる順に番号が付けられるので,各著者に番号マーカーを置く必要があります.
8413 \end_layout
8414
8415 \begin_layout Itemize
8416
8417 \family typewriter
8418
8419 \backslash
8420 email{アドレス}
8421 \family default
8422 は,至急連絡用に電子メールアドレスを付記します.
8423 \end_layout
8424
8425 \begin_layout Standard
8426 いずれの場合にも,\SpecialChar LyX
8427 中に対応したコマンドを入力し,\SpecialChar LaTeX
8428 コードとしてマークしてください.
8429 \begin_inset Flex Code
8430 status collapsed
8431
8432 \begin_layout Plain Layout
8433 $\SpecialChar LyX
8434 Dir/examples
8435 \end_layout
8436
8437 \end_inset
8438
8439 にある用例を参照してください.
8440 \end_layout
8441
8442 \begin_layout Subsection
8443 概要
8444 \end_layout
8445
8446 \begin_layout Standard
8447 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
8448 れなくてはなりません.これは,まだ\SpecialChar LyX
8449 では実装されていないため,\SpecialChar LaTeX
8450 コマンド
8451 \family typewriter
8452
8453 \backslash
8454 keywords{}
8455 \family default
8456 を手動で入力し,\SpecialChar LaTeX
8457 コードとしてマークする必要があります.用例にある論文を参照してください.
8458 \end_layout
8459
8460 \begin_layout Subsection
8461 サポートされる環境
8462 \end_layout
8463
8464 \begin_layout Standard
8465 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
8466 \end_layout
8467
8468 \begin_layout Itemize
8469
8470 \family sans
8471 標準
8472 \end_layout
8473
8474 \begin_layout Itemize
8475
8476 \family sans
8477
8478 \end_layout
8479
8480 \begin_layout Itemize
8481
8482 \family sans
8483 小節
8484 \end_layout
8485
8486 \begin_layout Itemize
8487
8488 \family sans
8489 小々節
8490 \end_layout
8491
8492 \begin_layout Itemize
8493
8494 \family sans
8495 箇条書き(記号)
8496 \end_layout
8497
8498 \begin_layout Itemize
8499
8500 \family sans
8501 箇条書き(連番)
8502 \end_layout
8503
8504 \begin_layout Itemize
8505
8506 \family sans
8507 箇条書き(記述)
8508 \end_layout
8509
8510 \begin_layout Itemize
8511
8512 \family sans
8513 キャプション
8514 \end_layout
8515
8516 \begin_layout Itemize
8517
8518 \family sans
8519 概要
8520 \end_layout
8521
8522 \begin_layout Itemize
8523
8524 \family sans
8525 謝辞(Acknowledgment)
8526 \end_layout
8527
8528 \begin_layout Itemize
8529
8530 \family sans
8531 書誌情報
8532 \end_layout
8533
8534 \begin_layout Itemize
8535
8536 \family sans
8537 \SpecialChar LaTeX
8538
8539 \end_layout
8540
8541 \begin_layout Subsection
8542 \SpecialChar LyX
8543 でサポートされていないコマンド
8544 \end_layout
8545
8546 \begin_layout Standard
8547 \SpecialChar LyX
8548
8549 \family sans
8550 article (A&A)
8551 \family default
8552 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
8553 \end_layout
8554
8555 \begin_layout Itemize
8556
8557 \family typewriter
8558
8559 \backslash
8560 and
8561 \end_layout
8562
8563 \begin_layout Itemize
8564
8565 \family typewriter
8566
8567 \backslash
8568 email
8569 \end_layout
8570
8571 \begin_layout Itemize
8572
8573 \family typewriter
8574
8575 \backslash
8576 appendix
8577 \end_layout
8578
8579 \begin_layout Itemize
8580
8581 \family typewriter
8582
8583 \backslash
8584 authorrunning
8585 \end_layout
8586
8587 \begin_layout Itemize
8588
8589 \family typewriter
8590
8591 \backslash
8592 inst{}
8593 \end_layout
8594
8595 \begin_layout Itemize
8596
8597 \family typewriter
8598
8599 \backslash
8600 keywords{}
8601 \end_layout
8602
8603 \begin_layout Itemize
8604
8605 \family typewriter
8606
8607 \backslash
8608 object{}
8609 \end_layout
8610
8611 \begin_layout Itemize
8612
8613 \family typewriter
8614
8615 \backslash
8616 titlerunning{}
8617 \end_layout
8618
8619 \begin_layout Standard
8620 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
8621 \series bold
8622 これを\SpecialChar LaTeX
8623 コマンドとしてマークすることを忘れないで下さい.
8624 \end_layout
8625
8626 \begin_layout Subsection
8627 図フロートおよび表フロート
8628 \end_layout
8629
8630 \begin_layout Standard
8631 \SpecialChar LyX
8632 は,必要なフロート環境
8633 \family sans
8634 figure
8635 \family default
8636
8637 \family sans
8638 figure*
8639 \family default
8640
8641 \family sans
8642 table
8643 \family default
8644
8645 \family sans
8646 table*
8647 \family default
8648 をサポートしていますので,ここでは詳しい説明はしません.
8649 \emph on
8650 ユーザーの手引き
8651 \emph default
8652 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
8653 \family sans
8654 編集\SpecialChar menuseparator
8655 段落設定
8656 \family default
8657 で配置を変更してください.
8658 \end_layout
8659
8660 \begin_layout Standard
8661 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
8662 \end_layout
8663
8664 \begin_layout Enumerate
8665
8666 \family sans
8667 挿入\SpecialChar menuseparator
8668 フロート\SpecialChar menuseparator
8669
8670 \family default
8671 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
8672 \begin_inset Flex MenuItem
8673 status collapsed
8674
8675 \begin_layout Plain Layout
8676 設定\SpecialChar ldots
8677
8678 \end_layout
8679
8680 \end_inset
8681
8682 を選択し,それで開かれる
8683 \family sans
8684 フロートの設定
8685 \family default
8686 ダイアログで
8687 \family sans
8688 段をまたぐ
8689 \family default
8690 を有効にして,
8691 \family sans
8692 OK
8693 \family default
8694 ボタンを押します.
8695 \end_layout
8696
8697 \begin_layout Enumerate
8698 キャプション文を入力します.
8699 \end_layout
8700
8701 \begin_layout Enumerate
8702 キャプションの前にカーソルを移動し,
8703 \family sans
8704 Return
8705 \family default
8706 を押して,カーソルをキャプションの上に移動します.
8707 \end_layout
8708
8709 \begin_layout Enumerate
8710 図を挿入します.
8711 \end_layout
8712
8713 \begin_layout Enumerate
8714 カーソルを図の後ろに置いて,
8715 \family sans
8716 挿入\SpecialChar menuseparator
8717 整形\SpecialChar menuseparator
8718 水平方向の空白
8719 \family default
8720 を選択して
8721 \family sans
8722 水平方向の空白の設定
8723 \family default
8724 ダイアログを開き,
8725 \family sans
8726 空白
8727 \family default
8728 ドロップダウンから
8729 \family sans
8730 水平フィル
8731 \family default
8732 を選択して,水平フィルを挿入します.
8733 \end_layout
8734
8735 \begin_layout Enumerate
8736
8737 \family sans
8738 挿入\SpecialChar menuseparator
8739 TeXコード
8740 \family default
8741 を選択して,\SpecialChar TeX
8742 差込枠を挿入します.
8743 \end_layout
8744
8745 \begin_layout Enumerate
8746 \SpecialChar TeX
8747 差込枠中に
8748 \family typewriter
8749
8750 \backslash
8751 parbox[b]{55mm}{
8752 \family default
8753 と入力します.
8754 \series bold
8755 ここでは波括弧を閉じないでください.
8756 \end_layout
8757
8758 \begin_layout Enumerate
8759 カーソルをキャプション文の後ろに移動し,
8760 \family sans
8761 挿入\SpecialChar menuseparator
8762 TeXコード
8763 \family default
8764 を選択して,別の\SpecialChar TeX
8765 差込枠を挿入し,その中に閉じ括弧を入力します .
8766 \end_layout
8767
8768 \begin_layout Standard
8769 例示用論文中の図もご参照ください.
8770 \end_layout
8771
8772 \begin_layout Subsection
8773 Refereeレイアウト
8774 \end_layout
8775
8776 \begin_layout Standard
8777 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
8778 \family typewriter
8779 referee
8780 \family default
8781 オプションを与える必要があります.これは,
8782 \family sans
8783 文書\SpecialChar menuseparator
8784 設定
8785 \family default
8786 ダイアログの
8787 \family sans
8788 任意設定
8789 \family default
8790 クラスオプションフィールドを使って行うことができます.この欄に
8791 \family typewriter
8792 referee
8793 \family default
8794 と云う文字列を入力してください.
8795 \end_layout
8796
8797 \begin_layout Subsection
8798 例示用論文
8799 \end_layout
8800
8801 \begin_layout Standard
8802
8803 \family sans
8804 Examples
8805 \family default
8806 ディレクトリには,\SpecialChar LyX
8807 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
8808 用に直したものです.これはヒントを得るために使用したり,元の
8809  \SpecialChar LaTeX
8810 コードと\SpecialChar LyX
8811 での書き方の比較に使ったりしてください.
8812 \end_layout
8813
8814 \begin_layout Section
8815 AAS\SpecialChar TeX
8816
8817 \end_layout
8818
8819 \begin_layout Standard
8820
8821 \noun on
8822 Mike Ressler
8823 \noun default
8824
8825 \end_layout
8826
8827 \begin_layout Subsection
8828 はじめに
8829 \end_layout
8830
8831 \begin_layout Standard
8832 AAS\SpecialChar TeX
8833 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
8834 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
8835  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
8836
8837 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
8838 は,同マクロ第5.0版以降を必要としており,でき
8839 ればここで説明されている第5.2版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
8840 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
8841 とは互換性がありません.AAS\SpecialChar TeX
8842 パッケージは
8843 ,以下のAAS\SpecialChar TeX
8844 ウェブサイトからダウンロードできるでしょう.
8845 \end_layout
8846
8847 \begin_layout Standard
8848 \align center
8849 \begin_inset VSpace medskip
8850 \end_inset
8851
8852
8853 \begin_inset Flex URL
8854 status collapsed
8855
8856 \begin_layout Plain Layout
8857
8858 https://aas.org/aastex/aastex-downloads
8859 \end_layout
8860
8861 \end_inset
8862
8863
8864 \begin_inset VSpace medskip
8865 \end_inset
8866
8867
8868 \end_layout
8869
8870 \begin_layout Standard
8871 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
8872 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
8873 は,AASTeXの全コマン
8874 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
8875 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
8876 いることを確認するのは,あなたの責任です.
8877 \end_layout
8878
8879 \begin_layout Subsection
8880 新しい論文を書き始める
8881 \end_layout
8882
8883 \begin_layout Standard
8884 論文を書き始めるには,AAS\SpecialChar TeX
8885 ひな型ファイルを土台に始めることを強くお勧めします.
8886 \begin_inset Flex MenuItem
8887 status collapsed
8888
8889 \begin_layout Plain Layout
8890 ファイル\SpecialChar menuseparator
8891 新規(ひな型使用)
8892 \end_layout
8893
8894 \end_inset
8895
8896 をクリックして,新しいファイル名を入力し,ひな型
8897 \family typewriter
8898 aastex.lyx
8899 \family default
8900 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
8901 \family typewriter
8902 <>
8903 \family default
8904 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
8905 コマンド・AAS\SpecialChar TeX
8906 環境の多くは,\SpecialChar LyX
8907 中で直接実行することができますが,特に
8908 \family typewriter
8909
8910 \backslash
8911 altaffilmark
8912 \family default
8913
8914 \family typewriter
8915
8916 \backslash
8917 altaffiltext
8918 \family default
8919 のようにできないものもあります.この二つのコマンドは,ひな型ファイルを開いたとき,赤色に表示されているのですぐ目に入ることでしょう.このようなコマンドは,直接L
8920 a\SpecialChar TeX
8921 コードを入力して,それを\SpecialChar TeX
8922 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
8923 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます.A
8924 AS\SpecialChar TeX
8925 文書に必要とされる \SpecialChar TeX
8926 コードを最小にするよう努力はしていますが,まだ望まれるほどにはなっていません.
8927 \end_layout
8928
8929 \begin_layout Subsection
8930 論文を書き終わったら
8931 \end_layout
8932
8933 \begin_layout Standard
8934 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
8935 \end_layout
8936
8937 \begin_layout Enumerate
8938 論文を \SpecialChar LaTeX
8939 ファイルとして書き出します(
8940 \family sans
8941 ファイル\SpecialChar menuseparator
8942 書き出し\SpecialChar menuseparator
8943 LateX
8944 \family default
8945 ).
8946 \end_layout
8947
8948 \begin_layout Enumerate
8949 出力した
8950 \family typewriter
8951 .tex
8952 \family default
8953 ファイルを好きなエディタで編集します.
8954 \end_layout
8955
8956 \begin_deeper
8957 \begin_layout Enumerate
8958
8959 \family typewriter
8960
8961 \backslash
8962 documentclass
8963 \family default
8964 コマンドよりも前のコメント行を削除します.
8965 \end_layout
8966
8967 \begin_layout Enumerate
8968
8969 \family typewriter
8970
8971 \backslash
8972 usepackage...{fontenc}
8973 \family default
8974 という行があれば(通常は
8975 \family typewriter
8976
8977 \backslash
8978 documentclass
8979 \family default
8980 の直後にあります)削除します.また,
8981 \family typewriter
8982
8983 \backslash
8984 secnumdepth
8985 \family default
8986 行があれば,これも削除します.
8987 \end_layout
8988
8989 \begin_layout Enumerate
8990 \SpecialChar LaTeX
8991 プリアンブル中に意図的に置いたコマンド(
8992 \family typewriter
8993 .tex
8994 \family default
8995 ファイル中,「User specified \SpecialChar LaTeX
8996  commands」というコメントの直後にあります)を除いて,
8997 \family typewriter
8998
8999 \backslash
9000 makeatletter
9001 \family default
9002
9003 \family typewriter
9004
9005 \backslash
9006 makeatother
9007 \family default
9008 の間のもの(これらのコマンドを含む)をすべて削除します.
9009 \end_layout
9010
9011 \end_deeper
9012 \begin_layout Enumerate
9013 編集後のファイルを \SpecialChar LaTeX
9014 にかけて,正しく処理されることを確認します.
9015 \end_layout
9016
9017 \begin_layout Enumerate
9018 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
9019 \end_layout
9020
9021 \begin_layout Enumerate
9022 投稿してください.
9023 \end_layout
9024
9025 \begin_layout Subsection
9026 特定のコマンドに関するコメント
9027 \end_layout
9028
9029 \begin_layout Standard
9030 AAS\SpecialChar TeX
9031 ユーザーの手引き(
9032 \family typewriter
9033 aasguide.tex
9034 \family default
9035 )に,各AAS\SpecialChar TeX
9036 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
9037 て,必要なところだけコメントを加えることにしましょう.
9038 \end_layout
9039
9040 \begin_layout Subsubsection
9041 期待通りに動作するもの
9042 \end_layout
9043
9044 \begin_layout Standard
9045 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
9046 \family typewriter
9047
9048 \backslash
9049 documentclass
9050 \family default
9051  (2.1.1)・
9052 \family typewriter
9053
9054 \backslash
9055 begin{document}
9056 \family default
9057  (2.2)・
9058 \family typewriter
9059
9060 \backslash
9061 title
9062 \family default
9063  (2.3)・
9064 \family typewriter
9065
9066 \backslash
9067 author
9068 \family default
9069  (2.3)・
9070 \family typewriter
9071
9072 \backslash
9073 affil
9074 \family default
9075  (2.3)・
9076 \family typewriter
9077
9078 \backslash
9079 abstract
9080 \family default
9081  (2.4)・
9082 \family typewriter
9083
9084 \backslash
9085 keywords
9086 \family default
9087  (2.5)・
9088 \family typewriter
9089
9090 \backslash
9091 section
9092 \family default
9093  (2.7)・
9094 \family typewriter
9095
9096 \backslash
9097 subsection
9098 \family default
9099  (2.7)・
9100 \family typewriter
9101
9102 \backslash
9103 subsubsection
9104 \family default
9105  (2.7)・
9106 \family typewriter
9107
9108 \backslash
9109 paragraph
9110 \family default
9111  (2.7)・
9112 \family typewriter
9113
9114 \backslash
9115 facility
9116 \family default
9117  (2.10)・
9118 \family typewriter
9119
9120 \backslash
9121 begin{displaymath}
9122 \family default
9123  (2.12)・
9124 \family typewriter
9125
9126 \backslash
9127 begin{equation}
9128 \family default
9129  (2.12)・
9130 \family typewriter
9131
9132 \backslash
9133 begin{eqnarray}
9134 \family default
9135  (2.12)・
9136 \family typewriter
9137
9138 \backslash
9139 begin{mathletters}
9140 \family default
9141  (2.12)・
9142 \family typewriter
9143
9144 \backslash
9145 begin{thebibliography}
9146 \family default
9147  (2.13.1)・
9148 \family typewriter
9149
9150 \backslash
9151 bibitem
9152 \family default
9153  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9154 \family typewriter
9155
9156 \backslash
9157 begin{table}
9158 \family default
9159  (2.15.4)・
9160 \family typewriter
9161
9162 \backslash
9163 begin{tabular}
9164 \family default
9165  (2.15.4)・
9166 \family typewriter
9167
9168 \backslash
9169 caption
9170 \family default
9171  (2.15.4)・
9172 \family typewriter
9173
9174 \backslash
9175 label
9176 \family default
9177  (他にもあるが特に2.15.4)・
9178 \family typewriter
9179
9180 \backslash
9181 tablerefs
9182 \family default
9183  (2.15.5)・
9184 \family typewriter
9185
9186 \backslash
9187 tablecomments
9188 \family default
9189  (2.15.5)・
9190 \family typewriter
9191
9192 \backslash
9193 url
9194 \family default
9195  (2.17.4)・
9196 \family typewriter
9197
9198 \backslash
9199 end{document}
9200 \family default
9201  (2.18).
9202 \end_layout
9203
9204 \begin_layout Standard
9205 以下のスタイルオプションも正しく動作します.
9206 \family typewriter
9207 longabstract
9208 \family default
9209  (2.4)・
9210 \family typewriter
9211 preprint
9212 \family default
9213  (3.2.1)・
9214 \family typewriter
9215 preprint2
9216 \family default
9217  (3.2.2)・
9218 \family typewriter
9219 eqsecnum
9220 \family default
9221  (3.3)・
9222 \family typewriter
9223 flushrt
9224 \family default
9225  (3.4).これらは,
9226 \begin_inset Flex MenuItem
9227 status collapsed
9228
9229 \begin_layout Plain Layout
9230 文書\SpecialChar menuseparator
9231 設定
9232 \end_layout
9233
9234 \end_inset
9235
9236 にある,
9237 \family sans
9238 クラスオプション
9239 \family default
9240
9241 \family sans
9242 任意設定
9243 \family default
9244 ボックスに入力してください.
9245 \end_layout
9246
9247 \begin_layout Subsubsection
9248 動作するが,若干説明が必要なもの
9249 \end_layout
9250
9251 \begin_layout Standard
9252 以下のコマンドは動作しますが,若干の説明が必要です.
9253 \end_layout
9254
9255 \begin_layout Itemize
9256 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
9257 プリアンブルに入れることができます.
9258 \family typewriter
9259
9260 \backslash
9261 received
9262 \family default
9263
9264 \family typewriter
9265
9266 \backslash
9267 revised
9268 \family default
9269
9270 \family typewriter
9271
9272 \backslash
9273 accepted
9274 \family default
9275
9276 \family typewriter
9277
9278 \backslash
9279 ccc
9280 \family default
9281
9282 \family typewriter
9283 cpright
9284 \family default
9285 (すべて 2.1.3).
9286 \end_layout
9287
9288 \begin_layout Itemize
9289 以下の項目は,\SpecialChar LaTeX
9290 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
9291 \family typewriter
9292
9293 \backslash
9294 slugcomment
9295 \family default
9296 (2.1.4)・
9297 \family typewriter
9298
9299 \backslash
9300 shorttitle
9301 \family default
9302 (2.1.5)・
9303 \family typewriter
9304
9305 \backslash
9306 shortauthors
9307 \family default
9308 (2.1.5).
9309 \end_layout
9310
9311 \begin_layout Itemize
9312
9313 \family typewriter
9314
9315 \backslash
9316 email
9317 \family default
9318 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9319 コードを使用してください.
9320 \end_layout
9321
9322 \begin_layout Itemize
9323
9324 \family typewriter
9325
9326 \backslash
9327 and
9328 \family default
9329 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9330 \end_layout
9331
9332 \begin_layout Itemize
9333
9334 \family typewriter
9335
9336 \backslash
9337 notetoeditor
9338 \family default
9339 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9340 コードを使用してください.
9341 \end_layout
9342
9343 \begin_layout Itemize
9344
9345 \family typewriter
9346
9347 \backslash
9348 placetable
9349 \family default
9350 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
9351 \end_layout
9352
9353 \begin_layout Itemize
9354
9355 \family typewriter
9356
9357 \backslash
9358 placefigure
9359 \family default
9360 (2.8)—
9361 \family typewriter
9362
9363 \backslash
9364 placetable
9365 \family default
9366 と同様.
9367 \end_layout
9368
9369 \begin_layout Itemize
9370
9371 \family typewriter
9372
9373 \backslash
9374 acknowledgements
9375 \family default
9376 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9377 \end_layout
9378
9379 \begin_layout Itemize
9380
9381 \family typewriter
9382
9383 \backslash
9384 appendix
9385 \family default
9386 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9387 \end_layout
9388
9389 \begin_layout Itemize
9390
9391 \family typewriter
9392
9393 \backslash
9394 figcaption
9395 \family default
9396 (2.14.2)―文章のはじめにカーソルを置いて
9397 \begin_inset Flex MenuItem
9398 status collapsed
9399
9400 \begin_layout Plain Layout
9401 挿入\SpecialChar menuseparator
9402 短縮タイトル
9403 \end_layout
9404
9405 \end_inset
9406
9407 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
9408 \family typewriter
9409
9410 \backslash
9411 figcaption
9412 \family default
9413 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
9414 \end_layout
9415
9416 \begin_layout Itemize
9417
9418 \family typewriter
9419
9420 \backslash
9421 objectname
9422 \family default
9423 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9424 \family typewriter
9425
9426 \backslash
9427 figcaption
9428 \family default
9429 と同様.
9430 \end_layout
9431
9432 \begin_layout Itemize
9433
9434 \family typewriter
9435
9436 \backslash
9437 dataset
9438 \family default
9439 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9440 \family typewriter
9441
9442 \backslash
9443 figcaption
9444 \family default
9445 と同様.
9446 \end_layout
9447
9448 \begin_layout Subsubsection
9449 実装されていないため,\SpecialChar TeX
9450 コードを使用するもの
9451 \end_layout
9452
9453 \begin_layout Standard
9454
9455 \family typewriter
9456
9457 \backslash
9458 altaffilmark
9459 \family default
9460 (2.3)・
9461 \family typewriter
9462
9463 \backslash
9464 altaffiltext
9465 \family default
9466 (2.3)・
9467 \family typewriter
9468
9469 \backslash
9470 eqnum
9471 \family default
9472 (2.12)・
9473 \family typewriter
9474
9475 \backslash
9476 setcounter{equation}
9477 \family default
9478 (2.12)・学術誌名略語(2.12.4)・
9479 \family typewriter
9480
9481 \backslash
9482 figurenum
9483 \family default
9484 (2.14.1)・
9485 \family typewriter
9486
9487 \backslash
9488 epsscale
9489 \family default
9490 (2.14.1)・
9491 \family typewriter
9492
9493 \backslash
9494 plotone
9495 \family default
9496 (2.14.1)・
9497 \family typewriter
9498
9499 \backslash
9500 plottwo
9501 \family default
9502 (2.14.1)・
9503 \family typewriter
9504
9505 \backslash
9506 tablenum
9507 \family default
9508 (2.15.4)・
9509 \family typewriter
9510
9511 \backslash
9512 tableline
9513 \family default
9514 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
9515 の方法は使わないでください)・
9516 \family typewriter
9517
9518 \backslash
9519 tablenotemark
9520 \family default
9521 (2.15.5)・
9522 \family typewriter
9523
9524 \backslash
9525 tablenotetext
9526 \family default
9527 (2.15.5)・補遺(2.17)の大半(
9528 \family typewriter
9529
9530 \backslash
9531 objectname
9532 \family default
9533
9534 \family typewriter
9535
9536 \backslash
9537 dataset
9538 \family default
9539
9540 \family typewriter
9541
9542 \backslash
9543 url
9544 \family default
9545
9546 \family typewriter
9547
9548 \backslash
9549 email
9550 \family default
9551 を除く.上記参照)・
9552 \family typewriter
9553
9554 \backslash
9555 singlespace
9556 \family default
9557 (3.1)・
9558 \family typewriter
9559
9560 \backslash
9561 doublespace
9562 \family default
9563 (3.1)・
9564 \family typewriter
9565
9566 \backslash
9567 onecolumn
9568 \family default
9569 (3.2)・
9570 \family typewriter
9571
9572 \backslash
9573 twocolumn
9574 \family default
9575 (3.2)
9576 \end_layout
9577
9578 \begin_layout Subsubsection
9579 実装できないもの
9580 \end_layout
9581
9582 \begin_layout Standard
9583 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
9584 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
9585 \begin_inset Flex MenuItem
9586 status collapsed
9587
9588 \begin_layout Plain Layout
9589 挿入\SpecialChar menuseparator
9590 ファイル
9591 \begin_inset Formula $\text{\textipa{}}$
9592 \end_inset
9593
9594 \SpecialChar menuseparator
9595 子文書
9596 \end_layout
9597
9598 \end_inset
9599
9600 を使用して,\SpecialChar LyX
9601 ファイルに読み込むことを推奨します.この実例は,
9602 \family typewriter
9603 aas_sample.lyx
9604 \family default
9605 ファイルをご参照ください.
9606 \end_layout
9607
9608 \begin_layout Subsection
9609 FAQとヒントと技とその他の考察
9610 \end_layout
9611
9612 \begin_layout Subsubsection
9613 \SpecialChar LyX
9614 をAAS\SpecialChar TeX
9615 と協調させる
9616 \end_layout
9617
9618 \begin_layout Standard
9619 \SpecialChar LyX
9620 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
9621 \end_layout
9622
9623 \begin_layout Enumerate
9624 \SpecialChar LaTeX
9625 が,AAS\SpecialChar TeX
9626 を検出できることを確認してください.AAS\SpecialChar TeX
9627 頒布版に含まれる
9628 \family typewriter
9629 sample.tex
9630 \family default
9631 (あるいは
9632 \family typewriter
9633 table.tex
9634 \family default
9635 でも可)を,\SpecialChar LaTeX
9636 やAAS\SpecialChar TeX
9637 とまったく関係のないディレクトリにコピーして,
9638 \family typewriter
9639 sample.tex
9640 \family default
9641 を\SpecialChar LaTeX
9642 にかけてください.
9643 \end_layout
9644
9645 \begin_layout Enumerate
9646
9647 \family typewriter
9648 aastex.layout
9649 \family default
9650 が,\SpecialChar LyX
9651
9652 \family typewriter
9653 layouts
9654 \family default
9655 フォルダにあることを確認してください.
9656 \end_layout
9657
9658 \begin_layout Enumerate
9659 \SpecialChar LyX
9660 中から
9661 \family sans
9662 ツール\SpecialChar menuseparator
9663 環境構成
9664 \family default
9665 を再度実行し,\SpecialChar LyX
9666 を再起動してください.
9667 \end_layout
9668
9669 \begin_layout Enumerate
9670 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
9671 が,
9672 \family sans
9673 文書\SpecialChar menuseparator
9674 設定
9675 \family default
9676 のクラス一覧に表示されていますか?
9677 \end_layout
9678
9679 \begin_layout Standard
9680 既存のAAS\SpecialChar TeX
9681 文書を処理する際に,AAS\SpecialChar TeX
9682 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
9683 れば,正しい導入が行われていません.
9684 \end_layout
9685
9686 \begin_layout Subsubsection
9687 表を処理する際の\SpecialChar LaTeX
9688 エラー
9689 \end_layout
9690
9691 \begin_layout Standard
9692 既定では,\SpecialChar LyX
9693 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
9694 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
9695 クして,
9696 \family sans
9697 編集\SpecialChar menuseparator
9698 段落設定
9699 \family default
9700 を選択し,
9701 \family sans
9702 配置
9703 \family default
9704
9705 \family sans
9706 両端揃え
9707 \family default
9708 に設定してください.私のところではこれで解決しました.
9709 \end_layout
9710
9711 \begin_layout Subsubsection
9712 書誌情報
9713 \end_layout
9714
9715 \begin_layout Standard
9716 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
9717 ースを
9718 \emph on
9719 入れない
9720 \emph default
9721 ようにしてください.たとえば,
9722 \family typewriter
9723 Ressler(1992)
9724 \family default
9725 はいいですが,
9726 \family typewriter
9727 Ressler (1992)
9728 \family default
9729 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
9730 \family sans
9731 書誌情報
9732 \family default
9733 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
9734 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
9735 \end_layout
9736
9737 \begin_layout Subsubsection
9738 EPSファイルの読み込み
9739 \end_layout
9740
9741 \begin_layout Standard
9742 AAS\SpecialChar TeX
9743 には,自前の図関連コマンド(たとえば
9744 \family typewriter
9745
9746 \backslash
9747 plotone
9748 \family default
9749 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
9750 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
9751 コードで
9752 \family typewriter
9753
9754 \backslash
9755 plotone
9756 \family default
9757 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
9758 は,
9759 \family typewriter
9760
9761 \backslash
9762 usepackage{graphics}
9763 \family default
9764 コマンドを\SpecialChar LaTeX
9765 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
9766 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
9767 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
9768 \end_layout
9769
9770 \begin_layout Subsubsection
9771 可能だったが,実装しなかったもの
9772 \end_layout
9773
9774 \begin_layout Standard
9775 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
9776 ウィンドウ中
9777 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
9778 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
9779 \end_layout
9780
9781 \begin_layout Subsection
9782 最後に
9783 \end_layout
9784
9785 \begin_layout Standard
9786 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
9787 \begin_inset space \thinspace{}
9788 \end_inset
9789
9790 %は\SpecialChar LyX
9791 上で為されました.残りの2
9792 \begin_inset space \thinspace{}
9793 \end_inset
9794
9795 %が,\SpecialChar LaTeX
9796 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
9797 て発表してください!
9798 \end_layout
9799
9800 \begin_layout Section
9801 AMS \SpecialChar LaTeX
9802
9803 \end_layout
9804
9805 \begin_layout Standard
9806
9807 \noun on
9808 David Johnson
9809 \noun default
9810 文 
9811 \noun on
9812 Richard Heck
9813 \noun default
9814 改訂
9815 \begin_inset VSpace bigskip
9816 \end_inset
9817
9818
9819 \end_layout
9820
9821 \begin_layout Standard
9822 AMS \SpecialChar LaTeX
9823 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
9824 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
9825 出力中の一行を変更する
9826 必要があるだけです).AMSの説明書は,ウェブWeb上の
9827 \begin_inset Flex URL
9828 status open
9829
9830 \begin_layout Plain Layout
9831
9832 http://www.ams.org
9833 \end_layout
9834
9835 \end_inset
9836
9837 か,FTPで
9838 \begin_inset Flex URL
9839 status open
9840
9841 \begin_layout Plain Layout
9842
9843 ftp://ftp.ams.org/pub/tex/amslatex/
9844 \end_layout
9845
9846 \end_inset
9847
9848 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
9849 \end_layout
9850
9851 \begin_layout Standard
9852 基本となるAMS \SpecialChar LaTeX
9853 レイアウトには,以下の二つがあります.
9854 \end_layout
9855
9856 \begin_layout Itemize
9857 amsart:標準のAMS article書式.
9858 \end_layout
9859
9860 \begin_layout Itemize
9861 amsbook:標準のAMS book(実際はモノグラフ)書式.
9862 \end_layout
9863
9864 \begin_layout Standard
9865 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
9866 m」環境は,何一つ含まれていません.これらは,代わりに
9867 \begin_inset Flex Code
9868 status collapsed
9869
9870 \begin_layout Plain Layout
9871 定理(AMS)
9872 \end_layout
9873
9874 \end_inset
9875
9876 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
9877 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
9878 \begin_inset Flex Code
9879 status collapsed
9880
9881 \begin_layout Plain Layout
9882 定理(AMS拡張)
9883 \end_layout
9884
9885 \end_inset
9886
9887 モジュールがあり,これは手動で読み込む必要があります.
9888 \end_layout
9889
9890 \begin_layout Standard
9891 既定では,定理類は,文書を通して連番が振られますが,これは
9892 \begin_inset Flex Code
9893 status collapsed
9894
9895 \begin_layout Plain Layout
9896 定理(節毎連番)
9897 \end_layout
9898
9899 \end_inset
9900
9901 モジュールを読み込めば変更することができ,
9902 \begin_inset Flex Code
9903 status collapsed
9904
9905 \begin_layout Plain Layout
9906 book (AMS)
9907 \end_layout
9908
9909 \end_inset
9910
9911 を使用している場合には
9912 \begin_inset Flex Code
9913 status collapsed
9914
9915 \begin_layout Plain Layout
9916 定理(章毎連番)
9917 \end_layout
9918
9919 \end_inset
9920
9921 を用いても変更することができます.これらを用いると,出力は
9922 \begin_inset Formula $n.m$
9923 \end_inset
9924
9925 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
9926 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
9927 \emph on
9928 のみ
9929 \emph default
9930 が欲しい場合には,
9931 \begin_inset Flex Code
9932 status collapsed
9933
9934 \begin_layout Plain Layout
9935 定理(連番なし)
9936 \end_layout
9937
9938 \end_inset
9939
9940 モジュールを用います.
9941 \end_layout
9942
9943 \begin_layout Standard
9944 これらのモジュールは,AMSクラスで使用する
9945 \emph on
9946 必要はない
9947 \emph default
9948 ことに注意してください.
9949 \begin_inset Flex Code
9950 status collapsed
9951
9952 \begin_layout Plain Layout
9953 定理(AMS)
9954 \end_layout
9955
9956 \end_inset
9957
9958 モジュールや上述の他のモジュールは,他のクラス,たとえば
9959 \begin_inset Flex Code
9960 status collapsed
9961
9962 \begin_layout Plain Layout
9963 article
9964 \end_layout
9965
9966 \end_inset
9967
9968
9969 \begin_inset Flex Code
9970 status collapsed
9971
9972 \begin_layout Plain Layout
9973 report
9974 \end_layout
9975
9976 \end_inset
9977
9978
9979 \begin_inset Flex Code
9980 status collapsed
9981
9982 \begin_layout Plain Layout
9983 book (KOMA-script)
9984 \end_layout
9985
9986 \end_inset
9987
9988 などで問題なく使用することができます.
9989 \end_layout
9990
9991 \begin_layout Subsection
9992 これらのレイアウトが提供するもの
9993 \end_layout
9994
9995 \begin_layout Standard
9996 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
9997 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
9998 す.しかし,AMSは,\SpecialChar LyX
9999 で利用可能になっている環境のみを使用することを推奨しています.
10000 \end_layout
10001
10002 \begin_layout Standard
10003 \begin_inset Flex Code
10004 status collapsed
10005
10006 \begin_layout Plain Layout
10007 article (AMS)
10008 \end_layout
10009
10010 \end_inset
10011
10012
10013 \begin_inset Flex Code
10014 status collapsed
10015
10016 \begin_layout Plain Layout
10017 book (AMS)
10018 \end_layout
10019
10020 \end_inset
10021
10022 には,——
10023 \begin_inset space ~
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 Flex Noun
10068 status collapsed
10069
10070 \begin_layout Plain Layout
10071 日付
10072 \end_layout
10073
10074 \end_inset
10075
10076 のような標準環境の他に
10077 \begin_inset space ~
10078 \end_inset
10079
10080 ——
10081 \begin_inset space ~
10082 \end_inset
10083
10084 以下の環境があります.
10085 \end_layout
10086
10087 \begin_layout Description
10088 住所 これは著者の恒久的な住所です.
10089 \end_layout
10090
10091 \begin_layout Description
10092 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
10093 \end_layout
10094
10095 \begin_layout Description
10096 電子メール 著者の電子メールアドレス
10097 \end_layout
10098
10099 \begin_layout Description
10100 URL 著者のウェブアドレス.任意.
10101 \end_layout
10102
10103 \begin_layout Description
10104 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
10105 \end_layout
10106
10107 \begin_layout Description
10108 分野分類 
10109 \emph on
10110 Mathematical Reviews
10111 \emph default
10112 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
10113 す.
10114 \end_layout
10115
10116 \begin_layout Description
10117 謝辞
10118 \end_layout
10119
10120 \begin_layout Description
10121 献呈
10122 \end_layout
10123
10124 \begin_layout Description
10125 翻訳者
10126 \end_layout
10127
10128 \begin_layout Standard
10129 以下の環境は,
10130 \begin_inset Flex Code
10131 status collapsed
10132
10133 \begin_layout Plain Layout
10134 定理
10135 \end_layout
10136
10137 \end_inset
10138
10139 モジュールと
10140 \begin_inset Flex Code
10141 status collapsed
10142
10143 \begin_layout Plain Layout
10144 定理(AMS)
10145 \end_layout
10146
10147 \end_inset
10148
10149 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
10150 \begin_inset Flex Code
10151 status collapsed
10152
10153 \begin_layout Plain Layout
10154 定理(連番なし)
10155 \end_layout
10156
10157 \end_inset
10158
10159 モジュールでは,同環境の星付き版だけが提供されます.
10160 \end_layout
10161
10162 \begin_layout Theorem
10163 これは,通常,得られた主要な結果を叙述するのに使用されます.
10164 \end_layout
10165
10166 \begin_layout Corollary*
10167 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
10168 \end_layout
10169
10170 \begin_layout Lemma
10171 他の叙述を証明するために必要とされる,比較的小さな結果です.
10172 \end_layout
10173
10174 \begin_layout Proposition
10175 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
10176 \end_layout
10177
10178 \begin_layout Conjecture
10179 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
10180 \end_layout
10181
10182 \begin_layout Definition*
10183 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
10184 \end_layout
10185
10186 \begin_layout Problem
10187 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
10188 \end_layout
10189
10190 \begin_layout Exercise*
10191 この環境の説明を記述せよ.
10192 \end_layout
10193
10194 \begin_layout Note
10195 この環境もtheorem型,通常は重要性の低い所見に用いられます.
10196 \end_layout
10197
10198 \begin_layout Claim*
10199 より大きな結果の証明を与える途中で,しばしば用いられます.
10200 \end_layout
10201
10202 \begin_layout Case
10203 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
10204 \end_layout
10205
10206 \begin_layout Case
10207 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
10208 \end_layout
10209
10210 \begin_layout Proof
10211 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
10212 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
10213 \emph on
10214 ユーザーの手引き
10215 \emph default
10216
10217 \emph on
10218 環境を入れ子にする
10219 \emph default
10220 の節をご覧ください.
10221 \end_layout
10222
10223 \begin_layout Standard
10224 そして,以下は
10225 \begin_inset Flex Code
10226 status collapsed
10227
10228 \begin_layout Plain Layout
10229 定理(AMS拡張)
10230 \end_layout
10231
10232 \end_inset
10233
10234 で提供されるものです.
10235 \end_layout
10236
10237 \begin_layout Criterion*
10238 必要とされる条件です.
10239 \end_layout
10240
10241 \begin_layout Algorithm*
10242 使用する一般的手順です.
10243 \end_layout
10244
10245 \begin_layout Axiom*
10246 議論されている系内部で真と仮定される性質や命題です.
10247 \end_layout
10248
10249 \begin_layout Condition*
10250 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
10251 \end_layout
10252
10253 \begin_layout Note*
10254 注記と同様です.
10255 \end_layout
10256
10257 \begin_layout Notation*
10258 表記法の説明に用いられます.
10259 \end_layout
10260
10261 \begin_layout Summary
10262 本当に説明する必要がありますか?
10263 \end_layout
10264
10265 \begin_layout Acknowledgement*
10266 謝辞(acknowledgement)です.
10267 \end_layout
10268
10269 \begin_layout Conclusion*
10270 長い議論の終わりに時々用いられます.
10271 \end_layout
10272
10273 \begin_layout Fact
10274 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
10275 \end_layout
10276
10277 \begin_layout Standard
10278 さらに,AMSクラスは,AMS \SpecialChar LaTeX
10279 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
10280 る必要があります.
10281 \end_layout
10282
10283 \begin_layout Section
10284 AGU各誌(
10285 \family sans
10286 aguplus)
10287 \end_layout
10288
10289 \begin_layout Standard
10290
10291 \noun on
10292 Martin Vermeer
10293 \noun default
10294
10295 \end_layout
10296
10297 \begin_layout Subsection
10298 概要
10299 \end_layout
10300
10301 \begin_layout Standard
10302 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです.AGU発行のクラスファイルおよび
10303 AGUplusの両方(これらは
10304 \begin_inset Flex URL
10305 status collapsed
10306
10307 \begin_layout Plain Layout
10308
10309 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10310 \end_layout
10311
10312 \end_inset
10313
10314 にあります)が導入されていることが必要です.
10315 \end_layout
10316
10317 \begin_layout Subsection
10318 新しいスタイル
10319 \end_layout
10320
10321 \begin_layout Standard
10322
10323 \family sans
10324 段落
10325 \family default
10326 および
10327 \family sans
10328 段落*
10329 \family default
10330 は,定義し直されています.\SpecialChar LyX
10331 の画面では,依然として
10332 \family sans
10333 段落
10334 \family default
10335
10336 \family sans
10337 段落*
10338 \family default
10339 と表示されますが,AGUクラスにおける\SpecialChar LaTeX
10340 の対応物は,
10341 \family sans
10342 Subsubsubsection
10343 \family default
10344
10345 \family sans
10346 Subsubsubsection*
10347 \family default
10348 です.
10349 \end_layout
10350
10351 \begin_layout Standard
10352 新しく定義されたスタイルには,
10353 \family sans
10354 左ヘッダ
10355 \family default
10356
10357 \family sans
10358 右ヘッダ
10359 \family default
10360
10361 \family sans
10362 受理日
10363 \family default
10364
10365 \family sans
10366 改訂
10367 \family default
10368
10369 \family sans
10370 採択日
10371 \family default
10372
10373 \family sans
10374 CCC
10375 \family default
10376
10377 \family sans
10378 論文ID
10379 \family default
10380
10381 \family sans
10382 著者住所
10383 \family default
10384
10385 \family sans
10386 廃棄用コメント
10387 \family default
10388 があります.これらは,ほとんど草稿用属性で,AGUクラス説明書で説明されています.
10389 \end_layout
10390
10391 \begin_layout Standard
10392 おそらく,これはまだ恐ろしく不完全です.
10393 \end_layout
10394
10395 \begin_layout Subsection
10396 新しいフロート
10397 \end_layout
10398
10399 \begin_layout Standard
10400
10401 \family sans
10402 平面表(Planotable
10403 \family default
10404 )と
10405 \family sans
10406 挿絵
10407 \family default
10408 (Plate)が新しいフロートです.また,
10409 \family sans
10410 表キャプション
10411 \family default
10412 も付け加えられています.
10413 \end_layout
10414
10415 \begin_layout Subsection
10416 サポートされている学術誌
10417 \end_layout
10418
10419 \begin_layout Itemize
10420
10421 \emph on
10422 Journal of Geophysical Research
10423 \emph default
10424
10425 \family typewriter
10426 jgrga.layout
10427 \family default
10428  — Martin Vermeer
10429 \end_layout
10430
10431 \begin_layout Standard
10432 ここにあなたの作ったものを加えてください.難しくはありません.
10433 \family typewriter
10434 jgrga.layout
10435 \family default
10436 と 
10437 \family typewriter
10438 aguplus.inc
10439 \family default
10440 を用例として見てください.
10441 \end_layout
10442
10443 \begin_layout Subsection
10444 バグと注意すべきこと
10445 \end_layout
10446
10447 \begin_layout Standard
10448 新しいレイアウトを使うためには,新規文書の作成時に以下の手順を行う必要があります.
10449 \end_layout
10450
10451 \begin_layout Enumerate
10452
10453 \emph on
10454 babelを無効にしてください.
10455 \emph default
10456 これは,
10457 \family sans
10458 ツール\SpecialChar menuseparator
10459 設定
10460 \family default
10461 メニュー項目で行うことができます(AGUの論文は常に英語ですよね.ですから他の言語は
10462 \emph on
10463 選ばないで下さい
10464 \emph default
10465 ).
10466 \end_layout
10467
10468 \begin_layout Enumerate
10469 使用文書の追加オプションフィールドに
10470 \family typewriter
10471 jgrga
10472 \family default
10473 と入力してください(すみません,これはバグです).
10474 \end_layout
10475
10476 \begin_layout Enumerate
10477 Bib\SpecialChar TeX
10478 差込枠の2番目のフィールドに
10479 \family sans
10480 agu
10481 \family default
10482 と入力して,書誌情報のスタイルに
10483 \family typewriter
10484 agu.bst
10485 \family default
10486 を使用していることを確認してください.標準スタイルはうまく動作しません.
10487 \end_layout
10488
10489 \begin_layout Section
10490 Broadway
10491 \end_layout
10492
10493 \begin_layout Standard
10494
10495 \noun on
10496 Garst Reese
10497 \noun default
10498
10499 \end_layout
10500
10501 \begin_layout Subsection
10502 はじめに
10503 \end_layout
10504
10505 \begin_layout Standard
10506 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
10507 \end_layout
10508
10509 \begin_layout Subsection
10510 特別な問題
10511 \end_layout
10512
10513 \begin_layout Standard
10514 Hollywoodと同様です.
10515 \end_layout
10516
10517 \begin_layout Subsection
10518 特別の機能
10519 \end_layout
10520
10521 \begin_layout Standard
10522
10523 \family sans
10524 話者
10525 \family default
10526 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
10527 \end_layout
10528
10529 \begin_layout Subsection
10530 用紙寸法と余白
10531 \end_layout
10532
10533 \begin_layout Standard
10534 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
10535 \end_layout
10536
10537 \begin_layout Subsection
10538 環境
10539 \end_layout
10540
10541 \begin_layout Standard
10542 以下の環境を使うことができます.右に記してある
10543 \begin_inset Flex Ruby
10544 status collapsed
10545
10546 \begin_layout Plain Layout
10547
10548 \begin_inset Argument post:1
10549 status collapsed
10550
10551 \begin_layout Plain Layout
10552 キー
10553 \end_layout
10554
10555 \end_inset
10556
10557
10558 \end_layout
10559
10560 \end_inset
10561
10562 割当ては,broadway.bindを使った場合のものです.
10563 \end_layout
10564
10565 \begin_layout Itemize
10566
10567 \family sans
10568 標準
10569 \begin_inset Newline newline
10570 \end_inset
10571
10572
10573 \family default
10574 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
10575 \end_layout
10576
10577 \begin_layout Itemize
10578
10579 \family sans
10580 ト書き
10581 \begin_inset space \hfill{}
10582 \end_inset
10583
10584 M-z n
10585 \begin_inset Newline newline
10586 \end_inset
10587
10588
10589 \family default
10590 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
10591 \end_layout
10592
10593 \begin_layout Itemize
10594
10595 \family sans
10596
10597 \begin_inset space \hfill{}
10598 \end_inset
10599
10600 M-z a
10601 \begin_inset Newline newline
10602 \end_inset
10603
10604
10605 \family default
10606 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
10607 \end_layout
10608
10609 \begin_layout Itemize
10610
10611 \family sans
10612 幕*
10613 \begin_inset space \hfill{}
10614 \end_inset
10615
10616 M-z S at
10617 \begin_inset Newline newline
10618 \end_inset
10619
10620
10621 \family default
10622 幕の副題です.単に中央揃えの文になります.
10623 \end_layout
10624
10625 \begin_layout Itemize
10626
10627 \family sans
10628 場面
10629 \begin_inset space \hfill{}
10630 \end_inset
10631
10632 M-z S-S
10633 \begin_inset Newline newline
10634 \end_inset
10635
10636
10637 \family default
10638 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
10639 \end_layout
10640
10641 \begin_layout Itemize
10642
10643 \family sans
10644 幕開きに:
10645 \begin_inset space \hfill{}
10646 \end_inset
10647
10648 M-z S-R
10649 \begin_inset Newline newline
10650 \end_inset
10651
10652
10653 \family default
10654 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
10655 \end_layout
10656
10657 \begin_layout Itemize
10658
10659 \family sans
10660 話者
10661 \begin_inset space \hfill{}
10662 \end_inset
10663
10664 M-z s
10665 \begin_inset Newline newline
10666 \end_inset
10667
10668
10669 \family default
10670 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
10671 \end_layout
10672
10673 \begin_layout Itemize
10674
10675 \family sans
10676 括弧付き
10677 \begin_inset space \hfill{}
10678 \end_inset
10679
10680 M-z p
10681 \begin_inset Newline newline
10682 \end_inset
10683
10684
10685 \family default
10686 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
10687 \family sans
10688 対話
10689 \family default
10690 の中だけで使用されます. 
10691 \end_layout
10692
10693 \begin_layout Itemize
10694
10695 \family sans
10696 対話
10697 \begin_inset space \hfill{}
10698 \end_inset
10699
10700 M-z d
10701 \begin_inset Newline newline
10702 \end_inset
10703
10704
10705 \family default
10706 話者の言う内容.
10707 \end_layout
10708
10709 \begin_layout Itemize
10710
10711 \family sans
10712 幕切れ
10713 \begin_inset space \hfill{}
10714 \end_inset
10715
10716 M-z S-C
10717 \begin_inset Newline newline
10718 \end_inset
10719
10720
10721 \family default
10722 幕が降ります.
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-T
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 S-A
10743 \end_layout
10744
10745 \begin_layout Itemize
10746
10747 \family sans
10748 右寄せ住所
10749 \begin_inset space \hfill{}
10750 \end_inset
10751
10752 M-z r
10753 \end_layout
10754
10755 \begin_layout Section
10756 Dinbrief
10757 \end_layout
10758
10759 \begin_layout Standard
10760 文書クラス
10761 \family sans
10762 dinbrief
10763 \family default
10764 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
10765 \family typewriter
10766 .../lyx/share/templates
10767 \family default
10768 にあるので,それを土台として使用してください.
10769 \end_layout
10770
10771 \begin_layout Section
10772 EGS各誌
10773 \family sans
10774 (egs)
10775 \end_layout
10776
10777 \begin_layout Standard
10778
10779 \noun on
10780 Martin Vermeer
10781 \noun default
10782
10783 \end_layout
10784
10785 \begin_layout Subsection
10786 概要
10787 \end_layout
10788
10789 \begin_layout Standard
10790 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです.必要とされる
10791 \family typewriter
10792 egs.cls
10793 \family default
10794 は,EGSのウェブサイト
10795 \begin_inset Flex URL
10796 status collapsed
10797
10798 \begin_layout Plain Layout
10799
10800 http://www.copernicus.org/
10801 \end_layout
10802
10803 \end_inset
10804
10805 からダウンロードできます.
10806 \end_layout
10807
10808 \begin_layout Subsection
10809 新しいスタイル
10810 \end_layout
10811
10812 \begin_layout Standard
10813 新しいスタイルとして,
10814 \family sans
10815 右寄せ住所
10816 \family default
10817
10818 \family sans
10819 \SpecialChar LaTeX
10820 タイトル
10821 \family default
10822
10823 \family sans
10824 所属
10825 \family default
10826
10827 \family sans
10828 学術誌名
10829 \family default
10830
10831 \family sans
10832 原稿番号
10833 \family default
10834
10835 \family sans
10836 筆頭著者
10837 \family default
10838
10839 \family sans
10840 受理日
10841 \family default
10842
10843 \family sans
10844 採択日
10845 \family default
10846
10847 \family sans
10848 オフセット
10849 \family default
10850 があります.現在のレイアウトファイルは,残念ながらほとんどモジュール化されておらず,さまざまな
10851 \family typewriter
10852 std*.inc
10853 \family default
10854 ファイルを読み込む形に変えた方が便利になると思われます.
10855 \end_layout
10856
10857 \begin_layout Section
10858 Elsevier各誌
10859 \end_layout
10860
10861 \begin_layout Standard
10862 \SpecialChar LyX
10863 ひな型ファイルの
10864 \family typewriter
10865 elsarticle.lyx
10866 \family default
10867 を参照してください.必要な情報は全てそこにあります.
10868 \end_layout
10869
10870 \begin_layout Section
10871 Foils (別名Foil\SpecialChar TeX
10872 )
10873 \begin_inset CommandInset label
10874 LatexCommand label
10875 name "sec:foiltex"
10876
10877 \end_inset
10878
10879
10880 \end_layout
10881
10882 \begin_layout Standard
10883
10884 \noun on
10885 Allan Rae
10886 \noun default
10887
10888 \end_layout
10889
10890 \begin_layout Subsection
10891 はじめに
10892 \end_layout
10893
10894 \begin_layout Standard
10895 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
10896 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
10897 ・seminar・b
10898 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
10899 \end_layout
10900
10901 \begin_layout Standard
10902 誤解のないように,わかりやすく明確に,もう一度言っておきます.
10903 \end_layout
10904
10905 \begin_layout Standard
10906 \begin_inset VSpace bigskip
10907 \end_inset
10908
10909
10910 \end_layout
10911
10912 \begin_layout Standard
10913 \align center
10914
10915 \size large
10916 本節は「
10917 \family sans
10918 FoilTeX
10919 \family default
10920 」クラス
10921 \emph on
10922 のみの
10923 \emph default
10924 解説を行います.
10925 \end_layout
10926
10927 \begin_layout Standard
10928 \begin_inset VSpace bigskip
10929 \end_inset
10930
10931
10932 \end_layout
10933
10934 \begin_layout Standard
10935
10936 \family sans
10937 transparencies (slides)
10938 \family default
10939 」の解説をお探しであれば,第
10940 \begin_inset CommandInset ref
10941 LatexCommand ref
10942 reference "sec:slitex"
10943
10944 \end_inset
10945
10946 節をご覧ください.お使いのコンピュータに
10947 \family sans
10948 foils
10949 \family default
10950 クラス
10951 \family sans
10952 FoilTeX
10953 \family default
10954 が導入されていなければ,
10955 \family sans
10956 foils
10957 \family default
10958 ほど良くはありませんが,おそらく
10959 \family sans
10960 slides
10961 \family default
10962 クラスを使わざるをえないでしょう.
10963 \end_layout
10964
10965 \begin_layout Standard
10966
10967 \family sans
10968 foils
10969 \family default
10970 クラスは,\SpecialChar LaTeX2e
10971 の一部として含まれている\SpecialChar LaTeX
10972 クラスファイル
10973 \family sans
10974 foils.cls
10975 \family default
10976 の第2.1版とともに使われるように設計されています.
10977 \end_layout
10978
10979 \begin_layout Subsection
10980 最初の一歩
10981 \end_layout
10982
10983 \begin_layout Standard
10984 いうまでもなく,この文書クラスを使うには,
10985 \family sans
10986 文書\SpecialChar menuseparator
10987 設定\SpecialChar menuseparator
10988 文書クラス
10989 \family default
10990 メニューの
10991 \family sans
10992 文書クラス
10993 \family default
10994 ドロップダウンで「
10995 \family sans
10996 FoilTeX
10997 \family default
10998 」を選択する必要があります.また,
10999 \family sans
11000 文書設定
11001 \family default
11002 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
11003 \end_layout
11004
11005 \begin_layout Itemize
11006
11007 \family sans
11008 文書設定
11009 \family default
11010 ダイアログ中の,
11011 \family sans
11012 両面文書
11013 \family default
11014 オプションと
11015 \family sans
11016 二段組文書
11017 \family default
11018 オプションは変更しないでください.これらは 
11019 \family sans
11020 foils
11021 \family default
11022 クラスでは無視されます.
11023 \end_layout
11024
11025 \begin_layout Itemize
11026 既定のフォント寸法は20ptであり,17
11027 \begin_inset space \thinspace{}
11028 \end_inset
11029
11030 pt・25
11031 \begin_inset space \thinspace{}
11032 \end_inset
11033
11034 pt・30
11035 \begin_inset space \thinspace{}
11036 \end_inset
11037
11038 ptを選択することも可能です.
11039 \end_layout
11040
11041 \begin_layout Itemize
11042 既定のフォントは
11043 \family sans
11044 sans
11045 \family default
11046  
11047 \family sans
11048 serif
11049 \family default
11050 ですが,数式ではすべて,通常のローマン体が使用されます.
11051 \end_layout
11052
11053 \begin_layout Itemize
11054 Foil\SpecialChar TeX
11055 は,35
11056 \begin_inset space \thinspace{}
11057 \end_inset
11058
11059 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
11060 \end_layout
11061
11062 \begin_layout Itemize
11063
11064 \family sans
11065 フロートの配置
11066 \family default
11067 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
11068 \end_layout
11069
11070 \begin_layout Itemize
11071 このクラスの
11072 \family sans
11073 ページレイアウト
11074 \family default
11075 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
11076 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
11077 \begin_inset CommandInset ref
11078 LatexCommand ref
11079 reference "sec:foilfoot"
11080
11081 \end_inset
11082
11083 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
11084 \emph on
11085 つねに
11086 \emph default
11087 付けられず,(ロゴが定義されていれば)ロゴは,
11088 \emph on
11089 つねに
11090 \emph default
11091 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
11092 \end_layout
11093
11094 \begin_deeper
11095 \begin_layout Labeling
11096 \labelwidthstring MMMMMMM
11097
11098 \family sans
11099 \series bold
11100 empty
11101 \family default
11102 \series default
11103  最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
11104 \end_layout
11105
11106 \begin_layout Labeling
11107 \labelwidthstring MMMMMMM
11108
11109 \family sans
11110 \series bold
11111 plain
11112 \family default
11113 \series default
11114  最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
11115 \end_layout
11116
11117 \begin_layout Labeling
11118 \labelwidthstring MMMMMMM
11119
11120 \series bold
11121 foilheadings
11122 \series default
11123  ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
11124 \end_layout
11125
11126 \begin_layout Labeling
11127 \labelwidthstring MMMMMMM
11128
11129 \series bold
11130 fancy
11131 \series default
11132  これは
11133 \family sans
11134 fancyheadings
11135 \family default
11136 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
11137 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
11138 \end_layout
11139
11140 \end_deeper
11141 \begin_layout Subsubsection
11142 任意設定クラスオプション
11143 \end_layout
11144
11145 \begin_layout Standard
11146 以下のオプションは
11147 \family sans
11148 文書設定
11149 \family default
11150 ダイアログの任意設定クラスオプションボックスで使うことができます.
11151 \end_layout
11152
11153 \begin_layout Labeling
11154 \labelwidthstring MMMMMMx
11155
11156 \series bold
11157 35mmSlide
11158 \series default
11159  これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
11160 \begin_inset space \space{}
11161 \end_inset
11162
11163 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
11164 \end_layout
11165
11166 \begin_layout Labeling
11167 \labelwidthstring MMMMMMx
11168
11169 \series bold
11170 headrule
11171 \series default
11172  タイトルページを除くすべてのページのへッダの下に罫線を入れます.
11173 \end_layout
11174
11175 \begin_layout Labeling
11176 \labelwidthstring MMMMMMx
11177
11178 \series bold
11179 footrule
11180 \series default
11181  タイトルページを除くすべてのページのフッタの上に罫線を入れます.
11182 \end_layout
11183
11184 \begin_layout Labeling
11185 \labelwidthstring MMMMMMx
11186
11187 \series bold
11188 dvips
11189 \series default
11190  これは,新規
11191 \family sans
11192 foils
11193 \family default
11194 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
11195 に指示します.
11196 \end_layout
11197
11198 \begin_layout Labeling
11199 \labelwidthstring MMMMMMx
11200
11201 \series bold
11202 landscape
11203 \series default
11204  このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
11205 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
11206 \family sans
11207 Foilhead
11208 \family default
11209 環境と
11210 \family sans
11211 Rotatefoilhead
11212 \family default
11213 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
11214 \end_layout
11215
11216 \begin_layout Labeling
11217 \labelwidthstring MMMMMMx
11218
11219 \series bold
11220 leqno
11221 \series default
11222  数式番号を左側に付けます.
11223 \end_layout
11224
11225 \begin_layout Labeling
11226 \labelwidthstring MMMMMMx
11227
11228 \series bold
11229 fleqn
11230 \series default
11231  数式を左揃えにします.
11232 \end_layout
11233
11234 \begin_layout Subsection
11235 サポートされる環境
11236 \end_layout
11237
11238 \begin_layout Standard
11239 他のクラスで標準的にサポートされている環境は,
11240 \family sans
11241 foils
11242 \family default
11243 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
11244 が提供している環境と,\SpecialChar LyX
11245 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
11246 \end_layout
11247
11248 \begin_layout Standard
11249
11250 \family sans
11251 \begin_inset Flex Multiple Columns
11252 status open
11253
11254 \begin_layout Itemize
11255
11256 \family sans
11257 標準
11258 \end_layout
11259
11260 \begin_layout Itemize
11261
11262 \family sans
11263 箇条書き(記号)
11264 \end_layout
11265
11266 \begin_layout Itemize
11267
11268 \family sans
11269 箇条書き(連番)
11270 \end_layout
11271
11272 \begin_layout Itemize
11273
11274 \family sans
11275 箇条書き(記述)
11276 \end_layout
11277
11278 \begin_layout Itemize
11279
11280 \family sans
11281 箇条書き(リスト)
11282 \end_layout
11283
11284 \begin_layout Itemize
11285
11286 \family sans
11287 \SpecialChar LyX
11288 コード
11289 \end_layout
11290
11291 \begin_layout Itemize
11292
11293 \family sans
11294 詩句
11295 \end_layout
11296
11297 \begin_layout Itemize
11298
11299 \family sans
11300 引用(字下げあり)
11301 \end_layout
11302
11303 \begin_layout Itemize
11304
11305 \family sans
11306 引用(字下げなし)
11307 \end_layout
11308
11309 \begin_layout Itemize
11310
11311 \family sans
11312 タイトル
11313 \end_layout
11314
11315 \begin_layout Itemize
11316
11317 \family sans
11318 著者
11319 \end_layout
11320
11321 \begin_layout Itemize
11322
11323 \family sans
11324 日付
11325 \end_layout
11326
11327 \begin_layout Itemize
11328
11329 \family sans
11330 概要
11331 \end_layout
11332
11333 \begin_layout Itemize
11334
11335 \family sans
11336 書誌情報
11337 \end_layout
11338
11339 \begin_layout Itemize
11340
11341 \family sans
11342 住所
11343 \end_layout
11344
11345 \begin_layout Itemize
11346
11347 \family sans
11348 右寄せ住所
11349 \end_layout
11350
11351 \begin_layout Itemize
11352
11353 \family sans
11354 キャプション
11355 \end_layout
11356
11357 \begin_layout Itemize
11358
11359 \family sans
11360 コメント
11361 \end_layout
11362
11363 \end_inset
11364
11365
11366 \end_layout
11367
11368 \begin_layout Standard
11369 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
11370 \family sans
11371 Foil
11372 \family default
11373 \SpecialChar TeX
11374 は新しいスライドを始める以下のようなコマンドを備えています.
11375 \end_layout
11376
11377 \begin_layout Itemize
11378
11379 \family sans
11380 スライドタイトル(Foilhead)
11381 \end_layout
11382
11383 \begin_layout Itemize
11384
11385 \family sans
11386 横置きスライドタイトル(Rotatefoilhead)
11387 \end_layout
11388
11389 \begin_layout Standard
11390 \SpecialChar LyX
11391 は,以下のような,これらを若干修正した環境も用意しています.
11392 \end_layout
11393
11394 \begin_layout Itemize
11395
11396 \family sans
11397 スライドタイトル(小)(ShortFoilhead)
11398 \end_layout
11399
11400 \begin_layout Itemize
11401
11402 \family sans
11403 横置きスライドタイトル(小)(ShortRotatefoilhead)
11404 \end_layout
11405
11406 \begin_layout Standard
11407 これらの違いは次節で説明します.
11408 \end_layout
11409
11410 \begin_layout Standard
11411 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
11412 \family sans
11413 Foil
11414 \family default
11415 \SpecialChar TeX
11416 はそれらを説明するのに便利な環境を幅広く用意しています.
11417 \end_layout
11418
11419 \begin_layout Standard
11420
11421 \family sans
11422 \begin_inset Flex Multiple Columns
11423 status open
11424
11425 \begin_layout Itemize
11426
11427 \family sans
11428 定理
11429 \end_layout
11430
11431 \begin_layout Itemize
11432
11433 \family sans
11434 補題
11435 \end_layout
11436
11437 \begin_layout Itemize
11438
11439 \family sans
11440
11441 \end_layout
11442
11443 \begin_layout Itemize
11444
11445 \family sans
11446 命題
11447 \end_layout
11448
11449 \begin_layout Itemize
11450
11451 \family sans
11452 定義
11453 \end_layout
11454
11455 \begin_layout Itemize
11456
11457 \family sans
11458 証明
11459 \end_layout
11460
11461 \begin_layout Itemize
11462
11463 \family sans
11464 定理*
11465 \end_layout
11466
11467 \begin_layout Itemize
11468
11469 \family sans
11470 補題*
11471 \end_layout
11472
11473 \begin_layout Itemize
11474
11475 \family sans
11476 系*
11477 \end_layout
11478
11479 \begin_layout Itemize
11480
11481 \family sans
11482 命題*
11483 \end_layout
11484
11485 \begin_layout Itemize
11486
11487 \family sans
11488 定義*
11489 \end_layout
11490
11491 \end_inset
11492
11493
11494 \end_layout
11495
11496 \begin_layout Standard
11497 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
11498 で追加された以下の2つの箇条書き環境があります.
11499 \end_layout
11500
11501 \begin_layout Itemize
11502
11503 \family sans
11504 箇条書き(チック)
11505 \end_layout
11506
11507 \begin_layout Itemize
11508
11509 \family sans
11510 箇条書き(クロス)
11511 \end_layout
11512
11513 \begin_layout Standard
11514 Foil\SpecialChar TeX
11515 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
11516 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
11517 \end_layout
11518
11519 \begin_layout Standard
11520 この目的のためには,以下のコマンドスタイルがあります(
11521 \shape smallcaps
11522 Martin Vermeer).
11523 \end_layout
11524
11525 \begin_layout Standard
11526 \begin_inset Flex Multiple Columns
11527 status open
11528
11529 \begin_layout Itemize
11530
11531 \family sans
11532 グラフィックスロゴ
11533 \end_layout
11534
11535 \begin_layout Itemize
11536
11537 \family sans
11538 配布制限
11539 \end_layout
11540
11541 \begin_layout Itemize
11542
11543 \family sans
11544 右フッタ
11545 \end_layout
11546
11547 \begin_layout Itemize
11548
11549 \family sans
11550 右ヘッダ
11551 \end_layout
11552
11553 \begin_layout Itemize
11554
11555 \family sans
11556 左ヘッダ
11557 \family default
11558
11559 \end_layout
11560
11561 \begin_deeper
11562 \begin_layout Plain Layout
11563 \begin_inset space ~
11564 \end_inset
11565
11566
11567 \end_layout
11568
11569 \end_deeper
11570 \end_inset
11571
11572
11573 \end_layout
11574
11575 \begin_layout Standard
11576 Foil\SpecialChar TeX
11577 が提供しているコマンドで,\SpecialChar LyX
11578 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
11579 \begin_inset CommandInset ref
11580 LatexCommand ref
11581 reference "sec:unsuppfoils"
11582
11583 \end_inset
11584
11585 節で行います.
11586 \end_layout
11587
11588 \begin_layout Subsection
11589 スライドの組を作る
11590 \end_layout
11591
11592 \begin_layout Standard
11593 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
11594
11595 \family typewriter
11596 examples
11597 \family default
11598 フォルダにある
11599 \family typewriter
11600 Foils.lyx
11601 \family default
11602 ファイルをご覧ください.
11603 \end_layout
11604
11605 \begin_layout Subsubsection
11606 タイトルページを作る
11607 \end_layout
11608
11609 \begin_layout Standard
11610
11611 \family sans
11612 タイトル
11613 \family default
11614
11615 \family sans
11616 著者
11617 \family default
11618
11619 \family sans
11620 日付
11621 \family default
11622
11623 \family sans
11624 概要
11625 \family default
11626 環境のある他のクラスとは異なり,
11627 \family sans
11628 foils
11629 \family default
11630 は独立したページにタイトルを作成します.
11631 \family sans
11632 日付
11633 \family default
11634 環境を使用しなかった場合には,\SpecialChar LaTeX
11635 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
11636 \end_layout
11637
11638 \begin_layout Subsubsection
11639 新しいスライドを開始する
11640 \end_layout
11641
11642 \begin_layout Standard
11643 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
11644 \family sans
11645 スライドタイトル(Foilhead)
11646 \family default
11647
11648 \family sans
11649 スライドタイトル(小)(ShortFoilhead)
11650 \family default
11651 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
11652 \end_layout
11653
11654 \begin_layout Standard
11655 横向きのスライドは,
11656 \family sans
11657 横向きスライドタイトル(Rotatefoilhead)
11658 \family default
11659 か横向きスライドタイトル(小)(
11660 \family sans
11661 ShortRotatefoilhead)
11662 \family default
11663 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
11664 (約1.27cm)小さくなります.
11665 \end_layout
11666
11667 \begin_layout Standard
11668 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
11669 \family typewriter
11670 dvips
11671 \family default
11672 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
11673 \family typewriter
11674 dvips
11675 \family default
11676 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
11677 \end_layout
11678
11679 \begin_layout Subsubsection
11680 定理・補題・証明など
11681 \end_layout
11682
11683 \begin_layout Standard
11684 \SpecialChar LyX
11685 中の小さなバグによって,これらの環境の同じ型をお互いに直接続けて置くことはできません.これらは何かによって分離されなくてはなりません.仮に二つ続けて置いても,2
11686 つの環境をマージしたかのように,前の環境が延長されるだけです.この問題を回避するにはどうすればよいのでしょうか.最も簡単な方法は,二つの環境の間に何か文章を置く
11687 か,あるいは二つの間に「
11688 \family typewriter
11689 %
11690 \family default
11691 」だけから成る\SpecialChar LaTeX
11692 環境を置くことです.これによって,\SpecialChar LyX
11693 は2つの別々の環境を生成するように強制され,正しい\SpecialChar LaTeX
11694 出力を得ることができます.\SpecialChar LyX
11695 頒布版に含まれる用例ファイルに例があ
11696 ります.この問題は,二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください.
11697 \end_layout
11698
11699 \begin_layout Subsubsection
11700 箇条書き
11701 \end_layout
11702
11703 \begin_layout Standard
11704 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
11705 他の箇条書き環境について詳しく知りたい場合には,
11706 \emph on
11707 ユーザーの手引き
11708 \emph default
11709 をご覧ください.記号による箇条書きを使用したい場合には,上記第
11710 \begin_inset CommandInset ref
11711 LatexCommand ref
11712 reference "sec:ブリット"
11713
11714 \end_inset
11715
11716 節の
11717 \family sans
11718 箇条書き(記号)ブリットの指定
11719 \family default
11720 の節も,読まれることが望ましいでしょう.
11721 \end_layout
11722
11723 \begin_layout Standard
11724
11725 \family sans
11726 箇条書き(チック)
11727 \family default
11728
11729 \family sans
11730 箇条書き(クロス)
11731 \family default
11732 の二つの新しい様式は,チェック印や
11733 \begin_inset Formula $\times$
11734 \end_inset
11735
11736 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
11737 \family sans
11738 箇条書き(記号)
11739 \family default
11740 の派生型を専用に用意したものに過ぎません.ただし,これらは,
11741 \family typewriter
11742 psnfss
11743 \family default
11744 パッケージが導入済であることを要求します.
11745 \end_layout
11746
11747 \begin_layout Subsubsection
11748 図と表
11749 \end_layout
11750
11751 \begin_layout Standard
11752 Foil\SpecialChar TeX
11753 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
11754 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
11755 \end_layout
11756
11757 \begin_layout Subsubsection
11758 ページヘッダおよびページフッタ
11759 \begin_inset CommandInset label
11760 LatexCommand label
11761 name "sec:foilfoot"
11762
11763 \end_inset
11764
11765
11766 \end_layout
11767
11768 \begin_layout Standard
11769
11770 \family sans
11771 グラフィックスロゴ
11772 \family default
11773
11774 \family sans
11775 配布制限
11776 \family default
11777 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by 
11778 \family sans
11779 Foil
11780 \family default
11781 \SpecialChar TeX
11782 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
11783 \end_layout
11784
11785 \begin_layout Standard
11786 スライドの残り三隅には,
11787 \family sans
11788 右フッタ
11789 \family default
11790 (既定ではページ番号)・
11791 \family sans
11792 右ヘッダ
11793 \family default
11794 (右上)・
11795 \family sans
11796 左ヘッダ
11797 \family default
11798 (左上)を使って文字を入れることができます.
11799 \end_layout
11800
11801 \begin_layout Subsection
11802 サポートされない 
11803 \family sans
11804 Foil
11805 \family default
11806 \SpecialChar TeX
11807 機能
11808 \begin_inset CommandInset label
11809 LatexCommand label
11810 name "sec:unsuppfoils"
11811
11812 \end_inset
11813
11814
11815 \end_layout
11816
11817 \begin_layout Standard
11818 以下で言及されているコマンドは,
11819 \family sans
11820 \SpecialChar LaTeX
11821
11822 \family default
11823 環境内で設定されるか,他の環境中の
11824 \family sans
11825 \SpecialChar TeX
11826 コード
11827 \family default
11828 として設定される必要があります.
11829 \end_layout
11830
11831 \begin_layout Subsubsection
11832 長さ
11833 \end_layout
11834
11835 \begin_layout Standard
11836 長さは,すべて
11837 \family typewriter
11838
11839 \backslash
11840 setlength{
11841 \family default
11842 \emph on
11843 長さ名
11844 \family typewriter
11845 \emph default
11846 }{
11847 \family default
11848 \emph on
11849 新規長さ
11850 \family typewriter
11851 \emph default
11852 }
11853 \family default
11854 コマンドで調節されます.ここで
11855 \emph on
11856 長さ名
11857 \emph default
11858 は,変更したい長さに付けられている名前で置き換え,
11859 \emph on
11860 新規長さ
11861 \emph default
11862 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
11863 \family typewriter
11864
11865 \backslash
11866 textwidth
11867 \family default
11868 のように文書比あるいはフォント基準の長さで指定する必要があります.
11869 \end_layout
11870
11871 \begin_layout Standard
11872
11873 \family typewriter
11874
11875 \backslash
11876 foilheadskip
11877 \family default
11878 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
11879 \begin_inset space \space{}
11880 \end_inset
11881
11882 inだけスライド本文に近づけるには,プリアンブルに
11883 \family typewriter
11884
11885 \backslash
11886 setlength{
11887 \backslash
11888 foilheadskip}{-0.5in}
11889 \family default
11890 と書き込みます.
11891 \end_layout
11892
11893 \begin_layout Standard
11894 フロート周囲の余白は,以下の長さを設定することで調整することができます.
11895 \end_layout
11896
11897 \begin_layout Labeling
11898 \labelwidthstring MMMMMMMMMMM
11899
11900 \family typewriter
11901
11902 \backslash
11903 abovefloatskip
11904 \family default
11905  本文とフロート上辺との間隔
11906 \end_layout
11907
11908 \begin_layout Labeling
11909 \labelwidthstring MMMMMMMMMMM
11910
11911 \family typewriter
11912
11913 \backslash
11914 abovecaptionskip
11915 \family default
11916  フロートとキャプションとの間隔
11917 \end_layout
11918
11919 \begin_layout Labeling
11920 \labelwidthstring MMMMMMMMMMM
11921
11922 \family typewriter
11923
11924 \backslash
11925 belowcaptionskip
11926 \family default
11927  キャプションとそれに続く本文との間隔
11928 \end_layout
11929
11930 \begin_layout Labeling
11931 \labelwidthstring MMMMMMMMMMM
11932
11933 \family typewriter
11934
11935 \backslash
11936 captionwidth
11937 \family default
11938  この長さを調整することでキャプションを,周囲の本文より短くすることができます.
11939 \family typewriter
11940
11941 \backslash
11942 textwidth
11943 \family default
11944 に対する相対的な長さで調整するのが最も良いでしょう.
11945 \end_layout
11946
11947 \begin_layout Standard
11948 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
11949 \end_layout
11950
11951 \begin_layout Labeling
11952 \labelwidthstring MMMMMMMMMMM
11953
11954 \family typewriter
11955
11956 \backslash
11957 abovetitleskip
11958 \family default
11959  へッダとタイトルとの間隔
11960 \end_layout
11961
11962 \begin_layout Labeling
11963 \labelwidthstring MMMMMMMMMMM
11964
11965 \family typewriter
11966
11967 \backslash
11968 titleauthorskip
11969 \family default
11970  
11971 \family sans
11972 タイトル
11973 \family default
11974 環境と
11975 \family sans
11976 著者
11977 \family default
11978 環境との間隔
11979 \end_layout
11980
11981 \begin_layout Labeling
11982 \labelwidthstring MMMMMMMMMMM
11983
11984 \family typewriter
11985
11986 \backslash
11987 authorauthorskip
11988 \family default
11989  著者が複数いる場合の
11990 \family sans
11991 著者
11992 \family default
11993 行の間隔
11994 \end_layout
11995
11996 \begin_layout Labeling
11997 \labelwidthstring MMMMMMMMMMM
11998
11999 \family typewriter
12000
12001 \backslash
12002 authordateskip
12003 \family default
12004  
12005 \family sans
12006 著者
12007 \family default
12008
12009 \family sans
12010 日付
12011 \family default
12012 との間隔
12013 \end_layout
12014
12015 \begin_layout Labeling
12016 \labelwidthstring MMMMMMMMMMM
12017
12018 \family typewriter
12019
12020 \backslash
12021 dateabstractskip
12022 \family default
12023  
12024 \family sans
12025 日付
12026 \family default
12027
12028 \family sans
12029 概要
12030 \family default
12031 との間隔
12032 \end_layout
12033
12034 \begin_layout Standard
12035 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
12036 \family typewriter
12037
12038 \backslash
12039 zerolistvertdimens
12040 \family default
12041 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
12042 \family typewriter
12043
12044 \backslash
12045 setlength
12046 \family default
12047 を使う必要がないことに注意してください.
12048 \end_layout
12049
12050 \begin_layout Subsubsection
12051 へッダとフッタ
12052 \end_layout
12053
12054 \begin_layout Standard
12055
12056 \family typewriter
12057
12058 \backslash
12059 LogoOn
12060 \family default
12061 および
12062 \family typewriter
12063
12064 \backslash
12065 LogoOff
12066 \family default
12067 は,
12068 \family typewriter
12069 MyLogo
12070 \family default
12071 で定義したロゴを特定のページに入れるかどうかを制御します.
12072 \family typewriter
12073
12074 \backslash
12075 LogoOff
12076 \family default
12077 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
12078 \family typewriter
12079
12080 \backslash
12081 LogoOff
12082 \family default
12083 を置き,次のスライドタイトルの直後に直接
12084 \family typewriter
12085
12086 \backslash
12087 LogoOn
12088 \family default
12089 を置いてください.
12090 \end_layout
12091
12092 \begin_layout Standard
12093
12094 \family sans
12095 文書レイアウト
12096 \family default
12097 ダイアログで
12098 \family sans
12099 fancy
12100 \family default
12101 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
12102 \family typewriter
12103
12104 \backslash
12105 let
12106 \backslash
12107 headwidth
12108 \backslash
12109 textwidth
12110 \family default
12111 を加える必要があるでしょう.これは,
12112 \family sans
12113 fancyheadings
12114 \family default
12115 パッケージが提供するページレイアウトと
12116 \family sans
12117 foils
12118 \family default
12119 クラスの提供するページレイアウトの間に衝突が発生するためです.
12120 \end_layout
12121
12122 \begin_layout Section
12123 Hollywood(Hollywoodスペック・スクリプト)
12124 \end_layout
12125
12126 \begin_layout Standard
12127
12128 \noun on
12129 Garst Reese
12130 \noun default
12131
12132 \end_layout
12133
12134 \begin_layout Subsection
12135 はじめに
12136 \end_layout
12137
12138 \begin_layout Standard
12139 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
12140 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
12141 urier 12
12142 \begin_inset space \space{}
12143 \end_inset
12144
12145 ptフォントを使わなければならず,イタリック体は用いてはいけません.
12146 \end_layout
12147
12148 \begin_layout Subsection
12149 特別な問題
12150 \end_layout
12151
12152 \begin_layout Standard
12153 話者の行は,文の途中で改行することは
12154 \emph on
12155 決して
12156 \emph default
12157 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
12158 \family sans
12159 話者
12160 \family default
12161 名を再度書き,その後に(Cont'd)と加えます.
12162 \end_layout
12163
12164 \begin_layout Subsection
12165 特別な機能
12166 \end_layout
12167
12168 \begin_layout Standard
12169
12170 \family sans
12171 話者
12172 \family default
12173 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
12174 きに話者名を挿入するのにも使用することができます.
12175 \end_layout
12176
12177 \begin_layout Subsection
12178 用紙寸法と余白
12179 \end_layout
12180
12181 \begin_layout Standard
12182 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
12183 \end_layout
12184
12185 \begin_layout Subsection
12186 環境
12187 \end_layout
12188
12189 \begin_layout Standard
12190 以下の環境が利用可能です.右に示されている
12191 \begin_inset Flex Ruby
12192 status collapsed
12193
12194 \begin_layout Plain Layout
12195
12196 \begin_inset Argument post:1
12197 status collapsed
12198
12199 \begin_layout Plain Layout
12200 キー
12201 \end_layout
12202
12203 \end_inset
12204
12205
12206 \end_layout
12207
12208 \end_inset
12209
12210 割当てを使用するには,hollywood.bindを使用してください.
12211 \end_layout
12212
12213 \begin_layout Itemize
12214
12215 \family sans
12216 一般
12217 \begin_inset Newline newline
12218 \end_inset
12219
12220
12221 \family default
12222 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
12223 \end_layout
12224
12225 \begin_layout Itemize
12226 フェイドイン:
12227 \begin_inset space \hfill{}
12228 \end_inset
12229
12230
12231 \family sans
12232 M-z S-I
12233 \family default
12234
12235 \begin_inset Newline newline
12236 \end_inset
12237
12238 通常,この後には「Sallyは目を覚ますと」のように続きます.
12239 \end_layout
12240
12241 \begin_layout Itemize
12242
12243 \family sans
12244 屋内:
12245 \begin_inset space \hfill{}
12246 \end_inset
12247
12248 M-z i
12249 \begin_inset Newline newline
12250 \end_inset
12251
12252
12253 \family default
12254 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
12255 ます.
12256 \end_layout
12257
12258 \begin_layout Itemize
12259
12260 \family sans
12261 屋外:
12262 \begin_inset space \hfill{}
12263 \end_inset
12264
12265 M-z e
12266 \begin_inset Newline newline
12267 \end_inset
12268
12269
12270 \family default
12271 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
12272 \end_layout
12273
12274 \begin_layout Itemize
12275
12276 \family sans
12277 話者
12278 \begin_inset space \hfill{}
12279 \end_inset
12280
12281 M-z s
12282 \begin_inset Newline newline
12283 \end_inset
12284
12285
12286 \family default
12287 話す役.
12288 \end_layout
12289
12290 \begin_layout Itemize
12291
12292 \family sans
12293 括弧付き
12294 \begin_inset space \hfill{}
12295 \end_inset
12296
12297 M-z p
12298 \begin_inset Newline newline
12299 \end_inset
12300
12301 話者
12302 \family default
12303 への指示.自動的に括弧()が挿入されますが,\SpecialChar LyX
12304 上で表示されるのは,左括弧( のみです.印刷出力には右括弧も表示されます.
12305 \end_layout
12306
12307 \begin_layout Itemize
12308
12309 \family sans
12310 対話
12311 \begin_inset space \hfill{}
12312 \end_inset
12313
12314 M-z d
12315 \begin_inset Newline newline
12316 \end_inset
12317
12318 話者
12319 \family default
12320 が話す内容.
12321 \end_layout
12322
12323 \begin_layout Itemize
12324
12325 \family sans
12326 画面遷移
12327 \begin_inset space \hfill{}
12328 \end_inset
12329
12330 M-z t
12331 \begin_inset Newline newline
12332 \end_inset
12333
12334
12335 \family default
12336 カメラの動きの指示.例:CUT TO:.
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-I
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-A
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 S-T
12367 \end_layout
12368
12369 \begin_layout Itemize
12370
12371 \family sans
12372 右寄せ住所
12373 \begin_inset space \hfill{}
12374 \end_inset
12375
12376 M-z r
12377 \end_layout
12378
12379 \begin_layout Subsection
12380 脚本で使われる特別な用語
12381 \end_layout
12382
12383 \begin_layout Itemize
12384 (O.S) — off screen
12385 \end_layout
12386
12387 \begin_layout Itemize
12388 (V.0) — voice over
12389 \end_layout
12390
12391 \begin_layout Itemize
12392 b.g.
12393  — background
12394 \end_layout
12395
12396 \begin_layout Itemize
12397 C.U.
12398  — close-up
12399 \end_layout
12400
12401 \begin_layout Itemize
12402 PAN — camera movement
12403 \end_layout
12404
12405 \begin_layout Itemize
12406 INSERT — cut to close-up of
12407 \end_layout
12408
12409 \begin_layout Section
12410 ijmpcおよびijmpd
12411 \end_layout
12412
12413 \begin_layout Standard
12414
12415 \noun on
12416 Panayotis Papasotiriou
12417 \noun default
12418
12419 \end_layout
12420
12421 \begin_layout Subsection
12422 概観
12423 \end_layout
12424
12425 \begin_layout Standard
12426 ijpmcパッケージは,
12427 \emph on
12428 International Journal of Modern Physics C
12429 \emph default
12430 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
12431 \emph on
12432 International Journal of Modern Physics D
12433 \emph default
12434 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
12435 \family typewriter
12436 ws-ijmpc.cls
12437 \family default
12438 および
12439 \family typewriter
12440 ws-ijmpd.cls
12441 \family default
12442 です.これらのファイルは,著者のための指針とともに,
12443 \begin_inset Flex URL
12444 status collapsed
12445
12446 \begin_layout Plain Layout
12447
12448 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12449 \end_layout
12450
12451 \end_inset
12452
12453 および
12454 \begin_inset Flex URL
12455 status collapsed
12456
12457 \begin_layout Plain Layout
12458
12459 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12460 \end_layout
12461
12462 \end_inset
12463
12464 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
12465 は,これらのパッ
12466 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
12467 で書き上げましたが,何らの問題も生じませんでした.
12468 \end_layout
12469
12470 \begin_layout Subsection
12471 論文を書く
12472 \end_layout
12473
12474 \begin_layout Standard
12475 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
12476 \family sans
12477 ファイル\SpecialChar menuseparator
12478 新規(ひな型使用)
12479 \family default
12480 をクリックして,ひな型
12481 \family typewriter
12482 ijmpc.lyx
12483 \family default
12484 もしくは
12485 \family typewriter
12486 ijmpd.lyx
12487 \family default
12488 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
12489 \family typewriter
12490 <>
12491 \family default
12492 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
12493 \end_layout
12494
12495 \begin_layout Enumerate
12496 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
12497 中でこれらを変更することはできません.
12498 \end_layout
12499
12500 \begin_layout Enumerate
12501 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
12502 \family sans
12503 ツール\SpecialChar menuseparator
12504 設定
12505 \family default
12506 をクリックして,
12507 \family sans
12508 言語オプション
12509 \family default
12510 タブを選択し,言語設定で
12511 \family sans
12512 Babelを使う
12513 \family default
12514 チェックボックスを無効にしてから,
12515 \family sans
12516 適用
12517 \family default
12518 をクリックすれば,設定することができます(この変更を固定するなら
12519 \family sans
12520 保存
12521 \family default
12522 を押してください).
12523 \end_layout
12524
12525 \begin_layout Enumerate
12526 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
12527 \end_layout
12528
12529 \begin_layout Enumerate
12530 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
12531 ートされていませんので,ご注意ください.
12532 \end_layout
12533
12534 \begin_layout Enumerate
12535 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12536 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
12537 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
12538 \end_layout
12539
12540 \begin_layout Enumerate
12541 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
12542 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
12543 されます.引用に通常の本文を使用したい場合には,「See Ref.
12544 \begin_inset space \space{}
12545 \end_inset
12546
12547
12548 \family typewriter
12549
12550 \backslash
12551 refcite{
12552 \family default
12553
12554 \begin_inset Flex Ruby
12555 status collapsed
12556
12557 \begin_layout Plain Layout
12558
12559 \family typewriter
12560
12561 \family default
12562
12563 \begin_inset Argument post:1
12564 status collapsed
12565
12566 \begin_layout Plain Layout
12567 キー
12568 \end_layout
12569
12570 \end_inset
12571
12572
12573 \end_layout
12574
12575 \end_inset
12576
12577
12578 \family typewriter
12579 }
12580 \family default
12581 」のように
12582 \family typewriter
12583 refcite
12584 \family default
12585 コマンドを使用してください.
12586 \end_layout
12587
12588 \begin_layout Enumerate
12589 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
12590 \end_layout
12591
12592 \begin_layout Enumerate
12593 付録は,論文中,謝辞の
12594 \emph on
12595
12596 \emph default
12597 かつ書誌情報の
12598 \emph on
12599
12600 \emph default
12601 であれば,入れることができます.\SpecialChar LyX
12602 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
12603 てはなりません.この環境は,\SpecialChar LaTeX
12604 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
12605 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
12606 付録であることを明示します.「付録領域」は,最初の付録の前に
12607 \emph on
12608 なくてはならない
12609 \emph default
12610 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
12611 \end_layout
12612
12613 \begin_layout Enumerate
12614 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
12615 \family typewriter
12616 tbl
12617 \family default
12618 コマンドを使用します.そのため,\SpecialChar LyX
12619 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
12620 コードを少し使えば,この問題を回避して,キャプション
12621 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
12622 コードで
12623 \family typewriter
12624
12625 \backslash
12626 tbl{表キャプション}{
12627 \family default
12628 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
12629 コード
12630 \family typewriter
12631 }
12632 \family default
12633 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
12634 欲しい場合に,表フロート全体を
12635 \family typewriter
12636 .tex
12637 \family default
12638 ファイルに収め,このファイルを\SpecialChar LyX
12639 文書に取り込んでください(
12640 \family sans
12641 挿入\SpecialChar menuseparator
12642 ファイル\SpecialChar menuseparator
12643 子文書
12644 \family default
12645 ).表フロートの作り方についての詳細は,各パッケージに含まれている
12646 \family typewriter
12647 ws-ijmpc.tex
12648 \family default
12649 または
12650 \family typewriter
12651 ws-ijmpd.tex
12652 \family default
12653 ファイルをご覧ください.
12654 \end_layout
12655
12656 \begin_layout Subsection
12657 原稿を投稿するための準備
12658 \end_layout
12659
12660 \begin_layout Standard
12661 論文を投稿する前には,\SpecialChar LyX
12662 文書を\SpecialChar LaTeX
12663 ファイルに書き出し(
12664 \family sans
12665 ファイル\SpecialChar menuseparator
12666 書き出し\SpecialChar menuseparator
12667 \SpecialChar LaTeX
12668
12669 \family default
12670 )
12671 \begin_inset Foot
12672 status open
12673
12674 \begin_layout Plain Layout
12675 実は,\SpecialChar LaTeX
12676  (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
12677 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
12678 \end_layout
12679
12680 \end_inset
12681
12682 ,その
12683 \family typewriter
12684 .tex
12685 \family default
12686 ファイルに以下の変更を加える必要があります.
12687 \end_layout
12688
12689 \begin_layout Enumerate
12690
12691 \family typewriter
12692
12693 \backslash
12694 documentclass
12695 \family default
12696 コマンドより前にあるコメント行を削除する.
12697 \end_layout
12698
12699 \begin_layout Enumerate
12700 自身で明示的に\SpecialChar LaTeX
12701 プリアンブルに置いたコマンドを除き,
12702 \family typewriter
12703
12704 \backslash
12705 makeatletter
12706 \family default
12707 コマンドと
12708 \family typewriter
12709
12710 \backslash
12711 makeatother
12712 \family default
12713 コマンドの間にあるものをすべて削除する.
12714 \end_layout
12715
12716 \begin_layout Standard
12717 こうして修正を加えた
12718 \family typewriter
12719 .tex
12720 \family default
12721 ファイルを保存し,必要な回数\SpecialChar LaTeX
12722 で処理してください.それによって得られた
12723 \family typewriter
12724 .dvi
12725 \family default
12726 文書も確認された方がよろしいでしょう.
12727 \end_layout
12728
12729 \begin_layout Subsection
12730 \SpecialChar TeX
12731 コードの使用
12732 \end_layout
12733
12734 \begin_layout Standard
12735 \SpecialChar TeX
12736 コードを使用するのは,2つのコマンドに限られ,これらは文書の最初に置かれなくてはなりません.論文をひな型
12737 \family typewriter
12738 ijmpc.lyx
12739 \family default
12740 または
12741 \family typewriter
12742 ijmpd.lyx
12743 \family default
12744 を使用して書き始めた場合には,これら必要な\SpecialChar TeX
12745 コードは,すでに書き込まれています.通常,これらを削除する必要はありません.2つのうち1番めの\SpecialChar TeX
12746 コードのみが,奇数ページ
12747 および偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために,修正する必要があります.この\SpecialChar TeX
12748 コードは,
12749 \family typewriter
12750
12751 \backslash
12752 markboth{著者名}{論文の短縮タイトル}
12753 \family default
12754 という形である必要があります.
12755 \end_layout
12756
12757 \begin_layout Section
12758 iopart
12759 \end_layout
12760
12761 \begin_layout Standard
12762
12763 \noun on
12764 Uwe Stöhr
12765 \noun default
12766
12767 \end_layout
12768
12769 \begin_layout Subsection
12770 概要
12771 \end_layout
12772
12773 \begin_layout Standard
12774 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12775 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
12776 \begin_inset Flex URL
12777 status collapsed
12778
12779 \begin_layout Plain Layout
12780
12781 ftp://ftp.iop.org/pub/journals/latex2e
12782 \end_layout
12783
12784 \end_inset
12785
12786 からiopartパッケージとともにダウンロード可能です.
12787 \end_layout
12788
12789 \begin_layout Subsection
12790 論文を書く
12791 \end_layout
12792
12793 \begin_layout Standard
12794 論文を書くもっとも簡単な方法は,\SpecialChar LyX
12795 の用例ファイルフォルダにある
12796 \emph on
12797 IOP-article.lyx
12798 \emph default
12799 を土台にすることです.このファイルを開き,新しい名前で保存して,書き始めてください.この用例ファイルは,特定の環境の使用法についても説明しています.もっとも重要
12800 な助言として,以下の点にご注意ください.
12801 \end_layout
12802
12803 \begin_layout Itemize
12804 文書がPDF・PS・DVIにコンパイルできるようにするためには,文書設定の
12805 \family sans
12806 数式オプション
12807 \family default
12808 で,二つの
12809 \family sans
12810 AMS mathパッケージを使う
12811 \family default
12812 関連オプションが有効になっていないことを確認してください!
12813 \end_layout
12814
12815 \begin_layout Itemize
12816 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
12817 \end_layout
12818
12819 \begin_deeper
12820 \begin_layout Itemize
12821 論文用には
12822 \family sans
12823 タイトル
12824 \end_layout
12825
12826 \begin_layout Itemize
12827 Review用には
12828 \family sans
12829 Review
12830 \end_layout
12831
12832 \begin_layout Itemize
12833 Topical review用には
12834 \family sans
12835 Topical
12836 \end_layout
12837
12838 \begin_layout Itemize
12839 Comment用には
12840 \family sans
12841 Comment
12842 \end_layout
12843
12844 \begin_layout Itemize
12845 Note用には
12846 \family sans
12847 注釈
12848 \end_layout
12849
12850 \begin_layout Itemize
12851 論文用には
12852 \family sans
12853 Paper
12854 \family default
12855 (タイトルと同じ)
12856 \end_layout
12857
12858 \begin_layout Itemize
12859 Preliminary communication用には
12860 \family sans
12861 Prelim
12862 \end_layout
12863
12864 \begin_layout Itemize
12865 Rapid communication用には
12866 \family sans
12867 Rapid
12868 \end_layout
12869
12870 \begin_layout Itemize
12871 編集者へのLetterには
12872 \family sans
12873 書簡
12874 \end_layout
12875
12876 \end_deeper
12877 \begin_layout Itemize
12878
12879 \family sans
12880 書簡
12881 \family default
12882 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
12883 \end_layout
12884
12885 \begin_layout Itemize
12886 \SpecialChar LyX
12887 では直接にサポートされていませんが,一般的なタイトル環境として
12888 \family sans
12889 Article
12890 \family default
12891 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
12892 コードでこれを指定することができます.
12893 \end_layout
12894
12895 \begin_layout Standard
12896 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
12897 \end_layout
12898
12899 \begin_layout Section
12900 Kluwer
12901 \end_layout
12902
12903 \begin_layout Standard
12904
12905 \noun on
12906 Panayotis Papasotiriou
12907 \noun default
12908
12909 \end_layout
12910
12911 \begin_layout Subsection
12912 概要
12913 \end_layout
12914
12915 \begin_layout Standard
12916 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
12917 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
12918 \emph on
12919 Astrophysics and Space Science
12920 \emph default
12921 (『宇宙物理学と宇宙科学』)と
12922 \emph on
12923 Solar Physics
12924 \emph default
12925 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
12926 \begin_inset Flex URL
12927 status collapsed
12928
12929 \begin_layout Plain Layout
12930
12931 http://www.wkap.nl/jrnllist.htm/JRNLHOME
12932 \end_layout
12933
12934 \end_inset
12935
12936 に全覧があります).Kluwerパッケージは,
12937 \begin_inset Flex URL
12938 status collapsed
12939
12940 \begin_layout Plain Layout
12941
12942 http://www.wkap.nl/kaphtml.htm/STYLEFILES
12943 \end_layout
12944
12945 \end_inset
12946
12947 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
12948 \end_layout
12949
12950 \begin_layout Standard
12951 \SpecialChar LyX
12952 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
12953 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
12954 りました(
12955 \begin_inset CommandInset ref
12956 LatexCommand ref
12957 reference "subsec:kluwer_peculiarities"
12958
12959 \end_inset
12960
12961 参照).最近,私は\SpecialChar LyX
12962 を使って書いた論文を
12963 \emph on
12964 Astrophysics and Space Science
12965 \emph default
12966 に投稿しましたが,何らの問題も発生しませんでした.
12967 \end_layout
12968
12969 \begin_layout Subsection
12970 論文を書く
12971 \end_layout
12972
12973 \begin_layout Standard
12974 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
12975 \family sans
12976 ファイル\SpecialChar menuseparator
12977 新規(ひな型使用)
12978 \family default
12979 をクリックし,ひな型
12980 \family typewriter
12981 kluwer.lyx
12982 \family default
12983 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
12984 様に,既存の文章を(括弧
12985 \family typewriter
12986 <>
12987 \family default
12988 を含む)正しい情報で上書きしてください.
12989 \end_layout
12990
12991 \begin_layout Subsection
12992 投稿の準備
12993 \end_layout
12994
12995 \begin_layout Standard
12996 AAS\SpecialChar TeX
12997 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
12998 \end_layout
12999
13000 \begin_layout Enumerate
13001
13002 \family sans
13003 ファイル\SpecialChar menuseparator
13004 書き出し\SpecialChar menuseparator
13005 LateX
13006 \family default
13007 をクリックして,論文を\SpecialChar LaTeX
13008 ファイルに書き出す.
13009 \end_layout
13010
13011 \begin_layout Enumerate
13012 生成された
13013 \family typewriter
13014 .tex
13015 \family default
13016 ファイルに,テキストエディタを使用して,以下のような変更を加える.
13017 \end_layout
13018
13019 \begin_deeper
13020 \begin_layout Enumerate
13021
13022 \family typewriter
13023
13024 \backslash
13025 documentclass
13026 \family default
13027 コマンドより前にあるコメント行を削除する.
13028 \end_layout
13029
13030 \begin_layout Enumerate
13031 意図的に\SpecialChar LaTeX
13032 プリアンブルに加えたコマンドを除き,
13033 \family typewriter
13034
13035 \backslash
13036 makeatletter
13037 \family default
13038 から 
13039 \family typewriter
13040
13041 \backslash
13042 makeatother
13043 \family default
13044 の間にあるものを,これらのコマンドも含め,すべて削除する.
13045 \end_layout
13046
13047 \begin_layout Standard
13048 変更した
13049 \family typewriter
13050 .tex
13051 \family default
13052 ファイルを保存する.
13053 \end_layout
13054
13055 \end_deeper
13056 \begin_layout Enumerate
13057 この
13058 \family typewriter
13059 .tex
13060 \family default
13061 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13062 にかける.
13063 \end_layout
13064
13065 \begin_layout Enumerate
13066 生成された
13067 \family typewriter
13068 .dvi
13069 \family default
13070 ファイルを
13071 \family sans
13072 xdvi
13073 \family default
13074 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
13075 \end_layout
13076
13077 \begin_layout Subsection
13078 Kluwerパッケージの「風変わり」な特徴
13079 \begin_inset CommandInset label
13080 LatexCommand label
13081 name "subsec:kluwer_peculiarities"
13082
13083 \end_inset
13084
13085
13086 \end_layout
13087
13088 \begin_layout Standard
13089 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
13090 \end_layout
13091
13092 \begin_layout Enumerate
13093 複数の論文を1つの\SpecialChar LaTeX
13094 ファイルへ入れることができます
13095 \begin_inset Foot
13096 status collapsed
13097
13098 \begin_layout Plain Layout
13099 わざわざこんなことをする必要はないでしょう.
13100 \end_layout
13101
13102 \end_inset
13103
13104 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
13105 \family typewriter
13106
13107 \backslash
13108 begin{article}
13109 \family default
13110 で始まり,
13111 \family typewriter
13112
13113 \backslash
13114 end{article}
13115 \family default
13116 で終わります.この環境を\SpecialChar LyX
13117 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
13118 \family typewriter
13119
13120 \backslash
13121 begin{article}
13122 \family default
13123
13124 \family typewriter
13125
13126 \backslash
13127 end{article}
13128 \family default
13129 )は,直接本文中に入力して,\SpecialChar LaTeX
13130 コード(「\SpecialChar TeX
13131 コード」のことです)としてマークする必要があります.
13132 \end_layout
13133
13134 \begin_layout Enumerate
13135 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
13136 はなりません.これは\SpecialChar LyX
13137 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
13138 コード行(
13139 \family typewriter
13140
13141 \backslash
13142 begin{opening}
13143 \family default
13144 および
13145 \family typewriter
13146
13147 \backslash
13148 end{opening}
13149 \family default
13150 )の間に入れる必要があります.
13151 \end_layout
13152
13153 \begin_layout Enumerate
13154 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
13155 \family typewriter
13156
13157 \begin_inset Newline newline
13158 \end_inset
13159
13160
13161 \backslash
13162 protect
13163 \backslash
13164 citeauthoryear{
13165 \family default
13166 \emph on
13167 著者名
13168 \family typewriter
13169 \emph default
13170 }{
13171 \family default
13172 \emph on
13173
13174 \family typewriter
13175 \emph default
13176 }
13177 \family default
13178  と書く必要があります.
13179 \end_layout
13180
13181 \begin_layout Standard
13182 ひな型
13183 \family typewriter
13184 kluwer.lyx
13185 \family default
13186 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
13187 てください.
13188 \end_layout
13189
13190 \begin_layout Enumerate
13191 ひな型にある\SpecialChar TeX
13192 コードを削除しないでください.
13193 \end_layout
13194
13195 \begin_layout Enumerate
13196 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
13197 \end_layout
13198
13199 \begin_layout Section
13200 Koma-Script
13201 \end_layout
13202
13203 \begin_layout Standard
13204
13205 \noun on
13206 Bernd Rellermeyer
13207 \noun default
13208
13209 \end_layout
13210
13211 \begin_layout Subsection
13212 概要
13213 \end_layout
13214
13215 \begin_layout Standard
13216 \SpecialChar LyX
13217 の文書クラス
13218 \emph on
13219 article (koma-script)
13220 \emph default
13221
13222 \emph on
13223 report (koma-script)
13224 \emph default
13225
13226 \emph on
13227 book
13228 \emph default
13229  
13230 \emph on
13231 (koma-script)
13232 \emph default
13233
13234 \emph on
13235 letter
13236 \emph default
13237  
13238 \emph on
13239 (koma-script)
13240 \emph default
13241 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13242 文書クラス
13243 \family typewriter
13244 scrartcl.cls
13245 \family default
13246
13247 \family typewriter
13248 scrreprt.cls
13249 \family default
13250
13251 \family typewriter
13252 scrbook.cls
13253 \family default
13254
13255 \family typewriter
13256 scrlettr.cls
13257 \family default
13258 に対応しています.これらは,標準文書クラス
13259 \family typewriter
13260 article.cls
13261 \family default
13262
13263 \family typewriter
13264 report.cls
13265 \family default
13266
13267 \family typewriter
13268 book.cls
13269 \family default
13270
13271 \family typewriter
13272 letter.cls
13273 \family default
13274 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
13275 \end_layout
13276
13277 \begin_layout Itemize
13278 標準文字寸法は,
13279 \emph on
13280 article (koma-script)
13281 \emph default
13282
13283 \emph on
13284 report (koma-script)
13285 \emph default
13286
13287 \emph on
13288 book (koma-script)
13289 \emph default
13290 で11pt,
13291 \emph on
13292 letter (koma-script)
13293 \emph default
13294 で12ptです.
13295 \end_layout
13296
13297 \begin_layout Itemize
13298 見出しや箇条書き(記述)環境のラベル,および
13299 \emph on
13300 letter (koma-script)
13301 \emph default
13302 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
13303 \begin_inset Foot
13304 status collapsed
13305
13306 \begin_layout Plain Layout
13307 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
13308 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
13309 \shape smallcaps
13310 Walter Schmidt
13311 \shape default
13312 作の\SpecialChar LaTeX
13313 パッケージ
13314 \family typewriter
13315 cmsd.sty
13316 \family default
13317 が役立ちます.
13318 \end_layout
13319
13320 \end_inset
13321
13322 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
13323 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
13324 とができます(\SpecialChar LyX
13325 では,
13326 \family sans
13327 文書\SpecialChar menuseparator
13328 設定
13329 \family default
13330 ダイアログの
13331 \family sans
13332 クラスオプション
13333 \family default
13334 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
13335 \emph on
13336 scrguide
13337 \emph default
13338 にあります.
13339 \end_layout
13340
13341 \begin_layout Itemize
13342 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
13343 \family sans
13344 BCOR
13345 \family default
13346 オプションまたは
13347 \family sans
13348 DIV
13349 \family default
13350 オプションを使う方法です(\SpecialChar LyX
13351 では,
13352 \family sans
13353 文書\SpecialChar menuseparator
13354 設定
13355 \family default
13356 ダイアログの
13357 \family sans
13358 クラスオプション
13359 \family default
13360 フィールドで指定します).これらのオプションは
13361 \family sans
13362 文書\SpecialChar menuseparator
13363 設定
13364 \family default
13365 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
13366 扱説明書
13367 \emph on
13368 scrguide
13369 \emph default
13370 にあります.
13371 \end_layout
13372
13373 \begin_layout Itemize
13374 Koma-Scriptファミリーの\SpecialChar LaTeX
13375 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
13376 で意味を持つものは,対応する段落環境として実装されています
13377
13378 \end_layout
13379
13380 \begin_layout Standard
13381 Koma-Scriptファミリーの\SpecialChar LaTeX
13382 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
13383 \emph on
13384 scrguide
13385 \emph default
13386 にあります
13387 \begin_inset Foot
13388 status collapsed
13389
13390 \begin_layout Plain Layout
13391 英語翻訳版の
13392 \emph on
13393 screnggu
13394 \emph default
13395 もありますが,完訳ではありません.
13396 \end_layout
13397
13398 \end_inset
13399
13400 .以下の各節では,\SpecialChar LyX
13401 に関係する側面のみ説明致します.
13402 \end_layout
13403
13404 \begin_layout Subsection
13405 article (koma-script)・report (koma-script)・book (koma-script)
13406 \end_layout
13407
13408 \begin_layout Standard
13409 文書クラス
13410 \emph on
13411 article (koma-script)
13412 \emph default
13413
13414 \emph on
13415 report (koma-script)
13416 \emph default
13417
13418 \emph on
13419 book
13420 \emph default
13421  
13422 \emph on
13423 (koma-script)
13424 \emph default
13425 は,それぞれレイアウトファイル
13426 \family typewriter
13427 scrartcl.layout
13428 \family default
13429
13430 \family typewriter
13431 scrreprt.layou
13432 \family default
13433 t・
13434 \family typewriter
13435 crbook.layout
13436 \family default
13437 によって実装されています.これらは,対応する標準文書クラス
13438 \emph on
13439 article
13440 \emph default
13441
13442 \emph on
13443 report
13444 \emph default
13445
13446 \emph on
13447 book
13448 \emph default
13449 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
13450 固有の
13451 \family sans
13452 箇条書き(一覧)
13453 \family default
13454 環境は例外であり,同じ機能を持つ新しい
13455 \family sans
13456 ラベリング
13457 \family default
13458 環境で置き換えられています.この
13459 \family sans
13460 ラベリング
13461 \family default
13462 環境以外にも,新しい段落環境が多く追加されています.これらは,
13463 \emph on
13464 letter (koma-script)
13465 \emph default
13466 には含まれていないのでご注意ください.
13467 \end_layout
13468
13469 \begin_layout Itemize
13470
13471 \family sans
13472 部(addpart)
13473 \family default
13474
13475 \family sans
13476 章(addchap)
13477 \family default
13478
13479 \family sans
13480 節(addsec)
13481 \family default
13482 :これらは,それぞれ
13483 \family sans
13484 部*
13485 \family default
13486
13487 \family sans
13488 章*
13489 \family default
13490
13491 \family sans
13492 節*
13493 \family default
13494 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
13495 \family sans
13496 部(addpart)
13497 \family default
13498
13499 \family sans
13500 章(addchap)
13501 \family default
13502 は,
13503 \emph on
13504 article (koma-script)
13505 \emph default
13506 には収録されていません.
13507 \end_layout
13508
13509 \begin_layout Itemize
13510
13511 \family sans
13512 章(addchap*)
13513 \family default
13514
13515 \family sans
13516 節(addsec*)
13517 \family default
13518 :これらは,
13519 \family sans
13520 章(addchap
13521 \family default
13522 )と
13523 \family sans
13524 節(addsec)
13525 \family default
13526 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
13527 \family sans
13528 章(addchap*)
13529 \family default
13530 は, 
13531 \emph on
13532 article (koma-script)
13533 \emph default
13534 には収録されていません
13535 \begin_inset Foot
13536 status collapsed
13537
13538 \begin_layout Plain Layout
13539
13540 \emph on
13541 book (koma-script)
13542 \emph default
13543
13544 \emph on
13545 report (koma-script)
13546 \emph default
13547 には,
13548 \family typewriter
13549
13550 \backslash
13551 addpart*
13552 \family default
13553 コマンドもありますが,これは
13554 \family sans
13555 Part*
13556 \family default
13557 と同一なので,\SpecialChar LyX
13558 では実装されていません.
13559 \end_layout
13560
13561 \end_inset
13562
13563
13564 \end_layout
13565
13566 \begin_layout Itemize
13567
13568 \family sans
13569 小見出し(minisec)
13570 \family default
13571 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
13572 \end_layout
13573
13574 \begin_layout Itemize
13575
13576 \family sans
13577 上部キャプション
13578 \family default
13579
13580 \family sans
13581 下部キャプション
13582 \family default
13583 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
13584 ねに表の上に置くべきでしょう).また,クラスオプション
13585 \family typewriter
13586 tablecaptionsabove
13587 \family default
13588 を用いれば,キャプションを指定すると,表には
13589 \family sans
13590 上部キャプション
13591 \family default
13592 が,図には
13593 \family sans
13594 下部キャプション
13595 \family default
13596 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13597 \end_layout
13598
13599 \begin_layout Itemize
13600
13601 \family sans
13602 格言(dictum)
13603 \family default
13604 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
13605 \family sans
13606 挿入\SpecialChar menuseparator
13607 短縮タイトル
13608 \family default
13609 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13610 \family sans
13611 格言(dictum)
13612 \family default
13613 は,
13614 \emph on
13615 article (koma-script)
13616 \emph default
13617 には収録されていません.
13618 \end_layout
13619
13620 \begin_layout Standard
13621 以下の各環境は,標準の
13622 \family sans
13623 タイトル
13624 \family default
13625
13626 \family sans
13627 著者
13628 \family default
13629
13630 \family sans
13631 日付
13632 \family default
13633 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
13634 \begin_inset Foot
13635 status collapsed
13636
13637 \begin_layout Plain Layout
13638 つまり,対応する\SpecialChar LaTeX
13639 コマンドが
13640 \family typewriter
13641
13642 \backslash
13643 maketitle
13644 \family default
13645 コマンドよりも前に現れなくてはなりません.
13646 \end_layout
13647
13648 \end_inset
13649
13650 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
13651 \family sans
13652 タイトル
13653 \family default
13654
13655 \family sans
13656 著者
13657 \family default
13658
13659 \family sans
13660 日付
13661 \family default
13662 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
13663 \end_layout
13664
13665 \begin_layout Itemize
13666
13667 \family sans
13668 主題
13669 \family default
13670 :通常のタイトル部(
13671 \family sans
13672 タイトル
13673 \family default
13674
13675 \family sans
13676 著者
13677 \family default
13678
13679 \family sans
13680 日付
13681 \family default
13682 )の上に,文書の主題用の中央揃えの段落を生成します.
13683 \end_layout
13684
13685 \begin_layout Itemize
13686
13687 \family sans
13688 出版社
13689 \family default
13690 :通常のタイトル部(
13691 \family sans
13692 タイトル
13693 \family default
13694
13695 \family sans
13696 著者
13697 \family default
13698
13699 \family sans
13700 日付
13701 \family default
13702 )の下に,出版社名用の中央揃えの段落を生成します.
13703 \end_layout
13704
13705 \begin_layout Itemize
13706
13707 \family sans
13708 献呈
13709 \family default
13710
13711 \emph on
13712 report (koma-script)
13713 \emph default
13714
13715 \emph on
13716 book (koma-script)
13717 \emph default
13718 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
13719 \emph on
13720 article (koma-script)
13721 \emph default
13722 の場合は,通常のタイトル部(
13723 \family sans
13724 タイトル
13725 \family default
13726
13727 \family sans
13728 著者
13729 \family default
13730
13731 \family sans
13732 日付
13733 \family default
13734 )の下に献辞用の中央揃えの段落を生成します.
13735 \end_layout
13736
13737 \begin_layout Itemize
13738
13739 \family sans
13740 タイトル頭書き
13741 \family default
13742 :通常のタイトル部(
13743 \family sans
13744 タイトル
13745 \family default
13746
13747 \family sans
13748 著者
13749 \family default
13750
13751 \family sans
13752 日付
13753 \family default
13754 )の上に,文書頭書き用の左揃えの段落を生成します.
13755 \end_layout
13756
13757 \begin_layout Itemize
13758
13759 \family sans
13760 扉裏上部
13761 \family default
13762
13763 \emph on
13764 report (koma-script)
13765 \emph default
13766 や 
13767 \emph on
13768 book (koma-script)
13769 \emph default
13770 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
13771 \emph on
13772 article (koma-script)
13773 \emph default
13774 では何の効果も生じません.
13775 \end_layout
13776
13777 \begin_layout Itemize
13778
13779 \family sans
13780 扉裏下部
13781 \family default
13782
13783 \emph on
13784 report (koma-script)
13785 \emph default
13786 や 
13787 \emph on
13788 book (koma-script)
13789 \emph default
13790 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
13791 \emph on
13792 article (koma-script)
13793 \emph default
13794 では何の効果も生じません.
13795 \end_layout
13796
13797 \begin_layout Itemize
13798
13799 \family sans
13800 追加タイトル
13801 \family default
13802 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
13803 \end_layout
13804
13805 \begin_layout Standard
13806 文書クラス
13807 \emph on
13808 article (koma-script)
13809 \emph default
13810
13811 \emph on
13812 report (koma-script)
13813 \emph default
13814
13815 \emph on
13816 book (koma-script)
13817 \emph default
13818 の 各レイアウトファイルは,
13819 \family typewriter
13820 scrmacros.inc
13821 \family default
13822 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
13823 \family typewriter
13824 crmacros.inc
13825 \family default
13826 を,個人用レイアウトディレクトリにコピーして編集してください!
13827 \end_layout
13828
13829 \begin_layout Subsection
13830 letter (koma-script)
13831 \end_layout
13832
13833 \begin_layout Standard
13834 \noindent
13835 文書クラス
13836 \emph on
13837 letter (koma-script)
13838 \emph default
13839 は,レイアウトファイル 
13840 \family typewriter
13841 scrlettr.layout
13842 \family default
13843 で実装されています.このレイアウトファイルには,対応する標準文書クラス
13844 \emph on
13845 letter
13846 \emph default
13847 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
13848 固有環境の
13849 \family sans
13850 \SpecialChar LyX
13851 コード
13852 \family default
13853
13854 \family sans
13855 コメント
13856 \family default
13857
13858 \family sans
13859 箇条書き(一覧
13860 \family default
13861 )は,新しく
13862 \family sans
13863 ラベリング
13864 \family default
13865 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
13866 \family sans
13867 \SpecialChar LaTeX
13868
13869 \family default
13870
13871 \family sans
13872 引用(字下げあり)
13873 \family default
13874
13875 \family sans
13876 引用(字下げなし)
13877 \family default
13878
13879 \family sans
13880 詩句
13881 \family default
13882 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
13883 \end_layout
13884
13885 \begin_layout Standard
13886 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
13887 コマンドを\SpecialChar LaTeX
13888 プリアンブルに置くことで制御することができます
13889 \begin_inset Foot
13890 status collapsed
13891
13892 \begin_layout Plain Layout
13893 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
13894 す.
13895 \end_layout
13896
13897 \begin_layout LyX-Code
13898
13899 \backslash
13900 firsthead{
13901 \backslash
13902 parbox[b]{
13903 \backslash
13904 textwidth}
13905 \end_layout
13906
13907 \begin_layout LyX-Code
13908   {
13909 \backslash
13910 ignorespaces 
13911 \backslash
13912 fromname
13913 \backslash
13914
13915 \backslash
13916  
13917 \backslash
13918 ignorespaces 
13919 \backslash
13920 fromaddress}} 
13921 \end_layout
13922
13923 \begin_layout LyX-Code
13924
13925 \backslash
13926 nexthead{
13927 \backslash
13928 parbox[b]{
13929 \backslash
13930 textwidth}
13931 \end_layout
13932
13933 \begin_layout LyX-Code
13934   {
13935 \backslash
13936 ignorespaces 
13937 \backslash
13938 fromname 
13939 \backslash
13940 hfill 
13941 \backslash
13942 ignorespaces 
13943 \backslash
13944 pagename
13945 \backslash
13946
13947 \end_layout
13948
13949 \begin_layout LyX-Code
13950
13951 \backslash
13952 thepage}}
13953 \end_layout
13954
13955 \end_inset
13956
13957 .これらの\SpecialChar LaTeX
13958 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
13959 \emph on
13960 scrguide
13961 \emph default
13962 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
13963 \end_layout
13964
13965 \begin_layout Standard
13966
13967 \family sans
13968 書簡
13969 \family default
13970 環境および
13971 \family sans
13972 頭語
13973 \family default
13974 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
13975 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
13976 \shape italic
13977 L
13978 \shape default
13979
13980 \shape italic
13981 O
13982 \shape default
13983 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
13984 \family sans
13985 頭語
13986 \family default
13987 環境は,同じ受取人への書簡を新しく書き出すものであり,
13988 \family sans
13989 書簡
13990 \family default
13991 環境は,新しい受取人を生成するものです.
13992 \family sans
13993 結語
13994 \family default
13995
13996 \family sans
13997 PS
13998 \family default
13999
14000 \family sans
14001 CC
14002 \family default
14003
14004 \family sans
14005 Encl
14006 \family default
14007 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
14008 \end_layout
14009
14010 \begin_layout Itemize
14011
14012 \family sans
14013 書簡
14014 \family default
14015 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
14016 \end_layout
14017
14018 \begin_layout Itemize
14019
14020 \family sans
14021 頭語
14022 \family default
14023 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
14024 \end_layout
14025
14026 \begin_layout Itemize
14027
14028 \family sans
14029 結語
14030 \family default
14031 :結語のための段落をつくります.
14032 \end_layout
14033
14034 \begin_layout Itemize
14035
14036 \family sans
14037 PS
14038 \family default
14039 :追伸のための段落をつくります.
14040 \end_layout
14041
14042 \begin_layout Itemize
14043
14044 \family sans
14045 CC
14046 \family default
14047 :同報一覧のための段落をつくります.
14048 \end_layout
14049
14050 \begin_layout Itemize
14051
14052 \family sans
14053 Encl
14054 \family default
14055 :同封物のための段落をつくります.
14056 \end_layout
14057
14058 \begin_layout Standard
14059
14060 \family sans
14061 名前
14062 \family default
14063
14064 \family sans
14065 署名
14066 \family default
14067
14068 \family sans
14069 住所
14070 \family default
14071
14072 \family sans
14073 電話
14074 \family default
14075
14076 \family sans
14077 場所(Place
14078 \family default
14079 )・
14080 \family sans
14081 返送先住所
14082 \family default
14083
14084 \family sans
14085 配送手段(Specialmail)
14086 \family default
14087
14088 \family sans
14089 場所
14090 \family default
14091
14092 \family sans
14093 タイトル
14094 \family default
14095
14096 \family sans
14097 主題
14098 \family default
14099 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
14100 \begin_inset Foot
14101 status collapsed
14102
14103 \begin_layout Plain Layout
14104 上述の
14105 \family sans
14106 書簡
14107 \family default
14108
14109 \family sans
14110 頭語
14111 \family default
14112 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
14113 一文字をマークした通常の段落環境として実装しました.さらに,
14114 \family sans
14115 頭語
14116 \family default
14117 環境と
14118 \family sans
14119 結語
14120 \family default
14121 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
14122 \end_layout
14123
14124 \end_inset
14125
14126 .これらの環境は,対応する
14127 \family sans
14128 頭語
14129 \family default
14130 環境の前に置く必要があります.
14131 \end_layout
14132
14133 \begin_layout Standard
14134 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
14135 ん.たとえば,
14136 \family sans
14137 署名
14138 \family default
14139 環境で入力した署名は,標準的な挙動では,同じ書簡に
14140 \family sans
14141 結語
14142 \family default
14143 環境も使用されているときのみ,書簡の出力に現れます.
14144 \family sans
14145 電話
14146 \family default
14147 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
14148 \end_layout
14149
14150 \begin_layout Standard
14151 入力環境は,空の段落として使うことができます.これは,たとえば
14152 \family sans
14153 署名
14154 \family default
14155 環境の場合に有効です.
14156 \family sans
14157 署名
14158 \family default
14159 環境を全く使用しない場合は,標準的な挙動では,
14160 \family sans
14161 名前
14162 \family default
14163 環境の値が署名として使用されますが,空の
14164 \family sans
14165 署名
14166 \family default
14167 環境を作成しておくと,署名の値は無定義となりません.
14168 \end_layout
14169
14170 \begin_layout Standard
14171 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
14172 \end_layout
14173
14174 \begin_layout Itemize
14175
14176 \family sans
14177 名前
14178 \family default
14179 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
14180 \end_layout
14181
14182 \begin_layout Itemize
14183
14184 \family sans
14185 署名
14186 \family default
14187 :送り主の署名.標準的な挙動では,
14188 \family sans
14189 結語
14190 \family default
14191 環境の下に表示されます.
14192 \family sans
14193 署名
14194 \family default
14195 環境を使用しないと,代わりに
14196 \family sans
14197 名前
14198 \family default
14199 環境の値が表示されます.
14200 \end_layout
14201
14202 \begin_layout Itemize
14203
14204 \family sans
14205 住所
14206 \family default
14207 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
14208 \end_layout
14209
14210 \begin_layout Itemize
14211
14212 \family sans
14213 電話
14214 \family default
14215 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
14216 変数
14217 \family typewriter
14218
14219 \backslash
14220 telephonenum
14221 \family default
14222 を設定するだけです.
14223 \end_layout
14224
14225 \begin_layout Itemize
14226
14227 \family sans
14228 場所(Place)
14229 \family default
14230 :書簡を書いた場所.
14231 \end_layout
14232
14233 \begin_layout Itemize
14234
14235 \family sans
14236 日付
14237 \family default
14238 :書簡を書いた日付.
14239 \family sans
14240 場所(Place)
14241 \family default
14242
14243 \family sans
14244 日付
14245 \family default
14246 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
14247 \family sans
14248 日付
14249 \family default
14250 環境を作成しておくと,
14251 \family sans
14252 場所(Place)
14253 \family default
14254 の値如何に関わらず,場所も日付も表示されません.
14255 \family sans
14256 日付
14257 \family default
14258 環境を使用しない場合には,書簡を出力した日付が使用されます.
14259 \end_layout
14260
14261 \begin_layout Itemize
14262
14263 \family sans
14264 返送先住所
14265 \family default
14266 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
14267 \end_layout
14268
14269 \begin_layout Itemize
14270
14271 \family sans
14272 特別便
14273 \family default
14274 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
14275 \end_layout
14276
14277 \begin_layout Itemize
14278
14279 \family sans
14280 場所
14281 \family default
14282 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
14283 \end_layout
14284
14285 \begin_layout Itemize
14286
14287 \family sans
14288 タイトル
14289 \family default
14290 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
14291 \end_layout
14292
14293 \begin_layout Itemize
14294
14295 \family sans
14296 主題
14297 \family default
14298 :書簡の主題.標準的な挙動では,
14299 \family sans
14300 頭語
14301 \family default
14302 環境の上にボールド体で表示されます.
14303 \end_layout
14304
14305 \begin_layout Standard
14306
14307 \family sans
14308 Yourref・Yourmail・Myref・顧客・インボイス
14309 \family default
14310 といった環境は,
14311 \family sans
14312 タイトル
14313 \family default
14314 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14315 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
14316 \family sans
14317 日付
14318 \family default
14319 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
14320 \family sans
14321 場所(Place)
14322 \family default
14323 の値は書簡には表示されなくなり,\SpecialChar LaTeX
14324 変数
14325 \family typewriter
14326
14327 \backslash
14328 fromplace
14329 \family default
14330 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
14331 て実装されており,対応する
14332 \family sans
14333 頭語
14334 \family default
14335 環境よりも前に置く必要があります.
14336 \end_layout
14337
14338 \begin_layout Itemize
14339
14340 \family sans
14341 Yourref
14342 \family default
14343 : Your ref.
14344 \end_layout
14345
14346 \begin_layout Itemize
14347
14348 \family sans
14349 Yourmail
14350 \family default
14351 : Your letter of.
14352 \end_layout
14353
14354 \begin_layout Itemize
14355
14356 \family sans
14357 Myref
14358 \family default
14359 : Our ref.
14360 \end_layout
14361
14362 \begin_layout Itemize
14363
14364 \family sans
14365 Customer
14366 \family default
14367 : Customer no.
14368 \end_layout
14369
14370 \begin_layout Itemize
14371
14372 \family sans
14373 Invoice
14374 \family default
14375 : Invoice no.
14376 \end_layout
14377
14378 \begin_layout Subsection
14379 新しいletterクラス:letter (koma-script v.2)
14380 \end_layout
14381
14382 \begin_layout Standard
14383 by 
14384 \noun on
14385 Jürgen Spitzmüller
14386 \begin_inset VSpace medskip
14387 \end_inset
14388
14389
14390 \end_layout
14391
14392 \begin_layout Standard
14393 \noindent
14394 Koma-Script第2.8版では,新しいletterクラス
14395 \family typewriter
14396 scrlttr2
14397 \family default
14398 が導入されたため,
14399 \family typewriter
14400 scrlettr
14401 \family default
14402 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
14403 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
14404 は両者をサポートしてい
14405 ますが,新しい方のクラスを使用することを推奨します.
14406 \end_layout
14407
14408 \begin_layout Standard
14409 このクラスは,
14410 \emph on
14411 letter (koma-script)
14412 \emph default
14413 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
14414 \family sans
14415 住所
14416 \family default
14417 (受取人の住所,旧レイアウトの
14418 \family sans
14419 書簡
14420 \family default
14421 と同じ)・
14422 \family sans
14423 頭語
14424 \family default
14425
14426 \family sans
14427 結語
14428 \family default
14429 です.
14430 \family sans
14431 次の住所
14432 \family default
14433 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
14434 \family sans
14435 電子メール
14436 \family default
14437
14438 \family sans
14439 URL
14440 \family default
14441
14442 \family sans
14443 ファックス
14444 \family default
14445
14446 \family sans
14447 銀行
14448 \family default
14449 ,およびヘッダに(
14450 \family sans
14451 挿入\SpecialChar menuseparator
14452
14453 \family default
14454 で)
14455 \family sans
14456 ロゴ
14457 \family default
14458 を入れることができるようになった点です.
14459 \end_layout
14460
14461 \begin_layout Standard
14462 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
14463 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
14464 \family typewriter
14465 *.lco
14466 \family default
14467 )によって設定することができます
14468 \begin_inset Foot
14469 status collapsed
14470
14471 \begin_layout Plain Layout
14472 KOMAパッケージには,既定の
14473 \family typewriter
14474 *.lco
14475 \family default
14476 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
14477 \family typewriter
14478 DIN.lco
14479 \family default
14480 や,旧
14481 \family typewriter
14482 scrlettr
14483 \family default
14484 クラスの既定レイアウトを提供する
14485 \family typewriter
14486 KOMAold.lco
14487 \family default
14488 などです.たとえば後者は,
14489 \family sans
14490 文書\SpecialChar menuseparator
14491 設定\SpecialChar menuseparator
14492 文書クラス\SpecialChar menuseparator
14493 クラスオプション
14494 \family default
14495 フィールドにクラスオプション
14496 \family typewriter
14497 KOMAold
14498 \family default
14499 を加えることで読み込むことができます.
14500 \end_layout
14501
14502 \end_inset
14503
14504 .用例としては,\SpecialChar LyX
14505 に収録されているひな型
14506 \emph on
14507 koma-letter2
14508 \emph default
14509 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
14510 \emph on
14511 scrguide
14512 \emph default
14513 )にあります.
14514 \end_layout
14515
14516 \begin_layout Subsection
14517 問題点
14518 \end_layout
14519
14520 \begin_layout Standard
14521 Koma-Script文書クラスを\SpecialChar LyX
14522 上に表示する上で,\SpecialChar LyX
14523 の内部処理が若干の問題を生じめます.
14524 \end_layout
14525
14526 \begin_layout Itemize
14527
14528 \family sans
14529
14530 \family default
14531 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
14532 \family sans
14533 Counter_Chapter
14534 \family default
14535 ラベル型に対する\SpecialChar LyX
14536 の内部処理が原因です.
14537 \end_layout
14538
14539 \begin_layout Itemize
14540
14541 \family sans
14542 章(addchap)
14543 \family default
14544
14545 \family sans
14546 節(addsec)
14547 \family default
14548 環境の見出しは,「本当の」\SpecialChar LaTeX
14549 の目次には追加されますが,\SpecialChar LyX
14550 の目次(
14551 \family sans
14552 移動
14553 \family default
14554 メニュー)には追加されません.
14555 \end_layout
14556
14557 \begin_layout Itemize
14558
14559 \emph on
14560 letter
14561 \emph default
14562 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
14563 コマンドは必要ありません.しかし,
14564 \family sans
14565 文書\SpecialChar menuseparator
14566 設定
14567 \family default
14568 ダイアログでは,対応するラジオボタンは
14569 \family sans
14570 字下げ
14571 \family default
14572 に設定されています.
14573 \family sans
14574 垂直スペース
14575 \family default
14576 は,隙間を空けるために,文書に\SpecialChar LaTeX
14577 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
14578 \end_layout
14579
14580 \begin_layout Section
14581 Memoir
14582 \end_layout
14583
14584 \begin_layout Standard
14585
14586 \noun on
14587 Jürgen Spitzmüller
14588 \noun default
14589
14590 \end_layout
14591
14592 \begin_layout Subsection
14593 概観
14594 \end_layout
14595
14596 \begin_layout Standard
14597 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
14598 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
14599 す(以下参照).
14600 \end_layout
14601
14602 \begin_layout Standard
14603 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
14604 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
14605 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
14606 は,これらすべての素晴らしい機能をネイティブでサポ
14607 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
14608 \begin_inset Foot
14609 status collapsed
14610
14611 \begin_layout Plain Layout
14612 もし提案があれば,ぜひ
14613 \begin_inset Flex URL
14614 status collapsed
14615
14616 \begin_layout Plain Layout
14617
14618 lyx-devel@lists.lyx.org
14619 \end_layout
14620
14621 \end_inset
14622
14623 までお送り下さい.
14624 \end_layout
14625
14626 \end_inset
14627
14628 ,\SpecialChar LyX
14629 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
14630 コマンド(\SpecialChar TeX
14631 コード
14632 \begin_inset Foot
14633 status collapsed
14634
14635 \begin_layout Plain Layout
14636 【参考】詳細は,第
14637 \begin_inset CommandInset ref
14638 LatexCommand ref
14639 reference "sec:LaTeXコードを挿入する"
14640
14641 \end_inset
14642
14643 節参照.
14644 \end_layout
14645
14646 \end_inset
14647
14648 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
14649 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
14650 は,Memoirクラスの詳しい取扱説明書
14651 \begin_inset Foot
14652 status collapsed
14653
14654 \begin_layout Plain Layout
14655 【参考】
14656 \begin_inset Flex URL
14657 status collapsed
14658
14659 \begin_layout Plain Layout
14660
14661 CTAN:/macros/latex/memoir/memman.pdf
14662 \end_layout
14663
14664 \end_inset
14665
14666
14667 \end_layout
14668
14669 \end_inset
14670
14671 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
14672 た用例となっています.
14673 \end_layout
14674
14675 \begin_layout Subsection
14676 基本的な機能と制約
14677 \end_layout
14678
14679 \begin_layout Standard
14680 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
14681 \end_layout
14682
14683 \begin_layout Description
14684 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
14685 \end_layout
14686
14687 \begin_layout Description
14688 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
14689 が混乱させられます
14690 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
14691 \family sans
14692 文書\SpecialChar menuseparator
14693 設定\SpecialChar menuseparator
14694 ページレイアウト
14695 \family default
14696 参照).これらを章題ページに使用したい場合には,コマンド
14697 \family typewriter
14698
14699 \backslash
14700 chapterstyle
14701 \family default
14702 を,本文またはプリアンブルに記述する必要があります(例えば,
14703 \family typewriter
14704
14705 \backslash
14706 chapterstyle{companion}
14707 \family default
14708 など).
14709 \end_layout
14710
14711 \begin_layout Description
14712 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
14713 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
14714 では,章や節の始めで
14715 \family sans
14716 挿入\SpecialChar menuseparator
14717 短縮タイトル
14718 \family default
14719 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.こ
14720 れを使えば,本文用と目次用とヘッダ用のタイトルの3種類を指定することができます.この機能を使用したい場合には,2つの非必須引数を入力して,最初のものに目次用,次
14721 のものにヘッダ用短縮タイトルを入れてください.
14722 \end_layout
14723
14724 \begin_layout Description
14725 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
14726 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
14727 \end_layout
14728
14729 \begin_layout Description
14730 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
14731 くない場合には,プリアンブルに
14732 \family typewriter
14733
14734 \backslash
14735 aliaspagestyle{title}{empty}
14736 \family default
14737 と入力してください.
14738 \end_layout
14739
14740 \begin_layout Description
14741 Article: クラスオプション
14742 \emph on
14743 article
14744 \emph default
14745 を用いる(
14746 \family sans
14747 文書\SpecialChar menuseparator
14748 設定\SpecialChar menuseparator
14749 クラスオプション
14750 \family default
14751 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
14752 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
14753 \end_layout
14754
14755 \begin_layout Description
14756 Oldfontcommands: \SpecialChar LaTeX
14757 旧2.09版で使用されていた旧いフォントコマンド(
14758 \family typewriter
14759
14760 \backslash
14761 rm
14762 \family default
14763
14764 \family typewriter
14765
14766 \backslash
14767 it
14768 \family default
14769 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
14770 を停止させます.しかし,クラスオプ
14771 ション
14772 \emph on
14773 oldfontcommands
14774 \emph default
14775 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
14776 は停止しなくなります).まだ,多くのパッケージと,
14777 就中多くのBib\SpecialChar TeX
14778 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
14779 \end_layout
14780
14781 \begin_layout Subsection
14782 追加された機能
14783 \end_layout
14784
14785 \begin_layout Standard
14786 \SpecialChar LyX
14787 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
14788 \begin_inset Foot
14789 status collapsed
14790
14791 \begin_layout Plain Layout
14792 \begin_inset Flex URL
14793 status collapsed
14794
14795 \begin_layout Plain Layout
14796
14797 CTAN:/macros/latex/memoir/memman.pdf
14798 \end_layout
14799
14800 \end_inset
14801
14802
14803 \end_layout
14804
14805 \end_inset
14806
14807 を見てください.
14808 \end_layout
14809
14810 \begin_layout Description
14811 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
14812 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
14813 \end_layout
14814
14815 \begin_layout Description
14816 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
14817 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
14818 \end_layout
14819
14820 \begin_layout Description
14821 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
14822 出典)は,短い線で区切られます.この環境には二つの引数(本文と出典)が必要なので,ここでも\SpecialChar LyX
14823 を少しだます必要があります.ここでは,2つの引数の間に,
14824 \emph on
14825 <標語>
14826 \family typewriter
14827 \emph default
14828 }{
14829 \family default
14830 \emph on
14831 <標語の著者>
14832 \emph default
14833 のように,(\SpecialChar TeX
14834 モードで)波括弧を入れなくてはなりません.
14835 \end_layout
14836
14837 \begin_layout Description
14838 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
14839 は,そのうちいくつかしかサポートしていません.詩題はその一つです
14840 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
14841 コードを使用しな
14842 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
14843 ではそれができないためです).
14844 \end_layout
14845
14846 \begin_layout Description
14847 詩題*: 目次に現れない他は詩題と同じです.
14848 \end_layout
14849
14850 \begin_layout Section
14851 Article (mwart)・book (mwbk)・report (mwrep)
14852 \begin_inset Argument status
14853 status collapsed
14854
14855 \begin_layout Plain Layout
14856 The 
14857 \family typewriter
14858 mw
14859 \family default
14860  Classes
14861 \end_layout
14862
14863 \end_inset
14864
14865
14866 \end_layout
14867
14868 \begin_layout Standard
14869
14870 \noun on
14871 Tomasz Luczak
14872 \noun default
14873
14874 \end_layout
14875
14876 \begin_layout Standard
14877 \SpecialChar LyX
14878 文書クラス
14879 \emph on
14880 article (mwart)
14881 \emph default
14882
14883 \emph on
14884 report (mwrep)・book
14885 \emph default
14886  
14887 \emph on
14888 (mwbk)
14889 \emph default
14890 は,それぞれ\SpecialChar LaTeX
14891 文書クラス
14892 \family typewriter
14893 mwart.cls
14894 \family default
14895
14896 \family typewriter
14897 mwrep.cls
14898 \family default
14899
14900 \family typewriter
14901 mwbk.cls
14902 \family default
14903 に対応しています.これらは,標準の
14904 \family typewriter
14905 article.cls
14906 \family default
14907
14908 \family typewriter
14909 report.cls
14910 \family default
14911
14912 \family typewriter
14913 book.cls
14914 \family default
14915 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
14916 \end_layout
14917
14918 \begin_layout Standard
14919 基本的な違いは,次の点です.
14920 \end_layout
14921
14922 \begin_layout Itemize
14923 付番のない見出し(
14924 \family sans
14925 節*
14926 \family default
14927 などの星付き)も目次に加えられます.
14928 \end_layout
14929
14930 \begin_layout Itemize
14931 以下のページスタイルの追加
14932 \end_layout
14933
14934 \begin_deeper
14935 \begin_layout Description
14936 uheadings 分離線付きヘッダ
14937 \end_layout
14938
14939 \begin_layout Description
14940 myheadings 
14941 \family typewriter
14942
14943 \backslash
14944 markright
14945 \family default
14946 コマンドおよび
14947 \family typewriter
14948
14949 \backslash
14950 markboth
14951 \family default
14952 コマンドで設定するカスタムヘッダ
14953 \end_layout
14954
14955 \begin_layout Description
14956 myuheadings 分離線付きカスタムヘッダ
14957 \end_layout
14958
14959 \begin_layout Description
14960 outer ページの外側にページ番号
14961 \end_layout
14962
14963 \end_deeper
14964 \begin_layout Itemize
14965 オプション
14966 \end_layout
14967
14968 \begin_deeper
14969 \begin_layout Description
14970 rmheadings セリフ体見出し — 既定
14971 \end_layout
14972
14973 \begin_layout Description
14974 sfheadings サンセリフ体見出し
14975 \end_layout
14976
14977 \begin_layout Description
14978 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
14979 \end_layout
14980
14981 \begin_layout Description
14982 titleauthor タイトルページは,タイトル・著者名の順で配置
14983 \end_layout
14984
14985 \begin_layout Description
14986 withmarginpar ページ上に余白のための場所を確保
14987 \end_layout
14988
14989 \end_deeper
14990 \begin_layout Section
14991 Paper
14992 \end_layout
14993
14994 \begin_layout Standard
14995
14996 \family sans
14997 paper
14998 \family default
14999 文書クラスは標準
15000 \family sans
15001 article
15002 \family default
15003 クラスの代替となるものです.これは
15004 \family sans
15005 同様の
15006 \family default
15007 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
15008 \end_layout
15009
15010 \begin_layout Section
15011 Rev\SpecialChar TeX
15012 4
15013 \end_layout
15014
15015 \begin_layout Standard
15016 by 
15017 \noun on
15018 Amir Karger
15019 \end_layout
15020
15021 \begin_layout Standard
15022 \begin_inset VSpace bigskip
15023 \end_inset
15024
15025
15026 \end_layout
15027
15028 \begin_layout Standard
15029 \noindent
15030
15031 \family sans
15032 Revtex
15033 \begin_inset space ~
15034 \end_inset
15035
15036 4
15037 \family default
15038 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
15039  4.0(1999年5月の
15040 \begin_inset Formula $\beta$
15041 \end_inset
15042
15043 リリース)クラスで動作します.
15044 \end_layout
15045
15046 \begin_layout Standard
15047 \SpecialChar LyX
15048 には,Rev\SpecialChar TeX
15049  3.1で動作する
15050 \family sans
15051 Revtex
15052 \family default
15053 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
15054  2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
15055 は\SpecialChar LaTeX2e
15056 を必要とすることから,第3.1版は\SpecialChar LyX
15057 とうまく
15058 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
15059  4.0は,\SpecialChar LaTeX2e
15060 で素直に動作するようにデザインされているので,\SpecialChar LyX
15061
15062 \family sans
15063 Rev\SpecialChar TeX
15064
15065 \begin_inset space ~
15066 \end_inset
15067
15068 4
15069 \family default
15070 テキストクラスの組で使用するのは,たいへん簡単です.
15071 \end_layout
15072
15073 \begin_layout Standard
15074 この取扱説明書は,Rev\SpecialChar TeX
15075  4.0の説明書の
15076 \emph on
15077 補完
15078 \emph default
15079 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
15080 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15081 します.
15082 \end_layout
15083
15084 \begin_layout Subsection
15085 導入
15086 \end_layout
15087
15088 \begin_layout Standard
15089 Rev\SpecialChar TeX
15090  4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
15091  4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
15092  4 Web
15093  Site 
15094 \begin_inset Flex URL
15095 status collapsed
15096
15097 \begin_layout Plain Layout
15098
15099 http://publish.aps.org/revtex4/
15100 \end_layout
15101
15102 \end_inset
15103
15104 から入手することができます.これを\SpecialChar LaTeX
15105 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15106 ィレクトリ)で簡単なRev\SpecialChar TeX
15107  4文書を \SpecialChar LaTeX
15108 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
15109 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
15110 4テキストクラスが使用
15111 できるようになるはずです.
15112 \end_layout
15113
15114 \begin_layout Standard
15115 使い始めるには,
15116 \family typewriter
15117 tex2lyx
15118 \family default
15119 を使ってRev\SpecialChar TeX
15120  4文書を読み込むか,またはひな型ディレクトリにある
15121 \family sans
15122 Revtex
15123 \begin_inset space ~
15124 \end_inset
15125
15126 4
15127 \family default
15128 のひな型を使うのが,おそらく一番簡単な方法でしょう.
15129 \end_layout
15130
15131 \begin_layout Subsection
15132 プリアンブルに関すること
15133 \end_layout
15134
15135 \begin_layout Standard
15136
15137 \family typewriter
15138
15139 \backslash
15140 documentclass
15141 \family default
15142 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
15143 \family sans
15144 文書\SpecialChar menuseparator
15145 設定\SpecialChar menuseparator
15146 文書クラス
15147 \family default
15148
15149 \family sans
15150 クラスオプション
15151 \family default
15152 フィールドに入れます.Rev\SpecialChar TeX
15153 では,少なくとも一つの非必須引数が必要なことに注意してください.
15154 \end_layout
15155
15156 \begin_layout Standard
15157
15158 \family typewriter
15159
15160 \backslash
15161 draft
15162 \family default
15163 など他のプリアンブルは,他のクラス同様,
15164 \family sans
15165 文書\SpecialChar menuseparator
15166 設定\SpecialChar menuseparator
15167 \SpecialChar LaTeX
15168 プリアンブル
15169 \family default
15170 に入れてください.
15171 \end_layout
15172
15173 \begin_layout Subsection
15174 レイアウト
15175 \end_layout
15176
15177 \begin_layout Standard
15178 レイアウトは,基本的にRev\SpecialChar TeX
15179 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
15180 \family typewriter
15181
15182 \backslash
15183 email{}
15184 \family default
15185 に対応しています.(少なくともRev\SpecialChar TeX
15186  4.0 Beta現在では)
15187 \family sans
15188 住所
15189 \family default
15190
15191 \family sans
15192 所属
15193 \family default
15194 はまったく同じものなので,両方を使う必要はありません
15195 \begin_inset Foot
15196 status collapsed
15197
15198 \begin_layout Plain Layout
15199 ついでながら,
15200 \family typewriter
15201 tex2lyx
15202 \family default
15203 は両方とも対応しているので,
15204 \family typewriter
15205
15206 \backslash
15207 address
15208 \family default
15209
15210 \family typewriter
15211
15212 \backslash
15213 affiliation
15214 \family default
15215 のどちらも翻訳することができます.
15216 \end_layout
15217
15218 \end_inset
15219
15220
15221 \end_layout
15222
15223 \begin_layout Subsection
15224 重要な注意
15225 \end_layout
15226
15227 \begin_layout Standard
15228 Rev\SpecialChar TeX
15229  4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
15230 ではさらに気をつけなくてはなりません.
15231 \end_layout
15232
15233 \begin_layout Standard
15234 Rev\SpecialChar TeX
15235 では,
15236 \family typewriter
15237
15238 \backslash
15239 thanks
15240 \family default
15241 コマンドは,
15242 \family typewriter
15243
15244 \backslash
15245 author
15246 \family default
15247 コマンドの
15248 \emph on
15249 外側
15250 \emph default
15251 に来なくてはなりません.\SpecialChar LyX
15252 では,独立した
15253 \family sans
15254 感謝
15255 \family default
15256 レイアウトがこの働きをします.直接
15257 \family sans
15258 ,著者
15259 \family default
15260 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
15261  4の取扱説明書をご覧ください.
15262 \end_layout
15263
15264 \begin_layout Standard
15265 また,
15266 \family sans
15267 著者電子メール
15268 \family default
15269
15270 \family sans
15271 著者URL・感謝(thanks)
15272 \family default
15273 レイアウトは,
15274 \family sans
15275 著者
15276 \family default
15277 レイアウトと
15278 \family sans
15279 住所(
15280 \family default
15281 または同等の
15282 \family sans
15283 所属
15284 \family default
15285 )レイアウトの間に置かなければなりません.
15286 \family sans
15287 感謝(thanks)
15288 \family default
15289
15290 \family sans
15291 住所
15292 \family default
15293 の後に置いてしまうと,\SpecialChar LaTeX
15294 はコンパイルに失敗します.
15295 \end_layout
15296
15297 \begin_layout Subsection
15298 問題点
15299 \end_layout
15300
15301 \begin_layout Standard
15302 このレイアウトの主な問題点は,電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません.例
15303 えば,節レイアウトも非必須引数を使用することができません).これは,たとえばページヘッダにヘッダ用タイトルを設定したい場合などには,ファイルを\SpecialChar LaTeX
15304 ファイルに変換した
15305 後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません),テキストエディタを使って\SpecialChar LaTeX
15306 ファイルを編集し,非必須引数を書き加えなくてはならないということで
15307 す.これらのレイアウトがないと,
15308 \family typewriter
15309
15310 \backslash
15311 altaffiliation
15312 \family default
15313 (またそれと同等な
15314 \family typewriter
15315
15316 \backslash
15317 altaddress
15318 \family default
15319 )は使えませんので,対応するレイアウトは存在せず,手動で書き加える必要があります
15320 \begin_inset Foot
15321 status collapsed
15322
15323 \begin_layout Plain Layout
15324
15325 \emph on
15326 JMarcからの註:
15327 \emph default
15328  実は,\SpecialChar LyX
15329  1.3.0 では非必須引数を一部サポートしているのですが,このレイアウトは,まだこの機能を使うようにはアップデートされていないのです.
15330 \end_layout
15331
15332 \end_inset
15333
15334
15335 \end_layout
15336
15337 \begin_layout Section
15338 Springer学術誌(
15339 \family sans
15340 svjour)
15341 \end_layout
15342
15343 \begin_layout Standard
15344
15345 \noun on
15346 Martin Vermeer
15347 \noun default
15348
15349 \end_layout
15350
15351 \begin_layout Subsection
15352 説明
15353 \end_layout
15354
15355 \begin_layout Standard
15356 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
15357 \begin_inset Flex URL
15358 status collapsed
15359
15360 \begin_layout Plain Layout
15361
15362 http://www.springer.de/author/tex/help-journals.html
15363 \end_layout
15364
15365 \end_inset
15366
15367 に必要なクラスファイル(\SpecialChar LaTeX2e
15368 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
15369 \family typewriter
15370 svjour.inc
15371 \family default
15372 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15373 \family typewriter
15374 svjog.layout
15375 \family default
15376 など)から取り込むことができます.
15377 \end_layout
15378
15379 \begin_layout Standard
15380 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
15381 \family typewriter
15382 svjog.layout
15383 \family default
15384 に書かれている指示に従って,自作の
15385 \family typewriter
15386 sv
15387 \family default
15388 <学術誌名>
15389 \family typewriter
15390 .layout
15391 \family default
15392 を書くだけで良いことを意味します.
15393 \end_layout
15394
15395 \begin_layout Standard
15396 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
15397 \family typewriter
15398 svjour
15399 \family default
15400
15401 \family typewriter
15402 svjog
15403 \family default
15404 は,標準\SpecialChar LyX
15405 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
15406 を再設定した後(teTeXの場合は,必
15407 要に応じてroot権限で
15408 \family typewriter
15409 texhash
15410 \family default
15411 を実行します),\SpecialChar LyX
15412 を環境構成すれば,動作するはずです.
15413 \end_layout
15414
15415 \begin_layout Subsection
15416 新スタイル
15417 \end_layout
15418
15419 \begin_layout Standard
15420 多くの定理環境 — 
15421 \family sans
15422 主張
15423 \family default
15424
15425 \family sans
15426 推論
15427 \family default
15428 ・\SpecialChar ldots
15429
15430 \family sans
15431 定理
15432 \family default
15433
15434 \end_layout
15435
15436 \begin_layout Standard
15437
15438 \family sans
15439 ヘッドノート
15440 \family default
15441
15442 \family sans
15443 献呈
15444 \family default
15445
15446 \family sans
15447 サブタイトル・ヘッダ用\SpecialChar LaTeX
15448 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15449 ement)
15450 \family default
15451 .詳しくは Springerのクラスファイルの説明書を読んでください.
15452 \end_layout
15453
15454 \begin_layout Subsection
15455 サポートしているジャーナル
15456 \end_layout
15457
15458 \begin_layout Itemize
15459
15460 \emph on
15461 Journal of Geodesy
15462 \emph default
15463
15464 \family typewriter
15465 svjog.layout
15466 \family default
15467  — Martin Vermeer
15468 \end_layout
15469
15470 \begin_layout Itemize
15471
15472 \emph on
15473 Probability Theory and Related Fields
15474 \emph default
15475
15476 \family typewriter
15477 svprobth.layout
15478 \family default
15479  — Jean-Marc Lasgouttes
15480 \end_layout
15481
15482 \begin_layout Standard
15483 あなた自身のレイアウトファイルをつくってください.難しくはありません.
15484 \end_layout
15485
15486 \begin_layout Subsection
15487 Credits
15488 \end_layout
15489
15490 \begin_layout Standard
15491 これらのファイルは,以前の 
15492 \family typewriter
15493 ejour2.layout
15494 \family default
15495 をもとにしています.
15496 \family typewriter
15497 ejour2.layout
15498 \family default
15499 は Springerの\SpecialChar LaTeX
15500  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
15501  Lasgouttesのおかげで \SpecialChar LyX
15502 のレイアウトファイルのメカニズムをよりよく理解することができました.
15503 \end_layout
15504
15505 \begin_layout Subsection
15506 バグ
15507 \end_layout
15508
15509 \begin_layout Standard
15510 多分あります.以前の 
15511 \family typewriter
15512 ejour2
15513 \family default
15514 よりは少なくなっているとは思いますが.
15515 \end_layout
15516
15517 \begin_layout Standard
15518 制限事項:定理環境の環境の番号は表示されません.#が表示されるだけです.
15519 \end_layout
15520
15521 \begin_layout Section
15522 Slides (別名
15523 \noun on
15524 Sli\SpecialChar TeX
15525
15526 \noun default
15527 )
15528 \begin_inset Foot
15529 status collapsed
15530
15531 \begin_layout Plain Layout
15532 (訳註)この節の内容は,全般的に古くなっています.
15533 \end_layout
15534
15535 \end_inset
15536
15537
15538 \begin_inset CommandInset label
15539 LatexCommand label
15540 name "sec:slitex"
15541
15542 \end_inset
15543
15544
15545 \end_layout
15546
15547 \begin_layout Standard
15548
15549 \noun on
15550 John Weiss
15551 \noun default
15552
15553 \end_layout
15554
15555 \begin_layout Subsection
15556 はじめに
15557 \end_layout
15558
15559 \begin_layout Standard
15560 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
15561 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
15562 \family sans
15563 Foil\SpecialChar TeX
15564
15565 \family default
15566 スライドクラスの2つがあります.本節は前者について説明を行います.
15567 \end_layout
15568
15569 \begin_layout Standard
15570 誤解のないように,正しく明確に,もう一度言っておきます.
15571 \end_layout
15572
15573 \begin_layout Standard
15574 \begin_inset VSpace bigskip
15575 \end_inset
15576
15577
15578 \end_layout
15579
15580 \begin_layout Standard
15581 \align center
15582
15583 \size large
15584 本節は文書クラス
15585 \begin_inset Quotes eld
15586 \end_inset
15587
15588
15589 \family sans
15590 transparencies (slides)
15591 \family default
15592
15593 \begin_inset Quotes erd
15594 \end_inset
15595
15596
15597 \emph on
15598 のみ
15599 \emph default
15600 を説明しています.
15601 \end_layout
15602
15603 \begin_layout Standard
15604 \begin_inset VSpace bigskip
15605 \end_inset
15606
15607
15608 \end_layout
15609
15610 \begin_layout Standard
15611
15612 \family sans
15613 「slides (Foil\SpecialChar TeX
15614 )
15615 \family default
15616 」の説明をお探しならば,第
15617 \begin_inset CommandInset ref
15618 LatexCommand ref
15619 reference "sec:foiltex"
15620
15621 \end_inset
15622
15623 節をご覧ください.
15624 \family sans
15625 foils
15626 \family default
15627 クラス「
15628 \family sans
15629 slides (Foil\SpecialChar TeX
15630 )
15631 \family default
15632 」は,実際,本節で説明している既定
15633 \family sans
15634 slides
15635 \family default
15636 クラスよりも良いようです
15637 \begin_inset Foot
15638 status collapsed
15639
15640 \begin_layout Plain Layout
15641 \SpecialChar ldots
15642
15643 \family sans
15644 Foil\SpecialChar TeX
15645
15646 \family default
15647 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
15648 \end_layout
15649
15650 \end_inset
15651
15652
15653 \end_layout
15654
15655 \begin_layout Standard
15656 このクラスは,旧SLI\SpecialChar TeX
15657 パッケージを\SpecialChar LaTeX2e
15658 用に改良したものです.\SpecialChar LaTeX2e
15659 頒布版すべてが,このクラス(以下では単に「
15660 \family sans
15661 slides
15662 \family default
15663 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
15664 \family sans
15665 foils
15666 \family default
15667 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
15668 他のクラスにはできないが
15669 \family sans
15670 slides
15671 \family default
15672 ならばできることもあります.詳しくは以下をお読みください.
15673 \end_layout
15674
15675 \begin_layout Subsection
15676 使い始めるには
15677 \begin_inset CommandInset label
15678 LatexCommand label
15679 name "sec:slidesetup"
15680
15681 \end_inset
15682
15683
15684 \end_layout
15685
15686 \begin_layout Standard
15687 当然ながら,この文書クラスを使用するには,
15688 \family sans
15689 文書\SpecialChar menuseparator
15690 設定
15691 \family default
15692 ダイアログのクラスリストから「
15693 \family sans
15694 transparencies (slides)
15695 \family default
15696 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
15697 \end_layout
15698
15699 \begin_layout Itemize
15700
15701 \family sans
15702 用紙方向
15703 \family default
15704
15705 \family sans
15706 二段組文書
15707 \family default
15708 の各オプションは,あえて変更する必要はありません.これらのオプションは,
15709 \family sans
15710 slides
15711 \family default
15712 クラスではサポートされていないので,効果がありません.
15713 \end_layout
15714
15715 \begin_layout Itemize
15716
15717 \family sans
15718 ヘディング様式
15719 \family default
15720 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
15721 \end_layout
15722
15723 \begin_deeper
15724 \begin_layout Description
15725 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
15726 \end_layout
15727
15728 \begin_layout Description
15729 設定(headings)
15730 \family sans
15731  プレーン(plain)
15732 \family default
15733 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
15734 \end_layout
15735
15736 \begin_layout Description
15737 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
15738 \end_layout
15739
15740 \end_deeper
15741 \begin_layout Itemize
15742
15743 \family sans
15744 slides
15745 \family default
15746 クラスには,もう一つ
15747 \family typewriter
15748 clock
15749 \family default
15750 というオプションがあります.これを使用するには,
15751 \family sans
15752 クラスオプション
15753 \family default
15754 に「
15755 \family typewriter
15756 clock
15757 \family default
15758 」と入力してください.
15759 \end_layout
15760
15761 \begin_deeper
15762 \begin_layout Standard
15763 このオプションを使うと,
15764 \family sans
15765 注釈
15766 \family default
15767 にタイムマーカーを加えることができます.詳細は,第
15768 \begin_inset CommandInset ref
15769 LatexCommand ref
15770 reference "sec:スライド注釈"
15771
15772 \end_inset
15773
15774 節をご覧ください.
15775 \end_layout
15776
15777 \end_deeper
15778 \begin_layout Standard
15779
15780 \family sans
15781 slides
15782 \family default
15783 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
15784 \family typewriter
15785 slides.lyx
15786 \family default
15787 」を使用することもできます(新規ファイルを開く際に
15788 \family sans
15789 ファイル\SpecialChar menuseparator
15790 新規(ひな型使用)
15791 \family default
15792 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
15793 \end_layout
15794
15795 \begin_layout Subsection
15796 段落環境
15797 \end_layout
15798
15799 \begin_layout Subsubsection
15800
15801 \family sans
15802 サポートされている環境
15803 \end_layout
15804
15805 \begin_layout Standard
15806 新しく
15807 \family sans
15808 slides
15809 \family default
15810 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
15811 \family sans
15812 サンセリフ体
15813 \family default
15814 フォントの
15815 \family sans
15816 極大
15817 \family default
15818 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
15819 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
15820 \end_layout
15821
15822 \begin_layout Standard
15823 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
15824 ます.これは,
15825 \family sans
15826 slides
15827 \family default
15828 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
15829 \end_layout
15830
15831 \begin_layout Itemize
15832
15833 \family sans
15834 標準
15835 \end_layout
15836
15837 \begin_layout Itemize
15838
15839 \family sans
15840 箇条書き(記号)
15841 \end_layout
15842
15843 \begin_layout Itemize
15844
15845 \family sans
15846 箇条書き(連番)
15847 \end_layout
15848
15849 \begin_layout Itemize
15850
15851 \family sans
15852 箇条書き(記述)
15853 \end_layout
15854
15855 \begin_layout Itemize
15856
15857 \family sans
15858 箇条書き(一覧)
15859 \end_layout
15860
15861 \begin_layout Itemize
15862
15863 \family sans
15864 引用(字下げあり)
15865 \end_layout
15866
15867 \begin_layout Itemize
15868
15869 \family sans
15870 引用(字下げなし)
15871 \end_layout
15872
15873 \begin_layout Itemize
15874
15875 \family sans
15876 詩句
15877 \end_layout
15878
15879 \begin_layout Itemize
15880
15881 \family sans
15882 キャプション
15883 \end_layout
15884
15885 \begin_layout Itemize
15886
15887 \family sans
15888 \SpecialChar LyX
15889 コード
15890 \end_layout
15891
15892 \begin_layout Itemize
15893
15894 \family sans
15895 コメント
15896 \end_layout
15897
15898 \begin_layout Standard
15899 これ以外の標準的な環境,例えば節見出し用の環境などは
15900 \family sans
15901 slides
15902 \family default
15903 クラスでは使えません.
15904 \end_layout
15905
15906 \begin_layout Standard
15907 一方,以下の新しい環境があります.
15908 \end_layout
15909
15910 \begin_layout Itemize
15911
15912 \family sans
15913 スライド
15914 \end_layout
15915
15916 \begin_layout Itemize
15917
15918 \family sans
15919 オーバーレイ
15920 \end_layout
15921
15922 \begin_layout Itemize
15923
15924 \family sans
15925 注釈
15926 \end_layout
15927
15928 \begin_layout Itemize
15929
15930 \family sans
15931 不可視文
15932 \end_layout
15933
15934 \begin_layout Itemize
15935
15936 \family sans
15937 可視文
15938 \end_layout
15939
15940 \begin_layout Standard
15941 これら5つの環境は,\SpecialChar LyX
15942 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
15943 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
15944 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
15945 マジック」が必要になります.
15946 \end_layout
15947
15948 \begin_layout Subsubsection
15949 新環境の癖
15950 \begin_inset CommandInset label
15951 LatexCommand label
15952 name "sec:スライドの癖"
15953
15954 \end_inset
15955
15956
15957 \end_layout
15958
15959 \begin_layout Standard
15960 5つの新しい環境にはすべて,\SpecialChar LyX
15961 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
15962 では,環境を別の環境で開始することが禁止されています.これを回避するために,
15963 \family sans
15964 スライド
15965 \family default
15966 環境は『
15967 \emph on
15968 ユーザーの手引き
15969 \emph default
15970 』で述べられているような段落環境ではなくなっています.
15971 \end_layout
15972
15973 \begin_layout Standard
15974
15975 \family sans
15976 スライド
15977 \family default
15978
15979 \family sans
15980 オーバーレイ
15981 \family default
15982
15983 \family sans
15984 注釈
15985 \family default
15986 は「疑似環境」だとお考えください.これらは節見出しや「
15987 \family sans
15988 キャプション
15989 \family default
15990 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
15991 \family sans
15992 不可視文
15993 \family default
15994
15995 \family sans
15996 可視文
15997 \family default
15998 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
15999 \end_layout
16000
16001 \begin_layout Standard
16002
16003 \family sans
16004 スライド
16005 \family default
16006
16007 \family sans
16008 オーバーレイ
16009 \family default
16010
16011 \family sans
16012 注釈
16013 \family default
16014
16015 \family sans
16016 不可視文
16017 \family default
16018
16019 \family sans
16020 可視文
16021 \family default
16022 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
16023 \family sans
16024 スライド
16025 \family default
16026
16027 \family sans
16028 オーバーレイ
16029 \family default
16030
16031 \family sans
16032 注釈
16033 \family default
16034
16035 \family sans
16036 不可視文
16037 \family default
16038
16039 \family sans
16040 可視文
16041 \family default
16042 では,まったく意味がなく,\SpecialChar LyX
16043 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
16044 \end_layout
16045
16046 \begin_layout Standard
16047 長めのラベルの後に文章を入れる
16048 \emph on
16049 必要は
16050 \emph default
16051 まったく
16052 \emph on
16053 ない
16054 \emph default
16055 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
16056
16057 \family sans
16058 Return
16059 \family default
16060 を押してください.
16061 \end_layout
16062
16063 \begin_layout Standard
16064 一方,説明文を入れたくない場合には,\SpecialChar LyX
16065 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
16066 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
16067 こで以下のようにしてください.
16068 \end_layout
16069
16070 \begin_layout Itemize
16071 新しい
16072 \family sans
16073 スライド
16074 \family default
16075
16076 \family sans
16077 オーバーレイ
16078 \family default
16079
16080 \family sans
16081 注釈
16082 \family default
16083
16084 \family sans
16085 不可視文
16086 \family default
16087
16088 \family sans
16089 可視文
16090 \family default
16091
16092 \emph on
16093 中に入れる
16094 \emph default
16095 文章を入力してください.
16096 \end_layout
16097
16098 \begin_layout Itemize
16099 段落の先頭に移動します.
16100 \end_layout
16101
16102 \begin_layout Itemize
16103 次に
16104 \family sans
16105 Return
16106 \family default
16107 を押します.
16108 \end_layout
16109
16110 \begin_layout Itemize
16111 最後に,この新しい空の段落を
16112 \family sans
16113 スライド
16114 \family default
16115
16116 \family sans
16117 オーバーレイ
16118 \family default
16119
16120 \family sans
16121 注釈
16122 \family default
16123
16124 \family sans
16125 不可視文
16126 \family default
16127
16128 \family sans
16129 可視文
16130 \family default
16131 に変更します.
16132 \end_layout
16133
16134 \begin_layout Standard
16135 将来の\SpecialChar LyX
16136 では,このような癖が解決されることを祈っています\SpecialChar ldots
16137
16138 \begin_inset Foot
16139 status collapsed
16140
16141 \begin_layout Plain Layout
16142 (訳註)ここの記述は古くなっています.
16143 \end_layout
16144
16145 \end_inset
16146
16147
16148 \end_layout
16149
16150 \begin_layout Subsection
16151
16152 \family sans
16153 スライド
16154 \family default
16155
16156 \family sans
16157 オーバーレイ
16158 \family default
16159
16160 \family sans
16161 注釈で発表用のスライドを作る
16162 \end_layout
16163
16164 \begin_layout Subsubsection
16165
16166 \family sans
16167 スライド
16168 \family default
16169 環境を使う
16170 \end_layout
16171
16172 \begin_layout Standard
16173 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
16174 料を準備するうえで
16175 \family sans
16176 slides
16177 \family default
16178 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16179 の哲学です).
16180 \end_layout
16181
16182 \begin_layout Standard
16183
16184 \family sans
16185 スライド
16186 \family default
16187 環境を選択すれば(方法は第
16188 \begin_inset CommandInset ref
16189 LatexCommand ref
16190 reference "sec:スライドの癖"
16191
16192 \end_inset
16193
16194 節参照のこと),\SpecialChar LyX
16195 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
16196 環境は,すべて新規スライドに入ります.簡単ですよね.
16197 \end_layout
16198
16199 \begin_layout Standard
16200 Slidesは,おそらく\SpecialChar LyX
16201 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16202 \family sans
16203 段落レイアウト
16204 \family default
16205 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16206 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
16207 ,一枚に収まらないスライドでは,
16208 \family sans
16209 オーバーレイ
16210 \family default
16211 を使用すると干渉する恐れがあります.
16212 \end_layout
16213
16214 \begin_layout Standard
16215
16216 \family sans
16217 オーバーレイ
16218 \family default
16219 環境と
16220 \family sans
16221 注釈
16222 \family default
16223 環境も,
16224 \family sans
16225 スライド
16226 \family default
16227 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
16228 \noun on
16229 新規オーバーレイ
16230 \noun default
16231 :」ないし「
16232 \noun on
16233 新規注釈:
16234 \noun default
16235 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
16236 \end_layout
16237
16238 \begin_layout Standard
16239
16240 \family sans
16241 スライド
16242 \family default
16243 と同様に,
16244 \family sans
16245 オーバーレイ
16246 \family default
16247
16248 \family sans
16249 注釈
16250 \family default
16251 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
16252 \family sans
16253 注釈
16254 \family default
16255
16256 \family sans
16257 オーバーレイ
16258 \family default
16259 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
16260 \end_layout
16261
16262 \begin_layout Subsubsection
16263
16264 \family sans
16265 スライドでオーバーレイを使用する
16266 \end_layout
16267
16268 \begin_layout Standard
16269
16270 \family sans
16271 オーバーレイ
16272 \family default
16273 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
16274 \family sans
16275 スライド
16276 \family default
16277 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
16278 \family sans
16279 スライド
16280 \family default
16281 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
16282 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
16283 \family sans
16284 オーバーレイ
16285 \family default
16286 環境を使えば,もっと楽になります.
16287 \end_layout
16288
16289 \begin_layout Standard
16290
16291 \family sans
16292 オーバーレイ
16293 \family default
16294 は,「親」
16295 \family sans
16296 スライド
16297 \family default
16298 のページ番号を引継ぎ,その後に「
16299 \family typewriter
16300 -a
16301 \family default
16302 」を付け加えます
16303 \begin_inset Foot
16304 status collapsed
16305
16306 \begin_layout Plain Layout
16307 想像できるように,複数のオーバーレイがあれば,「
16308 \family typewriter
16309 -a
16310 \family default
16311 」「
16312 \family typewriter
16313 -b
16314 \family default
16315 」「
16316 \family typewriter
16317 -c
16318 \family default
16319 」などが親スライドのページ番号に付け加えられます.
16320 \end_layout
16321
16322 \end_inset
16323
16324 .当然のことながら,
16325 \family sans
16326 スライド
16327 \family default
16328
16329 \family sans
16330 オーバーレイ
16331 \family default
16332 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
16333 \family sans
16334 オーバーレイ
16335 \family default
16336
16337 \family sans
16338 スライド
16339 \family default
16340 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
16341 では,
16342 \family sans
16343 オーバーレイ
16344 \family default
16345 のラベルを
16346 \family sans
16347 スライド
16348 \family default
16349 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
16350 \family sans
16351 オーバーレイ
16352 \family default
16353 と親
16354 \family sans
16355 スライド
16356 \family default
16357 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
16358 \end_layout
16359
16360 \begin_layout Standard
16361 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
16362 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
16363 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
16364 \family sans
16365 不可視文
16366 \family default
16367
16368 \family sans
16369 可視文
16370 \family default
16371 を使用する方法があります.
16372 \end_layout
16373
16374 \begin_layout Standard
16375 これらの名前が意味するとおり,
16376 \family sans
16377 不可視文
16378 \family default
16379
16380 \family sans
16381 可視文
16382 \family default
16383 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
16384 \begin_inset CommandInset ref
16385 LatexCommand ref
16386 reference "sec:スライドの癖"
16387
16388 \end_inset
16389
16390 節で述べたように,この2つの環境の
16391 \emph on
16392
16393 \emph default
16394 には何も置くことができません.
16395 \family sans
16396 不可視文
16397 \family default
16398 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
16399 \family sans
16400 スライド
16401 \family default
16402 (あるいは
16403 \family sans
16404 オーバーレイ
16405 \family default
16406 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
16407 \end_layout
16408
16409 \begin_layout Standard
16410
16411 \family sans
16412 可視文
16413 \family default
16414 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
16415 \family sans
16416 スライド
16417 \family default
16418
16419 \family sans
16420 オーバーレイ
16421 \family default
16422
16423 \family sans
16424 注釈
16425 \family default
16426 を開始すると,
16427 \family sans
16428 不可視文
16429 \family default
16430 は自動的に終了されることに注意してください.したがって,
16431 \family sans
16432 スライド
16433 \family default
16434 の終わりでは,
16435 \family sans
16436 可視文
16437 \family default
16438 を使用する必要はありません.
16439 \end_layout
16440
16441 \begin_layout Standard
16442 ここまでで,
16443 \family sans
16444 スライド
16445 \family default
16446
16447 \family sans
16448 オーバーレイ
16449 \family default
16450 上で
16451 \family sans
16452 不可視文
16453 \family default
16454
16455 \family sans
16456 可視文
16457 \family default
16458 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
16459 \end_layout
16460
16461 \begin_layout Enumerate
16462 メインのスライドか
16463 \family sans
16464 オーバーレイ
16465 \family default
16466 かに関わらず,スライド上に現れるすべてを含んだ
16467 \family sans
16468 スライド
16469 \family default
16470 を作成します.
16471 \end_layout
16472
16473 \begin_layout Enumerate
16474
16475 \family sans
16476 オーバーレイ
16477 \family default
16478 のみに表示するすべての図や段落の前に,
16479 \family sans
16480 不可視文
16481 \family default
16482 環境を挿入し,必要ならば,
16483 \family sans
16484 オーバーレイ
16485 \family default
16486 のみの文章の後に
16487 \family sans
16488 可視文
16489 \family default
16490 環境を挿入します.
16491 \end_layout
16492
16493 \begin_layout Enumerate
16494
16495 \family sans
16496 スライド
16497 \family default
16498 の直後から,
16499 \family sans
16500 オーバーレイ
16501 \family default
16502 を開始します.
16503 \end_layout
16504
16505 \begin_layout Enumerate
16506 この
16507 \family sans
16508 スライド
16509 \family default
16510 の内容を
16511 \family sans
16512 オーバーレイ
16513 \family default
16514 にコピーします.
16515 \end_layout
16516
16517 \begin_layout Enumerate
16518
16519 \family sans
16520 オーバーレイ
16521 \family default
16522 内部の
16523 \family sans
16524 不可視文
16525 \family default
16526 行をすべて
16527 \family sans
16528 不可視文
16529 \family default
16530 に変更し,
16531 \family sans
16532 可視文
16533 \family default
16534
16535 \family sans
16536 不可視文
16537 \family default
16538 に変更します.
16539 \end_layout
16540
16541 \begin_layout Standard
16542 これだけです.これで
16543 \family sans
16544 オーバーレイ
16545 \family default
16546 ができあがりました.
16547 \end_layout
16548
16549 \begin_layout Standard
16550 \SpecialChar LyX
16551  
16552 \family sans
16553 slides
16554 \family default
16555 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
16556 実現するためには,\SpecialChar LaTeX
16557 コードを埋め込む必要があります
16558 \begin_inset Foot
16559 status collapsed
16560
16561 \begin_layout Plain Layout
16562 このコマンドは,
16563 \end_layout
16564
16565 \begin_layout Itemize
16566
16567 \family typewriter
16568 {
16569 \backslash
16570 invisible \SpecialChar ldots
16571  }
16572 \end_layout
16573
16574 \begin_layout Itemize
16575
16576 \family typewriter
16577 {
16578 \backslash
16579 visible \SpecialChar ldots
16580  }
16581 \end_layout
16582
16583 \begin_layout Plain Layout
16584 \SpecialChar ldots
16585 のような形となり,\SpecialChar TeX
16586 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
16587 \family typewriter
16588
16589 \backslash
16590 invisible
16591 \family default
16592 ないし
16593 \family typewriter
16594
16595 \backslash
16596 visible
16597 \family default
16598 コマンドの後ろ)に入れます.\SpecialChar TeX
16599 としてマークする方法がわからない場合は,
16600 \emph on
16601 ユーザーの手引き
16602 \emph default
16603 をご参照ください.
16604 \end_layout
16605
16606 \end_inset
16607
16608
16609 \end_layout
16610
16611 \begin_layout Subsubsection
16612
16613 \family sans
16614 スライドで注釈を使う
16615 \family default
16616
16617 \begin_inset CommandInset label
16618 LatexCommand label
16619 name "sec:スライド注釈"
16620
16621 \end_inset
16622
16623
16624 \end_layout
16625
16626 \begin_layout Standard
16627
16628 \family sans
16629 オーバーレイ
16630 \family default
16631 と同様,
16632 \family sans
16633 注釈
16634 \family default
16635 も「親」
16636 \family sans
16637 スライド
16638 \family default
16639 に関連付けられています.ここでも\SpecialChar LyX
16640
16641 \family sans
16642 スライド
16643 \family default
16644 クラスは視覚的な効果を与えています.
16645 \family sans
16646 注釈
16647 \family default
16648 のラベルは
16649 \family sans
16650 スライド
16651 \family default
16652 よりも短く(オーバーレイのラベルよりも長いですが),
16653 \family sans
16654 オーバーレイ
16655 \family default
16656 のラベルと同様,派手な赤紫色です.加えて,印刷した
16657 \family sans
16658 注釈
16659 \family default
16660 には,「親」スライドのページ番号に「
16661 \family typewriter
16662 -
16663 \family default
16664 1」「
16665 \family typewriter
16666 -
16667 \family default
16668 2」「
16669 \family typewriter
16670 -
16671 \family default
16672 3」等を付けたページ番号が付けられます.1つの
16673 \family sans
16674 スライド
16675 \family default
16676 には,複数の
16677 \family sans
16678 注釈
16679 \family default
16680 を関連付けることができるので,
16681 \family sans
16682 スライド
16683 \family default
16684
16685 \family sans
16686 オーバーレイ
16687 \family default
16688 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
16689 \end_layout
16690
16691 \begin_layout Standard
16692
16693 \family sans
16694 注釈
16695 \family default
16696 の目的は明らかです.
16697 \family sans
16698 スライド
16699 \family default
16700 に関して付け加えたいことを書き留めておくことです.特定の
16701 \family sans
16702 スライド
16703 \family default
16704 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
16705
16706 \family sans
16707 スライド
16708 \family default
16709 クラスは,
16710 \noun on
16711 Sli
16712 \noun default
16713 \SpecialChar TeX
16714 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
16715 コードを使用することに頼らなくてはなりません.
16716 \end_layout
16717
16718 \begin_layout Standard
16719 タイムマーカを使用するには,クラスオプション「
16720 \family typewriter
16721 clock
16722 \family default
16723 」を追加指定する必要があります(第
16724 \begin_inset CommandInset ref
16725 LatexCommand ref
16726 reference "sec:slidesetup"
16727
16728 \end_inset
16729
16730 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
16731 \family sans
16732 注釈
16733 \family default
16734 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
16735 コマンド「
16736 \family typewriter
16737
16738 \backslash
16739 settime{}
16740 \family default
16741 」および「
16742 \family typewriter
16743
16744 \backslash
16745 addtime{}
16746 \family default
16747 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
16748 \family typewriter
16749
16750 \backslash
16751 settime{}
16752 \family default
16753 」は,タイムマーカを特定の時間に設定し,「
16754 \family typewriter
16755
16756 \backslash
16757 addtime{}
16758 \family default
16759 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
16760 \family sans
16761 注釈
16762 \family default
16763 を用いれば,特定の
16764 \family sans
16765 スライド
16766 \family default
16767 にどれだけの時間をかけるのか忘れないでいられます.
16768 \end_layout
16769
16770 \begin_layout Standard
16771 最後に,説明しておくべき機能がもう一つあります.当然ながら,
16772 \family sans
16773 スライド
16774 \family default
16775
16776 \family sans
16777 オーバーレイ
16778 \family default
16779 はすべてスライドに,
16780 \family sans
16781 注釈
16782 \family default
16783 はすべて普通の紙に印刷したいはずです.しかしながら,
16784 \family sans
16785 注釈
16786 \family default
16787 は関連付けられた親スライドの直後に
16788 \emph on
16789 来なくてはなりません
16790 \emph default
16791 .ユーザーはどうしたら良いのでしょうか.
16792 \end_layout
16793
16794 \begin_layout Standard
16795 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
16796 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
16797 \family typewriter
16798
16799 \backslash
16800 onlyslides{
16801 \backslash
16802 slides}
16803 \family default
16804 」は,出力に
16805 \family sans
16806 スライド
16807 \family default
16808
16809 \family sans
16810 オーバーレイ
16811 \family default
16812 のみが含まれるようにするものです.同様に,「
16813 \family typewriter
16814
16815 \backslash
16816 onlynotes{
16817 \backslash
16818 notes}
16819 \family default
16820 」は
16821 \family sans
16822 注釈
16823 \family default
16824 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
16825 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
16826 らば,まず
16827 \family typewriter
16828
16829 \backslash
16830 onlyslides{
16831 \backslash
16832 slides}
16833 \family default
16834 のコメントを外して,現ファイル名に「*
16835 \family typewriter
16836 -slides
16837 \family default
16838 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
16839 \family typewriter
16840
16841 \backslash
16842 onlynotes{
16843 \backslash
16844 notes
16845 \family default
16846 }」のコメントを外して,これを「
16847 \family typewriter
16848 *-notes.ps
16849 \family default
16850 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
16851 \end_layout
16852
16853 \begin_layout Standard
16854
16855 \family typewriter
16856
16857 \backslash
16858 onlyslides{}
16859 \family default
16860 」および「
16861 \family typewriter
16862
16863 \backslash
16864 onlynotes{}
16865 \family default
16866 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
16867 の良書をご覧ください.
16868 \end_layout
16869
16870 \begin_layout Subsection
16871
16872 \family sans
16873 slides
16874 \family default
16875 クラスのひな型ファイル
16876 \end_layout
16877
16878 \begin_layout Standard
16879
16880 \family sans
16881 slides
16882 \family default
16883 クラス用のひな型ファイルとして「
16884 \family typewriter
16885 slides.lyx
16886 \family default
16887 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
16888 \family sans
16889 ファイル\SpecialChar menuseparator
16890 新規(ひな型使用)
16891 \family default
16892 メニューを選択してください.すると新規ファイルには,
16893 \family sans
16894 スライド
16895 \family default
16896
16897 \family sans
16898 オーバーレイ
16899 \family default
16900
16901 \family sans
16902 注釈
16903 \family default
16904 の組が,例として含まれており,
16905 \family sans
16906 スライド
16907 \family default
16908
16909 \family sans
16910 オーバーレイ
16911 \family default
16912 には,さらに
16913 \family sans
16914 不可視文
16915 \family default
16916
16917 \family sans
16918 可視文
16919 \family default
16920 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
16921 \end_layout
16922
16923 \begin_layout LyX-Code
16924 % Uncomment to print out only slides and overlays
16925 \end_layout
16926
16927 \begin_layout LyX-Code
16928 %
16929 \end_layout
16930
16931 \begin_layout LyX-Code
16932 %
16933 \backslash
16934 onlyslides{
16935 \backslash
16936 slides}
16937 \begin_inset Newline newline
16938 \end_inset
16939
16940  
16941 \end_layout
16942
16943 \begin_layout LyX-Code
16944 % Uncomment to print out only notes
16945 \end_layout
16946
16947 \begin_layout LyX-Code
16948 %
16949 \end_layout
16950
16951 \begin_layout LyX-Code
16952 %
16953 \backslash
16954 onlynotes{
16955 \backslash
16956 notes}
16957 \end_layout
16958
16959 \begin_layout Standard
16960 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
16961 の組み込みクラスである「
16962 \noun on
16963 Sli\SpecialChar TeX
16964
16965 \noun default
16966 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
16967 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
16968 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
16969 \family sans
16970 Foils
16971 \family default
16972 クラス(第
16973 \begin_inset CommandInset ref
16974 LatexCommand ref
16975 reference "sec:foiltex"
16976
16977 \end_inset
16978
16979 節参照)や「
16980 \family typewriter
16981 seminar
16982 \family default
16983 」パッケージ(一部の\SpecialChar TeX
16984 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
16985 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
16986 さい.
16987 \end_layout
16988
16989 \begin_layout Chapter
16990 ソフトウェアを追加する必要がある \SpecialChar LyX
16991 機能
16992 \end_layout
16993
16994 \begin_layout Section
16995 \SpecialChar TeX
16996 のチェック
16997 \end_layout
16998
16999 \begin_layout Standard
17000
17001 \noun on
17002 Asger Alstrup
17003 \noun default
17004
17005 \end_layout
17006
17007 \begin_layout Subsection
17008 はじめに
17009 \end_layout
17010
17011 \begin_layout Standard
17012
17013 \family typewriter
17014 chktex
17015 \family default
17016 プログラムが導入されていると
17017 \begin_inset Foot
17018 status collapsed
17019
17020 \begin_layout Plain Layout
17021 \SpecialChar LaTeX
17022 頒布版としてMiK\SpecialChar TeX
17023 を使用している場合には,
17024 \family typewriter
17025 chktex
17026 \family default
17027 はまだ利用可能ではありません.
17028 \end_layout
17029
17030 \end_inset
17031
17032
17033 \family sans
17034 ツール
17035 \family default
17036 メニューの下に,
17037 \family sans
17038 \SpecialChar TeX
17039 構文チェック
17040 \family default
17041 という項目が表示されます.
17042 \family typewriter
17043 chktex
17044 \family default
17045 は,CTAN
17046 \begin_inset Newline newline
17047 \end_inset
17048
17049
17050 \begin_inset CommandInset href
17051 LatexCommand href
17052 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17053 literal "false"
17054
17055 \end_inset
17056
17057 から入手することができます.
17058 \end_layout
17059
17060 \begin_layout Standard
17061
17062 \family sans
17063 Chk\SpecialChar TeX
17064
17065 \family default
17066 パッケージは,\SpecialChar LaTeX
17067 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
17068 \begin_inset Flex Noun
17069 status collapsed
17070
17071 \begin_layout Plain Layout
17072 Jens T.
17073  Berger Thielemann
17074 \end_layout
17075
17076 \end_inset
17077
17078 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
17079 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
17080 \family typewriter
17081 lint
17082 \family default
17083 であるとも言えます.
17084 \end_layout
17085
17086 \begin_layout Standard
17087 さて,\SpecialChar LyX
17088 はつねに正しい\SpecialChar LaTeX
17089 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
17090 で何をするというのでしょうか.答えは簡単です.
17091 \family typewriter
17092 lint
17093 \family default
17094 がC言語プログラムの
17095 \emph on
17096 文法
17097 \emph default
17098 をチェックするだけでなく,打ち間違いによる
17099 \emph on
17100 意味上の
17101 \emph default
17102 チェックも行うように,
17103 \family sans
17104 Chk\SpecialChar TeX
17105
17106 \family default
17107 は,文法エラーの他に犯しがちな
17108 \emph on
17109 写植上の
17110 \emph default
17111 誤りも検出してくれるからです.
17112 \family sans
17113 Chk\SpecialChar TeX
17114
17115 \family default
17116 は,以下のような誤りを検出することができます.
17117 \end_layout
17118
17119 \begin_layout Itemize
17120 省略記号の検出:
17121 \begin_inset Newline newline
17122 \end_inset
17123
17124 ...ではなく\SpecialChar ldots
17125 を使わなくてはなりません
17126 \end_layout
17127
17128 \begin_layout Itemize
17129 括弧の前後にスペースを置かない:
17130 \begin_inset Newline newline
17131 \end_inset
17132
17133 ( wrong spacing ):誤った空白
17134 \end_layout
17135
17136 \begin_layout Itemize
17137 よく使われる省略形の後ろは通常スペースにする:
17138 \begin_inset Newline newline
17139 \end_inset
17140
17141 e.
17142 \begin_inset space \thinspace{}
17143 \end_inset
17144
17145 g.
17146 \begin_inset space \space{}
17147 \end_inset
17148
17149 is too wide spacing.:広すぎる空白
17150 \end_layout
17151
17152 \begin_layout Itemize
17153 直前の文章が大文字で終わっているときに,文末スペースに直す:
17154 \begin_inset Newline newline
17155 \end_inset
17156
17157 This is a TEST.
17158  And this is wrong spacing.:誤った空白
17159 \end_layout
17160
17161 \begin_layout Itemize
17162 ラベルや類似コマンドの前のスペース:
17163 \begin_inset Newline newline
17164 \end_inset
17165
17166 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません. 
17167 \begin_inset CommandInset label
17168 LatexCommand label
17169 name "sec:chktex"
17170
17171 \end_inset
17172
17173  
17174 \begin_inset Foot
17175 status collapsed
17176
17177 \begin_layout Plain Layout
17178 この脚注は,正しくないページに行ってしまう恐れがあります.
17179 \end_layout
17180
17181 \end_inset
17182
17183  このラベルは離れすぎです.
17184 \end_layout
17185
17186 \begin_layout Itemize
17187 参照の前にハードスペースではなくスペース:
17188 \begin_inset Newline newline
17189 \end_inset
17190
17191 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
17192 \begin_inset CommandInset ref
17193 LatexCommand ref
17194 reference "sec:chktex"
17195
17196 \end_inset
17197
17198 節をご覧ください.
17199 \end_layout
17200
17201 \begin_layout Itemize
17202 数字のあいだで
17203 \begin_inset Formula $\times$
17204 \end_inset
17205
17206 ではなく「x」が使われている:
17207 \begin_inset Newline newline
17208 \end_inset
17209
17210 2x2は,
17211 \begin_inset Formula $2\times2$
17212 \end_inset
17213
17214 よりも安っぽく見えます.
17215 \end_layout
17216
17217 \begin_layout Standard
17218 などなど\SpecialChar ldots
17219
17220 \family sans
17221 Chk\SpecialChar TeX
17222
17223 \family default
17224 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
17225 \end_layout
17226
17227 \begin_layout Subsection
17228 使いかた
17229 \end_layout
17230
17231 \begin_layout Standard
17232 このプログラムを導入したならば,使うのは
17233 \family sans
17234 ツール\SpecialChar menuseparator
17235 \SpecialChar TeX
17236 構文チェック
17237 \family default
17238 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
17239 は使用中の文書の\SpecialChar LaTeX
17240 ファイルを生成して,
17241 \family sans
17242 Chk\SpecialChar TeX
17243
17244 \family default
17245 を起動し,当該ファイルを検査しますが,
17246 \family sans
17247 Chk\SpecialChar TeX
17248
17249 \family default
17250 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
17251 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
17252 \family sans
17253 移動\SpecialChar menuseparator
17254 エラー
17255 \family default
17256 を選択するか,既定の
17257 \family typewriter
17258 cua
17259 \family default
17260
17261 \begin_inset Flex Ruby
17262 status collapsed
17263
17264 \begin_layout Plain Layout
17265
17266 \begin_inset Argument post:1
17267 status collapsed
17268
17269 \begin_layout Plain Layout
17270 キー
17271 \end_layout
17272
17273 \end_inset
17274
17275
17276 \end_layout
17277
17278 \end_inset
17279
17280 設定ファイルならば
17281 \begin_inset Flex Ruby
17282 status collapsed
17283
17284 \begin_layout Plain Layout
17285
17286 \family roman
17287 \series medium
17288 \shape up
17289 \size normal
17290 \emph off
17291 \bar no
17292 \noun off
17293 \color none
17294 捷径
17295 \family default
17296 \series default
17297 \shape default
17298 \size default
17299 \emph default
17300 \bar default
17301 \noun default
17302 \color inherit
17303
17304 \begin_inset Argument post:1
17305 status collapsed
17306
17307 \begin_layout Plain Layout
17308 ショートカット
17309 \end_layout
17310
17311 \end_inset
17312
17313
17314 \end_layout
17315
17316 \end_inset
17317
17318
17319 \family sans
17320 C-g
17321 \family default
17322 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
17323 \family typewriter
17324 cua
17325 \family default
17326 鍵設定の場合には捷径鍵
17327 \family sans
17328 C-i
17329 \family default
17330
17331 \family typewriter
17332 emacs
17333 \family default
17334 鍵設定の場合は捷径鍵
17335 \family sans
17336 C-o
17337 \family default
17338 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
17339 \family sans
17340 Chk\SpecialChar TeX
17341
17342 \family default
17343 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
17344 があるのです.
17345 \end_layout
17346
17347 \begin_layout Standard
17348 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
17349 警告のほとんどは実際には警告に値しません.
17350 \end_layout
17351
17352 \begin_layout Subsection
17353 微調整のしかた
17354 \end_layout
17355
17356 \begin_layout Standard
17357 場合によっては,
17358 \family sans
17359 Chk\SpecialChar TeX
17360
17361 \family default
17362 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
17363 \family sans
17364 Chk\SpecialChar TeX
17365
17366 \family default
17367 を無効にするか,あなたにもう少し合うように
17368 \family sans
17369 Chk\SpecialChar TeX
17370
17371 \family default
17372 を調整することができます.
17373 \end_layout
17374
17375 \begin_layout Standard
17376
17377 \family sans
17378 Chk\SpecialChar TeX
17379
17380 \family default
17381 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
17382 における
17383 \family sans
17384 Chk\SpecialChar TeX
17385
17386 \family default
17387 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
17388 は,
17389 \family sans
17390 Chk\SpecialChar TeX
17391
17392 \family default
17393 出力
17394 \begin_inset Foot
17395 status collapsed
17396
17397 \begin_layout Plain Layout
17398
17399 \family sans
17400 chktex
17401 \family default
17402 の実際の出力は,
17403 \family sans
17404 chktex
17405 \family default
17406 を実行した直後に
17407 \family sans
17408 文書\SpecialChar menuseparator
17409 \SpecialChar LaTeX
17410 ログ
17411 \family default
17412 を使えば見ることができます.
17413 \end_layout
17414
17415 \end_inset
17416
17417 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
17418 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
17419 ためには,以下の2つの方法があります.
17420 \end_layout
17421
17422 \begin_layout Itemize
17423
17424 \family sans
17425 \begin_inset Flex MenuItem
17426 status collapsed
17427
17428 \begin_layout Plain Layout
17429
17430 \family sans
17431 ツール\SpecialChar menuseparator
17432 設定\SpecialChar menuseparator
17433 出力\SpecialChar menuseparator
17434 \SpecialChar LaTeX
17435 \SpecialChar menuseparator
17436 Check\SpecialChar TeX
17437 コマンド
17438 \end_layout
17439
17440 \end_inset
17441
17442
17443 \family default
17444 中の
17445 \family sans
17446 Chk\SpecialChar TeX
17447
17448 \family default
17449 起動コマンドラインを調整するか,グローバルな
17450 \family sans
17451 Chk\SpecialChar TeX
17452
17453 \family default
17454 の設定ファイル(通常は
17455 \begin_inset Flex Code
17456 status collapsed
17457
17458 \begin_layout Plain Layout
17459 chktexrc
17460 \end_layout
17461
17462 \end_inset
17463
17464 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
17465 \end_layout
17466
17467 \begin_layout Itemize
17468
17469 \family sans
17470 ファイル\SpecialChar menuseparator
17471 書き出し\SpecialChar menuseparator
17472 \SpecialChar LaTeX
17473
17474 \family default
17475 を使って文書を\SpecialChar LaTeX
17476 ファイルに変換し,そのファイルに対して
17477 \family typewriter
17478 chktex
17479 \family default
17480 を手動で実行します.このようにすると,\SpecialChar LyX
17481 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
17482 \end_layout
17483
17484 \begin_layout Standard
17485 以下は,
17486 \family sans
17487 設定
17488 \family default
17489 で有効化・無効化できる警告メッセージです.警告を無効にするには
17490 \family typewriter
17491 -n#
17492 \family default
17493 ,有効にするには
17494 \family typewriter
17495 -w#
17496 \family default
17497 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
17498 \family typewriter
17499 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17500 \family default
17501 "です.
17502 \end_layout
17503
17504 \begin_layout Standard
17505 \SpecialChar LyX
17506 は,
17507 \family typewriter
17508 chktex
17509 \family default
17510 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
17511 \end_layout
17512
17513 \begin_layout Enumerate
17514
17515 \size small
17516 \emph on
17517 Command terminated with space.
17518 \end_layout
17519
17520 \begin_layout Enumerate
17521
17522 \size small
17523 Non-breaking space (
17524 \begin_inset Quotes eld
17525 \end_inset
17526
17527
17528 \family typewriter
17529 ~
17530 \family default
17531
17532 \begin_inset Quotes erd
17533 \end_inset
17534
17535 ) should have been used.
17536 \end_layout
17537
17538 \begin_layout Enumerate
17539
17540 \size small
17541 \emph on
17542 You should enclose the previous parenthesis with 
17543 \begin_inset Quotes eld
17544 \end_inset
17545
17546
17547 \family typewriter
17548 {}
17549 \family default
17550
17551 \begin_inset Quotes erd
17552 \end_inset
17553
17554 .
17555 \end_layout
17556
17557 \begin_layout Enumerate
17558
17559 \size small
17560 Italic correction (
17561 \begin_inset Quotes eld
17562 \end_inset
17563
17564
17565 \family typewriter
17566
17567 \backslash
17568 /
17569 \family default
17570
17571 \begin_inset Quotes erd
17572 \end_inset
17573
17574 ) found in non-italic buffer.
17575 \end_layout
17576
17577 \begin_layout Enumerate
17578
17579 \size small
17580 Italic correction (
17581 \begin_inset Quotes eld
17582 \end_inset
17583
17584
17585 \family typewriter
17586
17587 \backslash
17588 /
17589 \family default
17590
17591 \begin_inset Quotes erd
17592 \end_inset
17593
17594 ) found more than once.
17595 \end_layout
17596
17597 \begin_layout Enumerate
17598
17599 \size small
17600 \emph on
17601 No italic correction (
17602 \begin_inset Quotes eld
17603 \end_inset
17604
17605
17606 \family typewriter
17607
17608 \backslash
17609 /
17610 \family default
17611
17612 \begin_inset Quotes erd
17613 \end_inset
17614
17615 ) found.
17616 \end_layout
17617
17618 \begin_layout Enumerate
17619
17620 \size small
17621 Accent command 
17622 \begin_inset Quotes eld
17623 \end_inset
17624
17625
17626 \family typewriter
17627 cmd
17628 \family default
17629
17630 \begin_inset Quotes erd
17631 \end_inset
17632
17633  needs use of 
17634 \begin_inset Quotes eld
17635 \end_inset
17636
17637
17638 \family typewriter
17639 cmd
17640 \family default
17641
17642 \begin_inset Quotes erd
17643 \end_inset
17644
17645 .
17646 \end_layout
17647
17648 \begin_layout Enumerate
17649
17650 \size small
17651 Wrong length of dash may have been used.
17652 \end_layout
17653
17654 \begin_layout Enumerate
17655
17656 \size small
17657 \emph on
17658 \begin_inset Quotes eld
17659 \end_inset
17660
17661
17662 \family typewriter
17663 %s
17664 \family default
17665
17666 \begin_inset Quotes erd
17667 \end_inset
17668
17669  expected, found 
17670 \begin_inset Quotes eld
17671 \end_inset
17672
17673
17674 \family typewriter
17675 %s
17676 \family default
17677
17678 \begin_inset Quotes erd
17679 \end_inset
17680
17681 .
17682 \end_layout
17683
17684 \begin_layout Enumerate
17685
17686 \size small
17687 Solo 
17688 \begin_inset Quotes eld
17689 \end_inset
17690
17691
17692 \family typewriter
17693 %s
17694 \family default
17695
17696 \begin_inset Quotes erd
17697 \end_inset
17698
17699  found.
17700 \end_layout
17701
17702 \begin_layout Enumerate
17703
17704 \size small
17705 You should use 
17706 \begin_inset Quotes eld
17707 \end_inset
17708
17709
17710 \family typewriter
17711 %s
17712 \family default
17713
17714 \begin_inset Quotes erd
17715 \end_inset
17716
17717  to achieve an ellipsis.
17718 \end_layout
17719
17720 \begin_layout Enumerate
17721
17722 \size small
17723 Inter-word spacing (
17724 \begin_inset Quotes eld
17725 \end_inset
17726
17727
17728 \family typewriter
17729
17730 \backslash
17731
17732 \family default
17733  
17734 \begin_inset Quotes eld
17735 \end_inset
17736
17737 ) should perhaps be used.
17738 \end_layout
17739
17740 \begin_layout Enumerate
17741
17742 \size small
17743 Inter-sentence spacing (
17744 \begin_inset Quotes eld
17745 \end_inset
17746
17747
17748 \family typewriter
17749
17750 \backslash
17751 @
17752 \family default
17753
17754 \begin_inset Quotes erd
17755 \end_inset
17756
17757 ) should perhaps be used.
17758 \end_layout
17759
17760 \begin_layout Enumerate
17761
17762 \size small
17763 Could not find argument for command.
17764 \end_layout
17765
17766 \begin_layout Enumerate
17767
17768 \size small
17769 No match found for 
17770 \begin_inset Quotes eld
17771 \end_inset
17772
17773
17774 \family typewriter
17775 %s
17776 \family default
17777
17778 \begin_inset Quotes erd
17779 \end_inset
17780
17781 .
17782 \end_layout
17783
17784 \begin_layout Enumerate
17785
17786 \size small
17787 Math mode still on at end of \SpecialChar LaTeX
17788  file.
17789 \end_layout
17790
17791 \begin_layout Enumerate
17792
17793 \size small
17794 Number of 
17795 \begin_inset Quotes eld
17796 \end_inset
17797
17798
17799 \family typewriter
17800 char
17801 \family default
17802
17803 \begin_inset Quotes erd
17804 \end_inset
17805
17806  doesn't match the number of 
17807 \begin_inset Quotes eld
17808 \end_inset
17809
17810
17811 \family typewriter
17812 char
17813 \family default
17814
17815 \begin_inset Quotes erd
17816 \end_inset
17817
17818 .
17819 \end_layout
17820
17821 \begin_layout Enumerate
17822
17823 \size small
17824 You should use either 
17825 \family typewriter
17826
17827 \begin_inset Quotes eld
17828 \end_inset
17829
17830
17831 \family default
17832  or 
17833 \family typewriter
17834
17835 \begin_inset Quotes erd
17836 \end_inset
17837
17838
17839 \family default
17840  as an alternative to 
17841 \begin_inset Quotes eld
17842 \end_inset
17843
17844
17845 \family typewriter
17846 "
17847 \family default
17848
17849 \begin_inset Quotes erd
17850 \end_inset
17851
17852 .
17853 \end_layout
17854
17855 \begin_layout Enumerate
17856
17857 \size small
17858 You should use "
17859 \family typewriter
17860 '
17861 \family default
17862 " (ASCII 39) instead of "" (ASCII 180).
17863 \end_layout
17864
17865 \begin_layout Enumerate
17866
17867 \size small
17868 User-specified pattern found.
17869 \end_layout
17870
17871 \begin_layout Enumerate
17872
17873 \size small
17874 This command might not be intended.
17875 \end_layout
17876
17877 \begin_layout Enumerate
17878
17879 \size small
17880 \emph on
17881 Comment displayed.
17882 \end_layout
17883
17884 \begin_layout Enumerate
17885
17886 \size small
17887 Either 
17888 \family typewriter
17889 ''
17890 \backslash
17891 ,'
17892 \family default
17893  or 
17894 \family typewriter
17895 '
17896 \backslash
17897 ,''
17898 \family default
17899  will look better.
17900 \end_layout
17901
17902 \begin_layout Enumerate
17903
17904 \size small
17905 Delete this space to maintain correct page references.
17906 \end_layout
17907
17908 \begin_layout Enumerate
17909
17910 \size small
17911 \emph on
17912 You might wish to put this between a pair of 
17913 \begin_inset Quotes eld
17914 \end_inset
17915
17916
17917 \family typewriter
17918 {}
17919 \family default
17920
17921 \begin_inset Quotes erd
17922 \end_inset
17923
17924 .
17925 \end_layout
17926
17927 \begin_layout Enumerate
17928
17929 \size small
17930 You ought to remove spaces in front of punctuation.
17931 \end_layout
17932
17933 \begin_layout Enumerate
17934
17935 \size small
17936 Could not execute \SpecialChar LaTeX
17937  command.
17938 \end_layout
17939
17940 \begin_layout Enumerate
17941
17942 \size small
17943 Don't use 
17944 \family typewriter
17945
17946 \backslash
17947 /
17948 \family default
17949  in front of small punctuation.
17950 \end_layout
17951
17952 \begin_layout Enumerate
17953
17954 \family typewriter
17955 \size small
17956 $
17957 \backslash
17958 times$
17959 \family default
17960  may look prettier here.
17961 \end_layout
17962
17963 \begin_layout Enumerate
17964
17965 \size small
17966 \emph on
17967 Multiple spaces detected in output.
17968 \end_layout
17969
17970 \begin_layout Enumerate
17971
17972 \size small
17973 This text may be ignored.
17974 \end_layout
17975
17976 \begin_layout Enumerate
17977
17978 \size small
17979 Use 
17980 \family typewriter
17981
17982 \begin_inset Quotes eld
17983 \end_inset
17984
17985
17986 \family default
17987  to begin quotation, not 
17988 \family typewriter
17989 '
17990 \family default
17991 .
17992 \end_layout
17993
17994 \begin_layout Enumerate
17995
17996 \size small
17997 Use 
17998 \family typewriter
17999 '
18000 \family default
18001  to end quotation, not 
18002 \family typewriter
18003
18004 \begin_inset Quotes eld
18005 \end_inset
18006
18007
18008 \family default
18009 .
18010 \end_layout
18011
18012 \begin_layout Enumerate
18013
18014 \size small
18015 Don't mix quotes.
18016 \end_layout
18017
18018 \begin_layout Enumerate
18019
18020 \size small
18021 You should perhaps use 
18022 \begin_inset Quotes eld
18023 \end_inset
18024
18025
18026 \family typewriter
18027 cmd
18028 \family default
18029
18030 \begin_inset Quotes erd
18031 \end_inset
18032
18033  instead.
18034 \end_layout
18035
18036 \begin_layout Enumerate
18037
18038 \size small
18039 You should put a space in front of/after parenthesis.
18040 \end_layout
18041
18042 \begin_layout Enumerate
18043
18044 \size small
18045 You should avoid spaces in front of/after parenthesis.
18046 \end_layout
18047
18048 \begin_layout Enumerate
18049
18050 \size small
18051 \emph on
18052 You should not use punctuation in front of/after quotes.
18053 \end_layout
18054
18055 \begin_layout Enumerate
18056
18057 \size small
18058 Double space found.
18059 \end_layout
18060
18061 \begin_layout Enumerate
18062
18063 \size small
18064 You should put punctuation outside inner/inside display math mode.
18065 \end_layout
18066
18067 \begin_layout Enumerate
18068
18069 \size small
18070 You ought to not use primitive \SpecialChar TeX
18071  in \SpecialChar LaTeX
18072  code.
18073 \end_layout
18074
18075 \begin_layout Enumerate
18076
18077 \size small
18078 You should remove spaces in front of 
18079 \begin_inset Quotes eld
18080 \end_inset
18081
18082
18083 \family typewriter
18084 %s
18085 \family default
18086
18087 \begin_inset Quotes erd
18088 \end_inset
18089
18090
18091 \end_layout
18092
18093 \begin_layout Enumerate
18094
18095 \size small
18096 \begin_inset Quotes eld
18097 \end_inset
18098
18099
18100 \family typewriter
18101 %s
18102 \family default
18103
18104 \begin_inset Quotes erd
18105 \end_inset
18106
18107  is normally not followed by 
18108 \begin_inset Quotes eld
18109 \end_inset
18110
18111
18112 \family typewriter
18113 %c
18114 \family default
18115
18116 \begin_inset Quotes erd
18117 \end_inset
18118
18119 .
18120 \end_layout
18121
18122 \begin_layout Standard
18123 \SpecialChar LyX
18124 の将来の版では,このツール(およびその縮小版
18125 \family typewriter
18126 lacheck
18127 \family default
18128 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
18129 書に使用してみていただければ,きっと驚かれることでしょう.
18130 \end_layout
18131
18132 \begin_layout Section
18133 \SpecialChar LyX
18134 でのバージョン管理
18135 \end_layout
18136
18137 \begin_layout Standard
18138
18139 \noun on
18140 Lars Bullik Bjønnes
18141 \noun default
18142 および
18143 \noun on
18144 Pavel Sanda
18145 \noun default
18146
18147 \end_layout
18148
18149 \begin_layout Subsection
18150 はじめに
18151 \end_layout
18152
18153 \begin_layout Standard
18154 \SpecialChar LyX
18155 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
18156 があります.
18157 \end_layout
18158
18159 \begin_layout Standard
18160 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
18161 N Book
18162 \begin_inset Foot
18163 status collapsed
18164
18165 \begin_layout Plain Layout
18166 \begin_inset CommandInset href
18167 LatexCommand href
18168 target "http://svnbook.red-bean.com/"
18169 literal "false"
18170
18171 \end_inset
18172
18173
18174 \end_layout
18175
18176 \end_inset
18177
18178 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
18179 \family typewriter
18180 man rcsintro
18181 \family default
18182 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
18183 \family typewriter
18184 ,v
18185 \family default
18186 で終わるファイルです)の概念に注意を払ってください.
18187 \end_layout
18188
18189 \begin_layout Standard
18190 \SpecialChar LyX
18191 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
18192 で\SpecialChar LyX
18193 への実装においては,GNU
18194  RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
18195 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
18196 \family sans
18197 表示\SpecialChar menuseparator
18198 ツールバー\SpecialChar menuseparator
18199 バージョン管理
18200 \family default
18201 で有効にできます.
18202 \end_layout
18203
18204 \begin_layout Standard
18205 自製の外部コマンドを導入したい場合には,\SpecialChar LyX
18206 関数説明書のvcコマンドを確認してください.
18207 \end_layout
18208
18209 \begin_layout Standard
18210 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
18211 \family sans
18212 文書\SpecialChar menuseparator
18213 圧縮
18214 \family default
18215 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
18216 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
18217 \end_layout
18218
18219 \begin_layout Subsection
18220 \SpecialChar LyX
18221 におけるRCSコマンド
18222 \end_layout
18223
18224 \begin_layout Standard
18225 以下の節では\SpecialChar LyX
18226 でサポートされているRCSコマンドを説明します.それらのコマンドは
18227 \family sans
18228 ファイル\SpecialChar menuseparator
18229 バージョン管理
18230 \family default
18231 のサブメニューにあります.\SpecialChar LyX
18232 は,RCS 5.7/5.8に対して試験されています.
18233 \end_layout
18234
18235 \begin_layout Subsubsection
18236
18237 \family sans
18238 登録
18239 \end_layout
18240
18241 \begin_layout Standard
18242 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
18243 \family sans
18244 登録
18245 \family default
18246 は不可視になります.
18247 \end_layout
18248
18249 \begin_layout Standard
18250 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
18251 書は読み込み専用モードになるので,変更を加えるためには
18252 \family sans
18253 チェックアウトして編集
18254 \family default
18255 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
18256 \end_layout
18257
18258 \begin_layout Standard
18259 実行されるRCSコマンドは:
18260 \family typewriter
18261
18262 \begin_inset Newline newline
18263 \end_inset
18264
18265 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18266 \end_layout
18267
18268 \begin_layout Standard
18269 スイッチについて知りたい場合は,
18270 \family typewriter
18271 man ci
18272 \family default
18273 を読んでください.
18274 \end_layout
18275
18276 \begin_layout Subsubsection
18277
18278 \family sans
18279 変更をチェックインする
18280 \end_layout
18281
18282 \begin_layout Standard
18283 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
18284 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
18285 \end_layout
18286
18287 \begin_layout Standard
18288 RCSコマンド:
18289 \family typewriter
18290 ci -q -u -m"<説明文>" <ファイル名>
18291 \end_layout
18292
18293 \begin_layout Subsubsection
18294
18295 \family sans
18296 チェックアウトして編集
18297 \end_layout
18298
18299 \begin_layout Standard
18300 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
18301 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
18302 \end_layout
18303
18304 \begin_layout Standard
18305 RCSコマンド:
18306 \family typewriter
18307 co -q -l <ファイル名>
18308 \end_layout
18309
18310 \begin_layout Subsubsection
18311
18312 \family sans
18313 リポジトリのバージョンに戻す
18314 \end_layout
18315
18316 \begin_layout Standard
18317 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
18318 \end_layout
18319
18320 \begin_layout Standard
18321 RCSコマンド:
18322 \family typewriter
18323 co -f -u<バージョン> <ファイル名>
18324 \end_layout
18325
18326 \begin_layout Subsubsection
18327
18328 \family sans
18329 コピー
18330 \end_layout
18331
18332 \begin_layout Standard
18333 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18334 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18335 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18336 \family sans
18337 ファイル\SpecialChar menuseparator
18338 名前をつけて保存\SpecialChar ldots
18339
18340 \family default
18341 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18342 \end_layout
18343
18344 \begin_layout Labeling
18345 \labelwidthstring 00.00.0000
18346 RCSコマンド:
18347 \begin_inset Flex Code
18348 status collapsed
18349
18350 \begin_layout Plain Layout
18351 "ファイル名"
18352 \end_layout
18353
18354 \end_inset
18355
18356
18357 \family typewriter
18358 "新ファイル名"
18359 \family default
18360 にコピーする場合
18361 \end_layout
18362
18363 \begin_layout Labeling
18364 \labelwidthstring 00.00.0000
18365 \begin_inset Flex Code
18366 status collapsed
18367
18368 \begin_layout Plain Layout
18369 ci -q -u -i "<新ファイル名>"
18370 \end_layout
18371
18372 \end_inset
18373
18374
18375 \end_layout
18376
18377 \begin_layout Subsubsection
18378
18379 \family sans
18380 最後のチェックインを取り消す
18381 \end_layout
18382
18383 \begin_layout Standard
18384 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
18385 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
18386 されます.
18387 \end_layout
18388
18389 \begin_layout Standard
18390 RCSコマンド:
18391 \family typewriter
18392 rcs -o<バージョン> <ファイル名>
18393 \end_layout
18394
18395 \begin_layout Subsubsection
18396
18397 \family sans
18398 履歴を表示
18399 \end_layout
18400
18401 \begin_layout Standard
18402 RCS文書の完全な履歴を表示します.ブラウザ中に,
18403 \family typewriter
18404 rlog <ファイル名>
18405 \family default
18406 の出力が表示されます.詳細は
18407 \family typewriter
18408 man rlog
18409 \family default
18410 をご覧ください.
18411 \end_layout
18412
18413 \begin_layout Subsubsection
18414 改訂情報
18415 \end_layout
18416
18417 \begin_layout Standard
18418 \SpecialChar LyX
18419 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
18420 \begin_inset CommandInset ref
18421 LatexCommand ref
18422 reference "subsec:VCS改訂情報"
18423
18424 \end_inset
18425
18426 を参照.
18427 \end_layout
18428
18429 \begin_layout Subsection
18430 \SpecialChar LyX
18431 におけるCVSコマンド
18432 \end_layout
18433
18434 \begin_layout Standard
18435 \SpecialChar LyX
18436 は,現在CVSを一部サポートしています.そのコマンドは,
18437 \family sans
18438 ファイル\SpecialChar menuseparator
18439 バージョン管理
18440 \family default
18441 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
18442 \end_layout
18443
18444 \begin_layout Subsubsection
18445 CVSの一般的な利用法
18446 \end_layout
18447
18448 \begin_layout Standard
18449 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
18450 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
18451 \end_layout
18452
18453 \begin_layout Standard
18454 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
18455 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
18456 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
18457 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
18458 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
18459 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
18460 で予備付きチェックアウトを利用したい場合には,
18461 \begin_inset Flex Code
18462 status collapsed
18463
18464 \begin_layout Plain Layout
18465 .cvsrc
18466 \end_layout
18467
18468 \end_inset
18469
18470 ファイルを編集して,
18471 \begin_inset Flex Code
18472 status collapsed
18473
18474 \begin_layout Plain Layout
18475 cvs -r
18476 \end_layout
18477
18478 \end_inset
18479
18480 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
18481 コピーを書き込み可能にしているとは限りません.
18482 \end_layout
18483
18484 \begin_layout Standard
18485 \SpecialChar LyX
18486 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
18487 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
18488 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
18489 可能にするためには,
18490 \begin_inset Flex MenuItem
18491 status collapsed
18492
18493 \begin_layout Plain Layout
18494 チェックアウト
18495 \end_layout
18496
18497 \end_inset
18498
18499 メニューを使用しなくてはなりません.その後,
18500 \begin_inset Flex MenuItem
18501 status collapsed
18502
18503 \begin_layout Plain Layout
18504 チェックイン
18505 \end_layout
18506
18507 \end_inset
18508
18509 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
18510 \end_layout
18511
18512 \begin_layout Standard
18513 CVSの詳細な情報は,
18514 \begin_inset Flex URL
18515 status collapsed
18516
18517 \begin_layout Plain Layout
18518
18519 http://www.nongnu.org/cvs
18520 \end_layout
18521
18522 \end_inset
18523
18524
18525 \begin_inset Flex URL
18526 status collapsed
18527
18528 \begin_layout Plain Layout
18529
18530 http://ximbiot.com/cvs
18531 \end_layout
18532
18533 \end_inset
18534
18535 にあります.
18536 \end_layout
18537
18538 \begin_layout Standard
18539 以下に言及するサブコマンドとスイッチを理解するには,
18540 \family typewriter
18541 man cvs
18542 \family default
18543 をお読みください.
18544 \end_layout
18545
18546 \begin_layout Subsubsection
18547 登録
18548 \end_layout
18549
18550 \begin_layout Standard
18551 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
18552 \family sans
18553 登録
18554 \family default
18555 項目は表示されません.
18556 \end_layout
18557
18558 \begin_layout Standard
18559 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
18560 \series bold
18561 \emph on
18562 のみ
18563 \series default
18564 \emph default
18565 (すなわち
18566 \begin_inset Flex Code
18567 status collapsed
18568
18569 \begin_layout Plain Layout
18570 CVS/Entries
18571 \end_layout
18572
18573 \end_inset
18574
18575 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18576 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
18577 は文書をRCSに登録します).
18578 \end_layout
18579
18580 \begin_layout Standard
18581 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
18582 \end_layout
18583
18584 \begin_layout Standard
18585 実行されるCVSコマンドは,
18586 \family typewriter
18587 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18588 \family default
18589  です.
18590 \end_layout
18591
18592 \begin_layout Standard
18593 上記および他のすべてのCVSコマンドにおける
18594 \family typewriter
18595 "<ファイル名>"
18596 \family default
18597 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
18598 \end_layout
18599
18600 \begin_layout Subsubsection
18601 変更のチェックイン
18602 \end_layout
18603
18604 \begin_layout Standard
18605 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
18606 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
18607 \begin_inset Flex MenuItem
18608 status collapsed
18609
18610 \begin_layout Plain Layout
18611 チェックアウト
18612 \end_layout
18613
18614 \end_inset
18615
18616 で作られた予備は取り消されます.
18617 \end_layout
18618
18619 \begin_layout Labeling
18620 \labelwidthstring 00.00.0000
18621 CVSコマンド: 
18622 \begin_inset space ~
18623 \end_inset
18624
18625
18626 \begin_inset Newline newline
18627 \end_inset
18628
18629
18630 \begin_inset Flex Code
18631 status collapsed
18632
18633 \begin_layout Plain Layout
18634 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18635 \end_layout
18636
18637 \end_inset
18638
18639 あるいは
18640 \begin_inset Newline newline
18641 \end_inset
18642
18643
18644 \begin_inset Flex Code
18645 status collapsed
18646
18647 \begin_layout Plain Layout
18648 cvs -q unedit "<ファイル名>"
18649 \end_layout
18650
18651 \end_inset
18652
18653
18654 \end_layout
18655
18656 \begin_layout Subsubsection
18657 変更のチェックアウト
18658 \end_layout
18659
18660 \begin_layout Standard
18661 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
18662 \end_layout
18663
18664 \begin_layout Standard
18665 CVSコマンド:
18666 \family typewriter
18667 cvs -q update "<ファイル名>"
18668 \end_layout
18669
18670 \begin_layout Standard
18671 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
18672 \end_layout
18673
18674 \begin_layout Standard
18675 CVSコマンド:
18676 \family typewriter
18677 cvs -q edit "<ファイル名>"
18678 \end_layout
18679
18680 \begin_layout Subsubsection
18681 レポジトリ版に戻す
18682 \end_layout
18683
18684 \begin_layout Standard
18685 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
18686 が実行されます.
18687 \end_layout
18688
18689 \begin_layout Standard
18690 CVSコマンド:
18691 \family typewriter
18692 cvs -q update "<ファイル名>"
18693 \end_layout
18694
18695 \begin_layout Standard
18696 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
18697 \end_layout
18698
18699 \begin_layout Standard
18700 CVSコマンド:
18701 \family typewriter
18702 cvs -q unedit "<ファイル名>"
18703 \end_layout
18704
18705 \begin_layout Subsubsection
18706
18707 \family sans
18708 コピー
18709 \end_layout
18710
18711 \begin_layout Standard
18712 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18713 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18714 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18715 \family sans
18716 ファイル\SpecialChar menuseparator
18717 名前をつけて保存\SpecialChar ldots
18718
18719 \family default
18720 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18721 \end_layout
18722
18723 \begin_layout Labeling
18724 \labelwidthstring 00.00.0000
18725 CVSコマンド:
18726 \end_layout
18727
18728 \begin_layout Labeling
18729 \labelwidthstring 00.00.0000
18730 \begin_inset Flex Code
18731 status collapsed
18732
18733 \begin_layout Plain Layout
18734 "ファイル名"
18735 \end_layout
18736
18737 \end_inset
18738
18739
18740 \begin_inset Flex Code
18741 status collapsed
18742
18743 \begin_layout Plain Layout
18744 "新ファイル名"
18745 \end_layout
18746
18747 \end_inset
18748
18749 にコピーする場合
18750 \end_layout
18751
18752 \begin_layout Labeling
18753 \labelwidthstring 00.00.0000
18754 \begin_inset Flex Code
18755 status collapsed
18756
18757 \begin_layout Plain Layout
18758 cvs -q add "<新ファイル名>"
18759 \end_layout
18760
18761 \end_inset
18762
18763
18764 \end_layout
18765
18766 \begin_layout Subsubsection
18767 ファイル名変更
18768 \end_layout
18769
18770 \begin_layout Standard
18771 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
18772 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
18773 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
18774 スは,(
18775 \family sans
18776 ファイル\SpecialChar menuseparator
18777 名前をつけて保存\SpecialChar ldots
18778
18779 \family default
18780 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
18781 \end_layout
18782
18783 \begin_layout Labeling
18784 \labelwidthstring 00.00.0000
18785 CVSコマンド:
18786 \end_layout
18787
18788 \begin_layout Labeling
18789 \labelwidthstring 00.00.0000
18790 \begin_inset Flex Code
18791 status collapsed
18792
18793 \begin_layout Plain Layout
18794 "ファイル名"
18795 \end_layout
18796
18797 \end_inset
18798
18799
18800 \begin_inset Flex Code
18801 status collapsed
18802
18803 \begin_layout Plain Layout
18804 "新ファイル名"
18805 \end_layout
18806
18807 \end_inset
18808
18809 に変更する場合
18810 \end_layout
18811
18812 \begin_layout Labeling
18813 \labelwidthstring 00.00.0000
18814 \begin_inset Flex Code
18815 status collapsed
18816
18817 \begin_layout Plain Layout
18818 cvs -q add "<新ファイル名>"
18819 \end_layout
18820
18821 \end_inset
18822
18823
18824 \end_layout
18825
18826 \begin_layout Labeling
18827 \labelwidthstring 00.00.0000
18828 \begin_inset Flex Code
18829 status collapsed
18830
18831 \begin_layout Plain Layout
18832 cvs -q remove "<ファイル名>"
18833 \end_layout
18834
18835 \end_inset
18836
18837
18838 \end_layout
18839
18840 \begin_layout Subsubsection
18841 ローカルディレクトリチェックアウトのレポジトリからの更新
18842 \end_layout
18843
18844 \begin_layout Standard
18845 子文書や図を含んだり,外部
18846 \begin_inset Flex Code
18847 status collapsed
18848
18849 \begin_layout Plain Layout
18850 .tex
18851 \end_layout
18852
18853 \end_inset
18854
18855 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
18856 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
18857 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
18858 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
18859 慣です.
18860 \end_layout
18861
18862 \begin_layout Standard
18863 コマンド
18864 \begin_inset Flex Code
18865 status collapsed
18866
18867 \begin_layout Plain Layout
18868 レポジトリを使ってローカル辞書を更新
18869 \end_layout
18870
18871 \end_inset
18872
18873 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
18874 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
18875 \begin_inset Flex Code
18876 status collapsed
18877
18878 \begin_layout Plain Layout
18879 <<<<<<<
18880 \end_layout
18881
18882 \end_inset
18883
18884
18885 \begin_inset Flex Code
18886 status collapsed
18887
18888 \begin_layout Plain Layout
18889 >>>>>>>
18890 \end_layout
18891
18892 \end_inset
18893
18894 の対に囲まれ,
18895 \begin_inset Flex Code
18896 status collapsed
18897
18898 \begin_layout Plain Layout
18899 =======
18900 \end_layout
18901
18902 \end_inset
18903
18904 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
18905 \begin_inset Flex Code
18906 status collapsed
18907
18908 \begin_layout Plain Layout
18909 >
18910 \end_layout
18911
18912 \end_inset
18913
18914 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
18915 \end_layout
18916
18917 \begin_layout Labeling
18918 \labelwidthstring 00.00.0000
18919 CVSコマンド: 
18920 \begin_inset space ~
18921 \end_inset
18922
18923
18924 \begin_inset Newline newline
18925 \end_inset
18926
18927
18928 \begin_inset Flex Code
18929 status collapsed
18930
18931 \begin_layout Plain Layout
18932 cd $path; cvs diff "."
18933 \end_layout
18934
18935 \end_inset
18936
18937 (変更が検出された場合には知らせる)
18938 \begin_inset Newline newline
18939 \end_inset
18940
18941
18942 \begin_inset Flex Code
18943 status collapsed
18944
18945 \begin_layout Plain Layout
18946 cd $path; cvs -q update "."
18947 \end_layout
18948
18949 \end_inset
18950
18951
18952 \end_layout
18953
18954 \begin_layout Standard
18955 ここで
18956 \begin_inset Flex Code
18957 status collapsed
18958
18959 \begin_layout Plain Layout
18960 $path
18961 \end_layout
18962
18963 \end_inset
18964
18965 は文書パスを表します.
18966 \end_layout
18967
18968 \begin_layout Subsubsection
18969 履歴を表示
18970 \end_layout
18971
18972 \begin_layout Standard
18973 これは,CVS文書の全履歴を表示します.
18974 \begin_inset Flex Code
18975 status collapsed
18976
18977 \begin_layout Plain Layout
18978 cvs log 
18979 \begin_inset Quotes eld
18980 \end_inset
18981
18982 <ファイル名>
18983 \begin_inset Quotes erd
18984 \end_inset
18985
18986
18987 \end_layout
18988
18989 \end_inset
18990
18991 の出力がブラウザに表示されます.
18992 \end_layout
18993
18994 \begin_layout Subsubsection
18995 改訂情報
18996 \end_layout
18997
18998 \begin_layout Standard
18999 \SpecialChar LyX
19000 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
19001 \family typewriter
19002 cvs log -r <ファイル名>
19003 \family default
19004 によって抽出されます.詳細については,第
19005 \begin_inset CommandInset ref
19006 LatexCommand ref
19007 reference "subsec:VCS改訂情報"
19008
19009 \end_inset
19010
19011 節を参照してください.
19012 \end_layout
19013
19014 \begin_layout Subsection
19015 \SpecialChar LyX
19016 におけるSVNコマンド
19017 \end_layout
19018
19019 \begin_layout Standard
19020 \SpecialChar LyX
19021 は,現在SVNを一部サポートしています.そのコマンドは,
19022 \begin_inset Flex MenuItem
19023 status collapsed
19024
19025 \begin_layout Plain Layout
19026 ファイル\SpecialChar menuseparator
19027 バージョン管理
19028 \end_layout
19029
19030 \end_inset
19031
19032 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
19033 は,SVN
19034  1.5および1.6に対して試験されています.
19035 \end_layout
19036
19037 \begin_layout Subsubsection
19038 登録
19039 \end_layout
19040
19041 \begin_layout Standard
19042 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19043 \family sans
19044 登録
19045 \family default
19046 項目は表示されません.
19047 \end_layout
19048
19049 \begin_layout Standard
19050 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
19051 \emph on
19052 のみ
19053 \emph default
19054 (すなわち
19055 \begin_inset Flex Code
19056 status collapsed
19057
19058 \begin_layout Plain Layout
19059 .svn/entries
19060 \end_layout
19061
19062 \end_inset
19063
19064 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
19065 \end_layout
19066
19067 \begin_layout Standard
19068 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
19069 \end_layout
19070
19071 \begin_layout Standard
19072 実行されるSVNコマンドは,
19073 \begin_inset Flex Code
19074 status collapsed
19075
19076 \begin_layout Plain Layout
19077 svn add -q 
19078 \begin_inset Quotes eld
19079 \end_inset
19080
19081 <ファイル名>
19082 \begin_inset Quotes erd
19083 \end_inset
19084
19085
19086 \end_layout
19087
19088 \end_inset
19089
19090 です.
19091 \end_layout
19092
19093 \begin_layout Standard
19094 スイッチの説明は
19095 \begin_inset Flex Code
19096 status collapsed
19097
19098 \begin_layout Plain Layout
19099 man svn
19100 \end_layout
19101
19102 \end_inset
19103
19104 をお読みください.
19105 \end_layout
19106
19107 \begin_layout Subsubsection
19108 変更をチェックイン
19109 \end_layout
19110
19111 \begin_layout Standard
19112 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
19113 \end_layout
19114
19115 \begin_layout Standard
19116 SVNコマンド
19117 \begin_inset Foot
19118 status collapsed
19119
19120 \begin_layout Plain Layout
19121 ロックが有効になっていない場合です.第
19122 \begin_inset CommandInset ref
19123 LatexCommand ref
19124 reference "subsec:SVNファイルロック"
19125
19126 \end_inset
19127
19128 節をご覧ください.
19129 \end_layout
19130
19131 \end_inset
19132
19133
19134 \begin_inset Flex Code
19135 status collapsed
19136
19137 \begin_layout Plain Layout
19138 svn commit -q -m
19139 \begin_inset Quotes erd
19140 \end_inset
19141
19142 <入力した説明文>
19143 \begin_inset Quotes erd
19144 \end_inset
19145
19146  
19147 \begin_inset Quotes eld
19148 \end_inset
19149
19150 <ファイル名>
19151 \begin_inset Quotes erd
19152 \end_inset
19153
19154
19155 \end_layout
19156
19157 \end_inset
19158
19159
19160 \end_layout
19161
19162 \begin_layout Subsubsection
19163 チェックアウトして編集
19164 \end_layout
19165
19166 \begin_layout Standard
19167 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
19168 しておくようにしてください.
19169 \end_layout
19170
19171 \begin_layout Standard
19172 SVNコマンド
19173 \begin_inset Foot
19174 status collapsed
19175
19176 \begin_layout Plain Layout
19177 同上.
19178 \end_layout
19179
19180 \end_inset
19181
19182
19183 \begin_inset Flex Code
19184 status collapsed
19185
19186 \begin_layout Plain Layout
19187 svn update –non-interactive 
19188 \begin_inset Quotes eld
19189 \end_inset
19190
19191 <ファイル名>
19192 \begin_inset Quotes erd
19193 \end_inset
19194
19195
19196 \end_layout
19197
19198 \end_inset
19199
19200
19201 \end_layout
19202
19203 \begin_layout Subsubsection
19204 リポジトリ版に戻す
19205 \end_layout
19206
19207 \begin_layout Standard
19208 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
19209 \end_layout
19210
19211 \begin_layout Standard
19212 SVNコマンド:
19213 \begin_inset Flex Code
19214 status collapsed
19215
19216 \begin_layout Plain Layout
19217 svn revert -q 
19218 \begin_inset Quotes eld
19219 \end_inset
19220
19221 <ファイル名>
19222 \begin_inset Quotes erd
19223 \end_inset
19224
19225
19226 \end_layout
19227
19228 \end_inset
19229
19230
19231 \end_layout
19232
19233 \begin_layout Subsubsection
19234
19235 \family sans
19236 コピー
19237 \end_layout
19238
19239 \begin_layout Standard
19240 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
19241 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19242 ァイルの相対パスは,(
19243 \family sans
19244 ファイル\SpecialChar menuseparator
19245 名前をつけて保存\SpecialChar ldots
19246
19247 \family default
19248 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19249 \end_layout
19250
19251 \begin_layout Labeling
19252 \labelwidthstring 00.00.0000
19253 SVNコマンド:
19254 \end_layout
19255
19256 \begin_layout Labeling
19257 \labelwidthstring 00.00.0000
19258 \begin_inset Flex Code
19259 status collapsed
19260
19261 \begin_layout Plain Layout
19262 svn copy -q "<ファイル名>" "<新ファイル名>"
19263 \end_layout
19264
19265 \end_inset
19266
19267
19268 \end_layout
19269
19270 \begin_layout Labeling
19271 \labelwidthstring 00.00.0000
19272 \begin_inset Flex Code
19273 status collapsed
19274
19275 \begin_layout Plain Layout
19276 svn commit
19277 \end_layout
19278
19279 \end_inset
19280
19281
19282 \end_layout
19283
19284 \begin_layout Subsubsection
19285 ファイル名変更
19286 \end_layout
19287
19288 \begin_layout Standard
19289 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
19290 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19291 ァイルの相対パスは,(
19292 \family sans
19293 ファイル\SpecialChar menuseparator
19294 名前をつけて保存\SpecialChar ldots
19295
19296 \family default
19297 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19298 \end_layout
19299
19300 \begin_layout Labeling
19301 \labelwidthstring 00.00.0000
19302 SVNコマンド:
19303 \end_layout
19304
19305 \begin_layout Labeling
19306 \labelwidthstring 00.00.0000
19307 \begin_inset Flex Code
19308 status collapsed
19309
19310 \begin_layout Plain Layout
19311 svn move -q add "<ファイル名>" "<新ファイル名>"
19312 \end_layout
19313
19314 \end_inset
19315
19316
19317 \end_layout
19318
19319 \begin_layout Labeling
19320 \labelwidthstring 00.00.0000
19321 \begin_inset Flex Code
19322 status collapsed
19323
19324 \begin_layout Plain Layout
19325 svn commit
19326 \end_layout
19327
19328 \end_inset
19329
19330
19331 \end_layout
19332
19333 \begin_layout Subsubsection
19334 \begin_inset CommandInset label
19335 LatexCommand label
19336 name "subsec:レポジトリからSVN同期"
19337
19338 \end_inset
19339
19340 レポジトリを使ったローカルディレクトリの同期
19341 \begin_inset Foot
19342 status collapsed
19343
19344 \begin_layout Plain Layout
19345 このコマンドは,subversion 
19346 \begin_inset Formula $\geqq1.5$
19347 \end_inset
19348
19349 でのみ動作することに注意してください.
19350 \end_layout
19351
19352 \end_inset
19353
19354
19355 \end_layout
19356
19357 \begin_layout Standard
19358 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
19359 \begin_inset Flex Code
19360 status collapsed
19361
19362 \begin_layout Plain Layout
19363 .tex
19364 \end_layout
19365
19366 \end_inset
19367
19368 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
19369 は,文書のおいてあるツリー全体の更新をサポートします
19370 \begin_inset Foot
19371 status collapsed
19372
19373 \begin_layout Plain Layout
19374 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
19375 \end_layout
19376
19377 \end_inset
19378
19379 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
19380
19381 \end_layout
19382
19383 \begin_layout Standard
19384 \begin_inset Flex Code
19385 status collapsed
19386
19387 \begin_layout Plain Layout
19388 ローカル辞書をレポジトリを使って更新
19389 \end_layout
19390
19391 \end_inset
19392
19393 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
19394 場合には,更新が開始される前にユーザに警告が与えられます.
19395 \end_layout
19396
19397 \begin_layout Labeling
19398 \labelwidthstring 00.00.0000
19399 SVNコマンド: 
19400 \begin_inset space ~
19401 \end_inset
19402
19403
19404 \begin_inset Newline newline
19405 \end_inset
19406
19407
19408 \begin_inset Flex Code
19409 status collapsed
19410
19411 \begin_layout Plain Layout
19412 svn diff $path(変更が発見された場合には通知します)
19413 \begin_inset Newline newline
19414 \end_inset
19415
19416 svn update –accept mine-full $path
19417 \end_layout
19418
19419 \end_inset
19420
19421
19422 \end_layout
19423
19424 \begin_layout Standard
19425 ここで
19426 \begin_inset Flex Code
19427 status collapsed
19428
19429 \begin_layout Plain Layout
19430 $path
19431 \end_layout
19432
19433 \end_inset
19434
19435 は文書のパスを示します.
19436 \end_layout
19437
19438 \begin_layout Subsubsection
19439 履歴を表示
19440 \end_layout
19441
19442 \begin_layout Standard
19443 これは,SVN文書の全履歴を表示します.
19444 \begin_inset Flex Code
19445 status collapsed
19446
19447 \begin_layout Plain Layout
19448 svn log 
19449 \begin_inset Quotes eld
19450 \end_inset
19451
19452 <ファイル名>
19453 \begin_inset Quotes erd
19454 \end_inset
19455
19456
19457 \end_layout
19458
19459 \end_inset
19460
19461 の出力がブラウザに表示されます.
19462 \end_layout
19463
19464 \begin_layout Subsubsection
19465 ファイルロック
19466 \begin_inset CommandInset label
19467 LatexCommand label
19468 name "subsec:SVNファイルロック"
19469
19470 \end_inset
19471
19472
19473 \end_layout
19474
19475 \begin_layout Standard
19476 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
19477 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19478 するための,何らかのロック機構を導入することが考えられます.
19479 \end_layout
19480
19481 \begin_layout Standard
19482 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
19483 \begin_inset Flex Code
19484 status collapsed
19485
19486 \begin_layout Plain Layout
19487 svn:needs-lock
19488 \end_layout
19489
19490 \end_inset
19491
19492 svnファイル特性に依拠した書き込み権限の自動設定(第
19493 \begin_inset CommandInset ref
19494 LatexCommand ref
19495 reference "subsec:自動ロック特性"
19496
19497 \end_inset
19498
19499 節を参照)です
19500 \begin_inset Foot
19501 status collapsed
19502
19503 \begin_layout Plain Layout
19504 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19505 \end_layout
19506
19507 \end_inset
19508
19509 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
19510 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19511 り替わります.これは特に,\SpecialChar LyX
19512 でのファイルの使われ方に以下の二つのモードがあることを意味します.
19513 \end_layout
19514
19515 \begin_layout Itemize
19516 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
19517 \emph on
19518 チェックアウト
19519 \emph default
19520 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
19521 \end_layout
19522
19523 \begin_layout Itemize
19524 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
19525 \emph on
19526 チェックイン
19527 \emph default
19528 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
19529 \begin_inset Foot
19530 status collapsed
19531
19532 \begin_layout Plain Layout
19533 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
19534 \end_layout
19535
19536 \end_inset
19537
19538 ,書き込みロックの解放のみが行われます.
19539 \end_layout
19540
19541 \begin_layout Standard
19542 SVNコマンド:
19543 \end_layout
19544
19545 \begin_layout Labeling
19546 \labelwidthstring 00.00.0000
19547 チェックイン: 
19548 \begin_inset Flex Code
19549 status collapsed
19550
19551 \begin_layout Plain Layout
19552 svn commit -q -m
19553 \begin_inset Quotes erd
19554 \end_inset
19555
19556 <説明>
19557 \begin_inset Quotes erd
19558 \end_inset
19559
19560  
19561 \begin_inset Quotes eld
19562 \end_inset
19563
19564 <ファイル名>
19565 \begin_inset Quotes erd
19566 \end_inset
19567
19568
19569 \end_layout
19570
19571 \end_inset
19572
19573
19574 \begin_inset Newline newline
19575 \end_inset
19576
19577
19578 \begin_inset Flex Code
19579 status collapsed
19580
19581 \begin_layout Plain Layout
19582 svn unlock 
19583 \begin_inset Quotes eld
19584 \end_inset
19585
19586 <ファイル名>
19587 \begin_inset Quotes erd
19588 \end_inset
19589
19590
19591 \end_layout
19592
19593 \end_inset
19594
19595
19596 \end_layout
19597
19598 \begin_layout Labeling
19599 \labelwidthstring 00.00.0000
19600 チェックアウト: 
19601 \begin_inset Flex Code
19602 status collapsed
19603
19604 \begin_layout Plain Layout
19605 svn update 
19606 \begin_inset Quotes eld
19607 \end_inset
19608
19609 <ファイル名>
19610 \begin_inset Quotes erd
19611 \end_inset
19612
19613
19614 \end_layout
19615
19616 \end_inset
19617
19618
19619 \begin_inset Newline newline
19620 \end_inset
19621
19622
19623 \begin_inset Flex Code
19624 status collapsed
19625
19626 \begin_layout Plain Layout
19627 svn unlock 
19628 \begin_inset Quotes eld
19629 \end_inset
19630
19631 <ファイル名>
19632 \begin_inset Quotes erd
19633 \end_inset
19634
19635
19636 \end_layout
19637
19638 \end_inset
19639
19640
19641 \end_layout
19642
19643 \begin_layout Subsubsection
19644 自動ロック特性
19645 \begin_inset CommandInset label
19646 LatexCommand label
19647 name "subsec:自動ロック特性"
19648
19649 \end_inset
19650
19651
19652 \end_layout
19653
19654 \begin_layout Standard
19655 上述したような
19656 \begin_inset Flex Code
19657 status collapsed
19658
19659 \begin_layout Plain Layout
19660 .lyx
19661 \end_layout
19662
19663 \end_inset
19664
19665 ファイルに対する書き込み権限の自動設定は,
19666 \begin_inset Flex MenuItem
19667 status collapsed
19668
19669 \begin_layout Plain Layout
19670 ファイル\SpecialChar menuseparator
19671 バージョン管理\SpecialChar menuseparator
19672 ロック特性を使用
19673 \end_layout
19674
19675 \end_inset
19676
19677 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
19678 \end_layout
19679
19680 \begin_layout Standard
19681 SVNコマンド:
19682 \end_layout
19683
19684 \begin_layout Labeling
19685 \labelwidthstring 00.00.0000
19686 チェックイン: 
19687 \begin_inset Flex Code
19688 status collapsed
19689
19690 \begin_layout Plain Layout
19691 svn propset svn:needs-lock ON 
19692 \begin_inset Quotes eld
19693 \end_inset
19694
19695 <ファイル名>
19696 \begin_inset Quotes erd
19697 \end_inset
19698
19699
19700 \end_layout
19701
19702 \end_inset
19703
19704
19705 \end_layout
19706
19707 \begin_layout Labeling
19708 \labelwidthstring 00.00.0000
19709 チェックアウト: 
19710 \begin_inset Flex Code
19711 status collapsed
19712
19713 \begin_layout Plain Layout
19714 svn propdel svn:needs-lock 
19715 \begin_inset Quotes eld
19716 \end_inset
19717
19718 <ファイル名>
19719 \begin_inset Quotes erd
19720 \end_inset
19721
19722
19723 \end_layout
19724
19725 \end_inset
19726
19727
19728 \end_layout
19729
19730 \begin_layout Subsubsection
19731 \begin_inset CommandInset label
19732 LatexCommand label
19733 name "subsec:VCS改訂情報"
19734
19735 \end_inset
19736
19737 文書の改訂情報
19738 \end_layout
19739
19740 \begin_layout Standard
19741 文書中で改訂情報を有効化するにはいくつかの方法があります.
19742 \end_layout
19743
19744 \begin_layout Itemize
19745 \SpecialChar LyX
19746 による直接サポート
19747 \end_layout
19748
19749 \begin_deeper
19750 \begin_layout Itemize
19751 ツリー改訂情報(
19752 \begin_inset Flex Code
19753 status collapsed
19754
19755 \begin_layout Plain Layout
19756 vcs-tree-revision
19757 \end_layout
19758
19759 \end_inset
19760
19761 ).
19762 \begin_inset Flex Code
19763 status collapsed
19764
19765 \begin_layout Plain Layout
19766 svnversion
19767 \end_layout
19768
19769 \end_inset
19770
19771 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
19772 \end_layout
19773
19774 \begin_layout Standard
19775 \align center
19776 \begin_inset Tabular
19777 <lyxtabular version="3" rows="6" columns="2">
19778 <features tabularvalignment="middle">
19779 <column alignment="center" valignment="top">
19780 <column alignment="center" valignment="top">
19781 <row>
19782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19783 \begin_inset Text
19784
19785 \begin_layout Plain Layout
19786 出力
19787 \end_layout
19788
19789 \end_inset
19790 </cell>
19791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19792 \begin_inset Text
19793
19794 \begin_layout Plain Layout
19795 意味
19796 \end_layout
19797
19798 \end_inset
19799 </cell>
19800 </row>
19801 <row>
19802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19803 \begin_inset Text
19804
19805 \begin_layout Plain Layout
19806 4123:4168
19807 \end_layout
19808
19809 \end_inset
19810 </cell>
19811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19812 \begin_inset Text
19813
19814 \begin_layout Plain Layout
19815 改訂版の混合した作業コピー
19816 \end_layout
19817
19818 \end_inset
19819 </cell>
19820 </row>
19821 <row>
19822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19823 \begin_inset Text
19824
19825 \begin_layout Plain Layout
19826 4168M
19827 \end_layout
19828
19829 \end_inset
19830 </cell>
19831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19832 \begin_inset Text
19833
19834 \begin_layout Plain Layout
19835 修正された作業コピー
19836 \end_layout
19837
19838 \end_inset
19839 </cell>
19840 </row>
19841 <row>
19842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19843 \begin_inset Text
19844
19845 \begin_layout Plain Layout
19846 4123S
19847 \end_layout
19848
19849 \end_inset
19850 </cell>
19851 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19852 \begin_inset Text
19853
19854 \begin_layout Plain Layout
19855 スイッチされた作業コピー
19856 \end_layout
19857
19858 \end_inset
19859 </cell>
19860 </row>
19861 <row>
19862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19863 \begin_inset Text
19864
19865 \begin_layout Plain Layout
19866 4123P
19867 \end_layout
19868
19869 \end_inset
19870 </cell>
19871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19872 \begin_inset Text
19873
19874 \begin_layout Plain Layout
19875 チェックアウト頻度が低かったことによる不完全な作業コピー
19876 \end_layout
19877
19878 \end_inset
19879 </cell>
19880 </row>
19881 <row>
19882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19883 \begin_inset Text
19884
19885 \begin_layout Plain Layout
19886 4123:4168MS
19887 \end_layout
19888
19889 \end_inset
19890 </cell>
19891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19892 \begin_inset Text
19893
19894 \begin_layout Plain Layout
19895 改訂版が混合し,修正され,スイッチされた作業コピー
19896 \end_layout
19897
19898 \end_inset
19899 </cell>
19900 </row>
19901 </lyxtabular>
19902
19903 \end_inset
19904
19905
19906 \end_layout
19907
19908 \begin_layout Itemize
19909 ファイル改訂情報.
19910 \begin_inset Flex Code
19911 status collapsed
19912
19913 \begin_layout Plain Layout
19914 svn
19915 \begin_inset space ~
19916 \end_inset
19917
19918 info
19919 \begin_inset space ~
19920 \end_inset
19921
19922 –xml
19923 \begin_inset space ~
19924 \end_inset
19925
19926 file.lyx
19927 \end_layout
19928
19929 \end_inset
19930
19931 の出力を解析したものが返されます.サポートされるフラグは
19932 \end_layout
19933
19934 \begin_deeper
19935 \begin_layout Itemize
19936 最終コミットのバージョン番号(
19937 \begin_inset Flex Code
19938 status collapsed
19939
19940 \begin_layout Plain Layout
19941 vcs-revision
19942 \end_layout
19943
19944 \end_inset
19945
19946 )
19947 \end_layout
19948
19949 \begin_layout Itemize
19950 最終コミットの著者(
19951 \begin_inset Flex Code
19952 status collapsed
19953
19954 \begin_layout Plain Layout
19955 vcs-author
19956 \end_layout
19957
19958 \end_inset
19959
19960 )
19961 \end_layout
19962
19963 \begin_layout Itemize
19964 最終コミットの日付(
19965 \begin_inset Flex Code
19966 status collapsed
19967
19968 \begin_layout Plain Layout
19969 vcs-date
19970 \end_layout
19971
19972 \end_inset
19973
19974 )
19975 \end_layout
19976
19977 \begin_layout Itemize
19978 最終コミットの時間(
19979 \begin_inset Flex Code
19980 status collapsed
19981
19982 \begin_layout Plain Layout
19983 vcs-time
19984 \end_layout
19985
19986 \end_inset
19987
19988 )
19989 \end_layout
19990
19991 \end_deeper
19992 \begin_layout Standard
19993 これらの情報は,情報差込枠で得ることができます(例:
19994 \begin_inset Flex Code
19995 status collapsed
19996
19997 \begin_layout Plain Layout
19998 info-insert buffer vcs-date
19999 \end_layout
20000
20001 \end_inset
20002
20003 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20004 \begin_inset Flex Code
20005 status collapsed
20006
20007 \begin_layout Plain Layout
20008 .svn
20009 \end_layout
20010
20011 \end_inset
20012
20013 ディレクトリがあるときのみ)利用可能です.
20014 \end_layout
20015
20016 \end_deeper
20017 \begin_layout Itemize
20018 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
20019 \begin_inset Foot
20020 status collapsed
20021
20022 \begin_layout Plain Layout
20023 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20024 \end_layout
20025
20026 \end_inset
20027
20028 .簡単に言えば,ファイルキーワード特性を設定して(例:
20029 \family sans
20030 svn propset svn:keywords 'Rev' file.lyx
20031 \family default
20032 ),文書中にキーワード\SpecialChar TeX
20033 コード
20034 \begin_inset Foot
20035 status collapsed
20036
20037 \begin_layout Plain Layout
20038 これは,\SpecialChar LyX
20039 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
20040 \end_layout
20041
20042 \end_inset
20043
20044 タグ(例:
20045 \begin_inset ERT
20046 status open
20047
20048 \begin_layout Plain Layout
20049
20050 $Rev$
20051 \end_layout
20052
20053 \end_inset
20054
20055 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
20056 \begin_inset ERT
20057 status open
20058
20059 \begin_layout Plain Layout
20060
20061 $Rev: 59 $
20062 \end_layout
20063
20064 \end_inset
20065
20066 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
20067 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
20068 中の
20069 \begin_inset Formula $Rev$
20070 \end_inset
20071
20072 という数式表現が,すべて
20073 \begin_inset Formula $Rev:59$
20074 \end_inset
20075
20076 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
20077 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
20078 .Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
20079 がこれを直接サポートすることは,難しそうです.
20080 \end_layout
20081
20082 \begin_layout Subsection
20083 SVNとWindows環境
20084 \end_layout
20085
20086 \begin_layout Quote
20087 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
20088  A.
20089  ルービン
20090 \end_layout
20091
20092 \begin_layout Subsubsection
20093 準備
20094 \end_layout
20095
20096 \begin_layout Standard
20097 \SpecialChar LyX
20098 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
20099 トプログラムのWindows用インストーラは
20100 \begin_inset CommandInset href
20101 LatexCommand href
20102 name "CollabNet"
20103 target "http://www.collab.net/nonav/downloads/subversion/"
20104 literal "false"
20105
20106 \end_inset
20107
20108 にあります.ユーザは
20109 \begin_inset CommandInset href
20110 LatexCommand href
20111 name "TortoiseSVN"
20112 target "http://tortoisesvn.tigris.org/"
20113 literal "false"
20114
20115 \end_inset
20116
20117 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
20118 外部で行う操
20119 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
20120 自身が使用するクライアントプログラムの代わりとは成りませんので
20121 ,注意してください.
20122 \end_layout
20123
20124 \begin_layout Subsubsection
20125 文書をSubversion管理下に置くには
20126 \end_layout
20127
20128 \begin_layout Standard
20129 \SpecialChar LyX
20130 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
20131 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
20132 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
20133 の外部で行います
20134 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
20135 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
20136 既に存在し,新規プロジェクトを
20137 \begin_inset Flex Code
20138 status collapsed
20139
20140 \begin_layout Plain Layout
20141 C:
20142 \backslash
20143 new project
20144 \end_layout
20145
20146 \end_inset
20147
20148 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
20149 \begin_inset Flex Code
20150 status collapsed
20151
20152 \begin_layout Plain Layout
20153 svn –help
20154 \end_layout
20155
20156 \end_inset
20157
20158 を実行してください.
20159 \end_layout
20160
20161 \begin_layout Enumerate
20162 Windows Explorerで
20163 \begin_inset Flex Code
20164 status collapsed
20165
20166 \begin_layout Plain Layout
20167 C:
20168 \backslash
20169 new project
20170 \end_layout
20171
20172 \end_inset
20173
20174 を見つけ出して右クリックし,
20175 \begin_inset Flex MenuItem
20176 status collapsed
20177
20178 \begin_layout Plain Layout
20179 TortoiseSVN\SpecialChar menuseparator
20180 Repo-browser
20181 \end_layout
20182
20183 \end_inset
20184
20185 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
20186 \end_layout
20187
20188 \begin_layout Enumerate
20189 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
20190 \begin_inset Flex MenuItem
20191 status collapsed
20192
20193 \begin_layout Plain Layout
20194 Create folder\SpecialChar ldots
20195
20196 \end_layout
20197
20198 \end_inset
20199
20200 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
20201 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
20202 \end_layout
20203
20204 \begin_layout Enumerate
20205 再度
20206 \begin_inset Flex Code
20207 status collapsed
20208
20209 \begin_layout Plain Layout
20210 C:
20211 \backslash
20212 new project
20213 \end_layout
20214
20215 \end_inset
20216
20217 を右クリックし,今度は
20218 \begin_inset Flex MenuItem
20219 status collapsed
20220
20221 \begin_layout Plain Layout
20222 SVN Checkout\SpecialChar ldots
20223
20224 \end_layout
20225
20226 \end_inset
20227
20228 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
20229 \begin_inset Flex Code
20230 status collapsed
20231
20232 \begin_layout Plain Layout
20233 C:
20234 \backslash
20235 new project
20236 \end_layout
20237
20238 \end_inset
20239
20240 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
20241 \begin_inset Flex Code
20242 status collapsed
20243
20244 \begin_layout Plain Layout
20245 C:
20246 \backslash
20247 new project
20248 \end_layout
20249
20250 \end_inset
20251
20252 の下に
20253 \begin_inset Flex Code
20254 status collapsed
20255
20256 \begin_layout Plain Layout
20257 .svn
20258 \end_layout
20259
20260 \end_inset
20261
20262 ディレクトリが作成されます.
20263 \end_layout
20264
20265 \begin_layout Enumerate
20266 \SpecialChar LyX
20267 で文書を新規作成するか開くかして,
20268 \begin_inset Flex MenuItem
20269 status collapsed
20270
20271 \begin_layout Plain Layout
20272 ファイル\SpecialChar menuseparator
20273 バージョン管理\SpecialChar menuseparator
20274 登録
20275 \end_layout
20276
20277 \end_inset
20278
20279 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
20280 \end_layout
20281
20282 \begin_layout Standard
20283 爾後,
20284 \begin_inset Flex MenuItem
20285 status collapsed
20286
20287 \begin_layout Plain Layout
20288 ファイル\SpecialChar menuseparator
20289 バージョン管理
20290 \end_layout
20291
20292 \end_inset
20293
20294 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
20295 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
20296 \end_layout
20297
20298 \begin_layout Subsubsection
20299 Windows下でSVNと共にSSHトンネルを使うには
20300 \end_layout
20301
20302 \begin_layout Standard
20303 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
20304 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
20305 ることを覚悟しておいてください.
20306 \end_layout
20307
20308 \begin_layout Enumerate
20309 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
20310 \begin_inset Flex Code
20311 status collapsed
20312
20313 \begin_layout Plain Layout
20314 svn –version
20315 \end_layout
20316
20317 \end_inset
20318
20319 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
20320 \end_layout
20321
20322 \begin_layout Enumerate
20323 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
20324 \begin_inset Foot
20325 status open
20326
20327 \begin_layout Plain Layout
20328 \begin_inset Flex URL
20329 status collapsed
20330
20331 \begin_layout Plain Layout
20332
20333 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20334 \end_layout
20335
20336 \end_inset
20337
20338
20339 \end_layout
20340
20341 \end_inset
20342
20343 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
20344 護などを加えない
20345 \begin_inset Flex Ruby
20346 status collapsed
20347
20348 \begin_layout Plain Layout
20349
20350 \begin_inset Argument post:1
20351 status collapsed
20352
20353 \begin_layout Plain Layout
20354 キー
20355 \end_layout
20356
20357 \end_inset
20358
20359
20360 \end_layout
20361
20362 \end_inset
20363
20364 のみを使用することとします.
20365 \end_layout
20366
20367 \begin_deeper
20368 \begin_layout Enumerate
20369 \begin_inset Flex Code
20370 status collapsed
20371
20372 \begin_layout Plain Layout
20373 puttygen
20374 \end_layout
20375
20376 \end_inset
20377
20378 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
20379 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
20380 s file:」編集フィールドから,直接サーバの
20381 \begin_inset Flex Code
20382 status collapsed
20383
20384 \begin_layout Plain Layout
20385 ~/.ssh/authorized_keys
20386 \end_layout
20387
20388 \end_inset
20389
20390 または
20391 \begin_inset Flex Code
20392 status collapsed
20393
20394 \begin_layout Plain Layout
20395 authorized_keys2
20396 \end_layout
20397
20398 \end_inset
20399
20400 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
20401 \end_layout
20402
20403 \begin_layout Enumerate
20404 Puttyのplinkを入手してください.SVNのconfigファイル
20405 \begin_inset Foot
20406 status collapsed
20407
20408 \begin_layout Plain Layout
20409 正確なパスはWindowsのバージョンに依りますが,通常は
20410 \begin_inset Flex Code
20411 status collapsed
20412
20413 \begin_layout Plain Layout
20414 c:
20415 \backslash
20416 Documents and Settings
20417 \backslash
20418 user
20419 \backslash
20420 Application Data
20421 \backslash
20422 Subversion
20423 \backslash
20424 config
20425 \end_layout
20426
20427 \end_inset
20428
20429
20430 \begin_inset Flex Code
20431 status collapsed
20432
20433 \begin_layout Plain Layout
20434 AppData
20435 \backslash
20436 Roaming
20437 \backslash
20438 Subversion
20439 \end_layout
20440
20441 \end_inset
20442
20443 辺りにあります.
20444 \end_layout
20445
20446 \end_inset
20447
20448 中の
20449 \begin_inset Flex Code
20450 status collapsed
20451
20452 \begin_layout Plain Layout
20453 [tunnels]
20454 \end_layout
20455
20456 \end_inset
20457
20458 セクションにsshコマンドを設定してください.例:
20459 \begin_inset Flex Code
20460 status collapsed
20461
20462 \begin_layout Plain Layout
20463 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20464 \end_layout
20465
20466 \end_inset
20467
20468
20469 \begin_inset Foot
20470 status collapsed
20471
20472 \begin_layout Plain Layout
20473 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
20474 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
20475 \end_layout
20476
20477 \end_inset
20478
20479
20480 \end_layout
20481
20482 \end_deeper
20483 \begin_layout Enumerate
20484 SVNアーカイブをチェックアウトしてください.例:
20485 \begin_inset Newline newline
20486 \end_inset
20487
20488
20489 \begin_inset Flex Code
20490 status collapsed
20491
20492 \begin_layout Plain Layout
20493 svn co svn+ssh://user@server/repository_path
20494 \end_layout
20495
20496 \end_inset
20497
20498
20499 \end_layout
20500
20501 \begin_layout Subsubsection
20502 行末変換
20503 \end_layout
20504
20505 \begin_layout Standard
20506 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
20507 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
20508 の機能に関する限り問題になりま
20509 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
20510 \begin_inset Flex Code
20511 status collapsed
20512
20513 \begin_layout Plain Layout
20514 native
20515 \end_layout
20516
20517 \end_inset
20518
20519 モードに切り替える際
20520 \begin_inset Foot
20521 status collapsed
20522
20523 \begin_layout Plain Layout
20524 手短には
20525 \begin_inset Flex Code
20526 status collapsed
20527
20528 \begin_layout Plain Layout
20529 svn propset svn:eol-style native FILE_NAME
20530 \end_layout
20531
20532 \end_inset
20533
20534
20535 \end_layout
20536
20537 \end_inset
20538
20539 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20540 \begin_inset Foot
20541 status collapsed
20542
20543 \begin_layout Plain Layout
20544 \begin_inset Flex URL
20545 status collapsed
20546
20547 \begin_layout Plain Layout
20548
20549 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20550 \end_layout
20551
20552 \end_inset
20553
20554
20555 \end_layout
20556
20557 \end_inset
20558
20559
20560 \end_layout
20561
20562 \begin_layout Subsection
20563 \SpecialChar LyX
20564 におけるGITコマンド
20565 \end_layout
20566
20567 \begin_layout Standard
20568 \SpecialChar LyX
20569 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
20570 \family sans
20571 ファイル\SpecialChar menuseparator
20572 バージョン管理
20573 \family default
20574 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
20575 は,GIT
20576  1.7に対して試験を行っています.
20577 \end_layout
20578
20579 \begin_layout Standard
20580 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
20581 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
20582 ミットを行います.ローカルリポジトリは,GITコマンドの
20583 \begin_inset Flex Code
20584 status open
20585
20586 \begin_layout Plain Layout
20587 pull
20588 \end_layout
20589
20590 \end_inset
20591
20592 または
20593 \begin_inset Flex Code
20594 status open
20595
20596 \begin_layout Plain Layout
20597 push
20598 \end_layout
20599
20600 \end_inset
20601
20602 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
20603 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
20604 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
20605 \begin_inset Flex Code
20606 status open
20607
20608 \begin_layout Plain Layout
20609 pull
20610 \end_layout
20611
20612 \end_inset
20613
20614 または
20615 \begin_inset Flex Code
20616 status open
20617
20618 \begin_layout Plain Layout
20619 push
20620 \end_layout
20621
20622 \end_inset
20623
20624 の操作を行う必要があります.
20625 \end_layout
20626
20627 \begin_layout Subsubsection
20628 登録
20629 \end_layout
20630
20631 \begin_layout Standard
20632 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
20633 \family sans
20634 登録
20635 \family default
20636 項目は表示されません.
20637 \end_layout
20638
20639 \begin_layout Standard
20640 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
20641 \emph on
20642 のみ
20643 \emph default
20644 (すなわち
20645 \begin_inset Flex Code
20646 status collapsed
20647
20648 \begin_layout Plain Layout
20649 .git/index
20650 \end_layout
20651
20652 \end_inset
20653
20654 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
20655 \end_layout
20656
20657 \begin_layout Standard
20658 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
20659 \end_layout
20660
20661 \begin_layout Standard
20662 実行されるGITコマンドは,
20663 \begin_inset Flex Code
20664 status collapsed
20665
20666 \begin_layout Plain Layout
20667 git add "<ファイル名>"
20668 \end_layout
20669
20670 \end_inset
20671
20672 です.
20673 \end_layout
20674
20675 \begin_layout Standard
20676 スイッチの説明は
20677 \begin_inset Flex Code
20678 status collapsed
20679
20680 \begin_layout Plain Layout
20681 man git
20682 \end_layout
20683
20684 \end_inset
20685
20686 をお読みください.
20687 \end_layout
20688
20689 \begin_layout Subsubsection
20690 変更をチェックイン
20691 \end_layout
20692
20693 \begin_layout Standard
20694 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
20695 \end_layout
20696
20697 \begin_layout Standard
20698 GITコマンド:
20699 \begin_inset Flex Code
20700 status collapsed
20701
20702 \begin_layout Plain Layout
20703 git commit -q -m
20704 \begin_inset Quotes erd
20705 \end_inset
20706
20707 <入力した説明文>
20708 \begin_inset Quotes erd
20709 \end_inset
20710
20711  "<ファイル名>"
20712 \end_layout
20713
20714 \end_inset
20715
20716
20717 \end_layout
20718
20719 \begin_layout Subsubsection
20720 リポジトリ版に戻す
20721 \end_layout
20722
20723 \begin_layout Standard
20724 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
20725 \end_layout
20726
20727 \begin_layout Standard
20728 GITコマンド:
20729 \begin_inset Flex Code
20730 status collapsed
20731
20732 \begin_layout Plain Layout
20733 git checkout -q 
20734 \begin_inset Quotes eld
20735 \end_inset
20736
20737 <ファイル名>
20738 \begin_inset Quotes erd
20739 \end_inset
20740
20741
20742 \end_layout
20743
20744 \end_inset
20745
20746
20747 \end_layout
20748
20749 \begin_layout Subsubsection
20750 ファイル名変更
20751 \end_layout
20752
20753 \begin_layout Standard
20754 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
20755 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20756 ァイルの相対パスは,(
20757 \family sans
20758 ファイル\SpecialChar menuseparator
20759 名前をつけて保存\SpecialChar ldots
20760
20761 \family default
20762 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20763 \end_layout
20764
20765 \begin_layout Labeling
20766 \labelwidthstring 00.00.0000
20767 GITコマンド:
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 mv "<ファイル名>" "<新ファイル名>"
20777 \end_layout
20778
20779 \end_inset
20780
20781
20782 \end_layout
20783
20784 \begin_layout Labeling
20785 \labelwidthstring 00.00.0000
20786 \begin_inset Flex Code
20787 status collapsed
20788
20789 \begin_layout Plain Layout
20790 git commit
20791 \end_layout
20792
20793 \end_inset
20794
20795
20796 \end_layout
20797
20798 \begin_layout Subsubsection
20799 履歴を表示
20800 \end_layout
20801
20802 \begin_layout Standard
20803 これは,GIT文書の全履歴を表示します.
20804 \begin_inset Flex Code
20805 status collapsed
20806
20807 \begin_layout Plain Layout
20808 git log 
20809 \begin_inset Quotes eld
20810 \end_inset
20811
20812 <ファイル名>
20813 \begin_inset Quotes erd
20814 \end_inset
20815
20816
20817 \end_layout
20818
20819 \end_inset
20820
20821 の出力がブラウザに表示されます.
20822 \end_layout
20823
20824 \begin_layout Subsubsection
20825 改訂情報
20826 \end_layout
20827
20828 \begin_layout Standard
20829 \SpecialChar LyX
20830 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
20831 \family typewriter
20832 git log -n 1 --pretty=format:%H%n%an%n%ai
20833 \family default
20834 によって抽出されます.ツリーバージョン情報は,
20835 \family typewriter
20836 git describe --abbrev --dirty --long
20837 \family default
20838 で取得されます.詳細については,第
20839 \begin_inset CommandInset ref
20840 LatexCommand ref
20841 reference "subsec:VCS改訂情報"
20842
20843 \end_inset
20844
20845 節を参照してください.
20846 \end_layout
20847
20848 \begin_layout Subsection
20849 さらなる調整
20850 \end_layout
20851
20852 \begin_layout Standard
20853 vcコマンド機構が最近になって付け加えられたおかげで,\SpecialChar LyX
20854 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
20855 \end_layout
20856
20857 \begin_layout Standard
20858 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
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:commit /path:$$p"
20868 \end_layout
20869
20870 \end_inset
20871
20872
20873 \end_layout
20874
20875 \begin_layout Description
20876 元に戻す: 
20877 \begin_inset Flex Code
20878 status collapsed
20879
20880 \begin_layout Plain Layout
20881 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
20882 \end_layout
20883
20884 \end_inset
20885
20886
20887 \end_layout
20888
20889 \begin_layout Subsection
20890 バージョン管理と文書比較
20891 \end_layout
20892
20893 \begin_layout Standard
20894 バージョン管理は,通常
20895 \begin_inset Flex Code
20896 status collapsed
20897
20898 \begin_layout Plain Layout
20899 diff
20900 \end_layout
20901
20902 \end_inset
20903
20904 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
20905 ファイルの場合には,あ
20906 まり便利ではありません.そこで,\SpecialChar LyX
20907 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
20908
20909 \begin_inset Flex Code
20910 status collapsed
20911
20912 \begin_layout Plain Layout
20913 VC_COMPARE
20914 \end_layout
20915
20916 \end_inset
20917
20918 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
20919 関数説明書を参照),もう1つは
20920 \begin_inset Flex MenuItem
20921 status collapsed
20922
20923 \begin_layout Plain Layout
20924 旧改訂と比較\SpecialChar ldots
20925
20926 \end_layout
20927
20928 \end_inset
20929
20930 メニューないしアイコンを使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(この
20931 とき改訂版遡及数「
20932 \begin_inset Flex MenuItem
20933 status collapsed
20934
20935 \begin_layout Plain Layout
20936 0
20937 \end_layout
20938
20939 \end_inset
20940
20941 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
20942 \end_layout
20943
20944 \begin_layout Standard
20945 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
20946 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,HEAD~
20947 Xの形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
20948 \end_layout
20949
20950 \begin_layout Section
20951 文芸プログラミング
20952 \end_layout
20953
20954 \begin_layout Standard
20955
20956 \noun on
20957 Kayvan Sylvan
20958 \noun default
20959 (kayvan@sylvan.com)改訂 
20960 \noun on
20961 Edmar Wienskoski Jr.
20962 \noun default
20963 (edmar-w-jr@technologist.com)原文
20964 \end_layout
20965
20966 \begin_layout Subsection
20967 はじめに
20968 \end_layout
20969
20970 \begin_layout Standard
20971 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
20972 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
20973 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
20974 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
20975 \end_layout
20976
20977 \begin_layout Standard
20978 また,あなたが,\SpecialChar LyX
20979 の設定を変更することを厭わない程度まで\SpecialChar LyX
20980 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
20981 するトピックを扱っている,\SpecialChar LyX
20982 の他の説明書で調べてください.
20983 \end_layout
20984
20985 \begin_layout Subsection
20986 文芸プログラミング
20987 \end_layout
20988
20989 \begin_layout Standard
20990 以下は,文芸プログラミング FAQからの抜粋です.
20991 \end_layout
20992
20993 \begin_layout Quotation
20994 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
20995 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
20996 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
20997 ングのWEBスタイルは,D.
20998 \begin_inset space \thinspace{}
20999 \end_inset
21000
21001 E.
21002  Knuthが,\SpecialChar TeX
21003 組版ソフトウエアを開発中に作り出したものです.
21004 \end_layout
21005
21006 \begin_layout Standard
21007 他のエキスパートの発言です.
21008 \end_layout
21009
21010 \begin_layout Quotation
21011
21012 \emph on
21013 文芸プログラミングは,冗長なコメント付けと何が違いますか?
21014 \end_layout
21015
21016 \begin_layout Quotation
21017 3つの際立った特徴があります.重要な順に列挙すれば,
21018 \end_layout
21019
21020 \begin_deeper
21021 \begin_layout Itemize
21022 推敲の順序が柔軟
21023 \end_layout
21024
21025 \begin_layout Itemize
21026 ブラウジングの自動サポート
21027 \end_layout
21028
21029 \begin_layout Itemize
21030 特に図式と数式を含んだドキュメンテーションの組版
21031 \end_layout
21032
21033 \end_deeper
21034 \begin_layout Quotation
21035 などがあります.
21036 \end_layout
21037
21038 \begin_layout Standard
21039 あなたの興味に火を付けたところで書誌情報を見てみましょう.
21040 \end_layout
21041
21042 \begin_layout Subsubsection
21043 書誌情報
21044 \end_layout
21045
21046 \begin_layout Standard
21047 完全な文芸プログラミング FAQは
21048 \end_layout
21049
21050 \begin_layout Quote
21051 Literate Programming FAQ 
21052 \begin_inset Flex URL
21053 status collapsed
21054
21055 \begin_layout Plain Layout
21056
21057 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21058 \end_layout
21059
21060 \end_inset
21061
21062
21063 \end_layout
21064
21065 \begin_layout Standard
21066 にあります.
21067 \end_layout
21068
21069 \begin_layout Standard
21070 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
21071 を持つものもあります.私は自分で使うのに,いくつかの理由から
21072 \noun on
21073 Noweb
21074 \noun default
21075 を選びました.
21076 \end_layout
21077
21078 \begin_layout Itemize
21079 説明文書を\SpecialChar LaTeX
21080 でもHTMLでも出力できる.
21081 \end_layout
21082
21083 \begin_layout Itemize
21084 開放的なアーキテクチャに持っているので,新しいフィルタをプラグインとして加えたり,自分が必要な特別な処理を実行することが容易である.
21085 \end_layout
21086
21087 \begin_layout Itemize
21088 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
21089 \end_layout
21090
21091 \begin_layout Itemize
21092 無料である.
21093 \end_layout
21094
21095 \begin_layout Standard
21096 Nowebのウェブページは
21097 \end_layout
21098
21099 \begin_layout Quote
21100 Nowebホームページ 
21101 \begin_inset Flex URL
21102 status collapsed
21103
21104 \begin_layout Plain Layout
21105
21106 http://www.cs.virginia.edu/~nr/noweb/
21107 \end_layout
21108
21109 \end_inset
21110
21111
21112 \end_layout
21113
21114 \begin_layout Standard
21115 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
21116 \end_layout
21117
21118 \begin_layout Subsection
21119 \SpecialChar LyX
21120 とNowebを使った文芸プログラミング
21121 \end_layout
21122
21123 \begin_layout Standard
21124 \SpecialChar LyX
21125 における文芸プログラミングのサポートは,\SpecialChar LyX
21126 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
21127 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
21128 の機能を利用することができます.
21129 \end_layout
21130
21131 \begin_layout Subsubsection
21132 ドキュメントとコードの生成(weavingおよびtangling)
21133 \end_layout
21134
21135 \begin_layout Paragraph
21136 nowebモジュールの使用
21137 \end_layout
21138
21139 \begin_layout Standard
21140 Nowebと\SpecialChar LyX
21141 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
21142 \family sans
21143 文書\SpecialChar menuseparator
21144 設定
21145 \family default
21146 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
21147 web」モジュールが表示され,文書に追加できるようになっています.
21148 \end_layout
21149
21150 \begin_layout Paragraph
21151 コードの入力
21152 \end_layout
21153
21154 \begin_layout Standard
21155 \SpecialChar LyX
21156 では,
21157 \begin_inset Flex Noun
21158 status collapsed
21159
21160 \begin_layout Plain Layout
21161 Chunk
21162 \end_layout
21163
21164 \end_inset
21165
21166 という名前のレイアウトを使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
21167 \end_layout
21168
21169 \begin_layout LyX-Code
21170 <<My code>>=
21171 \end_layout
21172
21173 \begin_layout LyX-Code
21174   code
21175 \end_layout
21176
21177 \begin_layout LyX-Code
21178   more code
21179 \end_layout
21180
21181 \begin_layout LyX-Code
21182   even more code
21183 \end_layout
21184
21185 \begin_layout LyX-Code
21186   @
21187 \end_layout
21188
21189 \begin_layout Standard
21190 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
21191 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
21192 これも
21193 \begin_inset Flex Noun
21194 status collapsed
21195
21196 \begin_layout Plain Layout
21197 Chunk
21198 \end_layout
21199
21200 \end_inset
21201
21202 によって取り扱われ,通常の段落のように見えますが,自由に空白を入れることができます.
21203 \end_layout
21204
21205 \begin_layout Standard
21206 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
21207 \end_layout
21208
21209 \begin_layout LyX-Code
21210 <<My chunk>>=
21211 \end_layout
21212
21213 \begin_layout LyX-Code
21214 def some_function(args):
21215 \end_layout
21216
21217 \begin_layout LyX-Code
21218    "This is the doc string for this function."
21219 \end_layout
21220
21221 \begin_layout LyX-Code
21222    print "My args: ", args
21223 \end_layout
21224
21225 \begin_layout LyX-Code
21226 @ %def some_function
21227 \end_layout
21228
21229 \begin_layout Standard
21230 これをどのように使って,その結果相互参照がどうなるかは
21231 \emph on
21232 LIBDIR/examples/listerrors.lyx
21233 \emph default
21234 の中の文芸pythonプログラムを見るとよくわかります.
21235 \end_layout
21236
21237 \begin_layout Paragraph
21238 説明文書の生成
21239 \end_layout
21240
21241 \begin_layout Standard
21242 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
21243 簡単で,通常の文書で行うように
21244 \family sans
21245 文書\SpecialChar menuseparator
21246 表示
21247 \family default
21248 等を選ぶだけです.特別な手続きは必要ありません.
21249 \end_layout
21250
21251 \begin_layout Standard
21252 理解を助けるために,\SpecialChar LyX
21253 の内部で何が起っているかを説明しておきましょう.
21254 \end_layout
21255
21256 \begin_layout Enumerate
21257
21258 \family sans
21259 文書\SpecialChar menuseparator
21260 更新
21261 \family default
21262 が選択されると,\SpecialChar LaTeX
21263 ファイルがつくられます.
21264 \end_layout
21265
21266 \begin_deeper
21267 \begin_layout Standard
21268 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
21269 \begin_inset Flex MenuItem
21270 status collapsed
21271
21272 \begin_layout Plain Layout
21273 設定
21274 \end_layout
21275
21276 \end_inset
21277
21278 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
21279 \end_layout
21280
21281 \end_deeper
21282 \begin_layout Enumerate
21283 違いがファイル名だけなのに注意してください.\SpecialChar LyX
21284 による特別な処理は必要ありません.
21285 \begin_inset Flex Noun
21286 status collapsed
21287
21288 \begin_layout Plain Layout
21289 Chunk
21290 \end_layout
21291
21292 \end_inset
21293
21294 環境でコードを入力するのだけがポイントです.
21295 \end_layout
21296
21297 \begin_layout Enumerate
21298 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
21299 は,\SpecialChar LyX
21300 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
21301 への変換子
21302 \begin_inset Foot
21303 status collapsed
21304
21305 \begin_layout Plain Layout
21306 これらの変換子は,
21307 \family sans
21308 ツール\SpecialChar menuseparator
21309 設定
21310 \family default
21311 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
21312 \emph on
21313 カスタマイズ篇
21314 \emph default
21315 』の「
21316 \emph on
21317 変換子
21318 \emph default
21319 」の節をご覧ください.
21320 \end_layout
21321
21322 \end_inset
21323
21324 を使って\SpecialChar LaTeX
21325 ファイルを生成します.
21326 \end_layout
21327
21328 \begin_deeper
21329 \begin_layout Standard
21330 それ以外の場合はこのステップを飛ばします.
21331 \end_layout
21332
21333 \end_deeper
21334 \begin_layout Enumerate
21335 最後に\SpecialChar LaTeX
21336 が実行され,通常の文書と同じ後処理が行われます.
21337 \end_layout
21338
21339 \begin_layout Standard
21340 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
21341 \end_layout
21342
21343 \begin_layout Paragraph
21344 コードの生成
21345 \end_layout
21346
21347 \begin_layout Standard
21348 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
21349 ファイルが生成されます.それから\SpecialChar LyX
21350
21351 \family typewriter
21352 Noweb->Program
21353 \family default
21354 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
21355 \end_layout
21356
21357 \begin_layout Enumerate
21358 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
21359 変換します).
21360 \end_layout
21361
21362 \begin_layout Enumerate
21363 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
21364 が理解できる形へ書き直します.これによって,\SpecialChar LyX
21365 はファイルバッファの正しい位置へエラーボックスを配置することができます.
21366 \end_layout
21367
21368 \begin_layout Standard
21369 冒頭部,「変換子」設定は
21370 \begin_inset Newline newline
21371 \end_inset
21372
21373
21374 \begin_inset Quotes eld
21375 \end_inset
21376
21377
21378 \family typewriter
21379 build-script $$i $$r
21380 \family default
21381
21382 \begin_inset Quotes erd
21383 \end_inset
21384
21385
21386 \begin_inset Newline newline
21387 \end_inset
21388
21389 と指定します.これは基本的に,\SpecialChar LyX
21390
21391 \begin_inset Quotes erd
21392 \end_inset
21393
21394
21395 \family typewriter
21396 build-script
21397 \family default
21398
21399 \begin_inset Quotes erd
21400 \end_inset
21401
21402 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21403 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
21404 ファイルのディレクトリパスを使って呼び出すこ
21405 とを意味しています.
21406 \end_layout
21407
21408 \begin_layout Standard
21409 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
21410 \end_layout
21411
21412 \begin_layout Standard
21413 \begin_inset VSpace defskip
21414 \end_inset
21415
21416
21417 \begin_inset Newpage pagebreak
21418 \end_inset
21419
21420
21421 \end_layout
21422
21423 \begin_layout Standard
21424
21425 \family sans
21426 #!/bin/sh
21427 \end_layout
21428
21429 \begin_layout Standard
21430
21431 \family sans
21432 #
21433 \end_layout
21434
21435 \begin_layout Standard
21436
21437 \family sans
21438 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21439 \end_layout
21440
21441 \begin_layout Standard
21442 \begin_inset VSpace defskip
21443 \end_inset
21444
21445
21446 \end_layout
21447
21448 \begin_layout Standard
21449 変換子設定の次の部分は「フラグ」で,これは
21450 \begin_inset Quotes erd
21451 \end_inset
21452
21453
21454 \family typewriter
21455 parselog=$$s/scripts/listerrors
21456 \family default
21457
21458 \begin_inset Quotes erd
21459 \end_inset
21460
21461 に設定されます.
21462 \begin_inset Newline newline
21463 \end_inset
21464
21465 これは,
21466 \begin_inset Quotes erd
21467 \end_inset
21468
21469 build-script
21470 \begin_inset Quotes erd
21471 \end_inset
21472
21473 プロセスが生成したエラーを
21474 \begin_inset Quotes erd
21475 \end_inset
21476
21477 listerrors
21478 \begin_inset Quotes erd
21479 \end_inset
21480
21481 プログラムを介して処理するものです.
21482 \end_layout
21483
21484 \begin_layout Standard
21485 ビルドは,通常\SpecialChar LyX
21486 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
21487 は,主要ファイルとみなされるものをコピーして取り出
21488 しますが,
21489 \family typewriter
21490 Noweb→プログラム
21491 \family default
21492 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
21493 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
21494 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
21495 \end_layout
21496
21497 \begin_layout Paragraph
21498 文章中でのプログラムの構築操作の説明
21499 \end_layout
21500
21501 \begin_layout Standard
21502 \SpecialChar LyX
21503 とNowebの統合の最後の部分は,
21504 \begin_inset Quotes eld
21505 \end_inset
21506
21507 build-script
21508 \begin_inset Quotes erd
21509 \end_inset
21510
21511  chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
21512 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
21513 \end_layout
21514
21515 \begin_layout Standard
21516 以下に典型的なchunkがどのようなものかを書いておきます.
21517 \end_layout
21518
21519 \begin_layout LyX-Code
21520 <<build-script>>=
21521 \begin_inset Newline newline
21522 \end_inset
21523
21524
21525 \end_layout
21526
21527 \begin_layout LyX-Code
21528 #!/bin/sh
21529 \begin_inset Newline newline
21530 \end_inset
21531
21532
21533 \begin_inset Newline newline
21534 \end_inset
21535
21536 if [ -z "${NOWEB_SOURCE}" ]
21537 \begin_inset Newline newline
21538 \end_inset
21539
21540 then
21541 \end_layout
21542
21543 \begin_layout LyX-Code
21544 NOWEB_SOURCE=myfile.nw
21545 \begin_inset Newline newline
21546 \end_inset
21547
21548 fi
21549 \begin_inset Newline newline
21550 \end_inset
21551
21552 [...
21553  code to extract files ...
21554  use NOWEB_OUTPUT_DIR here ...]
21555 \begin_inset Newline newline
21556 \end_inset
21557
21558 [...
21559  code to compile files ...]
21560 \begin_inset Newline newline
21561 \end_inset
21562
21563 @
21564 \end_layout
21565
21566 \begin_layout Standard
21567
21568 \emph on
21569 LIBDIR/examples/listerrors.lyx
21570 \emph default
21571
21572 \emph on
21573 LIBDIR/examples/Literate.lyx
21574 \emph default
21575 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
21576 ってもらうための例です.また,
21577 \emph on
21578 LIBDIR/examples/noweb2lyx.lyx
21579 \emph default
21580 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
21581 の文芸プログラミングのサポートがプログラム言語に依存しない
21582 ことを示しています.
21583 \end_layout
21584
21585 \begin_layout Subsubsection
21586 \SpecialChar LyX
21587 の設定
21588 \end_layout
21589
21590 \begin_layout Standard
21591 すべての文芸プログラムのための設定は,
21592 \family sans
21593 ツール\SpecialChar menuseparator
21594 設定
21595 \family default
21596 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
21597 \end_layout
21598
21599 \begin_layout Description
21600 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
21601 \family sans
21602 GUI名
21603 \family default
21604
21605 \family typewriter
21606 NoWeb
21607 \family default
21608 に,拡張子を
21609 \family typewriter
21610 .nw
21611 \family default
21612 に設定してください.これによって,\SpecialChar LyX
21613 に変換プロセスの第一段階でつくられるファイルに
21614 \family typewriter
21615 .nw
21616 \family default
21617 という拡張子をつけることを指示します.
21618 \end_layout
21619
21620 \begin_layout Description
21621 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
21622 \end_layout
21623
21624 \begin_layout Description
21625
21626 \family sans
21627 NoWeb
21628 \family default
21629 ->
21630 \family sans
21631 \SpecialChar LaTeX
21632
21633 \family default
21634  この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
21635 \family typewriter
21636 noweave -delay -index $$i > $$o
21637 \family default
21638 」に設定されます.
21639 \end_layout
21640
21641 \begin_layout Description
21642
21643 \family sans
21644 NoWeb
21645 \family default
21646 ->
21647 \family sans
21648 Program
21649 \family default
21650  これは「tangling」を行います.上述のように,変換子は「
21651 \family typewriter
21652 build-script $$i $$r
21653 \family default
21654 」,フラグは「
21655 \family typewriter
21656 parselog=$$s/scripts/listerrors
21657 \family default
21658 」となります.
21659 \end_layout
21660
21661 \begin_layout Subsubsection
21662 デバッグ機能拡張
21663 \end_layout
21664
21665 \begin_layout Standard
21666 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21667 サーバに実装されました.
21668 \end_layout
21669
21670 \begin_layout Standard
21671 ddd/gdbでデバッグしているとき,一つの
21672 \begin_inset Flex Ruby
21673 status collapsed
21674
21675 \begin_layout Plain Layout
21676
21677 \begin_inset Argument post:1
21678 status collapsed
21679
21680 \begin_layout Plain Layout
21681 キー
21682 \end_layout
21683
21684 \end_inset
21685
21686
21687 \end_layout
21688
21689 \end_inset
21690
21691 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
21692 \begin_inset Flex MenuItem
21693 status collapsed
21694
21695 \begin_layout Plain Layout
21696 ツール\SpecialChar menuseparator
21697 設定\SpecialChar menuseparator
21698 ファイル書式
21699 \end_layout
21700
21701 \end_inset
21702
21703 ウインドウを表示して,
21704 \begin_inset Flex MenuItem
21705 status collapsed
21706
21707 \begin_layout Plain Layout
21708 編集プログラム
21709 \end_layout
21710
21711 \end_inset
21712
21713 エントリを変えると変えることができます.
21714 \end_layout
21715
21716 \begin_layout Standard
21717 新しい\SpecialChar LyX
21718 サーバの関数と,このdddの機能を使うために
21719 \begin_inset Flex MenuItem
21720 status collapsed
21721
21722 \begin_layout Plain Layout
21723 編集プログラム
21724 \end_layout
21725
21726 \end_inset
21727
21728 を次のように設定してください.
21729 \end_layout
21730
21731 \begin_layout Standard
21732 \begin_inset VSpace defskip
21733 \end_inset
21734
21735
21736 \end_layout
21737
21738 \begin_layout Standard
21739
21740 \family sans
21741 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21742 \end_layout
21743
21744 \begin_layout Standard
21745 \begin_inset VSpace defskip
21746 \end_inset
21747
21748
21749 \end_layout
21750
21751 \begin_layout Standard
21752 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21753 サーバに情報を送り,\SpecialChar LyX
21754
21755 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
21756 \end_layout
21757
21758 \begin_layout Standard
21759 この機能が動くには\SpecialChar LyX
21760 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
21761 サーバーは使えないようになっています).\SpecialChar LyX
21762 サーバを使えるようにするには,
21763 \family sans
21764
21765 \begin_inset Flex MenuItem
21766 status collapsed
21767
21768 \begin_layout Plain Layout
21769
21770 \family sans
21771 設定
21772 \end_layout
21773
21774 \end_inset
21775
21776
21777 \family default
21778 (
21779 \family sans
21780
21781 \begin_inset Flex MenuItem
21782 status collapsed
21783
21784 \begin_layout Plain Layout
21785
21786 \family sans
21787 パス
21788 \end_layout
21789
21790 \end_inset
21791
21792
21793 \family default
21794 タブ)の
21795 \family sans
21796
21797 \begin_inset Flex MenuItem
21798 status collapsed
21799
21800 \begin_layout Plain Layout
21801
21802 \family sans
21803 \SpecialChar LyX
21804 サーバーパイプ
21805 \family default
21806
21807 \end_layout
21808
21809 \end_inset
21810
21811
21812 \family default
21813
21814 \begin_inset Quotes eld
21815 \end_inset
21816
21817
21818 \family typewriter
21819 /home/<your-home-directory>/.lyx/lyxpipe
21820 \family default
21821
21822 \begin_inset Quotes erd
21823 \end_inset
21824
21825  のようにパスを指定してください.
21826 \end_layout
21827
21828 \begin_layout Standard
21829 詳しくは第
21830 \begin_inset CommandInset ref
21831 LatexCommand ref
21832 reference "chap:LyXサーバー"
21833
21834 \end_inset
21835
21836 章を読んでください.
21837 \end_layout
21838
21839 \begin_layout Subsubsection
21840 ツールバー拡張
21841 \end_layout
21842
21843 \begin_layout Standard
21844 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの5つのボタンは段落環境へのショートカットです.
21845 \family sans
21846 標準
21847 \family default
21848 ・節・
21849 \family sans
21850 \SpecialChar LaTeX
21851
21852 \family default
21853
21854 \family sans
21855 \SpecialChar LyX
21856 コード
21857 \family default
21858
21859 \family sans
21860 Chunk
21861 \family default
21862 環境用のボタンを用意しています.最後の一つはファイルメニュー項目の「Build Program」への
21863 \begin_inset Flex Ruby
21864 status collapsed
21865
21866 \begin_layout Plain Layout
21867
21868 \family roman
21869 \series medium
21870 \shape up
21871 \size normal
21872 \emph off
21873 \bar no
21874 \noun off
21875 \color none
21876 捷径
21877 \family default
21878 \series default
21879 \shape default
21880 \size default
21881 \emph default
21882 \bar default
21883 \noun default
21884 \color inherit
21885
21886 \begin_inset Argument post:1
21887 status collapsed
21888
21889 \begin_layout Plain Layout
21890 ショートカット
21891 \end_layout
21892
21893 \end_inset
21894
21895
21896 \end_layout
21897
21898 \end_inset
21899
21900 です.
21901 \end_layout
21902
21903 \begin_layout Standard
21904 \SpecialChar LyX
21905 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
21906 \begin_inset Flex MenuItem
21907 status collapsed
21908
21909 \begin_layout Plain Layout
21910 文書\SpecialChar menuseparator
21911 更新\SpecialChar menuseparator
21912 DVI
21913 \end_layout
21914
21915 \end_inset
21916
21917
21918 \begin_inset Flex MenuItem
21919 status collapsed
21920
21921 \begin_layout Plain Layout
21922 文書\SpecialChar menuseparator
21923 表示\SpecialChar menuseparator
21924 DVI
21925 \end_layout
21926
21927 \end_inset
21928
21929 を組み合わせたものになっています.
21930 \end_layout
21931
21932 \begin_layout LyX-Code
21933 Toolbar
21934 \end_layout
21935
21936 \begin_layout LyX-Code
21937   Layouts
21938 \end_layout
21939
21940 \begin_layout LyX-Code
21941   Icon "layout Standard"
21942 \end_layout
21943
21944 \begin_layout LyX-Code
21945   Icon "layout Section"
21946 \end_layout
21947
21948 \begin_layout LyX-Code
21949   Icon "layout \SpecialChar LaTeX
21950 "
21951 \end_layout
21952
21953 \begin_layout LyX-Code
21954   Icon "layout \SpecialChar LyX
21955 -Code"
21956 \end_layout
21957
21958 \begin_layout LyX-Code
21959   Icon "layout Chunk"
21960 \end_layout
21961
21962 \begin_layout LyX-Code
21963   Separator
21964 \end_layout
21965
21966 \begin_layout LyX-Code
21967   Icon "buffer-view"
21968 \end_layout
21969
21970 \begin_layout LyX-Code
21971   Icon "buffer-typeset"
21972 \end_layout
21973
21974 \begin_layout LyX-Code
21975   Icon "build-program"
21976 \end_layout
21977
21978 \begin_layout LyX-Code
21979   Separator
21980 \end_layout
21981
21982 \begin_layout LyX-Code
21983 .
21984 \end_layout
21985
21986 \begin_layout LyX-Code
21987 .
21988 \end_layout
21989
21990 \begin_layout LyX-Code
21991 .
21992 \end_layout
21993
21994 \begin_layout LyX-Code
21995 End
21996 \end_layout
21997
21998 \begin_layout Subsubsection
21999 色の変更
22000 \end_layout
22001
22002 \begin_layout Standard
22003 \SpecialChar LyX
22004 ではいくつもの色を
22005 \begin_inset Flex MenuItem
22006 status collapsed
22007
22008 \begin_layout Plain Layout
22009 設定
22010 \end_layout
22011
22012 \end_inset
22013
22014 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
22015 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
22016 フォントを使うことになっていて,文芸プログラミ
22017 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
22018 \begin_inset Flex MenuItem
22019 status collapsed
22020
22021 \begin_layout Plain Layout
22022 操作性\SpecialChar menuseparator
22023
22024 \end_layout
22025
22026 \end_inset
22027
22028 タブで変更することができます.
22029 \end_layout
22030
22031 \begin_layout Standard
22032 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
22033 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
22034 \end_layout
22035
22036 \begin_layout Subsection
22037 \SpecialChar LyX
22038 とknitr/Sweave
22039 \end_layout
22040
22041 \begin_layout Standard
22042 knitrとSweaveへのサポートについては,用例ファイル
22043 \emph on
22044 knitr.lyx
22045 \emph default
22046 とSweave取扱説明書(
22047 \family sans
22048 ヘルプ\SpecialChar menuseparator
22049 用途別説明書
22050 \family default
22051 メニュー)に説明があります.
22052 \end_layout
22053
22054 \begin_layout Chapter
22055 特殊機能
22056 \begin_inset CommandInset label
22057 LatexCommand label
22058 name "chap:Special-features"
22059
22060 \end_inset
22061
22062
22063 \end_layout
22064
22065 \begin_layout Standard
22066 \SpecialChar LyX
22067 では,\SpecialChar LaTeX
22068 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
22069 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
22070 コードを使用することはできます.本章は,ユーザの興味が
22071 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
22072 \emph on
22073 埋込オブジェクト篇
22074 \emph default
22075 』をご参照ください.
22076 \end_layout
22077
22078 \begin_layout Section
22079 多段組
22080 \end_layout
22081
22082 \begin_layout Standard
22083 この機能は,文書設定の
22084 \family sans
22085 本文レイアウト
22086 \family default
22087 にある
22088 \family sans
22089 二段組文書
22090 \family default
22091 とは別の機能です.文書全体に二段組を行いたい場合には,
22092 \family sans
22093 二段組文書
22094 \family default
22095 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
22096 \end_layout
22097
22098 \begin_layout Standard
22099 文書中で多段組を行うには,\SpecialChar LaTeX
22100 パッケージ
22101 \series bold
22102 multicol
22103 \series default
22104
22105 \begin_inset Index idx
22106 status collapsed
22107
22108 \begin_layout Plain Layout
22109 \SpecialChar LaTeX
22110 ぱっけーじ @ \SpecialChar LaTeX
22111 パッケージ ! multicol
22112 \end_layout
22113
22114 \end_inset
22115
22116 を導入した上で,(
22117 \family sans
22118 文書\SpecialChar menuseparator
22119 設定\SpecialChar menuseparator
22120 モジュール
22121 \family default
22122 メニューから)
22123 \family sans
22124 多段組
22125 \family default
22126 モジュールを読み込んでください.
22127 \end_layout
22128
22129 \begin_layout Standard
22130 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
22131 \family sans
22132 段をまたぐ
22133 \family default
22134 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
22135 \end_layout
22136
22137 \begin_layout Subsection
22138 基本
22139 \end_layout
22140
22141 \begin_layout Standard
22142 文章中で二段組を使用したい場合には,段組を始める場所で
22143 \family sans
22144 挿入\SpecialChar menuseparator
22145 任意設定差込枠\SpecialChar menuseparator
22146 多段組
22147 \family default
22148 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
22149 \end_layout
22150
22151 \begin_layout Standard
22152 下記はその用例です.
22153 \end_layout
22154
22155 \begin_layout Standard
22156 \noindent
22157 \begin_inset Flex Multiple Columns
22158 status open
22159
22160 \begin_layout Plain Layout
22161 \noindent
22162
22163 \series bold
22164 \size small
22165 The Adventure of the Empty House
22166 \series default
22167
22168 \begin_inset Newline newline
22169 \end_inset
22170
22171 by Sir Arthur Conan Doyle
22172 \end_layout
22173
22174 \begin_layout Plain Layout
22175
22176 \size small
22177 It was in the spring of the year 1894 that all London was interested, and
22178  the fashionable world dismayed, by the murder of the Honourable Ronald
22179  Adair under most unusual and inexplicable circumstances.
22180  The public has already learned those particulars of the crime which came
22181  out in the police investigation, but a good deal was suppressed upon that
22182  occasion, since the case for the prosecution was so overwhelmingly strong
22183  that it was not necessary to bring forward all the facts.
22184  Only now, at the end of nearly ten years, am I allowed to supply those
22185  missing links which make up the whole of that remarkable chain.
22186  The crime was of interest in itself, but that interest was as nothing to
22187  me compared to the inconceivable sequel, which afforded me the greatest
22188  shock and surprise of any event in my adventurous life.
22189  Even now, after this long interval, I find myself thrilling as I think
22190  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22191 ty which utterly submerged my mind.
22192  Let me say to that public, which has shown some interest in those glimpses
22193  which I have occasionally given them of the thoughts and actions of a very
22194  remarkable man, that they are not to blame me if I have not shared my knowledge
22195  with them, for I should have considered it my first duty to do so, had
22196  I not been barred by a positive prohibition from his own lips, which was
22197  only withdrawn upon the third of last month.
22198 \end_layout
22199
22200 \end_inset
22201
22202
22203 \end_layout
22204
22205 \begin_layout Standard
22206 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
22207 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
22208 と書きます).
22209 \begin_inset Newline newline
22210 \end_inset
22211
22212 下記は三段組の例です.
22213 \end_layout
22214
22215 \begin_layout Standard
22216 \begin_inset Flex Multiple Columns
22217 status open
22218
22219 \begin_layout Plain Layout
22220
22221 \size footnotesize
22222 \begin_inset Argument 1
22223 status open
22224
22225 \begin_layout Plain Layout
22226 3
22227 \end_layout
22228
22229 \end_inset
22230
22231 It can be imagined that my close intimacy with Sherlock Holmes had interested
22232  me deeply in crime, and that after his disappearance I never failed to
22233  read with care the various problems which came before the public.
22234  And I even attempted, more than once, for my own private satisfaction,
22235  to employ his methods in their solution, though with indifferent success.
22236  There was none, however, which appealed to me like this tragedy of Ronald
22237  Adair.
22238  As I read the evidence at the inquest, which led up to a verdict of willful
22239  murder against some person or persons unknown, I realized more clearly
22240  than I had ever done the loss which the community had sustained by the
22241  death of Sherlock Holmes.
22242  There were points about this strange business which would, I was sure,
22243  have specially appealed to him, and the efforts of the police would have
22244  been supplemented, or more probably anticipated, by the trained observation
22245  and the alert mind of the first criminal agent in Europe.
22246  All day, as I drove upon my round, I turned over the case in my mind and
22247  found no explanation which appeared to me to be adequate.
22248  At the risk of telling a twice-told tale, I will recapitulate the facts
22249  as they were known to the public at the conclusion of the inquest.
22250 \end_layout
22251
22252 \end_inset
22253
22254
22255 \end_layout
22256
22257 \begin_layout Standard
22258 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
22259 \end_layout
22260
22261 \begin_layout Standard
22262 \begin_inset Newpage newpage
22263 \end_inset
22264
22265
22266 \end_layout
22267
22268 \begin_layout Subsection
22269 段組中の段組
22270 \end_layout
22271
22272 \begin_layout Standard
22273 また,段中に段を組むこともできます.
22274 \end_layout
22275
22276 \begin_layout Standard
22277 \begin_inset Flex Multiple Columns
22278 status open
22279
22280 \begin_layout Plain Layout
22281
22282 \size footnotesize
22283 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22284  at that time governor of one of the Australian colonies.
22285  Adair's mother had returned from Australia to undergo the operation for
22286  cataract, and she, her son Ronald, and her daughter Hilda were living together
22287  at 427 Park Lane.
22288 \end_layout
22289
22290 \begin_layout Plain Layout
22291 \begin_inset Flex Multiple Columns
22292 status open
22293
22294 \begin_layout Plain Layout
22295
22296 \size footnotesize
22297 The youth moved in the best society–had, so far as was known, no enemies
22298  and no particular vices.
22299  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22300  had been broken off by mutual consent some months before, and there was
22301  no sign that it had left any very profound feeling behind it.
22302  For the rest {sic} the man's life moved in a narrow and conventional circle,
22303  for his habits were quiet and his nature unemotional.
22304  Yet it was upon this easy-going young aristocrat that death came, in most
22305  strange and unexpected form, between the hours of ten and eleven-twenty
22306  on the night of March 30, 1894.
22307 \end_layout
22308
22309 \end_inset
22310
22311
22312 \end_layout
22313
22314 \begin_layout Plain Layout
22315
22316 \size footnotesize
22317 Ronald Adair was fond of cards–playing continually, but never for such stakes
22318  as would hurt him.
22319  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22320  It was shown that, after dinner on the day of his death, he had played
22321  a rubber of whist at the latter club.
22322  He had also played there in the afternoon.
22323
22324 \size default
22325  
22326 \size footnotesize
22327 The evidence of those who had played with him– Mr.
22328  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22329  and that there was a fairly equal fall of the cards.
22330  Adair might have lost five pounds, but not more.
22331  His fortune was a considerable one, and such a loss could not in any way
22332  affect him.
22333  He had played nearly every day at one club or other, but he was a cautious
22334  player, and usually rose a winner.
22335  It came out in evidence that, in partnership with Colonel Moran, he had
22336  actually won as much as four hundred and twenty pounds in a sitting, some
22337  weeks before, from Godfrey Milner and Lord Balmoral.
22338  So much for his recent history as it came out at the inquest.
22339 \end_layout
22340
22341 \end_inset
22342
22343
22344 \end_layout
22345
22346 \begin_layout Subsection
22347 応用例
22348 \end_layout
22349
22350 \begin_layout Standard
22351 本節の用例は,多段組のさらに特別な機能を示すためのものです.
22352 \end_layout
22353
22354 \begin_layout Standard
22355 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
22356 パッケージ
22357 \series bold
22358 multicol
22359 \series default
22360
22361 \begin_inset CommandInset citation
22362 LatexCommand cite
22363 key "multicol"
22364 literal "true"
22365
22366 \end_inset
22367
22368 の取扱説明書をご覧ください.
22369 \end_layout
22370
22371 \begin_layout Subsubsection
22372 序文
22373 \end_layout
22374
22375 \begin_layout Standard
22376 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
22377 \family sans
22378 挿入\SpecialChar menuseparator
22379 序文
22380 \family default
22381 メニューを使用してください.序文は,この差込枠内に書いてください.
22382 \begin_inset Newline newline
22383 \end_inset
22384
22385 序文のある文章の例を掲げます.
22386 \end_layout
22387
22388 \begin_layout Standard
22389 \begin_inset VSpace bigskip
22390 \end_inset
22391
22392
22393 \end_layout
22394
22395 \begin_layout Standard
22396 \begin_inset Flex Multiple Columns
22397 status open
22398
22399 \begin_layout Plain Layout
22400 \begin_inset Argument 2
22401 status open
22402
22403 \begin_layout Plain Layout
22404 And the story continues and continues and continues and continues\SpecialChar ldots
22405
22406 \end_layout
22407
22408 \end_inset
22409
22410
22411 \size small
22412 On the evening of the crime, he returned from the club exactly at ten.
22413  His mother and sister were out spending the evening with a relation.
22414  The servant deposed that she heard him enter the front room on the second
22415  floor, generally used as his sitting-room.
22416  She had lit a fire there, and as it smoked she had opened the window.
22417  No sound was heard from the room until eleven-twenty, the hour of the return
22418  of Lady Maynooth and her daughter.
22419  Desiring to say good-night, she attempted to enter her son's room.
22420  The door was locked on the inside, and no answer could be got to their
22421  cries and knocking.
22422  Help was obtained, and the door forced.
22423  The unfortunate young man was found lying near the table.
22424  His head had been horribly mutilated by an expanding revolver bullet, but
22425  no weapon of any sort was to be found in the room.
22426 \end_layout
22427
22428 \end_inset
22429
22430
22431 \end_layout
22432
22433 \begin_layout Standard
22434 最初の\SpecialChar TeX
22435 コードの後に,節宣言コマンドを\SpecialChar TeX
22436 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
22437 \end_layout
22438
22439 \begin_layout Standard
22440
22441 \series bold
22442
22443 \backslash
22444 subsection{小節見出し}
22445 \end_layout
22446
22447 \begin_layout Standard
22448 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
22449 \end_layout
22450
22451 \begin_layout Standard
22452 \begin_inset Flex Multiple Columns
22453 status open
22454
22455 \begin_layout Plain Layout
22456 \begin_inset Argument 2
22457 status open
22458
22459 \begin_layout Plain Layout
22460 \begin_inset ERT
22461 status collapsed
22462
22463 \begin_layout Plain Layout
22464
22465
22466 \backslash
22467 subsubsection{
22468 \end_layout
22469
22470 \end_inset
22471
22472 これは序文の小々節見出しです
22473 \begin_inset ERT
22474 status collapsed
22475
22476 \begin_layout Plain Layout
22477
22478 }
22479 \end_layout
22480
22481 \end_inset
22482
22483
22484 \end_layout
22485
22486 \end_inset
22487
22488
22489 \size small
22490 A minute examination of the circumstances served only to make the case more
22491  complex.
22492  In the first place, no reason could be given why the young man should have
22493  fastened the door upon the inside.
22494  There was the possibility that the murderer had done this, and had afterwards
22495  escaped by the window.
22496  The drop was at least twenty feet, however, and a bed of crocuses in full
22497  bloom lay beneath.
22498  Neither the flowers nor the earth showed any sign of having been disturbed,
22499  nor were there any marks upon the narrow strip of grass which separated
22500  the house from the road.
22501  Apparently, therefore, it was the young man himself who had fastened the
22502  door.
22503  But how did he come by his death? No one could have climbed up to the window
22504  without leaving traces.
22505  Suppose a man had fired through the window, he would indeed be a remarkable
22506  shot who could with a revolver inflict so deadly a wound.
22507  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22508  a hundred yards of the house.
22509  No one had heard a shot.
22510 \end_layout
22511
22512 \end_inset
22513
22514
22515 \end_layout
22516
22517 \begin_layout Standard
22518 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
22519 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
22520 \family sans
22521 挿入\SpecialChar menuseparator
22522 改頁前の余白
22523 \family default
22524 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
22525 \end_layout
22526
22527 \begin_layout Standard
22528 以下の例では,「7
22529 \backslash
22530 baselineskip」を用いて,必要行数を7行に指定しています(コマンド
22531 \series bold
22532
22533 \backslash
22534 baselineskip
22535 \series default
22536 は\SpecialChar TeX
22537 コードとして入力する必要があります).
22538 \end_layout
22539
22540 \begin_layout Standard
22541 \begin_inset Flex Multiple Columns
22542 status open
22543
22544 \begin_layout Plain Layout
22545 \begin_inset Argument 3
22546 status open
22547
22548 \begin_layout Plain Layout
22549 7
22550 \begin_inset ERT
22551 status collapsed
22552
22553 \begin_layout Plain Layout
22554
22555
22556 \backslash
22557 baselineskip
22558 \end_layout
22559
22560 \end_inset
22561
22562
22563 \end_layout
22564
22565 \end_inset
22566
22567
22568 \size small
22569 On the evening of the crime, he returned from the club exactly at ten.
22570  His mother and sister were out spending the evening with a relation.
22571  The servant deposed that she heard him enter the front room on the second
22572  floor, generally used as his sitting-room.
22573  She had lit a fire there, and as it smoked she had opened the window.
22574  No sound was heard from the room until eleven-twenty, the hour of the return
22575  of Lady Maynooth and her daughter.
22576  Desiring to say good-night, she attempted to enter her son's room.
22577  The door was locked on the inside, and no answer could be got to their
22578  cries and knocking.
22579  Help was obtained, and the door forced.
22580  The unfortunate young man was found lying near the table.
22581  His head had been horribly mutilated by an expanding revolver bullet, but
22582  no weapon of any sort was to be found in the room.
22583 \end_layout
22584
22585 \end_inset
22586
22587
22588 \end_layout
22589
22590 \begin_layout Subsubsection
22591 周囲の余白
22592 \end_layout
22593
22594 \begin_layout Standard
22595 多段組の前後の余白は,長さ
22596 \series bold
22597
22598 \backslash
22599 multicolsep
22600 \series default
22601 を変えることで変更することができます.例えば,\SpecialChar TeX
22602 コードで書かれたコマンド
22603 \end_layout
22604
22605 \begin_layout Standard
22606
22607 \series bold
22608
22609 \backslash
22610 setlength{
22611 \backslash
22612 multicolsep}{3cm}
22613 \end_layout
22614
22615 \begin_layout Standard
22616 は,その値を3
22617 \begin_inset space \thinspace{}
22618 \end_inset
22619
22620 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
22621 \begin_inset space \thinspace{}
22622 \end_inset
22623
22624 ptです.
22625 \end_layout
22626
22627 \begin_layout Standard
22628 以下の例では,
22629 \series bold
22630
22631 \backslash
22632 multicolsep
22633 \series default
22634 は2.5
22635 \begin_inset space \thinspace{}
22636 \end_inset
22637
22638 cmに指定されています.
22639 \end_layout
22640
22641 \begin_layout Standard
22642 \begin_inset ERT
22643 status open
22644
22645 \begin_layout Plain Layout
22646
22647
22648 \backslash
22649 setlength{
22650 \backslash
22651 multicolsep}{2.5cm}
22652 \end_layout
22653
22654 \end_inset
22655
22656
22657 \end_layout
22658
22659 \begin_layout Standard
22660 \begin_inset Flex Multiple Columns
22661 status open
22662
22663 \begin_layout Plain Layout
22664
22665 \size small
22666 All day I turned these facts over in my mind, endeavouring to hit upon some
22667  theory which could reconcile them all, and to find that line of least resistanc
22668 e which my poor friend had declared to be the starting-point of every investigat
22669 ion.
22670  I confess that I made little progress.
22671  In the evening I strolled across the Park, and found myself about six o'clock
22672  at the Oxford Street end of Park Lane.
22673  A group of loafers upon the pavements, all staring up at a particular window,
22674  directed me to the house which I had come to see.
22675  A tall, thin man with coloured glasses, whom I strongly suspected of being
22676  a plain-clothes detective, was pointing out some theory of his own, while
22677  the others crowded round to listen to what he said.
22678  I got as near him as I could, but his observations seemed to me to be absurd,
22679  so I withdrew again in some disgust.
22680  As I did so I struck against an elderly, deformed man, who had been behind
22681  me, and I knocked down several books which he was carrying.
22682 \end_layout
22683
22684 \end_inset
22685
22686
22687 \end_layout
22688
22689 \begin_layout Standard
22690 \begin_inset Note Greyedout
22691 status open
22692
22693 \begin_layout Plain Layout
22694
22695 \series bold
22696 【註】
22697 \backslash
22698 setlength
22699 \series default
22700 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
22701 \end_layout
22702
22703 \end_inset
22704
22705
22706 \end_layout
22707
22708 \begin_layout Standard
22709 \begin_inset ERT
22710 status collapsed
22711
22712 \begin_layout Plain Layout
22713
22714
22715 \backslash
22716 setlength{
22717 \backslash
22718 multicolsep}{13pt}
22719 \end_layout
22720
22721 \end_inset
22722
22723
22724 \begin_inset Note Note
22725 status collapsed
22726
22727 \begin_layout Plain Layout
22728
22729 \lang english
22730 go back to the default
22731 \end_layout
22732
22733 \end_inset
22734
22735
22736 \end_layout
22737
22738 \begin_layout Standard
22739 \begin_inset Newpage newpage
22740 \end_inset
22741
22742
22743 \end_layout
22744
22745 \begin_layout Subsubsection
22746 改段
22747 \end_layout
22748
22749 \begin_layout Standard
22750 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
22751 コードで,コマンド
22752 \series bold
22753
22754 \backslash
22755 columnbreak{}
22756 \series default
22757 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
22758 \begin_inset Newline newline
22759 \end_inset
22760
22761 以下が用例です.
22762 \end_layout
22763
22764 \begin_layout Standard
22765 \begin_inset Flex Multiple Columns
22766 status open
22767
22768 \begin_layout Plain Layout
22769
22770 \size small
22771 \begin_inset Quotes eld
22772 \end_inset
22773
22774 You're surprised to see me, sir,
22775 \begin_inset Quotes erd
22776 \end_inset
22777
22778  said he, in a strange, croaking voice.
22779 \end_layout
22780
22781 \begin_layout Plain Layout
22782
22783 \size small
22784 I acknowledged that I was.
22785 \end_layout
22786
22787 \begin_layout Plain Layout
22788
22789 \size small
22790 \begin_inset Quotes eld
22791 \end_inset
22792
22793 Well, I've a conscience, sir, and when I chanced to see you go into this
22794  house, as I came hobbling after you, I thought to myself, I'll just step
22795  in and see that kind gentleman, and tell him that if I was a bit gruff
22796  in my manner there was not any harm meant, and that I am much obliged to
22797  him for picking up my books.
22798 \begin_inset Quotes erd
22799 \end_inset
22800
22801
22802 \end_layout
22803
22804 \begin_layout Plain Layout
22805
22806 \size small
22807 \begin_inset Quotes eld
22808 \end_inset
22809
22810 You make too much of a trifle,
22811 \begin_inset Quotes erd
22812 \end_inset
22813
22814  said I.
22815  
22816 \begin_inset Quotes eld
22817 \end_inset
22818
22819 May I ask how you knew who I was?
22820 \begin_inset Quotes erd
22821 \end_inset
22822
22823  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
22824 \begin_inset ERT
22825 status collapsed
22826
22827 \begin_layout Plain Layout
22828
22829
22830 \backslash
22831 columnbreak{}
22832 \end_layout
22833
22834 \end_inset
22835
22836
22837 \end_layout
22838
22839 \begin_layout Plain Layout
22840
22841 \size small
22842 \begin_inset Quotes eld
22843 \end_inset
22844
22845 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
22846  you'll find my little bookshop at the corner of Church Street, and very
22847  happy to see you, I am sure.
22848  Maybe you collect yourself, sir.
22849  Here's 
22850 \noun on
22851 British
22852 \begin_inset space ~
22853 \end_inset
22854
22855 Birds
22856 \noun default
22857 , and 
22858 \noun on
22859 Catullus
22860 \noun default
22861 , and 
22862 \noun on
22863 The Holy War
22864 \noun default
22865 –a bargain, every one of them.
22866  With five volumes you could just fill that gap on that second shelf.
22867  It looks untidy, does it not, sir?
22868 \begin_inset Quotes erd
22869 \end_inset
22870
22871
22872 \end_layout
22873
22874 \end_inset
22875
22876
22877 \end_layout
22878
22879 \begin_layout Subsubsection
22880 段間隔
22881 \end_layout
22882
22883 \begin_layout Standard
22884 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
22885 \series bold
22886
22887 \backslash
22888 columnsep
22889 \series default
22890 を変更することで実現できます.既定値は10
22891 \begin_inset space \thinspace{}
22892 \end_inset
22893
22894 ptです.以下は
22895 \series bold
22896
22897 \backslash
22898 columnsep
22899 \series default
22900 を3
22901 \begin_inset space \thinspace{}
22902 \end_inset
22903
22904 cmに設定した例です.
22905 \end_layout
22906
22907 \begin_layout Standard
22908 \begin_inset ERT
22909 status open
22910
22911 \begin_layout Plain Layout
22912
22913
22914 \backslash
22915 setlength{
22916 \backslash
22917 columnsep}{3cm}
22918 \end_layout
22919
22920 \end_inset
22921
22922
22923 \end_layout
22924
22925 \begin_layout Standard
22926 \begin_inset Flex Multiple Columns
22927 status open
22928
22929 \begin_layout Plain Layout
22930
22931 \size small
22932 My observations of No.
22933 \begin_inset space \space{}
22934 \end_inset
22935
22936 427 Park Lane did little to clear up the problem in which I was interested.
22937  The house was separated from the street by a low wall and railing, the
22938  whole not more than five feet high.
22939  It was perfectly easy, therefore, for anyone to get into the garden, but
22940  the window was entirely inaccessible, since there was no water pipe or
22941  anything which could help the most active man to climb it.
22942  More puzzled than ever, I retraced my steps to Kensington.
22943  I had not been in my study five minutes when the maid entered to say that
22944  a person desired to see me.
22945  To my astonishment it was none other than my strange old book collector,
22946  his sharp, wizened face peering out from a frame of white hair, and his
22947  precious volumes, a dozen of them at least, wedged under his right arm.
22948 \end_layout
22949
22950 \end_inset
22951
22952
22953 \end_layout
22954
22955 \begin_layout Standard
22956 \begin_inset ERT
22957 status collapsed
22958
22959 \begin_layout Plain Layout
22960
22961
22962 \backslash
22963 setlength{
22964 \backslash
22965 columnsep}{10pt}
22966 \end_layout
22967
22968 \end_inset
22969
22970
22971 \begin_inset Note Note
22972 status collapsed
22973
22974 \begin_layout Plain Layout
22975
22976 \lang english
22977 go back to the default
22978 \end_layout
22979
22980 \end_inset
22981
22982
22983 \end_layout
22984
22985 \begin_layout Subsubsection
22986 垂直線
22987 \end_layout
22988
22989 \begin_layout Standard
22990 段間には,長さ
22991 \series bold
22992
22993 \backslash
22994 columnseprule
22995 \series default
22996 の幅を持つ罫線が描かれます.罫線幅を0
22997 \begin_inset space \thinspace{}
22998 \end_inset
22999
23000 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
23001 \begin_inset space \thinspace{}
23002 \end_inset
23003
23004 pt幅に設定されています.
23005 \end_layout
23006
23007 \begin_layout Standard
23008 \begin_inset ERT
23009 status open
23010
23011 \begin_layout Plain Layout
23012
23013
23014 \backslash
23015 setlength{
23016 \backslash
23017 columnseprule}{2pt}
23018 \end_layout
23019
23020 \end_inset
23021
23022
23023 \end_layout
23024
23025 \begin_layout Standard
23026 \begin_inset Flex Multiple Columns
23027 status open
23028
23029 \begin_layout Plain Layout
23030
23031 \size small
23032 \begin_inset Quotes eld
23033 \end_inset
23034
23035 You're surprised to see me, sir,
23036 \begin_inset Quotes erd
23037 \end_inset
23038
23039  said he, in a strange, croaking voice.
23040 \end_layout
23041
23042 \begin_layout Plain Layout
23043
23044 \size small
23045 I acknowledged that I was.
23046 \end_layout
23047
23048 \begin_layout Plain Layout
23049
23050 \size small
23051 \begin_inset Quotes eld
23052 \end_inset
23053
23054 Well, I've a conscience, sir, and when I chanced to see you go into this
23055  house, as I came hobbling after you, I thought to myself, I'll just step
23056  in and see that kind gentleman, and tell him that if I was a bit gruff
23057  in my manner there was not any harm meant, and that I am much obliged to
23058  him for picking up my books.
23059 \begin_inset Quotes erd
23060 \end_inset
23061
23062
23063 \end_layout
23064
23065 \begin_layout Plain Layout
23066
23067 \size small
23068 \begin_inset Quotes eld
23069 \end_inset
23070
23071 You make too much of a trifle,
23072 \begin_inset Quotes erd
23073 \end_inset
23074
23075  said I.
23076  
23077 \begin_inset Quotes eld
23078 \end_inset
23079
23080 May I ask how you knew who I was?
23081 \begin_inset Quotes erd
23082 \end_inset
23083
23084
23085 \end_layout
23086
23087 \begin_layout Plain Layout
23088
23089 \size small
23090 \begin_inset Quotes eld
23091 \end_inset
23092
23093 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23094  you'll find my little bookshop at the corner of Church Street, and very
23095  happy to see you, I am sure.
23096  Maybe you collect yourself, sir.
23097  Here's 
23098 \noun on
23099 British
23100 \begin_inset space ~
23101 \end_inset
23102
23103 Birds
23104 \noun default
23105 , and 
23106 \noun on
23107 Catullus
23108 \noun default
23109 , and 
23110 \noun on
23111 The Holy War
23112 \noun default
23113 –a bargain, every one of them.
23114  With five volumes you could just fill that gap on that second shelf.
23115  It looks untidy, does it not, sir?
23116 \begin_inset Quotes erd
23117 \end_inset
23118
23119
23120 \end_layout
23121
23122 \end_inset
23123
23124
23125 \end_layout
23126
23127 \begin_layout Standard
23128 \begin_inset VSpace defskip
23129 \end_inset
23130
23131
23132 \end_layout
23133
23134 \begin_layout Standard
23135 罫線は,コマンド
23136 \series bold
23137
23138 \backslash
23139 columnseprulecolor
23140 \series default
23141 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
23142 コードで以下のコマンドを挿入すれば,実現できます.
23143 \begin_inset Newline newline
23144 \end_inset
23145
23146
23147 \series bold
23148
23149 \backslash
23150 renewcommand{
23151 \backslash
23152 columnseprulecolor}{
23153 \backslash
23154 color{red}}
23155 \series default
23156
23157 \begin_inset Newline newline
23158 \end_inset
23159
23160 このコマンド中の
23161 \series bold
23162 red
23163 \series default
23164 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『
23165 \emph on
23166 埋込オブジェクト篇
23167 \emph default
23168 』の「
23169 \emph on
23170 色付き表
23171 \emph default
23172 」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
23173 \begin_inset Newline newline
23174 \end_inset
23175
23176
23177 \series bold
23178
23179 \backslash
23180 renewcommand{
23181 \backslash
23182 columnseprulecolor}{
23183 \backslash
23184 normalcolor}
23185 \series default
23186
23187 \begin_inset Newline newline
23188 \end_inset
23189
23190 以下は,シアン色の罫線と1
23191 \begin_inset space \thinspace{}
23192 \end_inset
23193
23194 cmの段間隔を持つ例です.
23195 \end_layout
23196
23197 \begin_layout Standard
23198 \begin_inset ERT
23199 status open
23200
23201 \begin_layout Plain Layout
23202
23203
23204 \backslash
23205 setlength{
23206 \backslash
23207 columnsep}{1cm}
23208 \end_layout
23209
23210 \begin_layout Plain Layout
23211
23212
23213 \backslash
23214 renewcommand{
23215 \backslash
23216 columnseprulecolor}{
23217 \backslash
23218 color{cyan}}
23219 \end_layout
23220
23221 \end_inset
23222
23223
23224 \end_layout
23225
23226 \begin_layout Standard
23227 \begin_inset Flex Multiple Columns
23228 status open
23229
23230 \begin_layout Plain Layout
23231
23232 \size small
23233 \begin_inset Quotes eld
23234 \end_inset
23235
23236 You're surprised to see me, sir,
23237 \begin_inset Quotes erd
23238 \end_inset
23239
23240  said he, in a strange, croaking voice.
23241 \end_layout
23242
23243 \begin_layout Plain Layout
23244
23245 \size small
23246 I acknowledged that I was.
23247 \end_layout
23248
23249 \begin_layout Plain Layout
23250
23251 \size small
23252 \begin_inset Quotes eld
23253 \end_inset
23254
23255 Well, I've a conscience, sir, and when I chanced to see you go into this
23256  house, as I came hobbling after you, I thought to myself, I'll just step
23257  in and see that kind gentleman, and tell him that if I was a bit gruff
23258  in my manner there was not any harm meant, and that I am much obliged to
23259  him for picking up my books.
23260 \begin_inset Quotes erd
23261 \end_inset
23262
23263
23264 \end_layout
23265
23266 \begin_layout Plain Layout
23267
23268 \size small
23269 \begin_inset Quotes eld
23270 \end_inset
23271
23272 You make too much of a trifle,
23273 \begin_inset Quotes erd
23274 \end_inset
23275
23276  said I.
23277  
23278 \begin_inset Quotes eld
23279 \end_inset
23280
23281 May I ask how you knew who I was?
23282 \begin_inset Quotes erd
23283 \end_inset
23284
23285
23286 \end_layout
23287
23288 \begin_layout Plain Layout
23289
23290 \size small
23291 \begin_inset Quotes eld
23292 \end_inset
23293
23294 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23295  you'll find my little bookshop at the corner of Church Street, and very
23296  happy to see you, I am sure.
23297  Maybe you collect yourself, sir.
23298  Here's 
23299 \noun on
23300 British
23301 \begin_inset space ~
23302 \end_inset
23303
23304 Birds
23305 \noun default
23306 , and 
23307 \noun on
23308 Catullus
23309 \noun default
23310 , and 
23311 \noun on
23312 The Holy War
23313 \noun default
23314 –a bargain, every one of them.
23315  With five volumes you could just fill that gap on that second shelf.
23316  It looks untidy, does it not, sir?
23317 \begin_inset Quotes erd
23318 \end_inset
23319
23320
23321 \end_layout
23322
23323 \end_inset
23324
23325
23326 \end_layout
23327
23328 \begin_layout Standard
23329 \begin_inset ERT
23330 status collapsed
23331
23332 \begin_layout Plain Layout
23333
23334
23335 \backslash
23336 setlength{
23337 \backslash
23338 columnseprule}{0pt}
23339 \end_layout
23340
23341 \begin_layout Plain Layout
23342
23343
23344 \backslash
23345 renewcommand{
23346 \backslash
23347 columnseprulecolor}{
23348 \backslash
23349 normalcolor}
23350 \end_layout
23351
23352 \end_inset
23353
23354
23355 \begin_inset Note Note
23356 status collapsed
23357
23358 \begin_layout Plain Layout
23359
23360 \lang english
23361 go back to the default
23362 \end_layout
23363
23364 \end_inset
23365
23366
23367 \end_layout
23368
23369 \begin_layout Standard
23370 \begin_inset Newpage newpage
23371 \end_inset
23372
23373
23374 \end_layout
23375
23376 \begin_layout Section
23377 標準的でない形の段落
23378 \end_layout
23379
23380 \begin_layout Standard
23381 \noindent
23382 \SpecialChar LaTeX
23383 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
23384 できます.これは,文書設定で
23385 \family sans
23386 任意設定の段落形
23387 \family default
23388 モジュールを読み込んで,\SpecialChar LaTeX
23389 パッケージ
23390 \series bold
23391 shapepar
23392 \series default
23393 を使用させるようにすれば,実現できます.
23394 \end_layout
23395
23396 \begin_layout Subsection
23397 既定の形
23398 \end_layout
23399
23400 \begin_layout Standard
23401
23402 \series bold
23403 shapepar
23404 \series default
23405 は,以下の形を提供しています.
23406 \end_layout
23407
23408 \begin_layout Standard
23409 \begin_inset Tabular
23410 <lyxtabular version="3" rows="13" columns="3">
23411 <features booktabs="true" islongtable="true" longtabularalignment="center">
23412 <column alignment="center" valignment="middle" width="16col%">
23413 <column alignment="center" valignment="middle" width="40col%">
23414 <column alignment="center" valignment="middle" width="35col%">
23415 <row endhead="true">
23416 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23417 \begin_inset Text
23418
23419 \begin_layout Plain Layout
23420 名称
23421 \end_layout
23422
23423 \end_inset
23424 </cell>
23425 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23426 \begin_inset Text
23427
23428 \begin_layout Plain Layout
23429 説明
23430 \end_layout
23431
23432 \end_inset
23433 </cell>
23434 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23435 \begin_inset Text
23436
23437 \begin_layout Plain Layout
23438 備考
23439 \end_layout
23440
23441 \end_inset
23442 </cell>
23443 </row>
23444 <row>
23445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23446 \begin_inset Text
23447
23448 \begin_layout Plain Layout
23449 CDlabel
23450 \end_layout
23451
23452 \end_inset
23453 </cell>
23454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23455 \begin_inset Text
23456
23457 \begin_layout Plain Layout
23458 丸い穴の開いたドーナツ型(CD/DVD大)
23459 \end_layout
23460
23461 \end_inset
23462 </cell>
23463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23464 \begin_inset Text
23465
23466 \begin_layout Plain Layout
23467 伸縮不可.多くの文字を入れられないことに注意.
23468 \end_layout
23469
23470 \end_inset
23471 </cell>
23472 </row>
23473 <row>
23474 <cell alignment="center" valignment="top" topline="true" usebox="none">
23475 \begin_inset Text
23476
23477 \begin_layout Plain Layout
23478 Circle
23479 \end_layout
23480
23481 \end_inset
23482 </cell>
23483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23484 \begin_inset Text
23485
23486 \begin_layout Plain Layout
23487
23488 \end_layout
23489
23490 \end_inset
23491 </cell>
23492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23493 \begin_inset Text
23494
23495 \begin_layout Plain Layout
23496 脆弱.計算に失敗することも.
23497 \end_layout
23498
23499 \end_inset
23500 </cell>
23501 </row>
23502 <row>
23503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23504 \begin_inset Text
23505
23506 \begin_layout Plain Layout
23507 Diamond
23508 \end_layout
23509
23510 \end_inset
23511 </cell>
23512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23513 \begin_inset Text
23514
23515 \begin_layout Plain Layout
23516 菱形(シンボル的に
23517 \begin_inset Quotes eld
23518 \end_inset
23519
23520 diamond
23521 \begin_inset Quotes erd
23522 \end_inset
23523
23524 と表記)
23525 \end_layout
23526
23527 \end_inset
23528 </cell>
23529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23530 \begin_inset Text
23531
23532 \begin_layout Plain Layout
23533 -
23534 \end_layout
23535
23536 \end_inset
23537 </cell>
23538 </row>
23539 <row>
23540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23541 \begin_inset Text
23542
23543 \begin_layout Plain Layout
23544 Heart
23545 \end_layout
23546
23547 \end_inset
23548 </cell>
23549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23550 \begin_inset Text
23551
23552 \begin_layout Plain Layout
23553 ハート型
23554 \end_layout
23555
23556 \end_inset
23557 </cell>
23558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23559 \begin_inset Text
23560
23561 \begin_layout Plain Layout
23562 -
23563 \end_layout
23564
23565 \end_inset
23566 </cell>
23567 </row>
23568 <row>
23569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23570 \begin_inset Text
23571
23572 \begin_layout Plain Layout
23573 Hexagon
23574 \end_layout
23575
23576 \end_inset
23577 </cell>
23578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23579 \begin_inset Text
23580
23581 \begin_layout Plain Layout
23582 六角形
23583 \end_layout
23584
23585 \end_inset
23586 </cell>
23587 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23588 \begin_inset Text
23589
23590 \begin_layout Plain Layout
23591 -
23592 \end_layout
23593
23594 \end_inset
23595 </cell>
23596 </row>
23597 <row>
23598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23599 \begin_inset Text
23600
23601 \begin_layout Plain Layout
23602 Nut
23603 \end_layout
23604
23605 \end_inset
23606 </cell>
23607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23608 \begin_inset Text
23609
23610 \begin_layout Plain Layout
23611 ナット型(丸い穴の開いた六角形)
23612 \end_layout
23613
23614 \end_inset
23615 </cell>
23616 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23617 \begin_inset Text
23618
23619 \begin_layout Plain Layout
23620 -
23621 \end_layout
23622
23623 \end_inset
23624 </cell>
23625 </row>
23626 <row>
23627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23628 \begin_inset Text
23629
23630 \begin_layout Plain Layout
23631 Square
23632 \end_layout
23633
23634 \end_inset
23635 </cell>
23636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23637 \begin_inset Text
23638
23639 \begin_layout Plain Layout
23640 正方形
23641 \end_layout
23642
23643 \end_inset
23644 </cell>
23645 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23646 \begin_inset Text
23647
23648 \begin_layout Plain Layout
23649 -
23650 \end_layout
23651
23652 \end_inset
23653 </cell>
23654 </row>
23655 <row>
23656 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23657 \begin_inset Text
23658
23659 \begin_layout Plain Layout
23660 Star
23661 \end_layout
23662
23663 \end_inset
23664 </cell>
23665 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23666 \begin_inset Text
23667
23668 \begin_layout Plain Layout
23669 五芒星
23670 \end_layout
23671
23672 \end_inset
23673 </cell>
23674 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23675 \begin_inset Text
23676
23677 \begin_layout Plain Layout
23678 -
23679 \end_layout
23680
23681 \end_inset
23682 </cell>
23683 </row>
23684 <row>
23685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23686 \begin_inset Text
23687
23688 \begin_layout Plain Layout
23689 Candle
23690 \end_layout
23691
23692 \end_inset
23693 </cell>
23694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23695 \begin_inset Text
23696
23697 \begin_layout Plain Layout
23698 燃えるろうそく
23699 \end_layout
23700
23701 \end_inset
23702 </cell>
23703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23704 \begin_inset Text
23705
23706 \begin_layout Plain Layout
23707 -
23708 \end_layout
23709
23710 \end_inset
23711 </cell>
23712 </row>
23713 <row>
23714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23715 \begin_inset Text
23716
23717 \begin_layout Plain Layout
23718 Drop down/up
23719 \end_layout
23720
23721 \end_inset
23722 </cell>
23723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23724 \begin_inset Text
23725
23726 \begin_layout Plain Layout
23727 雫型/逆雫型
23728 \end_layout
23729
23730 \end_inset
23731 </cell>
23732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23733 \begin_inset Text
23734
23735 \begin_layout Plain Layout
23736 脆弱.計算に失敗することも.
23737 \end_layout
23738
23739 \end_inset
23740 </cell>
23741 </row>
23742 <row>
23743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23744 \begin_inset Text
23745
23746 \begin_layout Plain Layout
23747 \SpecialChar TeX
23748
23749 \end_layout
23750
23751 \end_inset
23752 </cell>
23753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23754 \begin_inset Text
23755
23756 \begin_layout Plain Layout
23757 \SpecialChar TeX
23758 ロゴ
23759 \end_layout
23760
23761 \end_inset
23762 </cell>
23763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23764 \begin_inset Text
23765
23766 \begin_layout Plain Layout
23767 -
23768 \end_layout
23769
23770 \end_inset
23771 </cell>
23772 </row>
23773 <row>
23774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23775 \begin_inset Text
23776
23777 \begin_layout Plain Layout
23778 Triangle up/down/
23779 \begin_inset Newline newline
23780 \end_inset
23781
23782 left/right
23783 \end_layout
23784
23785 \end_inset
23786 </cell>
23787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23788 \begin_inset Text
23789
23790 \begin_layout Plain Layout
23791 各方向の三角形
23792 \end_layout
23793
23794 \end_inset
23795 </cell>
23796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23797 \begin_inset Text
23798
23799 \begin_layout Plain Layout
23800 -
23801 \end_layout
23802
23803 \end_inset
23804 </cell>
23805 </row>
23806 </lyxtabular>
23807
23808 \end_inset
23809
23810
23811 \end_layout
23812
23813 \begin_layout Standard
23814 段落に形を適用するには,\SpecialChar LyX
23815 ツールバー中の環境プルダウンボックスから形を選んでください.
23816 \end_layout
23817
23818 \begin_layout Standard
23819 \begin_inset Newpage newpage
23820 \end_inset
23821
23822
23823 \end_layout
23824
23825 \begin_layout Standard
23826 以下は,ナット型の段落の例です.
23827 \end_layout
23828
23829 \begin_layout Standard
23830 \begin_inset VSpace bigskip
23831 \end_inset
23832
23833
23834 \end_layout
23835
23836 \begin_layout Nut
23837
23838 \lang latin
23839 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23840  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23841  voluptua.
23842  At vero eos et accusam et justo duo dolores et ea rebum.
23843  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
23844  sit amet.
23845  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23846  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23847  voluptua.
23848 \end_layout
23849
23850 \begin_layout Standard
23851 \begin_inset VSpace bigskip
23852 \end_inset
23853
23854
23855 \end_layout
23856
23857 \begin_layout Standard
23858 \begin_inset Note Greyedout
23859 status open
23860
23861 \begin_layout Plain Layout
23862
23863 \series bold
23864 【註】
23865 \series default
23866 shapepar段落は改頁にまたがることはできません.
23867 \end_layout
23868
23869 \end_inset
23870
23871
23872 \end_layout
23873
23874 \begin_layout Standard
23875 \begin_inset VSpace bigskip
23876 \end_inset
23877
23878
23879 \end_layout
23880
23881 \begin_layout Standard
23882
23883 \series bold
23884 shapepar
23885 \series default
23886 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
23887 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
23888 \end_layout
23889
23890 \begin_layout Standard
23891 \begin_inset Newpage newpage
23892 \end_inset
23893
23894
23895 \end_layout
23896
23897 \begin_layout Nut
23898
23899 \lang latin
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  At vero eos et accusam et justo duo dolores et ea rebum.
23904  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
23905  sit amet.
23906  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23907  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23908  voluptua.
23909  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23910  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23911  voluptua.
23912  At vero eos et accusam et justo duo dolores et ea rebum.
23913  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
23914  sit amet.
23915  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23916  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23917  voluptua.
23918 \end_layout
23919
23920 \begin_layout Standard
23921 \begin_inset VSpace bigskip
23922 \end_inset
23923
23924
23925 \end_layout
23926
23927 \begin_layout Standard
23928 ただし,
23929 \family sans
23930 CDlabel
23931 \family default
23932 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
23933 \begin_inset Newline newline
23934 \end_inset
23935
23936
23937 \family sans
23938 drop
23939 \family default
23940 形と
23941 \family sans
23942 circle
23943 \family default
23944 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
23945 \begin_inset Quotes eld
23946 \end_inset
23947
23948 Arithmetic overflow
23949 \begin_inset Quotes erd
23950 \end_inset
23951
23952 という\SpecialChar LaTeX
23953 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
23954 \end_layout
23955
23956 \begin_layout Standard
23957 \begin_inset VSpace bigskip
23958 \end_inset
23959
23960
23961 \end_layout
23962
23963 \begin_layout Standard
23964 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
23965 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
23966 \family sans
23967 (
23968 \begin_inset Info
23969 type  "shortcut"
23970 arg   "specialchar-insert hyphenation"
23971 \end_inset
23972
23973
23974 \family default
23975 )を指定することが往々にして必要になります.
23976 \end_layout
23977
23978 \begin_layout Standard
23979 \begin_inset VSpace bigskip
23980 \end_inset
23981
23982
23983 \end_layout
23984
23985 \begin_layout Standard
23986 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
23987 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
23988 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
23989 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
23990 \end_layout
23991
23992 \begin_layout Standard
23993 \begin_inset Newpage newpage
23994 \end_inset
23995
23996
23997 \end_layout
23998
23999 \begin_layout Heart
24000 \noindent
24001
24002 \lang latin
24003 Lo\SpecialChar softhyphen
24004 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24005  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24006  voluptua.
24007  At vero eos et accusam et justo duo dolores et ea rebum.
24008  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24009  sit amet.
24010 \end_layout
24011
24012 \begin_layout Standard
24013 \begin_inset VSpace bigskip
24014 \end_inset
24015
24016
24017 \end_layout
24018
24019 \begin_layout Standard
24020 \noindent
24021 \align right
24022 \begin_inset Box Frameless
24023 position "t"
24024 hor_pos "c"
24025 has_inner_box 1
24026 inner_pos "t"
24027 use_parbox 1
24028 use_makebox 0
24029 width "42col%"
24030 special "none"
24031 height "1in"
24032 height_special "totalheight"
24033 thickness "0.4pt"
24034 separation "3pt"
24035 shadowsize "4pt"
24036 framecolor "black"
24037 backgroundcolor "none"
24038 status open
24039
24040 \begin_layout Heart
24041 \noindent
24042
24043 \lang latin
24044 Lo\SpecialChar softhyphen
24045 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24046  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24047  voluptua.
24048  At vero eos et accusam et justo duo dolores et ea rebum.
24049  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24050  sit amet.
24051 \end_layout
24052
24053 \end_inset
24054
24055
24056 \end_layout
24057
24058 \begin_layout Subsection
24059 任意の形
24060 \end_layout
24061
24062 \begin_layout Standard
24063 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
24064 ように,コンピューターに座標を計算させる方法もあります.
24065 \end_layout
24066
24067 \begin_layout Enumerate
24068 プログラム
24069 \begin_inset CommandInset href
24070 LatexCommand href
24071 name "Jpgfdraw"
24072 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24073 literal "false"
24074
24075 \end_inset
24076
24077 を導入します.
24078 \end_layout
24079
24080 \begin_layout Enumerate
24081
24082 \family sans
24083 Jpgfdraw
24084 \family default
24085 内で,メニュー
24086 \family sans
24087 TeX/LaTeX\SpecialChar menuseparator
24088 Settings\SpecialChar menuseparator
24089 Set Normal Size
24090 \family default
24091 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
24092 \begin_inset space \thinspace{}
24093 \end_inset
24094
24095 pt寸を使用しています.
24096 \end_layout
24097
24098 \begin_layout Enumerate
24099 形を描きます.
24100 \end_layout
24101
24102 \begin_layout Enumerate
24103 メニュー
24104 \family sans
24105 TeX/LaTeX\SpecialChar menuseparator
24106 Shapepar
24107 \family default
24108 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
24109 \begin_inset Foot
24110 status collapsed
24111
24112 \begin_layout Plain Layout
24113 詳細については,
24114 \begin_inset CommandInset href
24115 LatexCommand href
24116 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24117 literal "false"
24118
24119 \end_inset
24120
24121 を参照してください.
24122 \end_layout
24123
24124 \end_inset
24125
24126
24127 \end_layout
24128
24129 \begin_layout Standard
24130 座標は\SpecialChar TeX
24131 ファイルに書き込まれます.これを\SpecialChar LyX
24132 文書で使用するには,
24133 \end_layout
24134
24135 \begin_layout Enumerate
24136 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
24137 \end_layout
24138
24139 \begin_layout Enumerate
24140 \SpecialChar LyX
24141
24142 \family sans
24143 挿入\SpecialChar menuseparator
24144 ファイル\SpecialChar menuseparator
24145 子文書
24146 \family default
24147 メニューでファイルを選択し,
24148 \family sans
24149 取り込みの型
24150 \family default
24151 として
24152 \family sans
24153 Input
24154 \family default
24155 を選択してください.
24156 \end_layout
24157
24158 \begin_layout Standard
24159 \begin_inset VSpace defskip
24160 \end_inset
24161
24162
24163 \end_layout
24164
24165 \begin_layout Standard
24166 \begin_inset Note Greyedout
24167 status open
24168
24169 \begin_layout Plain Layout
24170
24171 \series bold
24172 【註】
24173 \series default
24174 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
24175 \end_layout
24176
24177 \end_inset
24178
24179
24180 \end_layout
24181
24182 \begin_layout Standard
24183 \begin_inset VSpace bigskip
24184 \end_inset
24185
24186
24187 \end_layout
24188
24189 \begin_layout Standard
24190 以下の用例をご覧ください.
24191 \end_layout
24192
24193 \begin_layout Standard
24194 \begin_inset VSpace bigskip
24195 \end_inset
24196
24197
24198 \end_layout
24199
24200 \begin_layout Standard
24201 \begin_inset CommandInset include
24202 LatexCommand input
24203 filename "../SpecialParagraphShape.tex"
24204
24205 \end_inset
24206
24207
24208 \lang latin
24209 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24210  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24211  voluptua.
24212  At vero eos et accusam et justo duo dolores et ea rebum.
24213  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24214  sit amet.
24215  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24216  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24217  voluptua.
24218 \end_layout
24219
24220 \begin_layout Standard
24221 \begin_inset VSpace bigskip
24222 \end_inset
24223
24224
24225 \end_layout
24226
24227 \begin_layout Standard
24228
24229 \series bold
24230 【ヒント】
24231 \family sans
24232 \series default
24233 Jpgfdraw
24234 \family default
24235 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
24236 \family sans
24237 Jpgfdraw
24238 \family default
24239 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
24240 \end_layout
24241
24242 \begin_layout Standard
24243 \begin_inset VSpace bigskip
24244 \end_inset
24245
24246
24247 \end_layout
24248
24249 \begin_layout Standard
24250
24251 \family sans
24252 任意の段落形
24253 \family default
24254 モジュールは,
24255 \family sans
24256 shapepar
24257 \family default
24258
24259 \family sans
24260 Shapepar
24261 \family default
24262 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
24263 \begin_inset Foot
24264 status collapsed
24265
24266 \begin_layout Plain Layout
24267 これらのコマンドは,上述の全ての形で内部的に使用されています.
24268 \end_layout
24269
24270 \end_inset
24271
24272 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
24273 \series bold
24274 shapepar
24275 \series default
24276 パッケージの取扱説明書
24277 \begin_inset CommandInset citation
24278 LatexCommand cite
24279 key "shapepar"
24280 literal "true"
24281
24282 \end_inset
24283
24284 をご覧ください.
24285 \end_layout
24286
24287 \begin_layout Bibliography
24288 \begin_inset CommandInset bibitem
24289 LatexCommand bibitem
24290 key "multicol"
24291 literal "true"
24292
24293 \end_inset
24294
24295 \SpecialChar LaTeX
24296 パッケージ
24297 \begin_inset CommandInset href
24298 LatexCommand href
24299 name "multicol"
24300 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24301 literal "false"
24302
24303 \end_inset
24304
24305 の取扱説明書
24306 \end_layout
24307
24308 \begin_layout Bibliography
24309 \begin_inset CommandInset bibitem
24310 LatexCommand bibitem
24311 key "shapepar"
24312 literal "true"
24313
24314 \end_inset
24315
24316 \SpecialChar LaTeX
24317 パッケージ
24318 \begin_inset CommandInset href
24319 LatexCommand href
24320 name "shapepar"
24321 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
24322 literal "false"
24323
24324 \end_inset
24325
24326 の取扱説明書
24327 \end_layout
24328
24329 \end_body
24330 \end_document