]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
Japanese Additional.lyx: fix broken filename - this is a regression bug in LyX 2.2
[lyx.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 508
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 \IfFileExists{pxjahyper.sty}
19 {\usepackage{pxjahyper}}
20
21 % the pages of the TOC are numbered roman
22 % and a PDF-bookmark for the TOC is added
23 \pagenumbering{roman}
24 \let\myTOC\tableofcontents
25 \renewcommand{\tableofcontents}{%
26  \pdfbookmark[1]{\contentsname}{}
27  \myTOC
28  \cleardoublepage
29  \pagenumbering{arabic}}
30
31 % extra space for tables
32 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
33
34 \usepackage{t1enc}
35 \end_preamble
36 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
37 \use_default_options false
38 \begin_modules
39 logicalmkup
40 theorems-ams
41 theorems-ams-extended
42 multicol
43 shapepar
44 \end_modules
45 \maintain_unincluded_children false
46 \begin_local_layout
47 Format 35
48 InsetLayout             Flex:MenuItem
49 LyxType         charstyle
50 LabelString           menu
51 LatexType             command
52 LatexName             menuitem
53 Font
54 Family              Sans
55 EndFont
56 Preamble
57 \newcommand*{\menuitem}[1]{{\sffamily #1}}
58 EndPreamble
59 End
60 InsetLayout             Flex:Ruby
61 LyxType         charstyle
62 LatexType               command
63 LatexName               ruby
64 BgColor         none
65 LabelString             "ルビ"
66 Decoration              Conglomerate
67 Argument post:1
68 LabelString     "ルビ文"
69 MenuString      "ルビ文(S)|S"
70 Decoration      Conglomerate
71 Font
72 Size            tiny
73 EndFont
74 LabelFont
75 Size            tiny
76 EndFont
77 Mandatory       1
78 EndArgument
79 Preamble
80 \IfFileExists{okumacro.sty}
81 {\usepackage{okumacro}}
82 {\newcommand{\ruby}[2]{#2}}
83 EndPreamble
84 End
85 \end_local_layout
86 \language japanese
87 \language_package default
88 \inputencoding auto
89 \fontencoding global
90 \font_roman "default" "default"
91 \font_sans "default" "default"
92 \font_typewriter "default" "default"
93 \font_math "auto" "auto"
94 \font_default_family default
95 \use_non_tex_fonts false
96 \font_sc false
97 \font_osf false
98 \font_sf_scale 100 100
99 \font_tt_scale 100 100
100 \graphics default
101 \default_output_format pdf3
102 \output_sync 0
103 \bibtex_command default
104 \index_command default
105 \paperfontsize 12
106 \spacing single
107 \use_hyperref true
108 \pdf_title "LyX's Additional Features manual"
109 \pdf_author "LyX Team"
110 \pdf_subject "LyX's additional features documentation"
111 \pdf_keywords "LyX, Documentation, Additional"
112 \pdf_bookmarks false
113 \pdf_bookmarksnumbered true
114 \pdf_bookmarksopen false
115 \pdf_bookmarksopenlevel 1
116 \pdf_breaklinks false
117 \pdf_pdfborder false
118 \pdf_colorlinks true
119 \pdf_backref false
120 \pdf_pdfusetitle false
121 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
122 \papersize default
123 \use_geometry false
124 \use_package amsmath 1
125 \use_package amssymb 1
126 \use_package cancel 0
127 \use_package esint 0
128 \use_package mathdots 1
129 \use_package mathtools 0
130 \use_package mhchem 1
131 \use_package stackrel 0
132 \use_package stmaryrd 0
133 \use_package undertilde 0
134 \cite_engine basic
135 \cite_engine_type default
136 \biblio_style plain
137 \use_bibtopic false
138 \use_indices false
139 \paperorientation portrait
140 \suppress_date false
141 \justification true
142 \use_refstyle 0
143 \notefontcolor #0000ff
144 \index 索引
145 \shortcut idx
146 \color #008000
147 \end_index
148 \secnumdepth 3
149 \tocdepth 3
150 \paragraph_separation indent
151 \paragraph_indentation default
152 \quotes_language english
153 \papercolumns 1
154 \papersides 2
155 \paperpagestyle headings
156 \tracking_changes false
157 \output_changes false
158 \html_math_output 0
159 \html_css_as_file 0
160 \html_be_strict true
161 \end_header
162
163 \begin_body
164
165 \begin_layout Title
166 \SpecialChar LyX
167 の高度な機能
168 \begin_inset Newline newline
169 \end_inset
170
171
172 \size large
173 第2.2.x版
174 \end_layout
175
176 \begin_layout Author
177 \SpecialChar LyX
178 プロジェクトチーム
179 \begin_inset Foot
180 status collapsed
181
182 \begin_layout Plain Layout
183 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
184 文書化メーリングリスト
185 \begin_inset Flex Code
186 status open
187
188 \begin_layout Plain Layout
189 \noindent
190
191 \family typewriter
192 <lyx-docs@lists.lyx.org>
193 \end_layout
194
195 \end_inset
196
197 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
198 \end_layout
199
200 \end_inset
201
202  
203 \end_layout
204
205 \begin_layout Standard
206 \begin_inset CommandInset toc
207 LatexCommand tableofcontents
208
209 \end_inset
210
211
212 \end_layout
213
214 \begin_layout Chapter
215 はじめに
216 \end_layout
217
218 \begin_layout Standard
219 いまお読みの取扱説明書『
220 \emph on
221 \SpecialChar LyX
222 拡張機能篇
223 \emph default
224 』は,基本的には『
225 \emph on
226 ユーザーの手引き
227 \emph default
228 』の第二部です.これらの文書を別部とした理由は,単純に『
229 \emph on
230 ユーザーの手引き
231 \emph default
232 』がすでに大部となっていることと,『
233 \emph on
234 ユーザーの手引き
235 \emph default
236 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
237 プロジェクトチームは,\SpecialChar LyX
238 を各設定ファイルと外部パッケージによって拡張
239 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
240 パッケージをサポートしたい場合に,\SpecialChar LyX
241 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
242 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
243 な形での貢献を文書化する冊子として位置付けられています.
244 \end_layout
245
246 \begin_layout Standard
247 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
248 しています.さらに,\SpecialChar LaTeX
249 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
250 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
251 とはあくまでWYSIWYMた
252 ることを企図しているため,\SpecialChar LaTeX
253 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
254 \end_layout
255
256 \begin_layout Standard
257 もし,まだ『
258 \emph on
259 はじめの一歩
260 \emph default
261 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
262 \emph on
263 はじめの一歩
264 \emph default
265 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
266 \emph on
267 ユーザーの手引き
268 \emph default
269 』をよくお読みになって,\SpecialChar LyX
270 の全基本機能を習得してください.
271 \end_layout
272
273 \begin_layout Standard
274 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
275 が\SpecialChar LaTeX
276 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
277 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
278 コードを正
279 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
280 ユーザー向けの章となっています.
281 \end_layout
282
283 \begin_layout Chapter
284 \SpecialChar LyX
285 と\SpecialChar LaTeX
286
287 \end_layout
288
289 \begin_layout Section
290 \SpecialChar LyX
291 は\SpecialChar LaTeX
292 をどう使っているか
293 \end_layout
294
295 \begin_layout Standard
296 本章
297 \family roman
298 \series medium
299 \shape up
300 \size normal
301 \emph off
302 \bar no
303 \noun off
304 \color none
305 は,\SpecialChar TeX
306 熟練者と\SpecialChar LaTeX
307 に興味のある方向けの章です.ここでは,\SpecialChar LyX
308 と\SpecialChar LaTeX
309 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
310 のこと
311 を多少なりともご存知であることを前提とします.
312 \end_layout
313
314 \begin_layout Standard
315
316 \family roman
317 \series medium
318 \shape up
319 \size normal
320 \emph off
321 \bar no
322 \noun off
323 \color none
324 かつて\SpecialChar LyX
325 は,「\SpecialChar LaTeX
326
327 \family default
328 \series default
329 \shape default
330 \size default
331 \emph default
332 \bar default
333 \noun default
334 \color inherit
335 WYSIWYM
336 \family roman
337 \series medium
338 \shape up
339 \size normal
340 \emph off
341 \bar no
342 \noun off
343 \color none
344 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
345 のフロントエンドは,いくつも出回っています
346 \begin_inset Foot
347 status collapsed
348
349 \begin_layout Plain Layout
350
351 \family roman
352 \series medium
353 \shape up
354 \size normal
355 \emph off
356 \bar no
357 \noun off
358 \color none
359 有名なものとしては,Linux上の\SpecialChar TeX
360 makerとkile,OSX上の\SpecialChar TeX
361 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
362 モードも含まれます.
363 \end_layout
364
365 \end_inset
366
367 .これらは,基本的に\SpecialChar LaTeX
368 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
369 も,エディタであり,\SpecialChar LaTeX
370 を走らせる機能を有し,ファイル
371 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
372 \family default
373 \series default
374 \shape default
375 \size default
376 \emph default
377 \bar default
378 \noun default
379 \color inherit
380 ひとつには,
381 \family roman
382 \series medium
383 \shape up
384 \size normal
385 \emph off
386 \bar no
387 \noun off
388 \color none
389 \SpecialChar LyX
390 を効果的に使うのに,\SpecialChar LaTeX
391 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
392 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
393 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
394 てください.まず
395 \family sans
396 \series default
397 \shape default
398 \size default
399 \emph default
400 \bar default
401 \noun default
402 \color inherit
403
404 \begin_inset Flex MenuItem
405 status collapsed
406
407 \begin_layout Plain Layout
408
409 \family sans
410 ファイル
411 \end_layout
412
413 \end_inset
414
415
416 \family roman
417 \series medium
418 \shape up
419 \size normal
420 \emph off
421 \bar no
422 \noun off
423 \color none
424 メニューから
425 \family sans
426 \series default
427 \shape default
428 \size default
429 \emph default
430 \bar default
431 \noun default
432 \color inherit
433
434 \begin_inset Flex MenuItem
435 status collapsed
436
437 \begin_layout Plain Layout
438
439 \family sans
440 エクスポート\SpecialChar menuseparator
441 LaTeX
442 \end_layout
443
444 \end_inset
445
446
447 \family roman
448 \series medium
449 \shape up
450 \size normal
451 \emph off
452 \bar no
453 \noun off
454 \color none
455 (あるいは
456 \family sans
457 \series default
458 \shape default
459 \size default
460 \emph default
461 \bar default
462 \noun default
463 \color inherit
464
465 \begin_inset Flex MenuItem
466 status collapsed
467
468 \begin_layout Plain Layout
469
470 \family sans
471 表示\SpecialChar menuseparator
472 ソースを閲覧
473 \end_layout
474
475 \end_inset
476
477
478 \family roman
479 \series medium
480 \shape up
481 \size normal
482 \emph off
483 \bar no
484 \noun off
485 \color none
486 )を選択し,そこから出力される
487 \begin_inset Flex Code
488 status collapsed
489
490 \begin_layout Plain Layout
491
492 \family typewriter
493 .tex
494 \end_layout
495
496 \end_inset
497
498 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
499 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
500 \family default
501 \series default
502 \shape default
503 \size default
504 \emph default
505 \bar default
506 \noun default
507 \color inherit
508 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
509 \end_layout
510
511 \begin_layout Standard
512
513 \family roman
514 \series medium
515 \shape up
516 \size normal
517 \emph off
518 \bar no
519 \noun off
520 \color none
521 自動的に\SpecialChar LaTeX
522 を実行するコマンドが,以下のようにいくつかあります.
523 \end_layout
524
525 \begin_layout Itemize
526 \begin_inset Flex MenuItem
527 status collapsed
528
529 \begin_layout Plain Layout
530 表示\SpecialChar menuseparator
531 書式
532 \end_layout
533
534 \end_inset
535
536
537 \end_layout
538
539 \begin_layout Itemize
540
541 \family sans
542 \begin_inset Flex MenuItem
543 status collapsed
544
545 \begin_layout Plain Layout
546
547 \bar no
548 表示\SpecialChar menuseparator
549 更新\SpecialChar menuseparator
550
551 \bar default
552 書式
553 \end_layout
554
555 \end_inset
556
557
558 \end_layout
559
560 \begin_layout Standard
561
562 \family roman
563 \series medium
564 \shape up
565 \size normal
566 \emph off
567 \bar no
568 \noun off
569 \color none
570 これらは,最後に\SpecialChar LaTeX
571 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
572 を実行します.
573 \end_layout
574
575 \begin_layout Standard
576
577 \family roman
578 \series medium
579 \shape up
580 \size normal
581 \emph off
582 \bar no
583 \noun off
584 \color none
585 \SpecialChar LyX
586 が編集中のファイルを\SpecialChar LaTeX
587 にかけるとき,\SpecialChar LyX
588 は以下の段階をふみます.
589 \end_layout
590
591 \begin_layout Enumerate
592
593 \family roman
594 \series medium
595 \shape up
596 \size normal
597 \emph off
598 \bar no
599 \noun off
600 \color none
601 文書を\SpecialChar LaTeX
602 に変換し,ファイルの拡張子を
603 \begin_inset Flex Code
604 status collapsed
605
606 \begin_layout Plain Layout
607
608 \family roman
609 \series medium
610 \shape up
611 \size normal
612 \emph off
613 \bar no
614 \noun off
615 \color none
616 .lyx
617 \end_layout
618
619 \end_inset
620
621 から
622 \begin_inset Flex Code
623 status collapsed
624
625 \begin_layout Plain Layout
626
627 \family roman
628 \series medium
629 \shape up
630 \size normal
631 \emph off
632 \bar no
633 \noun off
634 \color none
635 .tex
636 \end_layout
637
638 \end_inset
639
640 に変えて保存.
641 \end_layout
642
643 \begin_layout Enumerate
644
645 \family roman
646 \series medium
647 \shape up
648 \size normal
649 \emph off
650 \bar no
651 \noun off
652 \color none
653 この
654 \begin_inset Flex Code
655 status collapsed
656
657 \begin_layout Plain Layout
658
659 \family roman
660 \series medium
661 \shape up
662 \size normal
663 \emph off
664 \bar no
665 \noun off
666 \color none
667 .tex
668 \end_layout
669
670 \end_inset
671
672 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
673 を実行し,\SpecialChar LaTeX
674 ファイルをコンパイルするのに必要な他のコマンド(
675 \begin_inset Flex Code
676 status collapsed
677
678 \begin_layout Plain Layout
679
680 \family roman
681 \series medium
682 \shape up
683 \size normal
684 \emph off
685 \bar no
686 \noun off
687 \color none
688 bibtex
689 \end_layout
690
691 \end_inset
692
693
694 \begin_inset Flex Code
695 status collapsed
696
697 \begin_layout Plain Layout
698
699 \family roman
700 \series medium
701 \shape up
702 \size normal
703 \emph off
704 \bar no
705 \noun off
706 \color none
707 makeindex
708 \end_layout
709
710 \end_inset
711
712 など)を実行..
713 \end_layout
714
715 \begin_layout Enumerate
716
717 \family roman
718 \series medium
719 \shape up
720 \size normal
721 \emph off
722 \bar no
723 \noun off
724 \color none
725 もしエラーがあれば,エラーログを表示.
726 \end_layout
727
728 \begin_layout Standard
729
730 \family roman
731 \series medium
732 \shape up
733 \size normal
734 \emph off
735 \bar no
736 \noun off
737 \color none
738 \SpecialChar LaTeX
739
740 \family sans
741 \series default
742 \shape default
743 \size default
744 \emph default
745 \bar default
746 \noun default
747 \color inherit
748
749 \begin_inset Flex MenuItem
750 status collapsed
751
752 \begin_layout Plain Layout
753
754 \family sans
755 表示\SpecialChar menuseparator
756 DVI
757 \end_layout
758
759 \end_inset
760
761
762 \family roman
763 \series medium
764 \shape up
765 \size normal
766 \emph off
767 \bar no
768 \noun off
769 \color none
770 を使用して実行した場合には,\SpecialChar LyX
771 はこの後,DVIビューアを実行してDVIファイルを表示します.
772 \begin_inset Flex MenuItem
773 status collapsed
774
775 \begin_layout Plain Layout
776
777 \family roman
778 \series medium
779 \shape up
780 \size normal
781 \emph off
782 \bar no
783 \noun off
784 \color none
785 表示\SpecialChar menuseparator
786 PostScript
787 \end_layout
788
789 \end_inset
790
791 を使用した場合には,\SpecialChar LyX
792 はさらに以下の段階をふみます.
793 \end_layout
794
795 \begin_layout Itemize
796
797 \family roman
798 \series medium
799 \shape up
800 \size normal
801 \emph off
802 \bar no
803 \noun off
804 \color none
805 \begin_inset Flex Code
806 status collapsed
807
808 \begin_layout Plain Layout
809
810 \family typewriter
811 dvips
812 \end_layout
813
814 \end_inset
815
816 を実行して,
817 \family default
818 \series default
819 \shape default
820 \size default
821 \emph default
822 \bar default
823 \noun default
824 \color inherit
825 DVI
826 \family roman
827 \series medium
828 \shape up
829 \size normal
830 \emph off
831 \bar no
832 \noun off
833 \color none
834 ファイルをPostScript
835 \family default
836 \series default
837 \shape default
838 \size default
839 \emph default
840 \bar default
841 \noun default
842 \color inherit
843 に変換.
844 \end_layout
845
846 \begin_layout Itemize
847
848 \family roman
849 \series medium
850 \shape up
851 \size normal
852 \emph off
853 \bar no
854 \noun off
855 \color none
856 \begin_inset Flex Code
857 status collapsed
858
859 \begin_layout Plain Layout
860
861 \family typewriter
862 ghostview
863 \end_layout
864
865 \end_inset
866
867 などのPostScriptビューアを実行して,PostScript
868 \family default
869 \series default
870 \shape default
871 \size default
872 \emph default
873 \bar default
874 \noun default
875 \color inherit
876 ファイルを表示.
877 \end_layout
878
879 \begin_layout Standard
880 \SpecialChar LyX
881 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
882 \end_layout
883
884 \begin_layout Section
885 \SpecialChar LaTeX
886 ファイルを\SpecialChar LyX
887 に読み込む
888 \end_layout
889
890 \begin_layout Standard
891 \SpecialChar LyX
892
893 \family sans
894
895 \begin_inset Flex MenuItem
896 status collapsed
897
898 \begin_layout Plain Layout
899
900 \family sans
901 ファイル\SpecialChar menuseparator
902 インポート\SpecialChar menuseparator
903 LaTeX
904 \end_layout
905
906 \end_inset
907
908
909 \family roman
910 \series medium
911 \shape up
912 \size normal
913 \emph off
914 \bar no
915 \noun off
916 \color none
917 コマンドを使用すると,\SpecialChar LaTeX
918 ファイルを
919 \family default
920 \series default
921 \shape default
922 \size default
923 \emph default
924 \bar default
925 \noun default
926  
927 \family roman
928 \series medium
929 \shape up
930 \size normal
931 \emph off
932 \bar no
933 \noun off
934 \SpecialChar LyX
935 にインポートすることができます.このコマンドは,
936 \family typewriter
937 \series default
938 \shape default
939 \size default
940 \emph default
941 \bar default
942 \noun default
943 \color inherit
944
945 \begin_inset Flex Code
946 status collapsed
947
948 \begin_layout Plain Layout
949
950 \family typewriter
951 tex2lyx
952 \end_layout
953
954 \end_inset
955
956
957 \family roman
958 \series medium
959 \shape up
960 \size normal
961 \emph off
962 \bar no
963 \noun off
964 \color none
965 というプログラムを呼び出し,
966 \family typewriter
967 \series default
968 \shape default
969 \size default
970 \emph default
971 \bar default
972 \noun default
973 \color inherit
974
975 \begin_inset Flex Code
976 status collapsed
977
978 \begin_layout Plain Layout
979
980 \family typewriter
981 foo.tex
982 \end_layout
983
984 \end_inset
985
986
987 \family default
988 などというファイルから
989 \begin_inset Flex Code
990 status collapsed
991
992 \begin_layout Plain Layout
993
994 \family typewriter
995 foo.lyx
996 \end_layout
997
998 \end_inset
999
1000 を生成します.\SpecialChar LyX
1001 は,この変換したファイルを開きます
1002 \begin_inset Foot
1003 status collapsed
1004
1005 \begin_layout Plain Layout
1006 \begin_inset Flex Code
1007 status collapsed
1008
1009 \begin_layout Plain Layout
1010 tex2lyx
1011 \end_layout
1012
1013 \end_inset
1014
1015 は,もちろんコマンドラインから実行することもできます.
1016 \end_layout
1017
1018 \end_inset
1019
1020
1021 \end_layout
1022
1023 \begin_layout Standard
1024
1025 \family typewriter
1026 \begin_inset Flex Code
1027 status collapsed
1028
1029 \begin_layout Plain Layout
1030
1031 \family typewriter
1032 tex2lyx
1033 \end_layout
1034
1035 \end_inset
1036
1037
1038 \family roman
1039 \series medium
1040 \shape up
1041 \size normal
1042 \emph off
1043 \bar no
1044 \noun off
1045 \color none
1046 は,文法的に正しい\SpecialChar LaTeX
1047 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1048 \family typewriter
1049 \series default
1050 \shape default
1051 \size default
1052 \emph default
1053 \bar default
1054 \noun default
1055 \color inherit
1056
1057 \begin_inset Flex Code
1058 status collapsed
1059
1060 \begin_layout Plain Layout
1061
1062 \family typewriter
1063 tex2lyx
1064 \end_layout
1065
1066 \end_inset
1067
1068
1069 \family roman
1070 \series medium
1071 \shape up
1072 \size normal
1073 \emph off
1074 \bar no
1075 \noun off
1076 \color none
1077 は,理解不能な部分は\SpecialChar TeX
1078 コードボックスの形で残しますので,ファイルを
1079 \family typewriter
1080 \series default
1081 \shape default
1082 \size default
1083 \emph default
1084 \bar default
1085 \noun default
1086 \color inherit
1087
1088 \begin_inset Flex Code
1089 status collapsed
1090
1091 \begin_layout Plain Layout
1092
1093 \family typewriter
1094 tex2lyx
1095 \end_layout
1096
1097 \end_inset
1098
1099
1100 \family roman
1101 \series medium
1102 \shape up
1103 \size normal
1104 \emph off
1105 \bar no
1106 \noun off
1107 \color none
1108 で変換したのち,\SpecialChar TeX
1109 コードボックスを探して,手動で正しく編集してください.
1110 \end_layout
1111
1112 \begin_layout Standard
1113
1114 \family roman
1115 \series medium
1116 \shape up
1117 \size normal
1118 \emph off
1119 \bar no
1120 \noun off
1121 \color none
1122 \SpecialChar TeX
1123 コードボックスがなにかご存じなければ,次節をお読みください.
1124 \end_layout
1125
1126 \begin_layout Section
1127 \SpecialChar LaTeX
1128 コードを挿入する
1129 \begin_inset CommandInset label
1130 LatexCommand label
1131 name "sec:LaTeXコードを挿入する"
1132
1133 \end_inset
1134
1135
1136 \end_layout
1137
1138 \begin_layout Standard
1139
1140 \family roman
1141 \series medium
1142 \shape up
1143 \size normal
1144 \emph off
1145 \bar no
1146 \noun off
1147 \color none
1148 どの\SpecialChar LyX
1149 文書にもつねに\SpecialChar TeX
1150 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1151 にできることは,つねに\SpecialChar LyX
1152 でも行うことができます.一方,\SpecialChar LyX
1153 は,すべての\SpecialChar LaTeX
1154 構成物を\SpecialChar LyX
1155 内に
1156 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1157 コマンドを\SpecialChar LyX
1158 文書に挿入する必要が出てきた場合には,
1159 \begin_inset Flex Code
1160 status collapsed
1161
1162 \begin_layout Plain Layout
1163
1164 \family roman
1165 \series medium
1166 \shape up
1167 \size normal
1168 \emph off
1169 \bar no
1170 \noun off
1171 \color none
1172 \SpecialChar TeX
1173 コード
1174 \end_layout
1175
1176 \end_inset
1177
1178 ボックスを使用してください.これは,
1179 \family sans
1180 \series default
1181 \shape default
1182 \size default
1183 \emph default
1184 \bar default
1185 \noun default
1186 \color inherit
1187
1188 \begin_inset Flex MenuItem
1189 status collapsed
1190
1191 \begin_layout Plain Layout
1192
1193 \family sans
1194 挿入\SpecialChar menuseparator
1195 TeXコード
1196 \end_layout
1197
1198 \end_inset
1199
1200
1201 \family roman
1202 \series medium
1203 \shape up
1204 \size normal
1205 \emph off
1206 \bar no
1207 \noun off
1208 \color none
1209 若しくは
1210 \family default
1211 \series default
1212 \shape default
1213 \size default
1214 \emph default
1215 \bar default
1216 \noun default
1217 \color inherit
1218
1219 \begin_inset Flex Ruby
1220 status collapsed
1221
1222 \begin_layout Plain Layout
1223
1224 \family roman
1225 \series medium
1226 \shape up
1227 \size normal
1228 \emph off
1229 \bar no
1230 \noun off
1231 \color none
1232 捷径
1233 \family default
1234 \series default
1235 \shape default
1236 \size default
1237 \emph default
1238 \bar default
1239 \noun default
1240 \color inherit
1241
1242 \begin_inset Argument post:1
1243 status collapsed
1244
1245 \begin_layout Plain Layout
1246 ショートカット
1247 \end_layout
1248
1249 \end_inset
1250
1251
1252 \end_layout
1253
1254 \end_inset
1255
1256
1257 \begin_inset Flex Ruby
1258 status collapsed
1259
1260 \begin_layout Plain Layout
1261
1262 \family roman
1263 \series medium
1264 \shape up
1265 \size normal
1266 \emph off
1267 \bar no
1268 \noun off
1269 \color none
1270
1271 \begin_inset Argument post:1
1272 status collapsed
1273
1274 \begin_layout Plain Layout
1275 キー
1276 \end_layout
1277
1278 \end_inset
1279
1280
1281 \end_layout
1282
1283 \end_inset
1284
1285
1286 \begin_inset Info
1287 type  "shortcut"
1288 arg   "ert-insert"
1289 \end_inset
1290
1291
1292 \family roman
1293 \series medium
1294 \shape up
1295 \size normal
1296 \emph off
1297 \bar no
1298 \noun off
1299 \color none
1300 で,文書中に挿入することができます.
1301 \end_layout
1302
1303 \begin_layout Standard
1304 以下は,\SpecialChar LaTeX
1305 コマンドを\SpecialChar LyX
1306 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1307 \end_layout
1308
1309 \begin_layout LyX-Code
1310
1311 \backslash
1312 begin{tabular}{ll}
1313 \begin_inset Newline newline
1314 \end_inset
1315
1316
1317 \backslash
1318 begin{minipage}{5cm}
1319 \begin_inset Newline newline
1320 \end_inset
1321
1322 これは,ミニページ環境の例です.
1323 \begin_inset Newline newline
1324 \end_inset
1325
1326 これには,
1327 \begin_inset Newline newline
1328 \end_inset
1329
1330 (フロートでない)図表を
1331 \begin_inset Newline newline
1332 \end_inset
1333
1334 含め,ほとんど何でも
1335 \begin_inset Newline newline
1336 \end_inset
1337
1338 入れることができます. 
1339 \begin_inset Newline newline
1340 \end_inset
1341
1342
1343 \backslash
1344 end{minipage}
1345 \begin_inset Newline newline
1346 \end_inset
1347
1348 &
1349 \begin_inset Newline newline
1350 \end_inset
1351
1352
1353 \backslash
1354 begin{minipage}{5cm}
1355 \begin_inset Newline newline
1356 \end_inset
1357
1358
1359 \backslash
1360 begin{verbatim}
1361 \begin_inset Newline newline
1362 \end_inset
1363
1364
1365 \backslash
1366 begin{minipage}{5cm}
1367 \begin_inset Newline newline
1368 \end_inset
1369
1370 これは...
1371  
1372 \begin_inset Newline newline
1373 \end_inset
1374
1375
1376 \backslash
1377 end{minipage}
1378 \begin_inset Newline newline
1379 \end_inset
1380
1381
1382 \backslash
1383 end{verbatim}
1384 \begin_inset Newline newline
1385 \end_inset
1386
1387
1388 \backslash
1389 end{minipage}
1390 \begin_inset Newline newline
1391 \end_inset
1392
1393
1394 \backslash
1395 end{tabular}
1396 \end_layout
1397
1398 \begin_layout LyX-Code
1399
1400 \end_layout
1401
1402 \begin_layout Standard
1403 上記のテキストを含んだ
1404 \begin_inset Flex Code
1405 status collapsed
1406
1407 \begin_layout Plain Layout
1408 \SpecialChar TeX
1409 コード
1410 \end_layout
1411
1412 \end_inset
1413
1414 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1415 上でご覧になっていれば,\SpecialChar TeX
1416 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1417 れるはずです.
1418 \end_layout
1419
1420 \begin_layout Standard
1421 \begin_inset VSpace bigskip
1422 \end_inset
1423
1424
1425 \begin_inset ERT
1426 status open
1427
1428 \begin_layout Plain Layout
1429
1430
1431 \backslash
1432 begin{tabular}{ll}
1433 \end_layout
1434
1435 \begin_layout Plain Layout
1436
1437
1438 \backslash
1439 begin{minipage}{5cm}
1440 \end_layout
1441
1442 \begin_layout Plain Layout
1443
1444 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます. 
1445 \backslash
1446 end{minipage}
1447 \end_layout
1448
1449 \begin_layout Plain Layout
1450
1451 &
1452 \end_layout
1453
1454 \begin_layout Plain Layout
1455
1456
1457 \backslash
1458 begin{minipage}{5cm}
1459 \end_layout
1460
1461 \begin_layout Plain Layout
1462
1463
1464 \backslash
1465 begin{verbatim}
1466 \end_layout
1467
1468 \begin_layout Plain Layout
1469
1470
1471 \backslash
1472 begin{minipage}{5cm}
1473 \end_layout
1474
1475 \begin_layout Plain Layout
1476
1477 これは...
1478  
1479 \backslash
1480 end{minipage}
1481 \end_layout
1482
1483 \begin_layout Plain Layout
1484
1485
1486 \backslash
1487 end{verbatim}
1488 \end_layout
1489
1490 \begin_layout Plain Layout
1491
1492
1493 \backslash
1494 end{minipage}
1495 \end_layout
1496
1497 \begin_layout Plain Layout
1498
1499
1500 \backslash
1501 end{tabular}
1502 \end_layout
1503
1504 \end_inset
1505
1506
1507 \begin_inset VSpace bigskip
1508 \end_inset
1509
1510
1511 \end_layout
1512
1513 \begin_layout Standard
1514
1515 \family roman
1516 \series medium
1517 \shape up
1518 \size normal
1519 \emph off
1520 \bar no
1521 \noun off
1522 \color none
1523 \SpecialChar TeX
1524 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1525 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1526 \begin_inset Flex MenuItem
1527 status collapsed
1528
1529 \begin_layout Plain Layout
1530
1531 \family roman
1532 \series medium
1533 \shape up
1534 \size normal
1535 \emph off
1536 \bar no
1537 \noun off
1538 \color none
1539 挿入\SpecialChar menuseparator
1540 ファイル\SpecialChar menuseparator
1541 子文書
1542 \end_layout
1543
1544 \end_inset
1545
1546 を使用する方法もあります(取り込みの型として
1547 \begin_inset Flex Code
1548 status collapsed
1549
1550 \begin_layout Plain Layout
1551
1552 \family roman
1553 \series medium
1554 \shape up
1555 \size normal
1556 \emph off
1557 \bar no
1558 \noun off
1559 \color none
1560 Input
1561 \end_layout
1562
1563 \end_inset
1564
1565 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1566 \family default
1567 \series default
1568 \shape default
1569 \size default
1570 \emph on
1571 \bar default
1572 \noun default
1573 \color inherit
1574 確認できている
1575 \family roman
1576 \series medium
1577 \shape up
1578 \size normal
1579 \emph off
1580 \bar no
1581 \noun off
1582 \color none
1583 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1584 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1585 \end_layout
1586
1587 \begin_layout Standard
1588
1589 \family roman
1590 \series medium
1591 \shape up
1592 \size normal
1593 \emph off
1594 \bar no
1595 \noun off
1596 \color none
1597 最後に,いくつか強調しておくべきことがあります.
1598 \end_layout
1599
1600 \begin_layout Itemize
1601
1602 \family roman
1603 \series medium
1604 \shape up
1605 \size normal
1606 \emph off
1607 \bar no
1608 \noun off
1609 \color none
1610 \SpecialChar LyX
1611 は,あなたの\SpecialChar LaTeX
1612 コードが正しいかどうかを
1613 \family default
1614 \series default
1615 \shape default
1616 \size default
1617 \emph on
1618 \bar default
1619 \noun default
1620 \color inherit
1621 チェックしません
1622 \family roman
1623 \series medium
1624 \shape up
1625 \size normal
1626 \emph off
1627 \bar no
1628 \noun off
1629 \color none
1630
1631 \end_layout
1632
1633 \begin_layout Itemize
1634
1635 \family roman
1636 \series medium
1637 \shape up
1638 \size normal
1639 \emph off
1640 \bar no
1641 \noun off
1642 \color none
1643 車輪の再発明をしないようにご注意ください.
1644 \end_layout
1645
1646 \begin_layout Standard
1647
1648 \family roman
1649 \series medium
1650 \shape up
1651 \size normal
1652 \emph off
1653 \bar no
1654 \noun off
1655 \color none
1656 二番目の点に関して,\SpecialChar LyX
1657 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1658 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1659 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1660 う膨大な数の\SpecialChar LaTeX
1661 パッケージが存在します.
1662 \family default
1663 \series default
1664 \shape default
1665 \size default
1666 \emph default
1667 \bar default
1668 \noun default
1669 \color inherit
1670 詳細については,
1671 \begin_inset CommandInset href
1672 LatexCommand href
1673 name "CTAN"
1674 target "http://www.ctan.org/"
1675
1676 \end_inset
1677
1678
1679 \family roman
1680 \series medium
1681 \shape up
1682 \size normal
1683 \emph off
1684 \bar no
1685 \noun off
1686 \color none
1687 と第
1688 \begin_inset CommandInset ref
1689 LatexCommand ref
1690 reference "chap:Special-features"
1691
1692 \end_inset
1693
1694 節をご覧ください.
1695 \end_layout
1696
1697 \begin_layout Standard
1698
1699 \family roman
1700 \series medium
1701 \shape up
1702 \size normal
1703 \emph off
1704 \bar no
1705 \noun off
1706 \color none
1707 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1708 関連書籍を参考とするようにしてください.『
1709 \family default
1710 \series default
1711 \shape default
1712 \size default
1713 \emph on
1714 \bar default
1715 \noun default
1716 \color inherit
1717 ユーザーの手引き
1718 \family roman
1719 \series medium
1720 \shape up
1721 \size normal
1722 \emph off
1723 \bar no
1724 \noun off
1725 \color none
1726 』の書誌情報に多くの\SpecialChar LaTeX
1727 関連書籍が引用されています.
1728 \end_layout
1729
1730 \begin_layout Section
1731 \SpecialChar LyX
1732 と\SpecialChar LaTeX
1733 プリアンブル
1734 \end_layout
1735
1736 \begin_layout Subsection
1737 \SpecialChar LaTeX
1738 プリアンブルについて
1739 \end_layout
1740
1741 \begin_layout Standard
1742
1743 \family roman
1744 \series medium
1745 \shape up
1746 \size normal
1747 \emph off
1748 \bar no
1749 \noun off
1750 \color none
1751 すでに\SpecialChar LaTeX
1752 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1753 ずです.詳しくは\SpecialChar LaTeX
1754 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1755 文書の\SpecialChar LaTeX
1756 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1757 みになった方が良いでしょう.
1758 \end_layout
1759
1760 \begin_layout Standard
1761
1762 \family roman
1763 \series medium
1764 \shape up
1765 \size normal
1766 \emph off
1767 \bar no
1768 \noun off
1769 \color none
1770 \SpecialChar LaTeX
1771 プリアンブルは,\SpecialChar LaTeX
1772 文書のいちばん始め,本文の
1773 \family default
1774 \series default
1775 \shape default
1776 \size default
1777 \emph on
1778 \bar default
1779 \noun default
1780 \color inherit
1781
1782 \family roman
1783 \series medium
1784 \shape up
1785 \size normal
1786 \emph off
1787 \bar no
1788 \noun off
1789 \color none
1790 の部分に来ます.ここでは以下のことを行います.
1791 \end_layout
1792
1793 \begin_layout Itemize
1794
1795 \family roman
1796 \series medium
1797 \shape up
1798 \size normal
1799 \emph off
1800 \bar no
1801 \noun off
1802 \color none
1803 文書クラス(ドキュメントクラス)の宣言.
1804 \begin_inset Newline newline
1805 \end_inset
1806
1807 これは\SpecialChar LyX
1808 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1809 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1810 \family default
1811 \series default
1812 \shape default
1813 \size default
1814 \emph on
1815 \bar default
1816 \noun default
1817 \color inherit
1818 カスタマイズ篇
1819 \family roman
1820 \series medium
1821 \shape up
1822 \size normal
1823 \emph off
1824 \bar no
1825 \noun off
1826 \color none
1827 』をご覧になれば,\SpecialChar LyX
1828 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1829 \end_layout
1830
1831 \begin_layout Itemize
1832
1833 \family roman
1834 \series medium
1835 \shape up
1836 \size normal
1837 \emph off
1838 \bar no
1839 \noun off
1840 \color none
1841 パッケージ使用の宣言.
1842 \begin_inset Newline newline
1843 \end_inset
1844
1845 \SpecialChar LaTeX
1846 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1847 提供されることに加え,文書に変更を加えることができます.例えば
1848 \family typewriter
1849 \series default
1850 \shape default
1851 \size default
1852 \emph default
1853 \bar default
1854 \noun default
1855 \color inherit
1856
1857 \family roman
1858 \series medium
1859 \shape up
1860 \size normal
1861 \emph off
1862 \bar no
1863 \noun off
1864 \color none
1865
1866 \begin_inset Flex Code
1867 status collapsed
1868
1869 \begin_layout Plain Layout
1870
1871 \family typewriter
1872 indentfirst
1873 \end_layout
1874
1875 \end_inset
1876
1877 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1878 \end_layout
1879
1880 \begin_layout Itemize
1881
1882 \family roman
1883 \series medium
1884 \shape up
1885 \size normal
1886 \emph off
1887 \bar no
1888 \noun off
1889 \color none
1890 カウンタ・変数・長さ・幅の設定.
1891 \begin_inset Newline newline
1892 \end_inset
1893
1894 \SpecialChar LaTeX
1895 のカウンタと変数の中には,プリアンブルでグローバルに
1896 \family default
1897 \series default
1898 \shape default
1899 \size default
1900 \emph default
1901 \bar default
1902 \noun default
1903 \color inherit
1904 設定
1905 \emph on
1906 しないかぎり
1907 \family roman
1908 \series medium
1909 \shape up
1910 \size normal
1911 \emph off
1912 \bar no
1913 \noun off
1914 \color none
1915 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1916 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1917 \end_layout
1918
1919 \begin_layout Itemize
1920
1921 \family roman
1922 \series medium
1923 \shape up
1924 \size normal
1925 \emph off
1926 \bar no
1927 \noun off
1928 \color none
1929 ユーザー定義コマンドの宣言(
1930 \begin_inset Flex Code
1931 status collapsed
1932
1933 \begin_layout Plain Layout
1934
1935 \family roman
1936 \series medium
1937 \shape up
1938 \size normal
1939 \emph off
1940 \bar no
1941 \noun off
1942 \color none
1943
1944 \backslash
1945 newcommand
1946 \end_layout
1947
1948 \end_inset
1949
1950 または
1951 \begin_inset Flex Code
1952 status collapsed
1953
1954 \begin_layout Plain Layout
1955
1956 \family roman
1957 \series medium
1958 \shape up
1959 \size normal
1960 \emph off
1961 \bar no
1962 \noun off
1963 \color none
1964
1965 \backslash
1966 renewcommand
1967 \end_layout
1968
1969 \end_inset
1970
1971 を使用).
1972 \begin_inset Newline newline
1973 \end_inset
1974
1975 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1976 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
1977 \family default
1978 \series default
1979 \shape default
1980 \size default
1981 \emph on
1982 \bar default
1983 \noun default
1984 \color inherit
1985 可能
1986 \family roman
1987 \series medium
1988 \shape up
1989 \size normal
1990 \emph off
1991 \bar no
1992 \noun off
1993 \color none
1994 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
1995 コードがあふれている場合には便利でしょう.
1996 \end_layout
1997
1998 \begin_layout Standard
1999
2000 \family roman
2001 \series medium
2002 \shape up
2003 \size normal
2004 \emph off
2005 \bar no
2006 \noun off
2007 \color none
2008 \SpecialChar LyX
2009 は,その生成する
2010 \begin_inset Flex Code
2011 status collapsed
2012
2013 \begin_layout Plain Layout
2014
2015 \family roman
2016 \series medium
2017 \shape up
2018 \size normal
2019 \emph off
2020 \bar no
2021 \noun off
2022 \color none
2023 .tex
2024 \end_layout
2025
2026 \end_inset
2027
2028 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2029 の生成する\SpecialChar LaTeX
2030 ファイルの可搬性を高めています.
2031 \end_layout
2032
2033 \begin_layout Subsection
2034 プリアンブルの変更
2035 \end_layout
2036
2037 \begin_layout Standard
2038
2039 \family roman
2040 \series medium
2041 \shape up
2042 \size normal
2043 \emph off
2044 \bar no
2045 \noun off
2046 \color none
2047 \SpecialChar LyX
2048 が\SpecialChar LaTeX
2049 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2050 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2051 \begin_inset Flex MenuItem
2052 status collapsed
2053
2054 \begin_layout Plain Layout
2055
2056 \family roman
2057 \series medium
2058 \shape up
2059 \size normal
2060 \emph off
2061 \bar no
2062 \noun off
2063 \color none
2064 文書\SpecialChar menuseparator
2065 設定
2066 \end_layout
2067
2068 \end_inset
2069
2070 ダイアログの
2071 \begin_inset Flex MenuItem
2072 status collapsed
2073
2074 \begin_layout Plain Layout
2075
2076 \family roman
2077 \series medium
2078 \shape up
2079 \size normal
2080 \emph off
2081 \bar no
2082 \noun off
2083 \color none
2084 \SpecialChar LaTeX
2085 プリアンブル
2086 \end_layout
2087
2088 \end_inset
2089
2090 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2091 は,
2092 \family sans
2093 \series default
2094 \shape default
2095 \size default
2096 \emph default
2097 \bar default
2098 \noun default
2099 \color inherit
2100
2101 \begin_inset Flex MenuItem
2102 status collapsed
2103
2104 \begin_layout Plain Layout
2105
2106 \family sans
2107 プリアンブル
2108 \end_layout
2109
2110 \end_inset
2111
2112
2113 \family roman
2114 \series medium
2115 \shape up
2116 \size normal
2117 \emph off
2118 \bar no
2119 \noun off
2120 \color none
2121 ダイアログ内のすべてのものを,\SpecialChar LyX
2122 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2123 がすでにサポートしてい
2124 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2125 \family default
2126 \series default
2127 \shape default
2128 \size default
2129 \emph default
2130 \bar default
2131 \noun default
2132 \color inherit
2133 また,
2134 \emph on
2135 プリアンブルコードが正しいことを確認してください.
2136 \emph default
2137 \SpecialChar LyX
2138 は,プリアンブルをチェックしません.
2139 \family roman
2140 \series medium
2141 \shape up
2142 \size normal
2143 \emph off
2144 \bar no
2145 \noun off
2146 \color none
2147 もしエラーがあれば,「
2148 \begin_inset Flex Code
2149 status collapsed
2150
2151 \begin_layout Plain Layout
2152
2153 \family roman
2154 \series medium
2155 \shape up
2156 \size normal
2157 \emph off
2158 \bar no
2159 \noun off
2160 \color none
2161 Missing 
2162 \backslash
2163 begin{document}
2164 \end_layout
2165
2166 \end_inset
2167
2168 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2169 \end_layout
2170
2171 \begin_layout Subsection
2172
2173 \end_layout
2174
2175 \begin_layout Standard
2176
2177 \family roman
2178 \series medium
2179 \shape up
2180 \size normal
2181 \emph off
2182 \bar no
2183 \noun off
2184 \color none
2185 以下は,プリアンブルに追加できるものとその効果を示す例です.
2186 \end_layout
2187
2188 \begin_layout Subsubsection
2189 例1:オフセット
2190 \end_layout
2191
2192 \begin_layout Standard
2193
2194 \family roman
2195 \series medium
2196 \shape up
2197 \size normal
2198 \emph off
2199 \bar no
2200 \noun off
2201 \color none
2202 \SpecialChar LaTeX
2203 には
2204 \family default
2205 \series default
2206 \shape default
2207 \size default
2208 \emph default
2209 \bar default
2210 \noun default
2211 \color inherit
2212
2213 \family roman
2214 \series medium
2215 \shape up
2216 \size normal
2217 \emph off
2218 \bar no
2219 \noun off
2220 \color none
2221
2222 \begin_inset Flex Code
2223 status collapsed
2224
2225 \begin_layout Plain Layout
2226
2227 \family typewriter
2228
2229 \backslash
2230 hoffset
2231 \end_layout
2232
2233 \end_inset
2234
2235
2236 \family typewriter
2237 \series default
2238 \shape default
2239 \size default
2240 \emph default
2241 \bar default
2242 \noun default
2243 \color inherit
2244
2245 \begin_inset Flex Code
2246 status collapsed
2247
2248 \begin_layout Plain Layout
2249
2250 \family typewriter
2251
2252 \backslash
2253 voffset
2254 \end_layout
2255
2256 \end_inset
2257
2258
2259 \family roman
2260 \series medium
2261 \shape up
2262 \size normal
2263 \emph off
2264 \bar no
2265 \noun off
2266 \color none
2267 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2268 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2269 \begin_inset Flex Code
2270 status collapsed
2271
2272 \begin_layout Plain Layout
2273
2274 \family typewriter
2275
2276 \backslash
2277 hoffset
2278 \end_layout
2279
2280 \end_inset
2281
2282
2283 \family typewriter
2284 \series default
2285 \shape default
2286 \size default
2287 \emph default
2288 \bar default
2289 \noun default
2290 \color inherit
2291
2292 \begin_inset Flex Code
2293 status collapsed
2294
2295 \begin_layout Plain Layout
2296
2297 \family typewriter
2298
2299 \backslash
2300 voffset
2301 \end_layout
2302
2303 \end_inset
2304
2305
2306 \family default
2307 が役立つわけです.
2308 \end_layout
2309
2310 \begin_layout Standard
2311
2312 \family roman
2313 \series medium
2314 \shape up
2315 \size normal
2316 \emph off
2317 \bar no
2318 \noun off
2319 \color none
2320 \begin_inset Flex Code
2321 status collapsed
2322
2323 \begin_layout Plain Layout
2324
2325 \family typewriter
2326
2327 \backslash
2328 hoffset
2329 \end_layout
2330
2331 \end_inset
2332
2333
2334 \family typewriter
2335 \series default
2336 \shape default
2337 \size default
2338 \emph default
2339 \bar default
2340 \noun default
2341 \color inherit
2342
2343 \begin_inset Flex Code
2344 status collapsed
2345
2346 \begin_layout Plain Layout
2347
2348 \family typewriter
2349
2350 \backslash
2351 voffset
2352 \end_layout
2353
2354 \end_inset
2355
2356
2357 \family roman
2358 \series medium
2359 \shape up
2360 \size normal
2361 \emph off
2362 \bar no
2363 \noun off
2364 \color none
2365 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2366 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2367 を使用していて,シスアドがお馬鹿さんである
2368 場合には,
2369 \begin_inset Flex Code
2370 status collapsed
2371
2372 \begin_layout Plain Layout
2373
2374 \family typewriter
2375
2376 \backslash
2377 hoffset
2378 \end_layout
2379
2380 \end_inset
2381
2382
2383 \family typewriter
2384 \series default
2385 \shape default
2386 \size default
2387 \emph default
2388 \bar default
2389 \noun default
2390 \color inherit
2391
2392 \begin_inset Flex Code
2393 status collapsed
2394
2395 \begin_layout Plain Layout
2396
2397 \family typewriter
2398
2399 \backslash
2400 voffset
2401 \end_layout
2402
2403 \end_inset
2404
2405
2406 \family roman
2407 \series medium
2408 \shape up
2409 \size normal
2410 \emph off
2411 \bar no
2412 \noun off
2413 \color none
2414 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2415 \end_layout
2416
2417 \begin_layout LyX-Code
2418
2419 \backslash
2420 setlength{
2421 \backslash
2422 hoffset}{-0.5 in}
2423 \end_layout
2424
2425 \begin_layout LyX-Code
2426
2427 \backslash
2428 setlength{
2429 \backslash
2430 voffset}{-0.5 in}
2431 \end_layout
2432
2433 \begin_layout Standard
2434
2435 \family roman
2436 \series medium
2437 \shape up
2438 \size normal
2439 \emph off
2440 \bar no
2441 \noun off
2442 \color none
2443 これで余白が修正されます.
2444 \end_layout
2445
2446 \begin_layout Subsubsection
2447 例2:ラベル
2448 \end_layout
2449
2450 \begin_layout Standard
2451
2452 \family roman
2453 \series medium
2454 \shape up
2455 \size normal
2456 \emph off
2457 \bar no
2458 \noun off
2459 \color none
2460 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2461 \begin_inset Flex Code
2462 status collapsed
2463
2464 \begin_layout Plain Layout
2465
2466 \family typewriter
2467 labels.sty
2468 \end_layout
2469
2470 \end_inset
2471
2472 という\SpecialChar LaTeX
2473 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2474 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2475 ることにします.
2476 \end_layout
2477
2478 \begin_layout Standard
2479
2480 \family roman
2481 \series medium
2482 \shape up
2483 \size normal
2484 \emph off
2485 \bar no
2486 \noun off
2487 \color none
2488 まず,
2489 \begin_inset Flex Code
2490 status collapsed
2491
2492 \begin_layout Plain Layout
2493
2494 \family sans
2495 article
2496 \end_layout
2497
2498 \end_inset
2499
2500 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2501 \end_layout
2502
2503 \begin_layout LyX-Code
2504
2505 \backslash
2506 usepackage{labels}
2507 \end_layout
2508
2509 \begin_layout LyX-Code
2510
2511 \backslash
2512 LabelCols=3
2513 \end_layout
2514
2515 \begin_layout LyX-Code
2516
2517 \backslash
2518 LabelRows=7
2519 \end_layout
2520
2521 \begin_layout LyX-Code
2522
2523 \backslash
2524 LeftBorder=8mm
2525 \end_layout
2526
2527 \begin_layout LyX-Code
2528
2529 \backslash
2530 RightBorder=8mm
2531 \end_layout
2532
2533 \begin_layout LyX-Code
2534
2535 \backslash
2536 TopBorder=9mm
2537 \end_layout
2538
2539 \begin_layout LyX-Code
2540
2541 \backslash
2542 BottomBorder=2mm
2543 \end_layout
2544
2545 \begin_layout Standard
2546
2547 \family roman
2548 \series medium
2549 \shape up
2550 \size normal
2551 \emph off
2552 \bar no
2553 \noun off
2554 \color none
2555 これは
2556 \family default
2557 \series default
2558 \shape default
2559 \size default
2560 \emph default
2561 \bar default
2562 \noun default
2563 \color inherit
2564 Averyラベルシートのストック5360
2565 \family roman
2566 \series medium
2567 \shape up
2568 \size normal
2569 \emph off
2570 \bar no
2571 \noun off
2572 \color none
2573 番を使用する場合の設定です.これで,各宛名を
2574 \begin_inset Flex Code
2575 status collapsed
2576
2577 \begin_layout Plain Layout
2578
2579 \family typewriter
2580
2581 \backslash
2582 begin{labels}
2583 \end_layout
2584
2585 \end_inset
2586
2587
2588 \family typewriter
2589 \series default
2590 \shape default
2591 \size default
2592 \emph default
2593 \bar default
2594 \noun default
2595 \color inherit
2596
2597 \begin_inset Flex Code
2598 status collapsed
2599
2600 \begin_layout Plain Layout
2601
2602 \family typewriter
2603
2604 \backslash
2605 end{labels}
2606 \end_layout
2607
2608 \end_inset
2609
2610
2611 \family roman
2612 \series medium
2613 \shape up
2614 \size normal
2615 \emph off
2616 \bar no
2617 \noun off
2618 \color none
2619 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2620 \begin_inset Flex Code
2621 status collapsed
2622
2623 \begin_layout Plain Layout
2624
2625 \family typewriter
2626 labels.sty
2627 \end_layout
2628
2629 \end_inset
2630
2631 の取扱説明書に説明されています.
2632 \end_layout
2633
2634 \begin_layout Standard
2635
2636 \family roman
2637 \series medium
2638 \shape up
2639 \size normal
2640 \emph off
2641 \bar no
2642 \noun off
2643 \color none
2644 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2645 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2646 \end_layout
2647
2648 \begin_layout Subsubsection
2649 例3: 段落の字下げ
2650 \end_layout
2651
2652 \begin_layout Standard
2653
2654 \family roman
2655 \series medium
2656 \shape up
2657 \size normal
2658 \emph off
2659 \bar no
2660 \noun off
2661 \color none
2662 アメリカ人は
2663 \family default
2664 \series default
2665 \shape default
2666 \size default
2667 \emph default
2668 \bar default
2669 \noun default
2670 \color inherit
2671
2672 \emph on
2673 すべての
2674 \family roman
2675 \series medium
2676 \shape up
2677 \size normal
2678 \emph off
2679 \bar no
2680 \noun off
2681 \color none
2682 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2683 ゃと文句を言いつづけるのです
2684 \family default
2685 \series default
2686 \shape default
2687 \size default
2688 \emph default
2689 \bar default
2690 \noun default
2691 \color inherit
2692 .(これはユーモアです.(ほんと?)
2693 \emph on
2694 ユーモアですってば
2695 \emph default
2696 .)
2697 \end_layout
2698
2699 \begin_layout Standard
2700
2701 \family roman
2702 \series medium
2703 \shape up
2704 \size normal
2705 \emph off
2706 \bar no
2707 \noun off
2708 \color none
2709 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2710 \family default
2711 \series default
2712 \shape default
2713 \size default
2714 \emph on
2715 \bar default
2716 \noun default
2717 \color inherit
2718 のみ
2719 \family roman
2720 \series medium
2721 \shape up
2722 \size normal
2723 \emph off
2724 \bar no
2725 \noun off
2726 \color none
2727 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2728 ,字下げをする必要はないのです.
2729 \end_layout
2730
2731 \begin_layout Standard
2732
2733 \family roman
2734 \series medium
2735 \shape up
2736 \size normal
2737 \emph off
2738 \bar no
2739 \noun off
2740 \color none
2741 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2742 ルに次の行を加えて下さい.
2743 \end_layout
2744
2745 \begin_layout LyX-Code
2746
2747 \backslash
2748 usepackage{indentfirst}
2749 \end_layout
2750
2751 \begin_layout Standard
2752
2753 \family roman
2754 \series medium
2755 \shape up
2756 \size normal
2757 \emph off
2758 \bar no
2759 \noun off
2760 \color none
2761 もしお使いの\SpecialChar TeX
2762 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2763 \end_layout
2764
2765 \begin_layout Subsubsection
2766 例4:この文書
2767 \end_layout
2768
2769 \begin_layout Standard
2770
2771 \family roman
2772 \series medium
2773 \shape up
2774 \size normal
2775 \emph off
2776 \bar no
2777 \noun off
2778 \color none
2779 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2780 \family default
2781 \series default
2782 \shape default
2783 \size default
2784 \emph default
2785 \bar default
2786 \noun default
2787 \color inherit
2788
2789 \begin_inset CommandInset ref
2790 LatexCommand ref
2791 reference "chap:Special-features"
2792
2793 \end_inset
2794
2795
2796 \family roman
2797 \series medium
2798 \shape up
2799 \size normal
2800 \emph off
2801 \bar no
2802 \noun off
2803 \color none
2804 章には,他の例や,\SpecialChar LaTeX
2805 の各種の「汚い技」があります.
2806 \end_layout
2807
2808 \begin_layout Section
2809 \SpecialChar LyX
2810 および\SpecialChar LaTeX
2811 のエラー
2812 \end_layout
2813
2814 \begin_layout Standard
2815
2816 \family roman
2817 \series medium
2818 \shape up
2819 \size normal
2820 \emph off
2821 \bar no
2822 \noun off
2823 \color none
2824 \SpecialChar LyX
2825 が\SpecialChar LaTeX
2826 を呼び出す際,\SpecialChar LyX
2827 は\SpecialChar LaTeX
2828 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2829 は,\SpecialChar LaTeX
2830 の実行ログファイルを事後処理用に使います.ログファイルを分
2831 析したのち,\SpecialChar LyX
2832 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2833 ファイル中,そのエラーの発生した場所に表示を移動します
2834 \begin_inset Foot
2835 status collapsed
2836
2837 \begin_layout Plain Layout
2838
2839 \family roman
2840 \series medium
2841 \shape up
2842 \size normal
2843 \emph off
2844 \bar no
2845 \noun off
2846 \color none
2847 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2848 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2849 がある行にエラーがあると報告し
2850 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2851 ーのある場所よりも後ろでエラーが報告されるのです.
2852 \end_layout
2853
2854 \end_inset
2855
2856
2857 \family default
2858 \series default
2859 \shape default
2860 \size default
2861 \emph default
2862 \bar default
2863 \noun default
2864 \color inherit
2865
2866 \end_layout
2867
2868 \begin_layout Standard
2869
2870 \family roman
2871 \series medium
2872 \shape up
2873 \size normal
2874 \emph off
2875 \bar no
2876 \noun off
2877 \color none
2878 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2879 \begin_inset Flex MenuItem
2880 status collapsed
2881
2882 \begin_layout Plain Layout
2883
2884 \family roman
2885 \series medium
2886 \shape up
2887 \size normal
2888 \emph off
2889 \bar no
2890 \noun off
2891 \color none
2892 文書\SpecialChar menuseparator
2893 LaTeXログ
2894 \end_layout
2895
2896 \end_inset
2897
2898 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2899
2900 関連の良書を参照してください.
2901 \end_layout
2902
2903 \begin_layout Itemize
2904
2905 \family typewriter
2906 \begin_inset Flex Code
2907 status collapsed
2908
2909 \begin_layout Plain Layout
2910
2911 \family typewriter
2912 LaTeX Warning
2913 \end_layout
2914
2915 \end_inset
2916
2917
2918 \family roman
2919 \series medium
2920 \shape up
2921 \size normal
2922 \emph off
2923 \bar no
2924 \noun off
2925 \color none
2926
2927 \begin_inset Newline newline
2928 \end_inset
2929
2930 これで始まるメッセージは,\SpecialChar LaTeX
2931 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2932 を実行する必要があることを
2933 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2934 \end_layout
2935
2936 \begin_layout Itemize
2937
2938 \family typewriter
2939 \begin_inset Flex Code
2940 status collapsed
2941
2942 \begin_layout Plain Layout
2943
2944 \family typewriter
2945 LaTeX Font Warning
2946 \end_layout
2947
2948 \end_inset
2949
2950
2951 \family roman
2952 \series medium
2953 \shape up
2954 \size normal
2955 \emph off
2956 \bar no
2957 \noun off
2958 \color none
2959
2960 \begin_inset Newline newline
2961 \end_inset
2962
2963 \SpecialChar LaTeX
2964 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2965 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2966
2967 \end_layout
2968
2969 \begin_layout Itemize
2970
2971 \family roman
2972 \series medium
2973 \shape up
2974 \size normal
2975 \emph off
2976 \bar no
2977 \noun off
2978 \color none
2979 \begin_inset Flex Code
2980 status collapsed
2981
2982 \begin_layout Plain Layout
2983
2984 \family typewriter
2985 Overfull 
2986 \backslash
2987 hbox
2988 \end_layout
2989
2990 \end_inset
2991
2992
2993 \begin_inset Newline newline
2994 \end_inset
2995
2996 \SpecialChar LaTeX
2997 は,
2998 \family default
2999 \series default
3000 \shape default
3001 \size default
3002 \emph on
3003 \bar default
3004 \noun default
3005 \color inherit
3006 ほぼどんなときでも
3007 \family roman
3008 \series medium
3009 \shape up
3010 \size normal
3011 \emph off
3012 \bar no
3013 \noun off
3014 \color none
3015 この警告を吐き出します.これは,一行が長すぎて右余白にはみ出してしまったという警告ですが,ほとんどの場合,最終出力を見ても判別できないくらい(せいぜい1ポイント
3016 か2ポイント)です.あるいは1文字か2文字右余白に出ているくらいです.\SpecialChar LaTeX
3017 は,どんな文書を書いても,少なくとも一つはこのメッセージを出すようです.
3018 \begin_inset Newline newline
3019 \end_inset
3020
3021 このメッセージは無視しても大丈夫です.何か行が長すぎるような問題があれば,目で見ればわかります.出力を目で確認してください
3022 \begin_inset Foot
3023 status collapsed
3024
3025 \begin_layout Plain Layout
3026 あるいは,
3027 \begin_inset Flex MenuItem
3028 status collapsed
3029
3030 \begin_layout Plain Layout
3031 文書\SpecialChar menuseparator
3032 設定
3033 \end_layout
3034
3035 \end_inset
3036
3037 で「draft」オプションを指定する方法もあります.こうすると,\SpecialChar LaTeX
3038 は,overfullの発生した行の余白に黒い四角を描画します.
3039 \end_layout
3040
3041 \end_inset
3042
3043
3044 \end_layout
3045
3046 \begin_layout Itemize
3047
3048 \family typewriter
3049 \begin_inset Flex Code
3050 status collapsed
3051
3052 \begin_layout Plain Layout
3053
3054 \family typewriter
3055 Underfull 
3056 \backslash
3057 hbox
3058 \end_layout
3059
3060 \end_inset
3061
3062
3063 \begin_inset Newline newline
3064 \end_inset
3065
3066
3067 \family roman
3068 \series medium
3069 \shape up
3070 \size normal
3071 \emph off
3072 \bar no
3073 \noun off
3074 \color none
3075 これは上の警告と違ってあまり出てきません.なぜだかは分かりませんが,\SpecialChar LaTeX
3076 は1行を短めにする印字するよりは,長めにする方が好きなようです.
3077 \end_layout
3078
3079 \begin_layout Itemize
3080 \begin_inset Flex Code
3081 status collapsed
3082
3083 \begin_layout Plain Layout
3084
3085 \family typewriter
3086 Overfull 
3087 \backslash
3088 vbox
3089 \end_layout
3090
3091 \end_inset
3092
3093
3094 \family typewriter
3095
3096 \begin_inset Flex Code
3097 status collapsed
3098
3099 \begin_layout Plain Layout
3100
3101 \family typewriter
3102 Underfull 
3103 \backslash
3104 vbox
3105 \end_layout
3106
3107 \end_inset
3108
3109
3110 \family default
3111
3112 \begin_inset Newline newline
3113 \end_inset
3114
3115
3116 \family roman
3117 \series medium
3118 \shape up
3119 \size normal
3120 \emph off
3121 \bar no
3122 \noun off
3123 \color none
3124 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3125 \end_layout
3126
3127 \begin_layout Itemize
3128
3129 \family typewriter
3130 \begin_inset Flex Code
3131 status collapsed
3132
3133 \begin_layout Plain Layout
3134
3135 \family typewriter
3136 LaTeX Error: File 
3137 \begin_inset Quotes els
3138 \end_inset
3139
3140 Xxxx
3141 \begin_inset Quotes ers
3142 \end_inset
3143
3144  not found
3145 \end_layout
3146
3147 \end_inset
3148
3149
3150 \family roman
3151 \series medium
3152 \shape up
3153 \size normal
3154 \emph off
3155 \bar no
3156 \noun off
3157 \color none
3158
3159 \begin_inset Newline newline
3160 \end_inset
3161
3162 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3163 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3164 えておらず,
3165 \begin_inset Flex Code
3166 status collapsed
3167
3168 \begin_layout Plain Layout
3169
3170 \family typewriter
3171
3172 \backslash
3173 usepackage{}
3174 \end_layout
3175
3176 \end_inset
3177
3178 コマンドも使用していないとすれば,\SpecialChar LyX
3179 が読み込もうしているパッケージに存在しないものがあるということです.
3180 \family default
3181 \series default
3182 \shape default
3183 \size default
3184 \emph default
3185 \bar default
3186 \noun default
3187 \color inherit
3188
3189 \begin_inset Flex MenuItem
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193 ヘルプ\SpecialChar menuseparator
3194 \SpecialChar LaTeX
3195 の設定
3196 \end_layout
3197
3198 \end_inset
3199
3200
3201 \family roman
3202 \series medium
3203 \shape up
3204 \size normal
3205 \emph off
3206 \bar no
3207 \noun off
3208 \color none
3209 を使用して,\SpecialChar LyX
3210 が認識しているパッケージの一覧を得てください.このファイルは,(
3211 \begin_inset Flex MenuItem
3212 status collapsed
3213
3214 \begin_layout Plain Layout
3215
3216 \family roman
3217 \series medium
3218 \shape up
3219 \size normal
3220 \emph off
3221 \bar no
3222 \noun off
3223 \color none
3224 ツール\SpecialChar menuseparator
3225 再設定
3226 \end_layout
3227
3228 \end_inset
3229
3230 を使用して)\SpecialChar LyX
3231 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3232 \begin_inset Newline newline
3233 \end_inset
3234
3235
3236 \family sans
3237 \series default
3238 \shape default
3239 \size default
3240 \emph default
3241 \bar default
3242 \noun default
3243 \color inherit
3244
3245 \begin_inset Flex Code
3246 status collapsed
3247
3248 \begin_layout Plain Layout
3249
3250 \family sans
3251
3252 \backslash
3253 usepackage{}
3254 \end_layout
3255
3256 \end_inset
3257
3258
3259 \family roman
3260 \series medium
3261 \shape up
3262 \size normal
3263 \emph off
3264 \bar no
3265 \noun off
3266 \color none
3267 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3268 \end_layout
3269
3270 \begin_layout Itemize
3271
3272 \family typewriter
3273 \begin_inset Flex Code
3274 status collapsed
3275
3276 \begin_layout Plain Layout
3277
3278 \family typewriter
3279 LaTeX Error: Unknown option
3280 \end_layout
3281
3282 \end_inset
3283
3284
3285 \family roman
3286 \series medium
3287 \shape up
3288 \size normal
3289 \emph off
3290 \bar no
3291 \noun off
3292 \color none
3293
3294 \begin_inset Newline newline
3295 \end_inset
3296
3297 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3298 さい.
3299 \end_layout
3300
3301 \begin_layout Itemize
3302
3303 \family typewriter
3304 \begin_inset Flex Code
3305 status collapsed
3306
3307 \begin_layout Plain Layout
3308
3309 \family typewriter
3310 Undefined control sequence
3311 \end_layout
3312
3313 \end_inset
3314
3315
3316 \family roman
3317 \series medium
3318 \shape up
3319 \size normal
3320 \emph off
3321 \bar no
3322 \noun off
3323 \color none
3324
3325 \begin_inset Newline newline
3326 \end_inset
3327
3328 お使いの文書に\SpecialChar LaTeX
3329 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3330 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3331 \end_layout
3332
3333 \begin_layout Standard
3334
3335 \family roman
3336 \series medium
3337 \shape up
3338 \size normal
3339 \emph off
3340 \bar no
3341 \noun off
3342 \color none
3343 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3344 のメッセージです.何を言っているのかさっぱりわからないものもあ
3345 りますが,通常これらは,\SpecialChar TeX
3346 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3347 \family default
3348 \series default
3349 \shape default
3350 \size default
3351 \emph on
3352 \bar default
3353 \noun default
3354 \color inherit
3355 まったく
3356 \family roman
3357 \series medium
3358 \shape up
3359 \size normal
3360 \emph off
3361 \bar no
3362 \noun off
3363 \color none
3364 手がかりがありません.誰もわからないのです.
3365 \end_layout
3366
3367 \begin_layout Standard
3368
3369 \family roman
3370 \series medium
3371 \shape up
3372 \size normal
3373 \emph off
3374 \bar no
3375 \noun off
3376 \color none
3377 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3378 \end_layout
3379
3380 \begin_layout Enumerate
3381
3382 \family roman
3383 \series medium
3384 \shape up
3385 \size normal
3386 \emph off
3387 \bar no
3388 \noun off
3389 \color none
3390 ご自分で挿入した\SpecialChar LaTeX
3391 コードに打ち間違いがないかどうか確かめる.
3392 \end_layout
3393
3394 \begin_layout Enumerate
3395
3396 \family roman
3397 \series medium
3398 \shape up
3399 \size normal
3400 \emph off
3401 \bar no
3402 \noun off
3403 \color none
3404 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3405 \end_layout
3406
3407 \begin_layout Enumerate
3408
3409 \family roman
3410 \series medium
3411 \shape up
3412 \size normal
3413 \emph off
3414 \bar no
3415 \noun off
3416 \color none
3417 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3418 \begin_inset Flex Code
3419 status collapsed
3420
3421 \begin_layout Plain Layout
3422
3423 \family roman
3424 \series medium
3425 \shape up
3426 \size normal
3427 \emph off
3428 \bar no
3429 \noun off
3430 \color none
3431 Missing 
3432 \backslash
3433 begin{document}
3434 \end_layout
3435
3436 \end_inset
3437
3438 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3439 \end_layout
3440
3441 \begin_layout Enumerate
3442
3443 \family roman
3444 \series medium
3445 \shape up
3446 \size normal
3447 \emph off
3448 \bar no
3449 \noun off
3450 \color none
3451 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3452 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3453 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3454 い.
3455 \end_layout
3456
3457 \begin_layout Enumerate
3458
3459 \family roman
3460 \series medium
3461 \shape up
3462 \size normal
3463 \emph off
3464 \bar no
3465 \noun off
3466 \color none
3467 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3468 を微調整するオプションを使用していますか.特に,手動で
3469 \begin_inset Flex Code
3470 status collapsed
3471
3472 \begin_layout Plain Layout
3473
3474 \family sans
3475 Protected
3476 \begin_inset space ~
3477 \end_inset
3478
3479 Blank
3480 \end_layout
3481
3482 \end_inset
3483
3484
3485 \begin_inset Flex Code
3486 status collapsed
3487
3488 \begin_layout Plain Layout
3489
3490 \family sans
3491 Linebreak
3492 \end_layout
3493
3494 \end_inset
3495
3496
3497 \family sans
3498 \series default
3499 \shape default
3500 \size default
3501 \emph default
3502 \bar default
3503 \noun default
3504 \color inherit
3505
3506 \begin_inset Flex Code
3507 status collapsed
3508
3509 \begin_layout Plain Layout
3510
3511 \family sans
3512 Pagebreak
3513 \end_layout
3514
3515 \end_inset
3516
3517
3518 \family roman
3519 \series medium
3520 \shape up
3521 \size normal
3522 \emph off
3523 \bar no
3524 \noun off
3525 \color none
3526 などをたくさん挿入するなど,微調整オプションを
3527 \family default
3528 \series default
3529 \shape default
3530 \size default
3531 \emph on
3532 \bar default
3533 \noun default
3534 \color inherit
3535 悪用
3536 \family roman
3537 \series medium
3538 \shape up
3539 \size normal
3540 \emph off
3541 \bar no
3542 \noun off
3543 \color none
3544 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3545 \end_layout
3546
3547 \begin_layout Enumerate
3548
3549 \family roman
3550 \series medium
3551 \shape up
3552 \size normal
3553 \emph off
3554 \bar no
3555 \noun off
3556 \color none
3557 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3558 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3559 \end_layout
3560
3561 \begin_layout Enumerate
3562 \SpecialChar LaTeX
3563 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3564 はかなり嫌います.可能であれば,問題が生じな
3565 いように段落を修正するのが望ましいでしょう.
3566 \end_layout
3567
3568 \begin_layout Enumerate
3569
3570 \family roman
3571 \series medium
3572 \shape up
3573 \size normal
3574 \emph off
3575 \bar no
3576 \noun off
3577 \color none
3578 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3579 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3580 が原因です(\SpecialChar LaTeX
3581 の上限は5段です).
3582 \end_layout
3583
3584 \begin_layout Enumerate
3585
3586 \family roman
3587 \series medium
3588 \shape up
3589 \size normal
3590 \emph off
3591 \bar no
3592 \noun off
3593 \color none
3594 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3595 \family default
3596 \series default
3597 \shape default
3598 \size default
3599 \bar default
3600 \color inherit
3601
3602 \begin_inset Separator latexpar
3603 \end_inset
3604
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 \begin_inset Separator latexpar
5064 \end_inset
5065
5066
5067 \end_layout
5068
5069 \begin_layout Standard
5070 \align center
5071 \begin_inset Tabular
5072 <lyxtabular version="3" rows="7" columns="2">
5073 <features tabularvalignment="middle">
5074 <column alignment="center" valignment="top" width="0pt">
5075 <column alignment="center" valignment="top" width="0pt">
5076 <row>
5077 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5078 \begin_inset Text
5079
5080 \begin_layout Plain Layout
5081 フォント
5082 \end_layout
5083
5084 \end_inset
5085 </cell>
5086 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5087 \begin_inset Text
5088
5089 \begin_layout Plain Layout
5090
5091 \family roman
5092 \series medium
5093 \shape up
5094 \size normal
5095 \emph off
5096 \bar no
5097 \noun off
5098 \color none
5099 必要とするパッケージ
5100 \end_layout
5101
5102 \end_inset
5103 </cell>
5104 </row>
5105 <row>
5106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5107 \begin_inset Text
5108
5109 \begin_layout Plain Layout
5110
5111 \family sans
5112 標準
5113 \end_layout
5114
5115 \end_inset
5116 </cell>
5117 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5118 \begin_inset Text
5119
5120 \begin_layout Plain Layout
5121
5122 \series medium
5123 \shape up
5124 \size normal
5125 \emph off
5126 \bar no
5127 \noun off
5128 \color none
5129 \SpecialChar LaTeX
5130
5131 \family roman
5132 本体
5133 \end_layout
5134
5135 \end_inset
5136 </cell>
5137 </row>
5138 <row>
5139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5140 \begin_inset Text
5141
5142 \begin_layout Plain Layout
5143
5144 \family sans
5145 \series medium
5146 \shape up
5147 \size normal
5148 \emph off
5149 \bar no
5150 \noun off
5151 \color none
5152 数式
5153 \end_layout
5154
5155 \end_inset
5156 </cell>
5157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5158 \begin_inset Text
5159
5160 \begin_layout Plain Layout
5161
5162 \family typewriter
5163 \series medium
5164 \shape up
5165 \size normal
5166 \emph off
5167 \bar no
5168 \noun off
5169 \color none
5170 amssymb.sty
5171 \end_layout
5172
5173 \end_inset
5174 </cell>
5175 </row>
5176 <row>
5177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5178 \begin_inset Text
5179
5180 \begin_layout Plain Layout
5181
5182 \family sans
5183 \series medium
5184 \shape up
5185 \size normal
5186 \emph off
5187 \bar no
5188 \noun off
5189 \color none
5190 絵文字1
5191 \end_layout
5192
5193 \end_inset
5194 </cell>
5195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5196 \begin_inset Text
5197
5198 \begin_layout Plain Layout
5199
5200 \family typewriter
5201 \series medium
5202 \shape up
5203 \size normal
5204 \emph off
5205 \bar no
5206 \noun off
5207 \color none
5208 pifont.sty
5209 \end_layout
5210
5211 \end_inset
5212 </cell>
5213 </row>
5214 <row>
5215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5216 \begin_inset Text
5217
5218 \begin_layout Plain Layout
5219
5220 \family sans
5221 \series medium
5222 \shape up
5223 \size normal
5224 \emph off
5225 \bar no
5226 \noun off
5227 \color none
5228 絵文字2
5229 \end_layout
5230
5231 \end_inset
5232 </cell>
5233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5234 \begin_inset Text
5235
5236 \begin_layout Plain Layout
5237
5238 \family typewriter
5239 \series medium
5240 \shape up
5241 \size normal
5242 \emph off
5243 \bar no
5244 \noun off
5245 \color none
5246 pifont.sty
5247 \end_layout
5248
5249 \end_inset
5250 </cell>
5251 </row>
5252 <row>
5253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5254 \begin_inset Text
5255
5256 \begin_layout Plain Layout
5257
5258 \family sans
5259 \series medium
5260 \shape up
5261 \size normal
5262 \emph off
5263 \bar no
5264 \noun off
5265 \color none
5266 絵文字3
5267 \end_layout
5268
5269 \end_inset
5270 </cell>
5271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5272 \begin_inset Text
5273
5274 \begin_layout Plain Layout
5275
5276 \family typewriter
5277 \series medium
5278 \shape up
5279 \size normal
5280 \emph off
5281 \bar no
5282 \noun off
5283 \color none
5284 pifont.sty
5285 \end_layout
5286
5287 \end_inset
5288 </cell>
5289 </row>
5290 <row>
5291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5292 \begin_inset Text
5293
5294 \begin_layout Plain Layout
5295
5296 \family sans
5297 \series medium
5298 \shape up
5299 \size normal
5300 \emph off
5301 \bar no
5302 \noun off
5303 \color none
5304 絵文字4
5305 \end_layout
5306
5307 \end_inset
5308 </cell>
5309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5310 \begin_inset Text
5311
5312 \begin_layout Plain Layout
5313
5314 \family typewriter
5315 \series medium
5316 \shape up
5317 \size normal
5318 \emph off
5319 \bar no
5320 \noun off
5321 \color none
5322 pifont.sty
5323 \end_layout
5324
5325 \end_inset
5326 </cell>
5327 </row>
5328 </lyxtabular>
5329
5330 \end_inset
5331
5332
5333 \end_layout
5334
5335 \begin_layout Standard
5336 \SpecialChar LyX
5337 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5338 エラーが出るようならば,
5339 パッケージが導入されていない可能性が大です
5340 \begin_inset Foot
5341 status collapsed
5342
5343 \begin_layout Plain Layout
5344 \SpecialChar LyX
5345 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
5346 \end_layout
5347
5348 \end_inset
5349
5350
5351 \end_layout
5352
5353 \begin_layout Subsection
5354 使用法
5355 \end_layout
5356
5357 \begin_layout Standard
5358 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
5359 上には反映されませんが,文書の表示を行えば確認されます.
5360 \end_layout
5361
5362 \begin_layout Standard
5363 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
5364 \begin_inset Foot
5365 status collapsed
5366
5367 \begin_layout Plain Layout
5368 もし
5369 \emph on
5370 本当に
5371 \emph default
5372 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
5373 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
5374 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
5375 \end_layout
5376
5377 \begin_layout Plain Layout
5378 \begin_inset ERT
5379 status open
5380
5381 \begin_layout Plain Layout
5382
5383
5384 \backslash
5385 let
5386 \backslash
5387 savelabelitemi=
5388 \backslash
5389 labelitemi
5390 \end_layout
5391
5392 \end_inset
5393
5394
5395 \end_layout
5396
5397 \begin_layout Plain Layout
5398 \begin_inset ERT
5399 status open
5400
5401 \begin_layout Plain Layout
5402
5403
5404 \backslash
5405 renewcommand
5406 \backslash
5407 labelitemi[0]{
5408 \backslash
5409 small
5410 \backslash
5411 (
5412 \backslash
5413 sharp
5414 \backslash
5415 )}
5416 \end_layout
5417
5418 \end_inset
5419
5420
5421 \end_layout
5422
5423 \begin_layout Itemize
5424 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
5425 コマンド
5426 \begin_inset Flex Code
5427 status collapsed
5428
5429 \begin_layout Plain Layout
5430
5431 \family typewriter
5432
5433 \backslash
5434 renewcommand{}{}
5435 \end_layout
5436
5437 \end_inset
5438
5439 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
5440 更するために,以下の\SpecialChar LaTeX
5441 コードが使用されています.
5442 \begin_inset Separator latexpar
5443 \end_inset
5444
5445
5446 \end_layout
5447
5448 \begin_deeper
5449 \begin_layout LyX-Code
5450
5451 \family typewriter
5452
5453 \backslash
5454 let
5455 \backslash
5456 savelabelitemi=
5457 \backslash
5458 labelitemi
5459 \end_layout
5460
5461 \begin_layout LyX-Code
5462
5463 \family typewriter
5464
5465 \backslash
5466 renewcommand
5467 \backslash
5468 labelitemi[0]{
5469 \backslash
5470 small
5471 \backslash
5472 (
5473 \backslash
5474 sharp
5475 \backslash
5476 )}
5477 \end_layout
5478
5479 \end_deeper
5480 \begin_layout Itemize
5481 箇条書き(記号)の階層は,
5482 \begin_inset Flex Code
5483 status collapsed
5484
5485 \begin_layout Plain Layout
5486
5487 \backslash
5488 labelitem
5489 \end_layout
5490
5491 \end_inset
5492
5493 コマンドの一部にローマ数字で指定されていることに注意してください.
5494 \end_layout
5495
5496 \begin_layout Itemize
5497 \begin_inset ERT
5498 status open
5499
5500 \begin_layout Plain Layout
5501
5502 [
5503 \backslash
5504 (
5505 \backslash
5506 star
5507 \backslash
5508 )]
5509 \end_layout
5510
5511 \end_inset
5512
5513 各項目のブリットを指定するには,角括弧で囲んだブリット形を,行頭に
5514 \begin_inset Flex Code
5515 status collapsed
5516
5517 \begin_layout Plain Layout
5518 \SpecialChar TeX
5519 コード
5520 \end_layout
5521
5522 \end_inset
5523
5524 として挿入してください.たとえば,この項目の行頭には
5525 \family typewriter
5526
5527 \begin_inset Flex Code
5528 status collapsed
5529
5530 \begin_layout Plain Layout
5531
5532 \family typewriter
5533 [
5534 \backslash
5535 (
5536 \backslash
5537 star
5538 \backslash
5539 )]
5540 \end_layout
5541
5542 \end_inset
5543
5544
5545 \family default
5546 が指定されています.
5547 \end_layout
5548
5549 \begin_layout Plain Layout
5550 \begin_inset ERT
5551 status open
5552
5553 \begin_layout Plain Layout
5554
5555
5556 \backslash
5557 renewcommand
5558 \backslash
5559 labelitemi[0]{
5560 \backslash
5561 savelabelitemi}
5562 \end_layout
5563
5564 \end_inset
5565
5566
5567 \end_layout
5568
5569 \begin_layout Plain Layout
5570 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
5571 \end_layout
5572
5573 \begin_layout LyX-Code
5574
5575 \family typewriter
5576
5577 \backslash
5578 renewcommand
5579 \backslash
5580 labelitemi[0]{
5581 \backslash
5582 savelabelitemi}
5583 \end_layout
5584
5585 \end_inset
5586
5587
5588 \end_layout
5589
5590 \begin_layout Chapter
5591 \SpecialChar LyX
5592 とインターネット網
5593 \end_layout
5594
5595 \begin_layout Standard
5596 \SpecialChar LyX
5597 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
5598 は,常に外部変換子を用いることで実現されていました
5599 \begin_inset Foot
5600 status collapsed
5601
5602 \begin_layout Plain Layout
5603 \SpecialChar LyX
5604 で外部変換子を使うことについての詳細は,取扱説明書『
5605 \emph on
5606 カスタマイズ篇
5607 \emph default
5608 』の「
5609 \emph on
5610 変換子
5611 \emph default
5612 」の節をご覧ください.
5613 \end_layout
5614
5615 \end_inset
5616
5617 .これらは2つのグループに大別できます.1つは,
5618 \begin_inset Flex Code
5619 status collapsed
5620
5621 \begin_layout Plain Layout
5622 htlatex
5623 \end_layout
5624
5625 \end_inset
5626
5627
5628 \begin_inset Flex Code
5629 status collapsed
5630
5631 \begin_layout Plain Layout
5632 html2latex
5633 \end_layout
5634
5635 \end_inset
5636
5637
5638 \begin_inset Flex Code
5639 status collapsed
5640
5641 \begin_layout Plain Layout
5642 plastex
5643 \end_layout
5644
5645 \end_inset
5646
5647 のように,\SpecialChar LaTeX
5648 を中間形式として用い,その\SpecialChar LaTeX
5649 を生成するのに\SpecialChar LyX
5650 を用いるもの.2つめは,
5651 \begin_inset Flex Code
5652 status collapsed
5653
5654 \begin_layout Plain Layout
5655 e\SpecialChar LyX
5656 er
5657 \end_layout
5658
5659 \end_inset
5660
5661 のように,直接\SpecialChar LyX
5662 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
5663 \end_layout
5664
5665 \begin_layout Standard
5666 \SpecialChar LaTeX
5667 ベースの変換子は,原則として,\SpecialChar LaTeX
5668 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
5669 によって生成され
5670 たのか,\SpecialChar TeX
5671 コードで書かれたのかについては気にしません.これらの変換子は,
5672 \begin_inset Flex Code
5673 status collapsed
5674
5675 \begin_layout Plain Layout
5676 aux
5677 \end_layout
5678
5679 \end_inset
5680
5681 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
5682 が生成する
5683 \begin_inset Flex Code
5684 status collapsed
5685
5686 \begin_layout Plain Layout
5687 bbl
5688 \end_layout
5689
5690 \end_inset
5691
5692 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
5693 は解析の非常に難しい言語であり—\SpecialChar TeX
5694 自身だけが\SpecialChar TeX
5695 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
5696 ベースの変換子は
5697 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
5698 \emph on
5699 埋込オブジェクト篇
5700 \emph default
5701 』は,他の変換子では書き出しができるのに,
5702 \begin_inset Flex Code
5703 status collapsed
5704
5705 \begin_layout Plain Layout
5706 htlatex
5707 \end_layout
5708
5709 \end_inset
5710
5711 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
5712 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
5713 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
5714 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
5715 \end_layout
5716
5717 \begin_layout Standard
5718 Alex Fernandezの
5719 \begin_inset Flex Code
5720 status collapsed
5721
5722 \begin_layout Plain Layout
5723 e\SpecialChar LyX
5724 er
5725 \end_layout
5726
5727 \end_inset
5728
5729  (
5730 \begin_inset CommandInset href
5731 LatexCommand href
5732 name "http://elyxer.nongnu.org/"
5733 target "http://elyxer.nongnu.org/"
5734
5735 \end_inset
5736
5737 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
5738 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
5739 \begin_inset Flex Code
5740 status collapsed
5741
5742 \begin_layout Plain Layout
5743 htlatex
5744 \end_layout
5745
5746 \end_inset
5747
5748 よりも質が落ちます.これはHTMLの限界を示しています
5749 \begin_inset Foot
5750 status collapsed
5751
5752 \begin_layout Plain Layout
5753 とはいえ,
5754 \begin_inset Flex Code
5755 status collapsed
5756
5757 \begin_layout Plain Layout
5758 e\SpecialChar LyX
5759 er
5760 \end_layout
5761
5762 \end_inset
5763
5764 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
5765 クセスが利用できる必要があります.
5766 \end_layout
5767
5768 \end_inset
5769
5770 .さらに重要なことは(少なくとも第1.1.1版においては),
5771 \begin_inset Flex Code
5772 status collapsed
5773
5774 \begin_layout Plain Layout
5775 e\SpecialChar LyX
5776 er
5777 \end_layout
5778
5779 \end_inset
5780
5781 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
5782 ユーザが生成する文書の多くにとっては,
5783 \begin_inset Flex Code
5784 status collapsed
5785
5786 \begin_layout Plain Layout
5787 e\SpecialChar LyX
5788 er
5789 \end_layout
5790
5791 \end_inset
5792
5793 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
5794 開発陣は別の方法を採ることとし,\SpecialChar LyX
5795 が\SpecialChar LaTeX
5796 やDocBook,平文を書き出す
5797 ことができるのと同様に,\SpecialChar LyX
5798 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
5799 \end_layout
5800
5801 \begin_layout Standard
5802 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
5803 \begin_inset Foot
5804 status collapsed
5805
5806 \begin_layout Plain Layout
5807 \SpecialChar LyX
5808 ソースツリーもしくは
5809 \begin_inset CommandInset href
5810 LatexCommand href
5811 name "オンラインでのアクセス"
5812 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
5813
5814 \end_inset
5815
5816 にある
5817 \begin_inset Flex Code
5818 status collapsed
5819
5820 \begin_layout Plain Layout
5821 development/HTML.notes
5822 \end_layout
5823
5824 \end_inset
5825
5826 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
5827 \begin_inset CommandInset href
5828 LatexCommand href
5829 name "バグ追跡ページ"
5830 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"
5831
5832 \end_inset
5833
5834 にあるXHTML関連バグ一覧も参照のこと.
5835 \end_layout
5836
5837 \end_inset
5838
5839 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
5840 \end_layout
5841
5842 \begin_layout Standard
5843 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
5844 の一部となっているため,\SpecialChar LyX
5845 が出力する文書について\SpecialChar LyX
5846 が関知しているところのものは,すべて知り得るというところから来ていま
5847
5848 \begin_inset Foot
5849 status collapsed
5850
5851 \begin_layout Plain Layout
5852 他には,これらのルーチンが\SpecialChar LyX
5853 内部にあるため,\SpecialChar LyX
5854 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
5855 \end_layout
5856
5857 \end_inset
5858
5859 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
5860 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
5861 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
5862  1」と出力されたり,「Kapitel 1」と出力されたりするのです.
5863 \end_layout
5864
5865 \begin_layout Standard
5866 汎く一般的に,出力ルーチンは,\SpecialChar LyX
5867 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
5868 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
5869 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
5870 \emph on
5871 自動的に
5872 \emph default
5873 生成します.もし節見出しが,\SpecialChar LyX
5874 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
5875 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
5876 自身の定義済み様
5877 式とを区別しません.どちらの場合も,\SpecialChar LyX
5878 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
5879 ユーザ設定差込枠でもそうです.
5880 \end_layout
5881
5882 \begin_layout Standard
5883 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
5884 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
5885 取扱説明書『
5886 \emph on
5887 カスタマイズ篇
5888 \emph default
5889 』の第5章をごらんください.
5890 \end_layout
5891
5892 \begin_layout Standard
5893 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
5894 \end_layout
5895
5896 \begin_layout Section
5897 XHTMLにおける数式出力
5898 \end_layout
5899
5900 \begin_layout Standard
5901 \SpecialChar LyX
5902 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
5903 \end_layout
5904
5905 \begin_layout Itemize
5906 MathML
5907 \begin_inset Newline newline
5908 \end_inset
5909
5910 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
5911 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
5912 す.
5913 \begin_inset Newline newline
5914 \end_inset
5915
5916 例えば,数式が
5917 \begin_inset Flex Code
5918 status collapsed
5919
5920 \begin_layout Plain Layout
5921 xymatrix
5922 \end_layout
5923
5924 \end_inset
5925
5926 パッケージを使用していたり,\SpecialChar TeX
5927 コードを使用しているなどで,もし\SpecialChar LyX
5928 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
5929 は数式を代わりに画像として出力します.
5930  
5931 \end_layout
5932
5933 \begin_layout Itemize
5934 HTML
5935 \begin_inset Newline newline
5936 \end_inset
5937
5938 前述のとおり,
5939 \begin_inset Flex Code
5940 status collapsed
5941
5942 \begin_layout Plain Layout
5943 elyxer
5944 \end_layout
5945
5946 \end_inset
5947
5948 は,数式をCSSで装飾したHTMLとして出力します
5949 \begin_inset Foot
5950 status collapsed
5951
5952 \begin_layout Plain Layout
5953 \SpecialChar LyX
5954 は,
5955 \begin_inset Flex Code
5956 status collapsed
5957
5958 \begin_layout Plain Layout
5959 elyxer
5960 \end_layout
5961
5962 \end_inset
5963
5964 からのHTML出力のために,CSSの一部を拝借しています.
5965 \end_layout
5966
5967 \end_inset
5968
5969 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
5970 \begin_inset Flex Code
5971 status collapsed
5972
5973 \begin_layout Plain Layout
5974 elyxer
5975 \end_layout
5976
5977 \end_inset
5978
5979 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
5980 \begin_inset Newline newline
5981 \end_inset
5982
5983 例えば,数式が
5984 \begin_inset Flex Code
5985 status collapsed
5986
5987 \begin_layout Plain Layout
5988 xymatrix
5989 \end_layout
5990
5991 \end_inset
5992
5993 パッケージを使用していたり,\SpecialChar TeX
5994 コードを使用しているなどで,もし\SpecialChar LyX
5995 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
5996 は数式を代わりに画像として出力します.
5997  
5998 \end_layout
5999
6000 \begin_layout Itemize
6001 画像
6002 \begin_inset Newline newline
6003 \end_inset
6004
6005
6006 \begin_inset Flex Code
6007 status collapsed
6008
6009 \begin_layout Plain Layout
6010 htlatex
6011 \end_layout
6012
6013 \end_inset
6014
6015 のように,\SpecialChar LyX
6016 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
6017 \begin_inset Foot
6018 status collapsed
6019
6020 \begin_layout Plain Layout
6021 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
6022 \emph on
6023 ありません
6024 \emph default
6025
6026 \end_layout
6027
6028 \end_inset
6029
6030 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
6031 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
6032 かったり,コピーが出来なかったりといったことがあります(執筆時点においては,数式の付番にも問題があります.
6033 \begin_inset CommandInset href
6034 LatexCommand href
6035 name "バグ 6894"
6036 target "http://www.lyx.org/trac/ticket/6894"
6037
6038 \end_inset
6039
6040 を参照のこと.).
6041 \begin_inset Newline newline
6042 \end_inset
6043
6044 画像の寸法は,
6045 \begin_inset Flex MenuItem
6046 status collapsed
6047
6048 \begin_layout Plain Layout
6049 文書\SpecialChar menuseparator
6050 設定\SpecialChar menuseparator
6051 出力
6052 \end_layout
6053
6054 \end_inset
6055
6056 の「数式画像の伸縮」パラメータを変更することで制御できます
6057 \begin_inset Foot
6058 status collapsed
6059
6060 \begin_layout Plain Layout
6061 必要な方のために述べておくと,これは,画像の解像度をdpi (1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
6062 \end_layout
6063
6064 \end_inset
6065
6066
6067 \begin_inset Newline newline
6068 \end_inset
6069
6070 もし\SpecialChar LyX
6071 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
6072 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
6073 を出力します.
6074 \end_layout
6075
6076 \begin_layout Itemize
6077 \SpecialChar LaTeX
6078
6079 \begin_inset Newline newline
6080 \end_inset
6081
6082 最後に,\SpecialChar LyX
6083 は,数式を\SpecialChar LaTeX
6084 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
6085 を描画するのにJavaScript
6086 を使用する,
6087 \begin_inset CommandInset href
6088 LatexCommand href
6089 name "jsMath"
6090 target "http://www.math.union.edu/~dpvc/jsMath/"
6091
6092 \end_inset
6093
6094 のようなツールとともに使用することもできます.\SpecialChar LyX
6095 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
6096 部分を,
6097 \begin_inset Flex Code
6098 status collapsed
6099
6100 \begin_layout Plain Layout
6101 span
6102 \end_layout
6103
6104 \end_inset
6105
6106 (行内数式用)または
6107 \begin_inset Flex Code
6108 status collapsed
6109
6110 \begin_layout Plain Layout
6111 div
6112 \end_layout
6113
6114 \end_inset
6115
6116 (別行立て数式用)に
6117 \begin_inset Flex Code
6118 status collapsed
6119
6120 \begin_layout Plain Layout
6121 class='math'
6122 \end_layout
6123
6124 \end_inset
6125
6126 を指定したもので,包んで出力します.
6127 \end_layout
6128
6129 \begin_layout Standard
6130 これらの出力方法のいずれかを
6131 \begin_inset Flex MenuItem
6132 status collapsed
6133
6134 \begin_layout Plain Layout
6135 文書\SpecialChar menuseparator
6136 設定\SpecialChar menuseparator
6137 出力
6138 \end_layout
6139
6140 \end_inset
6141
6142 で選択しなくてはなりません.既定では,\SpecialChar LyX
6143 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
6144 \end_layout
6145
6146 \begin_layout Standard
6147 最後に,\SpecialChar LyX
6148 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
6149 \begin_inset Foot
6150 status collapsed
6151
6152 \begin_layout Plain Layout
6153 その他にも,\SpecialChar LyX
6154 は,差込枠に\SpecialChar TeX
6155 コードが含まれていると画像出力に回帰するので,数式中に
6156 \begin_inset Formula $a=b\relax$
6157 \end_inset
6158
6159 のような無害な\SpecialChar TeX
6160 コードを挿入することによって,画像出力を強制することができます.
6161 \end_layout
6162
6163 \end_inset
6164
6165
6166 \end_layout
6167
6168 \begin_layout Section
6169 書誌情報と引用
6170 \end_layout
6171
6172 \begin_layout Standard
6173 XHTML出力は,書誌情報と引用を完全にサポートしています.
6174 \end_layout
6175
6176 \begin_layout Standard
6177 引用ラベルは,\SpecialChar LyX
6178 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
6179 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
6180 使用している場合には,\SpecialChar LyX
6181 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
6182 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
6183 は,Bib\SpecialChar TeX
6184 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
6185 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
6186 \end_layout
6187
6188 \begin_layout Standard
6189 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
6190 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
6191 ください.
6192 \end_layout
6193
6194 \begin_layout Standard
6195 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
6196 \end_layout
6197
6198 \begin_layout Quote
6199 Jason Stanley, 
6200 \begin_inset Quotes eld
6201 \end_inset
6202
6203 Context and Logical Form
6204 \begin_inset Quotes erd
6205 \end_inset
6206
6207 , in 
6208 \emph on
6209 Language in Context: Selected Essays
6210 \emph default
6211  (Oxford: Oxford University Press, 2007), pp.
6212  30–68.
6213 \end_layout
6214
6215 \begin_layout Quote
6216 Jason Stanley, 
6217 \begin_inset Quotes eld
6218 \end_inset
6219
6220 Semantics in Context
6221 \begin_inset Quotes erd
6222 \end_inset
6223
6224 , in 
6225 \emph on
6226 Language in Context: Selected Essays
6227 \emph default
6228  (Oxford: Oxford University Press, 2007), pp.
6229  201–30.
6230 \end_layout
6231
6232 \begin_layout Standard
6233 これは,遠くないうちに修正されるでしょう.
6234 \end_layout
6235
6236 \begin_layout Standard
6237 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
6238 は同じ情報を繰り返し出力してしまいます.
6239 \end_layout
6240
6241 \begin_layout Section
6242 索引
6243 \end_layout
6244
6245 \begin_layout Standard
6246 \SpecialChar LyX
6247 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
6248 \end_layout
6249
6250 \begin_layout Standard
6251 索引の書き出しは,
6252 \emph on
6253 ユーザーの手引き
6254 \emph default
6255 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
6256 \begin_inset Foot
6257 status collapsed
6258
6259 \begin_layout Plain Layout
6260 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
6261 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
6262 で入力しなくてはならないようなものをそのまま入力しているのです.
6263 \end_layout
6264
6265 \end_inset
6266
6267 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
6268 \end_layout
6269
6270 \begin_layout Itemize
6271 索引項目のグループ化(下層項目): \SpecialChar LyX
6272 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
6273 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
6274 \end_layout
6275
6276 \begin_layout Itemize
6277 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
6278 得られるだけです.
6279 \end_layout
6280
6281 \begin_layout Itemize
6282 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
6283 が「|see\SpecialChar ldots
6284 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
6285 す.
6286 \end_layout
6287
6288 \begin_layout Itemize
6289 索引項目の整序: \SpecialChar LyX
6290 は整序順の変更をサポートします.\SpecialChar LyX
6291 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
6292 出します.現在のところ,\SpecialChar LyX
6293 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
6294 \end_layout
6295
6296 \begin_layout Itemize
6297 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
6298 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
6299 うな文法はサポートされません.\SpecialChar LyX
6300 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
6301 \end_layout
6302
6303 \begin_layout Itemize
6304 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
6305 を印字しますので,その索引は必ず置くようにしてください.
6306 \end_layout
6307
6308 \begin_layout Section
6309 記号一覧および用語集
6310 \end_layout
6311
6312 \begin_layout Standard
6313 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
6314 \end_layout
6315
6316 \begin_layout Chapter
6317 \SpecialChar LyX
6318 サーバー
6319 \begin_inset CommandInset label
6320 LatexCommand label
6321 name "chap:LyXサーバー"
6322
6323 \end_inset
6324
6325
6326 \end_layout
6327
6328 \begin_layout Section
6329 はじめに
6330 \end_layout
6331
6332 \begin_layout Standard
6333 「\SpecialChar LyX
6334 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
6335 と通信したり,\SpecialChar LyX
6336 コマンドを実行させたり,\SpecialChar LyX
6337 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
6338 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
6339 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
6340 とが可能となります.
6341 \end_layout
6342
6343 \begin_layout Section
6344 \SpecialChar LyX
6345 サーバーを開始するには
6346 \end_layout
6347
6348 \begin_layout Standard
6349 \SpecialChar LyX
6350 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
6351 \begin_inset Flex Code
6352 status collapsed
6353
6354 \begin_layout Plain Layout
6355 UserDir
6356 \end_layout
6357
6358 \end_inset
6359
6360 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
6361 \emph on
6362 ローカルの
6363 \emph default
6364 パイプは
6365 \begin_inset Flex Code
6366 status collapsed
6367
6368 \begin_layout Plain Layout
6369
6370 \backslash
6371
6372 \backslash
6373 .
6374 \backslash
6375 pipe
6376 \end_layout
6377
6378 \end_inset
6379
6380 に特別なオブジェクトとして置かれます),「
6381 \begin_inset Flex Code
6382 status collapsed
6383
6384 \begin_layout Plain Layout
6385 .lyxpipe.in
6386 \end_layout
6387
6388 \end_inset
6389
6390 」および「
6391 \begin_inset Flex Code
6392 status collapsed
6393
6394 \begin_layout Plain Layout
6395 .lyxpipe.out
6396 \end_layout
6397
6398 \end_inset
6399
6400 」という名前がついています.外部プログラムは,
6401 \begin_inset Flex Code
6402 status collapsed
6403
6404 \begin_layout Plain Layout
6405 .lyxpipe.in
6406 \end_layout
6407
6408 \end_inset
6409
6410 に書き込みを行い,戻りデータを
6411 \begin_inset Flex Code
6412 status collapsed
6413
6414 \begin_layout Plain Layout
6415 .lyxpipe.out
6416 \end_layout
6417
6418 \end_inset
6419
6420 から読み出します.パイプ名の語幹は,
6421 \begin_inset Flex MenuItem
6422 status collapsed
6423
6424 \begin_layout Plain Layout
6425 ツール\SpecialChar menuseparator
6426 設定
6427 \end_layout
6428
6429 \end_inset
6430
6431 から,たとえば「
6432 \begin_inset Flex Code
6433 status collapsed
6434
6435 \begin_layout Plain Layout
6436 /home/myhome/lyxpipe
6437 \end_layout
6438
6439 \end_inset
6440
6441 」あるいはWindowsでは「
6442 \begin_inset Flex Code
6443 status collapsed
6444
6445 \begin_layout Plain Layout
6446
6447 \backslash
6448
6449 \backslash
6450 .
6451 \backslash
6452 pipe
6453 \backslash
6454 lyxpipe
6455 \end_layout
6456
6457 \end_inset
6458
6459 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
6460 \begin_inset Flex Code
6461 status collapsed
6462
6463 \begin_layout Plain Layout
6464 "
6465 \backslash
6466
6467 \backslash
6468 .
6469 \backslash
6470 pipe
6471 \backslash
6472 my
6473 \backslash
6474 lyx
6475 \backslash
6476 pipe"
6477 \end_layout
6478
6479 \end_inset
6480
6481 なども使用できます).サーバーを開始するためには,これを
6482 \emph on
6483 手動で設定しなくてはなりません
6484 \emph default
6485
6486 \end_layout
6487
6488 \begin_layout Standard
6489 \SpecialChar LyX
6490 は,パイプを生成するに際して,「
6491 \begin_inset Flex Code
6492 status collapsed
6493
6494 \begin_layout Plain Layout
6495 .in
6496 \end_layout
6497
6498 \end_inset
6499
6500 」および「
6501 \begin_inset Flex Code
6502 status collapsed
6503
6504 \begin_layout Plain Layout
6505 .out
6506 \end_layout
6507
6508 \end_inset
6509
6510 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
6511 は他の\SpecialChar LyX
6512 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
6513 らかの理由で,\SpecialChar LyX
6514 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
6515 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
6516 プを削除したのちに,\SpecialChar LyX
6517 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
6518 ることはありません.
6519 \end_layout
6520
6521 \begin_layout Standard
6522 サーバーを使用する\SpecialChar LyX
6523 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
6524 \begin_inset Flex Code
6525 status collapsed
6526
6527 \begin_layout Plain Layout
6528 preferences
6529 \end_layout
6530
6531 \end_inset
6532
6533 ファイルを使用させるなど,別々の設定を使用する必要があります.
6534 \end_layout
6535
6536 \begin_layout Standard
6537 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
6538 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
6539 \begin_inset Flex Code
6540 status collapsed
6541
6542 \begin_layout Plain Layout
6543 lyx -dbg lyxserver
6544 \end_layout
6545
6546 \end_inset
6547
6548 として起動してください.
6549 \end_layout
6550
6551 \begin_layout Standard
6552 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
6553 \begin_inset Newline newline
6554 \end_inset
6555
6556
6557 \begin_inset Flex Code
6558 status collapsed
6559
6560 \begin_layout Plain Layout
6561 development/lyxserver/server_monitor.cpp
6562 \end_layout
6563
6564 \end_inset
6565
6566 にあります.
6567 \end_layout
6568
6569 \begin_layout Standard
6570 もう一つの便利なツールとして,
6571 \begin_inset Flex Code
6572 status collapsed
6573
6574 \begin_layout Plain Layout
6575 src/client/lyxclient
6576 \end_layout
6577
6578 \end_inset
6579
6580 にあるコマンドラインベースのクライアントがあります.
6581 \end_layout
6582
6583 \begin_layout Section
6584 通常の通信
6585 \end_layout
6586
6587 \begin_layout Standard
6588 \SpecialChar LyX
6589 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
6590 \end_layout
6591
6592 \begin_layout Quote
6593 LYXCMD:
6594 \emph on
6595 クライアント名
6596 \emph default
6597 :
6598 \emph on
6599 関数
6600 \emph default
6601 :
6602 \emph on
6603 引数
6604 \end_layout
6605
6606 \begin_layout Description
6607 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
6608 が返答をす
6609 る際,クライアント名をエコーするときだけです.
6610 \end_layout
6611
6612 \begin_layout Description
6613 関数 は,\SpecialChar LyX
6614 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
6615 \end_layout
6616
6617 \begin_layout Description
6618 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
6619 \end_layout
6620
6621 \begin_layout Standard
6622 \SpecialChar LyX
6623 からの返答は,出力パイプに送り出され,
6624 \end_layout
6625
6626 \begin_layout Quote
6627 INFO:
6628 \emph on
6629 クライアント名
6630 \emph default
6631 :
6632 \emph on
6633 関数
6634 \emph default
6635 :
6636 \emph on
6637 データ
6638 \end_layout
6639
6640 \begin_layout Standard
6641 の書式をしています.ここで
6642 \emph on
6643 クライアント名
6644 \emph default
6645
6646 \emph on
6647 関数
6648 \emph default
6649 は,コマンド要求からそのままエコーされますが,
6650 \emph on
6651 データ
6652 \emph default
6653 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
6654 の内部状態に関する情報を返しますが,空のデータ応答
6655 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
6656 \end_layout
6657
6658 \begin_layout Standard
6659 エラーが発生した場合の\SpecialChar LyX
6660 の返答は
6661 \end_layout
6662
6663 \begin_layout Quote
6664 ERROR:
6665 \emph on
6666 クライアント名
6667 \emph default
6668 :
6669 \emph on
6670 関数
6671 \emph default
6672 :
6673 \emph on
6674 エラーメッセージ
6675 \end_layout
6676
6677 \begin_layout Standard
6678 の書式をしており,
6679 \emph on
6680 エラーメッセージ
6681 \emph default
6682 には,なぜコマンドが失敗したかの説明が入っているはずです.
6683 \end_layout
6684
6685 \begin_layout Standard
6686 (例)
6687 \end_layout
6688
6689 \begin_layout LyX-Code
6690 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6691 \begin_inset Newline newline
6692 \end_inset
6693
6694 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6695 \begin_inset Newline newline
6696 \end_inset
6697
6698 read a <~/.lyxpipe.out
6699 \begin_inset Newline newline
6700 \end_inset
6701
6702 echo $a
6703 \end_layout
6704
6705 \begin_layout Section
6706 通知
6707 \end_layout
6708
6709 \begin_layout Standard
6710 \SpecialChar LyX
6711 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
6712 \begin_inset Flex Ruby
6713 status collapsed
6714
6715 \begin_layout Plain Layout
6716
6717 \begin_inset Argument post:1
6718 status collapsed
6719
6720 \begin_layout Plain Layout
6721 キー
6722 \end_layout
6723
6724 \end_inset
6725
6726
6727 \end_layout
6728
6729 \end_inset
6730
6731 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
6732 はこの通知を行います.\SpecialChar LyX
6733 が送る文字列の書式は
6734 \end_layout
6735
6736 \begin_layout Quote
6737 \begin_inset Flex Code
6738 status collapsed
6739
6740 \begin_layout Plain Layout
6741 NOTIFY:
6742 \end_layout
6743
6744 \end_inset
6745
6746
6747 \emph on
6748 鍵列
6749 \end_layout
6750
6751 \begin_layout Standard
6752 となっていて,
6753 \emph on
6754 鍵列
6755 \emph default
6756 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
6757 \end_layout
6758
6759 \begin_layout Standard
6760 この機構は,\SpecialChar LyX
6761 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
6762 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
6763 コマンドを発行する\SpecialChar LyX
6764 要求と\SpecialChar LyX
6765 コールを使用する関数を開始するのです.
6766 \end_layout
6767
6768 \begin_layout Section
6769 単純な\SpecialChar LyX
6770 サーバープロトコル
6771 \end_layout
6772
6773 \begin_layout Standard
6774 \SpecialChar LyX
6775 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
6776 \end_layout
6777
6778 \begin_layout Quote
6779 LYXSRV:
6780 \emph on
6781 クライアント名
6782 \emph default
6783 :
6784 \emph on
6785 プロトコルメッセージ
6786 \end_layout
6787
6788 \begin_layout Standard
6789 の書式をしており,
6790 \emph on
6791 プロトコルメッセージ
6792 \emph default
6793 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
6794 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
6795 が終了するこ
6796 とをクライアントに伝えるのには,\SpecialChar LyX
6797 が「bye」を送信します.
6798 \end_layout
6799
6800 \begin_layout Section
6801 DVIとPDFの遡及検索
6802 \end_layout
6803
6804 \begin_layout Standard
6805 DVI/PDFビューア
6806 \begin_inset Foot
6807 status collapsed
6808
6809 \begin_layout Plain Layout
6810 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
6811 \lang english
6812 Qpdfview on Unix
6813 \lang japanese
6814 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
6815 \end_layout
6816
6817 \end_inset
6818
6819 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
6820 特定の場所をクリックすることによって,\SpecialChar LyX
6821 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
6822 と情報交換を行う必要があります
6823 .これは,命名パイプ(
6824 \emph on
6825 lyxpipe
6826 \emph default
6827 )を使用するか,\SpecialChar LyX
6828 が作業ディレクトリに生成するUNIXドメインソケット(
6829 \emph on
6830 lyxsocket
6831 \emph default
6832 )を使用する(これは
6833 \begin_inset Flex Code
6834 status collapsed
6835
6836 \begin_layout Plain Layout
6837 lyxclient
6838 \end_layout
6839
6840 \end_inset
6841
6842 プログラムが\SpecialChar LyX
6843 と通信するのに使用している方法です)ことで,\SpecialChar LyX
6844 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
6845 を橋渡しする補助スクリプトを必要とする
6846 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
6847 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
6848 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
6849 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
6850 \end_layout
6851
6852 \begin_layout Subsection
6853 \begin_inset CommandInset label
6854 LatexCommand label
6855 name "subsec:遡及検索"
6856
6857 \end_inset
6858
6859 自動有効化
6860 \end_layout
6861
6862 \begin_layout Standard
6863 \begin_inset Flex MenuItem
6864 status collapsed
6865
6866 \begin_layout Plain Layout
6867 文書\SpecialChar menuseparator
6868 設定\SpecialChar menuseparator
6869 出力
6870 \end_layout
6871
6872 \end_inset
6873
6874 メニューで
6875 \begin_inset Flex MenuItem
6876 status collapsed
6877
6878 \begin_layout Plain Layout
6879 出力と同期
6880 \end_layout
6881
6882 \end_inset
6883
6884 オプションを有効にすれば,ほとんどの場合,\SpecialChar LyX
6885 がすべてをうまくこなしてくれます.その場合,\SpecialChar LyX
6886 は,自動的に,必要なSync\SpecialChar TeX
6887 マクロ(PDFの場合)や,srcltxパッケー
6888 ジ(DVIの場合)を挿入してくれます.このオプションは,
6889 \begin_inset Flex MenuItem
6890 status collapsed
6891
6892 \begin_layout Plain Layout
6893 表示/更新
6894 \end_layout
6895
6896 \end_inset
6897
6898 ツールバーからも容易にアクセスすることができます.
6899 \end_layout
6900
6901 \begin_layout Standard
6902 もし,これとは別の設定が必要な場合には,
6903 \begin_inset Flex MenuItem
6904 status collapsed
6905
6906 \begin_layout Plain Layout
6907 文書\SpecialChar menuseparator
6908 設定\SpecialChar menuseparator
6909 出力\SpecialChar menuseparator
6910 出力と同期
6911 \end_layout
6912
6913 \end_inset
6914
6915 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
6916 \end_layout
6917
6918 \begin_layout Standard
6919 方式として
6920 \begin_inset Flex Code
6921 status collapsed
6922
6923 \begin_layout Plain Layout
6924
6925 \backslash
6926 synctex=1
6927 \end_layout
6928
6929 \end_inset
6930
6931 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
6932 \begin_inset Flex Code
6933 status collapsed
6934
6935 \begin_layout Plain Layout
6936
6937 \backslash
6938 synctex=-1
6939 \end_layout
6940
6941 \end_inset
6942
6943 を指定してください.
6944 \end_layout
6945
6946 \begin_layout Standard
6947 また,
6948 \begin_inset Flex Code
6949 status collapsed
6950
6951 \begin_layout Plain Layout
6952 srcltx
6953 \end_layout
6954
6955 \end_inset
6956
6957 パッケージや
6958 \begin_inset Flex Code
6959 status collapsed
6960
6961 \begin_layout Plain Layout
6962 src-specials
6963 \end_layout
6964
6965 \end_inset
6966
6967 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
6968 \begin_inset Flex Code
6969 status collapsed
6970
6971 \begin_layout Plain Layout
6972 srcltx
6973 \end_layout
6974
6975 \end_inset
6976
6977 パッケージや
6978 \begin_inset Flex Code
6979 status collapsed
6980
6981 \begin_layout Plain Layout
6982 src-specials
6983 \end_layout
6984
6985 \end_inset
6986
6987 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
6988 \end_layout
6989
6990 \begin_layout Standard
6991 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
6992 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
6993 \begin_inset CommandInset ref
6994 LatexCommand ref
6995 reference "subsec:特定のビューアを設定して使うには"
6996
6997 \end_inset
6998
6999 節に進むことができます.
7000 \end_layout
7001
7002 \begin_layout Subsection
7003 手動有効化
7004 \end_layout
7005
7006 \begin_layout Standard
7007 \SpecialChar LaTeX
7008 は,遡及検索のために複数の方法を提供しています.ある方法は
7009 \begin_inset Flex Code
7010 status collapsed
7011
7012 \begin_layout Plain Layout
7013 latex/pdflatex
7014 \end_layout
7015
7016 \end_inset
7017
7018 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
7019 頒布版が既に特定の方法を提供しているか(組み込みによ
7020 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
7021 \end_layout
7022
7023 \begin_layout Subsubsection*
7024 src-special経由のDVI組み込み検索(DVIのみ)
7025 \end_layout
7026
7027 \begin_layout Standard
7028 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
7029 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7030 頒布版はすべて対応しています),安定
7031 して動作します.これを有効にするには,
7032 \begin_inset Flex MenuItem
7033 status collapsed
7034
7035 \begin_layout Plain Layout
7036 設定\SpecialChar menuseparator
7037 ファイル処理\SpecialChar menuseparator
7038 変換子
7039 \end_layout
7040
7041 \end_inset
7042
7043
7044 \begin_inset Flex MenuItem
7045 status collapsed
7046
7047 \begin_layout Plain Layout
7048 LaTeX (plain)->DVI
7049 \end_layout
7050
7051 \end_inset
7052
7053 ないし
7054 \begin_inset Flex MenuItem
7055 status collapsed
7056
7057 \begin_layout Plain Layout
7058 LaTeX (plain)->DraftDVI
7059 \end_layout
7060
7061 \end_inset
7062
7063 変換子を
7064 \begin_inset Flex Code
7065 status collapsed
7066
7067 \begin_layout Plain Layout
7068 latex -src-specials $$i
7069 \end_layout
7070
7071 \end_inset
7072
7073 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
7074 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
7075 \end_layout
7076
7077 \begin_layout Subsubsection*
7078 外部パッケージ(PDFSyncおよびsrcltx)
7079 \end_layout
7080
7081 \begin_layout Standard
7082
7083 \emph on
7084 pdfsync
7085 \emph default
7086 および
7087 \emph on
7088 srcltx
7089 \emph default
7090 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
7091 プリアンブルで以下のようにパッケージを読み込んで
7092 ください.
7093 \end_layout
7094
7095 \begin_layout Itemize
7096 PDFの遡及検索には
7097 \begin_inset Flex Code
7098 status collapsed
7099
7100 \begin_layout Plain Layout
7101
7102 \backslash
7103 usepackage{pdfsync}
7104 \end_layout
7105
7106 \end_inset
7107
7108
7109 \end_layout
7110
7111 \begin_layout Itemize
7112 DVIの遡及検索には
7113 \begin_inset Flex Code
7114 status collapsed
7115
7116 \begin_layout Plain Layout
7117
7118 \backslash
7119 usepackage[active]{srcltx}
7120 \end_layout
7121
7122 \end_inset
7123
7124
7125 \end_layout
7126
7127 \begin_layout Standard
7128 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
7129 \end_layout
7130
7131 \begin_layout LyX-Code
7132
7133 \backslash
7134 usepackage{ifpdf}
7135 \begin_inset Newline newline
7136 \end_inset
7137
7138
7139 \backslash
7140 ifpdf
7141 \begin_inset Newline newline
7142 \end_inset
7143
7144   
7145 \backslash
7146 usepackage{pdfsync}
7147 \begin_inset Newline newline
7148 \end_inset
7149
7150
7151 \backslash
7152 else
7153 \begin_inset Newline newline
7154 \end_inset
7155
7156   
7157 \backslash
7158 usepackage[active]{srcltx}
7159 \begin_inset Newline newline
7160 \end_inset
7161
7162
7163 \backslash
7164 fi
7165 \end_layout
7166
7167 \begin_layout Standard
7168 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
7169 \end_layout
7170
7171 \begin_layout Standard
7172 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
7173
7174 \end_layout
7175
7176 \begin_layout Subsubsection*
7177 Sync\SpecialChar TeX
7178 を使った組み込み遡及検索(DVIおよびPDF)
7179 \end_layout
7180
7181 \begin_layout Standard
7182 \begin_inset Flex Code
7183 status collapsed
7184
7185 \begin_layout Plain Layout
7186 (pdf)latex
7187 \end_layout
7188
7189 \end_inset
7190
7191 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
7192 \emph on
7193 Sync\SpecialChar TeX
7194
7195 \emph default
7196 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
7197 るためには,少なくとも\SpecialChar TeX
7198 Live 2008か最近のMik\SpecialChar TeX
7199 頒布版が必要です.また,既にSync\SpecialChar TeX
7200 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
7201 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDF).
7202 \end_layout
7203
7204 \begin_layout Standard
7205 DVI出力でSync\SpecialChar TeX
7206 を有効にするには,
7207 \begin_inset Flex MenuItem
7208 status collapsed
7209
7210 \begin_layout Plain Layout
7211 設定\SpecialChar menuseparator
7212 ファイル処理\SpecialChar menuseparator
7213 変換子
7214 \end_layout
7215
7216 \end_inset
7217
7218
7219 \begin_inset Flex MenuItem
7220 status collapsed
7221
7222 \begin_layout Plain Layout
7223 LaTeX (plain)->DVI
7224 \end_layout
7225
7226 \end_inset
7227
7228 ないし
7229 \begin_inset Flex MenuItem
7230 status collapsed
7231
7232 \begin_layout Plain Layout
7233 LaTeX (plain)->DraftDVI
7234 \end_layout
7235
7236 \end_inset
7237
7238 変換子を
7239 \begin_inset Flex Code
7240 status collapsed
7241
7242 \begin_layout Plain Layout
7243 latex -synctex=1 $$i
7244 \end_layout
7245
7246 \end_inset
7247
7248 に変更します.PDF出力用には,
7249 \begin_inset Flex MenuItem
7250 status collapsed
7251
7252 \begin_layout Plain Layout
7253 LaTeX (pdflatex)->PDF (pdflatex)
7254 \end_layout
7255
7256 \end_inset
7257
7258 変換子を
7259 \begin_inset Flex Code
7260 status collapsed
7261
7262 \begin_layout Plain Layout
7263 pdflatex -synctex=1 $$i
7264 \end_layout
7265
7266 \end_inset
7267
7268 に変更してください.また,ビューアをSync\SpecialChar TeX
7269 で使うのに設定を行う必要があるかどうか,お使いのビューアの取扱説明書をご確認ください.
7270 \begin_inset Foot
7271 status collapsed
7272
7273 \begin_layout Plain Layout
7274 \begin_inset Flex Code
7275 status collapsed
7276
7277 \begin_layout Plain Layout
7278 -synctex=1
7279 \end_layout
7280
7281 \end_inset
7282
7283 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
7284 \begin_inset Flex Code
7285 status collapsed
7286
7287 \begin_layout Plain Layout
7288 -synctex=-1
7289 \end_layout
7290
7291 \end_inset
7292
7293 を使用してください.
7294 \end_layout
7295
7296 \end_inset
7297
7298
7299 \end_layout
7300
7301 \begin_layout Subsection
7302 特定のビューアを設定して使うには
7303 \begin_inset CommandInset label
7304 LatexCommand label
7305 name "subsec:特定のビューアを設定して使うには"
7306
7307 \end_inset
7308
7309
7310 \end_layout
7311
7312 \begin_layout Subsubsection*
7313 Xdvi(全プラットフォーム)
7314 \end_layout
7315
7316 \begin_layout Standard
7317 \SpecialChar LyX
7318 は,
7319 \begin_inset Flex Code
7320 status collapsed
7321
7322 \begin_layout Plain Layout
7323 lyxclient
7324 \end_layout
7325
7326 \end_inset
7327
7328 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
7329 \begin_inset Flex Code
7330 status collapsed
7331
7332 \begin_layout Plain Layout
7333 xdvi
7334 \end_layout
7335
7336 \end_inset
7337
7338 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
7339 ,Mac OS X上ではAlt-クリックで始動します).
7340 \end_layout
7341
7342 \begin_layout Standard
7343 しかし,何らかの理由で,\SpecialChar LyX
7344 と通信するのにソケットではなく命名パイプを使用したい場合には,
7345 \begin_inset Flex MenuItem
7346 status collapsed
7347
7348 \begin_layout Plain Layout
7349 設定\SpecialChar menuseparator
7350 ファイル処理\SpecialChar menuseparator
7351 ファイル書式
7352 \end_layout
7353
7354 \end_inset
7355
7356 のDVIビューアを
7357 \begin_inset Flex Code
7358 status collapsed
7359
7360 \begin_layout Plain Layout
7361 xdvi -editor "lyxeditor.sh %f %l"
7362 \end_layout
7363
7364 \end_inset
7365
7366 (
7367 \begin_inset Flex Code
7368 status collapsed
7369
7370 \begin_layout Plain Layout
7371 lyxeditor.sh
7372 \end_layout
7373
7374 \end_inset
7375
7376 は適切なスクリプト名)に変更してください
7377 \begin_inset Foot
7378 status collapsed
7379
7380 \begin_layout Plain Layout
7381 Mac OS X上では,
7382 \begin_inset Flex Code
7383 status collapsed
7384
7385 \begin_layout Plain Layout
7386 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7387 \end_layout
7388
7389 \end_inset
7390
7391 としなくてはなりません.
7392 \end_layout
7393
7394 \end_inset
7395
7396 .たとえば,最低限のシェルスクリプトは
7397 \end_layout
7398
7399 \begin_layout LyX-Code
7400 #!/bin/sh
7401 \begin_inset Newline newline
7402 \end_inset
7403
7404 LYXPIPE="/path/to/lyxpipe"
7405 \begin_inset Newline newline
7406 \end_inset
7407
7408 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7409 \begin_inset Newline newline
7410 \end_inset
7411
7412 echo "$COMMAND" > "${LYXPIPE}".in || exit
7413 \begin_inset Newline newline
7414 \end_inset
7415
7416 read TMP < "${LYXPIPE}".out || exit
7417 \end_layout
7418
7419 \begin_layout Standard
7420 のようになります.ここで
7421 \begin_inset Flex Code
7422 status collapsed
7423
7424 \begin_layout Plain Layout
7425 /path/to/lyxpipe
7426 \end_layout
7427
7428 \end_inset
7429
7430 は,
7431 \begin_inset Flex MenuItem
7432 status collapsed
7433
7434 \begin_layout Plain Layout
7435 設定\SpecialChar menuseparator
7436 パス
7437 \end_layout
7438
7439 \end_inset
7440
7441 で指定したLyXServerパイプのパスを指定してください.
7442 \begin_inset Foot
7443 status collapsed
7444
7445 \begin_layout Plain Layout
7446 ソース頒布版の
7447 \begin_inset Flex Code
7448 status collapsed
7449
7450 \begin_layout Plain Layout
7451 development/tools
7452 \end_layout
7453
7454 \end_inset
7455
7456 フォルダには,ユーザが設定した
7457 \emph on
7458 lyxpipe
7459 \emph default
7460 を探し出す
7461 \begin_inset Flex Code
7462 status collapsed
7463
7464 \begin_layout Plain Layout
7465 lyxeditor
7466 \end_layout
7467
7468 \end_inset
7469
7470 スクリプトがあります.
7471 \end_layout
7472
7473 \end_inset
7474
7475
7476 \end_layout
7477
7478 \begin_layout Subsubsection*
7479 MacDviX(Mac OS X)
7480 \end_layout
7481
7482 \begin_layout Standard
7483 \begin_inset Flex Code
7484 status collapsed
7485
7486 \begin_layout Plain Layout
7487 /Applications/MacDviX_Folder/calleditor.script
7488 \end_layout
7489
7490 \end_inset
7491
7492 の終わりに
7493 \end_layout
7494
7495 \begin_layout LyX-Code
7496 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7497 \begin_inset Newline newline
7498 \end_inset
7499
7500 exit 1
7501 \end_layout
7502
7503 \begin_layout Standard
7504 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
7505 を導入した場合には,それに従って上記の行を修正してください.
7506 \end_layout
7507
7508 \begin_layout Standard
7509 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
7510 \end_layout
7511
7512 \begin_layout Subsubsection*
7513 Skim(Mac OS X)
7514 \end_layout
7515
7516 \begin_layout Standard
7517 \begin_inset Flex MenuItem
7518 status collapsed
7519
7520 \begin_layout Plain Layout
7521 設定\SpecialChar menuseparator
7522 ファイル処理\SpecialChar menuseparator
7523 ファイル書式\SpecialChar menuseparator
7524 PDF (pdflatex)
7525 \end_layout
7526
7527 \end_inset
7528
7529 のビューア設定に
7530 \begin_inset Flex Code
7531 status collapsed
7532
7533 \begin_layout Plain Layout
7534 open -a Skim.app $$i
7535 \end_layout
7536
7537 \end_inset
7538
7539 と入力し,
7540 \begin_inset Flex MenuItem
7541 status collapsed
7542
7543 \begin_layout Plain Layout
7544 Skim\SpecialChar menuseparator
7545 設定\SpecialChar menuseparator
7546 Sync
7547 \end_layout
7548
7549 \end_inset
7550
7551 でLyXを選択してください.
7552 \end_layout
7553
7554 \begin_layout Standard
7555 遡及検索は,COMMAND-SHIFT-クリックで始動します.
7556 \end_layout
7557
7558 \begin_layout Subsubsection*
7559 Okular (KDE)
7560 \end_layout
7561
7562 \begin_layout Standard
7563 \begin_inset Flex MenuItem
7564 status collapsed
7565
7566 \begin_layout Plain Layout
7567 設定\SpecialChar menuseparator
7568 Okularを設定\SpecialChar ldots
7569 \SpecialChar menuseparator
7570 編集
7571 \end_layout
7572
7573 \end_inset
7574
7575 で「カスタムテキストエディタ」を選択し,コマンドに
7576 \begin_inset Flex Code
7577 status collapsed
7578
7579 \begin_layout Plain Layout
7580 lyxclient -g %f %l
7581 \end_layout
7582
7583 \end_inset
7584
7585 を加えてください.
7586 \end_layout
7587
7588 \begin_layout Standard
7589 遡及検索は,SHIFT-クリックで始動します.
7590 \end_layout
7591
7592 \begin_layout Subsubsection*
7593 Qpdfview (UNIX)
7594 \end_layout
7595
7596 \begin_layout Standard
7597 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
7598 をサポートしています.
7599 \begin_inset Flex MenuItem
7600 status collapsed
7601
7602 \begin_layout Plain Layout
7603 Edit\SpecialChar menuseparator
7604 Settings\SpecialChar menuseparator
7605 Behavior
7606 \end_layout
7607
7608 \end_inset
7609
7610 を開いて「Source editor」項目の入力フィールドをクリックし,
7611 \begin_inset Flex Code
7612 status collapsed
7613
7614 \begin_layout Plain Layout
7615 lyxclient -g %1 %2
7616 \end_layout
7617
7618 \end_inset
7619
7620 というコマンドを入力してください.
7621 \end_layout
7622
7623 \begin_layout Standard
7624 遡及検索は,ダブルクリックで始動します.
7625 \end_layout
7626
7627 \begin_layout Subsubsection*
7628 YAP(Windows)
7629 \end_layout
7630
7631 \begin_layout Standard
7632 yapを起動し,
7633 \begin_inset Flex MenuItem
7634 status collapsed
7635
7636 \begin_layout Plain Layout
7637 View\SpecialChar menuseparator
7638 Options
7639 \end_layout
7640
7641 \end_inset
7642
7643 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
7644 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7645
7646  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
7647 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
7648 \begin_inset Flex Code
7649 status collapsed
7650
7651 \begin_layout Plain Layout
7652 lyxeditor.bat
7653 \end_layout
7654
7655 \end_inset
7656
7657 (以下参照)のあるディレクトリを見つけます.
7658 \begin_inset Flex Code
7659 status collapsed
7660
7661 \begin_layout Plain Layout
7662 lyxeditor.bat
7663 \end_layout
7664
7665 \end_inset
7666
7667 を選択してプログラムの引数を
7668 \begin_inset Flex Code
7669 status collapsed
7670
7671 \begin_layout Plain Layout
7672 %f %l
7673 \end_layout
7674
7675 \end_inset
7676
7677 と指定してください.
7678 \begin_inset Flex Code
7679 status collapsed
7680
7681 \begin_layout Plain Layout
7682 lyxeditor.bat
7683 \end_layout
7684
7685 \end_inset
7686
7687 は,
7688 \emph on
7689 lyxpipe
7690 \emph default
7691 を通じて\SpecialChar LyX
7692 と通信するためのラッパとして使用され,以下のようになっています.
7693 \end_layout
7694
7695 \begin_layout LyX-Code
7696 @echo off
7697 \begin_inset Newline newline
7698 \end_inset
7699
7700 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7701 \backslash
7702
7703 \backslash
7704 .
7705 \backslash
7706 pipe
7707 \backslash
7708 lyxpipe.in
7709 \begin_inset Newline newline
7710 \end_inset
7711
7712 type 
7713 \backslash
7714
7715 \backslash
7716 .
7717 \backslash
7718 pipe
7719 \backslash
7720 lyxpipe.out
7721 \end_layout
7722
7723 \begin_layout Standard
7724 \SpecialChar LyX
7725 で指定した\SpecialChar LyX
7726 Serverパイプパスが,
7727 \begin_inset Flex Code
7728 status collapsed
7729
7730 \begin_layout Plain Layout
7731
7732 \backslash
7733
7734 \backslash
7735 .
7736 \backslash
7737 pipe
7738 \backslash
7739 lyxpipe
7740 \end_layout
7741
7742 \end_inset
7743
7744 となっていることを確認するか,
7745 \begin_inset Flex Code
7746 status collapsed
7747
7748 \begin_layout Plain Layout
7749 lyxeditor.bat
7750 \end_layout
7751
7752 \end_inset
7753
7754 ラッパの方を適切に修正してください.
7755 \end_layout
7756
7757 \begin_layout Standard
7758 yapでは,遡及検索はダブルクリックで始動します.
7759 \end_layout
7760
7761 \begin_layout Subsubsection*
7762 SumatraPDF(Windows)
7763 \end_layout
7764
7765 \begin_layout Standard
7766 SumatraPDFを遡及検索で使用するためには,
7767 \begin_inset Flex MenuItem
7768 status collapsed
7769
7770 \begin_layout Plain Layout
7771 設定\SpecialChar menuseparator
7772 ファイル処理\SpecialChar menuseparator
7773 ファイル書式\SpecialChar menuseparator
7774 PDF (pdflatex)
7775 \end_layout
7776
7777 \end_inset
7778
7779 のビューア設定で
7780 \begin_inset Flex Code
7781 status collapsed
7782
7783 \begin_layout Plain Layout
7784 SumatraPDF -inverse-search 
7785 \begin_inset Quotes eld
7786 \end_inset
7787
7788 lyxeditor.bat %f %l
7789 \begin_inset Quotes erd
7790 \end_inset
7791
7792
7793 \end_layout
7794
7795 \end_inset
7796
7797 (
7798 \begin_inset Flex Code
7799 status collapsed
7800
7801 \begin_layout Plain Layout
7802 lyxeditor.bat
7803 \end_layout
7804
7805 \end_inset
7806
7807 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
7808 \end_layout
7809
7810 \begin_layout Standard
7811 遡及検索はダブルクリックで始動します.
7812 \end_layout
7813
7814 \begin_layout Subsubsection*
7815 YAP(Cygwin)
7816 \end_layout
7817
7818 \begin_layout Standard
7819 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
7820 \begin_inset Flex MenuItem
7821 status collapsed
7822
7823 \begin_layout Plain Layout
7824 View\SpecialChar menuseparator
7825 Options
7826 \end_layout
7827
7828 \end_inset
7829
7830 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
7831 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7832
7833  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
7834 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
7835 \begin_inset Flex Code
7836 status collapsed
7837
7838 \begin_layout Plain Layout
7839 lyxeditor.exe
7840 \end_layout
7841
7842 \end_inset
7843
7844 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
7845 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
7846 \begin_inset Flex Code
7847 status collapsed
7848
7849 \begin_layout Plain Layout
7850 lyxeditor.exe
7851 \end_layout
7852
7853 \end_inset
7854
7855 を選択してプログラムの引数を
7856 \begin_inset Flex Code
7857 status collapsed
7858
7859 \begin_layout Plain Layout
7860 -g %f %l
7861 \end_layout
7862
7863 \end_inset
7864
7865 と指定してください.これによって,\SpecialChar LyX
7866 との通信に
7867 \emph on
7868 lyxsocket
7869 \emph default
7870 が使用されるようになります.何らかの理由で
7871 \emph on
7872 lyxpipe
7873 \emph default
7874 を使用したい場合には,
7875 \begin_inset Flex Code
7876 status collapsed
7877
7878 \begin_layout Plain Layout
7879 -g
7880 \end_layout
7881
7882 \end_inset
7883
7884 オプションを削除して,\SpecialChar LyX
7885 設定で\SpecialChar LyX
7886 Serverパイプパスを指定することを忘れないでください.
7887 \end_layout
7888
7889 \begin_layout Standard
7890 yapでは,遡及検索はダブルクリックで始動します.
7891 \end_layout
7892
7893 \begin_layout Subsubsection*
7894 SumatraPDF(Cygwin)
7895 \end_layout
7896
7897 \begin_layout Standard
7898 SumatraPDFを遡及検索で使用するためには,
7899 \begin_inset Flex MenuItem
7900 status collapsed
7901
7902 \begin_layout Plain Layout
7903 設定\SpecialChar menuseparator
7904 ファイル処理\SpecialChar menuseparator
7905 ファイル書式\SpecialChar menuseparator
7906 PDF (pdflatex)
7907 \end_layout
7908
7909 \end_inset
7910
7911 のビューア設定で
7912 \begin_inset Flex Code
7913 status collapsed
7914
7915 \begin_layout Plain Layout
7916 SumatraPDF.sh
7917 \end_layout
7918
7919 \end_inset
7920
7921 と入力してください.ここで
7922 \begin_inset Flex Code
7923 status collapsed
7924
7925 \begin_layout Plain Layout
7926 SumatraPDF.sh
7927 \end_layout
7928
7929 \end_inset
7930
7931 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
7932 \begin_inset Flex Code
7933 status collapsed
7934
7935 \begin_layout Plain Layout
7936 /usr/local/bin
7937 \end_layout
7938
7939 \end_inset
7940
7941 がもっとも良い選択肢でしょう).
7942 \end_layout
7943
7944 \begin_layout LyX-Code
7945 #!/bin/bash
7946 \begin_inset Newline newline
7947 \end_inset
7948
7949 cd $(dirname $1)
7950 \begin_inset Newline newline
7951 \end_inset
7952
7953 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
7954 \end_layout
7955
7956 \begin_layout Standard
7957 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
7958 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
7959 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
7960 \begin_inset Flex Code
7961 status collapsed
7962
7963 \begin_layout Plain Layout
7964 -g
7965 \end_layout
7966
7967 \end_inset
7968
7969
7970 \emph on
7971 lyxsocket
7972 \emph default
7973 経由の通信を有効にします.ここでも,
7974 \emph on
7975 lyxpipe
7976 \emph default
7977 を使用したい場合には,
7978 \begin_inset Flex Code
7979 status collapsed
7980
7981 \begin_layout Plain Layout
7982 -g
7983 \end_layout
7984
7985 \end_inset
7986
7987 オプションを削除して,\SpecialChar LyX
7988 設定で\SpecialChar LyX
7989 Serverパイプパスを指定することを忘れないでください.
7990 \end_layout
7991
7992 \begin_layout Standard
7993 遡及検索はダブルクリックで始動します.
7994 \end_layout
7995
7996 \begin_layout Section
7997 順検索
7998 \end_layout
7999
8000 \begin_layout Standard
8001 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
8002 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
8003 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
8004 文書の好きなところに置いて,
8005 \begin_inset Flex MenuItem
8006 status collapsed
8007
8008 \begin_layout Plain Layout
8009 移動\SpecialChar menuseparator
8010 順検索
8011 \end_layout
8012
8013 \end_inset
8014
8015 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8016 \begin_inset Flex MenuItem
8017 status collapsed
8018
8019 \begin_layout Plain Layout
8020 順検索
8021 \end_layout
8022
8023 \end_inset
8024
8025 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
8026 \end_layout
8027
8028 \begin_layout Standard
8029 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
8030 ソースに関する情報を追加する必要があります.これは,第
8031 \begin_inset CommandInset ref
8032 LatexCommand ref
8033 reference "subsec:遡及検索"
8034
8035 \end_inset
8036
8037 節に述べられている方法で実行することができます.
8038 \end_layout
8039
8040 \begin_layout Standard
8041 次に,
8042 \begin_inset Flex MenuItem
8043 status collapsed
8044
8045 \begin_layout Plain Layout
8046 ツール\SpecialChar menuseparator
8047 設定\SpecialChar menuseparator
8048 出力\SpecialChar menuseparator
8049 一般
8050 \end_layout
8051
8052 \end_inset
8053
8054 で自分の使うビューアを利用するように,\SpecialChar LyX
8055 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
8056 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
8057 \end_layout
8058
8059 \begin_layout Itemize
8060 \begin_inset Flex Code
8061 status collapsed
8062
8063 \begin_layout Plain Layout
8064 $$n
8065 \end_layout
8066
8067 \end_inset
8068
8069 :行番号
8070 \end_layout
8071
8072 \begin_layout Itemize
8073 \begin_inset Flex Code
8074 status collapsed
8075
8076 \begin_layout Plain Layout
8077 $$t
8078 \end_layout
8079
8080 \end_inset
8081
8082 :書き出された(一時).texファイル名(パスを除く)
8083 \end_layout
8084
8085 \begin_layout Itemize
8086 \begin_inset Flex Code
8087 status collapsed
8088
8089 \begin_layout Plain Layout
8090 $$f
8091 \end_layout
8092
8093 \end_inset
8094
8095 :書き出された(一時).texファイル名(パスを含む)
8096 \end_layout
8097
8098 \begin_layout Itemize
8099 \begin_inset Flex Code
8100 status collapsed
8101
8102 \begin_layout Plain Layout
8103 $$o
8104 \end_layout
8105
8106 \end_inset
8107
8108 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
8109 \end_layout
8110
8111 \begin_layout Standard
8112 yap・xdvi・okular
8113 \begin_inset Foot
8114 status collapsed
8115
8116 \begin_layout Plain Layout
8117 \begin_inset Flex MenuItem
8118 status collapsed
8119
8120 \begin_layout Plain Layout
8121 ツール\SpecialChar menuseparator
8122 設定\SpecialChar menuseparator
8123 ファイル処理\SpecialChar menuseparator
8124 ファイル形式
8125 \end_layout
8126
8127 \end_inset
8128
8129
8130 \begin_inset Flex Code
8131 status collapsed
8132
8133 \begin_layout Plain Layout
8134 okular –unique
8135 \end_layout
8136
8137 \end_inset
8138
8139 と設定すると良いかもしれません.
8140 \end_layout
8141
8142 \end_inset
8143
8144 ・qpdfview・Sumatra PDFなど,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
8145 \begin_inset Foot
8146 status collapsed
8147
8148 \begin_layout Plain Layout
8149 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
8150 \begin_inset CommandInset href
8151 LatexCommand href
8152 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8153
8154 \end_inset
8155
8156 からダウンロードすることができます.
8157 \end_layout
8158
8159 \end_inset
8160
8161 .広く使われているPDFビューアの多く(特にAdobe Reader)は,順検索を全く提供していませんが,他の一部のビューア(たとえばEvinceやxpdf)で
8162 は,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少なくとも「近く」には移動することができます.この後者の機能は,syn
8163 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
8164 \end_layout
8165
8166 \begin_layout Standard
8167 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
8168 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
8169 チェックして),その形式に適切な設定を選択します.
8170 \end_layout
8171
8172 \begin_layout Chapter
8173 特別な文書クラス
8174 \end_layout
8175
8176 \begin_layout Section
8177 A&Aの論文
8178 \end_layout
8179
8180 \begin_layout Standard
8181
8182 \noun on
8183 Peter Sütterlin文
8184 \end_layout
8185
8186 \begin_layout Subsection
8187 はじめに
8188 \end_layout
8189
8190 \begin_layout Standard
8191 この節では,文書クラス
8192 \family typewriter
8193 aa.cls
8194 \family default
8195 第5.01版を使用して科学雑誌
8196 \emph on
8197 Astronomy and Astrophysics
8198 \emph default
8199 (『天文学と宇宙物理学』: 
8200 \begin_inset Flex URL
8201 status collapsed
8202
8203 \begin_layout Plain Layout
8204
8205 http://www.edpsciences.fr/aa/
8206 \end_layout
8207
8208 \end_inset
8209
8210 )に投稿する論文を執筆するための\SpecialChar LyX
8211 の使用法を説明します.このパッケージは,FTPサイト
8212 \begin_inset Separator latexpar
8213 \end_inset
8214
8215
8216 \end_layout
8217
8218 \begin_layout Standard
8219 \align center
8220 \begin_inset VSpace medskip
8221 \end_inset
8222
8223
8224 \begin_inset Flex URL
8225 status collapsed
8226
8227 \begin_layout Plain Layout
8228
8229 ftp://ftp.edpsciences.org/pub/aa/readme.html
8230 \end_layout
8231
8232 \end_inset
8233
8234
8235 \begin_inset VSpace medskip
8236 \end_inset
8237
8238
8239 \end_layout
8240
8241 \begin_layout Standard
8242 \noindent
8243 からダウンロードすることができます.
8244 \end_layout
8245
8246 \begin_layout Standard
8247 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
8248 書であるに過ぎません.
8249 \end_layout
8250
8251 \begin_layout Standard
8252 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
8253 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
8254 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
8255 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
8256 \family sans
8257 article (A&A V4)
8258 \family default
8259 として残してあります.
8260 \family typewriter
8261 $\SpecialChar LyX
8262 Dir/layouts/aapaper.layout
8263 \family default
8264 のコメントをご参照ください.
8265 \end_layout
8266
8267 \begin_layout Subsection
8268 最初の一歩
8269 \end_layout
8270
8271 \begin_layout Standard
8272 \SpecialChar LyX
8273 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
8274 \end_layout
8275
8276 \begin_layout Itemize
8277
8278 \family sans
8279 文書\SpecialChar menuseparator
8280 設定
8281 \family default
8282 ダイアログで
8283 \family sans
8284 article (A&A)
8285 \family default
8286 を選択してください(まぁ,これは自明ですね).
8287 \end_layout
8288
8289 \begin_layout Itemize
8290
8291 \family sans
8292 ページレイアウト
8293 \family default
8294 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
8295 \end_layout
8296
8297 \begin_layout Subsection
8298 へッダ部
8299 \end_layout
8300
8301 \begin_layout Standard
8302 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
8303 \end_layout
8304
8305 \begin_layout Itemize
8306
8307 \family sans
8308 タイトル
8309 \family default
8310 :[必須]
8311 \end_layout
8312
8313 \begin_layout Itemize
8314
8315 \family sans
8316 サブタイトル
8317 \family default
8318 :[非必須]
8319 \end_layout
8320
8321 \begin_layout Itemize
8322
8323 \family sans
8324 著者
8325 \family default
8326 :[必須]
8327 \end_layout
8328
8329 \begin_layout Itemize
8330
8331 \family sans
8332 住所
8333 \family default
8334 :[必須]
8335 \end_layout
8336
8337 \begin_layout Itemize
8338
8339 \family sans
8340 抜き刷り
8341 \family default
8342 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
8343 \end_layout
8344
8345 \begin_layout Itemize
8346
8347 \family sans
8348 メール
8349 \family default
8350 :[非必須]連絡用の電子メールアドレス.
8351 \end_layout
8352
8353 \begin_layout Itemize
8354
8355 \family sans
8356 日付
8357 \family default
8358 :[必須]推奨されるフォーマットは,
8359 \family typewriter
8360 Received: <日付>; Accepted <日付>
8361 \family default
8362 です.
8363 \end_layout
8364
8365 \begin_layout Standard
8366
8367 \family typewriter
8368
8369 \backslash
8370 maketitle
8371 \family default
8372 コマンドは,へッダが終了した場所に,\SpecialChar LyX
8373 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
8374 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
8375 \end_layout
8376
8377 \begin_layout Standard
8378 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
8379 \family sans
8380 挿入\SpecialChar menuseparator
8381 脚注
8382 \family default
8383 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
8384 は自動的に
8385 \family typewriter
8386
8387 \backslash
8388 thanks{}
8389 \family default
8390 を使用します.
8391 \end_layout
8392
8393 \begin_layout Standard
8394 これらのトピックの他に,このマクロは,\SpecialChar LyX
8395 が対応していない,以下の3つの\SpecialChar LaTeX
8396 コマンドを使用します.
8397 \end_layout
8398
8399 \begin_layout Itemize
8400 複数の著者名あるいは所属名を区切るための
8401 \family typewriter
8402
8403 \backslash
8404 and
8405 \end_layout
8406
8407 \begin_layout Itemize
8408 著者と所属の対応付けをするための
8409 \family typewriter
8410
8411 \backslash
8412 inst{<番号>}
8413 \family default
8414 .所属は,
8415 \family sans
8416 住所
8417 \family default
8418 フィールドに現れる順に番号が付けられるので,各著者に番号マーカーを置く必要があります.
8419 \end_layout
8420
8421 \begin_layout Itemize
8422
8423 \family typewriter
8424
8425 \backslash
8426 email{アドレス}
8427 \family default
8428 は,至急連絡用に電子メールアドレスを付記します.
8429 \end_layout
8430
8431 \begin_layout Standard
8432 いずれの場合にも,\SpecialChar LyX
8433 中に対応したコマンドを入力し,\SpecialChar LaTeX
8434 コードとしてマークしてください.
8435 \begin_inset Flex Code
8436 status collapsed
8437
8438 \begin_layout Plain Layout
8439 $\SpecialChar LyX
8440 Dir/examples
8441 \end_layout
8442
8443 \end_inset
8444
8445 にある用例を参照してください.
8446 \end_layout
8447
8448 \begin_layout Subsection
8449 概要
8450 \end_layout
8451
8452 \begin_layout Standard
8453 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
8454 れなくてはなりません.これは,まだ\SpecialChar LyX
8455 では実装されていないため,\SpecialChar LaTeX
8456 コマンド
8457 \family typewriter
8458
8459 \backslash
8460 keywords{}
8461 \family default
8462 を手動で入力し,\SpecialChar LaTeX
8463 コードとしてマークする必要があります.用例にある論文を参照してください.
8464 \end_layout
8465
8466 \begin_layout Subsection
8467 サポートされる環境
8468 \end_layout
8469
8470 \begin_layout Standard
8471 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
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 概要
8526 \end_layout
8527
8528 \begin_layout Itemize
8529
8530 \family sans
8531 謝辞(Acknowledgment)
8532 \end_layout
8533
8534 \begin_layout Itemize
8535
8536 \family sans
8537 書誌情報
8538 \end_layout
8539
8540 \begin_layout Itemize
8541
8542 \family sans
8543 \SpecialChar LaTeX
8544
8545 \end_layout
8546
8547 \begin_layout Subsection
8548 \SpecialChar LyX
8549 でサポートされていないコマンド
8550 \end_layout
8551
8552 \begin_layout Standard
8553 \SpecialChar LyX
8554
8555 \family sans
8556 article (A&A)
8557 \family default
8558 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
8559 \end_layout
8560
8561 \begin_layout Itemize
8562
8563 \family typewriter
8564
8565 \backslash
8566 and
8567 \end_layout
8568
8569 \begin_layout Itemize
8570
8571 \family typewriter
8572
8573 \backslash
8574 email
8575 \end_layout
8576
8577 \begin_layout Itemize
8578
8579 \family typewriter
8580
8581 \backslash
8582 appendix
8583 \end_layout
8584
8585 \begin_layout Itemize
8586
8587 \family typewriter
8588
8589 \backslash
8590 authorrunning
8591 \end_layout
8592
8593 \begin_layout Itemize
8594
8595 \family typewriter
8596
8597 \backslash
8598 inst{}
8599 \end_layout
8600
8601 \begin_layout Itemize
8602
8603 \family typewriter
8604
8605 \backslash
8606 keywords{}
8607 \end_layout
8608
8609 \begin_layout Itemize
8610
8611 \family typewriter
8612
8613 \backslash
8614 object{}
8615 \end_layout
8616
8617 \begin_layout Itemize
8618
8619 \family typewriter
8620
8621 \backslash
8622 titlerunning{}
8623 \end_layout
8624
8625 \begin_layout Standard
8626 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
8627 \series bold
8628 これを\SpecialChar LaTeX
8629 コマンドとしてマークすることを忘れないで下さい.
8630 \end_layout
8631
8632 \begin_layout Subsection
8633 図フロートおよび表フロート
8634 \end_layout
8635
8636 \begin_layout Standard
8637 \SpecialChar LyX
8638 は,必要なフロート環境
8639 \family sans
8640 figure
8641 \family default
8642
8643 \family sans
8644 figure*
8645 \family default
8646
8647 \family sans
8648 table
8649 \family default
8650
8651 \family sans
8652 table*
8653 \family default
8654 をサポートしていますので,ここでは詳しい説明はしません.
8655 \emph on
8656 ユーザーの手引き
8657 \emph default
8658 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
8659 \family sans
8660 編集\SpecialChar menuseparator
8661 段落設定
8662 \family default
8663 で配置を変更してください.
8664 \end_layout
8665
8666 \begin_layout Standard
8667 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
8668 \end_layout
8669
8670 \begin_layout Enumerate
8671
8672 \family sans
8673 挿入\SpecialChar menuseparator
8674 フロート\SpecialChar menuseparator
8675
8676 \family default
8677 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
8678 \begin_inset Flex MenuItem
8679 status collapsed
8680
8681 \begin_layout Plain Layout
8682 設定\SpecialChar ldots
8683
8684 \end_layout
8685
8686 \end_inset
8687
8688 を選択し,それで開かれる
8689 \family sans
8690 フロートの設定
8691 \family default
8692 ダイアログで
8693 \family sans
8694 段をまたぐ
8695 \family default
8696 を有効にして,
8697 \family sans
8698 OK
8699 \family default
8700 ボタンを押します.
8701 \end_layout
8702
8703 \begin_layout Enumerate
8704 キャプション文を入力します.
8705 \end_layout
8706
8707 \begin_layout Enumerate
8708 キャプションの前にカーソルを移動し,
8709 \family sans
8710 Return
8711 \family default
8712 を押して,カーソルをキャプションの上に移動します.
8713 \end_layout
8714
8715 \begin_layout Enumerate
8716 図を挿入します.
8717 \end_layout
8718
8719 \begin_layout Enumerate
8720 カーソルを図の後ろに置いて,
8721 \family sans
8722 挿入\SpecialChar menuseparator
8723 整形\SpecialChar menuseparator
8724 水平方向の空白
8725 \family default
8726 を選択して
8727 \family sans
8728 水平方向の空白の設定
8729 \family default
8730 ダイアログを開き,
8731 \family sans
8732 空白
8733 \family default
8734 ドロップダウンから
8735 \family sans
8736 水平フィル
8737 \family default
8738 を選択して,水平フィルを挿入します.
8739 \end_layout
8740
8741 \begin_layout Enumerate
8742
8743 \family sans
8744 挿入\SpecialChar menuseparator
8745 TeXコード
8746 \family default
8747 を選択して,\SpecialChar TeX
8748 差込枠を挿入します.
8749 \end_layout
8750
8751 \begin_layout Enumerate
8752 \SpecialChar TeX
8753 差込枠中に
8754 \family typewriter
8755
8756 \backslash
8757 parbox[b]{55mm}{
8758 \family default
8759 と入力します.
8760 \series bold
8761 ここでは波括弧を閉じないでください.
8762 \end_layout
8763
8764 \begin_layout Enumerate
8765 カーソルをキャプション文の後ろに移動し,
8766 \family sans
8767 挿入\SpecialChar menuseparator
8768 TeXコード
8769 \family default
8770 を選択して,別の\SpecialChar TeX
8771 差込枠を挿入し,その中に閉じ括弧を入力します .
8772 \end_layout
8773
8774 \begin_layout Standard
8775 例示用論文中の図もご参照ください.
8776 \end_layout
8777
8778 \begin_layout Subsection
8779 Refereeレイアウト
8780 \end_layout
8781
8782 \begin_layout Standard
8783 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
8784 \family typewriter
8785 referee
8786 \family default
8787 オプションを与える必要があります.これは,
8788 \family sans
8789 文書\SpecialChar menuseparator
8790 設定
8791 \family default
8792 ダイアログの
8793 \family sans
8794 任意設定
8795 \family default
8796 クラスオプションフィールドを使って行うことができます.この欄に
8797 \family typewriter
8798 referee
8799 \family default
8800 と云う文字列を入力してください.
8801 \end_layout
8802
8803 \begin_layout Subsection
8804 例示用論文
8805 \end_layout
8806
8807 \begin_layout Standard
8808
8809 \family sans
8810 Examples
8811 \family default
8812 ディレクトリには,\SpecialChar LyX
8813 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
8814 用に直したものです.これはヒントを得るために使用したり,元の
8815  \SpecialChar LaTeX
8816 コードと\SpecialChar LyX
8817 での書き方の比較に使ったりしてください.
8818 \end_layout
8819
8820 \begin_layout Section
8821 AAS\SpecialChar TeX
8822
8823 \end_layout
8824
8825 \begin_layout Standard
8826
8827 \noun on
8828 Mike Ressler
8829 \noun default
8830
8831 \end_layout
8832
8833 \begin_layout Subsection
8834 はじめに
8835 \end_layout
8836
8837 \begin_layout Standard
8838 AAS\SpecialChar TeX
8839 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
8840 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
8841  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
8842
8843 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
8844 は,同マクロ第5.0版以降を必要としており,でき
8845 ればここで説明されている第5.2版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
8846 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
8847 とは互換性がありません.AAS\SpecialChar TeX
8848 パッケージは
8849 ,以下のAAS\SpecialChar TeX
8850 ウェブサイトからダウンロードできるでしょう.
8851 \begin_inset Separator latexpar
8852 \end_inset
8853
8854
8855 \end_layout
8856
8857 \begin_layout Standard
8858 \align center
8859 \begin_inset VSpace medskip
8860 \end_inset
8861
8862
8863 \begin_inset Flex URL
8864 status collapsed
8865
8866 \begin_layout Plain Layout
8867
8868 https://aas.org/aastex/aastex-downloads
8869 \end_layout
8870
8871 \end_inset
8872
8873
8874 \begin_inset VSpace medskip
8875 \end_inset
8876
8877
8878 \end_layout
8879
8880 \begin_layout Standard
8881 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
8882 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
8883 は,AASTeXの全コマン
8884 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
8885 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
8886 いることを確認するのは,あなたの責任です.
8887 \end_layout
8888
8889 \begin_layout Subsection
8890 新しい論文を書き始める
8891 \end_layout
8892
8893 \begin_layout Standard
8894 論文を書き始めるには,AAS\SpecialChar TeX
8895 ひな型ファイルを土台に始めることを強くお勧めします.
8896 \begin_inset Flex MenuItem
8897 status collapsed
8898
8899 \begin_layout Plain Layout
8900 ファイル\SpecialChar menuseparator
8901 新規(ひな型使用)
8902 \end_layout
8903
8904 \end_inset
8905
8906 をクリックして,新しいファイル名を入力し,ひな型
8907 \family typewriter
8908 aastex.lyx
8909 \family default
8910 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
8911 \family typewriter
8912 <>
8913 \family default
8914 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
8915 コマンド・AAS\SpecialChar TeX
8916 環境の多くは,\SpecialChar LyX
8917 中で直接実行することができますが,特に
8918 \family typewriter
8919
8920 \backslash
8921 altaffilmark
8922 \family default
8923
8924 \family typewriter
8925
8926 \backslash
8927 altaffiltext
8928 \family default
8929 のようにできないものもあります.この二つのコマンドは,ひな型ファイルを開いたとき,赤色に表示されているのですぐ目に入ることでしょう.このようなコマンドは,直接L
8930 a\SpecialChar TeX
8931 コードを入力して,それを\SpecialChar TeX
8932 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
8933 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます.A
8934 AS\SpecialChar TeX
8935 文書に必要とされる \SpecialChar TeX
8936 コードを最小にするよう努力はしていますが,まだ望まれるほどにはなっていません.
8937 \end_layout
8938
8939 \begin_layout Subsection
8940 論文を書き終わったら
8941 \end_layout
8942
8943 \begin_layout Standard
8944 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
8945 \end_layout
8946
8947 \begin_layout Enumerate
8948 論文を \SpecialChar LaTeX
8949 ファイルとして書き出します(
8950 \family sans
8951 ファイル\SpecialChar menuseparator
8952 書き出し\SpecialChar menuseparator
8953 LateX
8954 \family default
8955 ).
8956 \end_layout
8957
8958 \begin_layout Enumerate
8959 出力した
8960 \family typewriter
8961 .tex
8962 \family default
8963 ファイルを好きなエディタで編集します.
8964 \begin_inset Separator latexpar
8965 \end_inset
8966
8967
8968 \end_layout
8969
8970 \begin_deeper
8971 \begin_layout Enumerate
8972
8973 \family typewriter
8974
8975 \backslash
8976 documentclass
8977 \family default
8978 コマンドよりも前のコメント行を削除します.
8979 \end_layout
8980
8981 \begin_layout Enumerate
8982
8983 \family typewriter
8984
8985 \backslash
8986 usepackage...{fontenc}
8987 \family default
8988 という行があれば(通常は
8989 \family typewriter
8990
8991 \backslash
8992 documentclass
8993 \family default
8994 の直後にあります)削除します.また,
8995 \family typewriter
8996
8997 \backslash
8998 secnumdepth
8999 \family default
9000 行があれば,これも削除します.
9001 \end_layout
9002
9003 \begin_layout Enumerate
9004 \SpecialChar LaTeX
9005 プリアンブル中に意図的に置いたコマンド(
9006 \family typewriter
9007 .tex
9008 \family default
9009 ファイル中,「User specified \SpecialChar LaTeX
9010  commands」というコメントの直後にあります)を除いて,
9011 \family typewriter
9012
9013 \backslash
9014 makeatletter
9015 \family default
9016
9017 \family typewriter
9018
9019 \backslash
9020 makeatother
9021 \family default
9022 の間のもの(これらのコマンドを含む)をすべて削除します.
9023 \end_layout
9024
9025 \end_deeper
9026 \begin_layout Enumerate
9027 編集後のファイルを \SpecialChar LaTeX
9028 にかけて,正しく処理されることを確認します.
9029 \end_layout
9030
9031 \begin_layout Enumerate
9032 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
9033 \end_layout
9034
9035 \begin_layout Enumerate
9036 投稿してください.
9037 \end_layout
9038
9039 \begin_layout Subsection
9040 特定のコマンドに関するコメント
9041 \end_layout
9042
9043 \begin_layout Standard
9044 AAS\SpecialChar TeX
9045 ユーザーの手引き(
9046 \family typewriter
9047 aasguide.tex
9048 \family default
9049 )に,各AAS\SpecialChar TeX
9050 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
9051 て,必要なところだけコメントを加えることにしましょう.
9052 \end_layout
9053
9054 \begin_layout Subsubsection
9055 期待通りに動作するもの
9056 \end_layout
9057
9058 \begin_layout Standard
9059 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
9060 \family typewriter
9061
9062 \backslash
9063 documentclass
9064 \family default
9065  (2.1.1)・
9066 \family typewriter
9067
9068 \backslash
9069 begin{document}
9070 \family default
9071  (2.2)・
9072 \family typewriter
9073
9074 \backslash
9075 title
9076 \family default
9077  (2.3)・
9078 \family typewriter
9079
9080 \backslash
9081 author
9082 \family default
9083  (2.3)・
9084 \family typewriter
9085
9086 \backslash
9087 affil
9088 \family default
9089  (2.3)・
9090 \family typewriter
9091
9092 \backslash
9093 abstract
9094 \family default
9095  (2.4)・
9096 \family typewriter
9097
9098 \backslash
9099 keywords
9100 \family default
9101  (2.5)・
9102 \family typewriter
9103
9104 \backslash
9105 section
9106 \family default
9107  (2.7)・
9108 \family typewriter
9109
9110 \backslash
9111 subsection
9112 \family default
9113  (2.7)・
9114 \family typewriter
9115
9116 \backslash
9117 subsubsection
9118 \family default
9119  (2.7)・
9120 \family typewriter
9121
9122 \backslash
9123 paragraph
9124 \family default
9125  (2.7)・
9126 \family typewriter
9127
9128 \backslash
9129 facility
9130 \family default
9131  (2.10)・
9132 \family typewriter
9133
9134 \backslash
9135 begin{displaymath}
9136 \family default
9137  (2.12)・
9138 \family typewriter
9139
9140 \backslash
9141 begin{equation}
9142 \family default
9143  (2.12)・
9144 \family typewriter
9145
9146 \backslash
9147 begin{eqnarray}
9148 \family default
9149  (2.12)・
9150 \family typewriter
9151
9152 \backslash
9153 begin{mathletters}
9154 \family default
9155  (2.12)・
9156 \family typewriter
9157
9158 \backslash
9159 begin{thebibliography}
9160 \family default
9161  (2.13.1)・
9162 \family typewriter
9163
9164 \backslash
9165 bibitem
9166 \family default
9167  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9168 \family typewriter
9169
9170 \backslash
9171 begin{table}
9172 \family default
9173  (2.15.4)・
9174 \family typewriter
9175
9176 \backslash
9177 begin{tabular}
9178 \family default
9179  (2.15.4)・
9180 \family typewriter
9181
9182 \backslash
9183 caption
9184 \family default
9185  (2.15.4)・
9186 \family typewriter
9187
9188 \backslash
9189 label
9190 \family default
9191  (他にもあるが特に2.15.4)・
9192 \family typewriter
9193
9194 \backslash
9195 tablerefs
9196 \family default
9197  (2.15.5)・
9198 \family typewriter
9199
9200 \backslash
9201 tablecomments
9202 \family default
9203  (2.15.5)・
9204 \family typewriter
9205
9206 \backslash
9207 url
9208 \family default
9209  (2.17.4)・
9210 \family typewriter
9211
9212 \backslash
9213 end{document}
9214 \family default
9215  (2.18).
9216 \end_layout
9217
9218 \begin_layout Standard
9219 以下のスタイルオプションも正しく動作します.
9220 \family typewriter
9221 longabstract
9222 \family default
9223  (2.4)・
9224 \family typewriter
9225 preprint
9226 \family default
9227  (3.2.1)・
9228 \family typewriter
9229 preprint2
9230 \family default
9231  (3.2.2)・
9232 \family typewriter
9233 eqsecnum
9234 \family default
9235  (3.3)・
9236 \family typewriter
9237 flushrt
9238 \family default
9239  (3.4).これらは,
9240 \begin_inset Flex MenuItem
9241 status collapsed
9242
9243 \begin_layout Plain Layout
9244 文書\SpecialChar menuseparator
9245 設定
9246 \end_layout
9247
9248 \end_inset
9249
9250 にある,
9251 \family sans
9252 クラスオプション
9253 \family default
9254
9255 \family sans
9256 任意設定
9257 \family default
9258 ボックスに入力してください.
9259 \end_layout
9260
9261 \begin_layout Subsubsection
9262 動作するが,若干説明が必要なもの
9263 \end_layout
9264
9265 \begin_layout Standard
9266 以下のコマンドは動作しますが,若干の説明が必要です.
9267 \end_layout
9268
9269 \begin_layout Itemize
9270 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
9271 プリアンブルに入れることができます.
9272 \family typewriter
9273
9274 \backslash
9275 received
9276 \family default
9277
9278 \family typewriter
9279
9280 \backslash
9281 revised
9282 \family default
9283
9284 \family typewriter
9285
9286 \backslash
9287 accepted
9288 \family default
9289
9290 \family typewriter
9291
9292 \backslash
9293 ccc
9294 \family default
9295
9296 \family typewriter
9297 cpright
9298 \family default
9299 (すべて 2.1.3).
9300 \end_layout
9301
9302 \begin_layout Itemize
9303 以下の項目は,\SpecialChar LaTeX
9304 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
9305 \family typewriter
9306
9307 \backslash
9308 slugcomment
9309 \family default
9310 (2.1.4)・
9311 \family typewriter
9312
9313 \backslash
9314 shorttitle
9315 \family default
9316 (2.1.5)・
9317 \family typewriter
9318
9319 \backslash
9320 shortauthors
9321 \family default
9322 (2.1.5).
9323 \end_layout
9324
9325 \begin_layout Itemize
9326
9327 \family typewriter
9328
9329 \backslash
9330 email
9331 \family default
9332 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9333 コードを使用してください.
9334 \end_layout
9335
9336 \begin_layout Itemize
9337
9338 \family typewriter
9339
9340 \backslash
9341 and
9342 \family default
9343 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9344 \end_layout
9345
9346 \begin_layout Itemize
9347
9348 \family typewriter
9349
9350 \backslash
9351 notetoeditor
9352 \family default
9353 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9354 コードを使用してください.
9355 \end_layout
9356
9357 \begin_layout Itemize
9358
9359 \family typewriter
9360
9361 \backslash
9362 placetable
9363 \family default
9364 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
9365 \end_layout
9366
9367 \begin_layout Itemize
9368
9369 \family typewriter
9370
9371 \backslash
9372 placefigure
9373 \family default
9374 (2.8)—
9375 \family typewriter
9376
9377 \backslash
9378 placetable
9379 \family default
9380 と同様.
9381 \end_layout
9382
9383 \begin_layout Itemize
9384
9385 \family typewriter
9386
9387 \backslash
9388 acknowledgements
9389 \family default
9390 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9391 \end_layout
9392
9393 \begin_layout Itemize
9394
9395 \family typewriter
9396
9397 \backslash
9398 appendix
9399 \family default
9400 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9401 \end_layout
9402
9403 \begin_layout Itemize
9404
9405 \family typewriter
9406
9407 \backslash
9408 figcaption
9409 \family default
9410 (2.14.2)―文章のはじめにカーソルを置いて
9411 \begin_inset Flex MenuItem
9412 status collapsed
9413
9414 \begin_layout Plain Layout
9415 挿入\SpecialChar menuseparator
9416 短縮タイトル
9417 \end_layout
9418
9419 \end_inset
9420
9421 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
9422 \family typewriter
9423
9424 \backslash
9425 figcaption
9426 \family default
9427 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
9428 \end_layout
9429
9430 \begin_layout Itemize
9431
9432 \family typewriter
9433
9434 \backslash
9435 objectname
9436 \family default
9437 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9438 \family typewriter
9439
9440 \backslash
9441 figcaption
9442 \family default
9443 と同様.
9444 \end_layout
9445
9446 \begin_layout Itemize
9447
9448 \family typewriter
9449
9450 \backslash
9451 dataset
9452 \family default
9453 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9454 \family typewriter
9455
9456 \backslash
9457 figcaption
9458 \family default
9459 と同様.
9460 \end_layout
9461
9462 \begin_layout Subsubsection
9463 実装されていないため,\SpecialChar TeX
9464 コードを使用するもの
9465 \end_layout
9466
9467 \begin_layout Standard
9468
9469 \family typewriter
9470
9471 \backslash
9472 altaffilmark
9473 \family default
9474 (2.3)・
9475 \family typewriter
9476
9477 \backslash
9478 altaffiltext
9479 \family default
9480 (2.3)・
9481 \family typewriter
9482
9483 \backslash
9484 eqnum
9485 \family default
9486 (2.12)・
9487 \family typewriter
9488
9489 \backslash
9490 setcounter{equation}
9491 \family default
9492 (2.12)・学術誌名略語(2.12.4)・
9493 \family typewriter
9494
9495 \backslash
9496 figurenum
9497 \family default
9498 (2.14.1)・
9499 \family typewriter
9500
9501 \backslash
9502 epsscale
9503 \family default
9504 (2.14.1)・
9505 \family typewriter
9506
9507 \backslash
9508 plotone
9509 \family default
9510 (2.14.1)・
9511 \family typewriter
9512
9513 \backslash
9514 plottwo
9515 \family default
9516 (2.14.1)・
9517 \family typewriter
9518
9519 \backslash
9520 tablenum
9521 \family default
9522 (2.15.4)・
9523 \family typewriter
9524
9525 \backslash
9526 tableline
9527 \family default
9528 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
9529 の方法は使わないでください)・
9530 \family typewriter
9531
9532 \backslash
9533 tablenotemark
9534 \family default
9535 (2.15.5)・
9536 \family typewriter
9537
9538 \backslash
9539 tablenotetext
9540 \family default
9541 (2.15.5)・補遺(2.17)の大半(
9542 \family typewriter
9543
9544 \backslash
9545 objectname
9546 \family default
9547
9548 \family typewriter
9549
9550 \backslash
9551 dataset
9552 \family default
9553
9554 \family typewriter
9555
9556 \backslash
9557 url
9558 \family default
9559
9560 \family typewriter
9561
9562 \backslash
9563 email
9564 \family default
9565 を除く.上記参照)・
9566 \family typewriter
9567
9568 \backslash
9569 singlespace
9570 \family default
9571 (3.1)・
9572 \family typewriter
9573
9574 \backslash
9575 doublespace
9576 \family default
9577 (3.1)・
9578 \family typewriter
9579
9580 \backslash
9581 onecolumn
9582 \family default
9583 (3.2)・
9584 \family typewriter
9585
9586 \backslash
9587 twocolumn
9588 \family default
9589 (3.2)
9590 \end_layout
9591
9592 \begin_layout Subsubsection
9593 実装できないもの
9594 \end_layout
9595
9596 \begin_layout Standard
9597 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
9598 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
9599 \begin_inset Flex MenuItem
9600 status collapsed
9601
9602 \begin_layout Plain Layout
9603 挿入\SpecialChar menuseparator
9604 ファイル
9605 \begin_inset Formula $\text{\textipa{}}$
9606 \end_inset
9607
9608 \SpecialChar menuseparator
9609 子文書
9610 \end_layout
9611
9612 \end_inset
9613
9614 を使用して,\SpecialChar LyX
9615 ファイルに読み込むことを推奨します.この実例は,
9616 \family typewriter
9617 aas_sample.lyx
9618 \family default
9619 ファイルをご参照ください.
9620 \end_layout
9621
9622 \begin_layout Subsection
9623 FAQとヒントと技とその他の考察
9624 \end_layout
9625
9626 \begin_layout Subsubsection
9627 \SpecialChar LyX
9628 をAAS\SpecialChar TeX
9629 と協調させる
9630 \end_layout
9631
9632 \begin_layout Standard
9633 \SpecialChar LyX
9634 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
9635 \end_layout
9636
9637 \begin_layout Enumerate
9638 \SpecialChar LaTeX
9639 が,AAS\SpecialChar TeX
9640 を検出できることを確認してください.AAS\SpecialChar TeX
9641 頒布版に含まれる
9642 \family typewriter
9643 sample.tex
9644 \family default
9645 (あるいは
9646 \family typewriter
9647 table.tex
9648 \family default
9649 でも可)を,\SpecialChar LaTeX
9650 やAAS\SpecialChar TeX
9651 とまったく関係のないディレクトリにコピーして,
9652 \family typewriter
9653 sample.tex
9654 \family default
9655 を\SpecialChar LaTeX
9656 にかけてください.
9657 \end_layout
9658
9659 \begin_layout Enumerate
9660
9661 \family typewriter
9662 aastex.layout
9663 \family default
9664 が,\SpecialChar LyX
9665
9666 \family typewriter
9667 layouts
9668 \family default
9669 フォルダにあることを確認してください.
9670 \end_layout
9671
9672 \begin_layout Enumerate
9673 \SpecialChar LyX
9674 中から
9675 \family sans
9676 ツール\SpecialChar menuseparator
9677 環境構成
9678 \family default
9679 を再度実行し,\SpecialChar LyX
9680 を再起動してください.
9681 \end_layout
9682
9683 \begin_layout Enumerate
9684 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
9685 が,
9686 \family sans
9687 文書\SpecialChar menuseparator
9688 設定
9689 \family default
9690 のクラス一覧に表示されていますか?
9691 \end_layout
9692
9693 \begin_layout Standard
9694 既存のAAS\SpecialChar TeX
9695 文書を処理する際に,AAS\SpecialChar TeX
9696 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
9697 れば,正しい導入が行われていません.
9698 \end_layout
9699
9700 \begin_layout Subsubsection
9701 表を処理する際の\SpecialChar LaTeX
9702 エラー
9703 \end_layout
9704
9705 \begin_layout Standard
9706 既定では,\SpecialChar LyX
9707 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
9708 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
9709 クして,
9710 \family sans
9711 編集\SpecialChar menuseparator
9712 段落設定
9713 \family default
9714 を選択し,
9715 \family sans
9716 配置
9717 \family default
9718
9719 \family sans
9720 両端揃え
9721 \family default
9722 に設定してください.私のところではこれで解決しました.
9723 \end_layout
9724
9725 \begin_layout Subsubsection
9726 書誌情報
9727 \end_layout
9728
9729 \begin_layout Standard
9730 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
9731 ースを
9732 \emph on
9733 入れない
9734 \emph default
9735 ようにしてください.たとえば,
9736 \family typewriter
9737 Ressler(1992)
9738 \family default
9739 はいいですが,
9740 \family typewriter
9741 Ressler (1992)
9742 \family default
9743 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
9744 \family sans
9745 書誌情報
9746 \family default
9747 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
9748 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
9749 \end_layout
9750
9751 \begin_layout Subsubsection
9752 EPSファイルの読み込み
9753 \end_layout
9754
9755 \begin_layout Standard
9756 AAS\SpecialChar TeX
9757 には,自前の図関連コマンド(たとえば
9758 \family typewriter
9759
9760 \backslash
9761 plotone
9762 \family default
9763 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
9764 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
9765 コードで
9766 \family typewriter
9767
9768 \backslash
9769 plotone
9770 \family default
9771 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
9772 は,
9773 \family typewriter
9774
9775 \backslash
9776 usepackage{graphics}
9777 \family default
9778 コマンドを\SpecialChar LaTeX
9779 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
9780 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
9781 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
9782 \end_layout
9783
9784 \begin_layout Subsubsection
9785 可能だったが,実装しなかったもの
9786 \end_layout
9787
9788 \begin_layout Standard
9789 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
9790 ウィンドウ中
9791 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
9792 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
9793 \end_layout
9794
9795 \begin_layout Subsection
9796 最後に
9797 \end_layout
9798
9799 \begin_layout Standard
9800 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
9801 \begin_inset space \thinspace{}
9802 \end_inset
9803
9804 %は\SpecialChar LyX
9805 上で為されました.残りの2
9806 \begin_inset space \thinspace{}
9807 \end_inset
9808
9809 %が,\SpecialChar LaTeX
9810 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
9811 て発表してください!
9812 \end_layout
9813
9814 \begin_layout Section
9815 AMS \SpecialChar LaTeX
9816
9817 \end_layout
9818
9819 \begin_layout Standard
9820
9821 \noun on
9822 David Johnson
9823 \noun default
9824 文 
9825 \noun on
9826 Richard Heck
9827 \noun default
9828 改訂
9829 \begin_inset VSpace bigskip
9830 \end_inset
9831
9832
9833 \end_layout
9834
9835 \begin_layout Standard
9836 AMS \SpecialChar LaTeX
9837 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
9838 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
9839 出力中の一行を変更する
9840 必要があるだけです).AMSの説明書は,ウェブWeb上の
9841 \begin_inset Flex URL
9842 status open
9843
9844 \begin_layout Plain Layout
9845
9846 http://www.ams.org
9847 \end_layout
9848
9849 \end_inset
9850
9851 か,FTPで
9852 \begin_inset Flex URL
9853 status open
9854
9855 \begin_layout Plain Layout
9856
9857 ftp://ftp.ams.org/pub/tex/amslatex/
9858 \end_layout
9859
9860 \end_inset
9861
9862 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
9863 \end_layout
9864
9865 \begin_layout Standard
9866 基本となるAMS \SpecialChar LaTeX
9867 レイアウトには,以下の二つがあります.
9868 \end_layout
9869
9870 \begin_layout Itemize
9871 amsart:標準のAMS article書式.
9872 \end_layout
9873
9874 \begin_layout Itemize
9875 amsbook:標準のAMS book(実際はモノグラフ)書式.
9876 \end_layout
9877
9878 \begin_layout Standard
9879 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
9880 m」環境は,何一つ含まれていません.これらは,代わりに
9881 \begin_inset Flex Code
9882 status collapsed
9883
9884 \begin_layout Plain Layout
9885 定理(AMS)
9886 \end_layout
9887
9888 \end_inset
9889
9890 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
9891 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
9892 \begin_inset Flex Code
9893 status collapsed
9894
9895 \begin_layout Plain Layout
9896 定理(AMS拡張)
9897 \end_layout
9898
9899 \end_inset
9900
9901 モジュールがあり,これは手動で読み込む必要があります.
9902 \end_layout
9903
9904 \begin_layout Standard
9905 既定では,定理類は,文書を通して連番が振られますが,これは
9906 \begin_inset Flex Code
9907 status collapsed
9908
9909 \begin_layout Plain Layout
9910 定理(節毎連番)
9911 \end_layout
9912
9913 \end_inset
9914
9915 モジュールを読み込めば変更することができ,
9916 \begin_inset Flex Code
9917 status collapsed
9918
9919 \begin_layout Plain Layout
9920 book (AMS)
9921 \end_layout
9922
9923 \end_inset
9924
9925 を使用している場合には
9926 \begin_inset Flex Code
9927 status collapsed
9928
9929 \begin_layout Plain Layout
9930 定理(章毎連番)
9931 \end_layout
9932
9933 \end_inset
9934
9935 を用いても変更することができます.これらを用いると,出力は
9936 \begin_inset Formula $n.m$
9937 \end_inset
9938
9939 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
9940 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
9941 \emph on
9942 のみ
9943 \emph default
9944 が欲しい場合には,
9945 \begin_inset Flex Code
9946 status collapsed
9947
9948 \begin_layout Plain Layout
9949 定理(連番なし)
9950 \end_layout
9951
9952 \end_inset
9953
9954 モジュールを用います.
9955 \end_layout
9956
9957 \begin_layout Standard
9958 これらのモジュールは,AMSクラスで使用する
9959 \emph on
9960 必要はない
9961 \emph default
9962 ことに注意してください.
9963 \begin_inset Flex Code
9964 status collapsed
9965
9966 \begin_layout Plain Layout
9967 定理(AMS)
9968 \end_layout
9969
9970 \end_inset
9971
9972 モジュールや上述の他のモジュールは,他のクラス,たとえば
9973 \begin_inset Flex Code
9974 status collapsed
9975
9976 \begin_layout Plain Layout
9977 article
9978 \end_layout
9979
9980 \end_inset
9981
9982
9983 \begin_inset Flex Code
9984 status collapsed
9985
9986 \begin_layout Plain Layout
9987 report
9988 \end_layout
9989
9990 \end_inset
9991
9992
9993 \begin_inset Flex Code
9994 status collapsed
9995
9996 \begin_layout Plain Layout
9997 book (KOMA-script)
9998 \end_layout
9999
10000 \end_inset
10001
10002 などで問題なく使用することができます.
10003 \end_layout
10004
10005 \begin_layout Subsection
10006 これらのレイアウトが提供するもの
10007 \end_layout
10008
10009 \begin_layout Standard
10010 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
10011 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
10012 す.しかし,AMSは,\SpecialChar LyX
10013 で利用可能になっている環境のみを使用することを推奨しています.
10014 \end_layout
10015
10016 \begin_layout Standard
10017 \begin_inset Flex Code
10018 status collapsed
10019
10020 \begin_layout Plain Layout
10021 article (AMS)
10022 \end_layout
10023
10024 \end_inset
10025
10026
10027 \begin_inset Flex Code
10028 status collapsed
10029
10030 \begin_layout Plain Layout
10031 book (AMS)
10032 \end_layout
10033
10034 \end_inset
10035
10036 には,——
10037 \begin_inset space ~
10038 \end_inset
10039
10040
10041 \begin_inset Flex Noun
10042 status collapsed
10043
10044 \begin_layout Plain Layout
10045
10046 \end_layout
10047
10048 \end_inset
10049
10050
10051 \begin_inset Flex Noun
10052 status collapsed
10053
10054 \begin_layout Plain Layout
10055 書誌情報
10056 \end_layout
10057
10058 \end_inset
10059
10060
10061 \begin_inset Flex Noun
10062 status collapsed
10063
10064 \begin_layout Plain Layout
10065 タイトル
10066 \end_layout
10067
10068 \end_inset
10069
10070
10071 \begin_inset Flex Noun
10072 status collapsed
10073
10074 \begin_layout Plain Layout
10075 著者
10076 \end_layout
10077
10078 \end_inset
10079
10080
10081 \begin_inset Flex Noun
10082 status collapsed
10083
10084 \begin_layout Plain Layout
10085 日付
10086 \end_layout
10087
10088 \end_inset
10089
10090 のような標準環境の他に
10091 \begin_inset space ~
10092 \end_inset
10093
10094 ——
10095 \begin_inset space ~
10096 \end_inset
10097
10098 以下の環境があります.
10099 \end_layout
10100
10101 \begin_layout Description
10102 住所 これは著者の恒久的な住所です.
10103 \end_layout
10104
10105 \begin_layout Description
10106 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
10107 \end_layout
10108
10109 \begin_layout Description
10110 電子メール 著者の電子メールアドレス
10111 \end_layout
10112
10113 \begin_layout Description
10114 URL 著者のウェブアドレス.任意.
10115 \end_layout
10116
10117 \begin_layout Description
10118 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
10119 \end_layout
10120
10121 \begin_layout Description
10122 分野分類 
10123 \emph on
10124 Mathematical Reviews
10125 \emph default
10126 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
10127 す.
10128 \end_layout
10129
10130 \begin_layout Description
10131 謝辞
10132 \end_layout
10133
10134 \begin_layout Description
10135 献呈
10136 \end_layout
10137
10138 \begin_layout Description
10139 翻訳者
10140 \end_layout
10141
10142 \begin_layout Standard
10143 以下の環境は,
10144 \begin_inset Flex Code
10145 status collapsed
10146
10147 \begin_layout Plain Layout
10148 定理
10149 \end_layout
10150
10151 \end_inset
10152
10153 モジュールと
10154 \begin_inset Flex Code
10155 status collapsed
10156
10157 \begin_layout Plain Layout
10158 定理(AMS)
10159 \end_layout
10160
10161 \end_inset
10162
10163 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
10164 \begin_inset Flex Code
10165 status collapsed
10166
10167 \begin_layout Plain Layout
10168 定理(連番なし)
10169 \end_layout
10170
10171 \end_inset
10172
10173 モジュールでは,同環境の星付き版だけが提供されます.
10174 \end_layout
10175
10176 \begin_layout Theorem
10177 これは,通常,得られた主要な結果を叙述するのに使用されます.
10178 \end_layout
10179
10180 \begin_layout Corollary*
10181 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
10182 \end_layout
10183
10184 \begin_layout Lemma
10185 他の叙述を証明するために必要とされる,比較的小さな結果です.
10186 \end_layout
10187
10188 \begin_layout Proposition
10189 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
10190 \end_layout
10191
10192 \begin_layout Conjecture
10193 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
10194 \end_layout
10195
10196 \begin_layout Definition*
10197 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
10198 \end_layout
10199
10200 \begin_layout Problem
10201 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
10202 \end_layout
10203
10204 \begin_layout Exercise*
10205 この環境の説明を記述せよ.
10206 \end_layout
10207
10208 \begin_layout Note
10209 この環境もtheorem型,通常は重要性の低い所見に用いられます.
10210 \end_layout
10211
10212 \begin_layout Claim*
10213 より大きな結果の証明を与える途中で,しばしば用いられます.
10214 \end_layout
10215
10216 \begin_layout Case
10217 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
10218 \end_layout
10219
10220 \begin_layout Case
10221 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
10222 \end_layout
10223
10224 \begin_layout Proof
10225 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
10226 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
10227 \emph on
10228 ユーザーの手引き
10229 \emph default
10230
10231 \emph on
10232 環境を入れ子にする
10233 \emph default
10234 の節をご覧ください.
10235 \end_layout
10236
10237 \begin_layout Standard
10238 そして,以下は
10239 \begin_inset Flex Code
10240 status collapsed
10241
10242 \begin_layout Plain Layout
10243 定理(AMS拡張)
10244 \end_layout
10245
10246 \end_inset
10247
10248 で提供されるものです.
10249 \end_layout
10250
10251 \begin_layout Criterion*
10252 必要とされる条件です.
10253 \end_layout
10254
10255 \begin_layout Algorithm*
10256 使用する一般的手順です.
10257 \end_layout
10258
10259 \begin_layout Axiom*
10260 議論されている系内部で真と仮定される性質や命題です.
10261 \end_layout
10262
10263 \begin_layout Condition*
10264 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
10265 \end_layout
10266
10267 \begin_layout Note*
10268 注記と同様です.
10269 \end_layout
10270
10271 \begin_layout Notation*
10272 表記法の説明に用いられます.
10273 \end_layout
10274
10275 \begin_layout Summary
10276 本当に説明する必要がありますか?
10277 \end_layout
10278
10279 \begin_layout Acknowledgement*
10280 謝辞(acknowledgement)です.
10281 \end_layout
10282
10283 \begin_layout Conclusion*
10284 長い議論の終わりに時々用いられます.
10285 \end_layout
10286
10287 \begin_layout Fact
10288 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
10289 \end_layout
10290
10291 \begin_layout Standard
10292 さらに,AMSクラスは,AMS \SpecialChar LaTeX
10293 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
10294 る必要があります.
10295 \end_layout
10296
10297 \begin_layout Section
10298 AGU各誌(
10299 \family sans
10300 aguplus)
10301 \end_layout
10302
10303 \begin_layout Standard
10304
10305 \noun on
10306 Martin Vermeer
10307 \noun default
10308
10309 \end_layout
10310
10311 \begin_layout Subsection
10312 概要
10313 \end_layout
10314
10315 \begin_layout Standard
10316 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです.AGU発行のクラスファイルおよび
10317 AGUplusの両方(これらは
10318 \begin_inset Flex URL
10319 status collapsed
10320
10321 \begin_layout Plain Layout
10322
10323 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10324 \end_layout
10325
10326 \end_inset
10327
10328 にあります)が導入されていることが必要です.
10329 \end_layout
10330
10331 \begin_layout Subsection
10332 新しいスタイル
10333 \end_layout
10334
10335 \begin_layout Standard
10336
10337 \family sans
10338 段落
10339 \family default
10340 および
10341 \family sans
10342 段落*
10343 \family default
10344 は,定義し直されています.\SpecialChar LyX
10345 の画面では,依然として
10346 \family sans
10347 段落
10348 \family default
10349
10350 \family sans
10351 段落*
10352 \family default
10353 と表示されますが,AGUクラスにおける\SpecialChar LaTeX
10354 の対応物は,
10355 \family sans
10356 Subsubsubsection
10357 \family default
10358
10359 \family sans
10360 Subsubsubsection*
10361 \family default
10362 です.
10363 \end_layout
10364
10365 \begin_layout Standard
10366 新しく定義されたスタイルには,
10367 \family sans
10368 左ヘッダ
10369 \family default
10370
10371 \family sans
10372 右ヘッダ
10373 \family default
10374
10375 \family sans
10376 受理日
10377 \family default
10378
10379 \family sans
10380 改訂
10381 \family default
10382
10383 \family sans
10384 採択日
10385 \family default
10386
10387 \family sans
10388 CCC
10389 \family default
10390
10391 \family sans
10392 論文ID
10393 \family default
10394
10395 \family sans
10396 著者住所
10397 \family default
10398
10399 \family sans
10400 廃棄用コメント
10401 \family default
10402 があります.これらは,ほとんど草稿用属性で,AGUクラス説明書で説明されています.
10403 \end_layout
10404
10405 \begin_layout Standard
10406 おそらく,これはまだ恐ろしく不完全です.
10407 \end_layout
10408
10409 \begin_layout Subsection
10410 新しいフロート
10411 \end_layout
10412
10413 \begin_layout Standard
10414
10415 \family sans
10416 平面表(Planotable
10417 \family default
10418 )と
10419 \family sans
10420 挿絵
10421 \family default
10422 (Plate)が新しいフロートです.また,
10423 \family sans
10424 表キャプション
10425 \family default
10426 も付け加えられています.
10427 \end_layout
10428
10429 \begin_layout Subsection
10430 サポートされている学術誌
10431 \end_layout
10432
10433 \begin_layout Itemize
10434
10435 \emph on
10436 Journal of Geophysical Research
10437 \emph default
10438
10439 \family typewriter
10440 jgrga.layout
10441 \family default
10442  — Martin Vermeer
10443 \end_layout
10444
10445 \begin_layout Standard
10446 ここにあなたの作ったものを加えてください.難しくはありません.
10447 \family typewriter
10448 jgrga.layout
10449 \family default
10450 と 
10451 \family typewriter
10452 aguplus.inc
10453 \family default
10454 を用例として見てください.
10455 \end_layout
10456
10457 \begin_layout Subsection
10458 バグと注意すべきこと
10459 \end_layout
10460
10461 \begin_layout Standard
10462 新しいレイアウトを使うためには,新規文書の作成時に以下の手順を行う必要があります.
10463 \end_layout
10464
10465 \begin_layout Enumerate
10466
10467 \emph on
10468 babelを無効にしてください.
10469 \emph default
10470 これは,
10471 \family sans
10472 ツール\SpecialChar menuseparator
10473 設定
10474 \family default
10475 メニュー項目で行うことができます(AGUの論文は常に英語ですよね.ですから他の言語は
10476 \emph on
10477 選ばないで下さい
10478 \emph default
10479 ).
10480 \end_layout
10481
10482 \begin_layout Enumerate
10483 使用文書の追加オプションフィールドに
10484 \family typewriter
10485 jgrga
10486 \family default
10487 と入力してください(すみません,これはバグです).
10488 \end_layout
10489
10490 \begin_layout Enumerate
10491 Bib\SpecialChar TeX
10492 差込枠の2番目のフィールドに
10493 \family sans
10494 agu
10495 \family default
10496 と入力して,書誌情報のスタイルに
10497 \family typewriter
10498 agu.bst
10499 \family default
10500 を使用していることを確認してください.標準スタイルはうまく動作しません.
10501 \end_layout
10502
10503 \begin_layout Section
10504 Broadway
10505 \end_layout
10506
10507 \begin_layout Standard
10508
10509 \noun on
10510 Garst Reese
10511 \noun default
10512
10513 \end_layout
10514
10515 \begin_layout Subsection
10516 はじめに
10517 \end_layout
10518
10519 \begin_layout Standard
10520 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
10521 \end_layout
10522
10523 \begin_layout Subsection
10524 特別な問題
10525 \end_layout
10526
10527 \begin_layout Standard
10528 Hollywoodと同様です.
10529 \end_layout
10530
10531 \begin_layout Subsection
10532 特別の機能
10533 \end_layout
10534
10535 \begin_layout Standard
10536
10537 \family sans
10538 話者
10539 \family default
10540 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
10541 \end_layout
10542
10543 \begin_layout Subsection
10544 用紙寸法と余白
10545 \end_layout
10546
10547 \begin_layout Standard
10548 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
10549 \end_layout
10550
10551 \begin_layout Subsection
10552 環境
10553 \end_layout
10554
10555 \begin_layout Standard
10556 以下の環境を使うことができます.右に記してある
10557 \begin_inset Flex Ruby
10558 status collapsed
10559
10560 \begin_layout Plain Layout
10561
10562 \begin_inset Argument post:1
10563 status collapsed
10564
10565 \begin_layout Plain Layout
10566 キー
10567 \end_layout
10568
10569 \end_inset
10570
10571
10572 \end_layout
10573
10574 \end_inset
10575
10576 割当ては,broadway.bindを使った場合のものです.
10577 \end_layout
10578
10579 \begin_layout Itemize
10580
10581 \family sans
10582 標準
10583 \begin_inset Newline newline
10584 \end_inset
10585
10586
10587 \family default
10588 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
10589 \end_layout
10590
10591 \begin_layout Itemize
10592
10593 \family sans
10594 ト書き
10595 \begin_inset space \hfill{}
10596 \end_inset
10597
10598 M-z n
10599 \begin_inset Newline newline
10600 \end_inset
10601
10602
10603 \family default
10604 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
10605 \end_layout
10606
10607 \begin_layout Itemize
10608
10609 \family sans
10610
10611 \begin_inset space \hfill{}
10612 \end_inset
10613
10614 M-z a
10615 \begin_inset Newline newline
10616 \end_inset
10617
10618
10619 \family default
10620 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
10621 \end_layout
10622
10623 \begin_layout Itemize
10624
10625 \family sans
10626 幕*
10627 \begin_inset space \hfill{}
10628 \end_inset
10629
10630 M-z S at
10631 \begin_inset Newline newline
10632 \end_inset
10633
10634
10635 \family default
10636 幕の副題です.単に中央揃えの文になります.
10637 \end_layout
10638
10639 \begin_layout Itemize
10640
10641 \family sans
10642 場面
10643 \begin_inset space \hfill{}
10644 \end_inset
10645
10646 M-z S-S
10647 \begin_inset Newline newline
10648 \end_inset
10649
10650
10651 \family default
10652 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
10653 \end_layout
10654
10655 \begin_layout Itemize
10656
10657 \family sans
10658 幕開きに:
10659 \begin_inset space \hfill{}
10660 \end_inset
10661
10662 M-z S-R
10663 \begin_inset Newline newline
10664 \end_inset
10665
10666
10667 \family default
10668 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
10669 \end_layout
10670
10671 \begin_layout Itemize
10672
10673 \family sans
10674 話者
10675 \begin_inset space \hfill{}
10676 \end_inset
10677
10678 M-z s
10679 \begin_inset Newline newline
10680 \end_inset
10681
10682
10683 \family default
10684 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
10685 \end_layout
10686
10687 \begin_layout Itemize
10688
10689 \family sans
10690 括弧付き
10691 \begin_inset space \hfill{}
10692 \end_inset
10693
10694 M-z p
10695 \begin_inset Newline newline
10696 \end_inset
10697
10698
10699 \family default
10700 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
10701 \family sans
10702 対話
10703 \family default
10704 の中だけで使用されます. 
10705 \end_layout
10706
10707 \begin_layout Itemize
10708
10709 \family sans
10710 対話
10711 \begin_inset space \hfill{}
10712 \end_inset
10713
10714 M-z d
10715 \begin_inset Newline newline
10716 \end_inset
10717
10718
10719 \family default
10720 話者の言う内容.
10721 \end_layout
10722
10723 \begin_layout Itemize
10724
10725 \family sans
10726 幕切れ
10727 \begin_inset space \hfill{}
10728 \end_inset
10729
10730 M-z S-C
10731 \begin_inset Newline newline
10732 \end_inset
10733
10734
10735 \family default
10736 幕が降ります.
10737 \end_layout
10738
10739 \begin_layout Itemize
10740
10741 \family sans
10742 タイトル
10743 \begin_inset space \hfill{}
10744 \end_inset
10745
10746 M-z S-T
10747 \end_layout
10748
10749 \begin_layout Itemize
10750
10751 \family sans
10752 著者
10753 \begin_inset space \hfill{}
10754 \end_inset
10755
10756 M-z S-A
10757 \end_layout
10758
10759 \begin_layout Itemize
10760
10761 \family sans
10762 右寄せ住所
10763 \begin_inset space \hfill{}
10764 \end_inset
10765
10766 M-z r
10767 \end_layout
10768
10769 \begin_layout Section
10770 Dinbrief
10771 \end_layout
10772
10773 \begin_layout Standard
10774 文書クラス
10775 \family sans
10776 dinbrief
10777 \family default
10778 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
10779 \family typewriter
10780 .../lyx/share/templates
10781 \family default
10782 にあるので,それを土台として使用してください.
10783 \end_layout
10784
10785 \begin_layout Section
10786 EGS各誌
10787 \family sans
10788 (egs)
10789 \end_layout
10790
10791 \begin_layout Standard
10792
10793 \noun on
10794 Martin Vermeer
10795 \noun default
10796
10797 \end_layout
10798
10799 \begin_layout Subsection
10800 概要
10801 \end_layout
10802
10803 \begin_layout Standard
10804 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです.必要とされる
10805 \family typewriter
10806 egs.cls
10807 \family default
10808 は,EGSのウェブサイト
10809 \begin_inset Flex URL
10810 status collapsed
10811
10812 \begin_layout Plain Layout
10813
10814 http://www.copernicus.org/
10815 \end_layout
10816
10817 \end_inset
10818
10819 からダウンロードできます.
10820 \end_layout
10821
10822 \begin_layout Subsection
10823 新しいスタイル
10824 \end_layout
10825
10826 \begin_layout Standard
10827 新しいスタイルとして,
10828 \family sans
10829 右寄せ住所
10830 \family default
10831
10832 \family sans
10833 \SpecialChar LaTeX
10834 タイトル
10835 \family default
10836
10837 \family sans
10838 所属
10839 \family default
10840
10841 \family sans
10842 学術誌名
10843 \family default
10844
10845 \family sans
10846 原稿番号
10847 \family default
10848
10849 \family sans
10850 筆頭著者
10851 \family default
10852
10853 \family sans
10854 受理日
10855 \family default
10856
10857 \family sans
10858 採択日
10859 \family default
10860
10861 \family sans
10862 オフセット
10863 \family default
10864 があります.現在のレイアウトファイルは,残念ながらほとんどモジュール化されておらず,さまざまな
10865 \family typewriter
10866 std*.inc
10867 \family default
10868 ファイルを読み込む形に変えた方が便利になると思われます.
10869 \end_layout
10870
10871 \begin_layout Section
10872 Elsevier各誌
10873 \end_layout
10874
10875 \begin_layout Standard
10876 \SpecialChar LyX
10877 ひな型ファイルの
10878 \family typewriter
10879 elsarticle.lyx
10880 \family default
10881 を参照してください.必要な情報は全てそこにあります.
10882 \end_layout
10883
10884 \begin_layout Section
10885 Foils (別名Foil\SpecialChar TeX
10886 )
10887 \begin_inset CommandInset label
10888 LatexCommand label
10889 name "sec:foiltex"
10890
10891 \end_inset
10892
10893
10894 \end_layout
10895
10896 \begin_layout Standard
10897
10898 \noun on
10899 Allan Rae
10900 \noun default
10901
10902 \end_layout
10903
10904 \begin_layout Subsection
10905 はじめに
10906 \end_layout
10907
10908 \begin_layout Standard
10909 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
10910 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
10911 ・seminar・b
10912 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
10913 \end_layout
10914
10915 \begin_layout Standard
10916 誤解のないように,わかりやすく明確に,もう一度言っておきます.
10917 \end_layout
10918
10919 \begin_layout Standard
10920 \begin_inset VSpace bigskip
10921 \end_inset
10922
10923
10924 \end_layout
10925
10926 \begin_layout Standard
10927 \align center
10928
10929 \size large
10930 本節は「
10931 \family sans
10932 FoilTeX
10933 \family default
10934 」クラス
10935 \emph on
10936 のみの
10937 \emph default
10938 解説を行います.
10939 \end_layout
10940
10941 \begin_layout Standard
10942 \begin_inset VSpace bigskip
10943 \end_inset
10944
10945
10946 \end_layout
10947
10948 \begin_layout Standard
10949
10950 \family sans
10951 transparencies (slides)
10952 \family default
10953 」の解説をお探しであれば,第
10954 \begin_inset CommandInset ref
10955 LatexCommand ref
10956 reference "sec:slitex"
10957
10958 \end_inset
10959
10960 節をご覧ください.お使いのコンピュータに
10961 \family sans
10962 foils
10963 \family default
10964 クラス
10965 \family sans
10966 FoilTeX
10967 \family default
10968 が導入されていなければ,
10969 \family sans
10970 foils
10971 \family default
10972 ほど良くはありませんが,おそらく
10973 \family sans
10974 slides
10975 \family default
10976 クラスを使わざるをえないでしょう.
10977 \end_layout
10978
10979 \begin_layout Standard
10980
10981 \family sans
10982 foils
10983 \family default
10984 クラスは,\SpecialChar LaTeX2e
10985 の一部として含まれている\SpecialChar LaTeX
10986 クラスファイル
10987 \family sans
10988 foils.cls
10989 \family default
10990 の第2.1版とともに使われるように設計されています.
10991 \end_layout
10992
10993 \begin_layout Subsection
10994 最初の一歩
10995 \end_layout
10996
10997 \begin_layout Standard
10998 いうまでもなく,この文書クラスを使うには,
10999 \family sans
11000 文書\SpecialChar menuseparator
11001 設定\SpecialChar menuseparator
11002 文書クラス
11003 \family default
11004 メニューの
11005 \family sans
11006 文書クラス
11007 \family default
11008 ドロップダウンで「
11009 \family sans
11010 FoilTeX
11011 \family default
11012 」を選択する必要があります.また,
11013 \family sans
11014 文書設定
11015 \family default
11016 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
11017 \end_layout
11018
11019 \begin_layout Itemize
11020
11021 \family sans
11022 文書設定
11023 \family default
11024 ダイアログ中の,
11025 \family sans
11026 両面文書
11027 \family default
11028 オプションと
11029 \family sans
11030 二段組文書
11031 \family default
11032 オプションは変更しないでください.これらは 
11033 \family sans
11034 foils
11035 \family default
11036 クラスでは無視されます.
11037 \end_layout
11038
11039 \begin_layout Itemize
11040 既定のフォント寸法は20ptであり,17
11041 \begin_inset space \thinspace{}
11042 \end_inset
11043
11044 pt・25
11045 \begin_inset space \thinspace{}
11046 \end_inset
11047
11048 pt・30
11049 \begin_inset space \thinspace{}
11050 \end_inset
11051
11052 ptを選択することも可能です.
11053 \end_layout
11054
11055 \begin_layout Itemize
11056 既定のフォントは
11057 \family sans
11058 sans
11059 \family default
11060  
11061 \family sans
11062 serif
11063 \family default
11064 ですが,数式ではすべて,通常のローマン体が使用されます.
11065 \end_layout
11066
11067 \begin_layout Itemize
11068 Foil\SpecialChar TeX
11069 は,35
11070 \begin_inset space \thinspace{}
11071 \end_inset
11072
11073 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
11074 \end_layout
11075
11076 \begin_layout Itemize
11077
11078 \family sans
11079 フロートの配置
11080 \family default
11081 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
11082 \end_layout
11083
11084 \begin_layout Itemize
11085 このクラスの
11086 \family sans
11087 ページレイアウト
11088 \family default
11089 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
11090 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
11091 \begin_inset CommandInset ref
11092 LatexCommand ref
11093 reference "sec:foilfoot"
11094
11095 \end_inset
11096
11097 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
11098 \emph on
11099 つねに
11100 \emph default
11101 付けられず,(ロゴが定義されていれば)ロゴは,
11102 \emph on
11103 つねに
11104 \emph default
11105 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
11106 \begin_inset Separator latexpar
11107 \end_inset
11108
11109
11110 \end_layout
11111
11112 \begin_deeper
11113 \begin_layout Labeling
11114 \labelwidthstring MMMMMMM
11115
11116 \family sans
11117 \series bold
11118 empty
11119 \family default
11120 \series default
11121  最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
11122 \end_layout
11123
11124 \begin_layout Labeling
11125 \labelwidthstring MMMMMMM
11126
11127 \family sans
11128 \series bold
11129 plain
11130 \family default
11131 \series default
11132  最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
11133 \end_layout
11134
11135 \begin_layout Labeling
11136 \labelwidthstring MMMMMMM
11137
11138 \series bold
11139 foilheadings
11140 \series default
11141  ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
11142 \end_layout
11143
11144 \begin_layout Labeling
11145 \labelwidthstring MMMMMMM
11146
11147 \series bold
11148 fancy
11149 \series default
11150  これは
11151 \family sans
11152 fancyheadings
11153 \family default
11154 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
11155 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
11156 \end_layout
11157
11158 \end_deeper
11159 \begin_layout Subsubsection
11160 任意設定クラスオプション
11161 \end_layout
11162
11163 \begin_layout Standard
11164 以下のオプションは
11165 \family sans
11166 文書設定
11167 \family default
11168 ダイアログの任意設定クラスオプションボックスで使うことができます.
11169 \end_layout
11170
11171 \begin_layout Labeling
11172 \labelwidthstring MMMMMMx
11173
11174 \series bold
11175 35mmSlide
11176 \series default
11177  これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
11178 \begin_inset space \space{}
11179 \end_inset
11180
11181 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
11182 \end_layout
11183
11184 \begin_layout Labeling
11185 \labelwidthstring MMMMMMx
11186
11187 \series bold
11188 headrule
11189 \series default
11190  タイトルページを除くすべてのページのへッダの下に罫線を入れます.
11191 \end_layout
11192
11193 \begin_layout Labeling
11194 \labelwidthstring MMMMMMx
11195
11196 \series bold
11197 footrule
11198 \series default
11199  タイトルページを除くすべてのページのフッタの上に罫線を入れます.
11200 \end_layout
11201
11202 \begin_layout Labeling
11203 \labelwidthstring MMMMMMx
11204
11205 \series bold
11206 dvips
11207 \series default
11208  これは,新規
11209 \family sans
11210 foils
11211 \family default
11212 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
11213 に指示します.
11214 \end_layout
11215
11216 \begin_layout Labeling
11217 \labelwidthstring MMMMMMx
11218
11219 \series bold
11220 landscape
11221 \series default
11222  このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
11223 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
11224 \family sans
11225 Foilhead
11226 \family default
11227 環境と
11228 \family sans
11229 Rotatefoilhead
11230 \family default
11231 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
11232 \end_layout
11233
11234 \begin_layout Labeling
11235 \labelwidthstring MMMMMMx
11236
11237 \series bold
11238 leqno
11239 \series default
11240  数式番号を左側に付けます.
11241 \end_layout
11242
11243 \begin_layout Labeling
11244 \labelwidthstring MMMMMMx
11245
11246 \series bold
11247 fleqn
11248 \series default
11249  数式を左揃えにします.
11250 \end_layout
11251
11252 \begin_layout Subsection
11253 サポートされる環境
11254 \end_layout
11255
11256 \begin_layout Standard
11257 他のクラスで標準的にサポートされている環境は,
11258 \family sans
11259 foils
11260 \family default
11261 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
11262 が提供している環境と,\SpecialChar LyX
11263 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
11264 \end_layout
11265
11266 \begin_layout Standard
11267
11268 \family sans
11269 \begin_inset Flex Multiple Columns
11270 status open
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 箇条書き(連番)
11288 \end_layout
11289
11290 \begin_layout Itemize
11291
11292 \family sans
11293 箇条書き(記述)
11294 \end_layout
11295
11296 \begin_layout Itemize
11297
11298 \family sans
11299 箇条書き(リスト)
11300 \end_layout
11301
11302 \begin_layout Itemize
11303
11304 \family sans
11305 \SpecialChar LyX
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 \begin_layout Itemize
11364
11365 \family sans
11366 右寄せ住所
11367 \end_layout
11368
11369 \begin_layout Itemize
11370
11371 \family sans
11372 キャプション
11373 \end_layout
11374
11375 \begin_layout Itemize
11376
11377 \family sans
11378 コメント
11379 \end_layout
11380
11381 \end_inset
11382
11383
11384 \end_layout
11385
11386 \begin_layout Standard
11387 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
11388 \family sans
11389 Foil
11390 \family default
11391 \SpecialChar TeX
11392 は新しいスライドを始める以下のようなコマンドを備えています.
11393 \end_layout
11394
11395 \begin_layout Itemize
11396
11397 \family sans
11398 スライドタイトル(Foilhead)
11399 \end_layout
11400
11401 \begin_layout Itemize
11402
11403 \family sans
11404 横置きスライドタイトル(Rotatefoilhead)
11405 \end_layout
11406
11407 \begin_layout Standard
11408 \SpecialChar LyX
11409 は,以下のような,これらを若干修正した環境も用意しています.
11410 \end_layout
11411
11412 \begin_layout Itemize
11413
11414 \family sans
11415 スライドタイトル(小)(ShortFoilhead)
11416 \end_layout
11417
11418 \begin_layout Itemize
11419
11420 \family sans
11421 横置きスライドタイトル(小)(ShortRotatefoilhead)
11422 \end_layout
11423
11424 \begin_layout Standard
11425 これらの違いは次節で説明します.
11426 \end_layout
11427
11428 \begin_layout Standard
11429 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
11430 \family sans
11431 Foil
11432 \family default
11433 \SpecialChar TeX
11434 はそれらを説明するのに便利な環境を幅広く用意しています.
11435 \end_layout
11436
11437 \begin_layout Standard
11438
11439 \family sans
11440 \begin_inset Flex Multiple Columns
11441 status open
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 \begin_layout Itemize
11492
11493 \family sans
11494 系*
11495 \end_layout
11496
11497 \begin_layout Itemize
11498
11499 \family sans
11500 命題*
11501 \end_layout
11502
11503 \begin_layout Itemize
11504
11505 \family sans
11506 定義*
11507 \end_layout
11508
11509 \end_inset
11510
11511
11512 \end_layout
11513
11514 \begin_layout Standard
11515 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
11516 で追加された以下の2つの箇条書き環境があります.
11517 \end_layout
11518
11519 \begin_layout Itemize
11520
11521 \family sans
11522 箇条書き(チック)
11523 \end_layout
11524
11525 \begin_layout Itemize
11526
11527 \family sans
11528 箇条書き(クロス)
11529 \end_layout
11530
11531 \begin_layout Standard
11532 Foil\SpecialChar TeX
11533 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
11534 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
11535 \end_layout
11536
11537 \begin_layout Standard
11538 この目的のためには,以下のコマンドスタイルがあります(
11539 \shape smallcaps
11540 Martin Vermeer).
11541 \end_layout
11542
11543 \begin_layout Standard
11544 \begin_inset Flex Multiple Columns
11545 status open
11546
11547 \begin_layout Itemize
11548
11549 \family sans
11550 グラフィックスロゴ
11551 \end_layout
11552
11553 \begin_layout Itemize
11554
11555 \family sans
11556 配布制限
11557 \end_layout
11558
11559 \begin_layout Itemize
11560
11561 \family sans
11562 右フッタ
11563 \end_layout
11564
11565 \begin_layout Itemize
11566
11567 \family sans
11568 右ヘッダ
11569 \end_layout
11570
11571 \begin_layout Itemize
11572
11573 \family sans
11574 左ヘッダ
11575 \family default
11576
11577 \begin_inset Separator latexpar
11578 \end_inset
11579
11580
11581 \end_layout
11582
11583 \begin_deeper
11584 \begin_layout Plain Layout
11585 \begin_inset space ~
11586 \end_inset
11587
11588
11589 \end_layout
11590
11591 \end_deeper
11592 \end_inset
11593
11594
11595 \end_layout
11596
11597 \begin_layout Standard
11598 Foil\SpecialChar TeX
11599 が提供しているコマンドで,\SpecialChar LyX
11600 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
11601 \begin_inset CommandInset ref
11602 LatexCommand ref
11603 reference "sec:unsuppfoils"
11604
11605 \end_inset
11606
11607 節で行います.
11608 \end_layout
11609
11610 \begin_layout Subsection
11611 スライドの組を作る
11612 \end_layout
11613
11614 \begin_layout Standard
11615 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
11616
11617 \family typewriter
11618 examples
11619 \family default
11620 フォルダにある
11621 \family typewriter
11622 Foils.lyx
11623 \family default
11624 ファイルをご覧ください.
11625 \end_layout
11626
11627 \begin_layout Subsubsection
11628 タイトルページを作る
11629 \end_layout
11630
11631 \begin_layout Standard
11632
11633 \family sans
11634 タイトル
11635 \family default
11636
11637 \family sans
11638 著者
11639 \family default
11640
11641 \family sans
11642 日付
11643 \family default
11644
11645 \family sans
11646 概要
11647 \family default
11648 環境のある他のクラスとは異なり,
11649 \family sans
11650 foils
11651 \family default
11652 は独立したページにタイトルを作成します.
11653 \family sans
11654 日付
11655 \family default
11656 環境を使用しなかった場合には,\SpecialChar LaTeX
11657 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
11658 \end_layout
11659
11660 \begin_layout Subsubsection
11661 新しいスライドを開始する
11662 \end_layout
11663
11664 \begin_layout Standard
11665 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
11666 \family sans
11667 スライドタイトル(Foilhead)
11668 \family default
11669
11670 \family sans
11671 スライドタイトル(小)(ShortFoilhead)
11672 \family default
11673 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
11674 \end_layout
11675
11676 \begin_layout Standard
11677 横向きのスライドは,
11678 \family sans
11679 横向きスライドタイトル(Rotatefoilhead)
11680 \family default
11681 か横向きスライドタイトル(小)(
11682 \family sans
11683 ShortRotatefoilhead)
11684 \family default
11685 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
11686 (約1.27cm)小さくなります.
11687 \end_layout
11688
11689 \begin_layout Standard
11690 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
11691 \family typewriter
11692 dvips
11693 \family default
11694 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
11695 \family typewriter
11696 dvips
11697 \family default
11698 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
11699 \end_layout
11700
11701 \begin_layout Subsubsection
11702 定理・補題・証明など
11703 \end_layout
11704
11705 \begin_layout Standard
11706 \SpecialChar LyX
11707 中の小さなバグによって,これらの環境の同じ型をお互いに直接続けて置くことはできません.これらは何かによって分離されなくてはなりません.仮に二つ続けて置いても,2
11708 つの環境をマージしたかのように,前の環境が延長されるだけです.この問題を回避するにはどうすればよいのでしょうか.最も簡単な方法は,二つの環境の間に何か文章を置く
11709 か,あるいは二つの間に「
11710 \family typewriter
11711 %
11712 \family default
11713 」だけから成る\SpecialChar LaTeX
11714 環境を置くことです.これによって,\SpecialChar LyX
11715 は2つの別々の環境を生成するように強制され,正しい\SpecialChar LaTeX
11716 出力を得ることができます.\SpecialChar LyX
11717 頒布版に含まれる用例ファイルに例があ
11718 ります.この問題は,二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください.
11719 \end_layout
11720
11721 \begin_layout Subsubsection
11722 箇条書き
11723 \end_layout
11724
11725 \begin_layout Standard
11726 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
11727 他の箇条書き環境について詳しく知りたい場合には,
11728 \emph on
11729 ユーザーの手引き
11730 \emph default
11731 をご覧ください.記号による箇条書きを使用したい場合には,上記第
11732 \begin_inset CommandInset ref
11733 LatexCommand ref
11734 reference "sec:ブリット"
11735
11736 \end_inset
11737
11738 節の
11739 \family sans
11740 箇条書き(記号)ブリットの指定
11741 \family default
11742 の節も,読まれることが望ましいでしょう.
11743 \end_layout
11744
11745 \begin_layout Standard
11746
11747 \family sans
11748 箇条書き(チック)
11749 \family default
11750
11751 \family sans
11752 箇条書き(クロス)
11753 \family default
11754 の二つの新しい様式は,チェック印や
11755 \begin_inset Formula $\times$
11756 \end_inset
11757
11758 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
11759 \family sans
11760 箇条書き(記号)
11761 \family default
11762 の派生型を専用に用意したものに過ぎません.ただし,これらは,
11763 \family typewriter
11764 psnfss
11765 \family default
11766 パッケージが導入済であることを要求します.
11767 \end_layout
11768
11769 \begin_layout Subsubsection
11770 図と表
11771 \end_layout
11772
11773 \begin_layout Standard
11774 Foil\SpecialChar TeX
11775 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
11776 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
11777 \end_layout
11778
11779 \begin_layout Subsubsection
11780 ページヘッダおよびページフッタ
11781 \begin_inset CommandInset label
11782 LatexCommand label
11783 name "sec:foilfoot"
11784
11785 \end_inset
11786
11787
11788 \end_layout
11789
11790 \begin_layout Standard
11791
11792 \family sans
11793 グラフィックスロゴ
11794 \family default
11795
11796 \family sans
11797 配布制限
11798 \family default
11799 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by 
11800 \family sans
11801 Foil
11802 \family default
11803 \SpecialChar TeX
11804 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
11805 \end_layout
11806
11807 \begin_layout Standard
11808 スライドの残り三隅には,
11809 \family sans
11810 右フッタ
11811 \family default
11812 (既定ではページ番号)・
11813 \family sans
11814 右ヘッダ
11815 \family default
11816 (右上)・
11817 \family sans
11818 左ヘッダ
11819 \family default
11820 (左上)を使って文字を入れることができます.
11821 \end_layout
11822
11823 \begin_layout Subsection
11824 サポートされない 
11825 \family sans
11826 Foil
11827 \family default
11828 \SpecialChar TeX
11829 機能
11830 \begin_inset CommandInset label
11831 LatexCommand label
11832 name "sec:unsuppfoils"
11833
11834 \end_inset
11835
11836
11837 \end_layout
11838
11839 \begin_layout Standard
11840 以下で言及されているコマンドは,
11841 \family sans
11842 \SpecialChar LaTeX
11843
11844 \family default
11845 環境内で設定されるか,他の環境中の
11846 \family sans
11847 \SpecialChar TeX
11848 コード
11849 \family default
11850 として設定される必要があります.
11851 \end_layout
11852
11853 \begin_layout Subsubsection
11854 長さ
11855 \end_layout
11856
11857 \begin_layout Standard
11858 長さは,すべて
11859 \family typewriter
11860
11861 \backslash
11862 setlength{
11863 \family default
11864 \emph on
11865 長さ名
11866 \family typewriter
11867 \emph default
11868 }{
11869 \family default
11870 \emph on
11871 新規長さ
11872 \family typewriter
11873 \emph default
11874 }
11875 \family default
11876 コマンドで調節されます.ここで
11877 \emph on
11878 長さ名
11879 \emph default
11880 は,変更したい長さに付けられている名前で置き換え,
11881 \emph on
11882 新規長さ
11883 \emph default
11884 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
11885 \family typewriter
11886
11887 \backslash
11888 textwidth
11889 \family default
11890 のように文書比あるいはフォント基準の長さで指定する必要があります.
11891 \end_layout
11892
11893 \begin_layout Standard
11894
11895 \family typewriter
11896
11897 \backslash
11898 foilheadskip
11899 \family default
11900 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
11901 \begin_inset space \space{}
11902 \end_inset
11903
11904 inだけスライド本文に近づけるには,プリアンブルに
11905 \family typewriter
11906
11907 \backslash
11908 setlength{
11909 \backslash
11910 foilheadskip}{-0.5in}
11911 \family default
11912 と書き込みます.
11913 \end_layout
11914
11915 \begin_layout Standard
11916 フロート周囲の余白は,以下の長さを設定することで調整することができます.
11917 \end_layout
11918
11919 \begin_layout Labeling
11920 \labelwidthstring MMMMMMMMMMM
11921
11922 \family typewriter
11923
11924 \backslash
11925 abovefloatskip
11926 \family default
11927  本文とフロート上辺との間隔
11928 \end_layout
11929
11930 \begin_layout Labeling
11931 \labelwidthstring MMMMMMMMMMM
11932
11933 \family typewriter
11934
11935 \backslash
11936 abovecaptionskip
11937 \family default
11938  フロートとキャプションとの間隔
11939 \end_layout
11940
11941 \begin_layout Labeling
11942 \labelwidthstring MMMMMMMMMMM
11943
11944 \family typewriter
11945
11946 \backslash
11947 belowcaptionskip
11948 \family default
11949  キャプションとそれに続く本文との間隔
11950 \end_layout
11951
11952 \begin_layout Labeling
11953 \labelwidthstring MMMMMMMMMMM
11954
11955 \family typewriter
11956
11957 \backslash
11958 captionwidth
11959 \family default
11960  この長さを調整することでキャプションを,周囲の本文より短くすることができます.
11961 \family typewriter
11962
11963 \backslash
11964 textwidth
11965 \family default
11966 に対する相対的な長さで調整するのが最も良いでしょう.
11967 \end_layout
11968
11969 \begin_layout Standard
11970 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
11971 \end_layout
11972
11973 \begin_layout Labeling
11974 \labelwidthstring MMMMMMMMMMM
11975
11976 \family typewriter
11977
11978 \backslash
11979 abovetitleskip
11980 \family default
11981  へッダとタイトルとの間隔
11982 \end_layout
11983
11984 \begin_layout Labeling
11985 \labelwidthstring MMMMMMMMMMM
11986
11987 \family typewriter
11988
11989 \backslash
11990 titleauthorskip
11991 \family default
11992  
11993 \family sans
11994 タイトル
11995 \family default
11996 環境と
11997 \family sans
11998 著者
11999 \family default
12000 環境との間隔
12001 \end_layout
12002
12003 \begin_layout Labeling
12004 \labelwidthstring MMMMMMMMMMM
12005
12006 \family typewriter
12007
12008 \backslash
12009 authorauthorskip
12010 \family default
12011  著者が複数いる場合の
12012 \family sans
12013 著者
12014 \family default
12015 行の間隔
12016 \end_layout
12017
12018 \begin_layout Labeling
12019 \labelwidthstring MMMMMMMMMMM
12020
12021 \family typewriter
12022
12023 \backslash
12024 authordateskip
12025 \family default
12026  
12027 \family sans
12028 著者
12029 \family default
12030
12031 \family sans
12032 日付
12033 \family default
12034 との間隔
12035 \end_layout
12036
12037 \begin_layout Labeling
12038 \labelwidthstring MMMMMMMMMMM
12039
12040 \family typewriter
12041
12042 \backslash
12043 dateabstractskip
12044 \family default
12045  
12046 \family sans
12047 日付
12048 \family default
12049
12050 \family sans
12051 概要
12052 \family default
12053 との間隔
12054 \end_layout
12055
12056 \begin_layout Standard
12057 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
12058 \family typewriter
12059
12060 \backslash
12061 zerolistvertdimens
12062 \family default
12063 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
12064 \family typewriter
12065
12066 \backslash
12067 setlength
12068 \family default
12069 を使う必要がないことに注意してください.
12070 \end_layout
12071
12072 \begin_layout Subsubsection
12073 へッダとフッタ
12074 \end_layout
12075
12076 \begin_layout Standard
12077
12078 \family typewriter
12079
12080 \backslash
12081 LogoOn
12082 \family default
12083 および
12084 \family typewriter
12085
12086 \backslash
12087 LogoOff
12088 \family default
12089 は,
12090 \family typewriter
12091 MyLogo
12092 \family default
12093 で定義したロゴを特定のページに入れるかどうかを制御します.
12094 \family typewriter
12095
12096 \backslash
12097 LogoOff
12098 \family default
12099 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
12100 \family typewriter
12101
12102 \backslash
12103 LogoOff
12104 \family default
12105 を置き,次のスライドタイトルの直後に直接
12106 \family typewriter
12107
12108 \backslash
12109 LogoOn
12110 \family default
12111 を置いてください.
12112 \end_layout
12113
12114 \begin_layout Standard
12115
12116 \family sans
12117 文書レイアウト
12118 \family default
12119 ダイアログで
12120 \family sans
12121 fancy
12122 \family default
12123 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
12124 \family typewriter
12125
12126 \backslash
12127 let
12128 \backslash
12129 headwidth
12130 \backslash
12131 textwidth
12132 \family default
12133 を加える必要があるでしょう.これは,
12134 \family sans
12135 fancyheadings
12136 \family default
12137 パッケージが提供するページレイアウトと
12138 \family sans
12139 foils
12140 \family default
12141 クラスの提供するページレイアウトの間に衝突が発生するためです.
12142 \end_layout
12143
12144 \begin_layout Section
12145 Hollywood(Hollywoodスペック・スクリプト)
12146 \end_layout
12147
12148 \begin_layout Standard
12149
12150 \noun on
12151 Garst Reese
12152 \noun default
12153
12154 \end_layout
12155
12156 \begin_layout Subsection
12157 はじめに
12158 \end_layout
12159
12160 \begin_layout Standard
12161 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
12162 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
12163 urier 12
12164 \begin_inset space \space{}
12165 \end_inset
12166
12167 ptフォントを使わなければならず,イタリック体は用いてはいけません.
12168 \end_layout
12169
12170 \begin_layout Subsection
12171 特別な問題
12172 \end_layout
12173
12174 \begin_layout Standard
12175 話者の行は,文の途中で改行することは
12176 \emph on
12177 決して
12178 \emph default
12179 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
12180 \family sans
12181 話者
12182 \family default
12183 名を再度書き,その後に(Cont'd)と加えます.
12184 \end_layout
12185
12186 \begin_layout Subsection
12187 特別な機能
12188 \end_layout
12189
12190 \begin_layout Standard
12191
12192 \family sans
12193 話者
12194 \family default
12195 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
12196 きに話者名を挿入するのにも使用することができます.
12197 \end_layout
12198
12199 \begin_layout Subsection
12200 用紙寸法と余白
12201 \end_layout
12202
12203 \begin_layout Standard
12204 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
12205 \end_layout
12206
12207 \begin_layout Subsection
12208 環境
12209 \end_layout
12210
12211 \begin_layout Standard
12212 以下の環境が利用可能です.右に示されている
12213 \begin_inset Flex Ruby
12214 status collapsed
12215
12216 \begin_layout Plain Layout
12217
12218 \begin_inset Argument post:1
12219 status collapsed
12220
12221 \begin_layout Plain Layout
12222 キー
12223 \end_layout
12224
12225 \end_inset
12226
12227
12228 \end_layout
12229
12230 \end_inset
12231
12232 割当てを使用するには,hollywood.bindを使用してください.
12233 \end_layout
12234
12235 \begin_layout Itemize
12236
12237 \family sans
12238 一般
12239 \begin_inset Newline newline
12240 \end_inset
12241
12242
12243 \family default
12244 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
12245 \end_layout
12246
12247 \begin_layout Itemize
12248 フェイドイン:
12249 \begin_inset space \hfill{}
12250 \end_inset
12251
12252
12253 \family sans
12254 M-z S-I
12255 \family default
12256
12257 \begin_inset Newline newline
12258 \end_inset
12259
12260 通常,この後には「Sallyは目を覚ますと」のように続きます.
12261 \end_layout
12262
12263 \begin_layout Itemize
12264
12265 \family sans
12266 屋内:
12267 \begin_inset space \hfill{}
12268 \end_inset
12269
12270 M-z i
12271 \begin_inset Newline newline
12272 \end_inset
12273
12274
12275 \family default
12276 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
12277 ます.
12278 \end_layout
12279
12280 \begin_layout Itemize
12281
12282 \family sans
12283 屋外:
12284 \begin_inset space \hfill{}
12285 \end_inset
12286
12287 M-z e
12288 \begin_inset Newline newline
12289 \end_inset
12290
12291
12292 \family default
12293 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
12294 \end_layout
12295
12296 \begin_layout Itemize
12297
12298 \family sans
12299 話者
12300 \begin_inset space \hfill{}
12301 \end_inset
12302
12303 M-z s
12304 \begin_inset Newline newline
12305 \end_inset
12306
12307
12308 \family default
12309 話す役.
12310 \end_layout
12311
12312 \begin_layout Itemize
12313
12314 \family sans
12315 括弧付き
12316 \begin_inset space \hfill{}
12317 \end_inset
12318
12319 M-z p
12320 \begin_inset Newline newline
12321 \end_inset
12322
12323 話者
12324 \family default
12325 への指示.自動的に括弧()が挿入されますが,\SpecialChar LyX
12326 上で表示されるのは,左括弧( のみです.印刷出力には右括弧も表示されます.
12327 \end_layout
12328
12329 \begin_layout Itemize
12330
12331 \family sans
12332 対話
12333 \begin_inset space \hfill{}
12334 \end_inset
12335
12336 M-z d
12337 \begin_inset Newline newline
12338 \end_inset
12339
12340 話者
12341 \family default
12342 が話す内容.
12343 \end_layout
12344
12345 \begin_layout Itemize
12346
12347 \family sans
12348 画面遷移
12349 \begin_inset space \hfill{}
12350 \end_inset
12351
12352 M-z t
12353 \begin_inset Newline newline
12354 \end_inset
12355
12356
12357 \family default
12358 カメラの動きの指示.例:CUT TO:.
12359 \end_layout
12360
12361 \begin_layout Itemize
12362
12363 \family sans
12364 フェイドアウト:
12365 \begin_inset space \hfill{}
12366 \end_inset
12367
12368 M-z S-I
12369 \end_layout
12370
12371 \begin_layout Itemize
12372
12373 \family sans
12374 著者
12375 \begin_inset space \hfill{}
12376 \end_inset
12377
12378 M-z S-A
12379 \end_layout
12380
12381 \begin_layout Itemize
12382
12383 \family sans
12384 タイトル
12385 \begin_inset space \hfill{}
12386 \end_inset
12387
12388 M-z S-T
12389 \end_layout
12390
12391 \begin_layout Itemize
12392
12393 \family sans
12394 右寄せ住所
12395 \begin_inset space \hfill{}
12396 \end_inset
12397
12398 M-z r
12399 \end_layout
12400
12401 \begin_layout Subsection
12402 脚本で使われる特別な用語
12403 \end_layout
12404
12405 \begin_layout Itemize
12406 (O.S) — off screen
12407 \end_layout
12408
12409 \begin_layout Itemize
12410 (V.0) — voice over
12411 \end_layout
12412
12413 \begin_layout Itemize
12414 b.g.
12415  — background
12416 \end_layout
12417
12418 \begin_layout Itemize
12419 C.U.
12420  — close-up
12421 \end_layout
12422
12423 \begin_layout Itemize
12424 PAN — camera movement
12425 \end_layout
12426
12427 \begin_layout Itemize
12428 INSERT — cut to close-up of
12429 \end_layout
12430
12431 \begin_layout Section
12432 ijmpcおよびijmpd
12433 \end_layout
12434
12435 \begin_layout Standard
12436
12437 \noun on
12438 Panayotis Papasotiriou
12439 \noun default
12440
12441 \end_layout
12442
12443 \begin_layout Subsection
12444 概観
12445 \end_layout
12446
12447 \begin_layout Standard
12448 ijpmcパッケージは,
12449 \emph on
12450 International Journal of Modern Physics C
12451 \emph default
12452 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
12453 \emph on
12454 International Journal of Modern Physics D
12455 \emph default
12456 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
12457 \family typewriter
12458 ws-ijmpc.cls
12459 \family default
12460 および
12461 \family typewriter
12462 ws-ijmpd.cls
12463 \family default
12464 です.これらのファイルは,著者のための指針とともに,
12465 \begin_inset Flex URL
12466 status collapsed
12467
12468 \begin_layout Plain Layout
12469
12470 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12471 \end_layout
12472
12473 \end_inset
12474
12475 および
12476 \begin_inset Flex URL
12477 status collapsed
12478
12479 \begin_layout Plain Layout
12480
12481 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12482 \end_layout
12483
12484 \end_inset
12485
12486 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
12487 は,これらのパッ
12488 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
12489 で書き上げましたが,何らの問題も生じませんでした.
12490 \end_layout
12491
12492 \begin_layout Subsection
12493 論文を書く
12494 \end_layout
12495
12496 \begin_layout Standard
12497 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
12498 \family sans
12499 ファイル\SpecialChar menuseparator
12500 新規(ひな型使用)
12501 \family default
12502 をクリックして,ひな型
12503 \family typewriter
12504 ijmpc.lyx
12505 \family default
12506 もしくは
12507 \family typewriter
12508 ijmpd.lyx
12509 \family default
12510 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
12511 \family typewriter
12512 <>
12513 \family default
12514 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
12515 \end_layout
12516
12517 \begin_layout Enumerate
12518 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
12519 中でこれらを変更することはできません.
12520 \end_layout
12521
12522 \begin_layout Enumerate
12523 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
12524 \family sans
12525 ツール\SpecialChar menuseparator
12526 設定
12527 \family default
12528 をクリックして,
12529 \family sans
12530 言語オプション
12531 \family default
12532 タブを選択し,言語設定で
12533 \family sans
12534 Babelを使う
12535 \family default
12536 チェックボックスを無効にしてから,
12537 \family sans
12538 適用
12539 \family default
12540 をクリックすれば,設定することができます(この変更を固定するなら
12541 \family sans
12542 保存
12543 \family default
12544 を押してください).
12545 \end_layout
12546
12547 \begin_layout Enumerate
12548 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
12549 \end_layout
12550
12551 \begin_layout Enumerate
12552 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
12553 ートされていませんので,ご注意ください.
12554 \end_layout
12555
12556 \begin_layout Enumerate
12557 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12558 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
12559 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
12560 \end_layout
12561
12562 \begin_layout Enumerate
12563 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
12564 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
12565 されます.引用に通常の本文を使用したい場合には,「See Ref.
12566 \begin_inset space \space{}
12567 \end_inset
12568
12569
12570 \family typewriter
12571
12572 \backslash
12573 refcite{
12574 \family default
12575
12576 \begin_inset Flex Ruby
12577 status collapsed
12578
12579 \begin_layout Plain Layout
12580
12581 \family typewriter
12582
12583 \family default
12584
12585 \begin_inset Argument post:1
12586 status collapsed
12587
12588 \begin_layout Plain Layout
12589 キー
12590 \end_layout
12591
12592 \end_inset
12593
12594
12595 \end_layout
12596
12597 \end_inset
12598
12599
12600 \family typewriter
12601 }
12602 \family default
12603 」のように
12604 \family typewriter
12605 refcite
12606 \family default
12607 コマンドを使用してください.
12608 \end_layout
12609
12610 \begin_layout Enumerate
12611 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
12612 \end_layout
12613
12614 \begin_layout Enumerate
12615 付録は,論文中,謝辞の
12616 \emph on
12617
12618 \emph default
12619 かつ書誌情報の
12620 \emph on
12621
12622 \emph default
12623 であれば,入れることができます.\SpecialChar LyX
12624 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
12625 てはなりません.この環境は,\SpecialChar LaTeX
12626 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
12627 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
12628 付録であることを明示します.「付録領域」は,最初の付録の前に
12629 \emph on
12630 なくてはならない
12631 \emph default
12632 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
12633 \end_layout
12634
12635 \begin_layout Enumerate
12636 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
12637 \family typewriter
12638 tbl
12639 \family default
12640 コマンドを使用します.そのため,\SpecialChar LyX
12641 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
12642 コードを少し使えば,この問題を回避して,キャプション
12643 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
12644 コードで
12645 \family typewriter
12646
12647 \backslash
12648 tbl{表キャプション}{
12649 \family default
12650 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
12651 コード
12652 \family typewriter
12653 }
12654 \family default
12655 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
12656 欲しい場合に,表フロート全体を
12657 \family typewriter
12658 .tex
12659 \family default
12660 ファイルに収め,このファイルを\SpecialChar LyX
12661 文書に取り込んでください(
12662 \family sans
12663 挿入\SpecialChar menuseparator
12664 ファイル\SpecialChar menuseparator
12665 子文書
12666 \family default
12667 ).表フロートの作り方についての詳細は,各パッケージに含まれている
12668 \family typewriter
12669 ws-ijmpc.tex
12670 \family default
12671 または
12672 \family typewriter
12673 ws-ijmpd.tex
12674 \family default
12675 ファイルをご覧ください.
12676 \end_layout
12677
12678 \begin_layout Subsection
12679 原稿を投稿するための準備
12680 \end_layout
12681
12682 \begin_layout Standard
12683 論文を投稿する前には,\SpecialChar LyX
12684 文書を\SpecialChar LaTeX
12685 ファイルに書き出し(
12686 \family sans
12687 ファイル\SpecialChar menuseparator
12688 書き出し\SpecialChar menuseparator
12689 \SpecialChar LaTeX
12690
12691 \family default
12692 )
12693 \begin_inset Foot
12694 status open
12695
12696 \begin_layout Plain Layout
12697 実は,\SpecialChar LaTeX
12698  (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
12699 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
12700 \end_layout
12701
12702 \end_inset
12703
12704 ,その
12705 \family typewriter
12706 .tex
12707 \family default
12708 ファイルに以下の変更を加える必要があります.
12709 \end_layout
12710
12711 \begin_layout Enumerate
12712
12713 \family typewriter
12714
12715 \backslash
12716 documentclass
12717 \family default
12718 コマンドより前にあるコメント行を削除する.
12719 \end_layout
12720
12721 \begin_layout Enumerate
12722 自身で明示的に\SpecialChar LaTeX
12723 プリアンブルに置いたコマンドを除き,
12724 \family typewriter
12725
12726 \backslash
12727 makeatletter
12728 \family default
12729 コマンドと
12730 \family typewriter
12731
12732 \backslash
12733 makeatother
12734 \family default
12735 コマンドの間にあるものをすべて削除する.
12736 \end_layout
12737
12738 \begin_layout Standard
12739 こうして修正を加えた
12740 \family typewriter
12741 .tex
12742 \family default
12743 ファイルを保存し,必要な回数\SpecialChar LaTeX
12744 で処理してください.それによって得られた
12745 \family typewriter
12746 .dvi
12747 \family default
12748 文書も確認された方がよろしいでしょう.
12749 \end_layout
12750
12751 \begin_layout Subsection
12752 \SpecialChar TeX
12753 コードの使用
12754 \end_layout
12755
12756 \begin_layout Standard
12757 \SpecialChar TeX
12758 コードを使用するのは,2つのコマンドに限られ,これらは文書の最初に置かれなくてはなりません.論文をひな型
12759 \family typewriter
12760 ijmpc.lyx
12761 \family default
12762 または
12763 \family typewriter
12764 ijmpd.lyx
12765 \family default
12766 を使用して書き始めた場合には,これら必要な\SpecialChar TeX
12767 コードは,すでに書き込まれています.通常,これらを削除する必要はありません.2つのうち1番めの\SpecialChar TeX
12768 コードのみが,奇数ページ
12769 および偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために,修正する必要があります.この\SpecialChar TeX
12770 コードは,
12771 \family typewriter
12772
12773 \backslash
12774 markboth{著者名}{論文の短縮タイトル}
12775 \family default
12776 という形である必要があります.
12777 \end_layout
12778
12779 \begin_layout Section
12780 iopart
12781 \end_layout
12782
12783 \begin_layout Standard
12784
12785 \noun on
12786 Uwe Stöhr
12787 \noun default
12788
12789 \end_layout
12790
12791 \begin_layout Subsection
12792 概要
12793 \end_layout
12794
12795 \begin_layout Standard
12796 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12797 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
12798 \begin_inset Flex URL
12799 status collapsed
12800
12801 \begin_layout Plain Layout
12802
12803 ftp://ftp.iop.org/pub/journals/latex2e
12804 \end_layout
12805
12806 \end_inset
12807
12808 からiopartパッケージとともにダウンロード可能です.
12809 \end_layout
12810
12811 \begin_layout Subsection
12812 論文を書く
12813 \end_layout
12814
12815 \begin_layout Standard
12816 論文を書くもっとも簡単な方法は,\SpecialChar LyX
12817 の用例ファイルフォルダにある
12818 \emph on
12819 IOP-article.lyx
12820 \emph default
12821 を土台にすることです.このファイルを開き,新しい名前で保存して,書き始めてください.この用例ファイルは,特定の環境の使用法についても説明しています.もっとも重要
12822 な助言として,以下の点にご注意ください.
12823 \end_layout
12824
12825 \begin_layout Itemize
12826 文書がPDF・PS・DVIにコンパイルできるようにするためには,文書設定の
12827 \family sans
12828 数式オプション
12829 \family default
12830 で,二つの
12831 \family sans
12832 AMS mathパッケージを使う
12833 \family default
12834 関連オプションが有効になっていないことを確認してください!
12835 \end_layout
12836
12837 \begin_layout Itemize
12838 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
12839 \begin_inset Separator latexpar
12840 \end_inset
12841
12842
12843 \end_layout
12844
12845 \begin_deeper
12846 \begin_layout Itemize
12847 論文用には
12848 \family sans
12849 タイトル
12850 \end_layout
12851
12852 \begin_layout Itemize
12853 Review用には
12854 \family sans
12855 Review
12856 \end_layout
12857
12858 \begin_layout Itemize
12859 Topical review用には
12860 \family sans
12861 Topical
12862 \end_layout
12863
12864 \begin_layout Itemize
12865 Comment用には
12866 \family sans
12867 Comment
12868 \end_layout
12869
12870 \begin_layout Itemize
12871 Note用には
12872 \family sans
12873 注釈
12874 \end_layout
12875
12876 \begin_layout Itemize
12877 論文用には
12878 \family sans
12879 Paper
12880 \family default
12881 (タイトルと同じ)
12882 \end_layout
12883
12884 \begin_layout Itemize
12885 Preliminary communication用には
12886 \family sans
12887 Prelim
12888 \end_layout
12889
12890 \begin_layout Itemize
12891 Rapid communication用には
12892 \family sans
12893 Rapid
12894 \end_layout
12895
12896 \begin_layout Itemize
12897 編集者へのLetterには
12898 \family sans
12899 書簡
12900 \end_layout
12901
12902 \end_deeper
12903 \begin_layout Itemize
12904
12905 \family sans
12906 書簡
12907 \family default
12908 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
12909 \end_layout
12910
12911 \begin_layout Itemize
12912 \SpecialChar LyX
12913 では直接にサポートされていませんが,一般的なタイトル環境として
12914 \family sans
12915 Article
12916 \family default
12917 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
12918 コードでこれを指定することができます.
12919 \end_layout
12920
12921 \begin_layout Standard
12922 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
12923 \end_layout
12924
12925 \begin_layout Section
12926 Kluwer
12927 \end_layout
12928
12929 \begin_layout Standard
12930
12931 \noun on
12932 Panayotis Papasotiriou
12933 \noun default
12934
12935 \end_layout
12936
12937 \begin_layout Subsection
12938 概要
12939 \end_layout
12940
12941 \begin_layout Standard
12942 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
12943 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
12944 \emph on
12945 Astrophysics and Space Science
12946 \emph default
12947 (『宇宙物理学と宇宙科学』)と
12948 \emph on
12949 Solar Physics
12950 \emph default
12951 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
12952 \begin_inset Flex URL
12953 status collapsed
12954
12955 \begin_layout Plain Layout
12956
12957 http://www.wkap.nl/jrnllist.htm/JRNLHOME
12958 \end_layout
12959
12960 \end_inset
12961
12962 に全覧があります).Kluwerパッケージは,
12963 \begin_inset Flex URL
12964 status collapsed
12965
12966 \begin_layout Plain Layout
12967
12968 http://www.wkap.nl/kaphtml.htm/STYLEFILES
12969 \end_layout
12970
12971 \end_inset
12972
12973 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
12974 \end_layout
12975
12976 \begin_layout Standard
12977 \SpecialChar LyX
12978 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
12979 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
12980 りました(
12981 \begin_inset CommandInset ref
12982 LatexCommand ref
12983 reference "subsec:kluwer_peculiarities"
12984
12985 \end_inset
12986
12987 参照).最近,私は\SpecialChar LyX
12988 を使って書いた論文を
12989 \emph on
12990 Astrophysics and Space Science
12991 \emph default
12992 に投稿しましたが,何らの問題も発生しませんでした.
12993 \end_layout
12994
12995 \begin_layout Subsection
12996 論文を書く
12997 \end_layout
12998
12999 \begin_layout Standard
13000 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
13001 \family sans
13002 ファイル\SpecialChar menuseparator
13003 新規(ひな型使用)
13004 \family default
13005 をクリックし,ひな型
13006 \family typewriter
13007 kluwer.lyx
13008 \family default
13009 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
13010 様に,既存の文章を(括弧
13011 \family typewriter
13012 <>
13013 \family default
13014 を含む)正しい情報で上書きしてください.
13015 \end_layout
13016
13017 \begin_layout Subsection
13018 投稿の準備
13019 \end_layout
13020
13021 \begin_layout Standard
13022 AAS\SpecialChar TeX
13023 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
13024 \end_layout
13025
13026 \begin_layout Enumerate
13027
13028 \family sans
13029 ファイル\SpecialChar menuseparator
13030 書き出し\SpecialChar menuseparator
13031 LateX
13032 \family default
13033 をクリックして,論文を\SpecialChar LaTeX
13034 ファイルに書き出す.
13035 \end_layout
13036
13037 \begin_layout Enumerate
13038 生成された
13039 \family typewriter
13040 .tex
13041 \family default
13042 ファイルに,テキストエディタを使用して,以下のような変更を加える.
13043 \begin_inset Separator latexpar
13044 \end_inset
13045
13046
13047 \end_layout
13048
13049 \begin_deeper
13050 \begin_layout Enumerate
13051
13052 \family typewriter
13053
13054 \backslash
13055 documentclass
13056 \family default
13057 コマンドより前にあるコメント行を削除する.
13058 \end_layout
13059
13060 \begin_layout Enumerate
13061 意図的に\SpecialChar LaTeX
13062 プリアンブルに加えたコマンドを除き,
13063 \family typewriter
13064
13065 \backslash
13066 makeatletter
13067 \family default
13068 から 
13069 \family typewriter
13070
13071 \backslash
13072 makeatother
13073 \family default
13074 の間にあるものを,これらのコマンドも含め,すべて削除する.
13075 \end_layout
13076
13077 \begin_layout Standard
13078 変更した
13079 \family typewriter
13080 .tex
13081 \family default
13082 ファイルを保存する.
13083 \end_layout
13084
13085 \end_deeper
13086 \begin_layout Enumerate
13087 この
13088 \family typewriter
13089 .tex
13090 \family default
13091 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13092 にかける.
13093 \end_layout
13094
13095 \begin_layout Enumerate
13096 生成された
13097 \family typewriter
13098 .dvi
13099 \family default
13100 ファイルを
13101 \family sans
13102 xdvi
13103 \family default
13104 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
13105 \end_layout
13106
13107 \begin_layout Subsection
13108 Kluwerパッケージの「風変わり」な特徴
13109 \begin_inset CommandInset label
13110 LatexCommand label
13111 name "subsec:kluwer_peculiarities"
13112
13113 \end_inset
13114
13115
13116 \end_layout
13117
13118 \begin_layout Standard
13119 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
13120 \end_layout
13121
13122 \begin_layout Enumerate
13123 複数の論文を1つの\SpecialChar LaTeX
13124 ファイルへ入れることができます
13125 \begin_inset Foot
13126 status collapsed
13127
13128 \begin_layout Plain Layout
13129 わざわざこんなことをする必要はないでしょう.
13130 \end_layout
13131
13132 \end_inset
13133
13134 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
13135 \family typewriter
13136
13137 \backslash
13138 begin{article}
13139 \family default
13140 で始まり,
13141 \family typewriter
13142
13143 \backslash
13144 end{article}
13145 \family default
13146 で終わります.この環境を\SpecialChar LyX
13147 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
13148 \family typewriter
13149
13150 \backslash
13151 begin{article}
13152 \family default
13153
13154 \family typewriter
13155
13156 \backslash
13157 end{article}
13158 \family default
13159 )は,直接本文中に入力して,\SpecialChar LaTeX
13160 コード(「\SpecialChar TeX
13161 コード」のことです)としてマークする必要があります.
13162 \end_layout
13163
13164 \begin_layout Enumerate
13165 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
13166 はなりません.これは\SpecialChar LyX
13167 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
13168 コード行(
13169 \family typewriter
13170
13171 \backslash
13172 begin{opening}
13173 \family default
13174 および
13175 \family typewriter
13176
13177 \backslash
13178 end{opening}
13179 \family default
13180 )の間に入れる必要があります.
13181 \end_layout
13182
13183 \begin_layout Enumerate
13184 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
13185 \family typewriter
13186
13187 \begin_inset Newline newline
13188 \end_inset
13189
13190
13191 \backslash
13192 protect
13193 \backslash
13194 citeauthoryear{
13195 \family default
13196 \emph on
13197 著者名
13198 \family typewriter
13199 \emph default
13200 }{
13201 \family default
13202 \emph on
13203
13204 \family typewriter
13205 \emph default
13206 }
13207 \family default
13208  と書く必要があります.
13209 \end_layout
13210
13211 \begin_layout Standard
13212 ひな型
13213 \family typewriter
13214 kluwer.lyx
13215 \family default
13216 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
13217 てください.
13218 \end_layout
13219
13220 \begin_layout Enumerate
13221 ひな型にある\SpecialChar TeX
13222 コードを削除しないでください.
13223 \end_layout
13224
13225 \begin_layout Enumerate
13226 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
13227 \end_layout
13228
13229 \begin_layout Section
13230 Koma-Script
13231 \end_layout
13232
13233 \begin_layout Standard
13234
13235 \noun on
13236 Bernd Rellermeyer
13237 \noun default
13238
13239 \end_layout
13240
13241 \begin_layout Subsection
13242 概要
13243 \end_layout
13244
13245 \begin_layout Standard
13246 \SpecialChar LyX
13247 の文書クラス
13248 \emph on
13249 article (koma-script)
13250 \emph default
13251
13252 \emph on
13253 report (koma-script)
13254 \emph default
13255
13256 \emph on
13257 book
13258 \emph default
13259  
13260 \emph on
13261 (koma-script)
13262 \emph default
13263
13264 \emph on
13265 letter
13266 \emph default
13267  
13268 \emph on
13269 (koma-script)
13270 \emph default
13271 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13272 文書クラス
13273 \family typewriter
13274 scrartcl.cls
13275 \family default
13276
13277 \family typewriter
13278 scrreprt.cls
13279 \family default
13280
13281 \family typewriter
13282 scrbook.cls
13283 \family default
13284
13285 \family typewriter
13286 scrlettr.cls
13287 \family default
13288 に対応しています.これらは,標準文書クラス
13289 \family typewriter
13290 article.cls
13291 \family default
13292
13293 \family typewriter
13294 report.cls
13295 \family default
13296
13297 \family typewriter
13298 book.cls
13299 \family default
13300
13301 \family typewriter
13302 letter.cls
13303 \family default
13304 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
13305 \end_layout
13306
13307 \begin_layout Itemize
13308 標準文字寸法は,
13309 \emph on
13310 article (koma-script)
13311 \emph default
13312
13313 \emph on
13314 report (koma-script)
13315 \emph default
13316
13317 \emph on
13318 book (koma-script)
13319 \emph default
13320 で11pt,
13321 \emph on
13322 letter (koma-script)
13323 \emph default
13324 で12ptです.
13325 \end_layout
13326
13327 \begin_layout Itemize
13328 見出しや箇条書き(記述)環境のラベル,および
13329 \emph on
13330 letter (koma-script)
13331 \emph default
13332 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
13333 \begin_inset Foot
13334 status collapsed
13335
13336 \begin_layout Plain Layout
13337 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
13338 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
13339 \shape smallcaps
13340 Walter Schmidt
13341 \shape default
13342 作の\SpecialChar LaTeX
13343 パッケージ
13344 \family typewriter
13345 cmsd.sty
13346 \family default
13347 が役立ちます.
13348 \end_layout
13349
13350 \end_inset
13351
13352 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
13353 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
13354 とができます(\SpecialChar LyX
13355 では,
13356 \family sans
13357 文書\SpecialChar menuseparator
13358 設定
13359 \family default
13360 ダイアログの
13361 \family sans
13362 クラスオプション
13363 \family default
13364 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
13365 \emph on
13366 scrguide
13367 \emph default
13368 にあります.
13369 \end_layout
13370
13371 \begin_layout Itemize
13372 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
13373 \family sans
13374 BCOR
13375 \family default
13376 オプションまたは
13377 \family sans
13378 DIV
13379 \family default
13380 オプションを使う方法です(\SpecialChar LyX
13381 では,
13382 \family sans
13383 文書\SpecialChar menuseparator
13384 設定
13385 \family default
13386 ダイアログの
13387 \family sans
13388 クラスオプション
13389 \family default
13390 フィールドで指定します).これらのオプションは
13391 \family sans
13392 文書\SpecialChar menuseparator
13393 設定
13394 \family default
13395 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
13396 扱説明書
13397 \emph on
13398 scrguide
13399 \emph default
13400 にあります.
13401 \end_layout
13402
13403 \begin_layout Itemize
13404 Koma-Scriptファミリーの\SpecialChar LaTeX
13405 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
13406 で意味を持つものは,対応する段落環境として実装されています
13407
13408 \end_layout
13409
13410 \begin_layout Standard
13411 Koma-Scriptファミリーの\SpecialChar LaTeX
13412 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
13413 \emph on
13414 scrguide
13415 \emph default
13416 にあります
13417 \begin_inset Foot
13418 status collapsed
13419
13420 \begin_layout Plain Layout
13421 英語翻訳版の
13422 \emph on
13423 screnggu
13424 \emph default
13425 もありますが,完訳ではありません.
13426 \end_layout
13427
13428 \end_inset
13429
13430 .以下の各節では,\SpecialChar LyX
13431 に関係する側面のみ説明致します.
13432 \end_layout
13433
13434 \begin_layout Subsection
13435 article (koma-script)・report (koma-script)・book (koma-script)
13436 \end_layout
13437
13438 \begin_layout Standard
13439 文書クラス
13440 \emph on
13441 article (koma-script)
13442 \emph default
13443
13444 \emph on
13445 report (koma-script)
13446 \emph default
13447
13448 \emph on
13449 book
13450 \emph default
13451  
13452 \emph on
13453 (koma-script)
13454 \emph default
13455 は,それぞれレイアウトファイル
13456 \family typewriter
13457 scrartcl.layout
13458 \family default
13459
13460 \family typewriter
13461 scrreprt.layou
13462 \family default
13463 t・
13464 \family typewriter
13465 crbook.layout
13466 \family default
13467 によって実装されています.これらは,対応する標準文書クラス
13468 \emph on
13469 article
13470 \emph default
13471
13472 \emph on
13473 report
13474 \emph default
13475
13476 \emph on
13477 book
13478 \emph default
13479 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
13480 固有の
13481 \family sans
13482 箇条書き(一覧)
13483 \family default
13484 環境は例外であり,同じ機能を持つ新しい
13485 \family sans
13486 ラベリング
13487 \family default
13488 環境で置き換えられています.この
13489 \family sans
13490 ラベリング
13491 \family default
13492 環境以外にも,新しい段落環境が多く追加されています.これらは,
13493 \emph on
13494 letter (koma-script)
13495 \emph default
13496 には含まれていないのでご注意ください.
13497 \end_layout
13498
13499 \begin_layout Itemize
13500
13501 \family sans
13502 部(addpart)
13503 \family default
13504
13505 \family sans
13506 章(addchap)
13507 \family default
13508
13509 \family sans
13510 節(addsec)
13511 \family default
13512 :これらは,それぞれ
13513 \family sans
13514 部*
13515 \family default
13516
13517 \family sans
13518 章*
13519 \family default
13520
13521 \family sans
13522 節*
13523 \family default
13524 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
13525 \family sans
13526 部(addpart)
13527 \family default
13528
13529 \family sans
13530 章(addchap)
13531 \family default
13532 は,
13533 \emph on
13534 article (koma-script)
13535 \emph default
13536 には収録されていません.
13537 \end_layout
13538
13539 \begin_layout Itemize
13540
13541 \family sans
13542 章(addchap*)
13543 \family default
13544
13545 \family sans
13546 節(addsec*)
13547 \family default
13548 :これらは,
13549 \family sans
13550 章(addchap
13551 \family default
13552 )と
13553 \family sans
13554 節(addsec)
13555 \family default
13556 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
13557 \family sans
13558 章(addchap*)
13559 \family default
13560 は, 
13561 \emph on
13562 article (koma-script)
13563 \emph default
13564 には収録されていません
13565 \begin_inset Foot
13566 status collapsed
13567
13568 \begin_layout Plain Layout
13569
13570 \emph on
13571 book (koma-script)
13572 \emph default
13573
13574 \emph on
13575 report (koma-script)
13576 \emph default
13577 には,
13578 \family typewriter
13579
13580 \backslash
13581 addpart*
13582 \family default
13583 コマンドもありますが,これは
13584 \family sans
13585 Part*
13586 \family default
13587 と同一なので,\SpecialChar LyX
13588 では実装されていません.
13589 \end_layout
13590
13591 \end_inset
13592
13593
13594 \end_layout
13595
13596 \begin_layout Itemize
13597
13598 \family sans
13599 小見出し(minisec)
13600 \family default
13601 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
13602 \end_layout
13603
13604 \begin_layout Itemize
13605
13606 \family sans
13607 上部キャプション
13608 \family default
13609
13610 \family sans
13611 下部キャプション
13612 \family default
13613 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
13614 ねに表の上に置くべきでしょう).また,クラスオプション
13615 \family typewriter
13616 tablecaptionsabove
13617 \family default
13618 を用いれば,キャプションを指定すると,表には
13619 \family sans
13620 上部キャプション
13621 \family default
13622 が,図には
13623 \family sans
13624 下部キャプション
13625 \family default
13626 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13627 \end_layout
13628
13629 \begin_layout Itemize
13630
13631 \family sans
13632 格言(dictum)
13633 \family default
13634 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
13635 \family sans
13636 挿入\SpecialChar menuseparator
13637 短縮タイトル
13638 \family default
13639 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13640 \family sans
13641 格言(dictum)
13642 \family default
13643 は,
13644 \emph on
13645 article (koma-script)
13646 \emph default
13647 には収録されていません.
13648 \end_layout
13649
13650 \begin_layout Standard
13651 以下の各環境は,標準の
13652 \family sans
13653 タイトル
13654 \family default
13655
13656 \family sans
13657 著者
13658 \family default
13659
13660 \family sans
13661 日付
13662 \family default
13663 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
13664 \begin_inset Foot
13665 status collapsed
13666
13667 \begin_layout Plain Layout
13668 つまり,対応する\SpecialChar LaTeX
13669 コマンドが
13670 \family typewriter
13671
13672 \backslash
13673 maketitle
13674 \family default
13675 コマンドよりも前に現れなくてはなりません.
13676 \end_layout
13677
13678 \end_inset
13679
13680 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
13681 \family sans
13682 タイトル
13683 \family default
13684
13685 \family sans
13686 著者
13687 \family default
13688
13689 \family sans
13690 日付
13691 \family default
13692 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
13693 \end_layout
13694
13695 \begin_layout Itemize
13696
13697 \family sans
13698 主題
13699 \family default
13700 :通常のタイトル部(
13701 \family sans
13702 タイトル
13703 \family default
13704
13705 \family sans
13706 著者
13707 \family default
13708
13709 \family sans
13710 日付
13711 \family default
13712 )の上に,文書の主題用の中央揃えの段落を生成します.
13713 \end_layout
13714
13715 \begin_layout Itemize
13716
13717 \family sans
13718 出版社
13719 \family default
13720 :通常のタイトル部(
13721 \family sans
13722 タイトル
13723 \family default
13724
13725 \family sans
13726 著者
13727 \family default
13728
13729 \family sans
13730 日付
13731 \family default
13732 )の下に,出版社名用の中央揃えの段落を生成します.
13733 \end_layout
13734
13735 \begin_layout Itemize
13736
13737 \family sans
13738 献呈
13739 \family default
13740
13741 \emph on
13742 report (koma-script)
13743 \emph default
13744
13745 \emph on
13746 book (koma-script)
13747 \emph default
13748 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
13749 \emph on
13750 article (koma-script)
13751 \emph default
13752 の場合は,通常のタイトル部(
13753 \family sans
13754 タイトル
13755 \family default
13756
13757 \family sans
13758 著者
13759 \family default
13760
13761 \family sans
13762 日付
13763 \family default
13764 )の下に献辞用の中央揃えの段落を生成します.
13765 \end_layout
13766
13767 \begin_layout Itemize
13768
13769 \family sans
13770 タイトル頭書き
13771 \family default
13772 :通常のタイトル部(
13773 \family sans
13774 タイトル
13775 \family default
13776
13777 \family sans
13778 著者
13779 \family default
13780
13781 \family sans
13782 日付
13783 \family default
13784 )の上に,文書頭書き用の左揃えの段落を生成します.
13785 \end_layout
13786
13787 \begin_layout Itemize
13788
13789 \family sans
13790 扉裏上部
13791 \family default
13792
13793 \emph on
13794 report (koma-script)
13795 \emph default
13796 や 
13797 \emph on
13798 book (koma-script)
13799 \emph default
13800 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
13801 \emph on
13802 article (koma-script)
13803 \emph default
13804 では何の効果も生じません.
13805 \end_layout
13806
13807 \begin_layout Itemize
13808
13809 \family sans
13810 扉裏下部
13811 \family default
13812
13813 \emph on
13814 report (koma-script)
13815 \emph default
13816 や 
13817 \emph on
13818 book (koma-script)
13819 \emph default
13820 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
13821 \emph on
13822 article (koma-script)
13823 \emph default
13824 では何の効果も生じません.
13825 \end_layout
13826
13827 \begin_layout Itemize
13828
13829 \family sans
13830 追加タイトル
13831 \family default
13832 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
13833 \end_layout
13834
13835 \begin_layout Standard
13836 文書クラス
13837 \emph on
13838 article (koma-script)
13839 \emph default
13840
13841 \emph on
13842 report (koma-script)
13843 \emph default
13844
13845 \emph on
13846 book (koma-script)
13847 \emph default
13848 の 各レイアウトファイルは,
13849 \family typewriter
13850 scrmacros.inc
13851 \family default
13852 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
13853 \family typewriter
13854 crmacros.inc
13855 \family default
13856 を,個人用レイアウトディレクトリにコピーして編集してください!
13857 \end_layout
13858
13859 \begin_layout Subsection
13860 letter (koma-script)
13861 \end_layout
13862
13863 \begin_layout Standard
13864 \noindent
13865 文書クラス
13866 \emph on
13867 letter (koma-script)
13868 \emph default
13869 は,レイアウトファイル 
13870 \family typewriter
13871 scrlettr.layout
13872 \family default
13873 で実装されています.このレイアウトファイルには,対応する標準文書クラス
13874 \emph on
13875 letter
13876 \emph default
13877 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
13878 固有環境の
13879 \family sans
13880 \SpecialChar LyX
13881 コード
13882 \family default
13883
13884 \family sans
13885 コメント
13886 \family default
13887
13888 \family sans
13889 箇条書き(一覧
13890 \family default
13891 )は,新しく
13892 \family sans
13893 ラベリング
13894 \family default
13895 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
13896 \family sans
13897 \SpecialChar LaTeX
13898
13899 \family default
13900
13901 \family sans
13902 引用(字下げあり)
13903 \family default
13904
13905 \family sans
13906 引用(字下げなし)
13907 \family default
13908
13909 \family sans
13910 詩句
13911 \family default
13912 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
13913 \end_layout
13914
13915 \begin_layout Standard
13916 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
13917 コマンドを\SpecialChar LaTeX
13918 プリアンブルに置くことで制御することができます
13919 \begin_inset Foot
13920 status collapsed
13921
13922 \begin_layout Plain Layout
13923 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
13924 す.
13925 \end_layout
13926
13927 \begin_layout LyX-Code
13928
13929 \backslash
13930 firsthead{
13931 \backslash
13932 parbox[b]{
13933 \backslash
13934 textwidth}
13935 \end_layout
13936
13937 \begin_layout LyX-Code
13938   {
13939 \backslash
13940 ignorespaces 
13941 \backslash
13942 fromname
13943 \backslash
13944
13945 \backslash
13946  
13947 \backslash
13948 ignorespaces 
13949 \backslash
13950 fromaddress}} 
13951 \end_layout
13952
13953 \begin_layout LyX-Code
13954
13955 \backslash
13956 nexthead{
13957 \backslash
13958 parbox[b]{
13959 \backslash
13960 textwidth}
13961 \end_layout
13962
13963 \begin_layout LyX-Code
13964   {
13965 \backslash
13966 ignorespaces 
13967 \backslash
13968 fromname 
13969 \backslash
13970 hfill 
13971 \backslash
13972 ignorespaces 
13973 \backslash
13974 pagename
13975 \backslash
13976
13977 \end_layout
13978
13979 \begin_layout LyX-Code
13980
13981 \backslash
13982 thepage}}
13983 \end_layout
13984
13985 \end_inset
13986
13987 .これらの\SpecialChar LaTeX
13988 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
13989 \emph on
13990 scrguide
13991 \emph default
13992 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
13993 \end_layout
13994
13995 \begin_layout Standard
13996
13997 \family sans
13998 書簡
13999 \family default
14000 環境および
14001 \family sans
14002 頭語
14003 \family default
14004 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
14005 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
14006 \shape italic
14007 L
14008 \shape default
14009
14010 \shape italic
14011 O
14012 \shape default
14013 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
14014 \family sans
14015 頭語
14016 \family default
14017 環境は,同じ受取人への書簡を新しく書き出すものであり,
14018 \family sans
14019 書簡
14020 \family default
14021 環境は,新しい受取人を生成するものです.
14022 \family sans
14023 結語
14024 \family default
14025
14026 \family sans
14027 PS
14028 \family default
14029
14030 \family sans
14031 CC
14032 \family default
14033
14034 \family sans
14035 Encl
14036 \family default
14037 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
14038 \end_layout
14039
14040 \begin_layout Itemize
14041
14042 \family sans
14043 書簡
14044 \family default
14045 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
14046 \end_layout
14047
14048 \begin_layout Itemize
14049
14050 \family sans
14051 頭語
14052 \family default
14053 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
14054 \end_layout
14055
14056 \begin_layout Itemize
14057
14058 \family sans
14059 結語
14060 \family default
14061 :結語のための段落をつくります.
14062 \end_layout
14063
14064 \begin_layout Itemize
14065
14066 \family sans
14067 PS
14068 \family default
14069 :追伸のための段落をつくります.
14070 \end_layout
14071
14072 \begin_layout Itemize
14073
14074 \family sans
14075 CC
14076 \family default
14077 :同報一覧のための段落をつくります.
14078 \end_layout
14079
14080 \begin_layout Itemize
14081
14082 \family sans
14083 Encl
14084 \family default
14085 :同封物のための段落をつくります.
14086 \end_layout
14087
14088 \begin_layout Standard
14089
14090 \family sans
14091 名前
14092 \family default
14093
14094 \family sans
14095 署名
14096 \family default
14097
14098 \family sans
14099 住所
14100 \family default
14101
14102 \family sans
14103 電話
14104 \family default
14105
14106 \family sans
14107 場所(Place
14108 \family default
14109 )・
14110 \family sans
14111 返送先住所
14112 \family default
14113
14114 \family sans
14115 配送手段(Specialmail)
14116 \family default
14117
14118 \family sans
14119 場所
14120 \family default
14121
14122 \family sans
14123 タイトル
14124 \family default
14125
14126 \family sans
14127 主題
14128 \family default
14129 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
14130 \begin_inset Foot
14131 status collapsed
14132
14133 \begin_layout Plain Layout
14134 上述の
14135 \family sans
14136 書簡
14137 \family default
14138
14139 \family sans
14140 頭語
14141 \family default
14142 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
14143 一文字をマークした通常の段落環境として実装しました.さらに,
14144 \family sans
14145 頭語
14146 \family default
14147 環境と
14148 \family sans
14149 結語
14150 \family default
14151 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
14152 \end_layout
14153
14154 \end_inset
14155
14156 .これらの環境は,対応する
14157 \family sans
14158 頭語
14159 \family default
14160 環境の前に置く必要があります.
14161 \end_layout
14162
14163 \begin_layout Standard
14164 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
14165 ん.たとえば,
14166 \family sans
14167 署名
14168 \family default
14169 環境で入力した署名は,標準的な挙動では,同じ書簡に
14170 \family sans
14171 結語
14172 \family default
14173 環境も使用されているときのみ,書簡の出力に現れます.
14174 \family sans
14175 電話
14176 \family default
14177 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
14178 \end_layout
14179
14180 \begin_layout Standard
14181 入力環境は,空の段落として使うことができます.これは,たとえば
14182 \family sans
14183 署名
14184 \family default
14185 環境の場合に有効です.
14186 \family sans
14187 署名
14188 \family default
14189 環境を全く使用しない場合は,標準的な挙動では,
14190 \family sans
14191 名前
14192 \family default
14193 環境の値が署名として使用されますが,空の
14194 \family sans
14195 署名
14196 \family default
14197 環境を作成しておくと,署名の値は無定義となりません.
14198 \end_layout
14199
14200 \begin_layout Standard
14201 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
14202 \end_layout
14203
14204 \begin_layout Itemize
14205
14206 \family sans
14207 名前
14208 \family default
14209 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
14210 \end_layout
14211
14212 \begin_layout Itemize
14213
14214 \family sans
14215 署名
14216 \family default
14217 :送り主の署名.標準的な挙動では,
14218 \family sans
14219 結語
14220 \family default
14221 環境の下に表示されます.
14222 \family sans
14223 署名
14224 \family default
14225 環境を使用しないと,代わりに
14226 \family sans
14227 名前
14228 \family default
14229 環境の値が表示されます.
14230 \end_layout
14231
14232 \begin_layout Itemize
14233
14234 \family sans
14235 住所
14236 \family default
14237 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
14238 \end_layout
14239
14240 \begin_layout Itemize
14241
14242 \family sans
14243 電話
14244 \family default
14245 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
14246 変数
14247 \family typewriter
14248
14249 \backslash
14250 telephonenum
14251 \family default
14252 を設定するだけです.
14253 \end_layout
14254
14255 \begin_layout Itemize
14256
14257 \family sans
14258 場所(Place)
14259 \family default
14260 :書簡を書いた場所.
14261 \end_layout
14262
14263 \begin_layout Itemize
14264
14265 \family sans
14266 日付
14267 \family default
14268 :書簡を書いた日付.
14269 \family sans
14270 場所(Place)
14271 \family default
14272
14273 \family sans
14274 日付
14275 \family default
14276 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
14277 \family sans
14278 日付
14279 \family default
14280 環境を作成しておくと,
14281 \family sans
14282 場所(Place)
14283 \family default
14284 の値如何に関わらず,場所も日付も表示されません.
14285 \family sans
14286 日付
14287 \family default
14288 環境を使用しない場合には,書簡を出力した日付が使用されます.
14289 \end_layout
14290
14291 \begin_layout Itemize
14292
14293 \family sans
14294 返送先住所
14295 \family default
14296 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
14297 \end_layout
14298
14299 \begin_layout Itemize
14300
14301 \family sans
14302 特別便
14303 \family default
14304 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
14305 \end_layout
14306
14307 \begin_layout Itemize
14308
14309 \family sans
14310 場所
14311 \family default
14312 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
14313 \end_layout
14314
14315 \begin_layout Itemize
14316
14317 \family sans
14318 タイトル
14319 \family default
14320 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
14321 \end_layout
14322
14323 \begin_layout Itemize
14324
14325 \family sans
14326 主題
14327 \family default
14328 :書簡の主題.標準的な挙動では,
14329 \family sans
14330 頭語
14331 \family default
14332 環境の上にボールド体で表示されます.
14333 \end_layout
14334
14335 \begin_layout Standard
14336
14337 \family sans
14338 Yourref・Yourmail・Myref・顧客・インボイス
14339 \family default
14340 といった環境は,
14341 \family sans
14342 タイトル
14343 \family default
14344 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14345 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
14346 \family sans
14347 日付
14348 \family default
14349 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
14350 \family sans
14351 場所(Place)
14352 \family default
14353 の値は書簡には表示されなくなり,\SpecialChar LaTeX
14354 変数
14355 \family typewriter
14356
14357 \backslash
14358 fromplace
14359 \family default
14360 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
14361 て実装されており,対応する
14362 \family sans
14363 頭語
14364 \family default
14365 環境よりも前に置く必要があります.
14366 \end_layout
14367
14368 \begin_layout Itemize
14369
14370 \family sans
14371 Yourref
14372 \family default
14373 : Your ref.
14374 \end_layout
14375
14376 \begin_layout Itemize
14377
14378 \family sans
14379 Yourmail
14380 \family default
14381 : Your letter of.
14382 \end_layout
14383
14384 \begin_layout Itemize
14385
14386 \family sans
14387 Myref
14388 \family default
14389 : Our ref.
14390 \end_layout
14391
14392 \begin_layout Itemize
14393
14394 \family sans
14395 Customer
14396 \family default
14397 : Customer no.
14398 \end_layout
14399
14400 \begin_layout Itemize
14401
14402 \family sans
14403 Invoice
14404 \family default
14405 : Invoice no.
14406 \end_layout
14407
14408 \begin_layout Subsection
14409 新しいletterクラス:letter (koma-script v.2)
14410 \end_layout
14411
14412 \begin_layout Standard
14413 by 
14414 \noun on
14415 Jürgen Spitzmüller
14416 \begin_inset VSpace medskip
14417 \end_inset
14418
14419
14420 \end_layout
14421
14422 \begin_layout Standard
14423 \noindent
14424 Koma-Script第2.8版では,新しいletterクラス
14425 \family typewriter
14426 scrlttr2
14427 \family default
14428 が導入されたため,
14429 \family typewriter
14430 scrlettr
14431 \family default
14432 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
14433 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
14434 は両者をサポートしてい
14435 ますが,新しい方のクラスを使用することを推奨します.
14436 \end_layout
14437
14438 \begin_layout Standard
14439 このクラスは,
14440 \emph on
14441 letter (koma-script)
14442 \emph default
14443 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
14444 \family sans
14445 住所
14446 \family default
14447 (受取人の住所,旧レイアウトの
14448 \family sans
14449 書簡
14450 \family default
14451 と同じ)・
14452 \family sans
14453 頭語
14454 \family default
14455
14456 \family sans
14457 結語
14458 \family default
14459 です.
14460 \family sans
14461 次の住所
14462 \family default
14463 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
14464 \family sans
14465 電子メール
14466 \family default
14467
14468 \family sans
14469 URL
14470 \family default
14471
14472 \family sans
14473 ファックス
14474 \family default
14475
14476 \family sans
14477 銀行
14478 \family default
14479 ,およびヘッダに(
14480 \family sans
14481 挿入\SpecialChar menuseparator
14482
14483 \family default
14484 で)
14485 \family sans
14486 ロゴ
14487 \family default
14488 を入れることができるようになった点です.
14489 \end_layout
14490
14491 \begin_layout Standard
14492 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
14493 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
14494 \family typewriter
14495 *.lco
14496 \family default
14497 )によって設定することができます
14498 \begin_inset Foot
14499 status collapsed
14500
14501 \begin_layout Plain Layout
14502 KOMAパッケージには,既定の
14503 \family typewriter
14504 *.lco
14505 \family default
14506 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
14507 \family typewriter
14508 DIN.lco
14509 \family default
14510 や,旧
14511 \family typewriter
14512 scrlettr
14513 \family default
14514 クラスの既定レイアウトを提供する
14515 \family typewriter
14516 KOMAold.lco
14517 \family default
14518 などです.たとえば後者は,
14519 \family sans
14520 文書\SpecialChar menuseparator
14521 設定\SpecialChar menuseparator
14522 文書クラス\SpecialChar menuseparator
14523 クラスオプション
14524 \family default
14525 フィールドにクラスオプション
14526 \family typewriter
14527 KOMAold
14528 \family default
14529 を加えることで読み込むことができます.
14530 \end_layout
14531
14532 \end_inset
14533
14534 .用例としては,\SpecialChar LyX
14535 に収録されているひな型
14536 \emph on
14537 koma-letter2
14538 \emph default
14539 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
14540 \emph on
14541 scrguide
14542 \emph default
14543 )にあります.
14544 \end_layout
14545
14546 \begin_layout Subsection
14547 問題点
14548 \end_layout
14549
14550 \begin_layout Standard
14551 Koma-Script文書クラスを\SpecialChar LyX
14552 上に表示する上で,\SpecialChar LyX
14553 の内部処理が若干の問題を生じめます.
14554 \end_layout
14555
14556 \begin_layout Itemize
14557
14558 \family sans
14559
14560 \family default
14561 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
14562 \family sans
14563 Counter_Chapter
14564 \family default
14565 ラベル型に対する\SpecialChar LyX
14566 の内部処理が原因です.
14567 \end_layout
14568
14569 \begin_layout Itemize
14570
14571 \family sans
14572 章(addchap)
14573 \family default
14574
14575 \family sans
14576 節(addsec)
14577 \family default
14578 環境の見出しは,「本当の」\SpecialChar LaTeX
14579 の目次には追加されますが,\SpecialChar LyX
14580 の目次(
14581 \family sans
14582 移動
14583 \family default
14584 メニュー)には追加されません.
14585 \end_layout
14586
14587 \begin_layout Itemize
14588
14589 \emph on
14590 letter
14591 \emph default
14592 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
14593 コマンドは必要ありません.しかし,
14594 \family sans
14595 文書\SpecialChar menuseparator
14596 設定
14597 \family default
14598 ダイアログでは,対応するラジオボタンは
14599 \family sans
14600 字下げ
14601 \family default
14602 に設定されています.
14603 \family sans
14604 垂直スペース
14605 \family default
14606 は,隙間を空けるために,文書に\SpecialChar LaTeX
14607 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
14608 \end_layout
14609
14610 \begin_layout Section
14611 Memoir
14612 \end_layout
14613
14614 \begin_layout Standard
14615
14616 \noun on
14617 Jürgen Spitzmüller
14618 \noun default
14619
14620 \end_layout
14621
14622 \begin_layout Subsection
14623 概観
14624 \end_layout
14625
14626 \begin_layout Standard
14627 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
14628 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
14629 す(以下参照).
14630 \end_layout
14631
14632 \begin_layout Standard
14633 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
14634 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
14635 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
14636 は,これらすべての素晴らしい機能をネイティブでサポ
14637 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
14638 \begin_inset Foot
14639 status collapsed
14640
14641 \begin_layout Plain Layout
14642 もし提案があれば,ぜひ
14643 \begin_inset Flex URL
14644 status collapsed
14645
14646 \begin_layout Plain Layout
14647
14648 lyx-devel@lists.lyx.org
14649 \end_layout
14650
14651 \end_inset
14652
14653 までお送り下さい.
14654 \end_layout
14655
14656 \end_inset
14657
14658 ,\SpecialChar LyX
14659 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
14660 コマンド(\SpecialChar TeX
14661 コード
14662 \begin_inset Foot
14663 status collapsed
14664
14665 \begin_layout Plain Layout
14666 【参考】詳細は,第
14667 \begin_inset CommandInset ref
14668 LatexCommand ref
14669 reference "sec:LaTeXコードを挿入する"
14670
14671 \end_inset
14672
14673 節参照.
14674 \end_layout
14675
14676 \end_inset
14677
14678 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
14679 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
14680 は,Memoirクラスの詳しい取扱説明書
14681 \begin_inset Foot
14682 status collapsed
14683
14684 \begin_layout Plain Layout
14685 【参考】
14686 \begin_inset Flex URL
14687 status collapsed
14688
14689 \begin_layout Plain Layout
14690
14691 CTAN:/macros/latex/memoir/memman.pdf
14692 \end_layout
14693
14694 \end_inset
14695
14696
14697 \end_layout
14698
14699 \end_inset
14700
14701 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
14702 た用例となっています.
14703 \end_layout
14704
14705 \begin_layout Subsection
14706 基本的な機能と制約
14707 \end_layout
14708
14709 \begin_layout Standard
14710 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
14711 \end_layout
14712
14713 \begin_layout Description
14714 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
14715 \end_layout
14716
14717 \begin_layout Description
14718 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
14719 が混乱させられます
14720 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
14721 \family sans
14722 文書\SpecialChar menuseparator
14723 設定\SpecialChar menuseparator
14724 ページレイアウト
14725 \family default
14726 参照).これらを章題ページに使用したい場合には,コマンド
14727 \family typewriter
14728
14729 \backslash
14730 chapterstyle
14731 \family default
14732 を,本文またはプリアンブルに記述する必要があります(例えば,
14733 \family typewriter
14734
14735 \backslash
14736 chapterstyle{companion}
14737 \family default
14738 など).
14739 \end_layout
14740
14741 \begin_layout Description
14742 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
14743 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
14744 では,章や節の始めで
14745 \family sans
14746 挿入\SpecialChar menuseparator
14747 短縮タイトル
14748 \family default
14749 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.こ
14750 れを使えば,本文用と目次用とヘッダ用のタイトルの3種類を指定することができます.この機能を使用したい場合には,2つの非必須引数を入力して,最初のものに目次用,次
14751 のものにヘッダ用短縮タイトルを入れてください.
14752 \end_layout
14753
14754 \begin_layout Description
14755 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
14756 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
14757 \end_layout
14758
14759 \begin_layout Description
14760 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
14761 くない場合には,プリアンブルに
14762 \family typewriter
14763
14764 \backslash
14765 aliaspagestyle{title}{empty}
14766 \family default
14767 と入力してください.
14768 \end_layout
14769
14770 \begin_layout Description
14771 Article: クラスオプション
14772 \emph on
14773 article
14774 \emph default
14775 を用いる(
14776 \family sans
14777 文書\SpecialChar menuseparator
14778 設定\SpecialChar menuseparator
14779 クラスオプション
14780 \family default
14781 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
14782 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
14783 \end_layout
14784
14785 \begin_layout Description
14786 Oldfontcommands: \SpecialChar LaTeX
14787 旧2.09版で使用されていた旧いフォントコマンド(
14788 \family typewriter
14789
14790 \backslash
14791 rm
14792 \family default
14793
14794 \family typewriter
14795
14796 \backslash
14797 it
14798 \family default
14799 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
14800 を停止させます.しかし,クラスオプ
14801 ション
14802 \emph on
14803 oldfontcommands
14804 \emph default
14805 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
14806 は停止しなくなります).まだ,多くのパッケージと,
14807 就中多くのBib\SpecialChar TeX
14808 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
14809 \end_layout
14810
14811 \begin_layout Subsection
14812 追加された機能
14813 \end_layout
14814
14815 \begin_layout Standard
14816 \SpecialChar LyX
14817 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
14818 \begin_inset Foot
14819 status collapsed
14820
14821 \begin_layout Plain Layout
14822 \begin_inset Flex URL
14823 status collapsed
14824
14825 \begin_layout Plain Layout
14826
14827 CTAN:/macros/latex/memoir/memman.pdf
14828 \end_layout
14829
14830 \end_inset
14831
14832
14833 \end_layout
14834
14835 \end_inset
14836
14837 を見てください.
14838 \end_layout
14839
14840 \begin_layout Description
14841 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
14842 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
14843 \end_layout
14844
14845 \begin_layout Description
14846 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
14847 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
14848 \end_layout
14849
14850 \begin_layout Description
14851 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
14852 出典)は,短い線で区切られます.この環境には二つの引数(本文と出典)が必要なので,ここでも\SpecialChar LyX
14853 を少しだます必要があります.ここでは,2つの引数の間に,
14854 \emph on
14855 <標語>
14856 \family typewriter
14857 \emph default
14858 }{
14859 \family default
14860 \emph on
14861 <標語の著者>
14862 \emph default
14863 のように,(\SpecialChar TeX
14864 モードで)波括弧を入れなくてはなりません.
14865 \end_layout
14866
14867 \begin_layout Description
14868 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
14869 は,そのうちいくつかしかサポートしていません.詩題はその一つです
14870 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
14871 コードを使用しな
14872 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
14873 ではそれができないためです).
14874 \end_layout
14875
14876 \begin_layout Description
14877 詩題*: 目次に現れない他は詩題と同じです.
14878 \end_layout
14879
14880 \begin_layout Section
14881 Article (mwart)・book (mwbk)・report (mwrep)
14882 \begin_inset Argument status
14883 status collapsed
14884
14885 \begin_layout Plain Layout
14886 The 
14887 \family typewriter
14888 mw
14889 \family default
14890  Classes
14891 \end_layout
14892
14893 \end_inset
14894
14895
14896 \end_layout
14897
14898 \begin_layout Standard
14899
14900 \noun on
14901 Tomasz Luczak
14902 \noun default
14903
14904 \end_layout
14905
14906 \begin_layout Standard
14907 \SpecialChar LyX
14908 文書クラス
14909 \emph on
14910 article (mwart)
14911 \emph default
14912
14913 \emph on
14914 report (mwrep)・book
14915 \emph default
14916  
14917 \emph on
14918 (mwbk)
14919 \emph default
14920 は,それぞれ\SpecialChar LaTeX
14921 文書クラス
14922 \family typewriter
14923 mwart.cls
14924 \family default
14925
14926 \family typewriter
14927 mwrep.cls
14928 \family default
14929
14930 \family typewriter
14931 mwbk.cls
14932 \family default
14933 に対応しています.これらは,標準の
14934 \family typewriter
14935 article.cls
14936 \family default
14937
14938 \family typewriter
14939 report.cls
14940 \family default
14941
14942 \family typewriter
14943 book.cls
14944 \family default
14945 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
14946 \end_layout
14947
14948 \begin_layout Standard
14949 基本的な違いは,次の点です.
14950 \end_layout
14951
14952 \begin_layout Itemize
14953 付番のない見出し(
14954 \family sans
14955 節*
14956 \family default
14957 などの星付き)も目次に加えられます.
14958 \end_layout
14959
14960 \begin_layout Itemize
14961 以下のページスタイルの追加
14962 \begin_inset Separator latexpar
14963 \end_inset
14964
14965
14966 \end_layout
14967
14968 \begin_deeper
14969 \begin_layout Description
14970 uheadings 分離線付きヘッダ
14971 \end_layout
14972
14973 \begin_layout Description
14974 myheadings 
14975 \family typewriter
14976
14977 \backslash
14978 markright
14979 \family default
14980 コマンドおよび
14981 \family typewriter
14982
14983 \backslash
14984 markboth
14985 \family default
14986 コマンドで設定するカスタムヘッダ
14987 \end_layout
14988
14989 \begin_layout Description
14990 myuheadings 分離線付きカスタムヘッダ
14991 \end_layout
14992
14993 \begin_layout Description
14994 outer ページの外側にページ番号
14995 \end_layout
14996
14997 \end_deeper
14998 \begin_layout Itemize
14999 オプション
15000 \begin_inset Separator latexpar
15001 \end_inset
15002
15003
15004 \end_layout
15005
15006 \begin_deeper
15007 \begin_layout Description
15008 rmheadings セリフ体見出し — 既定
15009 \end_layout
15010
15011 \begin_layout Description
15012 sfheadings サンセリフ体見出し
15013 \end_layout
15014
15015 \begin_layout Description
15016 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
15017 \end_layout
15018
15019 \begin_layout Description
15020 titleauthor タイトルページは,タイトル・著者名の順で配置
15021 \end_layout
15022
15023 \begin_layout Description
15024 withmarginpar ページ上に余白のための場所を確保
15025 \end_layout
15026
15027 \end_deeper
15028 \begin_layout Section
15029 Paper
15030 \end_layout
15031
15032 \begin_layout Standard
15033
15034 \family sans
15035 paper
15036 \family default
15037 文書クラスは標準
15038 \family sans
15039 article
15040 \family default
15041 クラスの代替となるものです.これは
15042 \family sans
15043 同様の
15044 \family default
15045 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
15046 \end_layout
15047
15048 \begin_layout Section
15049 Rev\SpecialChar TeX
15050 4
15051 \end_layout
15052
15053 \begin_layout Standard
15054 by 
15055 \noun on
15056 Amir Karger
15057 \end_layout
15058
15059 \begin_layout Standard
15060 \begin_inset VSpace bigskip
15061 \end_inset
15062
15063
15064 \end_layout
15065
15066 \begin_layout Standard
15067 \noindent
15068
15069 \family sans
15070 Revtex
15071 \begin_inset space ~
15072 \end_inset
15073
15074 4
15075 \family default
15076 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
15077  4.0(1999年5月の
15078 \begin_inset Formula $\beta$
15079 \end_inset
15080
15081 リリース)クラスで動作します.
15082 \end_layout
15083
15084 \begin_layout Standard
15085 \SpecialChar LyX
15086 には,Rev\SpecialChar TeX
15087  3.1で動作する
15088 \family sans
15089 Revtex
15090 \family default
15091 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
15092  2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
15093 は\SpecialChar LaTeX2e
15094 を必要とすることから,第3.1版は\SpecialChar LyX
15095 とうまく
15096 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
15097  4.0は,\SpecialChar LaTeX2e
15098 で素直に動作するようにデザインされているので,\SpecialChar LyX
15099
15100 \family sans
15101 Rev\SpecialChar TeX
15102
15103 \begin_inset space ~
15104 \end_inset
15105
15106 4
15107 \family default
15108 テキストクラスの組で使用するのは,たいへん簡単です.
15109 \end_layout
15110
15111 \begin_layout Standard
15112 この取扱説明書は,Rev\SpecialChar TeX
15113  4.0の説明書の
15114 \emph on
15115 補完
15116 \emph default
15117 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
15118 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15119 します.
15120 \end_layout
15121
15122 \begin_layout Subsection
15123 導入
15124 \end_layout
15125
15126 \begin_layout Standard
15127 Rev\SpecialChar TeX
15128  4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
15129  4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
15130  4 Web
15131  Site 
15132 \begin_inset Flex URL
15133 status collapsed
15134
15135 \begin_layout Plain Layout
15136
15137 http://publish.aps.org/revtex4/
15138 \end_layout
15139
15140 \end_inset
15141
15142 から入手することができます.これを\SpecialChar LaTeX
15143 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15144 ィレクトリ)で簡単なRev\SpecialChar TeX
15145  4文書を \SpecialChar LaTeX
15146 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
15147 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
15148 4テキストクラスが使用
15149 できるようになるはずです.
15150 \end_layout
15151
15152 \begin_layout Standard
15153 使い始めるには,
15154 \family typewriter
15155 tex2lyx
15156 \family default
15157 を使ってRev\SpecialChar TeX
15158  4文書を読み込むか,またはひな型ディレクトリにある
15159 \family sans
15160 Revtex
15161 \begin_inset space ~
15162 \end_inset
15163
15164 4
15165 \family default
15166 のひな型を使うのが,おそらく一番簡単な方法でしょう.
15167 \end_layout
15168
15169 \begin_layout Subsection
15170 プリアンブルに関すること
15171 \end_layout
15172
15173 \begin_layout Standard
15174
15175 \family typewriter
15176
15177 \backslash
15178 documentclass
15179 \family default
15180 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
15181 \family sans
15182 文書\SpecialChar menuseparator
15183 設定\SpecialChar menuseparator
15184 文書クラス
15185 \family default
15186
15187 \family sans
15188 クラスオプション
15189 \family default
15190 フィールドに入れます.Rev\SpecialChar TeX
15191 では,少なくとも一つの非必須引数が必要なことに注意してください.
15192 \end_layout
15193
15194 \begin_layout Standard
15195
15196 \family typewriter
15197
15198 \backslash
15199 draft
15200 \family default
15201 など他のプリアンブルは,他のクラス同様,
15202 \family sans
15203 文書\SpecialChar menuseparator
15204 設定\SpecialChar menuseparator
15205 \SpecialChar LaTeX
15206 プリアンブル
15207 \family default
15208 に入れてください.
15209 \end_layout
15210
15211 \begin_layout Subsection
15212 レイアウト
15213 \end_layout
15214
15215 \begin_layout Standard
15216 レイアウトは,基本的にRev\SpecialChar TeX
15217 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
15218 \family typewriter
15219
15220 \backslash
15221 email{}
15222 \family default
15223 に対応しています.(少なくともRev\SpecialChar TeX
15224  4.0 Beta現在では)
15225 \family sans
15226 住所
15227 \family default
15228
15229 \family sans
15230 所属
15231 \family default
15232 はまったく同じものなので,両方を使う必要はありません
15233 \begin_inset Foot
15234 status collapsed
15235
15236 \begin_layout Plain Layout
15237 ついでながら,
15238 \family typewriter
15239 tex2lyx
15240 \family default
15241 は両方とも対応しているので,
15242 \family typewriter
15243
15244 \backslash
15245 address
15246 \family default
15247
15248 \family typewriter
15249
15250 \backslash
15251 affiliation
15252 \family default
15253 のどちらも翻訳することができます.
15254 \end_layout
15255
15256 \end_inset
15257
15258
15259 \end_layout
15260
15261 \begin_layout Subsection
15262 重要な注意
15263 \end_layout
15264
15265 \begin_layout Standard
15266 Rev\SpecialChar TeX
15267  4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
15268 ではさらに気をつけなくてはなりません.
15269 \end_layout
15270
15271 \begin_layout Standard
15272 Rev\SpecialChar TeX
15273 では,
15274 \family typewriter
15275
15276 \backslash
15277 thanks
15278 \family default
15279 コマンドは,
15280 \family typewriter
15281
15282 \backslash
15283 author
15284 \family default
15285 コマンドの
15286 \emph on
15287 外側
15288 \emph default
15289 に来なくてはなりません.\SpecialChar LyX
15290 では,独立した
15291 \family sans
15292 感謝
15293 \family default
15294 レイアウトがこの働きをします.直接
15295 \family sans
15296 ,著者
15297 \family default
15298 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
15299  4の取扱説明書をご覧ください.
15300 \end_layout
15301
15302 \begin_layout Standard
15303 また,
15304 \family sans
15305 著者電子メール
15306 \family default
15307
15308 \family sans
15309 著者URL・感謝(thanks)
15310 \family default
15311 レイアウトは,
15312 \family sans
15313 著者
15314 \family default
15315 レイアウトと
15316 \family sans
15317 住所(
15318 \family default
15319 または同等の
15320 \family sans
15321 所属
15322 \family default
15323 )レイアウトの間に置かなければなりません.
15324 \family sans
15325 感謝(thanks)
15326 \family default
15327
15328 \family sans
15329 住所
15330 \family default
15331 の後に置いてしまうと,\SpecialChar LaTeX
15332 はコンパイルに失敗します.
15333 \end_layout
15334
15335 \begin_layout Subsection
15336 問題点
15337 \end_layout
15338
15339 \begin_layout Standard
15340 このレイアウトの主な問題点は,電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません.例
15341 えば,節レイアウトも非必須引数を使用することができません).これは,たとえばページヘッダにヘッダ用タイトルを設定したい場合などには,ファイルを\SpecialChar LaTeX
15342 ファイルに変換した
15343 後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません),テキストエディタを使って\SpecialChar LaTeX
15344 ファイルを編集し,非必須引数を書き加えなくてはならないということで
15345 す.これらのレイアウトがないと,
15346 \family typewriter
15347
15348 \backslash
15349 altaffiliation
15350 \family default
15351 (またそれと同等な
15352 \family typewriter
15353
15354 \backslash
15355 altaddress
15356 \family default
15357 )は使えませんので,対応するレイアウトは存在せず,手動で書き加える必要があります
15358 \begin_inset Foot
15359 status collapsed
15360
15361 \begin_layout Plain Layout
15362
15363 \emph on
15364 JMarcからの註:
15365 \emph default
15366  実は,\SpecialChar LyX
15367  1.3.0 では非必須引数を一部サポートしているのですが,このレイアウトは,まだこの機能を使うようにはアップデートされていないのです.
15368 \end_layout
15369
15370 \end_inset
15371
15372
15373 \end_layout
15374
15375 \begin_layout Section
15376 Springer学術誌(
15377 \family sans
15378 svjour)
15379 \end_layout
15380
15381 \begin_layout Standard
15382
15383 \noun on
15384 Martin Vermeer
15385 \noun default
15386
15387 \end_layout
15388
15389 \begin_layout Subsection
15390 説明
15391 \end_layout
15392
15393 \begin_layout Standard
15394 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
15395 \begin_inset Flex URL
15396 status collapsed
15397
15398 \begin_layout Plain Layout
15399
15400 http://www.springer.de/author/tex/help-journals.html
15401 \end_layout
15402
15403 \end_inset
15404
15405 に必要なクラスファイル(\SpecialChar LaTeX2e
15406 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
15407 \family typewriter
15408 svjour.inc
15409 \family default
15410 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15411 \family typewriter
15412 svjog.layout
15413 \family default
15414 など)から取り込むことができます.
15415 \end_layout
15416
15417 \begin_layout Standard
15418 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
15419 \family typewriter
15420 svjog.layout
15421 \family default
15422 に書かれている指示に従って,自作の
15423 \family typewriter
15424 sv
15425 \family default
15426 <学術誌名>
15427 \family typewriter
15428 .layout
15429 \family default
15430 を書くだけで良いことを意味します.
15431 \end_layout
15432
15433 \begin_layout Standard
15434 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
15435 \family typewriter
15436 svjour
15437 \family default
15438
15439 \family typewriter
15440 svjog
15441 \family default
15442 は,標準\SpecialChar LyX
15443 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
15444 を再設定した後(teTeXの場合は,必
15445 要に応じてroot権限で
15446 \family typewriter
15447 texhash
15448 \family default
15449 を実行します),\SpecialChar LyX
15450 を環境構成すれば,動作するはずです.
15451 \end_layout
15452
15453 \begin_layout Subsection
15454 新スタイル
15455 \end_layout
15456
15457 \begin_layout Standard
15458 多くの定理環境 — 
15459 \family sans
15460 主張
15461 \family default
15462
15463 \family sans
15464 推論
15465 \family default
15466 ・\SpecialChar ldots
15467
15468 \family sans
15469 定理
15470 \family default
15471
15472 \end_layout
15473
15474 \begin_layout Standard
15475
15476 \family sans
15477 ヘッドノート
15478 \family default
15479
15480 \family sans
15481 献呈
15482 \family default
15483
15484 \family sans
15485 サブタイトル・ヘッダ用\SpecialChar LaTeX
15486 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15487 ement)
15488 \family default
15489 .詳しくは Springerのクラスファイルの説明書を読んでください.
15490 \end_layout
15491
15492 \begin_layout Subsection
15493 サポートしているジャーナル
15494 \end_layout
15495
15496 \begin_layout Itemize
15497
15498 \emph on
15499 Journal of Geodesy
15500 \emph default
15501
15502 \family typewriter
15503 svjog.layout
15504 \family default
15505  — Martin Vermeer
15506 \end_layout
15507
15508 \begin_layout Itemize
15509
15510 \emph on
15511 Probability Theory and Related Fields
15512 \emph default
15513
15514 \family typewriter
15515 svprobth.layout
15516 \family default
15517  — Jean-Marc Lasgouttes
15518 \end_layout
15519
15520 \begin_layout Standard
15521 あなた自身のレイアウトファイルをつくってください.難しくはありません.
15522 \end_layout
15523
15524 \begin_layout Subsection
15525 Credits
15526 \end_layout
15527
15528 \begin_layout Standard
15529 これらのファイルは,以前の 
15530 \family typewriter
15531 ejour2.layout
15532 \family default
15533 をもとにしています.
15534 \family typewriter
15535 ejour2.layout
15536 \family default
15537 は Springerの\SpecialChar LaTeX
15538  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
15539  Lasgouttesのおかげで \SpecialChar LyX
15540 のレイアウトファイルのメカニズムをよりよく理解することができました.
15541 \end_layout
15542
15543 \begin_layout Subsection
15544 バグ
15545 \end_layout
15546
15547 \begin_layout Standard
15548 多分あります.以前の 
15549 \family typewriter
15550 ejour2
15551 \family default
15552 よりは少なくなっているとは思いますが.
15553 \end_layout
15554
15555 \begin_layout Standard
15556 制限事項:定理環境の環境の番号は表示されません.#が表示されるだけです.
15557 \end_layout
15558
15559 \begin_layout Section
15560 Slides (別名
15561 \noun on
15562 Sli\SpecialChar TeX
15563
15564 \noun default
15565 )
15566 \begin_inset Foot
15567 status collapsed
15568
15569 \begin_layout Plain Layout
15570 (訳註)この節の内容は,全般的に古くなっています.
15571 \end_layout
15572
15573 \end_inset
15574
15575
15576 \begin_inset CommandInset label
15577 LatexCommand label
15578 name "sec:slitex"
15579
15580 \end_inset
15581
15582
15583 \end_layout
15584
15585 \begin_layout Standard
15586
15587 \noun on
15588 John Weiss
15589 \noun default
15590
15591 \end_layout
15592
15593 \begin_layout Subsection
15594 はじめに
15595 \end_layout
15596
15597 \begin_layout Standard
15598 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
15599 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
15600 \family sans
15601 Foil\SpecialChar TeX
15602
15603 \family default
15604 スライドクラスの2つがあります.本節は前者について説明を行います.
15605 \end_layout
15606
15607 \begin_layout Standard
15608 誤解のないように,正しく明確に,もう一度言っておきます.
15609 \end_layout
15610
15611 \begin_layout Standard
15612 \begin_inset VSpace bigskip
15613 \end_inset
15614
15615
15616 \end_layout
15617
15618 \begin_layout Standard
15619 \align center
15620
15621 \size large
15622 本節は文書クラス
15623 \begin_inset Quotes eld
15624 \end_inset
15625
15626
15627 \family sans
15628 transparencies (slides)
15629 \family default
15630
15631 \begin_inset Quotes erd
15632 \end_inset
15633
15634
15635 \emph on
15636 のみ
15637 \emph default
15638 を説明しています.
15639 \end_layout
15640
15641 \begin_layout Standard
15642 \begin_inset VSpace bigskip
15643 \end_inset
15644
15645
15646 \end_layout
15647
15648 \begin_layout Standard
15649
15650 \family sans
15651 「slides (Foil\SpecialChar TeX
15652 )
15653 \family default
15654 」の説明をお探しならば,第
15655 \begin_inset CommandInset ref
15656 LatexCommand ref
15657 reference "sec:foiltex"
15658
15659 \end_inset
15660
15661 節をご覧ください.
15662 \family sans
15663 foils
15664 \family default
15665 クラス「
15666 \family sans
15667 slides (Foil\SpecialChar TeX
15668 )
15669 \family default
15670 」は,実際,本節で説明している既定
15671 \family sans
15672 slides
15673 \family default
15674 クラスよりも良いようです
15675 \begin_inset Foot
15676 status collapsed
15677
15678 \begin_layout Plain Layout
15679 \SpecialChar ldots
15680
15681 \family sans
15682 Foil\SpecialChar TeX
15683
15684 \family default
15685 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
15686 \end_layout
15687
15688 \end_inset
15689
15690
15691 \end_layout
15692
15693 \begin_layout Standard
15694 このクラスは,旧SLI\SpecialChar TeX
15695 パッケージを\SpecialChar LaTeX2e
15696 用に改良したものです.\SpecialChar LaTeX2e
15697 頒布版すべてが,このクラス(以下では単に「
15698 \family sans
15699 slides
15700 \family default
15701 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
15702 \family sans
15703 foils
15704 \family default
15705 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
15706 他のクラスにはできないが
15707 \family sans
15708 slides
15709 \family default
15710 ならばできることもあります.詳しくは以下をお読みください.
15711 \end_layout
15712
15713 \begin_layout Subsection
15714 使い始めるには
15715 \begin_inset CommandInset label
15716 LatexCommand label
15717 name "sec:slidesetup"
15718
15719 \end_inset
15720
15721
15722 \end_layout
15723
15724 \begin_layout Standard
15725 当然ながら,この文書クラスを使用するには,
15726 \family sans
15727 文書\SpecialChar menuseparator
15728 設定
15729 \family default
15730 ダイアログのクラスリストから「
15731 \family sans
15732 transparencies (slides)
15733 \family default
15734 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
15735 \end_layout
15736
15737 \begin_layout Itemize
15738
15739 \family sans
15740 用紙方向
15741 \family default
15742
15743 \family sans
15744 二段組文書
15745 \family default
15746 の各オプションは,あえて変更する必要はありません.これらのオプションは,
15747 \family sans
15748 slides
15749 \family default
15750 クラスではサポートされていないので,効果がありません.
15751 \end_layout
15752
15753 \begin_layout Itemize
15754
15755 \family sans
15756 ヘディング様式
15757 \family default
15758 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
15759 \begin_inset Separator latexpar
15760 \end_inset
15761
15762
15763 \end_layout
15764
15765 \begin_deeper
15766 \begin_layout Description
15767 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
15768 \end_layout
15769
15770 \begin_layout Description
15771 設定(headings)
15772 \family sans
15773  プレーン(plain)
15774 \family default
15775 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
15776 \end_layout
15777
15778 \begin_layout Description
15779 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
15780 \end_layout
15781
15782 \end_deeper
15783 \begin_layout Itemize
15784
15785 \family sans
15786 slides
15787 \family default
15788 クラスには,もう一つ
15789 \family typewriter
15790 clock
15791 \family default
15792 というオプションがあります.これを使用するには,
15793 \family sans
15794 クラスオプション
15795 \family default
15796 に「
15797 \family typewriter
15798 clock
15799 \family default
15800 」と入力してください.
15801 \begin_inset Separator latexpar
15802 \end_inset
15803
15804
15805 \end_layout
15806
15807 \begin_deeper
15808 \begin_layout Standard
15809 このオプションを使うと,
15810 \family sans
15811 注釈
15812 \family default
15813 にタイムマーカーを加えることができます.詳細は,第
15814 \begin_inset CommandInset ref
15815 LatexCommand ref
15816 reference "sec:スライド注釈"
15817
15818 \end_inset
15819
15820 節をご覧ください.
15821 \end_layout
15822
15823 \end_deeper
15824 \begin_layout Standard
15825
15826 \family sans
15827 slides
15828 \family default
15829 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
15830 \family typewriter
15831 slides.lyx
15832 \family default
15833 」を使用することもできます(新規ファイルを開く際に
15834 \family sans
15835 ファイル\SpecialChar menuseparator
15836 新規(ひな型使用)
15837 \family default
15838 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
15839 \end_layout
15840
15841 \begin_layout Subsection
15842 段落環境
15843 \end_layout
15844
15845 \begin_layout Subsubsection
15846
15847 \family sans
15848 サポートされている環境
15849 \end_layout
15850
15851 \begin_layout Standard
15852 新しく
15853 \family sans
15854 slides
15855 \family default
15856 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
15857 \family sans
15858 サンセリフ体
15859 \family default
15860 フォントの
15861 \family sans
15862 極大
15863 \family default
15864 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
15865 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
15866 \end_layout
15867
15868 \begin_layout Standard
15869 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
15870 ます.これは,
15871 \family sans
15872 slides
15873 \family default
15874 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
15875 \end_layout
15876
15877 \begin_layout Itemize
15878
15879 \family sans
15880 標準
15881 \end_layout
15882
15883 \begin_layout Itemize
15884
15885 \family sans
15886 箇条書き(記号)
15887 \end_layout
15888
15889 \begin_layout Itemize
15890
15891 \family sans
15892 箇条書き(連番)
15893 \end_layout
15894
15895 \begin_layout Itemize
15896
15897 \family sans
15898 箇条書き(記述)
15899 \end_layout
15900
15901 \begin_layout Itemize
15902
15903 \family sans
15904 箇条書き(一覧)
15905 \end_layout
15906
15907 \begin_layout Itemize
15908
15909 \family sans
15910 引用(字下げあり)
15911 \end_layout
15912
15913 \begin_layout Itemize
15914
15915 \family sans
15916 引用(字下げなし)
15917 \end_layout
15918
15919 \begin_layout Itemize
15920
15921 \family sans
15922 詩句
15923 \end_layout
15924
15925 \begin_layout Itemize
15926
15927 \family sans
15928 キャプション
15929 \end_layout
15930
15931 \begin_layout Itemize
15932
15933 \family sans
15934 \SpecialChar LyX
15935 コード
15936 \end_layout
15937
15938 \begin_layout Itemize
15939
15940 \family sans
15941 コメント
15942 \end_layout
15943
15944 \begin_layout Standard
15945 これ以外の標準的な環境,例えば節見出し用の環境などは
15946 \family sans
15947 slides
15948 \family default
15949 クラスでは使えません.
15950 \end_layout
15951
15952 \begin_layout Standard
15953 一方,以下の新しい環境があります.
15954 \end_layout
15955
15956 \begin_layout Itemize
15957
15958 \family sans
15959 スライド
15960 \end_layout
15961
15962 \begin_layout Itemize
15963
15964 \family sans
15965 オーバーレイ
15966 \end_layout
15967
15968 \begin_layout Itemize
15969
15970 \family sans
15971 注釈
15972 \end_layout
15973
15974 \begin_layout Itemize
15975
15976 \family sans
15977 不可視文
15978 \end_layout
15979
15980 \begin_layout Itemize
15981
15982 \family sans
15983 可視文
15984 \end_layout
15985
15986 \begin_layout Standard
15987 これら5つの環境は,\SpecialChar LyX
15988 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
15989 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
15990 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
15991 マジック」が必要になります.
15992 \end_layout
15993
15994 \begin_layout Subsubsection
15995 新環境の癖
15996 \begin_inset CommandInset label
15997 LatexCommand label
15998 name "sec:スライドの癖"
15999
16000 \end_inset
16001
16002
16003 \end_layout
16004
16005 \begin_layout Standard
16006 5つの新しい環境にはすべて,\SpecialChar LyX
16007 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
16008 では,環境を別の環境で開始することが禁止されています.これを回避するために,
16009 \family sans
16010 スライド
16011 \family default
16012 環境は『
16013 \emph on
16014 ユーザーの手引き
16015 \emph default
16016 』で述べられているような段落環境ではなくなっています.
16017 \end_layout
16018
16019 \begin_layout Standard
16020
16021 \family sans
16022 スライド
16023 \family default
16024
16025 \family sans
16026 オーバーレイ
16027 \family default
16028
16029 \family sans
16030 注釈
16031 \family default
16032 は「疑似環境」だとお考えください.これらは節見出しや「
16033 \family sans
16034 キャプション
16035 \family default
16036 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
16037 \family sans
16038 不可視文
16039 \family default
16040
16041 \family sans
16042 可視文
16043 \family default
16044 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
16045 \end_layout
16046
16047 \begin_layout Standard
16048
16049 \family sans
16050 スライド
16051 \family default
16052
16053 \family sans
16054 オーバーレイ
16055 \family default
16056
16057 \family sans
16058 注釈
16059 \family default
16060
16061 \family sans
16062 不可視文
16063 \family default
16064
16065 \family sans
16066 可視文
16067 \family default
16068 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
16069 \family sans
16070 スライド
16071 \family default
16072
16073 \family sans
16074 オーバーレイ
16075 \family default
16076
16077 \family sans
16078 注釈
16079 \family default
16080
16081 \family sans
16082 不可視文
16083 \family default
16084
16085 \family sans
16086 可視文
16087 \family default
16088 では,まったく意味がなく,\SpecialChar LyX
16089 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
16090 \end_layout
16091
16092 \begin_layout Standard
16093 長めのラベルの後に文章を入れる
16094 \emph on
16095 必要は
16096 \emph default
16097 まったく
16098 \emph on
16099 ない
16100 \emph default
16101 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
16102
16103 \family sans
16104 Return
16105 \family default
16106 を押してください.
16107 \end_layout
16108
16109 \begin_layout Standard
16110 一方,説明文を入れたくない場合には,\SpecialChar LyX
16111 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
16112 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
16113 こで以下のようにしてください.
16114 \end_layout
16115
16116 \begin_layout Itemize
16117 新しい
16118 \family sans
16119 スライド
16120 \family default
16121
16122 \family sans
16123 オーバーレイ
16124 \family default
16125
16126 \family sans
16127 注釈
16128 \family default
16129
16130 \family sans
16131 不可視文
16132 \family default
16133
16134 \family sans
16135 可視文
16136 \family default
16137
16138 \emph on
16139 中に入れる
16140 \emph default
16141 文章を入力してください.
16142 \end_layout
16143
16144 \begin_layout Itemize
16145 段落の先頭に移動します.
16146 \end_layout
16147
16148 \begin_layout Itemize
16149 次に
16150 \family sans
16151 Return
16152 \family default
16153 を押します.
16154 \end_layout
16155
16156 \begin_layout Itemize
16157 最後に,この新しい空の段落を
16158 \family sans
16159 スライド
16160 \family default
16161
16162 \family sans
16163 オーバーレイ
16164 \family default
16165
16166 \family sans
16167 注釈
16168 \family default
16169
16170 \family sans
16171 不可視文
16172 \family default
16173
16174 \family sans
16175 可視文
16176 \family default
16177 に変更します.
16178 \end_layout
16179
16180 \begin_layout Standard
16181 将来の\SpecialChar LyX
16182 では,このような癖が解決されることを祈っています\SpecialChar ldots
16183
16184 \begin_inset Foot
16185 status collapsed
16186
16187 \begin_layout Plain Layout
16188 (訳註)ここの記述は古くなっています.
16189 \end_layout
16190
16191 \end_inset
16192
16193
16194 \end_layout
16195
16196 \begin_layout Subsection
16197
16198 \family sans
16199 スライド
16200 \family default
16201
16202 \family sans
16203 オーバーレイ
16204 \family default
16205
16206 \family sans
16207 注釈で発表用のスライドを作る
16208 \end_layout
16209
16210 \begin_layout Subsubsection
16211
16212 \family sans
16213 スライド
16214 \family default
16215 環境を使う
16216 \end_layout
16217
16218 \begin_layout Standard
16219 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
16220 料を準備するうえで
16221 \family sans
16222 slides
16223 \family default
16224 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16225 の哲学です).
16226 \end_layout
16227
16228 \begin_layout Standard
16229
16230 \family sans
16231 スライド
16232 \family default
16233 環境を選択すれば(方法は第
16234 \begin_inset CommandInset ref
16235 LatexCommand ref
16236 reference "sec:スライドの癖"
16237
16238 \end_inset
16239
16240 節参照のこと),\SpecialChar LyX
16241 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
16242 環境は,すべて新規スライドに入ります.簡単ですよね.
16243 \end_layout
16244
16245 \begin_layout Standard
16246 Slidesは,おそらく\SpecialChar LyX
16247 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16248 \family sans
16249 段落レイアウト
16250 \family default
16251 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16252 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
16253 ,一枚に収まらないスライドでは,
16254 \family sans
16255 オーバーレイ
16256 \family default
16257 を使用すると干渉する恐れがあります.
16258 \end_layout
16259
16260 \begin_layout Standard
16261
16262 \family sans
16263 オーバーレイ
16264 \family default
16265 環境と
16266 \family sans
16267 注釈
16268 \family default
16269 環境も,
16270 \family sans
16271 スライド
16272 \family default
16273 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
16274 \noun on
16275 新規オーバーレイ
16276 \noun default
16277 :」ないし「
16278 \noun on
16279 新規注釈:
16280 \noun default
16281 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
16282 \end_layout
16283
16284 \begin_layout Standard
16285
16286 \family sans
16287 スライド
16288 \family default
16289 と同様に,
16290 \family sans
16291 オーバーレイ
16292 \family default
16293
16294 \family sans
16295 注釈
16296 \family default
16297 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
16298 \family sans
16299 注釈
16300 \family default
16301
16302 \family sans
16303 オーバーレイ
16304 \family default
16305 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
16306 \end_layout
16307
16308 \begin_layout Subsubsection
16309
16310 \family sans
16311 スライドでオーバーレイを使用する
16312 \end_layout
16313
16314 \begin_layout Standard
16315
16316 \family sans
16317 オーバーレイ
16318 \family default
16319 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
16320 \family sans
16321 スライド
16322 \family default
16323 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
16324 \family sans
16325 スライド
16326 \family default
16327 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
16328 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
16329 \family sans
16330 オーバーレイ
16331 \family default
16332 環境を使えば,もっと楽になります.
16333 \end_layout
16334
16335 \begin_layout Standard
16336
16337 \family sans
16338 オーバーレイ
16339 \family default
16340 は,「親」
16341 \family sans
16342 スライド
16343 \family default
16344 のページ番号を引継ぎ,その後に「
16345 \family typewriter
16346 -a
16347 \family default
16348 」を付け加えます
16349 \begin_inset Foot
16350 status collapsed
16351
16352 \begin_layout Plain Layout
16353 想像できるように,複数のオーバーレイがあれば,「
16354 \family typewriter
16355 -a
16356 \family default
16357 」「
16358 \family typewriter
16359 -b
16360 \family default
16361 」「
16362 \family typewriter
16363 -c
16364 \family default
16365 」などが親スライドのページ番号に付け加えられます.
16366 \end_layout
16367
16368 \end_inset
16369
16370 .当然のことながら,
16371 \family sans
16372 スライド
16373 \family default
16374
16375 \family sans
16376 オーバーレイ
16377 \family default
16378 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
16379 \family sans
16380 オーバーレイ
16381 \family default
16382
16383 \family sans
16384 スライド
16385 \family default
16386 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
16387 では,
16388 \family sans
16389 オーバーレイ
16390 \family default
16391 のラベルを
16392 \family sans
16393 スライド
16394 \family default
16395 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
16396 \family sans
16397 オーバーレイ
16398 \family default
16399 と親
16400 \family sans
16401 スライド
16402 \family default
16403 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
16404 \end_layout
16405
16406 \begin_layout Standard
16407 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
16408 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
16409 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
16410 \family sans
16411 不可視文
16412 \family default
16413
16414 \family sans
16415 可視文
16416 \family default
16417 を使用する方法があります.
16418 \end_layout
16419
16420 \begin_layout Standard
16421 これらの名前が意味するとおり,
16422 \family sans
16423 不可視文
16424 \family default
16425
16426 \family sans
16427 可視文
16428 \family default
16429 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
16430 \begin_inset CommandInset ref
16431 LatexCommand ref
16432 reference "sec:スライドの癖"
16433
16434 \end_inset
16435
16436 節で述べたように,この2つの環境の
16437 \emph on
16438
16439 \emph default
16440 には何も置くことができません.
16441 \family sans
16442 不可視文
16443 \family default
16444 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
16445 \family sans
16446 スライド
16447 \family default
16448 (あるいは
16449 \family sans
16450 オーバーレイ
16451 \family default
16452 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
16453 \end_layout
16454
16455 \begin_layout Standard
16456
16457 \family sans
16458 可視文
16459 \family default
16460 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
16461 \family sans
16462 スライド
16463 \family default
16464
16465 \family sans
16466 オーバーレイ
16467 \family default
16468
16469 \family sans
16470 注釈
16471 \family default
16472 を開始すると,
16473 \family sans
16474 不可視文
16475 \family default
16476 は自動的に終了されることに注意してください.したがって,
16477 \family sans
16478 スライド
16479 \family default
16480 の終わりでは,
16481 \family sans
16482 可視文
16483 \family default
16484 を使用する必要はありません.
16485 \end_layout
16486
16487 \begin_layout Standard
16488 ここまでで,
16489 \family sans
16490 スライド
16491 \family default
16492
16493 \family sans
16494 オーバーレイ
16495 \family default
16496 上で
16497 \family sans
16498 不可視文
16499 \family default
16500
16501 \family sans
16502 可視文
16503 \family default
16504 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
16505 \end_layout
16506
16507 \begin_layout Enumerate
16508 メインのスライドか
16509 \family sans
16510 オーバーレイ
16511 \family default
16512 かに関わらず,スライド上に現れるすべてを含んだ
16513 \family sans
16514 スライド
16515 \family default
16516 を作成します.
16517 \end_layout
16518
16519 \begin_layout Enumerate
16520
16521 \family sans
16522 オーバーレイ
16523 \family default
16524 のみに表示するすべての図や段落の前に,
16525 \family sans
16526 不可視文
16527 \family default
16528 環境を挿入し,必要ならば,
16529 \family sans
16530 オーバーレイ
16531 \family default
16532 のみの文章の後に
16533 \family sans
16534 可視文
16535 \family default
16536 環境を挿入します.
16537 \end_layout
16538
16539 \begin_layout Enumerate
16540
16541 \family sans
16542 スライド
16543 \family default
16544 の直後から,
16545 \family sans
16546 オーバーレイ
16547 \family default
16548 を開始します.
16549 \end_layout
16550
16551 \begin_layout Enumerate
16552 この
16553 \family sans
16554 スライド
16555 \family default
16556 の内容を
16557 \family sans
16558 オーバーレイ
16559 \family default
16560 にコピーします.
16561 \end_layout
16562
16563 \begin_layout Enumerate
16564
16565 \family sans
16566 オーバーレイ
16567 \family default
16568 内部の
16569 \family sans
16570 不可視文
16571 \family default
16572 行をすべて
16573 \family sans
16574 不可視文
16575 \family default
16576 に変更し,
16577 \family sans
16578 可視文
16579 \family default
16580
16581 \family sans
16582 不可視文
16583 \family default
16584 に変更します.
16585 \end_layout
16586
16587 \begin_layout Standard
16588 これだけです.これで
16589 \family sans
16590 オーバーレイ
16591 \family default
16592 ができあがりました.
16593 \end_layout
16594
16595 \begin_layout Standard
16596 \SpecialChar LyX
16597  
16598 \family sans
16599 slides
16600 \family default
16601 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
16602 実現するためには,\SpecialChar LaTeX
16603 コードを埋め込む必要があります
16604 \begin_inset Foot
16605 status collapsed
16606
16607 \begin_layout Plain Layout
16608 このコマンドは,
16609 \end_layout
16610
16611 \begin_layout Itemize
16612
16613 \family typewriter
16614 {
16615 \backslash
16616 invisible \SpecialChar ldots
16617  }
16618 \end_layout
16619
16620 \begin_layout Itemize
16621
16622 \family typewriter
16623 {
16624 \backslash
16625 visible \SpecialChar ldots
16626  }
16627 \end_layout
16628
16629 \begin_layout Plain Layout
16630 \SpecialChar ldots
16631 のような形となり,\SpecialChar TeX
16632 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
16633 \family typewriter
16634
16635 \backslash
16636 invisible
16637 \family default
16638 ないし
16639 \family typewriter
16640
16641 \backslash
16642 visible
16643 \family default
16644 コマンドの後ろ)に入れます.\SpecialChar TeX
16645 としてマークする方法がわからない場合は,
16646 \emph on
16647 ユーザーの手引き
16648 \emph default
16649 をご参照ください.
16650 \end_layout
16651
16652 \end_inset
16653
16654
16655 \end_layout
16656
16657 \begin_layout Subsubsection
16658
16659 \family sans
16660 スライドで注釈を使う
16661 \family default
16662
16663 \begin_inset CommandInset label
16664 LatexCommand label
16665 name "sec:スライド注釈"
16666
16667 \end_inset
16668
16669
16670 \end_layout
16671
16672 \begin_layout Standard
16673
16674 \family sans
16675 オーバーレイ
16676 \family default
16677 と同様,
16678 \family sans
16679 注釈
16680 \family default
16681 も「親」
16682 \family sans
16683 スライド
16684 \family default
16685 に関連付けられています.ここでも\SpecialChar LyX
16686
16687 \family sans
16688 スライド
16689 \family default
16690 クラスは視覚的な効果を与えています.
16691 \family sans
16692 注釈
16693 \family default
16694 のラベルは
16695 \family sans
16696 スライド
16697 \family default
16698 よりも短く(オーバーレイのラベルよりも長いですが),
16699 \family sans
16700 オーバーレイ
16701 \family default
16702 のラベルと同様,派手な赤紫色です.加えて,印刷した
16703 \family sans
16704 注釈
16705 \family default
16706 には,「親」スライドのページ番号に「
16707 \family typewriter
16708 -
16709 \family default
16710 1」「
16711 \family typewriter
16712 -
16713 \family default
16714 2」「
16715 \family typewriter
16716 -
16717 \family default
16718 3」等を付けたページ番号が付けられます.1つの
16719 \family sans
16720 スライド
16721 \family default
16722 には,複数の
16723 \family sans
16724 注釈
16725 \family default
16726 を関連付けることができるので,
16727 \family sans
16728 スライド
16729 \family default
16730
16731 \family sans
16732 オーバーレイ
16733 \family default
16734 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
16735 \end_layout
16736
16737 \begin_layout Standard
16738
16739 \family sans
16740 注釈
16741 \family default
16742 の目的は明らかです.
16743 \family sans
16744 スライド
16745 \family default
16746 に関して付け加えたいことを書き留めておくことです.特定の
16747 \family sans
16748 スライド
16749 \family default
16750 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
16751
16752 \family sans
16753 スライド
16754 \family default
16755 クラスは,
16756 \noun on
16757 Sli
16758 \noun default
16759 \SpecialChar TeX
16760 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
16761 コードを使用することに頼らなくてはなりません.
16762 \end_layout
16763
16764 \begin_layout Standard
16765 タイムマーカを使用するには,クラスオプション「
16766 \family typewriter
16767 clock
16768 \family default
16769 」を追加指定する必要があります(第
16770 \begin_inset CommandInset ref
16771 LatexCommand ref
16772 reference "sec:slidesetup"
16773
16774 \end_inset
16775
16776 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
16777 \family sans
16778 注釈
16779 \family default
16780 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
16781 コマンド「
16782 \family typewriter
16783
16784 \backslash
16785 settime{}
16786 \family default
16787 」および「
16788 \family typewriter
16789
16790 \backslash
16791 addtime{}
16792 \family default
16793 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
16794 \family typewriter
16795
16796 \backslash
16797 settime{}
16798 \family default
16799 」は,タイムマーカを特定の時間に設定し,「
16800 \family typewriter
16801
16802 \backslash
16803 addtime{}
16804 \family default
16805 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
16806 \family sans
16807 注釈
16808 \family default
16809 を用いれば,特定の
16810 \family sans
16811 スライド
16812 \family default
16813 にどれだけの時間をかけるのか忘れないでいられます.
16814 \end_layout
16815
16816 \begin_layout Standard
16817 最後に,説明しておくべき機能がもう一つあります.当然ながら,
16818 \family sans
16819 スライド
16820 \family default
16821
16822 \family sans
16823 オーバーレイ
16824 \family default
16825 はすべてスライドに,
16826 \family sans
16827 注釈
16828 \family default
16829 はすべて普通の紙に印刷したいはずです.しかしながら,
16830 \family sans
16831 注釈
16832 \family default
16833 は関連付けられた親スライドの直後に
16834 \emph on
16835 来なくてはなりません
16836 \emph default
16837 .ユーザーはどうしたら良いのでしょうか.
16838 \end_layout
16839
16840 \begin_layout Standard
16841 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
16842 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
16843 \family typewriter
16844
16845 \backslash
16846 onlyslides{
16847 \backslash
16848 slides}
16849 \family default
16850 」は,出力に
16851 \family sans
16852 スライド
16853 \family default
16854
16855 \family sans
16856 オーバーレイ
16857 \family default
16858 のみが含まれるようにするものです.同様に,「
16859 \family typewriter
16860
16861 \backslash
16862 onlynotes{
16863 \backslash
16864 notes}
16865 \family default
16866 」は
16867 \family sans
16868 注釈
16869 \family default
16870 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
16871 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
16872 らば,まず
16873 \family typewriter
16874
16875 \backslash
16876 onlyslides{
16877 \backslash
16878 slides}
16879 \family default
16880 のコメントを外して,現ファイル名に「*
16881 \family typewriter
16882 -slides
16883 \family default
16884 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
16885 \family typewriter
16886
16887 \backslash
16888 onlynotes{
16889 \backslash
16890 notes
16891 \family default
16892 }」のコメントを外して,これを「
16893 \family typewriter
16894 *-notes.ps
16895 \family default
16896 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
16897 \end_layout
16898
16899 \begin_layout Standard
16900
16901 \family typewriter
16902
16903 \backslash
16904 onlyslides{}
16905 \family default
16906 」および「
16907 \family typewriter
16908
16909 \backslash
16910 onlynotes{}
16911 \family default
16912 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
16913 の良書をご覧ください.
16914 \end_layout
16915
16916 \begin_layout Subsection
16917
16918 \family sans
16919 slides
16920 \family default
16921 クラスのひな型ファイル
16922 \end_layout
16923
16924 \begin_layout Standard
16925
16926 \family sans
16927 slides
16928 \family default
16929 クラス用のひな型ファイルとして「
16930 \family typewriter
16931 slides.lyx
16932 \family default
16933 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
16934 \family sans
16935 ファイル\SpecialChar menuseparator
16936 新規(ひな型使用)
16937 \family default
16938 メニューを選択してください.すると新規ファイルには,
16939 \family sans
16940 スライド
16941 \family default
16942
16943 \family sans
16944 オーバーレイ
16945 \family default
16946
16947 \family sans
16948 注釈
16949 \family default
16950 の組が,例として含まれており,
16951 \family sans
16952 スライド
16953 \family default
16954
16955 \family sans
16956 オーバーレイ
16957 \family default
16958 には,さらに
16959 \family sans
16960 不可視文
16961 \family default
16962
16963 \family sans
16964 可視文
16965 \family default
16966 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
16967 \end_layout
16968
16969 \begin_layout LyX-Code
16970 % Uncomment to print out only slides and overlays
16971 \end_layout
16972
16973 \begin_layout LyX-Code
16974 %
16975 \end_layout
16976
16977 \begin_layout LyX-Code
16978 %
16979 \backslash
16980 onlyslides{
16981 \backslash
16982 slides}
16983 \begin_inset Newline newline
16984 \end_inset
16985
16986  
16987 \end_layout
16988
16989 \begin_layout LyX-Code
16990 % Uncomment to print out only notes
16991 \end_layout
16992
16993 \begin_layout LyX-Code
16994 %
16995 \end_layout
16996
16997 \begin_layout LyX-Code
16998 %
16999 \backslash
17000 onlynotes{
17001 \backslash
17002 notes}
17003 \end_layout
17004
17005 \begin_layout Standard
17006 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
17007 の組み込みクラスである「
17008 \noun on
17009 Sli\SpecialChar TeX
17010
17011 \noun default
17012 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
17013 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17014 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
17015 \family sans
17016 Foils
17017 \family default
17018 クラス(第
17019 \begin_inset CommandInset ref
17020 LatexCommand ref
17021 reference "sec:foiltex"
17022
17023 \end_inset
17024
17025 節参照)や「
17026 \family typewriter
17027 seminar
17028 \family default
17029 」パッケージ(一部の\SpecialChar TeX
17030 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
17031 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
17032 さい.
17033 \end_layout
17034
17035 \begin_layout Chapter
17036 ソフトウェアを追加する必要がある \SpecialChar LyX
17037 機能
17038 \end_layout
17039
17040 \begin_layout Section
17041 \SpecialChar TeX
17042 のチェック
17043 \end_layout
17044
17045 \begin_layout Standard
17046
17047 \noun on
17048 Asger Alstrup
17049 \noun default
17050
17051 \end_layout
17052
17053 \begin_layout Subsection
17054 はじめに
17055 \end_layout
17056
17057 \begin_layout Standard
17058
17059 \family typewriter
17060 chktex
17061 \family default
17062 プログラムが導入されていると
17063 \begin_inset Foot
17064 status collapsed
17065
17066 \begin_layout Plain Layout
17067 \SpecialChar LaTeX
17068 頒布版としてMiK\SpecialChar TeX
17069 を使用している場合には,
17070 \family typewriter
17071 chktex
17072 \family default
17073 はまだ利用可能ではありません.
17074 \end_layout
17075
17076 \end_inset
17077
17078
17079 \family sans
17080 ツール
17081 \family default
17082 メニューの下に,
17083 \family sans
17084 \SpecialChar TeX
17085 構文チェック
17086 \family default
17087 という項目が表示されます.
17088 \family typewriter
17089 chktex
17090 \family default
17091 は,CTAN
17092 \begin_inset Newline newline
17093 \end_inset
17094
17095
17096 \begin_inset CommandInset href
17097 LatexCommand href
17098 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17099
17100 \end_inset
17101
17102 から入手することができます.
17103 \end_layout
17104
17105 \begin_layout Standard
17106
17107 \family sans
17108 Chk\SpecialChar TeX
17109
17110 \family default
17111 パッケージは,\SpecialChar LaTeX
17112 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
17113 \begin_inset Flex Noun
17114 status collapsed
17115
17116 \begin_layout Plain Layout
17117 Jens T.
17118  Berger Thielemann
17119 \end_layout
17120
17121 \end_inset
17122
17123 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
17124 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
17125 \family typewriter
17126 lint
17127 \family default
17128 であるとも言えます.
17129 \end_layout
17130
17131 \begin_layout Standard
17132 さて,\SpecialChar LyX
17133 はつねに正しい\SpecialChar LaTeX
17134 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
17135 で何をするというのでしょうか.答えは簡単です.
17136 \family typewriter
17137 lint
17138 \family default
17139 がC言語プログラムの
17140 \emph on
17141 文法
17142 \emph default
17143 をチェックするだけでなく,打ち間違いによる
17144 \emph on
17145 意味上の
17146 \emph default
17147 チェックも行うように,
17148 \family sans
17149 Chk\SpecialChar TeX
17150
17151 \family default
17152 は,文法エラーの他に犯しがちな
17153 \emph on
17154 写植上の
17155 \emph default
17156 誤りも検出してくれるからです.
17157 \family sans
17158 Chk\SpecialChar TeX
17159
17160 \family default
17161 は,以下のような誤りを検出することができます.
17162 \end_layout
17163
17164 \begin_layout Itemize
17165 省略記号の検出:
17166 \begin_inset Newline newline
17167 \end_inset
17168
17169 ...ではなく\SpecialChar ldots
17170 を使わなくてはなりません
17171 \end_layout
17172
17173 \begin_layout Itemize
17174 括弧の前後にスペースを置かない:
17175 \begin_inset Newline newline
17176 \end_inset
17177
17178 ( wrong spacing ):誤った空白
17179 \end_layout
17180
17181 \begin_layout Itemize
17182 よく使われる省略形の後ろは通常スペースにする:
17183 \begin_inset Newline newline
17184 \end_inset
17185
17186 e.
17187 \begin_inset space \thinspace{}
17188 \end_inset
17189
17190 g.
17191 \begin_inset space \space{}
17192 \end_inset
17193
17194 is too wide spacing.:広すぎる空白
17195 \end_layout
17196
17197 \begin_layout Itemize
17198 直前の文章が大文字で終わっているときに,文末スペースに直す:
17199 \begin_inset Newline newline
17200 \end_inset
17201
17202 This is a TEST.
17203  And this is wrong spacing.:誤った空白
17204 \end_layout
17205
17206 \begin_layout Itemize
17207 ラベルや類似コマンドの前のスペース:
17208 \begin_inset Newline newline
17209 \end_inset
17210
17211 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません. 
17212 \begin_inset CommandInset label
17213 LatexCommand label
17214 name "sec:chktex"
17215
17216 \end_inset
17217
17218  
17219 \begin_inset Foot
17220 status collapsed
17221
17222 \begin_layout Plain Layout
17223 この脚注は,正しくないページに行ってしまう恐れがあります.
17224 \end_layout
17225
17226 \end_inset
17227
17228  このラベルは離れすぎです.
17229 \end_layout
17230
17231 \begin_layout Itemize
17232 参照の前にハードスペースではなくスペース:
17233 \begin_inset Newline newline
17234 \end_inset
17235
17236 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
17237 \begin_inset CommandInset ref
17238 LatexCommand ref
17239 reference "sec:chktex"
17240
17241 \end_inset
17242
17243 節をご覧ください.
17244 \end_layout
17245
17246 \begin_layout Itemize
17247 数字のあいだで
17248 \begin_inset Formula $\times$
17249 \end_inset
17250
17251 ではなく「x」が使われている:
17252 \begin_inset Newline newline
17253 \end_inset
17254
17255 2x2は,
17256 \begin_inset Formula $2\times2$
17257 \end_inset
17258
17259 よりも安っぽく見えます.
17260 \end_layout
17261
17262 \begin_layout Standard
17263 などなど\SpecialChar ldots
17264
17265 \family sans
17266 Chk\SpecialChar TeX
17267
17268 \family default
17269 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
17270 \end_layout
17271
17272 \begin_layout Subsection
17273 使いかた
17274 \end_layout
17275
17276 \begin_layout Standard
17277 このプログラムを導入したならば,使うのは
17278 \family sans
17279 ツール\SpecialChar menuseparator
17280 \SpecialChar TeX
17281 構文チェック
17282 \family default
17283 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
17284 は使用中の文書の\SpecialChar LaTeX
17285 ファイルを生成して,
17286 \family sans
17287 Chk\SpecialChar TeX
17288
17289 \family default
17290 を起動し,当該ファイルを検査しますが,
17291 \family sans
17292 Chk\SpecialChar TeX
17293
17294 \family default
17295 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
17296 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
17297 \family sans
17298 移動\SpecialChar menuseparator
17299 エラー
17300 \family default
17301 を選択するか,既定の
17302 \family typewriter
17303 cua
17304 \family default
17305
17306 \begin_inset Flex Ruby
17307 status collapsed
17308
17309 \begin_layout Plain Layout
17310
17311 \begin_inset Argument post:1
17312 status collapsed
17313
17314 \begin_layout Plain Layout
17315 キー
17316 \end_layout
17317
17318 \end_inset
17319
17320
17321 \end_layout
17322
17323 \end_inset
17324
17325 設定ファイルならば
17326 \begin_inset Flex Ruby
17327 status collapsed
17328
17329 \begin_layout Plain Layout
17330
17331 \family roman
17332 \series medium
17333 \shape up
17334 \size normal
17335 \emph off
17336 \bar no
17337 \noun off
17338 \color none
17339 捷径
17340 \family default
17341 \series default
17342 \shape default
17343 \size default
17344 \emph default
17345 \bar default
17346 \noun default
17347 \color inherit
17348
17349 \begin_inset Argument post:1
17350 status collapsed
17351
17352 \begin_layout Plain Layout
17353 ショートカット
17354 \end_layout
17355
17356 \end_inset
17357
17358
17359 \end_layout
17360
17361 \end_inset
17362
17363
17364 \family sans
17365 C-g
17366 \family default
17367 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
17368 \family typewriter
17369 cua
17370 \family default
17371 鍵設定の場合には捷径鍵
17372 \family sans
17373 C-i
17374 \family default
17375
17376 \family typewriter
17377 emacs
17378 \family default
17379 鍵設定の場合は捷径鍵
17380 \family sans
17381 C-o
17382 \family default
17383 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
17384 \family sans
17385 Chk\SpecialChar TeX
17386
17387 \family default
17388 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
17389 があるのです.
17390 \end_layout
17391
17392 \begin_layout Standard
17393 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
17394 警告のほとんどは実際には警告に値しません.
17395 \end_layout
17396
17397 \begin_layout Subsection
17398 微調整のしかた
17399 \end_layout
17400
17401 \begin_layout Standard
17402 場合によっては,
17403 \family sans
17404 Chk\SpecialChar TeX
17405
17406 \family default
17407 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
17408 \family sans
17409 Chk\SpecialChar TeX
17410
17411 \family default
17412 を無効にするか,あなたにもう少し合うように
17413 \family sans
17414 Chk\SpecialChar TeX
17415
17416 \family default
17417 を調整することができます.
17418 \end_layout
17419
17420 \begin_layout Standard
17421
17422 \family sans
17423 Chk\SpecialChar TeX
17424
17425 \family default
17426 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
17427 における
17428 \family sans
17429 Chk\SpecialChar TeX
17430
17431 \family default
17432 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
17433 は,
17434 \family sans
17435 Chk\SpecialChar TeX
17436
17437 \family default
17438 出力
17439 \begin_inset Foot
17440 status collapsed
17441
17442 \begin_layout Plain Layout
17443
17444 \family sans
17445 chktex
17446 \family default
17447 の実際の出力は,
17448 \family sans
17449 chktex
17450 \family default
17451 を実行した直後に
17452 \family sans
17453 文書\SpecialChar menuseparator
17454 \SpecialChar LaTeX
17455 ログ
17456 \family default
17457 を使えば見ることができます.
17458 \end_layout
17459
17460 \end_inset
17461
17462 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
17463 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
17464 ためには,以下の2つの方法があります.
17465 \end_layout
17466
17467 \begin_layout Itemize
17468
17469 \family sans
17470 \begin_inset Flex MenuItem
17471 status collapsed
17472
17473 \begin_layout Plain Layout
17474
17475 \family sans
17476 ツール\SpecialChar menuseparator
17477 設定\SpecialChar menuseparator
17478 出力\SpecialChar menuseparator
17479 \SpecialChar LaTeX
17480 \SpecialChar menuseparator
17481 Check\SpecialChar TeX
17482 コマンド
17483 \end_layout
17484
17485 \end_inset
17486
17487
17488 \family default
17489 中の
17490 \family sans
17491 Chk\SpecialChar TeX
17492
17493 \family default
17494 起動コマンドラインを調整するか,グローバルな
17495 \family sans
17496 Chk\SpecialChar TeX
17497
17498 \family default
17499 の設定ファイル(通常は
17500 \begin_inset Flex Code
17501 status collapsed
17502
17503 \begin_layout Plain Layout
17504 chktexrc
17505 \end_layout
17506
17507 \end_inset
17508
17509 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
17510 \end_layout
17511
17512 \begin_layout Itemize
17513
17514 \family sans
17515 ファイル\SpecialChar menuseparator
17516 書き出し\SpecialChar menuseparator
17517 \SpecialChar LaTeX
17518
17519 \family default
17520 を使って文書を\SpecialChar LaTeX
17521 ファイルに変換し,そのファイルに対して
17522 \family typewriter
17523 chktex
17524 \family default
17525 を手動で実行します.このようにすると,\SpecialChar LyX
17526 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
17527 \end_layout
17528
17529 \begin_layout Standard
17530 以下は,
17531 \family sans
17532 設定
17533 \family default
17534 で有効化・無効化できる警告メッセージです.警告を無効にするには
17535 \family typewriter
17536 -n#
17537 \family default
17538 ,有効にするには
17539 \family typewriter
17540 -w#
17541 \family default
17542 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
17543 \family typewriter
17544 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17545 \family default
17546 "です.
17547 \end_layout
17548
17549 \begin_layout Standard
17550 \SpecialChar LyX
17551 は,
17552 \family typewriter
17553 chktex
17554 \family default
17555 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
17556 \end_layout
17557
17558 \begin_layout Enumerate
17559
17560 \size small
17561 \emph on
17562 Command terminated with space.
17563 \end_layout
17564
17565 \begin_layout Enumerate
17566
17567 \size small
17568 Non-breaking space (
17569 \begin_inset Quotes eld
17570 \end_inset
17571
17572
17573 \family typewriter
17574 ~
17575 \family default
17576
17577 \begin_inset Quotes erd
17578 \end_inset
17579
17580 ) should have been used.
17581 \end_layout
17582
17583 \begin_layout Enumerate
17584
17585 \size small
17586 \emph on
17587 You should enclose the previous parenthesis with 
17588 \begin_inset Quotes eld
17589 \end_inset
17590
17591
17592 \family typewriter
17593 {}
17594 \family default
17595
17596 \begin_inset Quotes erd
17597 \end_inset
17598
17599 .
17600 \end_layout
17601
17602 \begin_layout Enumerate
17603
17604 \size small
17605 Italic correction (
17606 \begin_inset Quotes eld
17607 \end_inset
17608
17609
17610 \family typewriter
17611
17612 \backslash
17613 /
17614 \family default
17615
17616 \begin_inset Quotes erd
17617 \end_inset
17618
17619 ) found in non-italic buffer.
17620 \end_layout
17621
17622 \begin_layout Enumerate
17623
17624 \size small
17625 Italic correction (
17626 \begin_inset Quotes eld
17627 \end_inset
17628
17629
17630 \family typewriter
17631
17632 \backslash
17633 /
17634 \family default
17635
17636 \begin_inset Quotes erd
17637 \end_inset
17638
17639 ) found more than once.
17640 \end_layout
17641
17642 \begin_layout Enumerate
17643
17644 \size small
17645 \emph on
17646 No italic correction (
17647 \begin_inset Quotes eld
17648 \end_inset
17649
17650
17651 \family typewriter
17652
17653 \backslash
17654 /
17655 \family default
17656
17657 \begin_inset Quotes erd
17658 \end_inset
17659
17660 ) found.
17661 \end_layout
17662
17663 \begin_layout Enumerate
17664
17665 \size small
17666 Accent command 
17667 \begin_inset Quotes eld
17668 \end_inset
17669
17670
17671 \family typewriter
17672 cmd
17673 \family default
17674
17675 \begin_inset Quotes erd
17676 \end_inset
17677
17678  needs use of 
17679 \begin_inset Quotes eld
17680 \end_inset
17681
17682
17683 \family typewriter
17684 cmd
17685 \family default
17686
17687 \begin_inset Quotes erd
17688 \end_inset
17689
17690 .
17691 \end_layout
17692
17693 \begin_layout Enumerate
17694
17695 \size small
17696 Wrong length of dash may have been used.
17697 \end_layout
17698
17699 \begin_layout Enumerate
17700
17701 \size small
17702 \emph on
17703 \begin_inset Quotes eld
17704 \end_inset
17705
17706
17707 \family typewriter
17708 %s
17709 \family default
17710
17711 \begin_inset Quotes erd
17712 \end_inset
17713
17714  expected, found 
17715 \begin_inset Quotes eld
17716 \end_inset
17717
17718
17719 \family typewriter
17720 %s
17721 \family default
17722
17723 \begin_inset Quotes erd
17724 \end_inset
17725
17726 .
17727 \end_layout
17728
17729 \begin_layout Enumerate
17730
17731 \size small
17732 Solo 
17733 \begin_inset Quotes eld
17734 \end_inset
17735
17736
17737 \family typewriter
17738 %s
17739 \family default
17740
17741 \begin_inset Quotes erd
17742 \end_inset
17743
17744  found.
17745 \end_layout
17746
17747 \begin_layout Enumerate
17748
17749 \size small
17750 You should use 
17751 \begin_inset Quotes eld
17752 \end_inset
17753
17754
17755 \family typewriter
17756 %s
17757 \family default
17758
17759 \begin_inset Quotes erd
17760 \end_inset
17761
17762  to achieve an ellipsis.
17763 \end_layout
17764
17765 \begin_layout Enumerate
17766
17767 \size small
17768 Inter-word spacing (
17769 \begin_inset Quotes eld
17770 \end_inset
17771
17772
17773 \family typewriter
17774
17775 \backslash
17776
17777 \family default
17778  
17779 \begin_inset Quotes eld
17780 \end_inset
17781
17782 ) should perhaps be used.
17783 \end_layout
17784
17785 \begin_layout Enumerate
17786
17787 \size small
17788 Inter-sentence spacing (
17789 \begin_inset Quotes eld
17790 \end_inset
17791
17792
17793 \family typewriter
17794
17795 \backslash
17796 @
17797 \family default
17798
17799 \begin_inset Quotes erd
17800 \end_inset
17801
17802 ) should perhaps be used.
17803 \end_layout
17804
17805 \begin_layout Enumerate
17806
17807 \size small
17808 Could not find argument for command.
17809 \end_layout
17810
17811 \begin_layout Enumerate
17812
17813 \size small
17814 No match found for 
17815 \begin_inset Quotes eld
17816 \end_inset
17817
17818
17819 \family typewriter
17820 %s
17821 \family default
17822
17823 \begin_inset Quotes erd
17824 \end_inset
17825
17826 .
17827 \end_layout
17828
17829 \begin_layout Enumerate
17830
17831 \size small
17832 Math mode still on at end of \SpecialChar LaTeX
17833  file.
17834 \end_layout
17835
17836 \begin_layout Enumerate
17837
17838 \size small
17839 Number of 
17840 \begin_inset Quotes eld
17841 \end_inset
17842
17843
17844 \family typewriter
17845 char
17846 \family default
17847
17848 \begin_inset Quotes erd
17849 \end_inset
17850
17851  doesn't match the number of 
17852 \begin_inset Quotes eld
17853 \end_inset
17854
17855
17856 \family typewriter
17857 char
17858 \family default
17859
17860 \begin_inset Quotes erd
17861 \end_inset
17862
17863 .
17864 \end_layout
17865
17866 \begin_layout Enumerate
17867
17868 \size small
17869 You should use either 
17870 \family typewriter
17871
17872 \begin_inset Quotes eld
17873 \end_inset
17874
17875
17876 \family default
17877  or 
17878 \family typewriter
17879
17880 \begin_inset Quotes erd
17881 \end_inset
17882
17883
17884 \family default
17885  as an alternative to 
17886 \begin_inset Quotes eld
17887 \end_inset
17888
17889
17890 \family typewriter
17891 "
17892 \family default
17893
17894 \begin_inset Quotes erd
17895 \end_inset
17896
17897 .
17898 \end_layout
17899
17900 \begin_layout Enumerate
17901
17902 \size small
17903 You should use "
17904 \family typewriter
17905 '
17906 \family default
17907 " (ASCII 39) instead of "" (ASCII 180).
17908 \end_layout
17909
17910 \begin_layout Enumerate
17911
17912 \size small
17913 User-specified pattern found.
17914 \end_layout
17915
17916 \begin_layout Enumerate
17917
17918 \size small
17919 This command might not be intended.
17920 \end_layout
17921
17922 \begin_layout Enumerate
17923
17924 \size small
17925 \emph on
17926 Comment displayed.
17927 \end_layout
17928
17929 \begin_layout Enumerate
17930
17931 \size small
17932 Either 
17933 \family typewriter
17934 ''
17935 \backslash
17936 ,'
17937 \family default
17938  or 
17939 \family typewriter
17940 '
17941 \backslash
17942 ,''
17943 \family default
17944  will look better.
17945 \end_layout
17946
17947 \begin_layout Enumerate
17948
17949 \size small
17950 Delete this space to maintain correct page references.
17951 \end_layout
17952
17953 \begin_layout Enumerate
17954
17955 \size small
17956 \emph on
17957 You might wish to put this between a pair of 
17958 \begin_inset Quotes eld
17959 \end_inset
17960
17961
17962 \family typewriter
17963 {}
17964 \family default
17965
17966 \begin_inset Quotes erd
17967 \end_inset
17968
17969 .
17970 \end_layout
17971
17972 \begin_layout Enumerate
17973
17974 \size small
17975 You ought to remove spaces in front of punctuation.
17976 \end_layout
17977
17978 \begin_layout Enumerate
17979
17980 \size small
17981 Could not execute \SpecialChar LaTeX
17982  command.
17983 \end_layout
17984
17985 \begin_layout Enumerate
17986
17987 \size small
17988 Don't use 
17989 \family typewriter
17990
17991 \backslash
17992 /
17993 \family default
17994  in front of small punctuation.
17995 \end_layout
17996
17997 \begin_layout Enumerate
17998
17999 \family typewriter
18000 \size small
18001 $
18002 \backslash
18003 times$
18004 \family default
18005  may look prettier here.
18006 \end_layout
18007
18008 \begin_layout Enumerate
18009
18010 \size small
18011 \emph on
18012 Multiple spaces detected in output.
18013 \end_layout
18014
18015 \begin_layout Enumerate
18016
18017 \size small
18018 This text may be ignored.
18019 \end_layout
18020
18021 \begin_layout Enumerate
18022
18023 \size small
18024 Use 
18025 \family typewriter
18026
18027 \begin_inset Quotes eld
18028 \end_inset
18029
18030
18031 \family default
18032  to begin quotation, not 
18033 \family typewriter
18034 '
18035 \family default
18036 .
18037 \end_layout
18038
18039 \begin_layout Enumerate
18040
18041 \size small
18042 Use 
18043 \family typewriter
18044 '
18045 \family default
18046  to end quotation, not 
18047 \family typewriter
18048
18049 \begin_inset Quotes eld
18050 \end_inset
18051
18052
18053 \family default
18054 .
18055 \end_layout
18056
18057 \begin_layout Enumerate
18058
18059 \size small
18060 Don't mix quotes.
18061 \end_layout
18062
18063 \begin_layout Enumerate
18064
18065 \size small
18066 You should perhaps use 
18067 \begin_inset Quotes eld
18068 \end_inset
18069
18070
18071 \family typewriter
18072 cmd
18073 \family default
18074
18075 \begin_inset Quotes erd
18076 \end_inset
18077
18078  instead.
18079 \end_layout
18080
18081 \begin_layout Enumerate
18082
18083 \size small
18084 You should put a space in front of/after parenthesis.
18085 \end_layout
18086
18087 \begin_layout Enumerate
18088
18089 \size small
18090 You should avoid spaces in front of/after parenthesis.
18091 \end_layout
18092
18093 \begin_layout Enumerate
18094
18095 \size small
18096 \emph on
18097 You should not use punctuation in front of/after quotes.
18098 \end_layout
18099
18100 \begin_layout Enumerate
18101
18102 \size small
18103 Double space found.
18104 \end_layout
18105
18106 \begin_layout Enumerate
18107
18108 \size small
18109 You should put punctuation outside inner/inside display math mode.
18110 \end_layout
18111
18112 \begin_layout Enumerate
18113
18114 \size small
18115 You ought to not use primitive \SpecialChar TeX
18116  in \SpecialChar LaTeX
18117  code.
18118 \end_layout
18119
18120 \begin_layout Enumerate
18121
18122 \size small
18123 You should remove spaces in front of 
18124 \begin_inset Quotes eld
18125 \end_inset
18126
18127
18128 \family typewriter
18129 %s
18130 \family default
18131
18132 \begin_inset Quotes erd
18133 \end_inset
18134
18135
18136 \end_layout
18137
18138 \begin_layout Enumerate
18139
18140 \size small
18141 \begin_inset Quotes eld
18142 \end_inset
18143
18144
18145 \family typewriter
18146 %s
18147 \family default
18148
18149 \begin_inset Quotes erd
18150 \end_inset
18151
18152  is normally not followed by 
18153 \begin_inset Quotes eld
18154 \end_inset
18155
18156
18157 \family typewriter
18158 %c
18159 \family default
18160
18161 \begin_inset Quotes erd
18162 \end_inset
18163
18164 .
18165 \end_layout
18166
18167 \begin_layout Standard
18168 \SpecialChar LyX
18169 の将来の版では,このツール(およびその縮小版
18170 \family typewriter
18171 lacheck
18172 \family default
18173 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
18174 書に使用してみていただければ,きっと驚かれることでしょう.
18175 \end_layout
18176
18177 \begin_layout Section
18178 \SpecialChar LyX
18179 でのバージョン管理
18180 \end_layout
18181
18182 \begin_layout Standard
18183
18184 \noun on
18185 Lars Bullik Bjønnes
18186 \noun default
18187 および
18188 \noun on
18189 Pavel Sanda
18190 \noun default
18191
18192 \end_layout
18193
18194 \begin_layout Subsection
18195 はじめに
18196 \end_layout
18197
18198 \begin_layout Standard
18199 \SpecialChar LyX
18200 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
18201 があります.
18202 \end_layout
18203
18204 \begin_layout Standard
18205 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
18206 N Book
18207 \begin_inset Foot
18208 status collapsed
18209
18210 \begin_layout Plain Layout
18211 \begin_inset CommandInset href
18212 LatexCommand href
18213 target "http://svnbook.red-bean.com/"
18214
18215 \end_inset
18216
18217
18218 \end_layout
18219
18220 \end_inset
18221
18222 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
18223 \family typewriter
18224 man rcsintro
18225 \family default
18226 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
18227 \family typewriter
18228 ,v
18229 \family default
18230 で終わるファイルです)の概念に注意を払ってください.
18231 \end_layout
18232
18233 \begin_layout Standard
18234 \SpecialChar LyX
18235 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
18236 で\SpecialChar LyX
18237 への実装においては,GNU
18238  RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
18239 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
18240 \family sans
18241 表示\SpecialChar menuseparator
18242 ツールバー\SpecialChar menuseparator
18243 バージョン管理
18244 \family default
18245 で有効にできます.
18246 \end_layout
18247
18248 \begin_layout Standard
18249 自製の外部コマンドを導入したい場合には,\SpecialChar LyX
18250 関数説明書のvcコマンドを確認してください.
18251 \end_layout
18252
18253 \begin_layout Standard
18254 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
18255 \family sans
18256 文書\SpecialChar menuseparator
18257 圧縮
18258 \family default
18259 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
18260 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
18261 \end_layout
18262
18263 \begin_layout Subsection
18264 \SpecialChar LyX
18265 におけるRCSコマンド
18266 \end_layout
18267
18268 \begin_layout Standard
18269 以下の節では\SpecialChar LyX
18270 でサポートされているRCSコマンドを説明します.それらのコマンドは
18271 \family sans
18272 ファイル\SpecialChar menuseparator
18273 バージョン管理
18274 \family default
18275 のサブメニューにあります.\SpecialChar LyX
18276 は,RCS 5.7/5.8に対して試験されています.
18277 \end_layout
18278
18279 \begin_layout Subsubsection
18280
18281 \family sans
18282 登録
18283 \end_layout
18284
18285 \begin_layout Standard
18286 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
18287 \family sans
18288 登録
18289 \family default
18290 は不可視になります.
18291 \end_layout
18292
18293 \begin_layout Standard
18294 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
18295 書は読み込み専用モードになるので,変更を加えるためには
18296 \family sans
18297 チェックアウトして編集
18298 \family default
18299 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
18300 \end_layout
18301
18302 \begin_layout Standard
18303 実行されるRCSコマンドは:
18304 \family typewriter
18305
18306 \begin_inset Newline newline
18307 \end_inset
18308
18309 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18310 \end_layout
18311
18312 \begin_layout Standard
18313 スイッチについて知りたい場合は,
18314 \family typewriter
18315 man ci
18316 \family default
18317 を読んでください.
18318 \end_layout
18319
18320 \begin_layout Subsubsection
18321
18322 \family sans
18323 変更をチェックインする
18324 \end_layout
18325
18326 \begin_layout Standard
18327 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
18328 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
18329 \end_layout
18330
18331 \begin_layout Standard
18332 RCSコマンド:
18333 \family typewriter
18334 ci -q -u -m"<説明文>" <ファイル名>
18335 \end_layout
18336
18337 \begin_layout Subsubsection
18338
18339 \family sans
18340 チェックアウトして編集
18341 \end_layout
18342
18343 \begin_layout Standard
18344 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
18345 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
18346 \end_layout
18347
18348 \begin_layout Standard
18349 RCSコマンド:
18350 \family typewriter
18351 co -q -l <ファイル名>
18352 \end_layout
18353
18354 \begin_layout Subsubsection
18355
18356 \family sans
18357 リポジトリのバージョンに戻す
18358 \end_layout
18359
18360 \begin_layout Standard
18361 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
18362 \end_layout
18363
18364 \begin_layout Standard
18365 RCSコマンド:
18366 \family typewriter
18367 co -f -u<バージョン> <ファイル名>
18368 \end_layout
18369
18370 \begin_layout Subsubsection
18371
18372 \family sans
18373 コピー
18374 \end_layout
18375
18376 \begin_layout Standard
18377 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18378 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18379 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18380 \family sans
18381 ファイル\SpecialChar menuseparator
18382 名前をつけて保存\SpecialChar ldots
18383
18384 \family default
18385 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18386 \end_layout
18387
18388 \begin_layout Labeling
18389 \labelwidthstring 00.00.0000
18390 RCSコマンド:
18391 \begin_inset Flex Code
18392 status collapsed
18393
18394 \begin_layout Plain Layout
18395 "ファイル名"
18396 \end_layout
18397
18398 \end_inset
18399
18400
18401 \family typewriter
18402 "新ファイル名"
18403 \family default
18404 にコピーする場合
18405 \end_layout
18406
18407 \begin_layout Labeling
18408 \labelwidthstring 00.00.0000
18409 \begin_inset Flex Code
18410 status collapsed
18411
18412 \begin_layout Plain Layout
18413 ci -q -u -i "<新ファイル名>"
18414 \end_layout
18415
18416 \end_inset
18417
18418
18419 \end_layout
18420
18421 \begin_layout Subsubsection
18422
18423 \family sans
18424 最後のチェックインを取り消す
18425 \end_layout
18426
18427 \begin_layout Standard
18428 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
18429 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
18430 されます.
18431 \end_layout
18432
18433 \begin_layout Standard
18434 RCSコマンド:
18435 \family typewriter
18436 rcs -o<バージョン> <ファイル名>
18437 \end_layout
18438
18439 \begin_layout Subsubsection
18440
18441 \family sans
18442 履歴を表示
18443 \end_layout
18444
18445 \begin_layout Standard
18446 RCS文書の完全な履歴を表示します.ブラウザ中に,
18447 \family typewriter
18448 rlog <ファイル名>
18449 \family default
18450 の出力が表示されます.詳細は
18451 \family typewriter
18452 man rlog
18453 \family default
18454 をご覧ください.
18455 \end_layout
18456
18457 \begin_layout Subsubsection
18458 改訂情報
18459 \end_layout
18460
18461 \begin_layout Standard
18462 \SpecialChar LyX
18463 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
18464 \begin_inset CommandInset ref
18465 LatexCommand ref
18466 reference "subsec:VCS改訂情報"
18467
18468 \end_inset
18469
18470 を参照.
18471 \end_layout
18472
18473 \begin_layout Subsection
18474 \SpecialChar LyX
18475 におけるCVSコマンド
18476 \end_layout
18477
18478 \begin_layout Standard
18479 \SpecialChar LyX
18480 は,現在CVSを一部サポートしています.そのコマンドは,
18481 \family sans
18482 ファイル\SpecialChar menuseparator
18483 バージョン管理
18484 \family default
18485 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
18486 \end_layout
18487
18488 \begin_layout Subsubsection
18489 CVSの一般的な利用法
18490 \end_layout
18491
18492 \begin_layout Standard
18493 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
18494 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
18495 \end_layout
18496
18497 \begin_layout Standard
18498 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
18499 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
18500 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
18501 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
18502 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
18503 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
18504 で予備付きチェックアウトを利用したい場合には,
18505 \begin_inset Flex Code
18506 status collapsed
18507
18508 \begin_layout Plain Layout
18509 .cvsrc
18510 \end_layout
18511
18512 \end_inset
18513
18514 ファイルを編集して,
18515 \begin_inset Flex Code
18516 status collapsed
18517
18518 \begin_layout Plain Layout
18519 cvs -r
18520 \end_layout
18521
18522 \end_inset
18523
18524 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
18525 コピーを書き込み可能にしているとは限りません.
18526 \end_layout
18527
18528 \begin_layout Standard
18529 \SpecialChar LyX
18530 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
18531 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
18532 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
18533 可能にするためには,
18534 \begin_inset Flex MenuItem
18535 status collapsed
18536
18537 \begin_layout Plain Layout
18538 チェックアウト
18539 \end_layout
18540
18541 \end_inset
18542
18543 メニューを使用しなくてはなりません.その後,
18544 \begin_inset Flex MenuItem
18545 status collapsed
18546
18547 \begin_layout Plain Layout
18548 チェックイン
18549 \end_layout
18550
18551 \end_inset
18552
18553 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
18554 \end_layout
18555
18556 \begin_layout Standard
18557 CVSの詳細な情報は,
18558 \begin_inset Flex URL
18559 status collapsed
18560
18561 \begin_layout Plain Layout
18562
18563 http://www.nongnu.org/cvs
18564 \end_layout
18565
18566 \end_inset
18567
18568
18569 \begin_inset Flex URL
18570 status collapsed
18571
18572 \begin_layout Plain Layout
18573
18574 http://ximbiot.com/cvs
18575 \end_layout
18576
18577 \end_inset
18578
18579 にあります.
18580 \end_layout
18581
18582 \begin_layout Standard
18583 以下に言及するサブコマンドとスイッチを理解するには,
18584 \family typewriter
18585 man cvs
18586 \family default
18587 をお読みください.
18588 \end_layout
18589
18590 \begin_layout Subsubsection
18591 登録
18592 \end_layout
18593
18594 \begin_layout Standard
18595 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
18596 \family sans
18597 登録
18598 \family default
18599 項目は表示されません.
18600 \end_layout
18601
18602 \begin_layout Standard
18603 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
18604 \series bold
18605 \emph on
18606 のみ
18607 \series default
18608 \emph default
18609 (すなわち
18610 \begin_inset Flex Code
18611 status collapsed
18612
18613 \begin_layout Plain Layout
18614 CVS/Entries
18615 \end_layout
18616
18617 \end_inset
18618
18619 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18620 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
18621 は文書をRCSに登録します).
18622 \end_layout
18623
18624 \begin_layout Standard
18625 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
18626 \end_layout
18627
18628 \begin_layout Standard
18629 実行されるCVSコマンドは,
18630 \family typewriter
18631 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18632 \family default
18633  です.
18634 \end_layout
18635
18636 \begin_layout Standard
18637 上記および他のすべてのCVSコマンドにおける
18638 \family typewriter
18639 "<ファイル名>"
18640 \family default
18641 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
18642 \end_layout
18643
18644 \begin_layout Subsubsection
18645 変更のチェックイン
18646 \end_layout
18647
18648 \begin_layout Standard
18649 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
18650 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
18651 \begin_inset Flex MenuItem
18652 status collapsed
18653
18654 \begin_layout Plain Layout
18655 チェックアウト
18656 \end_layout
18657
18658 \end_inset
18659
18660 で作られた予備は取り消されます.
18661 \end_layout
18662
18663 \begin_layout Labeling
18664 \labelwidthstring 00.00.0000
18665 CVSコマンド: 
18666 \begin_inset space ~
18667 \end_inset
18668
18669
18670 \begin_inset Newline newline
18671 \end_inset
18672
18673
18674 \begin_inset Flex Code
18675 status collapsed
18676
18677 \begin_layout Plain Layout
18678 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18679 \end_layout
18680
18681 \end_inset
18682
18683 あるいは
18684 \begin_inset Newline newline
18685 \end_inset
18686
18687
18688 \begin_inset Flex Code
18689 status collapsed
18690
18691 \begin_layout Plain Layout
18692 cvs -q unedit "<ファイル名>"
18693 \end_layout
18694
18695 \end_inset
18696
18697
18698 \end_layout
18699
18700 \begin_layout Subsubsection
18701 変更のチェックアウト
18702 \end_layout
18703
18704 \begin_layout Standard
18705 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
18706 \end_layout
18707
18708 \begin_layout Standard
18709 CVSコマンド:
18710 \family typewriter
18711 cvs -q update "<ファイル名>"
18712 \end_layout
18713
18714 \begin_layout Standard
18715 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
18716 \end_layout
18717
18718 \begin_layout Standard
18719 CVSコマンド:
18720 \family typewriter
18721 cvs -q edit "<ファイル名>"
18722 \end_layout
18723
18724 \begin_layout Subsubsection
18725 レポジトリ版に戻す
18726 \end_layout
18727
18728 \begin_layout Standard
18729 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
18730 が実行されます.
18731 \end_layout
18732
18733 \begin_layout Standard
18734 CVSコマンド:
18735 \family typewriter
18736 cvs -q update "<ファイル名>"
18737 \end_layout
18738
18739 \begin_layout Standard
18740 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
18741 \end_layout
18742
18743 \begin_layout Standard
18744 CVSコマンド:
18745 \family typewriter
18746 cvs -q unedit "<ファイル名>"
18747 \end_layout
18748
18749 \begin_layout Subsubsection
18750
18751 \family sans
18752 コピー
18753 \end_layout
18754
18755 \begin_layout Standard
18756 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18757 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18758 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18759 \family sans
18760 ファイル\SpecialChar menuseparator
18761 名前をつけて保存\SpecialChar ldots
18762
18763 \family default
18764 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18765 \end_layout
18766
18767 \begin_layout Labeling
18768 \labelwidthstring 00.00.0000
18769 CVSコマンド:
18770 \end_layout
18771
18772 \begin_layout Labeling
18773 \labelwidthstring 00.00.0000
18774 \begin_inset Flex Code
18775 status collapsed
18776
18777 \begin_layout Plain Layout
18778 "ファイル名"
18779 \end_layout
18780
18781 \end_inset
18782
18783
18784 \begin_inset Flex Code
18785 status collapsed
18786
18787 \begin_layout Plain Layout
18788 "新ファイル名"
18789 \end_layout
18790
18791 \end_inset
18792
18793 にコピーする場合
18794 \end_layout
18795
18796 \begin_layout Labeling
18797 \labelwidthstring 00.00.0000
18798 \begin_inset Flex Code
18799 status collapsed
18800
18801 \begin_layout Plain Layout
18802 cvs -q add "<新ファイル名>"
18803 \end_layout
18804
18805 \end_inset
18806
18807
18808 \end_layout
18809
18810 \begin_layout Subsubsection
18811 ファイル名変更
18812 \end_layout
18813
18814 \begin_layout Standard
18815 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
18816 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
18817 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
18818 スは,(
18819 \family sans
18820 ファイル\SpecialChar menuseparator
18821 名前をつけて保存\SpecialChar ldots
18822
18823 \family default
18824 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
18825 \end_layout
18826
18827 \begin_layout Labeling
18828 \labelwidthstring 00.00.0000
18829 CVSコマンド:
18830 \end_layout
18831
18832 \begin_layout Labeling
18833 \labelwidthstring 00.00.0000
18834 \begin_inset Flex Code
18835 status collapsed
18836
18837 \begin_layout Plain Layout
18838 "ファイル名"
18839 \end_layout
18840
18841 \end_inset
18842
18843
18844 \begin_inset Flex Code
18845 status collapsed
18846
18847 \begin_layout Plain Layout
18848 "新ファイル名"
18849 \end_layout
18850
18851 \end_inset
18852
18853 に変更する場合
18854 \end_layout
18855
18856 \begin_layout Labeling
18857 \labelwidthstring 00.00.0000
18858 \begin_inset Flex Code
18859 status collapsed
18860
18861 \begin_layout Plain Layout
18862 cvs -q add "<新ファイル名>"
18863 \end_layout
18864
18865 \end_inset
18866
18867
18868 \end_layout
18869
18870 \begin_layout Labeling
18871 \labelwidthstring 00.00.0000
18872 \begin_inset Flex Code
18873 status collapsed
18874
18875 \begin_layout Plain Layout
18876 cvs -q remove "<ファイル名>"
18877 \end_layout
18878
18879 \end_inset
18880
18881
18882 \end_layout
18883
18884 \begin_layout Subsubsection
18885 ローカルディレクトリチェックアウトのレポジトリからの更新
18886 \end_layout
18887
18888 \begin_layout Standard
18889 子文書や図を含んだり,外部
18890 \begin_inset Flex Code
18891 status collapsed
18892
18893 \begin_layout Plain Layout
18894 .tex
18895 \end_layout
18896
18897 \end_inset
18898
18899 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
18900 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
18901 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
18902 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
18903 慣です.
18904 \end_layout
18905
18906 \begin_layout Standard
18907 コマンド
18908 \begin_inset Flex Code
18909 status collapsed
18910
18911 \begin_layout Plain Layout
18912 レポジトリを使ってローカル辞書を更新
18913 \end_layout
18914
18915 \end_inset
18916
18917 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
18918 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
18919 \begin_inset Flex Code
18920 status collapsed
18921
18922 \begin_layout Plain Layout
18923 <<<<<<<
18924 \end_layout
18925
18926 \end_inset
18927
18928
18929 \begin_inset Flex Code
18930 status collapsed
18931
18932 \begin_layout Plain Layout
18933 >>>>>>>
18934 \end_layout
18935
18936 \end_inset
18937
18938 の対に囲まれ,
18939 \begin_inset Flex Code
18940 status collapsed
18941
18942 \begin_layout Plain Layout
18943 =======
18944 \end_layout
18945
18946 \end_inset
18947
18948 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
18949 \begin_inset Flex Code
18950 status collapsed
18951
18952 \begin_layout Plain Layout
18953 >
18954 \end_layout
18955
18956 \end_inset
18957
18958 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
18959 \end_layout
18960
18961 \begin_layout Labeling
18962 \labelwidthstring 00.00.0000
18963 CVSコマンド: 
18964 \begin_inset space ~
18965 \end_inset
18966
18967
18968 \begin_inset Newline newline
18969 \end_inset
18970
18971
18972 \begin_inset Flex Code
18973 status collapsed
18974
18975 \begin_layout Plain Layout
18976 cd $path; cvs diff "."
18977 \end_layout
18978
18979 \end_inset
18980
18981 (変更が検出された場合には知らせる)
18982 \begin_inset Newline newline
18983 \end_inset
18984
18985
18986 \begin_inset Flex Code
18987 status collapsed
18988
18989 \begin_layout Plain Layout
18990 cd $path; cvs -q update "."
18991 \end_layout
18992
18993 \end_inset
18994
18995
18996 \end_layout
18997
18998 \begin_layout Standard
18999 ここで
19000 \begin_inset Flex Code
19001 status collapsed
19002
19003 \begin_layout Plain Layout
19004 $path
19005 \end_layout
19006
19007 \end_inset
19008
19009 は文書パスを表します.
19010 \end_layout
19011
19012 \begin_layout Subsubsection
19013 履歴を表示
19014 \end_layout
19015
19016 \begin_layout Standard
19017 これは,CVS文書の全履歴を表示します.
19018 \begin_inset Flex Code
19019 status collapsed
19020
19021 \begin_layout Plain Layout
19022 cvs log 
19023 \begin_inset Quotes eld
19024 \end_inset
19025
19026 <ファイル名>
19027 \begin_inset Quotes erd
19028 \end_inset
19029
19030
19031 \end_layout
19032
19033 \end_inset
19034
19035 の出力がブラウザに表示されます.
19036 \end_layout
19037
19038 \begin_layout Subsubsection
19039 改訂情報
19040 \end_layout
19041
19042 \begin_layout Standard
19043 \SpecialChar LyX
19044 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
19045 \family typewriter
19046 cvs log -r <ファイル名>
19047 \family default
19048 によって抽出されます.詳細については,第
19049 \begin_inset CommandInset ref
19050 LatexCommand ref
19051 reference "subsec:VCS改訂情報"
19052
19053 \end_inset
19054
19055 節を参照してください.
19056 \end_layout
19057
19058 \begin_layout Subsection
19059 \SpecialChar LyX
19060 におけるSVNコマンド
19061 \end_layout
19062
19063 \begin_layout Standard
19064 \SpecialChar LyX
19065 は,現在SVNを一部サポートしています.そのコマンドは,
19066 \begin_inset Flex MenuItem
19067 status collapsed
19068
19069 \begin_layout Plain Layout
19070 ファイル\SpecialChar menuseparator
19071 バージョン管理
19072 \end_layout
19073
19074 \end_inset
19075
19076 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
19077 は,SVN
19078  1.5および1.6に対して試験されています.
19079 \end_layout
19080
19081 \begin_layout Subsubsection
19082 登録
19083 \end_layout
19084
19085 \begin_layout Standard
19086 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19087 \family sans
19088 登録
19089 \family default
19090 項目は表示されません.
19091 \end_layout
19092
19093 \begin_layout Standard
19094 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
19095 \emph on
19096 のみ
19097 \emph default
19098 (すなわち
19099 \begin_inset Flex Code
19100 status collapsed
19101
19102 \begin_layout Plain Layout
19103 .svn/entries
19104 \end_layout
19105
19106 \end_inset
19107
19108 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
19109 \end_layout
19110
19111 \begin_layout Standard
19112 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
19113 \end_layout
19114
19115 \begin_layout Standard
19116 実行されるSVNコマンドは,
19117 \begin_inset Flex Code
19118 status collapsed
19119
19120 \begin_layout Plain Layout
19121 svn add -q 
19122 \begin_inset Quotes eld
19123 \end_inset
19124
19125 <ファイル名>
19126 \begin_inset Quotes erd
19127 \end_inset
19128
19129
19130 \end_layout
19131
19132 \end_inset
19133
19134 です.
19135 \end_layout
19136
19137 \begin_layout Standard
19138 スイッチの説明は
19139 \begin_inset Flex Code
19140 status collapsed
19141
19142 \begin_layout Plain Layout
19143 man svn
19144 \end_layout
19145
19146 \end_inset
19147
19148 をお読みください.
19149 \end_layout
19150
19151 \begin_layout Subsubsection
19152 変更をチェックイン
19153 \end_layout
19154
19155 \begin_layout Standard
19156 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
19157 \end_layout
19158
19159 \begin_layout Standard
19160 SVNコマンド
19161 \begin_inset Foot
19162 status collapsed
19163
19164 \begin_layout Plain Layout
19165 ロックが有効になっていない場合です.第
19166 \begin_inset CommandInset ref
19167 LatexCommand ref
19168 reference "subsec:SVNファイルロック"
19169
19170 \end_inset
19171
19172 節をご覧ください.
19173 \end_layout
19174
19175 \end_inset
19176
19177
19178 \begin_inset Flex Code
19179 status collapsed
19180
19181 \begin_layout Plain Layout
19182 svn commit -q -m
19183 \begin_inset Quotes erd
19184 \end_inset
19185
19186 <入力した説明文>
19187 \begin_inset Quotes erd
19188 \end_inset
19189
19190  
19191 \begin_inset Quotes eld
19192 \end_inset
19193
19194 <ファイル名>
19195 \begin_inset Quotes erd
19196 \end_inset
19197
19198
19199 \end_layout
19200
19201 \end_inset
19202
19203
19204 \end_layout
19205
19206 \begin_layout Subsubsection
19207 チェックアウトして編集
19208 \end_layout
19209
19210 \begin_layout Standard
19211 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
19212 しておくようにしてください.
19213 \end_layout
19214
19215 \begin_layout Standard
19216 SVNコマンド
19217 \begin_inset Foot
19218 status collapsed
19219
19220 \begin_layout Plain Layout
19221 同上.
19222 \end_layout
19223
19224 \end_inset
19225
19226
19227 \begin_inset Flex Code
19228 status collapsed
19229
19230 \begin_layout Plain Layout
19231 svn update –non-interactive 
19232 \begin_inset Quotes eld
19233 \end_inset
19234
19235 <ファイル名>
19236 \begin_inset Quotes erd
19237 \end_inset
19238
19239
19240 \end_layout
19241
19242 \end_inset
19243
19244
19245 \end_layout
19246
19247 \begin_layout Subsubsection
19248 リポジトリ版に戻す
19249 \end_layout
19250
19251 \begin_layout Standard
19252 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
19253 \end_layout
19254
19255 \begin_layout Standard
19256 SVNコマンド:
19257 \begin_inset Flex Code
19258 status collapsed
19259
19260 \begin_layout Plain Layout
19261 svn revert -q 
19262 \begin_inset Quotes eld
19263 \end_inset
19264
19265 <ファイル名>
19266 \begin_inset Quotes erd
19267 \end_inset
19268
19269
19270 \end_layout
19271
19272 \end_inset
19273
19274
19275 \end_layout
19276
19277 \begin_layout Subsubsection
19278
19279 \family sans
19280 コピー
19281 \end_layout
19282
19283 \begin_layout Standard
19284 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
19285 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19286 ァイルの相対パスは,(
19287 \family sans
19288 ファイル\SpecialChar menuseparator
19289 名前をつけて保存\SpecialChar ldots
19290
19291 \family default
19292 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19293 \end_layout
19294
19295 \begin_layout Labeling
19296 \labelwidthstring 00.00.0000
19297 SVNコマンド:
19298 \end_layout
19299
19300 \begin_layout Labeling
19301 \labelwidthstring 00.00.0000
19302 \begin_inset Flex Code
19303 status collapsed
19304
19305 \begin_layout Plain Layout
19306 svn copy -q "<ファイル名>" "<新ファイル名>"
19307 \end_layout
19308
19309 \end_inset
19310
19311
19312 \end_layout
19313
19314 \begin_layout Labeling
19315 \labelwidthstring 00.00.0000
19316 \begin_inset Flex Code
19317 status collapsed
19318
19319 \begin_layout Plain Layout
19320 svn commit
19321 \end_layout
19322
19323 \end_inset
19324
19325
19326 \end_layout
19327
19328 \begin_layout Subsubsection
19329 ファイル名変更
19330 \end_layout
19331
19332 \begin_layout Standard
19333 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
19334 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19335 ァイルの相対パスは,(
19336 \family sans
19337 ファイル\SpecialChar menuseparator
19338 名前をつけて保存\SpecialChar ldots
19339
19340 \family default
19341 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19342 \end_layout
19343
19344 \begin_layout Labeling
19345 \labelwidthstring 00.00.0000
19346 SVNコマンド:
19347 \end_layout
19348
19349 \begin_layout Labeling
19350 \labelwidthstring 00.00.0000
19351 \begin_inset Flex Code
19352 status collapsed
19353
19354 \begin_layout Plain Layout
19355 svn move -q add "<ファイル名>" "<新ファイル名>"
19356 \end_layout
19357
19358 \end_inset
19359
19360
19361 \end_layout
19362
19363 \begin_layout Labeling
19364 \labelwidthstring 00.00.0000
19365 \begin_inset Flex Code
19366 status collapsed
19367
19368 \begin_layout Plain Layout
19369 svn commit
19370 \end_layout
19371
19372 \end_inset
19373
19374
19375 \end_layout
19376
19377 \begin_layout Subsubsection
19378 \begin_inset CommandInset label
19379 LatexCommand label
19380 name "subsec:レポジトリからSVN同期"
19381
19382 \end_inset
19383
19384 レポジトリを使ったローカルディレクトリの同期
19385 \begin_inset Foot
19386 status collapsed
19387
19388 \begin_layout Plain Layout
19389 このコマンドは,subversion 
19390 \begin_inset Formula $\geqq1.5$
19391 \end_inset
19392
19393 でのみ動作することに注意してください.
19394 \end_layout
19395
19396 \end_inset
19397
19398
19399 \end_layout
19400
19401 \begin_layout Standard
19402 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
19403 \begin_inset Flex Code
19404 status collapsed
19405
19406 \begin_layout Plain Layout
19407 .tex
19408 \end_layout
19409
19410 \end_inset
19411
19412 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
19413 は,文書のおいてあるツリー全体の更新をサポートします
19414 \begin_inset Foot
19415 status collapsed
19416
19417 \begin_layout Plain Layout
19418 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
19419 \end_layout
19420
19421 \end_inset
19422
19423 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
19424
19425 \end_layout
19426
19427 \begin_layout Standard
19428 \begin_inset Flex Code
19429 status collapsed
19430
19431 \begin_layout Plain Layout
19432 ローカル辞書をレポジトリを使って更新
19433 \end_layout
19434
19435 \end_inset
19436
19437 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
19438 場合には,更新が開始される前にユーザに警告が与えられます.
19439 \end_layout
19440
19441 \begin_layout Labeling
19442 \labelwidthstring 00.00.0000
19443 SVNコマンド: 
19444 \begin_inset space ~
19445 \end_inset
19446
19447
19448 \begin_inset Newline newline
19449 \end_inset
19450
19451
19452 \begin_inset Flex Code
19453 status collapsed
19454
19455 \begin_layout Plain Layout
19456 svn diff $path(変更が発見された場合には通知します)
19457 \begin_inset Newline newline
19458 \end_inset
19459
19460 svn update –accept mine-full $path
19461 \end_layout
19462
19463 \end_inset
19464
19465
19466 \end_layout
19467
19468 \begin_layout Standard
19469 ここで
19470 \begin_inset Flex Code
19471 status collapsed
19472
19473 \begin_layout Plain Layout
19474 $path
19475 \end_layout
19476
19477 \end_inset
19478
19479 は文書のパスを示します.
19480 \end_layout
19481
19482 \begin_layout Subsubsection
19483 履歴を表示
19484 \end_layout
19485
19486 \begin_layout Standard
19487 これは,SVN文書の全履歴を表示します.
19488 \begin_inset Flex Code
19489 status collapsed
19490
19491 \begin_layout Plain Layout
19492 svn log 
19493 \begin_inset Quotes eld
19494 \end_inset
19495
19496 <ファイル名>
19497 \begin_inset Quotes erd
19498 \end_inset
19499
19500
19501 \end_layout
19502
19503 \end_inset
19504
19505 の出力がブラウザに表示されます.
19506 \end_layout
19507
19508 \begin_layout Subsubsection
19509 ファイルロック
19510 \begin_inset CommandInset label
19511 LatexCommand label
19512 name "subsec:SVNファイルロック"
19513
19514 \end_inset
19515
19516
19517 \end_layout
19518
19519 \begin_layout Standard
19520 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
19521 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19522 するための,何らかのロック機構を導入することが考えられます.
19523 \end_layout
19524
19525 \begin_layout Standard
19526 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
19527 \begin_inset Flex Code
19528 status collapsed
19529
19530 \begin_layout Plain Layout
19531 svn:needs-lock
19532 \end_layout
19533
19534 \end_inset
19535
19536 svnファイル特性に依拠した書き込み権限の自動設定(第
19537 \begin_inset CommandInset ref
19538 LatexCommand ref
19539 reference "subsec:自動ロック特性"
19540
19541 \end_inset
19542
19543 節を参照)です
19544 \begin_inset Foot
19545 status collapsed
19546
19547 \begin_layout Plain Layout
19548 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19549 \end_layout
19550
19551 \end_inset
19552
19553 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
19554 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19555 り替わります.これは特に,\SpecialChar LyX
19556 でのファイルの使われ方に以下の二つのモードがあることを意味します.
19557 \end_layout
19558
19559 \begin_layout Itemize
19560 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
19561 \emph on
19562 チェックアウト
19563 \emph default
19564 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
19565 \end_layout
19566
19567 \begin_layout Itemize
19568 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
19569 \emph on
19570 チェックイン
19571 \emph default
19572 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
19573 \begin_inset Foot
19574 status collapsed
19575
19576 \begin_layout Plain Layout
19577 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
19578 \end_layout
19579
19580 \end_inset
19581
19582 ,書き込みロックの解放のみが行われます.
19583 \end_layout
19584
19585 \begin_layout Standard
19586 SVNコマンド:
19587 \end_layout
19588
19589 \begin_layout Labeling
19590 \labelwidthstring 00.00.0000
19591 チェックイン: 
19592 \begin_inset Flex Code
19593 status collapsed
19594
19595 \begin_layout Plain Layout
19596 svn commit -q -m
19597 \begin_inset Quotes erd
19598 \end_inset
19599
19600 <説明>
19601 \begin_inset Quotes erd
19602 \end_inset
19603
19604  
19605 \begin_inset Quotes eld
19606 \end_inset
19607
19608 <ファイル名>
19609 \begin_inset Quotes erd
19610 \end_inset
19611
19612
19613 \end_layout
19614
19615 \end_inset
19616
19617
19618 \begin_inset Newline newline
19619 \end_inset
19620
19621
19622 \begin_inset Flex Code
19623 status collapsed
19624
19625 \begin_layout Plain Layout
19626 svn unlock 
19627 \begin_inset Quotes eld
19628 \end_inset
19629
19630 <ファイル名>
19631 \begin_inset Quotes erd
19632 \end_inset
19633
19634
19635 \end_layout
19636
19637 \end_inset
19638
19639
19640 \end_layout
19641
19642 \begin_layout Labeling
19643 \labelwidthstring 00.00.0000
19644 チェックアウト: 
19645 \begin_inset Flex Code
19646 status collapsed
19647
19648 \begin_layout Plain Layout
19649 svn update 
19650 \begin_inset Quotes eld
19651 \end_inset
19652
19653 <ファイル名>
19654 \begin_inset Quotes erd
19655 \end_inset
19656
19657
19658 \end_layout
19659
19660 \end_inset
19661
19662
19663 \begin_inset Newline newline
19664 \end_inset
19665
19666
19667 \begin_inset Flex Code
19668 status collapsed
19669
19670 \begin_layout Plain Layout
19671 svn unlock 
19672 \begin_inset Quotes eld
19673 \end_inset
19674
19675 <ファイル名>
19676 \begin_inset Quotes erd
19677 \end_inset
19678
19679
19680 \end_layout
19681
19682 \end_inset
19683
19684
19685 \end_layout
19686
19687 \begin_layout Subsubsection
19688 自動ロック特性
19689 \begin_inset CommandInset label
19690 LatexCommand label
19691 name "subsec:自動ロック特性"
19692
19693 \end_inset
19694
19695
19696 \end_layout
19697
19698 \begin_layout Standard
19699 上述したような
19700 \begin_inset Flex Code
19701 status collapsed
19702
19703 \begin_layout Plain Layout
19704 .lyx
19705 \end_layout
19706
19707 \end_inset
19708
19709 ファイルに対する書き込み権限の自動設定は,
19710 \begin_inset Flex MenuItem
19711 status collapsed
19712
19713 \begin_layout Plain Layout
19714 ファイル\SpecialChar menuseparator
19715 バージョン管理\SpecialChar menuseparator
19716 ロック特性を使用
19717 \end_layout
19718
19719 \end_inset
19720
19721 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
19722 \end_layout
19723
19724 \begin_layout Standard
19725 SVNコマンド:
19726 \end_layout
19727
19728 \begin_layout Labeling
19729 \labelwidthstring 00.00.0000
19730 チェックイン: 
19731 \begin_inset Flex Code
19732 status collapsed
19733
19734 \begin_layout Plain Layout
19735 svn propset svn:needs-lock ON 
19736 \begin_inset Quotes eld
19737 \end_inset
19738
19739 <ファイル名>
19740 \begin_inset Quotes erd
19741 \end_inset
19742
19743
19744 \end_layout
19745
19746 \end_inset
19747
19748
19749 \end_layout
19750
19751 \begin_layout Labeling
19752 \labelwidthstring 00.00.0000
19753 チェックアウト: 
19754 \begin_inset Flex Code
19755 status collapsed
19756
19757 \begin_layout Plain Layout
19758 svn propdel svn:needs-lock 
19759 \begin_inset Quotes eld
19760 \end_inset
19761
19762 <ファイル名>
19763 \begin_inset Quotes erd
19764 \end_inset
19765
19766
19767 \end_layout
19768
19769 \end_inset
19770
19771
19772 \end_layout
19773
19774 \begin_layout Subsubsection
19775 \begin_inset CommandInset label
19776 LatexCommand label
19777 name "subsec:VCS改訂情報"
19778
19779 \end_inset
19780
19781 文書の改訂情報
19782 \end_layout
19783
19784 \begin_layout Standard
19785 文書中で改訂情報を有効化するにはいくつかの方法があります.
19786 \end_layout
19787
19788 \begin_layout Itemize
19789 \SpecialChar LyX
19790 による直接サポート
19791 \begin_inset Separator latexpar
19792 \end_inset
19793
19794
19795 \end_layout
19796
19797 \begin_deeper
19798 \begin_layout Itemize
19799 ツリー改訂情報(
19800 \begin_inset Flex Code
19801 status collapsed
19802
19803 \begin_layout Plain Layout
19804 vcs-tree-revision
19805 \end_layout
19806
19807 \end_inset
19808
19809 ).
19810 \begin_inset Flex Code
19811 status collapsed
19812
19813 \begin_layout Plain Layout
19814 svnversion
19815 \end_layout
19816
19817 \end_inset
19818
19819 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
19820 \end_layout
19821
19822 \begin_layout Standard
19823 \align center
19824 \begin_inset Tabular
19825 <lyxtabular version="3" rows="6" columns="2">
19826 <features tabularvalignment="middle">
19827 <column alignment="center" valignment="top">
19828 <column alignment="center" valignment="top">
19829 <row>
19830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19831 \begin_inset Text
19832
19833 \begin_layout Plain Layout
19834 出力
19835 \end_layout
19836
19837 \end_inset
19838 </cell>
19839 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19840 \begin_inset Text
19841
19842 \begin_layout Plain Layout
19843 意味
19844 \end_layout
19845
19846 \end_inset
19847 </cell>
19848 </row>
19849 <row>
19850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19851 \begin_inset Text
19852
19853 \begin_layout Plain Layout
19854 4123:4168
19855 \end_layout
19856
19857 \end_inset
19858 </cell>
19859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19860 \begin_inset Text
19861
19862 \begin_layout Plain Layout
19863 改訂版の混合した作業コピー
19864 \end_layout
19865
19866 \end_inset
19867 </cell>
19868 </row>
19869 <row>
19870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19871 \begin_inset Text
19872
19873 \begin_layout Plain Layout
19874 4168M
19875 \end_layout
19876
19877 \end_inset
19878 </cell>
19879 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19880 \begin_inset Text
19881
19882 \begin_layout Plain Layout
19883 修正された作業コピー
19884 \end_layout
19885
19886 \end_inset
19887 </cell>
19888 </row>
19889 <row>
19890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19891 \begin_inset Text
19892
19893 \begin_layout Plain Layout
19894 4123S
19895 \end_layout
19896
19897 \end_inset
19898 </cell>
19899 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19900 \begin_inset Text
19901
19902 \begin_layout Plain Layout
19903 スイッチされた作業コピー
19904 \end_layout
19905
19906 \end_inset
19907 </cell>
19908 </row>
19909 <row>
19910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19911 \begin_inset Text
19912
19913 \begin_layout Plain Layout
19914 4123P
19915 \end_layout
19916
19917 \end_inset
19918 </cell>
19919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19920 \begin_inset Text
19921
19922 \begin_layout Plain Layout
19923 チェックアウト頻度が低かったことによる不完全な作業コピー
19924 \end_layout
19925
19926 \end_inset
19927 </cell>
19928 </row>
19929 <row>
19930 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19931 \begin_inset Text
19932
19933 \begin_layout Plain Layout
19934 4123:4168MS
19935 \end_layout
19936
19937 \end_inset
19938 </cell>
19939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19940 \begin_inset Text
19941
19942 \begin_layout Plain Layout
19943 改訂版が混合し,修正され,スイッチされた作業コピー
19944 \end_layout
19945
19946 \end_inset
19947 </cell>
19948 </row>
19949 </lyxtabular>
19950
19951 \end_inset
19952
19953
19954 \end_layout
19955
19956 \begin_layout Itemize
19957 ファイル改訂情報.
19958 \begin_inset Flex Code
19959 status collapsed
19960
19961 \begin_layout Plain Layout
19962 svn
19963 \begin_inset space ~
19964 \end_inset
19965
19966 info
19967 \begin_inset space ~
19968 \end_inset
19969
19970 –xml
19971 \begin_inset space ~
19972 \end_inset
19973
19974 file.lyx
19975 \end_layout
19976
19977 \end_inset
19978
19979 の出力を解析したものが返されます.サポートされるフラグは
19980 \begin_inset Separator latexpar
19981 \end_inset
19982
19983
19984 \end_layout
19985
19986 \begin_deeper
19987 \begin_layout Itemize
19988 最終コミットのバージョン番号(
19989 \begin_inset Flex Code
19990 status collapsed
19991
19992 \begin_layout Plain Layout
19993 vcs-revision
19994 \end_layout
19995
19996 \end_inset
19997
19998 )
19999 \end_layout
20000
20001 \begin_layout Itemize
20002 最終コミットの著者(
20003 \begin_inset Flex Code
20004 status collapsed
20005
20006 \begin_layout Plain Layout
20007 vcs-author
20008 \end_layout
20009
20010 \end_inset
20011
20012 )
20013 \end_layout
20014
20015 \begin_layout Itemize
20016 最終コミットの日付(
20017 \begin_inset Flex Code
20018 status collapsed
20019
20020 \begin_layout Plain Layout
20021 vcs-date
20022 \end_layout
20023
20024 \end_inset
20025
20026 )
20027 \end_layout
20028
20029 \begin_layout Itemize
20030 最終コミットの時間(
20031 \begin_inset Flex Code
20032 status collapsed
20033
20034 \begin_layout Plain Layout
20035 vcs-time
20036 \end_layout
20037
20038 \end_inset
20039
20040 )
20041 \end_layout
20042
20043 \end_deeper
20044 \begin_layout Standard
20045 これらの情報は,情報差込枠で得ることができます(例:
20046 \begin_inset Flex Code
20047 status collapsed
20048
20049 \begin_layout Plain Layout
20050 info-insert buffer vcs-date
20051 \end_layout
20052
20053 \end_inset
20054
20055 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20056 \begin_inset Flex Code
20057 status collapsed
20058
20059 \begin_layout Plain Layout
20060 .svn
20061 \end_layout
20062
20063 \end_inset
20064
20065 ディレクトリがあるときのみ)利用可能です.
20066 \end_layout
20067
20068 \end_deeper
20069 \begin_layout Itemize
20070 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
20071 \begin_inset Foot
20072 status collapsed
20073
20074 \begin_layout Plain Layout
20075 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20076 \end_layout
20077
20078 \end_inset
20079
20080 .簡単に言えば,ファイルキーワード特性を設定して(例:
20081 \family sans
20082 svn propset svn:keywords 'Rev' file.lyx
20083 \family default
20084 ),文書中にキーワード\SpecialChar TeX
20085 コード
20086 \begin_inset Foot
20087 status collapsed
20088
20089 \begin_layout Plain Layout
20090 これは,\SpecialChar LyX
20091 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
20092 \end_layout
20093
20094 \end_inset
20095
20096 タグ(例:
20097 \begin_inset ERT
20098 status open
20099
20100 \begin_layout Plain Layout
20101
20102 $Rev$
20103 \end_layout
20104
20105 \end_inset
20106
20107 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
20108 \begin_inset ERT
20109 status open
20110
20111 \begin_layout Plain Layout
20112
20113 $Rev: 59 $
20114 \end_layout
20115
20116 \end_inset
20117
20118 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
20119 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
20120 中の
20121 \begin_inset Formula $Rev$
20122 \end_inset
20123
20124 という数式表現が,すべて
20125 \begin_inset Formula $Rev:59$
20126 \end_inset
20127
20128 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
20129 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
20130 .Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
20131 がこれを直接サポートすることは,難しそうです.
20132 \end_layout
20133
20134 \begin_layout Subsection
20135 SVNとWindows環境
20136 \end_layout
20137
20138 \begin_layout Quote
20139 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
20140  A.
20141  ルービン
20142 \end_layout
20143
20144 \begin_layout Subsubsection
20145 準備
20146 \end_layout
20147
20148 \begin_layout Standard
20149 \SpecialChar LyX
20150 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
20151 トプログラムのWindows用インストーラは
20152 \begin_inset CommandInset href
20153 LatexCommand href
20154 name "CollabNet"
20155 target "http://www.collab.net/nonav/downloads/subversion/"
20156
20157 \end_inset
20158
20159 にあります.ユーザは
20160 \begin_inset CommandInset href
20161 LatexCommand href
20162 name "TortoiseSVN"
20163 target "http://tortoisesvn.tigris.org/"
20164
20165 \end_inset
20166
20167 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
20168 外部で行う操
20169 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
20170 自身が使用するクライアントプログラムの代わりとは成りませんので
20171 ,注意してください.
20172 \end_layout
20173
20174 \begin_layout Subsubsection
20175 文書をSubversion管理下に置くには
20176 \end_layout
20177
20178 \begin_layout Standard
20179 \SpecialChar LyX
20180 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
20181 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
20182 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
20183 の外部で行います
20184 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
20185 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
20186 既に存在し,新規プロジェクトを
20187 \begin_inset Flex Code
20188 status collapsed
20189
20190 \begin_layout Plain Layout
20191 C:
20192 \backslash
20193 new project
20194 \end_layout
20195
20196 \end_inset
20197
20198 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
20199 \begin_inset Flex Code
20200 status collapsed
20201
20202 \begin_layout Plain Layout
20203 svn –help
20204 \end_layout
20205
20206 \end_inset
20207
20208 を実行してください.
20209 \end_layout
20210
20211 \begin_layout Enumerate
20212 Windows Explorerで
20213 \begin_inset Flex Code
20214 status collapsed
20215
20216 \begin_layout Plain Layout
20217 C:
20218 \backslash
20219 new project
20220 \end_layout
20221
20222 \end_inset
20223
20224 を見つけ出して右クリックし,
20225 \begin_inset Flex MenuItem
20226 status collapsed
20227
20228 \begin_layout Plain Layout
20229 TortoiseSVN\SpecialChar menuseparator
20230 Repo-browser
20231 \end_layout
20232
20233 \end_inset
20234
20235 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
20236 \end_layout
20237
20238 \begin_layout Enumerate
20239 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
20240 \begin_inset Flex MenuItem
20241 status collapsed
20242
20243 \begin_layout Plain Layout
20244 Create folder\SpecialChar ldots
20245
20246 \end_layout
20247
20248 \end_inset
20249
20250 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
20251 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
20252 \end_layout
20253
20254 \begin_layout Enumerate
20255 再度
20256 \begin_inset Flex Code
20257 status collapsed
20258
20259 \begin_layout Plain Layout
20260 C:
20261 \backslash
20262 new project
20263 \end_layout
20264
20265 \end_inset
20266
20267 を右クリックし,今度は
20268 \begin_inset Flex MenuItem
20269 status collapsed
20270
20271 \begin_layout Plain Layout
20272 SVN Checkout\SpecialChar ldots
20273
20274 \end_layout
20275
20276 \end_inset
20277
20278 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
20279 \begin_inset Flex Code
20280 status collapsed
20281
20282 \begin_layout Plain Layout
20283 C:
20284 \backslash
20285 new project
20286 \end_layout
20287
20288 \end_inset
20289
20290 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
20291 \begin_inset Flex Code
20292 status collapsed
20293
20294 \begin_layout Plain Layout
20295 C:
20296 \backslash
20297 new project
20298 \end_layout
20299
20300 \end_inset
20301
20302 の下に
20303 \begin_inset Flex Code
20304 status collapsed
20305
20306 \begin_layout Plain Layout
20307 .svn
20308 \end_layout
20309
20310 \end_inset
20311
20312 ディレクトリが作成されます.
20313 \end_layout
20314
20315 \begin_layout Enumerate
20316 \SpecialChar LyX
20317 で文書を新規作成するか開くかして,
20318 \begin_inset Flex MenuItem
20319 status collapsed
20320
20321 \begin_layout Plain Layout
20322 ファイル\SpecialChar menuseparator
20323 バージョン管理\SpecialChar menuseparator
20324 登録
20325 \end_layout
20326
20327 \end_inset
20328
20329 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
20330 \end_layout
20331
20332 \begin_layout Standard
20333 爾後,
20334 \begin_inset Flex MenuItem
20335 status collapsed
20336
20337 \begin_layout Plain Layout
20338 ファイル\SpecialChar menuseparator
20339 バージョン管理
20340 \end_layout
20341
20342 \end_inset
20343
20344 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
20345 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
20346 \end_layout
20347
20348 \begin_layout Subsubsection
20349 Windows下でSVNと共にSSHトンネルを使うには
20350 \end_layout
20351
20352 \begin_layout Standard
20353 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
20354 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
20355 ることを覚悟しておいてください.
20356 \end_layout
20357
20358 \begin_layout Enumerate
20359 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
20360 \begin_inset Flex Code
20361 status collapsed
20362
20363 \begin_layout Plain Layout
20364 svn –version
20365 \end_layout
20366
20367 \end_inset
20368
20369 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
20370 \end_layout
20371
20372 \begin_layout Enumerate
20373 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
20374 \begin_inset Foot
20375 status open
20376
20377 \begin_layout Plain Layout
20378 \begin_inset Flex URL
20379 status collapsed
20380
20381 \begin_layout Plain Layout
20382
20383 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20384 \end_layout
20385
20386 \end_inset
20387
20388
20389 \end_layout
20390
20391 \end_inset
20392
20393 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
20394 護などを加えない
20395 \begin_inset Flex Ruby
20396 status collapsed
20397
20398 \begin_layout Plain Layout
20399
20400 \begin_inset Argument post:1
20401 status collapsed
20402
20403 \begin_layout Plain Layout
20404 キー
20405 \end_layout
20406
20407 \end_inset
20408
20409
20410 \end_layout
20411
20412 \end_inset
20413
20414 のみを使用することとします.
20415 \begin_inset Separator latexpar
20416 \end_inset
20417
20418
20419 \end_layout
20420
20421 \begin_deeper
20422 \begin_layout Enumerate
20423 \begin_inset Flex Code
20424 status collapsed
20425
20426 \begin_layout Plain Layout
20427 puttygen
20428 \end_layout
20429
20430 \end_inset
20431
20432 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
20433 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
20434 s file:」編集フィールドから,直接サーバの
20435 \begin_inset Flex Code
20436 status collapsed
20437
20438 \begin_layout Plain Layout
20439 ~/.ssh/authorized_keys
20440 \end_layout
20441
20442 \end_inset
20443
20444 または
20445 \begin_inset Flex Code
20446 status collapsed
20447
20448 \begin_layout Plain Layout
20449 authorized_keys2
20450 \end_layout
20451
20452 \end_inset
20453
20454 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
20455 \end_layout
20456
20457 \begin_layout Enumerate
20458 Puttyのplinkを入手してください.SVNのconfigファイル
20459 \begin_inset Foot
20460 status collapsed
20461
20462 \begin_layout Plain Layout
20463 正確なパスはWindowsのバージョンに依りますが,通常は
20464 \begin_inset Flex Code
20465 status collapsed
20466
20467 \begin_layout Plain Layout
20468 c:
20469 \backslash
20470 Documents and Settings
20471 \backslash
20472 user
20473 \backslash
20474 Application Data
20475 \backslash
20476 Subversion
20477 \backslash
20478 config
20479 \end_layout
20480
20481 \end_inset
20482
20483
20484 \begin_inset Flex Code
20485 status collapsed
20486
20487 \begin_layout Plain Layout
20488 AppData
20489 \backslash
20490 Roaming
20491 \backslash
20492 Subversion
20493 \end_layout
20494
20495 \end_inset
20496
20497 辺りにあります.
20498 \end_layout
20499
20500 \end_inset
20501
20502 中の
20503 \begin_inset Flex Code
20504 status collapsed
20505
20506 \begin_layout Plain Layout
20507 [tunnels]
20508 \end_layout
20509
20510 \end_inset
20511
20512 セクションにsshコマンドを設定してください.例:
20513 \begin_inset Flex Code
20514 status collapsed
20515
20516 \begin_layout Plain Layout
20517 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20518 \end_layout
20519
20520 \end_inset
20521
20522
20523 \begin_inset Foot
20524 status collapsed
20525
20526 \begin_layout Plain Layout
20527 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
20528 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
20529 \end_layout
20530
20531 \end_inset
20532
20533
20534 \end_layout
20535
20536 \end_deeper
20537 \begin_layout Enumerate
20538 SVNアーカイブをチェックアウトしてください.例:
20539 \begin_inset Newline newline
20540 \end_inset
20541
20542
20543 \begin_inset Flex Code
20544 status collapsed
20545
20546 \begin_layout Plain Layout
20547 svn co svn+ssh://user@server/repository_path
20548 \end_layout
20549
20550 \end_inset
20551
20552
20553 \end_layout
20554
20555 \begin_layout Subsubsection
20556 行末変換
20557 \end_layout
20558
20559 \begin_layout Standard
20560 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
20561 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
20562 の機能に関する限り問題になりま
20563 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
20564 \begin_inset Flex Code
20565 status collapsed
20566
20567 \begin_layout Plain Layout
20568 native
20569 \end_layout
20570
20571 \end_inset
20572
20573 モードに切り替える際
20574 \begin_inset Foot
20575 status collapsed
20576
20577 \begin_layout Plain Layout
20578 手短には
20579 \begin_inset Flex Code
20580 status collapsed
20581
20582 \begin_layout Plain Layout
20583 svn propset svn:eol-style native FILE_NAME
20584 \end_layout
20585
20586 \end_inset
20587
20588
20589 \end_layout
20590
20591 \end_inset
20592
20593 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20594 \begin_inset Foot
20595 status collapsed
20596
20597 \begin_layout Plain Layout
20598 \begin_inset Flex URL
20599 status collapsed
20600
20601 \begin_layout Plain Layout
20602
20603 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20604 \end_layout
20605
20606 \end_inset
20607
20608
20609 \end_layout
20610
20611 \end_inset
20612
20613
20614 \end_layout
20615
20616 \begin_layout Subsection
20617 \SpecialChar LyX
20618 におけるGITコマンド
20619 \end_layout
20620
20621 \begin_layout Standard
20622 \SpecialChar LyX
20623 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
20624 \family sans
20625 ファイル\SpecialChar menuseparator
20626 バージョン管理
20627 \family default
20628 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
20629 は,GIT
20630  1.7に対して試験を行っています.
20631 \end_layout
20632
20633 \begin_layout Standard
20634 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
20635 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
20636 ミットを行います.ローカルリポジトリは,GITコマンドの
20637 \begin_inset Flex Code
20638 status open
20639
20640 \begin_layout Plain Layout
20641 pull
20642 \end_layout
20643
20644 \end_inset
20645
20646 または
20647 \begin_inset Flex Code
20648 status open
20649
20650 \begin_layout Plain Layout
20651 push
20652 \end_layout
20653
20654 \end_inset
20655
20656 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
20657 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
20658 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
20659 \begin_inset Flex Code
20660 status open
20661
20662 \begin_layout Plain Layout
20663 pull
20664 \end_layout
20665
20666 \end_inset
20667
20668 または
20669 \begin_inset Flex Code
20670 status open
20671
20672 \begin_layout Plain Layout
20673 push
20674 \end_layout
20675
20676 \end_inset
20677
20678 の操作を行う必要があります.
20679 \end_layout
20680
20681 \begin_layout Subsubsection
20682 登録
20683 \end_layout
20684
20685 \begin_layout Standard
20686 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
20687 \family sans
20688 登録
20689 \family default
20690 項目は表示されません.
20691 \end_layout
20692
20693 \begin_layout Standard
20694 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
20695 \emph on
20696 のみ
20697 \emph default
20698 (すなわち
20699 \begin_inset Flex Code
20700 status collapsed
20701
20702 \begin_layout Plain Layout
20703 .git/index
20704 \end_layout
20705
20706 \end_inset
20707
20708 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
20709 \end_layout
20710
20711 \begin_layout Standard
20712 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
20713 \end_layout
20714
20715 \begin_layout Standard
20716 実行されるGITコマンドは,
20717 \begin_inset Flex Code
20718 status collapsed
20719
20720 \begin_layout Plain Layout
20721 git add "<ファイル名>"
20722 \end_layout
20723
20724 \end_inset
20725
20726 です.
20727 \end_layout
20728
20729 \begin_layout Standard
20730 スイッチの説明は
20731 \begin_inset Flex Code
20732 status collapsed
20733
20734 \begin_layout Plain Layout
20735 man git
20736 \end_layout
20737
20738 \end_inset
20739
20740 をお読みください.
20741 \end_layout
20742
20743 \begin_layout Subsubsection
20744 変更をチェックイン
20745 \end_layout
20746
20747 \begin_layout Standard
20748 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
20749 \end_layout
20750
20751 \begin_layout Standard
20752 GITコマンド:
20753 \begin_inset Flex Code
20754 status collapsed
20755
20756 \begin_layout Plain Layout
20757 git commit -q -m
20758 \begin_inset Quotes erd
20759 \end_inset
20760
20761 <入力した説明文>
20762 \begin_inset Quotes erd
20763 \end_inset
20764
20765  "<ファイル名>"
20766 \end_layout
20767
20768 \end_inset
20769
20770
20771 \end_layout
20772
20773 \begin_layout Subsubsection
20774 リポジトリ版に戻す
20775 \end_layout
20776
20777 \begin_layout Standard
20778 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
20779 \end_layout
20780
20781 \begin_layout Standard
20782 GITコマンド:
20783 \begin_inset Flex Code
20784 status collapsed
20785
20786 \begin_layout Plain Layout
20787 git checkout -q 
20788 \begin_inset Quotes eld
20789 \end_inset
20790
20791 <ファイル名>
20792 \begin_inset Quotes erd
20793 \end_inset
20794
20795
20796 \end_layout
20797
20798 \end_inset
20799
20800
20801 \end_layout
20802
20803 \begin_layout Subsubsection
20804 ファイル名変更
20805 \end_layout
20806
20807 \begin_layout Standard
20808 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
20809 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20810 ァイルの相対パスは,(
20811 \family sans
20812 ファイル\SpecialChar menuseparator
20813 名前をつけて保存\SpecialChar ldots
20814
20815 \family default
20816 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20817 \end_layout
20818
20819 \begin_layout Labeling
20820 \labelwidthstring 00.00.0000
20821 GITコマンド:
20822 \end_layout
20823
20824 \begin_layout Labeling
20825 \labelwidthstring 00.00.0000
20826 \begin_inset Flex Code
20827 status collapsed
20828
20829 \begin_layout Plain Layout
20830 git mv "<ファイル名>" "<新ファイル名>"
20831 \end_layout
20832
20833 \end_inset
20834
20835
20836 \end_layout
20837
20838 \begin_layout Labeling
20839 \labelwidthstring 00.00.0000
20840 \begin_inset Flex Code
20841 status collapsed
20842
20843 \begin_layout Plain Layout
20844 git commit
20845 \end_layout
20846
20847 \end_inset
20848
20849
20850 \end_layout
20851
20852 \begin_layout Subsubsection
20853 履歴を表示
20854 \end_layout
20855
20856 \begin_layout Standard
20857 これは,GIT文書の全履歴を表示します.
20858 \begin_inset Flex Code
20859 status collapsed
20860
20861 \begin_layout Plain Layout
20862 git log 
20863 \begin_inset Quotes eld
20864 \end_inset
20865
20866 <ファイル名>
20867 \begin_inset Quotes erd
20868 \end_inset
20869
20870
20871 \end_layout
20872
20873 \end_inset
20874
20875 の出力がブラウザに表示されます.
20876 \end_layout
20877
20878 \begin_layout Subsubsection
20879 改訂情報
20880 \end_layout
20881
20882 \begin_layout Standard
20883 \SpecialChar LyX
20884 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
20885 \family typewriter
20886 git log -n 1 --pretty=format:%H%n%an%n%ai
20887 \family default
20888 によって抽出されます.ツリーバージョン情報は,
20889 \family typewriter
20890 git describe --abbrev --dirty --long
20891 \family default
20892 で取得されます.詳細については,第
20893 \begin_inset CommandInset ref
20894 LatexCommand ref
20895 reference "subsec:VCS改訂情報"
20896
20897 \end_inset
20898
20899 節を参照してください.
20900 \end_layout
20901
20902 \begin_layout Subsection
20903 さらなる調整
20904 \end_layout
20905
20906 \begin_layout Standard
20907 vcコマンド機構が最近になって付け加えられたおかげで,\SpecialChar LyX
20908 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
20909 \end_layout
20910
20911 \begin_layout Standard
20912 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
20913 \end_layout
20914
20915 \begin_layout Description
20916 コミット: 
20917 \begin_inset Flex Code
20918 status collapsed
20919
20920 \begin_layout Plain Layout
20921 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
20922 \end_layout
20923
20924 \end_inset
20925
20926
20927 \end_layout
20928
20929 \begin_layout Description
20930 元に戻す: 
20931 \begin_inset Flex Code
20932 status collapsed
20933
20934 \begin_layout Plain Layout
20935 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
20936 \end_layout
20937
20938 \end_inset
20939
20940
20941 \end_layout
20942
20943 \begin_layout Subsection
20944 バージョン管理と文書比較
20945 \end_layout
20946
20947 \begin_layout Standard
20948 バージョン管理は,通常
20949 \begin_inset Flex Code
20950 status collapsed
20951
20952 \begin_layout Plain Layout
20953 diff
20954 \end_layout
20955
20956 \end_inset
20957
20958 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
20959 ファイルの場合には,あ
20960 まり便利ではありません.そこで,\SpecialChar LyX
20961 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
20962
20963 \begin_inset Flex Code
20964 status collapsed
20965
20966 \begin_layout Plain Layout
20967 VC_COMPARE
20968 \end_layout
20969
20970 \end_inset
20971
20972 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
20973 関数説明書を参照),もう1つは
20974 \begin_inset Flex MenuItem
20975 status collapsed
20976
20977 \begin_layout Plain Layout
20978 旧改訂と比較\SpecialChar ldots
20979
20980 \end_layout
20981
20982 \end_inset
20983
20984 メニューないしアイコンを使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(この
20985 とき改訂版遡及数「
20986 \begin_inset Flex MenuItem
20987 status collapsed
20988
20989 \begin_layout Plain Layout
20990 0
20991 \end_layout
20992
20993 \end_inset
20994
20995 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
20996 \end_layout
20997
20998 \begin_layout Standard
20999 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
21000 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,HEAD~
21001 Xの形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
21002 \end_layout
21003
21004 \begin_layout Section
21005 文芸プログラミング
21006 \end_layout
21007
21008 \begin_layout Standard
21009
21010 \noun on
21011 Kayvan Sylvan
21012 \noun default
21013 (kayvan@sylvan.com)改訂 
21014 \noun on
21015 Edmar Wienskoski Jr.
21016 \noun default
21017 (edmar-w-jr@technologist.com)原文
21018 \end_layout
21019
21020 \begin_layout Subsection
21021 はじめに
21022 \end_layout
21023
21024 \begin_layout Standard
21025 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
21026 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
21027 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
21028 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
21029 \end_layout
21030
21031 \begin_layout Standard
21032 また,あなたが,\SpecialChar LyX
21033 の設定を変更することを厭わない程度まで\SpecialChar LyX
21034 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
21035 するトピックを扱っている,\SpecialChar LyX
21036 の他の説明書で調べてください.
21037 \end_layout
21038
21039 \begin_layout Subsection
21040 文芸プログラミング
21041 \end_layout
21042
21043 \begin_layout Standard
21044 以下は,文芸プログラミング FAQからの抜粋です.
21045 \end_layout
21046
21047 \begin_layout Quotation
21048 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
21049 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
21050 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
21051 ングのWEBスタイルは,D.
21052 \begin_inset space \thinspace{}
21053 \end_inset
21054
21055 E.
21056  Knuthが,\SpecialChar TeX
21057 組版ソフトウエアを開発中に作り出したものです.
21058 \end_layout
21059
21060 \begin_layout Standard
21061 他のエキスパートの発言です.
21062 \end_layout
21063
21064 \begin_layout Quotation
21065
21066 \emph on
21067 文芸プログラミングは,冗長なコメント付けと何が違いますか?
21068 \end_layout
21069
21070 \begin_layout Quotation
21071 3つの際立った特徴があります.重要な順に列挙すれば,
21072 \begin_inset Separator latexpar
21073 \end_inset
21074
21075
21076 \end_layout
21077
21078 \begin_deeper
21079 \begin_layout Itemize
21080 推敲の順序が柔軟
21081 \end_layout
21082
21083 \begin_layout Itemize
21084 ブラウジングの自動サポート
21085 \end_layout
21086
21087 \begin_layout Itemize
21088 特に図式と数式を含んだドキュメンテーションの組版
21089 \end_layout
21090
21091 \end_deeper
21092 \begin_layout Quotation
21093 などがあります.
21094 \end_layout
21095
21096 \begin_layout Standard
21097 あなたの興味に火を付けたところで書誌情報を見てみましょう.
21098 \end_layout
21099
21100 \begin_layout Subsubsection
21101 書誌情報
21102 \end_layout
21103
21104 \begin_layout Standard
21105 完全な文芸プログラミング FAQは
21106 \end_layout
21107
21108 \begin_layout Quote
21109 Literate Programming FAQ 
21110 \begin_inset Flex URL
21111 status collapsed
21112
21113 \begin_layout Plain Layout
21114
21115 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21116 \end_layout
21117
21118 \end_inset
21119
21120
21121 \end_layout
21122
21123 \begin_layout Standard
21124 にあります.
21125 \end_layout
21126
21127 \begin_layout Standard
21128 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
21129 を持つものもあります.私は自分で使うのに,いくつかの理由から
21130 \noun on
21131 Noweb
21132 \noun default
21133 を選びました.
21134 \end_layout
21135
21136 \begin_layout Itemize
21137 説明文書を\SpecialChar LaTeX
21138 でもHTMLでも出力できる.
21139 \end_layout
21140
21141 \begin_layout Itemize
21142 開放的なアーキテクチャに持っているので,新しいフィルタをプラグインとして加えたり,自分が必要な特別な処理を実行することが容易である.
21143 \end_layout
21144
21145 \begin_layout Itemize
21146 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
21147 \end_layout
21148
21149 \begin_layout Itemize
21150 無料である.
21151 \end_layout
21152
21153 \begin_layout Standard
21154 Nowebのウェブページは
21155 \end_layout
21156
21157 \begin_layout Quote
21158 Nowebホームページ 
21159 \begin_inset Flex URL
21160 status collapsed
21161
21162 \begin_layout Plain Layout
21163
21164 http://www.cs.virginia.edu/~nr/noweb/
21165 \end_layout
21166
21167 \end_inset
21168
21169
21170 \end_layout
21171
21172 \begin_layout Standard
21173 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
21174 \end_layout
21175
21176 \begin_layout Subsection
21177 \SpecialChar LyX
21178 とNowebを使った文芸プログラミング
21179 \end_layout
21180
21181 \begin_layout Standard
21182 \SpecialChar LyX
21183 における文芸プログラミングのサポートは,\SpecialChar LyX
21184 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
21185 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
21186 の機能を利用することができます.
21187 \end_layout
21188
21189 \begin_layout Subsubsection
21190 ドキュメントとコードの生成(weavingおよびtangling)
21191 \end_layout
21192
21193 \begin_layout Paragraph
21194 nowebモジュールの使用
21195 \end_layout
21196
21197 \begin_layout Standard
21198 Nowebと\SpecialChar LyX
21199 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
21200 \family sans
21201 文書\SpecialChar menuseparator
21202 設定
21203 \family default
21204 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
21205 web」モジュールが表示され,文書に追加できるようになっています.
21206 \end_layout
21207
21208 \begin_layout Paragraph
21209 コードの入力
21210 \end_layout
21211
21212 \begin_layout Standard
21213 \SpecialChar LyX
21214 では,
21215 \begin_inset Flex Noun
21216 status collapsed
21217
21218 \begin_layout Plain Layout
21219 Chunk
21220 \end_layout
21221
21222 \end_inset
21223
21224 という名前のレイアウトを使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
21225 \end_layout
21226
21227 \begin_layout LyX-Code
21228 <<My code>>=
21229 \end_layout
21230
21231 \begin_layout LyX-Code
21232   code
21233 \end_layout
21234
21235 \begin_layout LyX-Code
21236   more code
21237 \end_layout
21238
21239 \begin_layout LyX-Code
21240   even more code
21241 \end_layout
21242
21243 \begin_layout LyX-Code
21244   @
21245 \end_layout
21246
21247 \begin_layout Standard
21248 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
21249 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
21250 これも
21251 \begin_inset Flex Noun
21252 status collapsed
21253
21254 \begin_layout Plain Layout
21255 Chunk
21256 \end_layout
21257
21258 \end_inset
21259
21260 によって取り扱われ,通常の段落のように見えますが,自由に空白を入れることができます.
21261 \end_layout
21262
21263 \begin_layout Standard
21264 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
21265 \end_layout
21266
21267 \begin_layout LyX-Code
21268 <<My chunk>>=
21269 \end_layout
21270
21271 \begin_layout LyX-Code
21272 def some_function(args):
21273 \end_layout
21274
21275 \begin_layout LyX-Code
21276    "This is the doc string for this function."
21277 \end_layout
21278
21279 \begin_layout LyX-Code
21280    print "My args: ", args
21281 \end_layout
21282
21283 \begin_layout LyX-Code
21284 @ %def some_function
21285 \end_layout
21286
21287 \begin_layout Standard
21288 これをどのように使って,その結果相互参照がどうなるかは
21289 \emph on
21290 LIBDIR/examples/listerrors.lyx
21291 \emph default
21292 の中の文芸pythonプログラムを見るとよくわかります.
21293 \end_layout
21294
21295 \begin_layout Paragraph
21296 説明文書の生成
21297 \end_layout
21298
21299 \begin_layout Standard
21300 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
21301 簡単で,通常の文書で行うように
21302 \family sans
21303 文書\SpecialChar menuseparator
21304 表示
21305 \family default
21306 等を選ぶだけです.特別な手続きは必要ありません.
21307 \end_layout
21308
21309 \begin_layout Standard
21310 理解を助けるために,\SpecialChar LyX
21311 の内部で何が起っているかを説明しておきましょう.
21312 \end_layout
21313
21314 \begin_layout Enumerate
21315
21316 \family sans
21317 文書\SpecialChar menuseparator
21318 更新
21319 \family default
21320 が選択されると,\SpecialChar LaTeX
21321 ファイルがつくられます.
21322 \begin_inset Separator latexpar
21323 \end_inset
21324
21325
21326 \end_layout
21327
21328 \begin_deeper
21329 \begin_layout Standard
21330 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
21331 \begin_inset Flex MenuItem
21332 status collapsed
21333
21334 \begin_layout Plain Layout
21335 設定
21336 \end_layout
21337
21338 \end_inset
21339
21340 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
21341 \end_layout
21342
21343 \end_deeper
21344 \begin_layout Enumerate
21345 違いがファイル名だけなのに注意してください.\SpecialChar LyX
21346 による特別な処理は必要ありません.
21347 \begin_inset Flex Noun
21348 status collapsed
21349
21350 \begin_layout Plain Layout
21351 Chunk
21352 \end_layout
21353
21354 \end_inset
21355
21356 環境でコードを入力するのだけがポイントです.
21357 \end_layout
21358
21359 \begin_layout Enumerate
21360 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
21361 は,\SpecialChar LyX
21362 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
21363 への変換子
21364 \begin_inset Foot
21365 status collapsed
21366
21367 \begin_layout Plain Layout
21368 これらの変換子は,
21369 \family sans
21370 ツール\SpecialChar menuseparator
21371 設定
21372 \family default
21373 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
21374 \emph on
21375 カスタマイズ篇
21376 \emph default
21377 』の「
21378 \emph on
21379 変換子
21380 \emph default
21381 」の節をご覧ください.
21382 \end_layout
21383
21384 \end_inset
21385
21386 を使って\SpecialChar LaTeX
21387 ファイルを生成します.
21388 \begin_inset Separator latexpar
21389 \end_inset
21390
21391
21392 \end_layout
21393
21394 \begin_deeper
21395 \begin_layout Standard
21396 それ以外の場合はこのステップを飛ばします.
21397 \end_layout
21398
21399 \end_deeper
21400 \begin_layout Enumerate
21401 最後に\SpecialChar LaTeX
21402 が実行され,通常の文書と同じ後処理が行われます.
21403 \end_layout
21404
21405 \begin_layout Standard
21406 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
21407 \end_layout
21408
21409 \begin_layout Paragraph
21410 コードの生成
21411 \end_layout
21412
21413 \begin_layout Standard
21414 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
21415 ファイルが生成されます.それから\SpecialChar LyX
21416
21417 \family typewriter
21418 Noweb->Program
21419 \family default
21420 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
21421 \end_layout
21422
21423 \begin_layout Enumerate
21424 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
21425 変換します).
21426 \end_layout
21427
21428 \begin_layout Enumerate
21429 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
21430 が理解できる形へ書き直します.これによって,\SpecialChar LyX
21431 はファイルバッファの正しい位置へエラーボックスを配置することができます.
21432 \end_layout
21433
21434 \begin_layout Standard
21435 冒頭部,「変換子」設定は
21436 \begin_inset Newline newline
21437 \end_inset
21438
21439
21440 \begin_inset Quotes eld
21441 \end_inset
21442
21443
21444 \family typewriter
21445 build-script $$i $$r
21446 \family default
21447
21448 \begin_inset Quotes erd
21449 \end_inset
21450
21451
21452 \begin_inset Newline newline
21453 \end_inset
21454
21455 と指定します.これは基本的に,\SpecialChar LyX
21456
21457 \begin_inset Quotes erd
21458 \end_inset
21459
21460
21461 \family typewriter
21462 build-script
21463 \family default
21464
21465 \begin_inset Quotes erd
21466 \end_inset
21467
21468 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21469 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
21470 ファイルのディレクトリパスを使って呼び出すこ
21471 とを意味しています.
21472 \end_layout
21473
21474 \begin_layout Standard
21475 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
21476 \end_layout
21477
21478 \begin_layout Standard
21479 \begin_inset VSpace defskip
21480 \end_inset
21481
21482
21483 \begin_inset Newpage pagebreak
21484 \end_inset
21485
21486
21487 \end_layout
21488
21489 \begin_layout Standard
21490
21491 \family sans
21492 #!/bin/sh
21493 \end_layout
21494
21495 \begin_layout Standard
21496
21497 \family sans
21498 #
21499 \end_layout
21500
21501 \begin_layout Standard
21502
21503 \family sans
21504 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21505 \end_layout
21506
21507 \begin_layout Standard
21508 \begin_inset VSpace defskip
21509 \end_inset
21510
21511
21512 \end_layout
21513
21514 \begin_layout Standard
21515 変換子設定の次の部分は「フラグ」で,これは
21516 \begin_inset Quotes erd
21517 \end_inset
21518
21519
21520 \family typewriter
21521 parselog=$$s/scripts/listerrors
21522 \family default
21523
21524 \begin_inset Quotes erd
21525 \end_inset
21526
21527 に設定されます.
21528 \begin_inset Newline newline
21529 \end_inset
21530
21531 これは,
21532 \begin_inset Quotes erd
21533 \end_inset
21534
21535 build-script
21536 \begin_inset Quotes erd
21537 \end_inset
21538
21539 プロセスが生成したエラーを
21540 \begin_inset Quotes erd
21541 \end_inset
21542
21543 listerrors
21544 \begin_inset Quotes erd
21545 \end_inset
21546
21547 プログラムを介して処理するものです.
21548 \end_layout
21549
21550 \begin_layout Standard
21551 ビルドは,通常\SpecialChar LyX
21552 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
21553 は,主要ファイルとみなされるものをコピーして取り出
21554 しますが,
21555 \family typewriter
21556 Noweb→プログラム
21557 \family default
21558 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
21559 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
21560 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
21561 \end_layout
21562
21563 \begin_layout Paragraph
21564 文章中でのプログラムの構築操作の説明
21565 \end_layout
21566
21567 \begin_layout Standard
21568 \SpecialChar LyX
21569 とNowebの統合の最後の部分は,
21570 \begin_inset Quotes eld
21571 \end_inset
21572
21573 build-script
21574 \begin_inset Quotes erd
21575 \end_inset
21576
21577  chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
21578 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
21579 \end_layout
21580
21581 \begin_layout Standard
21582 以下に典型的なchunkがどのようなものかを書いておきます.
21583 \end_layout
21584
21585 \begin_layout LyX-Code
21586 <<build-script>>=
21587 \begin_inset Newline newline
21588 \end_inset
21589
21590
21591 \end_layout
21592
21593 \begin_layout LyX-Code
21594 #!/bin/sh
21595 \begin_inset Newline newline
21596 \end_inset
21597
21598
21599 \begin_inset Newline newline
21600 \end_inset
21601
21602 if [ -z "${NOWEB_SOURCE}" ]
21603 \begin_inset Newline newline
21604 \end_inset
21605
21606 then
21607 \end_layout
21608
21609 \begin_layout LyX-Code
21610 NOWEB_SOURCE=myfile.nw
21611 \begin_inset Newline newline
21612 \end_inset
21613
21614 fi
21615 \begin_inset Newline newline
21616 \end_inset
21617
21618 [...
21619  code to extract files ...
21620  use NOWEB_OUTPUT_DIR here ...]
21621 \begin_inset Newline newline
21622 \end_inset
21623
21624 [...
21625  code to compile files ...]
21626 \begin_inset Newline newline
21627 \end_inset
21628
21629 @
21630 \end_layout
21631
21632 \begin_layout Standard
21633
21634 \emph on
21635 LIBDIR/examples/listerrors.lyx
21636 \emph default
21637
21638 \emph on
21639 LIBDIR/examples/Literate.lyx
21640 \emph default
21641 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
21642 ってもらうための例です.また,
21643 \emph on
21644 LIBDIR/examples/noweb2lyx.lyx
21645 \emph default
21646 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
21647 の文芸プログラミングのサポートがプログラム言語に依存しない
21648 ことを示しています.
21649 \end_layout
21650
21651 \begin_layout Subsubsection
21652 \SpecialChar LyX
21653 の設定
21654 \end_layout
21655
21656 \begin_layout Standard
21657 すべての文芸プログラムのための設定は,
21658 \family sans
21659 ツール\SpecialChar menuseparator
21660 設定
21661 \family default
21662 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
21663 \end_layout
21664
21665 \begin_layout Description
21666 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
21667 \family sans
21668 GUI名
21669 \family default
21670
21671 \family typewriter
21672 NoWeb
21673 \family default
21674 に,拡張子を
21675 \family typewriter
21676 .nw
21677 \family default
21678 に設定してください.これによって,\SpecialChar LyX
21679 に変換プロセスの第一段階でつくられるファイルに
21680 \family typewriter
21681 .nw
21682 \family default
21683 という拡張子をつけることを指示します.
21684 \end_layout
21685
21686 \begin_layout Description
21687 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
21688 \end_layout
21689
21690 \begin_layout Description
21691
21692 \family sans
21693 NoWeb
21694 \family default
21695 ->
21696 \family sans
21697 \SpecialChar LaTeX
21698
21699 \family default
21700  この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
21701 \family typewriter
21702 noweave -delay -index $$i > $$o
21703 \family default
21704 」に設定されます.
21705 \end_layout
21706
21707 \begin_layout Description
21708
21709 \family sans
21710 NoWeb
21711 \family default
21712 ->
21713 \family sans
21714 Program
21715 \family default
21716  これは「tangling」を行います.上述のように,変換子は「
21717 \family typewriter
21718 build-script $$i $$r
21719 \family default
21720 」,フラグは「
21721 \family typewriter
21722 parselog=$$s/scripts/listerrors
21723 \family default
21724 」となります.
21725 \end_layout
21726
21727 \begin_layout Subsubsection
21728 デバッグ機能拡張
21729 \end_layout
21730
21731 \begin_layout Standard
21732 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21733 サーバに実装されました.
21734 \end_layout
21735
21736 \begin_layout Standard
21737 ddd/gdbでデバッグしているとき,一つの
21738 \begin_inset Flex Ruby
21739 status collapsed
21740
21741 \begin_layout Plain Layout
21742
21743 \begin_inset Argument post:1
21744 status collapsed
21745
21746 \begin_layout Plain Layout
21747 キー
21748 \end_layout
21749
21750 \end_inset
21751
21752
21753 \end_layout
21754
21755 \end_inset
21756
21757 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
21758 \begin_inset Flex MenuItem
21759 status collapsed
21760
21761 \begin_layout Plain Layout
21762 ツール\SpecialChar menuseparator
21763 設定\SpecialChar menuseparator
21764 ファイル書式
21765 \end_layout
21766
21767 \end_inset
21768
21769 ウインドウを表示して,
21770 \begin_inset Flex MenuItem
21771 status collapsed
21772
21773 \begin_layout Plain Layout
21774 編集プログラム
21775 \end_layout
21776
21777 \end_inset
21778
21779 エントリを変えると変えることができます.
21780 \end_layout
21781
21782 \begin_layout Standard
21783 新しい\SpecialChar LyX
21784 サーバの関数と,このdddの機能を使うために
21785 \begin_inset Flex MenuItem
21786 status collapsed
21787
21788 \begin_layout Plain Layout
21789 編集プログラム
21790 \end_layout
21791
21792 \end_inset
21793
21794 を次のように設定してください.
21795 \end_layout
21796
21797 \begin_layout Standard
21798 \begin_inset VSpace defskip
21799 \end_inset
21800
21801
21802 \end_layout
21803
21804 \begin_layout Standard
21805
21806 \family sans
21807 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21808 \end_layout
21809
21810 \begin_layout Standard
21811 \begin_inset VSpace defskip
21812 \end_inset
21813
21814
21815 \end_layout
21816
21817 \begin_layout Standard
21818 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21819 サーバに情報を送り,\SpecialChar LyX
21820
21821 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
21822 \end_layout
21823
21824 \begin_layout Standard
21825 この機能が動くには\SpecialChar LyX
21826 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
21827 サーバーは使えないようになっています).\SpecialChar LyX
21828 サーバを使えるようにするには,
21829 \family sans
21830
21831 \begin_inset Flex MenuItem
21832 status collapsed
21833
21834 \begin_layout Plain Layout
21835
21836 \family sans
21837 設定
21838 \end_layout
21839
21840 \end_inset
21841
21842
21843 \family default
21844 (
21845 \family sans
21846
21847 \begin_inset Flex MenuItem
21848 status collapsed
21849
21850 \begin_layout Plain Layout
21851
21852 \family sans
21853 パス
21854 \end_layout
21855
21856 \end_inset
21857
21858
21859 \family default
21860 タブ)の
21861 \family sans
21862
21863 \begin_inset Flex MenuItem
21864 status collapsed
21865
21866 \begin_layout Plain Layout
21867
21868 \family sans
21869 \SpecialChar LyX
21870 サーバーパイプ
21871 \family default
21872
21873 \end_layout
21874
21875 \end_inset
21876
21877
21878 \family default
21879
21880 \begin_inset Quotes eld
21881 \end_inset
21882
21883
21884 \family typewriter
21885 /home/<your-home-directory>/.lyx/lyxpipe
21886 \family default
21887
21888 \begin_inset Quotes erd
21889 \end_inset
21890
21891  のようにパスを指定してください.
21892 \end_layout
21893
21894 \begin_layout Standard
21895 詳しくは第
21896 \begin_inset CommandInset ref
21897 LatexCommand ref
21898 reference "chap:LyXサーバー"
21899
21900 \end_inset
21901
21902 章を読んでください.
21903 \end_layout
21904
21905 \begin_layout Subsubsection
21906 ツールバー拡張
21907 \end_layout
21908
21909 \begin_layout Standard
21910 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの5つのボタンは段落環境へのショートカットです.
21911 \family sans
21912 標準
21913 \family default
21914 ・節・
21915 \family sans
21916 \SpecialChar LaTeX
21917
21918 \family default
21919
21920 \family sans
21921 \SpecialChar LyX
21922 コード
21923 \family default
21924
21925 \family sans
21926 Chunk
21927 \family default
21928 環境用のボタンを用意しています.最後の一つはファイルメニュー項目の「Build Program」への
21929 \begin_inset Flex Ruby
21930 status collapsed
21931
21932 \begin_layout Plain Layout
21933
21934 \family roman
21935 \series medium
21936 \shape up
21937 \size normal
21938 \emph off
21939 \bar no
21940 \noun off
21941 \color none
21942 捷径
21943 \family default
21944 \series default
21945 \shape default
21946 \size default
21947 \emph default
21948 \bar default
21949 \noun default
21950 \color inherit
21951
21952 \begin_inset Argument post:1
21953 status collapsed
21954
21955 \begin_layout Plain Layout
21956 ショートカット
21957 \end_layout
21958
21959 \end_inset
21960
21961
21962 \end_layout
21963
21964 \end_inset
21965
21966 です.
21967 \end_layout
21968
21969 \begin_layout Standard
21970 \SpecialChar LyX
21971 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
21972 \begin_inset Flex MenuItem
21973 status collapsed
21974
21975 \begin_layout Plain Layout
21976 文書\SpecialChar menuseparator
21977 更新\SpecialChar menuseparator
21978 DVI
21979 \end_layout
21980
21981 \end_inset
21982
21983
21984 \begin_inset Flex MenuItem
21985 status collapsed
21986
21987 \begin_layout Plain Layout
21988 文書\SpecialChar menuseparator
21989 表示\SpecialChar menuseparator
21990 DVI
21991 \end_layout
21992
21993 \end_inset
21994
21995 を組み合わせたものになっています.
21996 \end_layout
21997
21998 \begin_layout LyX-Code
21999 Toolbar
22000 \end_layout
22001
22002 \begin_layout LyX-Code
22003   Layouts
22004 \end_layout
22005
22006 \begin_layout LyX-Code
22007   Icon "layout Standard"
22008 \end_layout
22009
22010 \begin_layout LyX-Code
22011   Icon "layout Section"
22012 \end_layout
22013
22014 \begin_layout LyX-Code
22015   Icon "layout \SpecialChar LaTeX
22016 "
22017 \end_layout
22018
22019 \begin_layout LyX-Code
22020   Icon "layout \SpecialChar LyX
22021 -Code"
22022 \end_layout
22023
22024 \begin_layout LyX-Code
22025   Icon "layout Chunk"
22026 \end_layout
22027
22028 \begin_layout LyX-Code
22029   Separator
22030 \end_layout
22031
22032 \begin_layout LyX-Code
22033   Icon "buffer-view"
22034 \end_layout
22035
22036 \begin_layout LyX-Code
22037   Icon "buffer-typeset"
22038 \end_layout
22039
22040 \begin_layout LyX-Code
22041   Icon "build-program"
22042 \end_layout
22043
22044 \begin_layout LyX-Code
22045   Separator
22046 \end_layout
22047
22048 \begin_layout LyX-Code
22049 .
22050 \end_layout
22051
22052 \begin_layout LyX-Code
22053 .
22054 \end_layout
22055
22056 \begin_layout LyX-Code
22057 .
22058 \end_layout
22059
22060 \begin_layout LyX-Code
22061 End
22062 \end_layout
22063
22064 \begin_layout Subsubsection
22065 色の変更
22066 \end_layout
22067
22068 \begin_layout Standard
22069 \SpecialChar LyX
22070 ではいくつもの色を
22071 \begin_inset Flex MenuItem
22072 status collapsed
22073
22074 \begin_layout Plain Layout
22075 設定
22076 \end_layout
22077
22078 \end_inset
22079
22080 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
22081 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
22082 フォントを使うことになっていて,文芸プログラミ
22083 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
22084 \begin_inset Flex MenuItem
22085 status collapsed
22086
22087 \begin_layout Plain Layout
22088 操作性\SpecialChar menuseparator
22089
22090 \end_layout
22091
22092 \end_inset
22093
22094 タブで変更することができます.
22095 \end_layout
22096
22097 \begin_layout Standard
22098 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
22099 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
22100 \end_layout
22101
22102 \begin_layout Subsection
22103 \SpecialChar LyX
22104 とknitr/Sweave
22105 \end_layout
22106
22107 \begin_layout Standard
22108 knitrとSweaveへのサポートについては,用例ファイル
22109 \emph on
22110 knitr.lyx
22111 \emph default
22112 とSweave取扱説明書(
22113 \family sans
22114 ヘルプ\SpecialChar menuseparator
22115 用途別説明書
22116 \family default
22117 メニュー)に説明があります.
22118 \end_layout
22119
22120 \begin_layout Chapter
22121 特殊機能
22122 \begin_inset CommandInset label
22123 LatexCommand label
22124 name "chap:Special-features"
22125
22126 \end_inset
22127
22128
22129 \end_layout
22130
22131 \begin_layout Standard
22132 \SpecialChar LyX
22133 では,\SpecialChar LaTeX
22134 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
22135 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
22136 コードを使用することはできます.本章は,ユーザの興味が
22137 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
22138 \emph on
22139 埋込オブジェクト篇
22140 \emph default
22141 』をご参照ください.
22142 \end_layout
22143
22144 \begin_layout Section
22145 多段組
22146 \end_layout
22147
22148 \begin_layout Standard
22149 この機能は,文書設定の
22150 \family sans
22151 本文レイアウト
22152 \family default
22153 にある
22154 \family sans
22155 二段組文書
22156 \family default
22157 とは別の機能です.文書全体に二段組を行いたい場合には,
22158 \family sans
22159 二段組文書
22160 \family default
22161 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
22162 \end_layout
22163
22164 \begin_layout Standard
22165 文書中で多段組を行うには,\SpecialChar LaTeX
22166 パッケージ
22167 \series bold
22168 multicol
22169 \series default
22170
22171 \begin_inset Index idx
22172 status collapsed
22173
22174 \begin_layout Plain Layout
22175 \SpecialChar LaTeX
22176 ぱっけーじ @ \SpecialChar LaTeX
22177 パッケージ ! multicol
22178 \end_layout
22179
22180 \end_inset
22181
22182 を導入した上で,(
22183 \family sans
22184 文書\SpecialChar menuseparator
22185 設定\SpecialChar menuseparator
22186 モジュール
22187 \family default
22188 メニューから)
22189 \family sans
22190 多段組
22191 \family default
22192 モジュールを読み込んでください.
22193 \end_layout
22194
22195 \begin_layout Standard
22196 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
22197 \family sans
22198 段をまたぐ
22199 \family default
22200 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
22201 \end_layout
22202
22203 \begin_layout Subsection
22204 基本
22205 \end_layout
22206
22207 \begin_layout Standard
22208 文章中で二段組を使用したい場合には,段組を始める場所で
22209 \family sans
22210 挿入\SpecialChar menuseparator
22211 任意設定差込枠\SpecialChar menuseparator
22212 多段組
22213 \family default
22214 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
22215 \end_layout
22216
22217 \begin_layout Standard
22218 下記はその用例です.
22219 \end_layout
22220
22221 \begin_layout Standard
22222 \noindent
22223 \begin_inset Flex Multiple Columns
22224 status open
22225
22226 \begin_layout Plain Layout
22227 \noindent
22228
22229 \series bold
22230 \size small
22231 The Adventure of the Empty House
22232 \series default
22233
22234 \begin_inset Newline newline
22235 \end_inset
22236
22237 by Sir Arthur Conan Doyle
22238 \end_layout
22239
22240 \begin_layout Plain Layout
22241
22242 \size small
22243 It was in the spring of the year 1894 that all London was interested, and
22244  the fashionable world dismayed, by the murder of the Honourable Ronald
22245  Adair under most unusual and inexplicable circumstances.
22246  The public has already learned those particulars of the crime which came
22247  out in the police investigation, but a good deal was suppressed upon that
22248  occasion, since the case for the prosecution was so overwhelmingly strong
22249  that it was not necessary to bring forward all the facts.
22250  Only now, at the end of nearly ten years, am I allowed to supply those
22251  missing links which make up the whole of that remarkable chain.
22252  The crime was of interest in itself, but that interest was as nothing to
22253  me compared to the inconceivable sequel, which afforded me the greatest
22254  shock and surprise of any event in my adventurous life.
22255  Even now, after this long interval, I find myself thrilling as I think
22256  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22257 ty which utterly submerged my mind.
22258  Let me say to that public, which has shown some interest in those glimpses
22259  which I have occasionally given them of the thoughts and actions of a very
22260  remarkable man, that they are not to blame me if I have not shared my knowledge
22261  with them, for I should have considered it my first duty to do so, had
22262  I not been barred by a positive prohibition from his own lips, which was
22263  only withdrawn upon the third of last month.
22264 \end_layout
22265
22266 \end_inset
22267
22268
22269 \end_layout
22270
22271 \begin_layout Standard
22272 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
22273 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
22274 と書きます).
22275 \begin_inset Newline newline
22276 \end_inset
22277
22278 下記は三段組の例です.
22279 \end_layout
22280
22281 \begin_layout Standard
22282 \begin_inset Flex Multiple Columns
22283 status open
22284
22285 \begin_layout Plain Layout
22286
22287 \size footnotesize
22288 \begin_inset Argument 1
22289 status open
22290
22291 \begin_layout Plain Layout
22292 3
22293 \end_layout
22294
22295 \end_inset
22296
22297 It can be imagined that my close intimacy with Sherlock Holmes had interested
22298  me deeply in crime, and that after his disappearance I never failed to
22299  read with care the various problems which came before the public.
22300  And I even attempted, more than once, for my own private satisfaction,
22301  to employ his methods in their solution, though with indifferent success.
22302  There was none, however, which appealed to me like this tragedy of Ronald
22303  Adair.
22304  As I read the evidence at the inquest, which led up to a verdict of willful
22305  murder against some person or persons unknown, I realized more clearly
22306  than I had ever done the loss which the community had sustained by the
22307  death of Sherlock Holmes.
22308  There were points about this strange business which would, I was sure,
22309  have specially appealed to him, and the efforts of the police would have
22310  been supplemented, or more probably anticipated, by the trained observation
22311  and the alert mind of the first criminal agent in Europe.
22312  All day, as I drove upon my round, I turned over the case in my mind and
22313  found no explanation which appeared to me to be adequate.
22314  At the risk of telling a twice-told tale, I will recapitulate the facts
22315  as they were known to the public at the conclusion of the inquest.
22316 \end_layout
22317
22318 \end_inset
22319
22320
22321 \end_layout
22322
22323 \begin_layout Standard
22324 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
22325 \end_layout
22326
22327 \begin_layout Standard
22328 \begin_inset Newpage newpage
22329 \end_inset
22330
22331
22332 \end_layout
22333
22334 \begin_layout Subsection
22335 段組中の段組
22336 \end_layout
22337
22338 \begin_layout Standard
22339 また,段中に段を組むこともできます.
22340 \end_layout
22341
22342 \begin_layout Standard
22343 \begin_inset Flex Multiple Columns
22344 status open
22345
22346 \begin_layout Plain Layout
22347
22348 \size footnotesize
22349 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22350  at that time governor of one of the Australian colonies.
22351  Adair's mother had returned from Australia to undergo the operation for
22352  cataract, and she, her son Ronald, and her daughter Hilda were living together
22353  at 427 Park Lane.
22354 \end_layout
22355
22356 \begin_layout Plain Layout
22357 \begin_inset Flex Multiple Columns
22358 status open
22359
22360 \begin_layout Plain Layout
22361
22362 \size footnotesize
22363 The youth moved in the best society–had, so far as was known, no enemies
22364  and no particular vices.
22365  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22366  had been broken off by mutual consent some months before, and there was
22367  no sign that it had left any very profound feeling behind it.
22368  For the rest {sic} the man's life moved in a narrow and conventional circle,
22369  for his habits were quiet and his nature unemotional.
22370  Yet it was upon this easy-going young aristocrat that death came, in most
22371  strange and unexpected form, between the hours of ten and eleven-twenty
22372  on the night of March 30, 1894.
22373 \end_layout
22374
22375 \end_inset
22376
22377
22378 \end_layout
22379
22380 \begin_layout Plain Layout
22381
22382 \size footnotesize
22383 Ronald Adair was fond of cards–playing continually, but never for such stakes
22384  as would hurt him.
22385  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22386  It was shown that, after dinner on the day of his death, he had played
22387  a rubber of whist at the latter club.
22388  He had also played there in the afternoon.
22389
22390 \size default
22391  
22392 \size footnotesize
22393 The evidence of those who had played with him– Mr.
22394  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22395  and that there was a fairly equal fall of the cards.
22396  Adair might have lost five pounds, but not more.
22397  His fortune was a considerable one, and such a loss could not in any way
22398  affect him.
22399  He had played nearly every day at one club or other, but he was a cautious
22400  player, and usually rose a winner.
22401  It came out in evidence that, in partnership with Colonel Moran, he had
22402  actually won as much as four hundred and twenty pounds in a sitting, some
22403  weeks before, from Godfrey Milner and Lord Balmoral.
22404  So much for his recent history as it came out at the inquest.
22405 \end_layout
22406
22407 \end_inset
22408
22409
22410 \end_layout
22411
22412 \begin_layout Subsection
22413 応用例
22414 \end_layout
22415
22416 \begin_layout Standard
22417 本節の用例は,多段組のさらに特別な機能を示すためのものです.
22418 \end_layout
22419
22420 \begin_layout Standard
22421 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
22422 パッケージ
22423 \series bold
22424 multicol
22425 \series default
22426
22427 \begin_inset CommandInset citation
22428 LatexCommand cite
22429 key "multicol"
22430
22431 \end_inset
22432
22433 の取扱説明書をご覧ください.
22434 \end_layout
22435
22436 \begin_layout Subsubsection
22437 序文
22438 \end_layout
22439
22440 \begin_layout Standard
22441 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
22442 \family sans
22443 挿入\SpecialChar menuseparator
22444 序文
22445 \family default
22446 メニューを使用してください.序文は,この差込枠内に書いてください.
22447 \begin_inset Newline newline
22448 \end_inset
22449
22450 序文のある文章の例を掲げます.
22451 \end_layout
22452
22453 \begin_layout Standard
22454 \begin_inset VSpace bigskip
22455 \end_inset
22456
22457
22458 \end_layout
22459
22460 \begin_layout Standard
22461 \begin_inset Flex Multiple Columns
22462 status open
22463
22464 \begin_layout Plain Layout
22465 \begin_inset Argument 2
22466 status open
22467
22468 \begin_layout Plain Layout
22469 And the story continues and continues and continues and continues\SpecialChar ldots
22470
22471 \end_layout
22472
22473 \end_inset
22474
22475
22476 \size small
22477 On the evening of the crime, he returned from the club exactly at ten.
22478  His mother and sister were out spending the evening with a relation.
22479  The servant deposed that she heard him enter the front room on the second
22480  floor, generally used as his sitting-room.
22481  She had lit a fire there, and as it smoked she had opened the window.
22482  No sound was heard from the room until eleven-twenty, the hour of the return
22483  of Lady Maynooth and her daughter.
22484  Desiring to say good-night, she attempted to enter her son's room.
22485  The door was locked on the inside, and no answer could be got to their
22486  cries and knocking.
22487  Help was obtained, and the door forced.
22488  The unfortunate young man was found lying near the table.
22489  His head had been horribly mutilated by an expanding revolver bullet, but
22490  no weapon of any sort was to be found in the room.
22491 \end_layout
22492
22493 \end_inset
22494
22495
22496 \end_layout
22497
22498 \begin_layout Standard
22499 最初の\SpecialChar TeX
22500 コードの後に,節宣言コマンドを\SpecialChar TeX
22501 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
22502 \end_layout
22503
22504 \begin_layout Standard
22505
22506 \series bold
22507
22508 \backslash
22509 subsection{小節見出し}
22510 \end_layout
22511
22512 \begin_layout Standard
22513 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
22514 \end_layout
22515
22516 \begin_layout Standard
22517 \begin_inset Flex Multiple Columns
22518 status open
22519
22520 \begin_layout Plain Layout
22521 \begin_inset Argument 2
22522 status open
22523
22524 \begin_layout Plain Layout
22525 \begin_inset ERT
22526 status collapsed
22527
22528 \begin_layout Plain Layout
22529
22530
22531 \backslash
22532 subsubsection{
22533 \end_layout
22534
22535 \end_inset
22536
22537 これは序文の小々節見出しです
22538 \begin_inset ERT
22539 status collapsed
22540
22541 \begin_layout Plain Layout
22542
22543 }
22544 \end_layout
22545
22546 \end_inset
22547
22548
22549 \end_layout
22550
22551 \end_inset
22552
22553
22554 \size small
22555 A minute examination of the circumstances served only to make the case more
22556  complex.
22557  In the first place, no reason could be given why the young man should have
22558  fastened the door upon the inside.
22559  There was the possibility that the murderer had done this, and had afterwards
22560  escaped by the window.
22561  The drop was at least twenty feet, however, and a bed of crocuses in full
22562  bloom lay beneath.
22563  Neither the flowers nor the earth showed any sign of having been disturbed,
22564  nor were there any marks upon the narrow strip of grass which separated
22565  the house from the road.
22566  Apparently, therefore, it was the young man himself who had fastened the
22567  door.
22568  But how did he come by his death? No one could have climbed up to the window
22569  without leaving traces.
22570  Suppose a man had fired through the window, he would indeed be a remarkable
22571  shot who could with a revolver inflict so deadly a wound.
22572  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22573  a hundred yards of the house.
22574  No one had heard a shot.
22575 \end_layout
22576
22577 \end_inset
22578
22579
22580 \end_layout
22581
22582 \begin_layout Standard
22583 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
22584 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
22585 \family sans
22586 挿入\SpecialChar menuseparator
22587 改頁前の余白
22588 \family default
22589 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
22590 \end_layout
22591
22592 \begin_layout Standard
22593 以下の例では,「7
22594 \backslash
22595 baselineskip」を用いて,必要行数を7行に指定しています(コマンド
22596 \series bold
22597
22598 \backslash
22599 baselineskip
22600 \series default
22601 は\SpecialChar TeX
22602 コードとして入力する必要があります).
22603 \end_layout
22604
22605 \begin_layout Standard
22606 \begin_inset Flex Multiple Columns
22607 status open
22608
22609 \begin_layout Plain Layout
22610 \begin_inset Argument 3
22611 status open
22612
22613 \begin_layout Plain Layout
22614 7
22615 \begin_inset ERT
22616 status collapsed
22617
22618 \begin_layout Plain Layout
22619
22620
22621 \backslash
22622 baselineskip
22623 \end_layout
22624
22625 \end_inset
22626
22627
22628 \end_layout
22629
22630 \end_inset
22631
22632
22633 \size small
22634 On the evening of the crime, he returned from the club exactly at ten.
22635  His mother and sister were out spending the evening with a relation.
22636  The servant deposed that she heard him enter the front room on the second
22637  floor, generally used as his sitting-room.
22638  She had lit a fire there, and as it smoked she had opened the window.
22639  No sound was heard from the room until eleven-twenty, the hour of the return
22640  of Lady Maynooth and her daughter.
22641  Desiring to say good-night, she attempted to enter her son's room.
22642  The door was locked on the inside, and no answer could be got to their
22643  cries and knocking.
22644  Help was obtained, and the door forced.
22645  The unfortunate young man was found lying near the table.
22646  His head had been horribly mutilated by an expanding revolver bullet, but
22647  no weapon of any sort was to be found in the room.
22648 \end_layout
22649
22650 \end_inset
22651
22652
22653 \end_layout
22654
22655 \begin_layout Subsubsection
22656 周囲の余白
22657 \end_layout
22658
22659 \begin_layout Standard
22660 多段組の前後の余白は,長さ
22661 \series bold
22662
22663 \backslash
22664 multicolsep
22665 \series default
22666 を変えることで変更することができます.例えば,\SpecialChar TeX
22667 コードで書かれたコマンド
22668 \end_layout
22669
22670 \begin_layout Standard
22671
22672 \series bold
22673
22674 \backslash
22675 setlength{
22676 \backslash
22677 multicolsep}{3cm}
22678 \end_layout
22679
22680 \begin_layout Standard
22681 は,その値を3
22682 \begin_inset space \thinspace{}
22683 \end_inset
22684
22685 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
22686 \begin_inset space \thinspace{}
22687 \end_inset
22688
22689 ptです.
22690 \end_layout
22691
22692 \begin_layout Standard
22693 以下の例では,
22694 \series bold
22695
22696 \backslash
22697 multicolsep
22698 \series default
22699 は2.5
22700 \begin_inset space \thinspace{}
22701 \end_inset
22702
22703 cmに指定されています.
22704 \end_layout
22705
22706 \begin_layout Standard
22707 \begin_inset ERT
22708 status open
22709
22710 \begin_layout Plain Layout
22711
22712
22713 \backslash
22714 setlength{
22715 \backslash
22716 multicolsep}{2.5cm}
22717 \end_layout
22718
22719 \end_inset
22720
22721
22722 \end_layout
22723
22724 \begin_layout Standard
22725 \begin_inset Flex Multiple Columns
22726 status open
22727
22728 \begin_layout Plain Layout
22729
22730 \size small
22731 All day I turned these facts over in my mind, endeavouring to hit upon some
22732  theory which could reconcile them all, and to find that line of least resistanc
22733 e which my poor friend had declared to be the starting-point of every investigat
22734 ion.
22735  I confess that I made little progress.
22736  In the evening I strolled across the Park, and found myself about six o'clock
22737  at the Oxford Street end of Park Lane.
22738  A group of loafers upon the pavements, all staring up at a particular window,
22739  directed me to the house which I had come to see.
22740  A tall, thin man with coloured glasses, whom I strongly suspected of being
22741  a plain-clothes detective, was pointing out some theory of his own, while
22742  the others crowded round to listen to what he said.
22743  I got as near him as I could, but his observations seemed to me to be absurd,
22744  so I withdrew again in some disgust.
22745  As I did so I struck against an elderly, deformed man, who had been behind
22746  me, and I knocked down several books which he was carrying.
22747 \end_layout
22748
22749 \end_inset
22750
22751
22752 \end_layout
22753
22754 \begin_layout Standard
22755 \begin_inset Note Greyedout
22756 status open
22757
22758 \begin_layout Plain Layout
22759
22760 \series bold
22761 【註】
22762 \backslash
22763 setlength
22764 \series default
22765 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
22766 \end_layout
22767
22768 \end_inset
22769
22770
22771 \end_layout
22772
22773 \begin_layout Standard
22774 \begin_inset ERT
22775 status collapsed
22776
22777 \begin_layout Plain Layout
22778
22779
22780 \backslash
22781 setlength{
22782 \backslash
22783 multicolsep}{13pt}
22784 \end_layout
22785
22786 \end_inset
22787
22788
22789 \begin_inset Note Note
22790 status collapsed
22791
22792 \begin_layout Plain Layout
22793
22794 \lang english
22795 go back to the default
22796 \end_layout
22797
22798 \end_inset
22799
22800
22801 \end_layout
22802
22803 \begin_layout Standard
22804 \begin_inset Newpage newpage
22805 \end_inset
22806
22807
22808 \end_layout
22809
22810 \begin_layout Subsubsection
22811 改段
22812 \end_layout
22813
22814 \begin_layout Standard
22815 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
22816 コードで,コマンド
22817 \series bold
22818
22819 \backslash
22820 columnbreak{}
22821 \series default
22822 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
22823 \begin_inset Newline newline
22824 \end_inset
22825
22826 以下が用例です.
22827 \end_layout
22828
22829 \begin_layout Standard
22830 \begin_inset Flex Multiple Columns
22831 status open
22832
22833 \begin_layout Plain Layout
22834
22835 \size small
22836 \begin_inset Quotes eld
22837 \end_inset
22838
22839 You're surprised to see me, sir,
22840 \begin_inset Quotes erd
22841 \end_inset
22842
22843  said he, in a strange, croaking voice.
22844 \end_layout
22845
22846 \begin_layout Plain Layout
22847
22848 \size small
22849 I acknowledged that I was.
22850 \end_layout
22851
22852 \begin_layout Plain Layout
22853
22854 \size small
22855 \begin_inset Quotes eld
22856 \end_inset
22857
22858 Well, I've a conscience, sir, and when I chanced to see you go into this
22859  house, as I came hobbling after you, I thought to myself, I'll just step
22860  in and see that kind gentleman, and tell him that if I was a bit gruff
22861  in my manner there was not any harm meant, and that I am much obliged to
22862  him for picking up my books.
22863 \begin_inset Quotes erd
22864 \end_inset
22865
22866
22867 \end_layout
22868
22869 \begin_layout Plain Layout
22870
22871 \size small
22872 \begin_inset Quotes eld
22873 \end_inset
22874
22875 You make too much of a trifle,
22876 \begin_inset Quotes erd
22877 \end_inset
22878
22879  said I.
22880  
22881 \begin_inset Quotes eld
22882 \end_inset
22883
22884 May I ask how you knew who I was?
22885 \begin_inset Quotes erd
22886 \end_inset
22887
22888  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
22889 \begin_inset ERT
22890 status collapsed
22891
22892 \begin_layout Plain Layout
22893
22894
22895 \backslash
22896 columnbreak{}
22897 \end_layout
22898
22899 \end_inset
22900
22901
22902 \end_layout
22903
22904 \begin_layout Plain Layout
22905
22906 \size small
22907 \begin_inset Quotes eld
22908 \end_inset
22909
22910 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
22911  you'll find my little bookshop at the corner of Church Street, and very
22912  happy to see you, I am sure.
22913  Maybe you collect yourself, sir.
22914  Here's 
22915 \noun on
22916 British
22917 \begin_inset space ~
22918 \end_inset
22919
22920 Birds
22921 \noun default
22922 , and 
22923 \noun on
22924 Catullus
22925 \noun default
22926 , and 
22927 \noun on
22928 The Holy War
22929 \noun default
22930 –a bargain, every one of them.
22931  With five volumes you could just fill that gap on that second shelf.
22932  It looks untidy, does it not, sir?
22933 \begin_inset Quotes erd
22934 \end_inset
22935
22936
22937 \end_layout
22938
22939 \end_inset
22940
22941
22942 \end_layout
22943
22944 \begin_layout Subsubsection
22945 段間隔
22946 \end_layout
22947
22948 \begin_layout Standard
22949 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
22950 \series bold
22951
22952 \backslash
22953 columnsep
22954 \series default
22955 を変更することで実現できます.既定値は10
22956 \begin_inset space \thinspace{}
22957 \end_inset
22958
22959 ptです.以下は
22960 \series bold
22961
22962 \backslash
22963 columnsep
22964 \series default
22965 を3
22966 \begin_inset space \thinspace{}
22967 \end_inset
22968
22969 cmに設定した例です.
22970 \end_layout
22971
22972 \begin_layout Standard
22973 \begin_inset ERT
22974 status open
22975
22976 \begin_layout Plain Layout
22977
22978
22979 \backslash
22980 setlength{
22981 \backslash
22982 columnsep}{3cm}
22983 \end_layout
22984
22985 \end_inset
22986
22987
22988 \end_layout
22989
22990 \begin_layout Standard
22991 \begin_inset Flex Multiple Columns
22992 status open
22993
22994 \begin_layout Plain Layout
22995
22996 \size small
22997 My observations of No.
22998 \begin_inset space \space{}
22999 \end_inset
23000
23001 427 Park Lane did little to clear up the problem in which I was interested.
23002  The house was separated from the street by a low wall and railing, the
23003  whole not more than five feet high.
23004  It was perfectly easy, therefore, for anyone to get into the garden, but
23005  the window was entirely inaccessible, since there was no water pipe or
23006  anything which could help the most active man to climb it.
23007  More puzzled than ever, I retraced my steps to Kensington.
23008  I had not been in my study five minutes when the maid entered to say that
23009  a person desired to see me.
23010  To my astonishment it was none other than my strange old book collector,
23011  his sharp, wizened face peering out from a frame of white hair, and his
23012  precious volumes, a dozen of them at least, wedged under his right arm.
23013 \end_layout
23014
23015 \end_inset
23016
23017
23018 \end_layout
23019
23020 \begin_layout Standard
23021 \begin_inset ERT
23022 status collapsed
23023
23024 \begin_layout Plain Layout
23025
23026
23027 \backslash
23028 setlength{
23029 \backslash
23030 columnsep}{10pt}
23031 \end_layout
23032
23033 \end_inset
23034
23035
23036 \begin_inset Note Note
23037 status collapsed
23038
23039 \begin_layout Plain Layout
23040
23041 \lang english
23042 go back to the default
23043 \end_layout
23044
23045 \end_inset
23046
23047
23048 \end_layout
23049
23050 \begin_layout Subsubsection
23051 垂直線
23052 \end_layout
23053
23054 \begin_layout Standard
23055 段間には,長さ
23056 \series bold
23057
23058 \backslash
23059 columnseprule
23060 \series default
23061 の幅を持つ罫線が描かれます.罫線幅を0
23062 \begin_inset space \thinspace{}
23063 \end_inset
23064
23065 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
23066 \begin_inset space \thinspace{}
23067 \end_inset
23068
23069 pt幅に設定されています.
23070 \end_layout
23071
23072 \begin_layout Standard
23073 \begin_inset ERT
23074 status open
23075
23076 \begin_layout Plain Layout
23077
23078
23079 \backslash
23080 setlength{
23081 \backslash
23082 columnseprule}{2pt}
23083 \end_layout
23084
23085 \end_inset
23086
23087
23088 \end_layout
23089
23090 \begin_layout Standard
23091 \begin_inset Flex Multiple Columns
23092 status open
23093
23094 \begin_layout Plain Layout
23095
23096 \size small
23097 \begin_inset Quotes eld
23098 \end_inset
23099
23100 You're surprised to see me, sir,
23101 \begin_inset Quotes erd
23102 \end_inset
23103
23104  said he, in a strange, croaking voice.
23105 \end_layout
23106
23107 \begin_layout Plain Layout
23108
23109 \size small
23110 I acknowledged that I was.
23111 \end_layout
23112
23113 \begin_layout Plain Layout
23114
23115 \size small
23116 \begin_inset Quotes eld
23117 \end_inset
23118
23119 Well, I've a conscience, sir, and when I chanced to see you go into this
23120  house, as I came hobbling after you, I thought to myself, I'll just step
23121  in and see that kind gentleman, and tell him that if I was a bit gruff
23122  in my manner there was not any harm meant, and that I am much obliged to
23123  him for picking up my books.
23124 \begin_inset Quotes erd
23125 \end_inset
23126
23127
23128 \end_layout
23129
23130 \begin_layout Plain Layout
23131
23132 \size small
23133 \begin_inset Quotes eld
23134 \end_inset
23135
23136 You make too much of a trifle,
23137 \begin_inset Quotes erd
23138 \end_inset
23139
23140  said I.
23141  
23142 \begin_inset Quotes eld
23143 \end_inset
23144
23145 May I ask how you knew who I was?
23146 \begin_inset Quotes erd
23147 \end_inset
23148
23149
23150 \end_layout
23151
23152 \begin_layout Plain Layout
23153
23154 \size small
23155 \begin_inset Quotes eld
23156 \end_inset
23157
23158 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23159  you'll find my little bookshop at the corner of Church Street, and very
23160  happy to see you, I am sure.
23161  Maybe you collect yourself, sir.
23162  Here's 
23163 \noun on
23164 British
23165 \begin_inset space ~
23166 \end_inset
23167
23168 Birds
23169 \noun default
23170 , and 
23171 \noun on
23172 Catullus
23173 \noun default
23174 , and 
23175 \noun on
23176 The Holy War
23177 \noun default
23178 –a bargain, every one of them.
23179  With five volumes you could just fill that gap on that second shelf.
23180  It looks untidy, does it not, sir?
23181 \begin_inset Quotes erd
23182 \end_inset
23183
23184
23185 \end_layout
23186
23187 \end_inset
23188
23189
23190 \end_layout
23191
23192 \begin_layout Standard
23193 \begin_inset VSpace defskip
23194 \end_inset
23195
23196
23197 \end_layout
23198
23199 \begin_layout Standard
23200 罫線は,コマンド
23201 \series bold
23202
23203 \backslash
23204 columnseprulecolor
23205 \series default
23206 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
23207 コードで以下のコマンドを挿入すれば,実現できます.
23208 \begin_inset Newline newline
23209 \end_inset
23210
23211
23212 \series bold
23213
23214 \backslash
23215 renewcommand{
23216 \backslash
23217 columnseprulecolor}{
23218 \backslash
23219 color{red}}
23220 \series default
23221
23222 \begin_inset Newline newline
23223 \end_inset
23224
23225 このコマンド中の
23226 \series bold
23227 red
23228 \series default
23229 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『
23230 \emph on
23231 埋込オブジェクト篇
23232 \emph default
23233 』の「
23234 \emph on
23235 色付き表
23236 \emph default
23237 」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
23238 \begin_inset Newline newline
23239 \end_inset
23240
23241
23242 \series bold
23243
23244 \backslash
23245 renewcommand{
23246 \backslash
23247 columnseprulecolor}{
23248 \backslash
23249 normalcolor}
23250 \series default
23251
23252 \begin_inset Newline newline
23253 \end_inset
23254
23255 以下は,シアン色の罫線と1
23256 \begin_inset space \thinspace{}
23257 \end_inset
23258
23259 cmの段間隔を持つ例です.
23260 \end_layout
23261
23262 \begin_layout Standard
23263 \begin_inset ERT
23264 status open
23265
23266 \begin_layout Plain Layout
23267
23268
23269 \backslash
23270 setlength{
23271 \backslash
23272 columnsep}{1cm}
23273 \end_layout
23274
23275 \begin_layout Plain Layout
23276
23277
23278 \backslash
23279 renewcommand{
23280 \backslash
23281 columnseprulecolor}{
23282 \backslash
23283 color{cyan}}
23284 \end_layout
23285
23286 \end_inset
23287
23288
23289 \end_layout
23290
23291 \begin_layout Standard
23292 \begin_inset Flex Multiple Columns
23293 status open
23294
23295 \begin_layout Plain Layout
23296
23297 \size small
23298 \begin_inset Quotes eld
23299 \end_inset
23300
23301 You're surprised to see me, sir,
23302 \begin_inset Quotes erd
23303 \end_inset
23304
23305  said he, in a strange, croaking voice.
23306 \end_layout
23307
23308 \begin_layout Plain Layout
23309
23310 \size small
23311 I acknowledged that I was.
23312 \end_layout
23313
23314 \begin_layout Plain Layout
23315
23316 \size small
23317 \begin_inset Quotes eld
23318 \end_inset
23319
23320 Well, I've a conscience, sir, and when I chanced to see you go into this
23321  house, as I came hobbling after you, I thought to myself, I'll just step
23322  in and see that kind gentleman, and tell him that if I was a bit gruff
23323  in my manner there was not any harm meant, and that I am much obliged to
23324  him for picking up my books.
23325 \begin_inset Quotes erd
23326 \end_inset
23327
23328
23329 \end_layout
23330
23331 \begin_layout Plain Layout
23332
23333 \size small
23334 \begin_inset Quotes eld
23335 \end_inset
23336
23337 You make too much of a trifle,
23338 \begin_inset Quotes erd
23339 \end_inset
23340
23341  said I.
23342  
23343 \begin_inset Quotes eld
23344 \end_inset
23345
23346 May I ask how you knew who I was?
23347 \begin_inset Quotes erd
23348 \end_inset
23349
23350
23351 \end_layout
23352
23353 \begin_layout Plain Layout
23354
23355 \size small
23356 \begin_inset Quotes eld
23357 \end_inset
23358
23359 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23360  you'll find my little bookshop at the corner of Church Street, and very
23361  happy to see you, I am sure.
23362  Maybe you collect yourself, sir.
23363  Here's 
23364 \noun on
23365 British
23366 \begin_inset space ~
23367 \end_inset
23368
23369 Birds
23370 \noun default
23371 , and 
23372 \noun on
23373 Catullus
23374 \noun default
23375 , and 
23376 \noun on
23377 The Holy War
23378 \noun default
23379 –a bargain, every one of them.
23380  With five volumes you could just fill that gap on that second shelf.
23381  It looks untidy, does it not, sir?
23382 \begin_inset Quotes erd
23383 \end_inset
23384
23385
23386 \end_layout
23387
23388 \end_inset
23389
23390
23391 \end_layout
23392
23393 \begin_layout Standard
23394 \begin_inset ERT
23395 status collapsed
23396
23397 \begin_layout Plain Layout
23398
23399
23400 \backslash
23401 setlength{
23402 \backslash
23403 columnseprule}{0pt}
23404 \end_layout
23405
23406 \begin_layout Plain Layout
23407
23408
23409 \backslash
23410 renewcommand{
23411 \backslash
23412 columnseprulecolor}{
23413 \backslash
23414 normalcolor}
23415 \end_layout
23416
23417 \end_inset
23418
23419
23420 \begin_inset Note Note
23421 status collapsed
23422
23423 \begin_layout Plain Layout
23424
23425 \lang english
23426 go back to the default
23427 \end_layout
23428
23429 \end_inset
23430
23431
23432 \end_layout
23433
23434 \begin_layout Standard
23435 \begin_inset Newpage newpage
23436 \end_inset
23437
23438
23439 \end_layout
23440
23441 \begin_layout Section
23442 標準的でない形の段落
23443 \end_layout
23444
23445 \begin_layout Standard
23446 \noindent
23447 \SpecialChar LaTeX
23448 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
23449 できます.これは,文書設定で
23450 \family sans
23451 任意設定の段落形
23452 \family default
23453 モジュールを読み込んで,\SpecialChar LaTeX
23454 パッケージ
23455 \series bold
23456 shapepar
23457 \series default
23458 を使用させるようにすれば,実現できます.
23459 \end_layout
23460
23461 \begin_layout Subsection
23462 既定の形
23463 \end_layout
23464
23465 \begin_layout Standard
23466
23467 \series bold
23468 shapepar
23469 \series default
23470 は,以下の形を提供しています.
23471 \end_layout
23472
23473 \begin_layout Standard
23474 \begin_inset Tabular
23475 <lyxtabular version="3" rows="13" columns="3">
23476 <features booktabs="true" islongtable="true" longtabularalignment="center">
23477 <column alignment="center" valignment="middle" width="16col%">
23478 <column alignment="center" valignment="middle" width="40col%">
23479 <column alignment="center" valignment="middle" width="35col%">
23480 <row endhead="true">
23481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23482 \begin_inset Text
23483
23484 \begin_layout Plain Layout
23485 名称
23486 \end_layout
23487
23488 \end_inset
23489 </cell>
23490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23491 \begin_inset Text
23492
23493 \begin_layout Plain Layout
23494 説明
23495 \end_layout
23496
23497 \end_inset
23498 </cell>
23499 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23500 \begin_inset Text
23501
23502 \begin_layout Plain Layout
23503 備考
23504 \end_layout
23505
23506 \end_inset
23507 </cell>
23508 </row>
23509 <row>
23510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23511 \begin_inset Text
23512
23513 \begin_layout Plain Layout
23514 CDlabel
23515 \end_layout
23516
23517 \end_inset
23518 </cell>
23519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23520 \begin_inset Text
23521
23522 \begin_layout Plain Layout
23523 丸い穴の開いたドーナツ型(CD/DVD大)
23524 \end_layout
23525
23526 \end_inset
23527 </cell>
23528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23529 \begin_inset Text
23530
23531 \begin_layout Plain Layout
23532 伸縮不可.多くの文字を入れられないことに注意.
23533 \end_layout
23534
23535 \end_inset
23536 </cell>
23537 </row>
23538 <row>
23539 <cell alignment="center" valignment="top" topline="true" usebox="none">
23540 \begin_inset Text
23541
23542 \begin_layout Plain Layout
23543 Circle
23544 \end_layout
23545
23546 \end_inset
23547 </cell>
23548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23549 \begin_inset Text
23550
23551 \begin_layout Plain Layout
23552
23553 \end_layout
23554
23555 \end_inset
23556 </cell>
23557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23558 \begin_inset Text
23559
23560 \begin_layout Plain Layout
23561 脆弱.計算に失敗することも.
23562 \end_layout
23563
23564 \end_inset
23565 </cell>
23566 </row>
23567 <row>
23568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23569 \begin_inset Text
23570
23571 \begin_layout Plain Layout
23572 Diamond
23573 \end_layout
23574
23575 \end_inset
23576 </cell>
23577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23578 \begin_inset Text
23579
23580 \begin_layout Plain Layout
23581 菱形(シンボル的に
23582 \begin_inset Quotes eld
23583 \end_inset
23584
23585 diamond
23586 \begin_inset Quotes erd
23587 \end_inset
23588
23589 と表記)
23590 \end_layout
23591
23592 \end_inset
23593 </cell>
23594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23595 \begin_inset Text
23596
23597 \begin_layout Plain Layout
23598 -
23599 \end_layout
23600
23601 \end_inset
23602 </cell>
23603 </row>
23604 <row>
23605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23606 \begin_inset Text
23607
23608 \begin_layout Plain Layout
23609 Heart
23610 \end_layout
23611
23612 \end_inset
23613 </cell>
23614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23615 \begin_inset Text
23616
23617 \begin_layout Plain Layout
23618 ハート型
23619 \end_layout
23620
23621 \end_inset
23622 </cell>
23623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23624 \begin_inset Text
23625
23626 \begin_layout Plain Layout
23627 -
23628 \end_layout
23629
23630 \end_inset
23631 </cell>
23632 </row>
23633 <row>
23634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23635 \begin_inset Text
23636
23637 \begin_layout Plain Layout
23638 Hexagon
23639 \end_layout
23640
23641 \end_inset
23642 </cell>
23643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23644 \begin_inset Text
23645
23646 \begin_layout Plain Layout
23647 六角形
23648 \end_layout
23649
23650 \end_inset
23651 </cell>
23652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23653 \begin_inset Text
23654
23655 \begin_layout Plain Layout
23656 -
23657 \end_layout
23658
23659 \end_inset
23660 </cell>
23661 </row>
23662 <row>
23663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23664 \begin_inset Text
23665
23666 \begin_layout Plain Layout
23667 Nut
23668 \end_layout
23669
23670 \end_inset
23671 </cell>
23672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23673 \begin_inset Text
23674
23675 \begin_layout Plain Layout
23676 ナット型(丸い穴の開いた六角形)
23677 \end_layout
23678
23679 \end_inset
23680 </cell>
23681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23682 \begin_inset Text
23683
23684 \begin_layout Plain Layout
23685 -
23686 \end_layout
23687
23688 \end_inset
23689 </cell>
23690 </row>
23691 <row>
23692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23693 \begin_inset Text
23694
23695 \begin_layout Plain Layout
23696 Square
23697 \end_layout
23698
23699 \end_inset
23700 </cell>
23701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23702 \begin_inset Text
23703
23704 \begin_layout Plain Layout
23705 正方形
23706 \end_layout
23707
23708 \end_inset
23709 </cell>
23710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23711 \begin_inset Text
23712
23713 \begin_layout Plain Layout
23714 -
23715 \end_layout
23716
23717 \end_inset
23718 </cell>
23719 </row>
23720 <row>
23721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23722 \begin_inset Text
23723
23724 \begin_layout Plain Layout
23725 Star
23726 \end_layout
23727
23728 \end_inset
23729 </cell>
23730 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23731 \begin_inset Text
23732
23733 \begin_layout Plain Layout
23734 五芒星
23735 \end_layout
23736
23737 \end_inset
23738 </cell>
23739 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23740 \begin_inset Text
23741
23742 \begin_layout Plain Layout
23743 -
23744 \end_layout
23745
23746 \end_inset
23747 </cell>
23748 </row>
23749 <row>
23750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23751 \begin_inset Text
23752
23753 \begin_layout Plain Layout
23754 Candle
23755 \end_layout
23756
23757 \end_inset
23758 </cell>
23759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23760 \begin_inset Text
23761
23762 \begin_layout Plain Layout
23763 燃えるろうそく
23764 \end_layout
23765
23766 \end_inset
23767 </cell>
23768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23769 \begin_inset Text
23770
23771 \begin_layout Plain Layout
23772 -
23773 \end_layout
23774
23775 \end_inset
23776 </cell>
23777 </row>
23778 <row>
23779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23780 \begin_inset Text
23781
23782 \begin_layout Plain Layout
23783 Drop down/up
23784 \end_layout
23785
23786 \end_inset
23787 </cell>
23788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23789 \begin_inset Text
23790
23791 \begin_layout Plain Layout
23792 雫型/逆雫型
23793 \end_layout
23794
23795 \end_inset
23796 </cell>
23797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23798 \begin_inset Text
23799
23800 \begin_layout Plain Layout
23801 脆弱.計算に失敗することも.
23802 \end_layout
23803
23804 \end_inset
23805 </cell>
23806 </row>
23807 <row>
23808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23809 \begin_inset Text
23810
23811 \begin_layout Plain Layout
23812 \SpecialChar TeX
23813
23814 \end_layout
23815
23816 \end_inset
23817 </cell>
23818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23819 \begin_inset Text
23820
23821 \begin_layout Plain Layout
23822 \SpecialChar TeX
23823 ロゴ
23824 \end_layout
23825
23826 \end_inset
23827 </cell>
23828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23829 \begin_inset Text
23830
23831 \begin_layout Plain Layout
23832 -
23833 \end_layout
23834
23835 \end_inset
23836 </cell>
23837 </row>
23838 <row>
23839 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23840 \begin_inset Text
23841
23842 \begin_layout Plain Layout
23843 Triangle up/down/
23844 \begin_inset Newline newline
23845 \end_inset
23846
23847 left/right
23848 \end_layout
23849
23850 \end_inset
23851 </cell>
23852 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23853 \begin_inset Text
23854
23855 \begin_layout Plain Layout
23856 各方向の三角形
23857 \end_layout
23858
23859 \end_inset
23860 </cell>
23861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23862 \begin_inset Text
23863
23864 \begin_layout Plain Layout
23865 -
23866 \end_layout
23867
23868 \end_inset
23869 </cell>
23870 </row>
23871 </lyxtabular>
23872
23873 \end_inset
23874
23875
23876 \end_layout
23877
23878 \begin_layout Standard
23879 段落に形を適用するには,\SpecialChar LyX
23880 ツールバー中の環境プルダウンボックスから形を選んでください.
23881 \end_layout
23882
23883 \begin_layout Standard
23884 \begin_inset Newpage newpage
23885 \end_inset
23886
23887
23888 \end_layout
23889
23890 \begin_layout Standard
23891 以下は,ナット型の段落の例です.
23892 \end_layout
23893
23894 \begin_layout Standard
23895 \begin_inset VSpace bigskip
23896 \end_inset
23897
23898
23899 \end_layout
23900
23901 \begin_layout Nut
23902
23903 \lang latin
23904 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23905  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23906  voluptua.
23907  At vero eos et accusam et justo duo dolores et ea rebum.
23908  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
23909  sit amet.
23910  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23911  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23912  voluptua.
23913 \end_layout
23914
23915 \begin_layout Standard
23916 \begin_inset VSpace bigskip
23917 \end_inset
23918
23919
23920 \end_layout
23921
23922 \begin_layout Standard
23923 \begin_inset Note Greyedout
23924 status open
23925
23926 \begin_layout Plain Layout
23927
23928 \series bold
23929 【註】
23930 \series default
23931 shapepar段落は改頁にまたがることはできません.
23932 \end_layout
23933
23934 \end_inset
23935
23936
23937 \end_layout
23938
23939 \begin_layout Standard
23940 \begin_inset VSpace bigskip
23941 \end_inset
23942
23943
23944 \end_layout
23945
23946 \begin_layout Standard
23947
23948 \series bold
23949 shapepar
23950 \series default
23951 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
23952 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
23953 \end_layout
23954
23955 \begin_layout Standard
23956 \begin_inset Newpage newpage
23957 \end_inset
23958
23959
23960 \end_layout
23961
23962 \begin_layout Nut
23963
23964 \lang latin
23965 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23966  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23967  voluptua.
23968  At vero eos et accusam et justo duo dolores et ea rebum.
23969  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
23970  sit amet.
23971  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23972  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23973  voluptua.
23974  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23975  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23976  voluptua.
23977  At vero eos et accusam et justo duo dolores et ea rebum.
23978  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
23979  sit amet.
23980  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23981  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23982  voluptua.
23983 \end_layout
23984
23985 \begin_layout Standard
23986 \begin_inset VSpace bigskip
23987 \end_inset
23988
23989
23990 \end_layout
23991
23992 \begin_layout Standard
23993 ただし,
23994 \family sans
23995 CDlabel
23996 \family default
23997 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
23998 \begin_inset Newline newline
23999 \end_inset
24000
24001
24002 \family sans
24003 drop
24004 \family default
24005 形と
24006 \family sans
24007 circle
24008 \family default
24009 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
24010 \begin_inset Quotes eld
24011 \end_inset
24012
24013 Arithmetic overflow
24014 \begin_inset Quotes erd
24015 \end_inset
24016
24017 という\SpecialChar LaTeX
24018 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
24019 \end_layout
24020
24021 \begin_layout Standard
24022 \begin_inset VSpace bigskip
24023 \end_inset
24024
24025
24026 \end_layout
24027
24028 \begin_layout Standard
24029 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
24030 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
24031 \family sans
24032 (
24033 \begin_inset Info
24034 type  "shortcut"
24035 arg   "specialchar-insert hyphenation"
24036 \end_inset
24037
24038
24039 \family default
24040 )を指定することが往々にして必要になります.
24041 \end_layout
24042
24043 \begin_layout Standard
24044 \begin_inset VSpace bigskip
24045 \end_inset
24046
24047
24048 \end_layout
24049
24050 \begin_layout Standard
24051 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
24052 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
24053 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
24054 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
24055 \end_layout
24056
24057 \begin_layout Standard
24058 \begin_inset Newpage newpage
24059 \end_inset
24060
24061
24062 \end_layout
24063
24064 \begin_layout Heart
24065 \noindent
24066
24067 \lang latin
24068 Lo\SpecialChar softhyphen
24069 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24070  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24071  voluptua.
24072  At vero eos et accusam et justo duo dolores et ea rebum.
24073  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24074  sit amet.
24075 \end_layout
24076
24077 \begin_layout Standard
24078 \begin_inset VSpace bigskip
24079 \end_inset
24080
24081
24082 \end_layout
24083
24084 \begin_layout Standard
24085 \noindent
24086 \align right
24087 \begin_inset Box Frameless
24088 position "t"
24089 hor_pos "c"
24090 has_inner_box 1
24091 inner_pos "t"
24092 use_parbox 1
24093 use_makebox 0
24094 width "42col%"
24095 special "none"
24096 height "1in"
24097 height_special "totalheight"
24098 thickness "0.4pt"
24099 separation "3pt"
24100 shadowsize "4pt"
24101 framecolor "black"
24102 backgroundcolor "none"
24103 status open
24104
24105 \begin_layout Heart
24106 \noindent
24107
24108 \lang latin
24109 Lo\SpecialChar softhyphen
24110 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24111  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24112  voluptua.
24113  At vero eos et accusam et justo duo dolores et ea rebum.
24114  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24115  sit amet.
24116 \end_layout
24117
24118 \end_inset
24119
24120
24121 \end_layout
24122
24123 \begin_layout Subsection
24124 任意の形
24125 \end_layout
24126
24127 \begin_layout Standard
24128 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
24129 ように,コンピューターに座標を計算させる方法もあります.
24130 \end_layout
24131
24132 \begin_layout Enumerate
24133 プログラム
24134 \begin_inset CommandInset href
24135 LatexCommand href
24136 name "Jpgfdraw"
24137 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24138
24139 \end_inset
24140
24141 を導入します.
24142 \end_layout
24143
24144 \begin_layout Enumerate
24145
24146 \family sans
24147 Jpgfdraw
24148 \family default
24149 内で,メニュー
24150 \family sans
24151 TeX/LaTeX\SpecialChar menuseparator
24152 Settings\SpecialChar menuseparator
24153 Set Normal Size
24154 \family default
24155 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
24156 \begin_inset space \thinspace{}
24157 \end_inset
24158
24159 pt寸を使用しています.
24160 \end_layout
24161
24162 \begin_layout Enumerate
24163 形を描きます.
24164 \end_layout
24165
24166 \begin_layout Enumerate
24167 メニュー
24168 \family sans
24169 TeX/LaTeX\SpecialChar menuseparator
24170 Shapepar
24171 \family default
24172 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
24173 \begin_inset Foot
24174 status collapsed
24175
24176 \begin_layout Plain Layout
24177 詳細については,
24178 \begin_inset CommandInset href
24179 LatexCommand href
24180 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24181
24182 \end_inset
24183
24184 を参照してください.
24185 \end_layout
24186
24187 \end_inset
24188
24189
24190 \end_layout
24191
24192 \begin_layout Standard
24193 座標は\SpecialChar TeX
24194 ファイルに書き込まれます.これを\SpecialChar LyX
24195 文書で使用するには,
24196 \end_layout
24197
24198 \begin_layout Enumerate
24199 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
24200 \end_layout
24201
24202 \begin_layout Enumerate
24203 \SpecialChar LyX
24204
24205 \family sans
24206 挿入\SpecialChar menuseparator
24207 ファイル\SpecialChar menuseparator
24208 子文書
24209 \family default
24210 メニューでファイルを選択し,
24211 \family sans
24212 取り込みの型
24213 \family default
24214 として
24215 \family sans
24216 Input
24217 \family default
24218 を選択してください.
24219 \end_layout
24220
24221 \begin_layout Standard
24222 \begin_inset VSpace defskip
24223 \end_inset
24224
24225
24226 \end_layout
24227
24228 \begin_layout Standard
24229 \begin_inset Note Greyedout
24230 status open
24231
24232 \begin_layout Plain Layout
24233
24234 \series bold
24235 【註】
24236 \series default
24237 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
24238 \end_layout
24239
24240 \end_inset
24241
24242
24243 \end_layout
24244
24245 \begin_layout Standard
24246 \begin_inset VSpace bigskip
24247 \end_inset
24248
24249
24250 \end_layout
24251
24252 \begin_layout Standard
24253 以下の用例をご覧ください.
24254 \end_layout
24255
24256 \begin_layout Standard
24257 \begin_inset VSpace bigskip
24258 \end_inset
24259
24260
24261 \end_layout
24262
24263 \begin_layout Standard
24264 \begin_inset CommandInset include
24265 LatexCommand input
24266 filename "../SpecialParagraphShape.tex"
24267
24268 \end_inset
24269
24270
24271 \lang latin
24272 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24273  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24274  voluptua.
24275  At vero eos et accusam et justo duo dolores et ea rebum.
24276  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24277  sit amet.
24278  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24279  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24280  voluptua.
24281 \end_layout
24282
24283 \begin_layout Standard
24284 \begin_inset VSpace bigskip
24285 \end_inset
24286
24287
24288 \end_layout
24289
24290 \begin_layout Standard
24291
24292 \series bold
24293 【ヒント】
24294 \family sans
24295 \series default
24296 Jpgfdraw
24297 \family default
24298 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
24299 \family sans
24300 Jpgfdraw
24301 \family default
24302 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
24303 \end_layout
24304
24305 \begin_layout Standard
24306 \begin_inset VSpace bigskip
24307 \end_inset
24308
24309
24310 \end_layout
24311
24312 \begin_layout Standard
24313
24314 \family sans
24315 任意の段落形
24316 \family default
24317 モジュールは,
24318 \family sans
24319 shapepar
24320 \family default
24321
24322 \family sans
24323 Shapepar
24324 \family default
24325 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
24326 \begin_inset Foot
24327 status collapsed
24328
24329 \begin_layout Plain Layout
24330 これらのコマンドは,上述の全ての形で内部的に使用されています.
24331 \end_layout
24332
24333 \end_inset
24334
24335 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
24336 \series bold
24337 shapepar
24338 \series default
24339 パッケージの取扱説明書
24340 \begin_inset CommandInset citation
24341 LatexCommand cite
24342 key "shapepar"
24343
24344 \end_inset
24345
24346 をご覧ください.
24347 \end_layout
24348
24349 \begin_layout Bibliography
24350 \begin_inset CommandInset bibitem
24351 LatexCommand bibitem
24352 key "multicol"
24353
24354 \end_inset
24355
24356 \SpecialChar LaTeX
24357 パッケージ
24358 \begin_inset CommandInset href
24359 LatexCommand href
24360 name "multicol"
24361 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24362
24363 \end_inset
24364
24365 の取扱説明書
24366 \end_layout
24367
24368 \begin_layout Bibliography
24369 \begin_inset CommandInset bibitem
24370 LatexCommand bibitem
24371 key "shapepar"
24372
24373 \end_inset
24374
24375 \SpecialChar LaTeX
24376 パッケージ
24377 \begin_inset CommandInset href
24378 LatexCommand href
24379 name "shapepar"
24380 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
24381
24382 \end_inset
24383
24384 の取扱説明書
24385 \end_layout
24386
24387 \end_body
24388 \end_document